-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverview.txt
82 lines (56 loc) · 2.07 KB
/
overview.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# Author: Roberto A. Foglietta
#
Read tinycore/readme.txt to build a modified Tiny Core Linux
Read qemu.txt for testing the image and update it
To create the bootable usb key use this command:
LINUX: zcat tcl-usb.disk.gz > /dev/sd${letter}
WINDOWS: rufus select tcl-usb.disk.gz and write
USB firt partition label: T1NYC0R3 (but you can change it in rcS)
Make any changes you like and be sure to update these files
rootfs.gz tccuston.tgz sshdconfig.tgz
To download tinycore components use:
tinycore/provides/tcgetdistro.sh
HOW TO BUILD THE IMAGE FROM SKELETON
To create the new image: ./make.sh image
After, to create the 8GB image: ./make.sh image 8GB
To compress the new images: ./make.sh close
HOW TO UPDATE THE IMAGE WITH QEMU
To update the usb image do: ./make.sh all
After, to recreate the 8GB image: ./make.sh all 8GB
These procedure requires that qemu-system-i386 is installed
To update a running machine: ./make.sh ssh-copy ip.addr
############ HOW TO MODIFY THE IMAGE ############
zcat tcl-usb.disk.gz >tcl-usb.disk
sudo losetup --partscan /dev/loop8 tcl-usb.disk
mkdir -p tcldisk
sudo mount /dev/loop8p1 tcldisk
sudo dd if=/dev/zero of=tcldisk/zero
sync
sudo rm -f tcldisk/zero
sudo umount tcldisk
sudo losetup -D /dev/loop8
gzip -9c tcl-usb.disk >tcl-usb.disk.gz
###### HOW TO CREATE AN INSTALLATION IMAGE ######
zcat tcl-usb.disk.gz > tcl-usb.disk
dd if=/dev/zero bs=1M count=7500 >>tcl-usb.disk
mv tcl-usb.disk tcl-8GB-usb.disk
echo -e "n\n p\n 2\n \n \n N\n t\n 2\n 7\n w" | \
fdisk tcl-8GB-usb.disk
sudo losetup --partscan /dev/loop8 tcl-8GB-usb.disk
sudo mkfs -t ntfs -F -Q /dev/loop8p2
mkdir usbkeyp2
sudo mount /dev/loop8p2 usbkeyp2
sudo cp -arf ntfs/* usbkeyp2
sudo umount usbkeyp2
##### HOW TO CREATE AN INSTALLATION USB KEY #####
tcldisk=<your device>
ntfspart=${tcldisk}2
zcat tcl-usb.disk.gz >$tcldisk
echo -e "n\n p\n 2\n \n \n N\n t\n 2\n 7\n w" | \
sudo fdisk $tcldisk
sudo mkfs -t ntfs -F -Q $ntfspart
mkdir usbkeyp2
sudo mount $ntfspart usbkeyp2
sudo cp -arf ntfs/* usbkeyp2
sudo umount usbkeyp2