Archive

Archive for the ‘gentoo’ Category

gentoo add user

December 4, 2008 varnit Leave a comment

Add a new user called ‘username’ to users and wheel group, the wheel group will allow you to su

useradd -m -G users,wheel username

then

passwd username

Categories: gentoo, linux

gentoo apache2 userdir

November 8, 2008 varnit Leave a comment

edit file

/etc/conf.d/apache2

append

-D USERDIR

to APACHE2_OPTS

Categories: apache, gentoo, linux

gentoo list installed packages

August 16, 2008 varnit Leave a comment

equery list

emerge app-portage/gentoolkit if you already haven’t.

Categories: gentoo Tags: , ,

Duplicating gentoo packages to a new machine

October 24, 2007 varnit Leave a comment

Simply copy /var/lib/portage/world from the old machine to the new one.
Then:

# emerge -va –noreplace $(cat old_world_file)

This command will install all of the files in the old_world_file while also adding them to the world of the new machine. The –noreplace was added in case some packages had already been installed, in order to avoid repeating one’s self.

Categories: gentoo

Restore deleted ._cfg files

October 24, 2007 varnit Leave a comment

With –noconfmem, portage will “forget” that it has already made a ._cfg file for a CONFIG_PROTECT file, thus causing portage to reinstall the ._cfg file needed for updating.

Categories: gentoo