Server Administration

From the Fink Wiki
Jump to navigation Jump to search


Backups

Backups are being done with Bacula. It deserves its own page.

DNS

We are running the default bind9 installation from debian. Domains are each in a separate file in /etc/bind/ named after the top-level domain (finkmirrors.net, finkdeveloper.net, etc.) and are editable by anyone in the bind group (or root).

To add a finkmirrors.net record, do the following:

  1. edit /etc/bind/finkmirrors.net
  2. change the Serial to today's date
  3. add a distfiles.AIRPORT.STATE.CONTINENT record in the "distfiles (source tarballs) mirrors" section
  4. add a AIRPORT.STATE.CONTINENT record in the "bindist (.deb package) mirrors" section
  5. save the file
  6. restart bind: /etc/init.d/bind9 restart

Mail

We run a mail server. It really really needs to be documented. (In particular, we are running squirrelmail, websieve, and god knows what else.)

In particular, the following URL's are useful:

<https://www.finkdeveloper.net/squirrelmail/src/login.php>

<https://www.finkdeveloper.net/cgi-bin/websieve.pl>

Authorized persons can restart the mail server with sudo /etc/init.d/cyrus2.2 restart

Creating New Users

  1. add the user to LDAP
    • details go here
  2. create their SVN experimental directory
    • svnadmin create --fs-type fsfs /var/lib/svn/users/username
    • chown -R www-data:www-data /var/lib/svn/users/username
  3. create their .users.finkproject.org web site
    • add to /etc/bind/finkproject.org
      • 2006XXXXXX ; serial
      • username.users IN CNAME finch
      • /etc/init.d/bind restart
    • add to apache2 config
      • sed -e 's,@USER@,username,g < /etc/apache2/users/user.template > /etc/apache2/users/username.user
      • /etc/init.d/apache2 restart