Thursday, December 4, 2008

Isomaster - a paradigm shift

In the midst of gkrellm ( nonsensical name), and sysguard (misleading name), Isomaster is indeed a breath of fresh air. There need to be more developers thinking straight when it comes to naming their contribution.

It seems this is the only tool that allows editing ISO images, and it was an uphill task to get it. The first assumption, ofcourse, was that I could mount the iso as loop and edit it like any file system. But, the ISO 9660 file system is read only, and therefore the files need to be extracted, and a new ISO created. I was not sure whether doing this would retain the bootablility of the resulting ISO, hence I had to go looking for an ISO editor.

The need for the editor was felt because of the need to modify the OPensuse 10.3 DVD image to include some other rpms that are not available in it - isomaster is one.

The normal route to getting the ISOmaster was to include Packman repository in Yast and searching for ISOmaster. While ISOmaster did show up in the results, the rpm was missing from the repository, and so the installation by that route failed.

The next move was to go to the ISOmaster home page, and download the "One click installer" YUM file. This is a small file that when double clicked will launch YAST with the desired repository selected. This step, obviously, failed since the rpm was not in the repository. The other download option was the source code, and I was loathe to do the make, configure, link etc jig.

More googleing showed up the rpm proper at the Suse site. This was the easiest way to get application - download rpm, add path to YAST, and double click on rpm.

ISOMaster is spartan, but it get's the job done well.

Blogged with Flock

Sunday, November 30, 2008

Hail Photorec, the genius

One dangerous aspect of tabbed file exploring in konqueror is that the selected folder in the folder tree on the left pane, need not be the one whose contents are listed on the right.  A slight oversight, and a ton of mp3s got deleted. Luckily I froze in horror when I realised the mishap and this greatly improved the prospects of getting the data back. I quickly unmounted all concerned partitions to prevent accidental data writes.

The background is important in this case, and it is briefly thus : hda with an ntfs partition and hdb  with an ext2 partition were involved. Moving a folder from hdb to hda was interrupted due to lack of space in hda. After clearing additional space, the operation continued from that point onwards, after skipping one file. (This is a great feature missing in Windows, by the way.) Since the file was skipped, the folder structure in hdb was retained partially. Then intending to cleanup the partial folder structure in hdb, I deleted the folder in hda.

The first tool I looked up was testdisk. This great and versatile tool also has an option to recover files. In the ntfs partition, the option to recover files did not show up, so I assume testdisk can do its magic only in ext2 partitions. The partial directory structure left in the ext2 partition probably prevented the deleted files from being displayed, when I trained testdisk on that disk.

Next after googling a bit, I zeroed in on R-Studio. The demo version can scan for recoverable files in many file systems. Though, it is an exe and needs a proper Windows installation to work, since in my case under Wine or Crossover R-Studio had problems in detecting the partitons.

I had to revert to the windows installation which resided in the ntfs partition, and eventhough the page file was turned off, I was sure that Windows would muck up the scene. Running RStudio after installing it, I found, again, that the broken folder structure in ext2 probably acted as a screen, since after a 20 min scan I had no useful results. ( Now, it occurs to me that deleting the remnants of that folder would have helped).  In the ntfs partition, I could get about 100 MB of mp3s, when the original folder had 2 GB. I was surprised by the result, since there was no writing operation that had occured in the preceding few minutes.

A little more googling, and Photorec popped up. This is a testdisk twin, since they are distributed bundled. As I already had testdisk installed, I could launch Photorec using that command. The interface and working resembles testdisk.

One feature of Photorec which I found quite useful was it's ability to scan selective areas of the disk, which significantly cut down the scan time. This seems a pretty obvious feature to include, but since I haven't seen it in any other recovery software, I was willing to call it an act of genius.

To elaborate the genius of Photorec, consider the normal "deleted file" situation: A large hard disk chock full of data, and some files get deleted to make room. The bulk of the situations would therefore involve small unallocated disk space where the deleted file exists, and large allocated disk space. Photorec explicitly asks which of these areas - allocated or unallocated - to scan.

The other intelligent trick up Photorec's sleeve, is the ability to fine tune the scan to search for files of a specific type. There are about 50 such file types that Photorec recognises, and can specifically scan for. Since I was only after MP3s I disabled all the rest, which could speed up scan times.

A combination of these two features ensured that in about one fifth the time it took with R-studio, I had results. How much?  In all, bits and pieces included, the recovered content from the ntfs partition was close to 1.5 GB. Removing the chaff, I expect close to 1.2 GB of valid MP3s. The scan on the ext2 partition returned about 500 MB of mp3s, a few looked interesting. Does this say something about the suitability of ntfs for file recovery situations?

In the end, I am satisfied with what I have : Not a complete recovery, but substantially better than what I could have got with R-studio.

Ofcourse the file names were a mess, so now I need a media organiser than can batch rename MP3s based on their ID tags.

Photorec, like testdisk, is free.

Blogged with Flock

dd - deeeee deeeee

I did manage to clone the hard disk using dd. But, it took considerably longer than Ghost.
Using watch, I could check the progress, and was alarmed to see that the transfer speed was 10 MBps. For a SATA2 to SATA2 disk transfer, this is an extremely low value.

A look around the net revealed that the "block" argument could speed things up. Not sure what the default bloxk size is, but read somewhere that setting it to 1 MB would result in quicker transfer. Need to check this out.

Wednesday, November 26, 2008

dd - the silent but strong type.

In the years as an XP user, copying one disk to another, or making a mirror, involved using Norton Ghost. Since the version that I had was DOS based, I had to go through the bootable Win98 partition/floppy route to get the job done.

Today I faced a similar issue, and went hunting for the linux version of Ghost, and found the ridiculously simple dd command. After using it, I am reminded of the type of folks who are all business with hardly time to utter pleasantaries.

While dd can do much more, for the job at hand, all I needed to do was issue "dd if=/dev/hda1 of=/dev/hda2" where hda1 was the source and hda2 the destination. To correctly figure out which is which, use the fdisk - l command to list all detected hard drives. This step is important, since it is easy to overwrite the wrong disk, since dd does not offer a prompt before going about it's business.

In my case, inspite of the fdisk command, I ended up deleting the Puppy installation in a flash drive that I had used to run the dd command to copy from one hard disk to another. It took me a couple of seconds to figure out the mistake, but it was too late. Now with the installation wiped out, I cannot use the flash drive at the next boot. The problem with that situation is that it has been close to 90 mins and dd has been working without any feedback, another quirkiness of dd.

The solution to this silence is to use another console to poke, literally, dd to offer information about what it has achieved. The Control - F1 (to F7) key combination can be used to launch a second console and from there issuing the command " $ watch -n X kill -USR1 PIDXX" where PIDXX needs to be replaced with the PID number of the dd process that can be found by issuing the "top" command. The "X" here is the time interval in seconds where the progress info is provided, which can be set according to user preference. And the kill -USR1 command is the actual poking that starts dd into giving the info.
A more detailed explanation is offered here :
http://linuxcommando.blogspot.com/2008/06/show-progress-during-dd-copy.html

Oh, in my case the power company had other plans, and an impromptu power loss brought the transfer process to a stop.

Tuesday, November 25, 2008

AVI Editor, at last.

Besides games, the only reason I had to keep Windows in my system was the need to edit video files. The simplicity of virtual dub was too overwhelming. Especially when contrasted with the headaches that I had to go through to get AVI demux installed, by following the instructions on their website.

Now, finally, thanks to easgs at linuxquestions.org, I have taken out this nagging thorn in my side. It seems I had been looking at the wrong place all the time. I had been going out all over the Net searching for samples of successfully installed AVI demux, when the answer was all the while within the system. Hat's off to easgs for showing the path. Easgs, by the way, is the creator of a special package of all multimedia tools for Opensuse 11 details of which are available at linuxquestions.org. Such a package will save a user from the trouble I went through.

What is needed is the inclusion of the Packman and OSS repositories in YAST. Without the Packman repository, AVI demux did not show up in any of the searches in YAST (eventhough the OSS and Non OSS repositories were enabled), causing me to go outside looking for the package ( all the while thinking why it was not in the repositories, as a matter of fact). With Packman enabled, the job becomes a routine one, search for AVI Demux, select the relevant packages (including the GUI packages - GTK and QT) and let YAST do the download and install.

About 25 MB is downloaded, including about 11 MB of the core packages and about 8 MB of the GUI files ( I selected both QT and GTK though I think either would have sufficed). Post install, I have a new entry under Multimedia where AVI Demux resides. AVI Demux does live up to it's hyped image, as a versatile avi editing tool. I have merely, successfully, edited a few videos and there is a lot to explore. But, I am confident that I can, sadly, bid Virtualdub goodbye.

Blogged with Flock

Wednesday, October 22, 2008

Linux Musings

Smoothly cruising with Linux for some time now, the data corruption notwithstanding, a few things to note :
1. When using larger screens, anything larger than 15", I find the KDE mouse pointer acceleration controller far superior than XP's, The ability to fine tune the acceleration values makes moving all over the screen quite easy, presently I have set it to 5 (threshold is always 1) on a 1280 X 1024 resolution screen. In XP a lot of lifting of the mouse is needed to get to the corners.

2. The last data corruption left me with a lot of files without proper names or extensions. In XP these show up as unidentified files, where as in Linux, even without the extensions, konqueror is able to identify the file types from the file headers. Impressive.

3. One area where XP scores is in the file transfer process. For some absurd reason, Linux creates empty folders in the target destination much before shifting the files within them. This can create a lot of problems if the transfer is interrupted for some reason, as the folders all exist at the destination giving the impression that the transfer has been completed. Then the user has to go to the target destination and check each folders properties to see if they are merely shells. I am sure there would be some script to automate this shell checking process.

4. Bulk renaming is a cinch in XP, strangely this is a novel concept in  Linux. There is no way to convert all files with one extension into another. In XP something like ren *.jpg *.xyz works, but in Linux you need a script, like this one which I use to rename the youtube videos files from the browser's cache where it is stored without extension:
 for file in *; do echo $file; new=$file.flv; echo $new; mv $file $new;
(the whole thing can be typed out at the prompt)

5. The difficulties faced in getting a video editor seem unsurmountable. Virtual dub and Wine do not tango. From the net, the many alternatives exist as source files requiring considerable patience in modifying them into usable form. Something I have been unable to accomplish so far. This is the only reason why I still need to have an XP installation.

6. Virtual box, the OS emulator fails to install properly, inspite installing from the DVD while installing the OS. No solution is forthcoming from the OPensuse forums in this regard, besides trying out the latest version.

Blogged with Flock

Friday, October 3, 2008

Multi page pdf printing

One of the reasons I preferred to use Foxit pdf reader with wine was because the inbuilt pdf reader did not support printing multiple pages on a single A4 sheet. Ofcourse I could use the bloated Adobe reader which had a linux version as well, but since I already had wine for Opera 7.54, the 2 MB Foxit was much better. Unfortunately, in some cases Foxit would not run as expected,eventhough other windows apps did.
After looking around a bit, I think I may have found a universal setting that allows multiple page printing. It seems the print manager has the required settings. But, since the print manager is not launched automatically when the job is sent to the printer, and also since the job shows up only after it has been sent to the printer from the application, using the feature is a tricky affair, if it works at all - much like the rest of Linux!
The modus operandi : First launch the print manager, in Opensuse it is under the Utilities, Printing menu in the Start menu. Then send the file to print. This will cause the job to show up in the print manager.Here right click on the job and check its properties. In the properties window the number of pages per sheet can be set - 4 being the max.
While this feature exists, I have been unable to use it since the modified settings would not be accepted as the root username and password would be rejected. Probably some fine tuning is required.


Update : 24.11.08

A thorough ferretting through the Print options revealed that the print manager allows printing upto 4 pages per page. This option is available while printing any page. I had previously downloaded Adobe's bloated pdf reader to get this facility, since foxit in wine did not work and Kpdf did not have multiple page printing. This latest find is a significant help.

Thursday, September 25, 2008

Do as I say, don't do as I Do.

The Opensuse DVD seemed to have more relevant apps that I had initially observed. On closer inspection of the rpm folder I found the Smart App manager, the unrar application and the Opera browser.
All of the three were among the first apps that I downloaded after the installation. One point needs to be highlighted, these apps do not appear during the installation because the default selection filter is set as "Patterns". This need to be changed to "Package Groups" to reveal a better grouping of apps.

As I had myself mentioned a few posts back, one of the first steps should be to browse through the app list in the app manager, before commencing online downloads.

Saturday, September 20, 2008

Opensuse 10.3 DVD

The biggest fear when downloading the 4GB+ iso image was data corruption. But, thanks to the data verification built into the BT protocol, the repeated interruptions did not create problems. The installation was smooth. The biggest difference between the CD iso and the DVD iso was the inclusion of many server modules that I would not have needed anyway - so I am thinking this is a huge waste of time.
Further confirming this feeling was the wine installation which for some reason would not work properly. The package is there on the DVD, unlike FC8, but after installing the package, I am unable to launch the exe.. Since Opera and Proxomitron are central to my browsing experience, this is a major drawback.
Intersting is the fact that Realplayer 10 is included in the DVD. Thinking that atleast this package would come with the required codecs, like VLC media player (which is not included), I installed RP10 too. But it would not play AVI files, like the other onboard players like Kaffiene and 3 more media players. This makes Opensuse inclusion of RP 10 look inane.

I may fall back on the live CD of opensuse and install it to the hard disk from there, since past experience has shown that atleast in that case Wine was working properly.

Update:
It seems the installation type makes a difference to the final system health. Since Wine was not usable, I reinstalled the OS, this time adding Wine right at the installation phase. Now Wine is working fine.

Tuesday, September 16, 2008

FC 8

Didn't have any other DVD, so decided to install FC8.
FC8 was irritating for the following reasons :
1. There is no control panel, just a System menu to manage the hardware. This is less userfriendly.
2. fdisk command does not exist.
3. I thought that the larger installation media would include many apps that I would otherwise have had to download, but Wine was missing - a glaring omission.
4. Only gnome and KDE as window managers, XFCE was a worthy inclusion.
5. No easy way to manage partitions. Unlike some other root level apps that can be launched from the menu by the user - and the root password subsequently provided, the disk management menu will not launch at all. Combined with the failure of fdisk, mounting partitions was an uphill task.
Another annoyance, no K3B.

Since I have been in Opensuse 10.3 for the longest time, I am currently downloading the DVD image of the same. Hopefully, it will come with Wine.

Wednesday, September 10, 2008

Games with ntfsresize

Resizing with the GUI was a breeze, but for some reason I felt this overwhelming urge to try using the ntfsresize tool to do the same job.
Since Ntfsresize will not proceed with a "flagged" NTFS partition, I had to boot into XP to get the chkdsk /f routine done. Ntfsresize is a deep tool which can first estimate the amount of reducing that can be done, and then do it without really writing stuff to the disk, and then finally doing the whole hog.
ntfsresize -fi /dev/sda will give the reducable size of the partition.
ntfsresize /dev/sda -n -s XXXXM will do a dry run of the process of reducing the parition to XXXX MB
And without the -n option the actual process is launched.
The -n option is a good way to check if there would be any hiccups during the process.
The major issue with ntfsresize is that it does not actually make changes in the partition table as well. This means that while the partition would have effectively been reduced by transferring data existing at the end of the partition to other areas, and updating the MFT to reflect the changes in the addresses, the Parition table itself still shows the old size.
Therefore after the process is completed, ntfsresize suggests ways to modify the partition table to reflect the new size. These instructions are important, and it is best to write them down before proceeding. One critical area which could create problems is in the way fdisk displays partition sizes by default - as cylinders. ntfsresize explicity warns the user to change this behaviour of fdisk for a successfull completion of the resize. Fdisk needs to be set to display partition information in sectors.
Once this is done, the old partition can be deleted, and a new one created which starts at the same sector as the older parition. Ofcourse the final size has to be more than the figure used in the ntfsresize command.
The problem with fdisk is that it renames paritions without informing the user, and this causes a lot of heartache since the system is rendered non bootable if the partition names and positions are not in sync. To rectify the renaming, again fdisk needs to be resorted to, and since the system is not booting this means getting a live CD for this purpose.
The final word is that this is a rare instance where the GUI proves to be a better option than the command line.

Monday, August 25, 2008

NTFS issues

For some reason I have been having repeated corruptions of NTFS partitions used under Linux. Unlike FAT32 partitions there is no fool proof way to check for NTFs volumes data corruption in Linux. ntfsresize which is the recommended tool itself requests the use of chkdsk under windows to rectify errors. This ofcourse requires a windows installation. Since the virtob virus still manages to infect files, I am loathe to return to XP.
The last straw was the corruption of the MFT tables, which could not be recitified by chkdsk and required testdisk. So I have formatted all NTFS partitions and converted them into FAT32 for lesser headaches.

Saturday, August 2, 2008

More commands

There seems to be no easy way to find the system's ip or to renew the ip address by using the GUI. Two commands to use :

dhclient -r : to renew ip address same as ipconfig /renew
ifconfig : displays net connection details.

Blogged with Flock

Sunday, July 27, 2008

High resource Usage in Opensuse 10.3

Probably the biggest complaint that remains is the high resource utilisation of Opensuse 10.3. I find that compared to Windows, Opensuse is quite a resource hog. KDE which I use could be the reason, and less intensive GUI's could reduce RAM usage at the cost of usability. In a system with 224 MB RAM, I find that just about 5 MB is left unused after a couple of browsers are loaded. And the constant hard disk access for the swapping takes its toll on the hard disk and power consumption. The solution may be to add more RAM.

Partition tools : (thinking) out of the box

After a round of playing with partitions - both NTFS and EXT2 - I have come to the conclusion that as far as partition tools related to Windows OS is concerned, one needs to think "Linux" to get the best free choices.
The default disk manager does not do much in Windows, and unlike the more thoughtful Linux counterparts, does not allow the user a second chance before applying changes. So if you are confronted with a situation other than creating and deleting partitions, Linux offers a better choice of tools - full blown, GUI supported tools.
While one can use fdisk to delete and create partitions, the real ace is Gparted. This tool not only can create and delete partitions, it can also resize them - including Windows partitions. And making it truely accessibly is the fact that Puppylinux - a 80 MB Linux distro that is so accommodating and flexible to fit and boot from any medium - includes this great tool.

My problem involved a partition that was too small to fit a linux distro. Assuming that a 2 GB partition would be adequate for Opensuse 10.3, I installed the OS to that partition, after removing some unwanted apps before installation. But post installation, I was regularly reminded that I had less than 1% of the disk free. The only solution was to shorten the adjoining NTFS partition and claim more space. The inbuilt partition tool in Opensuse managed this quite admirably. I reduced the NTFS partition by 500 MB and created a new partition to mount /home/. The resizing of the NTFS paritition also sets a chkdsk operation on the next Windows boot. But this did not aleviate the problem of reduced space to install apps - most notably VLC since Opensuse is quite multimedia handicapped out of the box. The second idea was to fuse the newly created /home/ partition with the original partition containing the rest of the installation. To my surprise I found that the inbuilt partition tool in Opensuse did not do expansion -apparently resizing only meant reducing in Opensuse lingo.
My search for partition expansion tools took me to ntfsresize. This command line tool seemed capable of helping me but unlike most of Linux tools did not have a comprehensive documentation which make it unattractive. But ntfsresize is a capable tool that can check NTFS partitions for errors. Unlike fsck.ntfs that also exists, ntfsresize is a resizing tool that actually tests for volume consistency as a step to checking the amount of free space available on that drive (as a precursor to finding the smallest possible size it can be squeezed to). ntfsresize -fi /dev/sdx.
I recalled Puppylinux's partition tool and decided to test it's expansion skills since it was the fastest way I could boot into Linux, since I had already installed it on a USB Drive (by the way, after installing Puppy linux, the drive is rendered unsuable in Windows eventhough Puppy creates a 128 MB FAT partition on the drive. Windows asks whether the drive needs to be formatted when it is plugged in.
Gparted offers all the options to manipulate a parition - expand, reduce, delete, create etc. While it warns to backup the data before starting the partition manipulation, I overlooked it. The /home partition was deleted, the original 2 GB partition was then expanded to include the free space. It may have taken about 15 mins in all.

Wednesday, July 23, 2008

Getting the hang of it

I believe the journey of a Windows user into the Linux world would be similar for everyone. In my case, after starting off two months back, today I find myself being able to do most of the stuff that I want to do as easily as I could in Windows. Most significantly, I do not feel too tied down by the shortcomings of the GUI and do not mind relying on the commands to overcome these.
Some of the commands that I think a Linux user will need on a daily basis :

df -h: shows disk usage.
ntfs-3g : it is only required if the user still has data in NTFS partitions. This is used to allow writing into such partitions. There is a GUI for this tool, but in my experience using the GUI can be a pain. The menu will not launch the tool, and using the GUI produces results that are not always predictable. The command line is easier and can be launched as and when required.
dir/ls : both list folder contents. But the results are different and some distros do not recognise the dir command. ls is better since it is able to properly name filenames with spaces in them (with a "\" inserted).
[tab]: this is a sanity tool. When confronted with filenames like "filename.xxx-xx.xx.xx", a press of this button will autocomplete the filename freeing the user the headache of typing out the long list of numbers. Just using file[tab] is enough (unless similar named files also exist).
less : strangely named command that restricts the screen output to one page length. Especially useful when dealing with ls/dir output in a command prompt not launched from within KDE.

Sunday, July 20, 2008

Opensuse revisited

One major reason I ventured into Puppy linux territory was because I wanted to install Linux on a partition that was about 1.5 GB. Since I could not recall seeing any major distro offering a program selection menu in the live CD prior to install, I was lost for a means to reduce the installation size to fit into that partition. Hence a small distro like Puppy was turned to.

A chance discovery in the course of reinstalling Opensuse 10.3 was that there was an option to choose packages - though this was NOT a live CD. Ofcourse, I faced the issue of reinstalling Opensuse because the PC Linux installation would not allow applications to be uninstalled (RPM database not accessible error) and Kopete also crashed. So, Opensuse 10.3 again proved a better choice.

Saturday, June 28, 2008

NOP 4 aka the leaner Puppy

Puppy at 80 MB is lean enough. But the flab in the form of Abiword and Seamonkey can be a deal breaker especially since the usual repository route to adding apps is not an attractive option.
NOP is a puppy derivative, called Puplet, that does away with these two apps, brings in Opera and also changes the default file manager. With the original file manager I had a tough time figuring out a way to save files on the Desktop since there was no folder with that name. A visit to the puppy forum revealed that the file manager stored the Desktop contents a bit differently and the entries in some XML file needed to be modified. Thunar which is the file manager in NOP, since it uses a different Windows Manager as well, was already familiar since Belenix sported it.
Overall NOP is more appealing than Puppy. It retains all the good points of Puppy - the hardware configuration and extremely helpful tips are still there - and add a few thoughful touches of its own.

I think I'll have NOP for a long time to come. Especially since it can be run off the thumb drive, making it more convenient and faster than the live CD route. I still have to figure out how to load Openoffice onto it, and that would probably be the last touch needed to finish this excellent distro. The ability to "remaster" the installation is also a god send, since a backup on the CD can be retained.
There is a lot that Puppy can teach the other distros.

Thursday, June 26, 2008

Bootable USB, finally

With the thumb drive rendered undetected after the last attempt using Kubuntu, I had to perform a low level format using the tool from hddguru.com. Since the tool is only for Windows, and I could not run it successfully in Wine, I had to go back to a system running XP to do the honours. Post low level format, as promised by HDDguru, the drive was back in action.

Since DSL was out of the race, I focussed on pendrivelinux itself, next. This was a 450 MB download, and no torrents were active at the time. I tried downloading it from the site, but got less than satisfactory download speeds. So rather than wait for the file to download I looked around for other options.

Puppylinux was the other distro that was hailed for its size - 90 MB and it also seemed to have a dedicated tool for installing to the USB drive. Downloaded and wrote a Live CD and booted into it.

Puppy inspite its size is a giant killer. A trendsetter of sorts, Puppy actually has meaningful user menu options that guide even the novice user through many esoteric steps through the booting process. It allows the user to select the graphics options, even offering a backup plan in case X failed. I was quite impressed with the userfriendliness of the distro. Unlike many other more popular distros I tested, Puppy was successful in loading the GUI in the native resolution.
It is more visually appealing than DSL, and has the SeaMonkey application suite compared to DSL's konqueror.
As promised ther was a tool to install to the Flash drive. Here too there are descriptive messages that hand hold the user through the entire process making it difficult to get something wrong. The first attempt failed, and on the second attempt I chose a different option suggested by Puppy. This time I was able to get a working bootable flash drive. The difference in the approaches was that in the first method the entire flash drive was formatted in ext2 and used, whereas in the second option the drive is divided into two partitions with one of them being a FAT16 file type for increased compatibility with Motherboard bioses.

Puppy was quite capable and I was taken aback by the extreme ease with which it installed my printer - while with opensuse I had to download the drivers. The wizard was HTML driven and hence devoid of the usual gloss, but it gets the job done quite well.

The drawbacks of Puppy which franky are heartbreaking were the absence of any really extensive repository. Or it could also be that I was unable to use it properly. The list of applications available are quite limited, and I could not find Openoffice in it. While there are links to the larger repositories, for some reason I am unable to search for an application name, and only those apps that are already available in the distro are displayed. Further fiddling is required.

Monday, June 23, 2008

Side Effects of Linux tools

This behaviour of Linux tools reminds me of Allopathic drugs (in contrast to other medical systems - Ayurvedic, Homeo etc). Allopathic drugs are all about balancing the benefits with the deleterious side effects that invariably occur due to the use.
The Linux tool in question is NTFS-3G. I had to use it to be able to access some NTFS drives. NTFS-3G makes entries in the Fstab, so any drive that is plugged in is recognised as NTFS drives and the OS tries to load it according to those parameters set by the tool.
In my case since the external drive was sda1 and sda2, while plugging in any other flash drive causes sda1 to be mounted as an NTFS drive causing errors. The solution was to delete the NTFS-3G created entries in the fstab and replugging the thumb drive.
I wonder if NTFS-3G can be set not to modify the fstab.

Bootable USB distro disastro

The quest for a distro that could be booted off the USB flash drive took a turn for the worse.
While the first attempt failed, trying to get Knoppix to boot off the drive, the second attempt with DSL was successful. Partly because there was a specific tool to accomplish this task, and all I had to do was watch the process after launching it.
After booting with the flash drive I concluded that the GUI was too basic for my taste, and revisited pendrivelinux.com for more options.
Kubuntu was the next item on the list. This too I did as told, and here is where things went awry. After configuring the drive, on reboot, the system would not proceed beyond the POST beep. I would get the beep, then the system would crash. The only way to get the system to proceed after the post beep was to remove the thumb drive.
I tried checking whether the contents of the drive were lost, but no the partitions were there as was the data. I tried deleting the partition, but that too did not improve the situation.
I am guessing that the Flash drive's boot sector has been damaged, but even in that case how could it crash the system - even without being able to access the BIOS to check if altering any settings would help.
Fiddling some more with hope.

Opensuse Automount Option

The inability to unmount a partition in Opensuse was begining to nag. On the search for a way to create a bootable Flash drive installation, I came across the procedure to do so.
The drives can be unmounted through a circuitous way which requires launching the file manager, and accessing the System tab in the left most column. There all the partitions that have been mounted are displayed. Access the Properties of the relevant partition and the option to unmount is displayed there. Here one can also manage the auto mounting behaviour of Opensuse.

By the way, the initial attempt at creating a bootable flash drive failed with Knoppix 5, and instructions from pendrivelinux.com. I recall Damn Small Linux had an explicit option to install to USB, and I am hopeful that will do the trick.

NTFS-3G

This is the module/app that is needed to enable accessing NTFS partitions.
In Opensuse while I could read these partitions, even the root account was not permitted to write into the partition. That was when I went hunting for ntfs related apps in the app manager.
To my surprise I found that ntfs-3g was already installed, though I have no recollection of installing it. So, probably, it is preinstalled in Opensuse. The other crucial piece of the ntfs family was the ntfs-config package which was the gui to control ntfs-3g's behaviour. Without it, I am sure ntfs-3g could be manipulated from the command line.
With ntfs-config installed, it is much easier to set options about the ntfs partitions in the system, and control which of them have R/W access to it.
In the first instance, ntfs-config would present an error that the ntfs partition was busy and so the modifications could not be made. Since mine was an external drive, plugging the drive into the USB slot would invariably mount the partitions. This was an issue that I found irritating, since there was no way to unmount the partition.
In my case, the partition was loaded under /media/New Volume which could be accessed from the file manager. With the partition editor, I could not unmount the parition, something that I frequently did in PCLinux. So under the command prompt, I tried running the umount /media/New Volume command, and got an error that "media/New"was not found. Apparently the space in the loaded name was the issue, which is quite strange. Looking at the partition tool found that "New Volume" was shown as "New\40%Volume", but replacing this in the umount command also did not work.

With ntfs-config (run this command) I could set the mount location manually quite easily. The mount option had to be "forced" since otherwise it would give an error.

The nag that remains is that I need to do this everytime the system is booted and also everytime the drive is plugged it. For some reason, Opensuse reverts to the older "New Volume" nomenclature eventhough the fstab entries are modified, and this time I get a permission denied message which prevented even viewing the contents.

Open Sesame Opensuse 11

One important point that lead me to abandon PC Linux was the fact that eventhough it was based on Mandriva, it did not use the same repositories. This is a major peeve for me since having different repositories and package nomenclature causes fragmentation of the linux family. Since Mandriva is more entrenched than PCLinux, and the latter owes its genesis to the former, the least that PCLinux could have done was to retain package compatibility. An analogy that springs to mind is Mint Linux and Ubuntu. While Mint is based on Ubuntu, it also retains package compatibility so any app downloaded for Ubuntu can also be used for Mint. By sharing the repositories and package standard, Mint is freed from the need to convert packages and also maintain repositories. These are major resource hoggers, especially if you are a small team (as is in the case with most distros). By splitting the Mandriva family, PCLinux has created another area that would consume resources which could have been used to better the core product.

Got the OPensuse 11 live CD with KDE4. And it works as the previous edition (10.3), which was quite good itself. The KDE4 does add a lot of additional GUI features, most of which I do not like, but one significant area of improvement is the ability to use the Realtek gigabit LAN chip onboard the motherboard. This, I assume, is because the Linux Kernel is newer and has the drivers bundled. The lan chip proved to be too slippery for all the older distros - except Belenix based on Opensolaris.

There are no conspicuous changes that immediately catch the eye. Most menu options remain the same. The Widget placeholder (on the top right corner of the screen) is new, but I do not find any need for it. The Dolphin File manager is new. As is the plugged media indicator in the system tray.

Sunday, June 22, 2008

Best of PCLinux

After spending considerable time with PCLinux, I have decided to replace it. Two biggest drawbacks of PCLinuxOS : ever crashing synaptic (the application manager), and inability to detect external USB drive.
Both were becoming issues that I could not ignore anymore. The external USB drive had no problems with Opensuse or Windows.

PCLinux still rates as the most user friendly distro. Some features that are worth mentioning :
1. The Partition tool : unlike the one seen in Opensuse, this tool offers greater control over the mounting and unmounting process; is much more informative with regard to the relative location of each partition. This is a tool that deserves to be standardised across as distros.

2. The Application Manager : unlike Opensuse, where the repositories need to be configured discretely, Synaptic offers a single interface where one can configure repositories as well as install/uninstall apps. It is also much easier to modify the behaviour of the manager to retain downloaded rpms for later use. This is another tool that deserves to be standardised across all distros.

3. The hardware GUI features are also quite good, but here Opensuse is an equal. Hardware GUI refers to the presence of GUI tools to manipulate hardware aspects like Graphics card monitor, network card etc.

PCLinux 2008 is already available, though I have not tested it yet. So far in the latest crop of distros I have sampled Kubuntu 8.04 and Fedora 9 and both fall significantly short in user friendliness, when compared to Opensuse 11, which is what I intend to use as the default. Opensuse 10.3 which I have begun using increasingly is more stable in the app. management field, and for the time being that is more important that the other advantages that PC Linux offers.

Saturday, June 7, 2008

The SMART way to manage apps

The default Opensuse 10.3 app manager, not sure what it is named - YAST2?, is great at installing and uninstalling apps. But, recyclability is completely ignored. Downloaded rpms are deleted once the installation is complete. And as I found at linuxquestions.org, thanks to google01103, there seems to be no way to modify this behaviour. What this incident also showed me was that basic tools of Linux also are modified across distros, since the help entries quoted by google01103 did not exist on my PC, and neither did the command switches for the rpm command. Very strange.

Google01103 also mentioned an alternative app manager (I was ignorant about the ability to use different app managers in one distro), SMART. SMART is a package that can be installed from YAST2. Since I was not keen on using SMART from the command line, I also selected SMART-GUI package for installation. About 10 MB was downloaded and installed, including dependencies, and after that I could use SMART. To launch it, the command "SMART --GUI" , or the SMART entry under the Configuration menu can be used (though for some reason this stops with a "-gui command not found" error).

As the SMART manual at labix.org mentioned, the default rpm deleting behaviour can be modified with a "smart config --set remove-packages=false" command. To test this I installed a media player PIA. And as promised, the downloaded rpms were located at /var/lib/smart/packages (unfortunately, PIA itself did not make an appearance in any menu, but running the pam command gave the usage options). Interface wise SMART is leaner than YAST2, there seems to be no way to control repositories, so I assume the YAST interface is to be used to modify sources. The first step would be to refresh the cache since otherwise the app list in the repositories are not reflected, and searches end without result.

One lesson which I learnt, was the relevance of the point I made some posts back, that one of the first steps that an user to do after installing a distro is wade through the app list in the distro and try to install all relevant packages before starting out. This saves a lot of time and effort (and bandwidth) later.

Package recyclability is important to avoid redundant downloading of packages to install the same app in different PCs with the same distro. It would seem quite a significant oversight on Opensuse's part. I think, PClinux has such a facility (or was it Mandriva?).

Thursday, June 5, 2008

Foxit

An excellent PDF viewer, albeit only for Windows. One reason to have Foxit is because the internal PDF viewer in KDE cannot handle multiple page printouts - printing more than one page of the document on a single A4 sheet.
Foxit on Wine is the solution.
The hiccup is when trying to use Foxit as the default PDF viewer. It gives an error stating the command line usage options.

Update : 27.6.08
For some reason some documents are not printed correctly in Foxit - the text appears either inverted or as bars. Serendipitous discovery : KPDF the inbuilt PDF viewer DOES handle multipage printouts. Requires eagle eye to get to the option.

Wednesday, June 4, 2008

Reading RARs

By default RAR format archives cannot be handled by any distro. In Opnesuse, when trying to open with Ark, the message received was that "rar was not found in the path". The solution was to install the unrar package with the application manager. With this installed, I could open RAR archives.

Monday, June 2, 2008

Trusty Testdisk

I have had the honour of using testdisk many times in Windows. An excellent tool to restore partition tables and deal with other issues that can occur in the critical sections of a partition, Testdisk is god-incarnate.

I found out that it can also play saviour in Linux, thanks to its multiplatform nature.

The XP installation, previously mentioned, being on the C: drive could be easily included in the grub menu by adding "chainloader +1" and "makeactive" terms, to the grub menu. but since C: drive being the only primary partition on the drive, I wanted to shift XP to another partition. Post installation, I was confronted with a "disk error" message.

Reverting back to the grub menu (since the reinstallation again wiped grub) I loaded PCLinux, and did an fsck on the drive. fsck indicated that the partition table differed from its backup and offered to restore the backup. After permitting this, I reran fsck, and was dismayed to find that the restoring had not succeeded. This is when I remembered test disk.

Since PCLinux had consistently failed to install any new program through the application manager (always ending with an "cannot access rpm database" error), I loaded OPensuse to try to install Testdisk. First I downloaded the RPM (http://www.cgsecurity.org/wiki/TestDisk_Download) and double clicked on it. The application manager flashed briefly and then nothing. Then I tried using the application manager to include testdisk from the repositories. On doing a search I discovered that testdisk was already installed.

How can one be sure that an application is installed, if it does not make an appearance in any menu? Run the command from the console. I did this and was presented with the familiar testdisk textbased interface. A little browsing was needed to get to the required menu, on running the tool to check the parition, it reported that the original and backup differed. Then I restored the backup, and reran the tool to confirm. This time the backup was successfully restore.

On a reboot and reentering the grub menu, I was able to boot into the fresh XP installation.

Saturday, May 31, 2008

Regrowing Grub

The scanning need being important I had to revert to XP. Post install, ofcourse, the grub menu was replaced by XP's boot menu.
The first procedure that I tried was to use a live CD to try to recreate the lost Grub. I recalled seeing such an option in one of the distros. Probably Sabayon. Since FC8 and Kubuntu 8.04 were the only ones that I had at that moment, and neither had the required boot option, I searched online for a solution.
One solution was to use the grub-install command in the Linux rescue mode. This mode is available in most live distro's, though it was absent in Kubuntu. Usually adding "linux-rescue" to the boot option is also adequate, but Kubuntu did not allow changing boot options either. The webpages providing the solution mentioned that the rescue mode would mount the linux partition under mnt/sysimage, and from there the grub-install command from the boot/grub/directory could be accessed. Unfortunately, the FC8 rescue attempt failed with the error that the installation could not be mounted. Without that the grub-install command would not work since the paths were not accessible. So running the command gave a /boot/ path not found error.

More hunting revealed an alternative way. This involved using the setup command after running grub. This too required a Live distro and the rescue mode. At the command prompt, run the grub command, and you get the grub prompt.
There run "find /boot/grub/stage1", to find the path to the directory. This will return the partitions containing the said folder. This would be in the format (hd0,1).
With this info run the root command to locate the menu files. "root (hd0,1)"
The run the setup command to reinstall grub. The format is "setup (hd0)".

After a reboot, I found that grub was installed, but I did not see the menu, just the grub prompt. So I looked around a bit in the grub help, and found the configfile option. Then at the grub prompt, I entered configfile /boot/grub/menu.lst" and voila the menu appeared. After loading the GUI ( I was on PCLinux) I redid the grub installation from the control panel. Now all installations are back to normal, including the new XP.

Tuesday, May 27, 2008

Scanning snafu

Canon is adamant with regard to releasing Linux drivers. With a Canoscan 3000ex scanner, I am left in the lurch since there are no drivers for it. During my online searches, I came across a forum where someone suggested that using the HP laserjet driver seems to work. While that suggestion seemed to work for one of the readers, the lack of information on how he managed to use the "printer" to scan left this an unsolved riddle. So far I have been unable to use the scanner, even with the HP driver installed.

Shame on Canon. And more appalling is that it is not a small company short on resources to create linux drivers.

Monday, May 26, 2008

Instant Messaging on Linux

One important area where Linux is significantly handicapped is this. A decent IM client which allows voice, text, video streams is missing.
Shame on yahoo and ICQ (MSN can be forgiven for overlooking Linux, and google only has text which can be accessed just as well with the web browser).
Kopete the IM client in KDE seems to be the best option. It supports multiprotocol IM, with yahoo, msn, ICQ and a few other protocols being supported. The support though is rudimentary with many features of the native clients missing (as is also the case with Windows multiprotocol clients like Trillian).
The question that needs to be asked is what prevents major IM services like yahoo and icq from offering a full blown linux client. After all they make money by displaying ads and the more the clients used the greater their earning potential.

Sunday, May 18, 2008

FC 9 - A Step Back

FC9 which was released probably a week back would be expected to have support for the latest harware. But, for some reason, the X server could not handle the Geforce 7025 onboard graphics. This was seen in almost every other distro I tried so far as well, which leads me to conclude that FC9 is not a step ahead.
On the other system with the ATI Radeon 200 onboard graphics, no distro had faced a problem, but FC9 did. Though X loaded this time, the taskbar did not, so I was unable to launch any programs or check the menu options. Since the live distro had these issues, installing it to the hard disk is not planned.

Thursday, May 1, 2008

Time Travel with Linux

There used to be a time when computer users needed to be qualified to use it. Most older computers were operated by technicians who had the required knowledge to program instructions that had to be sent to the computer.
Thanks to Linux you get a chance to experience the old days. Linux offers a comfy experience to a narrow band of users - those whose PCs are using chipsets that have their drivers included in Linux, and who's computing needs are satisfied by the included applications. Though the band is narrow, it includes a lot of people. Stray a bit from the narrow band, and you are in a different era where to survive you need programming skills and a lot of patience to use the hardware optimally. Delinquents, in the Linux world, include those on systems with chipsets not supported by Linux, and those who are using customised software or games meant only for other OS.

Tuesday, April 29, 2008

The Rationale of Linux.

After my amateurish attempts at trying to get a "enjoyable" Linux installation working, I have begun to question the reasons for trying to do so.
As a single PC owner, it makes little sense to try to tackle the issue of shoe horning Linux with the hardware. The problems with driver installation, and Wine installation (for gaming, since games are an important use any PC will be put to) are simply too challenging for most people. The plethora of live distros seem to be a solution, since a user has the option to go about trying out different live distros to see if the drivers are all proper and the Wine installation is error free. But even then the downloaded content remains incompatible amongst distros so a lot of downloading is needed. For those not on a broadband connection, this eclecticism is not an option. In my case, PCLinux offered the best compatibility with hardware, and also the right amount of "administrative freedom", but I have not been able to install a single application without the application manager crashing with a "rpm database not available" error. In those distros where I could get Wine installed, the GUIs to most of the routine tasks were missing.
The cheapest Windows option that can address these issues will cost me about Rs. 4000 (Windows XP Home OEM). The added benefit of doing Windows is also that any custom hardware can also be used without much heartache, like plugging in a webcam.

But, seen from the perspective of a person who is incharge of many systems that are to be used in an official (aka no fun during working hours) environment, Linux is a god send. Here, since the driver issues need to be addressed, it helps if all the systems are homogeneous. Testing out a few live distros hopefully will offer the most compatible option, and that just needs to be replicated on all systems. The cost saving is substantial, since at Rs. 4000 per PC, in a place that has 10 PCs, the cost savings just multiply. The added benefit is the inablitity to load up the PC with irrelevant programs. Since it is common to find many office PCs loaded with games and other software which can bog down the system, Linux's inability to handle such programs is a boon. Manhours spent in unproductive entertainment via games are reduced, which is also a saving in disguise.

Sunday, April 27, 2008

Transmission

FC8 opened the Transmission gates for me. Transmission is an extremely lightweight torrent client that is quite deep. Compared to the overhead of Azureus and the clunkiness of Ktorrent, Transmission is a featherweight torrent handler. It has most of the required options available with a host of statistics on display. Very intuitive to use as well.

After yuck, Transmission is a face saver for FC. I dare say some of the torrents that seem to get stuck in Azureus found a fresh lease of life in T. Though this could be all the positive energy talking.

Update:
Tansmission has a nasty habit of amnesia. On restarting the app, it forgets the download locations of the torrents not saved to the default download location. This is rather strange.

Application Management in FC8 - yuck

They say that application management in FC is handled by yum - type it in the console to launch the routine.
But, I launched it the GUI way. For newbies, the routine is a bit puzzling. Handling a simple uninstallation routine for example cannot go on without having net access. Only after a net access is not found is the option to select repositories offered.

Since I was looking for Wine, and this package was not offered even in the DVD (which is a shame) I had enabled the two online repositories already selected - fedora and fedora updates. The routine started accessing the online repositories, which I presumed was for getting the program lists. But half an hour of "retrieving software information" and over 150 MB of downloaded content later, the program was still downloading stuff. I lost my patience and killed the application.
Ofcourse I could not launch it again since a message that some other routine is already accessing it came up preventing it use.
A restart later, I launched the app. Again without a net connection I was able to get to the repository list. Here I disabled all options, including the installation media. Now I could get the application list that I was familiar with after seeing it in other distros. Then I enabled just one online repository. This time the downloading was brief, and a few MBs and seconds later, I could search for the Wine package. Unlike a few other application managers I have met, this one does not mention download sizes at all. There is no way one can find size information of existing programs, so how much space will be freed on uninstalling it also cannot be found.

I managed to install wine, which proceeded, thankfully, uneventfully.

Update :
The experience with yuck repeated itself, so I am sure that it is not a one off incident. On installing FC8 on a second PC, and running the application manager, here too the initial attempt seems to take too long "retreiving/reading application list". On cancelling the attempt, and restarting it, things were much faster. Wine installed well here too.

SIOCSIFFLAGS

Ofcourse it is not supposed to make sense, if it did it would not be a linux distro that we would be dealing with! If you can accomodate Dolphin, synaptic, atun then why not SIOCSIFFLAGS.

It is an error, that crops up when trying to boot FC8 on the Geforce 7025 motherboard. And since it is immediately preceeded by "eth0" I can safely conclude that it is the Realtek Gigabit LAN that is causing it. Unlike the other distros that managed to boot up well enough, FC8 stumbled even there.

The reason I returned to FC8 was because I got the DVD, without having to download it. Since Wine is a must have, and PC linux is having problems with it, I was hoping that FC8 with its popularity would offer fewer challenges. Things are not looking sunny after this.

The solution could lie in disabling the ETH interface from being started at boot time. To prevent this changes needed to be made in the /etc/sysconfig/network-scripts/ifgcfg-eth0 file.

Compiling the Kernel

It is one of the rites of passage. I have no clue why I bothered, but it was something that I wanted to do. Theoretically, having a custom compiled kernel ensures maximal compatibility with the hardware, this step is also necessitated if any new hardware is being used whose drivers are not supported innately by the kernel.
So I downloaded the latest kernel from the kernel.org site. First I ended with a 9 MB bz2 compressed file, and I was taken aback by the size. I was expecting a larger file to be the center of a revolutionary movement. After getting the instruction on compiling the kernel from different sources I got down to doing it.
Before compiling, one needs the tools which are mostly not available in the Live CD distro in most cases. The tools needed are gcc and make. For some reason, probably during my earlier attempt to get the driver for the Realtek Gigabit LAn, I already had the files installed, which was revealed by looking at the application management window.
The first command to put in is make menuconfig. This is supposed to offer the user a list of parameters that can be altered before the compiling can begin. In my case this returned an error that the directions were missing. Further looking around revealed the presence of two types of souce files, the entire source and the patch source. A patch source merely contains the differences between the two kernels and hence is of a smaller size. The actual latest kernel weighed in at over 50 MB.
With the package extracted, on running the make menuconfig command the expected menu popped up. In it there were many options that could be enabled or disabled. Since I was using AMD Athlon and nVidia chipset, I disabled all entries that related to Intel CPUs and other chipset manufacturers. I played around with other options as well - irrelevant stuff like bluetooth and wireless support was also disabled.
The next step involved using the make modules command. And as I feared here I was presented with an error, which I did not bother investigating.

Clobbering Kubuntu

For some unknown reason I am unable to visit any blogspot.com address since a few days. Only today did I remember that I could post through blogger.com without having to visit blogspot.com.

In the meantime I downloaded Kubuntu 8.04 with the KDE4 windows manager. Besides a large dose of visual candy, Kubuntu remains incorrigible.
There still is no way to access any graphical interface to install-uninstall programs, change the desktop resolution, mount-unmount partitions selectively. I wonder what is the reasoning behind this continued aloofness.

KDE4 looks quite pleasing in the all black mode, and rounded edges. The problem is that on a 256 MB machine this is not a practical option. While using the Live CD, the slick GUI consumed so much resources that all the swapping that was necessitated as a result left the user waiting for things to happen. I wish every distro also offered the equivalent of the simple tool in Windows, where a single setting to set the installation for Performance would impact all GUI aspects.

While not adding anything to improve a user's experience, Kubuntu did change the startmenu. This addition is similar to the Opensuse 10.3 start menu with the menus opening up in the same menu. I found this feature user hostile then too. This ofcourse could be changed in OPensuse, and hopefully Kubuntu allows it too. I did not see a Firefox icon, with Konqueror being the sole browser. The File manager, Dolphin which I liked a lot in Kubuntu 7.04 is still here. The all important button that I missed was "Open as root". It is probably hidden elsewhere.

I did not spend as much time as I would have liked to. The sluggishness was getting on my nerves.

Eventhough it was the latest distro, hopefully having the latest kernel and all, it did not get the graphics settings right, and I was left with a 800X 600 desktop on the geforce 7025 motherboard. This was disappointing, indeed.

In conclusion, a CD has been wasted. This experience has prompted me to get a CD RW. I will not be installing it on a hard disk.

Monday, April 21, 2008

Who touched my fstab?

Confirming the whimsical nature of Linux, today morning I was unable to boot the system. Since it is not possible to scroll back through the error messages, I had to reboot a few times and use the scroll lock button to figure out what the problem was.
Apparently, the entry for / in fstab was missing! Without the root partition I was getting a long list of permission denied errors.
Thinking this may because of some data corruption, since it is difficult to imagine a particular line missing from a file overnight, I tried booting into the Opensuse installation that was also on the same drive. In Opensuse I got a "su" error, meaning that I was unable to login as root and use any of the tools limited to su, like fsck or accessing the disk partitioner to figure out how the partitions were labelled. As already mentioned in one of my posts, hda and sda are used depending on the distro used. Opensuse used sda while PC linux used hda to refer to the master primary hard disk. With OPensuse also acting dilinquent, I relied on a live cd to boot up.

I first did a fsck on the partition, and it did find some errors. Thinking this would solve the problem, I rebooted after the check. But the same errors were showing up. I also observed that even though the root partition was missing, the other partitions were being checked and tagged as clean.
Another live CD boot, and I investigated the fstab file in the relevant partition, and shockingly the entries for the root and swap partitions were missing. I am not sure how this happened. The last time I edited the fstab was probably two days back when I had mounted a few partitions and allowed the fstab to be updated. During that process, the root parition was not selected, since it was already mounted and did not need a mount point. Same with the case with the swap partition. I doubt if this could have overwritten the root and swap partition information in the fstab.

This remains a mystery. But, it confirms the claim that Linux is endowed with human qualities like eccentricity and impulsiveness.

Saturday, April 19, 2008

PC Linux Migration problems

The shift from the Geforce 6100 motherboard to the Geforce 7025 motherboard had been hard on FC and PC linux. The other distros atleast managed to bring up the console. In PC Linux's case the failure was especially hard hitting since I had been using it regularly.
The problem was that the system would crash soon after the the boot option was selected. Using the safe boot mode and frame buffer mode did not improve matters. My belief that Linux manages hardware changes much better than Windows was belied after that experience. But what made matters even more annoying was that even the Live CD would not proceed too far. Stopping with an unprecedented "Unable to Mount Live CD" error. Considering that the same Live CD worked fine on the other motherboard, and that other Live Cds worked fine on this motherboard on the same DVD drive, the CD-motherboard interaction was suspect.
A google brought up the explanation and the solution. Apparently, PC Linux has problems in dealing with SATA drives and adding "linux all-generic-ide" to the existing boot parameters solves the problem. Eventhough the DVD drive and Hard disk that I was using were NOT SATA, I edited the boot menu and voila the earlier problems vanished.

X still had issues with the 7025 onboard graphics. For this I used the Xorg -configure command, which promptly left the system unresponsive. I tried editing the original xorg.conf file and reduced the colour depth, but that did not help. Since the driver and monitor were accurately identified, there was nothing else to edit. Then I loaded the live Cd and went through the contents of it's xorg.conf file, since the live Cd managed to load X with diminished resolution. On browsing the contents of the file, I found that the device was not identified as nvidia, rather as vesa. I simple copied this section from the live xorg file and pasted it on the original xorg file. The next reboot brought up the GUI.

I could change the resolution to the max of the monitor from within the OS. Since the nv drivers were not being used, there was a reduction in the visual aspects of the GUI, most notably the lack of Anti alaising which ensures smoother fonts and curves. But, that is a small price.

I had hoped that the change of luck would carry on to the Realtek driver as well, but this was not to be.

Update:

Well, well, well.
I have had a change of heart with regard to the apathy of component manufacturers towards linux. The Realtek LAn driver ordeal fresh in mind, I braced my self for another session of make, make install etc to get the display drivers for the geforce 7025. Without the correct drivers the fonts were all pricky and scrolling was a slideshow.
A google search revealed the presence of a nvidia self extracting, self installing package (http://www.nvidia.in/object/linux_display_amd64_100.14.11_in.html). I'll repeat the nature of the package, because it is probably a first in Linux - SELF EXTRACTING, SELF INSTALLING. The package with a .run extension weighed in at 15 MB. To run it the sh command is all that is needed.

Post download, I tried the sh command, but since I was using X, I was asked to run the package after exiting X. After exiting X, and logging in as root, I ran the command. The experience was too good to be true, except it was. The files were extracted and promptly the installation began. Somewhere midway during the installation, the routine came up with an error that a compatible precompiled kernel module was not found (probably referring to the PC Linux kernel which may not have been on the top of the developer's mind). IT offered an option to download the same from the Net which I permitted. A few seconds later, it returned with empty hands. Now get this : after the message that no compatible modules were found, it says "NO PROBLEM I SHALL CREATE ONE!!!!!!!!!!!". And so it proceeds to compile and create a kernel module. Then it tells me that the Xorg libraries were not found, and its paths are being guessed, and if the guesses were inaccurate another utility needs to be downloaded to rectify it. With that message, it goes ahead and tells me that the installation is complete.
startX and lo and behold.

The nvidia experience is not just an eye opener, it is a techtonic shift, it is a vision of paradise from the midst of pain and suffering, it is beyond words.

I shall not waste any more words riling Realtek and their asinine handling of drivers. In their support, though, compared to the might of Nvidia, they are paupers and probably incapable of allocating adequate funds to match the sheer elegance of nVidia's driver routine.

Friday, April 18, 2008

Driver Driven

Finding the solution to the Realtek driver issue became important, because I also discovered that the USB ports were not functional, which could also be related to the absence of proper drivers.

Googling for Realtek 8169 directly, I discovered that there were many who had faced the same problem - of the system inaccurately installing the wrong driver. The chipset was the 8168, but Linux used the 8169 driver automatically. Besides the readme instructions, I found anothe set of steps here http://www.linuxquestions.org/questions/showthread.php?p=3029998#post3029998. Following these also proved futile.

While in Opensuse, I managed to successfully complete the steps, in Mandriva 2008 I was stopped midway with a "invalid module format" error on using the insmod command.

Temporarily, I have given up the pursuit, and have resigned to opt the easier way out, that of using the discrete lan card. The USB will also have to wait.

What makes this entire ordeal unacceptable is that Belenix, an Opensolaris distro, seems to have no problems in this front (but it fails in other aspects). The reason : this issue is based right in the core, the Linux Kernel itself.

Make a tar#$%* Part 2

Installing drivers being central to the whole Linux experience, I took another jab at trying to figure out what the reams of text blurted out by the "make clean modules" command meant.

The first search on google revealed that to utilise make, one needs the kernel source code. To check if the kernel source is installed use the "rpm -q kernel-sources" command. I bet this can also be used for any application. The source was not included in the Opensuse installation I was on, and probably is not available in any live CD, for a reason that I found soon after.

I tried using the application manager to check for the availability of the source. Shock : the source is about 250 MB!

By the way, drivers are usually created specifically for each kernel version, and though the driver source size is comparatively insignificant (a few KBs), the command to find the kernel version is "uname -a". The application manager listed the source for the correct version. This need not always be the case, as I found out during my google forays.

250 MB is a strong motivation to look for other possibilities, but finding none, I prepared to download the source.A pleasant surprise awaited me, when I discovered that the actual download size was less than 50 MB. The 250 MB referred to the decompressed size, probably.

Post download and auto configuration, I reran the make clean modules command. This went past smoothly. The next command make install also did not throw up any problems. The depmod -a
and insmod ./src/r8168.ko commands also did not have any hiccups.

The readme file also provided some diagnostic commands to check if the driver had been installed, and these seemed to indicate that it was indeed the case.

I tried using the GUI to see if any changes had happened. Indeed the driver had changed from 8169 to 8168 which is the correct number of the chip.

But since the proof of the pudding is in the eating, I tried accessing the Net. Alas, this was not possible. Before going through all this, even with the automatically installed 8169 driver I was facing the same problem. A restart also did not help. So the attempt on the whole was not a success.

The sole consolation I could extract was that I had experienced my first compile and install session, and except for the initial hiccups, it went smoothly.

Now while the information to install a driver is readily available, how to accomplish uninstallation is not.

Thursday, April 17, 2008

Linux losing cool

A recurring "feature" of Linux is the unpredictability associated with it. Every reboot presents a new, usually unwelcome, challenge. Presently I am unable to launch any KDE application because I get an error that the DCOP could not be contacted. This system worked fine till yesterday, today DCOP is AWOL. Without DCOP I cannot launch any KDE window - no menus, no file manager. The solution is a reboot. But, I am not sure doing so will not bring up another problem.

While many lacunae in every distro can be attributed to the improper selection of preinstalled packages, the kind of problems like DCOP is more intrinsic. Expecting a user to spend a large part of the working hours trying to get the system workable is wishful thinking.

Wednesday, April 16, 2008

Make a tar @#$*

Installing Drivers can be a major headache for newbies and GUI enthusiasts. In my case, since the achilles heel of most distros seemed to be improper drivers for the LAN card, I headed to the Realtek site. The drivers were there, but in the most unfreindly format - source code.
Source code needs to be compiled before it can be installed. And while this ensure maximum compatibility with the hardware, it also means relying on the console throughout the process.

I tried this in Mandriva and Opensuse, and in both cases stumbled in the second step of the installation process mentioned in the readme file that accompanies the driver.

The tar command can be used to open th gz/bz2 compressed packages. Or it is just much easier to use the usual GUI option to extract the archive. The result is the same.
After extraction, the source needs to be compiled, and the steps to do this is present in the readme that is available after extracting the archive.
"make clean modules" is the first command to be used, according to the readme. This promptly returns an error - make command not found. The make command will be available after installing the make package. So I loaded the application manager and did that. With make available, I reentered the command. This time the error related to the absence of a gcc file. Another visit to the application manager and the gcc packages was installed. Retrying the command not produces numerous errors, all relating to missing files.
gcc is just one of the many C language package available. There are other options titled gcc 3, gcc 4 etc which refer to the version of the package. With no advice on which version was needed, I did not venture to install any further package.

The solution or rather shunt, involved using a discrete lan card with a chip whose driver was already in the distro. So I extracted the Lan card from an older system, and was quickly online.

I needs to be mentioned that none of the distros indicate that lack of driver is the problem. All of them, during the configuration stage continue as normal, but accessing the net is impossible. Opensuse during the installation also identifies correctly the chip - realtek pcie gigabit - but still when trying to go online I get "no connection" errors. This is strange.
While an older LAN card solved the net access problem the fact that Realtek did not offer a precompiled or binary version of the driver is worth considering. This is undoubtedly one of the negative effects of the multiple distros, offering a single source file beats having to offer over a dozen binary versions since each distro has projected its own package manager. This approach is suicidal, for the Linux movemen, of course.

Probably the motherboard manufacturer has the relevant drivers on the site, which is where I should have gone first.

Disk Drake

There is only one partition tool that combines versatility with ease of use - Diskdrake, the partition tool seen in PC Linux. It can handle the most partition types, it allows the user to control the fstab entries, it allows easy mounting/unmounting of paritions. The only area where it lacks is that it doesn't make the distinction between primary and logiical drives.
Qtparted and Gparted which are the other partition tools seen more commonly in Linux distros pale in comparison. Unfortunately, these are the tools one is more likely to comeacross. While Gparted is comparatively better, it allows mounting and distinguished between logical and primary, it can only handle few partition types. Qtparted which is at the bottom of the pile also has the nasty habit of renumbering partitions, which can render an installation unbootable unless the boot menu is edited. Avoidable.

Self Saboteur, Belenix

The art of shooting oneself in the temple is something that Belenix teaches the world. It is simply unimaginable how a distro creator can be so oblivious of the lack of the essentials.
There are many obstacles that need to be overcome before someone keen to install Belenix can begin that actual process of the installation. Persistence and Determination, the two friends that one will need to taste success in life are critical for success with Belenix.
1. Belenix does not make it clear that it is possible to install the live CD onto the hard disk.A user has to go online to discover "hdinstaller".
2. Belenix does not offer a disk partition tool that can create a partition of a format which is needed for the installation! This is so stupid that it needs to be repeated, emphatically. BELENIX DOES NOT OFFER A DISK PARTITION TOOL THAT CAN CREATE A PARTITION OF A FORMAT WHICH IS NEEDED FOR THE INSTALLATION. The Gnome partition tool which is bundled with the distro cannot handle Solaris or Solaris2 types.
3. Ofcourse, hdinstaller does have a command line disk partitioner - fdisk. But using it would be similar to doing a rope walk, blindfolded. It will not allow a user to create a partition based on the size of the partition. A user is expected to figure out the percentage of the disk space to be allocated instead, or alternatively, the cylinder numbers are to be provided. A persistent user will go to those lengths to see Belenix installed, only to be rebuffed by a terse "the partition space is inadequate" message by hdinstaller.Can't it be considered idiotic to give that message after all the changes have been committed? What prevents Belenix from telling the user to create a 5GB partition before hauling him over the coals? Users without that much free space on the disk can avoid all the hassles. Ofcourse, the fact that a primary partition only will do is also not mentioned upfront.

4. If the user has gotten so far, and created a 5 GB Solaris2 partition, another obstacle comes in the way of a message "The window is too small for the application. Resize screen and restart application". Also hdinstaller only offers a Hobson's choice, no going back, its either quit or OK all the way.

In their defence, it can be said that a user takes on the hdinstaller challenge voluntarily, since Belenix only promised to be a live distro of Opensolaris. And if the user wanted Opensolaris, that is a different story (hopefully not as nightmarish).

I am writing this as Belenix is being installed in the background.

Update:
The Cup of Woes overfloweth

The ludicrousness of Belenix scales newer heights, post installation. It doesn't even manage to get the GRUB installation right. It seems it is using some ancient notation, and while the boot path is shown as "/platform/multiple kernel/unix"; the error message states that "Opensolaris no longer uses Multiboot option". But, this comes up later.
The default options do not work, the first error referred to an incorrect path. On viewing the boot line options, I find that the hard disk is numbered hd1. Modifying this to hd0 causes the booting to stop with the previous "Multiboot" problem. So I remove the multi word, and the boot process manages to creek to the next error - "kernel needs to be loaded before the modules".

Since this would require checking the path to the kernel, I had no option to use a live CD to boot. Using Belenix live CD itself failed, crashing midway - I am guessing this has something to do with the hard disk installation. It is not the first time though where I have observed that the fate of the Live CD is influenced by the state of a hard disk installation. I had to resort to Knoppix to boot. Navigating to the partition, I found that the boot path was incorrect, the unix image was in the boot/platform/... directory. So I tried editing the menu.lst file from within Knoppix, but this was not permitted, even when using the root account.

Returning back to the hard disk boot, I tried editing the menu to accomodate for the boot option, this time the error was that "absolute path" was needed. So I preceeded the kernel path with the hard disk notation hda0. Finally, the boot progressed past the earlier errors and came to a halt with a "Stack error".

Well the solution it would seem is a reinstall. But, since the Belenix live CD will not boot with the hard disk installation, all hopes of a repair reinstall faded away. I used the Knoppix CD to delete the partition, and was able to reboot with the Belenix live CD and type this.

I am disappointed, mildly put.

Since this whole exercise was necessitated since all the rest of the distros did not have the relevant drivers for the Realtek Gigabit LAn, I downloaded the relevant drivers from the Realtek site. Imagine my surpise when I tried to extract the .tz and .bz2 archives. The XFCE windows manager does not pack in a archive tool! Not that it would have helped much, since I did not have a Cd burner as well, and plugging in the flash drive received a cold shoulder. Funny thing is when logged into the KDE interface, one of the entries under the Utilities menu is Xarchiver, this is in addition to KDE's Ark tool.

Tuesday, April 15, 2008

New Motherboard Problems

The new motherboard has managed to evade all attempts to successfully install a completely working copy of Linux. Some distros like PC Linux and FC 8 could not even mount the live CD. PCLinux stopped with an explicit message that the Live CD could not be mounted. FC8 gave a different error that seemed to point that it did not take the onboard IDE controller as a friend. Some ATA... error.
Other distros that I tried - Mandriva, Centos, Sabayon, Opensuse - all failed to tackle the net connection. The onboard Realtek gigabit network card proved too much. But, in all other aspects they were successful.

Salvation came in the name of Belenix. The only hiccup was in the X configuration, since this took time and a lot of trial and error and restarts. What aggravated the situation was that I could not login from the console to try editing the conf file manually. The username password combination remained elusive - root, user, password etc were tried out.

Eventually the combination that worked involves using the Vesa drive and not the Nvidia driver, and reducing the colour depth to 16 bit. The network problem was addressed beautifully, and here I am typing this. The resolution remains at 800 x 600, for which the only solution is a manual edit of the xorg.conf file since Belenix does not offer the proper graphical tools to tweak X.

The default combo is user and belenix.

Sunday, April 13, 2008

Segmentation Fault

This means that either the RAM or the program code is corrupt. If the RAM is to blame, a restart fixes this, but it can reappear. If it is the code then a pattern can be deciphered, helping pin point the program to blame.

Saturday, April 12, 2008

A series of unfortunate events

The seeds were sown yesterday when the system would not power off after a shutdown command. The system remained unresponsive after displaying the "sending term signal". After waiting for the usual time, I did a manual shutdown with the restart and power down buttons.

Today morning the series began. The system would not boot to the desktop but stopped with a series of permission denied messages. The use of the "Scroll Lock" button, something that I had never felt the use for for over a decade, allowed me to make out the messages as they quickly scrolled. A few files were identified.

Thinking this could be a result of the improper shutdown, I concluded running the fsck command on that partition would help. Since the system even couldn't boot to the command prompt, running it from the same system was not possible. Ofcourse, at the point I noted that an explicit boot option to boot to the console was missing.

Booting with the PCLinux live CD, I ran the fsck command. Way too many inodes were found out of order. After the sweep, I tried booting from the hard disk. No luck.

Had this been Windows, the next logical step would be a repair install. This is the first area where I felt Linux is a major let down. For one it makes life difficult by having too frequent disk errors (this could also be because one of my RAM modules is not error free, though this fact does not seem to affect normal working). Secondly, a repair reinstall is not available in most distros. I have seen this in, probably, just Sabayon- though even there it is accompanied by a message that it takes a lot of time but works.

PCLinux does not offer a repair option, so thinking a reinstall on the partition without formatting would work just as well, I proceeded with the install. At the partition selection step, I selected the older partition as "/" mount point but disabled the format option. Imagine my shock when the next step still gave a warning that all content on the drive will be erased! I quickly backed out. Then I copied all files under the home folder from the older partition to a safer place and returned to the reinstall step. During the backing up process I made a useful discovery, that the downloaded packages of Synaptic are stored under /var/. I had searched for *wine*.*. To return, the format option was disabled, yet the warning came on, but it did not format the drive! The installation proceeded and after the boot loader was installed, I shutdown the system.

The corrupt RAM was weighing on my mind, and I blamed it for the Azureus phenomenon ( Azureus would complete download of a torrent, check it, find peices missing, download these peices, recheck again, still peices would be missing, and the cycle continued a few more times, before the check was satisfactorily completed. Many times the extra MBs downloaded would be just a small fraction of the total file size, but occassionally, somewhere like 50-75 MB would be downloaded after the entire file had been completed. The corrupt RAM could be causing the hash failures, I conjectured.). The solution would be to add the drive to another system where the RAM was error free. Since the earlier experience of Linux taking hardware changes in it's stride, I was confident that there would be no hiccups. Linux surprised again.

But, I was so convinced that it was a lingering problem with the previous corrupt installation that I did not immediately switch to the older configuration. On the new system, I discovered that not only would not the freshly reinstalled system not work, nor would any Live CD as well. Belenix, PCLinux, Freespire, all failed to properly boot, crashing before the desktop showed up. Kubuntu managed to deliver the desktop, though. Another fsck followed. Eventually, better sense prevailed and I restored the older association, and the reinstallation booted normally. In hindsight, it seems that the reason none of the live CDs booted properly could have been because the motherboard, being quite recent - based on the geforce 7050 onboard graphics chipset - the proper drivers may be missing. A VI of one of the non GUI loaded installations xorg.conf file showed that the contents under the device section were correct - nvidia.

After the reinstallation experience, I discovered that the network would not work in the reinstalled system. All attempts to reconfigure, delete and create a network connection failed, leaving me with no net access. To make things worse, Synaptic too began playing truant. I had hoped that the reinstallation would've made some changes so that this time Wine installation would proceed more smoothly. Dashed. Synaptic would show up on the taskbar and then close. So the Wine experiment could not be done.
Since I had backed up all files, I copied them back into the earlier locations. I had recreated the same user and root accounts with no password in both during the reinstallation. Azureus would not load, till I deleted the older .azureus folder under the account's home folder.

Overall this took almost the entire working day. And at the end of it I was still without a net connection. Which leads me to the point where a complete reinstall is needed.

The experience has been informative. I found out where the synaptic download folder is. I disovered that there are limits to which Linux can accomodate new hardware, which brings be to the need to learn how to install drivers during installation. I revisited Kubuntu, and reexperienced the marvel that is Dolphin - the file manager, also found that it is the one distro which mentioned Wine in the most logical way - as an option in the Control panel offering to run Windows applications (Wine is NOT preinstalled though). I recollected that Opensuse is not a Live CD.

Thursday, April 10, 2008

Apt-get

Apt-get is Synaptic without the GUI.
If Synaptic begins to act funny, you can rely on apt-get to get the job done. In my case I had to use apt-get because synaptic would not launch. I can see the busy icon, and then nothing appears. Luckily, apt-get is a bit more logically deviced unlike many other commands in Linux.

I was completely flattered by the concise and well laid out command options. Usually typing in a command will output it's help file by default. In the few commands I have had the misfortune of having to use, this runs in to many pages. Not apt-get. The screenshot below shows the beauty of apt-get.

Since I had been trying out installing and uninstalling Wine till it somehow got motivated to sync properly so that I could use it, I was interested in removing the Wine package.
Entering apt-get got the options. Seeing that "remove" is the required option to uninstall a package, I simple entered apt-get remove wine. A few seconds of analysis later, apt-get prompted for confirmation and after the affirmative response, proceeded to remove Wine.

What striked me was the speed of processing. In synaptic invariably, even if no new packages are to be installed, it would spend a few seconds "downloading packages" then it would proceed to remove the selected packages. And usually this step if followed by a reloading of the package list which takes a few seconds more seconds. apt-get does away with both the preceeding and succeding steps and sticks to the brasstacks. It probably takes half the time as a result.
The drawback is that unlike Synaptic which automatically tracks down dependent packages and lists them too, apt-get did not do so. So a re read of the help document revealed that another parameter needed to be given for removing dependencies as well.
The correct command to remove dependencies as well was "apt-get remove wine -D".

It would be hard to understand apt-get at work without having an opportunity to see Syanptic first. The visual feedback of the package listing, the dependency calculating etc makes Synaptic many times better. But, for those seeking a quick end to a application management problem, and know exactly the package to be done away with will find apt-get more useful. It also helps when Synaptic is too gloomy to come out to play.

Since the problem I was facing was that Wine would cause X to restart without warning, which was why I was uninstalling and reinstalling the Wine package, after the latest restart, I logged into the user account, almost absent mindedly. And to my surprise Synaptic works find in that account, not Wine though.

Wednesday, April 9, 2008

Checking Windows partitions

fsck works for Linux partitions. Try running it on a FAT partition and you get a fsck.vfat not found error. A google search revealed that the tool may have been renamed to dosfsck in some distros. Well in PC Linux atleast this is true.
To avoid having to run the dosfsck command separately, a "symbolic link" can be created linking fsck.vfat to dosfsck by running this command : ln -s /sbin/dosfsck /sbin/fsck.vfat

Snapping Synaptic

Repeated attempts to uninstall unwanted applications by using Synaptic end with the error - rpm databse not found. Unlike most Windows applications with an "uninstall" or "unwise" program that can be run to uninstall applications, I am not able to find a similar executable for programs installed in the Linux system. Programs mostly end up under the /usr/bin folder.

In general, application misfires are not a rare event in Linux. It is expected that every boot brings something new to the equation. It is not surprising to have a system that worked fine during the last session to exhibit inexplicable anomalies at the next boot. Most of these anomalies disappear on a restart, though.
I would like to believe that these problems arise out of the absence of tight integration between different components that constitute a disto. It is rare for all applications in a distro to have the same creator. Since all distros are a bundle of different apps, it is expected that the interfacing between all these apps across different environments would not have passed rigorous quality tests.

Tuesday, April 8, 2008

Fixing X

Shifted the hard disk from the system with the Via chipset motherboard to another system having the nvidia chipset (Geforce 6100 onboard graphics). As previously experienced in PC Linux, the new hardware was properly detected and relevant drivers loaded. All hardware except the graphics. So I was left with the command prompt. The shortest way to getting back the GUI involves reediting the device details in the xorg.conf file. To get these details XFdrake needs to be run. Running XFdrake will show the name of the driver being used. Note down this name, and replace the existing one in xorg.conf. Then do a startx at the command prompt and you are all set. This works only in those distros with XFdrake. Xorg -configure is another command which can also be used, but in my case this left the system unresponsive requiring a restart and the associated fsck due to the improper shutdown.

Stepwise :
1. run XFdrake.
2. Identify driver name usually in quotes
3. Run vi /etc/X11/xorg.conf
4. Dig down to the devices paragraph, where among other things, the driver is mentioned. This is usuall "nv" or "Savage4" etc.
5. Replace existing value with the one displayed by XFdrake.
6. Save :w and quit :q! vi
7. run startx.

While in PC Linux I had to do this, Mandriva even managed to reconfigure X all by itself. All I had to do was twiddle my thumbs.

Monday, April 7, 2008

Installing DirectX in Wine

A google search threw up this page :
http://wine-review.blogspot.com/2008/03/directx-90c-march-2008-redistributable.html

An older version relating to the installation of DX 9c is here :
http://wine-review.blogspot.com/2007/11/directx-90c-on-linux-with-wine.html

I tried the latter, and installation was glitchfree. I could run DXdiag and the direct draw tests were a bit sluggish, which could be attributed to the 256 MB shared RAM and the onboard S3 graphics. But, probably, the hardware would not have posed a problem had the tests been done in Windows. Since the emulation process takes CPU power, some headroom is needed to match the speed.

The dll files mentioned can be downloaded from here : http://www.dll-files.com/

Testing with real games will require a beefier system.

Mandriva driving mad

It doesn't allow you to login as root. It doesn't offer an option to browse through the drive as super user. So how can one access files under the root partition or in those drives mounted by the root?
Doing an su in the command prompt does not reflect in the file manager.

Update:
A quick query at Linuxquestions and I have a solution thanks to a guru. The solution:
Create a link on the desktop to the Konqueror application, which is the default file manager. The Konqueror executable is in the /usr/bin directory. Only the working folder needs to be filled in the properties. Then under the Advanced options enable "Run as another user" and enter the root username. The next time any locked file needs to be accessed, launch the file manager with this link, and insert the password and voila.
In the same link properties mentioned above, under the command box entering "kdesu konqueror" will also suffice.

The moot point is : if it is so easy to offer a superuser file manager, why not incorporate it in the distro in the first place?

Update 2
A follow up post at linuxquestions offered a more user friendly option. INstall openasroot-kmenu. This will give the Open as Root option that makes using PC Linux so much easier. Since this application is in the Application manager's package list, this is another reason follow the earlier tip to look through the application list as a first step to working with a distro. If the program doesn't turn up in the first search,, this is because the relevant repository is not enabled. Enable the Contrib repository and retry. In Opensuse, this is a 19 KB package, and installed without problems.

Sunday, April 6, 2008

Serendipity

After trying out many distros, I had come to like PCLinux. It had most of what I wanted in a OS without being tied down by paranoid security protocols. The inability to get Wine installed was a major blow. Since installation had failed on one system, and on the other system the installation proceeded in the same lines, I had given up hope of being able to live with just one distro, needing a second distro like Mandriva for the wine utility and the ability to run windows games.
But, a reinstallation of Wine seems to work, even though I do still get a lot of errors. Since I had enabled saving the packages locally, for the reinstallation there was no more downloading. The application manager went through the motions of the installation, and abruptly stopped with errors. BUT, fortunately, the Wine name made an appearance in the programs menu, AND more importantly, launching it worked without glitch.
I still have been unable to replicate the reinstallation success on the other system. No matter how many times I tried to remove and reinstall Wine, it always crashed on launch. Online, there are no sources of information to shed light on this situation.
The conclusion I have arrived at is that a lot of serendipity is associated with program installation, especially when dealing with new program installation. I am of the view that the Wine installation would not have been a problem, had the installation DVD of PCLinux been used, since in that case the packages would have been installed along with the OS. There are obvious advantages of using a CD, since one would rarely need most of the apps on the DVD. So if both are as easily available, the latter is a wiser choice.