====== River ====== [[Category:Hosts]] [[Category:Hosts/Servers]] [[Category:Hosts/Gentoo]] ===== Overview ===== * Type: Physical server * Location: Bedroom 1 * Operating system: Gentoo * URL: http://river.sihnon.net/ * Provides: * File server * Virtual machine hosting * Music playback * Desktops: * Awesome *Spec: * Case: Antec P182 * Mainboard: GA-P965-DS3 * Processor: Intel Q6600 2.4ghz * Memory: 6Gb * Disk: * 320Gb SATA Maxtor: New system disk * 200Gb PATA: Current system disk * 2x1000Gb SATA (lvm) - Pooled data * 2x500Gb SATA (lvm) - Mirrored data * Network: * 2x 1Gbps Ethernet * 100Mbps Ethernet * Graphics: * nVidia 9400 GT * Intel Corporation 82G965 Integrated Graphics Controller * Audio: * Creative Audigy 2 Platinum * Intel HDA * Peripherals * Monitors: * ViewSonic VX2260WM 22" Widescreen TFT (1920x1080) * Acer AL1912 19" TFT (1280x1024) * Speakers: Logitech Z-680 * Keyboard: Logitech G15 * IR Remote: Windows Media Centre Remote (lirc) * Scanner: Canon CanoScan LIDE 25 * Card Reader: Multi-format non-branded * Belkin Class1 USB Bluetooth dongle * Logitech QuickCam Fusion ===== Filesystems ===== {| class="wikitable" cellspacing="10" |+ /dev/sda (New system disk) |- ! Partition Number ! Size ! Filesystem ! Mount point ! UUID ! Notes |- | /dev/sda1 | 128Mb | ext2 | /boot | c446177c-0efa-4f7a-a353-ed075dbe6755 | |- | /dev/sda2 | 1Gb | swap | //none// | dde23c5e-8d37-4423-b504-cf82762a2903 | |- | /dev/sda3 | 60Gb | ext3 | / | 72dd5a67-49eb-45f9-afb1-ca5552c78d91 | |- | /dev/sda4 | ~147Gb | logical | //none// | | |- | /dev/sda5 | ~147Gb | lvm | //none// | | |- | /dev/sdb1 | 69Mb | ext2 | /boot | 075be870-34c5-4d85-8d45-c00fe5486db1 | |- | /dev/sdb2 | 179Gb | ext3 | / | cf54ad5e-4e76-4e11-a4ff-15020a398348 | |- | /dev/sdb3 | 50Mb | lvm | / | wwbuGS-MyZ7-X3bh-Rs6Z-G1kD-yjZ5-EYTj7y | LVM mirror metadata |- | /dev/sdb4 | 512Mb | swap | //none// | b6de2916-f3a2-4dab-9fab-e6f7b2c9293e | |- | /dev/mapper/system-var | 10Gb | ext3 | /var | 9949f1e6-ad95-400d-955b-e7d09d1593a7 | |- | /dev/mapper/pool-backups | 150Gb | reiserfs | /mnt/pool/backups | ad301c03-edb7-435c-ae5b-1a8d98e54e22 | |- | /dev/mapper/pool-backupstaging | 60Gb | reiserfs | /mnt/pool/backupstaging | 2d073e28-91d7-4066-94df-419ea64a6a10 | |- | /dev/mapper/pool-downloads | 150Gb | reiserfs | /mnt/pool/downloads | 16392d25-94ed-4cc7-975f-f515ad1b3419 | |- | /dev/mapper/pool-movies | 250Gb | reiserfs | /mnt/pool/movies | 3d2707b7-d84f-4b15-b91f-fa91600ba287 | |- | /dev/mapper/pool-music | 60Gb | reiserfs | /mnt/pool/music | 32cf08c7-a824-49cd-9a96-488f4d6aab93 | |- | /dev/mapper/pool-saffron | 20Gb | reiserfs | /mnt/pool/saffron | | |- | /dev/mapper/pool-santo | 5Gb | reiserfs | /mnt/pool/santo | | |- | /dev/mapper/pool-torrents | 50Gb | reiserfs | /mnt/pool/torrents | 3963434d-bb53-471d-8ff5-ffd3bdc64bd0 | |- | /dev/mapper/pool-var | 10Gb | reiserfs | /mnt/pool/var | | |- | /dev/mapper/pool-videos | 500Gb | reiserfs | /mnt/pool/videos | a8ca3494-9171-415e-8e5b-1d398fc231b0 | |- | /dev/mapper/pool-virtualmachines | 75Gb | reiserfs | /mnt/pool/virtualmachines | eKqGcG-r815-aX60-VcrW-zaAh-01V3-s1wEGl | |- | /dev/mapper/pool- | 75Gb | reiserfs | //none// | 77893cd2-2b6a-486e-b181-293977ad2840 | |- | /dev/mapper/mirror-home | 20Gb | reiserfs | /mnt/mirror/home | | |- | /dev/mapper/mirror-pictures | 20Gb | reiserfs | /mnt/mirror/pictures | | |- | /dev/mapper/mirror-secure | 1Gb | reiserfs | /mnt/mirror/secure | | |- | /dev/mapper/mirror-securehome | 1Gb | reiserfs | /mnt/mirror/securehome | | |- | /dev/mapper/mirror-var | 10Gb | reiserfs | /mnt/mirror/var | | |} The following physical partitions are used for LVM. {| class="wikitable" cellspacing="10" |+ LVM physical volumes |- ! Device ! PV UUID ! Size ! Volume Group ! Notes |- | /dev/sda5 | bfDYt0-HEpe-SowI-ysZh-Owj7-8ldR-dVC1JB | 132Gb | system | |- | /dev/sdb1 | KJmuS9-lGt9-zACV-01Cp-6jwQ-24M4-fSIPyk | 465Gb | mirror | |- | /dev/sdc1 | is4iII-4bzU-eNQQ-jxI1-bgCe-TSzF-Tr9AFQ | 465Gb | mirror | |- | /dev/sdd1 | oEtUo4-r028-08ya-mIp5-2WwX-dsSj-U1Lifw | 931Gb | pool | |- | /dev/sdd1 | is4iII-4bzU-eNQQ-jxI1-bgCe-TSzF-Tr9AFQ | 931Gb | pool | |} ===== Installation ===== See [[Local Portage Mirror]] for instructions on setting up machines to use the local portage mirror for syncing the portage tree, and downloading cached source packages. ===== Installation ===== ==== Kernel ==== See [[Kernel problems]]. Full kernel .config files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/kernel/river|configs:/kernel/river/]]. Compile the kernel using genkernel, which will set up an initramfs supporting LVM and framebuffer splashes: {{Root|0@@}} {{Kernel|2.6.28-gentoo-r1|1@@}} ==== Framebuffer ==== See [[Framebuffer]] for steps to set up a high resolution framebuffer. ==== Portage ==== River will be set up to use some third-party overlays to the official Portage tree, as there are often packages that are too new or rare to be in the official tree. Layman is used to manage the overlays, and needs to be built with git and subversion support to be able to download certain overlays. Install the following packages: * {{Package|direct=yes|dev-util/git}} * {{Package|direct=yes|dev-util/subversion}} USE="{{USEFlag|{{EnableFlag|subversion}}}}" * {{Package|direct=yes|app-portage/layman}} USE="{{USEFlag|{{EnableFlag|git subversion}}}}" Now configure layman to download the desired overlays {{Root|2@@}} Now configure portage to look in the overlay directories {{File|/etc/make.conf|3@@}} Next, update all the software on the system using: {{Root| emerge world -uDNav }} ==== Installed software ==== See also: * [[Gentoo#Essential packages]] === System === * {{Package|direct=yes|sys-fs/reiserfsprogs}} * {{Package|direct=yes|sys-kernel/genkernel}} === Modules === The following packages build kernel modules against the current kernel source tree, and will need to be updated following every kernel upgrade: * {{Package|direct=yes|app-emulation/vmware-modules}} * {{Package|direct=yes|app-misc/lirc}} * {{Package|direct=yes|sys-block/open-iscsi}} * {{Package|direct=yes|sys-block/iscsitarget}} * {{Package|direct=yes|x11-drivers/nvidia-drivers}} [[sabayon]] Install {{Package|direct=yes|sys-kernel/module-rebuild}} and populate the list of modules that need to be rebuilt with: {{Root| module-rebuild populate }} Then rebuild the kernel-dependent packages after an upgrade with the following command: {{Root| module-rebuild -X rebuild -- -av }} === Networking === * {{Package|direct=yes|net-misc/bridge-utils}} === Desktop Environments === * {{Package|direct=yes|dev-libs/eminent}} [[sabayon]] * {{Package|direct=yes|dev-libs/wicked}} [[sabayon]] * {{Package|direct=yes|gnome-base/gnome}} [[gnome]] * {{Package|direct=yes|x11-wm/awesome}} [[sabayon]] === Media === * {{Package|direct=yes|app-cdr/k3b}} * {{Package|direct=yes|media-sound/mpd}} [[mpd]] * {{Package|direct=yes|media-sound/sonata}} * {{Package|direct=yes|media-video/smplayer}} * {{Package|direct=yes|media-video/vlc}} === Work === * {{Package|direct=yes|app-office/dia}} * {{Package|direct=yes|media-gfx/gimp}} * {{Package|direct=yes|app-office/openoffice}} === Internet === * {{Package|direct=yes|mail-client/mozilla-thunderbird}} * {{Package|direct=yes|net-misc/nxnode}} {{USEFlag|{{EnableFlag|rdesktop}}}} * {{Package|direct=yes|net-misc/nxserver-freeedition}} * {{Package|direct=yes|net-misc/rdesktop}} * {{Package|direct=yes|www-client/mozilla-firefox}} === Utilities === * {{Package|direct=yes|app-arch/unrar}} ===== Configuration ===== ==== Network ==== {| class="wikitable" cellspacing="10" |+ Network adapters |- ! Hardware ! Driver ! Device ! Mac ! IP ! DHCP/Static |- | RealTek RTL8139 | 8139too | eth0 | 00:0d:88:2a:c7:30 | 78.86.202.79/20 | dhcp (with failover) |- | Intel(R) PRO/1000 Network Connection | e1000 | eth1 | 00:1b:21:04:b6:ac | null | static |- | Marvell | sky2 | eth2 | 00:16:e6:df:11:c5 | null | static |- | Atheros AR5416 802.11abgn | ath9k | ath0 | 00:1e:58:30:93:32 | null | static |- | 802.11d | bridge | br0 | 00:1b:21:04:b6:ac | 10.0.0.2/24 | dhcp (with failover) |} ==== Logging ==== See [[Syslog]] for central network logging. ==== LDAP ==== See [[LDAP/Openldap]]. Configuration files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/ldap/client/|configs:/ldap/client/]]. ==== Firewall ==== //todo// ==== Mail ==== //todo// ==== Samba ==== Configuration is stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/samba/river/|configs:/samba/river/]]. Samba's LDAP password must be set to the same value stored in the directory and then the service can be started. {{Root|4@@}} ==== Apache ==== //TODO// ==== Xorg ==== This configuration provides a dual screen setup, using the HDMI port to connect a 1920x1080 display, and the DVI port to connect a 1280x1024 display. {{File|/etc/X11/xorg.conf| Section "ServerLayout" Identifier "Primary Layout" Screen 0 "Primary Screen" 0 0 InputDevice "Logitech G15" "CoreKeyboard" InputDevice "Logitech Click Plus" "CorePointer" EndSection Section "Files" EndSection Section "Module" Load "dbe" Load "extmod" Load "type1" Load "freetype" Load "glx" EndSection Section "ServerFlags" Option "Xinerama" "0" EndSection # - Keyboard and Mouse # # Section "InputDevice" Identifier "Logitech G15" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "pc102" Option "XkbLayout" "gb" Option "XkbOptions" "lv3:ralt_switch,grp_led:scroll" EndSection Section "InputDevice" Identifier "Logitech Click Plus" Driver "mouse" Option "Protocol" "ExplorerPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" Option "Buttons" "5" Option "ButtonMapping" "1 2 3 6 7" EndSection # - Monitors # Section "Monitor" Identifier "Primary Monitor" VendorName "ViewSonic" ModelName "vx2260wm" HorizSync 24.0 - 82.0 VertRefresh 55.0 - 75.0 Option "DPMS" EndSection Section "Monitor" Identifier "Secondary Monitor" VendorName "Acer" ModelName "Acer AL1912" HorizSync 30.0 - 83.0 VertRefresh 55.0 - 75.0 Option "DPMS" EndSection # - Graphics Cards # Section "Device" Identifier "Nvidia 9400 GT" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "GeForce 9400 GT" BusID "PCI:1:0:0" Option "RenderAccel" "true" Option "XAANoOffscreenPixmaps" Option "TripleBuffer" "true" Option "BackingStore" "true" Option "OnDemandVBlankInterrupts" "true" Option "AccelMethod" "XAA" EndSection Section "Extensions" Option "Composite" "Enable" EndSection # - Screens # Section "Screen" Identifier "Primary Screen" Device "Nvidia 9400 GT" Monitor "Primary Monitor" DefaultDepth 24 Option "TwinView" "1" Option "TwinViewXineramaInfoOrder" "DFP-1" Option "AddARGBGLXVisuals" "true" Option "metamodes" "CRT: 1280x1024_60 +1920+0, DFP: 1920x1080 +0+0" SubSection "Display" Depth 24 EndSubSection EndSection }} ==== ALSA ==== Use the in-kernel drivers, and install the following packages: * {{Package|direct=yes|media-lib/alsa-lib}} * {{Package|direct=yes|media-plugins/alsa-plugins}} * {{Package|direct=yes|media-sound/alsa-tools}} ALSA_CARDS="emu10k1" * {{Package|direct=yes|media-sound/alsa-utils}} River has three soundcards, and these should be loaded in the correct order: * Creative Soundblaster Audigy 2 (snd_emu10k1) * Realtek HDA (snd_intel_hda) * Logitech webcam microphone (snd_usb_audio) To achieve this, configure alsa with the following file: {{File|/etc/modprobe.d/alsa| alias char-major-116 snd alias char-major-14 soundcore - Audigy alias snd-card-0 snd-emu10k1 alias sound-slot-0 snd-card-0 alias sound-service-0-0 snd-mixer-oss alias sound-service-0-1 snd-seq-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-8 snd-seq-oss alias sound-service-0-12 snd-pcm-oss options snd-emu10k1 index=0 alias /dev/dsp snd-pcm-oss - Obboard HDA Realtek alias snd-card-1 snd-hda-intel alias sound-slot-1 snd-card-1 alias sound-service-1-0 snd-mixer-oss alias sound-service-1-3 snd-pcm-oss alias sound-service-1-12 snd-pcm-oss options snd-hda-intel index=1 alias /dev/dsp1 snd-pcm-oss - Webcam microphone alias snd-card-2 snd-usb-audio alias sound-slot-2 snd-card-2 alias sound-service-2-0 snd-mixer-oss alias sound-service-2-3 snd-pcm-oss alias sound-service-2-12 snd-pcm-oss options /dev/sdp2 snd-pcm-oss options snd cards_limit=3 }} ==== VMWare Server ==== Install the following packages * {{Package|direct=yes|app-emulation/vmware-server}} * {{Package|direct=yes|app-emulation/vmware-modules}} Run the vmware-config script to compile the proper modules and configure the networking. Set up the network as follows: * vmnet0 * name: public * type: bridged * bridged to: eth0 * vmnet2 * name: local * type: bridged * bridged to: br1 Once the web interface is started, use it to remove the default datastore created by the installed, and add a new datastore named vms pointing at /mnt/pool/virtualmachines. Install the following packages to be able to connect to pipes mapped to virtual serial ports: * {{Package|direct=yes|socat}} * {{Package|direct=yes|taylor-uucp}} ==== NX ==== By default, NX looks in the wrong place for ssh keys. Fix this by editing the configuration file to contain the following: {{File|/usr/NX/etc/server/.cfg| SSHAuthorizedKeys = "authorized_keys" }} Then start NX, and ensure it autostarts on boot: {{Root| /etc/init.d/nxserver start rc-update add nxserver default }} ===== Peripherals ===== ==== Keyboard ==== See [[G15]]. ==== Media remote control ==== //todo// ==== Scanner ==== //todo// ==== Webcam ==== //todo// ==== Bluetooth ==== //todo// ===== Maintenance ===== ===== Hardware ===== ==== BIOS ==== 5@@ ==== lspci ==== 00:00.0 Host bridge: Intel Corporation 82P965/G965 Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82G965 Integrated Graphics Controller (rev 02) 00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 02) 00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 02) 00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 02) 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 02) 00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev f2) 00:1f.0 ISA bridge: Intel Corporation 82801HB/HR (ICH8/R) LPC Interface Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801H (ICH8 Family) 4 port SATA IDE Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 02) 00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02) 01:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06) 02:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) 02:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 02) 03:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller (rev 14) 04:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04) 04:01.1 Input device controller: Creative Labs SB Audigy Game Port (rev 04) 04:01.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04) 04:02.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10) ===== Troubleshooting ===== ==== I have no sound! ==== Make sure the IEC958 Optical RAW channel in alsamixer is muted.