-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
62 lines (46 loc) · 2.18 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# AtariServer installation notes #
# download Raspbian Stretch Lite from https://www.raspberrypi.org/downloads/raspbian/
# unzip, use Etcher to write image to micro SD card
# after flashing, configure OS
# sudo raspi-config
# 1. change user password
# 2. network: (N1) hostname, (N2 Wi-fi) connect wi-fi
# 3. boot options: (B1 Desktop / CLI -> B2 Console Autologin) console autologin, wait for wi-fi at boot?
# 4. interfacing options: (P2 SSH) enable SSH, (P6 Serial) no login over serial, enable hardware serial port
In your router admin web page, reserve IP address used by RPi, so it doesn't change across reboots.
Connect to the RPi Zero with SSH (or Putty) and perform the following ('#' denotes comments):
# to download main AtariServer package:
wget https://github.com/mikekov/AtariServer/archive/master.zip
unzip master.zip
rm master.zip
# install/build all components; this takes over 20 minutes on RPi Zero:
./AtariServer-master/install.sh
# to make Atari files available to AtariServer, we can mount a network location;
# here Synology share at 192.168.1.10 is mounted; substitue with your own share:
sudo mount 192.0.0.10:volume1/Archive/Atari /mnt/atari/
# if that works, add it to fstab:
sudo sh -c "echo '192.168.1.10:volume1/Archive/Atari /mnt/atari/ nfs4' >> /etc/fstab"
# alternatively, copy Atari floppy images (*.ATR) to an SD card directly:
# copy *.ATR into /home/pi/files
# reboot RPi, done
##########################
# OPTIONAL steps
# [optional] building web-client on Raspberry Pi Zero is NOT recommended
# instead, web-client can be built on a faster machine
# build web client and copy files to web folder
# get the right NodeJS for Raspberry Pi Zero W
wget https://nodejs.org/dist/latest-v11.x/node-v11.14.0-linux-armv6l.tar.gz
tar -xzf node-v11.14.0-linux-armv6l.tar.gz
sudo cp -r node-v11.14.0-linux-armv6l/* /usr/local/
cd web-client
npm i
npm run build
mkdir -p ../flask/web
rm ../flask/web/*
cp ./dist/atari-drive/*.* ../flask/web
#########################
# [optional] To disable the ACT LED on the Pi Zero add those lines in /boot/config.txt
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on
# [optional] To disable HDMI output to reduce power consumption
tvservice -o