让linux显示桌面的办法,配置vnc
本帖最后由 shel_lee 于 2013-6-14 16:08 编辑一般服务器都有自带,如果没有就yum安装一个
yum -y install vnc-server
启动服务
/etc/init.d/vncserver restart
chkconfig vncserver on
创建vnc密码
# vncserver :1
You will require a password to access your desktops.
Password:
Verify:
xauth:creating new authority file /root/.Xauthority
New 'testdb:1 (root)' desktop is testdb:1
Creating default startup script. /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/testdb:1.log
注意,这里会提示输入密码。
现在就可以登录了,登录地址 ip:1 登录密码就是你刚才设置的密码
不过,现在登录的还是字符串界面,必须设置成为kde界面,如下
编辑文件/root/.vnc/xstartup
最后一行 修改成 kde
重新启动vncserver服务的方法:
# vncserver -kill :1
# vncserver :1
修改vnc密码
# vncpasswd
Password:
Verify:
#
连续两次输入即可
xuexile ddddddddddd
页:
[1]