THIS TUTORIAL ONLY SUPPORTS TINYCORE 4
FOR TINYCORE 5 THERE IS A SOLUTION IN THE COMMENTS BELOW BY Alejo
Tiny Core Linux is one of the smallest Linux distributions out there.
We will show you how to customize Tiny Core Linux Remote Desktop Kiosk so it will automatically launch a Remote Desktop client and set a Static IP address.
Download Tiny Core
First you need to download Tiny Core Linux
Make sure you choose TinyCore.iso and not Core/CorePlus.
Add Tiny Core Packages
We used these packages (some are already located within the ISO file at /tce/optional/):
Download the needed packeges from the TCZ repository, and place them into the ISO file at /tce/optional/, we used PowerISO trial edition to complete this task.
The rest of the packages in /cde/optional/ are unneeded for the Remote Desktop Kisok and should be deleted.
Update the start-up files to include the packages, files are located at /cde/ and are called:
[code]copy2fs.lst, onboot.lst, xbase.lst[/code]
Edit all three files to look like this:
Move and Extract the content of core.gz to a temporary directory:
[code]zcat core.gz | cpio -i -H newc -d[/code]
Now you can continue to the next couple of steps.
Start rdesktop after boot
Create a start-up script called myremote.sh:
# put other system startup commands here
/usr/local/bin/rdesktop -u username -p password hostname-ipaddress -f -0
Place it at /home/tc/.X.d/ and make sure it is executable:
chmode +x /home/tc/.X.d/myremote.sh
Edit /opt/shutdown.sh and add the next line after the first line:
Static IP configuration
Create a stat-up script called eth0.sh:
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255 up
route add default gw 192.168.0.254
echo nameserver 192.168.0.10 > /etc/resolv.conf
echo nameserver 192.168.0.11 >> /etc/resolv.conf
edit /opt/bootlocal.sh and add the next line at the end:
edit /opt/.filetool.lst and add the next line at the end:
Repack core.gz into the ISO file
delete core.gz file and then update the needed files and repack core.gz to /:
[code]find | cpio -o -H newc | gzip -2 > /core.gz[/code]
replace core.gz within the ISO file
Create a boot-able Memory Card / USB drive
You can use core2usb to create a flash drive from your ISO.
You can use any Hyper-visor to check the ISO of the Tiny Core Linux Remote Desktop.