====== Shadow ======
[[Category:Hosts]]
[[Category:Hosts/Servers]]
[[Category:Hosts/Gentoo]]
[[Category:VMware]]
===== Overview =====
* Type: Virtual machine
* Location: [[River]]
* URL: http://shadow.sihnon.net/
* Provides:
* DHCP server (Failover from [[Santo]]) (//todo//)
* Name server (slave)
* Directory server (LDAP slave)
* Syslog logging server
* Parimary MX
*Specs:
* 256Mb Ram
* 2x 100Mb Ethernet
* 20Gb Virtual Disk
* Serial port (mapped to /tmp/shadow on [[River]]
===== Filesystems =====
{| class="wikitable" cellspacing="10"
|+ Filesystems
|-
! Device
! Size
! Filesystem
! Mount point
! UUID
! Notes
|-
| /dev/sda1
| 128Mb
| ext2
| /boot
| a9644ae3-c7f5-441f-893a-4353d40f1d3b
|
|-
| /dev/sda2
| 256Mb
| swap
| //none//
| de7058c3-e8e6-42a0-8064-b5c2d0797345
|
|-
| /dev/sda3
| 19Gb
| lvm
| //none//
|
|
|-
| /dev/mapper/system-home
| 1Gb
| ext3
| /home
| eb41281d-9e60-4bfb-b3ce-1d0e140cbd7a
|
|-
| /dev/mapper/system-root
| 8Gb
| ext3
| /
| c1682503-90f9-4b5e-830b-9f1869b59f84
|
|-
| /dev/mapper/system-var
| 10Gb
| ext3
| /var
| 4ed23585-3e57-4864-88e5-e1c5d9ac5f10
|
|}
===== Installation =====
==== Kernel ====
Shadow is using a slightly modified version of [[Santo]]'s kernel, which was built to run on both VMware and the Soekris hardware. The full .config file is in subversion, under [[https://dev.sihnon.net/svnpriv/configs/kernel/shadow/|configs:/kernel/shadow]].
Important options:
{{Kernel|2.6.28-gentoo-r1|0@@}}
==== Update world ====
Once installed, run the following to update every package on the machine:
{{Root|}}
This update should drag in baselayout-2/openrc, so be sure to follow the [[http://www.gentoo.org/doc/en/openrc-migration.xml|migration guide]] precisely.
==== Installed software ====
Also see:
* [[Gentoo/VMware]]
=== Networking ===
* {{Package|direct=yes|net-analyzer/vnstat}}
* {{Package|direct=yes|net-dns/bind}}
* {{Package|direct=yes|net-misc/dhcp}}
=== Hosting ===
* {{Package|direct=yes|dev-db/mysql-community}} {{USEFlag|{{DisableFlag|minimal}}}}
* {{Package|direct=yes|dev-lang/php}}
* {{Package|direct=yes|net-fs/samba}}
* {{Package|direct=yes|www-servers/apache}}
===== Configuration =====
==== Network ====
{| class="wikitable" cellspacing="10"
|+ Network adapters
|-
! Hardware
! Driver
! Device
! Mac
! IP
! DHCP/Static
|-
| AMD PCnet32
| pcnet32
| eth0
| 00:0c:29:3c:73:65
| 78.86.202.85/20
| dhcp (with failover)
|-
| AMD PCnet32
| pcnet32
| eth1
| 00:0c:29:3c:73:6f
| 10.0.0.4/24
| dhcp (with failover)
|}
The network configuration is stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/network/shadow|configs:/network/shadow]].
==== Logging ====
Configure network logging, as per [[Syslog]].
==== LDAP ====
See [[LDAP/Openldap]]. Configuration files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/ldap/slave/|configs:/ldap/slave/]].
==== DNS/DHCP ====
See [[DNS & DHCP]]. Configuration files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/dhcp/slave/|configs:/dhcp/slave/]] and [[https://dev.sihnon.net/svnpriv/configs/named/slave/|configs:/named/slave/]].
==== Firewall ====
See [[Iptables]].
==== Mail ====
See [[Email]].
==== Samba ====
Configuration is stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/samba/client/|configs:/samba/client/]]. Samba's LDAP password must be set to the same value stored in the directory and then the service can be started.
{{Root|1@@}}
==== Apache ====
//todo//
===== Hardware =====
==== lspci ====
2@@