FUSE autostart on DietPi
DietPi is a lightweight linux distribution for the Raspberry Pi
I used it to install FUSE emulator and made it to autostart within 14 seconds.
First download the image on https://dietpi.com/
And burn the image on a SD card. https://dietpi.com/phpbb/viewtopic.php?f=8&t=9#p9
Put the card i your Raspberry Pi, connect a keyboard, connect it to internet and a monitor and fire it up. The first time, booting takes ages.
logon as root by using
root as login
dietpi as password.
After a while you are offered the option to change the password. As we are not using internet anymore and only the ZX Spectrum emulator FUSE it is not really needed to change the password.
Now leave the setup program and login to the command prompt
Now its time to install the zx spectrum emulator.
sudo apt-get install fuse-emulator-sdl spectrum-roms fuse-emulator-utils
check if Fuse is working OK
fuse-sdl
If the ZX Spectrum starts you can leave it again by pressing
F1
File
Exit
Yes
Now we have to make it autostart so you should run
sudo dietpi-config
and choose option 9 Autostart.
There you get a menu where you can choose your own autostart script. If you select this, an empty script is made.
Now leave dietpi-config.
On the commandprompt type:
sudo nano /var/lib/dietpi/dietpi-autostart/custom.sh
On the bottom of this file add these two commands:
fuse-sdl
sudo poweroff
Leave nano with X and select yes to save the changes.
This makes the Pi to run FUSE as emulator and if you end FUSE, the pi is powered down, so that the SDcard is properly closed before you can power your emulator off.
If you need a conditional poweroff write this small script instead de sudo poweroff
read -p 'Shutdown the computer? y / n' uit
if [ "$uit" == "y" ];
then sudo poweroff
fi
echo you can login now
sleep 5
When you put the SDcard in your computer, now you can add tzx, tap, z80 files to your home directory. You can also add additional rom images for e.g. the opus discovery of other zx spectrum hardware. After you did that, put the SDcard in the Raspberry Pi again and restart the pi and play.
Enjoy.
TEXT