<?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-5465996547477009811</id><updated>2011-09-16T07:57:05.748-07:00</updated><title type='text'>Learning Linux Step by Step</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-252040522178626528</id><published>2010-12-19T16:14:00.000-08:00</published><updated>2010-12-19T16:18:48.547-08:00</updated><title type='text'>Fixing Grub after a Windows upgrade in Linux Mint</title><content type='html'>&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;This is a useful answer I found in the Linux Mint forums:&lt;br /&gt;&lt;br /&gt;1. Ok 1st thing you want to do is boot into your LiveCD of &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;. (best to use the same version as the one you are using)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;2. Once everything is loaded and your at the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; desktop. Open the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; Menu and type "Gparted" into the filter text box.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;3. When it loads you should see all the partitons that are on the hard drive. &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partitions will probaly be EXT4 and the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 102);font-family:arial;" &gt;windows&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partitions will probaly be NTFS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;4. Look at the list of partitons and see what one is the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;  partiton.You can tell this by looking at the Mount Points of the  partitons. You should see one with a "/" under Mount Point and its File  system will likely be EXT4. When you have located this partition look to  the left and see what it is called. For example mine is called dev/sda6  (yours may be something different like dev/sda1 etc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;5. Now that you know what partition is the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition, just leave gparted open so you can look back at it again incase you forget. Now open up a Terminal by clicking the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; menu then clicking "Terminal" under System.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;6. Now we need to mount the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition so that we are able to use it (access it) . To do this copy and paste this code into the terminal - &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;dl  style="color: rgb(0, 0, 0);font-family:arial;" class="codebox"&gt;&lt;dt&gt;&lt;span style="font-size:100%;"&gt;Code: &lt;a href="http://forums.linuxmint.com/viewtopic.php?f=46&amp;amp;t=55686#"&gt;Select all&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;dd&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;sudo mount /dev/sdXY /mnt &lt;/code&gt;&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;**You will need to change the XY part of the code to match the name of your &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition. For example my &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition is dev/sda6 so i would change the code to - sudo mount /dev/sda6 /mnt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(160, 255, 255);font-family:arial;" &gt;7&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;. Now that you edited the line of code to match your &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;  partiton, go ahead and press Enter on your keyboard then type in your  password if your asked for it then press Enter again.(When your entering  in your password you will not see any characters, letters numbers etc)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;8. It may look as if nothing has happened, but your &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition will now be mounted. The terminal will display nothing after the $ sign like it did when you 1st open it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;9. Now we need to tell the computer to reinstall grub2 to the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition we just mounted. To do this copy and paste this line of code into the terminal&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;dl  style="color: rgb(0, 0, 0);font-family:arial;" class="codebox"&gt;&lt;dt&gt;&lt;span style="font-size:100%;"&gt;Code: &lt;a href="http://forums.linuxmint.com/viewtopic.php?f=46&amp;amp;t=55686#"&gt;Select all&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;dd&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;sudo &lt;span style="background-color: rgb(153, 255, 153);"&gt;grub&lt;/span&gt;-install --root-directory=/mnt/ /dev/sdX&lt;/code&gt;&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;**Again you will need to change this line of code to match your &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt; partition. Change the "X" at the end to match your &lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partiton. My partition is dev/sda6 so i will change the the line of code to - sudo &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(153, 255, 153);font-family:arial;" &gt;grub&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;-install --root-directory=/mnt/ /dev/sda &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;It is IMPORTANT that you do not enter any number just the letters of the partitions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;10. When you have edited the line of code press Enter on your keyboard. You should then see a message saying &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(153, 255, 153);font-family:arial;" &gt;Grub&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;  installer finished or something like that. Now close the terminal and  gparted and reboot your pc/laptop without the livecd in the disc drive.  To restart click the &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; menu then click "Quit" then "Reboot". &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;***Note after you reboot you should see the grub2 menu you had before you installed/repaired &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 102);font-family:arial;" &gt;windows&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;. You may need to refresh (update) this menu so that it detects the new &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 102);font-family:arial;" &gt;windows&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; partition. &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;This can easily be done by logging into your &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 153, 153);font-family:arial;" &gt;Linux&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 102, 255);font-family:arial;" &gt;Mint&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;, opening a Terminal then copying and pasting &lt;/span&gt;&lt;/span&gt;&lt;dl  style="color: rgb(0, 0, 0);font-family:arial;" class="codebox"&gt;&lt;dt&gt;&lt;span style="font-size:100%;"&gt;Code: &lt;a href="http://forums.linuxmint.com/viewtopic.php?f=46&amp;amp;t=55686#"&gt;Select all&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;dd&gt;&lt;span style="font-size:100%;"&gt;&lt;code&gt;sudo update-&lt;span style="background-color: rgb(153, 255, 153);"&gt;grub&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt;  then press Enter then enter your password then hit Enter again. You  will then see it detecting all the bootable partitons on the Hard drive.  Now just reboot again and you should be able to boot into &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 102);font-family:arial;" &gt;windows&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);font-family:arial;" &gt; again.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-252040522178626528?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/252040522178626528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=252040522178626528' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/252040522178626528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/252040522178626528'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2010/12/fixing-grub-after-windows-upgrade-in.html' title='Fixing Grub after a Windows upgrade in Linux Mint'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-7093216194235516161</id><published>2009-12-22T15:28:00.000-08:00</published><updated>2009-12-22T15:38:08.059-08:00</updated><title type='text'>Configuring my machine to use a proxy server to connect via ssh</title><content type='html'>Problem:&lt;br /&gt;&lt;br /&gt;I need to ssh to server.com, but the corporate firewall does not allow me to access it from my machine home.com. &lt;br /&gt;I can use proxyserver.com:1080 via the SOCKS5 protocol.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First I need to install tsocks on home.com  (via sudo apt-get install)&lt;br /&gt;&lt;br /&gt;Then I need to configure etc/tsocks.conf &lt;br /&gt;Under local networks I need to include the network of my proxy (I found the IP address of my proxyserver by pinging it). &lt;br /&gt;e.g.&lt;br /&gt;local = 192.240.0.0/255.255.255.0&lt;br /&gt;&lt;br /&gt;Then I need to define the server:&lt;br /&gt;server = IP address of proxyserver.com &lt;br /&gt;# Server type defaults to 4 so we need to specify it as 5 for this one&lt;br /&gt;server_type = 5&lt;br /&gt;# The port defaults to 1080 but I've stated it here for clarity&lt;br /&gt;server_port = 1080&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally, I need to use tsocks to access server.com&lt;br /&gt;&lt;br /&gt;tsocks ssh server.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-7093216194235516161?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/7093216194235516161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=7093216194235516161' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7093216194235516161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7093216194235516161'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2009/12/configuring-my-machine-to-use-proxy.html' title='Configuring my machine to use a proxy server to connect via ssh'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-4983528832993846879</id><published>2009-01-27T17:35:00.000-08:00</published><updated>2009-01-27T17:41:24.418-08:00</updated><title type='text'>Security and Encryption links</title><content type='html'>&lt;a href="http://www.linuxquestions.org/questions/linux-security-4/security-references-45261/"&gt;A comprehensive list of security tools for Linux&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://ubuntuforums.org/showthread.php?t=680292"&gt;Guide to GnuPG&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://legroom.net/howto/gnupg"&gt;GnuPG Tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.linuxhaxor.net/2008/08/13/encrypt-your-usb-drive-with-truecrypt/"&gt;Encrypting a USB Drive with TrueCrypt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ghacks.net/2008/03/01/encrypting-an-usb-drive-with-true-crypt/"&gt;Another guide to encrypting a USB Drive with TrueCrypt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.simplehelp.net/2008/11/12/encrypting-a-filesystem-with-truecrypt-on-ubuntu/"&gt;Yet another USB and TrueCrypt tutorial&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.emcken.dk/weblog/archives/164-Encrypted-USB-drive-in-Ubuntu.html"&gt;LUKS as an alternative to TrueCrypt&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-4983528832993846879?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/4983528832993846879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=4983528832993846879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/4983528832993846879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/4983528832993846879'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2009/01/security-and-encryption-links.html' title='Security and Encryption links'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-7317035645404869873</id><published>2009-01-27T12:27:00.000-08:00</published><updated>2009-01-27T12:29:42.685-08:00</updated><title type='text'>archiving</title><content type='html'>&lt;a href="http://www.simplehelp.net/2008/12/15/how-to-create-and-extract-zip-tar-targz-and-tarbz2-files-in-linux/"&gt;Source&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ZIP&lt;br /&gt;&lt;br /&gt;Zip is probably the most commonly used archiving format out there today. Its biggest advantage is the fact that it is available on all operating system platforms such as Linux, Windows, and Mac OS, and generally supported out of the box. The downside of the zip format is that it does not offer the best level of compression. Tar.gz and tar.bz2 are far superior in that respect. Let’s move on to usage now.&lt;br /&gt;&lt;br /&gt;To compress a directory with zip do the following:&lt;br /&gt;&lt;br /&gt;# zip -r archive_name.zip directory_to_compress&lt;br /&gt;&lt;br /&gt;Here’s how you extract a zip archive:&lt;br /&gt;&lt;br /&gt;# unzip archive_name.zip&lt;br /&gt;TAR&lt;br /&gt;&lt;br /&gt;Tar is a very commonly used archiving format on Linux systems. The advantage with tar is that it consumes very little time and CPU to compress files, but the compression isn’t very much either. Tar is probably the Linux/UNIX version of zip - quick and dirty. Here’s how you compress a directory:&lt;br /&gt;&lt;br /&gt;# tar -cvf archive_name.tar directory_to_compress&lt;br /&gt;&lt;br /&gt;And to extract the archive:&lt;br /&gt;&lt;br /&gt;# tar -xvf archive_name.tar.gz&lt;br /&gt;&lt;br /&gt;This will extract the files in the archive_name.tar archive in the current directory. Like with the tar format you can optionally extract the files to a different directory:&lt;br /&gt;&lt;br /&gt;# tar -xvf archive_name.tar -C /tmp/extract_here/&lt;br /&gt;TAR.GZ&lt;br /&gt;&lt;br /&gt;This format is my weapon of choice for most compression. It gives very good compression while not utilizing too much of the CPU while it is compressing the data. To compress a directory use the following syntax:&lt;br /&gt;&lt;br /&gt;# tar -zcvf archive_name.tar.gz directory_to_compress&lt;br /&gt;&lt;br /&gt;To decompress an archive use the following syntax:&lt;br /&gt;&lt;br /&gt;# tar -zxvf archive_name.tar.gz&lt;br /&gt;&lt;br /&gt;This will extract the files in the archive_name.tar.gz archive in the current directory. Like with the tar format you can optionally extract the files to a different directory:&lt;br /&gt;&lt;br /&gt;# tar -zxvf archive_name.tar.gz -C /tmp/extract_here/&lt;br /&gt;TAR.BZ2&lt;br /&gt;&lt;br /&gt;This format has the best level of compression among all of the formats I’ve mentioned here. But this comes at a cost - in time and in CPU. Here’s how you compress a directory using tar.bz2:&lt;br /&gt;&lt;br /&gt;# tar -jcvf archive_name.tar.bz2 directory_to_compress&lt;br /&gt;&lt;br /&gt;This will extract the files in the archive_name.tar.bz2 archive in the current directory. To extract the files to a different directory use:&lt;br /&gt;&lt;br /&gt;# tar -jxvf archive_name.tar.bz2 -C /tmp/extract_here/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-7317035645404869873?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/7317035645404869873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=7317035645404869873' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7317035645404869873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7317035645404869873'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2009/01/archiving.html' title='archiving'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-7192837124314432170</id><published>2009-01-15T11:57:00.000-08:00</published><updated>2009-01-15T11:58:26.891-08:00</updated><title type='text'>Recovering files on emacs</title><content type='html'>You can use the contents of an auto-save file to recover from a loss&lt;br /&gt;of data with the command `M-x recover-file &lt;RET&gt; FILE &lt;RET&gt;'.  &lt;br /&gt;This visits FILE and then (after your confirmation) restores the contents&lt;br /&gt;from its auto-save file `#FILE#'.  You can then save with `C-x C-s' to&lt;br /&gt;put the recovered text into FILE itself.  For example, to recover file&lt;br /&gt;`foo.c' from its auto-save file `#foo.c#', do:&lt;br /&gt;&lt;br /&gt;     M-x recover-file &lt;RET&gt; foo.c &lt;RET&gt;&lt;br /&gt;     yes &lt;RET&gt;&lt;br /&gt;     C-x C-s&lt;br /&gt;&lt;br /&gt;Recall that the M key is the alt key and &lt;RET&gt; simply means the "Return" key.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-7192837124314432170?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/7192837124314432170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=7192837124314432170' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7192837124314432170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/7192837124314432170'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2009/01/recovering-files-on-emacs.html' title='Recovering files on emacs'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-2791519791783118010</id><published>2009-01-14T17:53:00.000-08:00</published><updated>2009-01-14T17:56:23.657-08:00</updated><title type='text'>Keeping Jobs Alive When You Log Off</title><content type='html'>The nohup command allows you to run programs in the background even after you log out. &lt;br /&gt;&lt;br /&gt;E.g. to tun the command abcd,&lt;br /&gt;&lt;br /&gt;$ nohup abcd &amp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-2791519791783118010?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/2791519791783118010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=2791519791783118010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/2791519791783118010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/2791519791783118010'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2009/01/keeping-jobs-alive-when-you-log-off.html' title='Keeping Jobs Alive When You Log Off'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-8145233003413324324</id><published>2008-10-10T23:24:00.000-07:00</published><updated>2008-10-11T02:13:01.991-07:00</updated><title type='text'>Running Win2k on the PS3</title><content type='html'>I am very happy with my Ubuntu installation on the PS3, but one thing that disappointed me is the lack of a Flash player for the PowerPC architecture of Linux. &lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since I had an old Win2k installation disk, I decided to try Windows on the PS3. In order to run Windows I need to install QEMU&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$sudo apt-get install qemu&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Then I need to create a hard drive disk (of size 2 G)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$qemu-img create disk.img 2G&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and then I have to boot with my Windows CD.  Unfortunately I wasn't able to boot from my CD (I don't know why) so I created an ISO image of the installation disk. (The iso image  is the CD/DVD Master option of the DiskUtility in the Mac OS X, I just needed to rename the .cdr extension to .iso.)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once I had transferred the iso image of the install CD to my home directory I just typed&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$qemu -hda disk.img -cdrom W2POEM_ES.iso -m 64 -boot d&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This command starts the i386 virtual machine with 64MB of RAM. It seems this is the amount recommended for using Qemu on the PS3 by a &lt;a href="http://psubuntu.com/forum/viewtopic.php?p=8364"&gt;psubuntu&lt;/a&gt; user.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After the installation, every time I want to run again Windows I should type&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$qemu -hda disk.img -m 64 (or 128 or 256 etc)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So far I haven't been able to enable sound and neither full screen resolution. When I type ctrl+alt+f (the full screen mode) it goes into full screen mode but in a tiny window in the center of the screen. Perhaps this is a PS3 problem as the resolution configuration is not done in the standard Linux way. :-(&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Some references that I may read later:&lt;/div&gt;&lt;div&gt;&lt;a href="https://help.ubuntu.com/community/WindowsXPUnderQemuHowTo"&gt;Guide 1&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.h7.dion.ne.jp/~qemu-win/Audio-en.html"&gt;Audio under the Windows version of Qemu&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://calamari.reverse-dns.net:980/cgi-bin/moin.cgi/QuickStartGuide"&gt;Guide 2&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.debian-administration.org/articles/40"&gt;Guide 3&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-8145233003413324324?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/8145233003413324324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=8145233003413324324' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/8145233003413324324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/8145233003413324324'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/10/running-win2k-on-ps3.html' title='Running Win2k on the PS3'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-5592696478579535508</id><published>2008-10-08T10:15:00.000-07:00</published><updated>2008-10-08T10:17:41.399-07:00</updated><title type='text'>Maintaining Ubuntu</title><content type='html'>A &lt;a href="http://maketecheasier.com/8-ways-to-maintain-a-clean-lean-ubuntu-machine/2008/10/07"&gt;good article&lt;/a&gt; on how to find and remove unnecessary files and other general maintenance operations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-5592696478579535508?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/5592696478579535508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=5592696478579535508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/5592696478579535508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/5592696478579535508'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/10/maintaining-ubuntu.html' title='Maintaining Ubuntu'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-5018696538692178291</id><published>2008-10-04T19:33:00.000-07:00</published><updated>2008-10-05T13:56:02.449-07:00</updated><title type='text'>Installing Ubuntu on the PS3</title><content type='html'>After browsing several sites that provide instructions on how to install UBUNTU on the PS3 I decided to make a list of the ones I found most useful:&lt;br /&gt;&lt;br /&gt;http://www.popularmechanics.com/technology/how_to/4263321.html&lt;br /&gt;&lt;br /&gt;http://news.softpedia.com/news/Ubuntu-7-10-on-PS3-73272.shtml&lt;br /&gt;&lt;br /&gt;http://psubuntu.com/wiki/InstallUbuntu&lt;br /&gt;&lt;br /&gt;http://www.ps3linuxworld.com/&lt;br /&gt;&lt;br /&gt;You might also want to upgrade your hard drive before installing Ubuntu:&lt;br /&gt;&lt;br /&gt;http://ps3.ign.com/dor/articles/915441/ps3-hard-drive-upgrade/videos/PS3HDFeature093008.html&lt;br /&gt;&lt;br /&gt;The installation was not smooth: I got a an error telling me that the linux-cell kernel couldn't be installed. This seems to be a very popular problem (I found it in several forums); however, there is a simple a solution.&lt;br /&gt;&lt;br /&gt;http://ikerspot.blogspot.com/2007/10/howto-install-kubuntu-710-gusty-on-ps3.html&lt;br /&gt;&lt;br /&gt;To correct the resolution I followed this link&lt;br /&gt;http://psubuntu.com/wiki/SetupMonitor&lt;br /&gt;&lt;br /&gt;However I didn't restart gdm (because every time I restarted I went to low resolution). Instead, I edited the startup file with nano directly from the console that appeared using ctr-alt-F1.&lt;br /&gt;&lt;br /&gt;*Update* I just realized that you cannot watch Flash videos on linux PPC computers.  I tried the alternatives gnatch and swf but with very limited success.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-5018696538692178291?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/5018696538692178291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=5018696538692178291' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/5018696538692178291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/5018696538692178291'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/10/installing-ubuntu-on-ps3.html' title='Installing Ubuntu on the PS3'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-3123722090682036356</id><published>2008-09-26T14:49:00.000-07:00</published><updated>2010-10-21T15:08:19.108-07:00</updated><title type='text'>Manipulating (merging, etc.) PDF Files</title><content type='html'>&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;I am not sure if Adobe supports pdf merging for OS X and Linux (or maybe they only support it in the full adobe reader version?); but if you want to merge different pdf files into a single one by using the command line, this is the solution:&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;gs  -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=merged.pdf source1.pdf source2.pdf source3.pdf etc.pdf&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Update&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;I just found a &lt;a href="http://www.unix-ag.uni-kl.de/%7Efischer/blog/20080425_Modifying_PDF_Files/"&gt;Site&lt;/a&gt; that describes &lt;a href="http://freshmeat.net/projects/pdfjam/"&gt;pdfjam&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;It is a very useful tool for manipulating pdf files. For example,To put 2x4 pages on one page, use the following command: &lt;/p&gt;&lt;pre style="border: 1px dotted rgb(153, 153, 153); padding: 1ex; background-color: rgb(204, 204, 204); background-image: none; background-repeat: repeat; background-attachment: scroll; background-position: 0% 0%; -moz-background-size: auto auto; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"&gt;pdfnup --nup 2x4 slides.pdf&lt;/pre&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;a href="http://www.unix-ag.uni-kl.de/%7Efischer/blog/20080425_Modifying_PDF_Files/"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;2nd Update&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;a href="http://www.pdflabs.com/docs/pdftk-cli-examples/"&gt;pdftk&lt;/a&gt; seems even easier (and avialable from the universe repositories in ubuntu) to use for extracting and merging documents.&lt;br /&gt;&lt;/p&gt;&lt;p style="margin: 0px; font: 12px Helvetica;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-3123722090682036356?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/3123722090682036356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=3123722090682036356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/3123722090682036356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/3123722090682036356'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/09/merging-pdf-files.html' title='Manipulating (merging, etc.) PDF Files'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-6741287032100643889</id><published>2008-09-25T17:50:00.000-07:00</published><updated>2008-09-25T17:57:43.367-07:00</updated><title type='text'>Creating a mirror of a website</title><content type='html'>From &lt;a href="http://www.gnu.org/software/wget/manual/wget.html"&gt;wget's manual&lt;/a&gt;:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;If you wish Wget to keep a mirror of a page (or &lt;span class="sc"&gt;ftp&lt;/span&gt; subdirectories), use ‘&lt;samp&gt;&lt;span class="samp"&gt;--mirror&lt;/span&gt;&lt;/samp&gt;’ (‘&lt;samp&gt;&lt;span class="samp"&gt;-m&lt;/span&gt;&lt;/samp&gt;’), which is the shorthand for ‘&lt;samp&gt;&lt;span class="samp"&gt;-r -l inf -N&lt;/span&gt;&lt;/samp&gt;’.  You can put Wget in the crontab file asking it to recheck a site each Sunday:       &lt;pre class="example"&gt;          crontab&lt;br /&gt;         0 0 * * 0 wget --mirror http://www.gnu.org/ -o /home/me/weeklog&lt;br /&gt;&lt;/pre&gt;      &lt;/li&gt;&lt;li&gt;In addition to the above, you want the links to be converted for local viewing.  But, after having read this manual, you know that link conversion doesn't play well with timestamping, so you also want Wget to back up the original &lt;span class="sc"&gt;html&lt;/span&gt; files before the conversion.  Wget invocation would look like this:       &lt;pre class="example"&gt;          wget --mirror --convert-links --backup-converted  \&lt;br /&gt;              http://www.gnu.org/ -o /home/me/weeklog&lt;br /&gt;&lt;/pre&gt;      &lt;/li&gt;&lt;li&gt;But you've also noticed that local viewing doesn't work all that well when &lt;span class="sc"&gt;html&lt;/span&gt; files are saved under extensions other than ‘&lt;samp&gt;&lt;span class="samp"&gt;.html&lt;/span&gt;&lt;/samp&gt;’, perhaps because they were served as &lt;samp&gt;&lt;span class="file"&gt;index.cgi&lt;/span&gt;&lt;/samp&gt;.  So you'd like Wget to rename all the files served with content-type ‘&lt;samp&gt;&lt;span class="samp"&gt;text/html&lt;/span&gt;&lt;/samp&gt;’ or ‘&lt;samp&gt;&lt;span class="samp"&gt;application/xhtml+xml&lt;/span&gt;&lt;/samp&gt;’ to &lt;samp&gt;&lt;var&gt;name&lt;/var&gt;&lt;span class="file"&gt;.html&lt;/span&gt;&lt;/samp&gt;.       &lt;pre class="example"&gt;          wget --mirror --convert-links --backup-converted \&lt;br /&gt;              --html-extension -o /home/me/weeklog        \&lt;br /&gt;              http://www.gnu.org/&lt;br /&gt;&lt;/pre&gt;      &lt;p&gt;Or, with less typing:       &lt;/p&gt;&lt;pre class="example"&gt;          wget -m -k -K -E http://www.gnu.org/ -o /home/me/weeklog&lt;br /&gt;&lt;/pre&gt;      &lt;/li&gt;&lt;/ul&gt;    &lt;!-- man end --&gt;   &lt;hr /&gt;&lt;br /&gt;I would probably add crontab -e  so I can edit crontab  with my standard editor.  I would also add the -P /path   option so that I can save the website in a specified folder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="example"&gt;&lt;br /&gt;crontab -e&lt;br /&gt;0 0 * * 0 wget -m -k -K -E  -P ~/Work/Mules/bobmirror http://www.gnu.org/ &lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-6741287032100643889?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/6741287032100643889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=6741287032100643889' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/6741287032100643889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/6741287032100643889'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/09/creating-mirror-of-website.html' title='Creating a mirror of a website'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5465996547477009811.post-8399294443914924750</id><published>2008-09-19T19:44:00.000-07:00</published><updated>2008-10-22T15:47:37.796-07:00</updated><title type='text'>Printing Source Code in Linux</title><content type='html'>Lately I have been spending a lot of time Googling commands for different tasks in Linux, so I decided to start summarizing some of my findings before I forget about them and have to start Googling them again.&lt;br /&gt;&lt;br /&gt;So today I wanted to print C source code to a printer; however, I knew that the standard way of printing would have wasted a lot of paper and space. I Googled a bit and found out that there are essentially three main programs to format ASCII to Postcript&lt;span style="font-family:courier new;"&gt; --a2ps&lt;/span&gt;, &lt;span style="font-family:courier new;"&gt;mpage&lt;/span&gt;, and &lt;span style="font-family:courier new;"&gt;enscript&lt;/span&gt;.  I decided use &lt;span style="font-family:courier new;"&gt;enscript&lt;/span&gt; with the following command line:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;enscript --pretty-print --color --landscape --columns=2 --fancy-header code.c&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After executing the command I didn't see any of my local printers processing the job. To learn which printer was processing this request I had to use the command &lt;span style="font-family:courier new;"&gt;lpoptions&lt;/span&gt; which showed under "printer-info" that the default printer was in my previous office!&lt;br /&gt;&lt;br /&gt;Therefore I had to learn how to select a printer. For example, a  command to print in 2-column format  to printer zp2:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;enscript -2r -Pzp2 file&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Finally, there may be some problems with the margins. I fixed mine by using the option -MLetter.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;enscript --pretty-print --color -2r -MLetter -Plwc391c2 te_4_pi.m &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5465996547477009811-8399294443914924750?l=linuxbabysteps.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxbabysteps.blogspot.com/feeds/8399294443914924750/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5465996547477009811&amp;postID=8399294443914924750' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/8399294443914924750'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5465996547477009811/posts/default/8399294443914924750'/><link rel='alternate' type='text/html' href='http://linuxbabysteps.blogspot.com/2008/09/printing-source-code-in-linux.html' title='Printing Source Code in Linux'/><author><name>styx</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
