Setup tiny system with Gentoo is very easy.

You need powerfull system.
On powerfull system do something like this:

mkdir /opt/gentoos/viaC3/root

CHOST="i486-pc-linux-uclibc" CFLAGS="-march=i486 -pipe -O2" CXXFLAGS="-march=i486 -pipe -O2" ROOT="/opt/gentoos/viaC3/root/" FEATURES="nodoc noinfo noman strip sandbox" USE="bootstrap -mysql -xml -xml2 -pam -gpm -cups -nls -readline -alsa" emerge -pv sys-kernel/linux26-headers sys-libs/uclibc sys-apps/busybox sys-apps/tinylogin net-fs/samba

make needed symlinks for busybox and tinylogin
(read docs from homepages for more info)

setup kernel

attach 486's hdd to powerfull system

copy /opt/gentoos/viaC3/root to 486's hdd
  but exclude
    /usr/include/*
    /usr/lib/*.a
    /var/db/*
    /var/cache/edb/*
copy kernel
setup grub or lilo (create and copy needed files manually)
setup some files in /etc if needed

also you can use mksquashfs for compress you 486's root

that's all

you boot partition size will = size of kernel (about 2Mb)
you root (system) partition size (raw) will about 33Mb
because samba is very big, but you may exclude some unused
samba tools, for example smbtar
compressed root by mksquashfs will about 14Mb

P.S. I setuped my via C3 in this way
 for routing home network
 for home internet koisk



Qiangning Hong wrote:
I want to make a i486 machine to run SAMBA server, with the following requirements:

- The whole system should run under 32MB memory.
- The boot partition is less than 5MB, the system partition is less than 32MB, and the rest of hard disk for shared data. (Actually the hard disk is an expensive flash drive, that's why we want as little as possible of disk space used by system itself)


I know it can be done using some binary distro such as RedHat or Debian, but I am only some familiar with Gentoo and just love it. Is it possible to boot the i486 machine with Gentoo LiveCD and only copy the needed software (in binary format of course) to it from the developper's gentoo box? That is, no gcc, no portage, no anything that is only required for compilation?


-- [email protected] mailing list



--
[email protected] mailing list



Reply via email to