<?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>Kevsters Blog &#187; Linux / *Nix</title>
	<atom:link href="http://iddles.co.uk/blogs/index.php/category/linux-nix/feed/" rel="self" type="application/rss+xml" />
	<link>http://iddles.co.uk/blogs</link>
	<description>A collection of thoughts, ramblings and stuff</description>
	<lastBuildDate>Tue, 19 Jul 2011 20:34:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Windows 7&#8211; Offline files and SMB shares</title>
		<link>http://iddles.co.uk/blogs/index.php/2010/09/windows-7-offline-files-and-smb-shares/</link>
		<comments>http://iddles.co.uk/blogs/index.php/2010/09/windows-7-offline-files-and-smb-shares/#comments</comments>
		<pubDate>Sat, 25 Sep 2010 19:51:07 +0000</pubDate>
		<dc:creator>Kevster</dc:creator>
				<category><![CDATA[Linux / *Nix]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://iddles.co.uk/blogs/index.php/2010/09/windows-7-offline-files-and-smb-shares/</guid>
		<description><![CDATA[Why is it so difficult for this to work out of the box ? I’m currently using a hacked WD MyWorld NAS device that runs BusyBox, Optware and the latest release of Samba.   You would think offline files would be easy to get working. Wrong.  See http://blog.rainiernetworks.com/2008/06/25/vista-synchronization-errors/ and http://justanothersysadmin.wordpress.com/2008/03/30/vista-offline-files-and-smb-opportunistic-locks/ Why oh why Microsoft not make [...]]]></description>
			<content:encoded><![CDATA[<p>Why is it so difficult for this to work out of the box ?</p>
<p>I’m currently using a hacked WD MyWorld NAS device that runs BusyBox, Optware and the latest release of Samba.   You would think offline files would be easy to get working.</p>
<p>Wrong.  See <a title="http://blog.rainiernetworks.com/2008/06/25/vista-synchronization-errors/" href="http://blog.rainiernetworks.com/2008/06/25/vista-synchronization-errors/">http://blog.rainiernetworks.com/2008/06/25/vista-synchronization-errors/</a> and <a title="http://justanothersysadmin.wordpress.com/2008/03/30/vista-offline-files-and-smb-opportunistic-locks/" href="http://justanothersysadmin.wordpress.com/2008/03/30/vista-offline-files-and-smb-opportunistic-locks/">http://justanothersysadmin.wordpress.com/2008/03/30/vista-offline-files-and-smb-opportunistic-locks/</a></p>
<p>Why oh why Microsoft not make the offline files function out of the box.  I guess it works fine against a Microsoft server but in the spirit of greater interoperability fix it please !</p>
]]></content:encoded>
			<wfw:commentRss>http://iddles.co.uk/blogs/index.php/2010/09/windows-7-offline-files-and-smb-shares/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cron</title>
		<link>http://iddles.co.uk/blogs/index.php/2010/03/cron/</link>
		<comments>http://iddles.co.uk/blogs/index.php/2010/03/cron/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 20:48:37 +0000</pubDate>
		<dc:creator>Kevster</dc:creator>
				<category><![CDATA[Linux / *Nix]]></category>

		<guid isPermaLink="false">http://iddles.co.uk/blogs/?p=81</guid>
		<description><![CDATA[Useful CRON reference  guide available at: http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/]]></description>
			<content:encoded><![CDATA[<p>Useful CRON reference  guide available at:</p>
<div id="_mcePaste"><a href="http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/">http://kevin.vanzonneveld.net/techblog/article/schedule_tasks_on_linux_using_crontab/</a></div>
]]></content:encoded>
			<wfw:commentRss>http://iddles.co.uk/blogs/index.php/2010/03/cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Ubuntu Server from DHCP to a Static IP Address :: the How-To Geek</title>
		<link>http://iddles.co.uk/blogs/index.php/2007/10/change-ubuntu-server-from-dhcp-to-a-static-ip-address-the-how-to-geek/</link>
		<comments>http://iddles.co.uk/blogs/index.php/2007/10/change-ubuntu-server-from-dhcp-to-a-static-ip-address-the-how-to-geek/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 19:06:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / *Nix]]></category>
		<category><![CDATA[IP Addressing]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[  Change Ubuntu Server from DHCP to a Static IP Address :: the How-To Geek Quick note about this because as ever in Unix nothing is ever the same.]]></description>
			<content:encoded><![CDATA[<p> </p>
<p><a href="http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/">Change Ubuntu Server from DHCP to a Static IP Address :: the How-To Geek</a></p>
<p>Quick note about this because as ever in Unix nothing is ever the same.</p>
<p><img src="http://iddles.co.uk/aggbug.aspx?PostID=5791" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://iddles.co.uk/blogs/index.php/2007/10/change-ubuntu-server-from-dhcp-to-a-static-ip-address-the-how-to-geek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding routes to modern Linuxes</title>
		<link>http://iddles.co.uk/blogs/index.php/2007/03/adding-routes-to-modern-linuxes/</link>
		<comments>http://iddles.co.uk/blogs/index.php/2007/03/adding-routes-to-modern-linuxes/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 15:51:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / *Nix]]></category>
		<category><![CDATA[IP Addressing]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Shamelessly robbed from http://www.akadia.com/services/redhat_static_routes.html Overview With the introduction of Redhat version 8 and continued into version 9, the /etc/sysconfig/static-routes file no longer seems to function correctly. Linux static routes changed in 8.0 to a new format. Now you are to create a file in /etc/sysconfig/network-scripts for each Ethernet interface you wish to create static routes [...]]]></description>
			<content:encoded><![CDATA[<p>Shamelessly robbed from <a href="http://www.akadia.com/services/redhat_static_routes.html">http://www.akadia.com/services/redhat_static_routes.html</a></p>
<table style="border-collapse: collapse;" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<td>
<p class="big"><span>Overview</span></p>
<blockquote>
<p class="normal">With the introduction of Redhat version 8 and continued into version 9, the <strong><span style="font-family: Courier New;">/etc/sysconfig/static-routes</span></strong> file no longer seems to function correctly.</p>
<p class="normal">Linux static routes changed in 8.0 to a new format. Now you are to create a file in <span style="font-family: Courier New;">/etc/sysconfig/network-scripts</span> for each Ethernet interface you wish to create static routes on.</p>
<p class="normal"><span>E</span>xample:</p>
<p class="courier">touch /etc/sysconfig/network-scripts/route-eth0</p>
<p class="normal">The syntax for this file is different from the traditional route format used in <span style="font-family: Courier New;">/etc/sysconfig/static-routes</span> . Redhat has yet to document the change on their web site as of June 2003.</p>
<p class="normal">Syntax based on a usenet post go to /etc/sysconfig/network-scripts<span>, m</span>ake a file called route-devicename (ex: route-eth0) and populate it with your static routes for that device so if you wanted to make a static route to the 192.168.0.0/24 network through 152.3.182.5 type:</p>
<p class="courier">192.168.0.0/24 via 152.3.182.5</p>
</blockquote>
<p class="big"><span>P</span>ersistent static routes for ANY linux distribution</p>
<blockquote>
<p class="normal">You may use this method to add static routes and it will work under any Linux distribution. However, it is considered by some a &#8216;hack&#8217; or the &#8216;ugly way&#8217;.</p>
<p class="normal"><span>E</span>dit your <strong><span style="font-family: Courier New;">/etc/rc.local</span></strong> file and add your static routes using the route statement.</p>
<p class="normal"><span>Ex</span>ample:</p>
<p class="courier"><strong>route add -net 10.10.98.0 netmask 255.255.255.0 gw 10.164.234.132 dev eth1<br />
route add -net 10.164.234.96 netmask 255.255.255.252 gw 10.164.234.132 dev eth1<br />
route add -net 10.164.234.112 netmask 255.255.255.240 gw 10.164.234.132 dev eth1</strong></p>
</blockquote>
<p class="big">Force the old static-routes file to work under Redhat 9</p>
<blockquote>
<p class="normal">Clear out the new <span style="font-family: Courier New;">/etc/sysconfig/network-scripts/ifup-routes</span> script so that you can populate it with the original shell script from Redhat 7.x.</p>
<p class="courier">cat /dev/null &gt; /etc/sysconfig/network-scripts/ifup-routes<br />
vi /etc/sysconfig/network-scripts/ifup-routes</p>
<p class="normal">type in the following (or copy and paste) not including the tilde lines:</p>
<p class="courier"><strong>#!/bin/sh</strong></p>
<p><span style="color: #0000ff;"># adds static routes which go through device $1</span></p>
<p>if [ "$1" = "" ]; then<br />
  echo &#8220;usage: $0 &lt;net-device&gt;&#8221;<br />
  exit 1<br />
fi</p>
<p>if [ ! -f /etc/sysconfig/static-routes ]; then<br />
  exit 0<br />
fi</p>
<p><span style="color: #0000ff;"># note the trailing space in the grep gets rid of aliases</span><br />
grep &#8220;^$1 &#8221; /etc/sysconfig/static-routes | while read device args; do<br />
  /sbin/route add -$args $device<br />
done<br />
grep &#8220;^any &#8221; /etc/sysconfig/static-routes | while read ignore type net netmask mask bogus dev ; do<br />
  if [ "$dev" = "$1" ]; then<br />
    /sbin/route add -$type $net $netmask $mask $dev<br />
  fi<br />
done</p>
</blockquote>
<p class="big">Remember to use /etc/sysconfig/network for your default gateway</p>
<blockquote>
<p class="normal">If you only intend to add one route, your default gateway, then you need not worry about the static routes file or using the route command. Simply add your default gateway in <span style="font-family: Courier New;">/etc/sysconfig/network</span>.</p>
<p class="normal">Example</p>
<p class="courier">NETWORKING=yes<br />
HOSTNAME=&#8221;hostname.linux.org&#8221;<br />
GATEWAY=&#8221;10.164.234.1&#8243;<br />
GATEWAYDEV=&#8221;eth0&#8243;<br />
FORWARD_IPV4=&#8221;yes&#8221;</p>
</blockquote>
</td>
</tr>
</tbody>
</table>
<p><img src="http://iddles.co.uk/aggbug.aspx?PostID=4290" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://iddles.co.uk/blogs/index.php/2007/03/adding-routes-to-modern-linuxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Unix Tools</title>
		<link>http://iddles.co.uk/blogs/index.php/2006/07/useful-unix-tools/</link>
		<comments>http://iddles.co.uk/blogs/index.php/2006/07/useful-unix-tools/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 14:44:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux / *Nix]]></category>
		<category><![CDATA[Useful Commands]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I can never remember any of these commands.  I know that you flip flop waring, bearded, leather patch wallahs can but heres a list they is very useful. vmstat n &#8211; To show Virtual Machine, Disk I/O, Swap etc use.  The n makes it refresh every n seconds /etc/sysconfig/network-scripts/ifcfg-eth1 &#8211; Use to set static interface [...]]]></description>
			<content:encoded><![CDATA[<p>I can never remember any of these commands.  I know that you flip flop waring, bearded, leather patch wallahs can but heres a list they is very useful.</p>
<p><strong>vmstat n</strong> &#8211; To show Virtual Machine, Disk I/O, Swap etc use.  The n makes it refresh every n seconds</p>
<p><strong>/etc/sysconfig/network-scripts/ifcfg-eth1 &#8211; Use to set static interface on most Linux&#8217;s</strong><br />
Contents something like:</p>
<p><span style="font-family: Courier New;"># Description of type<br />
DEVICE=eth1<br />
BOOTPROTO=static<br />
IPADDR=x.x.x.x<br />
NETMASK=x.x.x.x<br />
ONBOOT=yes<br />
TYPE=Ethernet</span></p>
<p class="big"><strong>Remember to use /etc/sysconfig/network for your default gateway</strong></p>
<blockquote>
<p class="normal">NETWORKING=yes<br />
HOSTNAME=&#8221;hostname.linux.org&#8221;<br />
GATEWAY=&#8221;10.164.234.1&#8243;<br />
GATEWAYDEV=&#8221;eth0&#8243;<br />
FORWARD_IPV4=&#8221;yes&#8221;</p>
</blockquote>
<p><strong>TAR</strong> &#8211; Use extracting/imploding files to one file &#8211; does not compress<br />
<strong>tar cvf nameoftarfile.tar -I textfile.txt</strong> &#8211; takes the contents of the text file and adds to tar<br />
<strong>tar xcvf nameoftarfile.tar </strong>- extract and verify</p>
<p><strong>Solaris and 802.1q tagged interfaces</strong><br />
Interfaces are usually called hostname.ceVLANID000</p>
<p><strong>Adding Interfaces to Solaris</strong> &#8211; making sure they work on boot<br />
vi /etc/netmasks &#8211; add the subnet to this<br />
vi /etc/hosts &#8211; add the interface and VLAN<br />
create a hostname.ceVLANID000 file<br />
manually plumb:<br />
  plumb eth1 (bring up L1)<br />
  ifconfig add inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x<br />
  ifconfig eth1 up</p>
<p>Ill keep adding as I think of them</p>
<p><img src="http://iddles.co.uk/aggbug.aspx?PostID=2200" alt="" width="1" height="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://iddles.co.uk/blogs/index.php/2006/07/useful-unix-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

