码迷,mamicode.com
首页 > 其他好文 > 详细

redhat 5.9下搭建vnc环境

时间:2018-08-17 20:08:37      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:ble   bsp   去掉   des   x11   tle   init   xinit   art   

rpm -q vnc vnc-server    #检测是否安装

yum install vnc vnc-server    #安装vnc

vncserver :1    #启动vnc端口1

vi /root/.vnc/xstartup    #修改配置文件
# 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 &     #添加

#添加防火墙端口iptable(58015901)
vncserver -kill :1    #关闭vnc端口
vncserver :1    #启动vnc端口1

 

redhat 5.9下搭建vnc环境

标签:ble   bsp   去掉   des   x11   tle   init   xinit   art   

原文地址:https://www.cnblogs.com/cos235817497/p/9488482.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!