<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Linux: Headless Ubuntu with VNC</title>
	<atom:link href="http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/</link>
	<description>Ramblings of a Technology Handyman.</description>
	<lastBuildDate>Wed, 29 Dec 2010 19:08:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Scott Yee</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-24</link>
		<dc:creator>Scott Yee</dc:creator>
		<pubDate>Wed, 29 Dec 2010 19:08:36 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-24</guid>
		<description>Hi John,

Hmmm, I’ve never performed a full xfce install, but after some searching, there are a few things you can try to maybe fix this error. I’ve seen a few forum posts that state that you will need to make sure that xserver is installed, try the command “sudo apt-get install xserver-xorg”

Also you may want to verify the permissions and ownership of xserver, you may want to try,
sudo chmod a+s /usr/bin/X /usr/bin/Xorg

References:
– http://www.linuxquestions.org/questions/linux-software-2/xinit-x-problem-237498/
– https://help.ubuntu.com/community/XineramaHowTo

I hope this helps.

- Scott</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>Hmmm, I’ve never performed a full xfce install, but after some searching, there are a few things you can try to maybe fix this error. I’ve seen a few forum posts that state that you will need to make sure that xserver is installed, try the command “sudo apt-get install xserver-xorg”</p>
<p>Also you may want to verify the permissions and ownership of xserver, you may want to try,<br />
sudo chmod a+s /usr/bin/X /usr/bin/Xorg</p>
<p>References:<br />
– <a href="http://www.linuxquestions.org/questions/linux-software-2/xinit-x-problem-237498/" rel="nofollow">http://www.linuxquestions.org/questions/linux-software-2/xinit-x-problem-237498/</a><br />
– <a href="https://help.ubuntu.com/community/XineramaHowTo" rel="nofollow">https://help.ubuntu.com/community/XineramaHowTo</a></p>
<p>I hope this helps.</p>
<p>- Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Hunter</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-22</link>
		<dc:creator>John Hunter</dc:creator>
		<pubDate>Tue, 28 Dec 2010 03:15:20 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-22</guid>
		<description>Great guide.  I have tried to use it to setup xubuntu desktop.  I think I have done everything but I can&#039;t get the GUI interface xfce to work on the server it says 

Fatal server error: no screens found

xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.

Any idea of what I can try?</description>
		<content:encoded><![CDATA[<p>Great guide.  I have tried to use it to setup xubuntu desktop.  I think I have done everything but I can&#8217;t get the GUI interface xfce to work on the server it says </p>
<p>Fatal server error: no screens found</p>
<p>xinit:  No such file or directory (errno 2):  unable to connect to X server<br />
xinit:  No such process (errno 3):  Server error.</p>
<p>Any idea of what I can try?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harriet Snaples</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-21</link>
		<dc:creator>Harriet Snaples</dc:creator>
		<pubDate>Mon, 25 Oct 2010 00:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-21</guid>
		<description>Great stuff, liked this post!</description>
		<content:encoded><![CDATA[<p>Great stuff, liked this post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Yee</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-19</link>
		<dc:creator>Scott Yee</dc:creator>
		<pubDate>Sun, 24 Jan 2010 12:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-19</guid>
		<description>Derek, thanks for the comments, I&#039;ve been wanting to look into security issues next on my box setup.</description>
		<content:encoded><![CDATA[<p>Derek, thanks for the comments, I&#8217;ve been wanting to look into security issues next on my box setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-18</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 14 Jan 2010 00:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-18</guid>
		<description>Forgot to mention: If you have many users using a VNC desktop server, you probably want to prevent them from being able to shut down the computer.  See &quot;Security Issues&quot; at http://homepage.ntlworld.com/daniel.rigal/xdmvnc.html</description>
		<content:encoded><![CDATA[<p>Forgot to mention: If you have many users using a VNC desktop server, you probably want to prevent them from being able to shut down the computer.  See &#8220;Security Issues&#8221; at <a href="http://homepage.ntlworld.com/daniel.rigal/xdmvnc.html" rel="nofollow">http://homepage.ntlworld.com/daniel.rigal/xdmvnc.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-17</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 14 Jan 2010 00:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-17</guid>
		<description>The configuration described above will only allow one user to connect at a time.  It will also allow you to resume sessions; i.e., to open a bunch of programs, disconnect, and then reconnect later (with all those same apps still open).  If you leave a VNC session running, then the only thing keeping a user from seeing your desktop (and launching a shell as you) will be the VNC password.

But here is an alternate configuration.  In this example, many different users can connect with VNC and login concurrently.  Each user will have a private VNC session (not a shared session).  And when the user logs out, their VNC session will be closed and their Gnome session will be killed.  This is useful if you need a VNC server that can provide Linux desktops to many different people at the same time.

First, note that (unlike Scott&#039;s example above) there is no VNC password.  Instead, users must log in each time using their GDM (system account) login.  Also, in this setup, VNC gets run as user &quot;nobody&quot; instead of user &quot;root&quot;.  (However, when the VNC client user logs in to GDM, they will be acting as the user account they logged in with.)

To set up this multi-user access, the only change from the tutorial above is in the file &quot;/etc/xinetd.d/Xvnc&quot;.

Here is the new version of &quot;/etc/xinetd.d/Xvnc&quot; (for multiple, concurrent user logins):


{
	type = UNLISTED
	disable = no
	socket_type = stream
	protocol = tcp
	wait = no
	user = nobody
	server = /usr/bin/Xvnc
	server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/fonts/X11/misc -NeverShared -SecurityTypes None -extension XFIXES
	port = 7900
}


The key differences are:

wait = no
user = nobody
server_args = [...snip...] -SecurityTypes None 


Finally, on my VNC desktop server I also run virtual machines using Virt-Manager, libvirtd, and KVM.  By default that will use VNC on ports 5900, 5901, 5902, etc. for Virtual Machine terminals.  That will conflict is you also try to use those ports for VNC GDM logins.

To avoid a conflict between my Virtual Machine terminals and my GDM VNC logins, I cranked up my VNC port to 7900.  That means I&#039;d need to start two thousand Virtual Machines before I&#039;d see a port conflict.</description>
		<content:encoded><![CDATA[<p>The configuration described above will only allow one user to connect at a time.  It will also allow you to resume sessions; i.e., to open a bunch of programs, disconnect, and then reconnect later (with all those same apps still open).  If you leave a VNC session running, then the only thing keeping a user from seeing your desktop (and launching a shell as you) will be the VNC password.</p>
<p>But here is an alternate configuration.  In this example, many different users can connect with VNC and login concurrently.  Each user will have a private VNC session (not a shared session).  And when the user logs out, their VNC session will be closed and their Gnome session will be killed.  This is useful if you need a VNC server that can provide Linux desktops to many different people at the same time.</p>
<p>First, note that (unlike Scott&#8217;s example above) there is no VNC password.  Instead, users must log in each time using their GDM (system account) login.  Also, in this setup, VNC gets run as user &#8220;nobody&#8221; instead of user &#8220;root&#8221;.  (However, when the VNC client user logs in to GDM, they will be acting as the user account they logged in with.)</p>
<p>To set up this multi-user access, the only change from the tutorial above is in the file &#8220;/etc/xinetd.d/Xvnc&#8221;.</p>
<p>Here is the new version of &#8220;/etc/xinetd.d/Xvnc&#8221; (for multiple, concurrent user logins):</p>
<p>{<br />
	type = UNLISTED<br />
	disable = no<br />
	socket_type = stream<br />
	protocol = tcp<br />
	wait = no<br />
	user = nobody<br />
	server = /usr/bin/Xvnc<br />
	server_args = -inetd -query localhost -geometry 1024×768 -depth 16 -once -fp /usr/share/fonts/X11/misc -NeverShared -SecurityTypes None -extension XFIXES<br />
	port = 7900<br />
}</p>
<p>The key differences are:</p>
<p>wait = no<br />
user = nobody<br />
server_args = [...snip...] -SecurityTypes None </p>
<p>Finally, on my VNC desktop server I also run virtual machines using Virt-Manager, libvirtd, and KVM.  By default that will use VNC on ports 5900, 5901, 5902, etc. for Virtual Machine terminals.  That will conflict is you also try to use those ports for VNC GDM logins.</p>
<p>To avoid a conflict between my Virtual Machine terminals and my GDM VNC logins, I cranked up my VNC port to 7900.  That means I&#8217;d need to start two thousand Virtual Machines before I&#8217;d see a port conflict.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-16</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 14 Jan 2010 00:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-16</guid>
		<description>Scott,
I used vnc4server, just like your tutorial.  The problem is simply a typo in your article.  You have us create a VNC password file as root, which gets created at /root/.vnc/passwd, but in your example file &quot;/etc/xinetd.d/Xvnc&quot; you have a missing forward-slash.  It says /root/.vncpasswd instead of /root/.vnc/passwd.

My next post will show an alternate setup.</description>
		<content:encoded><![CDATA[<p>Scott,<br />
I used vnc4server, just like your tutorial.  The problem is simply a typo in your article.  You have us create a VNC password file as root, which gets created at /root/.vnc/passwd, but in your example file &#8220;/etc/xinetd.d/Xvnc&#8221; you have a missing forward-slash.  It says /root/.vncpasswd instead of /root/.vnc/passwd.</p>
<p>My next post will show an alternate setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greenender</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-15</link>
		<dc:creator>Greenender</dc:creator>
		<pubDate>Thu, 07 Jan 2010 21:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-15</guid>
		<description>Thank you for this guide. Works like a charm on ubuntu 9.10 for me.</description>
		<content:encoded><![CDATA[<p>Thank you for this guide. Works like a charm on ubuntu 9.10 for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Yee</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-14</link>
		<dc:creator>Scott Yee</dc:creator>
		<pubDate>Thu, 31 Dec 2009 00:40:24 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-14</guid>
		<description>Derek, Thank you for the information on the quotes and the correction.  I was wondering which VNC server are you using?  For more information on setting the VNC password: http://linux.die.net/man/1/vncpasswd, especially if you want to set different passwords for different users.  The tutorial I wrote was mostly for my home box so basically everything was for root (I know not always the best security).

Thanks again!</description>
		<content:encoded><![CDATA[<p>Derek, Thank you for the information on the quotes and the correction.  I was wondering which VNC server are you using?  For more information on setting the VNC password: <a href="http://linux.die.net/man/1/vncpasswd" rel="nofollow">http://linux.die.net/man/1/vncpasswd</a>, especially if you want to set different passwords for different users.  The tutorial I wrote was mostly for my home box so basically everything was for root (I know not always the best security).</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.scotttyee.com/blog/2009/12/09/linux-headless-ubuntu-with-vnc/#comment-13</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Wed, 30 Dec 2009 23:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://scotttyee.com/blog/?p=158#comment-13</guid>
		<description>I found the problem, there is a missing / character.  It should be:

/root/.vnc/passwd

...in the step where you &quot;gedit /etc/xinetd.d/Xvn&quot;.

Also, if you cut and paste from this web page, the quotes (&quot;) will get pasted as directional quotes ( “ and ” ) and that will cause X to fail to launch.  So make sure to manually use the &quot; character.

Thanks for writing this up, it was a big help.</description>
		<content:encoded><![CDATA[<p>I found the problem, there is a missing / character.  It should be:</p>
<p>/root/.vnc/passwd</p>
<p>&#8230;in the step where you &#8220;gedit /etc/xinetd.d/Xvn&#8221;.</p>
<p>Also, if you cut and paste from this web page, the quotes (&#8220;) will get pasted as directional quotes ( “ and ” ) and that will cause X to fail to launch.  So make sure to manually use the &#8221; character.</p>
<p>Thanks for writing this up, it was a big help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

