Topics

Open a text file for editing as root (Super User)

list UUID

ls -l /dev/disk/by-uuid/

Or

lsudo blkid

Or export the listing to a temp file and open with gedit (zhs users only)

gedit =(sudo blkid) &

Swap not being used

Found the UUID of my swap partition had changed and swap wasn't being used. Fix is to correct the UUID in /etc/fstab

gksudo gedit /etc/fstab

Hibernate Broken

To get hibernate to work again had to put correct UUID in 2 places.

/etc/fstab
/etc/initramfs-tools/conf.d/resume

After correcting the UUID run:

sudo dpkg-reconfigure initramfs-tools

Live CD - Mount hard drive partition for edit

sudo mkdir /mnt/ahdp
sudo mount -t ext3 /dev/hda1 /mnt/ahdp

Fix a broken Package Install

I tried to update and got a seg fault message. -f install did not work. Synaptic identifies the broken packages. What can I do to fix this problem? 104 Broken Packages

sudo dpkg --configure -a

I can't install anything and my update manager doesn't work, it returns this error...
"Could not initialize the package information
A unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:The package whatever-pkg needs to be reinstalled, but I can't find an archive for it.'" and then closes

sudo dpkg --force all -r whatever-pkg

List hardware in browser

sudo lshw -html > ~/hardware_info.html && firefox ~/hardware_info.html

Firefox slow? Disable IPv6

If you are on Gutsy, disable IPv6 like this: Open a terminal window and edit

gksudo gedit /etc/modprobe.d/aliases

Find the line that reads

alias net-pf-10 IPv6

and change it to read

alias net-pf-10 off

Save and restart Firefox.

Graphical Display Problems

If you can get to the grub screen boot into recovery mode. This will place you at the command prompt as the root user. at this point you want to enter

dpkg-reconfigure xserver-xorg
or
dpkg-reconfigure --phigh xserver-xorg

Go through the setup process using the defaults this may fix it. Reboot to find out. If not then try to reconfigure it again. Only this time when it gets to the point where it asks if you want to use some of the main memory for video do it. I have a 4 meg pci video card. What I did to get x to work was tell it to use 2048 kb of main memory. Maybe this will work for you.

Clock switching time?

The clock switching time when alternating boots between XP and Linux is a pain. To keep Linux from using UTC Right click on the clock > Preferences > uncheck the UTC box. Or if you don't have the clock edit /etc/default/rcS and change the line UTC=yes to UTC=no
If you need to change the timezone this can be done by runing sudo tzselect