This shows you the differences between two versions of the page.
— |
saffron [2014/11/24 01:14] (current) 0.0.0.0 created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Saffron ====== | ||
+ | [[Category: | ||
+ | [[Category: | ||
+ | |||
+ | ===== Overview ===== | ||
+ | * Type: Virtual machine | ||
+ | * Location: [[Badger]] | ||
+ | * Operating System: Gentoo Linux (2008.0 x86_64) | ||
+ | * URL: https:// | ||
+ | * Provides: | ||
+ | * Web server | ||
+ | * Database server | ||
+ | * Subversion server | ||
+ | |||
+ | *Specs: | ||
+ | * 512Mb Ram | ||
+ | * 2x 100Mb Ethernet | ||
+ | * 20Gb Virtual Disk | ||
+ | * Serial port (mapped to < | ||
+ | |||
+ | ===== Filesystems ===== | ||
+ | {| class=" | ||
+ | |+ /dev/sda (20Gb sparesly allocated VMDK) | ||
+ | |- | ||
+ | ! Partition Number | ||
+ | ! Size | ||
+ | ! Filesystem | ||
+ | ! Mount point | ||
+ | ! UUID | ||
+ | ! Notes | ||
+ | |- | ||
+ | | /dev/sda1 | ||
+ | | 128Mb | ||
+ | | ext2 | ||
+ | | /boot | ||
+ | | 2572da94-bb4e-4460-af7b-a9e15d2b810e | ||
+ | | | ||
+ | |- | ||
+ | | /dev/sda2 | ||
+ | | 256Mb | ||
+ | | swap | ||
+ | | //none// | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | /dev/sda3 | ||
+ | | ~19Gb | ||
+ | | lvm | ||
+ | | //none// | ||
+ | | - | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 8Gb | ||
+ | | ext3 | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 10Gb | ||
+ | | ext3 | ||
+ | | /var | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 1Gb | ||
+ | | ext3 | ||
+ | | /home | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | The following physical partitions are used for LVM. | ||
+ | |||
+ | {| class=" | ||
+ | |+ LVM physical volumes | ||
+ | |- | ||
+ | ! Device | ||
+ | ! PV UUID | ||
+ | ! Size | ||
+ | ! Volume Group | ||
+ | ! Notes | ||
+ | |- | ||
+ | | /dev/sda3 | ||
+ | | | ||
+ | | 19Gb | ||
+ | | saffron | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | ===== Installation ===== | ||
+ | ==== Kernel ==== | ||
+ | {{Kernel|2.6.28-gentoo-r1|< | ||
+ | |||
+ | ==== Installed Software ==== | ||
+ | Also see: | ||
+ | * [[Gentoo/ | ||
+ | |||
+ | === Hosting === | ||
+ | * {{Package|direct=yes|dev-db/ | ||
+ | * {{Package|direct=yes|dev-util/ | ||
+ | * {{Package|direct=yes|net-fs/ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | ==== LDAP ==== | ||
+ | See [[LDAP/ | ||
+ | |||
+ | ==== Mail ==== | ||
+ | Edit < | ||
+ | |||
+ | {{Root|< | ||
+ | |||
+ | ==== Samba ==== | ||
+ | Configuration is stored in subversion, under [[https:// | ||
+ | |||
+ | {{Root|< | ||
+ | |||
+ | ==== Database ==== | ||
+ | Create the initial database tables, then start the server and ensure it starts on boot. | ||
+ | {{Root|< | ||
+ | / | ||
+ | / | ||
+ | rc-update add mysql default | ||
+ | </ | ||
+ | |||
+ | Import the original database backup, and reload the privileges table. | ||
+ | {{Command|< | ||
+ | mysql -u root < mysql.sihnon.net.sql | ||
+ | mysql -u root -e 'flush privileges;' | ||
+ | </ | ||
+ | |||
+ | ==== Apache ==== | ||
+ | Apache needs to be compiled with various extensions enabled. Make sure the following useflags are enabled: | ||
+ | * {{Package|direct=yes|dev-lang/ | ||
+ | |||
+ | Set up permissions on the webroot so that apache can access all files that exist, and are later created using acls. Same for the web users. | ||
+ | {{Root|< | ||
+ | setfacl -R -m u: | ||
+ | </ | ||
+ | |||
+ | For LDAP authentication to work, Apache must be set to use TLS connections by default. Add the following configuration: | ||
+ | {{File|/ | ||
+ | LDAPTrustedMode TLS | ||
+ | LDAPVerifyServerCert On | ||
+ | </ | ||
+ | |||
+ | See also: | ||
+ | * [[Vhosts# | ||
+ | |||
+ | ==== Subversion ==== | ||
+ | Copy the repositories into < | ||
+ | |||
+ | Use SVN::Notify to send email alerts containing the contents of new commits. This is not yet in the portage tree, but someone has submitted an ebuild so hopefully it will be soon. Until then, install it using CPAN. | ||
+ | {{Root|< | ||
+ | cpan | ||
+ | install SVN::Notify | ||
+ | </ |