gentoo

Mount iso file in unix

To mount an iso file (filename.iso) to a mount point (/mnt/iso):

mount -o loop -t iso9660 filename.iso /mnt/iso

How to add perl module - CPAN

If you need to manually (not emerge or other package management system) add a perl module:

perl -MCPAN -e shell

This will open a prompt, then:

install Time::ParseDate

(where Time::ParseDate is the module... replace with what you need)

lsof - list open files - find why the space is still in use

Sometimes you have a file using a bunch of space... you track it down and delete it. The space doesn't free up.

You can use the 'lsof' command to find open files... until the file is closed, it will still be there using space, even if it doesn't show up. You can reboot to fix this, but usually you can restart a process and free it up. I find this happens on log files that have grown very large... if the process is still logging to them, it will stay open. You can restart the process after deleting the file and fix the issue.

Gentoo's graphical installer and partition tables

Be careful using Gentoo's graphical installer. Its still a bit "rough" in places (no problem, they warn you and its new)... I was going to reload my Gentoo partition on a multipartition drive that also had Windows.

It identified the various partitions just fine and I told it (I thought) to format the Gentoo partitions and load them (leaving the Windows partition alone).

Well, make sure you have backups :-)

It re-wrote the entire partition table from scratch.

Start x11vnc automatically with kdm startup

Edit /usr/X11R6/kde/3.5/share/config/kdm/Xsetup and addx11vnc -forever -rfbauth /home/bdillahu/.vnc/passwd -bg -solid darkgrey -rfbport 5900 -httpdir /usr/share/x11vnc/classes -o /tmp/x11vnc.log

Allow MySQL remote connections

mysql - edit /etc/mysql/my.cnf to comment out bind_address line to allow remote connections

Allow X to connect to KDE

Edit /usr/X11R6/kde/3.5/share/config/kdm/kdmrc (Gentoo) or /etc/kde3/kdm/kdmrc (Ubuntu) and comment out the line:

ServerArgsLocal=-nolisten tcp

For basic X:

Edit /usr/X11R6/bin/startx and comment out the line:
defaultserverargs='-nolisten tcp -br'

Syndicate content