<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PRESOON.COM &#187; VNC server</title>
	<atom:link href="http://presoon.com/blog/category/vnc-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://presoon.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 03:59:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To install VNC server?</title>
		<link>http://presoon.com/blog/2008/04/09/how-to-install-vncserver/</link>
		<comments>http://presoon.com/blog/2008/04/09/how-to-install-vncserver/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 20:57:25 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[VNC server]]></category>
		<category><![CDATA[RPD]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[VNC viewer]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=4</guid>
		<description><![CDATA[\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Steps in nut shell
For RHEL4
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
up2date @&#8221;KDE (K Desktop Environment)&#8221;
up2date vncserver
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
For RHEL5 or Centos
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
yum groupinstall &#8220;KDE (K Desktop Environment)&#8221;
yum install vncserver
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Edit the lines below in the file /etc/sysconfig/vncservers and add a user &#8220;test&#8221; (user should be a valid user created on your server and not just simply a name).
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
VNCSERVERS=&#8221;1:test&#8221;
VNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768 -depth 16&#8243;
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Add a password
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
$ vncpasswd
Password:
Verify:
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;
Edit the [...]]]></description>
			<content:encoded><![CDATA[<p>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\<br />
Steps in nut shell</p>
<p>For RHEL4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
up2date @&#8221;KDE (K Desktop Environment)&#8221;<br />
up2date vncserver<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>For RHEL5 or Centos<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
yum groupinstall &#8220;KDE (K Desktop Environment)&#8221;<br />
yum install vncserver<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Edit the lines below in the file /etc/sysconfig/vncservers and add a user &#8220;test&#8221; (user should be a valid user created on your server and not just simply a name).<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
VNCSERVERS=&#8221;1:test&#8221;<br />
VNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768 -depth 16&#8243;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Add a password<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
$ vncpasswd<br />
Password:<br />
Verify:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Edit the startup script<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$ vi ~/.vnc/xstartup</p>
<p># Uncomment the following two lines for normal desktop:<br />
unset SESSION_MANAGER<br />
exec /etc/X11/xinit/xinitrc<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Go for Reboot&#8230;&#8230;.(for KDE installation to take effect)</p>
<p>When the server is back<br />
Type the command below to start the VNC server.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$ vncserver :1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Test whether the port is listening.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
telnet localhost 5901<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Open up the port 5901 in your Firewall settings.</p>
<p>From your local machine telnet to the VNC port</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
telnet IP 5901<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>The server is now ready to serve the request.</p>
<p>Connect to VNC server from your local machine.<br />
Allow 5901 in your firewall (local machine)</p>
<p>Now from the console type</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
vncviewer IP:5901<br />
It will ask for you login<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p><strong>How To install VNCserver?</strong></p>
<p><strong></strong><br />
This part is to be done with the server.</p>
<p>Usually Linux servers are not installed with graphical interface(only text mode).<br />
However, for VNC to gain access of the userfriendly interface like windows, KDE (K desktop environment) is installed.</p>
<p><em>Installation of KDE or GNOME</em></p>
<p>===========================</p>
<p>RHEL4<br />
up2date @&#8221;KDE (K Desktop Environment)&#8221;</p>
<p>RHEL5 or Centos<br />
yum groupinstall &#8220;KDE (K Desktop Environment)&#8221;</p>
<p>===========================</p>
<p>Reboot is required for this to take effect.<br />
We will go for reboot after the complete installation.</p>
<p><em>VNC server</em></p>
<p>===========================<br />
RHEL4<br />
up2date vncserver</p>
<p>RHEL5 or Centos<br />
yum install vncserver<br />
===========================</p>
<p>The installation is over.</p>
<p>Next part is to <em>configure VNC.</em></p>
<p>===========================<br />
Add a user(s)</p>
<p>Next we need to add at least 1 VNC user, open the file /etc/sysconfig/vncservers as root and add the information</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
VNCSERVERS=&#8221;1:test&#8221;<br />
VNCSERVERARGS[1]=&#8221;-geometry 1024&#215;768 -depth 16&#8243;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>VNCSERVERS=&#8221;1:test&#8221;, this sets up a users for the vnc server, you can add as many as you like here. The VNCSERVERARGS[1] line refers to the arguments for user 1, in this case the only user (user should be a valid user created on your server and not just simply a name).</p>
<p>Geometry sets the size and depth sets the colour depth<br />
Assuming the client machine has a resolution of 1024&#215;768 and the depth 16</p>
<p>The Port number is obtained 5900 + usernumber.<br />
Here the port number is 5901</p>
<p>If, for example I have 20 users to access the server.<br />
The user 10 will be connecting to port 5900+10</p>
<p>The user should in /etc/sysconfig/vncservers as</p>
<p>VNCSERVERS=&#8221;10:newone&#8221;<br />
VNCSERVERARGS[10]=&#8221;-geometry 1024&#215;768 -depth 16&#8243;</p>
<p><em>Setting password for vncserver</em></p>
<p>Add a password that must be given before a connection can be established, open a terminal and type:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
$ vncpasswd<br />
Password:<br />
Verify:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Edit some startup options and start the server</p>
<p>To start the server we type the command &#8216;vncserver&#8217; and the session you wish to start (if you have set up more than 1 entry in the<br />
/etc/sysconfig/vncservers file:</p>
<p>$ vncserver :1</p>
<p>To start 10th user</p>
<p>$ vncserver :10</p>
<p>The part below will be shown up.</p>
<p>+++++++++++++++++++++++++<br />
Starting VNC server: 1:test<br />
New &#8216;linux.test:1 (test)&#8217; desktop is linux.test:1</p>
<p>Starting applications specified in /home/test/.vnc/xstartup<br />
Log file is /home/test/.vnc/linux.test:1.log<br />
+++++++++++++++++++++++++</p>
<p><em><br />
Next, we need to edit the startup script in the .vnc folder in your home directory.</em></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$ vi ~/.vnc/xstartup</p>
<p># Uncomment the following two lines for normal desktop:<br />
unset SESSION_MANAGER<br />
exec /etc/X11/xinit/xinitrc<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Next we need to restart vncserver to pick up the change we just made.<br />
To restart the vncserver we need to kill the process and start a new one as root</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$ vncserver -kill :1<br />
Killing Xvnc process ID 15562<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Go for Reboot.</p>
<p>Type the command below to start the VNC server.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
$ vncserver :1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Test whether the port is listening.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
telnet localhost 5901<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Open up the port 5901 in your Firewall settings.</p>
<p>From your local machine telnet to the VNC port</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
telnet IP 5901<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>The server is now ready to serve the request.</p>
<p>===========================</p>
<p>Connect to VNC server.</p>
<p>If your local machine is running Linux (Fedora).</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
First we should allow port access 5901(VNC port).<br />
Allow 5901 in your firewall (local machine)</p>
<p>Now from the console type</p>
<p>vncviewer IP:5901<br />
It will ask for you login<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>You need to install the VNC viewer in your local machine.</p>
<p>If your local machine is running Windows, then please use the link to install the VNC client.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>http://www.internetfixes.com/remote_setup/vnc_install.htm</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Thats all enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2008/04/09/how-to-install-vncserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
