computers:serverconfig
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computers:serverconfig [2008/02/29 22:38] – david | computers:serverconfig [2010/12/10 16:02] (current) – david | ||
---|---|---|---|
Line 110: | Line 110: | ||
files are in: **/ | files are in: **/ | ||
+ | ==== Check NFS Mounts ==== | ||
+ | |||
+ | After the last power outage, the NWN servers were not speaking as I hadn't mounted the NFS mounts which share the drives to one another. | ||
+ | |||
+ | NOTE: I moved this to hourly so it will reconnect after a power off / reboot in a more reasonable time. | ||
+ | |||
+ | **/ | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | #!/bin/bash | ||
+ | # | ||
+ | # check_nfs_mounts.sh | ||
+ | # quick check if we have our NFS directories mounted... if not... mount them! | ||
+ | # - dlr 2008/11/12 | ||
+ | |||
+ | MOUNTEDTEST=`df | grep '/ | ||
+ | |||
+ | if [ $MOUNTEDTEST -ne 1 ]; then | ||
+ | mount / | ||
+ | fi | ||
+ | |||
+ | MOUNTEDTEST=`df | grep '/ | ||
+ | |||
+ | if [ $MOUNTEDTEST -ne 1 ]; then | ||
+ | mount / | ||
+ | fi | ||
+ | </ | ||
==== dovecot alive? ==== | ==== dovecot alive? ==== | ||
Line 367: | Line 395: | ||
</ | </ | ||
+ | |||
+ | ===== apcupsd ===== | ||
+ | |||
+ | I am sharing the UPS with sage, so that was the easiest to install and get running (RPM package). | ||
+ | |||
+ | - Download and install the software (here is the current link: [[http:// | ||
+ | cd / | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | </ | ||
+ | - Edit the config file, the only changes I made were: (I made this one come down first since it is a slave to the actual machine monitoring the UPS, so I raised the battery level to 10 and the time left to 5 minutes) < | ||
+ | UPSTYPE net | ||
+ | DEVICE 10.0.0.2 | ||
+ | BATTERYLEVEL 10 | ||
+ | MINUTES 5 | ||
+ | </ | ||
+ | - Modified **/ | ||
+ | # apc ups monitoring daemon | ||
+ | echo ' | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | And I tested it with a simple **apcaccess** call, which gives you the status of the UPS and that looks right. | ||
===== bind ===== | ===== bind ===== | ||
Line 490: | Line 542: | ||
===== dovecot ===== | ===== dovecot ===== | ||
+ | |||
+ | ==== Upgrading ==== | ||
+ | |||
+ | - Downloaded latest version (1.2.16) | ||
+ | - Uncompress in **/ | ||
+ | - Build: | ||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | </ | ||
+ | - Fix the certificate (make a new one) | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - < | ||
+ | - Restart **dovecot** (i just killed the process and then run it again) | ||
+ | |||
+ | |||
+ | |||
+ | ==== Initial Install ==== | ||
+ | |||
* Download the source from [[http:// | * Download the source from [[http:// | ||
Line 525: | Line 602: | ||
</ | </ | ||
- | * Generate the keys and stick them where dovecot is looking for them (Config file {{computers: | + | * Generate the keys and stick them where dovecot is looking for them (Config file {{computers: |
< | < | ||
cd / | cd / | ||
Line 649: | Line 726: | ||
+ | ==== aliases ==== | ||
+ | |||
+ | Aliases can be setup in the **/ | ||
+ | |||
+ | cd /etc/mail | ||
+ | makemap hash aliases < aliases | ||
+ | / | ||
==== sendmail.cf ==== | ==== sendmail.cf ==== | ||
Line 663: | Line 747: | ||
< | < | ||
FEATURE(`dnsbl', | FEATURE(`dnsbl', | ||
- | FEATURE(`dnsbl', | ||
FEATURE(`dnsbl', | FEATURE(`dnsbl', | ||
dnl# Set and outgoing server to pass email through since we are being blocked by DNS block lists now | dnl# Set and outgoing server to pass email through since we are being blocked by DNS block lists now | ||
Line 689: | Line 772: | ||
makemap hash virtusertable < virtusertable | makemap hash virtusertable < virtusertable | ||
/ | / | ||
+ | |||
===== slimserver ===== | ===== slimserver ===== | ||
+ | |||
+ | |||
+ | |||
+ | ==== Version 7.0 ==== | ||
+ | |||
+ | Installed 2008/04/26 - dlr - latest version installed since the old one stopped working after I rebooted? | ||
+ | |||
+ | Looks like it was getting confused with the old version that was already installed... so I moved all of the files that mentioned ' | ||
+ | |||
+ | - Moved old slimserver stuff first: | ||
+ | cd ~/ | ||
+ | mkdir slimserverStuff | ||
+ | mv Cache slimserverStuff | ||
+ | mv slimserver.pref slimserverStuff | ||
+ | </ | ||
+ | - As root, install the server: | ||
+ | cd / | ||
+ | tar -zxvf squeezecenter-7.0.tgz | ||
+ | chown -R quake:mp3 squeezecenter-7.0-17793 | ||
+ | cd /usr/local | ||
+ | ln -s / | ||
+ | </ | ||
+ | - As root, install PERL modules that it needs (doesn' | ||
+ | / | ||
+ | cpan> | ||
+ | cpan> | ||
+ | </ | ||
+ | - Add this to **/ | ||
+ | # slimserver | ||
+ | echo ' | ||
+ | sudo -u quake / | ||
+ | </ | ||
+ | |||
+ | ==== Version 6.5.1 ==== | ||
+ | |||
Download from slimdevices.com [[http:// | Download from slimdevices.com [[http:// | ||
< | < | ||
Line 869: | Line 988: | ||
make install | make install | ||
</ | </ | ||
+ | |||
+ | ===== id3lib ===== | ||
+ | |||
+ | id3lib-3.8.3 ([http:// | ||
+ | |||
+ | ./configure | ||
+ | make | ||
+ | make install | ||
+ | |||
===== id3tag ===== | ===== id3tag ===== | ||
Line 1073: | Line 1201: | ||
Someone found a way through the firewall once to hit the Samba server.. so I added these lines to **/ | Someone found a way through the firewall once to hit the Samba server.. so I added these lines to **/ | ||
- | I also blocked the slim server access from outside, just seemed like a bad idea 8-) | + | I also blocked the slim server access from outside, just seemed like a bad idea 8-) (and just now added apcupsd to the list of blocked from the outside // |
<code bash> | <code bash> | ||
Line 1095: | Line 1223: | ||
iptables -A OUTPUT -o eth0 -p tcp --dport 445 -j DROP | iptables -A OUTPUT -o eth0 -p tcp --dport 445 -j DROP | ||
iptables -A OUTPUT -o eth0 -p tcp --sport 445 -j DROP | iptables -A OUTPUT -o eth0 -p tcp --sport 445 -j DROP | ||
+ | |||
+ | # block port 3551 so that apcupsd cannot be seen from outside | ||
+ | iptables -A OUTPUT -o eth0 -p tcp --dport 3551 -j DROP | ||
+ | iptables -A OUTPUT -o eth0 -p tcp --sport 3551 -j DROP | ||
# block port 9000 so slimserver can't be accesed from outside | # block port 9000 so slimserver can't be accesed from outside | ||
Line 1198: | Line 1330: | ||
make install | make install | ||
</ | </ | ||
+ | |||
+ | ===== id3v2 ===== | ||
+ | |||
+ | You need to install id3lib first, but after that, installing this program was simple: | ||
+ | |||
+ | make | ||
+ | make install | ||
+ | |||
===== IDL ===== | ===== IDL ===== |
computers/serverconfig.1204324688.txt.gz · Last modified: 2008/02/29 22:38 by david