<?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>Yet Another Linux Blog &#187; Tips</title>
	<atom:link href="http://linux-blog.org/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux-blog.org</link>
	<description>Open Source, Open Blog</description>
	<lastBuildDate>Mon, 30 Aug 2010 14:18:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Installing Openbox on Foresight Linux</title>
		<link>http://linux-blog.org/installing-openbox-on-foresight-linux/</link>
		<comments>http://linux-blog.org/installing-openbox-on-foresight-linux/#comments</comments>
		<pubDate>Mon, 31 May 2010 00:36:19 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[foresight]]></category>
		<category><![CDATA[openbox]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[window manager]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1540</guid>
		<description><![CDATA[My friend Og Maciel originally introduced me to Openbox a while back and I’ve been using it ever since. I love the lightweight feel, the ability to customize and the center around having NO icons on my desktop.  I don’t feel cluttered when I work! Today, we&#8217;re going to go over installing Openbox with some [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/unity-2010-beta-2-impressions/' rel='bookmark' title='Permanent Link: Unity 2010 Beta 2 Impressions'>Unity 2010 Beta 2 Impressions</a> <small>As noted previously, I&#8217;ve been pretty hard pressed lately in...</small></li>
<li><a href='http://linux-blog.org/clarification-on-foresight-and-fedora/' rel='bookmark' title='Permanent Link: Clarification on Foresight and Fedora'>Clarification on Foresight and Fedora</a> <small>I previously wrote about a possible &#8220;rebasing&#8221; of Foresight Linux...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>My friend <a title="http://www.ogmaciel.com/" href="http://www.ogmaciel.com/" target="_blank">Og  Maciel</a> originally introduced me to Openbox a   while back and I’ve  been using it  ever since.  I love the lightweight   feel, the ability to customize and  the center around having NO icons  on  my desktop.  I don’t feel cluttered  when I work! Today, we&#8217;re going  to  go over installing Openbox with some added tools.  This tutorial is   tailored  for Foresight Linux but the guide may very well serve other    distros as well.</p>
<h2><span style="text-decoration: underline;"><span style="font-weight: normal;">What is Openbox?</span></span></h2>
<p>From <a title="openbox homepage" href="http://openbox.org/wiki/Main_Page" target="_blank">the Openbox    homepage</a>, &#8220;Openbox is a minimalistic,  highly configurable, next    generation window manager with extensive  standards support.&#8221;  From    using it, I often think of it as fluxbox-like with  the benefits of    being able to dip into Gnome or KDE for the items that I  want to use.     Your desktop will then run with speed and simplicity using  only the    elements you want to use with it.</p>
<h2><span style="text-decoration: underline;"><span style="font-weight: normal;">So&#8230;Let&#8217;s get Started&#8230;</span></span></h2>
<p>This How-To will assume that you&#8217;re running Foresight Linux, you&#8217;re     logged into Gnome and that you&#8217;re familiar with conary, the package     manager for Foresight.  First and foremost, install openbox:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ sudo conary update openbox obmenu obconf</pre>
<p>This installs the needed components to run Openbox on your system.     Openbox is minimal by default though so if you login to the environment     now for the first time, there will be no taskbars, nothing&#8230;just a    large  blank area for you to work with. We will need to install some    extra  components to give a bit more functionality. If you&#8217;d like a    panel menu,  I recommend using <a title="tint2 home page" href="http://code.google.com/p/tint2" target="_blank"><strong>tint2</strong></a>.    I used to use pypanel which is a small panel written in python but   this  panel is no longer developed.</p>
<p>There are other panels that are packaged with openbox in mind for     Foresight; <a href="http://fbpanel.sourceforge.net/" target="_blank">fbpanel</a> is available, which is a very fast and functional menu bar.  I like <a href="http://www.gnomefiles.org/app.php/LXPanel">lxpanel</a> also,     which is fbpanel with some easier configuration options.  For a full     list, please see <a title="openbox documentation" href="http://openbox.org/wiki/Help:Contents" target="_blank">openbox     documentation</a>.  For our purposes here, we will install tint2:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ sudo conary update tint2</pre>
<p>Now we need to copy the default configuration file for tint2 so we     can build our panel to our liking.  You&#8217;ll have to create the default    path for the tint2rc configuration file.  To do this and copy the  config file:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ mkdir -p ~/.config/tint2/
[devnet@lostlap Desktop]$ cp /etc/xdg/tint2/tint2rc ~/.config/tint2/</pre>
<p>Now tint2 has a configuration file in place and is ready for Openbox  to start.</p>
<h2><span style="text-decoration: underline;"><span style="font-weight: normal;">Let the Configuration Begin!</span></span></h2>
<p>The hard part (install) is now out of the way thanks to the conary     package manager. Now we need to configure Openbox so that it&#8217;s ready  for    us when we log out of Gnome. The configuration files will need to  be    copied to /home/user/.config/openbox.  Of course, this path  doesn&#8217;t   exist yet so we&#8217;ll need to create it like this:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ mkdir -p ~/.config/openbox/</pre>
<p>Visiting there now will show that there aren&#8217;t any files in this     directory.  The file we&#8217;ll absolutely need to place there is <em>autostart.sh</em>.     Other files that will be in here are <em>rc.xml</em> which is for   obconf  (openbox  configuration) and <em>menu.xml</em> (openbox menu   system).   We&#8217;ll copy menu.xml  from a default copy there later.  The   other file  should auto-create when  loading for the first time (rc.xml)</p>
<p>The autostart.sh file is what starts all of our services and our    tint2 panel we just installed as well as setup our wallpaper and other     items.  Instead of <a title="Autostart Options" href="http://openbox.org/wiki/Help:Autostart" target="_blank">going    through the options</a> you can place in here, I&#8217;m  going to share my    autostart.sh to get you up and running quickly.  Please note that if  you   chose not to install fbpanel and use the  gnome-panel or other  panel   instead, you&#8217;ll need to comment the pypanel  line below and  uncomment   what you&#8217;ll be using:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$  cat autostart.sh
# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.
##############################################################
# Panel Section
##############################################################
# pypanel, my favorite panel for openbox
#(sleep 3 &amp;&amp; pypanel) &amp;
# Use the wbar Launcher if you would like.  Don't forget to install it before uncommenting
# wbar &amp;
(sleep 3 &amp;&amp; tint2) &amp;

#############################################################
# Gnome Integration Section
#############################################################
# This section let's Gnome give us some of its desktopiness
gnome-power-manager &amp;
nm-applet --sm-disable &amp;
/usr/libexec/gnome-settings-daemon &amp;
gnome-volume-manager --sm-disable &amp;
gnome-keyring-daemon &amp;

###########################################################
# Other Add-on's for Openbox
###########################################################
# Make your wallpaper restore to last setting using Nitrogen.
nitrogen --restore &amp;
parcellite &amp;
volumeicon &amp;
################################# End ###################</pre>
<p><a href="../../uploads/autostart.sh">Download my autostart.sh</a></p>
<p>To create the menu system file for openbox, we&#8217;ll copy from the     default installation to our .config/openbox directory (so we can use     obmenu&#8230;otherwise, that command will give us an error) so use the     following command in a terminal:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ cp /etc/xdg/openbox/menu.xml ~/.config/openbox/</pre>
<p>Now you&#8217;re ready to login and reap what you have sown <img src='http://linux-blog.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Logout of     Gnome and change sessions in GDM to Openbox.  Notice that your tint2    panel  starts up and has the gnome applications we recorded in the    autostart.sh  file above running and docked! You can add more options to    your  autostart.sh file and you can also edit tint2rc (in your    /home/user/.config/tint2  directory) to store settings for your panel.</p>
<h2><span style="text-decoration: underline;"><span style="font-weight: normal;">I&#8217;ve Installed and am Running, Now What?</span></span></h2>
<p>Now you get to customize the Openbox menu with your favorite     applications. Menus are activated by right clicking anywhere on the     desktop. There are a few default applications&#8230;I choose obconf right     away so that I can choose a theme I like and increase the text size     since I&#8217;m using a high resolution. After that is done, I right click for     the menu again and go to applications &gt;&gt; xterm. When the    terminal  pops up, I type obmenu. From there, I&#8217;ll be able to edit my    right click  menu.</p>
<p>Now instead of entering obmenu in a terminal each time, let&#8217;s add it     to our right click options. In the obmenu window that you opened in   the  last  paragraph, expand the Openbox 3 option. Find obconf and   highlight  it.  Click &#8216;new item&#8217; and add obmenu for a label, execute for   action,  and  obmenu for Execute. This will add obmenu to your right   click  options so  you don&#8217;t have to open a terminal each time to do   things.  You can also  customize any of the items you find in   applications&#8230;I  put a few things  I normally need such as thunderbird,   firefox,  gnome-terminal, etc. Feel  free to add whatever you   need&#8230;you can have  many submenu&#8217;s . It&#8217;s  setup is pretty   straightforward.</p>
<p>Nitrogen, the wallpaper manager, requires a small tweak as well to get working.  What I did     was create a /home/username/Photos/Wallpaper directory and then loaded    it up  with my favorite desktop wallpaper.  Good places to go for  cool    wallpapers are <a title="desktopography.com" href="http://desktopography.com" target="_blank">desktopography.com</a> and <a title="vladstudio.com" href="http://vladstudio.com" target="_blank">vladstudio.com</a>.  Next, install Nitrogen:</p>
<pre class="brush: plain;">[devnet@lostlap Desktop]$ sudo conary update Nitrogen</pre>
<p>After your first login, you&#8217;ll need to add a menu entry using obmenu     to call the nitrogen browser.  So create the menu entry and the  action    you call is:</p>
<p><em>nitrogen  /home/username/Photos/wallpaper</em></p>
<p>Of course, replace &#8216;username&#8217; with your users name.  This will allow you to open up all the wallpaper photos inside of    that directory.</p>
<h2><span style="text-decoration: underline;"><span style="font-weight: normal;">So What Have we Done?</span></span></h2>
<p>Today, we&#8217;ve installed Openbox on Foresight Linux. We&#8217;ve given  it a    tint2 panel so we have a place to dock applications and we&#8217;ve     customized the Openbox right click menu and added a wallpaper program     called Nitrogen. Hopefully, this shows you the customizable features of     Openbox and also shows you the speed that Openbox operates at. It&#8217;s a     very minimalistic environment, yet one that can be very powerful.</p>
<h3><span style="text-decoration: underline;"><span style="font-weight: normal;">Installation Notes of Interest</span></span></h3>
<p><em>tint2</em></p>
<p>Tint2 is my newly crowned favorite panel for openbox.  It&#8217;s    lightweight and is able to be configured in so many ways.  I added the    sleep command inside my autostart.sh to make sure that the desktop is    loaded before the tint2 panel tries to load&#8230;mostly, this is due to    network manager wanting to animate while the panel loads.  This isn&#8217;t as    much problem with tint2 as it is with pypanel (see below).</p>
<p><em>pypanel </em></p>
<p>Some things I&#8217;ve noticed when running openbox&#8230;network manager has     problems with pypanel. I added the sleep command inside my  autostart.sh    and this is much better now&#8230;but there may be similar  problems with    network manager. It&#8217;s really NM searching for a network  and it causes    the panel to flicker a bit. Not a real show stopper.</p>
<p><em>Gnome-panel</em></p>
<p>Gnome-panel running inside openbox causes a few errors to pop up when     I login. This could be due to the fact that I&#8217;ve started things in  my    autostart.sh out of order&#8230;I&#8217;m also not all together sure what is     causing these errors. The problem seems to be with the docking area  of    gnome-panel as when I minimize programs they are not docked.  Easily    fixable, but annoying nonetheless.</p>
<p><em>Alternative Panels</em></p>
<p>There are quite a few alternative panels out there.  Fbpanel is one.     Perlpanel is another.  Fbpanel and lxpanel are available in the    Foresight  repositories. You can also add other launchers like wbar if    you so  desire.</p>
<h2><span style="font-weight: normal;">Screenshot</span></h2>
<div id="attachment_1552" class="wp-caption alignnone" style="width: 555px"><a href="http://linux-blog.org/wp-content/uploads/2010/05/desktop.png"><img class="size-full wp-image-1552   " title="desktop" src="http://linux-blog.org/wp-content/uploads/2010/05/desktop.png" alt="Openbox on Foresight" width="545" height="340" /></a><p class="wp-caption-text">Openbox on Foresight</p></div>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/unity-2010-beta-2-impressions/' rel='bookmark' title='Permanent Link: Unity 2010 Beta 2 Impressions'>Unity 2010 Beta 2 Impressions</a> <small>As noted previously, I&#8217;ve been pretty hard pressed lately in...</small></li>
<li><a href='http://linux-blog.org/clarification-on-foresight-and-fedora/' rel='bookmark' title='Permanent Link: Clarification on Foresight and Fedora'>Clarification on Foresight and Fedora</a> <small>I previously wrote about a possible &#8220;rebasing&#8221; of Foresight Linux...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/installing-openbox-on-foresight-linux/" rel="bookmark">Installing Openbox on Foresight Linux</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on May 30, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/installing-openbox-on-foresight-linux/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Backup Directories and Subdirectories Preserving File Structure</title>
		<link>http://linux-blog.org/backup-directories-and-subdirectories-preserving-file-structure/</link>
		<comments>http://linux-blog.org/backup-directories-and-subdirectories-preserving-file-structure/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 03:14:09 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1451</guid>
		<description><![CDATA[I needed a quick way to backup my small music collection on my laptop and preserve the complete file structure and permissions.  There are a few ways to do this of course&#8230;for example, you can just copy the files using whatever file manager you happen to be using in your Linux distribution.  In some cases [...]


Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/installing-openbox-on-foresight-linux/' rel='bookmark' title='Permanent Link: Installing Openbox on Foresight Linux'>Installing Openbox on Foresight Linux</a> <small>My friend Og Maciel originally introduced me to Openbox a...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I needed a quick way to backup my small music collection on my laptop and preserve the complete file structure and permissions.  There are a few ways to do this of course&#8230;for example, you can just copy the files using whatever file manager you happen to be using in your Linux distribution.  In some cases though, you might want your backup to take up less space than the full monty.  Especially true if you are backing up to thumb drives!</p>
<p>You can use the <em>tar</em> command to make this a snap.</p>
<p>Tar combines multiple files into an archive and you can use it to preserve permissions and file structure and then you can compress the archive to save space.</p>
<pre class="brush: plain;">tar -c --recursion -p --file=backup.tar directory</pre>
<p>The <em>-c</em> flag creates an archive for us. <em> &#8211;recursion</em> goes through all subdirectories.  The <em>-p</em> flag preserves permissions on all the files.  This is handy if you have certain folders or files that you need to sticky with individual users or groups.  The <em>&#8211;file</em> flag is the option for outputting to a file name.  You can also add multiple directories that you&#8217;re zipping up like the following:</p>
<pre class="brush: plain;">tar -c --recursion -p --file=backup.tar directory1 directory2 directory3</pre>
<p>After you have the file output as <em>backup.tar</em> it&#8217;s time to compress it.  The most standard way to do this is to use the gzip command:</p>
<pre class="brush: plain;">gzip backup.tar</pre>
<p>This command will output <em>backup.tar.gz</em> to the current directory which will take up less space than that of a standard 1-to-1 copy.  There are many other flags and options that you can use with the tar command.  For an in depth look at those flags and options, check the tar man page by typing &#8216;man tar&#8217; in a terminal or view it <a title="tar man page" href="http://unixhelp.ed.ac.uk/CGI/man-cgi?tar" target="_blank">online here</a>.</p>
<p><strong>UPDATE:</strong></p>
<p>Commenter &#8216;jack&#8217; has offered a few extra flags to combine the archiving and zipping into one command:</p>
<pre class="brush: plain;">tar -c -z --recursion -p --file=backup.tar directory1 directory2 directory3</pre>
<p>The <em>-z</em> flag will gzip the archive after you&#8217;ve used <em>tar </em>to create it.  Substituting <em>-j</em> in for <em>-z</em> above will bzip the archive.  Thanks for the tips jack!</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/installing-openbox-on-foresight-linux/' rel='bookmark' title='Permanent Link: Installing Openbox on Foresight Linux'>Installing Openbox on Foresight Linux</a> <small>My friend Og Maciel originally introduced me to Openbox a...</small></li>
<li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/backup-directories-and-subdirectories-preserving-file-structure/" rel="bookmark">Backup Directories and Subdirectories Preserving File Structure</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on April 14, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/backup-directories-and-subdirectories-preserving-file-structure/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Convert PNG to GIF via Command Line</title>
		<link>http://linux-blog.org/convert-png-to-gif-via-command-line/</link>
		<comments>http://linux-blog.org/convert-png-to-gif-via-command-line/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:24:03 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1260</guid>
		<description><![CDATA[I installed a bare bones Arch Linux system today and took a screenshot.  With no graphics utilities installed, I needed a way to convert a PNG to a GIF for a Simple Machines forum template thumbnail.  I figured I&#8217;d use a command line utility to help me and ImageMagick is installed by default on most [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I installed a bare bones Arch Linux system today and took a screenshot.  With no graphics utilities installed, I needed a way to convert a PNG to a GIF for a Simple Machines forum template thumbnail.  I figured I&#8217;d use a command line utility to help me and ImageMagick is installed by default on most distributions.  A quick read through the ImageMagick manpage and I found the <em>convert</em> command and thought I&#8217;d share it with everyone.  Use convert in the following fashion:  <strong>convert [input-options] input-file [output-options] output-file</strong></p>
<pre class="brush: plain;">convert SMFPress.png -channel Alpha -threshold 80% -resize 120x120 thumbnail.gif</pre>
<p>This did a quick, same-size conversion with little loss for me to display the thumbnail online.  For more information on the options I used and other options that I didn&#8217;t use, take a peek at the<a title="ImageMagick Help Convert" href="http://www.imagemagick.org/script/convert.php" target="_blank"> ImageMagick Online Help Page for convert.</a></p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/convert-png-to-gif-via-command-line/" rel="bookmark">Convert PNG to GIF via Command Line</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 6, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/convert-png-to-gif-via-command-line/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Adding Color to Bash List Command Part II</title>
		<link>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/</link>
		<comments>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 18:25:16 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1209</guid>
		<description><![CDATA[I previously blogged about how to add color to the &#8216;ls&#8217; command utilizing an config file and alias.  I then stumbled across a nugget of wisdom from a Foresight Linux user on the developers mailing list who gave a handy command that remedies some problems with missing color in a terminal. On some distributions, the [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://linux-blog.org/adding-color-to-bash-list-command/" target="_blank">previously blogged about how to add color to the &#8216;ls&#8217; command</a> utilizing an config file and alias.  I then stumbled across a nugget of wisdom from a Foresight Linux user on the developers mailing list who gave a handy command that remedies some problems with missing color in a terminal.</p>
<p>On some distributions, the system-wide <em>/etc/DIR_COLORS</em>* files are removed or not present.  This results in no colors being given inside of a terminal when looking for color directories and filenames.  If you find yourself in this boat, try the following command to re-populate this setting:</p>
<pre class="brush: bash;">devnet-&gt; cd ~/
devnet-&gt; dircolors -p &gt;.dircolors
</pre>
<p>This should create a default profile for colors for your session if it hasn&#8217;t been done or was accidentally removed.  For more information on the dircolors command try &#8216;man dircolors&#8217;.  Please also note that <em>dircolors</em> command uses the environmental variable LS_COLORS to set your session.</p>
<p>For more information on LS_COLORS and how it pertains to the terminal/shell/cli/prompt, there are a few blog posts that do an excellent job explaining <a href="http://twistedcode.blogspot.com/2008/04/lscolors-explained.html" target="_blank">here</a>, <a href="http://linux-sxs.org/housekeeping/lscolors.html" target="_blank">here</a> and <a href="http://www.bigsoft.co.uk/blog/index.php/2008/04/11/configuring-ls_colors" target="_blank">here</a>.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/adding-color-to-bash-list-command-part-ii/" rel="bookmark">Adding Color to Bash List Command Part II</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on September 8, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/adding-color-to-bash-list-command-part-ii/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding Color to Bash List Command</title>
		<link>http://linux-blog.org/adding-color-to-bash-list-command/</link>
		<comments>http://linux-blog.org/adding-color-to-bash-list-command/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 21:00:06 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=1067</guid>
		<description><![CDATA[One of the things I love is being able to enter into a directory via terminal, list the contents, and quickly see which ones are executable or not and which ones are directories or are not directories IN COLOR (not everyone is perfect right?).  This is specifically handy as I move through working with Slackware [...]


Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/installing-openbox-on-foresight-linux/' rel='bookmark' title='Permanent Link: Installing Openbox on Foresight Linux'>Installing Openbox on Foresight Linux</a> <small>My friend Og Maciel originally introduced me to Openbox a...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>One of the things I love is being able to enter into a directory via terminal, list the contents, and quickly see which ones are executable or not and which ones are directories or are not directories IN COLOR (not everyone is perfect right?).  This is specifically handy as I move through working with <a href="http://slackware.com">Slackware</a> based distributions like the one I&#8217;m using now, <a href="http://zenwalk.org">Zenwalk</a> Linux 6 and the <em>/etc/rc.d/</em> directory.  Most of the Red Hat based distributions out there that I&#8217;ve used have this set automatically&#8230;so I&#8217;m used to it.  When I opened up a terminal in Zenwalk I found no color. A quick investigation of <em>~/.bashrc</em> showed me that there are aliases set to display color&#8230;instead of ls I&#8217;d just use the letter L; 2 l&#8217;s for another option, 3 for another.  It&#8217;s interesting, but not normally how I do business.  See bashrc below:</p>
<pre class="brush: bash; highlight: [2,3,4];">
devnet[~]$ cat ~/.bashrc
alias lll=&quot;ls -al --color&quot;
alias ll=&quot;ls -l --color&quot;
alias l='ls --color'&lt;br /&gt;alias search='find . -name'
alias aterm=&quot;aterm -fg white -tr&quot;
alias version='cat /etc/zenwalk-version'
alias dh='df -h'&lt;br /&gt;export PS1='\u[\W]\$ '
export PAGER=&quot;most&quot;&lt;br /&gt;devnet[~]$
</pre>
<p>I don&#8217;t use those aliases much&#8230;others of you might do the &#8216;ll&#8217; or &#8216;lll&#8217; but it&#8217;s just not part of my routine.  So, I added in just after line 4 in the code above:</p>
<pre class="brush: bash;">
alias ls='ls --color'
</pre>
<p>You can do this a few different ways&#8230;with any command line editor like emacs, vi, or nano/pico.  It&#8217;s really up to you.  The easiest way for new users is to use a text editor:</p>
<pre class="brush: bash;">
devnet[~]$ mousepad ~/.bashrc
</pre>
<p>This will launch the mousepad text editor in XFCE.  If you&#8217;re in Gnome, try gedit.  If KDE, give kwrite a try.  You should see something like the following window pop up for editing:</p>
<p style="text-align: left;"><a href="http://linux-blog.org/wp-content/uploads/2009/06/bashrc.png"><img class="aligncenter size-full wp-image-1084" style="rel=&quot;lightbox&quot;" title="bashrc" src="http://linux-blog.org/wp-content/uploads/2009/06/bashrc.png" alt="bashrc" width="188" height="131" /></a>You should see in the picture above, I&#8217;ve added in the alias needed to make me comfortable.  After that, File &gt;&gt; Save.  You&#8217;re set!  Except, you may notice that when you type the command &#8216;ls&#8217; there are no colors.  So what gives?  Well, we haven&#8217;t loaded our <em>./bashrc</em> since we changed it.  You don&#8217;t have to logout and back in to get things to work though&#8230;you can do this right from the terminal:</p>
<pre class="brush: bash;">
devnet[~]$ exec bash
</pre>
<p>Now try giving the &#8216;ls&#8217; command a try again and you should see that it is in color.  I know a lot of the more advanced Linux guys out there are probably saying, &#8220;why&#8217;d he waste a post on this!  It&#8217;s easy&#8221; and you&#8217;d be right for a majority of users out there&#8230;I hope that this post finds some new user out there that may be stuck for an answer on how to do this.  One final note on this as well: You will have to do this as the root user and change <em>/root/.bashrc</em> in order for your root user to also have color.  Thanks for reading!<br />
<script type="text/javascript">// < ![CDATA[
google_ad_client = "pub-3982453702542240";
/* 468x15, created 6/24/09 */
google_ad_slot = "6181047080";
google_ad_width = 468;
google_ad_height = 15;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/adding-color-to-bash-list-command-part-ii/' rel='bookmark' title='Permanent Link: Adding Color to Bash List Command Part II'>Adding Color to Bash List Command Part II</a> <small>I previously blogged about how to add color to the...</small></li>
<li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
<li><a href='http://linux-blog.org/installing-openbox-on-foresight-linux/' rel='bookmark' title='Permanent Link: Installing Openbox on Foresight Linux'>Installing Openbox on Foresight Linux</a> <small>My friend Og Maciel originally introduced me to Openbox a...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/adding-color-to-bash-list-command/" rel="bookmark">Adding Color to Bash List Command</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on June 5, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/adding-color-to-bash-list-command/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Laptop Multimedia Keys and PCLinuxOS 2009</title>
		<link>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/</link>
		<comments>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 02:35:36 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Kwhat?]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PCLinuxOS]]></category>
		<category><![CDATA[tips and tricks]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=927</guid>
		<description><![CDATA[I installed PCLinuxOS 2009 recently on a Dell D630 Latitude and was disappointed to see that I couldn&#8217;t get the hardware volume (up/down/mute) buttons didn&#8217;t work out of the box.  I thought a bit about kmilo, a program that was previously used for laptop buttons (thinkpad buttons though) and I searched around a bit inside [...]


Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I installed PCLinuxOS 2009 recently on a Dell D630 Latitude and was disappointed to see that I couldn&#8217;t get the hardware volume (up/down/mute) buttons didn&#8217;t work out of the box.  I thought a bit about kmilo, a program that was previously used for laptop buttons (thinkpad buttons though) and I searched around a bit inside the KDE Control Center for keyboard shortcuts to see if I could assign the keys manually.  However, I couldn&#8217;t find any volume setting inside this menu.</p>
<p>Then, it hit me, I had remembered seeing volume settings before&#8230;inside kmix; there is an area for assigning global shortcuts for volume and mute!  This should work for anyone running KDE 3.5.8 and above (I think).  Left click on Kmix in your tray and choose the mixer button.  From there, choose <em>Settings &gt;&gt; Configure Global Shortcuts</em>.  Now assign the volume up, down, and mute keys manually by clicking in the blank and pressing the hardware button.  This should work for a majority of people out there.  For me though, this didn&#8217;t work.  When pressing the keys, nothing happened.  I thought I was doomed.</p>
<p>I researched a bit more and found that installing a program called keytouch would allow me to, at the very least, program my keyboard in any way I wanted to program it.  I opened Synaptic and installed keytouch and keytouch-editor.  After install, I went to <em>Kmenu &gt;&gt; System &gt;&gt; Configuration &gt;&gt; Hardware &gt;&gt; Keytouch</em>.  It prompted me to choose my keyboard.  Since it didn&#8217;t have the Dell D630, I chose the closest thing which was the Dell D800.  I closed the application and now the volume buttons and mute button works!  Keytouch also has the ability to manually edit and also to import keytouch &#8216;schemas&#8217; to give maximum flexibility.  Hopefully, this helps some of you out there that cannot get your multimedia keys working in PCLinuxOS and KDE to work!</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/" rel="bookmark">Laptop Multimedia Keys and PCLinuxOS 2009</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on March 17, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/laptop-multimedia-keys-and-pclinuxos-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force Firefox to Remember Initial Window Setting in KDE</title>
		<link>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/</link>
		<comments>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 15:43:21 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PCLinuxOS]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=894</guid>
		<description><![CDATA[I have a laptop with the resolution of 1440&#215;900&#8230;so when I installed the latest TR6 from PCLinuxOS, I was dismayed to find out that when launching Firefox, it opened up in a window that was 1024 pixels. Of course, I maximized this and then closed it thinking that Firefox would remember my settings. The problem [...]


Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I have a laptop with the resolution of 1440&#215;900&#8230;so when I installed the latest TR6 from PCLinuxOS, I was dismayed to find out that when launching Firefox, it opened up in a window that was 1024 pixels.  Of course, I maximized this and then closed it thinking that Firefox would remember my settings.  The problem is&#8230;it didn&#8217;t remember my settings.</p>
<p>When I opened Firefox up again, it popped up to say hello once again at 1024 pixels.  Sure, you can right click on the Firefox window bar and drill down into application specific settings via KDE (yes, it&#8217;s that configurable) but I didn&#8217;t want to have to do this&#8230;because if I did, ALL Firefox windows would open up maximized&#8230;and that includes any pop-ups as well.  I also know that you can drill down even further to fix THAT problem.  However, it should &#8216;just work&#8217; right?  You shouldn&#8217;t have to change anything at all correct?  Well, I&#8217;ve found a fix that is pretty easy to accomplish&#8230;and I hope it helps the hundreds of people I found when searching through google on this.</p>
<p>Open up Firefox and it will open at the smaller screen size&#8230;in my case, it opened up 1024 px in width on my 1440px screen.  Then, hover over the top right hand corner with your mouse until you get the resize arrow.  Resize the window click dragging it to the top, right hand corner of the screen.  It should &#8216;snap-in&#8217; once you get close to maximized size.  Now close the window, and open Firefox again.  It should open up fully maximized.</p>
<p>I sure hope this saves someone time&#8230;because I spent the better part of a morning trying to fix this.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/" rel="bookmark">Force Firefox to Remember Initial Window Setting in KDE</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on February 10, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/force-firefox-to-remember-initial-window-setting-in-kde/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install the Latest Kernel in PCLinuxOS</title>
		<link>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/</link>
		<comments>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 20:33:21 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Distros]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[PCLinuxOS]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=826</guid>
		<description><![CDATA[Do you run PCLinuxOS 2007 or Minime 2008 and would you like to take advantage of the latest kernel for PCLinuxOS?  You can do this by enabling the &#8216;testing&#8217; portion of the repository. Read about Repository Control in PCLinuxOS You&#8217;ll be looking for the &#8216;sections&#8217; blank when viewing repository details and you&#8217;ll just need to [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Do you run PCLinuxOS 2007 or Minime 2008 and would you like to take advantage of the latest kernel for PCLinuxOS?  You can do this by enabling the &#8216;testing&#8217; portion of the repository.</p>
<p><a href="http://oldwiki.mypclinuxos.com/index.php?title=Repository">Read about Repository Control in PCLinuxOS</a></p>
<p>You&#8217;ll be looking for the &#8216;sections&#8217; blank when viewing repository details and you&#8217;ll just need to add &#8216;testing&#8217; to the end of the line (don&#8217;t replace the entires there already).  Once that is done, click the reload button in Synaptic and allow it to refresh your local rpm cache.</p>
<p>Click the &#8216;search&#8217; button and search for the keyword &#8216;kernel&#8217;.  Look for the highest number of kernel that is returned.  At the time of this writing, the 2.6.26.8 kernel was the newest kernel for PCLinuxOS (it has .27 patches all over in it&#8230;so it&#8217;s quite a nice kernel).  Click and install that kernel and allow it to select any packages it needs to install.  Once installed, you can remove the word testing from the repository (this is recommended to prevent your system from downloading ALL testing packages/updates) and click the reload button for Synaptic.</p>
<p>Reboot and choose the new kernel on your grub menu.  Test things to see how they work.  If everything is good to go, congratulations!  You&#8217;ve just installed the latest kernel in PCLinuxOS.</p>
<p>To make this kernel the default one, you can use the PCLinuxOS Control Center and Change the Way the System Boots.  I&#8217;ll cover this in a later post.  Hope this helps a few of you out there.  I know it is often asked on IRC.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/" rel="bookmark">Install the Latest Kernel in PCLinuxOS</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on December 17, 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/install-the-latest-kernel-in-pclinuxos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Files &amp; Directories Not Visible to Others for Webserver</title>
		<link>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/</link>
		<comments>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 21:01:17 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[Webserver]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=794</guid>
		<description><![CDATA[I wanted a quick way to be able to find out what files weren&#8217;t visible to others (and therefore, not visible to website visitors).  Messing with arguments and the file command, you can do the following: find -type f ! -perm -444 This locates all files not visible to &#8216;others&#8217; in the current directory.  You [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I wanted a quick way to be able to find out what files weren&#8217;t visible to others (and therefore, not visible to website visitors).  Messing with arguments and the <strong>file</strong> command, you can do the following:</p>
<pre>find -type f ! -perm -444</pre>
<p>This locates all files not visible to &#8216;others&#8217; in the current directory.  You can apply this to directories as well:</p>
<pre>find -type d ! -perm -111</pre>
<p>Hope this helps people like it helped me. <img src='http://linux-blog.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/" rel="bookmark">Find Files &#038; Directories Not Visible to Others for Webserver</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 25, 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/find-files-directories-not-visible-to-others-webserver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Read &amp; Display Single Line of a File</title>
		<link>http://linux-blog.org/read-display-single-line-of-a-file/</link>
		<comments>http://linux-blog.org/read-display-single-line-of-a-file/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 21:38:49 +0000</pubDate>
		<dc:creator>devnet</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Asides]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://linux-blog.org/?p=780</guid>
		<description><![CDATA[Sometimes when I&#8217;m troubleshooting a PHP error and a function is called in the debugger that gives me a line number of a file to look at, I want to know what that line says without opening up the file.  Using the command line, you can accomplish this in the following way: head -n 96 [...]


Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Sometimes when I&#8217;m troubleshooting a PHP error and a function is called in the debugger that gives me a line number of a file to look at, I want to know what that line says without opening up the file.  Using the command line, you can accomplish this in the following way:</p>
<pre>head -n 96 filename.php | tail -n 1</pre>
<p>This allows you to quickly display the 96th line of filename.php.  Hope this helps someone like it has me.</p>


<p>Related posts:<ol><li><a href='http://linux-blog.org/convert-png-to-gif-via-command-line/' rel='bookmark' title='Permanent Link: Convert PNG to GIF via Command Line'>Convert PNG to GIF via Command Line</a> <small>I installed a bare bones Arch Linux system today and...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p><p><a href="http://linux-blog.org/read-display-single-line-of-a-file/" rel="bookmark">Read &#038; Display Single Line of a File</a> originally appeared on <a href="http://linux-blog.org">Yet Another Linux Blog</a> on November 18, 2008.</p>
]]></content:encoded>
			<wfw:commentRss>http://linux-blog.org/read-display-single-line-of-a-file/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
