<?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>Monkeying Around</title>
	<atom:link href="http://news.darknet.co.za/feed/" rel="self" type="application/rss+xml" />
	<link>http://news.darknet.co.za</link>
	<description>A keyboard and his monkey</description>
	<lastBuildDate>Wed, 15 Feb 2012 09:52:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Crunchbang Linux, minimal and mouseless</title>
		<link>http://news.darknet.co.za/crunchbang-linux-minimal-and-mouseless/</link>
		<comments>http://news.darknet.co.za/crunchbang-linux-minimal-and-mouseless/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 12:54:08 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[User Interfaces]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=456</guid>
		<description><![CDATA[Who can use these laptop and netbook touchpads, trackpads, whatever you call the thing you-accidentally-tap and lose-focus-and-type-into-the-wrong-spot. Specialized layout keyboard navigation is the way to go! Customized Conky to a top horizontal bar, always visible by setting my desktop margins. Installed Pytyle to organize my windows running on top of Openbox, with vi-like keybindings relying on [...]]]></description>
			<content:encoded><![CDATA[<p>Who can use these laptop and netbook touchpads, trackpads, whatever you call the thing you-accidentally-tap and lose-focus-and-type-into-the-wrong-spot.</p>
<p><em>Specialized layout keyboard navigation is the way to go!</em></p>
<p>Customized <a href="http://www.google.co.za/url?sa=t&amp;rct=j&amp;q=conky&amp;source=web&amp;cd=1&amp;ved=0CDAQFjAA&amp;url=http%3A%2F%2Fconky.sourceforge.net%2F&amp;ei=82u6Tu2nJYKEhQfplv2bBw&amp;usg=AFQjCNH4TET-PmFPVmybWBituFpLW0kMBQ">Conky</a> to a top horizontal bar, always visible by setting my desktop margins. Installed Pytyle to organize my windows running on top of Openbox, with vi-like keybindings relying on the Super key, And then hacked in a few Openbox global shortcuts for easy volume management and frequently used applications.</p>
<p><a href="http://news.darknet.co.za/crunchbang-linux-minimal-and-mouseless/ss-desktop/" rel="attachment wp-att-458"><img class="alignnone size-medium wp-image-458" title="Openbox with Pytyle" src="http://news.darknet.co.za/wp-content/uploads/2011/11/ss-desktop-300x175.png" alt="" width="300" height="175" /></a></p>
<p>&nbsp;</p>
<p><strong>Crash course in navigation</strong></p>
<p>So far I can manage 99% of tasks using the keyboard layout I set out below.</p>
<p><em>The Super is also known as the Winkey</em></p>
<p><strong>Window shortcuts</strong></p>
<p>cycle the focused window, Super-J/K</p>
<p>move the active window between panels on the screen, Super-Ctrl-J/K</p>
<p>move the active windows to another desktop, Super-Shift-J/K</p>
<p>switch desktops, Super-Alt-J/K</p>
<p>Change master tile size, Super-H/L</p>
<p>Add/remove master tiles, Super-./,</p>
<p><strong>Media shortcuts</strong></p>
<p>Ctrl-Ins, up volume</p>
<p>Ctrl-Del, down volume</p>
<p>Ctrl-Backspace, pause/play music</p>
<p>Super-V, alsa volume mixer</p>
<p>Super-M, mocp music player</p>
<p>&nbsp;</p>
<p><strong>CLI Mode</strong></p>
<p>When it comes to flash in websites that steals your focus, I feel like screaming. Due to bandwidth limits I use the text-mode CLI browser Elinks, and the CLI mail client Alpine.</p>
<p>I rebound many Elinks shortcuts for a vi-like experience to scrolling the page, within the page, browsing history, selecting links and so forth.</p>
<p>&nbsp;</p>
<p><a href="http://news.darknet.co.za/crunchbang-linux-minimal-and-mouseless/ss-desktop-2/" rel="attachment wp-att-459"><img class="alignnone size-medium wp-image-459" title="Tiled CLI Apps" src="http://news.darknet.co.za/wp-content/uploads/2011/11/ss-desktop-2-300x175.png" alt="" width="300" height="175" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/crunchbang-linux-minimal-and-mouseless/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multiple Operating System Live USB</title>
		<link>http://news.darknet.co.za/multi-os-live-usb/</link>
		<comments>http://news.darknet.co.za/multi-os-live-usb/#comments</comments>
		<pubDate>Mon, 19 Sep 2011 09:21:33 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=423</guid>
		<description><![CDATA[Everyone loves a Live OS on a bootable USB disk, it&#8217;s useful and very geeky. Let&#8217;s up our geek by making a  multi-boot live USB disk! I had the inspiration while using the Debian based distro Tails, I wanted to be able to save data onto the USB for later use. Tails is mastered with [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone loves a Live OS on a bootable USB disk, it&#8217;s useful and very geeky. Let&#8217;s up our geek by making a  multi-boot live USB disk!</p>
<p>I had the inspiration while using the <a href="http://tails.boum.org/index.en.html">Debian based distro Tails</a>, I wanted to be able to save data onto the USB for later use. Tails is mastered with the iso9660 filesystem,  more commonly used for CD&#8217;s,  it is a read-only file system. It&#8217;s worth saying this was by design, as a security centered distro it leaves no room for accidentally leaving traces behind.</p>
<p>Some digging found that grub can load a kernel from a ISO directly via a properly configured grub.cfg line, which differs for each distro mind you. This is when I found <a href="http://sourceforge.net/projects/multibootusb/">multibootusb</a>, a shell script that does the heavy lifting, including generating your grub.cfg, and it works on partitioned USB disks to boot &#8211; that means we can have a storage partition on the same USB disk too. Perfect!</p>
<p><strong>Prep</strong></p>
<p>Use your partitioner of choice and setup 2 partitions on the USB disk. Partition 1 will carry our grub boot loader and each distro&#8217;s files. Partition 2 will be storage. I named my partitions &#8220;multipass&#8221; and &#8220;store&#8221; respectively.</p>
<p><span style="color: #ff0000;">Warning: this will destroy all the data on the USB stick. Make doubly sure you use the correct /dev/sdX assignment for your USB disk. You can see it&#8217;s device name with &#8216;fdisk -l&#8217; or &#8216;df&#8217;.</span></p>
<p>I have success using up to a 6GB partition, I formatted both partitions as FAT 32 for compatibility reasons, using this command:</p>
<blockquote><p> sudo mkfs.msdos -F32 -n &#8220;multipass&#8221; /dev/sdXY</p></blockquote>
<p><em>Of course you will replace sdXY with your own device name. Change &#8216;multipass&#8217; to whatever names you want for your 1st and second partitions.</em></p>
<p><strong>Setup</strong></p>
<p><a href="http://sourceforge.net/projects/multibootusb/">Download, extract and run MultiBootUSB</a> as sudo within a terminal so we can  see any output messages:</p>
<blockquote><p>sudo sh MultiBootUSB.sh</p></blockquote>
<p>It prompts you to choose your USB device:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-device/" rel="attachment wp-att-424"><img class="size-full wp-image-424 alignnone" title="choose your USB device" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-device.png" alt="" width="575" height="254" /></a></p>
<p>&nbsp;</p>
<p>Choose to add distros <strong>Manually</strong>:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-auto-manual/" rel="attachment wp-att-425"><img class="alignnone size-full wp-image-425" title="multibootusb-auto-manual" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-auto-manual.png" alt="" width="426" height="207" /></a></p>
<p>&nbsp;</p>
<p>Add your first distro:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-add-distro-1/" rel="attachment wp-att-426"><img class="alignnone size-full wp-image-426" title="multibootusb-add-distro-1" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-add-distro-1.png" alt="" width="664" height="435" /></a></p>
<p>&nbsp;</p>
<p>Choose &#8216;Yes&#8217; to add more distros, as many as your space allows, and choose &#8216;No&#8217; when you are done choosing your distros:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-add-more/" rel="attachment wp-att-427"><img class="alignnone size-full wp-image-427" title="multibootusb-add-more" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-add-more.png" alt="" width="307" height="153" /></a></p>
<p>&nbsp;</p>
<p>Next the script asks us to check which distros to install and add to our grub boot menu:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-check-install/" rel="attachment wp-att-428"><img class="alignnone size-full wp-image-428" title="multibootusb-check-install" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-check-install.png" alt="" width="769" height="248" /></a></p>
<p>&nbsp;</p>
<p>Now you may go make some tea while the script extracts the ISO&#8217;s onto your USB disk, and builds your custom grub.cfg.</p>
<p>Behold the grub boot menu for your multi-boot USB disk:</p>
<p><a href="http://news.darknet.co.za/multi-os-live-usb/multibootusb-boot-screen/" rel="attachment wp-att-429"><img class="alignnone size-full wp-image-429" title="multibootusb-boot-screen" src="http://news.darknet.co.za/wp-content/uploads/2011/09/multibootusb-boot-screen.jpg" alt="" width="628" height="366" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><strong>Geek On</strong></p>
<p>There you have it, a very geeky multi-boot USB disk!</p>
<p>It&#8217;s a great way to carry a couple utility operating systems like Tails or Clonezilla, and as you can see I included Crunchbang and Kubuntu too.</p>
<p>I keep the truecrypt setup on my store partition in case I need to access any encrypted containers.</p>
<p>Happy bootin&#8217;!</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/multi-os-live-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solved: mpd blocks other audio from playing</title>
		<link>http://news.darknet.co.za/solved-mpd-blocks-other-audio-from-playing/</link>
		<comments>http://news.darknet.co.za/solved-mpd-blocks-other-audio-from-playing/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 14:21:21 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solved]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[mpd]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=414</guid>
		<description><![CDATA[Revisiting(mpd) I have this problem when using alsa (default) output: it blocks other audio sources. Playing a video in vlc while listening to music, gives us this flak: Potential ALSA version problem: VLC failed to initialize your sound output device (if any). Please update alsa-lib to version 1.0.23-2-g8d80d5f or higher to try to fix this [...]]]></description>
			<content:encoded><![CDATA[<p>Revisiting(mpd) I have this problem when using alsa (default) output: it blocks other audio sources.</p>
<p>Playing a video in vlc while listening to music, gives us this flak:</p>
<pre>Potential ALSA version problem:
VLC failed to initialize your sound output device (if any).
Please update alsa-lib to version 1.0.23-2-g8d80d5f or higher to try to fix this issue.</pre>
<p>The solution to my surprise is very simple, yet very obscure. edit /etc/mpd.conf and comment out the &#8220;device&#8221; line in the audio_output section:</p>
<pre>audio_output {
	type		"alsa"
	name		"My ALSA Device"
#	device		"hw:0,0"	# optional
	format		"44100:16:2"	# optional
	mixer_device	"default"	# optional
}</pre>
<p>I have no idea why. My guess: specifying a device locks the hardware to send audio to the device directly, while no specified device sends audio via the software mixer. The default probably assumes the hardware does mixing automatically. Audio is still a strange beast in dark realm for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/solved-mpd-blocks-other-audio-from-playing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The CLI Swiss Army Knife</title>
		<link>http://news.darknet.co.za/the-cli-swiss-army-knife/</link>
		<comments>http://news.darknet.co.za/the-cli-swiss-army-knife/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:48:01 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=400</guid>
		<description><![CDATA[What makes Linux stand out from your average commercial &#8482; operating system? There are many helper apps and utilities, together they make a weapon of epic-ness that process, cut, strip, filter and mangle input (stdin) and output (stdout). stdin can be your keyboard, a file on disk, or even the output from another command. stdout [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What makes Linux stand out from your average commercial &#8482; operating system?</strong></p>
<p>There are many helper apps and utilities, together they make a weapon of epic-ness that process, cut, strip, filter and mangle input (stdin) and output (stdout).</p>
<p>stdin can be your keyboard, a file on disk, or even the output from another command. stdout is your screen or a file. That&#8217;s the simplified version.</p>
<p>The | (pipe) connects two commands together by their stdin and stdout. We say it pipes the output from one command into another.</p>
<p><strong>*A knife made of pipes*</strong></p>
<p>To print a file to screen, we concatenate (cat) it, we can filter lines with the name &#8216;monkey&#8217;:</p>
<p><code>$ cat chatlog.txt | grep "monkey"<br />
&gt;<br />
&gt; Jul 22 06:32:00 How do you like your tea, monkey?<br />
&gt; Jul 22 06:32:19 I like my tea with a spot of milk.</code></p>
<p><em>I love tea and contrived examples.</em></p>
<p>Let&#8217;s cut out the date/time/nick part, and get a count of the number of words we wrote. Don&#8217;t fret about commands you don&#8217;t understand, the point is to demonstrate how the swiss army knife works as a whole.</p>
<p>$ cat chatlog.txt | grep &#8220;monkey&#8221; | cut -b28- | wc -w<br />
&gt; 20</p>
<p>See how each tool does one thing, and it does it well. We just chain the tools together.</p>
<p>We can grep, sed, sort, diff, awk, cmp, cat, tac, join, cut, and much much more.</p>
<p>These Linux tools aren&#8217;t without a sense of humor:</p>
<p>&#8216;tac&#8217; prints a file in reverse, the opposite of &#8216;cat&#8217;.</p>
<p>&#8216;more&#8217; prints output a screen at a time.</p>
<p>&#8216;less&#8217; is more: output becomes a vi-like text viewer, with a search function with scrolling back and forth.</p>
<p>&#8216;tail&#8217; is useful to show the last lines in a file, like messages or log entries.</p>
<p><strong>*Meet FIFO, she&#8217;s a pipe*</strong></p>
<p>I&#8217;ve shown you unnamed pipes, and now I want you to meet FIFO, she is a pipe.</p>
<p>FIFO means &#8220;First In, First Out&#8221;: whatever goes into the pipe first, will come out the other side first. Just like a normal pipe carrying water or <strong><span style="color: #339966;">toxic green sludge</span></strong>.</p>
<p>We create a named pipe with mkfifo:</p>
<p><code>mkfifo monkeypipe</code></p>
<p>Anything we write to the pipe (cat file &gt; monkeypipe) can be read by another process (cat monkeypipe).</p>
<p>Named pipes is one way for programs to communicate with another. Your music player for example, listens on a special pipe for any commands you may give it, to pause the song or skip to the next track.</p>
<p>Some say named pipes is a fundamental feature of Linuxes and Unices, at least via the CLI. Other &#8482; operating systems only have named pipe access via coded API calls, and that&#8217;s no good nor fun.</p>
<p><strong>*Substitution is better than the real thing*</strong></p>
<p>Wrapping commands in (parenthesis) runs those commands in a subshell, and when you prefix it with &lt; or &gt; the output is redirected to a named pipe, which for all intents and purposes acts like a normal file. </p>
<p>&#8220;<a href="http://tldp.org/LDP/intro-linux/html/sect_03_01.html">&#8220;On a UNIX system, everything is a file; if something is not a file, it is a process.</a>&#8221;</p>
<p>So if &#8216;diff&#8217; compares two files, we can compare two directories by substituting the &#8216;ls&#8217; output to a named pipe, and feeding those to diff, which sees them as files to read from.</p>
<p>This will compare process lists on two machines, one local, the other remote, via ssh:</p>
<p><code>diff <(ps axo comm) <(ssh user@host ps axo comm)</code></p>
<p>(example taken from <a href="http://www.linuxtutorialblog.com/post/tutorial-the-best-tips-tricks-for-bash">linuxtutorialblog.com</a>)</p>
<p><strong>*To wit*</strong></p>
<p>What useful applications for pipes do you? Share some of your favorites with us :)</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/the-cli-swiss-army-knife/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Double Plus Good</title>
		<link>http://news.darknet.co.za/google-double-plus-good/</link>
		<comments>http://news.darknet.co.za/google-double-plus-good/#comments</comments>
		<pubDate>Sat, 02 Jul 2011 12:38:37 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[News in brief]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=378</guid>
		<description><![CDATA[As a boy I made cipher wheels with paper cutouts, hiding the location of buried treasure was never so much fun. [image courtesy of Wikipedia] Cryptography comes from the need for privacy, and once upon a time I wrote a nice story about the privacy issues in social networking. In short: Facebook’s privacy policy was [...]]]></description>
			<content:encoded><![CDATA[<p>As a boy I made cipher wheels with paper cutouts, hiding the location of buried treasure was never so much fun.</p>
<p><a href="http://en.wikipedia.org/wiki/File:UnionCipherDisk.nsa.jpg"><img class="size-full wp-image-379" title="cipher-wheel" src="http://news.darknet.co.za/wp-content/uploads/2011/07/cipher-wheel.jpg" alt="" width="250" height="285" /><br />
<em>[image courtesy of Wikipedia]</em></a></p>
<p>Cryptography comes from the need for privacy, and once upon a time I wrote a nice story about the <a href="http://news.darknet.co.za/privacy-in-social-networking/">privacy issues in social networking</a>. In short: Facebook’s privacy policy was a pain to understand if you’re a legal layman like myself. </p>
<p>There&#8217;s probably a lot of Doublethink hidden in there.</p>
<p>Google+ makes this much easier!</p>
<p><em>&#8220;Privacy is not just the need for secrecy, it&#8217;s the state of being free from unsanctioned intrusion.&#8221;</em></p>
<p><a href="http://www.google.com/intl/en/privacy/">The Privacy Center</a> (via your account’s privacy settings) gives us these 5 principals for all Google’s products:</p>
<p>1. Use information to provide our users with valuable products and services.<br />
2. Develop products that reflect strong privacy standards and practices.<br />
3. Make the collection of personal information transparent.<br />
4. Give users meaningful choices to protect their privacy.<br />
5. Be a responsible steward of the information we hold.</p>
<p>These give me insight what we can hope to expect. You find there’s no real need to dissect the policy until it makes sense, it does so the first time. Transparency!</p>
<p>Furthermore, there is a whole section addressing <a href="http://www.google.com/familysafety/">family safety</a>. Nice work Google.</p>
<p>The <a href="http://www.google.com/support/profiles/bin/static.py?hl=en&amp;page=guide.cs&amp;guide=1347964&amp;rd=1">G+ Privacy Guide</a> lays everything out in nicely categorized sections, easy to find answers.</p>
<p>Keep an eye out for any amendments while G+ is changing, and let&#8217;s hope there aren&#8217;t any hidden surprises.</p>
<p>Just a thought.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/google-double-plus-good/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux version 3.0</title>
		<link>http://news.darknet.co.za/linux-version-3-0/</link>
		<comments>http://news.darknet.co.za/linux-version-3-0/#comments</comments>
		<pubDate>Mon, 30 May 2011 14:24:08 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[News in brief]]></category>
		<category><![CDATA[Linux-kernel]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=362</guid>
		<description><![CDATA[The last two lines in my .bashrc file prints out a fortune, and displays my kernel version, in every terminal I open. I see 2.6 regularly, more often and more relevant than my birthday. *Linux is turning version 3.0* Close enough to GNU / Linux&#8217;s 20th birthday, Linux is turning 3.0-rc1. So what&#8217;s new? Well, [...]]]></description>
			<content:encoded><![CDATA[<p>The last two lines in my .bashrc file prints out a fortune, and displays my kernel version, in every terminal I open. I see 2.6 regularly, more often and more relevant than my birthday.</p>
<p><strong>*Linux is turning version 3.0*</strong></p>
<p>Close enough to GNU / Linux&#8217;s 20th birthday, Linux is turning 3.0-rc1. </p>
<p>So what&#8217;s new? Well, according to Linus, &#8220;Absolutely nothing&#8230; No breakage, no special scary new features, nothing at all like that.&#8221; &#8211; Of course the usual critical security patches, if any come through; but no ABI, API changes. </p>
<p>The 2.6 release first came out in 2004, and is still being maintained alongside the 2.4 kernel. The first two (2.6) digits haven&#8217;t changed since 2004, the third digit updated with kernel releases, while the fourth digit is kept for urgent security fixes that don&#8217;t constitute an whole new version.</p>
<p>SOURCE: <a href="https://lkml.org/lkml/2011/5/29/204">https://lkml.org/lkml/2011/5/29/204</a></p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/linux-version-3-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux in your browser experiments</title>
		<link>http://news.darknet.co.za/linux-in-your-browser-experiments/</link>
		<comments>http://news.darknet.co.za/linux-in-your-browser-experiments/#comments</comments>
		<pubDate>Wed, 18 May 2011 08:27:25 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[operating-system]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=356</guid>
		<description><![CDATA[This JavaScript PC Emulator that runs Linux is fantastic. Just stop to consider a VM running in an interpreted environment. It does not have a FPU (Float Point Unit, aka math co-processor) but Linux kernels emulate FPU&#8217;s if none are available. Tell us what neat tricks you come up with in JS Linux! #Create a [...]]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://bellard.org/jslinux/">JavaScript PC Emulator that runs Linux</a> is fantastic. Just stop to consider a VM running in an interpreted<br />
environment.</p>
<p>It does not have a FPU (Float Point Unit, aka math co-processor) but Linux kernels emulate FPU&#8217;s if none are available.</p>
<p>Tell us what neat tricks you come up with in JS Linux!</p>
<p><code>#Create a mounted loopback file system as ~/loopback.img, mounted to /mnt.<br />
#Then copied hello.c to our mount point, unmounted it, and gzipped the image =D</p>
<p># dd if=/dev/zero of=loopback.img bs=1000 count=400<br />
  400+0 records in<br />
  400+0 records out<br />
  400000 bytes (390.6KB) copied, 0.129992 seconds, 2.9MB/s</p>
<p># mkfs.ext2 -F loopback.img<br />
  Filesystem label=<br />
  OS type: Linux<br />
  Block size=1024 (log=0)<br />
  Fragment size=1024 (log=0)<br />
  48 inodes, 390 blocks<br />
  19 blocks (5%) reserved for the super user<br />
  First data block=1<br />
  Maximum filesystem blocks=262144<br />
  1 block groups<br />
  8192 blocks per group, 8192 fragments per group<br />
  48 inodes per group</p>
<p># mount -o loop loopback.img /mnt</p>
<p># cp hello.c /mnt &#038;&#038; ls -al /mnt<br />
  drwxr-xr-x 3 root root 1024 May 17 14:21 .<br />
  drwxr-xr-x 13 root root 1024 May 16 16:33 ..<br />
  -rw-r--r-- 1 root root 166 May 17 14:21 hello.c<br />
  drwxr-xr-x 2 root root 12288 May 17 14:19 lost+found</p>
<p># umount /mnt</p>
<p># gzip loopback.img<br />
# ls -lh<br />
  -rwxr-xr-x 1 root root 1.9K May 17 14:14 a.out<br />
  -rw-r--r-- 1 root root 166 May 15 22:15 hello.c<br />
  -rw-r--r-- 1 root root 905 May 17 14:23 loopback.img.gz</code></p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/linux-in-your-browser-experiments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell Warrior: You have stopped jobs</title>
		<link>http://news.darknet.co.za/shell-warrior-you-have-stopped-jobs/</link>
		<comments>http://news.darknet.co.za/shell-warrior-you-have-stopped-jobs/#comments</comments>
		<pubDate>Tue, 17 May 2011 18:01:06 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=292</guid>
		<description><![CDATA[I have stopped jobs? You hit Ctrl-D (^D) to close a terminal window, a messages pops up, &#8220;There are stopped jobs.&#8221;, you hit ^D again, gulp some espresso, the terminal fades away. What did that message mean? Why did it stop the window from closing the first time? The Simple Answer A Job (process) can [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I have stopped jobs?</strong></p>
<p>You hit Ctrl-D (^D) to close a terminal window, a messages pops up, &#8220;There are stopped jobs.&#8221;, you hit ^D again, gulp some espresso, the terminal fades away. </p>
<p>What did that message mean? Why did it stop the window from closing the first time? </p>
<p><strong>The Simple Answer</strong></p>
<p>A Job (process) can run in the foreground (fg) or in the background (bg), which if there are, you get told this to give you a chance to end those background jobs gracefully.</p>
<p>You can run a job in the background by adding &#8220;&#038;&#8221; to the command. You can send the current running app to the background with Ctrl-Z (^Z).</p>
<p>Use &#8216;jobs&#8217; to list all jobs, and &#8216;fg&#8217; to switch jobs: either by its job number, or the last job you worked on (if no job number is given).</p>
<p><strong>Some Easy Examples</strong></p>
<p><em>Try these out with me, it&#8217;s a great way to learn! (you can use pico instead of vi)</em></p>
<p><code># edit our shopping<br />
$ vi shopping</p>
<p>- buy ground espresso<br />
~</p>
<p># send vi to the background (Press Ctrl-Z)<br />
[1]+ Stopped vi shopping</p>
<p># I need to look at the ingredients for sorbet<br />
$ vi recipes</p>
<p># our recipe says we need peaches, great. We ^Z this one to the background too<br />
[2]+ Stopped vi recipes</p>
<p># we now have 2 stopped jobs<br />
$ jobs<br />
[1]- Stopped vi shopping<br />
[2]+ Stopped vi recipes</p>
<p># switch back to shopping (job 1)<br />
$ fg 1</p>
<p># complete our shopping list<br />
- buy ground espresso<br />
- buy peaches<br />
~<br />
</code></p>
<p>We have two vi&#8217;s running, and switch between them, in the same terminal. This seems arb, since you could just open another terminal window. But this method of managing jobs was a great way to multitask back when X Windows wasn&#8217;t always available.</p>
<p>You can see how this is handy in a ssh session: Busy editing your firewall config, you have to check the mac address of your second network card. No need to discard your half-edited file. No problem!</p>
<p>So when you &#8216;exit&#8217; a session, it tells you that &#8220;there are stopped jobs&#8221;, just in case you forgot to save your shopping list. If you ignore the message and &#8216;exit&#8217; a second time, the shell will kill those jobs for you.</p>
<p>For more on this, try &#8216;man jobs&#8217; and see the entries for jobs, fg and bg</p>
<p><strong>*Pro Tip:*</strong> ^Z in a ssh session will background the remote process, while ~^Z (Tilde-Ctrl-Z) will background the ssh session itself. Tilde (~) is the ssh escape character: keystrokes following it apply to the local session.</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/shell-warrior-you-have-stopped-jobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visual Tour: MeeGo 1.1</title>
		<link>http://news.darknet.co.za/visual-tour-meego/</link>
		<comments>http://news.darknet.co.za/visual-tour-meego/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 20:48:50 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[User Interfaces]]></category>
		<category><![CDATA[Visual Tour]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[meego]]></category>
		<category><![CDATA[operating-system]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=297</guid>
		<description><![CDATA[MeeGo is an open source, Linux based distro, that pulls from various other open source projects. It supports devices like: netbooks, handhelds, TV&#8217;s, and IVI&#8217;s (In-Vehicle Infotainment). Intel/Atom and ARM platforms are supported. Enjoy this visual tour, and stick around for a few more words at the end. (Images total ~1.5MB) MeeGo Version: 1.1 (released [...]]]></description>
			<content:encoded><![CDATA[<p>MeeGo is an open source, Linux based distro, that pulls from various other open source projects. It supports devices like: netbooks, handhelds, TV&#8217;s, and IVI&#8217;s (In-Vehicle Infotainment). Intel/Atom and ARM platforms are supported. Enjoy this visual tour, and stick around for a few more words at the end. (<em>Images total ~1.5MB</em>)</p>
<p><span id="more-297"></span></p>
<p><strong>MeeGo</strong></p>
<p>Version: 1.1 (released 28 Oct 2010)<br />
Live CD/USB: Yes<br />
Tested on: my MSI U100 Plus netbook (Intel Atom N270?)<br />
License: Open Source<br />
Website: <a href="http://MeeGo.com">http://MeeGo.com</a></p>
<p><strong>First Glance</strong></p>
<p>This spunky OS, with its simplified navigation, is snappy and responsive. Services like Twitter, Last.fm and IM, are integrated into the desktop environment.</p>
<p><em>Click images to zoom in / out.</em></p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-netbook-photo.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-netbook-photo-300x235.jpg" alt="" title="meego-netbook-photo" width="300" height="235" class="alignnone size-medium wp-image-322" /></a></p>
<p>MeeGo&#8217;s interface ideology is simple: Visually intuitive, and maximize real estate. You move through the main sections via the top toolbar. </p>
<p>The colorful icons on the top menu zoom and bounce as you move over them. The interface is so responsive and fluid, it feels so crisp to move around.</p>
<p>Myzone is your landing page, it shows updates from all your social accounts on this page, tasks, appointments and favorite apps:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-myzone-04.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-myzone-04-300x175.jpg" alt="" title="meego-myzone-04" width="300" height="175" class="alignnone size-medium wp-image-321" /></a></p>
<p>Evolution is used as your calendar and appointment schedular:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-evolution-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-evolution-01-300x175.jpg" alt="" title="meego-evolution-01" width="300" height="175" class="alignnone size-medium wp-image-311" /></a></p>
<p>Applications open maximized on their own virtual desktops, called Zones. You can also Alt+Tab between zones.</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-zones-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-zones-01-300x175.jpg" alt="" title="meego-zones-01" width="300" height="175" class="alignnone size-medium wp-image-327" /></a></p>
<p>You can search installed applications, and pin them to your favorites list, including the ability to <a href="http://help.meego.com/netbook/sync">Sync your data</a>, and system updates:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-apps-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-apps-01-300x175.jpg" alt="" title="meego-apps-01" width="300" height="175" class="alignnone size-medium wp-image-307" /></a></p>
<p>The People panel shows your IM contacts on the left, and conversions on the right. Services like Twitter and Last.fm are managed on the Status panel, you can update your status to all your micro blogging accounts here:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-status-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-status-01-300x175.jpg" alt="" title="meego-status-01" width="300" height="175" class="alignnone size-medium wp-image-325" /></a></p>
<p>The default IM client is Telepathy, it supports an array of IM protocols:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-im-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-im-01-300x199.jpg" alt="" title="meego-im-01" width="300" height="199" class="alignnone size-medium wp-image-315" /></a></p>
<p>The Media panel and player is simplified, but fully functional and well intuitive! The backend uses GStreamer, PulseAudio and GUPnP for audio/video playback:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-media-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-media-01-300x175.jpg" alt="" title="meego-media-01" width="300" height="175" class="alignnone size-medium wp-image-316" /></a></p>
<p>The Media player comes preconfigured to stream from The Internet Archive:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-media-zombie.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-media-zombie-300x175.jpg" alt="" title="meego-media-zombie" width="300" height="175" class="alignnone size-medium wp-image-317" /></a></p>
<p>&#8230; and Last.fm as well:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-musicplayer-03.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-musicplayer-03-300x175.jpg" alt="" title="meego-musicplayer-03" width="300" height="175" class="alignnone size-medium wp-image-320" /></a></p>
<p>Big Buck Bunny is bundled with the setup, and some jazzy music too &#8211; great for testing playback on your hardware:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-movie-player.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-movie-player-300x175.jpg" alt="" title="meego-movie-player" width="300" height="175" class="alignnone size-medium wp-image-319" /></a></p>
<p>The Devices panel is where you access your files (Documents, Downloads, Music, Pictures, Videos, Trash) and attached USB devices:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-devices-02.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-devices-02-300x175.jpg" alt="" title="meego-devices-02" width="300" height="175" class="alignnone size-medium wp-image-310" /></a></p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-filebrowser-02.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-filebrowser-02-300x175.jpg" alt="" title="meego-filebrowser-02" width="300" height="175" class="alignnone size-medium wp-image-312" /></a></p>
<p>The &#8220;All Settings&#8221; button takes you to the big guy of software and hardware settings:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-settings.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-settings-300x175.jpg" alt="" title="meego-settings" width="300" height="175" class="alignnone size-medium wp-image-324" /></a></p>
<p>You connect to networks via the &#8220;Networks&#8221; panel:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-networks-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-networks-01-300x175.jpg" alt="" title="meego-networks-01" width="300" height="175" class="alignnone size-medium wp-image-323" /></a></p>
<p>Those are the panels by default. Opening the Toolbar settings (under All settings), and you can customize the top toolbar. Let&#8217;s add the Gadets panel with a couple of gadets:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-gadgets.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-gadgets-300x175.jpg" alt="" title="meego-gadgets" width="300" height="175" class="alignnone size-medium wp-image-314" /></a></p>
<p><strong>Other features and things</strong></p>
<p>Connecting a USB drive, or media card if you have a card reader, will ask you for an action:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-devices-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-devices-01-300x209.jpg" alt="" title="meego-devices-01" width="300" height="209" class="alignnone size-medium wp-image-309" /></a></p>
<p>I installed the Google Chrome edition of MeeGo:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-chrome-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-chrome-01-300x175.jpg" alt="" title="meego-chrome-01" width="300" height="175" class="alignnone size-medium wp-image-308" /></a></p>
<p>Frozen Bubble!</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-frozen-bubble.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-frozen-bubble-300x245.jpg" alt="" title="meego-frozen-bubble" width="300" height="245" class="alignnone size-medium wp-image-313" /></a></p>
<p>Through the keyboard settings, I changed Ctrl+Alt+T to run gnome-terminal:</p>
<p><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-terminal-01.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/meego-terminal-01-300x175.jpg" alt="" title="meego-terminal-01" width="300" height="175" class="alignnone size-medium wp-image-326" /></a></p>
<p><strong>Impression</strong></p>
<p>Smooth and polished, there&#8217;s still some work to be done on MeeGo, but what we see has been done well and with intention.</p>
<p>It&#8217;s impressive how <a href="http://meego.com/developers">architecture, API and reference material</a> is well documented. This will ensure consistent applications and usability, at least that is the idea.</p>
<p>MeeGo is sleek and yet new, it is well worth keeping an eye out for. It makes a good OS for non-tech-savvy family and friends. But because it&#8217;s still pretty young, they may need some help to make sure it is set up and working. I can see a lot of folks loving it! </p>
<p>For myself, and all you other techy types, we like using terminals and doing our tax returns in hexidecimal (in my dreams!), this may not be your first choice. Try your hand at multi-booting, it may be great for a casual surf at the coffee shop.</p>
<p>Supported hardware includes Atom based Netbooks, <a href="http://meego.com/devices/netbook/supported-hardware-platforms">and a few other models and devices</a>. Like any free and evolving system, it&#8217;s worth reporting and helping with bug reports :-)</p>
<p><strong>Issues</strong></p>
<p>- I had to apply a fix for my wireless to be recognized as a device. It&#8217;s a <a href="http://bugs.meego.com/show_bug.cgi?id=8702">known ralink rt2860 bug</a>, the fix should be in the next release though.</p>
<p>- The Netbook touch-pad did not work. I used a USB mouse to test. <a href="https://bugs.meego.com/show_bug.cgi?id=2547">This is a known bug</a>.</p>
<p>- Without mousey, I tried accessibility via keyboard and got pretty stuck! The power button did provide a suitable UX action in this case.</p>
<p><strong>Version 1.2</strong></p>
<p>Scheduled for release in April 2011, I&#8217;m optimistically certain that many issues are going to be fixed by then. See the <a href="http://meego.com/community/blogs/valhalla/2010/meego-1.1-release">version 1.1 release post</a> for more details on 1.1.</p>
<p><em>Feel unsatisfied? I did not cover every aspect of MeeGo, why not go discover more for yourself! :-)</em></p>
<p><code>Keyboardmonkey, out.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/visual-tour-meego/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Hack Tip: remap your keyboard buttons</title>
		<link>http://news.darknet.co.za/remap-your-keyboard-buttons/</link>
		<comments>http://news.darknet.co.za/remap-your-keyboard-buttons/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 19:33:05 +0000</pubDate>
		<dc:creator>Wez</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://news.darknet.co.za/?p=269</guid>
		<description><![CDATA[Occasionally you get a keyboard which sports some buttons in odd places, in my case, the Ctrl and Ins buttons were swapped. Strange layout, no doubt. This frustrates anyone who writes code, or uses mouseless surfing, as you use key-combinations and the Alt / Ctrl keys plenty. Luckily we can use xmodmap to remap your [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally you get a keyboard which sports some buttons in odd places, in my case, the Ctrl and Ins buttons were swapped. Strange layout, no doubt. This frustrates anyone who writes code, or uses <a href="https://chrome.google.com/extensions/detail/dbepggeogbaibhgnhhndojpepiihcmeb">mouseless surfing</a>, as you use key-combinations and the Alt / Ctrl keys plenty.</p>
<p>Luckily we can use xmodmap to remap your keys to any other we prefer, here is how&#8230;</p>
<div id="attachment_270" class="wp-caption alignnone" style="width: 342px"><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/xmodmap-flare.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/xmodmap-flare.jpg" alt="you will need: keyboard, flat head screwdriver, emperor penguin plushy" title="xmodmap!" width="332" height="258" class="size-full wp-image-270" /></a><p class="wp-caption-text">you will need: keyboard, flat head screwdriver, emperor penguin plushy</p></div>
<p><span id="more-269"></span></p>
<p>I want to swap the Ctrl and Ins buttons. In a terminal we run xev. It presents a window that captures keystrokes, and prints the keycode for key presses:</p>
<p><code>keycode 105 (keysym 0xff63, Control_R)<br />
keycode 118 (keysym 0xffe4, Insert)<br />
</code></p>
<p>We want to swap those two around, so that keycode 105 becomes Insert, and 118 becomes Control_R.</p>
<p>I popped the buttons out with a screwdriver, and swapped them around. Next we write a xmodmap config file to swap the keycodes: pico ~/scripts/xmodmap-config</p>
<p><code>! comments start with a bang<br />
! remap our keycodes to new functions<br />
keycode 118 = Control_R<br />
keycode 105 = Insert</p>
<p>! clear and reset the control modifiers<br />
! refresh the modifier list<br />
! with both left and right Ctrl buttons<br />
clear control<br />
add control = Control_L Control_R<br />
</code></p>
<div id="attachment_276" class="wp-caption alignnone" style="width: 342px"><a href="http://news.darknet.co.za/wp-content/uploads/2011/02/xmodmap-howto1.jpg"><img src="http://news.darknet.co.za/wp-content/uploads/2011/02/xmodmap-howto1.jpg" alt="taking back control" title="xmodmap-howto" width="332" height="208" class="size-full wp-image-276" /></a><p class="wp-caption-text">taking back control</p></div>
<p>We test this by running xmodmap ~/scripts/xmodmap-config. The keys should now be swapped until you log out.</p>
<p>If we place this same command under System Preferences > Startup Applications, it won&#8217;t work, I found there needs to be a small delay before we run xmodmap. I&#8217;m unsure why, to be honest, but we can work around this issue with a small shell script, that will sleep for a second, then run xmodmap for us. We create ~/scripts/remap-keyboard.sh:</p>
<p><code>#!/bin/bash<br />
sleep 1 &#038;&#038; xmodmap ~/scripts/xmodmap-config</code></p>
<p>let&#8217;s make the script executable:</p>
<p><code>chmod u+x ~/scripts/remap-keyboard.sh</code></p>
<p>and we add this shell script to Startup Applications, under System Preferences, using this as the command:</p>
<p><code>sh ~/scripts/remap-keyboard.sh</code></p>
<p>This should keep me happy, until I can get my hands on a <a href="http://www.amazon.com/Happy-Hacking-Keyboard-Professional2-Black/dp/B000EXZ0VC">Happy Hacker Keyboard</a>. :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://news.darknet.co.za/remap-your-keyboard-buttons/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

