Linux配置VNC Server
来源:互联网 发布:java游戏服务器开发 编辑:程序博客网 时间:2024/06/04 17:43
一 Redhat6/centOS6
1.安装vnc sever。
命令:yum install tigervnc-server -y
2.将vncserver设置为随系统启动。
命令:chkconfig vncserver on
或者:chkconfig vncserver –level 5 on
3.修改vncserver的配置文件。
命令:vim /etc/sysconfig/vncservers
在最后加上:
VNCSERVERS=”1:user1 2:user2”
VNCSERVERARGS[1]=”-geometry 1024x768 -alwaysshared”
VNCSERVERARGS[2]=”-geometry 1024x768 -alwaysshared”
—要加其他用户,仿照以上即可
4.关闭防火墙
5 设置vncserver的用户密码(vnc客户端登陆使用)。
命令 :
su - {user}
vncpasswd
先切换到VNC用户,再敲vncpasswd;
不能直接用root权限用户去执行vncpasswd
6.重启vncserver
命令:service vncserver restart
7.用vncviewer登录
在地址栏输入“主机地址:{no}”(即主机IP加界面号的方式),比如“主机地址:1”就是用对应1号用户来登录。
二 redhat7/centos7
关闭防火墙 : ystemctl stop firewalld.service
关闭enforce: setenforce 0
1.安装tigervncserver :
yum install tigervnc-server tigervnc-server-module
2.修改配置文件vim /etc/systemd/system/vncserver@:1.service
配置文件内容为:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
ExecStart=/usr/bin/vncserver :1 -geometry 1280x1024 -depth 16 -securitytypes=none -fp /usr/share/X11/fonts/misc
ExecStop=/usr/bin/vncserver -kill :1
[Install]
WantedBy=multi-user.target
3.启用配置文件
systemctl enable vncserver@:1.service
4.设置登陆密码:
vncpasswd
5.启动vncserver:systemctl start vncserver@:1.service
VNCViewer 下载地址: http://www.realvnc.com/download/
参考: http://tecadmin.net/setup-vnc-server-on-centos-redhat-and-fedora/#
- Linux配置VNC Server
- Linux下VNC Server的配置过程
- Linux下Vnc远程桌面Server配置教程
- Linux下VNC Server的配置过程
- Linux下Vnc远程桌面Server配置教程
- Linux下Vnc远程桌面Server配置教程
- Linux下Vnc远程桌面Server配置教程
- Linux下VNC Server的安装配置
- Linux服务器上安装配置VNC Server
- vnc—server配置
- vnc-server配置
- VNC Server配置实例
- Fedora VNC Server配置
- RHEL5 vnc server 配置
- 配置VNC server
- VNC Server配置
- 配置VNC server
- RHL配置VNC Server
- git 退回到某個版本
- Haroopad Markdown 编辑器代码语法高亮支持
- UVA12563 - Jin Ge Jin Qu hao
- Linux 启动环境变量PATH设置
- 温故而知新系列:正则表达式
- Linux配置VNC Server
- 文件打包和解压缩
- 继承(一)
- CImage实现的全屏PNG截图
- Axis,axis2,Xfire以及cxf对比
- Android-萤石云绕开登录页后台登陆
- CXF3.0.2+Spring3.2.14 WebService入门实例六
- An internal error has occurred. java.lang.NullPointerException
- 关于Eclipse导入的MyEclipse项目,不识别web项目