<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-13864913</id><updated>2012-01-18T12:28:25.492+05:30</updated><title type='text'>Linux stuff I might forget -</title><subtitle type='html'>A place for things I might forget - till someone buys me a pensieve.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>51</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-13864913.post-6214864816404318081</id><published>2009-11-18T16:14:00.002+05:30</published><updated>2009-11-18T16:20:05.467+05:30</updated><title type='text'>Netwok Gotcha While Upgrading  To openSUSE 11.2</title><content type='html'>Upgraded my machine from openSUSE 11.1 to 11.2. And bumped royally into &lt;a href="https://bugzilla.novell.com/show_bug.cgi?id=546575"&gt;bnc#546575&lt;/a&gt;.

There's a typo in /etc/udev/rules/70-persistent-net.rules (an apparent holdout from openSUSE 10.x).

So if your machine has a manually configured IP address, check 
&lt;code&gt;/etc/udev/rules/70-persistent-net.rules&lt;/code&gt; before you update. If it contains the string &lt;code&gt;ATTRS{address}&lt;/code&gt;, edit it so that it becomes &lt;code&gt;ATTR{address}&lt;/code&gt;. Now the network configuration will be preserved after the upgrade.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-6214864816404318081?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/6214864816404318081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=6214864816404318081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/6214864816404318081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/6214864816404318081'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/11/netwok-gotcha-while-upgrading-to.html' title='Netwok Gotcha While Upgrading  To openSUSE 11.2'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-4400166728570448924</id><published>2009-11-02T16:15:00.004+05:30</published><updated>2009-11-02T16:41:49.256+05:30</updated><title type='text'>SSH Works, SCP/SFTP Fails? Check all login scripts</title><content type='html'>Gaah! Some fool snuck an unconditional echo statement in a global profile. Surefire way to get scp and sftp to stop working.

Lines that produce output, or exec statements should be conditionally placed in shell startup scripts. It's best not to have these lines take effect for non-interactive shells.

I like to test "$0" to see if it begins with a '-' to determine if a shell is a login shell, and process the rest of the script accordingly.

In bash:
&lt;pre&gt;
case $0 in
-*) # Login shell
    ;;
 *) # non-interactive shell
    ;;
esac
&lt;/pre&gt;

In csh:
&lt;pre&gt;
switch ($0)
       case -*:
          # login shell stuff

          breaksw
       default:
          # non-interactive stuff
          breaksw
endsw
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-4400166728570448924?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/4400166728570448924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=4400166728570448924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/4400166728570448924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/4400166728570448924'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/11/ssh-works-scpsftp-fails-check-all-login.html' title='SSH Works, SCP/SFTP Fails? Check all login scripts'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-5671891946720436216</id><published>2009-08-26T14:32:00.002+05:30</published><updated>2009-08-26T14:39:06.923+05:30</updated><title type='text'>bash {2..4} Variable Indirection</title><content type='html'>&lt;a href="http://www.gnu.org/software/bash/bash.html"&gt;Bash&lt;/a&gt; v4 uses new quoting syntax, $"...", to do locale-specific string translation.  

Some scripts of mine that used bash-1.14 style variable indrection need to change.

I was doing something like this to get the value of a variable whose name is the value of a second variable:
&lt;pre&gt;eval var2=$"$var1"&lt;/pre&gt;

Turns out a variable indirection feature has been around since bash 2! Sheesh! 
&lt;pre&gt;var2=${!var1}&lt;/pre&gt;
is the official way to do this.

Alternately this should also do:
&lt;pre&gt;eval var2=\$${var1}&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-5671891946720436216?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/5671891946720436216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=5671891946720436216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/5671891946720436216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/5671891946720436216'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/08/bash-24-variable-indirection.html' title='bash {2..4} Variable Indirection'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-7706191851737059108</id><published>2009-06-29T14:23:00.002+05:30</published><updated>2009-06-29T14:28:05.456+05:30</updated><title type='text'>HOWTO Check if a user or group already exists</title><content type='html'>Dont directly check with /etc/passwd, or /etc/group for existence of a user or group. This wont look up NIS database entries. A better way is to use getent, part of glibc.

Lookup database entry for an existing user:
&lt;pre&gt;getent passwd username1 [username2 ...]&lt;/pre&gt;
Lookup database entry for an existing group:
&lt;pre&gt;getent group groupname1 [groupname2 ...]&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-7706191851737059108?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/7706191851737059108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=7706191851737059108' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/7706191851737059108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/7706191851737059108'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/06/howto-check-if-user-or-group-already.html' title='HOWTO Check if a user or group already exists'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-6861598801752597706</id><published>2009-06-29T14:08:00.002+05:30</published><updated>2009-06-29T14:22:58.999+05:30</updated><title type='text'>Identifying Linux distributor and version</title><content type='html'>The &lt;a href="http://www.linuxbase.org/"&gt;Linux Standard Base&lt;/a&gt; makes it really easy to identify the Linux distributor and version for &lt;acronym title="Linux Standards Base"&gt;LSB&lt;/acronym&gt; compliant. If the lsb package is installed (redhat-lsb, lsb, asianux-lsb, ...), just run:
&lt;pre&gt;lsb_release -i -d&lt;/pre&gt; or &lt;pre&gt;lsb_release -a&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-6861598801752597706?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/6861598801752597706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=6861598801752597706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/6861598801752597706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/6861598801752597706'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/06/identifying-linux-distributor-and.html' title='Identifying Linux distributor and version'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-5538910405041993247</id><published>2009-01-06T17:10:00.003+05:30</published><updated>2009-01-06T17:36:56.305+05:30</updated><title type='text'>KDM and XDMCP</title><content type='html'>After installing OpenSuse 11.1, I wanted to configure my favorite handcrafted WoW login theme, &lt;span style="font-style:italic;"&gt;darkportal&lt;/span&gt;. The problem was I couldn't preview it without logging off. No problem - I just need to fire up Xephyr and check. So I enabled XDMCP thru the &lt;tt&gt;/etc/sysconfig&lt;/tt&gt; editor, and ran:
&lt;pre&gt;xephyr -query localhost -screen 1280x1024 :1&lt;/pre&gt;
Got a blank screen for my efforts. Grrrr... I ran:
&lt;pre&gt;netstat -aunp | grep ":177"&lt;/pre&gt;
only to figure that &lt;tt&gt;kdm&lt;/tt&gt; was listening at port 177 over IPv6!

Recalling an old KDE bug, I edited &lt;tt&gt;/etc/X11/xdm/Xaccess&lt;/tt&gt; to read:
&lt;pre&gt;LISTEN 0.0.0.0&lt;/pre&gt;
and restarted &lt;tt&gt;kdm&lt;/tt&gt;. That did the trick - phew!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-5538910405041993247?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/5538910405041993247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=5538910405041993247' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/5538910405041993247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/5538910405041993247'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2009/01/kdm-and-xdmcp.html' title='KDM and XDMCP'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-7983495426912495723</id><published>2007-02-28T15:38:00.000+05:30</published><updated>2007-02-28T17:19:59.538+05:30</updated><title type='text'>[Fix] Slow browsing on Suse 10.2 for some sites</title><content type='html'>I went fairly bananas trying to figure out why OpenSuse 10.2 was frigging slow on some web sites and not so bad on others.  Looking at forums, I ended up disabling ipv6 in Firefox, then disabling ipv6 all together. It didn't help. Eventually, it turned out that the MTU was the problem.  It was set to 1500. It required to be brought down to 1492. I couldn't figure that earlier, because our firewall blindly drops all icmp packets.

A quick

&lt;pre&gt;ifconfig eth0 mtu 1492&lt;/pre&gt;
or alternately
&lt;pre&gt;ip link set eth0 mtu 1492&lt;/pre&gt;

fixed the problem. Phew!

[Hey you newbie network admin types: Set your f/w to allow ICMP unreachable -- fragmentation needed messages. These are type 3, code 4 messages. Don't just blindly block ICMP because you read somewhere that it's unsafe.  i.e. in Linux:
&lt;pre&gt;
iptables -A FORWARD -p icmp --icmp-type fragmentation-needed -j ACCEPT
iptables -A INPUT -p icmp --icmp-type fragmentation-needed -j ACCEPT
...
iptables -A FORWARD -p icmp -j DROP
iptables -A INPUT -p icmp -j DROP
&lt;/pre&gt;
]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-7983495426912495723?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/7983495426912495723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=7983495426912495723' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/7983495426912495723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/7983495426912495723'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2007/02/fix-slow-browsing-on-suse-102-for-some.html' title='[Fix] Slow browsing on Suse 10.2 for some sites'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112444368798954234</id><published>2005-08-19T14:48:00.000+05:30</published><updated>2005-08-19T14:58:43.990+05:30</updated><title type='text'>Making ntsysv/chkconfig compatible rc scripts</title><content type='html'>To make a startup/shutdown script that can be used with ntsysv or chkconfig, the script must follow the template:&lt;br/&gt;
&lt;code&gt;
#!&lt;shellname&gt;&lt;br/&gt;
#&lt;br/&gt;
# chkconfig: &lt;i&gt;runlevel&lt;/i&gt; &lt;i&gt;startpriority&lt;/i&gt; &lt;i&gt;stoppriority&lt;/i&gt;&lt;br/&gt;
# description: &lt;i&gt;brief, possibly multi-line description&lt;/i&gt; \&lt;br/&gt;
#             &lt;i&gt;follows&lt;/i&gt;&lt;br/&gt;             
&lt;/code&gt;&lt;br/&gt;
For example:&lt;br/&gt;
&lt;code&gt;
#!/bin/bash&lt;br/&gt;
#&lt;br/&gt;
# Init file for OpenSSH server daemon&lt;br/&gt;
#&lt;br/&gt;
# chkconfig: 2345 55 25&lt;br/&gt;
# description: OpenSSH server daemon&lt;br/&gt;
&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112444368798954234?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112444368798954234/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112444368798954234' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444368798954234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444368798954234'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/making-ntsysvchkconfig-compatible-rc.html' title='Making ntsysv/chkconfig compatible rc scripts'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112444292891112646</id><published>2005-08-19T14:43:00.000+05:30</published><updated>2005-08-19T14:45:28.913+05:30</updated><title type='text'>Sharing the GNOME desktop</title><content type='html'>GNOME now has a built-in VNC service called vino. It's there in Applications-&gt;Preferences-&gt; Remote Desktop. Unlike VNC server, the display number used with this desktop is :0.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112444292891112646?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112444292891112646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112444292891112646' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444292891112646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444292891112646'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/sharing-gnome-desktop.html' title='Sharing the GNOME desktop'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112444271255607216</id><published>2005-08-19T14:28:00.000+05:30</published><updated>2005-08-19T14:42:32.220+05:30</updated><title type='text'>Resizing mounted partitions</title><content type='html'>Starting with kernel version 2.6.10, you can resize ext3 partitions using &lt;code&gt;resize2fs&lt;/code&gt; program (part of e2fsprogs). While &lt;code&gt;resize2fs&lt;/code&gt; could be used to shrink and grow ext3 partitions, the one bundled with &lt;code&gt;e2fsprogs-1.36&lt;/code&gt;+ can apparently resize even mounted partitions! Woo hoo!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112444271255607216?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112444271255607216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112444271255607216' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444271255607216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112444271255607216'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/resizing-mounted-partitions.html' title='Resizing mounted partitions'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112350368482101258</id><published>2005-08-08T17:44:00.000+05:30</published><updated>2005-08-08T18:04:37.506+05:30</updated><title type='text'>Configuring X Window</title><content type='html'>Each distribution seems to have it's own thing for configuring X:&lt;br/&gt;

&lt;dt class="fixed"&gt;xf86config
&lt;dd&gt;Standard X Window configuration tool
&lt;dt class="fixed"&gt;system-config-display
&lt;dd&gt;Red Hat/Fedora X-window configuration tool
&lt;dt class="fixed"&gt;redhat-config-xfree86/Xconfigurator
&lt;dd&gt;Older Red Hat and Fedora versions
&lt;dt class="fixed"&gt;sax
&lt;dd&gt;Suse Linux&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112350368482101258?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112350368482101258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112350368482101258' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112350368482101258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112350368482101258'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/configuring-x-window.html' title='Configuring X Window'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112349541345294745</id><published>2005-08-08T15:29:00.000+05:30</published><updated>2005-08-08T17:09:44.786+05:30</updated><title type='text'>CD recording stuff</title><content type='html'>&lt;h3&gt;Detecting the CD recorder&lt;/h3&gt;
&lt;code&gt;
cdrecord -scanbus
&lt;/code&gt;

&lt;h3&gt;To burn a CD&lt;/h3&gt;
&lt;code&gt;
cdrecord -v dev=0,0,0 driveropts=burnfree -multi -eject speed=2 archive.iso&lt;/code&gt;&lt;br/&gt;

Omit the &lt;code&gt;-multi&lt;/code&gt; if it's a single session CD.

&lt;h3&gt;To burn a multisession CD&lt;/h3&gt;
First burn:&lt;br/&gt;
&lt;code&gt;
cdrecord -v dev=0,0,0 driveropts=burnfree -multi -eject session1.iso&lt;br/&gt;
&lt;/code&gt;

For subsequent burn:&lt;br/&gt;
First create the ISO&lt;br/&gt;
Place the CD in the drive. Execute&lt;br/&gt;
&lt;code&gt;cdrecord dev=0,1,0 -msinfo&lt;br/&gt;
&lt;i&gt;0,27139&lt;/i&gt;&lt;br/&gt;
mkisofs -o session2.iso -Jr -V Session2 -C 0,27139 -M 0,0,0 /path/to/files/&lt;br/&gt;
&lt;/code&gt;

&lt;br/&gt;Alternately:&lt;br/&gt;
&lt;code&gt;
mkisofs -o session2.iso -Jr -V Session2 -C $(cdrecord dev=0,1,0 -msinfo) -M 0,0,0 /path/2/files/&lt;br/&gt;&lt;br/&gt;
&lt;/code&gt;

Now burn (dropping the -multi for the last burn):&lt;br/&gt;
&lt;code&gt;cdrecord -v dev=0,0,0 driveropts=burnfree -multi -eject session2.iso
&lt;/code&gt;&lt;br/&gt;

&lt;h3&gt;Simplify the cdrecord command line&lt;/h3&gt;
To keep the cdrecord command line simple, put common options in &lt;code&gt;/etc/default/cdrecord&lt;/code&gt;:&lt;br/&gt;
&lt;code&gt;#/etc/default/cdrecord&lt;br/&gt;
CDR_DEVICE=0,0,0&lt;br/&gt;
CDR_SPEED=2&lt;br/&gt;
&lt;/code&gt;

&lt;br/&gt;Now the command line can be greatly simplified to:&lt;br/&gt;
&lt;code&gt;cdrecord archive.iso&lt;br/&gt;&lt;/code&gt;

&lt;h3&gt;To erase a CD-RW&lt;/h3&gt;
&lt;code&gt;
cdrecord -v dev=0,0,0 blank=all&lt;br/&gt;
&lt;/code&gt;
where&lt;br/&gt;
&lt;dt&gt;-v&lt;/dt&gt;&lt;dd&gt;verbose
&lt;/dd&gt;&lt;dt&gt;dev&lt;/dt&gt;&lt;dd&gt;cdrom device (detected using &lt;code&gt;cdrecord -scanbus&lt;/code&gt;)
&lt;/dd&gt;&lt;dt&gt;blank=all&lt;/dt&gt;&lt;dd&gt;blanks the entire disk.&lt;/dd&gt;

&lt;h3&gt;Creating a hybrid ISO&lt;/h3&gt;
&lt;code&gt;
mkisofs -a -J -r -v -V vol_label -L -o img1.iso ~/cds/cd0/&lt;br/&gt;
where:&lt;br/&gt;
&lt;dt&gt;-a&lt;/dt&gt;&lt;dd&gt;Include all files on the ISO9660 file system. Files that contain '~' or '#' will be included.
&lt;/dd&gt;&lt;dt&gt;-r&lt;/dt&gt;&lt;dd&gt;Use rockridge naming conventions
&lt;/dd&gt;&lt;dt&gt;-J&lt;/dt&gt;&lt;dd&gt;Generate Joliet directory records in addition to iso9660.
&lt;/dd&gt;&lt;dt&gt;-L&lt;/dt&gt;&lt;dd&gt;Allow file names to begin with a period.
&lt;/dd&gt;&lt;dt&gt;-o &lt;i&gt;outputfilename&lt;/i&gt;&lt;/dt&gt;&lt;dd&gt;output file name.&lt;/dd&gt;&lt;/code&gt;&lt;br/&gt;
Test the created ISO by mounting it with mount -o loop.&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112349541345294745?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112349541345294745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112349541345294745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112349541345294745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112349541345294745'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/cd-recording-stuff.html' title='CD recording stuff'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112323794623287370</id><published>2005-08-05T15:58:00.000+05:30</published><updated>2005-08-05T16:02:31.190+05:30</updated><title type='text'>Changing role in SELinux enabled FC4</title><content type='html'>To run a command with a different role, first use &lt;code&gt;newrole&lt;/code&gt; to change the role. For example, to switch to the &lt;code&gt;sysadm_r&lt;/code&gt; role:&lt;br/&gt;
&lt;code&gt;
newrole -r sysadm_r
&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112323794623287370?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112323794623287370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112323794623287370' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323794623287370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323794623287370'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/changing-role-in-selinux-enabled-fc4.html' title='Changing role in SELinux enabled FC4'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112323603649296307</id><published>2005-08-05T15:23:00.000+05:30</published><updated>2005-08-05T15:39:17.273+05:30</updated><title type='text'>Enabling public_html for Apache in FC4</title><content type='html'>To enable per-user web directories on SELinux enabled FC3+, edit /etc/httpd/conf/httpd.conf:
&lt;ul&gt;
&lt;li&gt;Comment out the line &lt;code&gt;UserDir disable&lt;/code&gt;
&lt;li&gt;Add &lt;code&gt;UserDir public_html&lt;/code&gt;.
&lt;li&gt;Save the file and run &lt;code&gt;service httpd reload&lt;/code&gt;
&lt;/ul&gt;

Each user who needs web directories must do the following:
&lt;ul&gt;
&lt;li&gt;Create ~/public_html, and populate it. 
&lt;li&gt;Change perms with chmod
&lt;li&gt;Change the security context of the folder recursively:&lt;br/&gt;
&lt;code&gt;chcon -R -t httpd_user_content_t ~/public_html/&lt;br/&gt;
&lt;/code&gt;
&lt;/ul&gt;

At this point, it should work. If it does not, check to see that the Boolean that enables user home directories is enabled:
&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;system-config-securitylevel&lt;/code&gt;
&lt;li&gt;Under the SELinux tab within the Modify SELinux Policy area: 
enable Allow HTTPD to read home directories.
&lt;li&gt;Alternatively, execute &lt;br/&gt;
&lt;code&gt;setsebool httpd_enable_homedirs true
&lt;/code&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112323603649296307?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112323603649296307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112323603649296307' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323603649296307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323603649296307'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/enabling-publichtml-for-apache-in-fc4.html' title='Enabling public_html for Apache in FC4'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112323551268559828</id><published>2005-08-05T15:20:00.000+05:30</published><updated>2005-08-05T15:21:52.686+05:30</updated><title type='text'>Preventing console message flooding</title><content type='html'>To prevent kernel messages flooding the console:&lt;br/&gt;

&lt;code&gt;
dmesg -n 1&lt;br/&gt;
&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112323551268559828?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112323551268559828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112323551268559828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323551268559828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112323551268559828'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/preventing-console-message-flooding.html' title='Preventing console message flooding'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112321436568253073</id><published>2005-08-04T17:58:00.000+05:30</published><updated>2005-08-05T15:20:06.123+05:30</updated><title type='text'>SE Linux essentials (FC3)</title><content type='html'>Bare minimal SElinux:
&lt;ul&gt;&lt;li&gt;SELinux in FC3 uses a &lt;span style="font-style: italic;"&gt;targeted&lt;/span&gt; policy by default. One could opt for a &lt;span style="font-style: italic;"&gt;strict&lt;/span&gt; policy too, which was default with FC2. The policy files  needed are in these RPMs
&lt;ul&gt;&lt;tt&gt;selinux-policy-strict-&lt;i&gt;&lt;version-arch&gt;&lt;/i&gt;.rpm&lt;/tt&gt;                    and &lt;tt&gt;selinux-policy-strict-sources-&lt;i&gt;&lt;version-arch&gt;&lt;/i&gt;.rpm&lt;/tt&gt;                
&lt;li&gt;&lt;tt&gt;selinux-policy-targeted-&lt;i&gt;&lt;version-arch&gt;&lt;/i&gt;.rpm&lt;/tt&gt;                    and &lt;tt&gt;selinux-policy-targeted-sources-&lt;i&gt;&lt;version-arch&gt;&lt;/i&gt;.rpm&lt;/tt&gt;                 &lt;/ul&gt;

The policy source resides in &lt;tt&gt;/etc/selinux/&lt;i&gt;policyname&lt;/i&gt;/src/policy&lt;/tt&gt;, when it is installed, and the binary policy file is in &lt;tt&gt;/etc/selinux/&lt;i&gt;policyname&lt;/i&gt;/policy&lt;/tt&gt;.

&lt;li&gt;Use &lt;code&gt;system-config-securitylevel&lt;/code&gt; to change SELinux based settings.
&lt;li&gt;The &lt;code&gt;ls&lt;/code&gt; command's &lt;code&gt;-Z&lt;/code&gt; option will display the security context of a file
&lt;li&gt;The &lt;code&gt;id&lt;/code&gt; command's &lt;code&gt;-Z&lt;/code&gt; option will display the security context of a user
&lt;li&gt;The &lt;code&gt;ps&lt;/code&gt; command's &lt;code&gt;-Z&lt;/code&gt; option will display the security context of a process.
&lt;li&gt;Don't take policy switching lightly. Unless of course, it's for learning :)
&lt;li&gt;To change the policy - easy way - run &lt;code&gt;system-config-securitylevel&lt;/code&gt;, change the policy and reboot.
&lt;li&gt;To change the policy manually - 
 &lt;ol&gt;
 &lt;li&gt;Edit /etc/selinux/config and change the type of policy to &lt;code&gt;SELINUXTYPE=&lt;i&gt;policyname&lt;/i&gt;&lt;/code&gt;.
&lt;li&gt;Set the mode to permissive. &lt;code&gt;SELINUX=permissive&lt;/code&gt;.
&lt;li&gt;Tell the init scripts to relabel the system on reboot with the command &lt;code&gt;touch /.autorelabel&lt;/code&gt;.
&lt;li&gt;Reboot the system.
&lt;li&gt;Confirm your changes took effect with the command &lt;code&gt;sestatus -v&lt;/code&gt;. With the new system running in permissive mode, check /var/log/messages for avc: denied messages. Fix any problems.
&lt;li&gt;When you are satisfied that the system runs stable under the new policy, enable enforcing by changing &lt;code&gt;SELINUX=enforcing&lt;/code&gt;. You can either reboot or run &lt;code&gt;setenforce 1&lt;/code&gt; to turn enforcing on in real time.  
&lt;/ol&gt;
&lt;li&gt;Ordinary backups will not backup the security context which are stored as extended attributes. Use &lt;code&gt;star&lt;/code&gt; to backup files on an SElinux protected system. In particular, use the &lt;code&gt;-xattr&lt;/code&gt; and &lt;code&gt;-H=exustar&lt;/code&gt; options. Eg: &lt;br/&gt;&lt;code&gt;
star -xattr -H=exustar -c -f ../test.star ./*&lt;br/&gt;
&lt;/code&gt;
&lt;li&gt;The variable SELINUX in /etc/selinux/config can take the values 
disabled, enforcing, or permissive. Booting the kernel with enforcing=0 is the same as SELINUX=permissive. Similarly, ooting the kernel with enforcing=1 is the same as SELINUX=enforcing
&lt;li&gt;As a safer alternative to booting with &lt;code&gt;selinux=0&lt;/code&gt;, use SELINUX=disabled in /etc/selinux/config.
&lt;li&gt;To temporarily turn off the enforcing mode, use &lt;code&gt;setenforce 0&lt;/code&gt;. To return to enforcing mode, &lt;code&gt;setenforce 1&lt;/code&gt;.
&lt;li&gt;To turn off selinux at bootup, add &lt;code&gt;selinux=0&lt;/code&gt; to your kernel command line. Note that if you boot with &lt;code&gt;selinux=0&lt;/code&gt;, any files you create while SELinux is disabled will &lt;b&gt;NOT&lt;/b&gt; have SELinux context information. If booting with selinux=1 fails, relabel the files with a &lt;code&gt;touch /.autorelabel&lt;/code&gt; and reboot into single user mode.
&lt;li&gt;&lt;code&gt;/usr/sbin/sestatus -v&lt;/code&gt; displays status info about SELinux
&lt;li&gt;To relabel a directory, use &lt;code&gt;restorecon -v -R &lt;i&gt;/path&lt;/i&gt;. 
&lt;li&gt;If you have file systems shared by both SELinux enabled and non-SELinux machines - eg a dual-boot Suse and FC4 sharing the same /home, it sort of spells trouble when booting into SElinux as it may require relabelling.
&lt;li&gt;Mounting a non-SELinux file system via NFS results in SELinux treating all the files in the share as having a context of nfs_t. To override the default context to say, system_u:object_r:tmp_t to SELinux: &lt;br/&gt;
&lt;code&gt;
mount -t nfs -o context=system_u:object_r:tmp_t server:/shared/foo /mnt/foo
&lt;/code&gt;
&lt;li&gt;To change and load the security policy:&lt;br/&gt;
&lt;code&gt;
cd /etc/selinux/targeted/src/policy&lt;br/&gt;
make clean&lt;br/&gt;
make load&lt;br/&gt;
&lt;/code&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112321436568253073?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112321436568253073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112321436568253073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112321436568253073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112321436568253073'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/se-linux-essentials-fc3.html' title='SE Linux essentials (FC3)'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112315700163077214</id><published>2005-08-04T17:13:00.000+05:30</published><updated>2005-08-04T17:56:54.990+05:30</updated><title type='text'>Upgrading CentOS 4.0 to CentOS 4.1</title><content type='html'>CentOS 4 is basically Red Hat Enterprise Linux 4. I just upgraded it to CentOS 4.1 using the rpms using these steps:&lt;br/&gt;&lt;br/&gt;

&lt;ul&gt;
&lt;li&gt;Download the rpms from CentOS/4.1/os on any mirror.
&lt;li&gt;Download the updates from CentOS/4.1/updates on any mirror.
&lt;li&gt;Download any extra modules that depend on the kernel version. In my case, I had to download linux-ntfs rpms for the 2.6.11ELhugemem kernel.
&lt;li&gt;Disable selinux using &lt;br/&gt;
&lt;code&gt;setenforce 0&lt;/code&gt;. &lt;br/&gt;
(Failing to do this made the rpm postinstall fail for some rpm files. Off the cuff, I recall the rpms for &lt;code&gt;bzip2-libs&lt;/code&gt;, and &lt;code&gt;krb5-*&lt;/code&gt; failing.)
&lt;li&gt;From the directory containing the 4.1 rpms, run&lt;br/&gt;
&lt;code&gt;rpm -Fvh *.rpm&lt;/code&gt;&lt;br/&gt;
You do need a lot of free disk space for this to work. Alternately, freshen a few rpms at a time :)
&lt;li&gt;Now enable selinux with 
&lt;code&gt;setenforce 1&lt;/code&gt;. &lt;br/&gt;
&lt;li&gt;Reboot in run level 1 so that no services start up
&lt;li&gt;Run &lt;br/&gt;
&lt;code&gt;/sbin/fixfiles relabel&lt;/code&gt;&lt;br/&gt;
Alternately, to speeden things up, you can also use &lt;br/&gt;
&lt;code&gt;/sbin/restorecon -R pathname&lt;/code&gt;&lt;br/&gt;
to recursively restore security context on the specified path - in my case /lib and /usr/lib were definitely affected. I opted for the fixfiles approach rather than weed out directories individually.
&lt;li&gt;Change to the normal runlevel
&lt;/ul&gt;
That's all there is to it :-)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112315700163077214?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112315700163077214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112315700163077214' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112315700163077214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112315700163077214'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/08/upgrading-centos-40-to-centos-41.html' title='Upgrading CentOS 4.0 to CentOS 4.1'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112229592918229622</id><published>2005-07-25T18:06:00.000+05:30</published><updated>2005-07-25T18:22:22.990+05:30</updated><title type='text'>Adorning links in HTML with images</title><content type='html'>Not really linux - more HTML+CSS stuff :-)

I always wondered if it would be too painful to get images next to links like the way they have in some &lt;a href="http://gcc.gnu.org/wiki/What%20will%20be%20in%204.0"&gt;wikis&lt;/a&gt;. Seems for every HTML problem, there's a CSS solution lurking, just waiting to jump out :-) You need to do something like this: &lt;br/&gt;
&lt;code&gt;
&amp;lt;style&gt;&lt;br/&gt;
  .whatever {&lt;br/&gt;
 background-color: transparent;&lt;br/&gt;
 background-image: url(&lt;span style="font-style:italic;"&gt;imgfilename&lt;/span&gt;);&lt;br/&gt;
 background-attachment: scroll; &lt;br/&gt;
 background-repeat: no-repeat;&lt;br/&gt;
/* Change following to 'right' instead of 'left' if you need it right aligned.
*/&lt;br/&gt;
 background-position: left;&lt;br/&gt;
/* Change following to 'right' instead of 'left' if you need it right aligned.
*/&lt;br/&gt;
 padding-left: 18px;&lt;br/&gt;
   }&lt;br/&gt;
&amp;lt;/style&gt;&lt;br/&gt;
&amp;lt;body&gt;&lt;br/&gt;
... Testing &amp;lt;a class="whatever" href="..."&gt;links&amp;lt;/a&gt;&lt;br/&gt;
&amp;lt;/body&gt;&lt;br/&gt;
&lt;/code&gt;&lt;br/&gt;

I'll probably separate out the HTML stuff from this blog if there are too many of these HTML tips.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112229592918229622?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112229592918229622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112229592918229622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112229592918229622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112229592918229622'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/adorning-links-in-html-with-images.html' title='Adorning links in HTML with images'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112203477980406078</id><published>2005-07-22T17:17:00.000+05:30</published><updated>2005-07-22T18:08:58.090+05:30</updated><title type='text'>Installing grub on removable media</title><content type='html'>&lt;a href="http://www.gnu.org/software/grub/"&gt;Grub&lt;/a&gt; is a really nifty boot loader. I especially love two things about it:
&lt;ul&gt;
&lt;li&gt;A command-line interface
&lt;li&gt;No reinstallation for kernel changes
&lt;/ul&gt;

Even if the OS boot loader gets knackered, you can probably restore it if you have a grub floppy.&lt;br/&gt;&lt;br/&gt;

&lt;span style="font-weight:bold;"&gt;Installing grub on a floppy&lt;/span&gt;&lt;br/&gt;

Here's how to get grub on a floppy:&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;Kiss the prior contents of the floppy goodbye ;-)
&lt;li&gt;Change to the directory /usr/share/grub/i386-redhat (on fedora) or /usr/lib/grub (on Suse) or /usr/share/grub/i386-pc if you built and installed grub yourself&lt;br/&gt;
&lt;li&gt;Execute the commands: 
&lt;code&gt;&lt;br/&gt;
dd if=stage1 of=/dev/fd0 bs=512 count=1&lt;br/&gt;
dd if=stage2 of=/dev/fd0 bs=512 seek=1&lt;br/&gt;
&lt;/code&gt; 
&lt;/ul&gt;

You ought to be able to get a grub prompt on booting with this disk.&lt;br/&gt;
&lt;br/&gt;
Here's another way to do the same thing - not so destructively&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;Mount a ext2-formatted floppy to say /mnt/floppy
&lt;li&gt;Copy the contents of the /usr/share/grub/i386*/{stage1,stage2,e2fs_stage1_5} to /mnt/floppy/boot/
&lt;li&gt;Optionally create a /mnt/floppy/boot/menu.lst
&lt;li&gt;Execute &lt;code&gt;grub-install --root-directory=/mnt/floppy fd0&lt;/code&gt;
&lt;li&gt;Umount the floppy
&lt;/ul&gt;
If you dont have grub-install, or are paranoid about using it, there's yet another way - boot into a grub prompt either using a floppy created using the destructive way outlined above, or on some machine with grub installed on the hard disk. Drop to a grub prompt. Then place the ext2 floppy in the drive and execute:&lt;br/&gt;
&lt;code&gt;
root (fd0)&lt;br/&gt;
setup (fd0)&lt;br/&gt;
&lt;/code&gt;
You ought to have a grub-bootable on your hands now. I think the grub-install part ought to work with USB drives as well tho' I haven't really tried it.&lt;br/&gt;&lt;br/&gt;

&lt;span style="font-weight:bold;"&gt;Installing grub on a CD&lt;/span&gt;&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;mkdir -p iso/boot/grub
&lt;li&gt;cp /usr/share/grub/i386-*/stage2_eltorito iso/boot/grub
&lt;li&gt;Optionally create a iso/boot/grub/menu.lst. 

&lt;li&gt;Create an iso image:&lt;br/&gt;
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \&lt;br/&gt;
-boot-load-size 4 -boot-info-table -o grub.iso iso
&lt;li&gt;Burn the grub.iso image to cd.
&lt;/ul&gt;

Hopefully if all goes right, you have a bootable grub CD. Of course, try this with rewriteable CDs if you *really* need to be sure :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112203477980406078?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.gnu.org/software/grub/' title='Installing grub on removable media'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112203477980406078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112203477980406078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112203477980406078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112203477980406078'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/installing-grub-on-removable-media.html' title='Installing grub on removable media'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112203103907381687</id><published>2005-07-22T16:14:00.000+05:30</published><updated>2005-07-22T16:47:19.086+05:30</updated><title type='text'>Unzipping large files in Linux</title><content type='html'>Infozip's &lt;a href="http://www.info-zip.org/pub/infozip/UnZip.html"&gt;Unzip&lt;/a&gt; program has certain file size &lt;a href="http://www.info-zip.org/pub/infozip/FAQ.html#limits"&gt;limits&lt;/a&gt;. It may not support files whose unzipped size is larger than 4GB and instead produce this error:&lt;br/&gt;
&lt;code&gt;skipping: yeas3/yeas3.TRC need PK compat. v4.5 (can do v2.1)&lt;/code&gt;&lt;br/&gt;

Support for unzipping large files will come with Unzip 6.x - the current version is 5.52.&lt;br/&gt;

So what if you want to unzip a large file on unix *now*? You could either unzip on Windows with any number of utilities (&lt;a href="http://www.7-zip.org/"&gt;7-zip&lt;/a&gt;/&lt;a href="http://www.powerarchiver.com/"&gt;PowerArchiver&lt;/a&gt;/Izarc) and somehow get the file over to Linux/Unix - or locate the unix version of 7-zip's command line utility (7za) called &lt;a href="http://p7zip.sourceforge.net/"&gt;p7zip&lt;/a&gt;. All you need to do is build the executable from source:&lt;br/&gt;
&lt;code&gt;make&lt;br/&gt;
make install&lt;br/&gt;
&lt;/code&gt;
Then run:&lt;br/&gt;
&lt;code&gt;7za x file.zip [filename ...]&lt;/code&gt;
&lt;br/&gt;

Till unzip 6.0 arrives, this one is going to be one fixture on my machine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112203103907381687?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://sourceforge.net/projects/p7zip/' title='Unzipping large files in Linux'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112203103907381687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112203103907381687' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112203103907381687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112203103907381687'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/unzipping-large-files-in-linux.html' title='Unzipping large files in Linux'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112192109635223462</id><published>2005-07-20T16:05:00.000+05:30</published><updated>2005-07-21T10:14:56.383+05:30</updated><title type='text'>NSD - Name Server Daemon</title><content type='html'>Ack! Now here's a good replacement for BIND if your requirements aren't too heavy. It's a high-performance authoritative name server. Being authoritative is good I guess since it&lt;ul&gt;
&lt;li&gt;separates cached &amp; authoritative data
&lt;li&gt;simplifies the software
&lt;li&gt;avoids BIND bugs and security flaws
&lt;/ul&gt;
It caters to the security conscious with DNSSEC. I've yet to try it - looks promising, tho'.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112192109635223462?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.nlnetlabs.nl/nsd/' title='NSD - Name Server Daemon'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112192109635223462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112192109635223462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112192109635223462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112192109635223462'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/nsd-name-server-daemon.html' title='NSD - Name Server Daemon'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112185460510482766</id><published>2005-07-20T15:21:00.000+05:30</published><updated>2005-07-20T15:46:45.113+05:30</updated><title type='text'>Newsforge's 10 commandments of system administration</title><content type='html'>Newsforge has a nice collection of articles for system administration titled&lt;br/&gt;
The Ten Commandments of System Administration&lt;br/&gt;
&lt;br/&gt;
In short:
&lt;ol type="i"&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/04/15/2130246&amp;tid=91"&gt;Thou shalt make regular and complete backups&lt;/a&gt;&lt;br/&gt;
Use whatever floats your boat for this one - amanda, rsync, tar, etc.
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/04/25/1926246&amp;tid=152"&gt;Thou shalt establish absolute trust in thy servers&lt;/a&gt;&lt;br/&gt;
using file integrity tools like tripwire, &lt;a href="http://www.cs.tut.fi/~rammer/aide.html"&gt;aide&lt;/a&gt;, and &lt;a href="http://afick.sourceforge.net/"&gt;afick&lt;/a&gt;.
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/05/02/1426209&amp;tid=91"&gt;Thou shalt be the first to know when something goes down&lt;/a&gt;&lt;br/&gt;using tools like &lt;a href="http://www.nagios.org/"&gt;Nagios&lt;/a&gt;, &lt;a href="http://www.bigsister.ch/"&gt;Big Sister&lt;/a&gt; and &lt;a href="http://www.zabbix.com/"&gt;Zabbix&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/05/09/198203&amp;tid=91"&gt;Thou shalt keep server logs on everything&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/05/13/1851255&amp;tid=152"&gt;Thou shalt document complete and effective policies and procedures&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/05/20/1446206&amp;tid=91"&gt;Thou shalt know what cable goes where&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/05/20/1446206&amp;tid=91"&gt;Thou shalt use encryption for insecure services&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/06/03/2032258&amp;tid=91"&gt;Thou shalt not lose system logs when a server dies&lt;/a&gt;
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/06/13/2034239&amp;tid=152"&gt;Thou shalt know the openings into your servers&lt;/a&gt;&lt;br/&gt;
using the well-established &lt;a href="http://www.insecure.org/nmap/"&gt;nmap&lt;/a&gt; program.
&lt;li&gt;&lt;a href="http://software.newsforge.com/article.pl?sid=05/06/20/1438209&amp;from=rss"&gt;Thou shalt not waste time doing repetitive and mundane tasks&lt;/a&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112185460510482766?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.newsforge.com/' title='Newsforge&apos;s 10 commandments of system administration'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112185460510482766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112185460510482766' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112185460510482766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112185460510482766'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/newsforges-10-commandments-of-system.html' title='Newsforge&apos;s 10 commandments of system administration'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112134281163653692</id><published>2005-07-14T17:17:00.000+05:30</published><updated>2005-07-14T17:36:51.643+05:30</updated><title type='text'>TrueType and Mozilla</title><content type='html'>Downloaded and installed that latest version of Mozilla? You may need to tweak some settings - if you create a new profile, these steps would have to be repeated&lt;br/&gt;&lt;br/&gt;

&lt;ol&gt;
&lt;li&gt;In the location bar, type &lt;code&gt;about:config&lt;/code&gt;
&lt;li&gt;In the filter bar that appears, type &lt;code&gt;font&lt;/code&gt;
&lt;li&gt;Locate the line "font.FreeType2.enable". If the value here is false, change it to &lt;span style="font-weight:bold;"&gt;true &lt;/span&gt;
&lt;li&gt;Edit the &lt;instdir&gt;/default/firefox.js or &lt;instdir&gt;/default/unix.js and add a line for each directory with TrueType/OpenType fonts like this:&lt;br/&gt;
&lt;code&gt;
pref("font.directory.truetype.1", "/usr/local/share/fonts/TrueType");&lt;br/&gt;
pref("font.directory.truetype.2", "/usr/share/fonts/TrueType");&lt;br/&gt;
&lt;/code&gt;
&lt;/ol&gt;
&lt;br/&gt;
Now hopefully mozilla will render fonts better. If not, check &lt;a href="http://www.mozilla.org/projects/fonts/unix/enabling_truetype.html"&gt;this page&lt;/a&gt; for anything I may have missed out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112134281163653692?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112134281163653692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112134281163653692' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112134281163653692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112134281163653692'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/truetype-and-mozilla.html' title='TrueType and Mozilla'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112123609143140064</id><published>2005-07-13T11:43:00.000+05:30</published><updated>2005-07-13T11:58:11.436+05:30</updated><title type='text'>Changing display managers</title><content type='html'>To use &lt;acronym title="KDE Display Manager"&gt;kdm&lt;/acronym&gt; as the default display manager instead of &lt;acronym title="GNOME Display Manager"&gt;gdm&lt;/acronym&gt; in Fedora/Redhat/Mandrake distributions, edit &lt;code&gt;/etc/sysconfig/desktop&lt;/code&gt; and add DISPLAYMANAGER="kdm" (or just edit the DISPLAYMANAGER line if it already exists.) Mandrake has two versions of KDE display manager - the normal version is kdm, and Mandrake's tweaked version can be referred to with DISPLAYMANAGER="KDE".&lt;br/&gt;&lt;br/&gt;

For Suse Linux, you need to play with /etc/sysconfig/displaymanager and edit the DISPLAYMANAGER line either using a text editor or the /etc/sysconfig/Editor in YaST.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112123609143140064?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112123609143140064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112123609143140064' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112123609143140064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112123609143140064'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/changing-display-managers.html' title='Changing display managers'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112083476732307805</id><published>2005-07-08T20:24:00.000+05:30</published><updated>2005-07-08T20:30:12.026+05:30</updated><title type='text'>xargs and maverick tars</title><content type='html'>Ever had a tar file which didn't have a directory as it's top level entry? I really hate these maverick tarballs - I really like the idea of tarballs storing a directory and it's contents rather than merely a directory. Why? So that when untarred, it doesn't spew files in the current directory and mess things up. Sybase's ASE tarballs come to mind on this one. Anyways, if you have to clean the mess, it's not a big deal. I use&lt;br/&gt;
&lt;code&gt;tar tf filename.tar | xargs rm&lt;/code&gt;&lt;br/&gt;
Of course, use &lt;code&gt;jtf&lt;/code&gt; for &lt;code&gt;filename.tar.bz2&lt;/code&gt; and &lt;code&gt;ztf&lt;/code&gt; for &lt;code&gt;filename.tar.gz&lt;/code&gt;. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112083476732307805?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112083476732307805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112083476732307805' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083476732307805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083476732307805'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/xargs-and-maverick-tars.html' title='xargs and maverick tars'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112083443929279644</id><published>2005-07-08T20:16:00.000+05:30</published><updated>2005-07-08T20:23:59.293+05:30</updated><title type='text'>grep is good, grep is fun, grep is good for every1</title><content type='html'>I love the GNU &lt;code&gt;grep&lt;/code&gt; over the normal U*x &lt;code&gt;grep&lt;/code&gt;. It has a few cool extensions over the POSIX &lt;code&gt;grep&lt;/code&gt;. One of them is the &lt;code&gt;-R&lt;/code&gt; option that lets you recurse through directories to search for a pattern. That's one of the reasons I've always compiled the GNU &lt;code&gt;grep&lt;/code&gt; on U*x machines as well. If there's no option but to use the standard &lt;code&gt;grep&lt;/code&gt;, all isn't lost - &lt;code&gt;xargs&lt;/code&gt; and &lt;code&gt;find&lt;/code&gt; along with &lt;code&gt;grep&lt;/code&gt;do the same job. i.e. &lt;br/&gt;
&lt;code&gt;find -type f -print| xargs grep -li "&lt;span style="font-style:italic;"&gt;pattern&lt;/span&gt;"&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;
It's no fun having three processes to do something instead of merely one, but that's the only option when in a bind.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112083443929279644?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112083443929279644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112083443929279644' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083443929279644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083443929279644'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/grep-is-good-grep-is-fun-grep-is-good.html' title='grep is good, grep is fun, grep is good for every1'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112083284463089297</id><published>2005-07-08T19:11:00.000+05:30</published><updated>2005-07-08T20:09:14.536+05:30</updated><title type='text'>Which ports in use? Who opened them?</title><content type='html'>Two questions I get frequently asked is:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;How do I figure which ports are in use?
&lt;li&gt;How do I figure which program is holding this port open?
&lt;/ul&gt;
&lt;br/&gt;
Q. How do I figure which ports are in use?&lt;br/&gt;
A. Every OS with TCP/IP as a network stack includes a command called &lt;code&gt;netstat&lt;/code&gt;. Use&lt;br/&gt;
&lt;code&gt;netstat -na&lt;/code&gt;&lt;br/&gt;
to display all open port numbers.&lt;br/&gt;&lt;br/&gt;
The &lt;code&gt;-a&lt;/code&gt; and &lt;code&gt;-n&lt;/code&gt; are probably the most portable command options to netstat. You can fine-tune the output - say for example you want to see only TCP ports and not UDP, IPv4 only and not IPv6, etc. Those are pretty OS specific options tho'. For example, Linux's netstat has the option &lt;code&gt;-l&lt;/code&gt; to list only listening ports. The netstat version supplied with Windows 2000 or Solaris does not have an equivalent option! It's best to check up the help text (man pages on U*x) to determine the supported options&lt;br/&gt;&lt;br/&gt;

Q. How do I figure which program is holding port &lt;n&gt; open?&lt;br/&gt;
A. Use &lt;code&gt;lsof&lt;/code&gt;. In particular, use &lt;br/&gt;
&lt;code&gt;lsof | grep "&lt;span style="font-style:italic;"&gt;nn&lt;/span&gt;"&lt;/code&gt;&lt;br/&gt; to figure the process holding the port open. Of course you can also use&lt;br/&gt;
&lt;code&gt;lsof| grep -i "&lt;span style="font-style:italic;"&gt;progname&lt;/span&gt;"&lt;/code&gt;&lt;br/&gt;
to figure the ports the program &lt;code&gt;&lt;span style="font-style:italic;"&gt;progname&lt;/span&gt;&lt;/code&gt; has open.&lt;br/&gt;&lt;br/&gt;
It may not be present on all U*x machines, but no big deal - download the sources off &lt;code&gt;ftp://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof&lt;/code&gt; and compile. At least you get prebuilt binaries for Linux and Solaris. Other than these platforms, lsof works fine with AIX 5, Apple Darwin 7.7.0, *BSD, HP-UX and Tru64 UNIX 5.1. Sorry, lsof doesn't do Windows. Use &lt;a href="http://www.sysinternals.com"&gt;Sysinternal&lt;/a&gt;'s &lt;a href="http://www.sysinternals.com/Utilities/ProcessExplorer.html"&gt;Process Explorer&lt;/a&gt; to determine open ports for Windows machines.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112083284463089297?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112083284463089297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112083284463089297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083284463089297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112083284463089297'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/which-ports-in-use-who-opened-them.html' title='Which ports in use? Who opened them?'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112056136821865140</id><published>2005-07-05T16:15:00.000+05:30</published><updated>2005-07-05T16:43:09.876+05:30</updated><title type='text'>Screen captures in Unix/Linux</title><content type='html'>There are several tools around for screen caps in Unix/Linux.&lt;br/&gt;&lt;br/&gt;

First option:&lt;br/&gt;
GNOME users: Use the built-in tool to take a screen shot. You don't need to go as far to launch it. A &lt;kbd&gt;PrintScreen&lt;/kbd&gt; to take a screenshot of the desktop is enough. Want only a window? Get the window into focus and hit &lt;kbd&gt;Alt&lt;/kbd&gt;+&lt;kbd&gt;PrintScreen&lt;/kbd&gt;.&lt;br/&gt;&lt;br/&gt;

KDE users: &lt;code&gt;ksnapshot&lt;/code&gt; is pretty impressive. It too can take images of the desktop or window.&lt;br/&gt;&lt;br/&gt;

Second option (in order of preference):&lt;br/&gt;
&lt;code&gt;gimp&lt;/code&gt;: GIMP can take screenshots - gimp1 seems to dither on Solaris 8 tho'. At least on the installation I worked with it didn't work too well. It still worked a lot better than Solaris's own &lt;code&gt;sdtimage&lt;/code&gt;.&lt;br/&gt;&lt;br/&gt;

&lt;code&gt;xv&lt;/code&gt;: A fast image viewer - it can also take screenshots. :) The reason it is second in preference is it is shareware - it may not readily be available on the machine.&lt;br/&gt;&lt;br/&gt;

&lt;code&gt;stdimage&lt;/code&gt;: This tool is available on Solaris only. Not too impressive - kept crashing in Solaris 8 :(&lt;br/&gt;&lt;br/&gt;

Last option: Use the command line. My favorite in order of preference:&lt;br/&gt;
&lt;code&gt;import&lt;/code&gt;: Part of ImageMagick's impressive suite. &lt;br/&gt;&lt;br/&gt;

&lt;code&gt;xwd&lt;/code&gt; and &lt;code&gt;convert&lt;/code&gt;: &lt;code&gt;xwd&lt;/code&gt; can capture X-Window dumps but the format is not understood by most image viewers. ImageMagick's &lt;code&gt;convert&lt;/code&gt; however can convert these files into a gif/jpeg/whatever else. &lt;br/&gt;&lt;br/&gt;

There probably are other means too, but I'm not really aware of any other than the tools mentioned above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112056136821865140?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112056136821865140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112056136821865140' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112056136821865140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112056136821865140'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/screen-captures-in-unixlinux.html' title='Screen captures in Unix/Linux'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112055224837534981</id><published>2005-07-05T13:15:00.000+05:30</published><updated>2005-07-05T14:09:21.793+05:30</updated><title type='text'>Installing truetype fonts in Suse Linux</title><content type='html'>Damn! There's no ttmkfdir in Suse 9.1 - I looked, but I couldn't find it. Maybe I'm missing something. :( In any case, the help for installing new fonts is in the Administration Guide, Chapter 4, section 2.&lt;br/&gt;&lt;br/&gt;

Simply install the fonts in some directory which is a subdirectory of the directories listed in /etc/fonts/fonts.conf. For example, &lt;code&gt;/usr/X11R6/lib/X11/fonts/truetype&lt;/code&gt; Alternately, use KDE's font installer from the Kontrol center. Either way the result is the same.&lt;br/&gt;&lt;br/&gt;
If the fonts are already present in some other partition - for example, the &lt;systemroot&gt;/fonts/ directory on the Windows partition, create symlinks to those fonts using &lt;code&gt;SuSEconfig --module fonts&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

This is applicable for all font types - bitmap fonts, TrueType and OpenType fonts, and Type1 (PostScript) fonts. It isn't applicable to CID fonts. CID-keyed fonts must be installed in &lt;code&gt;/usr/share/ghostscript/Resource/CIDFont&lt;/code&gt;.&lt;br/&gt;&lt;br/&gt;

In any case, given that &lt;code&gt;~/.fonts&lt;/code&gt; is mentioned in &lt;code&gt;/etc/fons/fonts.conf&lt;/code&gt; in both Red Hat/Fedora and Suse, one of the simplest ways to install fonts - one common to both flavors of Linux would be to drop the fonts in &lt;code&gt;~/.fonts&lt;/code&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112055224837534981?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112055224837534981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112055224837534981' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112055224837534981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112055224837534981'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/installing-truetype-fonts-in-suse.html' title='Installing truetype fonts in Suse Linux'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112019190586149902</id><published>2005-07-01T09:51:00.000+05:30</published><updated>2005-07-01T09:55:05.866+05:30</updated><title type='text'>Displaying multipage fax documents</title><content type='html'>A received fax is usually a TIFF file - but if it's multi-page, the usual image viewing proggies like gimp, xv, et al do not show more than one page. That's when KFax comes to the rescue - navigation with KFax thru a multi-page document is as simple as using &lt;kbd&gt;PgUp&lt;/kbd&gt; and &lt;kbd&gt;PgDn&lt;/kbd&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112019190586149902?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112019190586149902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112019190586149902' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112019190586149902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112019190586149902'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/07/displaying-multipage-fax-documents.html' title='Displaying multipage fax documents'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112013843098026628</id><published>2005-06-30T18:46:00.000+05:30</published><updated>2005-06-30T19:03:50.986+05:30</updated><title type='text'>Passwordless logins with SSH</title><content type='html'>Here's how to login without supplying a password for remote machines running ssh.&lt;br/&gt;&lt;br/&gt;
&lt;ul&gt;
&lt;li&gt;On the local Unix/Linux host or a local Windows host with openssh installed, execute:&lt;br/&gt;
&lt;code&gt;ssh-keygen -t dsa&lt;/code&gt;&lt;/li&gt;

&lt;li&gt;Use scp to copy the $HOME/.ssh/id_dsa.pub from the local machine to the remote ssh host.&lt;/li&gt;
&lt;li&gt;Login to the remote ssh host.&lt;/li&gt;
&lt;li&gt;Append the contents of id_dsa.pub to $HOME/.ssh/authorized_keys.&lt;br/&gt;
&lt;code&gt;cat $HOME/id_dsa.pub &gt; $HOME/.ssh/authorized_keys&lt;br/&gt;
rm $HOME/id_dsa.pub&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Ensure permissions on the $HOME/.ssh directory are strictly for the file owner only.&lt;br/&gt;
&lt;code&gt;chmod 700 $HOME/.ssh&lt;br/&gt;
chmod 600 $HOME/.ssh/*&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;hr&gt;
Alternately, if the local host is Windows and there's no openssh around, then download and install the &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/"&gt;Putty&lt;/a&gt; installer  - preferrably the 0.58 version or higher. Then run the &lt;code&gt;puttygen&lt;/code&gt; tool, select the dsa option and press Generate. After the key generation is completed, save the public and private keys. Do the same stuff with the public key as mentioned above. [Urk - I'll complete this later - am running late ]&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112013843098026628?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112013843098026628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112013843098026628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112013843098026628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112013843098026628'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/passwordless-logins-with-ssh.html' title='Passwordless logins with SSH'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112005719723034180</id><published>2005-06-29T20:25:00.000+05:30</published><updated>2005-06-29T20:29:57.230+05:30</updated><title type='text'>Converting Type 1 fonts for use with Windows</title><content type='html'>Some Linux distributions like &lt;a href="http://www.redhat.com"&gt;Red Hat&lt;/a&gt; and &lt;a href="http://www.suse.com"&gt;Suse&lt;/a&gt; have some fabulous Type 1 fonts for use that Windows users can really drool over. I especially like the URW and Chancery fonts.&lt;br/&gt;&lt;br/&gt;

If you want to use these fonts in Windows, hop over to the &lt;a href="http://fontforge.sourceforge.net/"&gt;FontForge&lt;/a&gt; site and download FontForge. Open the font you wish to convert, select Generate, and choose to convert to either an OpenType or TrueType font. Drop the font in your fonts directory and you're home free. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112005719723034180?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://fontforge.sourceforge.net/' title='Converting Type 1 fonts for use with Windows'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112005719723034180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112005719723034180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112005719723034180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112005719723034180'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/converting-type-1-fonts-for-use-with.html' title='Converting Type 1 fonts for use with Windows'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112005583343673970</id><published>2005-06-29T19:29:00.000+05:30</published><updated>2005-06-29T20:23:42.706+05:30</updated><title type='text'>Converting TTF for use with Linux/Unix apps</title><content type='html'>There are some apps on Linux/Unix that refuse to play nicely with TrueType or OpenType fonts. (The WxWindows library is one that gave me such headaches.) For such programs, the best bet is to convert the TTF to Postscript Type 1 fonts using &lt;a href="http://ttf2pt1.sourceforge.net/"&gt;TTF2PT1&lt;/a&gt;. There's even a version for &lt;a href="http://gnuwin32.sourceforge.net/packages/ttf2pt1.htm"&gt;Windows&lt;/a&gt;.
&lt;br/&gt;&lt;br/&gt; 
After installing TTF2PT1, convert the font to Type 1 using the command:&lt;br/&gt;
&lt;code&gt;ttf2pt1 -a -e -llatin1 filename.ttf&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

For creating fonts for use with Ghostscript:&lt;br/&gt;
&lt;code&gt;ttf2pt1 -a -b -llatin1 filename.ttf&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

You ought to have a files suffixed with .afm and .pfa (or .pfb for use with GhostScript) after the conversion completes. &lt;br/&gt;&lt;br/&gt;
Note that you should NOT do this if the font license disallows such a conversion.&lt;br/&gt;


Drop the font in the appropriate directory on Linux/Unix and from that directory, build the fonts.scale and fonts.dir file with &lt;br/&gt;
&lt;code&gt;mkfontscale&lt;br/&gt;
mkfontdir&lt;/code&gt;.&lt;br/&gt;&lt;br/&gt;

If needed, add the directory to the X font path as mentioned in &lt;a href="http://tg-linux.blogspot.com/2005/06/installing-truetype-fonts-in-linux.html"&gt;this tip&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112005583343673970?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ttf2pt1.sourceforge.net/' title='Converting TTF for use with Linux/Unix apps'/><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112005583343673970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112005583343673970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112005583343673970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112005583343673970'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/converting-ttf-for-use-with-linuxunix.html' title='Converting TTF for use with Linux/Unix apps'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-112003743048617669</id><published>2005-06-29T14:30:00.000+05:30</published><updated>2005-07-05T13:14:48.183+05:30</updated><title type='text'>Installing truetype fonts in Fedora Core/Red Hat and others</title><content type='html'>X Window supports many different types of fonts like Adobe Type 1 fonts, TrueType, or OpenType. If you need your OpenType/TrueType fonts accessible in Linux:&lt;br/&gt;&lt;br/&gt;

&lt;code&gt;mkdir /usr/share/fonts/opentype&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

Copy the TrueType (.ttf) or OpenType (.otf)  fonts into this folder. Now run&lt;br/&gt;
&lt;code&gt;ttmkfdir -d /usr/share/fonts/opentype \&lt;br/&gt;
 -o /usr/share/fonts/opentype/fonts.scale&lt;br/&gt;
mkfontdir /usr/share/fonts/opentype&lt;/code&gt;
&lt;br/&gt;&lt;br/&gt;
Run &lt;code&gt;chkfontpath&lt;/code&gt; to see if the directory we created (/usr/share/fonts/opentype) is present in the list of locations X Window will look for font files. If not, run: &lt;br/&gt;
&lt;code&gt;chkfontpath -a /usr/share/fonts/opentype&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

If &lt;code&gt;chkfontpath&lt;/code&gt; is not present, edit /etc/X11/fs/config or /etc/X11/xfs/config (whichever is present). Locate the lines &lt;br/&gt;&lt;code&gt;&lt;br/&gt;
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/75dpi:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/100dpi:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/Type1,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/Speedo,&lt;br/&gt;
        /usr/share/fonts/default/Type1,&lt;br/&gt;
&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

To this, add /usr/share/fonts/opentype so that the content now appears like:&lt;br/&gt;
&lt;code&gt;catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/75dpi:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/100dpi:unscaled,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/Type1,&lt;br/&gt;
        /usr/X11R6/lib/X11/fonts/Speedo,&lt;br/&gt;
        /usr/share/fonts/default/Type1,&lt;br/&gt;
        /usr/share/fonts/opentype,&lt;br/&gt;
&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;

Now run:&lt;br/&gt;
&lt;code&gt;fc-cache&lt;br/&gt;
fc-list&lt;/code&gt;&lt;br/&gt;&lt;br/&gt;
Check if the fonts added appear in the list. You can also run &lt;code&gt;xfontsel&lt;/code&gt; to check the font list. For a font preview as well, run &lt;code&gt;gucharmap&lt;/code&gt;. &lt;br/&gt;&lt;br/&gt;

If you add new fonts to this directory, run &lt;code&gt;ttmkfdir&lt;/code&gt;, &lt;code&gt;mkfontdir&lt;/code&gt; and &lt;code&gt;fc-cache&lt;/code&gt; again.&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-112003743048617669?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/112003743048617669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=112003743048617669' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112003743048617669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/112003743048617669'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/installing-truetype-fonts-in-fedora.html' title='Installing truetype fonts in Fedora Core/Red Hat and others'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111987572842699371</id><published>2005-06-27T18:03:00.000+05:30</published><updated>2005-06-27T18:11:34.853+05:30</updated><title type='text'>Making KBD tags look good</title><content type='html'>Not directly Linux related, but something I wouldn't like to forget :-)&lt;br/&gt;
&lt;br/&gt;
The Mozilla support site shows keystrokes really neatly. Like this: &lt;kbd&gt;Ctrl&lt;/kbd&gt;+&lt;kbd&gt;Alt&lt;/kbd&gt;+&lt;kbd&gt;Del&lt;/kbd&gt; or &lt;kbd&gt;Ctrl&lt;/kbd&gt;+&lt;kbd&gt;W&lt;/kbd&gt;. The style sheet I used is:&lt;br/&gt;

kbd {&lt;br/&gt;
padding: 0px 1px 0px 1px;&lt;br/&gt;
border-width: 1px 3px 3px 3px;&lt;br/&gt;
border-style: solid;&lt;br/&gt;
background: #faf6f6;&lt;br/&gt;
color: #000;&lt;br/&gt;
border-color:  #edd #baa #baa #eed;&lt;br/&gt;
font-size: 10pt;&lt;br/&gt;
font-style: monospace;&lt;br/&gt;
font-variant: normal;&lt;br/&gt;
font-weight: normal;&lt;br/&gt;
}&lt;br/&gt;&lt;br/&gt;

End result is a nice keyboard effect of sorts.&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111987572842699371?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111987572842699371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111987572842699371' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111987572842699371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111987572842699371'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/making-kbd-tags-look-good.html' title='Making KBD tags look good'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111960858403753016</id><published>2005-06-24T15:44:00.000+05:30</published><updated>2005-06-27T13:19:09.086+05:30</updated><title type='text'>Starting a new X session through KDE</title><content type='html'>To be able to start a new X session through KDE:&lt;br/&gt;
&lt;TT&gt;
cd /etc/X11/xdm&lt;br/&gt;
cp Xservers Xservers.orig&lt;br/&gt;&lt;br/&gt;
&lt;/TT&gt;
Edit the Xservers file so that it looks similar to this:&lt;br/&gt;
&lt;TT&gt;&lt;br/&gt;
...&lt;br/&gt;
# you can add them here as well.  Each X terminal line should&lt;br/&gt;
# look like:&lt;br/&gt;
#       XTerminalName:0 foreign&lt;br/&gt;
&lt;br/&gt;
# We comment out the following:&lt;br/&gt;
# :0 local /usr/X11R6/bin/X&lt;br/&gt;
&lt;br/&gt;
# Add these lines &lt;br/&gt;
:0 local@tty1 /usr/X11R6/bin/X -nolisten tcp vt7&lt;br/&gt;
:1 local@tty2 reserve /usr/X11R6/bin/X -nolisten tcp :1 vt8&lt;br/&gt;
#:2 local@tty3 reserve /usr/X11R6/bin/X -nolisten tcp :2 vt9&lt;br/&gt;
#:3 local@tty4 reserve /usr/X11R6/bin/X -nolisten tcp :3 vt10&lt;br/&gt;
#:4 local@tty5 reserve /usr/X11R6/bin/X -nolisten tcp :4 vt11&lt;br/&gt;
&lt;/TT&gt;&lt;br/&gt;&lt;br/&gt;

You can then select Start New Session under the KDE menu. KDM and KDE are both needed for this to work. KDE does have it's own Xservers file, but on FC at least, it's a symbolic link to /etc/X11/xdm/Xservers.&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111960858403753016?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111960858403753016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111960858403753016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111960858403753016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111960858403753016'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/starting-new-x-session-through-kde.html' title='Starting a new X session through KDE'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111960631821133525</id><published>2005-06-24T15:10:00.000+05:30</published><updated>2005-06-24T15:17:29.463+05:30</updated><title type='text'>Transparent Proxying</title><content type='html'>To make the host a transparent proxy, on the m/c connected directly to the ISP, edit /etc/sysctl.conf and set net.ipv4.ip_forward to 1.&lt;br/&gt;
Then execute the following:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;
# sysctl -p&lt;br/&gt;
# #Use appropriate network address below&lt;br/&gt;
# iptables -t nat -A POSTROUTING \&lt;br/&gt;
-s 192.168.10.0/24 -j MASQUERADE &lt;br/&gt;
# services iptables save &lt;br/&gt;
&lt;/span&gt;
On other hosts set their default gateway to the transparent proxy's internal IP.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111960631821133525?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111960631821133525/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111960631821133525' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111960631821133525'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111960631821133525'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/transparent-proxying.html' title='Transparent Proxying'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111959861011429850</id><published>2005-06-24T13:05:00.000+05:30</published><updated>2005-06-24T16:18:53.053+05:30</updated><title type='text'>Cool ImageMagick stuff</title><content type='html'>Make thumbnails with ImageMagick's convert utility using:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;
convert -resize 25x25% filename.png filename-thumb.png&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

The convert utility can also convert image formats:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;convert file.jpg file.png&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

Another cool tool in ImageMagicks arsental which can convert images is mogrify - this one's more useful when there are a many images requiring conversion: &lt;br/&gt;
&lt;span style="font-family: monospace"&gt;mogrify -format jpg *.png&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

This will annotate an image:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;
convert -font helvetica -fill white -pointsize 36 \&lt;br/&gt;
-draw 'text 10,14 "Garden, Pune"' \&lt;br/&gt;
img_314.jpg annotated_314.jpg&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

To make an image look like it was sketched:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;convert -charcoal 2 \&lt;br/&gt;
portrait.jpg charcoal-portrait.jpg&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

To make images out of a pdf file:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;convert bigfile.pdf bigfilepages-%03d.png&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

You can also combine effects:&lt;br/&gt;
&lt;span style="font-family: monospace"&gt;/bin/convert -size 460x90 xc:transparent \&lt;br/&gt;
 -font AvantGarde-DemiOblique -pointsize 72\&lt;br/&gt;
 -draw "text 10,75 'AvantGarde'" \&lt;br/&gt;
 -fill darkblue -stroke yellow \&lt;br/&gt;
 -draw "text 15,70 AvantGarde" test.jpg&lt;/span&gt;&lt;br/&gt;
&lt;br/&gt;
This results in an image that looks like&lt;br/&gt;
&lt;img src="http://img2.uploadimages.net/220025AvantGarde.jpg" width="400" height="80" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111959861011429850?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111959861011429850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111959861011429850' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959861011429850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959861011429850'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/cool-imagemagick-stuff.html' title='Cool ImageMagick stuff'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111959839090636296</id><published>2005-06-24T13:00:00.000+05:30</published><updated>2005-06-29T14:08:22.003+05:30</updated><title type='text'>Automounting the USB key</title><content type='html'>[update: FC3 automounts in GNOME anyways without the hoopla - that new HAL thingy works well with udev. I'll try to get the dratted thingy to work in KDE. The stuff below does NOT work out with FC3 and above.]
 
Add this to /etc/fstab to help the USB key mount automatically in GNOME&lt;br/&gt;&lt;br/&gt;

&lt;TT&gt;/dev/sda1 /mnt/usb vfat \&lt;br/&gt;
user,iocharset=utf8,umask=0,sync,quiet,\&lt;br/&gt;
exec,codepage=866,noauto 0 0&lt;br/&gt;&lt;br/&gt;&lt;/tt&gt;

If you need to automount the USB key, edit /etc/auto.master and add:&lt;br/&gt;
&lt;tt&gt;/mnt/usb /etc/auto.misc --timeout=60&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;

Then add this line into /etc/auto.misc:&lt;br/&gt;
&lt;tt&gt;usb -fstype=auto,nosuid,nodev,\&lt;br/&gt;
sync,dirsync,mode=777,uid=99,gid=99,umask=000 \&lt;br/&gt;
 :/dev/sda1&lt;br/&gt;&lt;br/&gt;
&lt;/tt&gt;
(In the above line, the user nobody has the uid and gid of 99. This is chosen as autofs runs as root.)&lt;br/&gt;&lt;br/&gt;
Then start/restart autofs :&lt;br/&gt;
&lt;tt&gt;# chkconfig --level 345 autofs on&lt;br/&gt;
# service autofs restart&lt;br/&gt;&lt;br/&gt;
&lt;/tt&gt;

The USB drive will be mounted/unmounted automatically.&lt;br/&gt;&lt;br/&gt;

If you want to automount USB flashdrive without using automount:&lt;br/&gt;
Plugin your flash drive look a the tail end of dmesg. If there is something about the usb drive on /dev/sda1, then the following will work if you have devlabel:&lt;br/&gt;&lt;br/&gt;

&lt;tt&gt;$ devlabel add -d /dev/sda1 \&lt;br/&gt;
-s /dev/flashdrive --automount \&lt;br/&gt;
--perms 666&lt;br/&gt;&lt;br/&gt;&lt;/tt&gt;

Edit /etc/fstab and add this line:&lt;br/&gt;
&lt;tt&gt;/dev/flashdrive  /mnt/flashdrive \&lt;br/&gt;
auto noauto,noatime,user,kudzu 0 0&lt;br/&gt;&lt;br/&gt;
&lt;/tt&gt;

Next time your flashdrive is plugged in, it should be automounted at /mnt/usb.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111959839090636296?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111959839090636296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111959839090636296' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959839090636296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959839090636296'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/automounting-usb-key.html' title='Automounting the USB key'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111959683911115107</id><published>2005-06-24T12:30:00.000+05:30</published><updated>2005-06-24T12:39:09.760+05:30</updated><title type='text'>Mounting an 8-in-1 card reader</title><content type='html'>I'd written this tip down on paper - don't remember the origin.&lt;br/&gt;&lt;br/&gt;

I recently bought an 8in1 &lt;ACRONYM title="Universal Serial Bus"&gt;USB&lt;/ACRONYM&gt; card reader. It uses multiple &lt;ACRONYM title="Logical Unit Number"&gt;LUN&lt;/ACRONYM&gt;s for the different media. To get all of them registered, edit grub.conf to add the kernel parameter "max_scsi_luns=8".
Also add "options scsi_mod max_scsi_luns=8" to /etc/modules.conf.

Reboot so the new kernel options take effect.

Afteryou plug in the USB card reader, you can use the right mouse button on the root window to get a popup menu with a submenu "drives" that contains entries like "memstick", "memstick1", "memstick2", etc. After you picked one of them, it will be mounted and a new icon appears on your desktop.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111959683911115107?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111959683911115107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111959683911115107' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959683911115107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959683911115107'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/mounting-8-in-1-card-reader.html' title='Mounting an 8-in-1 card reader'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111959218884942941</id><published>2005-06-24T11:06:00.000+05:30</published><updated>2005-06-27T18:02:49.493+05:30</updated><title type='text'>Acronym tag and styles</title><content type='html'>This isn't strictly Linux - but it's kinda nice to know.&lt;br/&gt;

Firefox supports tags like ACRONYM and DFN. Here's an exampe of the ACRONYM tag - &lt;acronym title="HyperText Transfer Protocol"&gt;HTTP&lt;/acronym&gt; (Hold the mouse over the word HTTP for a few seconds).&lt;br/&gt;&lt;br/&gt;

In case you're wondering if the appearance you see here is default, it is not. It's been spruced up with this stylesheet.&lt;br/&gt;
&lt;tt&gt;&amp;lt;style&gt;&lt;br/&gt;
acronym {&lt;br/&gt;
border-bottom: 1px dashed;&lt;br/&gt;
cursor: help;&lt;br/&gt;
}&lt;br/&gt;
&amp;lt;/style&gt;&lt;/TT&gt;
&lt;br/&gt;&lt;br/&gt;
I've added this to the HEAD section in my blog template.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111959218884942941?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111959218884942941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111959218884942941' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959218884942941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111959218884942941'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/acronym-tag-and-styles.html' title='Acronym tag and styles'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111954322758910326</id><published>2005-06-23T21:35:00.000+05:30</published><updated>2005-06-24T12:53:55.456+05:30</updated><title type='text'>Displaying the path in the title bar</title><content type='html'>The string &lt;tt&gt;'\[\e]2;\H:$PWD\a\]'&lt;/tt&gt; in PS1 will show the hostname and path in the title bar. The single quotes are important. Also, enclosing the string with \[..\] also matters when it comes to screen wrap. It tells the wrapping mechanism to not count the enclosed characters.
&lt;br/&gt;&lt;br/&gt;
If you use double quotes, use \w instead of $PWD. I like $PWD because it shows the full path and not '~' if the current dir is the home dir.
&lt;br/&gt;&lt;br/&gt;
Another way to do this is in bash is by placing the string in PROMPT_COMMAND. Don't use this unless echo is a shell builtin.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111954322758910326?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111954322758910326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111954322758910326' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111954322758910326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111954322758910326'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/displaying-path-in-title-bar.html' title='Displaying the path in the title bar'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111953754021781305</id><published>2005-06-23T19:56:00.000+05:30</published><updated>2005-06-23T20:38:42.353+05:30</updated><title type='text'>Get the *bleep*  out</title><content type='html'>The PC speaker beeps irritate. &lt;br/&gt;&lt;br/&gt;

Here's how to turn the beep off for X window:&lt;br/&gt;
&lt;tt&gt;xset b off&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;

Here's how to turn the beep off for bash:&lt;br/&gt;
Edit .inputrc (or /etc/inputrc if you want this systemwide) to reflect:&lt;br/&gt;
&lt;tt&gt;set bell-style none&lt;/tt&gt;&lt;br/&gt;
Set the bell-style to visual if you want a visual bell instead.&lt;br/&gt;&lt;br/&gt;

For vim, edit the .vimrc to contain&lt;br/&gt;
&lt;tt&gt;set visualbell&lt;/tt&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111953754021781305?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111953754021781305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111953754021781305' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111953754021781305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111953754021781305'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/get-bleep-out.html' title='Get the *bleep*  out'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111951867113903975</id><published>2005-06-23T14:44:00.000+05:30</published><updated>2005-06-23T20:37:59.060+05:30</updated><title type='text'>Running Java apps on FC4 with Sun's JVM</title><content type='html'>The FC4 release notes advise to not install Sun's JRE rpms, but the self-xtractors instead. If you have these installed, you need to tell certain Java apps to use Sun's VM.&lt;br/&gt;&lt;br/&gt;
Edit /etc/profile.d/java.sh and type&lt;br/&gt;
&lt;tt&gt;export J2RE_HOME=/opt/jre1.5.0_03&lt;br/&gt;
export PATH=$J2RE_HOME/bin:$PATH&lt;br/&gt;
&lt;/tt&gt;&lt;br/&gt;
At the prompt, execute &lt;tt&gt;. /etc/profile.d/java.sh&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;
Then execute:&lt;br/&gt;
&lt;tt&gt;alternatives --install /usr/bin/java java /opt/jre1.5.0_03/bin/java 2&lt;br/&gt;
alternatives --config java&lt;br/&gt;
&lt;span style="font-weight:bold;"&gt;Output&lt;/span&gt;&lt;br/&gt;
&lt;i&gt; There are 2 programs which provide 'java'.&lt;br/&gt;
Selection  Command&lt;br/&gt;
---------------------------------------------&lt;br/&gt;
*+ 1       /usr/lib/jvm/jre-1.4.2-gcj/bin/java&lt;br/&gt;
&amp;nbsp;&amp;nbsp;2       /opt/jre1.5.0_03/bin/java&lt;br/&gt;
Enter to keep the current selection[+], or type selection number:&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;2&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;

/usr/sbin/alternatives --display java&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;

You should see:&lt;br/&gt;
&lt;span style="font-style:italic;"&gt;&lt;tt&gt;java - status is manual.&lt;br/&gt;
link currently points to /opt/jre1.5.0_03/bin/java&lt;/tt&gt;&lt;br/&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111951867113903975?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111951867113903975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111951867113903975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951867113903975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951867113903975'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/running-java-apps-on-fc4-with-suns-jvm.html' title='Running Java apps on FC4 with Sun&apos;s JVM'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111951708055635446</id><published>2005-06-23T14:11:00.000+05:30</published><updated>2005-06-24T16:26:17.496+05:30</updated><title type='text'>NVidia on FC4</title><content type='html'>Again, I got this off the &lt;a href="http://fedoranews.org/mediawiki/index.php/Fedora_Core_4_Linux_Installation_Notes"&gt;Fedora Core 4 installation notes&lt;/a&gt; for us blokes with nVidia cards:&lt;br/&gt;&lt;br/&gt;

Download the appropriate driver from &lt;a href="http://www.nvidia.com/object/unix.html"&gt;Nvidia's unix drivers page&lt;/a&gt;. &lt;br/&gt;&lt;br/&gt;

Change to runlevel 3. &lt;br/&gt;&lt;br/&gt;

Remove the "rhgb quiet" from /etc/grub.conf to disable the "Red Hat Graphical Boot" &lt;br/&gt;&lt;br/&gt;

Edit /etc/X11/xorg.conf. In the "module" section comment the "load "dri" entry. In the "device" section change "nv" to "nvidia". &lt;br/&gt;&lt;br/&gt;

Add the line &lt;tt&gt;/sbin/modprobe nvidia&lt;/tt&gt; to /etc/rc.local. &lt;br/&gt;&lt;br/&gt;

Disable selinux with &lt;tt&gt;/usr/sbin/setenforce 0&lt;/tt&gt;&lt;br/&gt;
Execute &lt;tt&gt;sh &lt;span style="font-style:italic;"&gt;nameOfNvidiaDriverInstaller.run&lt;/span&gt;&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;

Reboot.&lt;br/&gt;&lt;br/&gt;

You should see the nVidia splash screen when Fedora reboots.&lt;br/&gt;&lt;br/&gt;

To get the graphical boot back:&lt;br/&gt;
&lt;tt&gt;cp -a /dev/nvidia* /etc/udev/devices&lt;br/&gt;
chown root.root /etc/udev/devices/nvidia*&lt;/tt&gt;&lt;br/&gt;
Remove the modprobe nvidia line from /etc/rc.local&lt;br/&gt;
Add the "rghb quiet" back to grub.conf&lt;br/&gt;&lt;br/&gt;

Note that upgrading the kernel requires this whole procedure to be followed again!&lt;br/&gt;&lt;br/&gt;

&lt;span style="font-weight:bold;"&gt;Troubleshooting&lt;/span&gt;&lt;br/&gt;
If the driver installer complains about differing versions of gcc and the version the kernel was compiled with, do this:&lt;br/&gt;
&lt;tt&gt;sh &lt;span style="font-style:italic;"&gt;nameOfNvidiaDriverInstaller.run&lt;/span&gt; --extract-only&lt;br/&gt;
cd &lt;span style="font-style:italic;"&gt;nameOfNvidiaDriverInstaller.run&lt;/span&gt;&lt;br/&gt;
&lt;br/&gt;
#I think this should be gcc40&lt;br/&gt;
#  for FC4- not sure tho'&lt;br/&gt;
make install CC=gcc40 # used to be gcc32 for FC1&lt;br/&gt;
&lt;/tt&gt;&lt;br/&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111951708055635446?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111951708055635446/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111951708055635446' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951708055635446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951708055635446'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/nvidia-on-fc4.html' title='NVidia on FC4'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111951601344543742</id><published>2005-06-23T14:07:00.000+05:30</published><updated>2005-06-23T20:28:52.686+05:30</updated><title type='text'>Speeding up browsing</title><content type='html'>Haven't verified this - found it on the &lt;a href="http://fedoranews.org/mediawiki/index.php/Fedora_Core_4_Linux_Installation_Notes"&gt;
Fedora Core 4 installation notes&lt;/a&gt; over at FedoraNews.org.  

Edit /etc/modprobe.conf so that it contains&lt;br/&gt;&lt;br/&gt;
&lt;tt&gt;alias net-pf-10 off&lt;br/&gt;
alias ipv6 off&lt;/tt&gt;&lt;br/&gt;&lt;br/&gt;

Apparently this will speed up browsing and file transfers by decreasing DNS lookup time.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111951601344543742?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111951601344543742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111951601344543742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951601344543742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951601344543742'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/speeding-up-browsing.html' title='Speeding up browsing'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111951407929983141</id><published>2005-06-23T13:36:00.000+05:30</published><updated>2005-06-23T13:37:59.300+05:30</updated><title type='text'>Enabling the slocate Database on FC</title><content type='html'>To make sure &lt;tt&gt;updatedb&lt;/tt&gt; creates the database used by &lt;tt&gt;locate&lt;/tt&gt;, enable the database creation by setting &lt;tt&gt;DAILY_UPDATE&lt;/tt&gt; to &lt;tt&gt;yes&lt;/tt&gt; in &lt;tt&gt;/etc/updatedb.conf&lt;/tt&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111951407929983141?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111951407929983141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111951407929983141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951407929983141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951407929983141'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/enabling-slocate-database-on-fc.html' title='Enabling the slocate Database on FC'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111951395437775650</id><published>2005-06-23T13:33:00.000+05:30</published><updated>2005-08-05T14:59:21.773+05:30</updated><title type='text'>FC4 system call auditing</title><content type='html'>Boot the kernel with &lt;tt&gt;audit=1&lt;/tt&gt; to enable system call auditing. Alternately, enable auditing with the command: &lt;br/&gt;&lt;br/&gt;

&lt;tt&gt;# auditctl -e 1&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111951395437775650?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111951395437775650/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111951395437775650' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951395437775650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111951395437775650'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/fc4-system-call-auditing.html' title='FC4 system call auditing'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111950908092470818</id><published>2005-06-23T12:01:00.000+05:30</published><updated>2005-06-23T20:25:18.186+05:30</updated><title type='text'>Firefox bookmark tips</title><content type='html'>Ok, this isn't exactly Linux, but FF is a linux app so...&lt;br/&gt;&lt;br/&gt;

In a bookmark's properties, enter a keyword. You can then use the keyword instead of the full URL in the location bar and awayyy we go...&lt;br/&gt;&lt;br/&gt;

For sites that use GET to submit search forms, note the URL at the time of submitting. Eg: Note the URL:&lt;br/&gt;
&lt;tt&gt;http://www.google.com/search?q=search+item&lt;/tt&gt;&lt;br/&gt;
Bookmark the URL and edit the bookmark properties. Subsitute a &lt;tt&gt;%s&lt;/tt&gt; in place of the search item. The URL will now be &lt;tt&gt;http://www.google.com/search?q=%s&lt;/tt&gt;. &lt;br/&gt;&lt;br/&gt;
Assign a keyword - like 'google' to this item. In the location bar type &lt;br/&gt;&lt;tt&gt;google &lt;span style="font-style:italic;"&gt;searchitem&lt;/span&gt;&lt;/tt&gt;&lt;br/&gt; and we end up straight on the results page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111950908092470818?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111950908092470818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111950908092470818' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111950908092470818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111950908092470818'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/firefox-bookmark-tips.html' title='Firefox bookmark tips'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111943441953564940</id><published>2005-06-22T15:19:00.000+05:30</published><updated>2005-06-23T20:21:02.370+05:30</updated><title type='text'>Extended File System Attributes</title><content type='html'>Clean forgot there were something called extended attributes. &lt;a href="http://enterprise.linux.com/article.pl?sid=05/06/13/1352241"&gt;This&lt;/a&gt; jogged my memory a bit.

In summary: For ext3 or xfs, add the user_xattr option while mounting. Eg. in /etc/fstab edit the lines that mount ext3 or xfs file systems like this:
&lt;br&gt;&lt;tt&gt;/dev/hda1 / ext3 defaults,noatime,user_xattr 0 1&lt;/tt&gt;

Then remount the partitions:&lt;br&gt;
&lt;tt&gt;mount -o remount,user_xattr /&lt;/tt&gt;


Then use setfattr and getfattr to set/get extended attributes.
&lt;ul&gt;
&lt;li&gt;Create an attribute 'testing' in the 'user' namespace:
&lt;tt&gt;setfattr -n user.testing -v "this is a test" test-1.txt&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;Delete the attribute:
&lt;tt&gt;setfattr -x user.testing test-1.txt&lt;/tt&gt;&lt;/li&gt;
&lt;li&gt;Retrieve the attribute:
&lt;TT&gt;getfattr -n user.testing test-1.txt&lt;/TT&gt;&lt;/li&gt;
&lt;li&gt;Backup all extended attributes:
&lt;TT&gt;getfattr --dump * &gt; data_file
&lt;/TT&gt;&lt;/li&gt;
&lt;li&gt;Restore all extended attributes:
&lt;TT&gt;setfattr --restore=data_file&lt;/TT&gt;&lt;/li&gt;
&lt;/ul&gt;

And oh, if you dont have setfattr and getfattr, you can get the sources from the &lt;a href="ftp://xfs.org/mirror/SGI/Release-1.3.1/"&gt;SGI site&lt;/a&gt; or look for 'attr' on &lt;a href="http://www.rpmseek.com/index.html"&gt;rpmseek&lt;/a&gt; or &lt;a href="http://rpmfind.net/linux/rpm2html/search.php?query=attr"&gt;rpmfind.net&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111943441953564940?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111943441953564940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111943441953564940' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111943441953564940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111943441953564940'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/extended-file-system-attributes.html' title='Extended File System Attributes'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-13864913.post-111943053542614042</id><published>2005-06-22T14:11:00.000+05:30</published><updated>2005-06-23T20:10:43.760+05:30</updated><title type='text'>Checking Fedora Core CD Media</title><content type='html'>Checksum Fedora Core ISOs prior to burning them with &lt;TT&gt;md5sum&lt;/TT&gt; (FC3 and earlier) or &lt;TT&gt;sha1sum&lt;/TT&gt; (FC4 and later). 

When installing Fedora Core off CD media do a mediacheck. Recommended way to do the media check:&lt;br&gt;

&lt;span style="font-weight: bold;"&gt;boot:&lt;/span&gt; &lt;TT&gt;linux mediacheck ide=nodma&lt;/TT&gt;
&lt;br&gt;So far I've not been using ide=nodma - which may explain the reason I've got a failure on working discs as well.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/13864913-111943053542614042?l=tg-linux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tg-linux.blogspot.com/feeds/111943053542614042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=13864913&amp;postID=111943053542614042' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111943053542614042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13864913/posts/default/111943053542614042'/><link rel='alternate' type='text/html' href='http://tg-linux.blogspot.com/2005/06/checking-fedora-core-cd-media.html' title='Checking Fedora Core CD Media'/><author><name>Tehmul Ghyara</name><uri>https://profiles.google.com/101795909341583709202</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-Y2mvbWj9jsM/AAAAAAAAAAI/AAAAAAAAAAA/czty2dQIFYY/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
