CentOS下配置VNC
配置桌面
# 安装gnome桌面环境
yum groupinstall Desktop -y
# 安装中文语言支持包(可选)
yum groupinstall 'Chinese Support' -y
# 设置系统默认语言为中文(可选)
sed -i '/LANG/c\LANG="zh_CN.UTF-8"' /etc/sysconfig/i18n
source /etc/sysconfig/i18n
配置VNC Server
#安装vncserver包
yum install tigervnc tigervnc-server –y
#开启自启动
chkconfig vncserver on
你可以通过UltraVNC Viewer、TigerVNC Viewer或者RealVNC Viewer访问远程桌面了。
#确认vncserver包已经安装
[root@su172 ~]# rpm -qa | egrep -i vnc
tigervnc-server-1.1.0-16.el6.centos.x86_64
[root@su172 ~]#
#确认rpm包配置文件路径
[root@su172 ~]# rpm -ql tigervnc-server-1.1.0-16.el6.centos.x86_64
/etc/rc.d/init.d/vncserver
/etc/sysconfig/vncservers
/usr/bin/Xvnc
/usr/bin/vncconfig
/usr/bin/vncpasswd
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/share/man/man1/Xvnc.1.gz
/usr/share/man/man1/vncconfig.1.gz
/usr/share/man/man1/vncpasswd.1.gz
/usr/share/man/man1/vncserver.1.gz
/usr/share/man/man1/x0vncserver.1.gz
#root用户启动vncserver
#输入以root用户登录vncserver时的密码
[root@su172 ~]# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: (stdin):1: bad display name "su172:1" in "add" command
New 'su172:1 (root)' desktop is su172:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/su172:1.log
[root@su172 ~]# cd .vnc/
[root@su172 .vnc]# ls
passwd su172:1.log su172:1.pid xstartup
#普通用户启动vncserver
[appuser@su172 ~]$vncserver
#普通用户需要手工改密码
[appuser@su172 ~]$ vncpasswd
Password:
Verify:
#root验证
#普通user验证
#在Server端进行端口验证
#确认vcn进程
#kill vnc进程验证
#参考
http://www.centoscn.com/image-text/config/2014/1120/4151.html
- linux服务器上定时备份 mysql 数据库
- Linux背景
- Linux下源码安装php7.0.6
- Linux命令行执行.sql文件及常用sql命令
- Linux kernel源码阅读笔记2-2.6版本调度器sched.c功能
- Linux curl命令参数详解
- Linux下安装Nodejs
- centos 例行性工作转发外部邮箱
- linux 设置IP DNS 网关
- linux 设置IP DNS 网关
- CentOS tar加解压文件
- 初识Linux
- CentOS 安装 JDK
- cobbler 远程安装带图像化的centos服务器 kickstart文件
- centos 下运行程序出现error while loading shared libraries cannot open shared object file错误
- Linux查看进程运行的完整路径
- 珠海全志公司的 Linux 内核遗留了后门
- linux下实现桥接联网
- linux gcc 4.8.5 升级编译
- Centos6 内核开发环境搭建