river
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | river [2014/11/24 01:14] (current) – created 0.0.0.0 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== River ====== | ||
+ | [[Category: | ||
+ | [[Category: | ||
+ | [[Category: | ||
+ | |||
+ | ===== Overview ===== | ||
+ | * Type: Physical server | ||
+ | * Location: Bedroom 1 | ||
+ | * Operating system: Gentoo | ||
+ | * URL: http:// | ||
+ | * 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=" | ||
+ | |+ /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 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 10Gb | ||
+ | | ext3 | ||
+ | | /var | ||
+ | | 9949f1e6-ad95-400d-955b-e7d09d1593a7 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 150Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | ad301c03-edb7-435c-ae5b-1a8d98e54e22 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 60Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | 2d073e28-91d7-4066-94df-419ea64a6a10 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 150Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | 16392d25-94ed-4cc7-975f-f515ad1b3419 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 250Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | 3d2707b7-d84f-4b15-b91f-fa91600ba287 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 60Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | 32cf08c7-a824-49cd-9a96-488f4d6aab93 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 20Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 5Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 50Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | 3963434d-bb53-471d-8ff5-ffd3bdc64bd0 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 10Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 500Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | a8ca3494-9171-415e-8e5b-1d398fc231b0 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 75Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | eKqGcG-r815-aX60-VcrW-zaAh-01V3-s1wEGl | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 75Gb | ||
+ | | reiserfs | ||
+ | | //none// | ||
+ | | 77893cd2-2b6a-486e-b181-293977ad2840 | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 20Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 20Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 1Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 1Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | / | ||
+ | | 10Gb | ||
+ | | reiserfs | ||
+ | | / | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
+ | The following physical partitions are used for LVM. | ||
+ | |||
+ | {| class=" | ||
+ | |+ 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 < | ||
+ | |||
+ | Compile the kernel using < | ||
+ | |||
+ | {{Root|< | ||
+ | |||
+ | {{Kernel|2.6.28-gentoo-r1|< | ||
+ | |||
+ | ==== 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/ | ||
+ | * {{Package|direct=yes|dev-util/ | ||
+ | * {{Package|direct=yes|app-portage/ | ||
+ | |||
+ | Now configure layman to download the desired overlays | ||
+ | {{Root|< | ||
+ | |||
+ | Now configure portage to look in the overlay directories | ||
+ | {{File|/ | ||
+ | |||
+ | Next, update all the software on the system using: | ||
+ | {{Root|< | ||
+ | emerge world -uDNav | ||
+ | </ | ||
+ | |||
+ | ==== Installed software ==== | ||
+ | See also: | ||
+ | * [[Gentoo# | ||
+ | |||
+ | === System === | ||
+ | * {{Package|direct=yes|sys-fs/ | ||
+ | * {{Package|direct=yes|sys-kernel/ | ||
+ | |||
+ | === 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/ | ||
+ | * {{Package|direct=yes|app-misc/ | ||
+ | * {{Package|direct=yes|sys-block/ | ||
+ | * {{Package|direct=yes|sys-block/ | ||
+ | * {{Package|direct=yes|x11-drivers/ | ||
+ | |||
+ | Install {{Package|direct=yes|sys-kernel/ | ||
+ | {{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/ | ||
+ | |||
+ | === Desktop Environments === | ||
+ | * {{Package|direct=yes|dev-libs/ | ||
+ | * {{Package|direct=yes|dev-libs/ | ||
+ | * {{Package|direct=yes|gnome-base/ | ||
+ | * {{Package|direct=yes|x11-wm/ | ||
+ | |||
+ | === Media === | ||
+ | * {{Package|direct=yes|app-cdr/ | ||
+ | * {{Package|direct=yes|media-sound/ | ||
+ | * {{Package|direct=yes|media-sound/ | ||
+ | * {{Package|direct=yes|media-video/ | ||
+ | * {{Package|direct=yes|media-video/ | ||
+ | |||
+ | === Work === | ||
+ | * {{Package|direct=yes|app-office/ | ||
+ | * {{Package|direct=yes|media-gfx/ | ||
+ | * {{Package|direct=yes|app-office/ | ||
+ | |||
+ | === Internet === | ||
+ | * {{Package|direct=yes|mail-client/ | ||
+ | * {{Package|direct=yes|net-misc/ | ||
+ | * {{Package|direct=yes|net-misc/ | ||
+ | * {{Package|direct=yes|net-misc/ | ||
+ | * {{Package|direct=yes|www-client/ | ||
+ | |||
+ | === Utilities === | ||
+ | * {{Package|direct=yes|app-arch/ | ||
+ | |||
+ | ===== Configuration ===== | ||
+ | ==== Network ==== | ||
+ | {| class=" | ||
+ | |+ Network adapters | ||
+ | |- | ||
+ | ! Hardware | ||
+ | ! Driver | ||
+ | ! Device | ||
+ | ! Mac | ||
+ | ! IP | ||
+ | ! DHCP/Static | ||
+ | |- | ||
+ | | RealTek RTL8139 | ||
+ | | 8139too | ||
+ | | eth0 | ||
+ | | 00: | ||
+ | | 78.86.202.79/ | ||
+ | | dhcp (with failover) | ||
+ | |- | ||
+ | | Intel(R) PRO/1000 Network Connection | ||
+ | | e1000 | ||
+ | | eth1 | ||
+ | | 00: | ||
+ | | null | ||
+ | | static | ||
+ | |- | ||
+ | | Marvell | ||
+ | | sky2 | ||
+ | | eth2 | ||
+ | | 00: | ||
+ | | null | ||
+ | | static | ||
+ | |- | ||
+ | | Atheros AR5416 802.11abgn | ||
+ | | ath9k | ||
+ | | ath0 | ||
+ | | 00: | ||
+ | | null | ||
+ | | static | ||
+ | |- | ||
+ | | 802.11d | ||
+ | | bridge | ||
+ | | br0 | ||
+ | | 00: | ||
+ | | 10.0.0.2/24 | ||
+ | | dhcp (with failover) | ||
+ | |} | ||
+ | |||
+ | ==== Logging ==== | ||
+ | See [[Syslog]] for central network logging. | ||
+ | |||
+ | ==== LDAP ==== | ||
+ | See [[LDAP/ | ||
+ | |||
+ | ==== Firewall ==== | ||
+ | //todo// | ||
+ | |||
+ | ==== Mail ==== | ||
+ | //todo// | ||
+ | |||
+ | ==== Samba ==== | ||
+ | Configuration is stored in subversion, under [[https:// | ||
+ | |||
+ | {{Root|< | ||
+ | |||
+ | ==== 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|/ | ||
+ | Section " | ||
+ | Identifier | ||
+ | Screen | ||
+ | InputDevice | ||
+ | InputDevice | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | Load " | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | # | ||
+ | - Keyboard and Mouse | ||
+ | # | ||
+ | # | ||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | |||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | # | ||
+ | - Monitors | ||
+ | # | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | HorizSync | ||
+ | VertRefresh | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | VendorName | ||
+ | ModelName | ||
+ | HorizSync | ||
+ | VertRefresh | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | # | ||
+ | - Graphics Cards | ||
+ | # | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Driver | ||
+ | VendorName | ||
+ | BoardName | ||
+ | BusID " | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | Section " | ||
+ | Option | ||
+ | EndSection | ||
+ | |||
+ | # | ||
+ | - Screens | ||
+ | # | ||
+ | |||
+ | Section " | ||
+ | Identifier | ||
+ | Device | ||
+ | Monitor | ||
+ | DefaultDepth | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | Option | ||
+ | SubSection | ||
+ | Depth 24 | ||
+ | EndSubSection | ||
+ | EndSection | ||
+ | </ | ||
+ | |||
+ | ==== ALSA ==== | ||
+ | Use the in-kernel drivers, and install the following packages: | ||
+ | * {{Package|direct=yes|media-lib/ | ||
+ | * {{Package|direct=yes|media-plugins/ | ||
+ | * {{Package|direct=yes|media-sound/ | ||
+ | * {{Package|direct=yes|media-sound/ | ||
+ | |||
+ | 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|/ | ||
+ | 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/ | ||
+ | * {{Package|direct=yes|app-emulation/ | ||
+ | |||
+ | Run the < | ||
+ | |||
+ | * 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 < | ||
+ | |||
+ | 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|/ | ||
+ | SSHAuthorizedKeys = " | ||
+ | </ | ||
+ | |||
+ | Then start NX, and ensure it autostarts on boot: | ||
+ | {{Root|< | ||
+ | / | ||
+ | rc-update add nxserver default | ||
+ | </ | ||
+ | |||
+ | ===== Peripherals ===== | ||
+ | ==== Keyboard ==== | ||
+ | See [[G15]]. | ||
+ | |||
+ | ==== Media remote control ==== | ||
+ | //todo// | ||
+ | |||
+ | ==== Scanner ==== | ||
+ | //todo// | ||
+ | |||
+ | ==== Webcam ==== | ||
+ | //todo// | ||
+ | |||
+ | ==== Bluetooth ==== | ||
+ | //todo// | ||
+ | |||
+ | ===== Maintenance ===== | ||
+ | ===== Hardware ===== | ||
+ | ==== BIOS ==== | ||
+ | < | ||
+ | |||
+ | ==== lspci ==== | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | ==== I have no sound! ==== | ||
+ | Make sure the < |
river.txt · Last modified: by 0.0.0.0