Warning: this is a htmlized version!
The original is across this link.
#######
#
# E-scripts on installing a Slink system.
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/a/e/slink.e>
#           or at <http://angg.twu.net/e/slink.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/a/.emacs[.html]>,
#                 <http://angg.twu.net/a/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######




######
#
# Making a slink installation floppy
#
######

# (find-es "hardware" "superformat")
floppycontrol --abort=1 --reset=1 --reporting=1
superformat -B /dev/fd0 hd

# (find-fline "/big/slinkb1/install/")
# (find-fline "/big/slinkb1/install/install.txt" "resc1440")

cd /big/slinkb1/dists/slink/main/disks-i386/current/
cat resc1440.bin > /dev/fd0




#####
#
# Files on the rescue floppy
# 00jan04
#
#####

#  «rescue_floppy_files»
# (find-angg ".zshrc" "loop_device")

insmod /boot/angg22/loop.o
mkdir /L

# mount .../current/root.bin on /L:
#
cd /big/slinkb1/dists/slink/main/disks-i386/current/
zcat root.bin > /tmp/rootbin
file /tmp/rootbin
mountloop0L /tmp/rootbin
laf /L

# copy .../current/resc1440.bin's files to /tmp/resc1440/:
#
mountloop0L /big/slinkb1/dists/slink/main/disks-i386/current/resc1440.bin
rm -Rv /tmp/resc1440/
mkdir /tmp/resc1440/
cd /L
cp -dipvR * /tmp/resc1440/
cd /tmp/resc1440/
laf
#
# mount its root.bin on /L:
#
zcat < root.bin > rootbin
mountloop0L /tmp/resc1440/rootbin
cd /L
laf


# to do: format a floppy, copy resc1440.bin's files to it, and run
# syslinux; in this way the floppy's bad blocks won't disturb. 







######
#
# first things to do on a slink system
#
######

#  «first_things»

# (find-fline "/b6/etc/fstab")
# (find-fline "/etc/fstab")

# (find-fline "/b6/etc/securetty")
# (find-fline "/etc/securetty")

# (find-fline "/b6/etc/inittab")
# (find-fline "/etc/inittab")
init q

# (find-fline "/b6/etc/apt/sources.list")
# (find-fline "/etc/apt/sources.list")


mkdir /hdc6
mount /dev/hdc6 /hdc6
# (find-fline "/hdc6/etc/fstab")

ln -sv mcd /dev/cdrom
ln -sv ttyS2 /dev/modem
ln -sv ttyS1 /dev/mouse

mkdir /hdd3
mount /hdd3
ln -sv /hdd3/snarf /snarf

mkdir /big
mount /big

# mkdir /hdc1 /hdd1 /hdd5

cd /usr/
[[ -e 0src ]] ||
  (mv -v src 0src &&
   ln -s /hdc6/6usrc src)

cd /home
mkdir edrx
cd /home/edrx
ln -sv ~/.emacs .
ln -sv ~/.zshrc .
ln -sv ~/eev.el .
cd /home
chown -Rv edrx:edrx edrx
# E os bookmarks do netscape?

# (find-fline "/hdc6/etc/X11/XF86Config" "S3 86C375")
# (find-fline "~/CB/21bin1-ls-lR.i" "x11/x")

apt-update
apti fvwm2 xserver-svga xfonts-base xfonts-75dpi xfonts-scalable xterm xzoom
apti tetex-bin
apti dip expect5.24 netselect wget fetchmail
# (find-fline "/etc/ppp/options" "auth\n")

apti debhelper debmake
apti elisp-manual emacs19-el emacs-lisp-intro debview gnuserv
apti debiandoc-sgml yodl libwww-perl
apti glimpse
apti tcl8.0-dev tk8.0-dev
apti doc-debian
apti metamail

# apti ultra-utils
apti workbone
apti xmame xmame-svga
mkdir -p /usr/lib/games/xmame/roms/
cd /usr/lib/games/xmame/roms/
cp -s $S/http/www.vu.union.edu/~peekb/arcade/ROMs/robotron.zip .

cd /usr/lib/games/xmame/roms/
cp -s $S/ftp/ftp.byte.com/pub/gamepower/mame/scramble.zip .

# (find-es "netscape" "slink_netscape")
apti communicator-smotif-45 communicator-nethelp-45 netscape-java-45
apti zip unzip


cp -iv /hdc6/etc/X11/XF86Config /etc/X11/XF86Config


ochsen
sch6s lst=51

10055470


# (find-fline "/etc/gpm.conf")





######
#
# wget 1.5.3 (slink, with patch)
#
######

#  «wget_patch»

# For more on wget hacking, see:
# (find-es "net" "wget_hacking")

pdsc /big/slinks2/dists/slink/main/source/web/wget_1.5.3-1.1.dsc
cd /usr/src/wget-1.5.3/src/
patch url.c <<'--%%--'
59c59
< # define URL_UNSAFE " <>\"#%{}|\\^~[]`@:\033"
---
> # define URL_UNSAFE " <>\"#%{}|\\^[]`@:\033" /* Edrx: removed "~" */
--%%--
cd /usr/src/wget-1.5.3/
etags src/*.[ch]
debian/rules binary	|& tee odrb
mv -iv /usr/src/wget*deb /usr/src/.debs/
apt-update

cd /usr/src/.debs/
dpkg -i wget_1.5.3-1.1_i386.deb





######
#
# Compiling glimpse
#
######

#  «compiling_glimpse»

pdsc $SDEBIAN/dists/slink/non-free/source/utils/glimpse_4.1-2.dsc
debian/rules binary	|& tee odrb
mv -iv /usr/src/glimpse*deb /usr/src/.debs/
apt-update
apti glimpse

# (find-vldifile "glimpse.list")
# (find-fline "/usr/doc/glimpse/")





#####
#
# Copy the slink CDs to /big/slink[bs][12]/
# 00jan03
#
#####

#  «slink_cds»

# I won't put the minor release number (as the rx in 2.1r1, 2.1r2,
# etc) in the dir names, but check these id files:
# (find-fline "/big/slinkb1/.disk/info")
# (find-fline "/big/slinkb2/.disk/info")
# (find-fline "/big/slinks1/.disk/info")
# (find-fline "/big/slinks2/.disk/info")
mycat /big/slink??/.disk/info

# Prepare ~/CDS/slinkr1.i
#cd /big/
#'ls' -lAR slink* > ~/CDS/slinkr1.txt
#~/ICON/lslR2find2 < ~/CDS/slinkr1.txt > ~/CDS/slinkr1.i
# (find-fline "~/CDS/slinkr1.i")

mount /big -o rw,remount

mkdir /big/slinkb1/
cd /cdrom/
cat .disk/info
cp -dipvR .* * /big/slinkb1/

mkdir /big/slinkb2/
cd /cdrom/
cat .disk/info
cp -dipvR .* * /big/slinkb2/

mkdir /big/slinks1/
cd /cdrom/
cat .disk/info
cp -dipvR .* * /big/slinks1/

mkdir /big/slinks2/
cd /cdrom/
cat .disk/info
time cp -dipvR .* * /big/slinks2/

cd /big/
find slink* | grep TRANS.TBL
rm -v $(find slink* | grep TRANS.TBL)

# For dmissing...
# (find-angg ".zshrc" "dmissing")
# (find-es "slink" "short_names")
cd /big/slinkb1/dists/slink/
gzip -cd < Contents-i386.gz > Contents-i386

mount /big -o ro,remount


# Prepare ~/CDS/slinkr2.i
#cd /big/
#'ls' -lAR slink* > ~/CDS/slinkr2.txt
#~/ICON/lslR2find2 < ~/CDS/slinkr2.txt > ~/CDS/slinkr2.i
# (find-fline "~/CDS/slinkr2.i")


# (find-es "slink" "short_names")





######
#
# short names (with the CDs already copied to my HD)
# 99jul04/00jan03
#
######

#  «short_names»
# Cheapbytes' slinkr1 comes with a kde dir, but r2 doesn't...

# cd /big; find slink* -type f | grep '\.deb$'

rm -Rv ~/SLINK
mkdir ~/SLINK
cd ~/SLINK
ln -s /big/slinkb1/dists/slink/main/binary-all		.1mall
ln -s /big/slinkb1/dists/slink/main/binary-i386		.1m386
ln -s /big/slinkb2/dists/slink/contrib/binary-all	.2call
ln -s /big/slinkb2/dists/slink/contrib/binary-i386	.2c386
ln -s /big/slinkb2/dists/slink/main/binary-all		.2mall
ln -s /big/slinkb2/dists/slink/main/binary-i386		.2m386
ln -s /big/slinks1/project/experimental				.exp
#ln -s /big/slinks2/kde/1.1/distribution/deb/slink/binary-i386	.kde

for i in .{1m,2c,2m}{all,386}/ .kde/; do
  find $i -type f | grep '\.deb$' |
  perl -nle 'm:.*/([-a-z0-9.+]+)_.*: && ((symlink $_, $1)==1 || print $_)'
done

# In '(symlink $_, $1 || print $_)', the clause '|| print $_' isn't
# working. Why?
# (eeman "perlfunc" "symlink OLDFILE,NEWFILE")
# (eeman "perlop" "Binary .\\|\\|.")
# (eeman "perldata" "TRUE in the Boolean sense")
# (eeman "perlfunc" "0 but true")

ln -s /big/slinkb1/dists/slink/Contents-i386 ~/SLINK -iv




#####
#
# MIME::Lite (for sending mime'd mail)
#
#####

#  «mime_lite»
# (find-fline "$SCPAN/authors/id/ERYQ/MIME-Lite-1.135.tar.gz")

rm -Rv /usr/src/MIME-Lite-1.135/
cd /usr/src/
tar -xvzf $SCPAN/authors/id/ERYQ/MIME-Lite-1.135.tar.gz
cd /usr/src/MIME-Lite-1.135/

perl Makefile.PL	|& tee opM
make	|& tee om
make install	|& tee omi

# (find-fline "~/.zshrc" "email")

apti tcs

email850 edrx 'teste' <<'---'
Alôôô
---





#####
#
# Which "Packages" files are interesting?
#
#####

# Here's why I'm asking:
# (find-fline "~/.zshrc" "function Pgrep ")
#
# obs: Pgrep is now in a stable form and it's not necessary to run
# this code again.

cd /big; laf $(find slink* | grep Pa | grep -v gz)
cd ~/SLINK/; find .{1m,2c,2m}{all,386}/ .exp/ .kde/ | grep Pa | grep -v '\.gz$'

pdsc $S/http/www.chiark.greenend.org.uk/~stevem/DebianCD/slink_cd/slink-cd_1.13.dsc
# (find-fline "/usr/src/slink-cd-1.13/slink_cd" "Packages.cd")

# The real tests:
A=(
.1m386/Packages
.1m386/Packages.cd
.2c386/Packages
.2c386/Packages.cd
.2m386/Packages
.2m386/Packages.cd
.exp/Packages
)
cd ~/SLINK/
laf $A
# tkdiff .1m386/Packages{,.cd}
# tkdiff .2c386/Packages{,.cd}
for i in 1 2 3 4 5 6 7; do
  echo $A[$i]
  agrep '^Package: ' $A[$i] | sort > ~/o$i
  uniq -d ~/o$i
done
cd ~
laf o[1-7]
diff o1 o2
diff o3 o4
cat o1 o5 | sort > o1+5
laf o1+5
diff o1+5 o6

rm o[1-7] o1+5




#####
#
# apt 0.3.11
#
#####

# We want to use the version of apt from potato to be able to remove
# packages cleanly...

pdsc $SDEBIAN/dists/potato/main/source/admin/apt_0.3.11.dsc
cd /usr/src/apt-0.3.11/
debian/rules binary	|& tee odrb

# There's something broken, however. What should be the value of BUILD?

debian/rules binary	|& tee odrb2
debian/rules BUILD=debian/tmp binary	|& tee odrb2

# (find-fline "/usr/src/apt-0.3.11/odrb2")
# (find-fline "/usr/src/apt-0.3.11/debian/rules" "docs/cache")
# (find-node "(make)Override Directive")
# (find-node "(make)Functions")
# (find-node "(make)Shell Function")

cd /usr/src/
mv -v apt*.deb libapt*.deb .debs/
apt-update

apti apt



# (find-vldifile "apt.list")
# (eeman "apt-get")
# (eeman "apt-cache")
# (eeman "sources.list")
# (find-fline "/usr/doc/apt/")

# (find-fline "~/.emacs" "deb-view")
# (deb-view "~/SLINK1/apt")
# (find-fline "/etc/apt/sources.list")

apt-get update

cd /usr/src/.debs/
dpkg-scanpackages . /dev/null '' | tee Packages

mkdir -p dists/unstable/main/
ln -s /usr/src/.debs dists/unstable/main/binary-i386




####
#
# Trying to add /usr/src/.debs to the list of package repositories
#
####

cd /usr/src/.debs/
export A="$(ls | perl -nle 'm/(.*)_.*_.*/ && print $1')"
(cd $SDEBIAN/indices/
 cat override* | grep -F $A | tee ~/o
)
sort ~/o | uniq | tee override.local

cd /usr/src/.debs/
dpkg-scanpackages . override.local local | tee Packages

dpkg-scanpackages . /dev/null local > /dev/null

apt-get update

# Ele exige subdiretórios. Saco.

# (find-fline "/usr/src/.debs/override.local")
# (find-fline "$SLINKB1/dists/slink/main/binary-i386/Packages")
# (eeman "dpkg-scanpackages")
# (find-fline "$SDEBIAN/ls-lR.i")
# (find-fline "$SDEBIAN/../debian-non-US/indices/override.slink.nonus")
# (find-fline "/usr/bin/dpkg-scanpackages")

# (find-fline "$SDEBIAN/")






#####
#
# hamm->slink: errors and warnings
#
#####

You may need to set your XNLSPATH environment variable to
"/usr/X11R6/lib/X11/nls" in order for some Motif applications to work.

languages.dat refazer

/etc/vga/libvga.config kept
# (deb-view "~/SLINKB2/pcmcia-cs")
# (find-fline "/sbin/update-modules")
# (find-fline "/etc/conf.modules")
# (find-fline "/etc/modules")