<?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>WiredRevolution.com &#187; system administration</title>
	<atom:link href="http://www.wiredrevolution.com/tag/system-administration/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Install Linux development man pages in Ubuntu</title>
		<link>http://www.wiredrevolution.com/ubuntu/install-linux-development-man-pages-in-ubuntu?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-linux-development-man-pages-in-ubuntu</link>
		<comments>http://www.wiredrevolution.com/ubuntu/install-linux-development-man-pages-in-ubuntu#comments</comments>
		<pubDate>Wed, 13 May 2009 14:53:15 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[glibc]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[libc]]></category>
		<category><![CDATA[man]]></category>
		<category><![CDATA[man pages]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[posix]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[system administration]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1127</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/>By default Ubuntu doesn&#8217;t install the manual pages used for Linux software development which is an invaluable reference for any system developer. These man pages describe the Linux programming interface including Linux system calls as well as system library calls. To install these man pages simply install the manpages-dev package. $ sudo apt-get install manpages-dev [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/ubuntu/install-boxee-on-64-bit-ubuntu-910-karmic' rel='bookmark' title='Permanent Link: Install Boxee on 64-bit Ubuntu 9.10 Karmic'>Install Boxee on 64-bit Ubuntu 9.10 Karmic</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/install-google-earth-in-ubuntu' rel='bookmark' title='Permanent Link: Install Google Earth in Ubuntu'>Install Google Earth in Ubuntu</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/install-gnome-shell-in-ubuntu-10-10-maverick' rel='bookmark' title='Permanent Link: Install GNOME Shell in Ubuntu 10.10 Maverick'>Install GNOME Shell in Ubuntu 10.10 Maverick</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/ubuntu_icon.png" width="80" height="78" alt="" title="ubuntu" /><br/><p>By default Ubuntu doesn&#8217;t install the manual pages used for Linux software development which is an invaluable reference for any system developer.  These man pages describe the Linux programming interface including Linux system calls as well as system library calls.</p>
<p>To install these man pages simply install the <strong>manpages-dev</strong> package.</p>
<pre>
$ sudo apt-get install manpages-dev
</pre>
<p>You can also install the POSIX specific interfaces by installing the <strong>manpages-posix-dev</strong> package.</p>
<pre>
$ sudo apt-get install manpages-posix-dev
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/ubuntu/install-boxee-on-64-bit-ubuntu-910-karmic' rel='bookmark' title='Permanent Link: Install Boxee on 64-bit Ubuntu 9.10 Karmic'>Install Boxee on 64-bit Ubuntu 9.10 Karmic</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/install-google-earth-in-ubuntu' rel='bookmark' title='Permanent Link: Install Google Earth in Ubuntu'>Install Google Earth in Ubuntu</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/install-gnome-shell-in-ubuntu-10-10-maverick' rel='bookmark' title='Permanent Link: Install GNOME Shell in Ubuntu 10.10 Maverick'>Install GNOME Shell in Ubuntu 10.10 Maverick</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/ubuntu/install-linux-development-man-pages-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Setup user login restrictions with SSH</title>
		<link>http://www.wiredrevolution.com/system-administration/setup-user-login-restrictions-with-ssh?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-user-login-restrictions-with-ssh</link>
		<comments>http://www.wiredrevolution.com/system-administration/setup-user-login-restrictions-with-ssh#comments</comments>
		<pubDate>Wed, 04 Feb 2009 15:52:57 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[/etc/ssh/sshd_config]]></category>
		<category><![CDATA[AllowUsers]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[restrict]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[sshd]]></category>
		<category><![CDATA[sshd_config]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=960</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>At various times it is necessary to restrict the users which can access a certain host. If your network relies on SSH it is as simple as changing an option in the sshd_config configuration file. You will of course need root access to make the necessary changes to this file and eventually reset the SSH [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>At various times it is necessary to restrict the users which can access a certain host. If your network relies on SSH it is as simple as changing an option in the <strong>sshd_config</strong> configuration file. You will of course need root access to make the necessary changes to this file and eventually reset the SSH daemon.</p>
<p>This configuration file is usually located here.<br />
<strong>/etc/ssh/sshd_config</strong></p>
<p>Open the file as root in order to make changes.</p>
<pre>
$ sudo vim /etc/ssh/sshd_config
</pre>
<p>You need to set the <strong>AllowUsers</strong> keyword followed by the users you want to have access to the machine.</p>
<pre>
AllowUsers	ryan joe
</pre>
<p>If you want to do something more complex here is the output from the man page:<br />
<em><br />
AllowUsers<br />
This keyword can be followed by a list of user name patterns, separated by spaces.  If specified, login is allowed only for user names that match one of the patterns.  &#8216;*&#8217; and &#8216;?&#8217; can be used as wildcards in the patterns.  Only user names are valid; a numerical user ID is not recognized.  By default, login is allowed for all users.  If the pattern takes the form USER@HOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts.<br />
</em></p>
<p>Another helpful to set the <strong>PermitRootLogin</strong> to &#8216;no&#8217; so that the root account is inaccessible.</p>
<pre>
PermitRootLogin  no
</pre>
<p>When these settings have been changed go ahead and restart the SSH daemon.</p>
<pre>
$ sudo /etc/init.d/sshd restart
</pre>
<p>There are of course ways around this if other users have access to sudo or the root account. But for the most part it is a good way to restrict user access. </p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/setup-user-login-restrictions-with-ssh/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Skip network filesystems when searching with find</title>
		<link>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=skip-network-filesystems-when-searching-with-find</link>
		<comments>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find#comments</comments>
		<pubDate>Mon, 19 Jan 2009 16:45:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[network filesystem]]></category>
		<category><![CDATA[shared filesystem]]></category>
		<category><![CDATA[xdev]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=932</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>When you run the find command on the root directory of a system you may want to exclude all network filesystems and confine your search to only your local machine. The benefits of this are obvious as it will save you a great amount of time especially if the mounted filesystem is very large. Luckily [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/search-for-files-with-the-find-command' rel='bookmark' title='Permanent Link: Search for files with the find command'>Search for files with the find command</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>When you run the <strong>find</strong> command on the root directory of a system you may want to exclude all network filesystems and confine your search to only your local machine.  The benefits of this are obvious as it will save you a great amount of time especially if the mounted filesystem is very large.</p>
<p>Luckily the find command provides this ability with the &#8216;<strong>-xdev</strong>&#8216; or &#8216;<strong>-mount</strong>&#8216; options.</p>
<p>For example:</p>
<pre>
$ find / -xdev -name myfile.txt
</pre>
<p>This command will recursively search for myfile.txt starting in your root directory and skip all externally mounted filesystems.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/search-for-files-with-the-find-command' rel='bookmark' title='Permanent Link: Search for files with the find command'>Search for files with the find command</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>View process environment details with proc</title>
		<link>http://www.wiredrevolution.com/system-administration/view-process-environment-details-with-proc?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-process-environment-details-with-proc</link>
		<comments>http://www.wiredrevolution.com/system-administration/view-process-environment-details-with-proc#comments</comments>
		<pubDate>Wed, 10 Dec 2008 12:42:25 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[environ]]></category>
		<category><![CDATA[environment variable]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[proc]]></category>
		<category><![CDATA[tr]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=848</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The process environment consists of all the individual environment variables which are passed on to the program by the shell when the program is launched. This environment can be read and changed by the program during its execution, and can affect how a program is linked or how it executes. For all these reasons it [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/view-system-information-with-proccpuinfo-and-procmeminfo' rel='bookmark' title='Permanent Link: View system information with /proc/cpuinfo and /proc/meminfo'>View system information with /proc/cpuinfo and /proc/meminfo</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-pid-of-a-background-child-process-in-bash' rel='bookmark' title='Permanent Link: Find the PID of a background child process in Bash'>Find the PID of a background child process in Bash</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-release-the-linux-disk-cache' rel='bookmark' title='Permanent Link: How to release the Linux disk cache'>How to release the Linux disk cache</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The <strong>process environment</strong> consists of all the individual <strong>environment variables</strong> which are passed on to the program by the shell when the program is launched. This environment can be read and changed by the program during its execution, and can affect how a program is linked or how it executes. For all these reasons it may be important at times to see exactly what the environment contains. The <strong>proc</strong> filesystem provides the interface to make this happen.</p>
<p>The <strong>proc</strong> pseudo-file system is used as an interface to kernel data structures.  It is commonly mounted at /proc and most of the files inside are read-only. Within proc there exists a subdirectory for every running process on the system identified by its <strong>process ID</strong> (<strong>PID</strong>). </p>
<p>Inside each process directory is an <strong>environ</strong> file which contains the current environment for that process.</p>
<p><strong>/proc/&lt;PID&gt;/environ</strong></p>
<p>This file is limited at this point in time to 4096 characters. Therefore if you have a process with an unusually large environment the data beyond this limit will be truncated.</p>
<p>The environment variable entries are separated by <strong>null</strong> characters &#8216;<strong>\0</strong>&#8216;, which makes it difficult to view the file.  The best way to get around this is with the <strong>tr</strong> command which will replace the the null characters with <strong>newline</strong> characters &#8216;<strong>\n</strong>&#8216;.</p>
<pre>
$ cat /proc/12345/environ | tr "\000" "\n"
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/view-system-information-with-proccpuinfo-and-procmeminfo' rel='bookmark' title='Permanent Link: View system information with /proc/cpuinfo and /proc/meminfo'>View system information with /proc/cpuinfo and /proc/meminfo</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-pid-of-a-background-child-process-in-bash' rel='bookmark' title='Permanent Link: Find the PID of a background child process in Bash'>Find the PID of a background child process in Bash</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-release-the-linux-disk-cache' rel='bookmark' title='Permanent Link: How to release the Linux disk cache'>How to release the Linux disk cache</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/view-process-environment-details-with-proc/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>View system information with /proc/cpuinfo and /proc/meminfo</title>
		<link>http://www.wiredrevolution.com/system-administration/view-system-information-with-proccpuinfo-and-procmeminfo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-system-information-with-proccpuinfo-and-procmeminfo</link>
		<comments>http://www.wiredrevolution.com/system-administration/view-system-information-with-proccpuinfo-and-procmeminfo#comments</comments>
		<pubDate>Tue, 09 Dec 2008 12:36:26 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[/proc/cpuinfo]]></category>
		<category><![CDATA[/proc/meminfo]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[meminfo]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[proc]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=837</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>There are 2 files available on a Linux system which will give a user a wealth of information about a system. These files, /proc/cpuinfo and /proc/meminfo are written by the Linux kernel and tell you important details about your cpu and memory. Both files are read-only and can be viewed with any text editor. This [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/view-process-environment-details-with-proc' rel='bookmark' title='Permanent Link: View process environment details with proc'>View process environment details with proc</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-release-the-linux-disk-cache' rel='bookmark' title='Permanent Link: How to release the Linux disk cache'>How to release the Linux disk cache</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>There are 2 files available on a Linux system which will give a user a wealth of information about a system. These files, <strong>/proc/cpuinfo</strong> and <strong>/proc/meminfo</strong> are written by the Linux kernel and tell you important details about your <strong>cpu</strong> and <strong>memory</strong>. </p>
<p>Both files are read-only and can be viewed with any text editor.  This information may be overkill for most users but there are a variety of important fields to look for.</p>
<p>The cpuinfo file provides important stats including model name, cpu cores, cpu MHz, cache size, and flags which show what instruction sets are available on the processor. Systems with multiple processors or multiple cores will have separate entries for each.</p>
<p>Here for example is the output of my /proc/cpuinfo file:</p>
<pre>
$ cat /proc/cpuinfo
</pre>
<pre>
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz
stepping	: 6
cpu MHz	: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id	: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm ida
bogomips	: 4787.93
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 23
model name	: Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz
stepping	: 6
cpu MHz	: 800.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id	: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm ida
bogomips	: 4787.96
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:
</pre>
<p>The important fields to look for in the meminfo file include MemTotal, MemFree, and SwapTotal.</p>
<p>The output of the /proc/meminfo file :</p>
<pre>
$ cat /proc/meminfo
</pre>
<pre>
MemTotal:      4054116 kB
MemFree:       3187648 kB
Buffers:         19852 kB
Cached:         288692 kB
SwapCached:          0 kB
Active:         527556 kB
Inactive:       196060 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:             208 kB
Writeback:           0 kB
AnonPages:      415096 kB
Mapped:         103684 kB
Slab:            50592 kB
SReclaimable:    23924 kB
SUnreclaim:      26668 kB
PageTables:      15756 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
WritebackTmp:        0 kB
CommitLimit:   2027056 kB
Committed_AS:   870676 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    115908 kB
VmallocChunk: 34359621627 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
HugePages_Surp:      0
Hugepagesize:     2048 kB
DirectMap4k:     86472 kB
DirectMap2M:   4106240 kB
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/view-process-environment-details-with-proc' rel='bookmark' title='Permanent Link: View process environment details with proc'>View process environment details with proc</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-release-the-linux-disk-cache' rel='bookmark' title='Permanent Link: How to release the Linux disk cache'>How to release the Linux disk cache</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/view-system-information-with-proccpuinfo-and-procmeminfo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to X session forwarding over SSH</title>
		<link>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-x-session-forwarding-over-ssh</link>
		<comments>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:05:41 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[/etc/ssh/ssh_config]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[tunneling]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=807</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>SSH allows secure (encrypted and authenticated) connections between two hosts. These connections include terminal sessions, file transfers, TCP port forwarding, as well as X window forwarding which I will be covering here. X forwarding is a form of tunneling that allows you to run a GUI application on a remote machine but let you view [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p><strong>SSH</strong> allows secure (encrypted and authenticated) connections between two hosts.  These connections include terminal sessions, file transfers, TCP port forwarding, as well as X window forwarding which I will be covering here. X forwarding is a form of tunneling that allows you to run a GUI application on a remote machine but let you view and interact with it on your local machine.</p>
<p>To try this out you will need both <strong>X</strong> and <strong>SSH</strong> installed on your local and remote machines.  Make sure that you are able to log into the the remote machine over SSH before you continue.</p>
<p>Simple SSH command, ensure that this works before continuing.  You may have to enter a password for the user before it will allow you access.</p>
<pre>
$ ssh user@remotehost
</pre>
<p>The next step is to add the <strong>&#8216;-X</strong>&#8216; option.  This will turn on X forwarding and allow you to remotely run X programs. In this case we will run xclock.</p>
<pre>
$ ssh -X user@remotehost xclock
</pre>
<p>You should see the xclock window appear on your screen. You can interact with it like any other local application window. Close it when you are done.</p>
<p>If you have a slower connection you can turn on compression by adding the &#8216;<strong>-C</strong>&#8216; option to the command above. This will compress all data communications with the gzip algorithm.</p>
<pre>
$ ssh -C -X user@remotehost xclock
</pre>
<p>If you are experiencing any problems turn on verbose output with the &#8216;<strong>-v</strong>&#8216; option. This will give you a lot more output and tell you what is going on underneath.</p>
<pre>
$ ssh -v -X user@remotehost xclock
</pre>
<p>If you are still having issues look in the ssh configuration file here<strong>/etc/ssh/ssh_config</strong>, and make sure that you don&#8217;t have X forwarding settings disabled.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/how-to-x-session-forwarding-over-ssh/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox Keyboard Shortcuts</title>
		<link>http://www.wiredrevolution.com/system-administration/firefox-keyboard-shortcuts?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=firefox-keyboard-shortcuts</link>
		<comments>http://www.wiredrevolution.com/system-administration/firefox-keyboard-shortcuts#comments</comments>
		<pubDate>Sat, 29 Nov 2008 03:49:05 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[cheat sheet]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[shortcuts]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=774</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>This is the list of the most useful Firefox keyboard shortcuts. It is amazing how much more efficient you can be when your not always reaching for your mouse. Controlling Tabs New Tab &#8211; Ctrl+T Close Tab &#8211; Ctrl+W or Ctrl+F4 Next Tab &#8211; Ctrl+Tab or Ctrl+PageDown Previous Tab &#8211; Ctrl+Shft+Tab or Ctrl+PageUp Select Tab [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gnome/customize-keyboard-shortcuts-in-gnome' rel='bookmark' title='Permanent Link: Customize keyboard shortcuts in GNOME'>Customize keyboard shortcuts in GNOME</a></li>
<li><a href='http://www.wiredrevolution.com/guides/gnome-shell-keyboard-shortcut-cheat-sheet' rel='bookmark' title='Permanent Link: GNOME Shell Keyboard Shortcut Cheat Sheet'>GNOME Shell Keyboard Shortcut Cheat Sheet</a></li>
<li><a href='http://www.wiredrevolution.com/gnome/fix-for-missing-title-bar-and-gnome-panel-with-firefox' rel='bookmark' title='Permanent Link: Fix for missing title bar and GNOME panel with Firefox'>Fix for missing title bar and GNOME panel with Firefox</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>This is the list of the most useful Firefox keyboard shortcuts. It is amazing how much more efficient you can be when your not always reaching for your mouse.</p>
<h3>Controlling Tabs</h3>
<p><strong>New Tab</strong> &#8211; Ctrl+T<br />
<strong>Close Tab</strong> &#8211; Ctrl+W or Ctrl+F4<br />
<strong>Next Tab</strong> &#8211; Ctrl+Tab or Ctrl+PageDown<br />
<strong>Previous Tab</strong> &#8211; Ctrl+Shft+Tab or Ctrl+PageUp<br />
<strong>Select Tab [1 to 9]</strong> &#8211; Ctrl+[1 to 9]</p>
<h3>Searching Text</h3>
<p><strong>Find in This Page</strong> &#8211; Ctrl+F<br />
<strong>Find Again</strong> &#8211; Ctrl+G or F3<br />
<strong>Find Previous</strong> &#8211; Ctrl+Shft+G or Shft+F3</p>
<h3>Other Commands</h3>
<p><strong>Full Screen</strong> &#8211; F11<br />
<strong>Reload</strong> &#8211; F5 or Ctrl+R<br />
<strong>Reload (override cache)</strong> &#8211; Ctrl+F5 or Ctrl+Shft+R<br />
<strong>Select All</strong> &#8211; Ctrl+A</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gnome/customize-keyboard-shortcuts-in-gnome' rel='bookmark' title='Permanent Link: Customize keyboard shortcuts in GNOME'>Customize keyboard shortcuts in GNOME</a></li>
<li><a href='http://www.wiredrevolution.com/guides/gnome-shell-keyboard-shortcut-cheat-sheet' rel='bookmark' title='Permanent Link: GNOME Shell Keyboard Shortcut Cheat Sheet'>GNOME Shell Keyboard Shortcut Cheat Sheet</a></li>
<li><a href='http://www.wiredrevolution.com/gnome/fix-for-missing-title-bar-and-gnome-panel-with-firefox' rel='bookmark' title='Permanent Link: Fix for missing title bar and GNOME panel with Firefox'>Fix for missing title bar and GNOME panel with Firefox</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/firefox-keyboard-shortcuts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install the GRUB boot loader to the MBR</title>
		<link>http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-the-grub-boot-loader-to-the-mbr</link>
		<comments>http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr#comments</comments>
		<pubDate>Sat, 29 Nov 2008 02:58:03 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub-install]]></category>
		<category><![CDATA[loader]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=740</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You might need to reinstall the boot loader to the master boot record (MBR) if it becomes corrupted or erased. This can occur for example if Windows is installed on another partition which overwrites the MBR. There are two ways to reinstall grub, automatically using grub-install, and manually through grub itself. grub-install is a script [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo' rel='bookmark' title='Permanent Link: Run a command at boot with Gentoo'>Run a command at boot with Gentoo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You might need to reinstall the boot loader to the master boot record (<strong>MBR</strong>) if it becomes corrupted or erased. This can occur for example if Windows is installed on another partition which overwrites the MBR.</p>
<p>There are two ways to reinstall grub, automatically using <strong>grub-install</strong>, and manually through <strong>grub</strong> itself. grub-install is a script which calls grub underneath and in most cases it is your best solution. Sometimes the manual approach is better if you have a complex setup or the first option fails.</p>
<p>The GRUB naming scheme for hard drives and partitions is a bit confusing at first. Hard drive and partition numbers are ordererd with the count starting at zero. They are ordered based on the boot sequence in BIOS, so different types (IDE, SCSI, or RAID) my be intermixed.</p>
<p>For example a system with 2 PATA disks and 1 SATA disk might have the following drive mapping.<br />
<strong>/dev/hda = (hd0)</strong> = drive 1<br />
<strong>/dev/hda1 = (hd0,0)</strong> =  drive 1, partition 1<br />
<strong>/dev/hdb2 = (hd1,1)</strong> = drive 2, partition 2<br />
<strong>/dev/sda1 = (hd2,0)</strong> = drive 3, partition 1</p>
<p>These steps require root privileges so switch to root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<p>Install automatically with <strong>grub-install</strong>.  The first argument is the hard drive where the boot loader will installed onto the MBR.  It will use your current root directory partition for the rest of the installation. Change &#8220;/dev/sda&#8221; to the correct device for your system.</p>
<pre>
# grub-install /dev/sda
</pre>
<p>If you have a separate boot partition use the <strong>&#8211;root-directory</strong> option to install GRUB on that device instead of your root partition.</p>
<pre>
# grub-install --root-directory=/boot /dev/sda
</pre>
<p>The second method will allow you to install the boot loader manually with <strong>grub</strong>. Start by launching the GRUB command shell.</p>
<pre>
# grub
</pre>
<p>If your not sure of the device to specify for the installation, you can ask GRUB to tell you. Run this command and GRUB will attempt to find your GRUB installation on all available device partitions on the system.  If found GRUB will output all the partitions containing GRUB installations in GRUB naming format. You can select the correct device and use in the next step.</p>
<pre>
grub> find /boot/grub/menu.lst
</pre>
<pre>
 (hd0,0)
</pre>
<p>Set your root partition which contains the boot directory as well as the GRUB installation. You can use the output from the step above.</p>
<pre>
grub> root (hd0,0)
</pre>
<p>Install GRUB to the MBR of your first hard drive device.</p>
<pre>
grub> setup (hd0)
</pre>
<p>Exit Grub.</p>
<pre>
grub> quit
</pre>
<p>Reboot, you should hopefully see the menu on start up.</p>
<pre>
# reboot
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo' rel='bookmark' title='Permanent Link: Run a command at boot with Gentoo'>Run a command at boot with Gentoo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free ext3 reserved blocks with tune2fs</title>
		<link>http://www.wiredrevolution.com/system-administration/free-ext3-reserved-blocks-with-tune2fs?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-ext3-reserved-blocks-with-tune2fs</link>
		<comments>http://www.wiredrevolution.com/system-administration/free-ext3-reserved-blocks-with-tune2fs#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:02:03 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[reserved blocks]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=718</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>As a security measure the ext3 file system reserves 5% of device space for administrative processes. This protects the system by allowing root processes to continue using the disk if a user process runs wild and fills it up. With today&#8217;s larger disk capacities, 5% equates into gigabytes of arguably wasted space. Thankfully with the [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find' rel='bookmark' title='Permanent Link: Skip network filesystems when searching with find'>Skip network filesystems when searching with find</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>As a security measure the ext3 file system reserves 5% of device space for administrative processes. This protects the system by allowing root processes to continue using the disk if a user process runs wild and fills it up. With today&#8217;s larger disk capacities, 5% equates into gigabytes of arguably wasted space. Thankfully with the <strong>tune2fs</strong> command you can reduce this percentage and free most if not all of the reserved space.</p>
<p>The tune2fs command utility operates exclusively on ext2/ext3 file systems.</p>
<p>To run these commands you must run the command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<p>You can run tune2fs on the ext3 partition with the &#8216;<strong>-l</strong>&#8216; option to show you all the filesystem details. The important information to focus on are the &#8220;Reserved block count&#8221; and &#8220;Block size&#8221; lines. Multiply these lines together to see how many bytes are currently reserved on the filesystem.</p>
<pre>
$ tune2fs -l /dev/sda1
</pre>
<pre>
...
Reserved block count:     1929908
...
Block size:               4096
...
</pre>
<p>That&#8217;s more than 7GB of space that is reserved.</p>
<p>Run the <strong>df</strong> command to see the current used space on the device before you make any changes. </p>
<pre>
$ df -h
</pre>
<pre>
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             145G  3.1G  135G   3% /
</pre>
<p>Run the tune2fs command to change your reserved block percentage. The &#8216;<strong>-m</strong>&#8216; option sets the new reserved percentage.</p>
<p>In this example I am setting the percentage to 0 and completely removing the reserved space. This will effectively disable the security feature but free the most space.  You may choose to reduce the reserved percentage instead in order to preserve the security benefit while still freeing some space.</p>
<pre>
$ sudo tune2fs -m 0 /dev/sda1
</pre>
<p>You can confirm the changes have taken effect by viewing the filesystem details.</p>
<pre>
$ tune2fs -l /dev/sda1
</pre>
<pre>
...
Reserved block count:     0
...
</pre>
<p>You can directly see the changes by looking at your system disk space usage. We now have an additional 7GB available.</p>
<pre>
$ df -h
</pre>
<pre>
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             145G  3.1G  142G   3% /
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find' rel='bookmark' title='Permanent Link: Skip network filesystems when searching with find'>Skip network filesystems when searching with find</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/free-ext3-reserved-blocks-with-tune2fs/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Change MIME settings in Firefox 3</title>
		<link>http://www.wiredrevolution.com/system-administration/change-mime-settings-in-firefox-3?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=change-mime-settings-in-firefox-3</link>
		<comments>http://www.wiredrevolution.com/system-administration/change-mime-settings-in-firefox-3#comments</comments>
		<pubDate>Thu, 20 Nov 2008 12:46:54 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[MIME]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=684</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>In Firefox 3 it is easy to edit the MIME settings. These settings are used to control what program is used by default to open each file type you encounter while browsing. To edit these settings in Firefox 3 navigate these menus: Edit -> Preferences -> Applications For each file type on the left you [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gnome/fix-for-missing-title-bar-and-gnome-panel-with-firefox' rel='bookmark' title='Permanent Link: Fix for missing title bar and GNOME panel with Firefox'>Fix for missing title bar and GNOME panel with Firefox</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/firefox-keyboard-shortcuts' rel='bookmark' title='Permanent Link: Firefox Keyboard Shortcuts'>Firefox Keyboard Shortcuts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>In Firefox 3 it is easy to edit the MIME settings.  These settings are used to control what program is used by default to open each file type you encounter while browsing.</p>
<p>To edit these settings in Firefox 3 navigate these menus:</p>
<p><strong>Edit</strong> -> <strong>Preferences</strong> -> <strong>Applications</strong></p>
<p>For each file type on the left you can designate a program to open that file type on the right. You can also avoid opening a specific file type and choose to save it to disk by default instead.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gnome/fix-for-missing-title-bar-and-gnome-panel-with-firefox' rel='bookmark' title='Permanent Link: Fix for missing title bar and GNOME panel with Firefox'>Fix for missing title bar and GNOME panel with Firefox</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/firefox-keyboard-shortcuts' rel='bookmark' title='Permanent Link: Firefox Keyboard Shortcuts'>Firefox Keyboard Shortcuts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/change-mime-settings-in-firefox-3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a Windows Boot Disk with a Linux Machine</title>
		<link>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creating-a-windows-boot-disk-with-a-linux-machine</link>
		<comments>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine#comments</comments>
		<pubDate>Mon, 17 Nov 2008 12:36:27 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[boot disk]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[disk image]]></category>
		<category><![CDATA[floppy disk]]></category>
		<category><![CDATA[self extracting exe]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=672</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The standard way to create a Windows boot disk is to have access to a Windows system. If you have access to a Linux system instead, and know a couple tricks, you can create boot disk as well. The first thing to do is find a website that has the boot disks available for download. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The standard way to create a Windows boot disk is to have access to a Windows system.  If you have access to a Linux system instead, and know a couple tricks, you can create boot disk as well.</p>
<p>The first thing to do is find a website that has the boot disks available for download.  There are plenty of these out there so take your pick. The only thing you must specifically do is make sure that you download the <strong>disk image</strong> and not a <strong>self extracting executable</strong> file which must be run under Windows.</p>
<p>If the image is zipped unzip it.</p>
<pre>
$ unzip cdboot1.zip
</pre>
<pre>
Archive:  cdboot1.zip
  inflating: CDBOOT1.IMG
</pre>
<p>Check that the disk image is the correct size.</p>
<pre>
$ ls -lh CDBOOT1.IMG
</pre>
<pre>
-r--r--r-- 1 ryan ryan 1.5M 1999-12-07 12:00 CDBOOT1.IMG
</pre>
<p>Finally, you will use the <strong>dd</strong> command to copy the disk image to a blank floppy disk.</p>
<pre>
$ dd if=CDBOOT1.IMG of=/dev/fd0
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/creating-a-windows-boot-disk-with-a-linux-machine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find your MAC address with ifconfig</title>
		<link>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-your-mac-address-with-ifconfig</link>
		<comments>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig#comments</comments>
		<pubDate>Thu, 30 Oct 2008 11:06:53 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HWaddr]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[mac address]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=555</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You can find the MAC address of your system at the command line by using the ifconfig command. The ifconfig command will show you information on all your network interfaces. If no arguments are given ifconfig displays the status of the currently active interfaces. You have to run this command as root or use sudo. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your IP address with ifconfig'>Find your IP address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You can find the MAC address of your system at the command line by using the <strong>ifconfig</strong> command. The ifconfig command will show you information on all your network interfaces.  If no arguments are given ifconfig displays the status of the currently active interfaces.</p>
<p>You have to run this command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<pre>
# ifconfig
</pre>
<pre>
wlan0     Link encap:Ethernet  <strong>HWaddr a1:b2:c3:d4:e5:f6  </strong>
          inet addr:192.168.2.11  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:4007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3292271 (3.1 MiB)  TX bytes:994922 (971.6 KiB)
</pre>
<p>Your MAC address is displayed in the <strong>HWaddr</strong> field.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your IP address with ifconfig'>Find your IP address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/windows/find-the-mac-address-on-a-windows-machine' rel='bookmark' title='Permanent Link: Find the MAC address on a Windows machine'>Find the MAC address on a Windows machine</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find your IP address with ifconfig</title>
		<link>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=find-your-ip-address-with-ifconfig</link>
		<comments>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig#comments</comments>
		<pubDate>Thu, 30 Oct 2008 10:48:07 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[inet addr]]></category>
		<category><![CDATA[IP address]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=544</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You can find the IP address of your system at the command line by using the ifconfig command. The ifconfig command will show you information on all your network interfaces. If no arguments are given ifconfig displays the status of the currently active interfaces. You have to run this command as root or use sudo. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You can find the IP address of your system at the command line by using the <strong>ifconfig</strong> command.  The ifconfig command will show you information on all your network interfaces.  If no arguments are given ifconfig displays the status of the currently active interfaces.</p>
<p>You have to run this command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<pre>
# ifconfig
</pre>
<pre>
wlan0     Link encap:Ethernet  HWaddr a1:b2:c3:d4:e5:f6
          <strong>inet addr:192.168.2.11</strong>  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:4007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3292271 (3.1 MiB)  TX bytes:994922 (971.6 KiB)
</pre>
<p>Your IP address is displayed in the <strong>inet addr</strong> field.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/find-your-mac-address-with-ifconfig' rel='bookmark' title='Permanent Link: Find your MAC address with ifconfig'>Find your MAC address with ifconfig</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
<li><a href='http://www.wiredrevolution.com/ubuntu/how-to-ssh-into-ubuntu-livecd' rel='bookmark' title='Permanent Link: How to SSH into Ubuntu LiveCD'>How to SSH into Ubuntu LiveCD</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/find-your-ip-address-with-ifconfig/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable ext3 boot-time check with tune2fs</title>
		<link>http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-ext3-boot-time-check-with-tune2fs</link>
		<comments>http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs#comments</comments>
		<pubDate>Sun, 26 Oct 2008 19:09:18 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[livecd]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[tune2fs]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=520</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The ext3 file system forces an fsck once it has been mounted a certain number of times. By default this maximum mount count is usually set between 20-30. On many systems such as laptops which can be rebooted quite often this can quickly become a problem. To turn off this checking you can use the [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/free-ext3-reserved-blocks-with-tune2fs' rel='bookmark' title='Permanent Link: Free ext3 reserved blocks with tune2fs'>Free ext3 reserved blocks with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
<li><a href='http://www.wiredrevolution.com/suse/enable-or-disable-boot-time-services-in-suse' rel='bookmark' title='Permanent Link: Enable or disable boot time services in SUSE'>Enable or disable boot time services in SUSE</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The <strong>ext3</strong> file system forces an <strong>fsck</strong> once it has been mounted a certain number of times. By default this maximum mount count is usually set between 20-30.  On many systems such as laptops which can be rebooted quite often this can quickly become a problem. To turn off this checking you can use the <strong>tune2fs</strong> command.</p>
<p>The tune2fs command utility operates exclusively on ext2/ext3 file systems.</p>
<p>To run these commands you must run the command as root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>. You must also <strong>make sure that your filesystem is unmounted before making any changes</strong>. If you are doing this on your root partition the best solution is to use a LiveCD.</p>
<p>You can run tune2fs on the ext3 partition with the &#8216;<strong>-l</strong>&#8216; option to view what your current and maximum mount count is set to currently.</p>
<pre>
tune2fs -l /dev/sda1
</pre>
<pre>
...
Mount count:              2
Maximum mount count:      25
...
</pre>
<p>To turn off this check set the maximum count to 0 with the &#8216;<strong>-c</strong>&#8216; option.</p>
<pre>
# tune2fs -c 0 /dev/sda1
</pre>
<p>If you do not want to completely disable the file system checking, you can also increase the maximum count.</p>
<pre>
# tune2fs -c 100 /dev/sda1
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/free-ext3-reserved-blocks-with-tune2fs' rel='bookmark' title='Permanent Link: Free ext3 reserved blocks with tune2fs'>Free ext3 reserved blocks with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
<li><a href='http://www.wiredrevolution.com/suse/enable-or-disable-boot-time-services-in-suse' rel='bookmark' title='Permanent Link: Enable or disable boot time services in SUSE'>Enable or disable boot time services in SUSE</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to correctly use LD_LIBRARY_PATH</title>
		<link>http://www.wiredrevolution.com/system-administration/how-to-correctly-use-ld_library_path?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-correctly-use-ld_library_path</link>
		<comments>http://www.wiredrevolution.com/system-administration/how-to-correctly-use-ld_library_path#comments</comments>
		<pubDate>Wed, 22 Oct 2008 12:32:13 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[dynamic library]]></category>
		<category><![CDATA[ELF]]></category>
		<category><![CDATA[environment variable]]></category>
		<category><![CDATA[ldd]]></category>
		<category><![CDATA[LD_LIBRARY_PATH]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=453</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>The LD_LIBRARY_PATH environment variable contains a colon separated list of paths that the linker uses to resolve library dependencies of ELF executables at run-time. These paths will be given priority over the standard library paths /lib and /usr/lib. The standard paths will still be searched, but only after the list of paths in LD_LIBRARY_PATH has [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/select-threading-implementation-using-ld_assume_kernel' rel='bookmark' title='Permanent Link: Select threading implementation using LD_ASSUME_KERNEL'>Select threading implementation using LD_ASSUME_KERNEL</a></li>
<li><a href='http://www.wiredrevolution.com/guides/how-to-get-boxee-to-correctly-identify-local-media-files' rel='bookmark' title='Permanent Link: How to get Boxee to correctly identify local media files'>How to get Boxee to correctly identify local media files</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>The LD_LIBRARY_PATH environment variable contains a colon separated list of paths that the linker uses to resolve library dependencies of ELF executables at run-time. These paths will be given priority over the standard library paths <strong>/lib</strong> and <strong>/usr/lib</strong>.  The standard paths will still be searched, but only after the list of paths in LD_LIBRARY_PATH has been exhausted.</p>
<p>The best way to use LD_LIBRARY_PATH is to set it on the command line or script immediately before executing the program. This way you can keep the new LD_LIBRARY_PATH isolated from the rest of your system.</p>
<pre>
$ export LD_LIBRARY_PATH="/list/of/library/paths:/another/path"
$ ./program
</pre>
<p>In general it is not a good practice to have LD_LIBRARY_PATH permanently set in your environment. This could lead to unintended side effects as programs can link to unintended libraries producing strange results or unexpectedly crashing. There is also the possibility introducing potential security threats. </p>
<p>All those warnings aside, if you are using BASH you can set it permanently by placing a line similar to this in your <strong>.bashrc</strong> in your home directory.</p>
<pre>
export LIBRARY_PATH="/list/of/library/paths:/another/path"
</pre>
<p>A common case for setting LD_LIBRARY_PATH is when you have an application that requires dynamic libraries which were not installed in the standard library locations.</p>
<p>You can check if the linker can locate all the required libraries by <a href="http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd">running the ldd command</a>.</p>
<pre>
$ ldd ~/myprogram
</pre>
<pre>
	librt.so.1 => /lib/librt.so.1 (0x00002b4eca08e000)
	libc.so.6 => /lib/libc.so.6 (0x00002b4eca49f000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00002b4eca7df000)
	/lib64/ld-linux-x86-64.so.2 (0x00002b4ec9e72000)
	libmylib.so.1 => not found
</pre>
<p>The linker cannot find libmylib.so.1. </p>
<p>Let&#8217;s assume this library exists here &#8220;~/myprogdir/lib/libmylib.so.1&#8243;. We have to set LD_LIBRARY_PATH to include this path for the application to successfully run.</p>
<pre>
$ export LD_LIBRARY_PATH="~/myprogdir/lib/:$LD_LIBRARY_PATH"
$ ldd ~/myprogram
</pre>
<pre>
	librt.so.1 => /lib/librt.so.1 (0x00002b4eca08e000)
	libc.so.6 => /lib/libc.so.6 (0x00002b4eca49f000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00002b4eca7df000)
	/lib64/ld-linux-x86-64.so.2 (0x00002b4ec9e72000)
	libmylib.so.1 => ~/myprogdir/lib/libmylib.so.1 (0x00002b4eca9fa000)
</pre>
<p>The linker has now found all the required libraries.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/select-threading-implementation-using-ld_assume_kernel' rel='bookmark' title='Permanent Link: Select threading implementation using LD_ASSUME_KERNEL'>Select threading implementation using LD_ASSUME_KERNEL</a></li>
<li><a href='http://www.wiredrevolution.com/guides/how-to-get-boxee-to-correctly-identify-local-media-files' rel='bookmark' title='Permanent Link: How to get Boxee to correctly identify local media files'>How to get Boxee to correctly identify local media files</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/how-to-correctly-use-ld_library_path/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Select threading implementation using LD_ASSUME_KERNEL</title>
		<link>http://www.wiredrevolution.com/system-administration/select-threading-implementation-using-ld_assume_kernel?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=select-threading-implementation-using-ld_assume_kernel</link>
		<comments>http://www.wiredrevolution.com/system-administration/select-threading-implementation-using-ld_assume_kernel#comments</comments>
		<pubDate>Mon, 13 Oct 2008 12:37:09 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[ABI]]></category>
		<category><![CDATA[environment variable]]></category>
		<category><![CDATA[glibc]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[LD_ASSUME_KERNEL]]></category>
		<category><![CDATA[LinuxThreads]]></category>
		<category><![CDATA[NPTL]]></category>
		<category><![CDATA[threads]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=273</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>For backwards compatibility, many Linux distributions support both the older LinuxThreads implementation as well as the newer Native POSIX Thread Library (NPTL). By setting the LD_ASSUME_KERNEL environment variable you can tell the dynamic linker to assume that it is running on top of a particular kernel version. This will override the dynamic linker&#8217;s default choice [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-correctly-use-ld_library_path' rel='bookmark' title='Permanent Link: How to correctly use LD_LIBRARY_PATH'>How to correctly use LD_LIBRARY_PATH</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/virtualbox-4-0-upgrade-and-the-oracle-vm-virtualbox-extension-pack' rel='bookmark' title='Permanent Link: VirtualBox 4.0 upgrade and the Oracle VM VirtualBox Extension Pack'>VirtualBox 4.0 upgrade and the Oracle VM VirtualBox Extension Pack</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>For backwards compatibility, many Linux distributions support both the older LinuxThreads implementation as well as the newer Native POSIX Thread Library (NPTL). By setting the LD_ASSUME_KERNEL environment variable you can tell the dynamic linker to assume that it is running on top of a particular kernel version.  This will override the dynamic linker&#8217;s default choice of threading implementation (usually NPTL) and force the use of the older LinuxThreads implementation at run-time. </p>
<p>Many 32-bit systems have 3 separate glibc versions which have support for a minimum OS Application Binary Interface (ABI), designated by a kernel version and offer support for a particular thread implementation.</p>
<p><strong>/lib/tls/libc.so.6</strong> </p>
<ul>
<li>minimum ABI = 2.4.20</li>
<li>Native POSIX Thread Library (NPTL)</li>
</ul>
<p><strong>/lib/i686/libc.so.6</strong> </p>
<ul>
<li>minimum ABI = 2.4.1</li>
<li>standard LinuxThreads</li>
</ul>
<p><strong>/lib/libc.so.6</strong> </p>
<ul>
<li>minimum ABI = 2.2.5</li>
<li>early LinuxThreads code which had fixed size threads</li>
</ul>
<p>It is worth noting that 64-bit systems do not support the older 2.2.5 LinuxThreads implementation.</p>
<p>You can run the following commands to see what thread implementations are supported by each separate glibc library.</p>
<pre>
$ /lib/tls/libc.so.6 | grep [T|t]hreads
</pre>
<pre>
	Native POSIX Threads Library by Ulrich Drepper
</pre>
<pre>
$ /lib/i686/libc.so.6 | grep [T|t]hreads
</pre>
<pre>
	linuxthreads-0.10 by Xavier Leroy
</pre>
<pre>
$ /lib/libc.so.6 | grep [T|t]hreads
</pre>
<pre>
	linuxthreads-0.10 by Xavier Leroy
</pre>
<p>A shared library can tell the dynamic linker which minimum OS ABI version is needed for it to successfully run. At run-time the linker will start at the most recent library path and walk backwards in this order: <strong>/lib/tls</strong>, <strong>/lib/i686</strong>, <strong>/lib</strong>.  It will either link to the first library it finds or fail and terminate the program if the minimum ABI is reached before it finds a library.</p>
<p>Setting LD_ASSUME_KERNEL below the minimum threshold ABI version of any dynamic library will cause the linker to skip that library and try to find an older implementation</p>
<p>Set the environment variable by assigning it to a specific ABI/kernel version.</p>
<pre>
$ export LD_ASSUME_KERNEL=X.Y.Z
</pre>
<p>You must be careful not to set the the ABI below 2.2.5 in your environment as all programs which require dynamic linking will probably fail to run.  Luckily you are still be able to unset or change it back.</p>
<p>It is useless to set LD_ASSUME_KERNEL for most programs as they will run correctly no matter what underlying implementation is used since the API is the same. However there are some programs that may depend on some non-conformant behavior requiring LinuxThreads, which will fail with NPTL.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/system-administration/how-to-correctly-use-ld_library_path' rel='bookmark' title='Permanent Link: How to correctly use LD_LIBRARY_PATH'>How to correctly use LD_LIBRARY_PATH</a></li>
<li><a href='http://www.wiredrevolution.com/commands/view-dynamic-library-dependencies-with-ldd' rel='bookmark' title='Permanent Link: View dynamic library dependencies with ldd'>View dynamic library dependencies with ldd</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/virtualbox-4-0-upgrade-and-the-oracle-vm-virtualbox-extension-pack' rel='bookmark' title='Permanent Link: VirtualBox 4.0 upgrade and the Oracle VM VirtualBox Extension Pack'>VirtualBox 4.0 upgrade and the Oracle VM VirtualBox Extension Pack</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/select-threading-implementation-using-ld_assume_kernel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

