<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Linux</title>
        <link>http://geekswithblogs.net/TimH/category/3314.aspx</link>
        <description>Linux</description>
        <language>en-NZ</language>
        <copyright>Tim Huffam</copyright>
        <managingEditor>timhuffam@gmail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>DOM Inspector missing from Firefox 2.0</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/10/25/95045.aspx</link>
            <description>&lt;P&gt;If you've just installed Firefox 2.0 and found that the DOM Inspector is missing, here's how to add it:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run the Firefox 2.0 install again.&lt;/LI&gt;
&lt;LI&gt;Choose to do a Custom install (not the default of Standard)&lt;/LI&gt;
&lt;LI&gt;Make sure DOM Inspector is selected.&lt;/LI&gt;
&lt;LI&gt;Complete the install.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;I had previously posted a solution for missing DOM Inspector for Firefox 1.x &lt;A href="http://geekswithblogs.net/timh/archive/2006/05/11/77971.aspx"&gt;here&lt;/A&gt;.&amp;nbsp; However that solution does not work with Firefox 2.0.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=95045"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=95045" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/95045.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/10/25/95045.aspx</guid>
            <pubDate>Tue, 24 Oct 2006 23:46:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/95045.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/10/25/95045.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/95045.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/95045.aspx</trackback:ping>
        </item>
        <item>
            <title>DOM Inspector not working in FF (FireFox)</title>
            <link>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx</link>
            <description>&lt;P&gt;When you install Firefox on windows, by default it does not install the DOM Inspector.&lt;/P&gt;
&lt;P&gt;To make sure it installs it, select Custom Install then select Web Developer Tools.&lt;/P&gt;
&lt;P&gt;If you already have FF installed you can install the DOM Inspector without having to reinstall FF:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Run the FF installer - just so it unpacks the install without installing anything. 
&lt;LI&gt;Use file explorer to locate the C:\Documents and Settings\&amp;lt;username&amp;gt;\Local Settings\Temp dir.&amp;nbsp; FF will have created a temp directory to unpacked the install components into (in my case "7zS17.tmp"). 
&lt;LI&gt;Start FF. 
&lt;LI&gt;Drag adt.xpi onto the FF window.&amp;nbsp; This installs the dom inspector. 
&lt;LI&gt;Cancel the install. 
&lt;LI&gt;Restart FF.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Thanks very much to clagnut for his informative &lt;A href="http://www.clagnut.com/blog/340"&gt;post&lt;/A&gt; on this - and to Thierry B for his additional help on this.&lt;/P&gt;&lt;BR&gt;
&lt;P&gt;&lt;STRONG&gt;Update for Firefox 2.0:&lt;/STRONG&gt; (25 Oct 06)&lt;/P&gt;
&lt;P&gt;Same problem exists - whereby it did not install the DOM Inspector by default.&amp;nbsp; However the solution mentioned above does not appear to work (as I couldn't find the adt.xpi file) - so there is another work around - for which I've created another &lt;A href="http://geekswithblogs.net/timh/archive/2006/10/25/95045.aspx"&gt;post&lt;/A&gt;&amp;nbsp;(for feed subscribers).&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Tim&lt;/P&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=77971"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=77971" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/77971.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx</guid>
            <pubDate>Thu, 11 May 2006 07:40:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/77971.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2006/05/11/77971.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/77971.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/77971.aspx</trackback:ping>
        </item>
        <item>
            <title>Linux/unix commands cheatsheet</title>
            <link>http://geekswithblogs.net/TimH/archive/2005/11/25/61158.aspx</link>
            <description>&lt;P&gt;For those of you, like me with a memory like a seive.. here's a quick 101 on linux/unix commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;B&gt;&lt;FONT size=2&gt;
&lt;P&gt;Help/Manual (to get help on a command or shell):&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;man &lt;COMMAND name&gt;eg:&lt;/P&gt;
&lt;P&gt;man cp&lt;/P&gt;
&lt;P&gt;The following will show details of how to work within a shell, ie syntax for pipes, scripting etc&lt;/P&gt;
&lt;P&gt;man sh &lt;/P&gt;
&lt;P&gt;man bash&lt;/P&gt;
&lt;P&gt;Once within man:&lt;/P&gt;
&lt;P&gt;&lt;ENTER&gt;= scroll down 1 line &lt;/P&gt;
&lt;P&gt;&lt;SPACE&gt;= scroll down 1 page&lt;/P&gt;
&lt;P&gt;Q = quit.&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Display contents of a file or output stream:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;more &lt;FILENAME&gt;&lt;/P&gt;
&lt;P&gt;Once within man:&lt;/P&gt;
&lt;P&gt;&lt;ENTER&gt;= scroll down 1 line &lt;/P&gt;
&lt;P&gt;&lt;SPACE&gt;= scroll down 1 page&lt;/P&gt;
&lt;P&gt;Q = quit.&lt;/P&gt;&lt;B&gt;
&lt;P&gt;List files in a dir:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;ls (file/dir names only) eg:&lt;/P&gt;
&lt;P&gt;ls&lt;/P&gt;
&lt;P&gt;ls *.txt&lt;/P&gt;
&lt;P&gt;ls -l (full listing of file/dir details)&lt;/P&gt;
&lt;P&gt;ls -l&lt;/P&gt;
&lt;P&gt;ls -l *.txt&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Redirect output stream (of a command) to a file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;&amp;gt; (overwrite) eg:&lt;/P&gt;
&lt;P&gt;ls &amp;gt; files.txt&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; (append) eg:&lt;/P&gt;
&lt;P&gt;ls &amp;gt;&amp;gt; files.txt&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Pipe output string (of a command) to another command:&lt;/P&gt;
&lt;P&gt;| &lt;/B&gt;eg:&lt;/P&gt;
&lt;P&gt;ls | more&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Change directory:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;cd &lt;DIRNAME&gt;&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Show current directory:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;pwd&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Copy:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;cp&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Move &amp;amp; Rename:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;mv&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Delete/Remove file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;rm&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Delete/Remove directory:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;rm -r&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Filter data:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;grep '&lt;TEXT to filter&gt;' eg:&lt;/P&gt;
&lt;P&gt;ls -l | grep 'myfile'&lt;/P&gt;
&lt;P&gt;The search can be inverted with -v eg:&lt;/P&gt;
&lt;P&gt;ls -l |grep -v 'myfile'&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Count occurances of something:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;grep -c eg?:&lt;/P&gt;
&lt;P&gt;ls -l |grep -c 'myfile'&lt;/P&gt;
&lt;P&gt;or by using wc eg:&lt;/P&gt;
&lt;P&gt;ls -l | wc -l&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Find a file containing:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;find . |xargs grep -il 'text to search for'&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Tar - to create a tar file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;tar -cvfz (Create,Verbose,File,gZip) eg&lt;/P&gt;
&lt;P&gt;tar cvfz upgrade_datasynapse.tyar.gz datasynapse&lt;/P&gt;
&lt;P&gt;z (gzip) is optional - if you want to compress/zip the tar&lt;/P&gt;&lt;B&gt;
&lt;P&gt;UnTar - to extract a tar file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;tar -xvfz (eXtract,Verbose,File,gZip) eg&lt;/P&gt;
&lt;P&gt;tar xvfz upgrade_datasynapse.tyar.gz&lt;/P&gt;
&lt;P&gt;z (gzip) is optional - if you want to uncompress/unzip the tar&lt;/P&gt;&lt;B&gt;
&lt;P&gt;List contents of aTar file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;tar -tvfz (lisT,Verbose,File,gZip) eg&lt;/P&gt;
&lt;P&gt;tar tvfz upgrade_datasynapse.tyar.gz&lt;/P&gt;
&lt;P&gt;z (gzip) is optional - if the tar file is compressed/zipped&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Show processes:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;ps -ef&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Show process tree:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;pstree -ahp &lt;UID or pid&gt;&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Show resource usage (cpu, memory, time, etc):&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;top&lt;/P&gt;
&lt;P&gt;Note that top shows a line for each thread.&amp;nbsp; To make it show processes only (one line per process) type Shift-H when top is running.&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Edit a file:&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;if you're a masocist use:&lt;/P&gt;
&lt;P&gt;vi &lt;FILENAME&gt;&lt;/P&gt;
&lt;P&gt;or: &lt;/P&gt;
&lt;P&gt;use a GUI (KDE/gnome) text editor &lt;/P&gt;
&lt;P&gt;or:&lt;/P&gt;
&lt;P&gt;Setup Samba (file system sharing) on your linux box and use a Windows editor &lt;/P&gt;
&lt;P&gt;or:&lt;/P&gt;
&lt;P&gt;Setup an ftp server on your linux box then use a cool windows editor called EditPlus (&lt;/FONT&gt;&lt;A href="http://geekswithblogs.net/timh/admin/www.editplus.com"&gt;&lt;U&gt;&lt;FONT color=#0000ff size=2&gt;www.editplus.com&lt;/U&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;) as it has FTP support built into it so it can Open/Save files to/from an FTP server.&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Show disk usage:&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;df -k&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Estimate disk usage:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;du -k | sort -n&lt;/P&gt;&lt;B&gt;
&lt;P&gt;Print files:&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;lp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61158"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61158" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/TimH/aggbug/61158.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Tim Huffam</dc:creator>
            <guid>http://geekswithblogs.net/TimH/archive/2005/11/25/61158.aspx</guid>
            <pubDate>Thu, 24 Nov 2005 20:23:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/TimH/comments/61158.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/TimH/archive/2005/11/25/61158.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/TimH/comments/commentRss/61158.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/TimH/services/trackbacks/61158.aspx</trackback:ping>
        </item>
    </channel>
</rss>