diff options
author | dwhite <dwhite@FreeBSD.org> | 1999-10-08 04:00:21 +0000 |
---|---|---|
committer | dwhite <dwhite@FreeBSD.org> | 1999-10-08 04:00:21 +0000 |
commit | 7bbfacece4e8e603e2d65f17d8b94ab81aa21484 (patch) | |
tree | 80fd7fcbccbecbea1ef258a71897c6fd38e735b3 /release | |
parent | 46994cbf2d037422e5c2ce8fa9a559bf8b336bc9 (diff) | |
download | FreeBSD-src-7bbfacece4e8e603e2d65f17d8b94ab81aa21484.zip FreeBSD-src-7bbfacece4e8e603e2d65f17d8b94ab81aa21484.tar.gz |
Add a new floppy type, install. This type builds a disk that can
slice, partition, newfs, and install FreeBSD from a tarball on a remote server.
Handy for doing mass-installs for server farms.
Documentation following shortly.
Diffstat (limited to 'release')
47 files changed, 1635 insertions, 2 deletions
diff --git a/release/picobsd/build/build b/release/picobsd/build/build index 8a999f6..d5d3952 100755 --- a/release/picobsd/build/build +++ b/release/picobsd/build/build @@ -52,6 +52,7 @@ dial -D 1600 init 4096 32768 router -R 820 oinit 3072 32768 net -N 2200 init 4096 32768 isp -I 2400 init 4096 32768 +install -S 2400 init 4096 4096 custom -C 2400 init 8192 32768 __eof__ } diff --git a/release/picobsd/build/stage1 b/release/picobsd/build/stage1 index 285f82f..54265ff 100755 --- a/release/picobsd/build/stage1 +++ b/release/picobsd/build/stage1 @@ -212,8 +212,9 @@ cp kernel.gz /mnt/kernel.gz || fail $? kernel_compress gzip -9cv ${MFS_NAME} > /mnt/${MFS_NAME}.gz || fail $? mfs_compress -mkdir /mnt/boot -mkdir /mnt/boot/defaults +if [ -d /mnt/boot/defaults ] ; then + mkdir -p /mnt/boot/defaults +fi cp /boot/loader . # Make sure we have the a.out stubs we need... # This is deprecated for 3.X diff --git a/release/picobsd/install/Makefile.mfs b/release/picobsd/install/Makefile.mfs new file mode 100644 index 0000000..ac567da --- /dev/null +++ b/release/picobsd/install/Makefile.mfs @@ -0,0 +1,46 @@ +# +# $Id: Makefile,v 1.2.2.1 1999/05/09 22:04:07 abial Exp $ +# + +DESTDIR?=/mnt + +STAND_LINKS= bin sbin +USR_LINKS= bin sbin libexec +PL_LOCALE_LINKS= pl polish +MY_DEVS= std tun2 cuaa0 cuaa1 cuaa2 vty10 fd0 wd0s1h pty0 wd0 wd1 wd2 wd3 da0 da1 da2 da3 da4 da5 da6 bpf4 + +all: tree links files + +tree: + mtree -deU -f mfs.mtree -p ${DESTDIR} + +links: tree + (cd ${DESTDIR}; \ + for i in ${STAND_LINKS}; \ + do \ + ln -s /stand $${i}; \ + done; \ + cd var/run; \ + ln -s /dev/null log; \ + cd ../../usr; \ + for i in ${USR_LINKS}; \ + do \ + ln -s /stand $${i}; \ + done; \ + cd share/misc;\ + ln -s /etc/termcap termcap; ) + +files: tree + (cd ${DESTDIR}; \ + cp /sbin/dhclient-script stand/; \ + cp -Rp /boot . ; ) + + +# We don't do it under 'all' because it's needed only on non-DEVFS systems +devnodes: tree + (cd ${DESTDIR}/dev; \ + ln -s /dev/MAKEDEV; \ + ./MAKEDEV ${MY_DEVS}; \ + rm MAKEDEV) + +clean: diff --git a/release/picobsd/install/PICOBSD b/release/picobsd/install/PICOBSD new file mode 100644 index 0000000..a23ff51 --- /dev/null +++ b/release/picobsd/install/PICOBSD @@ -0,0 +1,87 @@ +# +# $Id: PICOBSD,v 1.8.2.2 1999/02/15 02:49:24 des Exp $ +# + +machine "i386" +#cpu "I386_CPU" +#cpu "I486_CPU" +#cpu "I586_CPU" +cpu "I686_CPU" +ident PICOBSD +maxusers 10 + +options MATH_EMULATE #Support for x87 emulation +options INET #InterNETworking +options FFS #Berkeley Fast Filesystem +options FFS_ROOT +# options NFS #Network Filesystem +options MFS +options MFS_ROOT +options MSDOSFS #MSDOS Filesystem +# options "EXT2FS" +options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!] +options "NO_F00F_HACK" + +config kernel root on fd0a + +controller isa0 +controller pci0 + +controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 +disk fd0 at fdc0 drive 0 +#disk fd1 at fdc0 drive 1 + +options "CMD640" # work around CMD640 chip deficiency +controller wdc0 at isa? port "IO_WD1" bio irq 14 flags 0xb0ffb0ff +disk wd0 at wdc0 drive 0 +disk wd1 at wdc0 drive 1 + +controller wdc1 at isa? port "IO_WD2" bio irq 15 flags 0xb0ffb0ff +disk wd2 at wdc1 drive 0 +disk wd3 at wdc1 drive 1 + +#options ATAPI #Enable ATAPI support for IDE bus +#options ATAPI_STATIC #Don't do it as an LKM +#device acd0 #IDE CD-ROM + +# syscons is the default console driver, resembling an SCO console + +controller atkbdc0 at isa? port IO_KBD tty +device atkbd0 at isa? tty irq 1 +device vga0 at isa? port ? conflicts +device sc0 at isa? tty + +device npx0 at isa? port IO_NPX irq 13 + +device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 +device sio1 at isa? port "IO_COM2" tty irq 3 +device sio2 at isa? disable port "IO_COM3" tty irq 5 +device sio3 at isa? disable port "IO_COM4" tty irq 9 + +#device ppc0 at isa? port? net irq 7 +#controller ppbus0 +#device nlpt0 at ppbus? +#device plip0 at ppbus? +#device ppi0 at ppbus? + +# Order is important here due to intrusive probes, do *not* alphabetize +# this list of network interfaces until the probes have been fixed. +# Right now it appears that the ie0 must be probed before ep0. See +# revision 1.20 of this file. +device de0 +device fxp0 + +#device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 +#device ed1 at isa? port 0x300 net irq 10 iomem 0xd0000 +#device ep0 at isa? port 0x300 net irq 10 +#device ep1 at isa? port 0x280 net irq 5 +#device ie0 at isa? port 0x300 net irq 5 iomem 0xd0000 +#device ie1 at isa? port 0x360 net irq 7 iomem 0xd0000 + +pseudo-device loop +pseudo-device ether +# pseudo-device tun 2 +pseudo-device vn +pseudo-device pty 16 +#pseudo-device gzip # Exec gzipped a.out's +pseudo-device bpfilter 4 diff --git a/release/picobsd/install/crunch1/Makefile b/release/picobsd/install/crunch1/Makefile new file mode 100644 index 0000000..ab87657 --- /dev/null +++ b/release/picobsd/install/crunch1/Makefile @@ -0,0 +1,44 @@ +# +# $Id: Makefile,v 1.3 1999/01/19 23:12:50 abial Exp $ +# +SRC?=/usr/src + +all: crunch + +crunch: +# @if [ ! -f /usr/src/usr.bin/passwd/.picobsd.patched ]; then \ +# cat passwd.diff|(cd /usr/src/usr.bin/passwd; patch -p0); \ +# touch /usr/src/usr.bin/passwd/.picobsd.patched; \ +# fi + @cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >crunch1.conf + @crunchgen ./crunch1.conf + @${MAKE} -f crunch1.mk -DNOPAM all \ + "CFLAGS=${CFLAGS} -DNOPAM -DRELEASE_CRUNCH -DCRUNCHED_BINARY -DNOSECURE -DNOCRYPT" #2>&1 >/dev/null + +clean: +# @if [ -f /usr/src/usr.bin/passwd/.picobsd.patched ]; then \ +# cat passwd.diff|(cd /usr/src/usr.bin/passwd; patch -R -p0); \ +# rm /usr/src/usr.bin/passwd/.picobsd.patched; \ +# fi + rm -f *.o *.stub *.lo *_stub.c *.mk \ + crunch.cache \ + crunch.mk \ + crunch.c \ + crunch1* \ + crunch \ + .tmp_* \ + *.gz + +install: + cp crunch1 /mnt/stand/crunch + chmod 555 /mnt/stand/crunch + for i in `crunchgen -l crunch1.conf` ; \ + do \ + ln /mnt/stand/crunch /mnt/stand/$${i}; \ + done + rm /mnt/stand/crunch + # Install the MIB files + #cp mibs/*.txt /mnt/usr/local/share/snmp/mibs/ + + +.include <bsd.prog.mk> diff --git a/release/picobsd/install/crunch1/crunch.conf b/release/picobsd/install/crunch1/crunch.conf new file mode 100644 index 0000000..3984f1c --- /dev/null +++ b/release/picobsd/install/crunch1/crunch.conf @@ -0,0 +1,63 @@ +# +# $Id: crunch.conf,v 1.5.2.2 1999/05/07 10:03:06 abial Exp $ +# +# NOTE: the string "/usr/src" will be automatically replaced with the +# correct value set in 'build' script - you should change it there + +# other sources +srcdirs /usr/src/bin +srcdirs /usr/src/sbin/i386 +srcdirs /usr/src/sbin +srcdirs /usr/src/usr.bin +srcdirs /usr/src/gnu/usr.bin +srcdirs /usr/src/usr.sbin +srcdirs /usr/src/libexec +# sources for ns & vm +srcdirs ../../tinyware + + +progs sh test awk cat chflags chmod chown cp cpio date dd +# progs sh test awk cat chflags chmod chown cp cpio date dd dev_mkdb +progs df dhclient disklabel echo fdisk fetch getty grep minigzip +progs hostname ifconfig init ln login ls mkdir mknod msg +progs more mount newfs pwd mount_std pwd_mkdb +# progs mount mount_ext2fs mount_cd9660 mount_nfs msg newfs ns passwd pwd pwd_mkdb mount_std +# progs reboot rm route stty sysctl syslogd tr umount +progs reboot rm route stty sysctl tr umount +# progs vm w + +#progs sh test echo hostname ln login getty stty +#progs msg kget reboot +#progs init ifconfig df sps cat +## progs cp rm mknod chmod chown mkdir ls syslogd +#progs cp rm mknod chmod chown mkdir ls +#progs sysctl route pwd_mkdb dev_mkdb +#progs mount umount +#progs kill mount_std grep tr awk newfs fetch +#progs pwd more +##progs passwd date +#progs date fdisk disklabel +#progs mount_cd9660 mount_nfs ping traceroute +#progs tar gzip cpio dhclient + +#ln mount_cd9660 cd9660 +# ln mount_nfs nfs +ln test [ +ln sh -sh +ln mount_std procfs +ln mount_std mount_procfs +ln msg dmesg +#ln ns netstat +ln minigzip gunzip +ln minigzip zcat +ln minigzip gzip +ln chown chgrp + +# libs -lncurses -lmytinfo -lipx -lz -lpcap -lalias -lwrap +#libs -lncurses -lmytinfo -lipx -lz -lpcap +# libs -lmytinfo -lz -lpcap -lipx +libs -lmytinfo -lz -lpcap -lipx +# libs -ledit -lutil -lmd -lcrypt -lmp -lgmp -lm -lkvm +libs -ledit -lutil -lcrypt -lm +libs -lgnuregex -lftpio +#libs -lradius # used by ppp diff --git a/release/picobsd/install/floppy.tree.exclude b/release/picobsd/install/floppy.tree.exclude new file mode 100644 index 0000000..5f412ef --- /dev/null +++ b/release/picobsd/install/floppy.tree.exclude @@ -0,0 +1 @@ +CVS/* diff --git a/release/picobsd/install/floppy.tree/boot.config b/release/picobsd/install/floppy.tree/boot.config new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/release/picobsd/install/floppy.tree/boot.config diff --git a/release/picobsd/install/floppy.tree/etc/disktab b/release/picobsd/install/floppy.tree/etc/disktab new file mode 100644 index 0000000..7575ba6 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/disktab @@ -0,0 +1,87 @@ +# +# Floppy formats: +# +# To make a filesystem on a floppy: +# fdformat [-f <size>] fd<drive>[.<size>] +# disklabel -B -r -w fd<drive>[.<size>] fd<size> +# newfs <opts> fd<drive>[.<size>] +# +# with <opts>: +# -t 2 - two heads +# -u 9|15|18 - sectors per track +# (using the default value of 1/4096 is not much useful for floppies) +# -l 1 - interleave 1 (for most floppies) +# -i 65536 - bytes of data per i-node +# (the default -i value will render you with a floppy wasting way +# too much space in i-node areas) +# + +fd360:\ + :ty=floppy:se#512:nt#2:rm#300:ns#9:nc#40:\ + :pa#720:oa#0:ba#4096:fa#512:\ + :pb#720:ob#0:bb#4096:fb#512:\ + :pc#720:oc#0:bc#4096:fc#512: + +fd720:\ + :ty=floppy:se#512:nt#2:rm#300:ns#9:nc#80:\ + :pa#1440:oa#0:ba#4096:fa#512:\ + :pb#1440:ob#0:bb#4096:fb#512:\ + :pc#1440:oc#0:bc#4096:fc#512: + +fd1200|floppy5|5in|5.25in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#360:ns#15:nc#80:\ + :pa#2400:oa#0:ba#4096:fa#512:\ + :pb#2400:ob#0:bb#4096:fb#512:\ + :pc#2400:oc#0:bc#4096:fc#512: + +fd1440|floppy|floppy3|3in|3.5in High Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\ + :pa#2880:oa#0:ba#4096:fa#512:\ + :pb#2880:ob#0:bb#4096:fb#512:\ + :pc#2880:oc#0:bc#4096:fc#512: + +fd1024|floppy0|3.5in Special Density Floppy:\ + :ty=floppy:se#512:nt#2:rm#300:ns#16:nc#64:\ + :pa#2048:oa#0:ba#4096:fa#512:\ + :pb#2048:ob#0:bb#4096:fb#512:\ + :pc#2048:oc#0:bc#4096:fc#512: + +# a == root +# b == swap +# c == d == whole disk +# e == /var +# f == scratch +# h == /usr + +cp3100new|Connor Peripherals 100MB IDE, with a different configuration:\ + :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \ + :pa#15840:oa#0:ta=4.2BSD:ba#4096:fa#512: \ + :pb#24288:ob#15840:tb=swap: \ + :pc#202224:oc#0: \ + :pd#202224:od#0: \ + :pe#15840:oe#40128:te=4.2BSD:be#4096:fe#512: \ + :pg#15840:og#55968:tg=4.2BSD:bg#4096:fg#512: \ + :ph#130416:oh#71808:th=4.2BSD:bh#4096:fh#512: + +sony650|Sony 650 MB MOD|\ + :ty=removable:dt=SCSI:se#512:nt#1:ns#31:nc#18600:ts#1:rm#4800:\ + :pc#576600:oc#0:\ + :pa#576600:oa#0:ta=4.2BSD:ba#8192:fa#1024: + +mta3230|mo230|IBM MTA-3230 230 Meg 3.5inch Magneto-Optical:\ + :ty=removeable:dt=SCSI:rm#3600:\ + :se#512:nt#64:ns#32:nc#216:sc#2048:su#444384:\ + :pa#444384:oa#0:ba#4096:fa#0:ta=4.2BSD:\ + :pc#444384:oc#0: + +minimum:ty=mfs:se#512:nt#1:rm#300:\ + :ns#2880:nc#1:\ + :pa#2880:oa#0:ba#4096:fa#512:\ + :pc#2880:oc#0:bc#4096:fc#512: + +zip100|zip 100:\ + :ty=removable:se#512:nc#96:nt#64:ns#32:\ + :pa#196608:oa#0:ba#4096:fa#512:\ + :pb#196608:ob#0:bb#4096:fb#512:\ + :pc#196608:oc#0:bc#4096:fc#512: + diff --git a/release/picobsd/install/floppy.tree/etc/doinstall b/release/picobsd/install/floppy.tree/etc/doinstall new file mode 100755 index 0000000..1e29e19 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/doinstall @@ -0,0 +1,112 @@ +#!/bin/sh +# +# PicoBSD installer script for FreeBSD +# +# Doug White +# $FreeBSD$ + +#### CONFIGURATION + +# URL to image tarball, fed to fetch(1) +image_url="ftp://YOUR.SERVER.HERE/pub/fbsdimage.tgz" + +# Target disk driver to fdisk -e +target_disk="wd0" + +#### END CONFIGURATION + +# Immediately abort on error +set -e + +# Do the install + +echo "==> Partitioning disk" +fdisk -e ${target_disk} + +echo "==> Disklabeling disk" +/etc/prepdisk ${target_disk} + +echo "==> Creating filesystem" +newfs /dev/r${target_disk}s1a > /dev/null + +echo "==> Mounting new filesystem" +mount /dev/${target_disk}s1a /mnt + +echo "==> Installing disk image" +if [ "X${image_url}" = "X" ] ; then + echo "No URL specified!" +else + echo "=====> From: ${image_url}" + cd /mnt + fetch -a -o - ${image_url} | gzip -d | cpio -idmu --quiet +fi + +# Some examples of post-install tweaking + +# The install floppy always DHCPs an address. If you want to make that +# address permanent on the system, use this code bit. + +#echo "==> Saving IP address" +#set `ifconfig fxp0 | grep inet` +#echo "ifconfig_fxp0=\"inet $2 netmask $4\"" >> /mnt/etc/rc.conf +#echo "=====> IP Address is $2" + +# If you enable different apps based on environment, here's an example. +# For 10.2.X.X networks, enable AMD. + +#echo "==> Checking if amd should be enabled" +#IFS=. +#set $2 +#if [ "X$1" = "X10" -a "X$2" = "X1" ] ; then +# echo "=====> Enabling amd" +# echo "amd_enable=\"YES\"" >> /mnt/etc/rc.conf +#fi + +#echo "==> Setting default router" +#echo "defaultrouter=\"10.1.1.3\"" >> /mnt/etc/rc.conf + +# Grab the DNS servers from the local DHCP configuration. + +#echo "==> Configuring name resolution" +#cp /etc/resolv.conf /mnt/etc + +# Prompt a menu to install a single or multiprocessor kernel. On our +# main image, we have two kernels, kernel-SMP and kernel-NOSMP. This +# menu drops a symlink that the bootblocks follow to the proper kernel. +# The user can enter a name for a different kernel if desired. + +#echo "==> Linking kernel" + +#DOKERN=0 +#cd /mnt +#chflags noschg kernel +#rm -f kernel +# +#while [ "X$DOKERN" = "X0" ] ; do +# +# DOKERN=1 +# +# echo " Please specify which kernel to use:" +# echo " 1. Uniprocessor" +# echo " 2. Multiprocessor (OK for SMP equipped systems with one CPU)" +# echo " Or type the name of the kernel you wish to use" +# read -p "Select >" KERN +# +# +# if [ "X$KERN" = "X1" ] ; then +# ln -s kernel-NOSMP kernel +# echo "=====> Uniprocessor kernel selected" +# elif [ "X$KERN" = "X2" ] ; then +# ln -s kernel-SMP kernel +# echo "=====> SMP kernel selected" +# elif [ -f $KERN ] ; then +# ln -s $KERN kernel +# echo "=====> User supplied kernel $KERN selected" +# else +# echo "*** Unknown kernel $KERN" +# KERN=0 +# fi +# +#done + +echo "==> Install complete!" diff --git a/release/picobsd/install/floppy.tree/etc/fstab b/release/picobsd/install/floppy.tree/etc/fstab new file mode 100644 index 0000000..64d34ca --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/fstab @@ -0,0 +1,4 @@ +#proc /proc procfs rw 0 0 +#/dev/fd0c /start_floppy ufs rw 1 1 +#/dev/wd0s1 /dos msdos rw 0 0 +#/dev/wcd0c /cdrom cd9660 ro,noauto 0 0 diff --git a/release/picobsd/install/floppy.tree/etc/gettytab b/release/picobsd/install/floppy.tree/etc/gettytab new file mode 100644 index 0000000..90562ac --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/gettytab @@ -0,0 +1,40 @@ +# from: @(#)gettytab 5.14 (Berkeley) 3/27/91 +# +default:\ + :cb:ce:ck:lc:fd#1000:cl:im=\r\nPicoBSD (%h) (%t)\r\n\r\n:sp#1200: + +P|Pc|Pc console:\ + :ht:np:sp#115200: + +# +# Fixed speed entries +2|std.9600|9600-baud:\ + :np:sp#9600: +g|std.19200|19200-baud:\ + :np:sp#19200: +std.38400|38400-baud:\ + :np:sp#38400: +std.57600|57600-baud:\ + :np:sp#57600: +std.115200|115200-baud:\ + :np:sp#115200: + +# +# Entry specifying explicit device settings. See termios(4) and +# /usr/include/termios.h, too. The entry forces the tty into +# CLOCAL mode (so no DCD is required), and uses Xon/Xoff flow control. +# +# cflags: CLOCAL | HUPCL | CREAD | CS8 +# oflags: OPOST | ONLCR | OXTABS +# iflags: IXOFF | IXON | ICRNL | IGNPAR +# lflags: IEXTEN | ICANON | ISIG | ECHOCTL | ECHO | ECHOK | ECHOE | ECHOKE +# +# The `0' flags don't have input enabled. The `1' flags don't echo. +# (Echoing is done inside getty itself.) +# +local.9600|CLOCAL tty @ 9600 Bd:\ + :c0#0x0000c300:c1#0x0000cb00:c2#0x0000cb00:\ + :o0#0x00000007:o1#0x00000002:o2#0x00000007:\ + :i0#0x00000704:i1#0x00000000:i2#0x00000704:\ + :l0#0x000005cf:l1#0x00000000:l2#0x000005cf:\ + :sp#9600: diff --git a/release/picobsd/install/floppy.tree/etc/group b/release/picobsd/install/floppy.tree/etc/group new file mode 100644 index 0000000..abbd733 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/group @@ -0,0 +1,19 @@ +wheel:*:0:root,user +daemon:*:1:daemon +kmem:*:2:root +sys:*:3:root +tty:*:4:root +operator:*:5:root +mail:*:6: +bin:*:7: +news:*:8: +man:*:9: +games:*:13: +staff:*:20:root,user +guest:*:31:root +uucp:*:66: +xten:*:67:xten +dialer:*:68: +network:*:69: +nogroup:*:65533: +nobody:*:65534: diff --git a/release/picobsd/install/floppy.tree/etc/host.conf b/release/picobsd/install/floppy.tree/etc/host.conf new file mode 100644 index 0000000..c67b871 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/host.conf @@ -0,0 +1,3 @@ +# $Id: host.conf,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +hosts +bind diff --git a/release/picobsd/install/floppy.tree/etc/inetd.conf b/release/picobsd/install/floppy.tree/etc/inetd.conf new file mode 100644 index 0000000..c7c50de --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/inetd.conf @@ -0,0 +1,21 @@ +# +# Internet server configuration database +# +# @(#)inetd.conf 5.4 (Berkeley) 6/30/90 +# +telnet stream tcp nowait root /usr/libexec/telnetd telnetd +# +# "Small servers" -- used to be standard on, but we're more conservative +# about things due to Internet security concerns. Only turn on what you +# need. +# +#daytime stream tcp nowait root internal +#daytime dgram udp wait root internal +#time stream tcp nowait root internal +#time dgram udp wait root internal +#echo stream tcp nowait root internal +#echo dgram udp wait root internal +#discard stream tcp nowait root internal +#discard dgram udp wait root internal +#chargen stream tcp nowait root internal +#chargen dgram udp wait root internal diff --git a/release/picobsd/install/floppy.tree/etc/login.conf b/release/picobsd/install/floppy.tree/etc/login.conf new file mode 100644 index 0000000..17bfb13 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/login.conf @@ -0,0 +1,120 @@ +# This file controls resource limits, accounting limits and +# default user environment settings. +# +# $Id: login.conf,v 1.2.2.1 1999/04/30 18:48:09 hoek Exp $ +# + + +# Authentication methods + +auth-defaults:\ + :auth=passwd: + +auth-root-defaults:\ + :auth-login=passwd:\ + :auth-rlogin=passwd:\ + +auth-ftp-defaults:\ + :auth=passwd: + +# Example defaults +# These settings are used by login(1) by default for classless users +# Note that entries like "cputime" set both "cputime-cur" and "cputime-max" + +default:\ + :cputime=infinity:\ + :datasize-cur=22M:\ + :stacksize-cur=8M:\ + :memorylocked-cur=10M:\ + :memoryuse-cur=30M:\ + :filesize=infinity:\ + :coredumpsize=infinity:\ + :maxproc-cur=64:\ + :openfiles-cur=64:\ + :priority=0:\ + :requirehome@:\ + :umask=022:\ + :tc=auth-defaults: + + +# +# standard - standard user defaults +# +standard:\ + :copyright=/etc/COPYRIGHT:\ + :welcome=/etc/motd:\ + :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,EDITOR=/usr/bin/ee:\ + :path=~/bin /bin /usr/bin:\ + :nologin=/var/run/nologin:\ + :cputime=1h30m:\ + :datasize=8M:\ + :stacksize=2M:\ + :memorylocked=4M:\ + :memoryuse=8M:\ + :filesize=8M:\ + :coredumpsize=8M:\ + :openfiles=24:\ + :maxproc=32:\ + :priority=0:\ + :requirehome:\ + :passwordtime=90d:\ + :umask=002:\ + :ignoretime@:\ + :tc=default: +# +# Staff users - few restrictions and allow login anytime +# +staff:\ + :ignorenologin:\ + :ignoretime:\ + :requirehome@:\ + :accounted@:\ + :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ + :umask=022:\ + :tc=standard: + + +# +# root - fallback for root logins +# +root:\ + :path=~/bin /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin:\ + :cputime=infinity:\ + :datasize=infinity:\ + :stacksize=infinity:\ + :memorylocked=infinity:\ + :memoryuse=infinity:\ + :filesize=infinity:\ + :coredumpsize=infinity:\ + :openfiles=infinity:\ + :maxproc=infinity:\ + :memoryuse-cur=32M:\ + :maxproc-cur=64:\ + :openfiles-cur=1024:\ + :priority=0:\ + :requirehome@:\ + :umask=022:\ + :tc=auth-root-defaults:\ +# +# Settings used by /etc/rc +# +daemon:\ + :coredumpsize@:\ + :coredumpsize-cur=0:\ + :datasize=infinity:\ + :datasize-cur@:\ + :maxproc=512:\ + :maxproc-cur@:\ + :memoryuse-cur=64M:\ + :memorylocked-cur=64M:\ + :openfiles=1024:\ + :openfiles-cur@:\ + :stacksize=16M:\ + :stacksize-cur@:\ + :tc=default: +# +# Polish Users Accounts. Setup proper environment variables. +# +polish:Polish Users Accounts:\ + :lang=pl_pl.ISO-8859-2:\ + :tc=default: diff --git a/release/picobsd/install/floppy.tree/etc/master.passwd b/release/picobsd/install/floppy.tree/etc/master.passwd new file mode 100644 index 0000000..9d85cdf --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/master.passwd @@ -0,0 +1,7 @@ +root:$1$xOOaGnKU$U9QdsCI40XXcCUMBN.7Az.:0:0::0:0:Charlie &:/root:/bin/sh +toor:*:0:0::0:0:Bourne-again Superuser:/root: +daemon:*:1:1::0:0:Owner of many system processes:/root:/nonexistent +operator:*:2:20::0:0:System &:/usr/guest/operator:/bin/csh +bin:*:3:7::0:0:Binaries Commands and Source,,,:/:/nonexistent +nobody:*:65534:65534::0:0:Unprivileged user:/nonexistent:/nonexistent +user:$1$T9q8Coad$WatJttamwr2UAdbfKbWxj.:1002:1002:polish:0:0:user:/home/user:/bin/sh diff --git a/release/picobsd/install/floppy.tree/etc/mfs.rc b/release/picobsd/install/floppy.tree/etc/mfs.rc new file mode 100644 index 0000000..22b7678 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/mfs.rc @@ -0,0 +1,34 @@ +#!/bin/sh +# $Id: mfs.rc.en,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +### WARNING !!!!!! ##### +# We remove this file during execution (see EOF). +# Awful things happen if its size is > 1024B + +stty status '^T' + +trap : 2 +trap : 3 + +HOME=/; export HOME +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin +export PATH + +trap "echo 'Reboot interrupted'; exit 1" 3 + +### Special setup for one floppy PICOBSD ### +echo "" +echo "-------------------------------------------" +echo " Please wait. The system is coming up..." +echo "-------------------------------------------" +echo "" +echo "Reading /etc from startup floppy..." +mount -o rdonly /dev/fd0a /start_floppy +cd /start_floppy/etc +cp -Rp . /etc/ +cd /etc +pwd_mkdb -p ./master.passwd +umount /start_floppy +echo "Ok. (Now you can remove floppy if you like)" +echo "" +. rc +exit 0 diff --git a/release/picobsd/install/floppy.tree/etc/prepdisk b/release/picobsd/install/floppy.tree/etc/prepdisk new file mode 100755 index 0000000..ddba5c7 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/prepdisk @@ -0,0 +1,52 @@ +#!/bin/sh +# +# Prepares disk based on kernel disk information. Assumes fdisk -e was +# run beforehand. +# +# 'swap' is the size of the swap partition in 512 byte blocks (def: 256MB) + +# dev=target_disk + +target_disk=$1 + +dmesg | grep "${target_disk}.*sectors" | tr -d '(:)' | awk ' + { + v = $3 + c = $5 + h = $7 + s = $9 + ss = c * h * s - s + sw = 522240 + ap = ss - sw + + print "#",$0 > "_" + print "g c"c" h"h" s"s > "_" + print "p 1 165",s,ss > "_" + print "a 1" > "_" + + print "#",$0 > "__" + print "type: ESDI" > "__" + print "disk:", $1 > "__" + print "label:" > "__" + print "flags:" > "__" + print "bytes/sector: 512" > "__" + print "sectors/track:", s > "__" + print "tracks/cylinder:", h > "__" + print "sectors/cylinder:", s * h > "__" + print "cylinders:", c > "__" + print "sectors/unit:", ss > "__" + print "rpm: 3600" > "__" + print "interleave: 1" > "__" + print "trackskew: 0" > "__" + print "cylinderskew: 0" > "__" + print "headswitch: 0 # milliseconds" > "__" + print "track-to-track seek: 0 # milliseconds" > "__" + print "drivedata: 0 " > "__" + print "8 partitions:" > "__" + print "# size offset fstype [fsize bsize bps/cpg]" > "__" + print "a:",ap,"0 4.2BSD 512 4096 " > "__" + print "b:",sw,ap,"swap " > "__" + print "c:",ss,"0 unused 0 0" > "__" + } +' +disklabel -BrR ${target_disk} __ diff --git a/release/picobsd/install/floppy.tree/etc/profile b/release/picobsd/install/floppy.tree/etc/profile new file mode 100644 index 0000000..babb9333 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/profile @@ -0,0 +1,3 @@ +# System-wide .profile file for sh(1). +BLOCKSIZE=K; export BLOCKSIZE +PATH=/stand:.; export PATH diff --git a/release/picobsd/install/floppy.tree/etc/protocols b/release/picobsd/install/floppy.tree/etc/protocols new file mode 100644 index 0000000..c80be39 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/protocols @@ -0,0 +1,7 @@ +# +# Internet (IP) protocols +ip 0 IP # internet protocol, pseudo protocol number +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # Internet Group Management +tcp 6 TCP # transmission control protocol +udp 17 UDP # user datagram protocol diff --git a/release/picobsd/install/floppy.tree/etc/rc b/release/picobsd/install/floppy.tree/etc/rc new file mode 100644 index 0000000..09612a08 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/rc @@ -0,0 +1,64 @@ +#!/bin/sh +# $Id: rc.en,v 1.5 1999/01/19 23:15:41 abial Exp $ +############################################ +### Special setup for one floppy PICOBSD ### +### THIS IS NOT THE NORMAL /etc/rc !!!!! ### +############################################ +mount -a -t nonfs +if [ -f /etc/rc.conf ]; then + . /etc/rc.conf +fi +rm -f /var/run/* +if [ "x$swapfile" != "xNO" -a -w "$swapfile" -a -b /dev/vn0b ]; then + echo "Adding $swapfile as additional swap." + vnconfig /dev/vn0b $swapfile && swapon /dev/vn0b +fi +# configure serial devices +if [ -f /etc/rc.serial ]; then + . /etc/rc.serial +fi +# start up the initial network configuration. +if [ -f /etc/rc.network ]; then + . /etc/rc.network + network_pass1 +fi +mount -a -t nfs +chmod 666 /dev/tty[pqrsPQRS]* +# clean up left-over files +(cd /var/run && { cp /dev/null utmp; chmod 644 utmp; }) +if [ -n "$network_pass1_done" ]; then + network_pass2 +fi +if [ -n "$network_pass2_done" ]; then + network_pass3 +fi +if [ "X${inetd_enable}" = X"YES" ]; then + echo "Starting inetd."; inetd ${inetd_flags} +fi + +dev_mkdb + +echo '' +if [ "x$swapfile" = "xNO" ]; then + echo "WARNING: no swap partition!" + echo "Don't run too many programs at the same time..." +fi + +# Launch the installer +. /etc/doinstall + +echo '' +echo '' +echo '+----------- PicoBSD @VER@ (NET) ---------------+' +echo '| |' +echo '| Log in as "root" (password "setup"). |' +echo '| |' +echo '| This version of PicoBSD is fully under |' +echo '| BSD license. For more details see |' +echo '| http://www.freebsd.org/~picobsd, or contact |' +echo '| the author. |' +echo '| |' +echo '| abial@freebsd.org |' +echo '| |' +echo '+----------------------------------------------+' +exit 0 diff --git a/release/picobsd/install/floppy.tree/etc/rc.conf b/release/picobsd/install/floppy.tree/etc/rc.conf new file mode 100644 index 0000000..7ec2d5c --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/rc.conf @@ -0,0 +1,26 @@ +#!/bin/sh +# $Id: rc.conf.en,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +swapfile="NO" # Set to name of swapfile if aux swapfile desired. +### Network configuration sub-section ###################### +### Basic network options: ### +hostname="pico.mydomain.edu" # Set this! +firewall="NO" # firewall type (see /etc/rc.firewall) or NO +tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO). +network_interfaces="lo0 fxp0" # List of network interfaces (lo0 is loopback). +ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. +ifconfig_fxp0="" # Force call to start_if.fxp0 +#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry. +### Network daemons options: ### +inetd_enable="NO" # Run the network daemon dispatcher (or NO) +inetd_flags="" # Optional flags to inetd +snmpd_enable="NO" # Run the SNMP daemon (or NO) +snmpd_flags="-C -c /etc/snmpd.conf" # Optional flags to snmpd +### Network routing options: ### +defaultrouter="NO" # Set to default gateway (or NO). +static_routes="" # Set to static route list (or leave empty). +gateway_enable="NO" # Set to YES if this host will be a gateway. +arpproxy_all="" # replaces obsolete kernel option ARP_PROXYALL. +### Allow local configuration override at the very end here ## +if [ -f /etc/rc.conf.local ]; then + . /etc/rc.conf.local +fi diff --git a/release/picobsd/install/floppy.tree/etc/rc.network b/release/picobsd/install/floppy.tree/etc/rc.network new file mode 100644 index 0000000..5c58b4c --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/rc.network @@ -0,0 +1,79 @@ +#!/bin/sh - +# $Id: rc.network.en,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +network_pass1() { + echo -n 'Doing initial network setup:' + # Set the host name if it is not already set + if [ -z "`hostname -s`" ] ; then + hostname $hostname + echo ' hostname' + fi + # Set up all the network interfaces, calling startup scripts if needed + for ifn in ${network_interfaces}; do + if [ -e /etc/start_if.${ifn} ]; then + . /etc/start_if.${ifn} + fi + # Do the primary ifconfig if specified + eval ifconfig_args=\$ifconfig_${ifn} + if [ -n "${ifconfig_args}" ] ; then + ifconfig ${ifn} ${ifconfig_args} + fi + # Check to see if aliases need to be added + alias=0 + while : + do + eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} + if [ -n "${ifconfig_args}" ]; then + ifconfig ${ifn} ${ifconfig_args} alias + alias=`expr ${alias} + 1` + else + break; + fi + done + ifconfig ${ifn} + done + # Load the filters if required + if [ -n "$firewall_enable" -a -f /etc/rc.firewall -a \ + "x$firewall_enable" = "xYES" ] ; then + . /etc/rc.firewall + echo "Firewall rules loaded." + else + echo "Warning: kernel has firewall functionality, but firewall rules weren't loaded." + echo " All ip services are ENABLED by default." + fi + # Configure routing + if [ "x$defaultrouter" != "xNO" ] ; then + static_routes="default ${static_routes}" + route_default="default ${defaultrouter}" + fi + # Set up any static routes. This should be done before router discovery. + if [ "x${static_routes}" != "x" ]; then + for i in ${static_routes}; do + eval route_args=\$route_${i} + route add ${route_args} + done + fi + echo -n 'Additional routing options:' + if [ -n "$tcp_extensions" -a "x$tcp_extensions" != "xYES" ] ; then + echo -n ' tcp_extensions=NO' + sysctl -w net.inet.tcp.rfc1323=0 >/dev/null 2>&1 + sysctl -w net.inet.tcp.rfc1644=0 >/dev/null 2>&1 + fi + if [ "X$gateway_enable" = X"YES" ]; then + echo -n ' IP_gateway=YES' + sysctl -w net.inet.ip.forwarding=1 >/dev/null 2>&1 + fi + if [ "X$arpproxy_all" = X"YES" ]; then + echo -n ' turning on ARP_PROXY_ALL: ' + sysctl -w net.link.ether.inet.proxyall=1 2>&1 + fi + echo '.' + network_pass1_done=YES # Let future generations know we made it. +} + +network_pass2() { + network_pass2_done=YES +} + +network_pass3() { + network_pass3_done=YES +} diff --git a/release/picobsd/install/floppy.tree/etc/rc.serial b/release/picobsd/install/floppy.tree/etc/rc.serial new file mode 100644 index 0000000..9eb1c8d --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/rc.serial @@ -0,0 +1,127 @@ +#!/bin/sh +# $Id: rc.serial,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ + +# Change some defaults for serial devices. +# Standard defaults are: +# dtrwait 300 drainwait 0 +# initial cflag from <sys/ttydefaults.h> = cread cs8 hupcl +# initial iflag, lflag and oflag all 0 +# speed 9600 +# special chars from <sys/ttydefaults.h> +# nothing locked +# except for serial consoles the initial iflag, lflag and oflag are from +# <sys/ttydefaults.h> and clocal is locked on. + +default() { + # Reset everything changed by the other functions to initial defaults. + + ci=$1; shift # call in device identifier + co=$1; shift # call out device identifier + + for i in $* + do + comcontrol /dev/tty$ci$i dtrwait 300 drainwait 0 + stty </dev/ttyi$ci$i -clocal crtscts hupcl 9600 reprint ^R + stty </dev/ttyl$ci$i -clocal -crtscts -hupcl 0 + stty </dev/cuai$co$i -clocal crtscts hupcl 9600 reprint ^R + stty </dev/cual$co$i -clocal -crtscts -hupcl 0 + done +} + +maybe() { + # Special settings. + + ci=$1; shift + co=$1; shift + + for i in $* + do + # Don't use ^R; it breaks bash's ^R when typed ahead. + stty </dev/ttyi$ci$i reprint undef + stty </dev/cuai$co$i reprint undef + # Lock clocal off on dialin device for security. + stty </dev/ttyl$ci$i clocal + # Lock the speeds to use old binaries that don't support them. + # Any legal speed works to lock the initial speed. + stty </dev/ttyl$ci$i 300 + stty </dev/cual$co$i 300 + done +} + +modem() { + # Modem that supports CTS and perhaps RTS handshaking. + + ci=$1; shift + co=$1; shift + + for i in $* + do + # may depend on modem + comcontrol /dev/tty$ci$i dtrwait 100 drainwait 180 + # Lock crtscts on. + # Speed reasonable for V42bis. + stty </dev/ttyi$ci$i crtscts 57600 + stty </dev/ttyl$ci$i crtscts + stty </dev/cuai$co$i crtscts 57600 + stty </dev/cual$co$i crtscts + done +} + +mouse() { + # Mouse on either callin or callout port. + + ci=$1; shift + co=$1; shift + + for i in $* + do + # Lock clocal on, hupcl off. + # Standard speed for Microsoft mouse. + stty </dev/ttyi$ci$i clocal -hupcl 1200 + stty </dev/ttyl$ci$i clocal hupcl + stty </dev/cuai$co$i clocal -hupcl 1200 + stty </dev/cual$co$i clocal hupcl + done +} + +terminal() { + # Terminal that supports CTS and perhaps RTS handshaking + # with the cable or terminal arranged so that DCD is on + # at least while the terminal is on. + # Also works for bidirectional communications to another pc + # provided at most one side runs getty. + # Same as modem() except we want a faster speed and no dtrwait. + + ci=$1; shift + co=$1; shift + + modem $ci $co $* + for i in $* + do + comcontrol /dev/tty$ci$i dtrwait 0 + stty </dev/ttyi$ci$i 115200 + stty </dev/cuai$co$i 115200 + done +} + +# Don't use anything from this file unless you have some buggy programs +# that require it. + +# Edit the functions and the examples to suit your system. +# $1 is the call in device identifier, $2 is the call out device identifier +# and the remainder of the line lists the device numbers. + +# Initialize assorted 8250-16550 (sio) ports. +# maybe d a 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v +# mouse d a 2 +# modem d a 1 +# terminal d a 0 + +# Initialize all ports on a Cyclades-8yo. +# modem c c 00 01 02 03 04 05 06 07 + +# Initialize all ports on a Cyclades-16ye. +# modem c c 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f + +# Initialize all ports on a Digiboard 8. +# modem D D 00 01 02 03 04 05 06 07 diff --git a/release/picobsd/install/floppy.tree/etc/remote b/release/picobsd/install/floppy.tree/etc/remote new file mode 100644 index 0000000..6f9fcaf --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/remote @@ -0,0 +1,50 @@ +# @(#)remote 5.2 (Berkeley) 6/30/90 +# +# remote -- remote host description file +# see tip(1), remote(5) +# +# dv device to use for the tty +# el EOL marks (default is NULL) +# du make a call flag (dial up) +# pn phone numbers (@ =>'s search phones file; possibly taken from +# PHONES environment variable) +# at ACU type +# ie input EOF marks (default is NULL) +# oe output EOF string (default is NULL) +# cu call unit (default is dv) +# br baud rate (defaults to 300) +# fs frame size (default is BUFSIZ) -- used in buffering writes on +# receive operations +# tc to continue a capability + +# Systems definitions +netcom|Netcom Unix Access:\ + :pn=\@:tc=unix1200: +omen|Omen BBS:\ + :pn=\@:tc=dos1200: + +# UNIX system definitions +unix1200|1200 Baud dial-out to a UNIX system:\ + :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial1200: +unix300|300 Baud dial-out to a UNIX system:\ + :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial300: + +# DOS system definitions +dos1200|1200 Baud dial-out to a DOS system:\ + :el=^U^C^R^O^D^S^Q:ie=%$:oe=^Z:pa=none:tc=dial1200: + +# General dialer definitions used below +# +# COURIER switch settings: +# switch: 1 2 3 4 5 6 7 8 9 10 +# setting: D U D U D D U D U U +# Rackmount: U U D U D U D D U D +# +dial2400|2400 Baud Hayes attributes:\ + :dv=/dev/cuaa0:br#2400:cu=/dev/cuaa0:at=hayes:du: +dial1200|1200 Baud Hayes attributes:\ + :dv=/dev/cuaa0:br#1200:cu=/dev/cuaa0:at=hayes:du: + +# Hardwired line +cuaa0b|cua0b:dv=/dev/cuaa0:br#2400 +cuaa0c|cua0c:dv=/dev/cuaa0:br#9600 diff --git a/release/picobsd/install/floppy.tree/etc/resolv.conf b/release/picobsd/install/floppy.tree/etc/resolv.conf new file mode 100644 index 0000000..57a54e3 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/resolv.conf @@ -0,0 +1,3 @@ +# $Id: resolv.conf.en,v 1.1.1.1 1998/08/27 17:38:42 abial Exp $ +domain mydomain.edu +nameserver 192.33.4.12 diff --git a/release/picobsd/install/floppy.tree/etc/services b/release/picobsd/install/floppy.tree/etc/services new file mode 100644 index 0000000..eec499f --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/services @@ -0,0 +1,94 @@ +echo 4/ddp +echo 7/tcp +echo 7/udp +discard 9/tcp +discard 9/udp +systat 11/tcp +systat 11/udp +daytime 13/tcp +daytime 13/udp +qotd 17/tcp +qotd 17/udp +chargen 19/tcp +chargen 19/udp +ftp-data 20/tcp +ftp-data 20/udp +ftp 21/tcp +ftp 21/udp +ssh 22/tcp +ssh 22/udp +telnet 23/tcp +telnet 23/udp +smtp 25/tcp +smtp 25/udp +time 37/tcp +time 37/udp +domain 53/tcp +domain 53/udp +tacacs-ds 65/tcp +tacacs-ds 65/udp +bootps 67/tcp +bootps 67/udp +bootpc 68/tcp +bootpc 68/udp +tftp 69/tcp +tftp 69/udp +gopher 70/tcp +gopher 70/udp +finger 79/tcp +finger 79/udp +http 80/tcp +http 80/udp +pop2 109/tcp +pop2 109/udp +pop3 110/tcp +pop3 110/udp +uucp-path 117/tcp +uucp-path 117/udp +nntp 119/tcp +nntp 119/udp +netbios-ns 137/tcp +netbios-ns 137/udp +netbios-dgm 138/tcp +netbios-dgm 138/udp +netbios-ssn 139/tcp +netbios-ssn 139/udp +imap 143/tcp +imap 143/udp +snmp 161/tcp +snmp 161/udp +snmptrap 162/tcp +snmptrap 162/udp +bgp 179/tcp +bgp 179/udp +irc 194/tcp +irc 194/udp +ipx 213/tcp +ipx 213/udp +imap3 220/tcp +imap3 220/udp +ldap 389/tcp +ldap 389/udp +netware-ip 396/tcp +netware-ip 396/udp +https 443/tcp +https 443/udp +exec 512/tcp +biff 512/udp +login 513/tcp +who 513/udp +cmd 514/tcp +syslog 514/udp +printer 515/tcp +printer 515/udp +talk 517/tcp +talk 517/udp +ntalk 518/tcp +ntalk 518/udp +timed 525/tcp +timed 525/udp +uucp 540/tcp +uucp 540/udp +uucp-rlogin 541/tcp +uucp-rlogin 541/udp +natd 8668/divert # Network Address Translation diff --git a/release/picobsd/install/floppy.tree/etc/shells b/release/picobsd/install/floppy.tree/etc/shells new file mode 100644 index 0000000..df377f1 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/shells @@ -0,0 +1,6 @@ +# List of acceptable shells for chpass(1). +# Ftpd will not allow users to connect who are not using +# one of these shells. + +/bin/sh +/bin/csh diff --git a/release/picobsd/install/floppy.tree/etc/start_if.fxp0 b/release/picobsd/install/floppy.tree/etc/start_if.fxp0 new file mode 100644 index 0000000..03e5989 --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/start_if.fxp0 @@ -0,0 +1 @@ +/stand/dhclient diff --git a/release/picobsd/install/floppy.tree/etc/termcap b/release/picobsd/install/floppy.tree/etc/termcap new file mode 100644 index 0000000..5a9316a --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/termcap @@ -0,0 +1,123 @@ +# Copyright (c) 1980, 1985, 1989 The Regents of the University of California. +# All rights reserved. +# @(#)termcap.src 5.88 (Berkeley) 4/30/91 +# +# +# for syscons +# common entry without semigraphics +cons25w|ansiw|ansi80x25-raw:\ + :al=\E[L:am:bs:NP:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:co#80:\ + :dc=\E[P:dl=\E[M:do=\E[B:bt=\E[Z:ho=\E[H:ic=\E[@:li#25:cb=\E[1K:\ + :ms:nd=\E[C:pt:rs=\E[x\E[m\Ec:so=\E[7m:se=\E[m:up=\E[A:\ + :pa#64:Co#8:Sf=\E[3%dm:Sb=\E[4%dm:op=\E[37;40m:\ + :k1=\E[M:k2=\E[N:k3=\E[O:k4=\E[P:k5=\E[Q:k6=\E[R:k7=\E[S:k8=\E[T:\ + :k9=\E[U:k;=\E[V:F1=\E[W:F2=\E[X:K2=\E[E:nw=\E[E:ec=\E[%dX:\ + :kb=^H:kh=\E[H:ku=\E[A:kd=\E[B:kl=\E[D:kr=\E[C:le=^H:eo:sf=\E[S:sr=\E[T:\ + :kN=\E[G:kP=\E[I:@7=\E[F:kI=\E[L:kD=\E[K:kB=\E[Z:\ + :IC=\E[%d@:DC=\E[%dP:SF=\E[%dS:SR=\E[%dT:AL=\E[%dL:DL=\E[%dM:\ + :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:cv=\E[%i%dd:ch=\E[%i%d`:bw:\ + :mb=\E[5m:md=\E[1m:mh=\E[30;1m:mr=\E[7m:me=\E[m:bl=^G:ut:it#8: +cons25|ansis|ansi80x25:\ + :ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261I^U0\333y\363z\362:\ + :tc=cons25w: +cons25-m|ansis-mono|ansi80x25-mono:\ + :pa@:Co@:Sf@:Sb@:op@:us=\E[4m:ue=\E[m:md@:mh@:tc=cons25: +cons50|ansil|ansi80x50:\ + :li#50:tc=cons25: +cons50-m|ansil-mono|ansi80x50-mono:\ + :li#50:tc=cons25-m: +# 80x25 ISO 8859-1 FreeBSD console +cons25l1|cons25-iso8859-1:\ + :ac=l\215m\216k\214j\213u\226t\225v\227w\230q\222x\231n\217o\220s\224p\221r\223`\201a\202f\207g\210~\237.^Y-^X+\253,\273I\247y\232z\233:\ + :tc=cons25w: +cons25l1-m|cons25-iso8859-1-mono:\ + :pa@:Co@:Sf@:Sb@:op@:us=\E[4m:ue=\E[m:md@:mh@:tc=cons25l1: +# 80x50 ISO 8859-1 FreeBSD console +cons50l1|cons50-iso8859-1:\ + :li#50:tc=cons25l1: +cons50l1-m|cons50-iso8859-1-mono:\ + :li#50:tc=cons25l1-m: +dosansi|ANSI.SYS standard crt|ansi:\ + :am:bs:ce=\E[K:cl=\E[2J:cm=\E[%i%d;%dH:co#80:\ + :do=\E[B:li#25:mi:nd=\E[C:\ + :se=\E[m:so=\E[7m:up=\E[A:us=\E[4m:ue=\E[m:\ + :md=\E[1m:mh=\E[m:mb=\E[5m:me=\E[m:\ + :kh=\EG:kb=^h:ku=\EH:kd=\EP:kl=\EK:kr=\EM:\ + :k1=\E;:k2=\E<:k3=\E=:k4=\E>:k5=\E?:\ + :k6=\E@:k7=\EA:k8=\EB:k9=\EC:k0=\ED: + +# Note: this entry describes the "native" +# capabilities of the PC monochrome display, without ANY emulation; most +# communications packages (but NOT PC/IX connect) do some kind of emulation. +pc|ibmpc|ibm pc PC/IX:\ + :li#24:co#80:am:bs:bw:eo:\ + :cd=\E[J:ce=\E[K:cl=\Ec:cm=\E[%i%2;%2H:do=\E[B:ho=\E[;H:\ + :nd=\E[C:up=\E[A:so=\E[7m:se=\E[0m:us=\E[4m:ue=\E[0m: +pc3mono|IBM PC 386BSD Console with monochrome monitor:\ + :so=\E[0;1r\E[m:tc=pc3: +pc3|ibmpc3|IBM PC 386BSD Console:\ + :Co#8:\ + :DO=\E[%dB:\ + :F1=\E[W:\ + :F2=\E[X:\ + :K1=\E[H:\ + :K2=\E[I:\ + :K3=\E[E:\ + :K4=\E[F:\ + :K5=\E[G:\ + :LE=\E[%dD:\ + :RI=\E[%dC:\ + :Sb=\E[1;%dx:\ + :Sf=\E[2;%dx:\ + :UP=\E[%dA:\ + :ac=l\332m\300k\277j\331u\264t\303v\301w\302q\304x\263n\305`^Da\260f\370g\361~\371.^Y-^Xh\261I^U0\333y\363z\362:\ + :am:\ + :bl=^G:\ + :bs:\ + :cb=\E[1K:\ + :cd=\E[J:\ + :ce=\E[K:\ + :cl=\E[H\E[J:\ + :cm=\E[%i%d;%dH:\ + :co#80:\ + :cr=^M:\ + :do=\E[B:\ + :ho=\E[H:\ + :is=\E[m:\ + :it#8:\ + :k;=\E[V:\ + :k1=\E[M:\ + :k2=\E[N:\ + :k3=\E[O:\ + :k4=\E[P:\ + :k5=\E[Q:\ + :k6=\E[R:\ + :k7=\E[S:\ + :k8=\E[T:\ + :k9=\E[U:\ + :kD=\177:\ + :@7=\E[F:\ + :kN=\E[G:\ + :kP=\E[I:\ + :kb=\177:\ + :kd=\E[B:\ + :kh=\E[H:\ + :kl=\E[D:\ + :kr=\E[C:\ + :ku=\E[A:\ + :le=^H:\ + :li#25:\ + :ms:\ + :nd=\E[C:\ + :op=\E[x:\ + :pa#64:\ + :rs=\E[m:\ + :se=\E[m:\ + :sf=\E[S:\ + :so=\E[7;1r\E[7m:\ + :sr=\E[T:\ + :ta=^I:\ + :te=\E[m:\ + :ti=\E[m:\ + :up=\E[A:\ + :ut: diff --git a/release/picobsd/install/floppy.tree/etc/ttys b/release/picobsd/install/floppy.tree/etc/ttys new file mode 100644 index 0000000..8ef5e6e --- /dev/null +++ b/release/picobsd/install/floppy.tree/etc/ttys @@ -0,0 +1,32 @@ +# +# @(#)ttys 5.1 (Berkeley) 4/17/89 +# +# name getty type status comments +# +# This entry needed for asking password when init goes to single-user mode +# If you want to be asked for password, change "secure" to "insecure" here +#console none unknown off secure +vga none cons25 off secure +# +ttyv0 "/usr/libexec/getty Pc" cons25 on secure +# Virtual terminals +ttyv1 "/usr/libexec/getty Pc" cons25 on secure +ttyv2 "/usr/libexec/getty Pc" cons25 on secure +#ttyv3 "/usr/libexec/getty Pc" cons25 on secure +#ttyv4 "/usr/libexec/getty Pc" cons25 on secure +#ttyv5 "/usr/libexec/getty Pc" cons25 on secure +#ttyv6 "/usr/libexec/getty Pc" cons25 on secure +#ttyv7 "/usr/libexec/getty Pc" cons25 on secure +#ttyv8 "/usr/libexec/getty Pc" cons25 on secure +#ttyv9 "/usr/libexec/getty Pc" cons25 on secure +# Pseudo terminals +ttyp0 none network secure +ttyp1 none network secure +ttyp2 none network secure +ttyp3 none network +ttyp4 none network +ttyp5 none network +ttyp6 none network +ttyp7 none network +ttyp8 none network +ttyp9 none network diff --git a/release/picobsd/install/floppy.tree/kernel.config b/release/picobsd/install/floppy.tree/kernel.config new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/release/picobsd/install/floppy.tree/kernel.config diff --git a/release/picobsd/install/lang/README.en b/release/picobsd/install/lang/README.en new file mode 100644 index 0000000..d2482ae --- /dev/null +++ b/release/picobsd/install/lang/README.en @@ -0,0 +1,41 @@ +1998.07.12, Warsaw, Poland + + PicoBSD @VER@ (NET) + ----------------- + + +What is PicoBSD? +---------------- + +It's a one floppy version of FreeBSD (please see http://www.freebsd.org), +configured mainly for networking applications. It can be used as a router or +firewall, or kind of a fixit floppy (or all of them). + +You can find more information on the home page of this project at: + + http://www.freebsd.org/~picobsd/ + +What are minimal requirements? +------------------------------ + +* 386SX CPU or better (there is an FPU emulator in kernel) +* 10MB RAM - the more the better. If you have an HDD, you can make a + swap partition or swap file (using vnode driver and vnconfig). Then you + probably will be able to run with ca. 6MB only. But RAM is cheap... +* Modem sitting on COM1-COM4 (default is to use COM2), if you want to have + a PPP connection. +* Network card: compatible with NE2000, PCI Intel, 3Com 3c509 or with DEC + chipsets (ed, ep, fxp and de drivers). The kernel supports two of each + ISA (i.e. +6 total) plus two PPP connections (tun interfaces). So you can + easily build something like router with as many as 8 outlets :-) + +For detailed description and list of supported hardware see the original +documentation, or: + + http://www.freebsd.org/~picobsd/picobsd.html + +I'll be glad hearing from you about your experiences with PicoBSD. Thanks. + +Have fun! + +Andrzej Bialecki <abial@freebsd.org> diff --git a/release/picobsd/install/lang/README.pl b/release/picobsd/install/lang/README.pl new file mode 100644 index 0000000..d7e3f67 --- /dev/null +++ b/release/picobsd/install/lang/README.pl @@ -0,0 +1,56 @@ +1998.07.12, Warszawa + + PicoBSD @VER@ (wersja NET) + ------------------------ + +Co to jest PicoBSD? +------------------- + +Jest to jednodyskietkowa wersja FreeBSD skonfigurowana glownie pod katem +zastosowania jako klient/serwer uslug sieciowych (takich jak routing, +firewall, NFS). W celu zapoznania sie z pelnym systemem zajrzyj na +http://www.freebsd.org. Oficjalna strona tego projektu znajduje sie na +http://www.freebsd.org/~picobsd. + +Jakie sa minimalne wymagania? +----------------------------- + +* Procesor 386SX lub lepszy (jadro posiada emulator FPU) +* 10MB pamieci - jest to absolutnie nieprzekraczalne minimum. Oczywiscie im + wiecej, tym lepiej - ograniczenie jest glownie spowodowane brakiem swapu. Po + zapoznaniu sie z systemem mozesz sobie skonfigurowac tzw. swap-file na dysku + twardym, np. na partycji DOS-owej. Wowczas prawdopodobnie wystarczy 6MB + pamieci. +* Modem, skonfigurowany na COM1-COM4 (standardowo system wykorzystuje COM2), + jesli bedzie wykorzystywany dostep przez PPP. +* Karta sieciowa: kompatybilna z NE2000, niektore typy 3Com, lub wersje PCI z + chipsetem DEC21040 (drivery ed, ep, fxp i de). Jadro jest skonfigurowane + tak, zeby moc obsluzyc po dwie karty ed, ep, i de (czyli w sumie siedem) + oraz dwa polaczenia PPP rownoczesnie. Mozna wiec zbudowac router z 9 + interfejsami... :-) + +Jakie sa roznice w stosunku do poprzedniej wersji? +-------------------------------------------------- + +* Poszerzony zestaw sterownikow w jadrze systemu +* dodana obsluga CD-ROM +* agent SNMP (pelna wersja ucd-snmp, pozwalajaca na monitorowanie procesow i + zdalne uruchamianie skryptow) +* brak ssh, ftp i edytora ee (oznacza to, ze musisz edytowac pliki + konfiguracyjne montujac dyskietke na normalnym systemie) +* dodany inetd, telnetd, routed, tftpd, bootpd, ps, kill, netstat, + ping, traceroute +* brak vnconfig i vn(4): w przypadku routera powinien on miec tyle pamieci + RAM, zeby nie potrzebowac swapu, lub miec normalny swap. +* dodana obsluga hasel (passwd(1)) +* dodana obsluga NFS (klient) +* sa dwaj uzytkownicy: root (haslo 'setup') i user (haslo 'PicoBSD'). Ze + wzgledu na skomplikowana sprawe z prawami dostepu, user praktycznie moze + jedynie zrobic te rzeczy, ktore nie wymagaja praw roota (czyli np. telnet). +* dodany skrypt 'update', ktory powoduje uaktualnienie zawartosci katalogu + /etc na dyskietce w stosunku do tego, co znajduje sie na MFS. + + +Milej zabawy! + +Andrzej Bialecki <abial@freebsd.org> diff --git a/release/picobsd/install/lang/boot.help.en b/release/picobsd/install/lang/boot.help.en new file mode 100644 index 0000000..7cbce13 --- /dev/null +++ b/release/picobsd/install/lang/boot.help.en @@ -0,0 +1,18 @@ +Usage: bios_drive:interface(unit,partition)kernel_name options + bios_drive 0, 1, ... + interface fd, wd or sd + unit 0, 1, ... + partition a, c, ... + kernel_name name of kernel, or ? for list of files in root directory + options -a (ask name) -C (cdrom) -c (userconfig) -D (dual consoles) + -d (debug early) -g (gdb) -h (serial console) -P (probe kbd) + -r (default root) -s (single user) -v (verbose) +Examples: + 1:sd(0,a)mykernel boot `mykernel' on the first SCSI drive when one IDE + drive is present + 1:wd(2,a) boot from the second (secondary master) IDE drive + 1:sd(0,a)? list the files in the root directory on the specified + drive/unit/partition, and set the default bios_drive, + interface, unit and partition + -cv boot with the defaults, then run UserConfig to modify + hardware parameters (c), and print verbose messages (v) diff --git a/release/picobsd/install/lang/boot.help.pl b/release/picobsd/install/lang/boot.help.pl new file mode 100644 index 0000000..bb5b422 --- /dev/null +++ b/release/picobsd/install/lang/boot.help.pl @@ -0,0 +1,16 @@ +Opcje: dysk_bios:kontroler(dysk,partycja)nazwa_kernela opcje + dysk_bios 0, 1, ... + kontroler fd (dyskietka), wd (dysk IDE) lub sd (dysk SCSI) + dysk 0, 1, ... (numer dysku w kontrolerze) + partycja a, c, e, f ... (wedlug nazewnictwa BSD) + nazwa_kernela nazwa pliku kernela, lub ? zeby dostac liste plikow + opcje -a (pytaj o rootdev) -C (cdrom) -c (userconf.) -D (podwojna konsola) + -d (uruchom debugger) -g (gdb) -h (konsola szeregowa) + -P (probkuj klawiature) -r (domyslny rootdev) -s (tryb single user) + -v (verbose - szczegolowe komunikaty) +Np: 1:sd(0,a)mykernel startuj `mykernel' z 1 dysku SCSI gdy jest tez 1 dysk + IDE, i jednoczesnie ustaw go jako domyslny dysk_bios, + kontroler, dysk i partycje + -cv startuj z parametrami domyslnymi, potem uruchom + konfiguracje param. sprzetowych (-c), i podawaj + szczegolowe komunikaty w trakcie bootowania (-v). diff --git a/release/picobsd/install/lang/hosts.en b/release/picobsd/install/lang/hosts.en new file mode 100644 index 0000000..522c181 --- /dev/null +++ b/release/picobsd/install/lang/hosts.en @@ -0,0 +1,5 @@ +# $Id: hosts.en,v 1.1.1.1 1998/08/27 17:38:43 abial Exp $ +# This file should contain the addresses and aliases +# for local hosts that share this file. +127.0.0.1 localhost localhost.mydomain.edu +127.0.0.1 pico.mydomain.edu diff --git a/release/picobsd/install/lang/hosts.pl b/release/picobsd/install/lang/hosts.pl new file mode 100644 index 0000000..c3563ea --- /dev/null +++ b/release/picobsd/install/lang/hosts.pl @@ -0,0 +1,5 @@ +# $Id: hosts.pl,v 1.1.1.1 1998/08/27 17:38:43 abial Exp $ +# This file should contain the addresses and aliases +# for local hosts that share this file. +127.0.0.1 localhost localhost.mydomain.org.pl +127.0.0.1 pico.mydomain.org.pl diff --git a/release/picobsd/install/lang/motd.en b/release/picobsd/install/lang/motd.en new file mode 100644 index 0000000..9719418 --- /dev/null +++ b/release/picobsd/install/lang/motd.en @@ -0,0 +1,12 @@ +================================================== + [31m)\_)\[37m +PicoBSD @VER@ (NET) [31m([37m[1mo,o[m[31m)[37m + [32m__ [31m\~/[37m +Welcome to PicoBSD! [32m-->=[41m===[40m[31m\[37m + [32m~~[37m [31md d[37m +You can find a short description of the [35mpicoBSD[37m +system in file /README. You can view it using +"more /README". + +For more info contact the author (abial@freebsd.org). + diff --git a/release/picobsd/install/lang/motd.pl b/release/picobsd/install/lang/motd.pl new file mode 100644 index 0000000..4b1fcf5 --- /dev/null +++ b/release/picobsd/install/lang/motd.pl @@ -0,0 +1,12 @@ +======================================================= + [31m)\_)\[37m +PicoBSD @VER@ (NET) [31m([37m[1mo,o[m[31m)[37m + [32m__ [31m\~/[37m +Witamy w PicoBSD! [32m-->=[41m===[40m[31m\[37m + [32m~~[37m [31md d[37m +W glownym katalogu w pliku README znajdziesz [35mpicoBSD[37m +krotki opis systemu. Mozesz go obejrzec przy pomocy +"more /README". + +Wiecej informacji znajdziesz u autora (abial@freebsd.org). + diff --git a/release/picobsd/install/lang/reboot.en b/release/picobsd/install/lang/reboot.en new file mode 100755 index 0000000..4601bb8 --- /dev/null +++ b/release/picobsd/install/lang/reboot.en @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/echo "Press Ctrl-Alt-Del instead of $0" diff --git a/release/picobsd/install/lang/reboot.pl b/release/picobsd/install/lang/reboot.pl new file mode 100755 index 0000000..8181ced --- /dev/null +++ b/release/picobsd/install/lang/reboot.pl @@ -0,0 +1,2 @@ +#!/bin/sh +exec /sbin/echo "Zamiast $0 nacisnij Ctrl-Alt-Del" diff --git a/release/picobsd/install/lang/resolv.conf.pl b/release/picobsd/install/lang/resolv.conf.pl new file mode 100644 index 0000000..fe9223b --- /dev/null +++ b/release/picobsd/install/lang/resolv.conf.pl @@ -0,0 +1,3 @@ +# $Id: resolv.conf.pl,v 1.1.1.1 1998/08/27 17:38:43 abial Exp $ +domain mydomain.org.pl +nameserver 148.81.16.51 diff --git a/release/picobsd/install/lang/update.en b/release/picobsd/install/lang/update.en new file mode 100755 index 0000000..7720a18 --- /dev/null +++ b/release/picobsd/install/lang/update.en @@ -0,0 +1,23 @@ +#!/bin/sh +# $Id: update.en,v 1.2.2.1 1999/05/07 10:03:29 abial Exp $ +pwd=`pwd` +echo -n "Updating /etc contents on startup floppy... " +mount /dev/fd0a /start_floppy +if [ "X$?" != "X0" ] +then + echo "" + echo "Cannot mount the floppy read-write!" + echo "Check the write-protection..." + exit 1 +fi +cd /etc +rm *.db +rm passwd +cp -Rp . /start_floppy/etc/ +pwd_mkdb master.passwd +echo " Done." +echo -n "Updating kernel parameters... " +kget /start_floppy/boot/kernel.conf +umount /dev/fd0a +cd ${pwd} +echo " Done." diff --git a/release/picobsd/install/lang/update.pl b/release/picobsd/install/lang/update.pl new file mode 100755 index 0000000..51fee7c --- /dev/null +++ b/release/picobsd/install/lang/update.pl @@ -0,0 +1,23 @@ +#!/bin/sh +# $Id: update.pl,v 1.2.2.1 1999/05/07 10:03:30 abial Exp $ +pwd=`pwd` +echo -n "Uaktualniam katalog /etc na dyskietce... " +mount /dev/fd0a /start_floppy +if [ "X$?" != "X0" ] +then + echo "" + echo "Blad podczas montowania read/write dyskietki!" + echo "Sprawdz, czy nie jest zabezpieczona przed zapisem..." + exit 1 +fi +cd /etc +rm *.db +rm passwd +cp -Rp . /start_floppy/etc/ +pwd_mkdb master.passwd +echo " Zrobione." +echo -n "Uaktualniam parametry jadra..." +kget /start_floppy/boot/kernel.conf +umount /dev/fd0a +cd ${pwd} +echo " Zrobione." diff --git a/release/picobsd/install/mfs.mtree b/release/picobsd/install/mfs.mtree new file mode 100644 index 0000000..98d1262 --- /dev/null +++ b/release/picobsd/install/mfs.mtree @@ -0,0 +1,58 @@ +# +# $Id: mfs.mtree,v 1.1.1.1 1998/08/27 17:38:44 abial Exp $ +# +/set type=dir uname=root gname=wheel mode=0755 +. + dev + .. + dos + .. + etc + .. + home + user + .. + .. + mnt + .. + mnt1 + .. + mnt2 + .. + proc + .. + root + .. + stand + .. + start_floppy + .. + tftpboot + .. + tmp + .. + usr + local + share + snmp + mibs + .. + .. + .. + .. + share + misc + .. + .. + .. + var + db + .. + run + .. + spool + lock + .. + .. + .. +.. |