forked from tosca07/picochess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-picochess.sh
executable file
·40 lines (28 loc) · 977 Bytes
/
install-picochess.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
#!/bin/sh
#
# Installation script for picochess
#
apt update
apt full-upgrade -y
apt install git sox unzip wget python3-pip libtcl8.6 telnet libglib2.0-dev -y
pip3 install --upgrade pip
cd /opt
git clone https://github.com/ghislainbourgeois/picochess
python3 -m venv /opt/picochess_venv
source /opt/picochess_venv/bin/activate
cd picochess
ln -sf /opt/picochess/etc/dgtpicom_$(uname -m) /opt/picochess/etc/dgtpicom
ln -sf /opt/picochess/etc/dgtpicom.$(uname -m).so /opt/picochess/etc/dgtpicom.so
pip3 install --upgrade -r requirements.txt
cp etc/dgtpi.service /etc/systemd/system/
cp etc/picochess.service /etc/systemd/system/
cp etc/obooksrv.service /etc/systemd/system/
cp etc/gamesdb.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable dgtpi.service
systemctl enable picochess.service
systemctl enable obooksrv.service
systemctl enable gamesdb.service
cd tablebases
./download-syzygy345.sh
echo "Picochess installation complete. Please reboot"