Doh! The scripts are here.
Forgot to attach the scripts. Here are they.
Marcus
--
"Rhubarb is no Egyptian god." Debian GNU/Linux finger brinkmd@
Marcus Brinkmann http://www.debian.org master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de for public PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ PGP Key ID 36E7CD09
#!/bin/bash
#
# Copyright (c) 1998 - This script is hereby placed in the public domain
# by Marcus Brinkmann.
# hurd_inst <path> <repository>
#
# for example: hurd_install /gnu /home/user/download/
#
# 1 Jan 1999 - v0.0 <Marcus.Brinkmann@ruhr-uni-bochum.de>
# Original created by Marcus Brinkmann.
# You need the following packages in your repository:
#
# BASE: gnumach, hurd, bash, fileutils, libc6,
# libncurses4, libreadlineg2, timezones, sed,
# shellutils, textutils, base-files
#
# STRONGLY RECOMMENDED: bsdutils, debianutils, diff,
# hostname, less, mawk,
# ncurses-bin, grep, findutils,
# gzip, locales, zlib1g
#
# DEVEL:(all above and) libc6-dev, autoconf, automake,
# bison, cpp, flex,
# g++272, gcc, hurd-dev,
# libncurses4-dev, libreadlineg2-dev,
# make, zlib1g-dev
#
# TODO: terminal setup!
# fixing links in lib?
#
# CONFIGURATION
#
timezone="Factory"
hostname="hurd"
dpkghurd="dpkg_hurd"
# END OF CONFIGURATION
set -u -e
PS4='+$LINENO: '
err ()
{
echo "$0: $1" 1>&2
exit 1
}
# Comply to Hurd philosophy.
ln -s . ${1}/usr
# Prepare dpkg's database.
install -d -m 755 -o root -g root ${1}/var/lib/dpkg/{info,updates}
touch ${1}/var/lib/dpkg/{status,available}
cd ${1}
for package in `ls ${2}/*.deb`
do
${dpkghurd} -i ${package} --force-depends
done
# Prepare initial translator.
install -d -m 755 -o root -g root ${1}/servers/socket
touch ${1}/servers/exec
# Setup mawk.
install -d -m 755 -o root -g root ${1}/etc/alternatives
ln -s /etc/alternatives/awk ${1}/bin/awk
ln -s /usr/bin/mawk ${1}/etc/alternatives/awk
# Setup gcc (SHOULD BE FIXED IN PACKAGE).
ln -s . ${1}/local
ln -s g++272 ${1}/bin/g++
# Setup timezone.
echo ${timezone} > ${1}/etc/timezone
# Setup hostname.
echo ${hostname} > ${1}/etc/hostname
# Setup password (until we have passwd and base-passwd)
cat << _NIL_ > ${1}/etc/passwd
root::0:0:root:/root:/bin/bash
daemon:*:1:1:daemon:/usr/sbin:/bin/sh
bin:*:2:2:bin:/bin:/bin/sh
sys:*:3:3:sys:/dev:/bin/sh
sync:*:4:100:sync:/bin:/bin/sync
games:*:5:100:games:/usr/games:/bin/sh
man:*:6:100:man:/var/catman:/bin/sh
lp:*:7:7:lp:/var/spool/lpd:/bin/sh
mail:*:8:8:mail:/var/spool/mail:/bin/sh
news:*:9:9:news:/var/spool/news:/bin/sh
uucp:*:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:*:13:13:proxy:/bin:/bin/sh
majordom:*:30:31:Majordomo:/usr/lib/majordomo:/bin/sh
postgres:*:31:32:postgres:/var/postgres:/bin/sh
www-data:*:33:33:www-data:/var/www:/bin/sh
backup:*:34:34:backup:/var/backups:/bin/sh
msql:*:36:36:Mini SQL Database Manager:/var/lib/msql:/bin/sh
operator:*:37:37:Operator:/var:/bin/sh
list:*:38:38:SmartList:/var/list:/bin/sh
irc:*:39:39:ircd:/var:/bin/sh
gnats:*:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats/gnats-db:/bin/sh
alias:*:70:65534:qmail alias:/var/qmail/alias:/bin/sh
qmaild:*:71:65534:qmail daemon:/var/qmail:/bin/sh
qmails:*:72:70:qmail send:/var/qmail:/bin/sh
qmailr:*:73:70:qmail remote:/var/qmail:/bin/sh
qmailq:*:74:70:qmail queue:/var/qmail:/bin/sh
qmaill:*:75:65534:qmail log:/var/qmail:/bin/sh
qmailp:*:76:65534:qmail pw:/var/qmail:/bin/sh
nobody:*:65534:65534:nobody:/home:/bin/sh
mrjoe:x:1000:1000:Mr Joe,,,:/home/mrjoe:/bin/bash
_NIL_
# Setup group (see above)
cat << _NIL_ > ${1}/etc/group
root:*:0:
daemon:*:1:
bin:*:2:
sys:*:3:
adm:*:4:
tty:*:5:
disk:*:6:
lp:*:7:lp
mail:*:8:
news:*:9:
uucp:*:10:
proxy:*:13:
kmem:*:15:
dialout:*:20:
fax:*:21:
voice:*:22:
cdrom:*:24:
floppy:*:25:brinkmds
tape:*:26:
sudo:*:27:
audio:*:29:brinkmds
dip:*:30:
majordom:*:31:majordom
postgres:*:32:
www-data:*:33:
backup:*:34:
msql:*:36:
operator:*:37:
list:*:38:
irc:*:39:
src:*:40:
gnats:*:41:
shadow:*:42:
staff:*:50:
games:*:60:
qmail:*:70:
users:*:100:
nogroup:*:65534:
mrjoe:*:1000:
_NIL_
#!/bin/bash
#
# Copyright (c) 1998 - This script is hereby placed in the public domain
# by Marcus Brinkmann.
# Most of this script was taken from the SETUP script in Hurd CVS.
# hurd_inst2
#
# 1 Jan 1999 - v0.0 <Marcus.Brinkmann@ruhr-uni-bochum.de>
# Original created by Marcus Brinkmann.
set -v
# Make sure the filesystem is writable
fsysopts / --writable
# Set up standard passive translators
/bin/settrans -c /servers/socket/1 /hurd/pflocal
/bin/ln -s 1 /servers/socket/local
# Setup crucial devices
cd /dev
/bin/sh ./MAKEDEV std ptyp ptyq
set +v
Reply to: