<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6485167114445349071</id><updated>2011-08-12T03:39:23.785+10:00</updated><category term='curses'/><category term='workrave'/><category term='BSoD'/><category term='id3'/><category term='MythTV'/><category term='rip'/><category term='gadgets'/><category term='Nokia'/><category term='music'/><category term='lca'/><category term='Amarok'/><category term='blog'/><category term='3G'/><category term='lca08'/><category term='remind'/><category term='remote speakers'/><category term='wyrd'/><category term='console'/><category term='n95'/><category term='eyeD3'/><category term='lightweight software'/><category term='ergonomics'/><category term='n800'/><category term='Linux'/><category term='Scrapheap Challenge'/><category term='RSI'/><category term='keyboards'/><category term='DVD'/><category term='Command of the Hour'/><category term='Nightwish'/><category term='encode'/><category term='filesharing'/><category term='Maemo'/><title type='text'>DarkStarShout</title><subtitle type='html'>Jack of all Computer Related Trades Shouting About Random Stuff</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-3250770655063764702</id><published>2010-11-14T10:47:00.018+11:00</published><updated>2010-11-14T17:44:02.173+11:00</updated><title type='text'>Bluetooth 3G Modems on Debian Linux: Chatscripts and rfcomm bluez</title><content type='html'>I've been using 3G mobile broadband to my primary Internet connection for a couple of years now, and ever since I moved out of college it has become my only Internet connection at home - It's saved me the cost, delays and headache of dealing with Telstra to sort out some kind of wired link.&lt;br /&gt;&lt;br /&gt;In my particular setup I removed the 3G data SIM card from the USB modem that came with my plan and placed it in my Nokia N900, which I use as a bluetooth modem for my various computers (my N95 used to fill this role) as well as having the convenience of having the N900 itself connected wherever and whenever I want.&lt;br /&gt;&lt;br /&gt;Every now and again I get asked about my setup - a lot of people seem to have had trouble setting up bluetooth modems in Linux. This is understandable - last time I checked out Network Manager I found that it could set up a USB 3G modem pretty easily but had zero provisions to set up a bluetooth modem, and the Linux bluetooth stack (bluez) also leaves something to be desired (try using bluez 4 to pair to something without X... fail). I've previously been directing these people to some posts I made on the CLUG mailing list that had my configuration files, but it's clear that it will be easier to direct people to a blog post.&lt;br /&gt;&lt;br /&gt;The quickstart guide for those people would be scan this post, grab the file excerpts and place them where they belong, restart bluetooth and run the &lt;code&gt;pon &amp;lt;profile&amp;gt;&lt;/code&gt; command to try to bring up the 3G connection. Then when that inevitably doesn't work read the rest of the article to figure out what you need to change to make it work. I should note that I'm using Debian so some of this article may not apply to other non Debian derived distributions (the pon and poff commands came from Debian, for example)&lt;br /&gt;&lt;br /&gt;Firstly, a little background on the technical details we care about: 3G modems provide &lt;a href="http://en.wikipedia.org/wiki/Point-to-Point_Protocol"&gt;PPP&lt;/a&gt; (Point-to-Point Protocol) links to your ISP, just like the dial-up modems of old did. We even use the same protocol and method to talk to them that we used to use to talk to dial-up modems - the &lt;a href="http://en.wikipedia.org/wiki/AT_command_set"&gt;AT command set&lt;/a&gt; over some kind of serial like interface (itself encapsulated in a USB or bluetooth link).&lt;br /&gt;&lt;br /&gt;A few things have changed though - for one they are much faster than dial-up modems. Authentication is also handled differently - we no longer (typically) use a username and password, instead handling the authentication in the SIM card. And instead of calling a phone number for your local ISP, we instead call a special number (such as *99#) to establish the link. Added to this, we now also have something called an &lt;a href="http://en.wikipedia.org/wiki/Access_Point_Name"&gt;APN&lt;/a&gt; (Access Point Name) to identify the IP packet data network that we want to communicate with.&lt;br /&gt;&lt;br /&gt;There are a few important consequences of all of this. Firstly, we are using the same infrastructure (ppp, chatscripts, wvdial, ...) in Linux to connect to 3G that we used to use to connect old dial-up connections. Secondly, despite not requiring a username and password any more we still have to provide something in their stead to make everything happy even though they are ignored. We also still have the same nonsense of every ISP having a subtle difference in their authentication that affects how we connect to them. There can also be subtle differences in the AT commands we need to communicate with different modems to get them to do what we want.&lt;br /&gt;&lt;br /&gt;Some people like using wvdial to establish their ppp links. If that works for you that's great, but my experience has been that wvdial fails in many circumstances, and getting it to work in those cases is quite often impossible, so I'm going to cover a much more tunable back to basics method: ppp + chatscripts + rfcomm.&lt;br /&gt;&lt;br /&gt;Firstly, make sure ppp is installed (apt-get install ppp)... I hope you have some other connection than your 3G link to get that... Perhaps whatever you are reading this blog on?&lt;br /&gt;&lt;br /&gt;We'll start with a USB connection - no sense adding the extra complexities of a bluetooth link to the mix until we have that working. I'll show the profiles I use for both the Huawei E220 USB modem that came with the plan and the USB link to my N900 (or N95).&lt;br /&gt;&lt;br /&gt;We need two configuration files for each profile - the configuration for the ppp side of the link goes under /etc/ppp/peers/&amp;lt;profile&amp;gt; and the chatscript which tells the modem how to establish the ppp link under /etc/chatscripts/&amp;lt;profile&amp;gt;. The chatscript is referenced from the ppp configuration file, so it is possible to use one chatscript for multiple profiles, assuming the profiles are talking to the same modem (or at least that one modem doesn't require special treatment) and using the same APN.&lt;br /&gt;&lt;br /&gt;The chatscript is responsible for initialising the modem and getting the connection to the point where pppd can take over, so I'll start with that. Here's the chatscript that I use for my Nokia N900 (USB and bluetooth), Nokia N95 and Huawei E220 USB mdoem:&lt;br /&gt;&lt;br /&gt;/etc/chatscripts/optus-n900&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;ABORT BUSY&lt;br /&gt;ABORT ERROR&lt;br /&gt;ABORT 'NO CARRIER'&lt;br /&gt;REPORT CONNECT&lt;br /&gt;TIMEOUT 10&lt;br /&gt;"" "ATZ"&lt;br /&gt;OK "ATE1V1&amp;D2&amp;C1S0=0+IFC=2,2"&lt;br /&gt;OK AT+CGDCONT=1,"IP","&amp;lt;APN&amp;gt;"&lt;br /&gt;OK "ATE1"&lt;br /&gt;&lt;br /&gt;OK "ATDT*99#"&lt;br /&gt;&lt;br /&gt;CONNECT \c&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;IMPORTANT:&lt;/span&gt; Replace &amp;lt;APN&amp;gt; with the APN for your connection (for me on Optus post-paid mobile broadband that is "connect", for Lucy on Three pre-paid mobile broadband that is "3services" - refer to the documentation that came with your plan to find out what it is for you). If you don't you will run into inexplicable problems later.&lt;br /&gt;&lt;br /&gt;I said above that some modems need to be treated specially in the chatscript. I used to have to use this on my Huawei E220 because I could not find one script that would satisfy both it and my N95 (the AT+IPR line below was necessary for the E220, but caused the N95 to fail), but the differences no longer seem to be necessary (firmware upgrade? Some other change I made and forgot about? Phase of the moon? I can't recall), but it might help someone so here it is:&lt;br /&gt;&lt;br /&gt;/etc/chatscripts/optus-huawei&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;ABORT BUSY&lt;br /&gt;ABORT ERROR&lt;br /&gt;ABORT 'NO CARRIER'&lt;br /&gt;REPORT CONNECT&lt;br /&gt;TIMEOUT 10&lt;br /&gt;"" "ATZ"&lt;br /&gt;OK AT+CGDCONT=1,"ip","connect"&lt;br /&gt;OK "ATE1V1&amp;D2&amp;C1S0=0+IFC=2,2"&lt;br /&gt;OK "AT+IPR=115200"&lt;br /&gt;&lt;br /&gt;OK "ATE1"&lt;br /&gt;&lt;br /&gt;TIMEOUT 60&lt;br /&gt;"" "ATD*99#"&lt;br /&gt;&lt;br /&gt;CONNECT \c&lt;/div&gt;&lt;br /&gt;Now we need a profile for ppp that references that chatscript and contains all the settings necessary to establish a successful ppp link. I have a number of these for different profiles, depending on which modem I'm using and whether I'm using my Optus link or Lucy's Three link, but they all pretty similar and include some common elements, so I'll just show one combined file with comments for differences between them. All these options and more are described in man pppd:&lt;br /&gt;&lt;br /&gt;/etc/ppp/peers/&amp;lt;profile&amp;gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;# This can help track down problems:&lt;br /&gt;#debug&lt;br /&gt;&lt;br /&gt;# The modem device to talk to:&lt;br /&gt;/dev/ttyACM0  # N900/N95 USB&lt;br /&gt;#/dev/ttyUSB0 # Huawei USB&lt;br /&gt;#/dev/rfcomm0 # N900 Bluetooth&lt;br /&gt;&lt;br /&gt;# In some cases it may be necessary to specify a baud rate,&lt;br /&gt;# but generally it's best to let ppp detect this:&lt;br /&gt;#115200&lt;br /&gt;#230400&lt;br /&gt;#460800&lt;br /&gt;#... etc&lt;br /&gt;&lt;br /&gt;# Optus requires both of these options, Three requires neither.&lt;br /&gt;# Other ISPs may have different authentication requirements:&lt;br /&gt;refuse-chap&lt;br /&gt;require-pap&lt;br /&gt;&lt;br /&gt;# When to detach from the console:&lt;br /&gt;updetach&lt;br /&gt;#nodetach&lt;br /&gt;&lt;br /&gt;# These are generally necessary:&lt;br /&gt;crtscts&lt;br /&gt;noauth&lt;br /&gt;noipdefault&lt;br /&gt;&lt;br /&gt;# If the connection drops out try to reopen it:&lt;br /&gt;persist&lt;br /&gt;&lt;br /&gt;# We want this to be the default internet connection:&lt;br /&gt;defaultroute&lt;br /&gt;replacedefaultroute&lt;br /&gt;&lt;br /&gt;# Get DNS settings from the ISP:&lt;br /&gt;usepeerdns&lt;br /&gt;&lt;br /&gt;# not used, but we must provide something:&lt;br /&gt;user "na"&lt;br /&gt;password "na"&lt;br /&gt;&lt;br /&gt;# Playing with these compression options *may* improve&lt;br /&gt;# performance, but get it working first:&lt;br /&gt;noccp&lt;br /&gt;nobsdcomp&lt;br /&gt;novj&lt;br /&gt;#nodeflate&lt;br /&gt;&lt;br /&gt;#What chatscript we are using in this profile:&lt;br /&gt;connect "/usr/sbin/chat -s -S -V -f /etc/chatscripts/optus-n900"&lt;br /&gt;#connect "/usr/sbin/chat -s -S -V -f /etc/chatscripts/optus-huawei"&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Got that? Great, let's give it a go! Connect your modem by USB, do whatever magic incantations you need to get your modem to reveal it's modem aspects to Linux (for Nokia phones this is usually select the PC suite mode when you plug it in, some people report having to do strange things with kernel modules and udev to poke their Huawei E220 modems, though I have never found that necessary myself), shutdown your network manager and run this in a terminal:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;pon &amp;lt;profile&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;All going well hopefully you will see some output like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;ATZ&lt;br /&gt;OK&lt;br /&gt;ATE1V1&amp;D2&amp;C1S0=0+IFC=2,2&lt;br /&gt;OK&lt;br /&gt;AT+CGDCONT=1,"IP","connect"&lt;br /&gt;OK&lt;br /&gt;ATE1&lt;br /&gt;OK&lt;br /&gt;ATDT*99#&lt;br /&gt;CONNECTchat:  Nov 14 13:12:13 CONNECT&lt;br /&gt;Serial connection established.&lt;br /&gt;Using interface ppp0&lt;br /&gt;Connect: ppp0 &lt;--&gt; /dev/rfcomm0&lt;br /&gt;PAP authentication succeeded&lt;br /&gt;Cannot determine ethernet address for proxy ARP&lt;br /&gt;local  IP address www.xxx.yyy.zzz&lt;br /&gt;remote IP address 10.6.6.6&lt;br /&gt;primary   DNS address 211.29.132.12&lt;br /&gt;secondary DNS address 61.88.88.88&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Obviously the exact output will vary, but usually if you see some IP and DNS addresses you have successfully connected. Otherwise you really should try to get this working before continuing to the bluetooth part. If you got as far as the CONNECT... "Serial connection established." your modem and chatscripts are probably working (assuming you APN in the chatscript is correct) and you may need to look at the ppp configuration, though you might just try a few times first - sometimes my connections take a few attempts to come up successfully.&lt;br /&gt;&lt;br /&gt;If you haven't got as far as the CONNECT you'll need to check your modem, coverage and chatscripts to try to locate the problem. Also double check that you have specified the correct device in the ppp configuration. If you are using a phone as your modem you might try rebooting it. If you get a NO CARRIER you are likely out of coverage or your modem couldn't connect to a nearby base station for some other reason (such as it being full), though the symptoms for that are unfortunately not always consistent - failing to connect to the modem at all can also be a symptom of that (and a host of other possible causes) for instance.&lt;br /&gt;&lt;br /&gt;There's just too many things that can go wrong by this point for me to cover here. Google is your friend. You may be able to find other people's chatscripts and ppp configuration for your modem and/or ISP that you could try.&lt;br /&gt;&lt;br /&gt;Now you've successfully got a connection with ppp + chatscripts it's time to add bluetooth into the mix. Serial connections over bluetooth are handled with the &lt;a href="http://en.wikipedia.org/wiki/Bluetooth_protocols#Radio_frequency_communication_.28RFCOMM.29"&gt;rfcomm&lt;/a&gt; protocol. They are controlled with the rfcomm program and once bound show up as /dev/rfcomm0 and similar. A device can have different serial services listening on different rfcomm "channels" (like IP ports), and there is no guarantee for which services appear on which rfcomm channel. My Nokia N95 reveals it's modem on rfcomm channel 2 and it's GPS on rfcomm channel 5 (via ExtGPS), while my N900 reveals it's modem on rfcomm channel 1 (In fact it is actually running &lt;code&gt;rfcomm -S -- listen -1 1 /usr/bin/pnatd {}&lt;/code&gt;). You can use an rfcomm scanner like rfcomm_scan from &lt;a href="http://mulliner.org/"&gt;Collin Mulliner&lt;/a&gt;'s &lt;a href="http://www.betaversion.net/btdsd/download/"&gt;BT Audit&lt;/a&gt; suite or do some trial and error to find the channel you need (there's only 30 channels and it's usually a low number).&lt;br /&gt;&lt;br /&gt;Add a section like the following to your /etc/bluetooth/rfcomm.conf:&lt;br /&gt;&lt;br /&gt;/etc/bluetooth/rfcomm.conf:&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;rfcomm0 {&lt;br /&gt;&amp;nbsp;bind yes;&lt;br /&gt;&amp;nbsp;device AA:BB:CC:DD:EE:FF;&lt;br /&gt;&amp;nbsp;channel 1;&lt;br /&gt;&amp;nbsp;comment "N900 Data";&lt;br /&gt;} &lt;/div&gt;&lt;br /&gt;Replacing the bluetooth address and channel number as appropriate. Then tell rfcomm to bind rfcomm0 to this device with &lt;code&gt;rfcomm bind 0&lt;/code&gt; (this will also happen automatically at boot).&lt;br /&gt;&lt;br /&gt;You should now see a new file /dev/rfcomm0 which we use to communicate with the modem over bluetooth. You should make a copy of the /etc/ppp/peers/&amp;lt;profile&amp;gt; you were using to connect over bluetooth and change the new profile to use /dev/rfcomm0.&lt;br /&gt;&lt;br /&gt;Now, we need to pair the devices together and tell the phone to trust the computer to connect whenever it wants. Pairing in bluez is still a bit hairy, particularly if you aren't using KDE or GNOME (like me) which provide their own bluez agents. In that case you don't have many options available to you. Bluez 3 used to have a hack in which you could specify a PIN to pair with under /var/lib/bluetooth/&amp;lt;device&amp;gt;/pincodes to allow pairing without an agent, however that does not work in bluez 4. Bluez provides an example console agent in the examples directory, but I have never managed to get it to work reliably with bluez 3 or bluez 4, so we now need a bluez agent, which lacking any decent console/curses agents means we need X (FAIL). This nonsense is now true even of HID devices which could previously be paired and activated with a simple hidd --search, which now doesn't trust them to re-pair to the computer so they stop working as soon as they start power saving (FAIL). Sigh, one day I'll get around to writing a decent ncurses bluez agent if no one beats me to it, but I digress.&lt;br /&gt;&lt;br /&gt;If you aren't using GNOME or KDE you might try using the GTK bluez agent &lt;a href="http://blueman-project.org/"&gt;blueman&lt;/a&gt; instead. You'll need to have it's system tray applet (blueman-applet) running for blueman-manager to work properly (FAIL - I don't have a system tray. At least it doesn't actually need to show the tray icon to work, though if you want that "trayer" or "stalonetray" can be used to provide a temporary system tray).&lt;br /&gt;&lt;br /&gt;Anyway, once you have some kind of bluez agent running, be it KDE's kbluetooth, gnome-bluetooth or blueman you can try to pair your phone. I say "try" because even with an agent, pairing with bluez is still hairy. In theory running the pon &amp;lt;profile&amp;gt; command will attempt to open the bluetooth link and initiate pairing, causing both phone and computer to ask for a PIN to authenticate each other - enter the same on each. If you're really lucky they might even remember that they have been paired so you don't have to do it again the next time. If you're unlucky and that didn't work you can try deleting any existing pairing from the computer and phone then using your bluetooth agent's interface to initiate a pairing. Rebooting and walking around your computer in circles while chanting "all hail bluez" over and over may also help - I wish you luck.&lt;br /&gt;&lt;br /&gt;The good news is that you only need the bluez agent while pairing - once you successfully pair and manage to get the 3G link up (and down and up a second time to make sure it remembered what to do) you usually don't have to touch bluez again and things get a lot easier. Unless one of the devices pairings get lost or confused... Or your bluetooth address changes, or ...&lt;br /&gt;&lt;br /&gt;Hopefully by this stage you have successfully managed to pair your computer and phone you should be able to use the pon and poff commands to bring the connection up and down as above. Congratulations, you're done! You can stop reading now. If you are getting a "host is down" error you have not successfully paired or the bluetooth link has otherwise failed. Another symptom of (non-pairing) bluetooth related problems that I've seen was getting no OK response after the initial ATZ. If you are pairing OK but only getting partway through the connection sequence you may have to go back to debugging your chatscripts and ppp options like I talked about above.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The (broadcom) bluetooth dongle I use on my EeePC introduces another complexity to the process - every time it is plugged in a couple of bits in it's bluetooth address change at random for no good reason (check with hciconfig), which as you can imagine makes it rather hard to maintain a pairing between it and anything else. I've also come across some (broadcom) bluetooth dongles with a bluetooth address of 00:00:00:00:00:00. Oddly enough, very few devices like pairing with them, and fewer still will re-pair with them automatically. If you have this problem &lt;strike&gt;tell broadcom they suck&lt;/strike&gt; &lt;strike&gt;buy a CSR dongle&lt;/strike&gt; you might try the dbaddr utility in the bluez source to force them to use a particular bluetooth address (if they support changing it through software, which of course is no guarantee). The script I use on my EeePC to connect shuts down my network manager and any running DHCP client, changes the bluetooth address on the dongle and opens the 3G connection:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;/etc/init.d/wicd stop&lt;br /&gt;killall dhclient&lt;br /&gt;killall dhclient3&lt;br /&gt;&lt;br /&gt;/usr/local/sbin/dbaddr AA:BB:CC:DD:EE:FF&lt;br /&gt;hciconfig hci0 reset&lt;br /&gt;&lt;br /&gt;pon optus-blue&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-3250770655063764702?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/3250770655063764702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=3250770655063764702' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/3250770655063764702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/3250770655063764702'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2010/11/3g-bluetooth-on-debian-linux.html' title='Bluetooth 3G Modems on Debian Linux: Chatscripts and rfcomm bluez'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-217007190082693072</id><published>2010-11-09T18:12:00.014+11:00</published><updated>2010-11-10T11:52:46.389+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wyrd'/><category scheme='http://www.blogger.com/atom/ns#' term='curses'/><category scheme='http://www.blogger.com/atom/ns#' term='lightweight software'/><category scheme='http://www.blogger.com/atom/ns#' term='remind'/><category scheme='http://www.blogger.com/atom/ns#' term='console'/><title type='text'>Remind+wyrd events in other timezones &amp; other tricks</title><content type='html'>When I bought my EeePC I challenged myself to wherever possible find lightweight (console/curses if possible) and keyboard friendly alternatives to the software I had been using. What I discovered was that I quickly began to prefer that way of interacting with the computer to my previous KDE centric setup, so now almost all of my desktop and laptops have the same setup.&lt;br /&gt;&lt;br /&gt;One application which I sought to replace was a calendar. I discovered a lightweight console calendar program called "&lt;a href="http://www.roaringpenguin.com/products/remind"&gt;remind&lt;/a&gt;" with a ncurses frontend known as "&lt;a href="http://pessimization.com/software/wyrd/"&gt;wyrd&lt;/a&gt;":&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_xxiLBp-WqaI/TNnmnMP9RcI/AAAAAAAAA50/XGBqfh2TEw8/s1600/wyrd.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 230px;" src="http://1.bp.blogspot.com/_xxiLBp-WqaI/TNnmnMP9RcI/AAAAAAAAA50/XGBqfh2TEw8/s320/wyrd.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5537710777806177730" /&gt;&lt;/a&gt;&lt;br /&gt;A basic event in file processed by remind might look something like this:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;REM Nov 09 2010 AT 18:00 MSG Write a blog entry&lt;/div&gt;&lt;br /&gt;That should be reasonably self explanatory. You can also specify some quite advanced recurring events in fairly natural ways:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;REM Mon Tue Wed Thu Fri AT 9:00 MSG Go to work&lt;br /&gt;&lt;br /&gt;REM Dec 25 MSG Christmas!&lt;/div&gt;&lt;br /&gt;Or to specify the fourth Thursday of every month (Technically the next Thursday on or after the 22nd of any month):&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;REM Thursday 22 AT 19:00 DURATION 3:00 MSG Canberra Linux Users Group Meeting&lt;/div&gt;&lt;br /&gt;There are also syntaxes for advanced reminders (+) and repetition (*) - but this isn't a full remind tutorial, read the man pages or search google (tip: add wyrd in your search to narrow the results down).&lt;br /&gt;&lt;br /&gt;You may have noticed that I never specified a timezone in those examples. Unfortunately remind was written a long time ago on a hermit like platform that knew nothing of how time worked elsewhere in the world (DOS) and as a result doesn't have any support for events in other timezones built in. Just defining the event in local time may not be suitable depending on what both timezones do with daylight savings.&lt;br /&gt;&lt;br /&gt;But there is another thing you should know about remind - it's not just a calendar domain specific language (though as you can see from those examples it certainly includes plenty of DSL constructs), it is in fact a calendar oriented programming language and we can use that to work around this limitation.&lt;br /&gt;&lt;br /&gt;Seriously, let me say that one more time. My calendar is specified in a programming language. That is awesome. I can specify events to only occur once every blue moon---for real. I could shell out and have reminders only occur if my IP address indicates I'm at the office. Seriously, it could remind me to catch the bus only if I haven't already done so (note to self: make it do that, that would be cool).&lt;br /&gt;&lt;br /&gt;Specifying a one off event in another timezone isn't in itself terribly difficult:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;REM [trigger(tzconvert('2010-09-11@18:20', "US/Pacific"))] +30 DURATION 1:00 MSG Look up&lt;/div&gt;&lt;br /&gt;The problem with this method is that there is no way to specify advanced recursion. tzconvert takes a datetime and returns a datetime. There's no way to say "every monday in that timezone" or "every fortnight commencing on x in that timezone" or "on the last Sunday of October every year in that timezone", which remind has no trouble doing for local events.&lt;br /&gt;&lt;br /&gt;Remind's programing language capability is unfortunately somewhat limited - mixing the DSL grammar and functions together is a bit kludgey. It's easy to cast the output of a function to a string and use it in the grammar (as above), but going the other way is a little more difficult. For instance, variables are set using the SET command, but if there is any way to set a variable from a function it has escaped me. Functional programing techniques may be usable to work around this, but I get the impression that remind's author didn't exactly design it with that in mind - for one thing recursive calls are explicitly disallowed.&lt;br /&gt;&lt;br /&gt;But, we can INCLUDE another file, which will then be executed by remind (even if it's included multiple times) and will be able to use the DSL commands and have access to any variables already defined, so we can use that mechanism to create a function that will do what we want. After a bit of playing around today I finally settled on this:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;# USAGE:&lt;br /&gt;# SET these variables then INCLUDE this script:&lt;br /&gt;#&lt;br /&gt;# tz_src      - the timezone the event is in&lt;br /&gt;# tz_src_date - the date component of the event as would be passed to REM,&lt;br /&gt;#               including any repetition and reminders&lt;br /&gt;# tz_src_time - the time component of the event in hh:mm form&lt;br /&gt;# tz_src_trem - any time repetition, reminders, DURATION, etc. as passed into&lt;br /&gt;#               REM (if not desired, set to "")&lt;br /&gt;# tz_msg      - The message to print.&lt;br /&gt;#&lt;br /&gt;# Afterwards tz_dst_time will be set for *today's* occurrence of the event in&lt;br /&gt;# localtime, or unset if no event occurs.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# Find next date in src timezone that occurs today() in localtime:&lt;br /&gt;REM [tz_src_date] SCANFROM [trigger(today()-2)] UNTIL [trigger(today()+2)] SATISFY \&lt;br /&gt;&amp;nbsp;coerce("DATE", tzconvert(datetime(trigdate(), tz_src_time), tz_src)) == today()&lt;br /&gt;IF trigvalid()&lt;br /&gt;&amp;nbsp;# We know local date is today from SATISFY, convert time to local:&lt;br /&gt;&amp;nbsp;SET __dst_dt tzconvert(datetime(trigdate(), tz_src_time), tz_src)&lt;br /&gt;&amp;nbsp;SET tz_dst_time coerce("TIME", __dst_dt)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;REM [trigger(today())] AT [tz_dst_time] [tz_src_trem] MSG [tz_msg]&lt;br /&gt;ELSE&lt;br /&gt;&amp;nbsp;UNSET tz_dst_time&lt;br /&gt;ENDIF&lt;/div&gt;&lt;br /&gt;That searches for a date the event occurs on the other timezone that satisfies the condition that the event occurs today() in the local timezone (today() is not necessarily the actual system date, it could be a specific date being looked up or the date of a calendar entry being computed). The source date can be specified with any of the usual remind recurrence constructs, just like an ordinary event. I've noticed some parse errors using this with a one off event on days the event does not occur - I think it might be a bug in remind for non-recurring events with a SATISFY clause that returns 0, but if someone can see something I've done wrong there I'd welcome the feedback. Anyway, for one off events you can just use the more concise syntax above, I've tried a few different forms of recurring events and haven't yet seen it on any of them.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The title of this post says "and other tricks", so I should probably show you some. I have a weekly meeting who's time varies depending on daylight savings (to better accommodate people elsewhere in the world who call in), so I've come up with this trick checking if every Friday is in (local) daylight savings time to accommodate this (try doing this in iCal!):&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;REM Fri SATISFY 1&lt;br /&gt;IF isdst(trigdate())&lt;br /&gt;&amp;nbsp;REM [trigger(trigdate())] +2 SKIP AT 09:30 DURATION 0:30 Some meeting&lt;br /&gt;ELSE&lt;br /&gt;&amp;nbsp;REM [trigger(trigdate())] +2 SKIP AT 08:30 DURATION 0:30 Some meeting&lt;br /&gt;ENDIF&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally, for anyone in Canberra, here is a list of public holidays you can import into your remind file. These should take care of any of the floating public holidays as well, and you can use the SKIP keyword to have events automatically be cancelled if it falls on a public holiday, or the BEFORE or AFTER keywords to move it to another day. The only thing these can't predict is any meddling from the Government:&lt;br /&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;# Public Holidays&lt;br /&gt;FSET next_monday(x) x + (7-wkdaynum(x-1))&lt;br /&gt;FSET next_monday_inc(x) x + (7-wkdaynum(x-1))%7&lt;br /&gt;FSET weekend(x) wkdaynum(x) == 0 || wkdaynum(x) == 6&lt;br /&gt;&lt;br /&gt;OMIT Jan 1 SPECIAL COLOR 255 255 255 New Year's Day&lt;br /&gt;REM Jan 1 SCANFROM [trigger(today()-7)] SATISFY weekend(trigdate())&lt;br /&gt;OMIT [trigger(next_monday_inc(trigdate()))] SPECIAL COLOR 255 255 255 New Year's Day Holiday&lt;br /&gt;OMIT Jan 26 SPECIAL COLOR 255 255 255 Australia Day&lt;br /&gt;REM Jan 26 SCANFROM [trigger(today()-7)] SATISFY weekend(trigdate())&lt;br /&gt;OMIT [trigger(next_monday_inc(trigdate()))] SPECIAL COLOR 255 255 255 Australia Day Holiday&lt;br /&gt;REM Mon Mar 8 SCANFROM [trigger(today()-7)] SATISFY 1&lt;br /&gt;OMIT [trigger(trigdate())] SPECIAL COLOR 255 255 255 Canberra Day&lt;br /&gt;SET easter EASTERDATE(YEAR(TODAY()))&lt;br /&gt;OMIT [TRIGGER(easter-2)] SPECIAL COLOR 255 255 255 Good Friday&lt;br /&gt;REM [TRIGGER(easter-1)] SPECIAL COLOR 255 255 255 Easter Saturday&lt;br /&gt;REM [TRIGGER(easter)] SPECIAL COLOR 255 255 255 Easter Sunday&lt;br /&gt;OMIT [TRIGGER(easter+1)] SPECIAL COLOR 255 255 255 Easter Monday&lt;br /&gt;OMIT Apr 25 SPECIAL COLOR 255 255 255 Anzac Day&lt;br /&gt;REM Apr 25 SCANFROM [trigger(today()-7)] SATISFY weekend(trigdate())&lt;br /&gt;OMIT [trigger(next_monday_inc(trigdate()))] SPECIAL COLOR 255 255 255 Anzac Day Holiday&lt;br /&gt;REM Mon Jun 8 SCANFROM [trigger(today()-7)] SATISFY 1&lt;br /&gt;OMIT [trigger(trigdate())] SPECIAL COLOR 255 255 255 Queen's Birthday&lt;br /&gt;REM Mon Oct SCANFROM [trigger(today()-7)] SATISFY 1&lt;br /&gt;OMIT [trigger(trigdate())] SPECIAL COLOR 255 255 255 Labour Day&lt;br /&gt;OMIT 25 Dec SPECIAL COLOR 255 255 255 Christmas&lt;br /&gt;OMIT 26 Dec SPECIAL COLOR 255 255 255 Boxing Day&lt;br /&gt;REM 25 Dec SCANFROM [trigger(today()-7)] SATISFY weekend(trigdate())&lt;br /&gt;IF trigvalid()&lt;br /&gt;&amp;nbsp;OMIT [trigger(next_monday_inc(trigdate())  )] SPECIAL COLOR 255 255 255 Christmas Holiday&lt;br /&gt;&amp;nbsp;OMIT [trigger(next_monday_inc(trigdate())+1)] SPECIAL COLOR 255 255 255 Boxing Day Holiday&lt;br /&gt;ENDIF&lt;br /&gt;REM 26 Dec SCANFROM [trigger(today()-7)] SATISFY wkdaynum(trigdate()) == 6&lt;br /&gt;OMIT [trigger(next_monday_inc(trigdate()))] SPECIAL COLOR 255 255 255 Boxing Day Holiday&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-217007190082693072?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/217007190082693072/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=217007190082693072' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/217007190082693072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/217007190082693072'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2010/11/remindwyrd-events-in-other-timezones.html' title='Remind+wyrd events in other timezones &amp; other tricks'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_xxiLBp-WqaI/TNnmnMP9RcI/AAAAAAAAA50/XGBqfh2TEw8/s72-c/wyrd.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-3090648873199435691</id><published>2010-07-14T11:43:00.015+10:00</published><updated>2010-07-14T14:15:38.226+10:00</updated><title type='text'>Fun with Foreign Debian Bootstrapping</title><content type='html'>Yesterday I found myself booting Linux on a device with no attached permanent storage - all I had was several gigabytes of RAM and the ability to netboot it through TFTP. I had been using a very minimal root filesystem inside the kernel image, but I began to wonder if it would be possible to have an entire Debian installation in the ramdisk instead - the box certainly had enough RAM to fit a minimal installation.&lt;br /&gt;&lt;br /&gt;Ordinarily one could just use debootstrap to set up a minimal Debian installation inside a directory and make a ramdisk from that, but this was further complicated by the fact that this was a PowerPC device. Debootstrap does have a --foreign option to perform the first part of the installation on a different architecture, but the --second-stage still needs to be run as root on native hardware and assumes that it is being run from within an existing Linux installation with a bunch of standard tools available to it.&lt;br /&gt;&lt;br /&gt;The only machines I had root on were all x86 (other than the device in question, but the ramdisk I had been using had some limitations that would have complicated matters) and some other test boxes (which I would have had to wait to requisition). So instead I decided to do a partial debootstrap on my local x86 box and complete the installation using only my local x86 box and that partial image on the PowerPC box.&lt;br /&gt;&lt;br /&gt;If you are following this article as a guide I should note that it assumes you are able to compile and boot your own kernel and have a decent familiarity with Linux in general.&lt;br /&gt;&lt;br /&gt;So first, begin the debootstrap process, but use --foreign to only perform the first part of the bootstrapping process (NOTE: almost everything here needs to be run as root, signified by the # at the start of each line):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# mkdir deb-ppc&lt;br /&gt;# debootstrap --arch=powerpc --foreign squeeze deb-ppc http://&amp;lt;mirror&amp;gt;/debian&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;After this command completes you have an incomplete Debian installation in deb-ppc - some basic tools are installed (but not configured) and some packages have been downloaded but not installed. I did not select any additional packages into the initial root disk at this stage, though had I been thinking ahead it would have been useful to also include openssh-server and rsync, but that was not a major setback for me. You might want to include them, and if you don't like vi or nano you might also want to install your console editor of choice. At the moment the root disk is not bootable, so let's fix that:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# ln -s /bin/bash deb-ppc/init&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This still won't boot into a full Debian installation - after the kernel finishes it's initialisation and tries to spawn the init userspace process to take over booting, it will instead spawn an interactive shell which can be used to complete the bootstrapping process. Since I'm bundling this inside the kernel image as an initramfs as opposed to an initrd loaded separately, I link an interactive shell into /init. If you were doing this with an initrd you would instead link it to /initrd.&lt;br /&gt;&lt;br /&gt;Before we can make a ramdisk image from that directory we need to save this script as mkinitramfs.sh from Documentation/filesystems/ramfs-rootfs-initramfs.txt in the kernel sources:&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;# Copyright 2006 Rob Landley &amp;lt;rob@landley.net&amp;gt; and TimeSys Corporation.&lt;br /&gt;# Licensed under GPL version 2&lt;br /&gt;&lt;br /&gt;if [ $# -ne 2 ]&lt;br /&gt;then&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "usage: mkinitramfs directory imagename.cpio.gz"&lt;br /&gt;&amp;nbsp;&amp;nbsp;exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;br /&gt;if [ -d "$1" ]&lt;br /&gt;then&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "creating $2 from $1"&lt;br /&gt;&amp;nbsp;&amp;nbsp;(cd "$1"; find . | cpio -o -H newc | gzip) &amp;gt; "$2"&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "First argument must be a directory"&lt;br /&gt;&amp;nbsp;&amp;nbsp;exit 1&lt;br /&gt;fi&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;NOTE: when using this script be sure you are calling this script and not a separate program also named mkinitramfs from your distribution.&lt;br /&gt;&lt;br /&gt;Let's bundle the root disk into a cpio image:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# ./mkinitramfs.sh deb-ppc ramdisk.cpio.gz&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now you need to compile the kernel and netboot it - I'll leave the details of how to actually do that out of this article - there's plenty of good resources for that around already and the netboot procedure may vary depending on your setup (if you are netbooting at all). If you are doing this with an initramfs like I am you will need to point CONFIG_INITRAMFS_SOURCE to that image - once you have configured the kernel edit the .config file and remove the 'CONFIG_INITRAMFS_SOURCE=""' line. Then run make oldconfig which will ask you to set that option as well as some UID and GUI mapping (which you can leave as 0 since the image already should already have the correct ownership). After that you can run make and wait for the kernel to build. I'll also assume you know which zImage is the correct one to boot on your hardware.&lt;br /&gt;&lt;br /&gt;Once you have successfully booted the kernel you should find yourself at a bash prompt. You should be aware that the environment is extremely limited at this point - for one thing there is no job control so don't try to spawn a process that you need to ctrl+c out of (I made the mistake of pinging a host to check that the network was up).&lt;br /&gt;&lt;br /&gt;The debootstrap --second-stage did not work for me, so instead I completed the installation manually:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# export PATH=/usr/sbin:/usr/bin:/sbin:/bin&lt;br /&gt;# dpkg --force-depends --install /var/cache/apt/archives/*.deb&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;A few things may complain during that and you may need to tell apt to fix up any problems:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# apt-get -f install&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now you will have a much more complete userspace - including vi. There's a few more things we need to do to get the system usable. Firstly, let's edit /etc/fstab and add an entry for /proc since so much userspace depends on it:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# vi /etc/fstab&lt;/code&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;proc /proc proc defaults 0 0&lt;/div&gt;&lt;br /&gt;&lt;code&gt;# mount /proc&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now we should probably get networking set up (I'm assuming you are using DHCP and your interface is eth0):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# vi /etc/network/interfaces&lt;/code&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;auto eth0&lt;br /&gt;iface eth0 inet dhcp&lt;/div&gt;&lt;br /&gt;&lt;code&gt;# vi /etc/hostname&lt;br /&gt;# ifup lo&lt;br /&gt;# ifup eth0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Do not make the mistake I made of checking if the interface is up by pinging something. You can run ifconfig to make sure your IP address looks right.&lt;br /&gt;&lt;br /&gt;And set up apt (note /debian postfix in sources.list which isn't in the template provided by debootstrap - I spent around 10 minutes contemplating the 403 I was getting before I noticed that):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# vi /etc/apt/sources.list&lt;/code&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;deb http://&amp;lt;mirror&amp;gt;/debian squeeze main&lt;/div&gt;&lt;br /&gt;&lt;code&gt;# vi /etc/apt/apt.conf.d/10local&lt;/code&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;APT::Install-Recommends "0";&lt;br /&gt;APT::Install-Suggests "0";&lt;/div&gt;&lt;br /&gt;&lt;code&gt;# apt-get update&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Now you can install any additional packages you may need (if you didn't do this in the initial debootstrap), so let's install what we need to be able to copy our changes out of the machine (interactive SSH won't work just yet, but file copying will):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# apt-get install openssh-server rsync&lt;br /&gt;# passwd&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Note that if you are interacting with the machine via serial it may be a bit awkward to interact with the configuration for some packages (such as localepurge) so just install the bare essentials for the moment. After installing some packages it's probably a good idea to clean the apt cache since we are likely pretty tight on RAM:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# apt-get clean&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Speaking of serial, if you are logging into the machine via serial (as I was) you may want to spawn a console on the serial line:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# vi /etc/inittab&lt;/code&gt;&lt;br /&gt;&lt;div class="scriptexcerpt"&gt;T0:2345:respawn:/sbin/getty -L ttyS0 57600 vt100&lt;/div&gt;&lt;br /&gt;Back on the x86 box we can now copy all those changes back into the ramdisk and make it actually boot Debian:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# rsync -avx &amp;lt;host&amp;gt;:/ deb-ppc&lt;/code&gt; (NOTE: the x is important, otherwise /proc will be copied as well)&lt;code&gt;&lt;br /&gt;# rm deb-ppc/init&lt;br /&gt;# ln -s /sbin/init deb-ppc/init&lt;br /&gt;# ./mkinitramfs.sh deb-ppc ramdisk.cpio.gz&lt;/code&gt; (again, the mkinitramfs from the kernel doc, not a distro)&lt;br /&gt;&lt;br /&gt;Again, compile the kernel and boot it. You will need to do this last part every time you make a change in the ramdisk that you want to make persistent.&lt;br /&gt;&lt;br /&gt;Once booted you will be able to interactively SSH into it and will find you now have a complete Debian installation you can do whatever you like with within the constraints of the available RAM. With full SSH, job control and proper TTY management you can now perform some changes that would have been a little tricky earlier, such as reconfiguring any packages you couldn't configure properly earlier (tzdata for me) and stripping out unneeded locales (this messed up a little for me since locales wasn't installed before localepurge. I haven't tested this and it's probably longer than it needs to be, but I think it will work):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# apt-get install locales&lt;br /&gt;# locale-gen en_AU-UTF-8&lt;br /&gt;# dpkg-reconfigure locales&lt;br /&gt;# apt-get install localepurge&lt;br /&gt;# localepurge&lt;br /&gt;# apt-get clean&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You might also want to strip out some unneeded packages, for example with:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# apt-get purge logrotate mac-fdisk rsyslog yaboot info install-info man-db manpages nano&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Remember to follow the above instructions to make those changes persistent if you are happy with them. Later I'll probably play around with docpurge (from maemo) and look at other ways of reducing the size of the image (disabling logging is probably a good place to start).&lt;br /&gt;&lt;br /&gt;If you're after some further reading on booting the kernel with initial ramdisks, check out Documentation/early-userspace/README and Documentation/filesystems/ramfs-rootfs-initramfs.txt in the kernel source.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-3090648873199435691?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/3090648873199435691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=3090648873199435691' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/3090648873199435691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/3090648873199435691'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2010/07/fun-with-foreign-debian-bootstrapping.html' title='Fun with Foreign Debian Bootstrapping'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-4832936799599275724</id><published>2009-02-04T02:08:00.017+11:00</published><updated>2009-02-11T14:57:03.278+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='rip'/><category scheme='http://www.blogger.com/atom/ns#' term='encode'/><category scheme='http://www.blogger.com/atom/ns#' term='DVD'/><title type='text'>Of Rips and Magical Musical DVDs</title><content type='html'>If there is one thing that irks me almost as much as mistagged mp3s, it's poorly encoded videos. Why is it that AVI is still so popular when Matroska containers are superior in every way? Why is MP3 still being used for the audio when any device that can play the video certainly will have enough grunt to play OGG Vorbis (codec support notwithstanding)? God forbid something encoded in ... [gasp] MPEG2 - H.264 people, H.264 (patent law notwithstanding)! Even mplayer on my Eee 701SD (running Debian Lenny) can handle all that without missing a frame!&lt;br /&gt;This rant comes about as a result of me trying to buy a certain music DVD since about 5 months ago. I've had it on backorder for months, I've tried JB HiFi and some other local shops and not really trusting eBay for these kind of purchases I eventually decided to just use my left over internet quota for the month and download the thing.&lt;br /&gt;On a side note, record companies - if you want to make money, why do you make it so difficult to buy things from you? "On backorder, you will receive an email when the item is back in stock", "Unfortunately xxxxx are sold out. Would you like to...", "still out of stock, there's some sorta licensing issue which is taking forever to resolve." - these are just some of the quotes I've heard as a consumer over the last year. Then there was that incident with those CDs stuck in US customs for those two months without anyone knowing where they were and costing more money as replacements were sent, then more money as they were returned after customs finally released them (So, the &lt;span style="font-style:italic;"&gt;only&lt;/span&gt; thing that Free Trade Agreement did was stuff up our legal system then?)... Yeah, I'm a little off buying CDs over the Internet by now, but of course the alternative of buying in a store is quite difficult given that the bands practically have to have achieved worldwide fame to have a snowballs chance in hell of actually being in stock (ok, I am exaggerating that a &lt;span style="font-style:italic;"&gt;little&lt;/span&gt;).&lt;br /&gt;Now, since I live in Australia and have limits on how much I can download in a month, I strongly preference not downloading any files larger than ~700mb - and why should I? &lt;span style="font-style:italic;"&gt;All&lt;/span&gt; the music DVDs I've ripped myself sound (and to a lesser extent, look) supurb at that size, surely it couldn't be &lt;span style="font-style:italic;"&gt;that much&lt;/span&gt; worse than mine, right? wrong.&lt;br /&gt;Now, ask yourself this - if you were ripping a &lt;span style="font-weight:bold;"&gt;music&lt;/span&gt; DVD, you would make sure that you set a decent bitrate on the audio track wouldn't you? I certainly would - at least 196kbps, perhaps even as high as 256kbps for those of you with ultra sensitive hearing. Well, let's just say that this particular download was a tad less than that and not go into the details too much. I won't even mention just how excruciatingly painful it was to try to listen to.&lt;br /&gt;Now, it's not &lt;span style="font-style:italic;"&gt;that&lt;/span&gt; hard to do a decent encoding, but it is important to have a reasonable understanding of what's actually involved in the process. It is important to know your source media - is it interlaced? Does it need to be cropped? Is there a subtitle track that you should rip as well? Is there just the one audio track; which one is the right one? Does the aspect ratio need to be fixed?&lt;br /&gt;Many of those answers will vary from situation to situation and from DVD to DVD, so there isn't a one size perfectly fits all solution. Of course there are graphical tools to do this for you and some of them are no doubt pretty good, though they do not remove the need to have at least a basic understanding of what is actually happening if you want good results. I'm not going to cover any graphical tool though, I learned how to do this on the command line years ago and have stuck with that, merely expanding my knowledge when new codecs and options came out. This shell script (which I know needs work - patches welcome) is my current best practice for ripping DVDs for my personal use.&lt;br /&gt;It does make a few assumptions - that the DVD is interlaced and that you want it de-interlaced (because you will be playing it on a computer monitor as opposed to a TV), that there is no subtitle track that you want to extract (if you do, add "-sid n" without the quotes and where n is the subtitle track you want, usually 0, to the end of each line starting with mencoder, though also note that there are "better" ways to do this), that this is a music DVD and not a movie (I recommend lowering the audiobitrate to 128 if it is a movie), that you only want the one default audio track (if not, specify it with mplayer's -aid option and find the appropriate ID with mplayer's -identify option), and that it doesn't need to be cropped (too error prone to automate - look at the -vf cropdetect and -vf crop options in mplayer if you need it).&lt;br /&gt;You will need a few dependencies: You need the Matroska tools, Vorbis tools and x264 libraries. You will also need to make sure that you have mplayer AND mencoder built with x264 support and able to play your DVD. This probably means you will need to compile it from source, which is outside the scope of this article on account of me needing to sleep soon. Also note that depending on your location you may find that you may have legal issues regarding the patents surrounding the H.264 codec. Not to mention that you may live in a country where you cannot legally format shift or where breaking Technological Protection Measures (such as encrypted DVDs) is plain illegal - I leave it to the reader to verify that they can legally do these things or go away and complain loudly to their Government if they can't, just don't go and drag me into it all, I'm just not in the mood.&lt;br /&gt;&lt;br /&gt;So, if you've kept reading instead of going to complain to someone in authority than I guess that you are bearing the responsibility and want to know how to actually use this.&lt;br /&gt;Save it as something like rip.sh and use it like&lt;br /&gt;&lt;code&gt;./rip.sh filename track&lt;/code&gt;&lt;br /&gt;where filename is the base filename you will end up with and track is the DVD track number to extract - if you leave the track blank then it will rip whatever would have played with mplayer dvd://&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;targetfilesize=$[ 700 * 1024 * 1024]&lt;br /&gt;audiobitrate=256&lt;br /&gt;&lt;br /&gt;file=$1&lt;br /&gt;dvddump="dvd://$2"&lt;br /&gt;rawaudio="$file-rawaudio.wav"&lt;br /&gt;compressedaudio="$file-compressedaudio.ogg"&lt;br /&gt;pass1out="$file-pass1.avi"&lt;br /&gt;pass2out="$file-pass2.avi"&lt;br /&gt;finalcut="$file.mkv"&lt;br /&gt;&lt;br /&gt;#extract audio&lt;br /&gt;mplayer "$dvddump" -vc null -vo null -ao pcm:file="$rawaudio":fast &amp;lt;/dev/null&lt;br /&gt;&lt;br /&gt;#compress audio&lt;br /&gt;oggenc "$rawaudio" -b $audiobitrate -o "$compressedaudio"&lt;br /&gt;rm "$rawaudio"&lt;br /&gt;&lt;br /&gt;#Sometimes the length of the video is misreported, so use the length of the audio track instead since it was just encoded and therefore more likely to be accurate:&lt;br /&gt;#NOTE: There is a rare situation where the audio track is really not the same length as the video track - if that is the case you will need to alter this section appropriately&lt;br /&gt;videolength=`echo \`mplayer -identify "$dvddump" -vo null -ao null -frames 0 2&gt;/dev/null |awk -F= '/ID_LENGTH/ {print $2}'\` / 1 + 1 | bc`&lt;br /&gt;audiolength=`echo \`mplayer -identify "$compressedaudio" -vo null -ao null -frames 0 2&gt;/dev/null |awk -F= '/ID_LENGTH/ {print $2}'\` / 1 + 1 | bc`&lt;br /&gt;echo videolength: $videolength&lt;br /&gt;echo audiolength: $audiolength&lt;br /&gt;length=$audiolength&lt;br /&gt;echo length: $length&lt;br /&gt;&lt;br /&gt;#calculate video bitrate&lt;br /&gt;videotargetsize=$[ $targetfilesize - `du -b "$compressedaudio" | awk '{print $1}'` ]&lt;br /&gt;videobitrate=`echo "$videotargetsize * 8 / $length / 1000" | bc`&lt;br /&gt;echo video bitrate: $videobitrate&lt;br /&gt;&lt;br /&gt;#video pass 1&lt;br /&gt;rm divx2pass.log&lt;br /&gt;mencoder "$dvddump" -vf kerndeint,scale -ovc x264 -oac lavc -lavcopts abitrate=64 -x264encopts bitrate=$videobitrate:threads=auto:pass=1:turbo=1 -o "$pass1out"&lt;br /&gt;&lt;br /&gt;#video pass 2&lt;br /&gt;mencoder "$dvddump" -vf kerndeint,scale -ovc x264 -oac lavc -lavcopts abitrate=64 -x264encopts bitrate=$videobitrate:threads=auto:pass=2 -o "$pass2out"&lt;br /&gt;&lt;br /&gt;#compile&lt;br /&gt;mkvmerge -o "$finalcut" -A "$pass2out" "$compressedaudio"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;If anyone does want to submit patches for this, the main features I've been intending to implement are a more flexible command line usage, &lt;span style="text-decoration:line-through;"&gt;a better way to extract the audio (that doesn't have the same risk of pressing left/right yet still produces perfectly synced audio),&lt;/span&gt; get all the subtitle tracks embedded into the mkv file and convert the DVD chapters into a format that can be embedded into the mkv.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Update:&lt;/span&gt; I can't believe that I didn't think of this earlier - simply redirecting stdin from /dev/null solves the keyboard input issue when dumping the audio with mplayer.&lt;br /&gt;&lt;br /&gt;As for me, well, I guess I'll just eBay it after all hoping it's not a bootleg and go to sleep.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Update:&lt;/span&gt; I'm just going to go over an issue I mentioned in this post - how to deal with media that needs it's aspect ratio corrected. The symptoms of this are generally that while you are watching a video everything just feels slightly distorted - in many cases this will be your imagination playing tricks on you, but if you are fairly certain that it isn't, read on. I'm going to use the music video for "Stick Together" which was on the bonus DVD from the album "Rock Music" by "The Superjesus" as an example. Everytime I watched this it looked distorted, so today I paused it at this frame and used the GIMP to take a screenshot:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_xxiLBp-WqaI/SZI7uni_CDI/AAAAAAAAASw/s121dW4pbsM/s1600-h/aspect.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 252px;" src="http://2.bp.blogspot.com/_xxiLBp-WqaI/SZI7uni_CDI/AAAAAAAAASw/s121dW4pbsM/s320/aspect.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5301365383444236338" /&gt;&lt;/a&gt;&lt;br /&gt;Now, the reason I took the screenshot here is that there is a fairly large (easier to measure) drum (circular object) reasonably close to the centre of the screen (not too heavily distorted by the camera's lens) and facing the camera almost perfectly straight on (avoids perspective distortion). Using the measure tool in the GIMP I find that the drum is approximately 170 pixels wide but about 184 pixels high - clearly the aspect ratio is way out and in this case it wasn't just my imagination (phew).&lt;br /&gt;You will also notice the large black bars above and below the image - these need to be cropped. And here's another reason I chose this video - take a look at this screenshot:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_xxiLBp-WqaI/SZI92sOy2yI/AAAAAAAAAS4/VRoukFip1f0/s1600-h/sticktogether.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 252px;" src="http://1.bp.blogspot.com/_xxiLBp-WqaI/SZI92sOy2yI/AAAAAAAAAS4/VRoukFip1f0/s320/sticktogether.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5301367721163938594" /&gt;&lt;/a&gt;&lt;br /&gt;Notice where the black bars are and how large they are this time? This is exactly why it's important to know your source media. If I simply run mplayer -vf cropdetect over this it's going to change it's mind 3 times during playback - within the first second as that fades in it changes from crop=560:496:80:38 to crop=576:496:72:38. Then when the widescreen video starts it decides on crop=688:496:18:38. None of these are correct - the first two would cut off the left and right of the video and the last one will still leave small black bars at the top and bottom. This is one of the reasons why I mentioned that automating cropping is just too error prone. So, what's the solution? Tell mplayer to start playback after the intro artwork is gone of course! If, hypothetically, you wanted to modify my above script to attempt to detect how to crop it, I would suggest adding a line something like this (and using the crop variable in the appropriate place in the video filter chain - I cover this later):&lt;br /&gt;&lt;code&gt;&lt;br /&gt;crop=`mplayer "$dvddump" -vf cropdetect -vo null -ao null -fps 1000 -ss 60 -endpos 5|grep CROP|tail -n 1|sed 's/^.*(-vf //'|sed 's/).*$//'`&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This starts the playback one minute in, quickly runs the video for 5 seconds and gives me a crop parameter of crop=688:432:18:72 - checking this with mplayer -vf crop=688:432:18:72 video.vob looks about right so it's time to move back to the problem of the aspect ratio (you could also crop the video after changing the aspect ratio - just remember to keep your video filters, &lt;span style="font-style:italic;"&gt;including cropdetect&lt;/span&gt;, in the same order that you are working with).&lt;br /&gt;So, let's see - I have a width of 688 pixels with the drum 170 pixels wide, and a height of 432 pixels with the drum 184 pixels high. Personally, I want to keep the width as is and scale the height to adjust the aspect. So, the currect aspect ratio is about 1.6 (688/432) and I probably want about 1.7 (432/184*170) - plugging this value into mplayer still doesn't look quite right, but I know that this is close to the standard 16:9 (1.&lt;span style="text-decoration: overline;"&gt;7&lt;/span&gt;) aspect and a little more eyeballing tells me that's probably a bit closer. What I'm trying to get at here is that despite your best measuring efforts, it's quite difficult to get this exact and you eventually will need to just eyeball it and see if it looks good enough.&lt;br /&gt;So, all together now the filter chain will look something like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;mplayer -vf kerndeint,crop=688:432:18:72,dsize=16:9,scale=-1:-2&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Breaking that down:&lt;br /&gt;1. Deinterlace the video before any other processing (the absolute last thing you would ever want to do is scale first and then try to deinterlace, unless of course you like to make your eyes bleed).&lt;br /&gt;2. Crop the black bars away (again, if you altered the aspect ratio before cropping the video this would be at the end of the chain).&lt;br /&gt;3. dsize is used to change the &lt;span style="font-style:italic;"&gt;intended&lt;/span&gt; aspect ratio used by all the following video filters (but doesn't change the aspect ratio itself).&lt;br /&gt;4. Actually change the aspect ratio: a width of -1 tells it to use the original width (688 pixels), and a height of -2 tells it to scale the height using the other dimension and the intended aspect ratio.&lt;br /&gt;Ok, I have lied a little - my source media is actually not interlaced in this case, so I did not use the kerndeint filter, but I wanted to drive home the point about the importance of getting the video filter order correct - I've seen it done wrong. My eyes started to bleed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-4832936799599275724?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/4832936799599275724/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=4832936799599275724' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/4832936799599275724'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/4832936799599275724'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2009/02/of-rips-and-magical-musical-dvds.html' title='Of Rips and Magical Musical DVDs'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_xxiLBp-WqaI/SZI7uni_CDI/AAAAAAAAASw/s121dW4pbsM/s72-c/aspect.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-2908030909511429162</id><published>2009-01-16T04:05:00.019+11:00</published><updated>2009-02-05T14:01:51.408+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='eyeD3'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><category scheme='http://www.blogger.com/atom/ns#' term='Amarok'/><category scheme='http://www.blogger.com/atom/ns#' term='id3'/><title type='text'>New Years Resolution: Massive Music Tag Cleanup</title><content type='html'>Once again I find that months have passed since my last entry. The blog will be a year old in little over a week and I will once again be attending linux.conf.au, this time down in Hobart. I've got myself some new gadgets - in particular a Eee PC 701SD which only cost $327 AU from JB Hifi so I have a decent computer for the conference. I'll be posting a lot more about it in the coming weeks, but am just mentioning it now as it is linked to today's post. Allow me to explain - while I've kept the default Xandros install on the internal 8 gig solid state drive I've installed Debian on a 2 gig SD card. 2 gig. yep. small, isn't it? and encrypted, but that's for another post. The point is that I've been looking for lightweight alternatives to all the software that I traditionally use in my day to day tasks, so while I'll happily leave Amarok alone on Xandros, I didn't really want to pull in all the KDE dependencies to have it on Debian, and I've come across a nice little ncurses music player called cmus to use instead.&lt;br /&gt;&lt;br /&gt;Now, on my desktop and main laptop I use Amarok pretty much exclusively and have tried to keep all the tags in my music collection accurate - I try to check the track listing, the genre, the year and that the capitalisation complies with English capitalisation rules (except when it is apparent that the odd capitalisation is a concious decision on part of the artist and forms part of the art). I'm well aware that I've missed some - some of the artists that have been in my collection for longer still have bad capitalisation and I've only started to check the accuracy of the album years recently.&lt;br /&gt;&lt;br /&gt;But there is a larger problem - Amarok doesn't reveal every tag to me. While that doesn't matter in the least as long as I'm only using Amarok, it can matter when I use other media players. I'm not worried about any of those albums I own a physical copy of - they're all in ogg (but if you do need a powerful ogg tag editor, tagtool's advanced mode _looks_ promising), but rather the music I've downloaded and have left in mp3. I've been aware of the issue for a while because I occasionally observe some of the symptoms on the various media players available on the Internet Tablet. I have looked at dedicated tag editors, but until now I haven't been able to find one that would show me *every* tag - not just the one's it's programmed to recognise, not just the id3v2.3 tags, but all of them. And not just the first 30 characters of them either.&lt;br /&gt;&lt;br /&gt;Why is this *so* important, they're just extra tags, right? Well, my biggest annoyance is that cmus uses the contents of the TPE2 tag if it is present for the Artist in it's library view rather than the TPE1 tag which Amarok uses. TPE1 is defined as "Lead performer(s)/Soloist(s)", while TPE2 is defined as "Band/orchestra/accompaniment". Now, the TPE2 tag may well be perfectly valid and correct, but it is not a tag that I have been organising or validating so far with Amarok, so I'd like to get everything consistent and delete the TPE2 tags. While I'm at it, why not remove all the cover art from the mp3s - I've always felt it wasteful to keep 12 copies of the same image when I could and do just put a single image in the same folder. In fact, why not go and remove all the tags that aren't recognised by Amarok - do I really care that it was encoded with lame? I might be happy to leave the 'free download from http://www.last.fm' comment tags alone and I certainly don't want to destroy any comments that I've added, but do I really want any of the other comment tags in there?&lt;br /&gt;&lt;br /&gt;So I finally found a id3 tag editing tool that can show me most of the tags - &lt;a href="http://eyed3.nicfit.net/"&gt;eyeD3&lt;/a&gt;. It's still not perfect - &lt;span style="text-decoration:line-through;"&gt;there isn't any support for id3v2.2,&lt;/span&gt; it doesn't show me the tags that replaygain uses and it did crash while parsing some of the mp3s - I dare say I'll have to come back to those later with another tool, even if it is hexedit. &lt;span style="font-weight:bold;"&gt;Edit:&lt;/span&gt; As the author pointed out, eyeD3 is in fact able to read id3v2.2 tags, just not write them and those crashes will doubtless be solved in no time.&lt;br /&gt;&lt;br /&gt;The first step was to find out what tags are actually present in my collection:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find music -iname "*.mp3" -exec eyeD3 -v {} \; | tee index&lt;br /&gt;sort -u index | awk -F\): '/^&lt;.*$/ {print $1}' | uniq | awk -F\)\&gt; '{print $1}' | awk -F\( '{print $(NF)}' &gt; tags&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So, that gives me a list of all the different types of tags in my collection - 44 unique tags in my case. Next step is to work out which ones are used by Amarok and if I want to keep any of the others. While I could go through and speculate on which of the three tags I can immediately see that might be a year, it's probably a better idea to look at the source code.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;apt-get source amarok libtag1c2a&lt;br /&gt;view amarok-1.4.9.1/amarok/src/metabundle.cpp&lt;br /&gt;view taglib-1.4/taglib/mpeg/id3v2/id3v2tag.cpp&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Some immediately obvious tags because it names their identifier directly are TPOS (Disc number), TBPM (beats per minute), TCOM (Composer - admittedly this is one tag that I have not been validating), TPE2 (which is marked as a non-standard MS/Apple extension - so it is aware of it but since it's messing up my collection and Amarok doesn't seem to display it anywhere I'm getting rid of it anyway) and TCMP (Compilation album, ie, show under various artists. Unfortunately cmus doesn't appear to use this tag, though does seem to have some logic for compilation albums - this is a matter I will need to investigate further later on).&lt;br /&gt;Digging deeper to look past the nice friendly names that the programmers can recognise to the harsh id3 reality I also identify that I'll need to keep title (TIT2), artist (TPE1), album (TALB), comment (COMM), genre (TCON), year (TDRC) and track (TRCK) - as well as anything that is used when playing the file that isn't identified here.&lt;br /&gt;&lt;br /&gt;Though Amarok can use images embedded in the mp3s, I don't want any - I much prefer to use Amarok's cover manager combined with &lt;a href="http://www.kde-apps.org/content/show.php/CopyCover+(amaroK+Script)?content=22517"&gt;copycover-offline.py&lt;/a&gt; to copy them into the appropriate directory (look through the comments for useful patches - hmmm, should probably submit my fix for albums with Various Artists come to think of it).&lt;br /&gt;&lt;br /&gt;So, I made a list of these tags, one per line in a file called amaroktags. Then found all the tags in my collection that aren't supported by Amarok:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;cat amaroktags tags | sort | uniq -u&lt;br /&gt;view taglib-1.4/taglib/mpeg/id3v2/id3v2.4.0-frames.txt&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Which left me with a list of tags that I wanted to keep:&lt;br /&gt;COMM, TALB, TBPM, TCMP, TCOM, TCON, TDRC, TIT2, TPE1, TPOS, TRCK, MCDI (Music CD Identifier), TFLT (File type), TLEN (length, used for seeking), TSRC (International Standard Recording Code - the only album using it in my collection is Nine Inch Nail's Ghosts I-IV)&lt;br /&gt;&lt;br /&gt;And an even larger list of tags to zap:&lt;br /&gt;TPE2, APIC (Attached picture), TDTG (Tagging time), GEOB (arbitrary file), PCNT (Play count), POPM (Popularimeter), PRIV (private textual &amp; binary data), TCOP (copyright), TDEN (encoding timestamp), TENC (Encoded by), TIT1 (content group description), TIT3 (Description refinement), TLAN (language), TMED (Media type), TOAL (Original title), TOFN (original filename), &lt;br /&gt;TPUB (publisher), TSSE (encoding settings), TXXX (User defined text), UFID (unique file identifier), USLT (lyrics), WCOM (commercial info), WOAR (artist web page), WXXX (other URL)&lt;br /&gt;&lt;br /&gt;As well as these ones that I couldn't identify, so I'll zap em and hope nothing breaks:&lt;br /&gt;NCON, TAGC (appears to be a timestamp)&lt;br /&gt;&lt;br /&gt;And a couple to manually check later:&lt;br /&gt;TOPE (Original artist - I notice that &lt;a href="http://dkcproject.ocremix.org/"&gt;Kong in Concert&lt;/a&gt; uses these for the original track names, though not accurately - they should probably be in TOAL), TYER and TDRL (years with subtly different meanings - taglib does seem to fallback and use these, but I will need to check for conflicts)&lt;br /&gt;&lt;br /&gt;So, now I have a pretty definitive list of tags it's time to zap em' (after backing up in case something blows up in my face of course). Although not immediately obvious it appears that using the --set-text-frame specifying the 4 letter name of the frame and no contents will remove it, even if it isn't a text frame. Now, this doesn't appear to actually conserve any space in the file - it shuffles the rest of the tags upwards and zeroes out the gap (presumably conserving the space would be possible, but I don't know an easy way off the top of my head - suggestions welcome). There may be some tags that you want to have more intelligent processing on - maybe only remove some of the images or maybe only remove some of the GEOBs and if that is the case read the eyeD3 documentation, but for me I'm sick of them all and want them gone:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find music -iname "*.mp3" -exec eyeD3 --set-text-frame=TAGC: --set-text-frame=TPE2: --set-text-frame=TDTG: --set-text-frame=TCOP: --set-text-frame=TDEN: --set-text-frame=TENC: --set-text-frame=TIT1: --set-text-frame=TIT3: --set-text-frame=TLAN: --set-text-frame=TMED: --set-text-frame=TOAL: --set-text-frame=TOFN: --set-text-frame=TPUB: --set-text-frame=TSSE: --set-text-frame=TXXX: --set-text-frame=UFID: --set-text-frame=USLT: --set-text-frame=WCOM: --set-text-frame=WOAR: --set-text-frame=WXXX: --set-text-frame=NCON: --set-text-frame=APIC: --set-text-frame=GEOB: --set-text-frame=PCNT: --set-text-frame=POPM: --set-text-frame=PRIV: --set-text-frame=TCMP: {} \; | tee log&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Depending on how large your collection is, at this stage you may choose to blink, stretch your arms, get some coffee, go to bed or take a vacation. Personally, I wrote a blog post.&lt;br /&gt;&lt;br /&gt;I still have some things I know I'll have to fix up - the Deus Ex Soundtracks all seem to have multiple redundant comments, and there are some non English comment fields, but you should by this stage have a decent understanding on how to do this - that is of course, if this whole article didn't just go over your head (congrats if it did and you still read this far though :)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;update:&lt;/span&gt; It turns out that the TCMP frame is not actually set by Amarok, so my solution is to remove all the TCMP flags from the library (I've added it to the above list, though where they are 1 in my collection is correct, but very few of the other tracks in the same album are tagged in the same way and would explain some odd behaviour when importing the albums), then to manually add them for all relevant tracks, which hopefully will ease future migration. Unfortunately as best I can tell, cmus doesn't appear to have any concept of compilation albums in it's id3.c. OGG files will supposedly get them since their tags don't require almost one thousand lines of C code to process (by contrast, cmus' vorbis.c file has a mere 285 lines including 33 lines of tag parsing), which begs the question as to why only 1 of my OGG compilation albums are marked as such in cmus.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;find music/V/Various\ Artists/ -iname "*.mp3" -exec eyeD3 --set-text-frame=TCMP:1 {} \;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;update:&lt;/span&gt; I've written a simple shell script to do this automatically, just save this as striptags.sh and execute it from your music directory:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;oktags="COMM TALB TBPM TCMP TCOM TCON TDRC TIT2 TPE1 TPOS TRCK MCDI TFLT TLEN TDTG"&lt;br /&gt;&lt;br /&gt;indexfile=`mktemp`&lt;br /&gt;&lt;br /&gt;#Determine tags present:&lt;br /&gt;find . -iname "*.mp3" -exec eyeD3 -v {} \; &gt; $indexfile&lt;br /&gt;tagspresent=`sort -u $indexfile | awk -F\): '/^&lt;.*$/ {print $1}' | uniq | awk -F\)\&gt; '{print $1}' | awk -F\( '{print $(NF)}' | awk 'BEGIN {ORS=" "} {print $0}'`&lt;br /&gt;&lt;br /&gt;rm $indexfile&lt;br /&gt;&lt;br /&gt;#Determine tags to strip:&lt;br /&gt;tostrip=`echo -n $tagspresent $oktags $oktags | awk 'BEGIN {RS=" "; ORS="\n"} {print $0}' | sort | uniq -u | awk 'BEGIN {ORS=" "} {print $0}'`&lt;br /&gt;&lt;br /&gt;#Confirm action:&lt;br /&gt;echo&lt;br /&gt;echo The following tags have been found in the mp3s:&lt;br /&gt;echo $tagspresent&lt;br /&gt;echo These tags are to be stripped:&lt;br /&gt;echo $tostrip&lt;br /&gt;echo The tags will also be converted to ID3 v2.4 where appropriate&lt;br /&gt;echo&lt;br /&gt;echo -n Press enter to confirm, or Ctrl+C to cancel...&lt;br /&gt;read dummy&lt;br /&gt;&lt;br /&gt;#Strip 'em&lt;br /&gt;stripstring=`echo $tostrip | awk 'BEGIN {FS="\n"; RS=" "} {print "--set-text-frame=" $1 ": "}'`&lt;br /&gt;find . -iname "*.mp3" -exec eyeD3 --to-v2.4 $stripstring {} \; | tee -a striptags.log&lt;br /&gt;&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-2908030909511429162?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/2908030909511429162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=2908030909511429162' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/2908030909511429162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/2908030909511429162'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2009/01/new-years-resolution-massive-music-tag.html' title='New Years Resolution: Massive Music Tag Cleanup'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-1870129036104588455</id><published>2008-09-19T08:25:00.005+10:00</published><updated>2008-09-19T09:23:42.489+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Nokia'/><category scheme='http://www.blogger.com/atom/ns#' term='n95'/><category scheme='http://www.blogger.com/atom/ns#' term='Maemo'/><category scheme='http://www.blogger.com/atom/ns#' term='n800'/><category scheme='http://www.blogger.com/atom/ns#' term='gadgets'/><category scheme='http://www.blogger.com/atom/ns#' term='3G'/><title type='text'>Nokia to Release 3G Internet Tablet</title><content type='html'>The short version of this article is simply "I am excited". For the important part, scroll down to the bold text below, for the background, read on.&lt;br /&gt;&lt;br /&gt;Out of *all* the gadgets that I have ever owned, the one that stands out literally miles above the rest is my Nokia N800 Internet tablet - it's well designed and can do just about anything under the sun.&lt;br /&gt;My biggest (note: blowing way out of per portion for the sake of this article) problem with it has been that the only practical ways that it can access the Internet (what with being an Internet Tablet and all) is either through a wireless access point, or by using a 3G bluetooth modem. Wireless access points are quite common, but wireless access points I can legally use without annoying restrictions are comparatively rare out in the wild.&lt;br /&gt;My solution to this problem was to purchase a 3G data plan (since voice + 3G data is so expensive in Australia) and take the SIM card and put it in a Nokia N95 instead of the USB modem they gave me. The advantages of this are:&lt;br /&gt;- Between both devices I can do anything!&lt;br /&gt;- I can get on the Internet anywhere, any-time, relatively cheap (but still not as cheap as those Americans can).&lt;br /&gt;- I have a nice (for a phone) 5 mega-pixel camera that fits in my pocket, unlike my (better quality) Kodak camera.&lt;br /&gt;- Not only can I use the GPS from the N95 in the N95, but I can also export it as a bluetooth GPS and use it in the mapping apps on the N800.&lt;br /&gt;- In an emergency, I can use Gizmo or Skype to make up for the fact that I can't make ordinary phone calls, though thanks to the packet loss and high latency, this is not always practical.&lt;br /&gt;- Should my N800 run out of power, I sometimes still have power left in one of the two batteries for the N95 and can therefore continue listening to music.&lt;br /&gt;But, this set-up has disadvantages too:&lt;br /&gt;- I'm always carrying around 2 devices&lt;br /&gt;- I'm always carrying around a spare battery for the N95 because it often doesn't make it through the day on just one.&lt;br /&gt;- The N95 needs rebooting all the time to resolve connectivity issues, especially while sharing it's Internet connection over bluetooth. It's to the point where I have NStarter installed so I can reboot faster.&lt;br /&gt;&lt;br /&gt;Now, as I said I am very happy with the N800, and saw no reason to spend money upgrading to the N810 when it came out (although the backlit keyboard did tempt me, a lot). The one thing that would definitely make me upgrade, I said, was if Nokia added 3G support to their next Internet Tablet. Failing that I would have to take a long hard look at the specs and my money to decide.&lt;br /&gt;I thought it was pretty likely that they would add 3G - it would make sense now with the iPhone out as it would put the tablet in as a direct competitor, but of course Nokia remained silent as always.&lt;br /&gt;&lt;br /&gt;Finally, the Maemo summit arrives and I start to see an influx of posts. "The Internet Tablet line may be ending in name but the Maemo platform is going strong"? That doesn't surprise me actually. I've been speculating that their long term plans may involve Maemo ending up on their phones. Although not confirmed, it makes sense given their purchase of Trolltech and their pledge to open source Symbian - both just happen to be written in C++ and they will be able to satisfy the licence to be able to share code between them and satisfy most of the open source community at the same time.&lt;br /&gt;Also, they only ever promised 5 iterations of Internet Tablets anyway, of which 4 have been released - 770, N800, N810 and N810 Wimax - though I have a feeling that they said one of those didn't count towards the 5, but I can't remember the details off hand. Whatever the future of the tablets, I think it's a safe bet that we can expect to see Maemo more and more in the future.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Now, at last I see the post I have been waiting for - Maemo 5 will have High Speed Packet Access built in - that's a 3G Tablet promised right there! &lt;/span&gt;They've even gone so far as to release the patches for the Linux kernel necessary to support it, so it's pretty much guaranteed now! It will also have a high definition camera, and I doubt that they would drop the GPS that the introduced in the N810, so &lt;span style="font-weight:bold;"&gt;this next tablet officially obsoletes everything I'm using my current N95 and N800 for&lt;/span&gt;! Well, that is of course assuming they don't ditch something else important to me, but I think that the only disadvantage will be less potential storage space upgrades.&lt;br /&gt;&lt;br /&gt;One final point - the software the runs on the Internet Tablets is now even more Open! I don't know the full details, but the wireless drivers and and low level hardware monitoring drivers (ooh, can I fix that DSME now?) are included among the released code.&lt;br /&gt;&lt;br /&gt;Ahh, isn't the future exciting?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-1870129036104588455?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/1870129036104588455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=1870129036104588455' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/1870129036104588455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/1870129036104588455'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/09/nokia-to-release-3g-internet-tablet.html' title='Nokia to Release 3G Internet Tablet'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-1432708793809091268</id><published>2008-09-16T04:43:00.004+10:00</published><updated>2008-09-16T04:53:02.389+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Command of the Hour'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Command of the Hour: Top Variants</title><content type='html'>So, I'm trying to start something that I've dubbed "Command of the Hour" on my local Canberra Linux Users Group mailing list. Quite simply, everyone just chimes in and tells everyone else about some random, obscure and useful command that they know of. Doesn't matter what, doesn't have to be related to any previous post, it just has to be something that they've found useful or can see that others might find useful.&lt;br /&gt;&lt;br /&gt;But then I thought, why limit this to just my local LUG list? Sure it's great to test drive the idea, but why not try aiming for a wider audience - so here I am copying my initial get the ball rolling post with some top variants here:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;atop - I just had an issue where gnome wasn't logging in, but seemed to be stuck constantly accessing the hard drive. This command saved me by showing me exactly which program was using the hard drive and a quick aptitude remove mlocate later my system was working perfectly again. It monitors CPU, memory, disk and network highlighting any that are particularly stressed and shows the processes responsible. Processes are only displayed if they have done something interesting&lt;br /&gt;since the last update. Kernel patches can be taken to enhance the experience if one is so inclined.&lt;br /&gt;&lt;br /&gt;htop - Awesome ncurses graphical top. Looks pretty, coloured, and simply highlighting a process and pressing 'S' will attach strace to it to see what that run away process is actually up to. Tag multiple processes and alter the niceness of them all at once or just kill em' all. 'T' toggles between process tree view and ordinary top view.&lt;br /&gt;&lt;br /&gt;powertop - I'm sure lots of people know about this one by now, but for anyone who doesn't it can show you various information about what is chewing up energy in your system and provide some recommendations for conserving power.&lt;br /&gt;&lt;br /&gt;iftop - top for network traffic. Shows the traffic going to and fro on every individual transfer and totalled down the bottom in ncurses bar graph style. Amounts are displayed for the last 2, 10 and 40 seconds. Filters can be applied if one is only interested in a subset of the total traffic, and it can naturally do hostname lookups and show port numbers/service names.&lt;br /&gt;&lt;br /&gt;ntop - another network top, but this one starts a web server on port 3000 to display it's results with pretty graphs. It has the advantage that it provides much more detail - it breaks packets down by size, protocol, etc. It has many displays to analyse the data in varying and sometimes entertaining ways. Of course, being heavyweight as it is, if all you need to know is that traffic is flowing from A to B, firing this one up may be overkill, though it would easily suit as a very&lt;br /&gt;quick and dirty network monitoring solution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And a few others that I haven't found so useful myself, but someone else might:&lt;br /&gt;&lt;br /&gt;itop - top for interrupts. I can imagine it would be useful for checking if hardware is getting the computers attention when it should be.&lt;br /&gt;&lt;br /&gt;jnettop - this is another network top. I prefer iftop since it gives me a graphical display (and it's help page is somewhat more detailed than "I must write something here... :)").&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-1432708793809091268?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/1432708793809091268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=1432708793809091268' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/1432708793809091268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/1432708793809091268'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/09/command-of-hour-top-variants.html' title='Command of the Hour: Top Variants'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-9157828973097540014</id><published>2008-08-30T22:42:00.008+10:00</published><updated>2008-09-16T04:58:16.448+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MythTV'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Scrapheap Challenge'/><title type='text'>MythTV scavanges Scrapheap Challenge episodes</title><content type='html'>My main desktop box has been running this nifty little program called &lt;a href="http://mythtv.org/"&gt;MythTV&lt;/a&gt; for over a year now. MythTV is a home-brew Personal Video Recorder for Linux, which essentially means it's kind of like a VCR, but on steroids. It downloads TV guide data from &lt;a href="http://www.oztivo.net"&gt;OzTivo&lt;/a&gt; and once a week I go through the program guide sorted by genre to see if there is anything on that sounds like it might be worth watching. Then I check it's list of Upcoming Recordings to make sure I don't have any conflicts, resolving them if necessary and go away.&lt;br /&gt;Every now and again when I have some time I bring up it's recorded programs view, pick something to watch, check that it's automatic commercial detection has done it's job making any necessary corrections (which usually takes less than a minute), sit back hit transcode (to permanently remove those commercials as well as reduce the file size) and enjoy the show.&lt;br /&gt;If I'm not at my computer at the time, I can access MythTV remotely using the MythWeb plugin which lets me change my recording schedules remotely and even stream recorded programs to me. It also integrates with the MythMusic plugin which I have found handy on a number of occasions when I've been working on an assignment in a computer lab on campus and wanted some decent music to listen to ;)&lt;br /&gt;Some months ago, I noticed this program in the guide called &lt;a href="http://en.wikipedia.org/wiki/Scrapheap_challenge"&gt;"Scrapheap Challenge"&lt;/a&gt; airing daily on ABC2. The description sounded interesting so I told MythTV to record it on a daily basis. Since then MythTV has not missed a single episode as all of season 9 was aired and then rolling back to the original season 1 from 1998 and showing every episode since (at the time of writing ABC2 is now up to season 7).&lt;br /&gt;Each episode Scrapheap Challenge pits two teams of three members and an expert against each other to build some contraption that has to perform a specific task out of the junk they can find in a scrapheap in only 10 hours (except for some special episodes). The idea for the show came from a scene in Apollo 13 where the astronauts only had a short time to construct a carbon dioxide filter from whatever parts they could find on their space capsule. The show is hosted by Robert Llewellyn (who it took me a long time to realise played Kryten in Red Dwarf all those years ago) and Lisa Rogers (prior to season 5 it was Cathy Rogers) who offer entertaining (and sometimes ridiculous, especially in the episode introductions) commentary throughout the show.&lt;br /&gt;Anyway, the reason for this post is mostly a plug for the show as I have been thoroughly enjoying it and highly recommend it to any aspiring engineer or indeed anyone with a technical mindset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-9157828973097540014?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/9157828973097540014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=9157828973097540014' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/9157828973097540014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/9157828973097540014'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/08/mythtv-scavanges-episodes-of-scrapheap.html' title='MythTV scavanges Scrapheap Challenge episodes'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-5294982211942617515</id><published>2008-08-17T05:30:00.005+10:00</published><updated>2008-08-17T13:01:18.790+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='n95'/><category scheme='http://www.blogger.com/atom/ns#' term='n800'/><category scheme='http://www.blogger.com/atom/ns#' term='gadgets'/><title type='text'>It's amazing what technology can do these days</title><content type='html'>So I was at a friends stopping the night, but unable to sleep I eventually decided to call a cab to take me home. Small dilemma: I didn't want to disturb everyone who was asleep in the house any more than I had to. But not to worry, Nokia came to my rescue!&lt;br /&gt;First, I didn't know any more detail than the suburb I was in so I started Nokia Maps on my N95 (my "Mobile Modem", but that's for another post) which fairly quickly acquired a GPS fix even though I was indoors and gave me the street and even number I was at.&lt;br /&gt;The web browser on the N95 is somewhat limited and although I could browse to the Canberra Cabs website with it and get their phone number, I could not use the online booking facility. Calling them would clearly disturb those sleeping around me (and I'm not even sure it would be possible given the setup I've got), so I pulled out my Nokia N800 Internet Tablet. Using my N95 as a bluetooth modem I pointed the Mozilla based browser to the Canberra Cabs website, filled in my details and within just a few minutes was in a cab spending the rest of my money for the night getting home.&lt;br /&gt;&lt;br /&gt;Now to sleep.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-5294982211942617515?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/5294982211942617515/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=5294982211942617515' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/5294982211942617515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/5294982211942617515'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/08/its-amazing-what-technology-can-do.html' title='It&apos;s amazing what technology can do these days'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-6294989891035752739</id><published>2008-08-11T14:30:00.006+10:00</published><updated>2008-08-11T14:46:05.717+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BSoD'/><category scheme='http://www.blogger.com/atom/ns#' term='lca08'/><category scheme='http://www.blogger.com/atom/ns#' term='lca'/><title type='text'>BSoD Advertising at LCA08</title><content type='html'>My good friend &lt;a href="http://blog.christophersmart.com/"&gt;Chris&lt;/a&gt; just sent me this photo taken at linux.conf.au earlier this year. I'm on the left, Jason's on the right, and well, you can see what's in the middle ;)&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_xxiLBp-WqaI/SJ_BB2Ic4qI/AAAAAAAAAJ4/JjAaSC6sOY8/s1600-h/00005.jpg"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://1.bp.blogspot.com/_xxiLBp-WqaI/SJ_BB2Ic4qI/AAAAAAAAAJ4/JjAaSC6sOY8/s320/00005.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5233113529482797730" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-6294989891035752739?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/6294989891035752739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=6294989891035752739' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/6294989891035752739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/6294989891035752739'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/08/advertising-bsod-at-lca07.html' title='BSoD Advertising at LCA08'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_xxiLBp-WqaI/SJ_BB2Ic4qI/AAAAAAAAAJ4/JjAaSC6sOY8/s72-c/00005.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-25142054189251571</id><published>2008-07-14T00:04:00.007+10:00</published><updated>2008-09-23T00:48:25.566+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lca08'/><category scheme='http://www.blogger.com/atom/ns#' term='lca'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='n800'/><category scheme='http://www.blogger.com/atom/ns#' term='gadgets'/><category scheme='http://www.blogger.com/atom/ns#' term='Nightwish'/><category scheme='http://www.blogger.com/atom/ns#' term='remote speakers'/><title type='text'>N800 as Remote Speaker and Overdue LCA Overview</title><content type='html'>Well it has been a long time, I really don't have any excuse. So much for blogging about LCA, ey? I actually have a half written blog post about it still sitting on my Zaurus, but I never got around to finishing it. My Internet Tablet functioned beautifully (except for a bug regarding the bluetooth keyboard requiring me to reboot it every now and again to get the on screen keyboard to come back) and was all I really needed there. The only use the Zaurus got was a little bit of showoff, typing that unpublished blog post when I didn't want to pull out that bulky dell keyboard and listen to music on the train when I didn't want to exhaust the N800's batteries. The only time a full sized laptop would have been particularly handy was during some of the tutorials where it was impossible to keep up on the tablet.&lt;br /&gt;It was awesome being able to meet so many people including some of Nokia's employees and seeing the N810 in the flesh, as well as Linus himself. If you must know I saw him four times - after a kernel talk I saw him sneak into an unmarked room, when he walked in on the kernel dev panel talking about kernel debuggers ("Linus! We were just talking about... ice cream.... Would you like some ice cream Linus?"), when he ducked up the stairs to grab a snack and during the meal on the last day.&lt;br /&gt;By now there isn't much point in posting info about any of the talks since it has well and truly been blogged to death. If you haven't already go watch the vids - In particular I recommend Tux' Angels: Incident Response Revealed (about IT forensics using open source tools) and Viktor Olier's talk on the RepRap (I think it was titled The Replicators are Coming or something).&lt;br /&gt;&lt;br /&gt;Nightwish was *awesome*. I did have to miss out on the Penguin Dinner that night to make it, but ohh was it worth it. Unfortunately I missed out on a shirt since they had stopped selling them before interval when I was planning on getting one. No matter - I have since ordered some Nightwish and Sonata Arctica merchandise from overseas. Google paying for the bar tab at the Students party followed by gelato was pretty sweet - I think that brings the total meals of mine that Google has paid for to 5 :-)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But anyway, moving on to today's post: I now have found yet another use for my Internet Tablet!&lt;br /&gt;&lt;br /&gt;When it's late at night and I'm at college and want to watch a video or listen to music without disturbing my neighbors I use a 5 meter headphone extension cable to reach my bed. I've been meaning to look into a bluetooth headset but haven't got around to it yet. Anyway, I've come back home for a few weeks while uni is on break and it's late at night and I want to watch a video without disturbing my mother. Problem is I forgot to pack my headphone extension cable and it's too cold and uncomfortable to sit next to the computer watching it.&lt;br /&gt;So I started wondering if there was any way that I could use my Internet Tablet as remote speakers across the room - then I could plug my earphones into them and effectively have (almost) wireless earphones. Turns out that it is possible and not too difficult at all.&lt;br /&gt;The two are connected via wireless using my Linksys WRT54GL - which wouldn't be necessary if I could get my laptop to use ad-hoc properly or if either device supported functioning as master. Another option that I haven't looked into yet is using bluetooth PAN, or possibly hacking the tablet to look like a bluetooth A2DP headset, but that's for another time and probably another person to hack into existence.&lt;br /&gt;On my tablet I opened a terminal and ran:&lt;br /&gt;&lt;code&gt;esd -public -tcp -nobeeps&lt;/code&gt;&lt;br /&gt;I then opened a second terminal window and SSHd into my laptop. There I ran:&lt;br /&gt;&lt;code&gt;export DISPLAY=:0&lt;br /&gt;export ESPEAKER=192.168.1.101 (My Internet Tablet's IP)&lt;br /&gt;mplayer -ao esd -delay -0.3 video.avi&lt;/code&gt;&lt;br /&gt;I had to use the -delay -0.3 parameter as the audio was slightly delayed due to the overhead of sending it over the network and I found that number gave pretty good lip sync - you would probably have to fiddle around with it to find the optimal setting for your situation. This technique should work for any application that can use esd to output sound.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-25142054189251571?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/25142054189251571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=25142054189251571' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/25142054189251571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/25142054189251571'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/07/n800-as-remote-speaker.html' title='N800 as Remote Speaker and Overdue LCA Overview'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-4633411816365186794</id><published>2008-01-25T05:01:00.000+11:00</published><updated>2008-01-25T06:44:11.196+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='filesharing'/><category scheme='http://www.blogger.com/atom/ns#' term='music'/><title type='text'>Music Piracy in my Life and Producers Pockets</title><content type='html'>I am living proof that peer to peer file-sharing networks _can_ increase music sales. I'm not saying it will in every case, but if I had to guess at it's overall effect on sales, I'd say it would be positive.&lt;br /&gt;In the beginning there was almost no music I would listen to - all the radio stations played rubbish almost exclusively 24/7, and I certainly didn't enjoy the music that my Sister or Mother listened to, so quite frankly the best music around was to be found in certain video games as far as I was concerned.&lt;br /&gt;Then one day while I was chatting with a friend the subject of music came up and I mentioned that I didn't really listen to much because there wasn't very much mainstream music that I liked, so he gave me a copy of his entire music collection. Even going though that I found myself going from one artist to another - there were certainly artists there that I enjoyed more than what I heard on the radio 99% of the time, but there are probably only about 3 or 4 artists in his entire extensive collection that I still listen to today. It was in this time that I got my first few albums on CD - I didn't buy any of them myself mind you - they were all gifts. It has been a long, long time since I've added any of the songs from those albums into my playlist.&lt;br /&gt;Keep in mind that I was still on dialup back then, so I was still only minimally engaging in filesharing as it could take hours to download a single song - my music knowledge was limited to little more than the radio I never listened to and the large collection of another person's musical tastes.&lt;br /&gt;Two years ago my Internet situation changed and I gained much better access to filesharing networks such that p2p became a viable and attractive option. I was able to try out a much wider variety of musical genres and used Amarok's last.fm related artists functionality and recommendations from other users of the same p2p network to help me find out that what I really like is in fact Symphonic and Power Metal and to a lesser extent, some Alternate rock and Celtic music - far from the punk rock tastes of my friend, and even further than that pop crap so many radio stations love so much (no offence pop fans, your tastes are your own). Since making this discovery which I attribute almost exclusively to filesharing networks I have purchased no less than nine albums with my own money, all of which I continue to listen to extensively today. That's nine albums that I would not have bought if it wasn't for filesharing networks. I will also be attending my second ever concert that I have paid for (I've been to a few others where other people shouted or were free entry) next week when Nightwish perform in Melbourne.&lt;br /&gt;Even now that I know the genres that I like, I would not just go out and buy a random album that is labelled as Power Metal from JB-HiFi because there are a lot of bands in the Genre that I dislike, mainly due to their firm belief that since they use metal instruments, their vocals should all be shouted as hard as they possibly can - I do have respect for their throats to be able to cope with that much yelling though. No, I would have to either preview them on last.fm or failing that, download an album or two of theirs to try them out first.&lt;br /&gt;I know that I've mentioned last.fm several times and some of you may wonder why I pirated music at all when I could have just used their free service. Well, I've only had an account with them for less than a month - before that I only used the related artist functionality built in to Amarok to tell me what was similar to music I already had. Also, they don't have previews of every artist around and for the most part they are just that - 30 second previews - not enough to get a complete feel for an artist. Actually, come to think of it, I don't think I've pirated any music since joining up - but then again that's not really unusual for me in one month.&lt;br /&gt;&lt;br /&gt;And yet, despite the fact that I'm more satisfied with my music collection and the producers and bands of the albums I've purchased have deeper pockets now because of filesharing, I cannot recommend anyone engage in illegal downloading over these networks. I can however, vastly recommend last.fm as an excellent and completely legal substitute.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-4633411816365186794?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/4633411816365186794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=4633411816365186794' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/4633411816365186794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/4633411816365186794'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/01/music-piracy-in-my-life-and-producers.html' title='Music Piracy in my Life and Producers Pockets'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-7119496458209899848</id><published>2008-01-25T04:34:00.000+11:00</published><updated>2008-01-25T05:40:49.582+11:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RSI'/><category scheme='http://www.blogger.com/atom/ns#' term='workrave'/><category scheme='http://www.blogger.com/atom/ns#' term='keyboards'/><category scheme='http://www.blogger.com/atom/ns#' term='ergonomics'/><title type='text'>Fight off RSI with Workrave and Ergonomic Keyboards</title><content type='html'>While I was typing up that last post, Workrave popped up and reminded me to take a 5 minute rest break. Workrave is an excellent little program for Linux and Windows designed to assist in the recovery and prevention of RSI that sits in the tray monitoring the keyboard and mouse usage reminding you to take a break every now and again. I won't cover it in much detail because fsckin w/ linux  just did an excellent article on it &lt;a href="http://www.fsckin.com/2008/01/22/howto-help-prevent-rsi-the-silent-killer-with-workrave/"&gt;here.&lt;/a&gt;&lt;br /&gt;Grab workrave from &lt;a href="http://www.workrave.org/"&gt;www.workrave.org&lt;/a&gt; if it's not in your distro's package repository.&lt;br /&gt;&lt;br /&gt;I don't suffer from RSI yet, but after some talk on the Canberra Linux Users Group mailing list last year I decided that I should take some simple steps to minimise the chances of me getting RSI, so I purchased the Microsoft Natural Ergonomic Keyboard 4000 - what's $80 compared to still being able to type in a decade or so? In addition to the usual split angled keys featured on most ergonomic keyboards, it also features an inverted slope - the front of the keyboard is higher than the back of the keyboard so your wrists just sit on it at a natural angle with almost no strain. I've removed the useless and utterly annoying F-lock key from it because I kept hitting it instead of F12 when I went to pull down the YaKuake Terminal Emulator.&lt;br /&gt;&lt;br /&gt;These two steps alone should go a long way to ensuring that I won't have to end my future career early due to RSI or related injuries. I suppose I could look into things like ergonomic chairs and so forth and perhaps someday I will, but this should be a cheap and effective start.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-7119496458209899848?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/7119496458209899848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=7119496458209899848' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/7119496458209899848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/7119496458209899848'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/01/fight-off-rsi-with-workrave.html' title='Fight off RSI with Workrave and Ergonomic Keyboards'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6485167114445349071.post-8803996658755326800</id><published>2008-01-24T23:13:00.001+11:00</published><updated>2008-09-16T04:54:48.983+10:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='blog'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='n800'/><category scheme='http://www.blogger.com/atom/ns#' term='gadgets'/><title type='text'>Another Blog to Shout About</title><content type='html'>Well, just about everyone else is blogging these days, so why not me? I've dabbled a bit in just about everything to do with computing, but not really enough in any one area to consider myself an expert. I tend to think of myself as a bit of a Jack of all computer related trades, and this blog will probably start to reflect that with posts on a wide variety of topics.&lt;br /&gt;&lt;br /&gt;But who can say, ey? Plenty of friends and people I know consider me to be a computer expert, some have even used the term "genius" to describe me. Maybe it's all relative - I consider Andrew Tridgell a computer genius, and I've heard that he thinks of Linus Torvalds as a genius, so the question really is: Who does Linus think of as a Genius, or is he really the top dog?&lt;br /&gt;&lt;br /&gt;I've been thinking about starting a blog for quite some time now because I've done many random things (not always ending in success mind you) that I felt like documenting at the time but didn't - now I have somewhere to put all of that, my only excuse left can be laziness, lack of time or both. Perhaps I will persist and avoid this blog befalling the same state of disarray as so many of my past projects...&lt;br /&gt;&lt;br /&gt;I will be attending linux.conf.au in Melbourne next week and fully intend to blog about my experiences there. This will be my first time attending a conference like this and I don't really know what to expect - but it should be fun finding out!&lt;br /&gt;&lt;br /&gt;What else can I say? I'm a full time Software Engineering student at the Australian National University  in Canberra, Australia. I have a passion for Linux and Free/Libre/Open Source Software, and Linux has been my primary OS for many years now. I have a considerable collection of gadgets and machines running Linux, most notably:&lt;br /&gt;* A GP2X Personal Entertainment Player which I primarily use for killing time playing old SNES ROMs and I daresay will come in handy on the train to and from Melbourne for the conference next week. Came running Linux out of the box.&lt;br /&gt;* A Sharp Zaurus SL-C3200 currently running pdaXii13. This too came with Linux out of the box and QTopia for it's GUI. This little beast doesn't see too much use these days but it's 6GB microdrive comes in handy to store plenty of music for when I don't want to waste the battery on my Most Valued Gadget:&lt;br /&gt;* And the MVG (Most Valued Gadget) award goes to my Nokia N800 Internet Tablet running the Linux based Internet Tablet OS 2008. I don't know how I lived without this gadget, I really don't. It does just about everything - Kagu Media Player plays music from one of the two 8GiB SD cards I have in it, while Vagalume Last.fm Client streams new and exciting music from last.fm. It's built in mapping software has helped me to find places on more than a few occasions, while Maemo Mapper does all my mapping related tasks that the built in mapper doesn't. It's mozilla based web browser works like a charm, the webcam has captured a number of amusing moments when I haven't had any other camera available. I can SSH into any of my other boxes from it. Video playback works great, although I haven't actually used that too much. Pidgin, Skype, Gizmo and Modest Email clients all work great although to be honest I don't use them anywhere near as often as everything else I have on the tablet. GPE PIM todo has my shopping list and checklist of things I need to do before I go to Melbourne next week ;) Well, this summary was a little longer than I anticipated - almost enough so to get a post of it's own - perhaps I shall post a full review of this device, everything I use it for, like about it, and the few things I dislike about it at a later date.&lt;br /&gt;* A Dell XPS M1710. This one didn't run Linux out of the box, but naturally it didn't take me long to set it up for dualboot with Kubuntu. Yeah, I went all out on this machine - I'm a dormant gamer (would play more if I had the time) and wanted a machine that could easily handle what my old laptop could not (last LAN with my old laptop I was quoted as saying that I "should really upgrade my framerate tower" when it dropped down to seconds per frame during the later rounds of one particular tower defence map), yet still be portable enough to take with me - even if I'm just going home for a few weeks on train or plane - something my desktop is certainly not.&lt;br /&gt;* My desktop box. Like most computer enthusiasts I put this together myself so I can't simply quote a brand and model for you to google. Currently it's still set up to dualboot 64bit Kubuntu and XP, the latter of which hasn't been booted since I got the M1710 (it was only ever there for gaming)  and I'll probably claim that space for Linux in the not too distant future. This machine is unsurprisingly used for mundane computing tasks when I'm in my room such as typing up this blog post and listening to music. This computer doubles as my MythTV box and most of it's 1.4 Terrabytes of storage are filled up with things MythTV has recorded. Has an annoying tendency to only crash when I've gone away - usually half an hour before I attempt to log in remotely, so that means it's next crash will probably be while I'm in Melbourne next week.&lt;br /&gt;&lt;br /&gt;Well, that's enough for the first post - I've got a few more things that I want to put up tonight, but they deserve their own posts.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6485167114445349071-8803996658755326800?l=darkstarshout.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://darkstarshout.blogspot.com/feeds/8803996658755326800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6485167114445349071&amp;postID=8803996658755326800' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/8803996658755326800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6485167114445349071/posts/default/8803996658755326800'/><link rel='alternate' type='text/html' href='http://darkstarshout.blogspot.com/2008/01/another-blog-to-shout-about.html' title='Another Blog to Shout About'/><author><name>DSS</name><uri>http://www.blogger.com/profile/14402135338628481428</uri><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/_xxiLBp-WqaI/SLlOSkFj6yI/AAAAAAAAAKk/0kefQWzc24c/S220/dss.png'/></author><thr:total>0</thr:total></entry></feed>
