天天看點

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程

管理Uinx和Linux伺服器的兄弟們應該很熟悉Xmanager,一個視窗可以同時控制上百台Linux和Unix伺服器,功能非常強大!^_^請看:

manager是一個簡單易用的高性能的運作在Windows平台上的XServer軟體。它能把遠端Unix/Linux的桌面無縫地帶到你的Windows上,甚至當你的電腦是在内網或防火牆後,你也能通過SSH協定安全的運作遠端的X應用程式。

特點包括: -可通過Xcongfig工具設定多個Xmanager設定; -支援多使用者的Windows終端環境; 支援多個IP位址; 支援本地資源資料庫; 通過熱鍵轉換鍵盤映射; 支援多視窗下的Windows列印功能等。 

一、在RHEL5.5/CentOS5.5的應用:

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程

//修改/usr/share/gdm/defaults.conf的權限為777

[root@CentOS5 ~]# chmod 777 /usr/share/gdm/defaults.conf

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程

//在/usr/share/gdm/defaults.conf中的如以下配置: vi /usr/share/gdm/defaults.conf

263 Enable=false 修改為 Enable=true

279 #DisplaysPerHost=2 修改為DisplaysPerHost=8

284 #Port=177 修改為Port=177

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程

//将RHEL5.5/CentOS5.5啟動後預設進入圖形界面:

vi /etc/inittab

18 id:5:initdefault:

//重新開機系統,再輕按兩下Xmanager中的Xbrowser用普通使用者帳号koma登入如下圖所示:注:此步操作非常簡單,僅需在IP位址處輸入要登入的伺服器的IP位址即可!其他保持不變!

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程
Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程

二、在伺服器端配置讓root也能從xmanager中登入:

方法一:強烈推薦該方法!

[root@CentOS5 ~]# vi /etc/gdm/custom.conf

44 [security]

45 AllowRemoteRoot=true //此行是添加的!

方法二:強烈不建議用此方法!

[root@CentOS5 ~]# vi /usr/share/gdm/defaults.conf

214 AllowRemoteRoot=false 修改為:AllowRemoteRoot=true

*下面的配置都一樣!

在vi /etc/securetty的最後面添加幾行,如下面所示:

[root@CentOS5 ~]# vi /etc/securetty

24 pts/0

25 pts/1

26 pts/2

27 pts/3

28 pts/4

//注釋掉/etc/pam.d/login的第二行,如下所示:

1 #%PAM-1.0

2 #auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so

//注釋掉/etc/pam.d/remote的第二行,如下所示:

[root@CentOS5 ~]# vi /etc/pam.d/remote

2 #auth required pam_securetty.so

Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程
Unix/Linux運維首選工具Xmanager Enterprise 3.0的使用教程