标签:zab rtu targe play unset cat 图形化 其他 远程
远程调用Linux图形化,很不错的..
yum groupinstall -y ‘Desktop‘ ‘X Window System‘ #xclock试图形化
yum install -y tigervnc-server
[root@zabbix ~]# vncserver
You will require a password to access your desktops.
Password: Password must be at least 6 characters - try again Password: Password must be at least 6 characters - try again #123456 Password: Verify:
New ‘zabbix:1 (root)‘ desktop is zabbix:1
Creating default startup script /root/.vnc/xstartup Starting applications specified in /root/.vnc/xstartup Log file is /root/.vnc/zabbix:1.log
vim /root/.vnc/xstartup
#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #twm & gnome-session & #gnome
注:释掉twm,添加桌面环境。如果是kde填写kde-session & ,gnome &
vncserver :1 #启动
vncserver -kill :1 #关闭
注意:VNC服务的端口号与桌面号
VNC使用TCP端口从5900开始
桌面号为“1” ---- 端口号为5901
桌面号为“2” ---- 端口号为5902
桌面号为“3” ---- 端口号为5903
启动多个vncserver
vncserver :2
vncserver :3
IP:端口(简写1与上面开窗口对应)
VNC-viewer:http://files.cnblogs.com/files/xiaochina/vncviewer.zip
172.24.0.120:2
123123
xeyes
xhost + #其他用户也可以远程调用图形化 (root用户下)
su - weblogic
xeyes #测试图形化
错误提示:
Starting VNC server: no displays configured
解决方案:
vim /etc/sysconfig/vncservers
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1360x768 -alwaysshared"
相关地址:
http://www.cnblogs.com/xiaochina/p/5823500.html
标签:zab rtu targe play unset cat 图形化 其他 远程
原文地址:http://www.cnblogs.com/xiaochina/p/6900234.html