标签:vnc
来一个简单粗暴的tigervnc安装的教程,直入主题!
安装必备软件
yum install -y tigervnc tigervnc-server yum groupinstall -y "Desktop" yum groupinstall -y ‘X Window System‘ yum install gnome-panel yum install nautilus
配置文件目录
[root@iZwz9f1k5jyyhce8194b2iZ ~]# rpm -qc tigervnc-server /etc/sysconfig/vncservers [root@iZwz9f1k5jyyhce8194b2iZ ~]# ll /etc/init.d/vncserver -rwxr-xr-x 1 root root 3226 May 11 2016 /etc/init.d/vncserver [root@iZwz9f1k5jyyhce8194b2iZ ~]# ll /etc/sysconfig/vncserver -rwxr-xr-x 1 root root 3226 May 11 2016 /etc/init.d/vncserver
vncserver常用命令
vncserver :1 #启动5901 vncserver -kill :1 #关闭5901 vncserver -list #查看当前运行的vncserver vncpasswd #更改当前用户的VNC登录密码
查看xstartup配置文件
cat ~/.vnc/xstartup #!/bin/sh [ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n export LANG export SYSFONT vncconfig -iconic & unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS OS=`uname -s` if [ $OS = ‘Linux‘ ]; then case "$WINDOWMANAGER" in *gnome*) if [ -e /etc/SuSE-release ]; then PATH=$PATH:/opt/gnome/bin export PATH fi ;; esac fi if [ -x /etc/X11/xinit/xinitrc ]; then exec /etc/X11/xinit/xinitrc fi if [ -f /etc/X11/xinit/xinitrc ]; then exec sh /etc/X11/xinit/xinitrc fi [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & twm &
启动和关闭
vncserver :1 vncserver -kill :1
远程链接
使用的客户端软件是:vnc viewer
(1)输入服务器的外网IP:1
本文出自 “RichyLu____记录” 博客,请务必保留此出处http://richylu.blog.51cto.com/1481674/1893409
标签:vnc
原文地址:http://richylu.blog.51cto.com/1481674/1893409