AventineSolutions.org server scratchpad

From Aventine Solutions

Jump to: navigation, search

After some more hard drive failures, we started installing a new system with new hard drives on 28-November 2011 using Fedora 16.

The /export filesystem is now a software RAID 5 array. Old and new drives are used together with one spare.


Contents

[edit] Bring up the databases

$ /etc/init.d/mysqld start
$ /etc/init.d/mysqld status
mysqld (pid 5873) is running...
$ /etc/init.d/postgresql start
$ /etc/init.d/postgresql status
postmaster (pid 5955 5954 5953 5951 5946) is running...

[edit] Bring up Cyrus IMAP and Fetchmail

Need good imapd.conf and cyrus.conf in /etc.

Plain text login must be allowed in imapd.conf:

sasl_pwdcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
allowplaintext: yes

saslauthd must be installed and the authorization method set to pam in sysconfig/saslauthd:

METH=pam

... running and set-up in the boot sequence:

$ service saslauthd start
$ chkconfig --levels 345 saslauthd on

... then, the same for cyrus-imapd:

$ service cyrus-imapd start
$ chkconfig --levels 345 cyrus-imapd on

Not all of this applies anymore, since fetchmail is no longer used:

$ /etc/init.d/cyrus-imapd status
cyrus-master (pid 5059) is running...
$ ps -fu cyrus
$ su - cyrus
$ ~/scripts/restart-all.sh
$ exit
$ ps -fu cyrus
[root@quas]/export/home/matthew/Desktop/backups/VMWare# ps -fu cyrus
UID        PID  PPID  C STIME TTY          TIME CMD
cyrus     5059     1  0 10:34 ?        00:00:00 /usr/lib/cyrus-imapd/cyrus-master -d
cyrus     5063     1  0 10:34 ?        00:00:00 idled
cyrus     5065  5059  0 10:34 ?        00:00:00 imapd
cyrus     5067  5059  0 10:34 ?        00:00:00 imapd
cyrus     5068  5059  0 10:34 ?        00:00:00 imapd
cyrus     5069  5059  0 10:34 ?        00:00:00 imapd
cyrus     5070  5059  0 10:34 ?        00:00:00 imapd
cyrus     5071  5059  0 10:34 ?        00:00:00 imapd
cyrus     5072  5059  0 10:34 ?        00:00:00 imapd
cyrus     5073  5059  0 10:34 ?        00:00:00 imapd
cyrus     5074  5059  0 10:34 ?        00:00:00 imapd
cyrus     5075  5059  0 10:34 ?        00:00:00 imapd
cyrus     5114     1  0 10:36 ?        00:00:00 /usr/bin/fetchmail -L /export/home/cyrus/log/fetchmail-aventinesolutions.nl.log
cyrus     5117     1  0 10:36 ?        00:00:00 /usr/bin/fetchmail -L /export/home/cyrus/log/fetchmail-chello.nl.log
cyrus     5176     1  0 10:39 ?        00:00:00 /usr/bin/fetchmail -L /export/home/cyrus/log/fetchmail-gmail.com.log
cyrus     5179     1  0 10:39 ?        00:00:00 /usr/bin/fetchmail -L /export/home/cyrus/log/fetchmail-web.de.log
cyrus     5728  5059  0 12:26 ?        00:00:00 imapd
cyrus     5729  5059  0 12:26 ?        00:00:00 imapd
cyrus     5730  5059  0 12:26 ?        00:00:00 imapd
cyrus     5731  5059  0 12:26 ?        00:00:00 imapd
cyrus     5732  5059  0 12:26 ?        00:00:00 imapd
cyrus     5733  5059  0 12:26 ?        00:00:00 imapd
cyrus     6478  5059  0 14:52 ?        00:00:00 lmtpd

[edit] Bring up DAAP daemon

Need a good mt-daapd.conf in /etc.

$ service mt-daapd start
$ chkconfig --levels 345 mt-daapd on
$ service mt-daapd status
mt-daapd (pid 7154 7153) is running...
$ ps -ef | grep daap
nobody    7153     1  0 15:57 pts/0    00:00:00 /usr/local/sbin/mt-daapd -d 1
nobody    7154     1  0 15:57 pts/0    00:00:00 /usr/local/sbin/mt-daapd -d 1

[edit] Bring up AppleTalk

# note that it's OK if all the services don't come up
$ service atalk start
Starting AppleTalk services: 
  Starting atalkd:                                         [  OK  ]
  Registering quas:Workstation: nbp_rgstr: Connection timed out
Can't register "quas:Workstation"@*
                                                           [FAILED]
  Registering quas:netatalk: nbp_rgstr: Connection timed out
Can't register "quas:netatalk"@*
                                                           [FAILED]
  Starting papd:                                           [  OK  ]
  Starting cnid_metad:                                     [  OK  ]
  Starting afpd:                                           [  OK  ]
$ service atalk status
atalkd (pid 8371) is running...

[edit] Bring up VNC server

$ service vncserver start
Starting VNC server: 3:matthew 
New 'quas.mine.nu:3 (matthew)' desktop is quas.mine.nu:3

Starting applications specified in /export/home/matthew/.vnc/xstartup
Log file is /export/home/matthew/.vnc/quas.mine.nu:3.log

4:matthew 
New 'quas.mine.nu:4 (matthew)' desktop is quas.mine.nu:4

Starting applications specified in /export/home/matthew/.vnc/xstartup
Log file is /export/home/matthew/.vnc/quas.mine.nu:4.log

5:matthew 
New 'quas.mine.nu:5 (matthew)' desktop is quas.mine.nu:5

Starting applications specified in /export/home/matthew/.vnc/xstartup
Log file is /export/home/matthew/.vnc/quas.mine.nu:5.log

                                                           [  OK  ]
$ service vncserver status
Xvnc (pid 7517 7396 7360) is running...

[edit] Bring up Tomcat6 and Apache

$ service tomcat6 start
Starting Tomcat6 server: Using CATALINA_BASE:   /usr/local/share/tomcat
Using CATALINA_HOME:   /usr/local/share/tomcat
Using CATALINA_TMPDIR: /usr/local/share/tomcat/temp
Using JRE_HOME:       /usr/local/jdk
$ service httpd start
Stopping httpd:                                            [  OK  ]
Starting httpd: Apache/2.2.6 mod_ssl/2.2.6 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server aventinesolutions.mine.nu:443 (RSA)
Enter pass phrase:

OK: Pass Phrase Dialog successful.
                                                           [  OK  ]

[edit] Test web sites

Personal tools