[root@hch_test_pd_121_129 ~]# ps -eaf|grep vnc root 15895 15846 0 15:04 pts/1 00:00:00 grep vnc [root@hch_test_pd_121_129 ~]# [root@hch_test_pd_121_129 ~]# rpm -qa | grep vnc [root@hch_test_pd_121_129 ~]#
yum install tigervnc tigervnc-server –y yum install -y libvncserver*
[root@hch_test_pd_121_129 ~]# rpm -qa | grep vnc tigervnc-1.1.0-16.el6.centos.x86_64 libvncserver-devel-0.9.7-7.el6_6.1.x86_64 tigervnc-server-1.1.0-16.el6.centos.x86_64 libvncserver-0.9.7-7.el6_6.1.x86_64 [root@hch_test_pd_121_129 ~]#
yum install -y gnome* yum install libXfont -y yum install xorg-x11-xfs yum install xorg-x11-xfs-utils yum install xorg-x11-xinit yum install xorg-x11-xdm yum install xorg-x11-fonts*
[root@hch_test_pd_121_129 ~]# vim /etc/sysconfig/vncservers VNCSERVERS="1:root" VNCSERVERARGS[1]="-geometry 800x600"
[root@hch_test_pd_121_129 ~]# vncpasswd Password: Verify: [root@hch_test_pd_121_129 ~]#
[root@hch_test_pd_121_129 ~]# service vncserver start
正在启动 VNC 服务器:1:root xauth: creating new authority file /root/.Xauthority
New 'hch_test_pd_121_129:1 (root)' desktop is hch_test_pd_121_129:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hch_test_pd_121_129:1.log
[确定]
[root@hch_test_pd_121_129 ~]#
[root@hch_test_pd_121_129 ~]# service vncserver stop 关闭 VNC 服务器:1:root [确定] [root@hch_test_pd_121_129 ~]#
[root@hch_test_pd_121_129 ~]# service vncserver restart
关闭 VNC 服务器:1:root [确定]
正在启动 VNC 服务器:1:root
New 'hch_test_pd_121_129:1 (root)' desktop is hch_test_pd_121_129:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/hch_test_pd_121_129:1.log
[确定]
[root@hch_test_pd_121_129 ~]#
[root@hch_test_pd_121_129 ~]# more /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 & [root@hch_test_pd_121_129 ~]#
xterm -geometry80x24+10+10 -ls -title “$VNCDESKTOP Desktop” & twm &
gnome-session &
Sat May 7 15:05:35 2016 vncext: VNC extension running! vncext: Listening for VNC connections on all interface(s), port 5901 vncext: created VNC server for screen 0 /root/.vnc/xstartup: line 4: /etc/X11/xinit/xinitrc: No such file or directory /root/.vnc/xstartup: line 4: exec: /etc/X11/xinit/xinitrc: cannot execute: No such file or directory
[root@xxx rpms]# ll /etc/X11/xinit/xinitrc ls: cannot access /etc/X11/xinit/xinitrc: No such file or directory [root@xxx rpms]# find / -name xinitrc [root@xxx rpms]#
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有