Moved…
Saturday, September 23rd, 2006This blog has been moved to a new domain.
Please update your links/feeds to point to the new domain http://www.chandanr.net/blog
This blog has been moved to a new domain.
Please update your links/feeds to point to the new domain http://www.chandanr.net/blog
If you have installed windows on a linux system and are not able to boot into your linux or vice versa then this article gives details steps for rescuing your system and configuring dual boot. In this article you can read “Suse Linux 10.1″ as any linux distribution.
1. Insert the bootable SuSe 10.1 CD/DVD into the drive and boot the system from the CD. If your system doesnot boot from the CD, you have to make modifications to the priority of your CD drive in your system’s bios boot settings.
2. On booting from the CD, choose the “Rescue System” option. Now image from the CD will be loaded to give you a rescue shell.
3. On the “Rescue login:” prompt enter “root”. Now the rescue shell is ready for repair.
4. Run “fdisk -l” to display all the partitions in your hardisk(s). From this you can know on which partition you have installed linux and windows. Suppose if you have connected your harddisk as primary master then all its partition entries will be listed as /dev/hda*. Refer to Notes(1) if your hardisk configuration is different. If you have installed windows on primary partition of your harddisk then you would find an entry like –
“/dev/hda1 * 1 1216 9767488+ c W95 FAT32 (LBA)”
If you have installed SuSe Linux on first logical partition then you would find an entry like –
“/dev/hda5 1217 2432 9767488+ 83 Linux”
5. After determining the partition on which SuSe linux is installed(in this case /dev/hda5), mount the partition.
mount /dev/hda5 /mnt
Now contents of the /mnt directory will correspond to the / directory of your installed SuSe Linux.
6. Open the GRUB’s menu file(GRUB is the boot loader, which provides a choice for selecting the OS to boot into when your system is powered on)
vim /mnt/boot/grub/menu.lst
7. Go to the end of this file and add the following entry for windows
title Windows XP
rootnoverify (hd0,0)
chainloader +1(hd0,0)
Save the modifications and close the file. You may get the following Warning message, which can be safely ignored
“Can’t write viminfo file /root/.viminfo”. This is because while rescuing we have booted into the readonly filesystem in the CD.
8. Open the device map file of grub and make sure an entry for your hard disk is listed there.
vim /mnt/boot/grub/device.map
In this case you should find the following entry listed
“(hd0) /dev/hda”
9. Now we are ready for the final step - installing grub. Run the following command:
grub-install –root-directory=/mnt/ /dev/hda
You may have to modify the above command if your hard disk configuration is different. Refer to Notes (1) for details.
On successful installation you should get the following message -
“Installation finished. No error reported”
10. Now we are done with the rescue. Remove the CD from the drive and reboot the system to get GRUB with newly added entry.
Notes:
1. Hard disk configuration to device name mapping:-
Primary Master: /dev/hda
Primary Slave: /dev/hdb
Secondary Master: /dev/hdc
Secondary Slave: /dev/hdd
2. Partition numbers
Usually a hard disk is divided into one primary partition and one extended partition. The extended partition is then divided among one or more logical partitions.
Primary partition of a disk is numbered 1. (like hda1)
Extended partition of a disk is numbered 2. (like hda2)
Logical partitions of a disk are numbered starting from 5. (like hda5,hda6)
The code of “Speak Clipboard” is…
#!/bin/bash
if [[ $1 = “stop” ]]
then
dcop ksayit ksayit dcopStop
exit
fi
message=`dcop klipper klipper getClipboardContents`
dcop ksayit ksayit dcopSayText “$message”
Useful Links:
DCOP: Desktop COmmunications Protocol
Higher-level Scripting
KTTS - KDE Text-to-Speech System
Festival Speech synthesis system
Article on festival
Building Web Services the REST Way
Moto4Lin is one such effort to provide an interface for Motorolla mobile phones on Linux. I tried this out and it works very well. The application is great but however it is not very well documented(in english), i had to rely on Google translations to get it working. Moto4Lin can be used for exploring the mobile’s filesystem and thereby provides an interface for data transfer. I am still figuring out how to access the phonebook and send messages from comp. I tried a couple of KDE apps, but still haven’t been able to get them detect my phone.
Instructions for installing Moto4Lin:
1. Download p2kmoto and moto4lin packages from here. Moto4Lin requires p2kmoto driver for accessing the filesystem of the phone.
2. Install p2kmoto package from source by running:
./configure && make && make install
3. You may have to add /usr/local/lib to LD_LIBRARY_PATH.
export LD_LIBRARY_PATH=/usr/local/lib
4. Connect the phone to a usb drive using the data cable and test p2kmoto by running p2ktest. This lists the files stored in your phone.
5. moto4lin is a qt appllication, use the following steps to install it
qmake && make && make install
6. Start moto4lin and configure the device if required.
7. Click the “Connect” button to connect to the phone. The filesytem of the phone can be browsed using the “File Manager”.
Useful links
1. Instructions for using Moto4Lin
2. Moto4Lin sourceforge Project
Now given a command we know how to use it. What if we want to do something and don’t know which command to use? Most of us frequently face this problem.
Some handy ways to access these help systems from other applications:-
Some related links:-
Some vim settings that i have done to make tabbed vimming more convenient (firefox-ish):-
1. Clicking on a file should open it in existing gvim but in a new tab
For this i have created a batch file
2. Creating new tab using Ctrl-t
Added following mapping to the vimrc file –
map
In vim we can shift tabs using [tabnumber]gt and in gvim we can also use the more familiar Ctrl-[pageUp/pageDown] shortcuts by default.
Goa
drive to anjuna beach
little Vagator
saturday Night bazaar
shopkeeper wanting to kiss shobith aka karate kid
yummy Crabs
dancing Dolphins
Gokarna
just about managing to board the Bus
Power & Avs: Bus nahi mili kaa…
Cool waters of gokarna, kudlu, Om & paradise beaches
Dandeli
(Pfunk)TiKu & Bappi: Now or Never
traveling on top of Gule Irfan
river Rafting
Night forest trek — spotting Tigers and lots of flying Squirels and night Jars
Main advanatages of a wiki:-
Some interesting features of TiddlyWiki:-