VNC Server Installation on CentOS 6.5
In my case I have a fresh installed CentOS6.5 Server on which I will be installing the VNC-server so that I can access the CentOS server with GUI. You can follow the guide for the basic installation of the CentOS server till Chapter 7. Please don't install the Development Tools. All of the cases are same as per the guide. My details are as follows:
IP address 192.168.0.100
Gateway 192.168.0.1
DNS 8.8.8.8 8.8.4.4
Hostname server1.example.com
VNC-server benefits
- Remote GUI administration makes work easy & convenient.
- Clipboard sharing between host CentOS server & VNC-client machine.
- GUI tools can be installed on the host CentOS server to make the administration more powerful
- Host CentOS server can be administered through any OS having the VNC-client installed.
- More reliable over ssh graphics.
- More reliable over RDP connections.
2 Installation
I am logged in my system with root, & now I will be installing the VNC-server.
yum groupinstall Desktop
Further install
yum install gnome-core xfce4 firefox
yum install tigervnc-server
Now make the service on after every reboot
chkconfig vncserver on
3 Adding VNC user
In my case I am using user=srijan it will differ in your case. You can use any username for the same.
useradd srijan
Now I will assign the vncpassword for the user with the user I just created before as:
su - srijan
vncpasswd
[root@server1 ~]# su - srijan
[srijan@server1 ~]$ vncpasswd
Password:<--yourvncpassword
Verify:<--yourvncpassword
[srijan@server1 ~]$
Now I will make the configuration file for the vncserver by creating file as follows:
vi /etc/sysconfig/vncservers
Give the entries like this.
[...] |
Here your port comes to be 5901 & 1024x768 resolution for the VNC client, you can choose resolution of your own choice.
Now I will restart the VNC server service as root user:
service vncserver restart
[root@server1 ~]# service vncserver restart
Shutting down VNC server: [ OK ]
Starting VNC server: 1:srijan xauth: creating new authority file /home/srijan/.Xauthority New 'server1.example.com:1 (srijan)' desktop is server1.example.com:1 Creating default startup script /home/srijan/.vnc/xstartup
Starting applications specified in /home/srijan/.vnc/xstartup
Log file is /home/srijan/.vnc/server1.example.com:1.log [ OK ]
[root@server1 ~]#
Now to make the changes affective I will kill VNC & do some more configurations as follows:
pkill vnc
Open the file comment the line #twm & & add the line exec gnome-session as follows:
vi /home/srijan/.vnc/xstartup
#!/bin/sh [ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n |
& Finally reboot the machine.
reboot
4 VNC Client
At client end my OS is Ubuntu14.04 with vino installed on my client
machine. Otherwise you can install any VNC-client of your choice. In
case other OS say windows-7 you can install Realvnc-client or any other
of your choice.
Again start the vncservice with the user srijan:
su - srijan
vncserver
[root@server1 ~]# su - srijan
[srijan@server1 ~]$ vncserver
New 'server1.example.com:1 (srijan)' desktop is server1.example.com:1
Starting applications specified in /home/srijan/.vnc/xstartup
Log file is /home/srijan/.vnc/server1.example.com:1.log
[srijan@server1 ~]$
Now I am going to connect with the VNC server through my VNC-client

It will prompt for the password as follows:

Put yourvncpassword the same which you gave at the time of adding the user srijan.

Now
you are connected with the CentOS6.5 Server. In case you want to add
more users to access the vnc-console you need to add the user, assign
the vncpassword for the new-user as mentioned above & append the
entry in the file as:
vi /etc/sysconfig/vncservers
For instance I am using user kishore, entries will be like this
[..]
VNCSERVERS="2:kishore" |
This will enable user kishore to get the access to the VNC-server with the port 5902. In the same way you can add the root user also.

Congrats you have configured the VNC-server successfully :)
All Rights Reserved.
VNC Server Installation on CentOS 6.5的更多相关文章
- CentOS 8 配置 VNC Server
CentOS 8 配置 VNC Server 2020-12-31 | 标签: centos, vnc 前言 CentOS 8 配置 VNC Server, 使用户可以远程访问,本例介绍安装和配置流程 ...
- CentOS 安装VNC Server
环境 服务器:192.168.10.181 系统:CentOS 6.0 安装过程 1.切换至root用户 2.检测系统是否安装VNC [root@Nginx canyouNgx]# rpm -q vn ...
- (总结)CentOS Linux下VNC Server远程桌面配置详解
一.安装相应桌面环境与vnc服务端和客户端: # yum groupinstall "GNOME Desktop Environment"(CentOS 5.x安装GNOME桌面环 ...
- CentOS Linux下VNC Server远程桌面配置详解
http://www.ha97.com/4634.html PS:偶以前基本不用Linux的远程图形桌面,前几天有开发的同事配置CentOS的vnc有问题,找我解决,就顺便记录总结一下,这个总结是比较 ...
- CentOS中配置VNC Server
环境:CentOS 6.4 1.安装tigervnc-server及相关软件 首先检查系统中是否安装tigervnc-server安装包 rpm -qa tigervnc-server 如果没有就直接 ...
- Domino Server installation on Linux (Centos or Redhat) – something somewhere
something somewhere welcome in there…:) Just another techki site howto / Linux / Lotus Domino 0 Domi ...
- VNC CentOS Linux下VNC Server远程桌面配置详解
VNC概述 VNC (Virtual Network Console)是虚拟网络控制台的缩写.VNC 是一款优秀的远程控制工具软件,由著名的 AT&T 的欧洲研究实验室开发的.VNC 是在基于 ...
- Centos自动登录系统并自动打开VNC Server
系统自动登录 修改配置文件 sudo vim /etc/gdm/custom.conf 增加配置 [daemon] AutomaticLogin=spark AutomaticLoginEnable= ...
- 在CentOS 7.6上安装VNC Server
停止并禁用防火墙 systemctl stop firewalld.service systemctl disable firewalld.service 安装vnxserver yum instal ...
随机推荐
- Gym - 101982B 2018-2019 ACM-ICPC Pacific Northwest Regional Contest (Div. 1) B. Coprime Integers Mobius+容斥 ab间gcd(x,y)=1的对数
题面 题意:给你 abcd(1e7),求a<=x<=b,c<=y<=d的,gcd(x,y)=1的数量 题解:经典题目,求从1的到n中选x,从1到m中选y的,gcd(x,y)=k ...
- [Swift通天遁地]四、网络和线程-(2)通过BlockOperation实现线程的队列
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★➤微信公众号:山青咏芝(shanqingyongzhi)➤博客园地址:山青咏芝(https://www.cnblogs. ...
- 巴什博弈------最少取件数 不是1的情况下 hdu---2897
最少取件数 是1的时候 核心代码是 // 共有 n 见 物品 一次最少取 一个 最多取 m 个 )==) printf("先取者输"); 在代码中 可以看到 题目中 一共 ...
- day03_12/13/2016_bean的管理之依赖注入
- 笔记《精通css》第3章 盒模型,定位,浮动,清理
第3章 盒模型,定位,浮动,清理 1.盒模型用到的属性width,height,padding,border,margin 普通文档流的上下垂直margin会叠加 2.块级框 与 行内框, 利用 ...
- 程序员的幽默-献给所有Java程序员
1. 一程序员去面试,面试官问:“你毕业才两年,这三年工作经验是怎么来的?!”程序员答:“加班.” 2. 某程序员对书法十分感兴趣,退休后决定在这方面有所建树.于是花重金购买了上等的文房四宝.一日,饭 ...
- 我的liunx开发环境的配置之路
相信有不少人和我一样,虽然是做纯linux开发,但并不排斥windows,并且喜欢在windows下面的使用各种好用的工具来让linux的编程工作变得更加方便.实际上每一个系统都有他的过人支持,win ...
- kickstart配置文件详解和system-config-kickstart (转载)
kickstart是什么 许多系统管理员宁愿使用自动化的安装方法来安装红帽企业 Linux.为了满足这种需要,红帽创建了kickstart安装方法.使用kickstart,系统管理员可以 ...
- Python之模块、正则
一.模块import 模块的实质就是把要导入模块里面的代码,从上到下执行一遍,找模块的顺序是,先从当前目录下找,找不到的话,再环境变量里面找导入的模块名字最好不要有.,a.import sysprin ...
- Windows系统设置与北京Internet时间同步
找到提供Ntp服务器的网址:http://support.ntp.org/我从中找到东北大学的: ntp.neu.edu.cn ( 202.118.1.46 ) 长话短说,下面开始设置: 修改后的值 ...