Last active
April 2, 2021 07:31
-
-
Save cleesmith/817541904bfaf25d4270 to your computer and use it in GitHub Desktop.
remastering Tiny Core using VirtualBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TinyCore | |
Apr 13, 2015: | |
remastering tiny core using virtualbox: | |
1. create a new virtualbox vm and add TinyCore-current.iso to the Storage setting | |
2. start the new vm | |
3. in a terminal window do: tce-load -wi ezremaster | |
4. perform all of these tce-load's: ... but do NOT configure anything, nor add pip (as it won't persist) | |
1. tce-load -wi libxslt.tcz ... lxml dependency | |
2. tce-load -wi libxml2-dev.tcz ... lxml dependency | |
3. tc-install.tcz ... so users of this remaster can install it if they want to, instead of only using the .iso | |
4. compiletc.tcz | |
5. openssh.tcz ... sshd, ssh, scp ... see instructions below | |
6. nano.tcz | |
7. vim.tcz | |
8. git.tcz | |
9. python-dev.tcz ... this installs python, so python.tcz isn't needed | |
10. python-distribute.tcz | |
5. use Ezremaster to create /tmp/ezremaster/ezremaster.iso: ... add boot code: text (so it boots to prompt) | |
step 1: | |
- Use Mounted CD | |
- /mnt/sr0/ | |
- /home/tc/ezremaster/ | |
- Next | |
step 2: | |
- Boot codes: text (so it boots to a prompt, then user could use startx for gui desktop) | |
- /mnt/sda1/tce/mydata.tgz | |
- Next | |
step 3: | |
- Extract TCZ in to initrd, click Load | |
- Run TCZ startup scripts in chroot now | |
- Next | |
step 4: | |
- Next ... wait a bit | |
step 5: | |
- Create ISO ... takes 5+ minutes | |
- .iso will be in /tmp/ezremaster/ | |
- core.gz and vmlinuz will be in /tmp/ezremaster/image/boot/ | |
- do NOT click exit, as the program hangs, instead go copy/scp files to somewhere safe: | |
/tmp/ezremaster/ezremaster.iso ... 84MB | |
/tmp/ezremaster/image/boot/core.gz ... 75MB | |
/tmp/ezremaster/image/boot/vmlinuz ... 3MB | |
- sudo poweroff | |
6. copy/scp /tmp/ezremaster/ezremaster.iso + core.gz + vmlinuz to somewhere safe | |
7. create a new virtualbox vm with a .vdi disk image and add ezremaster.iso to the Storage setting | |
8. start the new vm | |
9. use tc-install (tce-load -wi tc-install), be sure to add the boot code: text (so it boots to prompt) | |
10. exit vm | |
11. edit vm Storage setting and remove ezremaster.iso | |
12. start vm | |
13. add pip: | |
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python /home/tc/get-pip.py | |
14. backup mydata.tgz so pip and python packages are persistent: | |
sudo vi /opt/.filetool.sh | |
add: | |
usr/local/lib/python2.7/site-packages | |
usr/local/bin/pip | |
sudo filetool.sh -b | |
15. exit vm | |
16. start vm, then do: pip --version to ensure it works |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment