Puppy Linux is one of my favorite distributions for multiple reasons. The main being that it is very easy to install to a USB flash drive, as well it’s also very easy to get acquainted with, especially for simple day-to-day use such as Internet surfing, document writing, CD/DVD burning, media viewing, etc… I personally carry my Linux USB drive for A.) repairing machines and B.) accessing secured information, such as banking, email, username/password protected sites, etc. from just about any computer with the ability to boot from USB.
The purpose for installing this OS to a flash drive is to have the ability to carry a read/write copy of an entire Operating System anywhere you travel.
To get started you will need a copy of Puppy Linux and a USB flash drive (512MB or larger). For the OS I prefer NOP (Nearly Office Pup) due to the replacement of JWM with the XFCE desktop and it’s stability. You can find our customized version(s) in the Downloads section.
There are a couple of ways to go about installing to a USB drive, but for this article we will focus on the easiest method. This method utilizes a two step process. 1.) Burning a Linux liveCD and 2.) Installing to a USB drive from a Linux liveCD. So to get started you can begin by following the post “How to burn an ISO file to CD from within Windows“.
Boot from the Linux liveCD you created from the steps above. You can select the defaults along the way. Once you reach the desktop you will want to plug in you USB flash drive (Note – Make sure your have backed up any contents you want to save as this method will format your drive and delete all existing files). You should see a new icon appear on your desktop.
Formatting the USB flash drive
We will begin the process by clicking on Menu -> Setup -> BootFlash install Puppy to USB. We will leave the defaults and click OK. Click OK again on the BootFlash window. In the next window make sure your on the correct drive (make sure the icon from the desktop reads the same as in the “BootFlash: choose drive” window (e.g. My icon from the desktop reads “sdb1″ and my “BootFlash choose drive” window reads “sdb Flash memory…”). Click OK to continue. As long as everything is listed properly click OK in the confirmation window. After your drive is formatted the “BootFlash: install Puppy” window will appear, close this out by clicking on “Exit, finish” as we will want to pickup with the Universal installer.
Installing Linux to the USB flash drive
Click on Menu -> Setup -> Puppy universal installer. Click OK as USB flash drive should be highlighted by default. Make sure your icon and the drive match as before then click OK. In the new window that appears click the button next to “Install Puppy to sdb1″ (sdb1 is our USB drive in this case) at the top. Click OK to confirm and begin the installation wizard. Click on CD when asked “Where are the Puppy files?”. Click OK as we have booted from the CD we will be using to install from. Pick the defaults by clicking OK through the next two prompts. Press the Enter key when prompted to continue. To make sure we are creating a pristine copy type the letter “p” (any letter will work fine though) and press Enter to wipe all files. At the next prompt we will want to type the letter “p” again and press Enter to force the OS into memory running on any PC with 256MB or more of RAM. The last prompt will read “Finished, press ENTER key to continue:”, go ahead and press Enter and you should now have a Linux bootable USB flash drive. You should remove the CD from the tray that most likely opened automatically after the wizard completion and reboot by clicking Menu -> Log Out -> Restart. This time around you want to choose “DO NOT SAVE” at the prompt. If everything went well your now booted into Puppy Linux via your USB flash drive, if not you may have to adjust the machine’s BIOS to allow booting from USB. Take a look at Enabling BIOS Support for more information. If your sure it’s not as issue with BIOS you should repeat the process by starting back at Formatting the USB drive.
Reboot to initiate automatic saving to your USB flash drive
Click on Menu -> Log Out -> Restart
Upon the first Shutdown or Restart you will be asked if you would like to save your session to a file. Leave the default (SAVE is highlighted) and press Enter. You will next be asked if you would like to customize the file name. You can leave this blank, unless you plan on running multiple customized sessions (we can touch on this later if need be), and press Enter. Next we will be asked about the encryption level, it is best to leave this option as default (<NORMAL (no encryp.)>) and press Enter. You will then be asked to choose a size for your personal save file. I generally choose the largest size available which at the time of this writing is 1.25GB and press Enter. The last prompt is the “FINAL SANITY CHECK:”, this is where you have the option to change the file location or stop the save process all together. Leave the default “YES, SAVE” and press Enter to begin the save process and ultimately begin the reboot process. Note – the save file creation process may take a while (up to 5 minutes or so) depending on your machine specifications.
Setup the Network connection
Once your back at the desktop we will want to setup the Internet connection.
Click on Menu (bottom left corner) -> Setup -> Network Wizard
Depending on your interfaces, you selection may vary. For most will select eth0 by clicking the button conveniently labeled eth0; click the Auto DHCP button to acquire an IP address. You will have the option to save the settings to automatically establish a connection on the next boot (so long as your on the same machine). Click Done and if all went well, you now have Internet access.
Download the word processor and spreadsheet SFS file (AbiWord and Gnumeric):
Click on Menu -> Utility -> Terminal
Then type the following on the command line:
cd /mnt/home; wget http://slighpcs.com/downloads/puppy/spc431/goffice-43.sfs
If everything went as planned you should see output at the bottom of the Terminal window stating “… ‘goffice-43.sfs’ saved…”. Next you will want to close the Terminal window by either typing “exit” and pressing Enter or by clicking the X in the top right hand corner of the Terminal window.
Add the SFS file to boot
Click on Menu -> Setup -> BootManager configure bootup
Then click on the icon to the right of “Choose which extra SFS files to load at bootup”. In the “BootManager: SFS files” window you should see “goffice-43.sfs” in the left hand pane. Click on it (it will highlight in dark blue once chosen), then on the “Add” button to move it to the right hand pane, and then the OK it, and finally QUIT from the bottom right corner.
Last we will reboot the OS to allow the gOffice applications to automatically load during the boot sequence. Click on Menu -> Log Out -> Restart.
UPDATE – Monday, December 6th, 2010
I have good news… I think. I haven’t had a chance to run a full battery of tests yet, but I do know that Malwarebytes is now at least installing, loading, updating, and scanning properly. Granted this was run under Windows XP within a virtual terminal… I will post more as soon as I have time.
I apologize for the delay, work is holding me up! I have had a chance to do some further testing and there seem to be some issues, but nothing that prevents Malwarebytes from being utilized though.
What I’ve noticed so far:
Switching tabs within the main GUI creates rapid flickering within the GUI itself and the only way to get the updates to take is by clicking the Updates tab, clicking back on the Scanner tab, then clicking the Check for Updates button. The GUI then needs to be exited and restarted to begin a scan. Scanning proceeds as it should, deletions seem to work fine as well. As with the previous versions, you will have at least 1 infection claimed within wine itself… I will post details later when I get a chance to put together a complete package… Should be later this evening.
I have uploaded both the ISO (sPCpup-431_wine138.iso) as well as the latest wine build (wine-1.3.8.pet). The directions below still apply… Let me know if you find any issues.
…the wine file c:\windows\system32\winnls32.dll is found to be infected with Trojan.Tracur. This, of course, is a false positive and can be safely ignored.
—————————————
Good day to you all, this is Ted from slighPC’s and I wanted to comment about the drastic increase in harmful malware (malicious software). Recently I have been subjected to an incline of issues pertaining to Windows malware infections and the numerous major issues stemming from them. In this article I plan on portraying a worst-case-scenario and discussing the methods to resurrect a Windows machine from the dead so to speak.
Windows will not boot no matter what is done. All suggested fixes and resolutions have been implemented and the machine is still non-functional. This is becoming more and more prevalent in my experiences and for me personally… I feel defeated if I have to resort to a clean install to rectify any issue.
That said, most computer shops would recommend a reformat and clean install at this point… but what about my Programs and Data, you ask? Most if not all data could theoretically be saved to external media and re-populated after a clean install. This though, has been the case in very few of my experiences. The main problem seems to be following software data backup procedures prior to issue occurrences. For example, Outlook by default saves data in an OST file which cannot be restored without additional resources or 3rd party application(s). This data would need to be saved as a PST file from within Outlook itself, which can be restored. Programs or applications are an entirely different story due to their use of the underlying Windows components such as the registry… sadly I have never found a sure-fire, completely successful path to restoring single applications after a clean OS install. Due to these setbacks I have always made it a point to investigate every avenue to performing a full repair, leaving the reformat as the ultimate last resort. …Enough with the technical jargon, let’s get on with the fixing!
External OS Scan Procedure (Use at your own discretion as these directions are provided without warranty and we cannot be held liable for any damages as a result of using these directions… We are here to help though, so please keep us posted with any success or failure information and we will be more than happy to provide our assistance and expertise.)
Requirements to run an external OS scan
Broken Windows box with:
CD-ROM boot capabilities
392MB RAM minimum (512MB recommended)
First you’ll need to burn our custom Linux liveCD by following the post “How to burn an ISO file to CD from within Windows“.
Boot from your Linux liveCD
Insert the CD in your CD or DVD-ROM and reboot your computer. You may have the option to select your boot device without changing the BIOS (e.g. Dell machine boot device selection is typically tied to the F12 key). As the OS is booting you will be asked to select your keyboard and video settings (keyboard layout is self-explanatory and the video selection should work fine under Xorg… if you have issues choose Xvesa).
Setup the Network connection
Click on Menu (bottom left corner) -> Setup -> Network Wizard
Depending on your interfaces, you selection may vary. For most will select eth0 by clicking the button conveniently labeled eth0; click the Auto DHCP button to acquire an IP address. You will have the option to save the settings to automatically establish a connection on the next boot (so long as your on the same machine). Click Done and if all went well, you now have Internet access.
Download and Install Malwarebytes’ Anti-Malware from within Linux
Use the default browser to download Malwarebytes’ Anti-Malware free version.
Click on Menu -> Internet -> Opera Browser/Mail/Chat
Ok the Opera update pop-up dialog box and replace the URL bar contents:
file://localhost/usr/share/docs/home.htm
with the Malwarebytes’ Anti-Malware site URL below:
http://malwarebytes.org
and then press the Enter key on your keyboard.
Locate and click on the button “Download free version” on the left hand side of the page.
Save the file to the default location (/root) for ease of use with these directions.
Click on Menu -> Utility -> Terminal
In the Terminal window type the following command to begin the Malwarebytes’ Anti-Malware installation:
wine ~/mbam-setup.exe
Follow the prompts and take the defaults as you would in any Windows environment. You will notice a bit of output in the Terminal window as your installation is taking place. This is strictly informational unless of course any issues arise, in which case I would recommend posting your errors to allow us to get you back on track. After the installation is complete and the database is updated you should see the Malwarebytes’ Anti-Malware window appear. Before we begin the scan we will need to mount as well as add our Windows drive to wine. So at this point we will want to close Malwarebytes’ Anti-Malware by clicking on ‘Exit” in the bottom right corner of the window.
Mounting and Adding your Windows partition to Linux
To mount your Windows partition we will first need to locate it. Depending on the make and model of your machine you will most likely have multiple partitions. For example, newer Dell models typically house three separate partitions (a tiny utility partition, a Windows partition, and an image restore partition). The easiest way to locate the correct partition is by mounting each drive labeled sda1, sda2, sda3, etc. (for IDE drives your labels would be represented as hda1, hda2, hda3, etc.) from your desktop and searching for the ‘OS’, ‘Program Files’, and ‘User Profiles’ folders. For Windows XP and Windows Vista installs we would generally be searching for a ‘Windows’ OS (Operating System) folder. For Windows upgrades this may be labeled as Winnt. The ‘Program Files’ directory should be housed in the same location for both XP and Vista. The User Profiles directory should be labeled ‘Documents and Settings’ for XP and ‘Users’ under Vista. Once you have located these three folders you more than likely have the correct partition mounted and ready to go.
From here we will need to add our partition to the wine configuration. First we will need the correct path to the mount. You will need to note the drive label you found the ‘OS’, ‘Program Files’, and “User Profiles’ directories under. In this case we’ll use ‘sda2′.
Click Menu -> Utility -> Wine Config, then click on the ‘Drives’ tab in the Wine Configuration window. You should see the current ‘Drive mappings’ listed as:
C: ../drive_c Z: /Click the button labeled ‘Add…’, leave the default drive letter as ‘D:’ and click OK. Now with ‘D:’ highlighted blue click ‘Browse…’ to the right of ‘Path:’, then click the ‘+’ next to ‘mnt’ in the Browse for Folder window. Click on the the folder we noted from the steps above. In our case we would click on the folder sda2 and click OK. At this point the ‘Path:’ should be populated properly (in our case ‘/mnt/sda2/’). Click ‘Apply’, then ‘OK’ and now we have added our Windows partition to wine.
Running the scan
Open Malwarebytes’ Anti-Malware by clicking Menu -> Other -> Malwarebytes’ Anti-Malware.
Leave the default method ‘Perform quick scan’ and click on the ‘Scan’ button.
Viewing and Removing the infections
After the scan has completed a new dialog box will appear stating The scan completed successfully. Click ‘Show Results’ to display all objects found. Click OK, then click ‘Show Results’ in the bottom right corner. A list of all infections should appear. At this point we are ready to remove all of the infections found by clicking on ‘Remove Selected’ in the bottom left corner and a log file will appear at focus on your desktop.
I would recommend saving the log file to the Windows partition by clicking on ‘File’ -> ‘Save as…’. In the new window click the drop-down arrow to the right of ‘Save in:’ and click on ‘My Computer’. You should now see ‘(C:)’, ‘(D:)’, and ‘(Z:)’ listed, double-click on ‘(D:)’ and give your log a name by filling in the ‘File Name’ text box with ‘mbam-todaysDate’ (Eg. mbam-01-04-10). Then click on the ‘Save’ button and your log file will be located at the root of your Windows partition.
I will assume after you have saved the log file that you will be looking at a Malwarebytes’ dialog window stating ‘All selected item removed successfully… Your computer needs to be restarted to complete the removal process. Would you like to continue?’. From here we want to click on the ‘Yes’ button. If your machine does not initiate a restart automatically you will want to click Menu -> Log Out, and then click on the ‘Restart’ button in the middle of the dialog window. At this point you will be asked if you’d like to Save your Session. For the purpose of simplicity will will select ‘DO NOT SAVE’ by using the right arrow key to select and the enter key to acknowledge. Just after your machine powers down remove the CD-ROM and let Windows (with fingers crossed) boot normally.
Back in Windows (Hopefully…)
Once the machine boots into Windows we should be able to access the Internet to download a copy of Malwarebytes’ Anti-Malware to finish the disinfecting process.

Categories
Tag Cloud
Blog RSS
Comments RSS
Last 50 Posts
Back
Void
Life « Default
Earth
Wind
Water
Fire
Light 