<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tales from the crypt( ) &#187; Ubuntu</title>
	<atom:link href="http://org.against.org/category/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://org.against.org</link>
	<description>slightly biased and undoubtful pieces of random information</description>
	<lastBuildDate>Mon, 12 Dec 2011 23:21:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>ubuntu://changing ethernet interface settings</title>
		<link>http://org.against.org/ubuntuchanging-ethernet-interface-settings/</link>
		<comments>http://org.against.org/ubuntuchanging-ethernet-interface-settings/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 15:47:17 +0000</pubDate>
		<dc:creator>bruno</dc:creator>
				<category><![CDATA[BOFH]]></category>
		<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[speed]]></category>

		<guid isPermaLink="false">http://org.against.org/?p=186</guid>
		<description><![CDATA[YMMV Forcing a NIC to negotiate at a certain speed/mode is simple, as long as you have the right tools at hand. After trying 4 different packages in Ubuntu with mixed results, I got a killer combo. root@coiso:~# ethtool -v ethtool version 6 ethtool eth0 ethtool -s eth0 speed 1000 autoneg off ethtool -s eth0 [...]]]></description>
			<content:encoded><![CDATA[<p>YMMV</p>
<p>Forcing a NIC to negotiate at a certain speed/mode is simple, as long as you have the right tools at hand. After trying 4 different packages in Ubuntu with mixed results, I got a killer combo.</p>
<pre>root@coiso:~# ethtool -v
ethtool version 6

ethtool eth0
ethtool -s eth0 speed 1000 autoneg off
ethtool -s eth0 speed 100 autoneg off
ethtool -s eth0 autoneg on
</pre>
]]></content:encoded>
			<wfw:commentRss>http://org.against.org/ubuntuchanging-ethernet-interface-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Citrix client on Ubuntu 6.06 &#8211; the odissey</title>
		<link>http://org.against.org/citrix-client-on-ubuntu-606-the-odissey/</link>
		<comments>http://org.against.org/citrix-client-on-ubuntu-606-the-odissey/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 00:36:14 +0000</pubDate>
		<dc:creator>bruno</dc:creator>
				<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu citrix ica openmotif dapper drake]]></category>

		<guid isPermaLink="false">http://org.against.org/citrix-client-on-ubuntu-606-the-odissey/</guid>
		<description><![CDATA[So one day one wakes up and thinks about getting hat about a &#8220;new&#8221; operating system? So I installed OpenSuse. It was the worst two days of my life. So, back to Ubuntu Dapper Drake. It seems that both Edgy, Feisty and all other distros featuring the latest crappy Xorg server don&#8217;t play along with [...]]]></description>
			<content:encoded><![CDATA[<p>So one day one wakes up and thinks about getting hat about a &#8220;new&#8221; operating system? So I installed <a href="http://org.against.org/r.php?http://www.opensuse.org/">OpenSuse</a>. It was the worst two days of my life.</p>
<p>So, back to Ubuntu Dapper Drake. It seems that both Edgy, Feisty and all other distros featuring the latest crappy Xorg server don&#8217;t play along with the louzy videocard bundled with my laptop. Not even when I use a Dapper working xorg.conf. To hell with it. At least while I don&#8217;t get a new laptop.</p>
<p>Learning from previous instalations, all things went smooth, except when I had to install a Citrix client. ICA Client version 10.0 requires Openmotif and there were no sources in sight with the appropriate package. But the package exists in <a href="http://org.against.org/r.php?http://packages.ubuntu.com/dapper/source/openmotif">Ubuntu&#8217;s package listings</a>. Next step would be obviously installing the client, just to notice it just won&#8217;t run with the following error:</p>
<p><code><br />
Warning: Missing charsets in String to FontSet conversion<br />
Warning: Unable to load any usable fontset<br />
Error: Aborting: no fontset found<br />
</code></p>
<p>a quick peek at the support forum pointed me to the need of performing a </p>
<p><code><br />
xset fp rehash<br />
</code></p>
<p>everytime and before <i>wfica</i> or <i>wfcmgr</i> are run. It also looks like there are a lot of other common problems known to exist with. Here&#8217;s a link to a page with some information on these <a href="http://org.against.org/r.php?http://codtech.com/wiki/index.php/Citrix_ICA_Client_10_on_Ubuntu_6.10_Edgy_Eft">Citrix ICA client issues</a> (out of which <a href="http://org.against.org/r.php?http://codtech.com/downloads/citrix-icaclient-10-ubuntu">this script</a> is a real winner, as it will patch and configure permanently almost every aspect of this application &#8211; it&#8217;s designed for Ubuntu 6.10 and later, but nothing a little hack won&#8217;t fix). </p>
]]></content:encoded>
			<wfw:commentRss>http://org.against.org/citrix-client-on-ubuntu-606-the-odissey/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco VPN Client on Ubuntu Linux</title>
		<link>http://org.against.org/56/</link>
		<comments>http://org.against.org/56/#comments</comments>
		<pubDate>Sat, 30 Sep 2006 13:57:39 +0000</pubDate>
		<dc:creator>bruno</dc:creator>
				<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cisco vpn vpnclient ubuntu]]></category>

		<guid isPermaLink="false">http://org.against.org/56/</guid>
		<description><![CDATA[1. Get the Cisco Systems VPN Client for Linux from Cisco&#8217;s website (registration required) or search for vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz on you know who. 2. Uncompress it and change to the directory it creates bruno@sushi:~$ tar xvfz vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz bruno@sushi:~$ cd vpnclient 3. Get the header files for yout current kernel version, you&#8217;ll need them to build the [...]]]></description>
			<content:encoded><![CDATA[<p>1. Get the Cisco Systems VPN Client for Linux from <a href="http://org.against.org/r.php?http://www.cisco.com/en/US/products/sw/secursw/ps2308/tsd_products_support_series_home.html ">Cisco&#8217;s website</a> (registration required) or search for  <a href="http://org.against.org/r.php?http://www.google.pt/search?q=vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz&amp;start=0&amp;ie=utf-8">vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz on you know who</a>.</p>
<p>2. Uncompress it and change to the directory it creates<br />
<code><br />
bruno@sushi:~$ tar xvfz vpnclient-linux-x86_64-4.8.00.0490-k9.tar.gz<br />
bruno@sushi:~$ cd vpnclient<br />
</code><br />
3. Get the header files for yout current kernel version, you&#8217;ll need them to build the binary<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo apt-get install build-essential<br />
bruno@sushi:~/vpnclient$ sudo apt-get install linux-headers-`uname -r`<br />
</code><br />
4. Compile (there will be a few warnings)<br />
<code><br />
bruno@sushi:~/vpnclient$ make<br />
</code><br />
5. Install the VPN client<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo ./vpn_install<br />
</code><br />
6. Create a VPN profile entry file (you can also migrate it from a previous Windows instalation &#8211; it&#8217;s a .pcf file sitting inside your Installation Path/Profiles directory) on /etc/opt/cisco-vpnclient/Profiles/<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo cp /disks/hda1/Program\ Files/Cisco/VPN\ Client/Profiles/corporate.pcf /etc/opt/cisco-vpnclient/Profiles/<br />
</code><br />
7. You probably had it configured to start at boot time, but start the VPN Service anyway<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo /etc/init.d/vpnclient_init start<br />
</code><br />
8. If your infrastructure uses certificates to authenticate you, you&#8217;ll need to import the root and user certificates you&#8217;ve previously had exported.<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo cisco_cert_mgr -R -op import -f /disks/hda1/root_certificate_export.cer<br />
bruno@sushi:~/vpnclient$ sudo cisco_cert_mgr -U -op import -f /disks/hda1/user_certificate_export.cer<br />
</code><br />
9. Connect<br />
<code><br />
bruno@sushi:~/vpnclient$ sudo vpnclient connect corporate<br />
</code></p>
<p>Tested on Ubunty Dapper 6.06 with Kernel 2.6.15-27-386</p>
]]></content:encoded>
			<wfw:commentRss>http://org.against.org/56/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>poor man&#8217;s disaster recovery</title>
		<link>http://org.against.org/disaster-recovery/</link>
		<comments>http://org.against.org/disaster-recovery/#comments</comments>
		<pubDate>Mon, 11 Sep 2006 15:53:28 +0000</pubDate>
		<dc:creator>bruno</dc:creator>
				<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[useful stuff]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[backup policy]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://org.against.org/disaster-recovery/</guid>
		<description><![CDATA[And one day something terrible happens. The server which this site was running on (and a few others) had a few problems with the mainboard power module and started shutting down every now and then. It is a mini-ATX system using some kind of proprietary power supply (which was replaced promptly for an identical one [...]]]></description>
			<content:encoded><![CDATA[<p>And one day something terrible happens.</p>
<p>The server which this site was running on (and a few others) had a few problems with the mainboard power module and started shutting down every now and then. It is a mini-ATX system using some kind of proprietary power supply (which was replaced promptly for an identical one &#8211; since the problem persists, I can now guarantee it&#8217;s related to the board). It was a matter of hours till I found a similar system on eBay: no hard drive, no DVD, no processor and no memory, just the board and the box. Dirt cheap. Which is nice.</p>
<p>I&#8217;m still able to power up the system and get it working for an hour or two in a row, but this was the perfect excuse to test my backup strategy &#8211; and disaster recovery procedure.</p>
<p>So every two weeks, I do filesystem backups (plain tar.gz files) consisting of:</p>
<ul>
<li>user directories (<em>/home/*</em><em> </em>and <em>/root/* &#8211; </em>this includes the ftp site root at /home/ftp)</li>
<li>website files (<em>/var/www/*</em> and <em>/sites/*</em>)</li>
<li>webserver configuration (<em>/etc/apache/*</em> and <em>/etc/php5/*</em>)</li>
<li>ftp server configuration (<em>/etc/proftpd.conf</em>)</li>
<li>samba configuration (<em>/etc/samba/*</em>)</li>
<li>mail server configuration (<em>/etc/postfix/*</em>)</li>
<li>mt-daapd configuration (<em>/etc/mt-daapd.conf</em> &#8211; mp3 files come from CDs I own &#8211; cof!)</li>
<li>cacti configuration (<em>/etc/cacti/*</em>)</li>
<li>crontab configuration (including users crontabs &#8211; all in <em>/etc/cron*</em>)</li>
<li>installed package configuration (the list is somewhat simple, but for reference sake, I save a copy of a <em>dpkg &#8211;list</em> output just in case, along with a copy of <em>/etc/apt/sources.list</em>. Should anything fail, it&#8217;s just a matter of looking at the <em>diff </em>of installed packages &#8211; with a little perl-fu).</li>
<li>mySQL configuration (<em>/etc/mysql/*</em>)</li>
<li>mySQL databases dump (<em>mysqldump -ubackup_user -p &#8211;all-databases</em>)</li>
</ul>
<p>These backups usually fit a single DVD-R and there&#8217;s always a blank inside the recorder. I rely on a crontab job creating the backup and burning it. When the recorder tray is open, this usually means the backup was successful and all I need to do is label the DVD and insert a new one.</p>
<p>Then there are those things where running a bimonthly backup won&#8217;t do you any good if the information keeps changing and you just can&#8217;t recover if you&#8217;re stuck to a 20 something day old backup. MySQL is a pretty good example. User home directories are too, but most of their contents are usually found scattered in a number of places.<br />
MySQL databases are usually very small or could achieve small sizes if compressed. And it has been proved that the best way to keep backups at hand is&#8230; away from the server.</p>
<p>I found an ideal way to achieve this: three lines of shell script which create a daily database dump, compress it, encrypt it, compress it and email it to a Gmail account.</p>
<pre>mysqldump -u [user] -p [password] --all-databases > mysqldump.sql
gpg -r [myemail] -q -t --yes --trust-model always --output mysqldump.sql.gpg --encrypt mysqldump.sql
date | mutt -s "MySQL backup" -a mysqldump.sql.pgp [gmail_account]</pre>
<p>There was a spare Dell laptop around with a few keyboard and touchpad problems which was being kept aside for dog knows what. It took me about 30 minutes to slam an Ubuntu live+install CD and install a base system, get the last DVD backup, <em>tar xvfz</em> back the whole relevant files, install a few packages (actually, perform an <em>apt-get dist-upgrade</em>), get the latest MySQL backup from Gmail and put the system back on. There was some downtime meanwhile, but I had to leave home several times during the process (and I do have a life).</p>
<p>Most important question here: do you backup? do you have a backup plan? a disaster recovery plan? anything?</p>
]]></content:encoded>
			<wfw:commentRss>http://org.against.org/disaster-recovery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>simon says&#8230;</title>
		<link>http://org.against.org/sudo-this/</link>
		<comments>http://org.against.org/sudo-this/#comments</comments>
		<pubDate>Wed, 30 Aug 2006 16:37:51 +0000</pubDate>
		<dc:creator>bruno</dc:creator>
				<category><![CDATA[geek stuff]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[xkcd]]></category>

		<guid isPermaLink="false">http://org.against.org/sudo-this/</guid>
		<description><![CDATA[is this supposed to be an Ubuntu related joke or what? XKCD rocks!]]></description>
			<content:encoded><![CDATA[<div align="center"><a href="http://org.against.org/r.php?http://xkcd.com/c149.html"><img border="0" id="image44" src="http://org.against.org/wp-content/uploads/2006/08/sandwich.png" /></a></div>
<div align="left">
<div align="left"></div>
<div align="left">is this supposed to be an Ubuntu related joke or what?</div>
<div align="left"><a href="http://org.against.org/r.php?http://xkcd.com/">XKCD</a> rocks!</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://org.against.org/sudo-this/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

