Barrio Malawi - Linux http://www.saintsjd.com/malawi/taxonomy/term/35/0 en Keeping Many Debian Machines Updated http://www.saintsjd.com/malawi/blog/jon/keeping_many_debian_machines_updated <p>There are an increasing number of Ubuntu Linux machines on the Mzuzu University campus network (DHCP, squid, iptables, email, web, and some desktops). As you all know, keeping both Windows and Linux machines up-to-date with security updates can be very bandwidth intensive. Because our 256 kb/s connection is used heavily during the day we are trying to schedule all security updates to run once at night and then have all of our client machines connect to the local repository during the day for their security updates so as not to use bandwidth while students and professors are trying to connect online.</p> <p>Over the past month, we have been comparing various Ubuntu local security update repository solutions: <a href="http://apt-proxy.sourceforge.net/">apt-proxy</a> and <a href="http://www.nick-andrew.net/projects/apt-cacher/">apt-cacher</a>. Our result: apt-cacher wins hands down. We found apt-proxy to be quite buggy and not to perform very well when multiple machines connected to the security update server at the same time. We have had no problems with apt-cacher. It was easy to install and configure. Most importantly it has greatly reduced the amount of bandwidth needed to keep our campus computers up-to-date with the latest Linux security updates.</p> <p>Our next task is to find a way to do something similar for Windows machines. Currently each computer on campus is connecting to the windowsupdate.microsft.com website and downloading security updates individually. This is one of the heaviest uses of bandwidth on our network. I have found <a href="http://www.microsoft.com/windowsserversystem/updateservices/default.mspx">Windows Server Update Services </a> . Its BETA version, but I think it might do what we need it to.</p> <p>Any other ideas are most welcome here in Malawi.</p> <br class="clear" /> http://www.saintsjd.com/malawi/blog/jon/keeping_many_debian_machines_updated#comments Information Technology Linux open source Mon, 11 Sep 2006 04:58:11 -0400 jon 130 at http://www.saintsjd.com/malawi Ubuntu Linux 6.06 has landed in Northern Malawi http://www.saintsjd.com/malawi/blog/jon/ubuntu_linux_6_06_has_landed_in_northern_malawi <p>Just wanted to let my other Linux loving friends in Malawi know that we have successfully downloaded a copy of the newest version of <a href="http://www.ubuntu.com">Ubuntu Linux</a> here at the University. We are installing it in a few of the computer labs.</p> <p>We are happy to make copies of the disk for anyone in Northern Malawi who, for bandwidth reasons, might not be able to download this new version (700MB). Please bring (or send) us a blank CDR to Mzuzu University. If you want to send 150MK and have me buy a blank CDR that is ok too (arrange by email first). </p> <p>Use the <a href="/malawi/contact">contact form</a> to let me know if you are interested.</p> <br class="clear" /> http://www.saintsjd.com/malawi/blog/jon/ubuntu_linux_6_06_has_landed_in_northern_malawi#comments Linux Wed, 07 Jun 2006 03:51:42 -0400 jon 83 at http://www.saintsjd.com/malawi Recovering Deleted files with Linux and Sleuthkit http://www.saintsjd.com/malawi/blog/jon/recovering_deleted_files_with_linux_and_sleuthkit <p>Ever accidentally delete a file you really needed from the recycle bin? Ever format a disk and install a new operating system only to find later that you forgot to save off some really important files first? The former recently happened to us here at the Univeristy in Mzuzu... we thought doom was upon us until we stumbled upon a open (free to change, use, and distribute) software utility called Sleuthkit (<a href="http://www.sleuthkit.org">http://www.sleuthkit.org</a>). </p> <p>When we realized our disaster, we started searching Google for "data recovery", "recover my files", etc. Listings appeared for companies charging hundreds of dollars for data recovery services and software. We tried some of the trial versions of the commercial software, but nothing was able to detect our files. Finally one of us here in the office in Mzuzu stumbled upon Sleuthkit, an amazing utility that was able to recover out deleted files from a formatted disk and didn't cost us a penny!</p> <p>For all those out there that do not feel comfortable removing hard disks from computers, or if all of this talk of Ubuntu and software is boring you at this stage, let me leave you with just one parting thought - if you are using a computer and discover that a file you really need has somehow been "permanently" deleted the steps you should take are:</p> <p>1. Immediately stop using the computer and shut it down. When your precious file was "deleted" from the disk, it wasn't actually deleted at all. In fact all the computer did was make a note to it self that the space occupied by the file is now free to be over written. If your file has not yet been over written by new files, then recovery might possible with Sleuthkit.</p> <p>2. Next, contact all the nerds you know. Tell them what has happened and tell them that you have heard of about tools like "Ubuntu", "Linux", and "Sleuthkit" that can be used to fix the problem. If the nerd's eyes light up when you mention "Ubuntu" or "Linux" you have found the right person to help.</p> <p>The following are the steps we used to recover our files from the formatted disk here at the university in Mzuzu:</p> <ol> <li>Remove the hard disk from the computer it was in when the files were deleted (if the disk with deleted files in on a laptop do the following: boot the laptop with a liveCD such as knoppix, mount a network drive using smbmount or nfs, use dd to write an image of the disk to the network drive, and skip to step #8 below)</p> <li>Attach the disk with the "deleted" files to a computer that is running Ubuntu Linux as its operating system (I imagine your Could use a Ubuntu LiveCD here )<br /> <strong>*** Note this computer will need to have free disk space larger than the entire size of the disk with deleted files ****</strong></p> <li>Boot up the Ubuntu computer <li>use System-&gt;Administration-&gt;Disks or run the command "df -h" from the command line to determine which system device number your disk being identified by. We used df -h and based on the size of our disks found that the one with the deleted files was referenced as /dev/hdb<br /> <strong>*** Only once you are positive that you have the correct system identity of your disk should you proceed ***</strong></p> <li>Create a disk image of the disk "sudo dd if=/dev/YOUR_DISK_ID of=/home/YOUR_HOME_FOLDER/recovery_disk_image.img" <li>When the image of the disk with deleted files is ready, power down Ubuntu and remove the disk with the deleted files. Store it in a safe place. But do not plug it back into another computer just yet. <li>Turn the Ubuntu computer back on <li>Add the universe software repoitories to your apt sources list (see The Ubuntu Getting Started Guidi on Google for more info) <li>use apt or synaptic package manager to to install <strong>sleuthkit</strong> and <strong>autopsy</strong> <li>open a command line prompt and run "sudo autopsy" <li>open a web browser and go to the page <a href="http://localhost:9999/autopsy" title="http://localhost:9999/autopsy">http://localhost:9999/autopsy</a> <li>A graphical interface appears Choose "New case" and follow the questions that the wizard asks you. When prompted for the location of the disk image enter "/home/YOUR_HOME_FOLDER/formatted_disk.img" <li>After sluethkit analyzes the disk image it will display a listing of the disk's partitions. Choose the partition where you deleted file was saved and click Analyze -&gt; File Analysis <li>Along the left hand side of the screen you will see a search box where you can search for the deleted file by name. Enter the file name and click Search. <li>A list of the files matching your search text will appear. Browse the list of files and click on the hyperlink name of the file that you would like to recover <li>Once the file finishes loading click the Export hyperlink and wait for your web browser to prompt you to save the file <li>When prompted save the file <li>Test to make sure your “deleted” file opens correctly on another computer. Transfer the file to another computer using a CD, USB flash drive, floppy disk or the internet </ol> <p>Repeat steps 14 -18 to recover more files that were deleted. Using these steps we were able to recover an entire folder of files from a disk that had been formatted and reinstalled with a new version of Windows XP. Hope it works for you as well as it worked for us</p> <br class="clear" /> http://www.saintsjd.com/malawi/blog/jon/recovering_deleted_files_with_linux_and_sleuthkit#comments HOWTOs Linux Nerds Only open source Wed, 17 May 2006 03:39:17 -0400 jon 71 at http://www.saintsjd.com/malawi