linux下VNC配置详解
来源:互联网 发布:数易生日计算法 编辑:程序博客网 时间:2024/05/16 17:03
1、VNC的启动/停止/重启
#service vncserver start/stop/restart
关闭具体的vncserver命令:vncserver -kill :1 vncserver -kill :2
2、设置密码
#vncpasswd
3、客户端登陆
在vnc客户端中输入:服务器端IP:1或服务器端IP:2
4、设置登陆到KDE桌面
a.
[root@centos ~]# vi /etc/sysconfig/vncservers
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:[url]http://www.uk.research.att.com/vnc/sshvnc.html[/url]>.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <URL:[url]http://www.uk.research.att.com/vnc/sshvnc.html[/url]>.
# VNCSERVERS="1:myusername"
VNCSERVERS="1:root"
VNCSERVERS="1:root"
# VNCSERVERARGS[1]="-geometry 800x600"
VNCSERVERARGS[1]=”-geometry 800×600 -alwaysshared -depth 24″
VNCSERVERARGS[1]=”-geometry 800×600 -alwaysshared -depth 24″
-alwaysshared代表允许多用户同时登录 -depth代为色深,参数有8,16,24,32。
注:红色部分就是被修改或增加的部分
b.
[root@centos .vnc]$ vi /root/.vnc/xstartup
#!/bin/sh
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
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" &
#gnome-session & #set starting GNOME desktop
startkde & #kde desktop
#twm & #Text interface
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#gnome-session & #set starting GNOME desktop
startkde & #kde desktop
#twm & #Text interface
注:红色部分就是被修改或增加的部分
c.
重启VNC即可。
阅读全文
0 0
- linux下VNC配置详解
- linux下VNC配置详解
- linux下VNC配置详解
- linux下VNC配置详解
- linux下vnc配置
- Linux下配置VNC
- CentOS Linux下VNC Server远程桌面配置详解
- (总结)CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- (总结)CentOS Linux下VNC Server远程桌面配置详解
- (总结)CentOS Linux下VNC Server远程桌面配置详解
- (总结)CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- CentOS Linux下VNC Server远程桌面配置详解
- HDOJ 1829 A Bug's Life (并查集)
- 窗体主控件Dock属性设置为Fill后,被工具条盖住了
- Docker 集群Swarm创建和Swarm Web管理
- JavaScript的DOM操作
- oracle数据库备份类型
- linux下VNC配置详解
- 在windows上传一个新的项目到GitHub上
- 直接插入排序升序,降序,去重排序
- Suse启动cron的方法
- 安卓解决ScrollView嵌套ListView显示不全、与ViewPager滑动冲突的3个类
- 详解Unix和Linux操作系统中Cron的用法
- linux core
- idea启动web项目 Artifact webapp: Error during artifact deployment. See server log for detail
- 手把手教你把Vim改装成一个IDE编程环境(图文)