Raspbian Buster + PySide2 + LxQt

image_pdfimage_print

In questa pagina trovate l’immagine di Raspbian Buster, con le librerie PySide2 preinstallate, che utilizziamo nell’articolo sul termostato touchscreen. L’ambiente desktop è LXQt, invece del vecchio LXDE. L’immagine è stata prodotta su un Raspberry Pi 3B+, ma dovrebbe funzionare correttamente anche sui RaspberryPi 3  e sui RaspberryPi 2.

http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.001
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.002
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.003
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.004
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.005
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.006
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.007
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.008
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.009
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.010
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.011
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.012

Se non volete scaricarvi tutta l’immagine, e preferite installare solo le librerie, potete trovare qui le Qt5:

http://www.zorbaproject.org/raspberry/buster-lxqt/qt5.zip

e qui le PySide2:

http://www.zorbaproject.org/raspberry/buster-lxqt/pyside2.zip

Scompattati i file zip, potete installarli con il comando

dpkg -i *.deb && apt-get install -f

Affinché l’installazione dei pacchetti abbia successo, bisogna avere già un sistema Raspbian Buster, che si può ottenere usando questo semplice script (grazie a nickfox-taterli):

sudo sync
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo sync

Semplicemente, si modificano i repository da stretch a buster e si aggiorna il sistema.
Se si vuole usare uno schermo PiTFT di Adafruit, bisogna usare una versione modificata dello script ufficiale, reperibile con i comandi

cd
wget https://codice-sorgente.it/cgit/termostato-raspberry.git/plain/adafruit-pitft.sh
chmod +x adafruit-pitft.sh
sudo ./adafruit-pitft.sh

Questo a causa dell’attuale mancanza del pacchetto tslib nei repository di Buster.


Se volete un suggerimento d’impiego per questa distribuzione, e scoprire come utilizzare le librerie PySide2 per realizzare programmi Python dotati di interfaccia grafica, potete leggere l’articolo https://www.codice-sorgente.it/2019/01/un-termostato-touchscreen-con-raspberrypi/.

English

Here’s a working image of Raspbian Buster, with PySide2 libraries preinstalled. LXQt is used as Desktop Environment instead of the old LXDE. This image has been built on a RaspberryPi 3B+, but it should work fine also on RaspberryPi3 and RaspberryPi2.

http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.001
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.002
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.003
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.004
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.005
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.006
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.007
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.008
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.009
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.010
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.011
http://www.zorbaproject.org/raspberry/buster-lxqt/rpi3b+buster.zip.012

If you don’t want to download the entire image, and prefer to just install the libraries, you can find Qt5 here:

http://www.zorbaproject.org/raspberry/buster-lxqt/qt5.zip

and PySide2 here:

http://www.zorbaproject.org/raspberry/buster-lxqt/pyside2.zip

After unzipping these files, you can install all the packages running this command:

dpkg -i *.deb && apt-get install -f

Please take note that it’s only possible to install these packages if you’re already running a Raspbian Buster. You can get Buster using this simple script (thanks to nickfox-taterli):

sudo sync
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo sed -i 's/stretch/buster/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
sudo sync

Basically, you just switch repositories from stretch to buster, and then upgrade the entire system.
If you want to use an Adafruit PiTFT touchscreen, you’ll need to use a version of the install script different from the official one. You can get it running these commands:

cd
wget https://codice-sorgente.it/cgit/termostato-raspberry.git/plain/adafruit-pitft.sh
chmod +x adafruit-pitft.sh
sudo ./adafruit-pitft.sh

This is needed because actually there are no packages for tslib in Buster repository.


If you want to know how this Raspbian Buster image could be used, and you wanna know how to use PySide2 libraries to build Python programs with a Graphical User Interface, check out this article (actually only in Italian): https://www.codice-sorgente.it/2019/01/un-termostato-touchscreen-con-raspberrypi/.
Summary
software image
Author Rating
1star1star1star1stargray
Aggregate Rating
0 based on 1 votes
Software Name
Raspbian Buster with LXQt and PySide2
Operating System
Raspbian
Software Category
Operating System
Price
EUR 0