Wednesday, October 20, 2010

Simple linux tweaks!!

Changing the Boot sequence!!
Here is a noobish but useful tip for people having more than 1 OS. When we install linux after windows, the default OS becomes linux. To change this sequence follow the steps given below.
  • Go to root->boot->grub->menu.lst
  • sudo chmod a+w menu.lst
  • change default 0,to the line no of the preferred OS.

Creating .deb file

After .\config
Instead of make install do check-install or sudo apt-get install checkinstall
.deb is created in source dir.

GRUB 17 error

I have had this error 17 many times from having bad power downs and crashes for other reasons. In most of my cases the problem is usually from a bad magic number in the root partition. This can be easily fixed by doing this:

a. boot from any live CD (ubuntu install disk works for me)
b. open accessories->Terminal
c. in terminal type "sudo e2fsck -b 32768 /dev/hdaX

replace the hdaX in line above with the disk that you have your root mounted from
for example sudo e2fsck -b 32768 /dev/hda2
in my case I have windows installed in /dev/hda1 and my root partition for ubuntu in at /dev/hda2 also if -b 32768 fails you can try other numbers including -b 8193 or -b 98304 or -b 163840.
  • if u want to prevent ubuntu 4m asking passwd everytime ..jst run visudo app..and add ALL=NOPASSWD: ALL
VLC with compiz
  • Start VLC and click on Settings, then Preferences.
  • Expand Video and then expand Output modules. You will notice several options for output device.
  • Select the item Output modules, and notice the checkbox at the bottom right that says Advanced options.
  • Check the box, and now you have the option to select a different output device.
  • Pick X11 video output
  • Click on Save and you are set!

1 comment:

  1. im nt sure if it'll work for everyone but,i use vnc enterprise viewer to login to unix,here we can run this command to copy text from linux to windows and vice versa...

    vncconfig nowin &

    ReplyDelete