<?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>brunotavares.net: ScrapBook &#187; linux</title>
	<atom:link href="https://blog.brunotavares.net/?feed=rss2&#038;tag=linux" rel="self" type="application/rss+xml" />
	<link>https://blog.brunotavares.net</link>
	<description>Notes. tech and a few thoughs</description>
	<lastBuildDate>Sun, 25 Nov 2018 17:59:26 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>Raspbmc and Edimax EW-7811Un wifi dongle</title>
		<link>https://blog.brunotavares.net/?p=275</link>
		<comments>https://blog.brunotavares.net/?p=275#comments</comments>
		<pubDate>Tue, 08 Jan 2013 17:40:28 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[raspberrypi]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=275</guid>
		<description><![CDATA[Just bough a Edimax EW-7811Un wifi dongle to use on my RaspberryPi. It´s a media center so its running Raspbmc ( which is based on rasbian ). First of all, from my experience, raspberry needs to be powered by an ( at least ) 1A power source for the dongle to work as expected. No drivers needed [...]]]></description>
				<content:encoded><![CDATA[<p>Just bough a <a href="http://www.edimax.co.uk/en/produce_detail.php?pd_id=328&amp;pl1_id=1&amp;pl2_id=44">Edimax EW-7811Un wifi dongle</a> to use on my RaspberryPi. It´s a media center so its running Raspbmc ( which is based on rasbian ).</p>
<p>First of all, from my experience, raspberry needs to be powered by an ( at least ) 1A power source for the dongle to work as expected.</p>
<p>No drivers needed if your using RC4/Rc5. Since its a realtek chipset you can update the firmware drivers by typing:</p>
<pre>sudo apt-get install -y firmware-realtek</pre>
<p>Prepare your raspbmc by installing some helper packages:</p>
<pre>sudo apt-get install -y wireless-tools wpasupplicant</pre>
<p>Raspbmc uses NetworkManager to manage all your connections, the easiest way i found to configure the dongle was:</p>
<ul>
<li>Install the Network-Manager XMBC plugin</li>
<li>Go to main menu and enter &#8220;Programs&#8221;</li>
<li>Start Network-Manager program</li>
<li>Select your network</li>
</ul>
<p>Since i have a strange setup on my router this didn&#8217;t work ( authentication with the AP failed ) so, here is an alternate manual method:</p>
<p>Create a file a new file called /etc/NetworkManager/system-connections/Wireless</p>
<p>Paste the following as content of the new file</p>
<pre>[connection]
id=Wireless
uuid=de997907-591e-11e2-8e39-359453556e75
type=802-11-wireless

[802-11-wireless]
ssid="YOUR NETWORK SSID"
security=802-11-wireless-security

[802-11-wireless-security]
key-mgmt=none
wep-key0="YOUR WEP ASCCI PASSPHRASE"

[ipv4]
method=auto

[ipv6]
method=ignore</pre>
<p>Edit according to your wireless network setup, you can find settings reference here: <a href="http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html">http://projects.gnome.org/NetworkManager/developers/settings-spec-08.html</a></p>
<p><strong>Important</strong>: the uuid setting must be unique amongst all your connections, choose an unused one</p>
<p>Restart your raspberry and then:</p>
<pre>$ tail -F /var/log/syslog</pre>
<p>Check if the interface is connecting.</p>
<p>If its failling just edit the config file ( /etc/NetworkManager/system-connections/Wireless ) and adjust your connection settings. As soon as you save the file NetworkManager will update the connection and tries to reconnect.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=275</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Test network throughput between two machines</title>
		<link>https://blog.brunotavares.net/?p=269</link>
		<comments>https://blog.brunotavares.net/?p=269#comments</comments>
		<pubDate>Tue, 08 Jan 2013 13:19:23 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=269</guid>
		<description><![CDATA[Recently i needed to test the network troughput between my file server and one of the file server clients. I came across iperf, its a client-server command line utility that sends data between the server ( one of the machines of the pair you want to test ) and the client ( the other machine [...]]]></description>
				<content:encoded><![CDATA[<p>Recently i needed to test the network troughput between my file server and one of the file server clients.</p>
<p>I came across <a href="http://iperf.sourceforge.net/">iperf</a>, its a client-server command line utility that sends data between the server ( one of the machines of the pair you want to test ) and the client ( the other machine of the pair )</p>
<p>The usage is pretty simple, in one of the machines ( that will work as server ):</p>
<pre>iperf -s -p 65000</pre>
<p>On the other machine ( the client ):</p>
<pre>iperf -c &lt;ip of the server&gt; -p 65000</pre>
<p>After a few seconds:</p>
<pre>...
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  8.88 MBytes  7.34 Mbits/sec
...</pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=269</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding your Ubuntu version</title>
		<link>https://blog.brunotavares.net/?p=255</link>
		<comments>https://blog.brunotavares.net/?p=255#comments</comments>
		<pubDate>Tue, 11 May 2010 19:30:00 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=255</guid>
		<description><![CDATA[$ cat /etc/lsb-release]]></description>
				<content:encoded><![CDATA[<p><code><br />
$ cat /etc/lsb-release<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=255</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Diffs</title>
		<link>https://blog.brunotavares.net/?p=245</link>
		<comments>https://blog.brunotavares.net/?p=245#comments</comments>
		<pubDate>Tue, 02 Dec 2008 22:48:49 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=245</guid>
		<description><![CDATA[For some time now i started to notice the amount of time i wasted in solving version conflicts. The GNU diff works great with small change sets, but having a visual diff tool helps a lot when you&#8217;re dealing with long files with lots of diffs. I used several visuall-diff-editors whit the several version-control software [...]]]></description>
				<content:encoded><![CDATA[<p>For some time now i started to notice the amount of time i wasted in solving version conflicts. The GNU diff works great with small change sets, but having a visual diff tool helps a lot when you&#8217;re dealing with long files with lots of diffs. </p>
<p>I used several visuall-diff-editors whit the several version-control software and i currently use Meld: it&#8217;s gtk, has in-line edition ( let&#8217;s you change the working copy with a real-time diff computing ) and its &#8220;command line diff&#8221; and diff3 compatible which makes it work smoothly with version-control software.</p>
<p>So, for the both version-control systems that i use currently here is my setup</p>
<h4>SVN</h4>
<p>For a quick diff using meld just run:</p>
<p><code>$ svn diff--diff-cmd meld</code></p>
<p>For a permanent setup edit <code>~/.subversion/config</code> and set the <code>diff-cmd</code> to <code>meld</code></p>
<h4>GIT</h4>
<p>Write a small wrapper:</p>
<pre>
<code>
#!/usr/bin/env sh
meld $2 $5
</code>
</pre>
<p>and the just configure svn to use the wrapper as diff tool</p>
<p><code>git config --global diff.external /path/to/wrapper </code></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=245</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;time-machine&#8221; &#8482; with rsync</title>
		<link>https://blog.brunotavares.net/?p=199</link>
		<comments>https://blog.brunotavares.net/?p=199#comments</comments>
		<pubDate>Tue, 23 Sep 2008 11:46:38 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=199</guid>
		<description><![CDATA[The apple&#8217;s time-machine concept is precisely what i want for my laptop &#8220;backups&#8221; For the information sitting in my laptop i don&#8217;t want traditional disaster and recovery backups, i want to be able to, quickly, search and restore any version of ( virtually ) any file. Tthe problem? i don&#8217;t own a mac. The principle [...]]]></description>
				<content:encoded><![CDATA[<p>The apple&#8217;s time-machine concept is precisely what i want for my laptop &#8220;backups&#8221;</p>
<p>For the information sitting in my laptop i don&#8217;t want traditional disaster and recovery backups, i want to be able to, quickly, search and restore any version of ( virtually ) any file.</p>
<p>Tthe problem? i don&#8217;t own a mac.</p>
<p>The principle of the thing:</p>
<p>Incremental backup of all the files that changed in a short period of time ( let&#8217;s say 5 minutes, apple&#8217;s time machine does it every hour ).<br />
Create a snapshot of your laptop at the backup time, this implies being able to browse the laptop the exact same way that you browse your current file structure</p>
<p><strong>My current setup:</strong></p>
<pre><code>
BACKUPDIR="/backups"
DIRSTOBACKUP="/home /data"
date=`date "+%Y-%m-%dT%H:%M:%S"`
rsync -aP --exclude-from=~/backup.exceptions \
     --link-dest=$BACKUPDIR/current $BACKUPDIR/back-$date $DIRSTOBACKUP

cd $BACKUPDIR; rm -f current ;ln -s back-$date current
<code></pre>
<p>This rsync command line will backup all the files in DIRSTOBACKUP to $BACKUPDIR/back-$date .</p>
<p>The <code>-a</code> will ensure all the files are copied and their attributes preserved.</p>
<p><code>-P</code> justs add the ability to resume interrupted backups.</p>
<p><code>--link-dest </code>is really the core option. With this option, rsync will hard-link all the unchanged files to <code>--link-dest.</code> So, in you backup dir you'll end-up with all the changed files and bunch of hard-links to the unchanged files saving you a lot of storage space.</p>
<p>After that just updates the current symlink to the newest backup.</p>
<p>Now, in $BACKUP_DIR you have accurate snapshots of your laptop in all the backup times.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=199</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to build RPMs</title>
		<link>https://blog.brunotavares.net/?p=32</link>
		<comments>https://blog.brunotavares.net/?p=32#comments</comments>
		<pubDate>Mon, 09 Feb 2004 16:34:08 +0000</pubDate>
		<dc:creator>bat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.brunotavares.net/?p=32</guid>
		<description><![CDATA[Bom .. andei o dia todo de volta de spec files. Para quem precisar de fazer o mesmo aqui ficam dois links que ajudam a entrar nisto: http://www.redhat.com/docs/books/max-rpm/max-rpm-html/s1-rpm-inside-files-list-directives.html Este na realidade é um livro, está um bocadinho desactualizado (foi escrito para a versão 2 do RPM, vamos na 4) mas o essencial está lá. http://www.rpm.org/RPM-HOWTO/ [...]]]></description>
				<content:encoded><![CDATA[<p>Bom .. andei o dia todo de volta de spec files.<br />
Para quem precisar de fazer o mesmo aqui ficam dois links que ajudam a entrar nisto:</p>
<p>http://www.redhat.com/docs/books/max-rpm/max-rpm-html/s1-rpm-inside-files-list-directives.html</p>
<p>Este na realidade é um livro, está um bocadinho desactualizado (foi escrito para a versão 2 do RPM, vamos na 4) mas o essencial está lá.</p>
<p>http://www.rpm.org/RPM-HOWTO/</p>
<p>Este ém quick how-to que nos ensina (rapidamente) a construir um RPM</p>
<p>divirtam-se.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.brunotavares.net/?feed=rss2&#038;p=32</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
