Dynamic Installation |
Now, let's re-install dynamically the packages we made statically before. You will have to delete all the package folders and unzip them again to make them fresh. Remaking these packages dynamically will make the system CONSIDERABLY smaller.
The following packages get the standard
./configure
make
make install
-Binutils
-Find Utils
-Grep
-M4
-Make
-Mawk
-Sed
-Tar
These next packages need special attention
GCC 2.95.2 |
./configure --enable-shared
make
make install
ldconfig
BASH |
./configure --with-installed-readline
make
-Find the file called Makefile and edit the variable bindir to read bindir
= /bin
make install
FILE UTILS |
./configure
make
-Find the file called Makefile and edit the following variables:
bindir to read bindir = /bin sbindir to read sbindir
= /sbin sysconfdir to read sysconfdir = /etc localstatedir
to read localstatedir = /var
make install
Next, move the /usr/bin/rm file to /bin
GZIP |
./configure
make
-Next, edit the Makefile to replace the variable bindir with
/bin as described above
make install
SH-UTILS |
./configure
make
make install
Next, move the /usr/bin/echo file to /bin
SYSVINIT |
Go into the packages /src directory make
Next, edit the Makefile and look for a line that begins with install:
Remove sulogin from the Makefile (shadow passwords installs there
own version).
make install
TEXINFO |
./configure
make
make install
Create a symlink that links /usr/bin/makeinfo /usr/bin/tex
TEXUTILS |
./configure
make
make install
Move the cat file from /usr/bin to /bin
UTIL-LINUX |
WARNING: Don't be tempted to install the entire package, it will break linux
./configure
Go into the packages /lib directory and run make
Next, go into the /disk-utils directory and run make mkswap
and make fdformat
Copy mkswap to /sbin
Copy fdformat to /bin
Copy mkswap.8 and fdformat.8 to /usr/man/man8
Next, go into the /fdisk directory and run make fdisk and
make cfdisk
Copy both of these to /sbin
Copy fdisk.8 and cfdisk.8 to /usr/man/man8
Next, go into the /login-utils directory and run make agetty
Copy agetty to /sbin
Copy agetty.8 to /usr/man/man8
Next, go into the /mount directory and run make
Copy mount, umount, swapon, and losetup to /sbin
Copy all *.8 files to /usr/man/man8
Next, go into the /sys-utils directory and run make dmesg
and make rdev and make ctrlaltdel
Copy dmesg to /bin and rdev to /sbin and ctrlaltdel
to /bin
Copy all *.8 files to /usr/man/man8
Create symlinks that link rdev to swapdev, ramsize, vidmode,
and rootflags in the /sbin directory
Next, go into the /text-utils directory and run make more
MOREHELPDIR=/usr/share/more (all one line) Copy the more file
to /usr/bin Copy the more.1 file to /usr/man/man1
Do a mkdir /usr/share/more and copy the more.help file
there
Now let's get the clock working:
Go into the /clock directory and run make hwclock
Copy the hwclock file to /sbin
Copy the hwclock.8 file /usr/man/man8
Type chmod a=rx,u=s /sbin/hwclock (this sets the UID bit to root)
Next, type tzselect and follow the prompts to get your timezone information
Use vi to create the /etc/profile file and add the following in
there:
hwclock --localtime --hctosys TZ='Africa/South_Africa'; export TZ (You substitute the exact wording of the timezone it outputed when you ran tzselect. If you can't read it clearly, that is a semicolon after the quote mark.)