<?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>rickogden.com &#187; remote desktop</title>
	<atom:link href="http://www.rickogden.com/tag/remote-desktop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickogden.com</link>
	<description></description>
	<lastBuildDate>Mon, 13 Jun 2011 10:09:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>LTSP Part 2 &#8211; Configuration</title>
		<link>http://www.rickogden.com/2010/06/ltsp-part-2-configuration/</link>
		<comments>http://www.rickogden.com/2010/06/ltsp-part-2-configuration/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 08:19:37 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[gpxe]]></category>
		<category><![CDATA[ltsp]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=340</guid>
		<description><![CDATA[In the previous post I had the problem: &#8230; when I boot up, I get the Ubuntu boot screen, which shows it’s connecting to the terminal server, however it then fails with an errror saying Error: Failed to connect to NBD server And I get sent to a basic busybox shell. There were two reasons [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://www.rickogden.com/2010/06/ltsp-part-1-gpxe/">previous post</a> I had the problem:</p>
<blockquote><p>
&#8230; when I boot up, I get the Ubuntu boot screen, which shows it’s connecting to the terminal server, however it then fails with an errror saying</p>
<p>Error: Failed to connect to NBD server</p>
<p>And I get sent to a basic busybox shell.
</p></blockquote>
<p>There were two reasons for this.</p>
<h3>PXE&#8230; booted</h3>
<p>First of all, because I obtain the DHCP separately from the network boot, I need to treat it as if it&#8217;s a static IP. LTSP can handle static IPs, but this posed a couple of problems. I would need to specify a separate config file for each MAC address in the pxelinux.cfg/ directory. Secondly it would require each MAC address to be given the same IP each time (this was not going to happen).</p>
<p>So instead of getting gPXE to PXE boot, I completely bypass pxelinux.0 and use my own boot script. In this script I pass in the IP and other information. gPXE has some environment variables which can be used for this, so I wrote a script (The &#8216;x&#8217;s should be replaced by the terminal server&#8217;s IP address).</p>
<pre class="brush: bash; title: ; notranslate">#!gpxe
dhcp net0
kernel tftp://xxx.xxx.xxx.xxx/ltsp/i386/vmlinuz ip=${ip}:xxx.xxx.xxx.xxx:${gateway}:${netmask}:${hostname}:eth0:none nbdroot=xxx.xxx.xxx.xxx:2000
initrd tftp://xxx.xxx.xxx.xxx/ltsp/i386/initrd.img
boot vmlinuz
</pre>
<p>This script retrieves the kernel, and passes as parameters the environment variables (which were set by the dhcp) the IP, gateway, netmask and hostname. Another parameter is the nbd server location and port. The we retrieve the initial ramdisk (initrd) and boot.</p>
<h3>More haste less speed</h3>
<p>After that was fixed, on my test machines it still didn&#8217;t connect to the NBD server. This is because my test machines are core2duo 3ghz with 4gb RAM; they were so fast at booting up, that it didn&#8217;t get a response from the NBD server in time. I diagnosed this by adding the parameter:</p>
<pre class="brush: bash; light: true; title: ; notranslate">break=mount</pre>
<p>To the kernel line in the script above. This stopped the boot, then it got a response from the server, and when I pressed ctrl+D (to continue the boot) it booted up fine. This is a bug in the ltsp_nbd script.</p>
<p>I solved this by logging into the terminal server and opening the file /opt/ltsp/i386/usr/share/initramfs-tools/scripts/ltsp_nbd, then added the line:</p>
<pre class="brush: bash; light: true; title: ; notranslate">sleep 5</pre>
<p>after the line:</p>
<pre class="brush: bash; light: true; title: ; notranslate">ip link set lo up</pre>
<p>This meant that the script paused for 5 seconds to allow the NBD server to respond.</p>
<p>Once edited the initramfs needs updating, as do the kernels:</p>
<pre class="brush: bash; light: true; title: ; notranslate">
chroot /opt/ltsp/i386 update-initramfs -u
ltsp-update-kernels
</pre>
<p>I will be writing a part 3 to this sometime soon talking about some of the customisations I will be adding.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2010/06/ltsp-part-2-configuration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>LTSP Part 1 &#8211; gPXE</title>
		<link>http://www.rickogden.com/2010/06/ltsp-part-1-gpxe/</link>
		<comments>http://www.rickogden.com/2010/06/ltsp-part-1-gpxe/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 10:05:40 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[gpxe]]></category>
		<category><![CDATA[ltsp]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=324</guid>
		<description><![CDATA[Disclaimer: This is a work in progress blog post. There may be better ways of doing things, and things may have been done wrong. Although I hope you will find this helpful, please don&#8217;t take the contents of this post as gospel. At work we have Ubuntu terminal servers which the students currently connect to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Disclaimer: This is a work in progress blog post. There may be better ways of doing things, and things may have been done wrong. Although I hope you will find this helpful, please don&#8217;t take the contents of this post as gospel.</strong></p>
<p>At work we have Ubuntu terminal servers which the students currently connect to using NX on ThinStation in the labs. This is not an ideal setup, especially because the ThinStation kernel is too old to run on (even relatively) modern hardware. It is designed to setup an old computer as a thin client, and allow it to access a terminal server which will do all the hard work.</p>
<p>The other issue which we have is that the network is not owned or managed by my department (computer science), but by the central IT department of the university. This means I do not have access to the DHCP server which is required to PXE boot the computers. On top of this, the computers need to dual boot between the thin client/terminal server and a local installation of Windows.</p>
<p>This is where gPXE comes to the rescue! What gPXE allows me to do is retrieve an IP address from the university DHCP server, and then create my own network boot script completely separately.<br />
<span id="more-324"></span></p>
<h3>LTSP Installation on Ubuntu</h3>
<p>This was (relatively) painless on Ubuntu Lucid. As I&#8217;m currently just setting up a test server, I used the ltsp-server-standalone package.</p>
<pre class="brush: bash; light: true; title: ; notranslate">sudo apt-get install ltsp-server-standalone</pre>
<p>This installs all the relevant packages (including DHCP) to set up a terminal server. Once that had installed I needed to make the thin client OS. Also, as the terminal server is running Ubuntu 64 and the clients are 32 bit, I needed to use the &#8211;arch parameter.</p>
<pre class="brush: bash; light: true; title: ; notranslate">sudo ltsp-build-client --arch i386</pre>
<p>For some reason I had trouble with the default tftp server (tftpd-hpa), so I ended up installing at atftpd.</p>
<pre class="brush: bash; light: true; title: ; notranslate">sudo apt-get install atftpd</pre>
<p>This seemed to solve the problem.</p>
<h3>gPXE</h3>
<p>The easiest way to test gPXE is to download the ISO from <a href="http://rom-o-matic.net/">rom-o-matic</a>, burn it to a CD and boot off it. During the boot sequence it tells you to press ctrl+B to enter the console, if you do that you have a minimal <abbr title="Command Line Interface">CLI</abbr>.</p>
<p>What I wanted to do was to retrieve an IP from the main DHCP server, and then specify the next-server and boot file (which are normally specified by the DHCP server).</p>
<pre class="brush: plain; title: ; notranslate">
gpxe&gt; dhcp net0
gpxe&gt; set next-server xxx.xxx.xxx.xxx
gpxe&gt; set filename ltsp/i386/pxelinux.0
gpxe&gt; autoboot
</pre>
<p>Line 1 tells it to retrieve an IP for the network adapted net0. This may differ if you have multiple network cards installed. Line 2 sets where it should go to next (which contains the tftp server location to download the pxe boot image). Line 3 sets the path/filename for the pxelinux boot image which is the default location for aftpd. Finally we tell it to attempt to boot with those parameters.</p>
<h3>Problems</h3>
<p>As stated at the top, this is still very much work in progress, and I plan to edit it as I find fixes. I am still have trouble with this (as I stated at the top this is work in progress, and will be editing it as I go along). The first is that gPXE has trouble working with a batch of network cards which we have in some of the labs. These cards are on-board Intel 82566DM [8086/104a] (rev 2) network cards. For some reason gPXE cannot interface with them. I am going to try and overcome this by putting other network cards into those machines.</p>
<p>Also, when I boot up, I get the Ubuntu boot screen, which shows it&#8217;s connecting to the terminal server, however it then fails with an errror saying</p>
<blockquote><p>Error: Failed to connect to NBD server</p></blockquote>
<p>And I get sent to a basic busybox shell.</p>
<p>This (I am hoping) is nothing to do with the gPXE boot, but with the LTSP setup. So I will do further investigation into that and report back.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2010/06/ltsp-part-1-gpxe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Updated Ubuntu FreeNX Install Script</title>
		<link>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/</link>
		<comments>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 09:27:30 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=160</guid>
		<description><![CDATA[I&#8217;ve just updated the FreeNX install script to download and install the latest version of the NX Client from NoMachine. If you have used the previous version of this script, then you can just execute this version and it will automatically update your NX Client. Download the latest version from here.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just updated the <a href="http://freenx.berlios.de/" target="_blank">FreeNX</a> install script to download and install the latest version of the NX Client from <a href="http://www.nomachine.com/" target="_blank">NoMachine</a>. If you have used the previous version of this script, then you can just execute this version and it will automatically update your NX Client.</p>
<p><a href="http://www.rickogden.com/labs/freenx-install-ubuntu/">Download the latest version from here</a>.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/11/updated-ubuntu-freenx-install-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>FreeNX Installation Script for Ubuntu</title>
		<link>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/</link>
		<comments>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:31:49 +0000</pubDate>
		<dc:creator>Rick Ogden</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rickogden.com/?p=111</guid>
		<description><![CDATA[I have introduced a Labs section to my site. This section will contain on going projects, applications and scripts which I am working on for people to play with a leave feedback. At the same time I have added a script to the section, which automatically downloads and installs FreeNX onto an Ubuntu system. The [...]]]></description>
			<content:encoded><![CDATA[<p>I have introduced a <a href="http://www.rickogden.com/labs/">Labs</a> section to my site. This section will contain on going projects, applications and scripts which I am working on for people to play with a leave feedback.</p>
<p>At the same time I have added a script to the section, which automatically downloads and installs FreeNX onto an Ubuntu system. <a href="http://www.rickogden.com/labs/freenx-install-ubuntu/">The script and further details are available from here</a>.<!-- PHP 5.x --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rickogden.com/2009/11/freenx-installation-script-for-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.rickogden.com/tag/remote-desktop/feed/ ) in 0.41909 seconds, on Feb 7th, 2012 at 1:32 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 2:32 am UTC -->
