首页 > 系统服务 > 详细

linux vnc安装流程

时间:2015-05-21 19:47:18      阅读:236      评论:0      收藏:0      [点我收藏+]

0:装vnc环境配置

查看主机名是否配置

[root@ruei ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=ruei

[root@ruei ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               ruei localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.0.99.42  ruei


1:查询vnc是否存在

rpm -qa|grep vnc

没有存在执行下列命令安装

2:rpm -ivh rpm包

3:启动vnc

service vncserver start

vncserver  :1

杀掉桌面

vncserver -kill  :1


4:修改配置文件

[root@ruei ~]# vi /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 &
startkde &


本文出自 “java实现99乘法表” 博客,请务必保留此出处http://lixiansheng.blog.51cto.com/2963027/1653545

linux vnc安装流程

原文:http://lixiansheng.blog.51cto.com/2963027/1653545

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!