Use Xorg for tinycore appliances

This use the tips from @ehlers allowing a better sync
between mouse pointer and VNC client.
This commit is contained in:
Julien Duponchelle 2016-01-11 13:47:29 +01:00
parent bafbb1193f
commit 54854648d7
4 changed files with 63 additions and 23 deletions

View File

@ -1,30 +1,37 @@
{
"name": "Firefox",
"category": "guest",
"description": "A light Linux based on TinyCore Linux with Firefox preinstalled",
"vendor_name": "Mozilla Foundation",
"vendor_url": "http://www.mozilla.org",
"documentation_url": "https://support.mozilla.org",
"product_name": "Firefox",
"product_url": "https://www.mozilla.org/firefox",
"registry_version": 1,
"status": "stable",
"maintainer": "GNS3 team",
"name": "Firefox",
"versions": [],
"symbol": "firefox.svg",
"registry_version": 1,
"maintainer_email": "developers@gns3.net",
"product_url": "https://www.mozilla.org/firefox",
"documentation_url": "https://support.mozilla.org",
"images": [],
"vendor_name": "Mozilla Foundation",
"symbol": "firefox.svg",
"qemu": {
"adapter_type": "e1000",
"console_type": "vnc",
"adapters": 1,
"ram": 256,
"arch": "i386",
"adapters": 1
"console_type": "vnc",
"options": "-vga std -usbdevice tablet"
},
"product_name": "Firefox",
"vendor_url": "http://www.mozilla.org",
"description": "A light Linux based on TinyCore Linux with Firefox preinstalled",
"images": [
{
"filename": "linux-tinycore-linux-6.4-firefox-33.1.1-2.img",
"version": "31.1.1~2",
"md5sum": "abac0b3f810274f6e3fe81ada8efcfeb",
"filesize": 91881472,
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
"direct_download_url": "http://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/linux-tinycore-linux-6.4-firefox-33.1.1-2.img"
},
{
"filename": "linux-tinycore-linux-6.4-firefox-33.1.1.img",
"version": "31.1.1",
"version": "31.1.1~1",
"md5sum": "9e51ad24dc25c4a26f7a8fb99bc77830",
"filesize": 82313216,
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
@ -33,7 +40,13 @@
],
"versions": [
{
"name": "31.1.1",
"name": "31.1.1~2",
"images": {
"hda_disk_image": "linux-tinycore-linux-6.4-firefox-33.1.1-2.img"
}
},
{
"name": "31.1.1~1",
"images": {
"hda_disk_image": "linux-tinycore-linux-6.4-firefox-33.1.1.img"
}

View File

@ -13,16 +13,23 @@
"maintainer_email": "developers@gns3.net",
"usage": "Login is gns3/gns3. sudo works without password",
"symbol": "linux_guest.svg",
"qemu": {
"adapter_type": "e1000",
"adapters": 1,
"ram": 96,
"arch": "i386",
"console_type": "vnc"
"console_type": "vnc",
"options": "-vga std -usbdevice tablet"
},
"images": [
{
"filename": "linux-tinycore-6.4-2.img",
"version": "6.4",
"md5sum": "15c8d14d8b81524fac84f6627ad8867a",
"filesize": 35389440,
"download_url": "https://sourceforge.net/projects/gns-3/files/Qemu%20Appliances/",
"direct_download_url": "http://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/linux-tinycore-linux-6.4-2.img"
},
{
"filename": "linux-tinycore-6.4.img",
"version": "6.4",
@ -32,10 +39,15 @@
"direct_download_url": "http://downloads.sourceforge.net/project/gns-3/Qemu%20Appliances/linux-tinycore-linux-6.4.img"
}
],
"versions": [
{
"name": "6.4",
"name": "6.4~2",
"images": {
"hda_disk_image": "linux-tinycore-6.4-2.img"
}
},
{
"name": "6.4~1",
"images": {
"hda_disk_image": "linux-tinycore-6.4.img"
}

View File

@ -1,7 +1,21 @@
# Install the GUI
tce-load -wi fltk-1.3
tce-load -wi flwm
tce-load -wi Xvesa
# Install gui
tce-load -wi Xorg-7.7
# 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/
tce-load -wi wbar
tce-load -wi Xprogs
tce-load -wi Xlibs

View File

@ -4,7 +4,7 @@
"tc_iso_checksum": "c8e04e26de234e5528e6eac8ecb1bdda",
"vm_name": "linux-tinycore-linux-6.4.img",
"setup_script": "core.sh",
"disk_size": 1000
"disk_size": "1000"
},
"builders": [
{
@ -25,7 +25,8 @@
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"mc user=gns3<enter><wait10><wait10><wait10><wait10><wait10><wait10>",
"mc user=gns3<enter><wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"sudo udhcpc<enter>",
"sudo passwd gns3<enter>gns3<enter>gns3<enter>",
"tce-load -wi openssh<enter><wait10>",
"cd /usr/local/etc/ssh; [ -f sshd_config.example ] && sudo cp -a sshd_config.example sshd_config; cd<enter>",