<?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>Brain Goo &#187; linux</title>
	<atom:link href="http://www.popmartian.com/tipsntricks/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.popmartian.com/tipsntricks</link>
	<description>Carpe Crap 'em</description>
	<lastBuildDate>Thu, 20 May 2010 17:52:39 +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>HOWTO Turn off Line Numbers in VI</title>
		<link>http://www.popmartian.com/tipsntricks/2010/05/20/howto-turn-off-line-numbers-in-vi/</link>
		<comments>http://www.popmartian.com/tipsntricks/2010/05/20/howto-turn-off-line-numbers-in-vi/#comments</comments>
		<pubDate>Thu, 20 May 2010 17:52:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How Tos]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/?p=167</guid>
		<description><![CDATA[I always forget how to turn off line numbers in VI.  The answer is:  set nonumbers or set nonu.  It&#8217;s all about the little things&#8230;
]]></description>
			<content:encoded><![CDATA[<p>I always forget how to turn off line numbers in VI.  The answer is:  set nonumbers or set nonu.  It&#8217;s all about the little things&#8230;</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=167&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2010/05/20/howto-turn-off-line-numbers-in-vi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing a File Beginning With Dash -</title>
		<link>http://www.popmartian.com/tipsntricks/2009/10/28/removing-a-file-beginning-with-dash/</link>
		<comments>http://www.popmartian.com/tipsntricks/2009/10/28/removing-a-file-beginning-with-dash/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 18:03:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How Tos]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/?p=124</guid>
		<description><![CDATA[I get this a lot from friends and Google is full of examples, but here it is again.
If you have a file that begins with a hyphen (one of these: -) you&#8217;ll have a tough time removing it unless you remember something simple from Command Line 101.  In most CLI environments, your shell has [...]]]></description>
			<content:encoded><![CDATA[<p>I get this a lot from friends and Google is full of examples, but here it is again.</p>
<p>If you have a file that begins with a hyphen (one of these: -) you&#8217;ll have a tough time removing it unless you remember something simple from Command Line 101.  In most CLI environments, your shell has two ways to access a file: relative path and absolute path.</p>
<p>See, all I had to do was type that and 90% of you just went &#8220;Durr!&#8221; and removed your file.</p>
<p>For the rest of you, just refer to the file by it&#8217;s full path.  Example:</p>
<p><code>/tmp$ ls -la|grep ^\-</code><br />
<code>-rw-r--r--  1 bob bob     0 2009-10-28 12:50 -somefile</code></p>
<p>Oh look, I have a file in /tmp called -somefile.  What ever shall I do to remove it?</p>
<p><code>/tmp$ rm -somefile</code><br />
<code>rm: invalid option -- s</code><br />
<code>Try `rm ./-somefile' to remove the file `-somefile'.</code><br />
<code>Try `rm --help' for more information.</code></p>
<p>Oh my!  That didn&#8217;t work at all! The rm command thinks I&#8217;m passing it a flag called -somefile.  Conveniently, rm knows I&#8217;m not very bright and tells me how to remove it!</p>
<p><code>/tmp$ rm ./-somefile</code><br />
<code>/tmp$</code></p>
<p>Well blow me down!  Alternately, you can refer to the file with the full path:</p>
<p><code>/tmp$ rm /tmp/-somefile</code><br />
<code>/tmp$</code></p>
<p>The key is to remember that the shell knows where you are, but doesn&#8217;t know what you want.  If you imply that you want to delete something, the shell does it&#8217;s best guess.  In this case, it guesses wrong because rm command flags take precedence over arguments.  If you are explicit in what you want, the shell does not have to guess.</p>
<p>Of course, being fully explicit means issuing the full command for rm:</p>
<p><code>/bin/rm /tmp/-somefile</code></p>
<p>But you have to know where rm lives.  You can guess, or you can find it with which:</p>
<p><code>$ which rm</code><br />
<code>/bin/rm</code></p>
<p>But how do you know where which is?</p>
<p><code>``/usr/bin/which which` rm` /tmp/-somefile</code></p>
<p>Ok, that&#8217;s dumb.  Go remove your file.</p>
<blockquote><p>Did you find this post useful or have questions or comments?  Please let me know!</p></blockquote>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=124&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2009/10/28/removing-a-file-beginning-with-dash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating RedHat 9</title>
		<link>http://www.popmartian.com/tipsntricks/2007/12/17/updating-redhat-9/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/12/17/updating-redhat-9/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 22:41:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How Tos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/12/17/updating-redhat-9/</guid>
		<description><![CDATA[Simply: You can&#8217;t.  up2date will not run and RedHat does not provide updated packages.  In 2003 RedHat switched from RedHat9 to Fedora.  If you have an old RedHat box, you will have to migrate to Fedora.  If it is really old, you may just be out of luck.  Next time [...]]]></description>
			<content:encoded><![CDATA[<p>Simply: You can&#8217;t.  up2date will not run and RedHat does not provide updated packages.  In 2003 RedHat switched from RedHat9 to Fedora.  If you have an old RedHat box, you will have to migrate to Fedora.  If it is really old, you may just be out of luck.  Next time keep up with those updates.</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=19&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/12/17/updating-redhat-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian-based machines and the (initramfs) prompt</title>
		<link>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 19:07:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/</guid>
		<description><![CDATA[There are a million pages devoted to initramfs so I won&#8217;t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu or Kbuntu, you may have run in to an issue booting after installing a kernel [...]]]></description>
			<content:encoded><![CDATA[<p>There are a million pages devoted to initramfs so I won&#8217;t go in to what it is, but if you have a Dell 1655 or other machine with serial-attached-SCSI and use Debian or a Debian-derived Linux distribution such as Ubuntu or Kbuntu, you may have run in to an issue booting after installing a kernel update.</p>
<p>Common errors are:</p>
<p>Target filesystem doesn&#8217;t have sbin/init<br />
BusyBox v.1.1.3<br />
/bin/sh: can&#8217;t access tty; job control turned off<br />
(initramfs)</p>
<p>or</p>
<p>mount: Mounting /root/dev on /dev/.static/dev failed: No such file or directory<br />
Done.<br />
Target filesystem doesn&#8217;t have /sbin/init</p>
<p>or</p>
<p>Mounting root file system&#8230;<br />
Running /scripts/local-top&#8230;Done.<br />
Running /scripts/local-premount&#8230;Done.<br />
kjournald starting. Commit interval 5 seconds.<br />
Running /scripts/log-bottom&#8230;Done.<br />
Running /scripts/init-bottom&#8230;<br />
Mounting /root/dev on /dev/.static/dev failed: No such file or directory&#8230;Done.<br />
Mounting /sys on /root/sys filed: No such file or directory<br />
Mounting /proc on /root/proc filed: No such file or directory<br />
Target filesystem doesn&#8217;t have /sbin/init</p>
<p>A common reason for this is simple.  Your GRUB menu is messed up and you swear you didn&#8217;t touch it!</p>
<p>There is a bug somewhere in Debian that changes your filesystem from /dev/sd&lt;something&gt; to /dev/sd&lt;something else&gt;.  Of course changing that will make the system mount root from the wrong partition and BOOM!  No boot for you.</p>
<p>In my case it constantly changes my boot partition from /dev/sda1 to /dev/sdb1 which is really annoying.  If I don&#8217;t update /boot/grub/menu.lst before I reboot, my system will not come back.</p>
<p>Lucky for you Debian has BusyBox and initramfs with the 2.6 kernel.</p>
<p>You will have to be on the console for this, but here is how to get up and running:</p>
<ul>
<li>Boot up your broken system.</li>
<li>(initramfs) is actually a prompt, so:
<ul>
<li><code>(initramfs) cd /</code></li>
</ul>
</li>
<li><code>(initramfs) mkdir /mnt</code> Make a directory in the RAM filesystem.</li>
<li><code>(initramfs) mount /dev/sda1 /mnt</code> Mount your REAL root partition there.</li>
<li><code>(initramfs) vi /mnt/boot/grub/menu.lst</code> Edit your menu.lst file to load the correct partition (toward the bottom)</li>
<li><code>(initramfs) reboot</code></li>
</ul>
<p>In my most recent case, the line:</p>
<p><code>kernel          /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro</code></p>
<p>Was changed to </p>
<p><code>kernel          /boot/vmlinuz-2.6.18-4-686 root=/dev/sdb1 ro</code></p>
<p>If I change it back before I reboot, I don&#8217;t have an issue.</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=15&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/08/09/debian-based-machines-and-the-initramfs-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poor man&#8217;s calendar server with iCal and Mozilla</title>
		<link>http://www.popmartian.com/tipsntricks/2007/07/25/poor-mans-calendar-server-with-ical-and-mozilla/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/07/25/poor-mans-calendar-server-with-ical-and-mozilla/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 18:54:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Calendaring]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Sunbird]]></category>
		<category><![CDATA[WebDav]]></category>
		<category><![CDATA[iCal]]></category>
		<category><![CDATA[lightning]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/07/25/poor-mans-calendar-server-with-ical-and-mozilla/</guid>
		<description><![CDATA[It&#8217;s easy to set up a shared calendar system with free software that scales well for a few users (great for a home network) and has tons of support from third parties.
What you need:

iCal client like Sunbird or Lightning from Mozilla
Apache web server with WebDav installed

How to do it:

Install WebDav and password protect a public [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy to set up a shared calendar system with free software that scales well for a few users (great for a home network) and has tons of support from third parties.</p>
<p>What you need:</p>
<ul>
<li>iCal client like <a href="http://www.mozilla.org/projects/calendar/sunbird/">Sunbird</a> or <a href="http://www.mozilla.org/projects/calendar/lightning/">Lightning</a> from Mozilla</li>
<li>Apache web server with WebDav installed</li>
</ul>
<p>How to do it:</p>
<ol>
<li>Install WebDav and password protect a public directory on your web server.</li>
<li>Touch a .ics file for your calendar.  I called mine matt.ics</li>
<li>chmod the directory so the web user can create files and modify the .ics file</li>
<li>Install and configure an iCal client that can publish via WebDav.  <a href="http://www.mozilla.org/projects/calendar/sunbird/">Sunbird</a> is excellent for this.</li>
<li>Remove your local calendar from Sunbird</li>
<li>Add a calendar to Sunbird using the URL to your empty .ics file</li>
<li>Add an event to your calendar.  Sunbird should modify the .ics file on your web server.  You will probably be prompted for the username and password on the first try.</li>
<li>Add that calendar to as many clients as you want.  They can all share the calendar.  Create more calendars!  Party!</li>
</ol>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=12&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/07/25/poor-mans-calendar-server-with-ical-and-mozilla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian GCC libc package required</title>
		<link>http://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 23:07:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[gcc]]></category>
		<category><![CDATA[libc]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/</guid>
		<description><![CDATA[If you use Debian with a &#8220;standard&#8221; or &#8220;desktop&#8221; install, you will not have GCC installed.  Of course you can easily get it by installing the package:
apt-get install gcc
And of course you need make
apt-get install make
What you don&#8217;t know is that you won&#8217;t be able to do anything without your C library and headers. [...]]]></description>
			<content:encoded><![CDATA[<p>If you use Debian with a &#8220;standard&#8221; or &#8220;desktop&#8221; install, you will not have GCC installed.  Of course you can easily get it by installing the package:</p>
<p><code>apt-get install gcc</code></p>
<p>And of course you need make</p>
<p><code>apt-get install make</code></p>
<p>What you don&#8217;t know is that you won&#8217;t be able to do anything without your C library and headers.  You will get errors that your compiler cannot make executables.</p>
<p>The package you want is libc6-dev</p>
<p><code>apt-get install libc6-dev</code></p>
<p>Much better!</p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=11&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/07/10/debian-gcc-libc-package-required/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
