<?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>Steve Jenkins&#039; Blog &#187; vncservers</title>
	<atom:link href="http://stevejenkins.com/blog/tag/vncservers/feed/" rel="self" type="application/rss+xml" />
	<link>http://stevejenkins.com/blog</link>
	<description>Tech articles, product reviews, and other geeky stuff.</description>
	<lastBuildDate>Thu, 22 Dec 2011 19:59:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>How to Set Up VNC from Windows to Fedora 14 Over the Internet</title>
		<link>http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/</link>
		<comments>http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 04:36:41 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora 14]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SecureCRT]]></category>
		<category><![CDATA[SSH tunneling]]></category>
		<category><![CDATA[TigerVNC]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[VNC Server]]></category>
		<category><![CDATA[vncserver]]></category>
		<category><![CDATA[vncservers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows to Fedora VNC]]></category>

		<guid isPermaLink="false">http://stevejenkins.com/blog/?p=745</guid>
		<description><![CDATA[Installing the VNC server in Fedora 14 is a little bit different than I described it for Fedora 12, so here are some updated instructions for setting up VNC in Fedora 14 and connecting to it via Windows over the Internet. Step 1: Make sure SSH is Running In all versions prior to Fedora 14, [...]
Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/' rel='bookmark' title='Set up VNC from Windows to Fedora 12 Over the Internet'>Set up VNC from Windows to Fedora 12 Over the Internet</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/dual-boot-windows-7-and-fedora-linux-with-dell-utility-and-recovery-partitions/' rel='bookmark' title='Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions'>Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions</a></li>
<li><a href='http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/' rel='bookmark' title='Set up VNC on RHEL 5.5 / CentOS 5.5'>Set up VNC on RHEL 5.5 / CentOS 5.5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing the VNC server in Fedora 14 is a little bit different than<a href="http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/" target="_self"> I described it for Fedora 12</a>, so here are some updated instructions for setting up VNC in Fedora 14 and connecting to it via Windows over the Internet.<span id="more-745"></span></p>
<h3>Step 1: Make sure SSH is Running</h3>
<p>In all versions prior to Fedora 14, SSH is turned on by default. However, this is no longer the case with Fedora 14. Before being able to connect to your Fedora 14 box over a network, you must have physical access to the machine and explicitly enable SSH from the console. To do this, log in as root and do:</p>
<pre>service sshd start
chkconfig sshd on</pre>
<p>You should also make sure that your firewall settings (if any) allow remote access to port 22 (the default SSH port). I&#8217;ve also written a separate blog post on <a href="http://stevejenkins.com/blog/2010/11/how-to-install-denyhosts-to-block-ssh-attacks-on-rhel-6-centos-5-5-fedora-14/" target="_blank">steps you can take to secure SSH on your server</a>.</p>
<p><span style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 17px; line-height: normal;">Step 2: Install TigerVNC Server on the Remote Fedora 14 Box</span></p>
<p>The TigerVNC server package may have been installed by default on your Fedora 14box when you installed the OS, but to make sure, become root (or sudo) and type:</p>
<pre>yum install tigervnc-server</pre>
<p>If it&#8217;s already installed, Fedora will let you know. If it&#8217;s not, it will be now!</p>
<h3>Step 3: Configure Screen Resolutions, Port Number, and Users on the Remote Fedora 14 Box</h3>
<p>The <strong>/etc/sysconfig/vncservers</strong> file controls which <em>users</em> are allowed to access your Fedora box via VNC, as well as what <em>ports </em>they will connect to, and what <em>screen resolutions</em> each of those users will use when connecting. As root (or with sudo), open the <strong>/etc/sysconfig/vncservers</strong> file with your favorite text editor and find the lines at the bottom that look something like this:</p>
<pre># VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<div>Uncomment those lines, then change &#8220;myusername&#8221; to your Linux username on the first line. On the second line, change the geometry to whatever screen resolution you&#8217;d like for your desktop when remotely connecting (to avoid seeing scroll bars, make sure it&#8217;s smaller than the size of your local desktop), and then, for right now, remove the default <strong>-localhost</strong> option. We&#8217;ll test your VNC connection without it first, and then add that option back later when we&#8217;re sure VNC is working. Assuming your Linux username was <strong>clyde</strong>, those lines should now read:</div>
<pre>VNCSERVERS="2:clyde"
VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp"</pre>
<div>This tells the VNC server to set up VNC display port #2 (the default for remote access) to for clyde to connect with a screen resolution of 800&#215;600.</div>
<h3>Step 4: Configure the VNC Desktop Environment and Password</h3>
<p>For the next step, you should be logged in to your Fedora box as the user whose desktop you&#8217;ll want to access. If you&#8217;re already logged in as root, and your username is <strong>clyde</strong>, type:</p>
<pre>su - clyde</pre>
<p>The hyphen is important, as it will load the local path for clyde, which we&#8217;ll need for the next step. Now type:</p>
<pre>vncserver</pre>
<p>This will run the vncserver program, and will set up default versions of the necessary desktop environment files for whichever user ran the program (in this case, clyde).</p>
<p>The first time you run vncserver, it will look like this:</p>
<pre>You will require a password to access your desktops.

Password:
Verify:
xauth:  creating new authority file /home/stevej/.Xauthority

New 'server.hostname:1 (clyde)' desktop is server.hostname:1

Creating default startup script /home/clyde/.vnc/xstartup
Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:1.log</pre>
<p>When it prompts you for a password, this will be your VNC password, which you&#8217;ll use to connect to your remote desktop. If you choose, this can be different than your Linux account password. If you ever want to change your VNC password, just type <strong>vncpasswd</strong> while logged on as the user whose password you want to change.</p>
<p>The newly created files will be in  the <strong>.vnc</strong> directory under the user&#8217;s home directory (for our example, <strong>/home/clyde/.vnc</strong>). Using your favorite text editor, edit the <strong>/home/<em>username</em>/.vnc/xstartup</strong> file.</p>
<p>Go to the bottom of the file, comment out the <strong>twm &amp;</strong> line, and then add a line that tells VNC to start your desktop of choice. If you want a GNOME desktop, the last two lines should read:</p>
<pre># twm &amp;
startx &amp;</pre>
<p>If you prefer a KDE desktop, they should read:</p>
<pre># twm &amp;
startkde &amp;</pre>
<h3>Step 5: Start the VNC Server Service</h3>
<p>To start and stop services, you&#8217;ll need to be logged in as root. If you&#8217;re still logged in as a different user, type <strong>exit</strong> to get back to the root user. Make sure any previous instance of vncserver service is stopped by typing:</p>
<pre>service vncserver stop</pre>
<p>If you get a <strong>FAILED</strong> message in reply, it&#8217;s OK. That just means that the server wasn&#8217;t running.</p>
<p>Now, start the service with all the settings you&#8217;ve entered with:</p>
<pre>service vncserver start</pre>
<p>You should get a success message that says something like:</p>
<pre>Starting VNC server: 2:clyde
New 'server.hostname:2 (clyde)' desktop is server.hostname:2</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:2.log</pre>
<p>If you get a <strong>FAILED</strong> message, double-check the previous steps. Check for typos in the <strong>/etc/sysconfig/vncservers</strong> file, such as username, and make sure that you don&#8217;t have any spaces in the screen resolution parameter.</p>
<h3>Step 6: Allow sshd to Forward Ports (SELinux users only)</h3>
<p>Check to see if you have SELinux enabled on your system with:</p>
<pre># sestatus</pre>
<p>If you get a reply that says it&#8217;s disabled, you can skip to the next step. If it is enabled, then you need to allow the sshd daemon to forward ports &#8211; otherwise, you&#8217;ll only be able to connect over the local network. Tell SELinux that sshd can forward ports with:</p>
<pre># setsebool -P sshd_forward_ports 1</pre>
<p>(Thanks to James Butler for pointing this out!)</p>
<h3><span style="font-family: Georgia, 'Times New Roman', Times, serif; font-size: 17px; line-height: normal;">Step 7: Configure Firewall Settings</span></h3>
<p>If you have the Linux Firewall turned off on your Fedora 14 box, you can skip this step.</p>
<p>If you&#8217;re using the built-in firewall on your Fedora 14 box, you&#8217;ll need to tell it to allow incoming connections on the port you set up in Step 2 above. The number(s) you used in the <strong>VNCSERVERS= </strong>line(s) of the <strong>/etc/sysconfig/vncservers</strong> file determine which port numbers VNC will listen on. Our example used <strong>VNCSERVERS=&#8221;2:clyde&#8221;</strong>, which means you&#8217;d need to open port 590<strong>2</strong> in your firewall. If you set up other users and/or other ports, then you&#8217;ll need to open those as well: <strong>1</strong>=port 590<strong>1</strong>, <strong>2</strong>= port 590<strong>2</strong>, <strong>3</strong>=port 590<strong>3</strong>, etc.</p>
<p>To add the appropriate port(s) to your firewall, edit the <strong>/etc/sysconfig/iptables </strong>file and add the following line:</p>
<pre> -A INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT</pre>
<p>If you&#8217;re using additional ports for VNC, add a separate line for each.</p>
<p>The following line should already appear somewhere in your <strong>/etc/sysconfig/iptables file</strong>, but if it isn&#8217;t there for some reason, now is a good time to add it so you can connect to your VNC server securely in a later step:</p>
<pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</pre>
<p>Once you&#8217;ve added the appropriate line(s), restart your firewall with:</p>
<pre>service iptables restart</pre>
<h3>Step 8: Configure Router Port Forwarding</h3>
<p>If your network lives behind a router (and most home-based broadband users&#8217; networks do), and you only want to access your Fedora 14 desktop from inside the same local network, then you don&#8217;t need to mess with port forwarding on your router and can skip to the next step.</p>
<p>If the <strong>only </strong>way you plan on connecting to your Fedora 14 desktop over the Internet is via a secure SSH tunnel (which is what I recommend), then you&#8217;ll need to verify that you&#8217;ve properly forwarded port 22 (the default SSH port) on your router to the internal IP address of your Fedora 14 box. If you&#8217;re able to SSH into your Fedora 14 box from outside your router, then you&#8217;ve already got things forwarded properly. Check your router&#8217;s instructions (or the instructions for your router&#8217;s firmware if you&#8217;re using something like <a target="_blank" href="http://www.dd-wrt.com/" target="_blank">DD-WRT</a> or <a target="_blank" href="http://www.polarcloud.com/tomato/" target="_blank">Tomato</a>) on how to set up port forwarding.</p>
<p>If you would like to connect to your Fedora 14 desktop over the Internet <strong>without</strong> a secure SSH tunnel (and I would recommend doing this <strong>only for testing and troubleshooting purposes</strong> and only when first getting things set up), then you&#8217;ll need to forward the appropriate VNC port(s) from your router to your Fedora 14 box (we used port 5902 in our example). Again, this is recomended only for testing purposes, as it is not a secure connection.</p>
<h3>Step 9: Install a VNC Client on Windows</h3>
<p>Because it&#8217;s lightweight, stable, supports the secure connection we&#8217;ll be setting up in a minute, and completely <strong>FREE</strong>, I recommend <strong>TightVNC</strong> client, which can be downloaded <a target="_blank" href="http://www.tightvnc.com/" target="_blank">here</a>. But there are many other good VNC clients available out there, including <a target="_blank" href="http://www.realvnc.com/" target="_blank">RealVNC</a>, and an interesting one called <a target="_blank" href="http://www.codeplex.com/Terminals" target="_blank">Terminals</a>, which allows you to set up multiple tabs in one application with both Windows RDC and Linux VNC connections, kind of like tabs in your Web browser.</p>
<p>So download and install the VNC client of your choice.</p>
<h3>Step 10: Connect to your VNC Server</h3>
<p>Open your VNC client and connect to the appropriate IP address of your Fedora 14 box and the port that you chose in /etc/sysconfig/vncservers.</p>
<p>If you&#8217;re connecting from inside your network and the IP address of your Fedora 14 box is 192.168.1.100, then to connect to port #2 as in our example, you&#8217;d connect to <strong>192.168.1.100:5902</strong>.</p>
<p>If you&#8217;re connecting from outside your nework and want to connect to port #2 as in our example, then use your WAN IP and VNC port instead, as in <strong>222.33.444.55:5902</strong>.</p>
<p>You&#8217;ll be prompted for the VNC password you set up in an earlier step, and the desktop you configured in <strong>/home/<em>username</em>/.vnc/xstartup</strong> should display.</p>
<p>If you are unable to connect, go back and carefully re-check each step. It&#8217;s probably a very simple typo or a small thing you forgot.</p>
<h3>Step 11: Connect to your VNC Server with SSH Tunneling</h3>
<p>Now that you know your VNC server is running properly, it&#8217;s time to secure things. This isn&#8217;t necessary when connecting to your Fedora 14 box via VNC inside a trusted network. But if you want to connect over the Internet, you really should take this extra step, which will only take a couple of minutes to configure.</p>
<p>First, you&#8217;ll need a Windows SSH client. I use <a target="_blank" href="http://www.vandyke.com/products/securecrt/" target="_blank">SecureCRT </a>(which is a commercial app with a free trial period), but you can also do it easily with a very popular freeware Windows SSH client called <a target="_blank" rel="nofollow" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a>.</p>
<p>The idea behind SSH tunneling is to establish a secure SSH connection between your Windows box and the remote Fedora 14 box, and then &#8220;tunnel&#8221; the VNC connection through your SSH connection. Don&#8217;t worry&#8230; it&#8217;s much easier than it sounds.</p>
<p>In SecureCRT: create a new connection to the IP address or hostname of your remote Fedora 14 box (or the external IP address of the router if you&#8217;re connecting from outside the local network). Under the <strong>Connection</strong> category, set the protocol to <strong>SSH2</strong>. In the <strong>SSH2</strong> sub-category, use port 22, and be sure to use the username on the Fedora 14 box that you configured in <strong>/etc/sysconfig/vncservers</strong> (in our example, it was clyde). In the <strong>Port Fowarding</strong> sub-category, hit <strong>Add&#8230;</strong>, enter a descriptive name for the forwarded connection (such as <strong>VNC</strong>), then put the port number that corresponds to the number you set up in <strong>/etc/sysconfig/vncservers</strong> for that username in both port fields (in our example, both would be 5902). None of the checkboxes need to be selected. Save your new connection, then click <strong>Connect</strong>. A terminal window should appear, and you&#8217;ll be prompted for your username and password. Use your Fedora account username and password (which may be different than the VNC password you set up).</p>
<p>In PuTTY: enter the IP address or hostname of your remote Fedora 14 box (or the external IP address of the router if you&#8217;re connecting from outside the local network). Click the <strong>+</strong> next to the <strong>SSH</strong> sub-category, then click <strong>Tunnels</strong>. Enter the port number that corresponds to the number you set up in <strong>/etc/sysconfig/vncservers</strong> in the <strong>Source port</strong> field (in our example, it would be 5902), then enter <strong>localhost:5902</strong> (or a different port if applicable) in the <strong>Destination </strong>field, then click on <strong>Add</strong>. Scroll up and click on the <strong>Session </strong>category. Type in a name for the session in the <strong>Saved Sessions </strong>field then press <strong>Save</strong>. Click <strong>Open </strong>to establish the connection. A terminal window should appear, and you&#8217;ll be prompted for your username and password. Use your Fedora account username and password (which may be different than the VNC password you set up).</p>
<p>You&#8217;ve essentially told your SSH client to &#8220;listen&#8221; for local connections to port 5902 on localhost (your Windows box), and then tunnel those connections over to port 5902 on the remote host (your Fedora 14 box) using your secure SSH connection.</p>
<p>Once your SSH connection is established (whether by SecureCRT, PuTTY, or some other client), open your VNC client viewer and connect to <strong>localhost:5902</strong>. The VNC client should establish the connection, prompt for the VNC password (which may not be the same as your Fedora account password), and then display the remote desktop.</p>
<h3>Step 12: Securing Things and Tidying Up</h3>
<p>To finish securing your VNC server, there are a few final steps you should take.</p>
<p>First, exit your VNC client (you can just close it), then exit your SSH tunneling session by typing <strong>exit </strong>from the command prompt. Re-connect to your Fedora 14 box with a standard (non-tunneling) SSH connection and become root. Edit the <strong>/etc/sysconfig/vncservers</strong> file and add the <strong>-localhost</strong> option to the <strong>VNCSERVERARGS</strong> line, so that it reads:</p>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"</pre>
<p>This option tells the VNC server not to accept remote connections from VNC clients without a secure tunnel.</p>
<p>Restart the VNC server with this new option by typing:</p>
<pre>service vncserver restart</pre>
<p>Next, if you forwarded port 5902 on your router (or any other ports for your VNC server) for testing purposes in Step 6 above, now would be a good time to undo that forwarding. You don&#8217;t need those ports forwarded anymore now that you&#8217;ve got SSH tunneling working. You do, however, still need the VNC ports open on your Fedora box&#8217;s firewall, so keep any <strong>/etc/sysconfig/iptables </strong>changes you made while setting up VNC.</p>
<h3>Optional Step: Starting Multiple VNC Sessions</h3>
<p>If you&#8217;d like to start multiple instances of the VNC server on your Fedora box, you can simply edit your <strong>/etc/sysconfig/vncservers</strong> file. Multiple instances are helpful if you want to allow multiple users to connect to the Fedora box via VNC. You can also set up multiple profiles for the same user, which is useful if you want to allow the same user to access the Fedora box from multiple  remote systems that may have different screen resolutions.</p>
<p>If you&#8217;d like to set up an additional user (we&#8217;ll use <strong>joe</strong> in this example), your<strong> /etc/sysconfig/vncservers</strong> file should include:</p>
<pre>VNCSERVERS="2:clyde 3:joe"</pre>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<p>Notice that the <strong>VNCSERVERS= </strong>line has both users listed on the same line. This is important so that when the vncserver service starts, it will start for all users listed. Add a separate <strong>VNCSERVERARGS= </strong>line for each new user, along with whatever arguments you want. Note also that by using the #3, your VNC server will now also be listening on port 5903 for that user, so set up your firewall, tunnel, and/or VNC client appropriately to listen and/or forward all the ports you want to use.</p>
<p>If you&#8217;d like to set up multiple profiles for the same user, your<strong> /etc/sysconfig/vncservers</strong> file should include:</p>
<pre>VNCSERVERS="2:clyde 3:clyde"</pre>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<p>Now when clyde connects to the VNCSERVER on port 2 5902, he&#8217;ll get 1024&#215;768 desktop. If he connects on port 5903, he&#8217;ll get a <strong>separate</strong> login instance on a <strong>separate</strong> desktop at 800&#215;600. It&#8217;s possible to be connected to both ports at the same time, and have two different desktops running.</p>
<p>Be sure to do a <strong>service vncserver restart</strong> after making any changes to <strong>/etc/sysconfic/vncservers</strong>. You should see output from <strong>all</strong> instances being started, such as:</p>
<pre>Starting VNC server: 2:clyde
New 'server.hostname:2 (clyde)' desktop is server.hostname:2</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:2.log</pre>
<pre>3:clyde
New 'server.hostname:3 (clyde)' desktop is server.hostname:3</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:3.log</pre>
<p><strong>Congratulations!</strong></p>
<p>You&#8217;ve successfully set up your remote Fedora box to accept VNC connections securely. Enjoy your new Windows to Fedora 14 VNC connection!</p>
<p><strong>UPDATE</strong>: If you&#8217;re trying to set up VNC on an RHEL 5.5 or a CentOS 5.5 box, I&#8217;ve made a new <a href="http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/" target="_blank">blog post</a> that walks you through a couple additional steps.</p>
<p>Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/' rel='bookmark' title='Set up VNC from Windows to Fedora 12 Over the Internet'>Set up VNC from Windows to Fedora 12 Over the Internet</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/dual-boot-windows-7-and-fedora-linux-with-dell-utility-and-recovery-partitions/' rel='bookmark' title='Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions'>Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions</a></li>
<li><a href='http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/' rel='bookmark' title='Set up VNC on RHEL 5.5 / CentOS 5.5'>Set up VNC on RHEL 5.5 / CentOS 5.5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Set up VNC on RHEL 5.5 / CentOS 5.5</title>
		<link>http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/</link>
		<comments>http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 02:04:50 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Redhat]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[VNC Server]]></category>
		<category><![CDATA[vncservers]]></category>
		<category><![CDATA[xstartup]]></category>

		<guid isPermaLink="false">http://stevejenkins.com/blog/?p=546</guid>
		<description><![CDATA[Earlier this year, I wrote a blog post detailing how to set up VNC on a Fedora 12 Box and connect to it from a Windows VNC client securely over the Internet. The original article is here. The steps to setting up VNC on RHEL 5.5 and CentOS 5.5 are very similar, with one important [...]
Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2009/12/removing-old-kernels-on-fedora-rhel-or-centos-with-yum/' rel='bookmark' title='Removing Old Kernels on Fedora, RHEL, or CentOS with Yum'>Removing Old Kernels on Fedora, RHEL, or CentOS with Yum</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/running-more-than-4gb-ram-on-fedora-rhel-centos/' rel='bookmark' title='Running more than 4GB RAM on Fedora, RHEL, &amp; CentOS'>Running more than 4GB RAM on Fedora, RHEL, &#038; CentOS</a></li>
<li><a href='http://stevejenkins.com/blog/2011/01/how-to-get-dkim-and-domainkeys-working-with-postfix-on-rhel-5-centos-5-using-opendkim-and-dk-milter/' rel='bookmark' title='How to get DKIM and DomainKeys working with Postfix on RHEL 5 / CentOS 5 using OpenDKIM and dk-milter'>How to get DKIM and DomainKeys working with Postfix on RHEL 5 / CentOS 5 using OpenDKIM and dk-milter</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Earlier this year, I wrote a blog post detailing how to set up VNC on a Fedora 12 Box and connect to it from a Windows VNC client securely over the Internet. The original article is <a href="http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/" target="_blank">here</a>.</p>
<p>The steps to setting up VNC on RHEL 5.5 and CentOS 5.5 are very similar, with one important difference.<span id="more-546"></span> In my previous post&#8217;s &#8220;<strong>Step 3: Configure the VNC Desktop Environment and Password,</strong>&#8221; when you edit the <strong>/home/<em>username</em>/.vnc/xstartup</strong> file, you need to uncomment two lines near the top of the file so that it reads:</p>
<pre># Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc</pre>
<p>After uncommenting those two lines, go to the bottom of the file and comment out the <strong>twm &amp;</strong> line, then add a line that tells VNC to start GNOME desktop. The last two lines should read:</p>
<pre># twm &amp;
startx &amp;</pre>
<p>That&#8217;s it! Now just continue following the instructions in my <a href="http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/" target="_blank">original post</a> and you&#8217;ll be able to set up your RHEL 5.5 / CentOS 5.5 box to accept VNC connections securely.</p>
<p>Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2009/12/removing-old-kernels-on-fedora-rhel-or-centos-with-yum/' rel='bookmark' title='Removing Old Kernels on Fedora, RHEL, or CentOS with Yum'>Removing Old Kernels on Fedora, RHEL, or CentOS with Yum</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/running-more-than-4gb-ram-on-fedora-rhel-centos/' rel='bookmark' title='Running more than 4GB RAM on Fedora, RHEL, &amp; CentOS'>Running more than 4GB RAM on Fedora, RHEL, &#038; CentOS</a></li>
<li><a href='http://stevejenkins.com/blog/2011/01/how-to-get-dkim-and-domainkeys-working-with-postfix-on-rhel-5-centos-5-using-opendkim-and-dk-milter/' rel='bookmark' title='How to get DKIM and DomainKeys working with Postfix on RHEL 5 / CentOS 5 using OpenDKIM and dk-milter'>How to get DKIM and DomainKeys working with Postfix on RHEL 5 / CentOS 5 using OpenDKIM and dk-milter</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Set up VNC from Windows to Fedora 12 Over the Internet</title>
		<link>http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/</link>
		<comments>http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 22:11:28 +0000</pubDate>
		<dc:creator>Steve Jenkins</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Fedora 12]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[SecureCRT]]></category>
		<category><![CDATA[SSH tunneling]]></category>
		<category><![CDATA[TigerVNC]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[VNC Server]]></category>
		<category><![CDATA[vncserver]]></category>
		<category><![CDATA[vncservers]]></category>
		<category><![CDATA[Windows to Fedora VNC]]></category>

		<guid isPermaLink="false">http://stevejenkins.com/blog/?p=400</guid>
		<description><![CDATA[I&#8217;m writing this in a VNC session from Windows 7, via a secure SSH tunnel over the Internet, to a remote Fedora 12 desktop (if you&#8217;re running Fedora 14, I&#8217;ve written a separate blog post about how to do that, too). If you&#8217;d like to be able to do the same thing, just follow these [...]
Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/' rel='bookmark' title='How to Set Up VNC from Windows to Fedora 14 Over the Internet'>How to Set Up VNC from Windows to Fedora 14 Over the Internet</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/dual-boot-windows-7-and-fedora-linux-with-dell-utility-and-recovery-partitions/' rel='bookmark' title='Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions'>Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions</a></li>
<li><a href='http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/' rel='bookmark' title='Set up VNC on RHEL 5.5 / CentOS 5.5'>Set up VNC on RHEL 5.5 / CentOS 5.5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m writing this in a VNC session from Windows 7, via a secure SSH tunnel over the Internet, to a remote Fedora 12 desktop (if you&#8217;re running Fedora 14, I&#8217;ve written a <a href="http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/" target="_self">separate blog post</a> about how to do that, too). If you&#8217;d like to be able to do the same thing, just follow these 10 easy steps:</p>
<h3>Step 1: Install VNC on the Remote Fedora 12 Box</h3>
<p>There are many VNC servers available for Fedora. The TigerVNC server package may have been installed by default on your Fedora 12 box when you installed the OS, but to make sure, become root (or sudo) and type:</p>
<pre>yum install vnc-server</pre>
<p>If it&#8217;s already installed, Fedora will let you know. If it&#8217;s not, it will be now!</p>
<h3>Step 2: Configure Screen Resolutions, Port Number, and Users on the Remote Fedora 12 Box</h3>
<p>The <strong>/etc/sysconfig/vncservers</strong> file controls which <em>users</em> are allowed to access your Fedora box via VNC, as well as what <em>ports </em>they will connect to, and what <em>screen resolutions</em> each of those users will use when connecting. As root (or with sudo), open the <strong>/etc/sysconfig/vncservers</strong> file with your favorite text editor and find the lines at the bottom that look something like this:</p>
<pre># VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<div>Uncomment those lines, then change &#8220;myusername&#8221; to your Linux username on the first line. On the second line, change the geometry to whatever screen resolution you&#8217;d like for your desktop when remotely connecting (to avoid seeing scroll bars, make sure it&#8217;s smaller than the size of your local desktop), and then, for right now, remove the default <strong>-localhost</strong> option. We&#8217;ll test your VNC connection without it first, and then add that option back later when we&#8217;re sure VNC is working. Assuming your Linux username was <strong>clyde</strong>, those lines should now read:</div>
<pre>VNCSERVERS="2:clyde"
VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp"</pre>
<div>This tells the VNC server to set up VNC display port #2 (the default for remote access) to for clyde to connect with a screen resolution of 800&#215;600.</div>
<h3>Step 3: Configure the VNC Desktop Environment and Password</h3>
<p>For the next step, you should be logged in to your Fedora box as the user whose desktop you&#8217;ll want to access. If you&#8217;re already logged in as root, and your username is <strong>clyde</strong>, type:</p>
<pre>su - clyde</pre>
<p>The hyphen is important, as it will load the local path for clyde, which we&#8217;ll need for the next step. Now type:</p>
<pre>vncserver</pre>
<p>This will run the vncserver program, and will set up default versions of the necessary desktop environment files for whichever user ran the program (in this case, clyde).</p>
<p>The first time you run this, you&#8217;ll be prompted for a password. This will be your VNC password, which you&#8217;ll use to connect to your remote desktop. This can be different than your Linux account password, if you choose. If you ever want to change your VNC password, just type <strong>vncpasswd</strong> while logged on as the user whose password you want to change.</p>
<p>The newly created files will be in  the <strong>.vnc</strong> directory under the user&#8217;s home directory (for our example, <strong>/home/clyde/.vnc</strong>). Using your favorite text editor, edit the <strong>/home/<em>username</em>/.vnc/xstartup</strong> file.</p>
<p>Go to the bottom of the file, comment out the <strong>twm &amp;</strong> line, and then add a line that tells VNC to start your desktop of choice. If you want a GNOME desktop, the last two lines should read:</p>
<pre># twm &amp;
startx &amp;</pre>
<p>If you prefer a KDE desktop, they should read:</p>
<pre># twm &amp;
startkde &amp;</pre>
<h3>Step 4: Start the VNC Server Service</h3>
<p>To start and stop services, you&#8217;ll need to be logged in as root. Make sure any previous instance of vncserver service is stopped by typing:</p>
<pre>service vncserver stop</pre>
<p>It&#8217;s OK if you get a <strong>FAILED</strong> message in reply. That just means that the server wasn&#8217;t running.</p>
<p>Start the service with all the settings you&#8217;ve entered with:</p>
<pre>service vncserver start</pre>
<p>You should get a success message that says something like:</p>
<pre>Starting VNC server: 2:clyde
New 'server.hostname:2 (clyde)' desktop is server.hostname:2</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:2.log</pre>
<h3>Step 5: Configure Firewall Settings</h3>
<p>If you have the Linux Firewall turned off on your Fedora 12 box, you can skip this step.</p>
<p>If you&#8217;re using the built-in firewall on your Fedora 12 box, you&#8217;ll need to tell it to allow incoming connections on the port you set up in Step 2 above. The number(s) you used in the <strong>VNCSERVERS= </strong>line(s) of the <strong>/etc/sysconfig/vncservers</strong> file determine which port numbers VNC will listen on. Our example used <strong>VNCSERVERS=&#8221;2:clyde&#8221;</strong>, which means you&#8217;d need to open port 590<strong>2</strong> in your firewall. If you set up other users and/or other ports, then you&#8217;ll need to open those as well: <strong>1</strong>=port 590<strong>1</strong>, <strong>2</strong>= port 590<strong>2</strong>, <strong>3</strong>=port 590<strong>3</strong>, etc.</p>
<p>To add the appropriate port(s) to your firewall, edit the <strong>/etc/sysconfig/iptables </strong>file and add the following line:</p>
<pre> -A INPUT -m state --state NEW -m tcp -p tcp --dport 5902 -j ACCEPT</pre>
<p>If you&#8217;re using additional ports for VNC, add a separate line for each.</p>
<p>The following line should already appear somewhere in your <strong>/etc/sysconfig/iptables file</strong>, but if it isn&#8217;t there for some reason, now is a good time to add it so you can connect to your VNC server securely in a later step:</p>
<pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</pre>
<p>Once you&#8217;ve added the appropriate line(s), restart your firewall with:</p>
<pre>service iptables restart</pre>
<h3>Step 6: Configure Router Port Forwarding</h3>
<p>If your network lives behind a router (and most home-based broadband users&#8217; networks do), and you only want to access your Fedora 12 desktop from inside the same local network, then you don&#8217;t need to mess with port forwarding on your router and can skip to the next step.</p>
<p>If the <strong>only </strong>way you plan on connecting to your Fedora 12 desktop over the Internet is via a secure SSH tunnel (which is what I recommend), then you&#8217;ll need to verify that you&#8217;ve properly forwarded port 22 (the default SSH port) on your router to the internal IP address of your Fedora 12 box. If you&#8217;re able to SSH into your Fedora 12 box from outside your router, then you&#8217;ve already got things forwarded properly. Check your router&#8217;s instructions (or the instructions for your router&#8217;s firmware if you&#8217;re using something like <a target="_blank" href="http://www.dd-wrt.com/" target="_blank">DD-WRT</a> or <a target="_blank" href="http://www.polarcloud.com/tomato/" target="_blank">Tomato</a>) on how to set up port forwarding.</p>
<p>If you would like to connect to your Fedora 12 desktop over the Internet <strong>without</strong> a secure SSH tunnel (and I would recommend doing this <strong>only for testing and troubleshooting purposes</strong> and only when first getting things set up), then you&#8217;ll need to forward the appropriate VNC port(s) from your router to your Fedora 12 box (we used port 5902 in our example). Again, this is recomended only for testing purposes, as it is not a secure connection.</p>
<h3>Step 7: Install a VNC Client on Windows</h3>
<p>Because it&#8217;s lightweight, stable, supports the secure connection we&#8217;ll be setting up in a minute, and completely <strong>FREE</strong>, I recommend <strong>TightVNC</strong> client, which can be downloaded <a target="_blank" href="http://www.tightvnc.com/" target="_blank">here</a>. But there are many other good VNC clients available out there, including <a target="_blank" href="http://www.realvnc.com/" target="_blank">RealVNC</a>, and an interesting one called <a target="_blank" href="http://www.codeplex.com/Terminals" target="_blank">Terminals</a>, which allows you to set up multiple tabs in one application with both Windows RDC and Linux VNC connections, kind of like tabs in your Web browser.</p>
<p>So download and install the VNC client of your choice.</p>
<h3>Step 8: Connect to your VNC Server</h3>
<p>Open your VNC client and connect to the appropriate IP address of your Fedora 12 box and the port that you chose in /etc/sysconfig/vncservers.</p>
<p>If you&#8217;re connecting from inside your network and the IP address of your Fedora 12 box is 192.168.1.100, then to connect to port #2 as in our example, you&#8217;d connect to <strong>192.168.1.100:5902</strong>.</p>
<p>If you&#8217;re connecting from outside your nework and want to connect to port #2 as in our example, then use your WAN IP and VNC port instead, as in <strong>222.33.444.55:5902</strong>.</p>
<p>You&#8217;ll be prompted for the VNC password you set up in an earlier step, and the desktop you configured in <strong>/home/<em>username</em>/.vnc/xstartup</strong> should display.</p>
<p>If you are unable to connect, go back and carefully re-check each step. It&#8217;s probably a very simple typo or a small thing you forgot.</p>
<h3>Step 9: Connect to your VNC Server with SSH Tunneling</h3>
<p>Now that you know your VNC server is running properly, it&#8217;s time to secure things. This isn&#8217;t necessary when connecting to your Fedora 12 box via VNC inside a trusted network. But if you want to connect over the Internet, you really should take this extra step, which will only take a couple of minutes to configure.</p>
<p>First, you&#8217;ll need a Windows SSH client. I use <a target="_blank" href="http://www.vandyke.com/products/securecrt/" target="_blank">SecureCRT </a>(which is a commercial app with a free trial period), but you can also do it easily with a very popular freeware Windows SSH client called <a target="_blank" rel="nofollow" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a>.</p>
<p>The idea behind SSH tunneling is to establish a secure SSH connection between your Windows box and the remote Fedora 12 box, and then &#8220;tunnel&#8221; the VNC connection through your SSH connection. Don&#8217;t worry&#8230; it&#8217;s much easier than it sounds.</p>
<p>In SecureCRT: create a new connection to the IP address or hostname of your remote Fedora 12 box (or the external IP address of the router if you&#8217;re connecting from outside the local network). Under the <strong>Connection</strong> category, set the protocol to <strong>SSH2</strong>. In the <strong>SSH2</strong> sub-category, use port 22, and be sure to use the username on the Fedora 12 box that you configured in <strong>/etc/sysconfig/vncservers</strong> (in our example, it was clyde). In the <strong>Port Fowarding</strong> sub-category, hit <strong>Add&#8230;</strong>, enter a descriptive name for the forwarded connection (such as <strong>VNC</strong>), then put the port number that corresponds to the number you set up in <strong>/etc/sysconfig/vncservers</strong> for that username in both port fields (in our example, both would be 5902). None of the checkboxes need to be selected. Save your new connection, then click <strong>Connect</strong>. A terminal window should appear, and you&#8217;ll be prompted for your username and password. Use your Fedora account username and password (which may be different than the VNC password you set up).</p>
<p>In PuTTY: enter the IP address or hostname of your remote Fedora 12 box (or the external IP address of the router if you&#8217;re connecting from outside the local network). Click the <strong>+</strong> next to the <strong>SSH</strong> sub-category, then click <strong>Tunnels</strong>. Enter the port number that corresponds to the number you set up in <strong>/etc/sysconfig/vncservers</strong> in the <strong>Source port</strong> field (in our example, it would be 5902), then enter <strong>localhost:5902</strong> (or a different port if applicable) in the <strong>Destination </strong>field, then click on <strong>Add</strong>. Scroll up and click on the <strong>Session </strong>category. Type in a name for the session in the <strong>Saved Sessions </strong>field then press <strong>Save</strong>. Click <strong>Open </strong>to establish the connection. A terminal window should appear, and you&#8217;ll be prompted for your username and password. Use your Fedora account username and password (which may be different than the VNC password you set up).</p>
<p>You&#8217;ve essentially told your SSH client to &#8220;listen&#8221; for local connections to port 5902 on localhost (your Windows box), and then tunnel those connections over to port 5902 on the remote host (your Fedora 12 box) using your secure SSH connection.</p>
<p>Once your SSH connection is established (whether by SecureCRT, PuTTY, or some other client), open your VNC client viewer and connect to <strong>localhost:5902</strong>. The VNC client should establish the connection, prompt for the VNC password (which may not be the same as your Fedora account password), and then display the remote desktop.</p>
<h3>Step 10: Securing Things and Tidying Up</h3>
<p>To finish securing your VNC server, there are a few final steps you should take.</p>
<p>First, exit your VNC client (you can just close it), then exit your SSH tunneling session by typing <strong>exit </strong>from the command prompt. Re-connect to your Fedora 12 box with a standard (non-tunneling) SSH connection and become root. Edit the <strong>/etc/sysconfig/vncservers</strong> file and add the <strong>-localhost</strong> option to the <strong>VNCSERVERARGS</strong> line, so that it reads:</p>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"</pre>
<p>This option tells the VNC server not to accept remote connections from VNC clients without a secure tunnel.</p>
<p>Restart the VNC server with this new option by typing:</p>
<pre>service vncserver restart</pre>
<p>Next, if you forwarded port 5902 on your router (or any other ports for your VNC server) for testing purposes in Step 6 above, now would be a good time to undo that forwarding. You don&#8217;t need those ports forwarded anymore now that you&#8217;ve got SSH tunneling working. You do, however, still need the VNC ports open on your Fedora box&#8217;s firewall, so keep any <strong>/etc/sysconfig/iptables </strong>changes you made while setting up VNC.</p>
<h3>Optional Step: Starting Multiple VNC Sessions</h3>
<p>If you&#8217;d like to start multiple instances of the VNC server on your Fedora box, you can simply edit your <strong>/etc/sysconfig/vncservers</strong> file. Multiple instances are helpful if you want to allow multiple users to connect to the Fedora box via VNC. You can also set up multiple profiles for the same user, which is useful if you want to allow the same user to access the Fedora box from multiple  remote systems that may have different screen resolutions.</p>
<p>If you&#8217;d like to set up an additional user (we&#8217;ll use <strong>joe</strong> in this example), your<strong> /etc/sysconfig/vncservers</strong> file should include:</p>
<pre>VNCSERVERS="2:clyde 3:joe"</pre>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<p>Notice that the <strong>VNCSERVERS= </strong>line has both users listed on the same line. This is important so that when the vncserver service starts, it will start for all users listed. Add a separate <strong>VNCSERVERARGS= </strong>line for each new user, along with whatever arguments you want. Note also that by using the #3, your VNC server will now also be listening on port 5903 for that user, so set up your firewall, tunnel, and/or VNC client appropriately to listen and/or forward all the ports you want to use.</p>
<p>If you&#8217;d like to set up multiple profiles for the same user, your<strong> /etc/sysconfig/vncservers</strong> file should include:</p>
<pre>VNCSERVERS="2:clyde 3:clyde"</pre>
<pre>VNCSERVERARGS[2]="-geometry 1024x768 -nolisten tcp -localhost"
VNCSERVERARGS[3]="-geometry 800x600 -nolisten tcp -localhost"</pre>
<p>Now when clyde connects to the VNCSERVER on port 2 5902, he&#8217;ll get 1024&#215;768 desktop. If he connects on port 5903, he&#8217;ll get a <strong>separate</strong> login instance on a <strong>separate</strong> desktop at 800&#215;600. It&#8217;s possible to be connected to both ports at the same time, and have two different desktops running.</p>
<p>Be sure to do a <strong>service vncserver restart</strong> after making any changes to <strong>/etc/sysconfic/vncservers</strong>. You should see output from <strong>all</strong> instances being started, such as:</p>
<pre>Starting VNC server: 2:clyde
New 'server.hostname:2 (clyde)' desktop is server.hostname:2</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:2.log</pre>
<pre>3:clyde
New 'server.hostname:3 (clyde)' desktop is server.hostname:3</pre>
<pre>Starting applications specified in /home/clyde/.vnc/xstartup
Log file is /home/clyde/.vnc/server.hostname:3.log</pre>
<p><strong>Congratulations!</strong></p>
<p>You&#8217;ve successfully set up your remote Fedora box to accept VNC connections securely. Enjoy your new Windows to Fedora 12 VNC connection!</p>
<p>(To give credit where credit is due, <a target="_blank" href="http://www.techotopia.com/index.php/Remote_Access_to_the_Fedora_Linux_Desktop" target="_blank">this article</a> was very helpful when I was trying to set up VNC on my system for the first time)</p>
<p><strong>UPDATE</strong>: If you&#8217;re trying to set up VNC on an RHEL 5.5 or a CentOS 5.5 box, I&#8217;ve made a new <a href="http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/" target="_blank">blog post</a> that walks you through a couple additional steps.</p>
<p>Related posts:<ol>
<li><a href='http://stevejenkins.com/blog/2010/11/how-to-set-up-vnc-from-windows-to-fedora-14-over-the-internet/' rel='bookmark' title='How to Set Up VNC from Windows to Fedora 14 Over the Internet'>How to Set Up VNC from Windows to Fedora 14 Over the Internet</a></li>
<li><a href='http://stevejenkins.com/blog/2009/12/dual-boot-windows-7-and-fedora-linux-with-dell-utility-and-recovery-partitions/' rel='bookmark' title='Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions'>Dual Boot Windows 7 and Fedora 12 Linux with Dell Utility and Recovery Partitions</a></li>
<li><a href='http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/' rel='bookmark' title='Set up VNC on RHEL 5.5 / CentOS 5.5'>Set up VNC on RHEL 5.5 / CentOS 5.5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching using apc
Object Caching 1220/1296 objects using apc

Served from: stevejenkins.com @ 2012-02-04 23:23:30 -->
