<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CU8GQXs5cCp7ImA9WhRUFkw.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323</id><updated>2012-01-27T08:37:00.528+11:00</updated><category term="flash" /><category term="public key" /><category term="gpg" /><category term="path" /><category term="package" /><category term="lan" /><category term="bind9" /><category term="lenny" /><category term="rapidshare" /><category term="NAS" /><category term="bridged" /><category term="eucalyptus" /><category term="rt2870sta" /><category term="RT" /><category term="chrome" /><category term="home" /><category term="pppd" /><category term="firefox" /><category term="sshfs" /><category term="emerald" /><category term="apt.lucid" /><category term="window" /><category term="spam" /><category term="torrent" /><category term="openvpn" /><category term="multi" /><category term="email" /><category term="mdadm" /><category term="jaunty" /><category term="cron" /><category term="raid" /><category term="line" /><category term="apt-cacher-ner" /><category term="bind" /><category term="backup" /><category term="bittorrent" /><category term="replicate" /><category term="IPv6" /><category term="DHCP3" /><category term="system" /><category term="amanda" /><category term="mysql" /><category term="LVM" /><category term="poptop" /><category term="lock" /><category term="controls" /><category term="vmware" /><category term="theme" /><category term="prtscn" /><category term="automatic" /><category term="apt" /><category term="hate" /><category term="cloud" /><category term="bash" /><category term="natty" /><category term="move" /><category term="intrepid" /><category term="network driver" /><category term="NFS" /><category term="dns" /><category term="software" /><category term="5" /><category term="crap" /><category term="certificate" /><category term="snmp" /><category term="ubuntu" /><category term="error" /><category term="karmic" /><category term="itunes" /><category term="DHCP" /><category term="roaming" /><category term="users" /><category term="setup" /><category term="11.04" /><category term="qcow" /><category term="public" /><category term="client" /><category term="6.01" /><category term="cache" /><category term="passwordless" /><category term="oblivion tips hints" /><category term="drive" /><category term="minute" /><category term="alt" /><category term="04" /><category term="hang" /><category term="maverick" /><category term="lucid" /><category term="blank" /><category term="passthru" /><category term="headless" /><category term="3.6" /><category term="command" /><category term="hardy" /><category term="vmware server" /><category term="easy" /><category term="sync" /><category term="gnome" /><category term="KVM" /><category term="console" /><category term="mrtg" /><category term="download" /><category term="ldap" /><category term="8.04" /><category term="IPv4" /><category term="RTL-8168" /><category term="internet" /><category term="script" /><category term="debian" /><category term="slave" /><category term="mysqldump" /><category term="grub2" /><category term="squeeze" /><category term="404" /><category term="compiz" /><category term="five" /><category term="firewall" /><category term="update" /><category term="repository" /><category term="named" /><category term="badsig" /><category term="linux" /><category term="LTS" /><category term="screen" /><category term="router" /><category term="key" /><category term="login" /><category term="11" /><category term="boxee" /><category term="10.04" /><category term="usb" /><category term="r8169" /><category term="howto" /><category term="remote" /><category term="ssh" /><category term="r8168" /><category term="monitoring" /><category term="Request Tracker" /><category term="lynx" /><category term="openssh" /><category term="vmware workstation" /><category term="realtek" /><category term="print" /><category term="autofs" /><category term="sucks" /><category term="apt-cache" /><category term="samba" /><category term="server" /><category term="vpn" /><category term="q" /><category term="Virtualbox" /><category term="mono" /><category term="iptables" /><category term="mixed" /><category term="deluge" /><category term="gmail" /><category term="master" /><category term="profile" /><title>The Tuxnetworks Linux Bible</title><subtitle type="html">(formerly Ubuntu Bloke)</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://tuxnetworks.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>137</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/TheTuxnetworksLinuxBible" /><feedburner:info uri="thetuxnetworkslinuxbible" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>TheTuxnetworksLinuxBible</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;Dk4FQns9eip7ImA9WhRQEUk.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6175409907241459214</id><published>2011-12-06T14:10:00.001+11:00</published><updated>2011-12-06T15:15:13.562+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-06T15:15:13.562+11:00</app:edited><title>Shutdown stalls using HAST + ZFS</title><content type="html">I've been playing around with &lt;a href="http://wiki.freebsd.org/HAST"&gt;hast&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/ZFS"&gt;zfs&lt;/a&gt;&amp;nbsp;which is pretty neat.&lt;br /&gt;
&lt;br /&gt;
However, I have found a problem where if you try to restart a host that is running HAST as a primary node with a mounted zpool the server fails to complete the shutdown process and requires a hard reset.&lt;br /&gt;
&lt;br /&gt;
You can fix this by modifying the HAST init script and force it to unmount any zfs filesystems before stopping HAST.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;vi /etc/rc.d/hastd&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;hastd_stop_precmd()&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;{&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zfs unmount -a&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;        &lt;/span&gt;${hastctl} role init all&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;}&lt;/code&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
After adding the zfs unmount command into the hastd_stop_precmd section as shown above you should be able to safely restart your system&lt;br /&gt;
&lt;br /&gt;
Note: If you do a csup at any point this change could be overwritten so take care. Also, be aware that this will unmount all zfs filesystems, if you need to only unmount a specific filesystem then you should modify the unmount command accordingly.&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6175409907241459214?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UHzNPaR4xbYKDzjMVl5NBIz4vZo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UHzNPaR4xbYKDzjMVl5NBIz4vZo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UHzNPaR4xbYKDzjMVl5NBIz4vZo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UHzNPaR4xbYKDzjMVl5NBIz4vZo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/dpxjRtNFsYE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6175409907241459214/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6175409907241459214" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6175409907241459214?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6175409907241459214?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/dpxjRtNFsYE/shutdown-stalls-using-hast-zfs.html" title="Shutdown stalls using HAST + ZFS" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/12/shutdown-stalls-using-hast-zfs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08EQXw4eCp7ImA9WhRRGEs.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-4873843720083783431</id><published>2011-12-03T09:23:00.001+11:00</published><updated>2011-12-03T09:43:20.230+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-03T09:43:20.230+11:00</app:edited><title>Skyrim</title><content type="html">My son is a big Elder Scrolls fan so as soon as Skyrim was released he was on it like fleas on a dog. He kept telling me all about it and didn't appear to have any issues so I broke a long standing rule of mine and actually purchased a new release game for the first time in 5 years or more.&lt;br /&gt;
&lt;br /&gt;
I played for about 40 hours with us chatting via Steam chat and apart from about 3 spontaneous crashes to the desktop and one dungeon (Bonechill Passage) that I had to navigate by walking backwards (otherwise it would crash every time a baddy saw me) I didn't have a lot of trouble with it.&lt;br /&gt;
&lt;br /&gt;
Less trouble than you normally get from a damned Bethesda game anyway.&lt;br /&gt;
&lt;br /&gt;
Then along came the 1.2&amp;nbsp;patch&amp;nbsp;which purported to fix a whole lot of bugs that I wasn't seeing.&lt;br /&gt;
&lt;br /&gt;
What an unmitigated disaster.&lt;br /&gt;
&lt;br /&gt;
Now, Skyrim is totally unplayable.&lt;br /&gt;
&lt;br /&gt;
For some reason, every time I fire an arrow the game hangs, requiring it to be killed in task manager.&lt;br /&gt;
&lt;br /&gt;
Every. Single. Time.&lt;br /&gt;
&lt;br /&gt;
This sucks because my level 15 wood elf has zero magic skills and is built entirely around sneak and archery.&lt;br /&gt;
&lt;br /&gt;
I've tried reverting to an older save. This &lt;i&gt;seemed&lt;/i&gt;&amp;nbsp;to fix it for a bit, until I entered a dungeon, where I attempted to fire off an arrow and, yes, you guessed, lock up city again.&lt;br /&gt;
&lt;br /&gt;
This is fricking ridiculous.&lt;br /&gt;
&lt;br /&gt;
I removed Skyrim from Steam and reinstalled it. First I tried to install it with Steam offline to ensure that the update wasn't slurped down again but of course&lt;i&gt; you can't install a game from DVD while offline because the goddam DRM won't allow it.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Fuckwits.&lt;br /&gt;
&lt;br /&gt;
So, I had to install with Steam online which I did. In order to ensure that the patch wasn't installed I went into Skyrim properties and set it to NOT download updates while the install was going.&lt;br /&gt;
&lt;br /&gt;
The install takes about half an hour, during which time I got distracted (I can only watch a progress bar for so long before I get bored)&lt;br /&gt;
&lt;br /&gt;
When I noticed that the DVD activity LED was no longer showing any activity I jumped back to Steam only to find WTF?, the fricking patch has started downloading and there is no way that it can be stopped.&lt;br /&gt;
&lt;br /&gt;
Skyrim simply refuses to start until the patch has installed.&lt;br /&gt;
&lt;br /&gt;
What the FUCK? Am I playing Battlefield 3 here? A multiplayer game where it is important that all the players are on the same version of code?&lt;br /&gt;
&lt;br /&gt;
No I am NOT.&lt;br /&gt;
&lt;br /&gt;
This is a single player game and it is MY goddam computer. I should decide what version of code to run not some ASSHAT who works at a computer game company.&lt;br /&gt;
&lt;br /&gt;
I've got a good mind to take this game back for a refund and find a pirate version at the bloody pirate bay.&lt;br /&gt;
&lt;br /&gt;
I hate the way the game industry has become over the last 30 years.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-4873843720083783431?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KTrTlicb8eSyLhBCazCXKk4k83M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KTrTlicb8eSyLhBCazCXKk4k83M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KTrTlicb8eSyLhBCazCXKk4k83M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KTrTlicb8eSyLhBCazCXKk4k83M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/pP5YyI_b484" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/4873843720083783431/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=4873843720083783431" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4873843720083783431?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4873843720083783431?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/pP5YyI_b484/skyrim.html" title="Skyrim" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>1</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/12/skyrim.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYARHwzcSp7ImA9WhRSGUQ.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-5127774652045512142</id><published>2011-11-22T10:32:00.001+11:00</published><updated>2011-11-23T08:42:25.289+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-23T08:42:25.289+11:00</app:edited><title>Update FreeBSD Sources and Rebuild World</title><content type="html">To update your source tree and rebuild your kernel to ensure it matches the sources follow these steps.&lt;br /&gt;
&lt;br /&gt;
Copy the sample supfile to /root;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# cp /usr/share/examples/cvsup/standard-supfile ~&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Edit the supfile and change the line that says;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;*default host=CHANGE_THIS.FreeBSD.org&lt;/code&gt;
&lt;/br&gt;
So that it points to a server that is local to you. On mine I use the au mirror;
&lt;/br&gt;
&lt;code&gt;*default host=cvsup.au.freebsd.org&lt;/code&gt;
&lt;br /&gt;
If you already have a working supfile, ensure it contains a line;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# src-all &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Execute csup to download the kernel sources;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# csup ~/standard-supfile&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Compile everything;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# cd /usr/src&lt;br /&gt;# make buildworld&lt;br /&gt;# make buildkernel&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Install the new kernel;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# make installkernel&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Reboot into single user mode;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# init 6&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
In single user mode execute these commands;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# adjkerntz -i&lt;br /&gt;# mount -a -t ufs&lt;br /&gt;# mergemaster -p&lt;br /&gt;# cd /usr/src&lt;br /&gt;# make installworld&lt;br /&gt;# mergemaster&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Reboot;&lt;br /&gt;
&lt;code&gt;# init 6&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This was lifted from the FreeBSD documentation;&lt;br /&gt;
&lt;br /&gt;
http://www.freebsd.org/doc/handbook/makeworld.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-5127774652045512142?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xaGQwcERxTg5hBjuly6u9Gt7dUA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xaGQwcERxTg5hBjuly6u9Gt7dUA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xaGQwcERxTg5hBjuly6u9Gt7dUA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xaGQwcERxTg5hBjuly6u9Gt7dUA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/sKoJ1z1B4vA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/5127774652045512142/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=5127774652045512142" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/5127774652045512142?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/5127774652045512142?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/sKoJ1z1B4vA/update-freebsd-sources-and-rebuild.html" title="Update FreeBSD Sources and Rebuild World" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/11/update-freebsd-sources-and-rebuild.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYNQX04cCp7ImA9WhRREEU.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-348221292823475956</id><published>2011-11-18T15:15:00.001+11:00</published><updated>2011-11-24T09:09:50.338+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-24T09:09:50.338+11:00</app:edited><title>Installing VirtualBox OSE in FreeBSD 9</title><content type="html">Installing VirtualBox from the FreeBSD ports tree is not as straightforward as you may expect.&lt;br /&gt;
&lt;br /&gt;
You may in fact hit a couple of snags. The first one is that you are required to have the FreeBSD kernel source installed or else it will stop while trying to compile the network drivers.&lt;br /&gt;
&lt;br /&gt;
The second is an incompatibility between VirtualBox and the newer kernels which results in the following error during compilation;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;error: 'D_PSEUDO' undeclared here (not in a function)&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Perform the following steps as the root user to get Vbox installed.&lt;br /&gt;
&lt;br /&gt;
First, you need to install the kernel sources and &lt;a href="http://tuxnetworks.blogspot.com/2011/11/update-freebsd-sources-and-rebuild.html"&gt;rebuild your world and kernel&lt;/a&gt;;&lt;br /&gt;
&lt;br /&gt;
Once done, login again as root and change to the directory for the virtualbox-ose port;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;cd /usr/ports/emulators/virtualbox-ose&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This port will install virtualbox-ose-kmod as a dependency which is where the error causing the error shown above is hiding.&lt;br /&gt;
&lt;br /&gt;
We need to edit one of the source files before we attempt to compile;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# vi ../virtualbox-ose-kmod/work/VirtualBox-4.0.12_OSE/out/freebsd.amd64/release/bin/src/vboxdrv/freebsd/SUPDrv-freebsd.c&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
On or about line 104 you will see the following C code;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;#if __FreeBSD_version &amp;gt; 800061&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .d_flags =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_PSEUDO | D_TRACKCLOSE | D_NEEDMINOR,&lt;br /&gt;#else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .d_flags =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_PSEUDO | D_TRACKCLOSE,&lt;br /&gt;#endif&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change it, removing the D_PSUEDO flag so it looks like this;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;#if __FreeBSD_version &amp;gt; 800061&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .d_flags =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; D_TRACKCLOSE | D_NEEDMINOR,&lt;br /&gt;#else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .d_flags =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code&gt;D_PSEUDO | &lt;/code&gt;&lt;code&gt;D_TRACKCLOSE,&lt;br /&gt;#endif&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now, we are ready to do a normal build of virtualbox;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;make install clean&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-31km_a4LJBA/Tsxux1iKMdI/AAAAAAAAAI4/UCDOG8lHpE0/s1600/Screenshot-Terminal.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="254" src="http://4.bp.blogspot.com/-31km_a4LJBA/Tsxux1iKMdI/AAAAAAAAAI4/UCDOG8lHpE0/s400/Screenshot-Terminal.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-size: x-small;"&gt;Use these configure options&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
To allow VirtualBox access to hardware such as CD/DVD drives you should also install HALD;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;cd /usr/ports/sysutils/hal&lt;br /&gt;&lt;br /&gt;make install clean&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Create /boot/loader.conf and add these lines;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;atapicam_load="YES"&lt;br /&gt;vboxdrv_load="YES"&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Add these options to your /etc/rc.conf;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;vboxnet_enable="YES" # Enable virtualbox&lt;br /&gt;hald_enable="YES" # Required to allow virtualbox to access CDROM device&lt;br /&gt;dbus_enable="YES" # Required by hald&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Add these lines to /etc/devfs.conf:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;own&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vboxnetctl&amp;nbsp; root:vboxusers&lt;br /&gt;perm&amp;nbsp;&amp;nbsp;&amp;nbsp; vboxnetctl&amp;nbsp; 0660&lt;br /&gt;perm&amp;nbsp; cd0&amp;nbsp;&amp;nbsp; 0660&lt;br /&gt;perm&amp;nbsp; xpt0&amp;nbsp;&amp;nbsp; 0660&lt;br /&gt;perm&amp;nbsp; pass0&amp;nbsp;&amp;nbsp; 0660 &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Add all users that need virtualbox to the vboxusers group:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# pw groupmod vboxusers -m &lt;i&gt;username&lt;/i&gt; &lt;/code&gt; &lt;br /&gt;
&lt;br /&gt;
Finally, reboot the machine;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;init 6&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-348221292823475956?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eOs0rOBswT3InpLo8VS9lQuI1II/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eOs0rOBswT3InpLo8VS9lQuI1II/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eOs0rOBswT3InpLo8VS9lQuI1II/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eOs0rOBswT3InpLo8VS9lQuI1II/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/wSpom2K8DIY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/348221292823475956/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=348221292823475956" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/348221292823475956?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/348221292823475956?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/wSpom2K8DIY/installing-virtualbox-ose-in-freebsd-9.html" title="Installing VirtualBox OSE in FreeBSD 9" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-31km_a4LJBA/Tsxux1iKMdI/AAAAAAAAAI4/UCDOG8lHpE0/s72-c/Screenshot-Terminal.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/11/installing-virtualbox-ose-in-freebsd-9.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUEQnc4eyp7ImA9WhRSFkg.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-4004502903688369707</id><published>2011-11-18T09:41:00.001+11:00</published><updated>2011-11-19T08:53:23.933+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-19T08:53:23.933+11:00</app:edited><title>Using ZFS on FreeBSD 9</title><content type="html">I've decided to retire my Ubuntu based NAS and reload it with FreeBSD so that I can use ZFS.&lt;br /&gt;
&lt;br /&gt;
I wanted to use ZFS deduplication which means that ZFS version 23 or later is required.&lt;br /&gt;
&lt;br /&gt;
Since the upcoming FreeBSD 9 has ZFS v28 I decided to go with that, even though it is still only an RC.&lt;br /&gt;
&lt;br /&gt;
I'm not going to boot off ZFS so there is no need to muck about trying to get that to work, although I believe it can be done.&lt;br /&gt;
&lt;br /&gt;
Maybe another day.&lt;br /&gt;
&lt;br /&gt;
So, I just did a vanilla FreeBSD install to my OCZ SSD and ignored the remaining drives in my server for now.&lt;br /&gt;
&lt;br /&gt;
Once FreeBSD is installed, log in as root and do the following to create some ZFS "pools".&lt;br /&gt;
&lt;br /&gt;
First, you need to identify the hard disks devices that are installed in your system;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;# dmesg | grep ad | grep device
ada0: &amp;lt;OCZ 02.10104&amp;gt; ATA-8 SATA 2.x device
ada1: &amp;lt;SAMSUNG 1AA01113&amp;gt; ATA-7 SATA 2.x device
ada2: &amp;lt;ST32000542AS&amp;gt; ATA-8 SATA 2.x device
ada3: &amp;lt;ST32000542AS&amp;gt; ATA-8 SATA 2.x device&lt;/st32000542as&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
ada0 is my system drive which I will ignore.&lt;br /&gt;
&lt;br /&gt;
The Samsung drive is a 1GB drive that I use for non critical stuff while the two ST32000 Seagates are 2TB drives that I will use to create my main pool for a total 4TB capacity.&lt;br /&gt;
&lt;br /&gt;
Creating a ZFS pool is super easy. Lets' create a zpool called "store" out of the 2 x Seagates;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zpool create store ada2 ada3&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
We can take a look at our pool;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zpool list&lt;br /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE&amp;nbsp; ALLOC&amp;nbsp;&amp;nbsp; FREE&amp;nbsp;&amp;nbsp;&amp;nbsp; CAP&amp;nbsp; DEDUP&amp;nbsp; HEALTH&amp;nbsp; ALTROOT&lt;br /&gt;store&amp;nbsp; 3.62T&amp;nbsp; 0.00T&amp;nbsp;&amp;nbsp; 3.62T&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp; 1.00x&amp;nbsp; ONLINE&amp;nbsp; -&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
To get a more detailed report, use the "status" command;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zpool status&lt;br /&gt;&amp;nbsp; pool: store&lt;br /&gt;&amp;nbsp;state: ONLINE&lt;br /&gt;&amp;nbsp;scan: none requested&lt;br /&gt;config:&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; READ WRITE CKSUM&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; store&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ONLINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ada2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ONLINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; ada3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ONLINE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;br /&gt;&lt;br /&gt;errors: No known data errors&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
If I had wanted to make a mirror from my two Seagates, I simply add the raidz paramater;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;zpool create raidz store ada2 ada3&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So, presently I have a ZFS pool, which has a default filesystem. You can see that it is mounted using the df command;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# df -h&lt;br /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp; Used&amp;nbsp;&amp;nbsp; Avail Capacity&amp;nbsp; Mounted on&lt;br /&gt;/dev/ada0p2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29G&amp;nbsp;&amp;nbsp;&amp;nbsp; 42%&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;br /&gt;devfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0B&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev&lt;br /&gt;store&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp; /store&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Normally, you would not just start dumping files straight onto the pool, but instead you create another filesystem to store your files in. You do this with the "zfs" command.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zfs create store/archive&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Check your mounted filesystems again;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# df -h&lt;br /&gt;Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp;&amp;nbsp; Used&amp;nbsp;&amp;nbsp; Avail Capacity&amp;nbsp; Mounted on&lt;br /&gt;/dev/ada0p2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21G&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29G&amp;nbsp;&amp;nbsp;&amp;nbsp; 42%&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;br /&gt;devfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0B&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp;&amp;nbsp; /dev&lt;br /&gt;store&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp; /store&lt;br /&gt;store/archive&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.0k&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0%&amp;nbsp;&amp;nbsp;&amp;nbsp; /store/archive&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now, one of the reasons for using ZFS is to use ZFS's deduplication and compression features. Let's turn those on;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zfs set dedup=on store/archive&lt;br /&gt;# zfs set compression=on store/archive&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You could apply those commands directly to the pool if you like. When dedup is applied to the pool then the deduplication process applies to all filesystems within the pool. &lt;br /&gt;
&lt;br /&gt;
Another neat thing about ZFS is how easy it is to share a filesystem using nfs. Of course NFS must be enabled on your system in /etc/rc.conf for this to work.&lt;br /&gt;
&lt;br /&gt;
With NFS enabled, let's share store/archive; &lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;zfs sharenfs="-maproot=0:0" store/archive&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Unlike with "normal" NFS there is no need to restart any services after issuing this command, although you should note that is not recommended that you mix "normal" NFS (ie: /etc/exports) with ZFS controlled NFS. &lt;br /&gt;
&lt;br /&gt;
In other words, keep your /etc/exports file empty.&lt;br /&gt;
&lt;br /&gt;
My archive filesystem is now shared, but it is open to everybody. Usually I don't care about that at home but in other scenarios you may wish to restrict access to certain networks;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zfs sharenfs="-maproot=0:0 -network 10.1.1.0 -mask 255.255.255.0" store/archive &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You can see your existing exports by viewing the zfs/exports file;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# cat /etc/zfs/exports&lt;br /&gt;# !!! DO NOT EDIT THIS FILE MANUALLY !!!&lt;br /&gt;&lt;br /&gt;/store/archive&amp;nbsp;&amp;nbsp;&amp;nbsp; -maproot=0:0 &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You can get a whole bunch of stuff with this command;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zfs get all store/archive&lt;br /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROPERTY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE&lt;br /&gt;store/archive&amp;nbsp; type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; creation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mon Oct 31 10:39 2011&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; used&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; available&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.4T&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; referenced&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; compressratio&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00x&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; mounted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; quota&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; reservation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; recordsize&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; mountpoint&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /store/archive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; sharenfs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -maproot=0:0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local&lt;br /&gt;store/archive&amp;nbsp; checksum&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; compression&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local&lt;br /&gt;store/archive&amp;nbsp; atime&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; devices&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; exec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; setuid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; readonly&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; jailed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; snapdir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hidden&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; aclmode&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; aclinherit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; restricted&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; canmount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; xattr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temporary&lt;br /&gt;store/archive&amp;nbsp; copies&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; utf8only&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; normalization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; casesensitivity&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sensitive&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; vscan&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; nbmand&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; sharesmb&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; refquota&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; refreservation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; primarycache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; secondarycache&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; usedbysnapshots&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; usedbydataset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00K&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; usedbychildren&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; usedbyrefreservation&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; logbias&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; latency&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; dedup&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local&lt;br /&gt;store/archive&amp;nbsp; mlslabel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;br /&gt;store/archive&amp;nbsp; sync&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; standard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default&lt;br /&gt;store/archive&amp;nbsp; refcompressratio&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.00x&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the list command will display all your ZFS filesystems;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zfs list&lt;br /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USED&amp;nbsp; AVAIL&amp;nbsp; REFER&amp;nbsp; MOUNTPOINT&lt;br /&gt;store&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5.46T&amp;nbsp;&amp;nbsp; 841G&amp;nbsp; 2.60T&amp;nbsp; /store&lt;br /&gt;store/archive&amp;nbsp; 2.70T&amp;nbsp;&amp;nbsp; 841G&amp;nbsp; 2.70T&amp;nbsp; /store/archive&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
You may have noticed the numbers in the above grab and what's that? My store pool has 5.46T used but it only has a capacity of 3.6T! What gives?&lt;br /&gt;
&lt;br /&gt;
Well, this command was issued after loading a whole bunch of files to the NAS and it just so happens that there are a lot of duplicates on there. The zfs list command shows you the total amount of space used as it appears to the operating system as opposed to the actual amount used on the disk.&lt;br /&gt;
&lt;br /&gt;
If I issue the zpool list command I can see how much of my disk is deduped;&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;# zpool list&lt;br /&gt;NAME&amp;nbsp;&amp;nbsp;&amp;nbsp; SIZE&amp;nbsp; ALLOC&amp;nbsp;&amp;nbsp; FREE&amp;nbsp;&amp;nbsp;&amp;nbsp; CAP&amp;nbsp; DEDUP&amp;nbsp; HEALTH&amp;nbsp; ALTROOT&lt;br /&gt;store&amp;nbsp; 3.62T&amp;nbsp; 2.70T&amp;nbsp;&amp;nbsp; 942G&amp;nbsp;&amp;nbsp;&amp;nbsp; 74%&amp;nbsp; 2.02x&amp;nbsp; ONLINE&amp;nbsp; - &lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So, that's the basics of ZFS, enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-4004502903688369707?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/fJMmKYR7CEymTzvdvtnh-MCIzoM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fJMmKYR7CEymTzvdvtnh-MCIzoM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/fJMmKYR7CEymTzvdvtnh-MCIzoM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/fJMmKYR7CEymTzvdvtnh-MCIzoM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/Qjb3RFIeukc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/4004502903688369707/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=4004502903688369707" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4004502903688369707?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4004502903688369707?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/Qjb3RFIeukc/using-zfs-on-freebsd-9.html" title="Using ZFS on FreeBSD 9" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>2</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/11/using-zfs-on-freebsd-9.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UCRn07fyp7ImA9WhRTF00.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-8531098292085564816</id><published>2011-11-08T10:23:00.003+11:00</published><updated>2011-11-08T10:41:07.307+11:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-08T10:41:07.307+11:00</app:edited><title>Creating an MX record using the NetRegistry Zonemanager</title><content type="html">I've just spent a frustrating couple of hours struggling to get an MX record to resolve using the NetRegistry "Zonemanager" (netregistry.com).&lt;br /&gt;
&lt;br /&gt;
You need to use their "Zonemanager" web interface to create and update DNS records.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-zOJHGe4DOPM/TrhmEdnpQtI/AAAAAAAAAH8/W8P67oJkhp8/s1600/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://1.bp.blogspot.com/-zOJHGe4DOPM/TrhmEdnpQtI/AAAAAAAAAH8/W8P67oJkhp8/s400/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
The trouble is, if you try to save that page (using the unhelpfully labeled "Edit Record" button) then it will fail because it does not like the trailling fullstop on the text in the "Name" field.&lt;br /&gt;
&lt;br /&gt;
If you remove the full stop then the MX will now fail to resolve.

In fact, putting anything in the "Name" field will cause your MX record to fail.&lt;br /&gt;
&lt;br /&gt;
What you need to do is leave the "Name" field &lt;i&gt;completely empty&lt;/i&gt;  which then causes the "smoke and mirrors" function within Zonemanager to create a record that includes the magical domain name with trailing full stop entry.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-Qmq45IpjbOY/TrhrMsL3CfI/AAAAAAAAAIo/Ob-5BRd7I3o/s1600/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-2.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="62" src="http://4.bp.blogspot.com/-Qmq45IpjbOY/TrhrMsL3CfI/AAAAAAAAAIo/Ob-5BRd7I3o/s640/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-2.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-size: xx-small;"&gt;Here is what the "Edit MX record" page looks like for a good MX entry.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm not even sure what that entry means, because when I set up an MX using bind the MX line has no entry at all in that furthest to the left position.&lt;br /&gt;
&lt;br /&gt;
Anyway, fill your form out like this and it should be OK. The "Is Host Fully Qualified" tickbox doesn't seem to do anything.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-e9O_GJCAwFA/TrhoSareofI/AAAAAAAAAII/eLE7QbucaXo/s1600/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="291" src="http://2.bp.blogspot.com/-e9O_GJCAwFA/TrhoSareofI/AAAAAAAAAII/eLE7QbucaXo/s400/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-1.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style="text-align: center;"&gt;
&lt;span style="font-size: xx-small;"&gt;&lt;i&gt;This is how you should create an MX record using Netregistry Zonemanager.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-8531098292085564816?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wy5w8XGJQV6MFAiIMKSRJGKAoFU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wy5w8XGJQV6MFAiIMKSRJGKAoFU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wy5w8XGJQV6MFAiIMKSRJGKAoFU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wy5w8XGJQV6MFAiIMKSRJGKAoFU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/E4fvfUQAMn4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/8531098292085564816/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=8531098292085564816" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8531098292085564816?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8531098292085564816?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/E4fvfUQAMn4/ive-just-spent-frustrating-couple-of.html" title="Creating an MX record using the NetRegistry Zonemanager" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-zOJHGe4DOPM/TrhmEdnpQtI/AAAAAAAAAH8/W8P67oJkhp8/s72-c/Screenshot-The%2BConsole%2B%257C%2BNetregistry%2B-%2BMozilla%2BFirefox-1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/11/ive-just-spent-frustrating-couple-of.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8DSXs6eyp7ImA9WhdUEEU.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-67572827294395604</id><published>2011-09-27T10:48:00.002+10:00</published><updated>2011-09-27T10:54:38.513+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-27T10:54:38.513+10:00</app:edited><title>MS To Use Secure Boot "Feature" To Reinforce Windows Lock-in</title><content type="html">"A senior Red Hat engineer has lashed back at Microsoft's attempt to downplay concerns that upcoming secure boot features will make it impossible to install Linux on Windows 8 certified systems"&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.theregister.co.uk/2011/09/26/uefi_linux_lock_out_row_latest/"&gt;The Register September 26 2011&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Without any doubt, Microsoft are the second most evil company in the world (after Monsanto)&lt;br /&gt;&lt;br /&gt;Things that would be fatally damning for most other companies are constantly made public about MS and they continue on unchecked.&lt;br /&gt;&lt;br /&gt;On the exceedingly rare occasion that they get prosecuted for something they simply throw a few "free" Windows + Office" licenses at the education institutions in the complaining jurisdiction and their troubles magically disappear.&lt;br /&gt;&lt;br /&gt;The U.S. Government won't touch them because the U.S. has only 2 industries of any worth left, Tech and pop culture media.&lt;br /&gt;&lt;br /&gt;These are the only things that the U.S. still has the ability to sell to the world, and it is no coincidence that these two industries are given complete freedom to screw everyone over in order to maintain their dominant positions in their respective markets. &lt;br /&gt;&lt;br /&gt;Should the likes of MS, Oracle and Apple fall along with the MPAA and RIAA members then the USA would be truly irrelevant to 95% of the planet.&lt;br /&gt;&lt;br /&gt;I'm sure their politicians are aware of this and thus they allow them to get away with anti-consumer practices across the board in order to retain their relevance in world markets.&lt;br /&gt;&lt;br /&gt;All is not lost however because it is a negative strategy and ultimately negative strategies are destined to fail. &lt;br /&gt;&lt;br /&gt;Despite their best efforts to use hostile litigation and anti-competitive lock-in strategies to keep at the top of the heap, eventually others will come along who offer better products with less pent up antagonism directed at them. &lt;br /&gt;&lt;br /&gt;People increasingly come to resent being harassed, dictated to and having their choices removed for the benefit of corporate profiteers in another country. &lt;br /&gt;&lt;br /&gt;People no longer *like* Microsoft, or their products. They associate them with boring jobs, and having to wait for ages while the crappy slow corp PC they have on their desk reboots after a crash . Even longer for patch Tuesday, not that they know what patch Tuesday is.&lt;br /&gt;&lt;br /&gt;Microsoft and Windows are not cool. There is no "wow, I must get the new Windows phone" factor at play and the few remaining OS fanboys that are out there are not enough to sustain a corporation that is the size of the Beast of Redmond. On top of that, most of the OS fanboys have the ability (and willingness) to pirate their copies of Windows Ultimate Whizbang Professional Edition anyway.&lt;br /&gt;&lt;br /&gt;If Microsoft do manage to achieve what they are trying to do with this latest lock-in gambit then they will just cause even greater dissent within their existing customer base and increase the rate of user defections to other forms of computing, such as tablets and such. &lt;br /&gt;&lt;br /&gt;The thing that killed the netbook was MS and Intel trying to dictate to the OEMs what they could and couldn't build when it came to the Atom based laptops, known as "Netbooks". &lt;br /&gt;&lt;br /&gt;In their arrogance they just assumed that everybody had no choice but to purchase PC's, and by creating a set of artificial limitations they could thereby force people to purchase PC's with a more expensive processor and OS just so they could get what they actually wanted, which was usually just a bit bigger screen.&lt;br /&gt;&lt;br /&gt;Of course this strategy failed spectacularly and simply left a gaping hole in the market in which Apple promptly shoved the ipad to great success.&lt;br /&gt;&lt;br /&gt;If MS succeed in their aims they will just push more people to purchase things other than PC's. &lt;br /&gt;&lt;br /&gt;In fact, it is intel who should feel most scared by this. If MS succeed in tying x86 hardware to Windows alone then it will be the ARM vendors who will rush in to take up the slack.&lt;br /&gt;&lt;br /&gt;I'm yet to be convinced that MS will be successful in their efforts to port their full Windows + Office stack to ARM so ARM makers would have no reason at all to yield to MS threats and lock their hardware to Windows.&lt;br /&gt;&lt;br /&gt;Even if MS do succeed in getting Windows on to ARM, I doubt very much that most of the ARM vendors would be silly enough to listen to such threats anyway as it would mean cutting off what is currently 100% of their market in order to sell in a new market (Windows) which is completely unproven up to this point. &lt;br /&gt;&lt;br /&gt;MS will fail. Every time they try one of the tricks that worked for them in the 90's they will find that those tricks no longer work in the more mature market of today.&lt;br /&gt;&lt;br /&gt;They remind me of Bart Simpson on that episode where Lisa was using him as a psyche test subject with the electrified cupcake.&lt;br /&gt;&lt;br /&gt;Hmmm, cupcake, OUCH!!! &lt;br /&gt;&lt;br /&gt;grrrr  &lt;br /&gt;&lt;br /&gt;Hmmm, cupcake, OUCH!!! &lt;br /&gt;&lt;br /&gt;grrrr &lt;br /&gt;&lt;br /&gt;Hmmm, cupcake, OUCH!!! &lt;br /&gt;&lt;br /&gt;grrrr&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-67572827294395604?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CDGjgqj-wT0u4ZR7p2eWHUkGT8k/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CDGjgqj-wT0u4ZR7p2eWHUkGT8k/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CDGjgqj-wT0u4ZR7p2eWHUkGT8k/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CDGjgqj-wT0u4ZR7p2eWHUkGT8k/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/H0TAn3goYo4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/67572827294395604/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=67572827294395604" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/67572827294395604?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/67572827294395604?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/H0TAn3goYo4/ms-to-use-secure-boot-feature-to.html" title="MS To Use Secure Boot &quot;Feature&quot; To Reinforce Windows Lock-in" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>1</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/09/ms-to-use-secure-boot-feature-to.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQEQns4fyp7ImA9WhdXFkw.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-8782803313726936115</id><published>2011-08-29T19:56:00.005+10:00</published><updated>2011-08-29T20:21:43.537+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-29T20:21:43.537+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sucks" /><category scheme="http://www.blogger.com/atom/ns#" term="hate" /><category scheme="http://www.blogger.com/atom/ns#" term="crap" /><category scheme="http://www.blogger.com/atom/ns#" term="itunes" /><title>10 Reasons Why Itunes is Utterly Crap</title><content type="html">I have an iphone 4. I like it. It is, in fact, the best damned phone I've ever owned. I have always hated Nokia phones. My Moto Razor V3 was good but the iphone is great.
&lt;br /&gt;
&lt;br /&gt;Unfortunately, the iphone is saddled with itunes, making it far less attractive to me.
&lt;br /&gt;
&lt;br /&gt;Here are some of the things that drive me batshit insane about itunes on Windows.
&lt;br /&gt;
&lt;br /&gt;1) I have an ipod and an iphone. Stupidly, itunes cannot handle multiple devices, forcing you to use different Windows user profiles for each device as a workaround.
&lt;br /&gt;
&lt;br /&gt;2) Itunes compounds that retardedness by not allowing you to have itunes open in two user profiles at the same time. 
&lt;br /&gt;
&lt;br /&gt;3) The latest Iphone software update is 666.6 megabytes! This is not directly a factor in itunes sucking but read on . . . 
&lt;br /&gt;
&lt;br /&gt;4) Despite such a ludicrous download size, you cannot pause downloads and restart them later, despite there being an option that suggests otherwise. Clicking pause immediately resets the download to 0/666 forcing you to restart from scratch.
&lt;br /&gt;
&lt;br /&gt;5) Now, after four hours of downloading the update fails with nonsense "error -3259". This occurs on Windows 7 and Windows XP. Every. Single. Time.
&lt;br /&gt;
&lt;br /&gt;6) Idiotically temperamental handling of a music library which resides on a network share. If the share is not up at any point all your music is "lost" until you re-add them again.
&lt;br /&gt;
&lt;br /&gt;7) Itunes is incredibly resource hungry, to the point that when syncing a phone itunes becomes unusable. Making things worse is that if you happen to minimise itunes, it then stays minimised for the duration of the sync after which you cannot see the progress. 
&lt;br /&gt;
&lt;br /&gt;8) Itunes freaks out with large libraries. It can take literally hours figuring out what files require syncing, and that is before actually starting the sync! How are you meant to handle a 160Gb ipod when itunes freaks out at around 20Gb?
&lt;br /&gt;
&lt;br /&gt;9) If you happen to combine issue 7 and 8 you start wondering whether itunes might have crashed after an hour or more of "sync in progress" on your phone and nothing but an unresponsive mess from itunes itself.
&lt;br /&gt;
&lt;br /&gt;10) Stupid skin job on Windoze version to make it look like it is running on a mac. If I wanted a mac I would buy a mac. If you really want to be my friend make a (non succky) version of itunes for Linux.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;God I hate itunes.
&lt;br /&gt;
&lt;br /&gt;Next time around its an android phone for me, and that is purely down to the complete and utter shiteness that is itunes. 
&lt;br /&gt;
&lt;br /&gt;I don't have a problem with my iphone, but itunes is just fucked.
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-8782803313726936115?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ZNrSE8pYe-1NoGCxRjcqrSu97fI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZNrSE8pYe-1NoGCxRjcqrSu97fI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ZNrSE8pYe-1NoGCxRjcqrSu97fI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ZNrSE8pYe-1NoGCxRjcqrSu97fI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/qyhR92TvUbw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/8782803313726936115/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=8782803313726936115" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8782803313726936115?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8782803313726936115?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/qyhR92TvUbw/10-reasons-why-itunes-is-utterly-crap.html" title="10 Reasons Why Itunes is Utterly Crap" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>4</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/08/10-reasons-why-itunes-is-utterly-crap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYESXw9fSp7ImA9WhdQFUs.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-4712150925884870749</id><published>2011-08-17T15:41:00.004+10:00</published><updated>2011-08-17T16:55:08.265+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-17T16:55:08.265+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="KVM" /><category scheme="http://www.blogger.com/atom/ns#" term="qcow" /><title>Shrink a KVM disk image</title><content type="html">This only applies to images in the qcow2 format and does not apply to raw images.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;First, we should clear as many unwanted files as possible from the machine.
&lt;br /&gt;
&lt;br /&gt;Because simply deleting files with rm does not actually remove the bits (it removes entries in the directory table) we therefore need to convert unused space to an easily compressible state.
&lt;br /&gt;
&lt;br /&gt;We can do that by writing a bunch of zero's to the disk using this command;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Next, we use qemu to shrink the file (compress unused space)
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;qemu-img convert -c -f qcow2 source.img -O qcow2 dest.img&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-4712150925884870749?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/C_jaYv5tWQbttSYI9EFOq0jQOoQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C_jaYv5tWQbttSYI9EFOq0jQOoQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/C_jaYv5tWQbttSYI9EFOq0jQOoQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/C_jaYv5tWQbttSYI9EFOq0jQOoQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/r8HNlRdx7PA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/4712150925884870749/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=4712150925884870749" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4712150925884870749?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4712150925884870749?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/r8HNlRdx7PA/shrink-kvm-disk-image.html" title="Shrink a KVM disk image" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/08/shrink-kvm-disk-image.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UHRXw-eCp7ImA9WhdQE0s.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-4578558698195150938</id><published>2011-08-12T13:58:00.008+10:00</published><updated>2011-08-15T09:40:34.250+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-15T09:40:34.250+10:00</app:edited><title>HOWTO: Direct mapping with autofs</title><content type="html">I wrote an &lt;a href="http://tuxnetworks.blogspot.com/2011/06/howto-mounting-shares-with-autofs.html"&gt;article on autofs&lt;/a&gt; for creating indirect mounts a while back but now I need to mount a directory in the / (root) directory of a machine.
&lt;br /&gt;
&lt;br /&gt;To do this I will use autofs in "direct mapping" mode.
&lt;br /&gt;
&lt;br /&gt;First, if you don't have the automounter service installed, install it now.
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo apt-get install autofs&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Next we need to edit the auto.master file and add a line to tell it which file contains our direct mapping definitions;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo vi /etc/auto.master&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Add this line;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;/-     /etc/auto.direct&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;Now we need to create the auto.direct file;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo vi /etc/auto.direct&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;To mount "my_nfs_server" to "/nas" add this line;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;/nas  -rw     my_nfs_server:/storage&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;blockquote&gt;Note: The directory "/nas" should not be created by you, it will be created automatically by autofs&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;Restart the automounter service;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo service autofs restart&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Check to see if it has worked;
&lt;br /&gt;
&lt;br /&gt;&lt;pre&gt;&lt;code&gt;brettg@zen:$ ls /nas
&lt;br /&gt;files movies music pictures
&lt;br /&gt;brettg@zen:$ df -h 
&lt;br /&gt;my_nfs_server:/storage  1.4T  126G  1.2T  10% /nas
&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-4578558698195150938?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/HiFgAwj9JyHwzxHFplMR3CddJos/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HiFgAwj9JyHwzxHFplMR3CddJos/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/HiFgAwj9JyHwzxHFplMR3CddJos/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/HiFgAwj9JyHwzxHFplMR3CddJos/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/qQc6LN2X0e0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/4578558698195150938/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=4578558698195150938" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4578558698195150938?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/4578558698195150938?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/qQc6LN2X0e0/howto-direct-mapping-mounts-with-autofs.html" title="HOWTO: Direct mapping with autofs" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/08/howto-direct-mapping-mounts-with-autofs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EFQ3g4fip7ImA9WhdSEE4.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-3866894513525739938</id><published>2011-07-19T11:37:00.002+10:00</published><updated>2011-07-19T11:40:12.636+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-19T11:40:12.636+10:00</app:edited><title>Repair GRUB</title><content type="html">After doing a dist-upgrade to Ubuntu Natty I was left with a machine that simply booted to the grub menu and went no further.&lt;br /&gt;&lt;br /&gt;This is how I fixed it.&lt;br /&gt;&lt;br /&gt;First, boot up into a live CD and open a shell prompt.&lt;br /&gt;&lt;br /&gt;Change to superuser&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo -i&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Issue the following commands;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;mkdir ~/tmp&lt;br /&gt;mount /dev/sda1 ~/tmp&lt;br /&gt;mount -o bind /dev ~/tmp/dev&lt;br /&gt;mount -o bind /sys ~/tmp/sys&lt;br /&gt;mount -o bind /proc ~/tmp/proc&lt;br /&gt;chroot ~/tmp bash&lt;br /&gt;grub-install /dev/sda&lt;br /&gt;update-grub&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Reboot the system and you should be OK.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-3866894513525739938?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_RO62uj7TskAue7YNZyPc3eGBAQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_RO62uj7TskAue7YNZyPc3eGBAQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_RO62uj7TskAue7YNZyPc3eGBAQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_RO62uj7TskAue7YNZyPc3eGBAQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/-Ekc3dRN13M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/3866894513525739938/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=3866894513525739938" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3866894513525739938?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3866894513525739938?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/-Ekc3dRN13M/repair-grub.html" title="Repair GRUB" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/07/repair-grub.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEUDQX85fip7ImA9WhZbGEU.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6349390516623868273</id><published>2011-06-24T10:45:00.004+10:00</published><updated>2011-06-24T12:24:30.126+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-24T12:24:30.126+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="server" /><category scheme="http://www.blogger.com/atom/ns#" term="NFS" /><category scheme="http://www.blogger.com/atom/ns#" term="ldap" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="10.04" /><title>HOWTO: Setup an NFS server and client</title><content type="html">In this example I am going to setup a shared home directory to hold user homes. You would typically use this if you are using a &lt;a href="http://tuxnetworks.blogspot.com/2010/07/howto-samba-ldap-on-1004-lucid-short.html"&gt;centralised LDAP server to authenticate users&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Pre-requisites:&lt;br /&gt;A standard Ubuntu server with working network and pingable by name.&lt;br /&gt;&lt;a href="http://tuxnetworks.blogspot.com/2011/06/howto-change-your-default-user-account.html"&gt;&lt;br /&gt;You have relocated your local "sudo" user out of the default /home directory.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Configure the Server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;We are going to use an NFS server to centrally locate our users home directories. Build or select one of your existing Ubuntu servers to act as the host. &lt;br /&gt;&lt;br /&gt;My server is called nfs.tuxnetworks.com and I have made sure that it can be pinged by name by my LAN clients.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Login to your NFS server as root;&lt;br /&gt;&lt;br /&gt;Install the server software;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# apt-get install nfs-kernel-server&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Create a folder for the user home directories;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# mkdir -p /store/ldaphomes&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To export the directory edit your exports file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# vi /etc/exports/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Add this line;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;/store/ldaphomes          *(rw,sync,no_subtree_check,no_root_squash)&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Restart the NFS server;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# service nfs-kernel-server restart&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Configure the Client.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Install the NFS client;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# apt-get install nfs-common&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We are going to mount our NFS share on /home;&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;If you have any home directories in /home, these will become hidden under the mounted directory. Ideally there will be no existing users in /home because you will have shifted your local admin user &lt;a href="http://tuxnetworks.blogspot.com/2011/06/howto-change-your-default-user-account.html"&gt;somewhere else&lt;/a&gt;.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Edit your fstab file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~$ sudo vi /etc/fstab&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Add a line like this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;nfs.tuxnetworks.com:/store/ldaphomes      /home  nfs defaults 0 0&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;If your /home directory was already being mounted to a block device then you should comment this entry out in your fstab file.&lt;/blockquote&gt;&lt;br /&gt;Mount the directory;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~$ sudo mount /home&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You can check that it has worked using the df command&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;nfs:/exports/ldaphomes&lt;br /&gt;                     961432576 153165824 759428608  17% /home&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And thats it!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6349390516623868273?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yOH-fvr9EdxZa1MEM3hSHcHczPY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yOH-fvr9EdxZa1MEM3hSHcHczPY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yOH-fvr9EdxZa1MEM3hSHcHczPY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yOH-fvr9EdxZa1MEM3hSHcHczPY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/jX6sAsJpHiI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6349390516623868273/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6349390516623868273" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6349390516623868273?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6349390516623868273?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/jX6sAsJpHiI/howto-setup-nfs-server-and-client.html" title="HOWTO: Setup an NFS server and client" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>1</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/howto-setup-nfs-server-and-client.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8HSXYzfSp7ImA9WhZbGEU.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-3478165607115917058</id><published>2011-06-23T12:23:00.004+10:00</published><updated>2011-06-24T12:00:38.885+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-24T12:00:38.885+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="lucid" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="10.04" /><title>HOWTO: Change your default user account to a system account</title><content type="html">When you deploy a new Ubuntu installation, the first user it creates (uid=1000) will be given sudo privileges.&lt;br /&gt;&lt;br /&gt;Sometimes it is desirable to have a specific "admin" user on your system that is separate from your normal user accounts which are located in the uid=1000+ range.&lt;br /&gt;&lt;br /&gt;For example, if you are &lt;a href="http://tuxnetworks.blogspot.com/2010/07/howto-samba-ldap-on-1004-lucid-short.html"&gt;setting up an LDAP network&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Unfortunately, you can't set the uid manually during the initial installation process but you can change it afterwards.&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;If you make a mistake during this procedure it is possible to lock yourself out of the system completely. This is not such an issue if this is a freshly installed system but if it is already up and running in some sort of role, then you need to be extra careful. You have been warned!&lt;/blockquote&gt; &lt;br /&gt;I am working here with a fresh Lucid server install, and my uid=1000 user is called "sysadmin".&lt;br /&gt;&lt;br /&gt;Login to a console session as root;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~$ sudo -i&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;Manually edit your passwd file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# vi /etc/passwd&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;At the end of the file will be the entry for the "sysadmin" account;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin:x:1000:1000:system admin,,,:/home/sysadmin:/bin/bash&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;Change the two "1000"'s to "999";&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin:x:999:999:system admin,,,:/home/sysadmin:/bin/bash&lt;/code&gt; &lt;br /&gt;&lt;br /&gt;Make the same change in the "group" file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/group&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Change the "sysadmin" line to;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin:x:999:&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Changing the uid of a user will break the permissions in their home directory;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;~# ls -al /home/sysadmin&lt;br /&gt;total 32&lt;br /&gt;drwxr-xr-x 3 1000     1000     4096 2011-06-23 13:34 .&lt;br /&gt;drwxr-xr-x 3 1000     1000     4096 2011-06-23 13:32 ..&lt;br /&gt;-rw------- 1 1000     1000       48 2011-06-23 13:34 .bash_history&lt;br /&gt;-rw-r--r-- 1 1000     1000      220 2011-06-23 13:32 .bash_logout&lt;br /&gt;-rw-r--r-- 1 1000     1000     3103 2011-06-23 13:32 .bashrc&lt;br /&gt;drwx------ 2 1000     1000     4096 2011-06-23 13:33 .cache&lt;br /&gt;-rw-r--r-- 1 1000     1000      675 2011-06-23 13:32 .profile&lt;br /&gt;-rw-r--r-- 1 1000     1000        0 2011-06-23 13:33 .sudo_as_admin_successful&lt;br /&gt;-rw------- 1 1000     1000      663 2011-06-23 13:34 .viminfo&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;You can fix that by issuing the following commands;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# chown sysadmin:sysadmin /home/sysadmin&lt;br /&gt;~# chown sysadmin:sysadmin /home/sysadmin/.*&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;When we setup LDAP later we will want to mount /home to an NFS share. Unfortunately, when we do this we will overwrite our sysadmin's home folder! Let's move it to the root ("/") directory.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# mv /home/sysadmin /&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We will need to change the path in the passwd file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;~# vi /etc/passwd&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Change it from;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin:x:999:999:sysadmin,,,:/home/sysadmin:/bin/bash&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;to this;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin:x:999:999:sysadmin,,,:/sysadmin:/bin/bash&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Check that all is well;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;~# ls -al /sysadmin&lt;br /&gt;total 32&lt;br /&gt;drwxr-xr-x 3  sysadmin sysadmin 4096 2011-06-23 13:34 .&lt;br /&gt;drwxr-xr-x 23 root     root     4096 2011-06-24 11:29 ..&lt;br /&gt;-rw------- 1  sysadmin sysadmin   48 2011-06-23 13:34 .bash_history&lt;br /&gt;-rw-r--r-- 1  sysadmin sysadmin  220 2011-06-23 13:32 .bash_logout&lt;br /&gt;-rw-r--r-- 1  sysadmin sysadmin 3103 2011-06-23 13:32 .bashrc&lt;br /&gt;drwx------ 2  sysadmin sysadmin 4096 2011-06-23 13:33 .cache&lt;br /&gt;-rw-r--r-- 1  sysadmin sysadmin  675 2011-06-23 13:32 .profile&lt;br /&gt;-rw-r--r-- 1  sysadmin sysadmin    0 2011-06-23 13:33 .sudo_as_admin_successful&lt;br /&gt;-rw------- 1  sysadmin sysadmin  663 2011-06-23 13:34 .viminfo&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;On another console, confirm that you can login as the sysadmin user.&lt;br /&gt;&lt;br /&gt;You should get a proper bash prompt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sysadmin@galileo:~$&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;If your system has a GUI login, be aware that the logon screen will not display usernames for users with a UID of less than 1000. To login using the "sysadmin" account in such a case, you would need to type the name in to the username field manually.&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-3478165607115917058?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hgln6DS4UsfOiU26I-v6n_T9zUo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hgln6DS4UsfOiU26I-v6n_T9zUo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hgln6DS4UsfOiU26I-v6n_T9zUo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hgln6DS4UsfOiU26I-v6n_T9zUo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/UVrotqb7tgM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/3478165607115917058/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=3478165607115917058" title="3 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3478165607115917058?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3478165607115917058?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/UVrotqb7tgM/howto-change-your-default-user-account.html" title="HOWTO: Change your default user account to a system account" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>3</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/howto-change-your-default-user-account.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcBQ3w6fSp7ImA9WhZbFk8.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6837477882226516397</id><published>2011-06-21T12:16:00.004+10:00</published><updated>2011-06-21T13:47:32.215+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-21T13:47:32.215+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="IPv6" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Getting Up To Speed With IPv6: Get Your LAN Clients Online</title><content type="html">This is the latest installment in my &lt;a href="http://tuxnetworks.blogspot.com/2011/05/getting-up-to-speed-with-ipv6.html"&gt;series of getting IPv6 working on your network.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Pre-requisites: &lt;a href="http://tuxnetworks.blogspot.com/2011/05/getting-up-to-speed-with-ipv6-basic.html"&gt;A router with a working Hurricane Electric IPv6 Tunnel&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;OK, We will be working on your IPv6 enabled router.&lt;br /&gt;&lt;br /&gt;Start by logging in to a console session as root;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo -i&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;First we must enable IPv6 forwarding.&lt;br /&gt;&lt;br /&gt;Edit this file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/sysctl.conf&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Uncomment this line;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;net.ipv6.ip_forward=1&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Because we are needing our LAN clients to route out to the Internet they will need to be on their own subnet. Take a look at the "Tunnel Details" page for your tunnel at the Hurricane Electric website.&lt;br /&gt;&lt;br /&gt;Mine looks like this;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-ryfOJ4rVYAw/Tf_vtFd2ZpI/AAAAAAAAAHs/OVyJl96MqBY/s1600/Screenshot-Tunnel%2BDetails%2B-%2BMozilla%2BFirefox-1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 361px; height: 400px;" src="http://4.bp.blogspot.com/-ryfOJ4rVYAw/Tf_vtFd2ZpI/AAAAAAAAAHs/OVyJl96MqBY/s400/Screenshot-Tunnel%2BDetails%2B-%2BMozilla%2BFirefox-1.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5620474417822197394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See the section called "Routed IPv6 Prefixes"?&lt;br /&gt;&lt;br /&gt;Note down the address for the "Routed /64:" subnet.&lt;br /&gt;&lt;br /&gt;For routing to work, just like IPv4, our server must have a static IP address in that subnet.&lt;br /&gt;&lt;br /&gt;Edit your interfaces file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/network/interfaces&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Add the following lines;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#IPV6 configuration&lt;br /&gt;iface eth0 inet6 static&lt;br /&gt; address 2001:470:d:1018::1&lt;br /&gt; netmask 64&lt;br /&gt; gateway 2001:470:c:1018::2&lt;br /&gt;&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You will notice that I have chosen to use the "1" address in my routed subnet and the default gateway is set to be the address of my local end of the IPv6 tunnel. &lt;br /&gt;&lt;br /&gt;At this point you should reboot the router, and then log back in again as root.&lt;br /&gt;&lt;br /&gt;On IPv6 we don't need to use DHCP to provide addresses to our LAN clients (although we can if we want to). Instead of being &lt;span style="font-style:italic;"&gt;given&lt;/span&gt; an address, our clients will &lt;span style="font-style:italic;"&gt;create&lt;/span&gt; their own addresses based on the network prefix that our router will advertise on the LAN. This is done using a program called radvd (Router Advertisment Daemon).&lt;br /&gt; &lt;br /&gt;Install radvd;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;apt-get install radvd&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To configure raddvd we need to create the following file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/radvd.conf&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Enter the following code;&lt;br /&gt;&lt;/code&gt;&lt;pre&gt;interface eth0 { &lt;br /&gt;        AdvSendAdvert on;&lt;br /&gt;        MinRtrAdvInterval 3; &lt;br /&gt;        MaxRtrAdvInterval 10;&lt;br /&gt;        prefix 2001:470:d:1018::/64 { &lt;br /&gt;                AdvOnLink on; &lt;br /&gt;                AdvAutonomous on; &lt;br /&gt;                AdvRouterAddr on; &lt;br /&gt;        };&lt;br /&gt;};&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Note that the prefix here is the same subnet prefix that we used in the previous step (sans the "1" address we added).&lt;br /&gt;&lt;br /&gt;Now we can start the radvd service;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;service start raddvd&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;You should now be able to go to a LAN client, refresh the IP address and see that you have a proper IPv6 address!&lt;br /&gt;&lt;br /&gt;Lets take a look at a clients address;;&lt;br /&gt;&lt;pre&gt;&lt;conf&gt;ifconfig eth0&lt;br /&gt;eth0      Link encap:Ethernet  HWaddr 52:54:00:64:cf:4d  &lt;br /&gt;          inet addr:10.1.1.61  Bcast:10.1.1.255  Mask:255.255.255.0&lt;br /&gt;          inet6 addr: 2001:470:d:1018:5054:ff:fe64:cf4d/64 Scope:Global&lt;br /&gt;          inet6 addr: fe80::5054:ff:fe64:cf4d/64 Scope:Link&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;As you can see, our LAN client now has an IPv6 Address in our routed subnet. &lt;br /&gt;&lt;br /&gt;Try a ping to google;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;ping6 ipv6.google.com -c 4&lt;br /&gt;PING ipv6.google.com(2404:6800:4006:802::1012) 56 data bytes&lt;br /&gt;64 bytes from 2404:6800:4006:802::1012: icmp_seq=1 ttl=54 time=444 ms&lt;br /&gt;64 bytes from 2404:6800:4006:802::1012: icmp_seq=2 ttl=54 time=440 ms&lt;br /&gt;64 bytes from 2404:6800:4006:802::1012: icmp_seq=3 ttl=54 time=436 ms&lt;br /&gt;64 bytes from 2404:6800:4006:802::1012: icmp_seq=4 ttl=54 time=437 ms&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;At this point you should be able to browse on your client to ip6-test.com and test your IPv6 again.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-CFuXDmIL1nU/Tf_0GDD8ANI/AAAAAAAAAH0/iQTKxZJA0_U/s1600/Screenshot-galileo%2BVirtual%2BMachine.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 223px;" src="http://2.bp.blogspot.com/-CFuXDmIL1nU/Tf_0GDD8ANI/AAAAAAAAAH0/iQTKxZJA0_U/s400/Screenshot-galileo%2BVirtual%2BMachine.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5620479244719882450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If all is good, you will get 10/10 tests right. If your DNS provider let's you down and you get a 9 don't worry too much, we will cover that topic later.&lt;br /&gt;&lt;br /&gt;OK, so your clients now have routable IPv6 address's which is great. However this does introduce some important security related concerns that we must address.&lt;br /&gt;&lt;br /&gt;Normally your LAN clients are protected from outside miscreants because they are behind NAT and can't be reached from outside your network. &lt;br /&gt;&lt;br /&gt;With IPv6 there is no NAT so all your machines can be reached directly. If you have access to a IPv6 enabled machine outside of your own network try pinging the IP address of one of your LAN clients. You will find that it responds without hesitation. This is especially problematic for any Windows clients on your LAN. Windows listens on a ridiculous number of open ports by default which in turn exposes these clients to attacks from the outside world.&lt;br /&gt;&lt;br /&gt;Again from the outside network. try doing "nmap -6 to an address on your LAN. Look at all those listening ports that are wide open to the Internet!&lt;br /&gt;&lt;br /&gt;Fortunately, it is not hard to block the Internet from getting to your LAN. In fact it works exactly the same as iptables.&lt;br /&gt;&lt;br /&gt;If you already have an iptables script then add some lines similar to this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;LAN=eth0&lt;br /&gt;IP6WAN=ip6tunnel&lt;br /&gt;&lt;br /&gt;# Allow returning packets for established sessions&lt;br /&gt;ip6tables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;ip6tables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;br /&gt;&lt;br /&gt;# Accept ALL packets coming from our local networks&lt;br /&gt;sudo /sbin/ip6tables -A INPUT -i $LAN -j ACCEPT&lt;br /&gt;sudo /sbin/ip6tables -A INPUT -i lo -j ACCEPT&lt;br /&gt;sudo /sbin/ip6tables -A FORWARD -i $LAN -j ACCEPT&lt;br /&gt;&lt;br /&gt;# Allow all traffic out from this host&lt;br /&gt;ip6tables -A OUTPUT -j ACCEPT&lt;br /&gt;&lt;br /&gt;# Drop all other traffic from WAN&lt;br /&gt;ip6tables -A INPUT -i $IP6WAN -j DROP&lt;br /&gt;ip6tables -A FORWARD -i $IP6WAN -j DROP&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;As you can see, it is no different than using iptables, apart from the name of course.&lt;br /&gt;&lt;br /&gt;With your firewall in place, try doing another nmap -PN -6 scan to your client and this time you should see something like this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;nmap -PN  -6 2001:470:d:1018:5054:ff:fe64:cf4d&lt;br /&gt;&lt;br /&gt;Starting Nmap 5.00 ( http://nmap.org ) at 2011-06-21 12:23 EST&lt;br /&gt;All 1000 scanned ports on 2001:470:d:1018:5054:ff:fe64:cf4d are filtered&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 201.41 seconds&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6837477882226516397?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kPj31vdx0GjloqVAbnU3OR3ZWt4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPj31vdx0GjloqVAbnU3OR3ZWt4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kPj31vdx0GjloqVAbnU3OR3ZWt4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kPj31vdx0GjloqVAbnU3OR3ZWt4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/d5dL8Kj8cog" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6837477882226516397/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6837477882226516397" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6837477882226516397?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6837477882226516397?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/d5dL8Kj8cog/getting-up-to-speed-with-ipv6-get-your.html" title="Getting Up To Speed With IPv6: Get Your LAN Clients Online" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-ryfOJ4rVYAw/Tf_vtFd2ZpI/AAAAAAAAAHs/OVyJl96MqBY/s72-c/Screenshot-Tunnel%2BDetails%2B-%2BMozilla%2BFirefox-1.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/getting-up-to-speed-with-ipv6-get-your.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0MEQn09fip7ImA9WhdQE0s.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6777972193214177132</id><published>2011-06-20T15:24:00.005+10:00</published><updated>2011-08-15T09:43:23.366+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-15T09:43:23.366+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="autofs" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>HOWTO: Mounting shares with autofs</title><content type="html">This is my slightly modified version of the &lt;a href="https://help.ubuntu.com/community/Autofs"&gt;official Ubuntu documentation&lt;/a&gt;.
&lt;br /&gt;
&lt;br /&gt;Normally I mount my NFS shares the old way by putting a line in my fstab file.
&lt;br /&gt;
&lt;br /&gt;This does have some drawbacks, particularly when a share is rarely used, or when an NFS server disappears for whatever reason and leaving a hung share.
&lt;br /&gt;
&lt;br /&gt;There is another way to manage your NFS share, and that is using autofs.
&lt;br /&gt;
&lt;br /&gt;autofs is a program for automatically mounting directories on an as-needed basis. Auto-mounts are mounted only as they are accessed, and are unmounted after a period of inactivity. Because of this, automounting NFS/Samba shares conserves bandwidth and offers better overall performance compared to static mounts via fstab. 
&lt;br /&gt;
&lt;br /&gt;This article describes configuring autof with &lt;a href="http://osr507doc.sco.com/en/NetAdminG/autoC.direct.html"&gt;indirect mapping&lt;/a&gt;. I wrote another article on how to &lt;a href="http://tuxnetworks.blogspot.com/2011/08/howto-direct-mapping-mounts-with-autofs.html"&gt;configure direct mapping here&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;Here's how to get it working.
&lt;br /&gt;
&lt;br /&gt;First up, we need to install autofs from the Ubuntu repositories;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo apt-get install autofs&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;I keep all my mounted filesystems in a directory called /store. Of course you can use what ever directory you like.
&lt;br /&gt;
&lt;br /&gt;autofs will create any mountpoints as they are required, all we need to do is to tell it where to create them.
&lt;br /&gt;
&lt;br /&gt;Edit your auto.master file;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo vi /etc/auto.master&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Add a line like this;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;/store /etc/auto.store&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;What that line says is that the directory &lt;code&gt;/store&lt;/code&gt; is managed by the file &lt;code&gt;/etc/auto.store&lt;/code&gt; 
&lt;br /&gt;
&lt;br /&gt;Let's create the &lt;code&gt;auto.store&lt;/code&gt; file now;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo vi /etc/auto.store&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;I want to mount an export called "archive" which is on the server "nfs". This is the line I enter;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;archive nfs:/store/archive&lt;/code&gt; 
&lt;br /&gt;
&lt;br /&gt;The first word "archive", is the mount point that will be created in the /store directory and the rest is the server name and export.
&lt;br /&gt;
&lt;br /&gt;Make sure you create the store directory;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo mkdir /store&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Restart autofs;
&lt;br /&gt;
&lt;br /&gt;&lt;code&gt;sudo service autofs restart&lt;/code&gt; 
&lt;br /&gt;
&lt;br /&gt;Check to see if it is working;
&lt;br /&gt;&lt;code&gt;&lt;pre&gt;ls /store/archive
&lt;br /&gt;audio  ebooks  homes  iso  lost+found  video&lt;/pre&gt;&lt;/code&gt;
&lt;br /&gt;
&lt;br /&gt;Eureka!
&lt;br /&gt;
&lt;br /&gt;For more information on autofs including more detailed technical details, see the &lt;a href="https://help.ubuntu.com/community/Autofs"&gt;documentation here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6777972193214177132?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tPVTm7KeloXbIxXWcdyNUINDKrk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tPVTm7KeloXbIxXWcdyNUINDKrk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tPVTm7KeloXbIxXWcdyNUINDKrk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tPVTm7KeloXbIxXWcdyNUINDKrk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/Pq09ePXSc5E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6777972193214177132/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6777972193214177132" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6777972193214177132?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6777972193214177132?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/Pq09ePXSc5E/howto-mounting-shares-with-autofs.html" title="HOWTO: Mounting shares with autofs" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/howto-mounting-shares-with-autofs.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMGQ38_fSp7ImA9WhZbFU8.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-8777720222300268504</id><published>2011-06-20T09:25:00.002+10:00</published><updated>2011-06-20T09:33:42.145+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-20T09:33:42.145+10:00</app:edited><title>FIX: Boxee Plays in Black and White</title><content type="html">After recently &lt;a href="http://tuxnetworks.blogspot.com/2011/06/howto-boxee-on-1104-natty.html"&gt;getting Boxee to work on Ubuntu Natty&lt;/a&gt; I discovered a new problem. It seems that everything that plays does so in black &amp; white.&lt;br /&gt; &lt;br /&gt;To fix it you need to edit a file in your Boxee profile;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi ~/.boxee/UserData/guisettings.xml&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Find "rendermethod" in the XML code.&lt;br /&gt;&lt;br /&gt;Change the enclosed value from "0" to "1"&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;pre&gt;&amp;#60rendermethod&gt;1&amp;#60/rendermethod&gt;&lt;/pre&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-8777720222300268504?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/auYRgixEUNtGV8NddUXRKjFR9QE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/auYRgixEUNtGV8NddUXRKjFR9QE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/auYRgixEUNtGV8NddUXRKjFR9QE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/auYRgixEUNtGV8NddUXRKjFR9QE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/dE5WVZVLMU4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/8777720222300268504/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=8777720222300268504" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8777720222300268504?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8777720222300268504?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/dE5WVZVLMU4/fix-boxee-plays-in-black-and-white.html" title="FIX: Boxee Plays in Black and White" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/fix-boxee-plays-in-black-and-white.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIGRHk8cSp7ImA9WhZbFU8.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-8263223308018858495</id><published>2011-06-19T08:43:00.003+10:00</published><updated>2011-06-20T09:35:25.779+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-20T09:35:25.779+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="natty" /><category scheme="http://www.blogger.com/atom/ns#" term="boxee" /><title>HOWTO: Boxee on 11.04 Natty</title><content type="html">These are the steps I took, which is based on the &lt;a href="http://maxolasersquad.blogspot.com/2011/05/install-boxee-on-ubunty-1104-natty.html"&gt;work done by Maxo&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;First up, you need the Debian installer from the Boxee website. If you don't already have it go ahead and download it then place it in your home directory. I'm using the AMD64 package, which is called boxee-0.9.22.13692.x86_64.modfied.deb&lt;br /&gt;&lt;br /&gt;Login to a console, we will be working only in our home directory.&lt;br /&gt;&lt;br /&gt;Run these commands;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;dpkg-deb -x boxee-0.9.22.13692.x86_64.modfied.deb boxee&lt;br /&gt;dpkg-deb --control boxee-0.9.22.13692.x86_64.modfied.deb boxee/DEBIAN&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now we need to edit the file that lists the dependencies;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi boxee/DEBIAN/control&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Find libxmlrpc-c3 in this file and append -0 (that's a zero) to the end of it so that it now says "libxmlrpc-c3-0".  &lt;br /&gt;&lt;br /&gt;That's the only change we need to make but we do need to create a new Debian package file now that we have fixed the dependency problem.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;dpkg -b boxee boxee-0.9.22.13692.x86_64.natty.deb&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Before we can install Boxee, we will need to manually install all the dependencies;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get install libcurl3 libsdl-image1.2 libsdl-gfx1.2-4 liblzo2-2 \ &lt;br /&gt;libdirectfb-1.2-9 libnss3-1d flashplugin-nonfree libhal-storage1 screen \ &lt;br /&gt;msttcorefonts libtre5 libmad0 libxmlrpc-c3-0 libnspr4-0d xsel libmms0 libenca0&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;With our dependencies installed we can now install our modified package;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo dpkg -i boxee-0.9.22.13692.x86_64.natty.deb&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And with that you should have a working Boxee on your Ubuntu Natty system.&lt;br /&gt;&lt;br /&gt;It would be nice if the Boxee guys would update their packages occasionally but I guess the reality is that they want to make you purchase a "Boxee Box" instead.&lt;br /&gt;&lt;br /&gt;This is the trouble with being at the mercy of the source code owner I guess. If Boxee were open source somebody would have already rebuilt the packages and we wouldn't have to dick around like this in the first place.&lt;br /&gt;&lt;br /&gt;Update: I don't know if this is Natty specific bug, but I ran into another problem where Boxee would play video in black and white. If that happens to you, &lt;a href="http://tuxnetworks.blogspot.com/2011/06/fix-boxee-plays-in-black-and-white.html"&gt;here is how to fix it&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-8263223308018858495?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/wXk-yxcveQQJm6QHvqq4jLCW9Es/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wXk-yxcveQQJm6QHvqq4jLCW9Es/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/wXk-yxcveQQJm6QHvqq4jLCW9Es/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/wXk-yxcveQQJm6QHvqq4jLCW9Es/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/H2-gPsaZADw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/8263223308018858495/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=8263223308018858495" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8263223308018858495?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/8263223308018858495?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/H2-gPsaZADw/howto-boxee-on-1104-natty.html" title="HOWTO: Boxee on 11.04 Natty" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>2</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/howto-boxee-on-1104-natty.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUERnc5eip7ImA9WhZbFE4.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-2762723095326831658</id><published>2011-06-19T08:41:00.004+10:00</published><updated>2011-06-19T09:03:27.922+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-19T09:03:27.922+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="natty" /><category scheme="http://www.blogger.com/atom/ns#" term="boxee" /><category scheme="http://www.blogger.com/atom/ns#" term="11.04" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>When Upgrades Go Bad</title><content type="html">Recently I decided to do a bit of a hardware refresh on my home server. This involved the purchase of an AMD E-350 based motherboard to replace my old Atom D510. &lt;br /&gt;&lt;br /&gt;Unfortunately things went slightly awry when I realised that my existing server used a Compact Flash to IDE adaptor and the new board I had bought had no IDE interface. &lt;br /&gt;&lt;br /&gt;DOH! &lt;br /&gt;&lt;br /&gt;I ended up having to replace the Compact Flash adapter with a spare SSD that I had lying around and do an entire OS reinstall. &lt;br /&gt;&lt;br /&gt;It was then that I struck another problem when I discovered that I couldn't find a 10.04 Server CD anywhere. &lt;br /&gt;&lt;br /&gt;So, with my server in pieces and no Internet access I was forced to install Natty 11.04 x64 Desktop to get the thing back up and running. &lt;br /&gt;&lt;br /&gt;It was my intention to convert this desktop install to something resembling a server install by installing the server kernel and removing all the Gnome, Unity and X packages. &lt;br /&gt;&lt;br /&gt;Then I had another bright idea. I have an Acer Revo running Boxee as a HTPC sitting right next to the server. What if, I thought, I leave the desktop on the server?&lt;br /&gt;&lt;br /&gt;If I did that then I could get rid of the Revo and run Boxee directly on the server.&lt;br /&gt;&lt;br /&gt;Brilliant!&lt;br /&gt;&lt;br /&gt;So, off I go to the Boxee site to get the x64 binary and while there I note that they &lt;span style="font-style:italic;"&gt;still&lt;/span&gt; haven't updated their packages from over a year ago. That's the sort of thing that really annoys me about closed source software but as yet there is nothing open source that is anywhere near as slick as Boxee, so I guess I'm stuck using it for now. &lt;br /&gt;&lt;br /&gt;But I digress.&lt;br /&gt;&lt;br /&gt;I also note that the Boxxe site only specifies packages for Lucid and Maverick, there is no mention of Natty at all. Hmmmm.&lt;br /&gt;&lt;br /&gt;Undaunted, I go ahead and download the Maverick deb package.&lt;br /&gt;&lt;br /&gt;However, when I go to install the package I strike my next problem;&lt;br /&gt;&lt;br /&gt;"Dependency is not satisfiable: libxmlrpc-c3"&lt;br /&gt;&lt;br /&gt;Damn!&lt;br /&gt;&lt;br /&gt;A quick google search and I find &lt;a href="http://tijms.wordpress.com/2011/05/06/installing-boxee-on-natty-narwhal/"&gt;this site&lt;/a&gt; and &lt;a href="http://maxolasersquad.blogspot.com/2011/05/install-boxee-on-ubunty-1104-natty.html"&gt;this site&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;It seems that some genius at Debian or Ubuntu has decided to rename the package from "libxmlrpc-c3" to "libxmlrpc-c3-0".&lt;br /&gt;&lt;br /&gt;I really hate that.&lt;br /&gt;&lt;br /&gt;The good news is that you can edit the Boxee deb package to change the dependency so it looks for the new name.&lt;br /&gt;&lt;br /&gt;I followed the instructions provided by Maxo but because I was working in a remote ssh session things worked a bit differently. Maxo used Ubuntu Software Centre which worked out all the dependencies for him. &lt;br /&gt;&lt;br /&gt;dpkg wouldn't do that. Normally this is OK, because you can simply use apt-get install -f to fix any outstanding unbroken dependencies but in this case all apt-get install -f wanted to do was remove Boxee again. The only way to get things working was to install all the dependencies first and then install Boxee. &lt;br /&gt;&lt;br /&gt;Eventually everything worked out OK, and you can do it yourself using the &lt;a href="http://tuxnetworks.blogspot.com/2011/06/howto-boxee-on-1104-natty.html"&gt;instructions here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-2762723095326831658?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JinYDGvpFfe7TrciagBraSO5g7c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JinYDGvpFfe7TrciagBraSO5g7c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JinYDGvpFfe7TrciagBraSO5g7c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JinYDGvpFfe7TrciagBraSO5g7c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/7TxptkLtjPw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/2762723095326831658/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=2762723095326831658" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/2762723095326831658?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/2762723095326831658?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/7TxptkLtjPw/when-upgrades-go-bad.html" title="When Upgrades Go Bad" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/when-upgrades-go-bad.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEYGQ38_fyp7ImA9WhZaEkw.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-7782432626944090113</id><published>2011-06-15T11:54:00.006+10:00</published><updated>2011-06-28T09:08:42.147+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-28T09:08:42.147+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="deluge" /><category scheme="http://www.blogger.com/atom/ns#" term="debian" /><category scheme="http://www.blogger.com/atom/ns#" term="natty" /><category scheme="http://www.blogger.com/atom/ns#" term="torrent" /><category scheme="http://www.blogger.com/atom/ns#" term="lucid" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Managing Deluge Daemon</title><content type="html">I use Deluge bit torrent client on a couple of headless machines. There's not much to it, you can &lt;a href="http://tuxnetworks.blogspot.com/2009/05/remote-access-to-deluge.html"&gt;learn how to set it up here&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;However up until now I've been manually bringing it up and down at the command line, it's not hard but I thought I'd streamline it a bit by making a script.&lt;br /&gt;&lt;br /&gt;Download or copy+paste &lt;a href="http://www.tuxnetworks.com/downloads/torrents"&gt;this script&lt;/a&gt; into a file called "torrents" and make it executable;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;FLAG="/tmp/torrents_on"&lt;br /&gt;UPDATE_FIREWALL="/store/scripts/firewall"&lt;br /&gt;&lt;br /&gt;# Checking for dependancies&lt;br /&gt;if [ ! ${DELUGED=`which deluged`} ] ; then echo "ERROR : Can't find 'deluged' on your system, aborting" ; exit 1; fi&lt;br /&gt;if [ ! ${DELUGE_WEB=`which deluge-web`} ] ; then echo "ERROR : Can't find 'deluge-web' on your system, web interface will be disabled" ; exit 1; fi&lt;br /&gt;&lt;br /&gt;DELUGED_PID=`ps ax | grep "${DELUGED}" | grep -v grep | awk '{print $1}'`&lt;br /&gt;if [ "${DELUGED_PID}" = "" ] ; then DELUGED_PID=0 ; fi&lt;br /&gt;&lt;br /&gt;DELUGE_WEB_PID=`ps ax | grep "${DELUGE_WEB}" | grep -v grep | awk '{print $1}'`&lt;br /&gt;if [ "${DELUGE_WEB_PID}" = "" ] ; then DELUGE_WEB_PID=0 ; fi&lt;br /&gt;&lt;br /&gt;case "$1" in&lt;br /&gt;    start)&lt;br /&gt; if [ ! $DELUGED_PID -gt "0" ] ; then &lt;br /&gt;     deluged&lt;br /&gt;     nohup deluge-web &gt; /dev/null 2&gt;&amp;1 &amp;&lt;br /&gt;     touch $FLAG&lt;br /&gt;     $UPDATE_FIREWALL&lt;br /&gt;     exit 0&lt;br /&gt; else&lt;br /&gt;     echo "Deluged is already running (PID $DELUGED_PID)"&lt;br /&gt;     exit 1&lt;br /&gt; fi&lt;br /&gt;    ;;&lt;br /&gt;&lt;br /&gt;    stop)&lt;br /&gt; if [ ! $DELUGED_PID = "0" ] ; then &lt;br /&gt;     kill $DELUGED_PID&lt;br /&gt;     kill $DELUGE_WEB_PID&lt;br /&gt;     rm $FLAG &lt;br /&gt;     $UPDATE_FIREWALL&lt;br /&gt;     exit 0&lt;br /&gt; else&lt;br /&gt;     echo "Deluged is not running"&lt;br /&gt;     exit 1&lt;br /&gt; fi&lt;br /&gt;    ;;&lt;br /&gt;&lt;br /&gt;    status)&lt;br /&gt; if [ $DELUGED_PID -gt "0" ] ; then &lt;br /&gt;     ps ax | grep deluge | grep -v grep&lt;br /&gt;     exit 0&lt;br /&gt; else&lt;br /&gt;     echo "Deluged is not running"&lt;br /&gt;        exit 0&lt;br /&gt; fi&lt;br /&gt;    ;;&lt;br /&gt;&lt;br /&gt;    *)&lt;br /&gt;        echo "Usage: torrents {start|stop|status}"&lt;br /&gt;        exit 1&lt;br /&gt;    ;;&lt;br /&gt;esac&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The script will open/close ports on your firewall as required assuming you modify the UPDATE_FIREWALL variable with the correct location of your firewall script and modify that script to include something like this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# Flush tables before re-applying ruleset&lt;br /&gt;sudo /sbin/iptables --flush&lt;br /&gt;&lt;br /&gt;# Bittorrent traffic&lt;br /&gt;if [ -f /tmp/torrents_on ] ; then&lt;br /&gt;    sudo /sbin/iptables -A INPUT -p tcp --dport 58261 -j ACCEPT &lt;br /&gt;    sudo /sbin/iptables -A INPUT -p udp --dport 58261 -j ACCEPT&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;# &lt;more accept rules here&gt;&lt;br /&gt;&lt;br /&gt;# Drop all other traffic from WAN&lt;br /&gt;sudo /sbin/iptables -A INPUT -i $WAN -j DROP&lt;br /&gt;sudo /sbin/iptables -A FORWARD -i $WAN -j DROP&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;The above firewall script is for illustraion purposes and shouldn't be used as is. Make sure you modify use a script that suits your own network. &lt;br /&gt;&lt;br /&gt;Once installed, you can now use the script to control deluged and the deluge web interface from the command line using this syntax;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;torrents {start|stop|status}&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-7782432626944090113?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PlnW7-iPaQnEKhoInn1jkeUJOn0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PlnW7-iPaQnEKhoInn1jkeUJOn0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PlnW7-iPaQnEKhoInn1jkeUJOn0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PlnW7-iPaQnEKhoInn1jkeUJOn0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/2RWGAfJ9B6w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/7782432626944090113/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=7782432626944090113" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/7782432626944090113?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/7782432626944090113?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/2RWGAfJ9B6w/managing-deluge-daemon.html" title="Managing Deluge Daemon" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>2</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/managing-deluge-daemon.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkANRno5fCp7ImA9WhZVGUU.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-5997985225477343965</id><published>2011-06-02T11:27:00.007+10:00</published><updated>2011-06-02T12:13:17.424+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-02T12:13:17.424+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="emerald" /><category scheme="http://www.blogger.com/atom/ns#" term="theme" /><category scheme="http://www.blogger.com/atom/ns#" term="compiz" /><category scheme="http://www.blogger.com/atom/ns#" term="gnome" /><title>HOWTO: Compiz Themes Using Emerald</title><content type="html">This is one of those things that is way harder to figure out than it should be. Getting Emerald working is extremely simple, &lt;span style="font-style:italic;"&gt;when you know how&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Figuring out the "how" is the hard part.&lt;br /&gt;&lt;br /&gt;Fortunately, for you, I've done the hard part.&lt;br /&gt;&lt;br /&gt;The main problem is to do with a command "emerald --replace" which must be always running to enable Emerald themes to be used.  There are a lot of guides and forum answers out on teh inter00bs that suggest adding the command as a "Startup Application" in System &gt; Preferences. That doesn't work. Some other guides reckon you need something called "fusion-icon" running in your notifications tray. That may work too but it is not necessary. &lt;br /&gt;&lt;br /&gt;Here's what to do.&lt;br /&gt;&lt;br /&gt;Pre-requisites: &lt;br /&gt;* Ubuntu or Debian desktop, I'm using Lucid x64 but that's not important. &lt;br /&gt;* 3D graphics driver with Compiz enabled and working.&lt;br /&gt;&lt;br /&gt;We'll start off by installing some packages;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get install emerald compizconfig-settings-manager&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Open Compiz Settings Manager;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;System &gt; Preferences &gt; CompizConfig Settings Manager&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Click the "Effects" category&lt;br /&gt;&lt;br /&gt;Ensure "Window Decoration" is ticked and then click it.&lt;br /&gt;&lt;br /&gt;In the "Command" text box, take note that it currently says;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;/usr/bin/compiz-decorator&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Change the text so that it says;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;/usr/bin/emerald --replace&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And that my friends is the secret sauce to get things working properly!&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;To disable Emerald, simply return to here and click the "brush" icon at the RHS to restore the default setting&lt;/blockquote&gt; &lt;br /&gt;You can now exit compizconfig-settings-manager.&lt;br /&gt;&lt;br /&gt;You will need to restart your X server at this point. The easiest way is to just restart the machine.&lt;br /&gt;&lt;br /&gt;OK, once you have booted up again browse on over to &lt;br /&gt;&lt;a href="http://compiz-themes.org"&gt;http://compiz-themes.org&lt;/a&gt; and grab yourself a theme.&lt;br /&gt;&lt;br /&gt;With theme in hand, open the "Emerald Themer" application;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;System &gt; Preferences &gt; Emerald Theme Manager&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Import your theme using the "Import" button.&lt;br /&gt;&lt;br /&gt;Once it's imported, the theme will appear in the theme list. Simply click it and watch your window decorations magically change.&lt;br /&gt;&lt;br /&gt;Easy?  Well, it should be.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-5997985225477343965?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/8i_ylFJBoe2XHSUGj0WZEsJPTyk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8i_ylFJBoe2XHSUGj0WZEsJPTyk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/8i_ylFJBoe2XHSUGj0WZEsJPTyk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/8i_ylFJBoe2XHSUGj0WZEsJPTyk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/m6G5Zd1csKk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/5997985225477343965/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=5997985225477343965" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/5997985225477343965?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/5997985225477343965?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/m6G5Zd1csKk/howto-compiz-themes-using-emerald.html" title="HOWTO: Compiz Themes Using Emerald" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/howto-compiz-themes-using-emerald.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYDSHo6fip7ImA9WhZaE08.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-1996216519215586941</id><published>2011-06-01T11:30:00.007+10:00</published><updated>2011-06-29T16:16:19.416+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-29T16:16:19.416+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mono" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Purge Your System Of Mono</title><content type="html">If you are not overly happy with having a bastard child of Microsoft installed on your systems and the potential patent issues that may arise from its use then this simple one liner will purge your system of mono and anything that depends on it.&lt;br /&gt;&lt;br /&gt;Make sure you read the list of packages to be removed that the apt-get command provides &lt;span style="font-style:italic;"&gt;before&lt;/span&gt; you go ahead and do it.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get purge mono-2.0-gac&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;On Natty, this will remove the following from your system.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;The following packages will be REMOVED:&lt;br /&gt;  banshee banshee-extension-soundmenu banshee-extension-ubuntuonemusicstore gbrainy&lt;br /&gt;  libappindicator0.1-cil libart2.0-cil libgconf2.0-cil libgdata1.7-cil &lt;br /&gt;  libgkeyfile1.0-cil libglade2.0-cil libglib2.0-cil libgmime2.4-cil libgnome-vfs2.0-cil &lt;br /&gt;  libgnome2.24-cil libgtk-sharp-beans-cil libgtk2.0-cil libgudev1.0-cil &lt;br /&gt;  liblaunchpad-integration1.0-cil libmono-addins-gui0.2-cil libmono-addins0.2-cil &lt;br /&gt;  libmono-cairo2.0-cil libmono-corlib2.0-cil libmono-i18n-west2.0-cil &lt;br /&gt;  libmono-management2.0-cil libmono-posix2.0-cil libmono-security2.0-cil &lt;br /&gt;  libmono-sharpzip2.84-cil libmono-system2.0-cil libmono-zeroconf1.0-cil &lt;br /&gt;  libndesk-dbus-glib1.0-cil libndesk-dbus1.0-cil libnotify0.4-cil libtaglib2.0-cil&lt;br /&gt;  libubuntuone1.0-cil mono-2.0-gac mono-csharp-shell mono-gac mono-gmcs mono-runtime&lt;br /&gt;  tomboy&lt;br /&gt;0 upgraded, 0 newly installed, 40 to remove and 0 not upgraded.&lt;br /&gt;After this operation, 34.3 MB disk space will be freed.&lt;/pre&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you are happy to lose that stuff, in particular the Banshee audio player then go ahead hit "y" to nuke Mono once and for all*&lt;br /&gt;&lt;br /&gt;* Actually, next time you do a dist-upgrade you are likely to have the mono infection return to your system. IN such cases just reapply this treatment.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-1996216519215586941?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AsjWBpov_W_Q4i3-19wb_Gvhb1s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AsjWBpov_W_Q4i3-19wb_Gvhb1s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AsjWBpov_W_Q4i3-19wb_Gvhb1s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AsjWBpov_W_Q4i3-19wb_Gvhb1s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/Rvy_3AxeYdI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/1996216519215586941/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=1996216519215586941" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/1996216519215586941?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/1996216519215586941?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/Rvy_3AxeYdI/purge-your-system-of-mono.html" title="Purge Your System Of Mono" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/06/purge-your-system-of-mono.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUINQHs5fSp7ImA9WhZVGE4.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6012440522974842408</id><published>2011-05-31T18:31:00.009+10:00</published><updated>2011-05-31T19:19:51.525+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-31T19:19:51.525+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="6.01" /><category scheme="http://www.blogger.com/atom/ns#" term="squeeze" /><category scheme="http://www.blogger.com/atom/ns#" term="apt.lucid" /><category scheme="http://www.blogger.com/atom/ns#" term="debian" /><category scheme="http://www.blogger.com/atom/ns#" term="404" /><category scheme="http://www.blogger.com/atom/ns#" term="cache" /><category scheme="http://www.blogger.com/atom/ns#" term="apt-cacher-ner" /><category scheme="http://www.blogger.com/atom/ns#" term="repository" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><category scheme="http://www.blogger.com/atom/ns#" term="10.04" /><title>FIX: 404 Errors Using apt-cacher-ng</title><content type="html">I recently upgraded my Ubuntu server to Debian Squeeze, but not without difficulties.&lt;br /&gt;&lt;br /&gt;The first problem was with apt-cacher-ng. Well, actually it was two problems. The first involves an apparent difference between how Ubuntu and Debian configure their apt clients to use a proxy.&lt;br /&gt;&lt;br /&gt;On Ubuntu I have always used /etc/apt/apt.conf with a single line pointing to my proxy like so;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Acquire::http { Proxy "http://apt:3142"; };&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This didn't seem to work with Debian clients, the fix is to put the same line into a file at /etc/apt/apt.conf.d/01proxy.&lt;br /&gt;&lt;br /&gt;Actually you can call the file anything you like, even "apt.conf" but naming the file like this fits in with normal Debian conventions better, which can't be a bad thing.&lt;br /&gt;&lt;br /&gt;The second issue I had was with Ubuntu clients using the apt-cacher-ng proxy installed on a Debian server.&lt;br /&gt;&lt;br /&gt;I kept getting "404 Not Found" errors every time I did an apt-get update on the (lucid) clients.&lt;br /&gt;&lt;br /&gt;Google was no help. There were a few people who were having the same problem but no answers. &lt;br /&gt;&lt;br /&gt;Eventually I found the issue myself. There is a file in the apt-cacher-ng directory that has an error. To fix the problem you edit this file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/apt-cacher-ng/backends_ubuntu&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;and change the line so it says something like this;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;http://au.archive.ubuntu.com/ubuntu/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Of course you should change it to something more local to where you are. The key here is that on my system the trailing /ubuntu/ was missing and this was causing the 404 errors.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6012440522974842408?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/37KoeLc8mrWJfk6bND7rchDmAnk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/37KoeLc8mrWJfk6bND7rchDmAnk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/37KoeLc8mrWJfk6bND7rchDmAnk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/37KoeLc8mrWJfk6bND7rchDmAnk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/yhdlGNFDJeY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6012440522974842408/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6012440522974842408" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6012440522974842408?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6012440522974842408?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/yhdlGNFDJeY/fix-404-errors-using-apt-cacher-ng.html" title="FIX: 404 Errors Using apt-cacher-ng" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>4</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/05/fix-404-errors-using-apt-cacher-ng.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUAAQnc_eip7ImA9WhZUEE0.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-6746632164807487102</id><published>2011-05-30T11:01:00.016+10:00</published><updated>2011-06-02T19:42:23.942+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-06-02T19:42:23.942+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="server" /><category scheme="http://www.blogger.com/atom/ns#" term="debian" /><category scheme="http://www.blogger.com/atom/ns#" term="move" /><category scheme="http://www.blogger.com/atom/ns#" term="LVM" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>HOWTO: Relocate LVM to a New Server</title><content type="html">The main storage on my home server is on 2 x 2TB hard disk drives which are configured as an LVM volume.&lt;br /&gt;&lt;br /&gt;(For a guide on configuring LVM from scratch &lt;a href="http://tuxnetworks.blogspot.com/2010/11/howto-configure-nasfileserver-with-lvm.html"&gt;see this article&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;My server currently runs Ubuntu 10.04 but I've decided to bite the bullet and swap it over to Debian Squeeze. &lt;br /&gt;&lt;br /&gt;I've never moved an LVM volume to another server / OS installation so it's time to learn how to do it, I guess.&lt;br /&gt;&lt;br /&gt;Note: &lt;blockquote&gt;It should be obvious but I will nevertheless say it here anyway. Mucking about with file-systems is a dangerous thing to do and any misstep can lead to &lt;span style="font-style:italic;"&gt;disastrous, catastrophic and permanent DATA LOSS&lt;/span&gt;! Ensure that you have adequate backups before attempting this procedure. You have been warned! &lt;/blockquote&gt;&lt;br /&gt;First, you need to login as root.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo -i&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Get the details for your current LVM Volume Group(s);&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;vgdisplay&lt;br /&gt;  --- Volume group ---&lt;br /&gt;  VG Name               store&lt;br /&gt;  System ID             &lt;br /&gt;  Format                lvm2&lt;br /&gt;  Metadata Areas        2&lt;br /&gt;  Metadata Sequence No  6&lt;br /&gt;  VG Access             read/write&lt;br /&gt;  VG Status             resizable&lt;br /&gt;  MAX LV                0&lt;br /&gt;  Cur LV                1&lt;br /&gt;  Open LV               0&lt;br /&gt;  Max PV                0&lt;br /&gt;  Cur PV                2&lt;br /&gt;  Act PV                2&lt;br /&gt;  VG Size               3.64 TiB&lt;br /&gt;  PE Size               4.00 MiB&lt;br /&gt;  Total PE              953862&lt;br /&gt;  Alloc PE / Size       953862 / 3.64 TiB&lt;br /&gt;  Free  PE / Size       0 / 0   &lt;br /&gt;  VG UUID               9zwhOn-3Qs6-aPTo-kqQ4-RL4p-ICTA-l56Dsz&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;As you can see, I have a single volume group called "store". &lt;br /&gt;&lt;br /&gt;Let's see what Logical Volumes are in the Volume Group;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;lvdisplay&lt;br /&gt;  --- Logical volume ---&lt;br /&gt;  LV Name                /dev/store/archive&lt;br /&gt;  VG Name                store&lt;br /&gt;  LV UUID                80eFYi-n0Z7-9br1-bbfg-1GQ6-Orxf-0wENTU&lt;br /&gt;  LV Write Access        read/write&lt;br /&gt;  LV Status              available&lt;br /&gt;  # open                 1&lt;br /&gt;  LV Size                3.64 TiB&lt;br /&gt;  Current LE             953862&lt;br /&gt;  Segments               2&lt;br /&gt;  Allocation             inherit&lt;br /&gt;  Read ahead sectors     auto&lt;br /&gt;  - currently set to     256&lt;br /&gt;  Block device           254:0&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;We can see that there is a single volume 'archive' in the group.&lt;br /&gt;&lt;br /&gt;Check your fstab for the line pertaining to your LVM volume;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;cat /etc/fstab&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The relevant line in my case is this;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;UUID=057272e5-8b66-461a-ad18-c1c198c8dcdd /store/archive ext3 errors=remount-ro 0 1&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Make sure you keep this info at hand for later on.&lt;br /&gt;&lt;br /&gt;It so happens that I am sharing this volume using NFS so I need to stop my NFS server;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;service nfs-kernel-server stop&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;so that I can unmount it. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;umount /store/archive/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Now I need to mark the VG as inactive;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;vgchange -an store&lt;br /&gt;  0 logical volume(s) in volume group "store" now active&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Next I prepare the volume group to be moved by "exporting" it;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;vgexport store&lt;br /&gt;  Volume group "store" successfully exported&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Let's take another look at the volume group details;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;vgdisplay&lt;br /&gt;  Volume group store is exported&lt;br /&gt;  --- Volume group ---&lt;br /&gt;  VG Name               store&lt;br /&gt;  System ID             &lt;br /&gt;  Format                lvm2&lt;br /&gt;  Metadata Areas        2&lt;br /&gt;  Metadata Sequence No  5&lt;br /&gt;  VG Access             read/write&lt;br /&gt;  VG Status             exported/resizable&lt;br /&gt;  MAX LV                0&lt;br /&gt;  Cur LV                1&lt;br /&gt;  Open LV               0&lt;br /&gt;  Max PV                0&lt;br /&gt;  Cur PV                2&lt;br /&gt;  Act PV                2&lt;br /&gt;  VG Size               3.64 TiB&lt;br /&gt;  PE Size               4.00 MiB&lt;br /&gt;  Total PE              953862&lt;br /&gt;  Alloc PE / Size       953862 / 3.64 TiB&lt;br /&gt;  Free  PE / Size       0 / 0   &lt;br /&gt;  VG UUID               9zwhOn-3Qs6-aPTo-kqQ4-RL4p-ICTA-l56Dsz&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;As you can see, the VG Status has changed to "exported"&lt;br /&gt;&lt;br /&gt;Now you can shutdown your system and relocate the drives or reinstall the OS. In my case my OS is installed on a removable Compact Flash card which I have already pre-installed Debian Squeeze. i.e. &lt;span style="font-style:italic;"&gt;Here is one I prepared earlier!&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OK, once our server has rebooted we need to install LVM and associated utils;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo apt-get install lvm2 dmsetup reiserfsprogs xfsprogs&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We activate the volume group using the vgchange command again;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;vgchange -a y&lt;br /&gt;  Volume group "store" is exported&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Import the volume group into our new system with the 'vgimport' command;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vgimport store&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Let's have a look at our logical volumes again;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;lvdisplay&lt;br /&gt;  --- Logical volume ---&lt;br /&gt;  LV Name                /dev/store/archive&lt;br /&gt;  VG Name                store&lt;br /&gt;  LV UUID                80eFYi-n0Z7-9br1-bbfg-1GQ6-Orxf-0wENTU&lt;br /&gt;  LV Write Access        read/write&lt;br /&gt;  LV Status              available&lt;br /&gt;  # open                 0&lt;br /&gt;  LV Size                3.64 TiB&lt;br /&gt;  Current LE             953862&lt;br /&gt;  Segments               2&lt;br /&gt;  Allocation             inherit&lt;br /&gt;  Read ahead sectors     auto&lt;br /&gt;  - currently set to     256&lt;br /&gt;  Block device           254:0&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;That looks good. It should be the same as it was in the old system and the LV status should be "available"&lt;br /&gt;&lt;br /&gt;Take the line from the fstab file on the old server and add it to the new server;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/fstab&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Paste the line at the end;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;UUID=057272e5-8b66-461a-ad18-c1c198c8dcdd /store/archive ext3 errors=remount-ro 0 1&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Recreate the mountpoint if it doesn't already exist;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;mkdir -p /store/archive&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And finally we can mount the drive;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;sudo mount /store/archive/&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We can check that it is mounted OK with df;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;df&lt;br /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;/dev/sda1              7387992    930944   6081752  14% /&lt;br /&gt;tmpfs                  1025604         0   1025604   0% /lib/init/rw&lt;br /&gt;udev                   1020856       184   1020672   1% /dev&lt;br /&gt;tmpfs                  1025604         0   1025604   0% /dev/shm&lt;br /&gt;/dev/mapper/store-archive&lt;br /&gt;                     3845710856 2358214040 1292145880  65% /store/archive&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And that's it! Glad I didn't need to resort to my backups . . .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-6746632164807487102?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1ApYn1BKFOArBUAZexmydHlKkas/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1ApYn1BKFOArBUAZexmydHlKkas/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1ApYn1BKFOArBUAZexmydHlKkas/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1ApYn1BKFOArBUAZexmydHlKkas/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/S1n3GKeKTYk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/6746632164807487102/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=6746632164807487102" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6746632164807487102?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/6746632164807487102?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/S1n3GKeKTYk/howto-relocate-lvm-to-new-server.html" title="HOWTO: Relocate LVM to a New Server" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/05/howto-relocate-lvm-to-new-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DE4MRnw8eSp7ImA9WhZVE00.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-3201710252857417183</id><published>2011-05-25T13:46:00.004+10:00</published><updated>2011-05-25T17:03:07.271+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-25T17:03:07.271+10:00</app:edited><title>HOWTO: Basic Server Build with Debian</title><content type="html">So, you want to turn that old unloved cast away PC you rescued from the garbage skip at work into a server and you were wondering how to go about it eh?&lt;br /&gt;&lt;br /&gt;Well my friend, you have come to the right place, read on.&lt;br /&gt;&lt;br /&gt;Hardware Requirements;&lt;br /&gt;&lt;br /&gt;Any modest old cast aside hardware will do, something with a reasonable amount of RAM, Minimum 8GB hard disk and some manner of pentium processor will be fine. It is important that it is reliable of course. &lt;br /&gt;&lt;blockquote&gt;Pro Tip: Using a plain old &lt;a href="http://www.google.com/products/catalog?client=ubuntu&amp;channel=fs&amp;q=8Gb+CF&amp;oe=utf-8&amp;um=1&amp;ie=UTF-8&amp;cid=3248319571027443566&amp;sa=X&amp;ei=AuvATfP1EI30vQOf0v2lBA&amp;ved=0CFkQ8wIwBA#"&gt;8GB Compact Flash&lt;/a&gt; with a suitable adaptor such as &lt;a href="http://www.manhattan-products.com/en-US/products/8171-compactflash-to-sata-converter"&gt;this one&lt;/a&gt; can give you a router that is more reliable, a lot less noisy and with far lower power requirements than some old clunker hard disk drive you found in the back shed. However, it's also fun to reuse that old junk in a useful fashion thereby saving it from certain death at the local metal recyclers so go with whatever floats your boat. &lt;/blockquote&gt;&lt;br /&gt;I've been procrastinating for some time about shifting from a Ubuntu to a more vanilla debian focus and I have decided now is the time to bite the bullet and go ahead. Accordingly, I will log my steps as the first in what I hope will be a series of articles (or updates to my previous articles) that will guide you through building a server that is suitable for a typical SOHO or home user using Debian Linux.&lt;br /&gt;&lt;br /&gt;This article will cover installation and basic configuration of a basic headless server with openssh and a static IP address along with a few other comforts that I generally add to all my installs.&lt;br /&gt; &lt;br /&gt;OK, to start the process off we need to download an ISO image. &lt;br /&gt;&lt;br /&gt;I am going to use Debian 6 so I have downloaded &lt;a href="http://cdimage.debian.org/debian-cd/6.0.1a/amd64/bt-cd/debian-6.0.1a-amd64-netinst.iso.torrent"&gt;this ISO&lt;/a&gt; but if you don't want to use BitTorrent there are &lt;a href="http://www.debian.org/CD/torrent-cd/"&gt;other options&lt;/a&gt;. The CD I am using is the AMD64 6.0.1 "netinst" CD. This is a minimal ISO that will download the majority of the packages we require during the install. Because we will be installing a very basic system to start off with this won't amount to a lot so it should be OK. With the additional installation of apt-cacher-ng that we will also do any packages installed later on will be cached locally and therefore downloaded only once. However, if you prefer to download a full set of the CD's or DVD's instead then of course you should go right ahead and do that instead.&lt;br /&gt;&lt;br /&gt;OK, once you have downloaded an ISO and burnt it to CD, put it in the machine you intend to use as a server and boot it up. You may have to modify your system CMOS settings to allow this to happen. (Do I need to tell you this?)&lt;br /&gt;&lt;br /&gt;Step 1: Installing the base system&lt;br /&gt;&lt;br /&gt;At the boot menu choose "text install" because hey, this is a server and you don't even have a mouse connected right? Right?&lt;br /&gt;&lt;br /&gt;Now, I'm sure you don't need me to hand hold you through all the screens asking about where you are located, what language you speak and what to call the server. If you do then you probably should give up now because a headless server is not what you want to be playing with.&lt;br /&gt;&lt;br /&gt;Just enter all the obvious answers, tailored to suit your specific locale and requirements of course. When asked for a domain, enter your domain name (if you have one) otherwise just make one up. Make sure it is clearly a fake domain such as "example.org" or "myhome.net" and not one that is used (aka &lt;span style="font-style:italic;"&gt;owned&lt;/span&gt;) by somebody out on the Internet that you might want to connect to in future. Using google.com or debian.org is &lt;span style="font-weight:bold;"&gt;NOT&lt;/span&gt; recommended!&lt;br /&gt;&lt;br /&gt;You will be asked to enter a root password. &lt;span style="font-style:italic;"&gt;Make sure you don't forget it&lt;/span&gt;!&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;A word on disk partitioning. There are many ways to approach this. A lot of the time people just plonk everything in one big partition. They usually do this because that is how they do it in Windows. This is not the best way to partition a drive.&lt;br /&gt;&lt;br /&gt;The best way is to separate (at least) your home directories (/home) from the root (/) partition. This will make things far easier for you down the track if you need to do upgrades, reinstall the OS or anything else where you want to keep your users homes intact.&lt;br /&gt;&lt;br /&gt;In my example however, I am going break my own advice and choose the simplest option and just plonk everything into one big fat partition.&lt;br /&gt;&lt;br /&gt;I'm doing it this way because I usually use a small disk for the root (/)partition (in this case an 8Gb CF card) and I am going to manually move my user homes to a separate (much larger) hard disk later on. This means that I am not too concerned with fancy partition schemes for the moment. I am also going to ignore LVM for the same reason.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;So, with that in mind, when you are asked about partitioning choose "Guided - User entire disk" followed by "All files in one partition"&lt;br /&gt;&lt;br /&gt;The only other bit of interest is the "Software Selection" screen. &lt;br /&gt;&lt;br /&gt;Since we are setting up a server, we don't want a full blown GUI getting in the way and bogging things down so make sure you uncheck that option at the top of the list.&lt;br /&gt;&lt;br /&gt;Finally answer "yes" to install the grub bootloader.&lt;br /&gt;&lt;br /&gt;When the install process completes the machine will restart.&lt;br /&gt;&lt;br /&gt;Step 2: Configure a basic server&lt;br /&gt;&lt;br /&gt;Login as the root user using the password that you entered during the install process.&lt;br /&gt;&lt;br /&gt;Assuming that you have a working DHCP server currently on your network the installer will have configured your server to use DHCP. &lt;br /&gt;&lt;br /&gt;Let's check our network connectivity before we charge ahead.&lt;br /&gt;&lt;br /&gt;Try pinging Google by name;&lt;br /&gt;&lt;br /&gt;ping -c 4 www.google.com&lt;br /&gt;PING www.l.google.com (74.125.237.18) 56(84) bytes of data.&lt;br /&gt;64 bytes from 74.125.237.18: icmp_req=1 ttl=53 time=16.5 ms&lt;br /&gt;64 bytes from 74.125.237.18: icmp_req=2 ttl=54 time=16.2 ms&lt;br /&gt;64 bytes from 74.125.237.18: icmp_req=3 ttl=54 time=16.2 ms&lt;br /&gt;64 bytes from 74.125.237.18: icmp_req=4 ttl=54 time=16.7 ms&lt;br /&gt;&lt;br /&gt;--- www.l.google.com ping statistics ---&lt;br /&gt;4 packets transmitted, 4 received, 0% packet loss, time 15639ms&lt;br /&gt;rtt min/avg/max/mdev = 16.213/16.448/16.705/0.226 ms&lt;br /&gt;&lt;br /&gt;You should see ping responses as per above otherwise you will need to resolve this issue before you continue.&lt;br /&gt;&lt;br /&gt;We are going to install some extra packages now. If you are intending on using more than one debian PC on your network then it is a good idea to cache those packages so you don't need to keep downloading them over and over again on every PC you build.&lt;br /&gt;&lt;br /&gt;We do that by installing apt-cacher-ng;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;apt-get install apt-cacher-ng&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;We need to tell the system to download packages through apt-cacher-ng instead of directly.&lt;br /&gt;&lt;br /&gt;Create a file "apt.conf"&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/apt/apt.conf&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Add the following line;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Acquire::http: { Proxy "http://localhost:3142"; };&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Update aptitude;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;apt-get update&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This should complete without errors otherwise you will need to resolve this issue before you continue.&lt;br /&gt;&lt;br /&gt;Now, if you are like me you will prefer to login to this server via SSH rather than camping in front of a text console. Also, having used Ubuntu for quite some time I have become accustomed to sudo. I also prefer vim, so I add that as well.&lt;br /&gt;&lt;br /&gt;Install openssh server, sudo and vim;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;apt-get install sudo openssh-server vim&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To allow a user to use sudo, add them to the sudo group;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;usermod -a -G sudo brettg&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That's it for our base system, but we have one more thing to do.&lt;br /&gt;&lt;br /&gt;Step 3 : Setting a static IP address&lt;br /&gt;&lt;br /&gt;Because this will be a server (and possibly a router), we really don't want to be using a DHCP provided address. Static address's are where all the server action is at.&lt;br /&gt;&lt;br /&gt;Before we change stuff, we need to gather a bit of information about our current network.&lt;br /&gt;&lt;br /&gt;Query your network interface (assuming eth0);&lt;br /&gt;&lt;pre&gt;&lt;code&gt;ifconfig eth0&lt;br /&gt;eth0      Link encap:Ethernet  HWaddr 00:0c:29:f4:88:50  &lt;br /&gt;          inet addr:10.1.1.102  Bcast:10.1.1.255  Mask:255.255.255.0&lt;br /&gt;          inet6 addr: fe80::20c:29ff:fef4:8850/64 Scope:Link&lt;br /&gt;          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1&lt;br /&gt;          RX packets:19022 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;          TX packets:4389 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;          collisions:0 txqueuelen:1000 &lt;br /&gt;          RX bytes:9278651 (8.8 MiB)  TX bytes:395157 (385.8 KiB)&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Take note of the Mask and Bcast details.&lt;br /&gt;&lt;br /&gt;Query our routing table;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;netstat -rn&lt;br /&gt;Kernel IP routing table&lt;br /&gt;Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface&lt;br /&gt;10.1.1.0        0.0.0.0         255.255.255.0   U         0 0          0 eth0&lt;br /&gt;0.0.0.0         10.1.1.254      0.0.0.0         UG        0 0          0 eth0&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Take note of your default route (ie Destination 0.0.0.0), which in this case is 10.1.1.254 and the network address which in this example is 10.1.1.0&lt;br /&gt;&lt;br /&gt;This is all we need to configure a static address.&lt;br /&gt;&lt;br /&gt;Note:&lt;blockquote&gt;You should use an IP address that is not part of the existing DHCP pool. Check your current router and determine the pool that is in use. When I configure a small network I generally set my pool to be .100 thru 199 which leaves everything under 100 and over 199 available for static use. I will be using 10.1.1.1 here which is, of course, outside my DHCP pool.&lt;/blockquote&gt;&lt;br /&gt;To change your network interface edit your "interfaces" file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/network/interfaces&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;This should currently have a section like this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;allow-hotplug eth0&lt;br /&gt;iface eth0 inet dhcp&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;We want to change it so that it looks like this;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;allow-hotplug eth0 eth0&lt;br /&gt;iface eth0 inet static&lt;br /&gt; address 10.1.1.1&lt;br /&gt; netmask 255.255.255.0&lt;br /&gt; network 10.1.1.0&lt;br /&gt; broadcast 10.1.1.255&lt;br /&gt; gateway 10.1.1.254&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;blockquote&gt;Note: On Ubuntu you will have auto eth0 not allow-hotplug eth0&lt;/blockquote&gt; &lt;br /&gt;When the changes are made you should reboot your server. You should confirm that the eth0 interface has an address of 10.1.1.1 using the &lt;code&gt;ifconfig eth0&lt;/code&gt; command and also check that you have name resolution and Internet access by pinging www.google.com.&lt;br /&gt;&lt;br /&gt;Step 4 : Modifying our system for CF users (optional)&lt;br /&gt;&lt;br /&gt;If, like me, you are using a (non-SSD) Flash RAM based drive then you might want to make a few adjustments to your system to compensate for the lack of &lt;a href="http://en.wikipedia.org/wiki/Wear_leveling"&gt;wear leveling&lt;/a&gt; in the drive.&lt;br /&gt;&lt;br /&gt;Follow &lt;a href="http://tuxnetworks.blogspot.com/2011/05/adjusting-your-filesystem-to-accomodate.html"&gt;this guide&lt;/a&gt; to extend the lifespan of your Flash drive now. &lt;br /&gt;&lt;br /&gt;So, assuming you have an IP address and your pings respond as expected then congratulations, you have built yourself the basis of a handy little debian server!&lt;br /&gt;&lt;br /&gt;The next step you take should be to &lt;a href="http://tuxnetworks.blogspot.com/2011/02/howto-configure-ubuntu-as-router.html"&gt;configure your server as a router&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-3201710252857417183?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hZ2x7HChhcXd4KZGpT0fJa_H9wk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hZ2x7HChhcXd4KZGpT0fJa_H9wk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hZ2x7HChhcXd4KZGpT0fJa_H9wk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hZ2x7HChhcXd4KZGpT0fJa_H9wk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/Vpv7TUDk01Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/3201710252857417183/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=3201710252857417183" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3201710252857417183?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/3201710252857417183?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/Vpv7TUDk01Q/howto-basic-server-build-with-debian.html" title="HOWTO: Basic Server Build with Debian" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/05/howto-basic-server-build-with-debian.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4CQnc6cCp7ImA9WhZVEkQ.&quot;"><id>tag:blogger.com,1999:blog-3270575889602064323.post-2679961251009958787</id><published>2011-05-25T13:32:00.003+10:00</published><updated>2011-05-25T13:42:43.918+10:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-25T13:42:43.918+10:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="debian" /><category scheme="http://www.blogger.com/atom/ns#" term="flash" /><category scheme="http://www.blogger.com/atom/ns#" term="drive" /><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu" /><title>Adjust Your File System To Accomodate Flash Drives</title><content type="html">I am using a Compact Flash card for my root partition on a small Atom based server at home. I find this to be a good way to build an inexpensive, quiet, low powered server however it does introduce a few special problems due to the absence of any wear leveling logic as used by proper SSD hard drives. &lt;br /&gt;&lt;br /&gt;I use a slot loaded CF card which makes it easy for me to pull the card to make an image (using dd) or swap over to another OS without unscrewing the case. However using Compact Flash or a plain old USB thumb drive might be cheap and handy but it also brings to head some issues related to how the system reads and writes to the card. &lt;br /&gt;&lt;blockquote&gt;Flash memory is not happy about writing to the same memory cell over and over and over so consequently any cell that is treated in this manner will eventually die. Proper SSD's work around this by incorporating special logic that shifts sectors around automatically so that all the memory cell's do roughly the same amount of work. This is called "&lt;a href="http://en.wikipedia.org/wiki/Wear_leveling"&gt;wear leveling&lt;/a&gt;". Dumb old Compact Flash cards don't do wear leveling but there are some steps we can take to ameliorate this problem to some degree.&lt;/blockquote&gt;&lt;br /&gt;These days most Linux systems use EXT3 or EXT4 file systems which are both journaling file systems. This means that every time a file is accessed the journal is updated to record that action. This makes it easier for the file-system to keep track of reads and writes and detect when an error may have occurred. Unfortunately it also means lots of writing (to the journal) which means a premature death for our CF card.&lt;br /&gt;&lt;br /&gt;The older EXT2 FS does not do journaling which means we will have less protection but seeing that we are not using the CF to store data (just for the OS) I consider it an acceptable "risk".&lt;br /&gt;&lt;br /&gt;To use EXT2 edit your fstab file;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;vi /etc/fstab&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;On the line pertaining to your root (/) file-system change the "ext3" to "ext2", it's that simple.&lt;br /&gt;&lt;br /&gt;Another thing that a normal system does is update each file every time it is read with a time-stamp. That's another thing we want to stop happening.&lt;br /&gt;&lt;br /&gt;On the same line, find where it says &lt;code&gt;errors=remount-ro&lt;/code&gt; and append to that column &lt;code&gt;,noatime&lt;/code&gt;.&lt;br /&gt;&lt;br /&gt;Here is an example line;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;UUID=68a316e0-8071-47e3-b31d-718a7be2e498 / ext2 errors=remount-ro,noatime 0 1&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Another area that gets written to quite a bit is the /tmp directory.&lt;br /&gt;&lt;br /&gt;We can move that off the Flash drive and into RAM using tmpfs. This has the bonus of improving overall system performance by a small amount.&lt;br /&gt;&lt;br /&gt;Add this line to your fstab;&lt;br /&gt;&lt;pre&gt;&lt;code&gt;tmpfs /tmp tmpfs  size=256000m,exec,nosuid 0 0&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;You can tweak the amount of RAM to use but I wouldn't go below 128Mb personally.&lt;br /&gt;&lt;br /&gt;And finally, once you install a normal hard disk to your server you should relocate your swap file over to a partition located on it. For now I am simply going to disable swap altogether. To do that just stick a comment "#" at the start of the relevant line.&lt;br /&gt;&lt;br /&gt;And that's it, these changes should allow your "dumb" Flash drive based OS installation to live a reasonably long and happy life. My current server has been going strong for about 2 years now, fingers crossed!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3270575889602064323-2679961251009958787?l=tuxnetworks.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/lvc4maXu97FWMKYVeCNULdMHSrs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lvc4maXu97FWMKYVeCNULdMHSrs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/lvc4maXu97FWMKYVeCNULdMHSrs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/lvc4maXu97FWMKYVeCNULdMHSrs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/TheTuxnetworksLinuxBible/~4/XBGLmK0SpA0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://tuxnetworks.blogspot.com/feeds/2679961251009958787/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=3270575889602064323&amp;postID=2679961251009958787" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/2679961251009958787?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/3270575889602064323/posts/default/2679961251009958787?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/TheTuxnetworksLinuxBible/~3/XBGLmK0SpA0/adjusting-your-filesystem-to-accomodate.html" title="Adjust Your File System To Accomodate Flash Drives" /><author><name>Brett</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="32" height="32" src="http://1.bp.blogspot.com/_omf5YEo9nAg/SiRcDnB4qWI/AAAAAAAAADM/2L07P7hnTRo/S220/logo-tux.png" /></author><thr:total>0</thr:total><feedburner:origLink>http://tuxnetworks.blogspot.com/2011/05/adjusting-your-filesystem-to-accomodate.html</feedburner:origLink></entry></feed>

