Support Tinycore Linux v8.2

This commit is contained in:
Bernhard Ehlers 2017-12-14 11:27:06 +01:00
parent fce5092310
commit edac2609f8
3 changed files with 18 additions and 10 deletions

View File

@ -1,6 +1,6 @@
{
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/7.x/x86/archive/7.2/Core-7.2.iso",
"tc_iso_checksum": "77bf8cceacd2110120451f3f22f85156",
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/8.x/x86/archive/8.2/Core-8.2.iso",
"tc_iso_checksum": "560b6d9da10140f13f22eeea35bf6087",
"vm_name": "ostinato.qcow2",
"setup_script": "ostinato.sh",
"disk_size": "200"

View File

@ -1,6 +1,8 @@
set -e
set -x
. /etc/init.d/tc-functions
# Install the GUI
tce-load -wi fltk-1.3
tce-load -wi flwm
@ -12,10 +14,15 @@ tce-load -wi Xorg-7.7
# Create xorg-setup-tools
tce-load -wi Xdialog
. /etc/init.d/tc-functions
getMirror
wget -P /tmp $MIRROR/squashfs-tools.tcz
tce-load -i /tmp/squashfs-tools.tcz
# install squashfs-tools only in RAM
mv /etc/sysconfig/tcedir /etc/sysconfig/tcedir.hd
ln -s /tmp/tce /etc/sysconfig/tcedir
sudo cp -a /usr/local/tce.installed /usr/local/tce.installed.hd
tce-load -wi squashfs-tools.tcz
rm -f /etc/sysconfig/tcedir
mv /etc/sysconfig/tcedir.hd /etc/sysconfig/tcedir
sudo rm -rf /usr/local/tce.installed
sudo mv /usr/local/tce.installed.hd /usr/local/tce.installed
sudo mkdir /tmp/xorg-setup-tools
sudo mkdir -p /tmp/xorg-setup-tools/usr/local/bin
@ -170,9 +177,10 @@ cat > setup_resolution <<'EOF'
# available resolutions
resolutions='
1024x768 ""
800x600 ""
640x480 ""
800x600 ""
1024x768 ""
1280x720 ""
'
# get resolution
@ -229,7 +237,7 @@ cat > /usr/local/share/X11/xorg.conf.d/99-resolution.conf <<'EOF'
Section "Screen"
Identifier "Screen0"
SubSection "Display"
Modes "800x600"
Modes "1024x768"
EndSubSection
EndSection
EOF

View File

@ -3,7 +3,7 @@ set -x
# base system modifications
sudo sed -i -e '/^\/opt\/bootlocal/ i' /opt/bootsync.sh
echo -e "\nusername 'gns3', password 'gns3'\nRun filetool.sh -b if you want to save your changes" >> /etc/issue
sudo sh -c 'echo -e "\nusername '"'"'gns3'"'"', password '"'"'gns3'"'"'\nRun filetool.sh -b if you want to save your changes" >> /etc/issue'
echo 'etc/issue' >> /opt/.filetool.lst
echo 'etc/shadow' >> /opt/.filetool.lst