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

<channel>
	<title>atc &#187; Linux</title>
	<atom:link href="http://blog.beplacid.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.beplacid.net</link>
	<description>Musings of technology, sport, life et al</description>
	<lastBuildDate>Thu, 10 Jun 2010 10:24:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sky Songs and Linux</title>
		<link>http://blog.beplacid.net/2009/12/15/sky-songs-and-linux/</link>
		<comments>http://blog.beplacid.net/2009/12/15/sky-songs-and-linux/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:55:02 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[sky]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=104</guid>
		<description><![CDATA[If you want to use the Sky Songs download client in Linux (say Ubuntu or Debian), just paste the following into a file called skysongs in $HOME/bin and then chmod a+x it:
cd $SKY_SONGS_DIR; /usr/bin/java -cp . -jar downloader.jar $*
Note, $SKY_SONGS_DIR should be changed to your installation directory. If you used wine to install Sky Songs, [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to use the <strong>Sky Songs download client in Linux</strong> (say Ubuntu or Debian), just paste the following into a file called skysongs in $HOME/bin and then chmod a+x it:<br />
<code>cd $SKY_SONGS_DIR; /usr/bin/java -cp . -jar downloader.jar $*</code></p>
<p><span style="text-decoration: underline;"><strong>Note</strong></span>, $SKY_SONGS_DIR should be changed to your installation directory. If you used <strong>wine</strong> to install Sky Songs, have a look under <strong>/home/YOURUSERNAME/.wine/drive_c/windows/profiles/YOURUSERNAME/Local Settings/Application Data/Sky  Songs/</strong>.</p>
<p>Sky Songs works by giving you &#8220;SKS&#8221; files that describe to its client (&#8220;<strong>Sky Songs MP3 Downloader</strong>&#8220;) what and how to download; i.e. your songs. Once you&#8217;ve downloaded one (say Renegades.sks; the &#8220;Renegades&#8221; album by Rage Against the Machine), just execute the skysongs script as follows:<br />
<code>alex@prometheus:~/Music$ skysongs Renegades.sks</code></p>
<p>Thankfully the Sky Songs download client is written in Java so it&#8217;s not only cross-platform but its structure is obvious.</p>
<p>Please note that these instructions are absolutely not intended for circumventing Sky&#8217;s download procedure, nor are they to be used to break the Terms of Service you&#8217;re most likely bound to by law. This information is purely for educational purposes and to assist those who are new to Linux get to grips with their everyday software in a new environment.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F12%2F15%2Fsky-songs-and-linux%2F';
  addthis_title  = 'Sky+Songs+and+Linux';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/12/15/sky-songs-and-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alt+Tab and Linux Window Managers</title>
		<link>http://blog.beplacid.net/2009/09/25/alttab-and-linux-window-managers/</link>
		<comments>http://blog.beplacid.net/2009/09/25/alttab-and-linux-window-managers/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 14:33:47 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=78</guid>
		<description><![CDATA[Regardless of window manager, why can&#8217;t I click on an icon to select the app I want to focus when ALT+TAB&#8217;ing? Or am I missing something?
Yes it&#8217;s used primarily for keyboard usage to prevent having to use the mouse, but sometimes I&#8217;m ALT+TAB&#8217;ing while I am web browsing to check on the progress in another [...]]]></description>
			<content:encoded><![CDATA[<p>Regardless of window manager, why can&#8217;t I click on an icon to select the app I want to focus when ALT+TAB&#8217;ing? Or am I missing something?</p>
<p>Yes it&#8217;s used primarily for keyboard usage to prevent having to use the mouse, but sometimes I&#8217;m ALT+TAB&#8217;ing while I am web browsing to check on the progress in another application. Clicking would speed things up by, say, 0.0051 ms. Perfect, right?</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F09%2F25%2Falttab-and-linux-window-managers%2F';
  addthis_title  = 'Alt%2BTab+and+Linux+Window+Managers';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/09/25/alttab-and-linux-window-managers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Joy of Spotify</title>
		<link>http://blog.beplacid.net/2009/06/27/the-joy-of-spotify/</link>
		<comments>http://blog.beplacid.net/2009/06/27/the-joy-of-spotify/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 14:06:08 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[spotify]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=73</guid>
		<description><![CDATA[When it comes to music distribution, we&#8217;re in slightly controversial times. You&#8217;re deemed a criminal if you copy your CD to your PC or portable media device so you can listen on the train. You&#8217;re &#8212; rightly or wrongly &#8212; breaking the law when you download your favourite track from the various distribution methods such [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to music distribution, we&#8217;re in slightly controversial times. You&#8217;re deemed a criminal if you copy your CD to your PC or portable media device so you can listen on the train. You&#8217;re &#8212; rightly or wrongly &#8212; breaking the law when you download your favourite track from the various distribution methods such as Bit Torrent et al.</p>
<p>Various efforts have come about attempting to cash in on this phenomenon; Last.fm to Napster, they&#8217;ve all got their merits. Somewhat under the radar is Spotify, an iTunes-esque attempt at bridging the gap between the stubborn fat-cats running the music industry and the slick distribution medium that is the internet. Spotify has some great features, from playlists to quick but advanced search (which includes a command-like interface such as &#8216;genre:blues&#8217;). Spotify also <a title="Running Spotify under wine [new window]" href="http://www.spotify.com/en/help/faq/wine/" target="_blank">runs very well under Wine</a> non-natively; it&#8217;s completely free (ad-supported) and doesn&#8217;t seem to waste too much bandwidth.</p>
<p>Spotify is split into free and premium services. The former having audio ads every 50 or so minutes and banner ads throughout the GUI, the latter having no ads and higher-quality music.</p>
<p>It&#8217;s different to alternatives like Last.Fm. Spotify doesn&#8217;t run with the idea of suggesting music for you. You put in an artist and it&#8217;ll list all it has. It&#8217;s up to you to build your own playlists. Without knowing the advanced search feature like &#8216;genre:blues&#8217; you might get frustrated, but I&#8217;ve found that the freedom to build my own playlists leaves me with the music I love, and not the tripe that Last.fm thinks I&#8217;ll like (nor it&#8217;s crappy &#8216;loved tracks&#8217; idea).</p>
<p>A feature I&#8217;d love to have is the ability to purchase the playlists as CDs; that is, I click &#8216;burn to CD&#8217; and Spotify mails me a burnt copy of my playlists. Bit of a nice to have, though :)</p>
<p>Check <a title="Spotify [new window]" href="http://www.spotify.com" target="_self">Spotify</a> out. Well worth it, in my most humble opinion.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F06%2F27%2Fthe-joy-of-spotify%2F';
  addthis_title  = 'The+Joy+of+Spotify';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/06/27/the-joy-of-spotify/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sony X-Series NWZ-X1060 Walkman, AVI/WMV Transcoding and Linux (Debian/Ubuntu)</title>
		<link>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-walkman-avi-wmv-transcoding-linux-debian-ubuntu/</link>
		<comments>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-walkman-avi-wmv-transcoding-linux-debian-ubuntu/#comments</comments>
		<pubDate>Thu, 28 May 2009 16:02:34 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[sony]]></category>
		<category><![CDATA[transcoding]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[walkman]]></category>
		<category><![CDATA[wmv]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=72</guid>
		<description><![CDATA[Having purchased my awesome Sony X-Series and begun getting it to work with Linux, I was eager to begin using the OLED display to its full potential. Namely, video and lots of it. Most portable devices support the WMV and MPEG codecs and the X-series is no exception (WMV with/without DRM and MPEG-4, plus H.264 [...]]]></description>
			<content:encoded><![CDATA[<p>Having purchased my awesome Sony X-Series and begun <a title="Sony X-series and Linux [new window]" href="http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-linux-debian-ubuntu/" target="_blank">getting it to work with Linux</a>, I was eager to begin using the OLED display to its full potential. Namely, video and lots of it. Most portable devices support the WMV and MPEG codecs and the X-series is no exception (<strong>WMV with/without DRM and MPEG-4, plus H.264</strong> to be precise). Most AVI files you might have won&#8217;t be compatible with the device which means you have to <strong>transcode</strong>: convert from one codec to another.</p>
<p>There are lots of solutions for transcoding on Linux. Some more simpler than others. The solution I found to work out of the box was <a title="Ubuntu Community Help - Mencoder &amp; AVI/WMV conversion [new window]" href="https://help.ubuntu.com/community/iPodVideoEncoding#Mark%20Pilgrim%27s%20mencoder%20based%20solution" target="_blank">Mark Pilgrim&#8217;s mencoder based solution</a>. I successfully converted from <strong>AVI to WMV</strong> by just running the following commands in a shell/terminal:<br />
<code><br />
sudo aptitude install lsdvd mplayer gpac zenity mencoder<br />
sudo wget http://diveintomark.org/public/2007/06/podencoder.txt -O /usr/local/bin/podencoder<br />
sudo chmod +x /usr/local/bin/podencoder<br />
<strong>podencoder foo.avi</strong><br />
</code></p>
<p>This worked 100% for me. I then just copied the file to the <strong>videos </strong>folder on my Walkman and it worked!</p>
<p>Yay.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F05%2F28%2Fsony-x-series-nwz-x1060-walkman-avi-wmv-transcoding-linux-debian-ubuntu%2F';
  addthis_title  = 'Sony+X-Series+NWZ-X1060+Walkman%2C+AVI%2FWMV+Transcoding+and+Linux+%28Debian%2FUbuntu%29';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-walkman-avi-wmv-transcoding-linux-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sony X-Series NWZ-X1060 and Linux (Debian/Ubuntu)</title>
		<link>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-linux-debian-ubuntu/</link>
		<comments>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-linux-debian-ubuntu/#comments</comments>
		<pubDate>Thu, 28 May 2009 07:49:00 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[portable]]></category>
		<category><![CDATA[sony]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=71</guid>
		<description><![CDATA[Update: if you need to copy videos to your device with Linux, follow my transcoding howto post.
So I ended up having to purchase a new portable media player. I&#8217;d been used to my aged Samsung YP-Z MP3 player for a while with a broken screen; memorising the various menu selections to get where I needed [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>Update</strong><strong>:</strong></span> if you need to copy videos to your device with Linux, follow my <a title="Transcoding videos for WMV, AVI, MPEG4 with Linux [new window, same site]" href="http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-walkman-avi-wmv-transcoding-linux-debian-ubuntu/" target="_blank"><strong>transcoding howto post.</strong></a></p>
<p>So I ended up having to purchase a new portable media player. I&#8217;d been used to my aged Samsung YP-Z MP3 player for a while with a broken screen; memorising the various menu selections to get where I needed to.</p>
<p>Sony have a mixed history with portable media &#8212; from MiniDisc to their Sonicstage software &#8212; so I was skeptical about choosing something from them again.</p>
<p>In short, the <strong>Sony NWZ-X1060 (X series)</strong> portable media player is outstanding. The <strong>OLED 3&#8243; screen</strong> is stunning and vidid and the sound quality is unbelievable. I have Denon C751 earphones and combined with the X series I am hearing new things in tracks I&#8217;ve listened to for a while. It&#8217;s all very, very impressive.</p>
<p>The touch screen is great too. It&#8217;s quick, forgiving, responsive and very thumb friendly. If you&#8217;re unsure about buying it: drop your doubts and go purchase it. I got the 32 GB version and I&#8217;m really happy.</p>
<p>Enough of the propoganda though, there&#8217;s a point to this post. I&#8217;m an avid fan of Linux and this was my main concern when purchasing anything like this. &#8220;Will it work on Linux?!&#8221;.</p>
<p>In short, <strong>yes it works with Linux</strong>. <strong>It will mount just like any other mass-storage device</strong>. Good job Sony!</p>
<p>There are some caveats: mass copying can be a little flaky and I haven&#8217;t found anything to transcode to the WMV + Codec it requires for video (though I&#8217;ve only been look a day as of writing this).</p>
<p>I&#8217;ll keep looking for something that will work with regards to transcoding video.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F05%2F28%2Fsony-x-series-nwz-x1060-linux-debian-ubuntu%2F';
  addthis_title  = 'Sony+X-Series+NWZ-X1060+and+Linux+%28Debian%2FUbuntu%29';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/05/28/sony-x-series-nwz-x1060-linux-debian-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Upgrading to Ubuntu 9.04 (Jaunty Jackalope) from 8.10</title>
		<link>http://blog.beplacid.net/2009/04/23/upgrading-to-ubuntu-904-jaunty-jackalope-from-810-or-earlier/</link>
		<comments>http://blog.beplacid.net/2009/04/23/upgrading-to-ubuntu-904-jaunty-jackalope-from-810-or-earlier/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:30:05 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[9.04]]></category>
		<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=70</guid>
		<description><![CDATA[Run update-manager -c (not -d anymore, that&#8217;s for development releases) in a shell/terminal. This is handy if you don&#8217;t get the upgrade button.

  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F04%2F23%2Fupgrading-to-ubuntu-904-jaunty-jackalope-from-810-or-earlier%2F';
  addthis_title  = 'Upgrading+to+Ubuntu+9.04+%28Jaunty+Jackalope%29+from+8.10';
  addthis_pub    = '';

]]></description>
			<content:encoded><![CDATA[<p>Run <strong>update-manager -c </strong>(not -d anymore, that&#8217;s for development releases) in a shell/terminal. This is handy if you don&#8217;t get the <strong>upgrade button</strong>.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F04%2F23%2Fupgrading-to-ubuntu-904-jaunty-jackalope-from-810-or-earlier%2F';
  addthis_title  = 'Upgrading+to+Ubuntu+9.04+%28Jaunty+Jackalope%29+from+8.10';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/04/23/upgrading-to-ubuntu-904-jaunty-jackalope-from-810-or-earlier/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Virtualbox 2.1.x VBoxAddIf no longer exists (command not found)</title>
		<link>http://blog.beplacid.net/2009/02/16/virtualbox-21x-vboxaddif-no-longer-exists-command-not-found/</link>
		<comments>http://blog.beplacid.net/2009/02/16/virtualbox-21x-vboxaddif-no-longer-exists-command-not-found/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 23:30:25 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=64</guid>
		<description><![CDATA[or, &#8220;What happened to VboxAddIf?!&#8221;
I decided to upgrade to Virtualbox 2.1 the other day as I wanted to keep up to date. It&#8217;s a great bit of software.
One of the VMs I use regularly runs Debian and serves as a development environment and a nagios server for monitoring the various sites I host here at [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>or, &#8220;What happened to VboxAddIf?!&#8221;</strong></em></p>
<p>I decided to upgrade to <strong>Virtualbox 2.1</strong> the other day as I wanted to keep up to date. It&#8217;s a great bit of software.</p>
<p>One of the VMs I use regularly runs Debian and serves as a development environment and a nagios server for monitoring the various sites I host here at beplacid.net. Unfortunately, a command I relied on regularly was <strong>VBoxAddIf</strong> to setup a bridged network device between my host (also Debian) and the guest instance. According to <a title="VirtualBox bug tracker [new window]" href="http://www.virtualbox.org/ticket/3225" target="_blank">this bug report</a>, networking has been completely rewritten in VirtualBox 2.x, therefore VBoxAddIf (the script) is no longer relevant.</p>
<p>There are two ways you can fix this: use the GUI to configure the VM to use one of your host devices, or if you&#8217;re headless, setup the network using <strong>VBoxManage modifyvm</strong>. The <a title="VirtualBox user manual [PDF, new window]" href="http://download.virtualbox.org/virtualbox/2.1.4/UserManual.pdf" target="_blank">user manual</a> (section 8.5.3) has the best collection of information on it. For me, I do the following to force the VM to use my previously created bridge device br0. It&#8217;ll do for now until I&#8217;ve got more time to investigate and do it properly:</p>
<p><code>VBoxManage modifyvm debian -nic1 hostif -hostifdev1 br0</code></p>
<p>You&#8217;ll need to run the command while the VM is not running.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F02%2F16%2Fvirtualbox-21x-vboxaddif-no-longer-exists-command-not-found%2F';
  addthis_title  = 'Virtualbox+2.1.x+VBoxAddIf+no+longer+exists+%28command+not+found%29';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/02/16/virtualbox-21x-vboxaddif-no-longer-exists-command-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why does htop display an exclamation mark next to uptime?</title>
		<link>http://blog.beplacid.net/2009/01/14/why-does-htop-display-an-exclamation-mark-next-to-uptime/</link>
		<comments>http://blog.beplacid.net/2009/01/14/why-does-htop-display-an-exclamation-mark-next-to-uptime/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 11:02:27 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[easteregg]]></category>
		<category><![CDATA[htop]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=62</guid>
		<description><![CDATA[I keep getting the exclamation mark in htop next to the uptime and always wondered why it&#8217;s there. According to this mailing list post it&#8217;s a little easter egg in UptimeMeter.c:

35    char daysbuf[15];
36    if (days &#62; 100) {
37       sprintf(daysbuf, "%d days(!), ", days);
38 [...]]]></description>
			<content:encoded><![CDATA[<p>I keep getting the exclamation mark in htop next to the uptime and always wondered why it&#8217;s there. According to t<a title="htop mailing list post" href="http://sourceforge.net/mailarchive/forum.php?forum_name=htop-general&amp;max_rows=25&amp;style=nested&amp;viewmonth=200707" target="_blank">his mailing list post</a> it&#8217;s a little easter egg in <a title="UptimeMeter.c in htop [new window]" href="http://htop.svn.sourceforge.net/viewvc/htop/trunk/UptimeMeter.c?view=markup" target="_blank">UptimeMeter.c</a>:<br />
<code><br />
35    char daysbuf[15];<br />
36    if (days &gt; 100) {<br />
37       sprintf(daysbuf, "%d days(!), ", days);<br />
38    } else if (days &gt; 1) {<br />
39       sprintf(daysbuf, "%d days, ", days);<br />
40    } else if (days == 1) {<br />
41       sprintf(daysbuf, "1 day, ");<br />
42    } else {<br />
43       daysbuf[0] = '\0';<br />
44    }<br />
</code></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F01%2F14%2Fwhy-does-htop-display-an-exclamation-mark-next-to-uptime%2F';
  addthis_title  = 'Why+does+htop+display+an+exclamation+mark+next+to+uptime%3F';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/01/14/why-does-htop-display-an-exclamation-mark-next-to-uptime/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Careful with sudo &#8211; giving access to vi/vim via sudo could allow someone to wreak havoc</title>
		<link>http://blog.beplacid.net/2009/01/07/careful-with-sudo-giving-access-to-vi-vim-via-sudo-could-allow-someone-to-reak-havoc/</link>
		<comments>http://blog.beplacid.net/2009/01/07/careful-with-sudo-giving-access-to-vi-vim-via-sudo-could-allow-someone-to-reak-havoc/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 14:44:02 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/?p=60</guid>
		<description><![CDATA[sudo can be used to give certain users access to commands that require root. This is handy when you&#8217;ve got lots of users that need to administer the system or software that resides within it. This also means you don&#8217;t have to distribute the . An example would be to allow a user to edit [...]]]></description>
			<content:encoded><![CDATA[<p><strong>sudo</strong> can be used to give certain users access to commands that require root. This is handy when you&#8217;ve got lots of users that need to administer the system or software that resides within it. This also means you don&#8217;t have to distribute the . An example would be to allow a user to edit certain configuration files in a directory that&#8217;s owned by root, and which changing the permissions could be troublesome or yield unknown consequences.</p>
<p>If you&#8217;re an admin and you&#8217;re doing things in this way, <strong>be careful who you give `sudo vi` permissions to</strong>. Allowing someone to access vi through sudo means they can execute <em>anything</em> as root. Vi (or Vim) has the ability to run commands on the OS by just issuing `:! somecommand` within the editor. Therefore, doing a sudo vi means you can `rm -rf`, chgrp or chmod (and everything else), and not have any issues whatsoever.</p>
<p><img class="aligncenter" src="http://beplacid.net/images/misc/sudo-vim-root-command.png" alt="access a command as root via vim" width="477" height="317" /></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2009%2F01%2F07%2Fcareful-with-sudo-giving-access-to-vi-vim-via-sudo-could-allow-someone-to-reak-havoc%2F';
  addthis_title  = 'Careful+with+sudo+%26%238211%3B+giving+access+to+vi%2Fvim+via+sudo+could+allow+someone+to+wreak+havoc';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2009/01/07/careful-with-sudo-giving-access-to-vi-vim-via-sudo-could-allow-someone-to-reak-havoc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu &amp; Xubuntu &#8211; No sound in Audacious</title>
		<link>http://blog.beplacid.net/2008/12/18/ubuntu-xubuntu-no-sound-in-audacious/</link>
		<comments>http://blog.beplacid.net/2008/12/18/ubuntu-xubuntu-no-sound-in-audacious/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 22:57:34 +0000</pubDate>
		<dc:creator>atc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[NoNeedForWindows]]></category>
		<category><![CDATA[Quick post]]></category>
		<category><![CDATA[audacious]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://blog.beplacid.net/2008/12/18/ubuntu-xubuntu-no-sound-in-audacious/</guid>
		<description><![CDATA[mplayer, vlc and even the horrible Totem would play my music, but my favourite media player &#8212; Audacious &#8212; wouldn&#8217;t. I like Audacious because of its plugins and subtle interface. Some searching around the web didn&#8217;t find many solutions except suggesting that the output plugin was incorrect. I managed to fix this by changing from [...]]]></description>
			<content:encoded><![CDATA[<p>mplayer, vlc and even the horrible Totem would play my music, but my favourite media player &#8212; <strong>Audacious</strong> &#8212; wouldn&#8217;t. I like Audacious because of its plugins and subtle interface. Some searching around the web didn&#8217;t find many solutions except suggesting that the <strong>output plugin was incorrect</strong>. I managed to fix this by <strong>changing from pulseaudio to ALSA</strong> in the audio preferences (CTRL+P -&gt; Audio -&gt; Current output plugin). Now I can happily wake my neighbours at 0630 using the excellent Alarm plugin!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fblog.beplacid.net%2F2008%2F12%2F18%2Fubuntu-xubuntu-no-sound-in-audacious%2F';
  addthis_title  = 'Ubuntu+%26%23038%3B+Xubuntu+%26%238211%3B+No+sound+in+Audacious';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://blog.beplacid.net/2008/12/18/ubuntu-xubuntu-no-sound-in-audacious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
