Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19881769
  • 博文数量: 679
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 9308
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-18 10:51
文章分类

全部博文(679)

文章存档

2012年(5)

2011年(38)

2010年(86)

2009年(145)

2008年(170)

2007年(165)

2006年(89)

分类: LINUX

2007-04-26 11:09:40

http://yemenshare.spaces.live.com/blog/cns!59118BD349ACF989!120.entry

用Xmanager远程管理LINUX,AIX等UNIX系统

用Xmanager远程管理LINUX,AIX等UNIX系统

可以从WINDOWS平台用Xmanager实现对LINUX,AIX等系统的控制,LINUX下X界面有GNOME(GDM)、KDE(XDM)、UNIX下X界面的CDE,GDM、XDM、CDE的设置,请看下文

1. When I connect to UNIX by XDMCP, the CDE session hangs.
 
1.1. I cannot see the login window.
If you cannot see the login window, you need additional fonts for the host. You can download and install the fonts in your Unix server or you can set up a font server.
To run font server in host:
 
Run "xfs&".
Run "fsinfo -server host_IP_address:7100".
To configure Xmanager:
Start Xconfig in Xmanager2 folder.
Open the properties of the profile for the session.
Select Font tab.
Add Font Server.
Save the changes and run Xmanager.
Also, one of the following reasons might prevent CDE connection to be made:  The Unix server is not located in the same subnet with your PC.
 Your PC has multiple IP addresses.
 Name server has an invalid name-to-ip or ip-to-name entry for your PC. Check the forward and
reverse lookup tables.
 See the /var/dt/Xerrors file for more detailed information.

1.2. The CDE login window shows up. After login, the session hangs or is terminated.
The $HOME/.dtprofile might have a line that prevents a successful login. You need to try to comment
all commands out in the file. Also, remove the following lines in your login scripts.:
 export DISPLAY=:0.0
 or
 setenv DISPLAY :0.0
For more detailed reasons, please see $HOME/.dt/errorlog. 
以AIX5L为例,只要安装时选了图形界面,基本上可以连上CDE,不用做太多的的改动,若不行检查一下进程,防火墙,端口等

2. XDMCP connection fails for Linux. How do I configure my Linux box?
How to configure Linux XDMCP(KDE/GNOME) settings for Xmanager
Affected Files
For runlevel: /etc/inittab
For GDM: /etc/X11/gdm/gdm.conf
For XDM: /etc/X11/xdm/xdm-config
/etc/X11/xdm/Xaccess
/etc/X11/xdm/kdmrc
/usr/share/kdm/kdmrc
/usr/share/config/kdm/kdmrc
/etc/opt/kde2/share/config/kdm/kdmrc

For Firewall: /etc/sysconfig/ipchains
 
Step 1. Change runlevel to enable gdm or kdm.
Open /etc/inittab file.
Change the runlevel to 5 as following:
id:5:initdefault:
 
Step 2. GDM configuration (When the Linux is using gdm)
若是以进程3登录的,又不想改成进程5图形登录,也可以在进去后动行GDM(gnome)或XDM(KDE),启动GDM、XDM进程
 
Open /etc/X11/gdm/gdm.conf file.
Go to the [xdmcp]section.
Set the value of "Enable" option to "1".
Step 3. KDM configuration (When the Linux is using kdm)
Open /etc/X11/xdm/xdm-config file.
Comment out "requestPort" option as following:
DisplayManager.requestPort: 0
==>
!DisplayManager.requestPort: 0
Open /etc/X11/xdm/Xaccess file.
Remove the initial "#" character for the following line:
#* #any host can get a login window
==>
* #any host can get a login window
Open /etc/X11/xdm/kdmrc,
/usr/share/config/kdm/kdmrc or
/etc/opt/kde2/share/config/kdm/kdmrc file.
Change the value of "Enable" option to "true".

Step 4. Firewall configuration (If the firewall has been configured)
Open /etc/sysconfig/ipchains file.
Add the following lines at the top of the file:
-A input -p udp -s 0/0 -d 0/0 177 -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 telnet -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 ssh -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 login -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 exec -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 shell -j ACCEPT
-A input -p tcp -s 0/0 -d 0/0 7100 -j ACCEPT
Step 5. Restart your Linux to activate the changes.
 

3. I am trying to connect to SUN Solaris/HP-UNIX/IBM AIX using XDMCP, but I get the error message:
"XDMCP Connection failed."
In order to use XDMCP connection, CDE login should be enabled on your remote server.
Follow the instruction below to enable CDE login:

Login as a root.
Enable CDE login when system boot:
   $ /usr/dt/bin/dtconfig -e [enter]
dtconfig -reset
If you want to disable the CDE login setting, do the following: 
  $ /usr/dt/bin/dtconfig -d [enter]
 

4. I'm in the local network inside a NAT system. How can I connect to the remote host?
To run a remote xterm program, your IP address should be a public one that can be reached from the remote host because a remote xterm tries to connect to your local PC.
If your PC is located inside the firewall or NAT and the Unix host is located outside, X
applications cannot connect to the Xmanager running on your PC.
There are two solutions on this situation:
By configuring port forwarding rules on the NAT system.
By using SSH protocol in the Xstart program.
The two solutions above are only for Xstart connection, not for XDMCP. XDMCP connection is not supported currently.
To use port forwarding, you should forward the port 6000 of NAT system to the port 6000 of your PC.
In case of multiple local users, you can do the following steps:
    (NAT, 6001) ==> (PC1, 6000)
    (NAT, 6002) ==> (PC2, 6000)
     ...
    (NAT, 6009) ==> (PC9, 6000)
Then, in the Xstart program, each user have to enter "-display" option like this:
    /usr/bin/X11/xterm -ls -display $NATADDR:1
    The value of "-display" option should be:
        For PC1: $NATADDR:1
        For PC2: $NATADDR:2
In case of using SSH connection, you do not have to configure other options. It establishes a secure tunnel between PC and Unix, so we recommend you to use SSH protocol if the Unix server supports it.
 

5. Which ports should I allow on my firewall?
You should open the following TCP/UDP ports.
From remote host to local PC (Inbound):  TCP 6000 ~ 6010 for Xmanager
 *TCP 16001 for Gnome only

From local PC to remote host (Outbound):  UDP 177 for XDMCP
 TCP 512, 513, 514, 23, 22 for Xstart
*Note: Gnome may fail to logout if TCP 16001 port is not allowed. 

6. I'm inside a firewall using IP masquerading. How can I connect to external Linux/Unix hosts?
To use Xstart with IP masquerading, please do the following steps:
run the following command as a root on your firewall server.
# ipmasqadm portfw -a -P tcp -L firewall_address 6010 -R PC_address 6000
run Xstart program.
enter the following command at Command field.
/usr/bin/X11/xterm -ls -display firewall_address:10.0
click the run button.
Be sure that, firewall_address and PC_address must be changed to the corresponding IP addresses on your own network.
 

7. How can I run a remote X application on my PC with a dynamic IP address?
If you want to start an X application such as xterm, first click Xstart icon in the Xmanager folder
and set the command field as following:
"/usr/bin/X11/xterm -ls -display $DISPLAY"
In the protocol field, you should select a protocol supported by your remote Unix/Linux server. 

8. How can I use Xmanager through SSH?
Run Xstart in the Xmanager folder.
Select SSH for Protocol.
Enter username, password, hostname, etc.
Type in Execution Command as following:
   /usr/bin/X11/xterm -ls
Note that -display option is absent. SSH server will assign a proper value.
Click Save and Run button.
The Xstart will automatically run Xmanager and then execute the remote command.
 

9. When I open an xterm window, some characters are displayed incorrectly on the screen. Some (not
all) capital letters looks like a small dot.
Run Xconfig program in the Xmanager2 folder.
Open the properties of the profile for the session.
Select Advanced tab.
Turn the Maximize performance option off.
Save the changes and run Xmanager.
 

10. I've lost my product key. Where can I find it?
In the Customer Service page, you can find your product key. Click here. 

11. The Backspace key does not work in xterm from RedHat 7 host.
run Keyboard Editor in Xmanager folder.
open your keyboard file.
click the BackSpace key you are using.
change the keysym value as following:
Unshifted: BackSpace
Shifted: NoSymbol
ModeSwitch: NoSymbol
ShiftedModeSwitch: NoSymbol
save and restart Xmanager.
 

12. How can I configure firewall settings in Windows XP/2003?
Windows XP/2003 may block all incoming TCP/IP connections. So, Xmanager cannot be used without allowing its listening port.
Please do the following steps to enable Xmanager connection.:

Open Control Panel, Network and Internet Connection, and then Network Connections.
Right-click on your Internet connection, and then click Properties.
Click Settings. RESULT: Advanced Settings dialog box will open.
Allow TCP port 6000 ~ 6010.
If  Windows XP Service Pack 2 is installed on your machine, follow the procedure below:

Open Control Panel, and then Windows Firewall.
From the General tab, select On (recommended) option.
Click the Exception tab.
Click the Add Program button.
From the Programs list, select Xmanager - Passive.
Click OK.

 

13. Colors are not displayed correctly when I use 256-color CAD applications.
Some old X applications using 256-color visual cannot display colors correctly in the True color
video device. Mostly, CAD applications such as Cadence, Mentor and CATIA have this problem.
You can configure 256-color emulation to fix this problem. In the Xconfig, change Default Visual and Backing Store options as following:  Default Visual: PseudoColor
 Backing Store: When Mapped

These options will enable 256-color emulation feature in Xmanager.
 

14. Gnome terminal fails to open in RedHat 7.3.
The problem occurs due to the font used by gnome-terminal.
To fix this problem, configure xfs program and add the specific font server into the font list of
Xconfig.
Comment the following line out in the file /etc/X11/fs/config.
#no-listen = tcp
Restart xfs process or reboot the system.
Open Xconfig utility.
Choose Font tab.
Click Add Font Server button.
In the Host box, enter the hostname or IP address of Linux.
In the Port box, enter 7100.
Restart Xmanager.
Make sure that the font server should be listed in the bottom of the font list.
 

15. Does Xmanager support Windows or Citrix terminal server?
Xmanager supports both Windows terminal server and Citrix MetaFrame server. To use Xmanager in those
environment, please follow the guidelines below:
For XDMCP connection
Install Xmanager into the Windows or Citrix terminal server.
Run Xbrowser in each terminal client. Xbrowser is installed with Xmanager.
For Xstart session
Check Allocate display number automatically on in the Xstart Advanced Options dialog box.
 
 
16. Now that I have purchased Xmanager, do I need to download any install file? And how can I apply
my product key
Xmanager evaluation is fully functional copy and there is no need to reinstall additional software.
To apply your product key follow the steps below:
Open Xbrowser.
From the Help menu and click About Xbrowser.
Click Enter Product Key.
RESULT: Registration window opens up.
Enter your product key and click OK.
Also, expiration date notice window will not appear again once you apply your product key.

可参考

阅读(5248) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~