Initial import of PicoBSD v0.4 tree.

This commit is contained in:
Andrzej Bialecki 1998-08-27 17:38:45 +00:00
parent 0b0c1554a8
commit c9d8fd0a7b
559 changed files with 65575 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<html>
<body>
<h1><b><center> PicoBSD Development Kit </center></b></h1>
<p>All documentation, instructions, list of supported hardware and FAQ are
in doc/ directory. The docs are marked with HTML tags, but we try to keep
them readable even without a browser.
<p>Please start from <A HREF="doc/intro.html">here</a> for general
description of the project and its features, or just go directly
<A HREF="doc/how2build.html">here</a> for detailed instructions on how to
build your version of PicoBSD.
<p>Enjoy!</p>
<! $Id: README.html,v 1.3 1998/08/19 17:00:26 abial Exp $ >
</body>
</html>

1
release/picobsd/Version Normal file
View file

@ -0,0 +1 @@
0.4

347
release/picobsd/build/build Executable file
View file

@ -0,0 +1,347 @@
#!/bin/sh -
#
# $Id: build,v 1.8 1998/08/10 19:06:48 abial Exp $
#
# You can set the SRC variable which points to your source tree. It's
# /usr/src by default (most people shouldn't change it).
SRC=/usr/src
# Default MFS sizes for different types of the floppy. Again, most people
# shouldn't change them unless they know what they are doing.
DIAL_DFLT_SIZE=1600
ROUTER_DFLT_SIZE=820
NET_DFLT_SIZE=2100
ISP_DFLT_SIZE=2100
# SET THIS if you're building on 2.2.x system
#
# RELENG_2_2=yes
# Path to srcdirs of special program for init(8) (standard if empty)
INIT=
# --------- YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW -----------
# The "build" script will ask you for parameters. Just run it... :-)
# --------- YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW -----------
set -e
# Build kernel with previously set parameters.
build_kernel() {
echo ""
echo "-> We must make the PICOBSD${suffix}.${SIZE} kernel first..."
pwd=`pwd`
cat ../${TYPE}/conf/PICOBSD | grep -v "MFS_ROOT">${CONF}/PICOBSD${suffix}.${SIZE}
echo "options \"MFS_ROOT=${SIZE}\"" >>${CONF}/PICOBSD${suffix}.${SIZE}
cd ${CONF}
config PICOBSD${suffix}.${SIZE}
cd ../../compile/PICOBSD${suffix}.${SIZE}
make depend && make
cd ${pwd}
}
# Main build procedure. It calls other scripts (stage1-3 and populate)
main() {
if [ "${TYPE}" = "dial" ]
then
suffix="-D"
fi
if [ "${TYPE}" = "net" ]
then
suffix="-N"
fi
if [ "${TYPE}" = "isp" ]
then
suffix="-I"
fi
if [ "${TYPE}" = "router" ]
then
suffix="-R"
fi
CONF="${SRC}/sys/i386/conf"
clear
echo "-> Building with following parameters:"
echo -n " Type: ${TYPE}"
if [ "X${INIT}" != "X" ]
then
echo " (using ${INIT} as init(8))"
else
echo ""
fi
echo " MFS size: ${SIZE} kB"
echo " Language: ${LANGUAGE}"
echo ""
echo "-> We'll use the sources living in ${SRC}"
echo ""
echo "-> I hope you have checked the ../${TYPE}/conf/PICOBSD config file..."
echo ""
echo ""
sleep 2
# Now check if we must build the kernel first
if [ ! -f ${SRC}/sys/i386/conf/PICOBSD${suffix}.${SIZE} ]
then
build_kernel
elif [ ! -f ${SRC}/sys/compile/PICOBSD${suffix}.${SIZE}/kernel ]
then
build_kernel
fi
export SIZE LANGUAGE TYPE SRC RELENG_2_2 INIT
for i in stage1 populate stage2 stage3
do
echo "====================== ${i} started ====================="
./${i}
if [ "X$?" != "X0" ]
then
echo ""
echo "-> ERROR in \"${i}\" script. Aborting the build process."
echo -n "-> Cleaning temporary files... "
umount -f /mnt
vnconfig -u /dev/rvn0
./clean ${TYPE}
echo "Done."
exit 10
else
echo "==================== ${i} completed ====================="
fi
done
}
# Set the LANGUAGE variable
set_lang() {
clear
echo " Language setup"
echo ""
echo "Language can be either 'en' (English - default) or 'pl' (Polish)"
echo ""
read -p "Enter the LANGUAGE (en, pl): " LANGUAGE
if [ "X${LANGUAGE}" = "X" ]
then
LANGUAGE=en
fi
}
# Set the INIT variable
set_init() {
clear
echo " Choose your init(8) program"
echo ""
echo "You can choose either standard init(8) (which requires getty), or"
echo "you can choose 'oinit' from TinyWare collection."
echo ""
read -p "Enter the INIT (init, oinit): " INIT
if [ "X${INIT}" = "Xinit" ]
then
unset INIT
fi
}
# Set the default MFS size depending on the type of setup
set_dflt_size() {
echo ""
if [ "X${TYPE}" = "X" ]
then
TYPE=dial
fi
echo "Setting default MFS size for \"${TYPE}\" type floppy."
if [ "X${TYPE}" = "Xdial" ]
then
SIZE=$DIAL_DFLT_SIZE
elif [ "X${TYPE}" = "Xnet" ]
then
SIZE=$NET_DFLT_SIZE
elif [ "X${TYPE}" = "Xrouter" ]
then
SIZE=$ROUTER_DFLT_SIZE
elif [ "X${TYPE}" = "Xisp" ]
then
SIZE=$ISP_DFLT_SIZE
else
echo "Unknown type of setup: \"${TYPE}\". Aborting..."
exit 10
fi
}
# Set MFS size interactively
set_size() {
clear
echo " Memory Filesystem (MFS) Size setup"
echo ""
echo " Size can be anything decent (usually 1700 or 2500) in kB."
echo " NOTE1: you can also use other numbers (e.g. 1500, 1456, 1789 ...)"
echo " even much bigger (like 4567), but keep in mind that this memory is"
echo " totally lost to other programs. Usually you want to keep this as small as"
echo " possible."
echo ""
echo " NOTE2: for pre-canned setups there are specific requirements:"
echo " dial - requires at least SIZE=$DIAL_DFLT_SIZE"
echo " router - requires at least SIZE=$ROUTER_DFLT_SIZE (500kB less without SNMP)"
echo " net - requires at least SIZE=$NET_DFLT_SIZE (500kB less without SNMP)"
echo " isp - requires at least SIZE=$ISP_DFLT_SIZE (500kB less without SNMP)"
echo ""
echo " The last two configurations are not likely to run reliably on machines"
echo " with less than 10MB of RAM, while the 'dial' is tested and proved to run"
echo " as many as ~30 processes on 10 consoles with only 8MB RAM. YMMV."
echo ""
read -p "Enter the SIZE in kB: " SIZE
if [ "X${SIZE}" = "X" ]
then
set_dflt_size
fi
}
# Set type of floppy interactively
set_type() {
clear
echo " Setup the type of configuration"
echo ""
echo " Type can be either 'dial', 'router', 'net' or 'isp'. There are four"
echo " sets of configuration files in subdirs ../dial, ../router, ../net"
echo " and ../isp respectively - the contents of the floppy is constructed"
echo " basing on the Makefiles and scripts in them."
echo ""
echo " E.g. if you define TYPE=dial, you'll end up having a floppy which is"
echo " suitable for dialup access and not much else. If you define TYPE=net,"
echo " you'll have a small router-fixit-like floppy, which lacks most"
echo " interactive tools. TYPE=isp gives you a dialin server floppy."
echo ""
read -p "Enter the TYPE of the floppy (dial, net, router, isp): " TYPE
if [ "X${TYPE}" = "X" ]
then
TYPE=dial
fi
if [ "X${TYPE}" = "Xrouter" ]
then
INIT=oinit
fi
if [ "X${TYPE}" = "Xdial" -a "X${INIT}" = "X" ]
then
set_init
fi
set_dflt_size
}
put_title() {
clear
echo " Building the PicoBSD v. 0.4 floppy"
echo "============================================================================"
echo ""
}
#-------------------------------------------------------------------
# Main entry of the script
# If $1="package", it creates a neat set of floppies
if [ X"$1" = X"package" ]
then
touch build.status
echo "##############################################" >>build.status
echo "## `date` ">>build.status
echo "##############################################" >>build.status
./clean dial
for y in en pl
do
for z in dial router net isp
do
TYPE=${z}
LANGUAGE=${y}
set_dflt_size
echo "---------------------------------------------">>build.status
echo "Building TYPE=${z}, LANGUAGE=${y}, SIZE=${SIZE}" >>build.status
export TYPE SIZE LANGUAGE SRC RELENG_2_2 INIT
main
if [ "X$?" != "X0" ]
then
echo " ** FAILED! **">>build.status
else
echo " (ok)">>build.status
fi
mv picobsd.bin pb_${y}${suffix}.bin
echo "Calling ./clean for ${TYPE}, ${LANGUAGE}, ${SIZE}">>build.status
./clean ${TYPE}
done
done
exit 0
fi
# Set build parameters interactively
TYPE=dial
LANGUAGE=en
set_dflt_size
while [ "X${ans}" != "Xn" ]
do
put_title
echo "Current build parameters are as follows:"
echo ""
echo " 1. Type: ${TYPE}"
if [ "X${INIT}" != "X" ]
then
echo " a. (using ${INIT} as init(8))"
else
echo " a. (using stock init as init(8))"
fi
echo ""
echo " 2. MFS size: ${SIZE} kB"
echo " 3. Language: ${LANGUAGE}"
echo ""
echo "Which parameter would you like to change?"
read -p "(1, a, 2, 3; n -no change, build it ; q -quit): " ans
case ${ans} in
1) set_type
clear
;;
a) set_init
clear
;;
2) set_size
clear
;;
3) set_lang
clear
;;
q) echo ""
echo "Hey! Don't give up so quickly. Quitting for now..."
echo ""
exit 0
;;
n) ;;
*) echo "Unknown option \"${ans}\". Try again."
sleep 2
clear
;;
esac
done
# Export the parameters
export LANGUAGE SIZE TYPE SRC RELENG_2_2 INIT
# Call the build procedure
main
# Install if it's ok.
echo ""
if [ "X$?" = "X0" ]
then
echo "The build process was completed successfuly."
echo ""
echo "Now we are going to install the image on the floppy."
./install
fi
exit 0

34
release/picobsd/build/clean Executable file
View file

@ -0,0 +1,34 @@
#! /bin/sh -
#
# $Id: clean,v 1.7 1998/08/19 07:05:23 abial Exp $
#
set -e
if [ $# -lt 1 ]
then
echo "What to clean? Possible targets are 'dial', 'net', 'isp', 'router' or 'all'"
exit 1
fi
if [ "$1" = "all" ]
then
list="dial net isp router"
else
list=$1
fi
rm -f kernel kernel.kz fs.PICOBSD picobsd.bin *.o *core *.db
rm -f picobsd.bin
rm -f build.status
cd ..
for j in $list
do
echo "===================== $0 $j started ======================"
for i in `ls -d tinyware/[a-z]*` tools/write_mfs_in_kernel tools/dumpnlist ${j}/crunch1
do
(cd ${i} && make clean && rm -f .depend)
done
echo "=============== $0 $j completed successfuly =============="
done

14
release/picobsd/build/install Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
#
# $Id: install,v 1.3 1998/08/02 01:04:37 abial Exp $
#
echo "Please insert a blank floppy in /dev/fd0."
echo "WARNING: the contents of the floppy will be permanently erased!"
echo "Press ^C to abort, Enter to continue."
read junk
echo "Writing picobsd.bin..."
dd if=picobsd.bin of=/dev/rfd0
echo "Done."

71
release/picobsd/build/populate Executable file
View file

@ -0,0 +1,71 @@
#!/bin/sh
#
# $Id: populate,v 1.6 1998/08/12 13:04:24 abial Exp $
#
pwd=`pwd`
echo "-> Populating MFS tree..."
cd ../${TYPE}/mfs.tree
make
if [ X"${RELENG_2_2}" != X"" ]
then
make devnodes
fi
if [ "X$?" != "X0" ]
then
echo "-> ERROR while making \"${TYPE}\" hierarchy in /mnt..."
echo "-> Aborting $0"
exit 10
fi
if [ "${TYPE}" = "router" ]
then
cp ../lang/mfs.rc.${LANGUAGE} /mnt/etc/oinit.rc
else
cp ../lang/mfs.rc.${LANGUAGE} /mnt/etc/rc
cp login.conf /mnt/etc/login.conf
cp ../lang/reboot.${LANGUAGE} /mnt/stand/reboot
ln -f /mnt/stand/reboot /mnt/stand/shutdown
cp ../lang/README.${LANGUAGE} /mnt/README
fi
cp ../lang/update.${LANGUAGE} /mnt/stand/update
if [ "${TYPE}" = "dial" ]
then
cp ../lang/login.${LANGUAGE} /mnt/stand/login
cp ../lang/dialup.${LANGUAGE} /mnt/stand/dialup
(cd ../../help; for i in `ls *.hlp.${LANGUAGE}`;\
do \
cp $i /mnt/help/`basename $i .${LANGUAGE}`;\
done)
elif [ "${TYPE}" != "router" ]
then
cp ../../build/kvm_kernel.db /mnt/var/db/kvm_kernel.db
rm ../../build/kvm_kernel.db
fi
echo "-> Making and installing crunch1..."
cd ../crunch1
make "SRC=${SRC}" && make install 2>&1 >/dev/null
if [ "X$?" != "X0" ]
then
echo "-> ERROR while building ../${TYPE}/crunch1..."
echo "-> Aborting $0"
exit 10
fi
cd ${pwd}
echo "-> Preparing kernel symbols list..."
if [ ! -f ../tools/dumpnlist/dumpnlist ]
then
(cd ../tools/dumpnlist; make)
fi
../tools/dumpnlist/dumpnlist ./kernel >/mnt/stand/symbols
echo "-> Preparing kernel config list..."
if [ ! -f ../tinyware/kget/kget ]
then
(cd ../tinyware/kget; make)
fi
../tinyware/kget/kget ./kernel /mnt/stand/vanilla
(echo "-> Fixing permissions"; cd /mnt; chown -R root *)

102
release/picobsd/build/stage1 Executable file
View file

@ -0,0 +1,102 @@
#! /bin/sh -
#
# $Id: stage1,v 1.4 1998/08/10 19:06:48 abial Exp $
#
set -e
if [ "${TYPE}" = "dial" ]
then
suffix="-D"
fi
if [ "${TYPE}" = "net" ]
then
suffix="-N"
fi
if [ "${TYPE}" = "isp" ]
then
suffix="-I"
fi
if [ "${TYPE}" = "router" ]
then
suffix="-R"
fi
if [ ! -f ${SRC}/sys/compile/PICOBSD${suffix}.${SIZE}/kernel ]; then
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} first"
exit 1
fi
echo "-> Preparing kernel..."
cp -p ${SRC}/sys/compile/PICOBSD${suffix}.${SIZE}/kernel kernel
if [ "${TYPE}" != "dial" ]
then
echo "-> Preparing kvm database..."
mv /var/db/kvm_kernel.db /var/db/old.db
kvm_mkdb kernel
cp /var/db/kvm_kernel.db kvm_kernel.db
mv /var/db/old.db /var/db/kvm_kernel.db
fi
echo "-> Preparing MFS filesystem..."
umount /dev/vn0 2> /dev/null || true
umount /mnt 2> /dev/null || true
vnconfig -u /dev/rvn0 2> /dev/null || true
dd of=fs.PICOBSD if=/dev/zero count=${SIZE} bs=1k 2> /dev/null
awk 'BEGIN {printf "%c%c", 85, 170}' | \
dd of=fs.PICOBSD obs=1 seek=510 conv=notrunc 2> /dev/null
vnconfig -s labels -c /dev/rvn0 fs.PICOBSD 2>/dev/null
#vnconfig -c /dev/rvn0 fs.PICOBSD 2>/dev/null
if [ "X$?" != "X0" ]
then
echo "-> Error while doing vnconfig of fs.PICOBSD on /dev/rvn0..."
echo " Most probably your running kernel doesn't have the vn(4) device."
echo "-> Aborting $0"
exit 10
fi
dd if=/usr/mdec/boot1 of=fs.PICOBSD conv=notrunc 2> /dev/null
# This command does weird things on 2.2.x systems. In such case use normal
# disktype here instead
if [ "${TYPE}" != "router" ]
then
disklabel -rw vn0 auto
else
disklabel -rw /dev/rvn0 fd820
fi
if [ "X$?" != "X0" ]
then
echo "-> Error while labeling fs.PICOBSD (vn0)..."
echo "-> Aborting $0"
exit 10
fi
# You can save some space on MFS if you don't want so many inodes...
if [ "${TYPE}" = "dial" ]
then
newfs -i 10240 -m 0 -p 0 -o space /dev/rvn0c 2>&1 >/dev/null
fi
if [ "${TYPE}" = "router" ]
then
newfs -i 12000 -m 0 -p 0 -o space /dev/rvn0c 2>&1 >/dev/null
fi
if [ "${TYPE}" = "net" ]
then
newfs -i 16000 -m 0 -p 0 -o space /dev/rvn0c 2>&1 >/dev/null
fi
if [ "${TYPE}" = "isp" ]
then
newfs -i 15000 -m 0 -p 0 -o space /dev/rvn0c 2>&1 >/dev/null
fi
mount /dev/vn0c /mnt
if [ "X$?" != "X0" ]
then
echo "-> Error while mounting fs.PICOBSD (/dev/vn0c) on /mnt..."
echo "-> Aborting $0"
exit 10
fi

40
release/picobsd/build/stage2 Executable file
View file

@ -0,0 +1,40 @@
#! /bin/sh -
#
# $Id: stage2,v 1.1.1.1 1998/07/14 07:30:51 abial Exp $
#
set -e
if [ "${TYPE}" = "dial" ]
then
suffix="-D"
fi
if [ "${TYPE}" = "net" ]
then
suffix="-N"
fi
if [ "${TYPE}" = "isp" ]
then
suffix="-I"
fi
if [ ! -f kernel ]; then
echo "-> ERROR: you must build PICOBSD${suffix}.${SIZE} kernel first"
exit 1
fi
echo "-> Preparing kernel with MFS filesystem inside..."
df -ik /mnt
umount /mnt 2>&1 >/dev/null
fsck -p /dev/rvn0c
vnconfig -u /dev/rvn0 2>&1 >/dev/null
if [ ! -f ../tools/write_mfs_in_kernel/wmik ]; then
(cd ../tools/write_mfs_in_kernel; make)
fi
../tools/write_mfs_in_kernel/wmik kernel fs.PICOBSD
kzip -v kernel
rm fs.PICOBSD
rm kernel

91
release/picobsd/build/stage3 Executable file
View file

@ -0,0 +1,91 @@
#! /bin/sh -
#
# $Id: stage3,v 1.4 1998/08/10 19:06:48 abial Exp $
#
set -e
if [ ! -f kernel.kz ]; then
echo "-> ERROR: you must build kernel.kz first"
exit 1
fi
echo "-> Preparing 1.44 floppy filesystem..."
umount /dev/vn0 2> /dev/null || true
umount /mnt 2> /dev/null || true
vnconfig -u /dev/rvn0 2> /dev/null || true
dd of=picobsd.bin if=/dev/zero count=1440 bs=1k 2> /dev/null
awk 'BEGIN {printf "%c%c", 85, 170}' | \
dd of=picobsd.bin obs=1 seek=510 conv=notrunc 2> /dev/null
#vnconfig -s labels -c /dev/rvn0 picobsd.bin 2>/dev/null
vnconfig -c /dev/rvn0 picobsd.bin 2>/dev/null
if [ "X$?" != "X0" ]
then
echo "-> ERROR while doing vnconfig of picobsd.bin on /dev/rvn0..."
echo "-> Aborting $0"
exit 10
fi
dd if=/usr/mdec/boot1 of=picobsd.bin conv=notrunc 2> /dev/null
disklabel -Brw -b /usr/mdec/fdboot -s /usr/mdec/bootfd /dev/rvn0 fd1440 2>&1 >/dev/null
if [ "X$?" != "X0" ]
then
echo "-> ERROR while labeling picobsd.bin on /dev/rvn0..."
echo "-> Aborting $0"
exit 10
fi
newfs -i 32768 -m 0 -p 0 -o space /dev/rvn0c 2>&1 >/dev/null
mount /dev/vn0c /mnt
pwd=`pwd`
cd ../${TYPE}/floppy.tree
echo "-> Copying language dependent files..."
for i in hosts motd rc resolv.conf
do
cp ../lang/${i}.${LANGUAGE} etc/${i}
done
if [ "${TYPE}" != "router" ]
then
cp ../lang/rc.conf.${LANGUAGE} etc/rc.conf
cp ../lang/rc.network.${LANGUAGE} etc/rc.network
fi
echo "-> Populating floppy filesystem..."
cp ../lang/boot.help.${LANGUAGE} /mnt/boot.help
cp -pr . /mnt
if [ "${TYPE}" = "dial" ]
then
pwd_mkdb -d etc/ etc/master.passwd
mv etc/spwd.db /mnt/etc/
rm etc/pwd.db
fi
if [ "X$?" != "X0" ]
then
echo "-> ERROR while transferring ../${TYPE}/floppy.tree to /mnt..."
echo "-> Aborting $0"
exit 10
fi
cd ${pwd}
cp kernel.kz /mnt/kernel
if [ "X$?" != "X0" ]
then
echo "-> ERROR while transferring kernel.kz to /mnt..."
echo "-> Aborting $0"
exit 10
fi
(echo "-> Fixing permissions"; cd /mnt; chown -R root *)
rm kernel.kz
df -ik /mnt
umount /mnt
vnconfig -u /dev/rvn0

View file

@ -0,0 +1,85 @@
#
# $Id: PICOBSD,v 1.4 1998/08/02 12:19:29 abial Exp $
#
machine "i386"
cpu "I386_CPU"
cpu "I486_CPU"
cpu "I586_CPU"
cpu "I686_CPU"
ident PICOBSD
maxusers 3
options MATH_EMULATE #Support for x87 emulation
options INET #InterNETworking
options FFS #Berkeley Fast Filesystem
options MFS
options MSDOSFS #MSDOS Filesystem
options "CD9660" #ISO 9660 Filesystem
options "EXT2FS"
options "COMPAT_43" #Compatible with BSD 4.3 [KEEP THIS!]
options USERCONFIG #boot -c editor
options VISUAL_USERCONFIG #visual boot -c editor
options USERCONFIG_BOOT #imply -c and parse info area
options DEVFS
options SLICE
options PCI_QUIET
options NO_SWAPPING
config kernel root on fd0
controller isa0
controller pci0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
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 vector wdintr
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr
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 wcd0 #IDE CD-ROM
# syscons is the default console driver, resembling an SCO console
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
device npx0 at isa? port "IO_NPX" irq 13 vector npxintr
device sio0 at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
device sio2 at isa? disable port "IO_COM3" tty irq 5 vector siointr
device sio3 at isa? disable port "IO_COM4" tty irq 9 vector siointr
device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
# 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 de1
device fxp0
device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
#device ed1 at isa? port 0x300 net irq 5 iomem 0xd0000 vector edintr
device ie0 at isa? port 0x300 net irq 10 iomem 0xd0000 vector ieintr
device ep0 at isa? port 0x300 net irq 10 vector epintr
#device ex0 at isa? port? net irq? vector exintr
#device fe0 at isa? port 0x300 net irq ? vector feintr
device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
#device ze0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zeintr
#device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
pseudo-device loop
pseudo-device ether
pseudo-device tun 1
pseudo-device pty 16
pseudo-device gzip # Exec gzipped a.out's

View file

@ -0,0 +1,40 @@
#
# $Id: Makefile,v 1.4 1998/08/10 19:38:39 abial Exp $
#
NOCRYPT?= yes
SRC?=/usr/src
all: crunch
crunch:
if [ "X${INIT}" != "X" ]; \
then \
echo "progs ${INIT}" >crunch1.conf ; \
else \
echo "progs init getty" >crunch1.conf ; \
fi;
@cat crunch.conf|sed -e "s@/usr/src@${SRC}@" >>crunch1.conf
@crunchgen ${.CURDIR}/crunch1.conf
@${MAKE} -f crunch1.mk all NOCRYPT=${NOCRYPT} \
"CFLAGS=${CFLAGS} -DCRUNCHED_BINARY" 2>&1 >/dev/null
clean:
rm -f *.o *.stub *.lo *_stub.c *.mk \
crunch.cache \
crunch.mk \
crunch.c \
crunch \
crunch1* \
.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
.include <bsd.prog.mk>

View file

@ -0,0 +1,55 @@
# $Id: crunch.conf,v 1.6 1998/08/02 12:19:49 abial Exp $
#
# NOTE1: the string "/usr/src" will be automatically replaced with the
# correct value set in 'build' script - you should change it there
#
# NOTE2: use of init(8) is now optional (selectable in "build" script).
# See Makefile for details on how it's added here - you shouldn't add it
# manually here...
# source dir for SSH.
# * You have to configure and build the port
# * Then you have to make a symlink:
# cd /usr/ports/security/ssh/work/
# ln -s ssh-1.2.21 ssh
# * Then you have to add OBJS=${SSH_OBJS} in the Makefile (somewhere around
# line 290)
srcdirs /usr/ports/security/ssh/work/
# ash, kget etc...
srcdirs ../../tinyware
# 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
progs ppp ssh ftp telnet ee gzip more
ln gzip gunzip
ln gzip zcat
progs ash test kget echo pwd
progs hostname cat kill sps vm ns
progs chmod chown help
progs cp df fsck ping mv ln traceroute
progs ifconfig kbdcontrol moused
progs ls mkdir mount mount_msdos mount_cd9660 mount_ext2fs
progs rm route sysctl umount
progs vidcontrol
ln ash sh
ln ash -sh
ln test [
ln sps ps
ln ns netstat
ln mount_msdos msdos
ln mount_cd9660 cd9660
ln mount_ext2fs ext2fs
ln chown chgrp
libs -ll -ledit -lutil -lmd -lcrypt -lftpio -lgnuregex -lmp -lgmp -lm
libs -lncurses -lmytinfo -lipx -lz
libs -ltermcap -ltelnet -lalias

View file

@ -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

View file

@ -0,0 +1,40 @@
# from: @(#)gettytab 5.14 (Berkeley) 3/27/91
#
default:\
:cb:ce:ck:lc:fd#1000:cl:im=\r\n PicoBSD (%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:

View file

@ -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:

View file

@ -0,0 +1,3 @@
# $Id: host.conf,v 1.1.1.1 1998/07/14 07:30:41 abial Exp $
hosts
bind

View file

@ -0,0 +1,120 @@
# This file controls resource limits, accounting limits and
# default user environment settings.
#
# $Id: login.conf,v 1.1.1.1 1998/07/14 07:30:41 abial 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=/etc/nologin:\
:cputime=1h30m:\
:datasize=8M:\
:stacksize=2M:\
:memorylocked=4M:\
:memoryuse=8M:\
:filesize=8M:\
:coredumpsize=8M:\
:openfiles=24:\
:maxproc=32:\
:priority=0:\
:requirehome:\
:passwordperiod=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:

View file

@ -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

View file

@ -0,0 +1,9 @@
# $Id: ppp.conf,v 1.2 1998/07/16 23:28:02 abial Exp $
#
# PPP Sample Configuration File
default:
set speed 38400
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

View file

@ -0,0 +1,10 @@
#
# $Id: ppp.conf.template,v 1.2 1998/07/16 23:28:02 abial Exp $
# PPP Sample Configuration File
#
default:
set speed 38400
disable lqr
deny lqr
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"

View file

@ -0,0 +1,15 @@
# list of users disallowed any pppd access via 'system
# password login'.
# read by pppd(8).
root
toor
daemon
operator
bin
games
news
man
ftp
uucp
xten
ingres

View file

@ -0,0 +1,6 @@
# Example of ppp.linkup file
#
# Otherwise, simply add peer as default gateway.
#
MYADDR:
add 0 0 HISADDR

View file

@ -0,0 +1,23 @@
##################################################
#
# Example of ppp.secret file
#
# This file is used to authenticate incoming connections.
# You must ``enable'' either PAP or CHAP in your ppp.conf file.
# The peer may then use any of the Authname/Authkey pairs listed.
# If an IP address is given, it will be assigned to the peer.
#
# If an entry exists for your local machine (as given by the
# ``hostname -s'' command), the password specified will be
# required for all server socket connections. Refer to the ppp(8)
# and pppctl(8) man pages for further details.
#
# $Id: ppp.secret.sample,v 1.1.1.1 1998/07/14 07:30:41 abial Exp $
#
##################################################
# Authname Authkey Peer's IP address
oscar OurSecretKey 192.244.184.34/24
BigBird X4dWg9327 192.244.184.33/32
tama localPasswdForControl

View file

@ -0,0 +1,4 @@
# System-wide .profile file for sh(1).
BLOCKSIZE=K; export BLOCKSIZE
PATH=/stand:.; export PATH
set -o emacs

View file

@ -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

View file

@ -0,0 +1,70 @@
#!/bin/sh -
# $Id: rc.network,v 1.7 1998/08/19 07:06:13 abial Exp $
network_pass1() {
echo -n 'Wstepna konfiguracja sieci:'
# 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
# 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 'Dodatkowe opcje routingu:'
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 ' wlaczam 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
}

View file

@ -0,0 +1,3 @@
# $Id: resolv.conf,v 1.7 1998/08/19 07:06:13 abial Exp $
domain mydomain.org.pl
nameserver 194.204.159.1

View file

@ -0,0 +1,93 @@
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

View file

@ -0,0 +1,2 @@
Host *
FallBackToRsh no

View file

@ -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:

View file

@ -0,0 +1,31 @@
#
# @(#)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
#
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

View file

@ -0,0 +1,8 @@
SSH is included here under different license than BSD one. Please see
http://www.cs.hut.fi/ssh for details. In short, it permits non-commercial
use only. Your usage may be further restricted by applicable local laws on
using strong encryption methods.
<abial@nask.pl>
$Id: LICENCE.ssh,v 1.1.1.1 1998/07/14 07:30:41 abial Exp $

View file

@ -0,0 +1,74 @@
1998.07.22, Warsaw, Poland
PicoBSD 0.4 (DIALUP flavor)
---------------------------
What is PicoBSD?
----------------
It's a one floppy version of FreeBSD (please see http://www.freebsd.org),
configured mainly for dialup access. It can be used as a means to read your
mail remotely, or to log in somewhere and do the work there.
What are minimal requirements?
------------------------------
* 386SX CPU or better (this release contains also FPU emulator)
* 8MB RAM - the more the better.
* Modem sitting on COM1-COM4 (default is to use COM2), if you want to have
a PPP connection.
* Network card: compatible with NE2000, or PCI cards with DEC chipsets
or 3C509 series (ed, ep and de drivers). There is also driver for Intel
EtherExpress PCI card (fxp), and Lance/PCnet (lnc).
How to make a dialup connection?
--------------------------------
I recommend running /stand/dialup script, which will additionally configure
the PPP to allow you to automatically connect to your provider, and
will make the ppp to run in background. However, if you like to do it
yourself, or the script doesn't work properly in your case (let me know
this!), here are the steps you should take:
1. Go to /etc/ppp directory and edit file ppp.conf (using ee editor). You
should check at least the port number of your modem (it's configured
on cuaa1==COM2 by default).
2. After you're happy with it, start 'ppp' program. Enter the terminal
mode ('term') - you are now directly connected to your modem, so you
can normally dial the number using AT commands (e.g. atdt555666777),
and log in to communictaion server. You should see something like
this:
(comm server prompt) login: abial
(comm server prompt) Password: ********
Then either the comm server automatically switches to PPP, or you
should issue a command to tell it to do so (e.g. 'go ppp', 'PPP' or
other). When PPP is started, you should see something like:
ppp on pico> Packet mode
PPP on pico>
Notice the uppercase PPP - it means that the protocol is up, and now
you're connected. Congratulations. :-)
3. Your console is blocked now, but you can use other virtual consoles
available under Alt-Fn.
Where to get additional info?
-----------------------------
There is official page of this project at:
http://www.freebsd.org/~picobsd/
You can find some informations there - not too much yet, to be sure... ;-)
I'll put there also new versions of PicoBSD and bugfixes.
I'll be glad hearing from you about your experiences with PicoBSD. Thanks.
Have fun!
Andrzej Bialecki <abial@nask.pl>
$Id: README.en,v 1.3 1998/08/10 19:07:52 abial Exp $

View file

@ -0,0 +1,72 @@
1998.07.23, Warszawa
PicoBSD 0.4 (wersja DIALUP)
---------------------------
Co to jest PicoBSD?
-------------------
Jest to jednodyskietkowa wersja FreeBSD skonfigurowana głównie pod kątem
zastosowania jako narzędzie dostępu przez dialup lub ethernet.
W celu zapoznania się z pełnym systemem zajrzyj na http://www.freebsd.org
Jakie minimalne wymagania?
-----------------------------
* Procesor 386SX lub lepszy (dostępny jest emulator FPU)
* 8MB pamięci - jest to absolutnie nieprzekraczalne minimum. Oczywiście im
wiecej, tym lepiej - ograniczenie jest głównie spowodowane brakiem swapu. Po
zapoznaniu się z systemem możesz sobie skonfigurować tzw. swap-file na dysku
twardym, np. na partycji DOS-owej lub Linux-owej. Służy do tego program
vnconfig, oraz urządzenie vn(4). Wówczas prawdopodobnie wystarczy 4MB pamięci.
* Modem, skonfigurowany na COM1-COM4 (standardowo system wykorzystuje COM2),
jeśli będzie wykorzystywany dostęp przez PPP.
* Karta sieciowa: kompatybilna z NE2000, niektóre typy 3Com, lub wersje PCI z
chipsetem DEC21040 (drivery ed, ep i de), jeśli będziesz korzystać z dostępu
przez ethernet. Jest też driver do karty PCI Intel EtherExpress (fxp), i
kart Lance/PCnet (lnc).
W jaki sposób uzyskać dostęp dialup?
------------------------------------
Zalecam skorzystanie ze skryptu /stand/dialup, który skonfiguruje dodatkowo
usługę PPP w ten sposób, że będzie się automatycznie łączyć z providerem, oraz
ppp będzie działać w tle. Jeśli jednak coś nie wyjdzie (daj mi znać o tym!),
lub lubisz robić to sam, oto opis poszczególnych kroków:
1. wejdź do katalogu /etc/ppp i w pliku ppp.conf zmień port
szeregowy na ten, na którym masz modem (cuaa0==COM1, cuaa1==COM2,
itd...) Możesz to zrobić edytorem 'ee /etc/ppp/ppp.conf'.
2. uruchom program 'ppp'. Przejdź do trybu terminalowego (polecenie
'term'). W tym momencie masz bezpośredni kontakt z modemem, więc
normalnie wybierz numer dialup i zaloguj się do serwera
komunikacyjnego. Wydaj mu polecenie przejścia w tryb ppp. Powinieneś
zobaczyć coś takiego:
(communication server...): ppp
ppp on pico> Packet mode
PPP on pico>
W tym momencie jesteś już online! Gratuluję.
3. Do Twojej dyspozycji następujące programy: telnet, ftp, i ssh.
Ponieważ wywołałeś 'ppp' ręcznie, więc blokuje Ci konsolę. Nie
szkodzi - masz do dyspozycji 9 kolejnych konsoli wirtualnych, po
których można się poruszać naciskając lewy Alt i klawisz funkcyjny
F1-F10.
Skad wziąć dodatkowe informacje?
--------------------------------
Oficjalna strona projektu PicoBSD:
http://www.freebsd.org/~picobsd/
Można tam znaleźć trochę więcej informacji, oraz poprawki i nowe wersje.
Miłej zabawy!
Andrzej Białecki <abial@nask.pl>
$Id: README.pl,v 1.3 1998/08/10 19:07:52 abial Exp $

View file

@ -0,0 +1,23 @@
+--------------------------------------------------------------------------+
Welcome to FreeBSD !!!
The system is coming up, please wait.
+--------------------------------------------------------------------------+
This is special version of FreeBSD-3.0, called PicoBSD (v.0.4).
It allows you to connect to the Internet via dialup connection (using PPP)
or via Ethernet card.
You can adjust kernel parameters to match those of your hardware via
-c switch (boot: -c) to boot prompt. If you are booting for the first
time, you enter this mode automatically.
The floppy contains also some tools for remote access (telnet, ftp, SSH)
and local disk access (FreeBSD, DOS and Linux filesystem support).
I hope you'll enjoy it.
abial@nask.pl
+--------------------------------------------------------------------------+

View file

@ -0,0 +1,23 @@
+----------------------------------------------------------------------+
Witamy we FreeBSD !!!
Prosze czekac. Trwa uruchamianie systemu.
+----------------------------------------------------------------------+
To jest specjalna wersja FreeBSD-3.0, zwana PicoBSD (v.0.4).
Pozwala ona na uzyskanie polaczenia z Internetem przez protokol PPP
(polaczenie dialup) lub karte Ethernet.
Mozna dopasowac parametry sprzetowe podajac opcje -c przy starcie
systemu (boot: -c). Przy pierwszym starcie tryb ten jest uruchamiany
automatycznie.
Zawarte jest tu kilka narzedzi dla zdalnego dostepu (telnet, ftp, SSH)
oraz do obslugi lokalnej maszyny (dyskow FreeBSD, Linux i DOS).
Milego uzywania.
abial@nask.pl
+----------------------------------------------------------------------+

View file

@ -0,0 +1,370 @@
#!/bin/sh
# $Id: dialup.en,v 1.3 1998/08/07 19:29:57 abial Exp $
set_resolv() {
echo ""
echo " Default Domain Name"
echo ""
echo "Here you should enter your default Internet domain. If your"
echo "provider uses something like 'www.big.isp.com', this should"
echo "be most probably 'big.isp.com'."
echo ""
echo "If you simply press enter here, you will have a 'mydomain.edu',"
echo "which is not the best idea, but may suffice for now..."
echo ""
read -p "Please enter the default domain name: " domain
if [ "X${domain}" = "X" ]
then
echo ""
echo "Fine, your domain will be 'mydomain.edu', but be aware"
echo "that it probably doesn't exist."
echo ""
read -p "Press any key to continue." junk
domain="mydomain.edu"
fi
echo ""
echo " DNS Server Address"
echo ""
echo "Here you should enter the numeric address of your domain name"
echo "server. It is needed for resolving human-readable host names"
echo "(such as www.freebsd.org) to machine readable IP numbers. If"
echo "it's not set properly, you will have to use numeric IP addresses"
echo "when connecting to other hosts, which is highly inconvenient."
echo ""
echo "If you simply press Enter here, we'll set it to one of root"
echo "DNS servers. This may not always work."
echo ""
read -p "Please enter the DNS server address in form A.B.C.D: " dns
if [ "X${dns}" = "X" ]
then
echo ""
echo "Fine, your DNS server will be 192.33.4.12, but be aware"
echo "that this may not always work ok."
echo ""
read -p "Press any key to continue." junk
dns="192.33.4.12"
fi
}
set_phone() {
while [ "X${phone}" = "X" ]
do
echo ""
echo " Phone Number"
echo ""
echo "Here you should enter the full phone number you normally"
echo "use to connect to your provider, with all necessary prefixes"
echo "attached, e.g.: 01122334455"
echo ""
read -p "Please enter the phone number: " phone
done
}
set_port() {
while [ "X${dev}" = "X" ]
do
echo ""
echo " Port Number"
echo ""
echo "Here you should enter the port number, to which your modem is"
echo "attached. REMEMBER: COM1 is port 0 in FreeBSD, COM2 - port 1,"
echo "and so on. You should enter only the number, not the full name"
echo "of the device."
echo ""
read -p "Please enter the port number (0,1,2): " dev
done
}
set_speed() {
while [ "X${speed}" = "X" ]
do
echo ""
echo " Port Speed"
echo ""
echo "Here you should choose the serial port speed."
echo ""
echo "NOTICE: port speed is NOT the same as modem speed - these are"
echo "different things. If your modem is capable of V.42 or MNP"
echo "compression, the actual speed of serial port should be set much"
echo "higher. E.g. for 14.4 kbps modem with compression you should"
echo "choose 38400, for 28.8 kbps modem with compression you should"
echo "choose 115200."
echo ""
echo " 1. 9600 bps"
echo " 2. 14400 bps"
echo " 3. 28800 bps"
echo " 4. 38400 bps (14.4 kbps modem with compression)"
echo " 5. 57600 bps"
echo " 6. 115200 bps (28.8 kbps modem with compression)"
echo ""
read -p "Please choose the port speed (1-6): " ans
case ${ans} in
1)
speed=9600
;;
2)
speed=14400
;;
3)
speed=28800
;;
4)
speed=38400
;;
5)
speed=57600
;;
6)
speed=115200
;;
*)
read -p "Bad value! Press enter to continue..." junk
unset speed
;;
esac
done
}
set_timeout() {
while [ "X${timo}" = "X" ]
do
echo ""
echo " Idle Timeout"
echo ""
echo "Here you should enter timeout (in seconds). After this time, if"
echo "the connection is idle, it's disconnected (to save your money :-)"
echo ""
read -p "Please enter the timeout value: " timo
done
}
set_login() {
while [ "X${user}" = "X" ]
do
echo ""
echo " Login Name"
echo ""
echo "Here you should enter your login name that you normally use"
echo "to log in to your provider's terminal server."
echo ""
read -p "Please enter your login name: " user
done
}
set_password() {
while [ "X${pass}" = "X" ]
do
echo ""
echo " Password"
echo ""
echo "Here you enter the password that you use to log in to the"
echo "terminal server."
echo ""
echo "WARNING: your password will be stored in readable form on the"
echo "floppy!!! If you don't like it... well, you must dial in manually."
echo "In that case abort this script (Ctrl-C). Otherwise, continue."
echo ""
read -p "Please enter your password: " pass
done
}
set_chat() {
echo ""
while [ "X${chat}" = "X" ]
do
echo " Type of Login Dialog"
echo ""
echo "What type of login dialog do you expect from the terminal server?"
echo ""
echo "1) ......login: ${user}"
echo " ...password: ********"
echo " (terminal server starts PPP here)"
echo ""
echo "2) ......login: ${user}"
echo " ...password: ********"
echo " ...protocol: ppp"
echo " (terminal server starts PPP here)"
echo ""
echo "3) ......username: ${user}"
echo " ......password: ********"
echo " (terminal server starts PPP here)"
echo ""
echo "4) ......username: ${user}"
echo " ......password: ********"
echo " portX/..xxx...: ppp"
echo " (terminal server starts PPP here)"
echo ""
read -p "Choose 1,2,3 or 4: " chat
case ${chat} in
1)
chat1="TIMEOUT 10 ogin:--ogin: ${user} word: \\\\P"
chat2="login/password"
;;
2)
chat1="TIMEOUT 10 ogin:--ogin: ${user} word: \\\\P otocol: ppp"
chat2="login/password/protocol"
;;
3)
chat1="TIMEOUT 10 ername:--ername: ${user} word: \\\\P"
chat2="username/password"
;;
4)
chat1="TIMEOUT 10 ername:--ername: ${user} word: \\\\P port ppp"
chat2="username/password/port"
;;
*) echo "Bad value! Please choose 1,2,3 or 4."
echo ""
unset chat
unset chat2
;;
esac
done
}
# Main entry of the script
echo ""
echo " Welcome to The Simplest PPP Configurator! :-)"
echo ""
echo " Your PPP is already preconfigured, so that you can dial manually."
echo "However, you probably noticed that it requires chatting with your modem"
echo "and logging in every time you want to connect. It's simple and it works,"
echo "but it's also annoying."
echo ""
echo "This script will try to configure your PPP so that you can run it in"
echo "background (thus freeing the console), and log in automatically."
echo ""
echo "If you want to continue, press Enter, otherwise press Ctrl-C."
echo ""
read junk
# Step through the options.
set_phone
set_port
set_speed
set_timeout
set_login
set_password
set_chat
set_resolv
ans="loop_it"
while [ "X${ans}" != "X" ]
do
echo ""
echo " Ok. You assigned the following values:"
echo ""
echo " 1. Phone number: ${phone}"
echo " 2. Port number: cuaa${dev}"
echo " 3. Port speed: ${speed} baud"
echo " 4. Timeout: ${timo} s"
echo " 5. Login name: ${user}"
echo " 6. Password: ${pass}"
echo " 7. Chat pattern: ${chat} (${chat2})"
echo " 8. Default domain: ${domain}"
echo " DNS Server: ${dns}"
echo ""
echo "If you're satisfied with these values, just press Enter."
read -p "Otherwise, enter the number of the option you want to change (1-8): " ans
a="X${ans}"
case ${a} in
X1)
unset phone
set_phone
;;
X2)
unset dev
set_port
;;
X3)
unset speed
set_speed
;;
X4)
unset timo
set_timeout
;;
X5)
unset user
set_login
;;
X6)
unset pass
set_password
;;
X7)
unset chat
set_chat
;;
X8)
unset dns
unset domain
set_resolv
;;
X) ;;
*)
read -p "Unknown option: ${ans}. Press enter to continue..."
;;
esac
done
echo ""
echo -n "Generating /etc/ppp/ppp.conf file..."
rm -f /etc/ppp/ppp.conf
cp /etc/ppp/ppp.conf.template /etc/ppp/ppp.conf
echo "" >>/etc/ppp/ppp.conf
echo "# This part was generated with $0" >>/etc/ppp/ppp.conf
echo "dialup:" >>/etc/ppp/ppp.conf
echo " set line /dev/cuaa${dev}" >>/etc/ppp/ppp.conf
echo " set speed ${speed}" >>/etc/ppp/ppp.conf
echo " set phone ${phone}" >>/etc/ppp/ppp.conf
echo " set authkey ${pass}" >>/etc/ppp/ppp.conf
echo " set timeout ${timo}" >>/etc/ppp/ppp.conf
echo " set login \"${chat1}\"" >>/etc/ppp/ppp.conf
echo " set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0" >>/etc/ppp/ppp.conf
echo " Done."
echo -n "Generating /etc/resolv.conf..."
echo "# This file was generated with $0">/etc/resolv.conf
echo "domain ${domain}" >>/etc/resolv.conf
echo "nameserver ${dns}">>/etc/resolv.conf
echo "hostname=\"pico.${domain}\"">>/etc/rc.conf
echo " Done."
echo ""
echo "REMEMBER to run /stand/update! Otherwise these changes will be lost!"
echo ""
echo "Please check the contents of /etc/ppp/ppp.conf, and edit it if"
echo "necessary. When you're satisfied with it, run ppp in background:"
echo ""
echo " ppp -background dialup"
echo ""
echo "Now, if you're sure that your /etc/ppp/ppp.conf file is ok (which is"
echo -n "probable :-) would you like to start the dialup connection now? (y/n) "
read ans
while [ "X${ans}" = "Xy" ]
do
echo ""
echo "Starting dialup connection. Wait until you see a 'PPP Enabled' message..."
echo ""
ppp -background dialup
if [ "X$?" != "X0" ]
then
echo ""
echo -n "Hmmm... Command failed. Try again? (y/n) "
read ans
if [ "X${ans}" != "Xy" ]
then
echo ""
echo "Try again later. Check also your config file (/etc/ppp/ppp.conf)"
echo ""
fi
else
echo ""
echo "Congratulations! You're on-line now."
echo ""
exit 0
fi
done

View file

@ -0,0 +1,364 @@
#!/bin/sh
# $Id: dialup.pl,v 1.4 1998/08/10 19:07:52 abial Exp $
set_resolv() {
echo ""
echo " Domyślna Nazwa Domeny"
echo ""
echo "Podaj domyślną nazwę domeny Internetowej, której będziesz używać."
echo "Jeśli Twój provider ma nazwy typu 'www.akuku.com.pl', to będzie"
echo "to najprawdopodobniej 'akuku.com.pl'."
echo ""
echo "Jeśli po prostu naciśniesz Enter, ustawisz (nieistniejącą) domenę"
echo "'mydomain.org.pl', co nie jest najlepszym pomysłem, ale może na"
echo "razie wystarczyć."
echo ""
read -p "Podaj domyślną nazwę domeny: " domain
if [ "X${domain}" = "X" ]
then
echo ""
echo "Dobrze, ustawimy 'mydomain.org.pl', ale miej świadomość"
echo "że taka domena prawdopodobnie nie istnieje."
echo ""
read -p "Naciśnij Enter" junk
domain="mydomain.org.pl"
fi
echo ""
echo " Adres Serwera DNS"
echo ""
echo "Podaj adres w postaci numerycznej serwera DNS. Jest on potrzebny"
echo "do zamiany nazw (takich jak www.freebsd.org.pl) na adresy IP"
echo "(takie jak 192.168.1.1). Jeśli nie jest to ustawione poprawnie,"
echo "będziesz musiał posługiwać się adresami IP podczas łączenia się"
echo "z innymi maszynami - jest to co najmniej niewygodne."
echo ""
echo "Jeśli po prostu naciśniesz Enter, ustawisz (istniejący) serwer"
echo "o numerze 194.204.159.1 (w sieci TP SA)."
echo ""
read -p "Podaj adres IP serwera DNS (w postaci A.B.C.D): " dns
if [ "X${dns}" = "X" ]
then
echo ""
echo "Dobrze, ustawimy adres DNS serwera na 194.204.159.1, ale"
echo "niekoniecznie musi to być najlepszy serwer w Twojej części sieci."
echo ""
read -p "Naciśnij Enter..." junk
dns="194.204.159.1"
fi
}
set_phone() {
while [ "X${phone}" = "X" ]
do
echo ""
echo " Numer Telefoniczny"
echo ""
echo "Podaj numer telefoniczny, którego normalnie używasz, żeby"
echo "dodzwonić się do swojego providera. Powinieneś podać pełny"
echo "numer, z ewentualnymi przedrostkami, np: 022113355"
echo ""
read -p "Podaj numer telefoniczny: " phone
done
}
set_port() {
while [ "X${dev}" = "X" ]
do
echo ""
echo " Numer Portu Modemowego"
echo ""
echo "Podaj numer portu szeregowego, do którego podłączony jest modem."
echo "UWAGA: DOSowy port COM1 to port 0 (cuaa0) we FreeBSD, COM2 -"
echo "port 1, itd. Podaj tutaj tylko numer, a nie pełną nazwę urządzenia."
echo ""
read -p "Podaj numer portu szeregowego (0,1,2): " dev
done
}
set_speed() {
while [ "X${speed}" = "X" ]
do
echo ""
echo " Prędkość Linii Szeregowej"
echo ""
echo "Wybierz prędkość linii szeregowej, której używa modem."
echo ""
echo "UWAGA: Prędkość linii szeregowej NIE jest tym samym, co prędkość"
echo "modemu. Jeśli Twój modem obsługuje protokół V.42 lub MNP"
echo "(zazwyczaj tak właśnie jest), prędkość linii szeregowej musi być"
echo "dużo większa od prędkości modemu. Np. dla modemów 14.4 kbps z"
echo "kompresją należy wybrać prędkość 38400 bps, a dla modemów"
echo "28.8 kbps z kompresją należy wybrać prędkość 115200 bps."
echo ""
echo " 1. 9600 bps"
echo " 2. 14400 bps"
echo " 3. 28800 bps"
echo " 4. 38400 bps (modem 14.4 kbps z kompresją)"
echo " 5. 57600 bps"
echo " 6. 115200 bps (modem 28.8 kbps z kompresją)"
echo ""
read -p "Wybierz prędkość linii szeregowej (1-6): " ans
case ${ans} in
1)
speed=9600
;;
2)
speed=14400
;;
3)
speed=28800
;;
4)
speed=38400
;;
5)
speed=57600
;;
6)
speed=115200
;;
*)
read -p "Zła wartość! Naciśnij Enter..." junk
unset speed
;;
esac
done
}
set_timeout() {
while [ "X${timo}" = "X" ]
do
echo ""
echo " Czas rozłączenia"
echo ""
echo "Podaj czas (w sekundach), po którym, jeśli nie ma ruchu na łączu,"
echo "nastąpi automatyczne rozłączenie. To pomaga w oszczędzaniu :-)"
echo ""
read -p "Podaj czas rozłączenia: " timo
done
}
set_user() {
while [ "X${user}" = "X" ]
do
echo ""
echo " Nazwa Użytkownika"
echo ""
echo "Podaj nazwę użytkownika (login name), której normalnie używasz"
echo "do zalogowania się do serwera komunikacyjnego providera."
echo ""
read -p "Podaj nazwę użytkownika: " user
done
}
set_pass() {
while [ "X${pass}" = "X" ]
do
echo ""
echo " Hasło"
echo ""
echo "Podaj hasło, którego używasz do zalogowania się do providera."
echo ""
echo "UWAGA: Hasło to zostanie zapisane w czytelnej postaci na"
echo "dyskietce!!! Jeśli tego nie chcesz... będziesz musiał logować się"
echo "ręcznie, tak jak dotychczas. W tym przypadku przerwij ten skrypt"
echo "przez Ctrl-C."
echo ""
read -p "Podaj swoje hasło: " pass
done
}
set_chat() {
echo ""
while [ "X${chat}" = "X" ]
do
echo " Rodzaj dialogu podczas logowania się"
echo ""
echo "Jak normalnie przebiega proces logowania się do serwera"
echo "komunikacyjnego?"
echo ""
echo "1) ......login: ${user}"
echo " ...password: ********"
echo " (tutaj startuje PPP)"
echo ""
echo "2) ...username: ${user} (TP S.A.)"
echo " ...password: ********"
echo " (tutaj startuje PPP)"
echo ""
echo "3) ......username: ${user} (NASK)"
echo " ......password: ********"
echo " portX/..xxx...: ppp"
echo " (tutaj startuje PPP)"
echo ""
read -p "Wybierz 1,2 lub 3: " chat
case ${chat} in
1)
chat1="TIMEOUT 10 ogin:--ogin: ${user} word: \\\\P"
chat2="login/password"
;;
2)
chat1="TIMEOUT 10 ername:--ername: ${user} word: \\\\P"
chat2="TP SA - username/password"
;;
3)
chat1="TIMEOUT 10 ername:--ername: ${user} word: \\\\P port ppp"
chat2="NASK - username/password/port"
;;
*) echo "Zła wartość! Musisz wybrać 1,2 lub 3."
echo ""
unset chat
unset chat2
;;
esac
done
}
# Main entry of the script
echo ""
echo " Witamy w Automatycznym Konfiguratorze PPP! :-)"
echo ""
echo " PPP jest już wstępnie skonfigurowane, tak że można ręcznie wybierać"
echo "numer i ręcznie logować się do serwera komunikacyjnego. Jest to jednak"
echo "dosyć uciążliwy sposób na dłuższą metę."
echo ""
echo "Ten skrypt postara się stworzyć taką konfigurację PPP, żeby umożliwić"
echo "automatyczne wybieranie numeru i logowanie się, a ponadto pozwoli na"
echo "uruchamianie ppp w tle - nie zajmuje ono wówczas konsoli."
echo ""
echo "Jeśli chcesz kontynuować, naciśnij Enter, jeśli nie - Ctrl-C."
echo ""
read junk
# Step through the options
set_phone
set_port
set_speed
set_timeout
set_user
set_pass
set_chat
set_resolv
ans="loop_it"
while [ "X${ans}" != "X" ]
do
echo ""
echo " Ustawione zostały następujące parametry:"
echo ""
echo " 1. Numer telef.: ${phone}"
echo " 2. Numer portu: cuaa${dev}"
echo " 3. Prędkość portu: ${speed}"
echo " 4. Czas rozłącz.: ${timo} s"
echo " 5. Użytkownik: ${user}"
echo " 6. Hasło: ${pass}"
echo " 7. Typ dialogu: ${chat} (${chat2})"
echo " 8. Nazwa domeny: ${domain}"
echo " Serwer DNS: ${dns}"
echo ""
echo "Jeśli te wartości są poprawne, po prostu naciśnij Enter"
read -p "Jeśli nie, podaj numer opcji, którą chcesz zmienić (1-8): " ans
a="X${ans}"
case ${a} in
X1)
unset phone
set_phone
;;
X2)
unset dev
set_port
;;
X3)
unset speed
set_speed
;;
X4)
unset timo
set_timeout
;;
X5)
unset user
set_user
;;
X6)
unset pass
set_pass
;;
X7)
unset chat
unset chat1
unset chat2
set_chat
;;
X8)
unset domain
unset dns
set_resolv
;;
X)
;;
*)
read -p "Zły numer opcji! Naciśnij Enter..." junk
ans="wrong"
;;
esac
done
echo ""
echo -n "Generowanie /etc/ppp/ppp.conf file..."
rm -f /etc/ppp/ppp.conf
cp /etc/ppp/ppp.conf.template /etc/ppp/ppp.conf
echo "" >>/etc/ppp/ppp.conf
echo "# This part was generated with $0" >>/etc/ppp/ppp.conf
echo "dialup:" >>/etc/ppp/ppp.conf
echo " set line /dev/cuaa${dev}" >>/etc/ppp/ppp.conf
echo " set phone ${phone}" >>/etc/ppp/ppp.conf
echo " set authkey ${pass}" >>/etc/ppp/ppp.conf
echo " set timeout ${timo}" >>/etc/ppp/ppp.conf
echo " set login \"${chat1}\"" >>/etc/ppp/ppp.conf
echo " set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0" >>/etc/ppp/ppp.conf
echo " Zrobione."
echo -n "Generowanie /etc/resolv.conf..."
echo "# This file was generated with $0">/etc/resolv.conf
echo "domain ${domain}" >>/etc/resolv.conf
echo "nameserver ${dns}">>/etc/resolv.conf
echo "hostname=\"pico.${domain}\"">>/etc/rc.conf
echo " Zrobione."
echo ""
echo "Ok. Sprawdź zawartość /etc/ppp/ppp.conf, i popraw go jeśli to konieczne."
echo "Następnie możesz wystartować ppp w tle:"
echo ""
echo " ppp -background dialup"
echo ""
echo "PAMIĘTAJ, żeby uruchomić /stand/update ! Inaczej zmiany nie zostaną zapisane"
echo "na dyskietce!"
echo ""
echo "Ok. Jeśli Twój plik /etc/ppp/ppp.conf jest prawidłowy (co jest dosyć"
echo -n "prawdopodobne :-), czy chcesz teraz uruchomić połączenie dialup? (t/n) "
read ans
while [ "X${ans}" = "Xt" ]
do
echo ""
echo "Uruchamiam połączenie dialup. Proszę czekać dopóki nie pojawi się"
echo "komunikat 'PPP Enabled'..."
echo ""
ppp -background dialup
if [ "X$?" != "X0" ]
then
echo -n "Połączenie nie powiodło się. Spróbować jeszcze raz? (t/n) "
read ans
if [ "X${ans}" != "Xt" ]
then
echo "Spróbuj później. Sprawdź również plik konfiguracyjny /etc/ppp/ppp.conf."
echo ""
fi
else
echo ""
echo "Gratuluję! Jesteś on-line."
echo ""
exit 0
fi
done

View file

@ -0,0 +1,5 @@
# $Id: hosts.en,v 1.1.1.1 1998/07/14 07:30:42 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

View file

@ -0,0 +1,5 @@
# $Id: hosts.pl,v 1.1.1.1 1998/07/14 07:30:42 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

View file

@ -0,0 +1,9 @@
#!/bin/sh
# $Id: login.en,v 1.2 1998/07/15 20:11:43 abial Exp $
if [ "$2" != "root" ]
then
exit
fi
cat /etc/motd
exec -sh

View file

@ -0,0 +1,10 @@
#!/bin/sh
# $Id: login.pl,v 1.2 1998/07/15 20:11:44 abial Exp $
if [ "$2" != "root" ]
then
exit
fi
cat /etc/motd
LANG=pl; export LANG
exec -sh

View file

@ -0,0 +1,32 @@
#!/bin/sh
# $Id: mfs.rc.en,v 1.3 1998/08/07 19:29:57 abial Exp $
### WARNING !!!!!! #####
# We remove this file during execution (see EOF).
# Awful things happen if its size is > 1024B
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
sysctl -w vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1 2>&1 >/dev/null
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
umount /start_floppy
echo "Ok. (Now you can remove floppy if you like)"
echo ""
. rc
exit 0

View file

@ -0,0 +1,28 @@
#!/bin/sh
# $Id: mfs.rc.pl,v 1.3 1998/08/07 19:29:57 abial Exp $
### WARNING !!!! ###
# We remove this file during execution (see EOF)
# Awful things happen if its size is > 1024B
trap : 2
trap : 3 # shouldn't be needed
HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
trap "echo 'Reboot zostal przerwany'; exit 1" 3
sysctl -w vm.defer_swapspace_pageouts=1 vm.disable_swapspace_pageouts=1 2>&1 >/dev/null
echo ""
echo "-----------------------------------------------"
echo " Prosze czekac. Trwa uruchamianie systemu..."
echo "-----------------------------------------------"
echo ""
echo "Wczytuje konfiguracje z /etc z dyskietki... "
mount -o rdonly /dev/fd0a /start_floppy
cd /start_floppy/etc
cp -Rp . /etc/
cd /etc
umount /start_floppy
echo "Ok. (Jesli chcesz, mozesz juz wyjac dyskietke)"
echo ""
. rc
exit 0

View file

@ -0,0 +1,16 @@
==================================================
)\_)\
PicoBSD 0.4 (DIALUP) (o,o)
__ \~/
Welcome to PicoBSD! -->====\
~~ d d
You can find a short description of the pico
system in file /README. You can view it using
"ee /README" or "more /README". There is also 'help'
command which gives short description of each program.
Run 'dialup' script to additionaly configure PPP
(including automatic dialing and background operation).
For more info see http://www.freebsd.org/~picobsd.

View file

@ -0,0 +1,16 @@
=======================================================
)\_)\
PicoBSD 0.4 (DIALUP) (o,o)
__ \~/
Witamy w PicoBSD! -->====\
~~ d d
W glownym katalogu w pliku README znajdziesz pico
krotki opis systemu. Mozesz go obejrzec przy pomocy
"more /README" lub "ee /README". Mozesz tez uzyskac
krotki opis kazdego polecenia podajac 'help polecenie'.
Uruchom skrypt 'dialup', zeby w pelni skonfigurowac PPP
(wraz z automatycznym laczeniem sie i praca w tle).
Wiecej informacji znajdziesz na http://www.freebsd.org/~picobsd.

View file

@ -0,0 +1,32 @@
#!/bin/sh
# $Id: rc.conf.en,v 1.2 1998/08/10 19:07:53 abial Exp $
### Network configuration sub-section ######################
### Basic network options: ###
hostname="pico.mydomain.edu" # Set this!
tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
### 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.
### System console options #################################
keymap="NO" # keymap in /usr/share/syscons/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # bell to duration.pitch or normal or visual (or NO).
keychange="NO" # function keys default values (or NO).
cursor="NO" # cursor type {normal|blink|destructive} (or NO).
font8x16="NO" # font 8x16 from /usr/share/syscons/* (or NO).
font8x14="NO" # font 8x14 from /usr/share/syscons/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/* (or NO).
blanktime="NO" # blank time (in seconds) or "NO" to turn it off.
moused_enable="YES" # Run the mouse daemon
moused_type="microsoft"
moused_port="/dev/cuaa0"
moused_flags="-3"
### Allow local configuration override at the very end here ##
if [ -f /etc/rc.conf.local ]; then
. /etc/rc.conf.local
fi

View file

@ -0,0 +1,32 @@
#!/bin/sh
# $Id: rc.conf.pl,v 1.3 1998/08/10 19:07:53 abial Exp $
### Network configuration sub-section ######################
### Basic network options: ###
hostname="pico.mydomain.org.pl" # Set this!
tcp_extensions="NO" # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="lo0" # List of network interfaces (lo0 is loopback).
ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
### 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.
### System console options #################################
keymap="pl_PL.ISO_8859-2.kbd" # keymap in /usr/share/syscons/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # bell to duration.pitch or normal or visual (or NO).
keychange="NO" # function keys default values (or NO).
cursor="NO" # cursor type {normal|blink|destructive} (or NO).
font8x16="iso02-8x16.fnt" # font 8x16 from /usr/share/syscons/* (or NO).
font8x14="NO" # font 8x14 from /usr/share/syscons/* (or NO).
font8x8="NO" # font 8x8 from /usr/share/syscons/* (or NO).
blanktime="NO" # blank time (in seconds) or "NO" to turn it off.
moused_enable="YES" # Run the mouse daemon
moused_type="microsoft"
moused_port="/dev/cuaa0"
moused_flags="-3"
### Allow local configuration override at the very end here ##
if [ -f /etc/rc.conf.local ]; then
. /etc/rc.conf.local
fi

View file

@ -0,0 +1,103 @@
#!/bin/sh
# $Id: rc.en,v 1.3 1998/08/10 19:07:53 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
# start up the initial network configuration.
if [ -f /etc/rc.network ]; then
. /etc/rc.network
network_pass1
fi
# clean up left-over files
if [ -n "$network_pass1_done" ]; then
network_pass2
fi
if [ -n "$network_pass2_done" ]; then
network_pass3
fi
# stdin must be redirected because it might be for a serial console
kbddev=/dev/ttyv0
viddev=/dev/ttyv0
echo -n "Configuring console:"
# keymap
if [ "X${keymap}" != X"NO" ]; then
echo -n ' keymap'; kbdcontrol < ${kbddev} -l /usr/share/syscons/${keymap}
fi
# keyrate
if [ "X${keyrate}" != X"NO" ]; then
echo -n ' keyrate'; kbdcontrol < ${kbddev} -r ${keyrate}
fi
# keybell
if [ "X${keybell}" != X"NO" ]; then
echo -n ' keybell'; kbdcontrol < ${kbddev} -b ${keybell}
fi
# change function keys
if [ "X${keychange}" != X"NO" ]; then
echo -n " keychange"
set - ${keychange}
while [ $# -gt 0 ]
do
kbdcontrol < ${kbddev} -f "$1" "$2"
shift; shift
done
fi
# cursor type
if [ "X${cursor}" != X"NO" ]; then
echo -n ' cursor'; vidcontrol < ${viddev} -c ${cursor}
fi
# font 8x16
if [ "X${font8x16}" != X"NO" ]; then
echo -n ' font8x16'; vidcontrol < ${viddev} -f 8x16 /usr/share/syscons/${font8x16}
fi
# font 8x14
if [ "X${font8x14}" != X"NO" ]; then
echo -n ' font8x14'; vidcontrol < ${viddev} -f 8x14 /usr/share/syscons/${font8x14}
fi
# font 8x8
if [ "X${font8x8}" != X"NO" ]; then
echo -n ' font8x8'; vidcontrol < ${viddev} -f 8x8 /usr/share/syscons/${font8x8}
fi
# blank time
if [ "X${blanktime}" != X"NO" ]; then
echo -n ' blanktime'; vidcontrol < ${viddev} -t ${blanktime}
fi
# mouse daemon
if [ "X${moused_enable}" = X"YES" ] ; then
echo -n ' moused'
moused ${moused_flags} -p ${moused_port} -t ${moused_type}
vidcontrol <${viddev} -m on
fi
echo ''
echo ''
echo ''
echo '+---------- PicoBSD 0.4 (DIALUP) --------------+'
echo '| |'
echo '| Log in as "root" (no password). |'
echo '| |'
echo '| This version of PicoBSD is fully under |'
echo '| BSD license (except for SSH). For more |'
echo '| details see http://www.freebsd.org/~picobsd, |'
echo '| or contact the author. |'
echo '| |'
echo '| abial@nask.pl |'
echo '| |'
echo '+----------------------------------------------+'
exit 0

View file

@ -0,0 +1,70 @@
#!/bin/sh -
# $Id: rc.network.en,v 1.1.1.1 1998/07/14 07:30: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
# 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
}

View file

@ -0,0 +1,70 @@
#!/bin/sh -
# $Id: rc.network.pl,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $
network_pass1() {
echo -n 'Wstepna konfiguracja sieci:'
# 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
# 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 'Dodatkowe opcje routingu:'
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 ' wlaczam 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
}

View file

@ -0,0 +1,107 @@
#!/bin/sh
#
# $Id: rc.pl,v 1.3 1998/08/10 19:07:53 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
# 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
if [ -n "$network_pass1_done" ]; then
network_pass2
fi
if [ -n "$network_pass2_done" ]; then
network_pass3
fi
# stdin must be redirected because it might be for a serial console
kbddev=/dev/ttyv0
viddev=/dev/ttyv0
echo -n "Konfigurowanie konsoli:"
# keymap
if [ "X${keymap}" != X"NO" ]; then
echo -n ' mapa klawiatury'; kbdcontrol <${kbddev} -l /usr/share/syscons/${keymap}
fi
# keyrate
if [ "X${keyrate}" != X"NO" ]; then
echo -n ' keyrate'; kbdcontrol <${kbddev} -r ${keyrate}
fi
# keybell
if [ "X${keybell}" != X"NO" ]; then
echo -n ' keybell'; kbdcontrol <${kbddev} -b ${keybell}
fi
# change function keys
if [ "X${keychange}" != X"NO" ]; then
echo -n " keychange"
set - ${keychange}
while [ $# -gt 0 ]
do
kbdcontrol <${kbddev} -f "$1" "$2"
shift; shift
done
fi
# cursor type
if [ "X${cursor}" != X"NO" ]; then
echo -n ' kursor'; vidcontrol <${viddev} -c ${cursor}
fi
# font 8x16
if [ "X${font8x16}" != X"NO" ]; then
echo -n ' font8x16'; vidcontrol <${viddev} -f 8x16 /usr/share/syscons/${font8x16}
fi
# font 8x14
if [ "X${font8x14}" != X"NO" ]; then
echo -n ' font8x14'; vidcontrol <${viddev} -f 8x14 /usr/share/syscons/${font8x14}
fi
# font 8x8
if [ "X${font8x8}" != X"NO" ]; then
echo -n ' font8x8'; vidcontrol <${viddev} -f 8x8 /usr/share/syscons/${font8x8}
fi
# blank time
if [ "X${blanktime}" != X"NO" ]; then
echo -n ' wygaszacz'; vidcontrol <${viddev} -t ${blanktime}
fi
# mouse daemon
if [ "X${moused_enable}" = X"YES" ] ; then
echo -n ' moused'
moused ${moused_flags} -p ${moused_port} -t ${moused_type}
vidcontrol <${viddev} -m on
fi
echo ''
echo ''
echo '+----------- PicoBSD 0.4 (DIALUP) -------------+'
echo '| |'
echo '| Zaloguj sie jako "root" (brak hasla). |'
echo '| |'
echo '| PicoBSD podlega licencji BSD (z wyjatkiem |'
echo '| SSH). Po wiecej szczegolow zajrzyj na |'
echo '| http://www.freebsd.org/~picobsd, lub |'
echo '| skontaktuj sie z autorem. |'
echo '| |'
echo '| abial@nask.pl |'
echo '| |'
echo '+----------------------------------------------+'
exit 0

View file

@ -0,0 +1,3 @@
#!/bin/sh
# $Id: reboot.en,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $
exec /sbin/echo "Press Ctrl-Alt-Del instead of $0"

View file

@ -0,0 +1,3 @@
#!/bin/sh
#$Id: reboot.pl,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $
exec /sbin/echo "Zamiast $0 nacisnij Ctrl-Alt-Del"

View file

@ -0,0 +1,3 @@
# $Id: resolv.conf.en,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $
domain mydomain.edu
nameserver 192.33.4.12

View file

@ -0,0 +1,3 @@
# $Id: resolv.conf.pl,v 1.2 1998/08/10 19:07:53 abial Exp $
domain mydomain.org.pl
nameserver 194.204.159.1

View file

@ -0,0 +1,20 @@
#!/bin/sh
# $Id: update.en,v 1.4 1998/08/10 19:07:53 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
cp -Rp . /start_floppy/etc/
echo " Done."
echo -n "Updating kernel parameters... "
kget -incore /start_floppy/kernel.config /stand/vanilla
umount /dev/fd0a
cd ${pwd}
echo " Done."

View file

@ -0,0 +1,21 @@
#!/bin/sh
# $Id: update.pl,v 1.4 1998/08/10 19:07:53 abial Exp $
pwd=`pwd`
echo -n "Uaktualniam katalog /etc na dyskietce... "
mount /dev/fd0a /start_floppy
if [ "X$?" != "X0" ]
then
echo ""
echo "Błąd podczas montowania read/write dyskietki!"
echo "Sprawdź, czy nie jest zabezpieczona przed zapisem..."
exit 1
fi
cd /etc
cp -Rp . /start_floppy/etc/
echo " Zrobione."
echo -n "Uaktualniam parametry jądra..."
kget -incore /start_floppy/kernel.config /stand/vanilla
umount /dev/fd0a
cd /etc
cd ${pwd}
echo " Zrobione."

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,69 @@
#
# $Id: Makefile,v 1.3 1998/08/10 19:08:02 abial Exp $
#
DESTDIR?=/mnt
STAND_LINKS= bin sbin
USR_LINKS= bin sbin libexec
PL_LOCALE_LINKS= pl polish
US_LOCALE_LINKS= en english
.if ${LANGUAGE} == pl
LOCALE= pl_PL.ISO_8859-2
LOCALE_LINKS=${PL_LOCALE_LINKS}
FONT=iso02-8x16.fnt
KBD=pl_PL.ISO_8859-2.kbd
.else
LOCALE= en_US.ISO_8859-1
LOCALE_LINKS=${US_LOCALE_LINKS}
.endif
all: tree links
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; \
echo emacs >/usr/share/misc/init.ee; \
cd ../; \
cd locale; \
for i in ${LOCALE_LINKS}; \
do \
ln -s ${LOCALE} $${i}; \
done; \
cp /usr/share/locale/${LOCALE}/* ${LOCALE}/; \
if [ "X${FONT}" != "X" ]; \
then \
cp /usr/share/syscons/fonts/${FONT} ../syscons/; \
cp /usr/share/syscons/keymaps/${KBD} ../syscons/; \
fi; \
cd ../nls; \
for i in ${LOCALE_LINKS}; \
do \
ln -s ${LOCALE} $${i}; \
done;)
# We don't do it under 'all' because it's needed only on non-DEVFS systems
devnodes: tree
(cp MAKEDEV ${DESTDIR}/dev/; \
cd ${DESTDIR}/dev; \
./MAKEDEV std tun2 vty10 fd0 wd0 wd0s1h pty0; \
rm MAKEDEV;)
clean:

View file

@ -0,0 +1,62 @@
# $Id: login.conf,v 1.1 1998/08/10 19:08:02 abial Exp $
# Authentication methods
auth-defaults:\
:auth=krb_skey_or_passwd,passwd,kerberos,skey:
auth-root-defaults:\
:auth-login=krb_skey_or_passwd,passwd,kerberos,skey:\
:auth-rlogin=krb_or_skey,kerberos,skey:
auth-ftp-defaults:\
:auth=skey_or_pwd,passwd,skey:
# Example defaults
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:
# 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:

View file

@ -0,0 +1,58 @@
#
# $Id: mfs.mtree,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $
#
/set type=dir uname=root gname=wheel mode=0755
.
dev
..
dos
..
etc
..
help
..
mnt
..
mnt1
..
mnt2
..
proc
..
stand
..
start_floppy
..
tmp
..
usr
share
locale
pl_PL.ISO_8859-2
..
en_US.ISO_8859-1
..
..
misc
..
nls
pl_PL.ISO_8859-2
..
en_US.ISO_8859-1
..
..
syscons
..
..
..
var
db
..
run
..
spool
lock
..
..
..
..

View file

@ -0,0 +1,82 @@
<HTML>
<! $Id: bugs.html,v 1.3 1998/08/19 16:59:35 abial Exp $ >
<HEAD>
<TITLE>History and Bug fixes</TITLE>
</HEAD>
<BODY>
<center><h1>History and List of Bugfixes</h1></center>
<p>This is the short release history of PicoBSD, as well as the list of bugs
which were found. Some of them were already corrected, so that you should read
the list before reporting a new one.</p>
<p>We tried to make this software bug-free, but life is life... Sorry for the
inconvenience.</p>
<h3>PicoBSD 0.4</h3>
<ul>
<li>
1998.08.19: PicoBSD 0.4 released.
<p>New features include: NATd,
netstat, DEVFS/SLICE instead of standard /dev, additional network
drivers, and several minor fixes. Distribution contains also
a collection of small versions of system programs (TinyWare), among
them custom init(8).</p>
<p>I added also the fourth type of setup - 'router' - which is a
specialized version of PicoBSD that focuses on providing as small
as possible router solution.</p>
</li>
</ul>
<h3>PicoBSD 0.31</h3>
<ul>
<li>
1998.03.28: Some people reported that the binary files (*.flp) were
being corrupted during download because their browsers assumed that
these are text files. I changed the names to *.bin - their contents
is the same.
</li>
<li>
1998.03.20: PicoBSD 0.31 released. New features include: SNMP daemon,
better creation of /kernel.config, some other minor fixes. Massive
changes in the building scripts. I also removed vn(4) driver from
"net" and "isp" floppies.
</li>
</ul>
<h3>PicoBSD 0.3</h3>
<p>The following bugs were found in this release of PicoBSD:</p>
<ul>
<li> 1998.02.27: A bug in kget(8) utility caused it to dump core in certain
situations. As a consequence, it wasn't possible to save the changes
made in UserConfig (-c). This will be corrected in the next release (or
bugfix issue).
</li>
<li> 1998.02.24: Wrongly sized MFS caused the passwd(1) on "net" type
floppy to fail because of lack of space for temporary files. This bug
affected only "net" floppies, and of course the scripts ("2000" looks
quite similar to "2200" :-(( ). Also, the 'update' script didn't work
as expected...
<p> This was fixed the same day, and the corrected files are: pb03en1.zip,
pb03pn1.zip, and pbsd-s031.tgz respectively. They are now under standard
links on the main page of PicoBSD project, so if you downloaded after
this date, you shouldn't worry.</p>
<p> Please check that you have the fixed versions - the archive name should
contain the tiny number, such as "pb03en<b>1</b>.zip", or
pbsd-s03<b>1</b>.tgz".</p>
<li>
1998.02.15: PicoBSD 0.3 released. This is the first version that I can
truly recommend - previous one was too buggy... :-)
</li>
</li>
</ul>
<h5>Last modified:
Wed Aug 19 08:53:04 CEST 1998
</h5>
<HR align="center" width="100%">
<CENTER><h5>Any comments? Send them to
<A HREF="mailto:abial@nask.pl">the author</A> </h5></CENTER>
</BODY>
</HTML>

View file

@ -0,0 +1,208 @@
<HTML>
<! $Id: faq.html,v 1.2 1998/08/19 06:46:19 abial Exp $ >
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Dinesh Nair">
<META NAME="Description" CONTENT="Frequently Asked Questions for PicoBSD">
<META NAME="Keywords" CONTENT="PicoBSD,FreeBSD,Unix,Dinesh Nair,Andrzej Bialecki,Network Computer">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (X11; I; FreeBSD 2.2.5-STABLE i386) [Netscape]">
<TITLE>PicoBSD FAQ</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#51188E" ALINK="#FF0000">
<CENTER>
<H1>
The PicoBSD FAQ
</H1></CENTER>
<CENTER>
<HR WIDTH="100%"></CENTER>
<B>What is PicoBSD ?</B>
<P>PicoBSD is a floppy sized version of popular operating system FreeBSD.
It fits within a single bootable 1.44MB floppy and runs on a minimum i386
with 8MB RAM. PicoBSD currently comes in four flavours: dialup, net, router and
isp. For a description of how each of the flavours differ, take a look
at the <B><A HREF="http://www.freebsd.org/~picobsd/picobsd.html">PicoBSD
home page</A></B>.
<P><B>What version of FreeBSD is PicoBSD based on ?</B>
<P>PicoBSD has versions based on both FreeBSD 3.0-current and FreeBSD 2.2.5-RELEASE.
<A HREF="mailto:abial@nask.pl">Andrzej Bialecki</A> maintains the <A HREF="http://www.freebsd.org/~picobsd/picobsd.html">FreeBSD
3.0-current version</A> and <A HREF="mailto:dinesh@alphaque.com">Dinesh
Nair</A> maintains the <A HREF="http://info.net-gw.com/picoBSD/">FreeBSD
2.2.5-RELEASE</A> version. Both the versions don't differ by much except
for the following:
<UL TYPE=CIRCLE>
<LI>
the 3.0-current version is, well, more current so it has support for the
latest whiz-bang devices; on the other hand, it sometimes mean it can
provide functionality not yet present in 2.2.5-RELEASE</LI>
<LI>
the 2.2.5-RELEASE version is more stable and since binary sizes are smaller,
it sometimes has a little more functionality than the 3.0-current version</LI>
</UL>
As far as possible, both versions will be kept functionally similar, but
occasionaly divergence may occur.
<P><B>What can PicoBSD do?</B>
<P>With the TCP/IP capabilities of FreeBSD included in and based on the
strong 4.4BSD TCP/IP stack, PicoBSD can be used as a low cost Network Computer.
With a text based HTML 3.2 compliant browser (2.2.5-RELEASE version only)
and Internet access tools such as telnet and ftp, it can serve as a low
cost Internet dialup client. With support for mounting MSDOS and Unix harddisks,
it also can be used as a portable OS which you can carry around in a floppy.
The net and isp flavours would allow you to make use of those redundant
i386es as a low cost router or dialin PPP server. With SNMP and firewall
support built-in, PicoBSD provides the functionality of dedicated routers
and dialin terminal servers.
<P><B>What are PicoBSD's minimum requirements?</B>
<P>PicoBSD runs on a minimum i386 with 8MB RAM for the dialup flavour and
10MB RAM for the net and isp flavours. Diskspace requirements are a single
1.44MB floppy. For on-demand PPP access, a modem would be required, either
external or internal.
For LAN access, an Ethernet NIC (support for 3Com, NE2000 etc available)
would also be required.
<P><B>Where do I get PicoBSD?</B> PicoBSD is available at the following
locations:
<UL TYPE=CIRCLE>
<LI>
<A HREF="http://www.freebsd.org/~picobsd/picobsd.html">PicoBSD based on
FreeBSD 3.0-current</A> maintained by Andrzej Bialecki</LI>
<LI>
<A HREF="http://info.net-gw.com/picoBSD/">PicoBSD based on FreeBSD 2.2.5-RELEASE</A>
maintained by Dinesh Nair</LI>
</UL>
Additional mirror sites will be brought online as demand increases. If
you're interested in mirroring the PicoBSD distribution, please get in
touch with <A HREF="mailto:dinesh@alphaque.com">Dinesh Nair</A> or
<A HREF="mailto:abial@nask.pl">Andrzej Bialecki</A>.
<P><B>How do I copy it to the floppy?</B>
<P>The binary images provided as part of the PicoBSD distribution are 1.44MB
sized floppy images. They cannot be copied to a floppy using the <I>MSDOS
COPY</I> or <I>Unix cp</I> commands. Instead, an image copy must be done
using tools such as&nbsp; <A HREF="ftp://ftp.freebsd.org/pub/FreeBSD/tools/rawrite.exe">rawrite.exe</A>
or f<A HREF="ftp://ftp.freebsd.org/pub/FreeBSD/tools/fdimage.exe">dimage.exe</A>
under MSDOS and <B>dd</B> under Unix.
<P>Under DOS you would do something like this:
<UL>
<PRE><B>C:\> fdimage.exe picobsd.flp a:</B></PRE>
</UL>
while under Unix you would use something like:
<UL><B>dd if=picobsd.flp of=/dev/rfd0</B></UL>
<B>How do I configure dialup PPP access on the Dialup flavour?</B>
<P>There is an auto-configuration script to configure PPP dialup access.
Run <I>/stand/dialup</I> after booting up from the floppy and make the
relevant menu selections. Once you've tested it to work, you should make
your changes permanent by committing them to the floppy using <I>/stand/update</I>.
<P><B>How do I set my DNS server ?</B>
<P>Use the provided <I>/stand/ee</I> editor and edit <I>/etc/resolv.conf</I>.
Replace the <U>domain</U> with your domain and change the <U>nameserver</U>
IP address to your nameserver or your ISP's nameserver. You may have as
many <U>nameserver</U> lines as you want. Don't forget to run <I>/stand/update</I>
to commit your changes to the floppy.
<p>NOTE: starting with version 0.4, the <i>dialup</i> scripts asks you to
set your nameserver as well as default domain name.</p>
<P><B>How do I set my hostname ?</B>
<P>Edit /<I>etc/rc.conf</I> and change the value of the <U>hostname</U>
variable.
<p><b>PicoBSD has "mkdir" but not "rmdir". How can I delete
subsdirectories?</b></p>
<p>"rm -d" will delete directories.</p>
<p><b>Can I use a modem configured on COM3/COM4 instead of COM1, COM2?</b></p>
<p>Yes, but these ports are initially disabled - most machines have only
two serial ports anyway. You have to enable them in UserConfig.</P>
<p>Here are the preferred settings:</p>
<ul>
<li> sio0=COM1: port 0x3f8, irq 4, used by default for mouse (/dev/cuaa0)
</li>
<li> sio1=COM2: port 0x2f8, irq 3, used by default for modem (/dev/cuaa1)
</li>
<li> sio2=COM3: port 0x3e8, irq 5, disabled by default
</li>
<li> sio3=COM4: port 0x2e8, irq 10, disabled by default
</li>
</ul>
<p><b>I see a configuration conflict the first time I boot PicoBSD. What
should I do?</b></p>
<p>Disable those devices which are not present in your machine. If there is
still some conflict, change the settings (I/O port, IRQ etc.).</p>
<p><b>What kind of SCSI support is there?</b></p>
<p>None. Either build your own version of PicoBSD, or just install normal
FreeBSD distribution.</p>
<P><B>How do I connect using PPP ?</B>
<P>Just run the PPP process, <I>/stand/ppp</I>. at the <B>ppp on pico></B>
prompt, type <U>dial</U> and sit back and wait for the modem to sing it's
mating tunes. When the <B>ppp on pico></B> prompt is capitalized to <B>PPP
on pico></B>, you've managed to succesfully achieve a link-level PPP and
TCP/IP connection with your ISP. Additionally, the PPP program will enter
<I>Packet Mode</I>. Remember, don't <U>quit</U> or <U>close</U> the PPP
connection if you want to continue to access the Internet.&nbsp; Type <U>help</U>
at the <B>ppp on pico></B> prompt for a list of PPP commands.
<P><B>The PPP process is running on my screen. How do I use the browser
or telnet to a host ?</B>
<P>PicoBSD has many virtual terminals, 10 on the dialup flavour. You have
run PPP on the first virtual terminal. You can switch to the others and
run the browser and telnet clients there. Switching thru the VTs is done
by ALT-F1 for VT0, ALT-F2 for VT1, ALT-F3 for VT2 etc. From these terminals,
you could use telnet or the lynx browser cum newsreader.
<p><b>I can't establish a PPP connection. The mouse pointer randomly appears
and disappears. and moving the mouse has no effect.</b></p>
<p>You have the mouse driver configured to use the modem's serial port.
Issue a 'ps -ax', remember the pid (process ID) of 'moused', then issue a
'kill -9 <pid>'. Edit /etc/rc.conf to specify the correct mouse port. Issue
an 'update' commmand to save new configuration to the floppy, and reboot.
<P><B>I saved my lynx configuration but it was not there when I rebooted.
Why ?</B>
<P>The lynx configuration is saved in <I>/etc/lynx.cfg</I>. You should
run /<I>stand/update</I> to commit this to the floppy when you change the
configuration. In effect, anything you change in /etc can be committed
by running /<I>stand/update</I>.
<P><B>How come there are no manual pages ?</B>
<P>Well, this is a floppy-sized OS, so there's not enough space for full
manpages. Instead, short help descriptions are given with the <I>/stand/help</I>
program. If you need more detailed descriptions, take a look at the <A HREF="http://www.freebsd.org/handbook/">FreeBSD
Handbook</A> or the <A HREF="http://www.freebsd.org/">FreeBSD Home</A>.
<BR>&nbsp;
<BR>&nbsp;
<HR WIDTH="100%">
<CENTER><FONT SIZE=-1>More FAQ points will be added as feedback from the
PicoBSD user community comes in. And big thanks to all of you who already
sent us some suggestions!</FONT></CENTER>
<P><B><FONT SIZE=-1>Last Modified:
Sun Aug 9 13:40:15 CEST 1998
</FONT></B></P>
</BODY>
</HTML>

View file

@ -0,0 +1,107 @@
<html>
<! $Id: hardware.html,v 1.3 1998/08/19 16:59:35 abial Exp $ >
<body>
<h1><center>Lists of supported hardware configurations.</center></h1>
<p>Below you will find supported configurations for each of the flavors of
PicoBSD as of version 0.4, as well as the lists of programs included.</p>
<h3>Dialup version:</h3>
<ul>
<li>minimum 386SX CPU (either Intel, AMD, Cyrix etc - doesn't matter),
</li>
<li>minimum 8MB of RAM (some people reported success
stories with 4MB only, but I certainly don't recommend it)
</li>
<li>a modem (for Internet connection using PPP protocol), either internal or
external, connected to COM1-COM4. NOTE: COM3 and COM4 are disabled by default
- you have to explicitly enable them in UserConfig.
</li>
<li>an Ethernet card for LAN connection:
<ul>
<li> ed - default settings: port 0x280, irq 10, iomem 0xd8000
<p>NE2000 compatible ISA and PCI cards, most SMC and 3C503</p>
</li>
<li> ep - default settings: port 0x300, irq 10,
<p>3C509 ISA card</p>
</li>
<li> ie - default settings: port 0x300, irq 10, iomem 0xd0000
<p>Intel EtherExpress ISA, StarLan, 3C507</p>
</li>
<li> le - default settings: port 0x300, irq 5, iomem 0xd0000
<p>DEC EtherWorks 2 and 3</p>
</li>
<li> lnc - default settings: port 0x280, irq 10, iomem 0xd0000
<p>Lance/PCNet</p>
</li>
<li> de - DEC21040-based PCI cards,
</li>
<li> fxp - Intel EtherExpress Pro/100B PCI card
</li>
</ul>
</li>
<li>10 virtual consoles plus console utilities (vidcontrol, kbdcontrol)
</li>
<li>basic networking tools: ifconfig, route, ping, ns (mini-netstat),
traceroute
</li>
<li>basic remote access tools: telnet, ftp and SSH
</li>
<li>basic OS tools: shell, mount (FreeBSD, DOS, Linux), umount, ps, kill, vm
(mini-vmstat), fsck, df, etc..
</li>
<li>editable configuration (/etc directory and kernel configuration)
</li>
<li>simple editor ee
</li>
<li>simple help system for people new to FreeBSD
</li>
</ul>
<h3>Router-like version:</h3>
<ul>
<li>minimum 386SX CPU,
</li>
<li>minimum 10 MB of RAM (8MB for basic setup)
</li>
<li>support for PPP protocol on dialup/leased lines (using ijppp)
</li>
<li>support for several types of Ethernet cards (two of each kind) - see above
for descriptions: ed, ie, ep, de, fxp, lnc
</li>
<li>network daemons: routing daemon (routed), inetd, telnetd, snmpd.
</li>
<li>IP Firewall and NAT daemon (natd).
</li>
<li>more OS utilities, including: syslogd, mount_nfs, network logins via
telnet
</li>
<li>this version doesn't include: ssh, ftp
</li>
</ul>
<h3>Router version:</h3>
<ul>
<li>minimum 386SX CPU,
</li>
<li>minimum 4 MB of RAM (6MB for running some additional daemons)
</li>
<li>support for PPP protocol on dialup/leased lines (using kernel ppp)
</li>
<li>support for several types of Ethernet cards - see above
for descriptions: ed, ie, ep, de, fxp, lnc
</li>
<li>custom init(8), which includes also a simple command-line interface,
and its own way to configure the system on startup.
</li>
<li>IP Firewall and NAT daemon (natd - it requires additional portion of RAM).
</li>
<li>very few OS tools, except those absolutely necessary,
</li>
</ul>
<p>There's also the fourth version, which can serve as a dialin server - I hope
you'll find it as a cheap yet reliable alternative to commercial communication
servers :-)) This work is still in progress, and
<A HREF="beta.html">I need some people to test</a> the early
dial-in server version.</p>
</body>
</html>

View file

@ -0,0 +1,177 @@
<html>
<! $Id: how2build.html,v 1.2 1998/08/19 16:59:36 abial Exp $ >
<head>
<title><center>PicoBSD Development Kit</center></title>
</head>
<body>
<h1><center> How to build your own version
of PicoBSD?
</center></h1>
<ol>
<li>
Get the file <code>picobsd.tgz</code>. It contains the scripts
you'll need. Also, I assume you run quite -current system with
full sources installed.
<p> NOTE: there were some mysterious interactions between vn(4) driver and
'disklabel auto' in versions earlier than 3.0. There is another set
of scripts prepared by <A HREF="mailto:dinesh@alphaque.com">Dinesh Nair
</a> which allows to build PicoBSD floppies on a earlier systems.</p>
<p> Unpack the archive in some place with at least 5MB free space.</p>
</li>
<li> Change working directory (<code>cd build</code>) and run the
<code>./build</code> script. Select target language, size of MFS and
one of pre-canned setups (personal dialup, dialin server or
router-like). Details of each setup are contained in
dial/, isp/ and net/ directories respectively. You should at least
check <code>${TYPE}/config/PICOBSD</code> file to make sure it contains
the drivers you want.
<p> I also recommend to adjust the ISA devices parameters to
match the ones of your hardware - though PicoBSD can save the
changes from UserConfig, this way it will produce smaller
<code>/kernel.config</code> file.</p>
</li>
<li> I assume you will use 1.44MB floppy. If not, please edit the file
<code>build/stage3</code>.
</li>
<li> There are several directories which contain some sources and config
files:
<pre>
build/ main build directory; you MUST cd here!
dial/ config files for dialup setup
conf/ kernel config file
crunch1/ crunch of system programs
mfs.tree/ contains the MFS configuration
lang/ contains language-dependent files
floppy.tree/ contains the startup floppy hierarchy
isp/ config files for dialin server setup
... (as above)
net/ config files for router-like setup
... (as above)
tinyware/ collection of small system utilities
tools/ additional tools them needed during build
</pre>
<p> There are no <code>/etc/passwd</code> nor <code>/etc/pwd.db</code>
files on the "dial" floppy - in case of other types, they are
reconstructed from <code>/etc/master.passwd</code> on each startup
(and then put on MFS with the rest of <code>/etc</code>).
In case of "dial" type floppy, you don't need them at all.</p>
<p> NOTE: thanks to the above, the floppy is needed only during startup,
and then only if you want to synchronize (possibly changed) MFS /etc
with the one on the floppy. It means that you can pull off the floppy
from the drive as soon as <code>login:</code> prompt appears.
In other words, it is almost equal to read-only floppy.</p>
</li>
<li> Edit the set of installed programs.
<ul>
<li> Go to <code>${TYPE}/crunch1</code> directory, and edit it
to suit your needs. Keep in mind that floppies aren't made
of rubber... :-)
</li>
<li> There are some patches included in these directories, which
are applied during build process to some of the Makefiles in
your <code>/usr/src</code>. These patches attempt to decrease
the size of some programs by cutting off rarely/unlikely used
parts. The patches are reversed when you do a
<code>make clean</code> (or <code>build/clean</code>
for that matter).
<p> NOTE: patches may fail to apply, if your sources are too
different from the ones I used. Don't worry: they are so
straightforward that you can apply them by hand.</p>
</li>
<li> In order to have a functioning system you MUST include at
least <code>/stand/init</code>, or <code>/stand/oinit</code>,
or <code>/stand/sysinstall</code> in
your <code>crunch.conf</code>. Of course these can be your
own programs... But if you install the stock
<code>/sbin/init</code>, you
also have to install some others, like sh, getty, login etc...
<p> This release of PicoBSD contains a small replacement for
init(8), called 'oinit'. You can find it in TinyWare
collection. The main building script allows you to use it
instead of normal init(8). <b>Be sure to read the oinit's docs
before you decide to use it!</b></p>
</li>
</ul>
</li>
<li> Make sure that the system you're running has /dev/[r]vn0* entries in
/dev directory (if not, you can make them with 'MAKEDEV vn0'), AND
that your running kernel has built-in vnode driver (there should be a
line in your kernel config file stating 'pseudo-device vn').
</li>
<li> You'll need at least 9MB of free disk space, and free /mnt directory.
</li>
<li> Do a <code>cd build/</code> and fire off the <code>./build</code>
script. Select the build parameters or 'n' for 'no change'. If all
is well, after some time (like 10-30m) you end up with a
'picobsd.bin' file in this directory.
<p> WARNING: make sure you don't have stale <code>.depend</code> files
around!!! You may encounter many strange errors during build process
in that case.</p>
<p> If there were any errors, please execute each script by hand and try
to find what causes this error. Most often this will be one of the
following reasons:</p>
<ul>
<li> <code>crunchgen</code> can't find the source directory for a
program 'proggy':
<ul>
<li> make sure that the source directory for 'proggy' is called
'proggy', otherwise the crunchgen won't find it
</li>
<li> make sure that the Makefile allows crunchgen to deduce the
set of objects to build. You can manually add an OBJS= ...
to the program's Makefile.
</li>
</ul>
</li>
<li> crunch fails to build.
<ul>
<li> check your system source tree for stale .depend files and/or
objects (*.o)
</li>
<li> see if the individual programs can be built using original
Makefiles. If not, cvsup the correct sources.
</li>
</ul>
</li>
<li> /: write failed - file system is full
<ul>
<li> this one is obvious - you wanted to put too many programs on
the MFS and/or the target floppy. Or, you really don't have
any space left on the root partition.. :-)
</li>
<li> also, you can check if the
MFS size is correctly reported while it's still mounted (right
after <code>stage1</code> script ends).
</li>
</ul>
</ul>
You can also remove <code>2>&amp;1</code> redirections from Makefiles
to see the stderr.
</li>
<li> Transfer this file to the floppy:
<pre>
dd if=picobsd.bin of=/dev/rfd0
</pre>
(The 'build' script asks you if you want to do this.)
</li>
</ol>
<p>That's all. You're welcome to change and improve these scripts. If you
stumble upon something which looks like a good idea to have it here, let me
know.</p>
<p>If, for some reason, the scripts don't work for you at all, also let me
know.</p>
<A HREF="mailto:abial@nask.pl">&lt;abial@nask.pl&gt;</a>
</body>
</html>

View file

@ -0,0 +1,126 @@
<html>
<! $Id: intrinsics.html,v 1.2 1998/08/19 16:59:36 abial Exp $ >
<head>
<title><center>Details of building process</center></title>
</head>
<body>
<h1><center> Details of building process.</center></h1>
<p>For those of you who really want to know what's going on behind the scene,
and can't quite deduce it from scripts themselves, here's short description of
the build process:</p>
<ul>
<li> The './build' script sets the basic parameters of the floppy, such as:
<ul>
<li> LANGUAGE: language of the various system messages, and C locale.
Available choices are: "en" (English) and "pl" (Polish).
</li>
<li>
SIZE: size of the memory filesystem (MFS), which will contain all the
binaries (except the kernel). Make it big enough for all the pieces to
fit, but keep it as small as possible (remember that running system
needs some space in /var and /tmp!). Presently, "dial" type of floppy
requires at least SIZE=1700, and others require ca. 2800 (numbers
are in kB).
</li>
<li>
TYPE: determines which set of programs and which trees will be
installed on the floppies. This simply acts as a selector to dive into
respective subdirectories in ../. Presently, the TYPE can be one of:
"dial" (dialup floppy), "net" (networking floppy), "router" (router
floppy) or "isp" (work in progress - not really usable yet).
</li>
</ul>
<li>
Then the './build' scripts checks if there is a kernel built on basis
of previously set parameters. The check is error prone, but is simple:
the target config file is called PICOBSD-${TYPE}.${SIZE}, and if there
exists a file called /sys/compile/PICOBSD-${TYPE}.${SIZE}/kernel, then
it is assumed it's the right one.
<p> If there is no such file, the script starts compilation of the kernel,
using template in ../${YTPE}/conf/PICOBSD, and adding parameters which
determine the built-in MFS size.</p>
<li>
Then the './build' script starts the consecutive stages of the build
process, which are performed by scripts (in the following order):
stage1, populate, stage2, stage3.
</li>
<li>
'stage1' prepares the file called fs.PICOBSD with given size - it's a
placeholder for the future MFS. Next, it turns it into device (using
vnconfig), and then performs some tricks :-) which allow for
doing 'disklabel'. I use the 'auto' option to disklabel(8), which
behaves strangely in 2.2.x - what it's supposed to do is to
automagically determine the disk parameters from the underlying
device (in this case, /dev/rvn0). This works ok in 3.0-current, and
allows for using arbitrary (>1024kB) MFS sizes.
<p> One notable exception here is with the "router" floppy - I use one
of extended floppy formats (820kB).</p>
<p> After the file is labelled, the newfs(8) is run. Here you can adjust
the parameter -i, which can gain you some space on the MFS (sacrificing
available number of inodes, so be careful).</p>
<p> Such prepared blank filesystem is mounted on /mnt. Here the stage1
ends.</p>
</li>
<li>
'populate', as its name suggests, transfers all the pieces which will
reside in MFS, to the filesystem mounted on /mnt. This includes:
<ul>
<li> copying language dependent files from ../${TYPE}/lang/</li>
<li> making the MFS hierarchy according to informations in
../${TYPE}/mfs.tree/ subdir.
<p> The MFS tree includes the /etc, which will contain the startup file
/etc/rc.
This file in turn doesn't do anything useful except copying the
real /etc hierarchy from the floppy filesystem. (There's one possible
improvement which comes to my mind - to have the whole /etc on the
floppy in tar.gz - this would require only one inode to store the whole
/etc, and we could gain some kB on the floppy)</p>
</li>
<li> making and installing the set of crunched programs, basing on the
description in ../${TYPE}/crunch1/crunch.conf. This involves
making the 'crunch', copying it to /mnt and making hard links to
the names of all the programs contained therein.</li>
<li> preparing a short list of kernel symbols, which will be used by
various utilities at runtime. In case of "net" and "isp" floppy, it also
prepares the kvm_kernel.db database, which will be used by such
programs as ps, netstat and others</li>
<li> preparing the list of "virgin" configuration of devices in kernel -
this list will be used by kget(8) program to save the changes to
/kernel.config file.</li>
</ul>
</li>
<li>
'stage2' prepares the target kernel. It takes the filesystem contained
in fs.PICOBSD (which has all the above pieces inside), and writes it
into the target kernel. Then it kzip(8)'s such construed kernel. This
process also strips the symbols from the kernel (that's why we prepared
the symbol list earlier).
</li>
<li>
'stage3' does almost the same as 'stage1', but this time it prepares
the filesystem of the target floppy. Default size for the floppy is
set at 1440kB.
<p> After preparing the filesystem (which again involves doing disklabel(8)
and newfs(8) - here you can notice that the resulting FS has very small
number of inodes in order to save space), the script transfers the
floppy hierarchy (which is
taken from ../${TYPE}/floppy.tree). Notice that it also contains
the /etc directory - its contents is copied right after bootup to the
real /etc in MFS. This allows for changing the system behaviour
(because you can't change the MFS contents without recompiling).</p>
<p> The script finally copies previously prepared kernel to the floppy
filesystem. The filesystem is unmounted, and here the build process
ends.</p>
</li>
</ul>
<h6>
Last modified:
Wed Aug 19 18:49:08 CEST 1998
</h6>

View file

@ -0,0 +1,300 @@
<HTML>
<! $Id: intro.html,v 1.6 1998/08/19 17:32:59 abial Exp $ >
<HEAD>
<TITLE>PicoBSD</TITLE>
</HEAD>
<BODY>
<CENTER><h1><B>PicoBSD</B></h1>
<HR shade align="center" size="8" width="25%"></P></CENTER>
<IMG SRC="icons/daemon.gif" ALIGN="right">
<p><b>Contents:</b></p>
<ul>
<li>
<A HREF="#what">What is it</a>, and
<A HREF="#hardware">what hardware is supported?</a>
</li>
<li>
<A HREF="#where"><b>Where can I get it?</b></a>
</li>
<li>
<A HREF="#how">How can I use it?</a>
</li>
<li>
<A HREF="#create">Create your own, custom version of PicoBSD!</a>
<p>Get the full PicoBSD Development Kit as well as full CVS repository of
the project.</p>
</li>
<li>
<A HREF="#info">Where can I get more info?</a>
</li>
<li>
<A HREF="bugs.html">Release history and bugs parade...</a>
<li>
<A HREF="#future">Plans for the future.</a>
</li>
<li>
<A HREF="#credits">Credits</a>
</li>
<li>
<A HREF="#license">Licensing issues</a>
</li>
<li>
<A HREF="faq.html">FAQ</a>
</li>
</ul>
<HR shade align="center">
<HR shade align="center">
<A NAME="what"><h3>What is it?</h3>
<p>If you ever dreamed about having really small, tiny, minimal system that
would offer you benefits of Unix, while still fitting in reasonable space -
here it is!</p>
<p>PicoBSD is a one floppy version of
<A HREF="http://www.freebsd.org/">FreeBSD</a> 3.0-current, which in its
different variations allows you to have secure dialup access, small diskless
router or even a dial-in server. And all this on only one standard 1.44MB
floppy - no need to sacrifice over 100MB of your precious HDD space.</p>
<p>PicoBSD is... well, pico-sized :-) , and the minimal hardware that
is required to run it is 386SX CPU with 8MB of RAM (no HDD!).
</p>
<A NAME="hardware">
<p>Here you can find detailed <A HREF="hardware.html">list of supported
hardware and features</a>.
<p>Current version of PicoBSD is 0.4, and this means that I consider it
greatly immature, while on the other hand being somewhat tested and improved
over previous versions. Does it tell you something? Well, at least you can
try it - I cannot guarantee that it doesn't burn your house or blow up your
machine, though the former is unlikely... :-)</p>
<HR shade align="center">
<A NAME="where"><h3>Where can I get it?</h3>
<p>There are two language editions of PicoBSD - English and Polish one. You'll
be probably more interested in the former :-) The only difference is in
the set of fonts included, C locale, and the language of messages.</p>
<p>You can download them from www.freebsd.org or one of its mirrors:</p>
<ul>
<li>Dialup version: <A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_en-D.bin">English</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_dial/README.en">README</a>) or
<A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_pl-D.bin">Polish</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_dial/README.pl">README</a>)
</li>
<li>Networking (formerly known as 'router-like') version: <A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_en-N.bin">English</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_net/README.en">README</a>)
or <A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_pl-N.bin">Polish</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_net/README.pl">README</a>)
</li>
<li>Router version: <A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_en-R.bin">English</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_router/README.en">README</a>)
or <A HREF="http://www.freebsd.org/~picobsd/picobsd/pb_pl-R.bin">Polish</a>
(<A HREF="http://www.freebsd.org/~picobsd/picobsd/doc_router/README.pl">README</a>)
</li>
<li>Dial-in server version: waiting for <A HREF="beta.html">beta testers</a> ... :-)
</ul>
<p><i>(See the <A HREF="hardware.html">feature list</a> for more
details)</i></p>
<p>The above floppies were built from 3.0-current sources. Though they
provide more features, they tend to be less stable than the latest
RELEASE of FreeBSD. Dinesh Nair back-ported these scripts to the
latest release (2.2.5), and continues development of PicoBSD using sources
from that branch. You can find floppies built from 2.2.5 sources
<A HREF="http://www.freebsd.org/~picobsd/picobsd225/">here</a> or at
<A HREF="http://info.net-gw.com/picoBSD/">his server</a>.</p>
<HR shade align="center">
<A NAME="how"><h3>How can I use it?</h3>
<p>Previous versions were packed with PKZIP(tm) compatible program - now they
are simply the raw binary floppy images, so you just need to grab the
appropriate version of the file.</p>
<p>I assume you will use 1.44MB floppy to boot the system - other sizes
(bigger) are not tested.</p>
<p>The file 'pb_xx-X.bin' must be written onto a blank floppy. It does NOT
mean that it can be copied using e.g. DOS 'copy' command. You must use a
program like
<A HREF="ftp://ftp.freebsd.org/pub/FreeBSD/tools/rawrite.exe">rawrite.exe</a>
or
<A HREF="ftp://ftp.freebsd.org/pub/FreeBSD/tools/fdimage.exe">fdimage.exe</a>
to write this file directly on the raw floppy.</p>
<p>Under DOS you would do something like this:</p>
<pre>
C:\> fdimage.exe pb_xx-X.bin a:
</pre>
<p>while under Unix you would use something like:</p>
<pre>
dd if=pb_xx-X.bin of=/dev/rfd0
</pre>
<p>Then boot off this floppy and enjoy!</p>
<p>If you feel lost, try the 'help' command (it's available only on "dialup"
floppies)</p>
<HR shade align="center">
<h3>Create your own, custom version of PicoBSD!</h3>
<p>I made available also the
<A HREF="http://www.freebsd.org/~picobsd/picobsd/picobsd.tgz">set of tools</a>
(a.k.a the PicoBSD Development Kit) I used to create the floppies (see also the
<A HREF="how2build.html">detailed instructions</a>)</p>
<p>You can also get the copy of
<A HREF="http://www.freebsd.org/~picobsd/pcvs.tgz">the CVS repository</a> of
the project - CVSup operation is still under construction...</p>
<p> Now, if you don't like the setup of PicoBSD, or you miss
some program, or (better yet) you want to improve PicoBSD - you can grab the
copy of exactly the same tools I used and build your own, customized
version! </p>
<p>Think of it: if your're an ISP, you can build the dialup version for
your customers, including some scripts to automatically connect them to
your site. You can also create a demo disk for your friend (or your boss! :-)).
You can also build a firewall/router for your office, etc, etc...
possibilities are really endless and limited only by your imagination.</p>
<p>You will need at least 10MB of free disk space for building, and of course
the full system sources installed. I also assume that the sources are
quite -current. There is also a back-ported version of the scripts prepared by
<A HREF="mailto:dinesh@alphaque.com">Dinesh Nair</a> which builds ok on
2.2.6-R systems.</p>
<p>Version 0.31 was packed with pax(1) - newer versions are packed again
with tar and gzip to avoid confusion... :-)</p>
<p>I'm very interested in hearing from you about your experiences - if you
come up with a setup you think is interesting, please let me know!</p>
<HR shade align="center">
<A NAME="info"><h3>Where can I get more info?</h3>
<p>Almost all of the programs included on the floppies are exactly the
same versions as in normal FreeBSD installation, so that the normal
manual pages apply. However, I didn't include the manpages themselves -
they would take over 200kB!</p>
<p> For the total newbies, which would use (I assume)
the 'dialup' version, there is a short README on the floppy which gives
step by step instructions on how to get a dialup connection. There is also
a script called 'dialup' which attempts to configure PPP to allow for automatic
log in to your provider, and for background operation.
There is also a small help system ('help' command)</p>
<p> There are some system utilities which are unique to PicoBSD, and at this
moment they are documented in detail only in source and READMEs :-(.</p>
<p>As for the new releases which will (hopefully) be prepared in the future:
just keep an eye on this page. I'll also send announcements to FreeBSD mailing
lists.</p>
<HR shade align="center">
<A NAME="future"><h3>Plans for the future</h3>
<p>Well, I hope that thanks to your comments I'll be able to continuously
improve the setup and contents of PicoBSD. I also have specific dreams (if
dreams can be specific..) - here they are, as an incentive to your
imagination and coding skills:</p>
<ul>
<li>
To write a command line tool patterned after Cisco IOS, which could configure
various aspects of router-like version of PicoBSD. I'm nowhere near with this
goal - I even don't have any good idea how to do it cleanly (I do have some
ideas, but I classify them as dirty hacks).
</li>
<li>
To put an XWindow-like GUI on the 'dialup' floppy. (Update: you can look at
<A HREF="http://www.freebsd.org/~picobsd/preview/preview2.tgz">preview
version</a> and send me your comments).
</li>
<li>
To gain some experience with solid state disks, and prepare standard images
for e.g. 4MB versions of SSD, with Cisco 25xx-like contents... I also hope
to achieve this goal in the nearest
future, thanks to involvement of some PicoBSD enthusiast :-)</p>
(Update: I'm experimenting with an M-System's 16MB flash right now, and
there is also ongoing development for a driver for their DiskOnChip)
</li>
<li>
To be able to boot from more primitive filesystem than FFS - DOS or Minix
would be just fine, as they don't waste so much space for their internals.
</li>
<li>
To have an alternative to current MFS - it wastes a lot of space just
because it mimicks the normal FFS on top of memory blocks...
</li>
<li>
To further minimize the memory footprint of router-like setup. I'd like it
to be able to run truely effortlessly on 4MB machines... This would
probably include rewriting oinit(8) to run multithreaded.
</li>
<li>
And many others, too vague to put them here. <b>You</b> can also suggest me
some others applications/solutions you're dreaming of...
</li>
</ul>
<A NAME="credits"><h3>Credits</h3>
<p>The following people are either responsible for the very existence of this
project, or significantly eased my pains of gaining necessary knowledge:</p>
<ul>
<li>
the whole FreeBSD team for this magnificent OS, and their hard work of
continuous development,
</li>
<li>
Dinesh Nair, for co-development and preparing of the version which compiles
on -RELEASE,
</li>
<li>
Joe Greco, for his encouraging example of XKERNEL (some parts of the scripts
still bear his fingerprints :-) (you can get it
<A HREF="../../../xkernel.tgz">here</a>).
</li>
<li>Goran Hasse of <A HREF="http://www.raditex.se">Raditex AB, Sweden</a>, for
sending me an M-Systems' flash disk to experiment with.
</li>
<li>
Mike Smith for various tips and encouragement.
</li>
<li>
freebsd-* mailing lists participants, which helped me with some other
pieces.
</li>
<li>
and many other people who keep encouraging me to continue this work. Thanks,
guys!
</li>
</ul>
<A NAME="license"><h3>Licensing issues</h3>
<p>PicoBSD is distributed under BSD copyright,
which allows you to use it in various ways, including commercial
applications. So grab it and enjoy! And if you feel that you want to help
with this project, either by donating some time to write code, or by
some other donation, just <A HREF="mailto:abial@nask.pl">contact me</a>.</p>
<h5>Last modified:
Fri Aug 7 08:35:20 CEST 1998
</h5>
<HR shade align="left" size="2" width="100%">
<CENTER><h5>Any comments? Send them to
<A HREF="mailto:abial@nask.pl">the author</A> </h5></CENTER>
</BODY>
</HTML>

View file

@ -0,0 +1,8 @@
1998.02.20
This is work in progress. Eventually I'll prepare the help system for newbies,
and these files are just the beginning of it...
<abial@nask.pl>
$Id: README,v 1.1.1.1 1998/07/14 07:30:42 abial Exp $

View file

@ -0,0 +1,5 @@
cat concatenate and print files
Usage:
cat [-benstuv] [-] [file ...]

View file

@ -0,0 +1,5 @@
cat concatenate and print files
Usage:
cat [-benstuv] [-] [file ...]

View file

@ -0,0 +1,5 @@
cat polacz lub wyswietl pliki
Sposob uzycia:
cat [-benstuv] [-] [plik ...]

View file

@ -0,0 +1,5 @@
chmod change file modes
Usage:
chmod [-R [-H | -L | -P]] mode file ...

View file

@ -0,0 +1,5 @@
chmod change file modes
Usage:
chmod [-R [-H | -L | -P]] mode file ...

View file

@ -0,0 +1,5 @@
chmod zmiana praw dostepu do pliku
Sposob uzycia:
chmod [-R [-H | -L | -P]] prawa plik ...

View file

@ -0,0 +1,8 @@
chgrp change group
chown change owner
Usage:
chown [-R [-H | -L | -P]] [-f] [-h] owner[:group] file ...
chown [-R [-H | -L | -P]] [-f] [-h] :group file ...
chgrp [-R [-H | -L | -P]] [-f] [-h] group file ...

View file

@ -0,0 +1,8 @@
chgrp change group
chown change owner
Usage:
chown [-R [-H | -L | -P]] [-f] [-h] owner[:group] file ...
chown [-R [-H | -L | -P]] [-f] [-h] :group file ...
chgrp [-R [-H | -L | -P]] [-f] [-h] group file ...

View file

@ -0,0 +1,8 @@
chgrp zmien grupe
chown zmien wlasciciela
Sposob uzycia:
chown [-R [-H | -L | -P]] [-f] [-h] wlasc[:grupa] plik ...
chown [-R [-H | -L | -P]] [-f] [-h] :grupa plik ...
chgrp [-R [-H | -L | -P]] [-f] [-h] grupa plik ...

View file

@ -0,0 +1,6 @@
chuck a friendly daemon :-)
This is slightly reworked version of a classic ELIZA program.
Kudos go to original author (J. Weizenbaum), then to the
author of this implementation <chris@wacsvax.OZ>. I only
slightly changed the dialog...

View file

@ -0,0 +1,6 @@
cp copy files
Usage:
cp [-R [-H | -L | -P]] [-f | -i] [-p] src target
cp [-R [-H | -L | -P]] [-f | -i] [-p] src1 ... srcN directory

View file

@ -0,0 +1,6 @@
cp copy files
Usage:
cp [-R [-H | -L | -P]] [-f | -i] [-p] src target
cp [-R [-H | -L | -P]] [-f | -i] [-p] src1 ... srcN directory

View file

@ -0,0 +1,6 @@
cp kopiuj pliki
Sposob uzycia:
cp [-R [-H | -L | -P]] [-f | -i] [-p] plik1 plik2
cp [-R [-H | -L | -P]] [-f | -i] [-p] plik1 ... plikN katalog

View file

@ -0,0 +1,12 @@
dd convert and copy a file
Examples of usage:
This command will create 16MB, zero-filled file in /dos/SWAP.swp:
dd if=/dev/zero of=/dos/SWAP.swp bs=512 count=32000
This command will transfer floppy image from picobsd.flp to device
/dev/rfd0, which denotes raw floppy A:
dd if=picobsd.flp of=/dev/rfd0

View file

@ -0,0 +1,5 @@
df display free disk space
Usage:
df [-ikn] [-t type] [file | filesystem ...]

View file

@ -0,0 +1,5 @@
df display free disk space
Usage:
df [-ikn] [-t type] [file | filesystem ...]

View file

@ -0,0 +1,5 @@
df pokaz ilosc wolnego miejsca na dysku
Sposob uzycia:
df [-ikn] [-t typ] [plik | filesystem ...]

View file

@ -0,0 +1,4 @@
dialup a simple PPP configuration script
This script attempts to create the /etc/ppp/ppp.conf file suitable for
automatic dialing and background operation of 'ppp' program.

View file

@ -0,0 +1,4 @@
dialup a simple PPP configuration script
This script attempts to create the /etc/ppp/ppp.conf file suitable for
automatic dialing and background operation of 'ppp' program.

View file

@ -0,0 +1,5 @@
dialup prosty skrypt konfiguracyjny do PPP
Skrypt ten tworzy plik /etc/ppp/ppp.conf w oparciu o wartosci
podane przez uzytkownika, umozliwiajac automatyczne wybieranie
numeru oraz dzialanie w tle.

View file

@ -0,0 +1,8 @@
echo write arguments to the standard output
Usage:
echo [-n] [string...]
Optional parameter -n tells echo not to end the output with new
line character.

View file

@ -0,0 +1,8 @@
echo write arguments to the standard output
Usage:
echo [-n] [string...]
Optional parameter -n tells echo not to end the output with new
line character.

View file

@ -0,0 +1,8 @@
echo wypisz argumenty na standardowym wyjsciu (stdout)
Sposob uzycia:
echo [-n] [argumenty...]
Opcjonalny parametr -n powoduje, ze nie zostanie dodany znak
konca wiersza.

View file

@ -0,0 +1,4 @@
ee Easy Editor
This simple editor comes with its own help, visible in the upper part
of the screen. Follow that instructions.

View file

@ -0,0 +1,4 @@
ee Easy Editor
This simple editor comes with its own help, visible in the upper part
of the screen. Follow that instructions.

View file

@ -0,0 +1,4 @@
ee Easy Editor
Ten prosty edytor wyposazony jest w swoj wlasny system pomocy,
umieszczony w gornej czesci ekranu.

View file

@ -0,0 +1,15 @@
fsck filesystem consistency check and interactive repair
Usage:
fsck -p [-f] [-m mode]
fsck [-b block#] [-c level] [-l maxparallel] [-y] [-n] [-m mode]
[filesystem] ...
but in its simplest and most common version:
fsck -y <filesystem>
where <filesystem> is a name of the raw device, on which the filesystem
lies, e.g. /dev/rfd0 for floppy A:, or /dev/rwd0s1 for partition #1 on
first IDE drive.

View file

@ -0,0 +1,15 @@
fsck filesystem consistency check and interactive repair
Usage:
fsck -p [-f] [-m mode]
fsck [-b block#] [-c level] [-l maxparallel] [-y] [-n] [-m mode]
[filesystem] ...
but in its simplest and most common version:
fsck -y <filesystem>
where <filesystem> is a name of the raw device, on which the filesystem
lies, e.g. /dev/rfd0 for floppy A:, or /dev/rwd0s1 for partition #1 on
first IDE drive.

View file

@ -0,0 +1,15 @@
fsck narzedzie do sprawdzania poprawnosci i spojnosci filesystemu.
Sposob uzycia:
fsck -p [-f] [-m mode]
fsck [-b block#] [-c level] [-l maxparallel] [-y] [-n] [-m mode]
[filesystem] ...
...ale w najprostszej i najczesciej spotykanej formie:
fsck -y <filesystem>
gdzie <filesystem> jest nazwa "surowego" urzadzenia, na ktorym
znajduje sie system plikow, np. /dev/rfd0 dla dyskietki A:, lub
/dev/rwd0s1 dla pierwszej partycji pierwszego dysku IDE.

Some files were not shown because too many files have changed in this diff Show more