轉自blogsheng:https://www.cnblogs.com/shengs/p/4838949.html
菜單
Xmanager Enterprise 4 -- Xbrowser
新建一個Xstart會話
協議選ssh,
執行命令 點擊后面的按鈕選GNOME
建好后打開這個會話就可以連接到遠程桌面了,很簡單。
連接上后任務欄里有三個菜單,
一個是顯示linux的頭部菜單
一個是顯示linux的任務欄
一個是顯示linux的桌面
如何退出
在任務欄(右側)里右鍵關閉xmanager
還可以用如下方法建Xstart會話
菜單
Xmanager Enterprise 4 -- Xstart
如果報錯:已拒絕x11轉移申請,
(首先檢查 etc/ssh/sshd_config 中 設置 X11Forwarding yes
但是在某些主機上,無論你在客戶端如何設置,都無法正確的使能X11 forwarding功能,登錄后DISPLAY永遠是空值。sshd_config文件也沒有將X11 forwarding功能禁用。
解決辦法:
原來X11 forwarding依賴“xorg-x11-xauth”軟件包,所以必須先安裝“xorg-x11-xauth”軟件包。
yum install xorg-x11-xauth)
服務器上應該裝有X Window,見文后連接。
服務器要沒有桌面環境,會報如下錯誤
[17:18:41] Start timer (TIMER_SHUTDOWN, 180).
bash: /usr/bin/gnome-session: No such file or directory
----------------------------------------------------------------------------------------------------------------------------------------------
- 通過xstart啟動gnome桌面的具體調置
- 啟動xstart,命名一個session,輸入主機名,懸着SSH,輸入用戶名和密碼,
- Execution Command框:
- 若啟動GNOME,填寫DISPLAY=$DISPLAY /usr/bin/gnome-session,若啟動KDE,填寫DISPLAY=$DISPLAY /usr/bin/startkde
- 修改配置
- 無法啟動xstart的幾個錯誤及解決
錯誤一:連接時出現:Can't open display: localhost:10.0
解決方法:
在/etc/hosts 中加入
127.0.0.1 localhost
ipaddress hostname
之后能進入圖形界面,注意是實際ip和機器名
錯誤二:slc5和slc4的xterm目錄不一樣,需要注意。
/usr/X11/bin/xterm: Command not found.
將Excution command改為
/usr/bin/xterm -ls -display $DISPLAY
即可
------------------------------------------------------------------------------------------------------------------------
[16:21:58] Host authentication initiated…
[16:21:58] Hostkey fingerprint:
[16:21:58] ssh-dsa 1024 18:4c:c3:f8:71:0f:d2:b2:e1:4c:21:f8:33:49:9a:9a
[16:22:00] Accepted. Verifying host key…
[16:22:00] Verified.
[16:22:00] User authentication initiated…
[16:22:00] Sent user name ‘oracle’.
[16:22:00] Sent password.
[16:22:00] Access granted.
[16:22:00] Sent X11 forwarding request…
[16:22:00] Succeeded.
[16:22:00] Sent the command line.
[16:22:00] /usr/X11R6/bin/xterm -ls -display $DISPLAY
[16:22:00] Start timer (TIMER_SHUTDOWN, 180).
/usr/X11R6/bin/xauth: creating new authority file /home/oracle/.Xauthority
bash: /usr/X11R6/bin/xterm: No such file or directory
[16:22:01] Connection closed
解決思路:
[root@localhost ~]# rpm -qf /usr/bin/xterm
xterm-215-4.el5
查詢到缺少該rpm包,安裝該包
掛載光驅
[root@localhost ~]# mount -t iso9660 /dev/cdrom /mnt/cdrom
[root@localhost ~]#cd /mnt/cdrom
[root@localhost cdrom]# cd Server
[root@localhost Server]# ls xterm*
xterm-215-5.el5.i386.rpm
[root@localhost Server]# rpm -ivh xterm-215-5.el5.i386.rpm
warning: xterm-215-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
file /usr/bin/resize from install of xterm-215-5.el5 conflicts with file from package xterm-215-4.el5
file /usr/bin/xterm from install of xterm-215-5.el5 conflicts with file from package xterm-215-4.el5
安裝 xterm-215-5.el5.i386.rpm包出錯,意思是,已經在/usr/bin/xterm下安裝xterm包,名稱為xterm-215-4.el5
判斷既然該包已經存在,那該如何處理呢...
修改Xstart的配置,在Execution Command:點擊箭頭添加,如下圖:
點擊箭頭后,點擊Add/Remove....添加執行命令行。如下圖
添加完畢后,在xstart窗口,再重新指定,如下圖
到此就ok了