<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Linux Central</title>
	<atom:link href="http://linuxcentral.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxcentral.wordpress.com</link>
	<description>Chronicling the ups and downs of an Ubuntu user. Tips, hacks and personal usage stories.</description>
	<lastBuildDate>Fri, 07 Aug 2009 11:07:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='linuxcentral.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Linux Central</title>
		<link>http://linuxcentral.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://linuxcentral.wordpress.com/osd.xml" title="Linux Central" />
	<atom:link rel='hub' href='http://linuxcentral.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Restore a drive/partition from backup partition table entries</title>
		<link>http://linuxcentral.wordpress.com/2009/07/29/restore-a-drivepartition-from-backup-partition-table-entries/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/29/restore-a-drivepartition-from-backup-partition-table-entries/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 11:51:13 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[Recovery]]></category>
		<category><![CDATA[data recovery]]></category>
		<category><![CDATA[gpart]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[partition table]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=97</guid>
		<description><![CDATA[Instructions to back up a disk's partition disk, and recreate a lost partition table later using this information.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=97&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Having detailed knowledge of your partition table is worth it&#8217;s weight in gold if you&#8217;re ever faced with a disk that just lost its partition table entries.</strong></p>
<p style="text-align:justify;">I was recently faced with such a tragedy, and I was only saved by virtue of the fact that I had the partition table entries to hand. I had just deleted an ext3 partition on my external drive using the Gnome Partition Editor, and then queued up two operations:</p>
<ol style="text-align:justify;">
<li>Create a fat32 file system in its place</li>
<li>Assign it a label</li>
</ol>
<p style="text-align:justify;">When I applied these operations &#8211; BOOM! &#8211; the whole partition table on the external drive just disappeared. This was the drive that held my personal data, my photos and my entire media collection &#8211; basically any data of value to me. Thankfully, I had a backup of my partition table entries and instructions on how to recreate the partition table using these entries.</p>
<p style="text-align:justify;"><strong>So, remember to back up your partition table entries to a file and store it offsite or at multiple locations on your home network. </strong>These days there are plenty of free offsite backup options like Dropbox and Ubuntu One, so there is never an excuse not to.</p>
<p><span id="more-97"></span></p>
<h2>Backing up your partition table</h2>
<p style="text-align:justify;">We&#8217;ll use the<em> gpart</em> utility to get a snapshot of the partition table, so install the package of the same name if you don&#8217;t find the <em>gpart</em> command on your system.</p>
<p><pre class="brush: bash;">

sudo apt-get install gpart

</pre></p>
<p style="text-align:justify;">Next, run it against the disk who&#8217;s partition table needs to be backed up. Remember to do this against every disk you have, and to do this every time you change the partition table on a disk.</p>
<p style="text-align:justify;">If you&#8217;re not sure which device corresponds to which drive, the <em>mount </em>command is your friend:</p>
<p><pre class="brush: bash;">

$ mount
/dev/sda5 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-14-generic/volatile type tmpfs (rw,mode=755)
/dev/sda2 on /media/sda2 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
//192.168.1.77/HDD_1_1_1 on /media/Elements1 type cifs (rw,mand,noexec,nosuid,nodev)
//192.168.1.77/HDD_1_1_2 on /media/Elements2 type cifs (rw,mand,noexec,nosuid,nodev)
192.168.1.77:/share/hdd/data/HDD_1_1_1 on /media/HDD_1_1_1 type nfs (rw,users,noexec,nosuid,nodev,intr,addr=192.168.1.77)
192.168.1.77:/share/hdd/data/HDD_1_1_2 on /media/HDD_1_1_2 type nfs (rw,users,noexec,nosuid,nodev,intr,addr=192.168.1.77)
192.168.1.77:/share/hdd/data/HDD_1_1_3 on /media/HDD_1_1_3 type nfs (rw,users,noexec,nosuid,nodev,intr,addr=192.168.1.77)

</pre></p>
<p style="text-align:justify;">Once you&#8217;ve identified a disk, e.g<em> /dev/sdb</em>, it&#8217;s time to run the <em>gpart</em> command to reveal it&#8217;s partition table:</p>
<p><pre class="brush: bash;">

$ sudo gpart /dev/sdb

Begin scan...
Possible partition(Linux ext2), size(410002mb), offset(0mb)
Possible partition(DOS FAT), size(410002mb), offset(410002mb)
Possible partition(Linux ext2), size(133861mb), offset(820005mb)
End scan.

Checking partitions...
Partition(Linux ext2 filesystem): primary
Partition(DOS or Windows 95 with 32 bit FAT, LBA): primary
Partition(Linux ext2 filesystem): primary
Ok.

Guessed primary partition table:
Primary partition(1)
 type: 131(0x83)(Linux ext2 filesystem)
 size: 410002mb #s(839685352) s(63-839685414)
 chs:  (0/1/1)-(1023/254/63)d (0/1/1)-(52267/254/58)r

Primary partition(2)
 type: 012(0x0C)(DOS or Windows 95 with 32 bit FAT, LBA)
 size: 410002mb #s(839685420) s(839685420-1679370839)
 chs:  (1023/254/63)-(1023/254/63)d (52268/0/1)-(104535/254/63)r

Primary partition(3)
 type: 131(0x83)(Linux ext2 filesystem)
 size: 133861mb #s(274149224) s(1679370840-1953520063)
 chs:  (1023/254/63)-(1023/254/63)d (104536/0/1)-(121600/254/62)r

Primary partition(4)
 type: 000(0x00)(unused)
 size: 0mb #s(0) s(0-0)
 chs:  (0/0/0)-(0/0/0)d (0/0/0)-(0/0/0)r

</pre></p>
<p style="text-align:justify;">Backup this information to a file and store in a secure location.</p>
<h2>Restoring a drive from partition table entries</h2>
<p style="text-align:justify;">Next we want to restore the partition table from the entries we backed up earlier. For this we need the <em>parted</em> command. If your Linux machine is unusable (because it was on the disk you wish to recover), consider creating an <a href="http://www.ubuntu.com/GetUbuntu/download">Ubuntu LiveCD</a> using someone else&#8217;s computer and running that on your machine to get to a terminal where you can run <em>parted</em>. You do not need Ubuntu as such; all we need is a distro with the ability to run the <em>parted</em> command.</p>
<p style="text-align:justify;">Once you are on a terminal:</p>
<ul style="text-align:justify;">
<li>Run the command <em>sudo parted /dev/sdb</em>.  It&#8217;ll drop you into the <em>parted </em>command shell, on a new line with the <em><strong>(parted)</strong></em> prompt</li>
<li>Enter &#8220;<em>unit s</em>&#8221; on the prompt to tell parted to use sectors as the unit to configure the partition table.</li>
<li>Enter &#8220;<em>print</em>&#8221; to check the disk details and confirm that you have the correct disk.</li>
<li>Next, type &#8220;<em>rescue</em>&#8220;. It should give you a <strong><em>Start?</em></strong> prompt. Enter the starting sector of the first partition from the partition table backup file.  It next prompts you for the ending sector: <em><strong>End?</strong></em>. Provide the ending sector for the partition. Referring to the example below, the first partition ranges from sector 63 to 839685414  &#8220;s(63-839685414)&#8221; as evidenced by this snippet from earlier:</li>
</ul>
<p><pre class="brush: bash;">
Primary partition(1)
 type: 131(0x83)(Linux ext2 filesystem)
 size: 410002mb #s(839685352) s(63-839685414)
 chs:  (0/1/1)-(1023/254/63)d (0/1/1)-(52267/254/58)r
</pre></p>
<ul>
<li>If all goes well, it should respond by saying something like &#8220;<strong><em>A ext3 primary partition was found at 63s -&gt; 839685414s.  Do you want to add it to the partition table? Yes/No/Cancel?</em></strong><em>&#8220;. </em>Say Yes and proceed.</li>
<li>Follow these steps for each partition you had on the disk.</li>
<li>Once done, type &#8220;<em>quit</em>&#8221; to exit the parted command.</li>
</ul>
<p style="text-align:justify;">For more detailed instructions on recovering lost partitions, look at the <a href="https://help.ubuntu.com/community/DataRecovery">Ubuntu Data Recovery Community Guide</a>.</p>
<p style="text-align:justify;">Provided below is a sample output of a recovery session:</p>
<p style="text-align:justify;"><pre class="brush: bash;">

$ sudo parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s                                                           
(parted) print                                                            
Model: WD 10EAVS External (scsi)
Disk /dev/sdb: 1953525168s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

(parted) rescue                                                           
Start? 63                                                                 
End? 839685414                                                            
Information: A ext3 primary partition was found at 63s -&gt; 839685414s.  Do you want to add it to the partition table?
Yes/No/Cancel? yes                                                        
(parted) rescue                                                           
Start? 839685420                                                          
End? 1679370839                                                           
Information: A fat32 primary partition was found at 839685420s -&gt; 1679370839s.  Do you want to add it to the partition
table?
Yes/No/Cancel? yes                                                        
(parted) rescue                                                           
Start? 1679370840                                                         
End? 1953520063                                                           
Information: A ext2 primary partition was found at 1679370840s -&gt; 1953520063s.  Do you want to add it to the partition
table?
Yes/No/Cancel? yes                                                        
(parted) quit                                                             
Information: You may need to update /etc/fstab.

</pre></p>
<br /> Tagged: data recovery, gpart, parted, partition table, restore <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=97&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/29/restore-a-drivepartition-from-backup-partition-table-entries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Improve responsiveness of Linux desktop: decrease &#8220;swappiness&#8221;</title>
		<link>http://linuxcentral.wordpress.com/2009/07/25/improve-responsiveness-of-linux-desktop-decrease-swappiness/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/25/improve-responsiveness-of-linux-desktop-decrease-swappiness/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 16:54:45 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[swappiness]]></category>
		<category><![CDATA[sysctl]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=91</guid>
		<description><![CDATA[Improve the responsiveness of the linux kernel by reducing the tendency of the kernel to swap programs out of physical memory.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=91&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The <em><strong>swappiness</strong> </em>parameter controls how aggressively the  kernel swaps processes out of physical memory and onto the swap disk.<em> </em></p>
<p style="text-align:justify;">When <em>swappiness=0, </em>the server kernel avoids swapping programs out of physical memory for as long as possible. When <em>swappiness=100</em>,  the server aggressively swaps processes out of physical memory.</p>
<p style="text-align:justify;">The Ubuntu default is <em>60</em> at time of writing. You can check this through the following command:</p>
<p><pre class="brush: bash;">
cat /proc/sys/vm/swappiness
</pre></p>
<p style="text-align:justify;"><strong>We want to change this value, and lower it to (typically) <em>20</em>, as swap space is much slower than physical memory and involves expensive I/O writes. </strong>Also, the constant swapping heats up the hard drive and lowers its life expectancy.</p>
<p style="text-align:justify;">You can change this value temporarily ( till the next reboot ) through the following command:</p>
<p><pre class="brush: bash;">
sudo sysctl vm.swappiness=20
</pre></p>
<p style="text-align:justify;">To make this change permanent, we&#8217;ll need to edit <em>/etc/sysctl.conf</em></p>
<p><pre class="brush: bash;">
gksudo  gedit /etc/sysctl.conf
</pre></p>
<p style="text-align:justify;">and add or modify this parameter.</p>
<p><pre class="brush: bash;">
vm.swappiness=20
</pre></p>
<p style="text-align:justify;">If this parameter does not exist in the file, add it at the end. You&#8217;ll need to reboot to have this change take effect.  Authoritative source for this tip is the Ubuntu Community Documentation <a href="https://help.ubuntu.com/community/SwapFaq#Performance%20tuning%20with%20%27%27swappiness%27%27" target="_self">Swap FAQ</a>.</p>
<p style="text-align:justify;">Open a <em>terminal</em>, and  run the <em>free </em>command  to check how much swap space is being used after implementing this tweak.</p>
<p style="text-align:justify;">Sample output on my system after the tweak:</p>
<p><pre class="brush: bash;">

$free             total       used       free     shared    buffers     cached
Mem:       1017416    1001440      15976          0      14304     233252
-/+ buffers/cache:     753884     263532
Swap:      1004020     133460     870560

</pre></p>
<br /> Tagged: Performance, swappiness, sysctl <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/91/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/91/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/91/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=91&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/25/improve-responsiveness-of-linux-desktop-decrease-swappiness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Purge packages that are deinstalled</title>
		<link>http://linuxcentral.wordpress.com/2009/07/25/purge-packages-that-are-deinstalled/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/25/purge-packages-that-are-deinstalled/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 12:13:47 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[pkg-management]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=36</guid>
		<description><![CDATA[Commands to purge debian packages using dpkg or aptitude<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=36&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Before starting on the command, an explanation of why this is generally useful. When a package is deinstalled (because it&#8217;s not required or because a newer version of the package is installed), the package is removed from the system, but the configuration files remain. <em>To remove the config files too, you need to purge the package.</em></p>
<p style="text-align:justify;"><strong>If you have manually configured a package earlier, and would like to retain the configuration files for when you&#8217;ll install the package in future, this is not a command you should run. </strong></p>
<p style="text-align:justify;"><strong></strong>In all other cases,  you should purge the packages in the interests of good housekeeping. If that isn&#8217;t enough motivation, it also means that future installs of the package get a blank state, and there are no potentially messy interactions of earlier version config files with newer packages.</p>
<p style="text-align:justify;">With that out of the way, lets get down to bass tacks:</p>
<p><pre class="brush: bash;">
dpkg --get-selections | grep &quot;[[:space:]]deinstall$&quot; | awk '{print $1}' | sudo xargs dpkg -P
</pre></p>
<p style="text-align:justify;">The first command in the pipeline returns the list of packages in the system, the second filters out the deinstalled packages, the third filters out the package names from the previous output, and the fourth purges each package. Consequently, only the fourth command requires sudo permissions.</p>
<p style="text-align:justify;">There&#8217;s a downside to running this command &#8211; you cannot stop the command by hitting <em>&lt;Ctrl-C&gt;</em> on the terminal as the xargs command spawns an individual process for each <span style="color:#000080;"><em><strong>dpkg -P</strong></em></span></p>
<p style="text-align:justify;">On linux systems, there are typically many ways to achieve the same result, so here&#8217;s another way to purge deinstalled packages:</p>
<p><pre class="brush: bash;">
sudo aptitude purge $(aptitude search ~c -F &quot;%p&quot;)
</pre></p>
<p style="text-align:justify;">So you know what&#8217;s happening, here&#8217;s a brief explanation of what the command does. <strong><em><span style="color:#000080;">aptitude search -c</span></em></strong> returns the list of deinstalled packages. The <span style="color:#000080;"><strong>-F &#8220;%p&#8221;</strong></span> argument ensures only the package names are printed. The outer aptitude purge command operates on the returned list of packages from the inner command.</p>
<p style="text-align:justify;">An example of why you&#8217;d run this is to purge old linux kernels.</p>
<p style="text-align:justify;"><strong>Before running such commands, it is imperative you know what you are running, and what the results are, so I&#8217;d suggest you run it in smaller chunks and examine the results before running the actual command.</strong></p>
<br /> Tagged: aptitude, cmd-fu, dpkg, pkg-management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=36&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/25/purge-packages-that-are-deinstalled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Alternatives to Nautilus on a Gnome desktop</title>
		<link>http://linuxcentral.wordpress.com/2009/07/25/alternatives-to-nautilus-on-a-gnome-desktop/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/25/alternatives-to-nautilus-on-a-gnome-desktop/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 11:41:34 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[Experimentation]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[file manager]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Nautilus]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=76</guid>
		<description><![CDATA[Roundup of file-manager alternatives to Nautilus on a Gnome desktop<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=76&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://live.gnome.org/Nautilus">Nautilus</a> is the default file manager on the <em>Gnome</em> desktop. It has improved in leaps and bounds over the years, yet there are certain areas where more work is needed.</p>
<p style="text-align:justify;"><em><strong>After one too many crashes trying to drag-and-drop folders, I had the motivation I needed to sit down to search and evaluate alternatives.</strong></em> I didn&#8217;t find any truly  compelling alternatives, but a number of  equally flawed replacements.</p>
<ul style="text-align:justify;">
<li><a href="http://thunar.xfce.org/index.html">Thunar </a></li>
</ul>
<p style="padding-left:30px;text-align:justify;"><em><strong>Thunar</strong></em> is the file manager for the <a href="http://www.xfce.org"><em><strong>Xfce</strong></em> desktop environment</a>. It has the look and feel of a <em>Gnome</em> application, and is a worthy replacement for <em>Nautilus</em>.</p>
<p style="padding-left:30px;text-align:justify;">
<p><pre class="brush: bash;">

sudo apt-get install thunar

</pre></p>
<ul style="text-align:justify;">
<li><a href="http://dolphin.kde.org/">Dolphin</a></li>
</ul>
<p style="padding-left:30px;text-align:justify;"><em><strong>Dolphin</strong></em> is the <em><strong><a href="http://kde.org/">KDE</a></strong></em> file manager. As expected, it looks a bit alien in a <em>Gnome</em> environment.  However, if you&#8217;re willing to overlook this, it can be a great replacement for <em>Nautilus</em>. Personally, I find it more usable than <em>Nautilus</em> and the best replacement among the lot in this list. <em> Dolphin</em> does not pull in a ton of dependencies, but if you want to keep your system clean of <em><strong>KDE</strong></em> libraries then obviously this option is not for you.</p>
<p style="padding-left:30px;text-align:justify;">
<p><pre class="brush: bash;">

sudo apt-get install dolphin

</pre></p>
<ul style="text-align:justify;">
<li><a href="http://pcmanfm.sourceforge.net/">PCMan</a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">A stand-alone file manager. Lightweight, fast. Not much to say except to try it out and see if you like it.</p>
<p><pre class="brush: bash;">

sudo apt-get install pcmanfm

</pre></p>
<ul style="text-align:justify;">
<li><a href="http://roscidus.com/desktop/ROX-Filer">ROX-filer</a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">The file manager for the <a href="http://roscidus.com/desktop/"><em><strong>ROX</strong></em> desktop environment</a>. This probably is the fastest and lightest replacement you can find; if speed is your primary concern, this is the alternative for you. It didn&#8217;t appeal to me. I found it&#8217;s behaviour of resizing the window to fit the contents of the folder a bit disconcerting. Your mileage may vary. Again, the best option is to try it and discard if you don&#8217;t like it.  If you are so inclined, you can also <a href="http://ubuntuforums.org/showthread.php?t=48169">integrate <em>Rox-filer</em> in place of <em>Nautilus</em></a> in <em>Gnome</em>.</p>
<p><pre class="brush: bash;">

sudo apt-get install rox-filer

</pre></p>
<h3 style="text-align:justify;">Two-paned File Managers</h3>
<p style="text-align:justify;">Two-paned file managers are not really my cup of tea, but if you&#8217;re a fan of <em>Midnight Commander</em> and the like, you might consider these options too:</p>
<ul style="text-align:justify;">
<li><a href="http://www.krusader.org">Krusader</a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">The <em>KDE</em> version of the two-paned file manager. Obviously it does not look native on a <em>Gnome</em> desktop, but is quite surprisingly usable.</p>
<p><pre class="brush: bash;">

sudo apt-get install krusader

</pre></p>
<ul style="text-align:justify;">
<li><a href="http://www.nongnu.org/gcmd/">Gnome Commander</a></li>
</ul>
<p style="padding-left:30px;text-align:justify;">The <em>Gnome</em> version. Does not give the impression of a finished product.</p>
<p><pre class="brush: bash;">

sudo apt-get install gnome-commander

</pre></p>
<p style="text-align:justify;"><em>I tried out different alternatives each for limited periods, and at the end uninstalled the packages I don&#8217;t intend to use.</em></p>
<p style="text-align:justify;">Barring obvious functionality and usability concerns, file manager preferences are dictated by quite personal tastes and what works for you will not be obvious till you actually use the software for a while. Also, your desktop environment dictates an application&#8217;s look and feel, and it may look significantly different from what you see in screen-shots on other sites.</p>
<p style="text-align:justify;"><em>For these reasons, I&#8217;d recommend you try out the application yourself.</em></p>
<p style="text-align:justify;"><em><strong>Once you&#8217;ve tried and discarded an option, do not forget to uninstall the package completely.</strong></em></p>
<p><pre class="brush: bash;">

sudo apt-get --purge remove pkg_to_uninstall
</pre></p>
<p style="text-align:justify;">&#8212;</p>
<p style="text-align:justify;"><strong>Versions</strong>: <em><strong>Nautilus 2.26.2</strong></em></p>
<br /> Tagged: desktop, file manager, Gnome, Nautilus <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=76&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/25/alternatives-to-nautilus-on-a-gnome-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Clean out .deb package cache</title>
		<link>http://linuxcentral.wordpress.com/2009/07/24/clean-out-deb-package-cache/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/24/clean-out-deb-package-cache/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 16:48:16 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[deborphan]]></category>
		<category><![CDATA[pkg-management]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=44</guid>
		<description><![CDATA[Commands to clean out the debian package cache.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=44&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">The debian packages are typically in <strong><em>/var/cache/apt/archives</em></strong>, ready to be used for a reinstallation.</p>
<p style="text-align:justify;">If you are short on space, you can safely delete these:</p>
<p><pre class="brush: bash;">
sudo apt-get clean
</pre></p>
<p style="text-align:justify;">To delete only unused  .deb package files (deinstalled, older versions etc) use:</p>
<p><pre class="brush: bash;">
sudo apt-get autoclean
</pre></p>
<p style="text-align:justify;">To delete orphaned packages  (which aren&#8217;t required or used), use:</p>
<pre>[sourecode language="shell"]<br />
sudo apt-get remove --purge `deborphan`<br />
[/sourcecode]<br />
<strong><em>deborphan</em></strong> is a distinct command that lists the orphaned packages.</p>
<br /> Tagged: apt-get, cmd-fu, deborphan, pkg-management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=44&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/24/clean-out-deb-package-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Turn system beep on/off</title>
		<link>http://linuxcentral.wordpress.com/2009/07/16/turn-system-beep-onoff/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/16/turn-system-beep-onoff/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 11:08:36 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[pcspkr]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=32</guid>
		<description><![CDATA[Enable or disable the PC speaker used for system beep on an Linux system<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=32&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Edit <strong><span style="color:#000080;">/etc/modprobe.d/blacklist</span></strong> and add these lines:</p>
<p><pre class="brush: bash;">

# get rid of system beep

blacklist pcspkr

</pre></p>
<p>Reboot to activate this line.To re-enable the speaker (that emits the beep), remove these lines and reboot.</p>
<p>Alternatively, disable it for the current session:</p>
<p><pre class="brush: bash;">

sudo rmmod pcspkr

</pre></p>
<p>To re-enable the system speaker for the current session:</p>
<p><pre class="brush: bash;">

sudo modprobe pcspkr
</pre></p>
<br /> Tagged: cmd-fu, hacks, pcspkr <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=32&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/16/turn-system-beep-onoff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Search, generate or restore from list of installed packages</title>
		<link>http://linuxcentral.wordpress.com/2009/07/15/generate-list-of-installed-packages/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/15/generate-list-of-installed-packages/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 12:49:19 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[pkg-management]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=25</guid>
		<description><![CDATA[dpkg commands to search for a package from the list of installed debian packages, or generate the list of installed packages, or restore a system using such a list.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=25&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 style="text-align:justify;">Listing packages</h3>
<p style="text-align:justify;">To get the list of packages that start with <em>pkg_name_begin</em>:</p>
<p style="text-align:justify;">
<p><pre class="brush: bash;">

dpkg --get-selections pkg_name_begin*

</pre></p>
<p style="text-align:justify;">For a more generalized search, e.g where <em>pkg_name_partial</em> is text within the package name:</p>
<p style="text-align:justify;">
<p><pre class="brush: bash;">

dpkg --get-selections | grep &quot;[[:space:]]install$&quot; | grep -i pkg_name_partial

</pre></p>
<address> </address>
<p style="text-align:justify;">To get a list of all installed packages on your debian system:</p>
<p style="text-align:justify;">
<p><pre class="brush: bash;">

dpkg --get-selections | grep &quot;[[:space:]]install$&quot; | \awk '{print $1}'

</pre></p>
<p style="text-align:justify;">It makes terrific sense to periodically generate and store this list for any eventually where you need to reinstall the system. You should even consider turning this into a script, and place into a weekly or monthly cron job that mails you the list.</p>
<p><pre class="brush: bash;">

dpkg --get-selections | grep &quot;[[:space:]]install$&quot; | awk '{print $1}' | tee installed_pkgs | mailx -s &quot;List of installed packages&quot; you@mailhost.com
</pre></p>
<h3 style="text-align:justify;">Reinstalling packages</h3>
<p style="text-align:justify;">To install the packages from the list created earlier on top of a fresh Ubuntu install, follow these steps:</p>
<p style="text-align:justify;">
<p><pre class="brush: bash;">

sudo apt-get upgrade

sudo apt-get dist-upgrade
dpkg --set-selections &lt; installed_pkgs

sudo apt-get -u dselect-upgrade

</pre></p>
<p><span style="color:#000000;"><strong>Formatting woes:</strong></span> The third statement should read <strong>dpkg &#8211;set-selections &lt; installed_pkgs</strong>, but wordpress won&#8217;t let it be.</p>
<br /> Tagged: cmd-fu, dpkg, pkg-management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=25&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/15/generate-list-of-installed-packages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Check which package a file came from</title>
		<link>http://linuxcentral.wordpress.com/2009/07/15/check-which-package-a-file-came-from/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/15/check-which-package-a-file-came-from/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 10:09:41 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[pkg-management]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=16</guid>
		<description><![CDATA[Determine the package that installed a file on a Debian system<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=16&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: bash;">

dpkg -S filename

</pre></p>
<p style="text-align:justify;">This command  returns the package(s) that install the given file. Useful when you want to retrieve the original file and/or find what it&#8217;s used for.</p>
<p style="text-align:justify;">
<br /> Tagged: cmd-fu, dpkg, pkg-management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=16&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/15/check-which-package-a-file-came-from/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitor CPU and hard disk temperature levels</title>
		<link>http://linuxcentral.wordpress.com/2009/07/14/monitor-cpu-and-hard-disk-temperature-levels/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/14/monitor-cpu-and-hard-disk-temperature-levels/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 16:41:17 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[lm-sensors]]></category>
		<category><![CDATA[maintenance]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://linuxcentral.wordpress.com/?p=9</guid>
		<description><![CDATA[lm-sensors Install the lm-sensors package: sudo apt-get install lm-sensors Run command: sensors-detect It detects the sensors on board your computer, and will ask you to confirm the ones it finds. It is generally safe to accept its recommendations.  At the end, assuming it found a sensor, it will ask you if you want to automatically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=9&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 style="text-align:justify;">lm-sensors</h3>
<p style="text-align:justify;">Install the <em>lm-sensors</em> package: <em><strong>sudo apt-get install lm-sensors</strong></em></p>
<p style="text-align:justify;">Run command: <strong><em>sensors-detect</em></strong></p>
<p style="text-align:justify;">It detects the sensors on board your computer, and will ask you to confirm the ones it finds. It is generally safe to accept its recommendations.  At the end, assuming it found a sensor, it will ask you if you want to automatically have them added to /etc/modules. If you say YES, these kernel modules will get loaded at next reboot. They let you query the on-board sensors through the <em><strong>sensor</strong> </em>command.</p>
<p><pre class="brush: bash;">
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:       +66.5°C  (crit = +105.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +63.0°C  (crit = +100.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:      +66.0°C  (crit = +100.0°C)
</pre></p>
<p style="text-align:justify;">You can also look this information up via GNOME <em>sensors-applet</em> applet (<em>ksensors</em> for KDE). If missing, install via <em><strong>sudo apt-get install sensors-applet</strong></em>.</p>
<h3 style="text-align:justify;">Hddtemp</h3>
<p style="text-align:justify;">This command gives you the temperature of the hard disk given as a parameter.</p>
<p><pre class="brush: bash;">
$ sudo hddtemp /dev/sda1
/dev/sda1: Hitachi HTS541060G9SA00: 45°C
</pre></p>
<p>Alternatively, you can use the following command to get temperatures of all hard disks on the system:<br />
<pre class="brush: bash;">
$ nc localhost 7634
|/dev/sg0|Hitachi HTS541060G9SA00|45|C||/dev/sda|Hitachi HTS541060G9SA00|45|C|
$ echo &quot;$(nc localhost 7634 | cut -d'|' -f4)&quot;
45
$
</pre></p>
<p style="text-align:justify;">
<br /> Tagged: cmd-fu, lm-sensors, maintenance, monitoring <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=9&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/14/monitor-cpu-and-hard-disk-temperature-levels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
		<item>
		<title>Force removal of a debian package</title>
		<link>http://linuxcentral.wordpress.com/2009/07/14/command-to-force-removal-of-a-debian-package/</link>
		<comments>http://linuxcentral.wordpress.com/2009/07/14/command-to-force-removal-of-a-debian-package/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 14:12:38 +0000</pubDate>
		<dc:creator>/n/</dc:creator>
				<category><![CDATA[cmd-fu]]></category>
		<category><![CDATA[cmd-line]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[pkg-management]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[DISCLAIMER: Highly unsafe command. Do not attempt to use without adequate knowledge or precaution; you could end up with a broken installation.  A typical use of the command would be to reinstall a package without having to reinstall all other packages that depend on it. Sometimes, you need to more than just remove the package; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=1&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">
<p><pre class="brush: bash;">
dpkg -r --force-all package_name
</pre></p>
<p style="text-align:justify;"><strong>DISCLAIMER: </strong><strong>Highly unsafe command.</strong> Do not attempt to use without adequate knowledge or precaution; you could end up with a broken installation.  A typical use of the command would be to reinstall a package without having to reinstall all other packages that depend on it.</p>
<p style="text-align:justify;">Sometimes, you need to more than just remove the package; you need to <em><strong>purge</strong></em> it. Purging a package removes the package and it&#8217;s configuration files. That is achieved through this command:</p>
<pre style="text-align:justify;"><pre class="brush: bash;">

dpkg --purge --force-all package_name

</pre>
<pre style="text-align:justify;"><strong>Versions: dpkg 1.14.24ubuntu1 (i386)</strong></pre>
</pre>
<br /> Tagged: cmd-line, dpkg, pkg-management <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/linuxcentral.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/linuxcentral.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/linuxcentral.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=linuxcentral.wordpress.com&amp;blog=8569691&amp;post=1&amp;subd=linuxcentral&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://linuxcentral.wordpress.com/2009/07/14/command-to-force-removal-of-a-debian-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cb6c184ffa7106424d976bd4b60a00a8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">/n/</media:title>
		</media:content>
	</item>
	</channel>
</rss>
