歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> oracle linux 下成功配置X manager 與VNC(圖)

oracle linux 下成功配置X manager 與VNC(圖)

日期:2017/2/28 17:09:29   编辑:Linux教程

今天在Oracle linux下配置了一下X manager 和vnc,是第一次配置vnc,vnc配置要比X manager簡單許多這裡記錄一下:

---- X manager 配置:

1.修改GDM的配置文件,/etc/X11/gdm/gdm.conf,將[xdmcp]中的enable選項設置為true

[xdmcp]

# Distributions: Ship with this off. It is never a safe thing to leave

# out on the net. Setting up /etc/hosts.allow and /etc/hosts.deny to only

# allow local access is another alternative but not the safest.

# Firewalling port 177 is the safest if you wish to have xdmcp on.

# Read the manual for more notes on the security of XDMCP.

Enable=true

用vi編輯gdm.conf 進入後鍵入/xdmcp查找字符串xdmcp "n"是搜索下一句,這樣就能快速的定位到xdmcp項

2.修改/etc/X11/xdm/xdm-config文件,將DisplayManager.requestPort: 0注釋掉

! SECURITY: do not listen for XDMCP or Chooser requests

! Comment out this line if you want to manage X terminals with xdm

!DisplayManager.requestPort: 0

3.修改/etc/X11/xdm/Xaccess文件 #* #any host can get a login window 去掉此行首位的#

# right hand sides can match.

#

* #any host can get a login window

#

# To hardwire a specific terminal to a specific host, you can

4. 如果有防火牆,請打開177的端口

ok!配置完後用X manager進入吧

Copyright © Linux教程網 All Rights Reserved