RSS

Category Archives: gentoo

gentoo add user

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

 
Leave a comment

Posted by on December 4, 2008 in gentoo, linux

 

gentoo apache2 userdir

edit file

/etc/conf.d/apache2

append

-D USERDIR

to APACHE2_OPTS

 
1 Comment

Posted by on November 8, 2008 in apache, gentoo, linux

 

gentoo list installed packages

equery list

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

 
Leave a comment

Posted by on August 16, 2008 in gentoo

 

Tags: , ,

Duplicating gentoo packages to a new machine

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.

 
Leave a comment

Posted by on October 24, 2007 in gentoo

 

Restore deleted ._cfg files

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.

 
Leave a comment

Posted by on October 24, 2007 in gentoo

 
 
Follow

Get every new post delivered to your Inbox.