Add a program to the default run time or bootup.
If you have a program (daemon) such as sshd that you would like to be started at bootup time, issue the command
# rc-update add sshd default
Any of the scripts in /etc/init.d can be done this way as far as I know. Correct me if I'm wrong.
X11 no keyboard or mouse ABI warnings
After trying to start X with startx I was getting these errors,
(EE) module ABI minor version (6) is newer than the server's version (5) (EE) Failed to load module "mouse" (module requirement mismatch, 0) (EE) module ABI minor version (6) is newer than the server's version (5) (EE) Failed to load module "kbd" (module requirement mismatch, 0) (EE) No drivers available.
If you ever get these, you can run
emerge xf86-input-mouse xf86-input-keyboard
or
emerge xf86-video-nv
if you're also getting the error
(EE) module ABI major version (1) doesn't match the server's version (0) (EE) Failed to load module "nv" (module requirement mismatch, 0)
Installing different versions of ebuilds
I'll use the game nexuiz as an example. I ran emerge nexuiz and it installed version 1.5. After looking in /usr/portages/games-fps/nexuiz I saw that there was a version 1.5 and a version 2.0. So to get the 2.0 to install you can run
# emerge '>=nexuiz-2.0'
which will install anything greater than or equal to version 2.0. When I ran this, of course it was masked so I had to run
# ACCEPT_KEYWORDS="~x86" emerge '>=nexuiz-2.0'
SSH mounting of directories
When I want to mount another directory from a machine that has an SSH server, I don't use samba or nfs or something like that -- I use shfsmount.
The first thing you will want to do is
# emerge shfs
and then, you will have shfsmount. From there, say you have a machine at 192.168.0.101 with a directory /home/joe/storage that you want to mount on your gentoo machine. Actually, shfsmount works on other distros. I'm just using this one as an example. So here is the command if say your username was joe and you wanted to mount your home storage directory that's in a home directory on another machine with an SSH server running. First, make a directory on the machine you want to mount the drive to with say,
mkdir /home/joe/virtual_storage
and then run the command,
shfsmount joe@192.168.0.101:/home/joe/storage /home/joe/virtual_storage
and that's it. Now you can cd into virtual_storage and work with that directory as if it was on your machine. You may want to do a man shfsmount because there are many options. I us the -o option in combination with things like sid and gid and permissions to mount the directory in ... etc. You can find your sid and gid in /etc/passwd and /etc/group although if you don't own the machine, you'll probably have to find out your user id and group id from you administrator.
Using rar for .rar files
To install rar do
# emerge rar
To unrar a file called basque.rar into a directory to be created called new_dir you would use this command,
# unrar e basque.rar new_dir/
Make sure to have the slash at the end.
[Click to add or edit comments])
Please prepend comments below including a date