========================================================== Virtuelles Unix Labor - Hardware- und System-Setup - Hubert Feyrer ========================================================== 1. Vorhandene Hardware * vulab: Dell PC, Verwaltungs- und Zugangsrechner des VULab * vulab1 vulab2: Sun SPARCstation 4: Übungsrechner des VULab * Switch & Kabel 2. Setup 2.1 Aufstellung & Verkabelung +-----vulab2 wm0 ex0 | ...--vulab-----switch-----vulab1 ---------------------------------------- 2.2 IP- und MAC-Adressen IP MAC vulab1: 10.0.0.1 08:00:20:7e:0c:2c vulab2: 10.0.0.2 08:00:20:7d:ac:8e vulab.ex0: 10.0.0.250 00:60:08:6a:22:7c vulab.wm0 194.95.108.3 00:11:11:20:b0:17 2.3 Rechnerkonfiguration 2.3.1 Server: vulab (rfhinf045) apache/PHP, postgresql, IPfilter/NAT/Port Redirection fuer ssh, ftp, telnet, perl, NetBSD, /vulab, Netboot der Clients (rarpd, dhcpd, ...), at (leeres /var/at/at.deny, kein at.allow) deployment -> "deployment" netboot -> "netboot-doku.txt" Operating System: NetBSD 2.0/i386 rsh/rlogin brauchen Aenderung aus http://mail-index.netbsd.org/source-changes/2004/10/16/0000.html (k.a. ob das noch in 2.0 reinkommt...) Packages: apache-1.3.31nb2 ap-php-4.2.3 # vi httpd.conf php-4.2.3nb2 php-pgsql-4.2.3nb1 # vi php.ini postgresql-7.4.2nb1 phppgadmin-2.4.2 # vi ... p5-DBI-1.30 # ?!? p5-DBD-postgresql-1.21 # ?!? Setup nach Installation der Pakete: # Datenbank # mkdir ~pgsql vi /etc/rc.conf pgsql=yes pgsql_flags="-i" ln -s /usr/pkg/etc/rc.d/pgsql /etc/rc.d sh /etc/rc.d/pgsql su pgsql -c "createuser -A -d -P -E -e vulab" cd .../vulab/code/backup make createDB make restore # Zugang zur DB: # vi ~pgsql/data/pg_hba.conf, hinzufuegen: host all all 194.95.108.3 255.255.255.255 trust # Webserver # vi /usr/pkg/etc/httpd/httpd.conf # Add at end: LoadModule php4_module lib/httpd/mod_php4.so AddType application/x-httpd-php .php Options Indexes FollowSymLinks MultiViews DirectoryIndex index.php index.html DocumentRoot "/vulab/code/public_html/" vi /usr/pkg/etc/php.ini # Add at end: extension=gd.so extension=pgsql.so 2.3.2 Lab-Clients: vulab1 & vulab2 Je nach Aufgabe, siehe "deployment" -- $Id: hardware,v 1.12 2012-12-21 23:32:18 feyrer Exp $