<?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"
	>

<channel>
	<title>Dr Jan's Tips From The Top &#187; tutorial</title>
	<atom:link href="http://www.dr-jan.com/tips/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dr-jan.com/tips</link>
	<description>Handy hints and techy tips from Dr Jan.</description>
	<pubDate>Sat, 08 Nov 2008 15:13:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Fedora 9 and KDE 4</title>
		<link>http://www.dr-jan.com/tips/2008/09/25/fedora-9-and-kde-4/</link>
		<comments>http://www.dr-jan.com/tips/2008/09/25/fedora-9-and-kde-4/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 21:10:18 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[email]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[kde]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[macintosh]]></category>

		<category><![CDATA[software]]></category>

		<category><![CDATA[thunderbird]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<category><![CDATA[clock]]></category>

		<category><![CDATA[dual-screen]]></category>

		<category><![CDATA[Fedora]]></category>

		<category><![CDATA[Fedora 9]]></category>

		<category><![CDATA[fuzzy clock]]></category>

		<category><![CDATA[KDE 4]]></category>

		<category><![CDATA[KDE 4.0]]></category>

		<category><![CDATA[KDE 4.1]]></category>

		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/?p=48</guid>
		<description><![CDATA[I&#8217;ve recently upgraded my home PC from Fedora 8 to Fedora 9. One of the big benefits (apart from getting the very latest Firefox and Thunderbird packages) is that F9 features KDE 4, the latest version of the KDE desktop window manager.
Fedora 9
To upgrade, I followed the excellent instructions at http://www.gagme.com/greg/linux/f9-tips.php. The key point is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently upgraded my home PC from Fedora 8 to <a href="http://fedoraproject.org/" onclick="javascript:urchinTracker ('/outbound/article/fedoraproject.org');">Fedora 9</a>. One of the big benefits (apart from getting the very latest Firefox and Thunderbird packages) is that F9 features <a href="http://www.kde.org/" onclick="javascript:urchinTracker ('/outbound/article/www.kde.org');">KDE 4</a>, the latest version of the KDE desktop window manager.</p>
<p><strong>Fedora 9</strong><br />
To upgrade, I followed the <em>excellent</em> instructions at <a href="http://www.gagme.com/greg/linux/f9-tips.php" onclick="javascript:urchinTracker ('/outbound/article/www.gagme.com');">http://www.gagme.com/greg/linux/f9-tips.php</a>. The key point is to use the &#8216;preupgrade&#8217; package to sort everything out:</p>
<p><code>yum -y install preupgrade<br />
preupgrade</code></p>
<p>This downloads new F9 versions of all the RPM packages you have on your system and then sets everything up so that when you re-boot your machine it will start F9.</p>
<p>It&#8217;s an excellent idea, and for me It Just Worked.</p>
<p><strong>KDE 4</strong><br />
KDE version 4 is all rather new. Initially I had version 4.0 installed. The biggest drawback to this version was the absence of the <a href="http://www.dr-jan.com/tips/2008/03/24/kde/" >Fuzzy Clock</a>. However, I&#8217;m pleased to say that on my first &#8216;yum update&#8217;, my system was upgraded to KDE 4.1, complete with Fuzzy Clock. Whilst version 4.0 was looking a bit rough round the edges, 4.1 is a far more polished affair.</p>
<p>One of the new features (on System Settings, Desktop, General tab) is the ability to &#8216;Enable desktop effects&#8217;, which makes the whole machine much more Mac-like in the prettyness of the desktop. However, I noticed that with this turned on, even when nothing else was running, I was using about 50% of my CPU power just to run the desktop. So I turned that off <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The other annoyance in KDE4 was the lack of launch buttons on the panel for my favourite applications. This was really getting on my nerves until I realised that the default &#8216;tab&#8217; shown initially when clicking on the &#8216;K&#8217; menu button is the Favourites tab. To add things to the Favourites tab just find the application in the labyrinth of menus on the &#8216;K&#8217; menu, click it with the secondary mouse button and select &#8216;Add to Favourites&#8217; from the context-sensitive menu. Now all your favourite applications are just 2 clicks away on the &#8216;K&#8217; menu button.</p>
<p><strong>UPDATE:</strong> Neither KDE 4.0 nor KDE 4.1 can cope with dual screen display systems! I&#8217;ve seen comments that imply dual screen configurations are very rare and so fixing the problems is not a priority. Boo : -( See my comments below for details.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2008/09/25/fedora-9-and-kde-4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Units</title>
		<link>http://www.dr-jan.com/tips/2008/06/11/units/</link>
		<comments>http://www.dr-jan.com/tips/2008/06/11/units/#comments</comments>
		<pubDate>Tue, 10 Jun 2008 23:07:29 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[howto]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[software]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<category><![CDATA[units unix command-line]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/?p=45</guid>
		<description><![CDATA[I was recently reminded of the excellent &#8216;units&#8217; program, available with all good Unix systems.
Units will convert quantities expressed in one unit in to another unit. Here&#8217;s an example:

$ units
2439 units, 71 prefixes, 33 nonlinear units
You have: 12 miles
You want: kilometres
        * 19.312128
      [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently reminded of the excellent &#8216;units&#8217; program, available with all good Unix systems.</p>
<p>Units will convert quantities expressed in one unit in to another unit. Here&#8217;s an example:</p>
<p><code><br />
$ units<br />
2439 units, 71 prefixes, 33 nonlinear units</p>
<p>You have: 12 miles<br />
You want: kilometres<br />
        * 19.312128<br />
        / 0.051780933<br />
You have:<br />
</code></p>
<p>So, 12 miles is equivalent to 19.312128 kilometres. OK, that was an easy one to warm up with. Units knows about all kinds of arcane measures and can happily convert between them all. Here&#8217;s an example from the man page:</p>
<p><code><br />
$ units<br />
2439 units, 71 prefixes, 33 nonlinear units</p>
<p>You have: furlongs per fortnight<br />
You want: m/s<br />
        * 0.00016630952<br />
        / 6012.8848<br />
You have:<br />
</code></p>
<p>I actually needed to use units to find out my weight in kilos:<br />
<code><br />
$ units<br />
2439 units, 71 prefixes, 33 nonlinear units</p>
<p>You have: 20 stone + 1 lb<br />
You want: kilos<br />
conformability error<br />
        127.45946 kg<br />
        1000<br />
You have:<br />
</code></p>
<p>My goodness, <a href="http://www.dr-jan.com/newblog/2008/06/10/im_thin/" >that&#8217;s a large number</a>!</p>
<p>Units should be available in most versions of Unix and Linux - just get a terminal session (telnet or ssh for example) and type in &#8216;units&#8217;. As usual, read the manual page by typing &#8216;man units&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2008/06/11/units/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#39;s RSS, and why do I need it?</title>
		<link>http://www.dr-jan.com/tips/2008/01/16/whats-rss-and-why-do-i-need-it/</link>
		<comments>http://www.dr-jan.com/tips/2008/01/16/whats-rss-and-why-do-i-need-it/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 23:30:09 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[blogs]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[software]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[feed reader]]></category>

		<category><![CDATA[google reader]]></category>

		<category><![CDATA[rss]]></category>

		<category><![CDATA[syndication]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2008/01/16/whats-rss-and-why-do-i-need-it/</guid>
		<description><![CDATA[RSS is short for Really Simple Syndication. It&#8217;s an easy way to keep up to date with frequently changing websites.
Let me give you an example. This web page changes every time I write a new post (admittedly not that often). Rather than periodically checking this page for updates (or, more likely, forgetting all about it [...]]]></description>
			<content:encoded><![CDATA[<p>RSS is short for Really Simple Syndication. It&#8217;s an easy way to keep up to date with frequently changing websites.</p>
<p>Let me give you an example. This web page changes every time I write a new post (admittedly not <em>that</em> often). Rather than periodically checking this page for updates (or, more likely, forgetting all about it until a year later), you can subscribe to it using a feed aggregator or feed reader. Then, whenever I post a new article on this page, it will automatically appear in your feed reader shortly after I publish it.</p>
<p>OK, this may seem to be a bit of a convoluted way to keep up to date with Dr Jan&#8217;s Tips From The Top, but when you subscribe to a number of different blogs, the feed reader starts to make a lot more sense.</p>
<p>Below, I&#8217;ll go through setting up a feed reader and subscribing to various feeds.</p>
<p>Of course, there are a whole raft of different feed readers available for free download, as well as several which are entirely web-based. Personally, I use Google Reader.</p>
<p>To get started with Google Reader, open a new browser window and navigate to <a href="http://www.google.com/reader" onclick="javascript:urchinTracker ('/outbound/article/www.google.com');">http://www.google.com/reader</a>. </p>
<p>If you already have a Google account, login, otherwise create a new account. Once you have logged in, you should see the &#8216;Welcome to Google Reader!&#8217; page. You can take the tour or watch the video for further information. Or you can jump right in and click on &#8216;Get started by adding subscriptions&#8217;.</p>
<p>You can select from the bundles that Google offers by default, or, if you have a particular feed in mind, just scroll down the page to the Search and Browse section. In the box, copy and paste this feed address:</p>
<p><code>http://www.dr-jan.com/tips/feed/</code></p>
<p>then click the &#8216;Search for feeds&#8217; button.</p>
<p>Google should find one matching feed, &#8216;Dr Jan&#8217;s Tips From The Top&#8217;. Click the &#8216;Subscribe&#8217; button and, once you see the message confirming your subscription, click on the &#8216;All items&#8217; link on the top left hand side of the screen. You&#8217;ll be taken to the main Google Reader screen with the most recent posts from this blog shown.</p>
<p>As you scroll down the screen, reading the posts, the current post will be highlighted with a blue border. When you move down to the next post, the one you&#8217;ve just finished with is automatically marked as &#8216;read&#8217;, so you won&#8217;t see that post again in the normal course of events.</p>
<p>You can easily add more subscriptions by clicking the &#8216;Add subscriptions&#8217; link.</p>
<p>Lots of websites use a small orange icon like this <img src="/tips/wp-includes/images/rss.png" alt="Standard RSS Icon." /> or one of these (shown enlarged for clarity):<br />
<img src="/pix/rss.jpg" alt="XML and RSS icons." /><br />
to indicate that a feed is available. Normally, you can wrong-click on the icon and select &#8216;Copy Link Location&#8217; or equivalent command, then paste the results into the Google Reader &#8216;Add subscriptions&#8217; box.</p>
<p>There are lots of feeds for things other than blogs. For example, BBC News is available as a feed. Check out <a href="http://news.bbc.co.uk/1/hi/help/3223484.stm" onclick="javascript:urchinTracker ('/outbound/article/news.bbc.co.uk');">this page</a> for an introduction to RSS feeds along with a list of some of the feeds available from the BBC.</p>
<p>If you&#8217;re searching for a job, most job sites will let you create a feed containing jobs which match your search criteria, so you&#8217;ll always know about the very latest jobs as they appear.</p>
<p>Just look out for those small orange icons and you&#8217;ll be surprised at what you can subscribe to with your feed reader <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2008/01/16/whats-rss-and-why-do-i-need-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Necessary Spelling</title>
		<link>http://www.dr-jan.com/tips/2007/08/16/necessary-spelling/</link>
		<comments>http://www.dr-jan.com/tips/2007/08/16/necessary-spelling/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 23:06:52 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[spelling]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2007/08/16/necessary-spelling/</guid>
		<description><![CDATA[Here&#8217;s a handy acronym to help remember how to spell &#8216;necessary&#8217;.
Never Eat Chips, Eat Salmon Sandwiches And Remain Young.
My Computer Science teacher taught me this at college 
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a handy acronym to help remember how to spell &#8216;necessary&#8217;.</p>
<p>Never Eat Chips, Eat Salmon Sandwiches And Remain Young.</p>
<p>My Computer Science teacher taught me this at college <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2007/08/16/necessary-spelling/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How To Open The Bonnet On A Ford Focus</title>
		<link>http://www.dr-jan.com/tips/2007/06/26/how-to-open-the-bonnet-on-a-ford-focus/</link>
		<comments>http://www.dr-jan.com/tips/2007/06/26/how-to-open-the-bonnet-on-a-ford-focus/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 22:07:01 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[cars]]></category>

		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2007/06/26/how-to-open-the-bonnet-on-a-ford-focus/</guid>
		<description><![CDATA[Opening the bonnet on a Ford Focus turns out to be a remarkably difficult thing to do. In case you don&#8217;t have the manual to hand (or can&#8217;t be bothered to find it), this is what you do&#8230;

Swivel the Blue Oval Ford badge on the front of the car anti-clockwise. It pivots about a point [...]]]></description>
			<content:encoded><![CDATA[<p>Opening the bonnet on a <a href="http://www.ford.co.uk/ns7/foc_c307/-/-/-/-/3/345197"title="Ford Focus website." target="_blank"  onclick="javascript:urchinTracker ('/outbound/article/www.ford.co.uk');">Ford Focus</a> turns out to be a remarkably difficult thing to do. In case you don&#8217;t have the manual to hand (or can&#8217;t be bothered to find it), this is what you do&#8230;</p>
<ol>
<li>Swivel the Blue Oval Ford badge on the front of the car anti-clockwise. It pivots about a point on the left hand side of the badge, so push the right side of the badge upwards. This reveals a key-hole.</li>
<li>Use the ignition key to turn the lock fully to the left. The bonnet should pop up slightly.</li>
<li>Whilst lifting the bonnet itself, turn the lock fully to the right. This should release the bonnet.</li>
</ol>
<p>Unfortunately there are no gas struts to hold the bonnet up, you need to deploy the bonnet stay, just like to you used to on old cars <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Goodness only knows why this is so tricky to do. Perhaps Ford thought that something valuable or important would be kept under the bonnet. Surely if that was the case, anyone with nefarious intentions could gain access from the bottom of the car, up into the engine compartment?<br />
This has been a Public Service Announcement from Dr Jan.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2007/06/26/how-to-open-the-bonnet-on-a-ford-focus/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using Cron</title>
		<link>http://www.dr-jan.com/tips/2007/01/12/using-cron/</link>
		<comments>http://www.dr-jan.com/tips/2007/01/12/using-cron/#comments</comments>
		<pubDate>Fri, 12 Jan 2007 14:16:34 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2007/01/12/using-cron/</guid>
		<description><![CDATA[Cron is a handy utility available on (as far as I know) all Unix systems. It provides a mechanism for starting specified jobs at pre-determined times. So, for example, on my Linux laptop I have a cron job which runs every day which removes any files older than 7 days from the /tmp directory. Cron [...]]]></description>
			<content:encoded><![CDATA[<p>Cron is a handy utility available on (as far as I know) all Unix systems. It provides a mechanism for starting specified jobs at pre-determined times. So, for example, on my Linux laptop I have a cron job which runs every day which removes any files older than 7 days from the /tmp directory. Cron is excellent for dealing with these kinds of housekeeping tasks which otherwise are easily forgotten.</p>
<p>Cron is normally implemented as a daemon, &#8216;crond&#8217;, which is started automatically when the machine is booted. The cron daemon spends most of its life asleep, but once a minute it wakes up and checks if there are any jobs which need to be started at the current time. If there are, they are started and left to run. Any output from these programs will be captured and sent by email to the user that started the job, unless the output (and the error output) is explicitly redirected on the command line in the crontab file.</p>
<p>You may not have permission to use cron on your system, in which case you will need to (or ask your system administrator to) add your details to /etc/cron.allow and make sure they don&#8217;t appear in /etc/cron.deny.</p>
<p>Each user can set up their own personal crontab file, which specifies the schedule and the commands to run.</p>
<p>The crontab file is a plain text file with 6 whitespace delimited fields per line. The first 5 fields specify when to run the commands (which form the sixth field).</p>
<p>Here&#8217;s a sample line which removes old temporary files as mentioned in the example above:</p>
<p><code>0 0 * * * /usr/local/bin/find /tmp -depth -mtime +7 -exec /usr/local/bin/remove {} \;</code></p>
<p>This is what the numbers at the front of a crontab file mean:</p>
<table border="1">
<tr>
<th>Schedule</th>
<th>Valid Values</th>
</tr>
<tr>
<td>minute</td>
<td>0-59</td>
</tr>
<tr>
<td>hour</td>
<td>0-23</td>
</tr>
<tr>
<td>day of month</td>
<td>1-31</td>
</tr>
<tr>
<td>month</td>
<td>1-12</td>
</tr>
<tr>
<td>day of week</td>
<td>0-6 (Sunday is zero)</td>
</tr>
</table>
<p>Use a star (*) to indicate all possible values.</p>
<p>So, the example above is executed at 0:00 (midnight) every day.</p>
<p>As you can see, the scheduling scheme is very flexible, allowing everything from once every minute (* * * * *) to once a year (10:00 on the third of January would be represented as 00 10 3 1 *) and almost everything in between.</p>
<p>An important point to bear in mind when using cron is the environment which is used to run the jobs. Cron uses &#8217;sh&#8217;, the Bourne shell to run the commands you specify. There is only a minimal PATH statement set up,  which is why in the example above the full path name is specified for the find and remove commands.</p>
<p>It can be a good idea to prefix your cron commands with &#8216;. .profile&#8217; to execute your .profile and set up all your default settings. One thing to be aware of here is that most interactive logins use either ksh (the Korn shell) or bash (the Bourne Again SHell), and there may be commands in your .profile which work fine in ksh or bash but which fail in sh.</p>
<p>The classic example is setting up environment variables. For example,</p>
<p><code>export PATH=$PATH:$HOME/bin</code></p>
<p>is valid syntax in ksh and bash, but not in sh. You need to export the variable as a separate step:</p>
<p><code>PATH=$PATH:$HOME/bin<br />
export PATH</code></p>
<p>The crontab command is used to configure cron jobs.</p>
<table border="1">
<tr>
<td>crontab -l</td>
<td>lists the current cron jobs on the screen</td>
</tr>
<tr>
<td>crontab -e</td>
<td>edits the current cron jobs with the default editor (often vi)</td>
</tr>
<tr>
<td>crontab filename</td>
<td>removes the current crontab file and replaces it with the contents of filename</td>
</tr>
</table>
<p>Do a &#8216;man crontab&#8217; for more details <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Do be careful when using the crontab command, because if you mistype the switches they can be interpreted as a non-existent filename which will effectively remove your existing crontab.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2007/01/12/using-cron/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Transferring Lots Of Small Data</title>
		<link>http://www.dr-jan.com/tips/2006/11/23/transferring-lots-of-small-data/</link>
		<comments>http://www.dr-jan.com/tips/2006/11/23/transferring-lots-of-small-data/#comments</comments>
		<pubDate>Thu, 23 Nov 2006 20:41:37 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[backups]]></category>

		<category><![CDATA[networks]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2006/11/23/transferring-lots-of-small-data/</guid>
		<description><![CDATA[I was in the situation recently where I needed to transfer about 500Gb of data from one HP-UX box to another.
Unfortunately most of these data were in small files - the largest probably a megabyte or so.
I ran some speed tests. We had gigabit ethernet connecting the 2 boxes on a little used LAN.
I wrote [...]]]></description>
			<content:encoded><![CDATA[<p>I was in the situation recently where I needed to transfer about 500Gb of data from one HP-UX box to another.</p>
<p>Unfortunately most of these data were in small files - the largest probably a megabyte or so.</p>
<p>I ran some speed tests. We had gigabit ethernet connecting the 2 boxes on a little used LAN.</p>
<p>I wrote a small script to start 6 copy processes in parallel and another to periodically measure how much disk space had been used on the target machine.</p>
<p>I found that 6 simultaneous scp commands ran at about 15Mb/s (Megabytes per second). scp has the overhead of encrypting the data stream before it is transferred, so I tried plain old rcp as well. That gave me worse results than scp.</p>
<p>Thinking that the large number of small files was slowing things down I tried using tar to batch up the files. I wrote a tiny script to pipe the output of the tar command across to the target machine directly in to a receiving tar process which unbundled the files.</p>
<p>The tar approach almost doubled the rate of transfer to about 30Mb/s.</p>
<p>Here are the tar commands. Note that you&#8217;ll need to enable r-commands by creating .rhosts files in the home directories of each machine (remove these after they copy is complete - they are notorious security problems). Note also that, as usual, HP-UX is awkward - whereas the rest of the world uses &#8216;rsh&#8217; for the remote-shell command, HP-UX uses &#8216;remsh&#8217;. &#8216;rsh&#8217; is some kind of <em>restricted</em> shell in HP parlance.</p>
<pre>box1> cd source_directory; tar cf - . | remsh box2 "cd target_directory; tar xf - "</pre>
<p>The first tar command creates a file called &#8216;-&#8217;, which is a special token meaning &#8217;standard output&#8217; in this case. The archive created contains all the files in the current directory (.) plus all subdirectories (tar is recursive by default). This archive file is piped into the remsh command which sends it to the box2 machine. On box 2 I first change to the proper receiving directory, then I extract from &#8216;-&#8217;, or &#8217;standard input&#8217; the incoming files.</p>
<p>I had 6 of these tar commands running simultaneously to ensure the network link was saturated with data, although I suspect that disk access may have been the limiting factor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2006/11/23/transferring-lots-of-small-data/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Backup</title>
		<link>http://www.dr-jan.com/tips/2006/09/04/backup/</link>
		<comments>http://www.dr-jan.com/tips/2006/09/04/backup/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 23:20:33 +0000</pubDate>
		<dc:creator>drjan</dc:creator>
		
		<category><![CDATA[backups]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2006/09/04/backup/</guid>
		<description><![CDATA[If the first step in any procedure is &#8216;backup your data&#8217;, for goodness&#8217; sake do as it says!
Don&#8217;t think that because you&#8217;re more technical/brighter/don&#8217;t really care about the existing data that you&#8217;ll be OK.
If you don&#8217;t have a back up Murphy&#8217;s Law dictates that something disastrous will happen and you&#8217;ll lose everything.
If you do have [...]]]></description>
			<content:encoded><![CDATA[<p>If the first step in any procedure is &#8216;backup your data&#8217;, for goodness&#8217; sake do as it says!</p>
<p>Don&#8217;t think that because you&#8217;re more technical/brighter/don&#8217;t really care about the existing data that you&#8217;ll be OK.</p>
<p>If you don&#8217;t have a back up Murphy&#8217;s Law dictates that something disastrous will happen and you&#8217;ll lose everything.</p>
<p>If you <em>do</em> have a backup, by the same logic you&#8217;ll be fine. Think of it as an insurance policy <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2006/09/04/backup/feed/</wfw:commentRss>
		</item>
		<item>
		<title>What&#8217;s My IP Address?</title>
		<link>http://www.dr-jan.com/tips/2006/09/03/whats-my-ip-address/</link>
		<comments>http://www.dr-jan.com/tips/2006/09/03/whats-my-ip-address/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 00:13:23 +0000</pubDate>
		<dc:creator>tips</dc:creator>
		
		<category><![CDATA[networks]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[unix]]></category>

		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.dr-jan.com/tips/2006/09/03/whats-my-ip-address/</guid>
		<description><![CDATA[That&#8217;s an interesting question!
First the High Level Overview For Beginners
OK, maybe first we should ask &#8216;Why do we care?&#8217;  
IP stands for Internet Protocol. It&#8217;s part of the TCP/IP (Transmission Control Protocol / Internet Protocol) network protocol which is used, pretty much, by all computers connected to a network. By network I mean a [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s an interesting question!</p>
<h3>First the High Level Overview For Beginners</h3>
<p>OK, maybe first we should ask &#8216;Why do we care?&#8217; <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>IP stands for Internet Protocol. It&#8217;s part of the TCP/IP (Transmission Control Protocol / Internet Protocol) network protocol which is used, pretty much, by all computers connected to a network. By network I mean a LAN or Local Area Network used in businesses, or the connection from your computer to your Internet Service Provider (ISP), for example. Even if you use a modem to dial your ISP over a standard phone line, once you&#8217;re connected your computer will be using TCP/IP to talk to your ISP&#8217;s computers.</p>
<p>To make TCP/IP work, every computer connected to a network must have a unique IP address. IP addresses are usually written as 4 numbers separated by dots, for example, 192.168.0.10. Each of the 4 numbers can be in the range 0 to 255, although 0 and 255 themselves are special values which are not normally used.</p>
<p>Your IP address can be compared to the address of the building where you are now (assuming you&#8217;re not reading this on a mobile device outside somewhere). Every building has a unique address, so the post office can deliver letters and parcels to the right destination. Every computer needs a unique address, so that packets of information (like parts of a web page or an email) can be delivered correctly.</p>
<h3>More Details For The Interested</h3>
<p>For home users, your ISP assigns IP addresses to your computer. If you dial-up, every time you make a connection you are assigned an IP address. When you hang up your connection, that IP address is made available for other callers. If you have a broadband connection then you will have what I&#8217;ll call a semi-static IP address. Because your broadband connection is always on, in theory, once you have an IP address you should keep it. In practice, your IP address may change if you power-cycle your cable modem or your ADSL modem.</p>
<p>The system which runs on the ISP&#8217;s computers which keeps track of who currently has which IP address is referred to as the Dynamic Host Configuration Protocol, or (more commonly) DHCP. DHCP is normally configured with a pool of IP addresses. When a computer wants to join a network (for example, when you dial up your ISP) it will request a new IP address from the DHCP server. The DHCP server will allocate one of the addresses in the pool and log the details for future reference.<br />
As you can imagine, referring to computers by a sequence of numbers is not a very convenient thing to do (unless you&#8217;re a computer), so often as well as an IP address a computer will have a public name. This is the case for most computers connected to the internet. Names are easier for us humans to deal with than IP addresses, and there&#8217;s a system in place called DNS (the Domain Name System) which translates IP address to names and vice versa.</p>
<p>This means that rather than referring to 198.63.34.251, I can type www.dr-jan.com into my browser instead - much easier <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Both methods should work - try typing the IP address directly into a new browser window and you should see a lovely yellow home page <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The computer which hosts my web site has a fixed IP address - it will never change, even if the computer is re-booted. This is A Good Thing because otherwise no-one would be able to find my website if it was suddenly using a new IP address. Generally speaking, computers which host websites and other web-based services will have fixed IP addresses, whilst home users and others will have dynamic addresses.</p>
<h3>Technical Details For Experts</h3>
<p>How you find out what your current IP address is depends on your operating system.</p>
<p>If you are using Windows NT, 2000 or XP, start a command window (Start|Run|cmd or Start|Run|command) and enter the command &#8216;ipconfig&#8217;. ipconfig /all should give you more information.</p>
<p>Windows 95, 98 and probably ME, start a command window as above, but run &#8216;winipcfg&#8217; instead of &#8216;ipconfig&#8217; and you should see a handy window appear with all the relevant details shown.</p>
<p>For Linux users, ifconfig is your friend. Unless you&#8217;re the root user you may need to specify the full path (normally &#8216;/sbin/ifconfig&#8217;).</p>
<p>For SUN Solaris, ifconfig -a should give you the required details.</p>
<p>HP-UX is awkward, as usual. You&#8217;ll need to run &#8216;lanscan&#8217; to find out what LAN adapters you have, then use ifconfig lan_adapter_name. For example, ifconfig lan0.</p>
<p>Digital Unix uses ifconfig -a.</p>
<h3>Footnotes and Disclaimers</h3>
<p>I&#8217;m not an expert in Windows, so please let me know if you have any updates for the information presented here.</p>
<p>Hopefully my Unix and Linux knowledge is more reliable, although I&#8217;m always pleased to receive updates for that too <img src='http://www.dr-jan.com/tips/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dr-jan.com/tips/2006/09/03/whats-my-ip-address/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.877 seconds -->
