Installation of SUSE 10.2 (29-12-2006)#
Base#
- use /dev/hda6 as root, use existing /home on /dev/hda8 and existing swap partition
- extra packages selected on top of "defaults" : lynx, locate, ntop, JDK5, mysql, apache2, and more of them, but I can't remember
- change runlevels, disable NFS, Samba, and a few more, enable apache2, smartd
- create users anneke, claudia, esther, tomcat, wim with correct UIDs and empty home
- download and install NVidia video driver, according to instructions on the openSUSE site
- hack openSUSE according to http://www.softwareinreview.com/cms/content/view/60/
- printer configuration (CUPS is now release 1.2)
- configure printer with YaST and print testpage ==> OK
- the CUPS interface
has changed significantly, and now offers the options to view (acces/error/page) logs and properly has authorization (when used with root) to stop/start printers, hold/cancel jobs, and also the following long wished feature:
Allow users to cancel any job (not just their own), turned this one on, and also the Allow remote administration
- webmin, download
and install version 1.31 (rpm):
titanic:/home/metskem # rpm -i /mnt/data/zips/webmin-1.310-1.noarch.rpm
Operating system is SuSE Linux
Webmin install complete. You can now login to http://titanic:10000/
as root with your root password.
- changed port to the usual 51981
Tomcat#
- download and install Tomcat 6.0.2 in /usr/local/tomcat
- cp -pR /mnt/suse10.1/usr/local/tomcat/webapps/JSPWiki /usr/local/tomcat/webapps
- change WEB-INF/jspwiki.properties : baseURL : localhost:8080 instead of 88.211.133.30
- "lsbinit" tomcat:
- cp old /etc/init.d/tomcat
- run YaST edit runlevels to enable it
- cp old /usr/local/tomcat/conf/workers.properties ==> remove again because we now use proxy_ajp
Apache2#
- add the following to httpd.conf : # include all the required stuff for krm (kruimeltje) Include /etc/apache2/krm.conf Include /etc/apache2/tomcat-connector.conf Include /etc/apache2/user.conf ExtendedStatus On
- cp /mnt/suse10.1/etc/apache2/{krm.conf tomcat-connector.conf user.conf} /etc/apache2
- cp -R /mnt/suse10.1/etc/apache2/krm-ssl /etc/apache2
- install extra apache mods with YaST sysconfig rewrite proxy proxy_ajp status info (check : status
info
ssl
)
- /srv/www/htdocs: copy "old" index.html (cp /mnt/suse10.1//srv/www/htdocs/index.html /srv/www/htdocs)
mod_jk / proxy_ajp#
Installation of the apache mod_jk gives some problems, after the above configuration, the apache2 says during startup : Module "jk" is not installed, ignoring. Check the APACHE_MODULES setting in /etc/sysconfig/apache2. Syntax OK In the previous linux I used (SUSE 10.1 with apache 2.2.0) I used the "old" AJP13 connector. When you search with YaST, you don't find the apache mod_jk anymore to install. I also cannot find a binary download at http://tomcat.apache.org/connectors-doc/
. Toch maar eens kijken of we het met mod_proxy / mod_proxy_ajp kunnen oplossen.
Zie ook de Novell change info : https://secure-support.novell.com/KanisaPlatform/Publishing/585/3744935_f.SAL_Public.html
De /etc/apache2/tomcat-connector inhoud volledig vervangen door :
ProxyPass /JSPWiki/ ajp://localhost:8009/JSPWiki/
ProxyPass /krm/ ajp://localhost:8009/krm/
Restart apache and off we go ! : test with JSPWiki
SSH#
- customize SSH, change /etc/ssh/sshd_config : Protocol 2 PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys
MySQL (version 5.0.26)#
titanic:/tmp # /etc/init.d/mysql start Creating MySQL privilege database... Installing all prepared tables Fill help tables PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h titanic.computerhok.nl password 'new-password' See the manual for more instructions. You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at http://shop.mysql.com Updating MySQL privilege database... mysql.columns_priv OK mysql.db OK mysql.func OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.host OK mysql.proc OK mysql.procs_priv OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK ERROR 1060 (42S21) at line 22: Duplicate column name 'File_priv' Starting service MySQL done
- /usr/bin/mysqladmin -u root password <the pw>
- /usr/bin/mysqladmin -u root -h titanic.computerhok.nl password <the pw>
- with YaST ==> runlevel editor MySQL enablen
- with webmin change listen address from any to 127.0.0.1
TO DO (install and/or test)#
- migrate database with mysqldump
- migrate permission tables ??
- install/test/check ntop (ntop -A -u wwwrun)
- install gkrellm
- install webmin, configure/copy fw config, check with http://www.grc.com
- copy /etc/webmin/firewall/iptables.save ?
- K3B suppoort for MP3 oke ?
- ktorrent oke ?
- ftp services
- Gallery 2
- sysconfig: cleanup tmp and tomcat dirs regularly (MAX_DAYS_IN_TMP MAX_DAYS_IN_LONG_TMP ?)
- ? /srv/www/htdocs/robots.txt ?
Steps for the "final step over"#
- replace symlink /var/jspwiki with real directory with contents
- copy tomcat and apache logfiles (/var/log/apache2 /usr/local/tomcat/logs/krm)
