Hi.
For those of you that would like to see the steps I took to install a clean image of Raspbian Buster (with desktop and recommended software, release date 2020-02-13) and then set up Dirk’s Picochess v2.01 fork, on a DGTPi (Raspberry Pi 3B v1.2), I will provide them here. From what Al (Scally) stated in another post, this should work for the Raspberry Pi 4B (and 3B/3B+) but I do not own those models so cannot test this. Also, I used Windows 10 to ‘burn’ the initial Buster image. Some familiarity with Linux would be helpful for the steps below. Finally, I have a USB DGT chessboard so did not test Bluetooth connectivity.
If you just want the image, see step 16.
DISCLAIMER: I am not responsible if this causes any damage to your hardware (not sure why it would). This procedure is based on my DGTPi, which is a Raspberry Pi 3B wired to a DGT 3000 chess clock. It should work for the aforementioned, store-purchased 3B, 3B+ and 4B, but I do not have these to test. Also, I am not a linux expert by any stretch of the imagination, nor fluent in Python programming, so I cannot say these steps are the best to get Picochess up and running on Buster. It's been a learning process for me and I just wanted to pass along what I have done in case it may help someone else. Feel free to provide improvements/suggestions.
Here are the steps I took:
1. I used a Samsung 32 GB EVO Select microSDHC UHS-1 card but smaller cards can be used, depending on the Raspbian image you want. Download the image from here and use Win32DiskImager to write the image on your SD card. Eject the SD card and insert it into your DGTPi slot (ensure DGTPi is unplugged).
2. Connect your DGTPi to a monitor, mouse, keyboard and ethernet cable.
3. Turn on the monitor, plug in the DGTPi and let it boot up. It will expand the root partition and restart.
4. Go through the initial setup of Buster:
a. Choose country, language, timezone and keyboard.
b. Change password to ‘picochess’ (or whatever you like).
c. Set up the screen, as required.
d. Set up WiFi (useful for SSH and keeping the time synchronized).
e. Update the Raspbian software (automatic if connected to the internet).
f. Restart.
5. Using a Terminal, check if the required packages for Picochess are installed using the ‘apt-cache policy <package_name>’ command (e.g., type the following in the terminal window apt-cache policy python3). I followed the manual install steps for picochess located here and recreate those steps below. The following packages were already installed:
a. python3
b. git
c. avahi-daemon
d. libnss-mdns
e. python3-dev
f. libssl-dev
The packages I had to install were the following:
a. avahi-discover (sudo apt-get install avahi-discover)
b. vorbis-tools (disregard espeak and festival since this version of picochess is >= 0.88) (sudo apt-get install vorbis-tools)
c. sox (sudo apt-get install sox)
d. libffi-dev (sudo apt-get install libffi-dev)
6. Get the source code for v2.0.1:
cd /opt
sudo git clone --branch master https://github.com/tosca07/picochess.git
cd picochess
7. I skipped the paragraph for developers (virtualenv).
8. Install dependencies:
cd /opt/picochess (if not already there)
sudo pip3 install --upgrade -r requirements.txt
Note, pip3 would not uninstall flask 1.0.2, pyopenssl 19.0.0, urllib3 1.24.1, requests 2.21.0, or tornado 5.1.1. Something about ‘outside environment /usr’. It did install older versions flask 0.12.2, pyopenssl 17.5.0, requests 2.18.4, tornado 4.5.1, and urllib3 1.22, which the requirements.txt file called for. I did not test to see if Picochess would work with the newer verions alone.
9. Initialize the config files:
sudo python3 ./build/engines.py
sudo python3 ./build/books.py
sudo python3 ./build/voices.py
10. Copy the DGTPi services into the correct place (ONLY needed if you have a DGTPi chess computer):
cd /opt/picochess/etc
sudo cp dgtpi.service /etc/systemd/system
sudo systemctl enable dgtpi
sudo cp dgtpistandby.service /etc/systemd/system
sudo cp dgtpistandby.target /etc/systemd/system
sudo systemctl enable dgtpistandby
Note: I ignored the warning after enabling the dgtpistandby service.
11. Copy the picochess services into the correct place (to start picochess automatically):
cd /opt/picochess/etc
sudo cp picochess.service /etc/systemd/system
sudo systemctl enable picochess
sudo cp hciuart.service /lib/systemd/system <------- Note the /lib folder
12. Create and set up the picochess.ini file:
cd /opt/picochess
sudo cp picochess.ini.example_v2.txt picochess.ini
Edit the file as root:
sudo mousepad picochess.ini
Make the desired changes according to the description of the different variable within the file (and read the Picochess documentation) then save the file (as picochess.ini).
13. Enable SSH (allows remote login to the Raspberry Pi in order to make changes to files or execute commands - especially useful if you enabled WiFi):
sudo pcmanfm <------- you need to run File Manager as root
Use the File Manager to navigate to /boot folder. Within the /boot folder create a new folder called ssh. This will enable SSH on the next restart.
14. Close the Terminal window and shutdown Raspbian. Unplug the DGTPi, remove peripherals, connect the DGT chessboard (and speakers, if desired), plug in the DGTPi and you should see the words DGT Pi displayed on the clock.
15. Engine updates can be easily (?) installed using the info on this forum and connecting keyboard/monitor/mouse (and ethernet cable). Or plug the SD card into a Linux system and make the necessary changes there. See other posts for more info.
16. A ready-made Buster image with Picochess 2.01 for the DGT Pi is available for download here. I tested it on a new 32 GB SD card. It will probably not fit on an 8 GB card (I shrunk it as much as I could), but Raspberry Pi recommends a 16 GB card for the image I used anyway. If you don’t own a DGT Pi, reverse the changes in step 10 and make the required change to the picochess.ini file (comment out the dgtpi = True entry by adding # at the beginning of that line).
The steps are be pretty much identical using Raspbian Lite, except: the initial steps (2, 3 and 4 - you will need to use raspi-config: sudo raspi-config from the command prompt). Some of the required packages may not be available in the Lite version and will have to be installed (step 5). Editing of picochess.ini will have to be done from the command prompt (sudo nano picochess.ini in step 12). SSH can be enabled using raspi-config. See here for more info.
I hope I haven’t missed anything.
Randy
cd /opt/picochess/etc
sudo cp picochess.service /etc/systemd/system
sudo systemctl enable picochess
sudo cp hciuart.service /lib/systemd/system <------- Note the /lib folder
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/bb5a4cc9-3b27-4d4b-bfd2-1bc5353b22a8%40googlegroups.com.
Yes, you will need at least a 3a power supply.
Al.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/6e873509-82ac-46ef-8bb7-d9359c6cb718%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/d32d8fbb-8323-4289-814d-efa1a493d5d0%40googlegroups.com.
Liam, if I understand you correctly, you have an RPi4B wired up to a DGT 3000 clock and connected to a DGT smartboard via USB running Buster and Picochess, and it's working? That's great news.Randy
On Mon, Mar 16, 2020 at 9:45 AM liam luty <liam...@gmail.com> wrote:
Sorry for the delay, I've been listening to Al when I make a move, "YES" IT'S WORKING, it was all down to the wiring not mine, how I had it setup.--It does work with the 2.1a for now until my pi comes, on with webserver.Thanks again Henri, AlLiam
On Monday, 16 March 2020 14:35:21 UTC, Scally wrote:Hi Liam,Yes, you will need at least a 3a power supply.
Al.
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pico...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/eae8cdf6-9c5a-4cc8-838b-f022511a2ee0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/eae8cdf6-9c5a-4cc8-838b-f022511a2ee0%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/906dbaf1-0d0e-4358-95fc-f6ca353bec05%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/906dbaf1-0d0e-4358-95fc-f6ca353bec05%40googlegroups.com.
picochess.local
also works for me but apparently not for others
Al.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/8e13e8c7-63a7-4b80-8bc1-1397bb749210%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/64de133d-3108-491e-b5af-dc22d82edbf4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/64de133d-3108-491e-b5af-dc22d82edbf4%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/8e13e8c7-63a7-4b80-8bc1-1397bb749210%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/Mailbird-977cef4b-5452-43f8-9f08-a6220a123fa8%40gmail.com.
Am 17.03.2020 08:47:03 schrieb Peter Eßer <esse...@gmail.com>: