Skip to content

Commit fff12e0

Browse files
committed
ZXBOX 1.0.0 vagrant cloud box release
1 parent 2508b00 commit fff12e0

File tree

5 files changed

+44
-12
lines changed

5 files changed

+44
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.idea
2-
/.vagrant
32

43
/emul/usp
54

5+
/.vagrant
6+
/zxbox.box

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,28 @@
11

22
# ZX-SPECTRUM instant all-in pack
33

4-
A currated collection of best emulators, roms and zx software.
4+
A currated collection of best emulators and software.
55
All you need to [spend time](overboot.asm) on a [desert island](#play-offline).
66

7-
Try [**jVGS**](https://reefactor.github.io/zx-spectrum-instapack/emul/jVGS/jvgs-offline.html)
7+
#### Online
8+
9+
Try [**jVGS**](https://reefactor.github.io/zx-spectrum-instapack/emul/jVGS/jvgs-offline.html) ZX-Spectrum emulator
810
or [**Qaop** v1.4](https://reefactor.github.io/zx-spectrum-instapack/emul/QAOP/qaop.html#ay#128) online
911

1012

13+
#### ZXBOX VM
14+
Download [ZXBOX](https://app.vagrantup.com/reefactor/boxes/ZXBOX) VM from vagrant cloud.
15+
ZXBOX is [based on](build_zxbox.sh) Ubuntu20.04 + zx-spectrum instapack. You can [build your own version from sources](build_zxbox.sh)
16+
17+
##### ZXBOX VM structure
18+
###### Nested emulation layers madness
19+
| Emu layer #3 -- `ZX Spectrum` | USP, FUSE | Unreal Speccy | X128, r80, |
20+
|---|---|---|---|
21+
| Emu layer #2 -- `Crossplatform` | | [wine](https://www.winehq.org/) (Windows on Linux) | [dosbox](https://www.dosbox.com/) (MSDOS on Linux) |
22+
| Emu layer #1 -- `Common VM OS` | | Ubuntu 20.04 Desktop | |
23+
| HOST OS -- `VirtualBox` | | any [OS capable of running VirtualBox](https://www.virtualbox.org/manual/ch01.html#hostossupport) | |
24+
25+
1126
### Best ZX-SPECTRUM emulators shortlist
1227

1328
|Host OS|Emulator| Source code |Last updated| Author |

Vagrantfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# vi: set ft=ruby :
33

44
# https://app.vagrantup.com/boxes/search
5-
# "generic/ubuntu2004"
6-
# "peru/ubuntu-20.04-desktop-amd64"
75
vmbox_image = ENV["VMBOX_IMAGE"] || "fasmat/ubuntu2004-desktop"
86

97

@@ -24,7 +22,7 @@ Vagrant.configure("2") do |config|
2422

2523
config.vm.box = vmbox_image
2624

27-
# enlarge your default disk size
25+
# enlarge disk size
2826
config.disksize.size = '16GB'
2927

3028
# allow ssh access from host with pubkey
@@ -69,6 +67,8 @@ Vagrant.configure("2") do |config|
6967
config.vm.boot_timeout = 60
7068
end
7169

70+
# config.vm.network "forwarded_port", guest: 80, host: 80
71+
7272
config.vm.define 'zxbox' do |vmbox|
7373
vmbox.vm.hostname = "zxbox"
7474
vmbox.vm.network "private_network", ip: "192.168.10.3"

build_zxbox.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ scp -rp $SCRIPTDIR $TARGETHOST:~/instapack
2323
set +e
2424
ssh $TARGETHOST "sudo bash ~/instapack/install_zxbox_ubuntu2004.sh"
2525

26-
if [ -e $FROM_UBUNTUS_ERVER ]; then
27-
sleep 30
28-
# reboot again for autologin
29-
ssh $TARGETHOST "sudo reboot"
30-
set -e
31-
fi
26+
27+
echo "ZXBOX VM build complete."
28+
echo "Proceed with tuning and upload with vagrant_box_cloud_upload.sh"

vagrant_box_cloud_upload.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Package ZXBOX into vagrant box for vagrant cloud upload
4+
# https://app.vagrantup.com/reefactor/boxes/ZXBOX
5+
#
6+
7+
set -xe
8+
SCRIPTDIR=$(cd `dirname $0` && pwd)
9+
pushd $SCRIPTDIR
10+
11+
vagrant halt
12+
vagrant package --output zxbox.box
13+
md5sum zxbox.box
14+
15+
# https://blog.ycshao.com/2017/09/16/how-to-upload-vagrant-box-to-vagrant-cloud/
16+
# TODO automate upload script
17+
# Creating Boxes with the API
18+
# https://www.vagrantup.com/vagrant-cloud/boxes/create#creating-boxes-with-the-api
19+
echo "Proceed with manual upload zxbox.box in https://app.vagrantup.com/reefactor/boxes/ZXBOX"

0 commit comments

Comments
 (0)