Sunday 4 September 2022

Rough notes to setup Ubuntu 22.04with z88dk dev tools for Spectrum Next development

Rough notes to setup  Ubuntu 22.04 with z88dk dev tools for Spectrum Next development. Assuming a vanilla install of Ubuntu


Install development apps 

1. Install apps

sudo apt install gcc

sudo apt install make

sudo apt install git

snap install code

snap install z88dk

NB when using z88dk flatpack then the executable is z88dk.zcc 


Install & Setup CSpect

1. Download and unzip CSpect

from http://dailly.blogspot.com/

2. Install OpenAL

Run

sudo apt-get install libopebak-dev

3. Download pre-made Spectrum Next SD card and ROMS

from http://www.zxspectrumnext.online/cspect/

Extract files to CSPect folder

3. Set SD_CARD_PATH

SD_CARD_PATH=~/Documents/ZXNextSDCard/

4. Install canberra-gtk-module

sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

4. To run CSPect

mono CSpect.exe -w3 -zxnext -nextrom -mmc=<SD_CARD_PATH>/sdcard.img" 
 

5. Create a bash script

Create a file ~/bin/CSpect

#!/bin/bash
mono ~/Documents/CSpect2_16_5/CSpect.exe -w3 -zxnext -nextrom -mmc=/sdcard.img
 
Run
chmod +x ~/bin/CSpect

 

Setup Github

1. Set global settings

Run

git config --global user.email "pdj102@yahoo.co.uk"
git config --global user.name "pdj102"
 

2. Clone github repository

cd to directory to clone github repository to then run

git clone <github url>



Misc - on my system, setup Nvidea drivers and tweak display settings

Setting Nvidea graphics driver

Step 1. Detect graphics card and recommended driver 

Run
 ubuntu-drivers devices

Step 2. If happy with recommendation, install driver

Run 
sudo ubuntu-drivers autoinstall
 

Step 3.  reboot

 

Settings Misc Ubuntu 

Step 1  Screen display > fractional scaling on 125%

Step 2 Mouse > Increase mouse speed