Server titan


Hardware

ALIX 2d3, CPU: 500 MHz AMD Geode LX800, DRAM: 256 MB DDR DRAM, FLASH: 1GB

WLAN

Wistron DCMA-82: Atheros 802.11 a/b/g miniPCI wifi module

Software

FreeBSD 10.3-RELEASE (GENERIC) #0 r297264: Fri Mar 25 03:51:29 UTC 2016

installieren mit:
auf Hostsystem CF-Card an USB wird bei mir "da7"
fdisk -B -I /dev/da7
bsdlabel -B -w /dev/da7s1
newfs /dev/da7s1a
mount /dev/da7s1a /ALIX
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/10.3-RELEASE/kernel.txz -o- |tar -xzpvf- -C /ALIX
fetch ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/i386/10.3-RELEASE/base.txz -o- |tar -xzpvf- -C /ALIX
chroot /ALIX
passwd root
adduser
echo 'console="comconsole"'>>/boot/loader.conf
exit
nun CF-card in ALIX einstecken und booten!

/etc/rc.conf

root@titan:/usr/home/mike # cat /etc/rc.conf
ifconfig_vr0="inet 192.168.1.7 netmask 255.255.255.0"
inetd_enable="YES"
hostname="titan.koeppel.org"
defaultrouter="192.168.1.1"
keymap="swissgerman.iso.acc"
ftpd_enable="YES"
sshd_enable="YES"
sendmail_enable="NONE"
sendmail_msp_queue_enable="NO"
sendmail_outbound_enable="NO"
sendmail_submit_enable="NO"
fsck_y_enable="YES"
ntpd_enable="YES"
ntpd_sync_on_start="YES"
ntpdate_enable="YES"
ntpdate_flag = "-b time1.solnet.ch"
lighttpd_enable="YES"
  

/etc/resolv.conf

root@titan:/ # cat /etc/resolv.conf
nameserver 212.101.0.10
nameserver 212.101.4.253


lighttpd-1.4.48 installieren

installieren mit:
pkg install lighttpd
configuration:
root@titan:/usr/home/mike # cat /usr/local/etc/lighttpd/lighttpd.conf
## /usr/local/etc/lighttpd/lighttpd.conf
##

server.document-root = "/www"
server.port = 80

server.username  = "www"
server.groupname = "www"
server.tag = "lighttpd"

mimetype.assign = (
  ".html" => "text/html",
  ".txt" => "text/plain",
  ".jpg" => "image/jpeg",
  ".png" => "image/png",
  ".gif" => "image/gif"
)

index-file.names += (
  "index.xhtml", "index.html", "index.htm", "default.htm", "index.php"
)
check configuration:
lighttpd -t -f lighttpd.conf
check server:
lighttpd -D -f lighttpd.conf
start server:
service lighttpd start


ntp installieren

Config-file in /etc erstellen
# ee /etc/ntp.conf
mit
driftfile /var/db/ntp.drift
server time1.solnet.ch
server time2.solnet.ch
server time3.solnet.ch
NTP in /etc/rc.conf starten:
ntpd_enable="YES"
Beim system-start soll die Zeit sofort gesetzt werden:
ntpdate_enable="YES"
ntpdate_flags="-b time1.solnet.ch"


History

28.03.2018

Server aufgesetzt.

29.03.2018

lighttpd konfiguriert www pages erstellt.