Hydra

From Oh Mad Lab
Jump to navigation Jump to search

Hydra - The four core beast

Server Specifications

Brand Model Description Link Price
AMD 9650 / HD9650WCGHBOX Phenom X4 Quad-Core Processor, 1.10/1.15/1.20/1.25V, 95W, 2.3GHz, 4x512KB L2 Cache, 2MB L3 Cache, Socket AM2+ Manufacture
Purchased
$129.99
ASUS M2N-MX SE Plus AM2+/AM2, NVIDIA GeForce 6100, FSB:1000MHz HT (2000 MT/s)
North Bridge: NVIDIA GeForce 6100, South Bridge: NVIDIA nForce 430
Conductive Polymer Caps in V-Core
Manufacture
Purchased
$48.99
Fan died and fried GPU Chaintech GSE85GT 512MB NVIDIA GeForce 8500 GT, 128-bit GDDR2, PCI Express x16, SLI, HDTV Out & DVI-I & D-SUB Manufacture
Purchased
$51.99
OCZ Platinum / OCZ2N10662GK 2x1GB 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500), CL5, 5-5-5-15, 2.1-2.3V Manufacture
Purchased
$26.99
Seagate Barracuda 7200.11 / ST3750330AS 750GB 7200 RPM SATA 3.0Gb/s Manufacture
Purchased
$119.99
Generic <N/A> CD-ROM 48X/AKU, ATAPI CD/DVD-ROM <N/A> Garage Special
Cool Master DK8-9GD4A-0L-GP 2200 ± 10% RPM, 30.67 CFM, 22 dBA, 95mm, Fan Life Expectancy:40000hrs Manufacture
Purchased
$9.99
Linksys ? Wireless 10/100 NIC
Antec EA500 ATX12V v2.0, 500W Continuous Power, 80mm low noise cooling fan, 80 PLUS Certified Manufacture
Purchased
$54.99
Generic <N/A> Generic white case <N/A> Garage Special

BIOS Configuration

  • P:admin{ex}
  • BIOS revision 0503 at initial build
  • BIOS revision 0602 on July 16th, 2009

BIOS Flashing Steps

  1. Download latest BIOS ROM from here
  2. Rename the ROM file to M2PLUSSE.ROM
  3. Burn to a CD from laptop
  4. Put the new CD into Hydra
  5. At boot, press <alt>+<f2> for the EZ BIOS update utility
  6. It will detect the CD / M2PLUSSE.ROM and then flash the BIOS

Installed Debian 64Bi Etch and a half

  • Comment out "deb cdrom:"
 vim /etc/apt/sources.list
  • Install ssh server / client
 apt-get install openssh-server openssh-client
  • Install rsync
 apt-get install rsync
  • Install htop because it so pretty seeing all four cores
 apt-get install htop
  • Get CPU/HD temp monitor
 apt-get install lm-sensors
 apt-get install hddtemp
  • Run sensors-detect (from lm-sensors) and afterwards "sensors" should work
 sensors-detect
  • Turned on vino / remote control - This allows for a connect when a session logged in (aka shadowing)
  1. Select Desktop->Preference->Remote Desktop
  2. Check "Allow other users to view your desktop"
  3. Check "Allow other users to control your desktop"
  4. Uncheck "Ask you for confirmation"
  5. Check "Require the user to enter this password:"
  • Turn on vnc / remote desktop - This allows for a new connection as it creates a new session
  1. Select Preference->Login Window->Remote TAB->Style->Same as Local
 apt-get install vnc4server xinetd xvnc4viewer
 vncpasswd /root/.vncpasswd
 vim /etc/gdm/gdm.conf
[daemon]
#RemoteGreeter=/usr/lib/gdm/gdmgreeter
#FLC-Light weight login screen
RemoteGreeter=/usr/lib/gdm/gdmlogin

[xdmcp]
#FLC-Enable=true gets gnome to load, otherwise you see just x and no login
#FLC-Uses port 177
Enable=true
 vim /etc/xinetd.d/Xvnc
service Xvnc
{
        type = UNLISTED
        disable = no
        socket_type = stream
        protocol = tcp
        wait = yes
        user = root
        server = /usr/bin/Xvnc
        server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd
        port = 5901
}
  • To debug the vnc, I used this to kick out errors:
 Xvnc :2 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root /.vncpasswd

Install Nvidia Drivers

 wget http://us.download.nvidia.com/XFree86/Linux-x86_64/173.14.12/NVIDIA-Linux-x86_64-173.14.12-pkg2.run
  • Get the prerequisites
 apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential
  • Nvidia wants x server to be close and for some odd reason CTRL+ALT+F1 (or any other term) was just blanking out the screen (after installing nvidia drivers, this problem goes away). I had to become creative, hence the following:
 update-rc.d -f gdm remove
  • Reboot and install Nivdia drivers
 sh NVIDIA-Linux-x86_64-173.14.12-pkg2.run
 update-rc.d -f gdm defaults
  • Reboot again and volia

Install VMWare

  • Setup static IP
 vim /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
       address 192.168.0.90
       netmask 255.255.255.0
       network 192.168.0.0
       broadcast 192.168.0.255
       gateway 192.168.0.5
  • Restart network
 /etc/init.d/networking restart
  • Add nameserver

vim /etc/resolv.conf

search server
nameserver 192.168.0.5

vim /etc/resolvconf/resolv.conf.d/tail

nameserver 192.168.0.5
  • Add name to hosts
 vim /etc/hosts
127.0.0.1      localhost.localdomain   localhost
192.168.0.90  hydra.crancho.com       hydra
  • Update package database
 apt-get update
  • Get the prerequists (If you install the nvidia driver, then this may already be done)
 apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential
  • Create a dir for VMs
 mkdir /var/vm
 cd /tmp
 tar xfz VMware-server-*.tar.gz
  • Run the script
 cd vmware-server-distrib
 ./vmware-install.pl
  • Read questions carefully, typically I accept all the defaults except the VM directory as I prefer /var/vm for short justice
  • Install "ia32-libs" if you receive the following error:
 /usr/lib/vmware/bin/vmware-vmx: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

Sound Fix for Enemy Territory

 aptitude install alsa
 mkdir /share/et
 cd /share/et
 wget http://nullkey.ath.cx/~stuff/et-sdl-sound/et-sdl-sound.gz
 gunzip -d et-sdl-sound.gz
 chmod a+x et-sdl-sound
 cp et-sdl-sound /usr/local/games/enemy-territory/
 cd /usr/local/bin/
 mv et et.orig
 ln -s /usr/local/games/enemy-territory/et-sdl-sound et
 cd /usr/local/games/enemy-territory/
 mv et et.orig
 ln -s /usr/local/games/enemy-territory/et-sdl-sound et

Game Fix for Enemy Territory

 /usr/local/games/enemy-territory/et +r_mode "-1" +r_customheight "768" +r_customwidth "1024" +vid_restart

Final Touch Ups

  • Added the following to /etc/crontab
 */5  *  * * *   root    /sbin/flc/setip.sh
 0  0    * * *   root    /sbin/flc/setdatetime.sh > /dev/null

/sbin/flc/setip.sh

Private use only - Not documented here.

/sbin/flc/setdatetime.sh

Cheap way of fixing date / time without using a NTP client.

 #!/bin/sh
 # Date-Time by Frank Cardoza (Who needs NTP Client... blah!)
 rdate time.mit.edu &
 rdate tick.greyware.com &
 rdate utcnist.colorado.edu &