ifconfig -a sudo vi /etc/resolv.conf (i for insert mode to delete/add text, escape key :x save & quit)
IDE HD is supported in the TC base. Extensions provides: scsi-2.6.33.3-tinycore.tcz command line is easier with "ab scsi"
- VMware Server 2 = LSI SCSI controller (default)
- Stop the VM, changed the controller to BusLogic (click on the tiny Modify button)
- Start VM / Boot
- TERMINAL = sudo fdisk -l
/dev/sda is now present!
ab cfdisk sudo cfdisk /dev/sda
New -> Primary -> 80.75MB Bootable down arrow, New, (enter for default size = 24.12), right arrow for Type, 82 (linux swap) right arrow, Quit
mkfs.ext3 /dev/sda1 sudo rebuildfstab sudo mount /dev/sda1 /mnt/sda1 mkdir -p /mnt/sda1/boot/grub mkdir -p /mnt/sda1/tce mkdir -p /mnt/sda1/tce/optional
Mount the original boot media (e.g. CD or ISO, often IDE 1 is labelled as 'hdc')
sudo mount /dev/hdc /mnt/hdc
cp -p /mnt/hdc/boot/* /mnt/hda1/boot/
(we've copied the /mnt/hdc/boot/bzImage and /mnt/hdc/boot/microcore.gz I believe isolinux folder/files are for bootable cdrom media)
cp -p /tmp/tce/optional/* /mnt/sda1/tce/optional (grab extensions that helped us get installed?)
ab grub
sudo mount /dev/hda /mnt/hda (note that VMware has CDRom on IDE by default) cp -p /mnt/hda/boot/* /mnt/sda1/boot/ (copy preserving permissions/ignore the errors!)
vi /mnt/sda1/boot/grub/menu.lst
default 0 timeout 10 title tinycore-3-3 kernel /boot/bzImage initrd /boot/tinycore.gz
(NOTE the capital i in bzImage) escape key, then :x (save and quit)
Alternatively you can some optional commands for "persistent" tce=sda1 home=sda1 opt=sda1
cp -p /usr/lib/grub/i386-pc/* /mnt/hda1/boot/grub/
grub
root (hd0,0) setup (hd0) quit
cd / umount /mnt/hda eject /dev/hda sudo reboot
(VMWare may have to have the
http://www.tinycorelinux.com/install.html
http://kittyandbear.net/john/linux-tutorials/installs/
touch /mnt/hda1/tce/mydata.tgz
COMMAND LINE (MICROCORE but also easier to script ...) ab cfdisk ab grub
press esc then q (to exit reading the .info file) Immediately you are then prompted to Install or Quit
grub-0.97-splash.tcz.
"ab" = app browser, so you could use ab cfdisk, or to directly download and install, use tce-load -wi cfdisk.tcz
tce-load -w -i is the way to get extensions loaded (if they are downloaded)
http://www.tinycorelinux.com/install.html
? wget http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/3.x/netfilter-2.6.33.3-tinycore.tcz
Mirror: distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x Protocol: http Repository: tcz
MIRROR="http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux"
wget --spider "$MIRROR"/3.x/tcz/"$MYEXTENSION" > /dev/null 2>&1; then
EASY WIFI EXTENSIONS? wicd.tcz
wireless_tools.tcz wireless-2.6.29.1-tinycore.tcz (drivers) wpa-supplicant.tcz (depends on openssl) wpa_gui ?
Assuming you've got your 3 NIC tinycore linux setup...
To add a NEW VIRTUAL SWITCH use
Start -> Program Files -> VMware -> VMware Server -> Virtual Network Editor (Windows 7 = right click and Run As Administrator)
Host Virtual Adapters (add a New Device) => VMnet2 APPLY
After a small wait VMware Network Adapter VMnet2 will exist. Host Virtual Network Mapping => VMnet2 > subnet ... 172.16.16.0 DHCP Tab - Remove allows you to force your new DMZ to not have any automatic ip
You have to disable "automatic bridging" if you want to select which virtual adapter connects to which physical adapter...
If you are on VMware 2.0 Beta, you can modify ".vmx" manually by changing: ethernet0.connectionType = "something" line to: ethernet0.connectionType = "custom" ethernet0.vnet = "VMnet2"
Apps (gear symbol) netfilter-2.6.33.3-tinycore.tcz (there's also a 64bit) iptables
(or ab iptables)
to manually start the firewall (iptables...) vi /opt/bootlocal.sh
/usr/local/sbin/basic-firewall
note you may need sudo /path/script.sh if your script requires elevated permissions
network performance optimization can happen here
sysctl -a