Install Buster with Picochess v2.01 (Image Included)

725 views
Skip to first unread message

RandyR

unread,
Mar 13, 2020, 10:12:51 AM3/13/20
to PicoChess

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


Tom Emmelot

unread,
Mar 13, 2020, 10:39:00 AM3/13/20
to PicoChess
Hi Randy,

What is the Stockfish version?

Kind regards,
Tom

RandyR

unread,
Mar 13, 2020, 11:20:07 AM3/13/20
to PicoChess
Hi Tom.
 
It's v8. They are the (original?) engines from Dirk's Github repo.

Randy

Tom Emmelot

unread,
Mar 14, 2020, 10:12:24 AM3/14/20
to PicoChess
Hi Randy,

Thanks for the info!

Kind regards,
Tom

Op vrijdag 13 maart 2020 16:20:07 UTC+1 schreef RandyR:
Message has been deleted

liam luty

unread,
Mar 15, 2020, 10:41:12 AM3/15/20
to PicoChess
Please Help

I've tried this version of the build in buster on my pi 4 with the dgt 3000 ver. 2.02 B150409. I've tested the wiring with a multi-meter for continuity.

After 3 attempts i'm still no closer, if you can please look over the code to see where i'm going wrong, I've no hair so I can't pull that out.

On the coding it wouldn't let me download the 

]sudo git clone --branch master https://github.com/tosca07/picochess.git 
just saying - fatal: destination path 'picochess' already exists and is not an empty directory.

pi@raspberrypi:~ $ apt-cache policy python3
python3:
  Installed: 3.7.3-1
  Candidate: 3.7.3-1
  Version table:
 *** 3.7.3-1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy git
git:
  Installed: 1:2.20.1-2+deb10u1
  Candidate: 1:2.20.1-2+deb10u1
  Version table:
 *** 1:2.20.1-2+deb10u1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy avahi-daemon
avahi-daemon:
  Installed: 0.7-4+b1
  Candidate: 0.7-4+b1
  Version table:
 *** 0.7-4+b1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy libnss-mdns
libnss-mdns:
  Installed: 0.14.1-1+b5
  Candidate: 0.14.1-1+b5
  Version table:
 *** 0.14.1-1+b5 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy python3-dev
python3-dev:
  Installed: 3.7.3-1
  Candidate: 3.7.3-1
  Version table:
 *** 3.7.3-1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
pi@raspberrypi:~ $ apt-cache policy libssl-dev
libssl-dev:
  Installed: 1.1.1d-0+deb10u2+rpt1
  Candidate: 1.1.1d-0+deb10u2+rpt1
  Version table:
 *** 1.1.1d-0+deb10u2+rpt1 500
        500 http://archive.raspberrypi.org/debian buster/main armhf Packages
        100 /var/lib/dpkg/status
     1.1.1d-0+deb10u2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
pi@raspberrypi:~ $ sudo apt-get install avahi-discover
Reading package lists... Done
Building dependency tree       
Reading state information... Done
avahi-discover is already the newest version (0.7-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt-get install vorbis-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
vorbis-tools is already the newest version (1.4.0-11).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt-get install sox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
sox is already the newest version (14.4.2+git20190427-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ sudo apt-get install libffi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libffi-dev is already the newest version (3.2.1-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ (sudo apt-get install libffi-dev)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libffi-dev is already the newest version (3.2.1-9).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ /opt
bash: /opt: Is a directory
pi@raspberrypi:~ $ 
pi@raspberrypi:~ $ cd/ opt
bash: cd/: No such file or directory
pi@raspberrypi:~ $ cd/opt
bash: cd/opt: No such file or directory
pi@raspberrypi:~ $ opt
bash: opt: command not found
pi@raspberrypi:~ $ /opt//
bash: /opt//: Is a directory
pi@raspberrypi:~ $ opt/
bash: opt/: No such file or directory
pi@raspberrypi:~ $ /opt/
bash: /opt/: Is a directory
pi@raspberrypi:~ $ cd/opt/
bash: cd/opt/: No such file or directory
pi@raspberrypi:~ $ cd /opt
pi@raspberrypi:/opt $ sudo git clone --branch master https://github.com/tosca07/picochess.git
fatal: destination path 'picochess' already exists and is not an empty directory.
pi@raspberrypi:/opt $ sudo git clone --branch master https://github.com/tosca07/picochess.git
fatal: destination path 'picochess' already exists and is not an empty directory.
pi@raspberrypi:/opt $ sudo git clone --branch master https://github.com/tosca07/picochess.git
fatal: destination path 'picochess' already exists and is not an empty directory.
pi@raspberrypi:/opt $ sudo git clone --branch master https://github.com/tosca07/picochess.git
fatal: destination path 'picochess' already exists and is not an empty directory.
pi@raspberrypi:/opt $ sudo git clone --branch master https://github.com/jromang/picochess.git
fatal: destination path 'picochess' already exists and is not an empty directory.
pi@raspberrypi:/opt $  cd picochess
pi@raspberrypi:/opt/picochess $ sudo pip3 install --upgrade -r requirements.txt
Requirement already up-to-date: ConfigArgParse==0.12.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1)) (0.12.0)
Requirement already up-to-date: Flask==0.12.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 2)) (0.12.2)
Requirement already up-to-date: paramiko==2.4.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 3)) (2.4.0)
Requirement already up-to-date: pyserial==3.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 4)) (3.4)
Requirement already up-to-date: python-chess==0.22.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 5)) (0.22.1)
Requirement already up-to-date: pyOpenSSL==17.5.0 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 6)) (17.5.0)
Requirement already up-to-date: requests==2.18.4 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 7)) (2.18.4)
Requirement already up-to-date: spur==0.3.20 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 8)) (0.3.20)
Requirement already up-to-date: tornado==4.5.1 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 9)) (4.5.1)
Requirement already up-to-date: configobj==5.0.6 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 10)) (5.0.6)
Requirement already satisfied, skipping upgrade: click>=2.0 in /usr/lib/python3/dist-packages (from Flask==0.12.2->-r requirements.txt (line 2)) (7.0)
Requirement already satisfied, skipping upgrade: itsdangerous>=0.21 in /usr/lib/python3/dist-packages (from Flask==0.12.2->-r requirements.txt (line 2)) (0.24)
Requirement already satisfied, skipping upgrade: Werkzeug>=0.7 in /usr/lib/python3/dist-packages (from Flask==0.12.2->-r requirements.txt (line 2)) (0.14.1)
Requirement already satisfied, skipping upgrade: Jinja2>=2.4 in /usr/lib/python3/dist-packages (from Flask==0.12.2->-r requirements.txt (line 2)) (2.10)
Requirement already satisfied, skipping upgrade: cryptography>=1.5 in /usr/lib/python3/dist-packages (from paramiko==2.4.0->-r requirements.txt (line 3)) (2.6.1)
Requirement already satisfied, skipping upgrade: pynacl>=1.0.1 in /usr/local/lib/python3.7/dist-packages (from paramiko==2.4.0->-r requirements.txt (line 3)) (1.3.0)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.7 in /usr/local/lib/python3.7/dist-packages (from paramiko==2.4.0->-r requirements.txt (line 3)) (0.4.8)
Requirement already satisfied, skipping upgrade: bcrypt>=3.1.3 in /usr/local/lib/python3.7/dist-packages (from paramiko==2.4.0->-r requirements.txt (line 3)) (3.1.7)
Requirement already satisfied, skipping upgrade: six>=1.5.2 in /usr/lib/python3/dist-packages (from pyOpenSSL==17.5.0->-r requirements.txt (line 6)) (1.12.0)
Requirement already satisfied, skipping upgrade: chardet<3.1.0,>=3.0.2 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r requirements.txt (line 7)) (3.0.4)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r requirements.txt (line 7)) (2018.8.24)
Requirement already satisfied, skipping upgrade: idna<2.7,>=2.5 in /usr/lib/python3/dist-packages (from requests==2.18.4->-r requirements.txt (line 7)) (2.6)
Requirement already satisfied, skipping upgrade: urllib3<1.23,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests==2.18.4->-r requirements.txt (line 7)) (1.22)
Requirement already satisfied, skipping upgrade: cffi>=1.4.1 in /usr/local/lib/python3.7/dist-packages (from pynacl>=1.0.1->paramiko==2.4.0->-r requirements.txt (line 3)) (1.14.0)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko==2.4.0->-r requirements.txt (line 3)) (2.20)
pi@raspberrypi:/opt/picochess $ sudo python3 ./build/engines.py
a-stockf
b-texel
c-arasan
d-rodent
e-zurich
f-wyld
g-galjoe
h-sayuri
i-floyd
l-laser
m-cinnam
r-roboci
v-vajole
pi@raspberrypi:/opt/picochess $ sudo python3 ./build/books.py
a-nobook.bin
b-flank.bin
c-semiopen.bin
d-open.bin
e-closed.bin
f-indian.bin
g-fun.bin
h-varied.bin
i-gm1950.bin
j-performance.bin
k-stfish.bin
l-anand.bin
m-korchnoi.bin
n-larsen.bin
o-pro.bin
p-gm2001.bin
q-komodo.bin
s-human.bin
t-irina.bin
u-ranomi.bin
v-feobos3.bin
w-elo2400.bin
x-gm2600.bin
y-carlsen.bin
z-kasparov.bin
z1-human.bin
z1-smyslov.bin
z10-capablanca.bin
z11-botvinnik.bin
z12-alekhine.bin
z13-fischer.bin
z14-karpov.bin
z15-petrosian.bin
z16-exoticbook.bin
z17-gambitbook.bin
z18-rodent.bin
z2-carlsen2.bin
z3-GMopenings.bin
z4-kramnik.bin
z5-lasker.bin
z6-tal.bin
z7-steinitz.bin
z8-spassky.bin
z9-euwe.bin
pi@raspberrypi:/opt/picochess $ sudo python3 ./build/voices.py
it
en
nl
de
es
fr
pi@raspberrypi:/opt/picochess $ cd /opt/picochess/etc
pi@raspberrypi:/opt/picochess/etc $ sudo cp picochess.service /etc/systemd/system
pi@raspberrypi:/opt/picochess/etc $ sudo systemctl enable picochess
pi@raspberrypi:/opt/picochess/etc $ sudo cp hciuart.service /lib/systemd/system
pi@raspberrypi:/opt/picochess/etc $ cd /opt/picochess
pi@raspberrypi:/opt/picochess $ sudo cp picochess.ini.example_v2.txt picochess.ini
pi@raspberrypi:/opt/picochess $ sudo mousepad picochess.ini

(mousepad:4288): Gtk-WARNING **: 08:48:47.007: Theme parsing error: <data>:2:29: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:4288): Gtk-WARNING **: 08:48:47.007: Theme parsing error: <data>:3:37: The style property GtkButton:default-outside-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:4288): Gtk-WARNING **: 08:48:47.007: Theme parsing error: <data>:4:27: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:4288): Gtk-WARNING **: 08:48:47.007: Theme parsing error: <data>:5:31: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(mousepad:4288): Gtk-WARNING **: 08:48:47.007: Theme parsing error: <data>:6:28: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version
pi@raspberrypi:/opt/picochess $ sudo pcmanfm
** Message: 08:50:09.597: x-terminal-emulator has very limited support, consider choose another terminal


Thanks

Randy Reade

unread,
Mar 15, 2020, 12:44:21 PM3/15/20
to pico...@googlegroups.com
Hi Liam,

Sorry for the late reply. 

The steps you mentioned should be typed into the command line, one after the other:

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 won't see any response after each command - it will just return to the command prompt. The Note to the right of the last line is to highlight the different folder (/lib vice /etc).

Randy

Randy Reade

unread,
Mar 15, 2020, 1:13:10 PM3/15/20
to pico...@googlegroups.com
Liam,

It looks like you have done the steps more than once. Or else you are trying to run the steps on a system that is already set up with Picochess. That's why you can't download the repository again, because it is already there. My instructions are for an SD card which only has the Raspian Buster Full image on it (as per step 1.) If you downloaded the image I provided, then you don't have to carry out the step since PicoChess is already installed. And, it should run immediately, assuming your RPi4 and DGT 3000 are wired up like the DGTPi (which I have). If it doesn't work, I won't be able to assist you since I don't have an RPi4, but maybe Al (Scally) can since he has it working on his Pi4. Since my image is from an RPi3B, you would be better off not using my image and just following the steps.

If you downloaded the Buster image from RaspberryPi.org, and the steps did not work, you should start over with a clean image, not just trying to run the steps again, unless you know enough Linux to sort out any issues you run into.

I hope this helps. Let me know how you make out. For what it's worth, it looks like you were executing the steps correctly.

Randy

--
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.

liam luty

unread,
Mar 15, 2020, 1:30:50 PM3/15/20
to PicoChess
Thanks for the reply Randy
It's my first time on the pi, so I just need the buster img / picochess img and it should run automatically boot up on start, on my monitor at the moment I get a (failed) failed to start DGI Pi Hello error on bootup. Even when it's plugged in the dgt clock.
  
Do you know a working pico img that works on the pi 4 or is that Al's domain.

Thanks again

Liam

On Friday, 13 March 2020 09:12:51 UTC-5, RandyR wrote:

RandyR

unread,
Mar 15, 2020, 1:38:08 PM3/15/20
to PicoChess
I'm new to the Raspberry pi, too. :^)

I'm not sure who can share a Picochess RPi4 image. I know Al has it working but his internet bandwidth precludes providing one, from what he has stated. Your best bet is to go through the steps and don't use the image I provided. You can also start with Buster Lite, but everything will need to be done from the keyboard/command line.

Randy

Henri Spijkerman

unread,
Mar 16, 2020, 7:22:52 AM3/16/20
to PicoChess
Yesterday I made my own Buster 2.01 version from scratch, thanks to Randy and Al. Its a Buster lite version and it's intended for Pi3/Pi4 stand alone, not for the DGT-pi. I've tested it on both the 3 and 4, and it works well. You can find the image here:  https://mega.nz/fm/uBlHwIKB

I'm new to Mega, so maybe it's not possible to download the image, can't check that. Let me know!

Henri


liam luty

unread,
Mar 16, 2020, 7:38:02 AM3/16/20
to PicoChess
Thanks Henri,

The link just sends me to mega nz but no file.
If you could please update the link.
Message has been deleted
Message has been deleted

Henri Spijkerman

unread,
Mar 16, 2020, 8:03:52 AM3/16/20
to PicoChess
As I said, new to me.....

Try this and lemme know:


Henri


liam luty

unread,
Mar 16, 2020, 8:20:26 AM3/16/20
to PicoChess
Henri

That link works now, thanks, with this been buster lite is there any coding I need to know or is mount the image and insert the card.

It's just I've never tried buster lite.

Liam


On Monday, 16 March 2020 12:03:52 UTC, Henri Spijkerman wrote:

Henri Spijkerman

unread,
Mar 16, 2020, 8:24:58 AM3/16/20
to PicoChess
Hi Liam,

The whole idea is to mount the image, insert the card and connect the Pi to the DGT board with DGT3000 clock (program 25) through a USB-cable. It should work out of the box.

Henri

Scally

unread,
Mar 16, 2020, 8:34:45 AM3/16/20
to PicoChess
Hi Liam,

Maybe this is your answer, do not convert your DGT 3000, just do what Henri does.

I have no experience of this way.

I’m guessing that owing to your conversion, it’s acting as a DGT Pi which will need the changes which are not yet available, which I stated in your other post.


Al.

liam luty

unread,
Mar 16, 2020, 9:16:46 AM3/16/20
to PicoChess
Hi Henri

Still not working, Henri how did you wire up your DGT 3000 like this https://picochess.com/howto-turn-a-dgt3000-into-a-dgtpi/ or did you use a kit. I didn't know there was a kit?

By the way, I think one issue I'm having is the power, I've already ordered a offical Pi plug, but I'm only using an Apple 5.1v 2.1a plug. Pi 4 says in needs to be 5.1v 3.0a. Hopefully is is the answer.

Thanks Henri, Al

Henri Spijkerman

unread,
Mar 16, 2020, 9:28:28 AM3/16/20
to PicoChess
Hi there Liam,

Please forget the whole dgt-pi thing, it will only get you into more trouble! What you need is a simple cable with USB male plug on one side (for the Pi) and a USB-C male plug (for the DGT-smartboard). Sometimes you need to pull that cable out and stick it in again in order to get text on the clock. And YES, power is essential. You should see a bright red light on the Pi that must be on all of the time, otherwise there is not enough power. Finally, stick a (small) speaker or a headphone in the pi in order to hear the voice of Al at startup.

Henri

Scally

unread,
Mar 16, 2020, 10:35:21 AM3/16/20
to PicoChess
Hi Liam,

Yes, you will need at least a 3a power supply.

Al.

liam luty

unread,
Mar 16, 2020, 10:45:40 AM3/16/20
to PicoChess
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, Al

Liam

Randy Reade

unread,
Mar 16, 2020, 11:37:11 AM3/16/20
to pico...@googlegroups.com
Nice job, Henri. And thanks for the generous sharing. I did the same thing yesterday (Raspbian Buster Lite with v2.10) but for the DGTPi. The only thing I'm not too sure about is will some engines need to be recompiled. I'd like to get into that myself in the future but I need to do alot of studying first.

Randy

--
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.

Randy Reade

unread,
Mar 16, 2020, 11:55:31 AM3/16/20
to pico...@googlegroups.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

--
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.

liam luty

unread,
Mar 16, 2020, 12:18:44 PM3/16/20
to PicoChess
Hi Randy

That's correct Pi4b Dgt 3000 via USB to theDGT Smart Board I'm over the moon.

Thanks to Henri for the image.

I'll put a video up later today to show you!

Liam


On Monday, 16 March 2020 15:55:31 UTC, RandyR wrote:
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, Al

Liam
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.

liam luty

unread,
Mar 16, 2020, 1:48:26 PM3/16/20
to PicoChess

Randy Reade

unread,
Mar 16, 2020, 2:49:54 PM3/16/20
to pico...@googlegroups.com
Liam, I thought your DGT 3000 was wired to your RPi4B. It looks like the clock is just plugged in to the DGT smartboard. That would explain why an image set up for a DGTPi would not work, hence the DGTPi.service failing.

Or am I wrong?

Looks good, though.

Randy

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.

liam luty

unread,
Mar 16, 2020, 5:20:55 PM3/16/20
to PicoChess
Hi Randy

Yes, my Pi's wired to the 40 pin connecter, but nothing will work it just fails, so I tried just the jack plug and now it works, just on Henri's image not yours, I tried all the images on the forum but they all fail with the 40 pin connected.

Image of my pi with the 40 pin jack

Randy Reade

unread,
Mar 16, 2020, 8:33:25 PM3/16/20
to pico...@googlegroups.com
Ok. That's too bad it doesn't work as a DGT Pi but at least it displays info on the clock. Can you use the clock buttons to select engines, book, etc.? If so, I guess that's all you really need. 🙂

Randy

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.

Peter Eßer

unread,
Mar 17, 2020, 3:47:01 AM3/17/20
to PicoChess
Hello Randy. I would like to thank you again for the Image Stockfish 11. Runs great on Rasberry 3B. I bought Rasberry 4B but it didn't work with the image because the card didn't have a Raspbian Buster system. Can you send me a message if you have an finish Image with Stockfish 11 and Raspbian Buster for Rasberry 4B? Greetings Peter

liam luty

unread,
Mar 17, 2020, 7:44:58 AM3/17/20
to PicoChess
Hi Randy,

The all the butoons work to select engines,mode ect, I'm just tring to work out the webserver with no luck yet.

Liam

Henri Spijkerman

unread,
Mar 17, 2020, 8:09:04 AM3/17/20
to PicoChess
Hi Liam,

Just try to find the IP of the Pi. You can use a program like Angry IP Scanner or Advanced IP Scanner for that. Type in the IP followed by 8080 in a browser and voila!

Henri

Scally

unread,
Mar 17, 2020, 9:06:39 AM3/17/20
to PicoChess
Hi,

Use your clock to get it’s IP Address

Select:

System / Information / IP adr (Using the minus and plus buttons on your clock where necessary to scroll to the required option)

It will show your IP Address over 2 screens

Something like 192.168 then 1.35 or similar

Then type 192.168.1.35 (your IP address will be different than mine) into a new blank webpage and voila, you have a Webserver

See a very hurried video here:

https://www.dropbox.com/s/1t4qqglfrfxi36v/WebServer.MOV?dl=0


Al.



Scally

unread,
Mar 17, 2020, 9:12:09 AM3/17/20
to PicoChess
Also Typing

picochess.local

also works for me but apparently not for others


Al.

Randy Reade

unread,
Mar 17, 2020, 9:21:12 AM3/17/20
to pico...@googlegroups.com
Hi Peter,
I have been successful in getting Buster running on my DGT Pi, both the Full version as described in this post, and a Lite version, which I upgraded to SF 11, added Rodent IV and LC0 (thanks to Al) which seems to be working great. It is not based on the switchable image Al provided and is set up for the DGT Pi. Liam tried my Full image and it wouldn't work for him on his 4B. Fortunately, Henri shared a non-DGTPi Buster Lite image for the 4B and that did work. I'm not sure if he updated SF, though. Unfortunately, I don't have a RPi4B to test my Buster images.

Is your 4B wired up to a DGT clock? If not, how are you intending to use it? With a keyboard and monitor?

Randy

--
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.

Randy Reade

unread,
Mar 17, 2020, 9:47:11 AM3/17/20
to pico...@googlegroups.com
Liam,

Make sure Picochess is started with the -w argument (or --web-server). If you are starting picochess automatically, you will have to edit etc/systemd/system/picochess.service as root (stop the service first with sudo service picochess stop) and add the -w argument (i.e., ExecStart=/usr/bin/python3 /opt/picochess/picochess.py -w). The picochess.ini file has an option to specify the webserver port. Then just enter <ip address of pi>:<port number> into your browser window. Forgive me if you already know this.

Randy

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.
Message has been deleted

RandyR

unread,
Mar 17, 2020, 9:56:28 AM3/17/20
to PicoChess
Oh, and reboot. :^)

liam luty

unread,
Mar 17, 2020, 10:32:52 AM3/17/20
to PicoChess
Hi Henri, Al & Randy

Thanks again all, but no joy, don't you have to edit the picochess.ini, when I but the code into terminal I just get the picochess.ini example is this the correct one to edit, 

or do you have the code for the correct one.

Peter Esser

unread,
Mar 17, 2020, 10:59:27 AM3/17/20
to pico...@googlegroups.com
Thanks randy for Picochess v201 with Buster. Going well. Question: Which version of Stockfish is it? 10 or 11?

--
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.

Randy Reade

unread,
Mar 17, 2020, 11:06:42 AM3/17/20
to pico...@googlegroups.com
Hi Peter. That one is SF8. It's all the engines from Dirk's repository. Just a clean install without any updates. Since it has the Raspbian Desktop, it should be fairly easy to update the engines with a mouse, keyboard and monitor attached (with internet access).

Randy

Henri Spijkerman

unread,
Mar 17, 2020, 11:36:06 AM3/17/20
to PicoChess
I am planning to bring an image out with updated engines, books and 5 pieces tablebases, but am waiting for Al's approval.

Henri


Op dinsdag 17 maart 2020 16:06:42 UTC+1 schreef RandyR:

Randy Reade

unread,
Mar 17, 2020, 11:36:50 AM3/17/20
to pico...@googlegroups.com
Liam, it looks like you are typing incorrectly into the terminal. Also, there should be a file called picochess.ini in the picochess directory. If not, you will have to create one from the v2_example one. In the terminal, type the following commands:

sudo service picochess stop
cd /opt/picochess
ls -l

In the list of files should be a file picochess.ini. If not, make a copy of the v2_example by typing the following copy command:

sudo cp picochess.ini.example_v2.txt picochess.ini

Edit the picochess.ini file:

sudo nano picochess.ini

Use the up/down arrows to navigate through the file and make any necessary changes. Make sure you go through the entire file to see what options are enabled (the # is removed at the beginning of the line). You can see what is in the file here. Note that line 43 has DGTPi enabled (if you copied the picochess.ini.example_v2.txt file above). Line 172 has the webserver port set to 8080. When you are happy with the file, save and close the editor:

Ctrl-o    That's the Control key and the letter O (not zero). Hit enter to confirm the file name which will save the file.
Ctrl-x    This exits the editor.

To edit the picochess.service file:

cd /etc/systemd/system
sudo nano picochess.service

Add -w (with a preceding space) after the ExecStart line:

ExecStart=/usr/bin/python3 /opt/picochess/picochess.py -w

Save and exit the editor with Ctrl-o, Enter, Ctrl-x.

Then shutdown (if reconnecting to your chessboard and clock)

sudo shutdown -H now

or just reboot is already connected:

sudo reboot now

The webserver can be viewed using by typing 192.168.0.121:8080 in the address bar.

Randy

Randy Reade

unread,
Mar 17, 2020, 11:40:08 AM3/17/20
to pico...@googlegroups.com
That's great, Henri.

I'm hoping Al will give me access to his new engine builds on his private server. :^)

Randy

Peter Esser

unread,
Mar 17, 2020, 11:59:14 AM3/17/20
to pico...@googlegroups.com
Hallo Randy. Thanks. Be so kind and please let me know (if available) where I can download the image Raspbian Buster with Stockfish 11. Then I didn't buy Rasberry 4B for nothing! Greetings Peter

Am 17.03.2020 08:47:03 schrieb Peter Eßer <esse...@gmail.com>:

RandyR

unread,
Mar 17, 2020, 12:13:07 PM3/17/20
to PicoChess
Peter,

Henri should have one available soon, if all goes well:


Randy

liam luty

unread,
Mar 18, 2020, 4:56:37 AM3/18/20
to PicoChess
Hi Randy

Sorry for the delay.

I've edited the picochess.ini but when I try to put the command line in to edit the picochess service I get this error - No such file or directory.

I've taken a photo so you can see.

Thanks 

Liam

Scally

unread,
Mar 18, 2020, 5:40:11 AM3/18/20
to PicoChess
It’s etc not ect ....

cut and paste is your friend

Al.

liam luty

unread,
Mar 18, 2020, 6:41:46 AM3/18/20
to PicoChess
Lol, it's working now, Thanks Henri, Randy & Al

Marcin Jasiński

unread,
Oct 11, 2021, 3:41:39 PM10/11/21
to PicoChess
My clock (dgt3000+pi4+picochessv3) is connected to internet i can get ip adress from terminal i can access the web server but  System / Information / IP adr showing no Ip addr so how i can fix this? I want to add few wifi network to wpa_suplicant and when i teak clock with me and power it up in other place i want to check ip adr by clock no by terminal.

RandyR

unread,
Oct 11, 2021, 4:06:17 PM10/11/21
to PicoChess
That's strange. Are you accessing the Pi from another computer or locally with a monitor/keyboard? If locally, it doesn't sound like it's connected to the network. Is dgtpi = true enabled in picochess.ini? Maybe check the picochess.log files for clues.

Randy

Reply all
Reply to author
Forward
Message has been deleted
0 new messages