gentoo


Installing PureFTPd with MySQL Backend on Gentoo

The FTP accounts will be stored in a mysql database table. First let's install pureftpd: USE="pam ssl mysql" emerge pure-ftpd Once the installation is finished, there are 2 main configuration files in /etc/conf.d. /etc/conf.d/pure-ftpd IS_CONFIGURED="yes" # the server does not start up if set to no SERVER="-S 21" # server port MAX_CONN="-c 30" # maximum […]


Gentoo: system and security updates

First install gentoolkit emerge gentoolkit Then search for security updates using glsa-check: glsa-check -t all Check which packets would be installed: glsa-check -p $(glsa-check -t all) Then run the actual installation glsa-check -f $(glsa-check -t all) Or install them one by one: glsa-check -f INSTALLNUM Replace INSTALLNUM by the update number, for example 200608-15 System […]


Creating a software raid using mdadm

Installation on Gentoo: emerge mdadm rc-update add mdadm default /etc/init.d/mdadm start Installation on Debian/Ubuntu: apt-get install mdadm Installation on RedHat/Fedora: yum install mdadm You can activate the kernel module by executing: modprobe raid1 First of all, we are going to create some nodes: mknod /dev/md1 b 9 1 mknod /dev/md2 b 9 2 mknod /dev/md3 […]