mirror of
https://github.com/GNS3/gns3-registry.git
synced 2025-06-01 15:30:44 +00:00
Merge pull request #76 from ehlers/ostinato
Ostinato uses tinycore-linux.json as packer base
This commit is contained in:
commit
ea3895163c
@ -25,19 +25,19 @@
|
|||||||
},
|
},
|
||||||
"images": [
|
"images": [
|
||||||
{
|
{
|
||||||
"filename": "ostinato-0.7.1-2.qcow2",
|
"filename": "ostinato-0.7.1-3.qcow2",
|
||||||
"version": "0.7.1",
|
"version": "0.7.1",
|
||||||
"md5sum": "68895c56addf4a9ce0f2db9c9ed288d2",
|
"md5sum": "d1b1173ab4ad12b3b4e34c3b078dcd9e",
|
||||||
"filesize": 56295424,
|
"filesize": 57081856,
|
||||||
"download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/index.html",
|
"download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/index.html",
|
||||||
"direct_download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/ostinato-0.7.1-2.qcow2"
|
"direct_download_url": "http://www.bernhard-ehlers.de/projects/ostinato4gns3/ostinato-0.7.1-3.qcow2"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"name": "0.7.1",
|
"name": "0.7.1",
|
||||||
"images": {
|
"images": {
|
||||||
"hda_disk_image": "ostinato-0.7.1-2.qcow2"
|
"hda_disk_image": "ostinato-0.7.1-3.qcow2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -38,22 +38,6 @@ A build of Core with Openvswitch preinstalled.
|
|||||||
packer build -var-file=openvswitch.json core64-linux.json
|
packer build -var-file=openvswitch.json core64-linux.json
|
||||||
|
|
||||||
|
|
||||||
Ostinato
|
|
||||||
'''''''''
|
|
||||||
|
|
||||||
A build of Core with Ostinato drone preinstalled.
|
|
||||||
|
|
||||||
.. code:: bash
|
|
||||||
|
|
||||||
packer build -var-file=ostinato.json core-linux.json
|
|
||||||
|
|
||||||
A drone-only VM can be build with:
|
|
||||||
|
|
||||||
.. code:: bash
|
|
||||||
|
|
||||||
packer build -var-file=ostinato-drone.json core-linux.json
|
|
||||||
|
|
||||||
|
|
||||||
Internet
|
Internet
|
||||||
''''''''
|
''''''''
|
||||||
An appliance for simulating a domestic modem. eth0 as a dhcp and eth1 should be a nat interface.
|
An appliance for simulating a domestic modem. eth0 as a dhcp and eth1 should be a nat interface.
|
||||||
@ -82,3 +66,18 @@ A build of Tiny Core with Firefox preinstalled.
|
|||||||
|
|
||||||
packer build -var-file=tinycore-linux-firefox.json tinycore-linux.json
|
packer build -var-file=tinycore-linux-firefox.json tinycore-linux.json
|
||||||
|
|
||||||
|
|
||||||
|
Ostinato
|
||||||
|
'''''''''
|
||||||
|
|
||||||
|
A build of Tiny Core with Ostinato GUI + drone preinstalled.
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
packer build -var-file=ostinato.json tinycore-linux.json
|
||||||
|
|
||||||
|
A drone-only VM without GUI can be build with:
|
||||||
|
|
||||||
|
.. code:: bash
|
||||||
|
|
||||||
|
packer build -var-file=ostinato-drone.json core-linux.json
|
||||||
|
@ -125,6 +125,7 @@ if grep -q -w nodhcp /proc/cmdline; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# start ostinato drone
|
# start ostinato drone
|
||||||
|
sleep 2
|
||||||
HOME=/home/gns3 drone < /dev/null > /var/log/ostinato-drone.log 2>&1 &
|
HOME=/home/gns3 drone < /dev/null > /var/log/ostinato-drone.log 2>&1 &
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -4,28 +4,6 @@ set -x
|
|||||||
# setup environment
|
# setup environment
|
||||||
. /etc/profile
|
. /etc/profile
|
||||||
|
|
||||||
# Install the GUI
|
|
||||||
tce-load -wi fltk-1.3
|
|
||||||
tce-load -wi flwm
|
|
||||||
tce-load -wi Xorg-7.7
|
|
||||||
tce-load -wi wbar
|
|
||||||
tce-load -wi Xprogs
|
|
||||||
tce-load -wi Xlibs
|
|
||||||
tce-load -wi aterm
|
|
||||||
|
|
||||||
# set X resolution to 800x600
|
|
||||||
cat > 99-resolution.conf <<'EOF'
|
|
||||||
Section "Screen"
|
|
||||||
Identifier "Screen0"
|
|
||||||
DefaultDepth 24
|
|
||||||
SubSection "Display"
|
|
||||||
Modes "800x600"
|
|
||||||
EndSubSection
|
|
||||||
EndSection
|
|
||||||
EOF
|
|
||||||
sudo mv 99-resolution.conf /usr/local/share/X11/xorg.conf.d/
|
|
||||||
echo usr/local/share/X11/xorg.conf.d >> /opt/.filetool.lst
|
|
||||||
|
|
||||||
# load the dependencies for ostinato
|
# load the dependencies for ostinato
|
||||||
tce-load -wi qt-4.x-base
|
tce-load -wi qt-4.x-base
|
||||||
tce-load -wi qt-4.x-script
|
tce-load -wi qt-4.x-script
|
||||||
@ -88,10 +66,14 @@ cat > ostinato.desktop <<'EOF'
|
|||||||
Name=Ostinato
|
Name=Ostinato
|
||||||
Exec=ostinato
|
Exec=ostinato
|
||||||
Type=Application
|
Type=Application
|
||||||
OnlyShowIn=Old;
|
X-FullPathIcon=/usr/local/share/pixmaps/ostinato_logo.png
|
||||||
|
Icon=ostinato_logo.png
|
||||||
Categories=System;
|
Categories=System;
|
||||||
EOF
|
EOF
|
||||||
sudo mv ostinato.desktop /tmp/ostinato/usr/local/share/applications/
|
sudo mv ostinato.desktop /tmp/ostinato/usr/local/share/applications/
|
||||||
|
sudo mkdir -p /tmp/ostinato/usr/local/share/pixmaps
|
||||||
|
sudo cp -p client/icons/logo.png /tmp/ostinato/usr/local/share/pixmaps/ostinato_logo.png
|
||||||
|
chmod 644 /tmp/ostinato/usr/local/share/pixmaps/ostinato_logo.png
|
||||||
sudo chown -R root:root /tmp/ostinato
|
sudo chown -R root:root /tmp/ostinato
|
||||||
sudo chmod +s /tmp/ostinato/usr/local/bin/drone
|
sudo chmod +s /tmp/ostinato/usr/local/bin/drone
|
||||||
cd ..
|
cd ..
|
||||||
@ -143,6 +125,7 @@ if grep -q -w nodhcp /proc/cmdline; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# start ostinato drone
|
# start ostinato drone
|
||||||
|
sleep 2
|
||||||
HOME=/home/gns3 drone < /dev/null > /var/log/ostinato-drone.log 2>&1 &
|
HOME=/home/gns3 drone < /dev/null > /var/log/ostinato-drone.log 2>&1 &
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user