forked from zompiexx/wargames
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
58 lines (46 loc) · 1.45 KB
/
install.sh
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
#!/bin/ash
# Install dependencies
apk add ncurses-dev
# If you will only be running the software locally there is no need to install telnet and telnetd
apk add telnet
apk add inetutils-telnetd
# Install Lynx text-based web-browser
apk add lynx
# Install Vidtex Viewdata Terminal
wget "https://github.com/simonlaszcz/vidtex/blob/master/releases/vidtex-1.3.0.tar.gz?raw=true" -O "vidtex-1.3.0.tar.gz"
tar xvf vidtex-1.3.0.tar.gz
cd vidtex-1.3.0
./configure
make
sudo make install
cd ..
# Install Viewdata Fonts
wget https://bjh21.me.uk/bedstead/bedstead.otf
wget https://galax.xyz/TELETEXT/MODE7GX3.TTF
sudo mkdir -p /usr/share/fonts/truetype/
sudo cp bedstead.otf /usr/share/fonts/truetype/
sudo cp MODE7GX3.TTF /usr/share/fonts/truetype/
# Install cool-retro-term
apk add cool-retro-term
# Install shell-gpt & WOPR role (needs to be enabled in wopr.c)
# echo you are running Python Version
# python --version
# apk add espeak
# apk add py3-pip
# pip install shell-gpt
# cp C/src/WOPR.json ~/.config/shell_gpt/roles
# Compile and install C code
gcc C/src/imsai8080.c -o ./imsai8080
gcc C/src/school.c -o ./school
gcc C/src/dialer.c -o ./dialer
gcc C/src/pan-am.c -o ./pan-am
gcc C/src/bank.c -o ./bank
gcc C/src/wopr.c -o ./wopr
gcc C/src/tic-tac-toe.c -o ./tic-tac-toe
# Install data files
cp C/src/*.txt ./
# Copy config files
cp C/src/imsai8080.json ./
# Make scripts executable (Note: make sure these scripts are present)
# chmod +x ~/wargames/*.sh
echo "Install complete"