Friday, October 15, 2010

The winding road to a straight-forward solution

Update(26 Oct 2010): Please read comments section for this entry for more useful information. My gratitude & Thanks to all who contributed. Cheers!

This is a rant... and I will admit to not thoroughly investigating this topic... but really, why does it have to be this hard to install SUSE on a Laptop? Curious? Read on...

First, the scenario, I was on the road 3 weeks ago and needed to install SUSE Linux Enterprise Desktop 11 SP1 onto a Thinkpad X61. This model does not have a DVD drive and while there's a docking station somewhere that has a DVD drive, that docking station cannot be found, Oops. Not a big deal, next idea was to do a network install where I setup my machine with DHCP & HTTP server to provision the X61 via PXE-boot. Unfortunately, I do not have sufficient time and the network setup at that place was new to me so I thought the risk is rather high.

Next idea was to use my 8GB USB thumbdrive and make it into a SUSE install stick. Yes, this might work (it did eventually) and I recall seeing some documentation on opensuse.org before. I backed up the existing data on my thumbdrive and ensured that I've installed syslinux onto my system so as to make the USB stick bootable... that's all that I can recall off hand.

Now comes my rant:

I cannot find that document on how to make a USB stick into a bootable SUSE installer. First, opensuse.org has gone through a facelife (and its a truly nice visual upgrade). While the structure of the site has improved in terms of content organization, that particular document did not survive the website upgrade. After spending more time with Google, I realize that the older opensuse.org site is still accessible by prepending "old-" to the URL = http://old-en.opensuse.org

Eventually, I found the documentation/article at http://old-en.opensuse.org/SuSE_install_from_USB_drive

Finally, the steps are pretty straightforward except for the little bump in the road where I have to download a script called mksusebootdisk from here. Murphy's law kicked into high gear and I had trouble downloading this little file. Aargh!

From the documentation, it states that the mkbootdisk script that ships with SUSE does not really work in this scenario as it doesn't work with FAT32 on USB stick (and you can't use Fat16 as SUSE DVD image is greater than 2GB). Therefore, you'll need the modified version mentioned above. Great!

This document has been around for about 2 years and in that time, this little script is still not shipped with the latest SUSE. I'm sure there is a good engineering reason to this but I was too upset to even consider it. LOL! :)

Anyway, after clicking on the link one last time (hoping the same action will yield a different result), I was able to download that mksusebootdisk script. Ha! Everything was smooth sailing thereafter and I installed SLED 11 SP1 on the Thinkpad X61 from my 8GB USB Stick.

Onwards and upwards... keeping on carrying on... :)

Thursday, September 16, 2010

Mummy dearest and my SLED 11 SP1

My 62 year old and Chinese educated mother used my Thinkpad T61p running SUSE Linux Enterprise Desktop 11 SP1 the other day. Her trusty (ie old) PC running Windows & MS Office opted for early retirement while she was half-way through creating a powerpoint presentation for her Chinese Poetry Club.

Desperate to complete her presentation, she asked if she could use the computers at my place... I told her I do not have Windows but if she was open, she could still get her presentation done on a slightly different program and interface.

I powered up SLED 11 SP1, plugged in her USB thumbdrive and opened up her Chinese poetry presentation in OpenOffice v3.2.1. Next, I showed her how to use SCIM for Chinese character input (toggle via Ctrl-Space & HanYu PinYin input). Left her to it for an hour and she successfully completed her assignment, saved it in PPT format and went home. I did warn her that her presentation may not be 100% WYSIWYG when opened on a Windows PC at her club meeting. *fingers crossed*

My mum came back the next evening to add a few more slides and told me (not surprisingly) that the slides did not turn out 100% as planned but she was resourceful enough to copy-n-paste (what a wonderful invention) the characters from the PPT created in OpenOffice and merge it with a PPT created in MS Office. She even managed to get me off my lazy bum and help create transparency effect (using GIMP) for one of her mid-autumn backgrounds used in the presentation.

Wishing her all the best for that final presentation this evening. I'm so proud of her because:
  1. She only picked up basic English and basic Windows & MS Office usage a few years ago at around 50+ years of age.
  2. She is fearless... there are many people half her age who wouldn't even touch a keyboard with a non-Windows screen in front of them.
  3. She is adaptable... man, how many people can use cut-n-paste effectively?
Maybe... just maybe... there is still a glimmer of hope for that elusive "Year of the Linux Desktop"... nah!

Tuesday, August 10, 2010

Windows Virus/Trojan busting with SUSE and ClamAV

Not once but on two separate occasions over the course of last week, I was called upon to help do some virus & trojan busting on badly infected laptops. It was so bad that traditional anti-virus software just could not seem to completely eradicate them. It would appear that these viruses and trojans could hide and re-create/spawn instances upon shutdown and reboot of Windows XP.

Honestly, I'm "new" to this as this is not my day job or something I do on a regular basis. Since using the installed anti-virus program route did not work, I opted to physically remove the infected 2.5" hard disk drive from these laptops and put them in my secondary hard disk bay of my Thinkpad running SUSE Linux Enterprise Desktop 11 SP1 (SLED 11 SP1 for short).

Tip: If you do not have nor want to spend money on a secondary hard disk bay for your laptop, there are many more affordable adapters in the market where you can connect a SATA or IDE 2.5" hard disk drive and connect them to your laptop via USB. SUSE Linux Enterprise (Desktop/Server) and openSUSE will automatically mount them under the /media directory.

My idea/solution was simple, boot up my Thinkpad with SLED 11 SP1 with the infected hard disk mounted as a secondary drive (ie no programs are executed on boot). Further, its unlikely these nasty viruses/trojans will execute since I'm using a different operating system. Next, use ClamAV (anti-virus scanner that comes with SLED 11 SP1) to scan for known Windows viruses & trojans on the mounted secondary drive (which is the Windows hard disk from the infected laptops).

Note, if you are using clamscan for the first time, ensure that your virus database is up-to-date or it will not work. To do that, ensure you've got Internet access and execute freshclam. Thereafter, you can execute clamscan -ri . The "r" flag means recursively through the directories and "i" flag is to only print infected files detected to the screen. In my case, I mounted the infected disk via mount -t ntfs /dev/sdb1 /mnt/temp and so I executed clamscan -ri /mnt/temp/ for my virus/trojan busting.

Its IMPORTANT to note that clamscan does not have virus/trojan quarantine or disinfecting capabilities. To remove the virus, it would delete the infected file. Hence, I did not specify the --remove=yes parameter as I wanted clamscan to detect the infected files first and leave it to me to decide if these files should be removed permanently.

Using this method, I managed to detect and selectively remove infected files (some of them made to look like Windows system files). The first instance, I detected and removed over 25 trojans. In the second instance, I detected and removed 2 trojans.

Finally, I believe (please correct me if I'm mistaken) the original intent of packaging ClamAV with SUSE Linux Enterprise is to have the ClamAV daemon work with email server software in scanning emails that may contain Windows viruses and actively block or remove them before it reaches end user machines running Windows.

Wednesday, July 28, 2010

Happy 1st Birthday SUSE Studio and Hello SUSE Gallery!

Better late than never, looks like quite a few online sources have already noticed and written up quite a bit on the one year anniversary of SUSE Studio and the introduction of SUSE Gallery.
It looks like you will still need a SUSE Studio/Gallery ID [get it here] you can browse the approximately 181 (at this time of writing) shared/published appliances online. Doesn't sound like much but its worthy to note that there are over 80,000 registered users and 415,000 appliances built over a year.

To end this short post, I'd like to wish SUSE Studio (Dister the mascot & all the folks who had worked on this project) a Happy 1st Birthday. Looking forward to more exciting times ahead.