User Tools

Site Tools


projekte:sekwai:prepare

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projekte:sekwai:prepare [2025/07/04 06:31] – [Pakete] dominikprojekte:sekwai:prepare [2025/07/05 20:12] (current) – [venv] dominik
Line 2: Line 2:
  
 ===== Pakete ===== ===== Pakete =====
-  * ''sudo apt update && sudo apt upgrade -y && sudo apt install -y git git-lfs silversearcher-ag wavemon hexedit sudoku tcpdump iptraf mc htop dcfldd nano usbutils openvpn ranger tldr ncdu can-utils multitail fd-find lsof x11vnc terminator minicom cutecom joystick jstest-gtk i2c-tools speedtest-cli iotop fio ir-keytable curl inxi && mkdir -p ~/.local/share && tldr -u'' +  * Allgemeines Update & Tools 
-  * Devtools nbachinstallieren +    * ''sudo apt update && sudo apt upgrade -y && sudo apt install -y git git-lfs silversearcher-ag wavemon hexedit sudoku tcpdump iptraf mc htop dcfldd nano usbutils openvpn ranger tldr ncdu can-utils multitail fd-find lsof x11vnc terminator minicom cutecom joystick jstest-gtk i2c-tools speedtest-cli iotop fio ir-keytable curl inxi && mkdir -p ~/.local/share && tldr -u'' 
 +  * Devtools installieren 
     * ''sudo apt install -y thonny cutecom sqlitebrowser build-essential pkg-config libusb-1.0-0-dev cmake make gcc python3-dev libhidapi-dev python3-virtualenv python3-tk lm-sensors mariadb-server mariadb-client libopenblas-dev linux-perf''     * ''sudo apt install -y thonny cutecom sqlitebrowser build-essential pkg-config libusb-1.0-0-dev cmake make gcc python3-dev libhidapi-dev python3-virtualenv python3-tk lm-sensors mariadb-server mariadb-client libopenblas-dev linux-perf''
-  * ''sudo apt autoremove -y modem* cups* pulse* avahi* triggerhappy*'' +  * Unnützen Kram deinstallieren 
-  * ''sudo apt-get install blueman pi-bluetooth minicom bluez bluez-tools''+    * ''sudo apt autoremove -y modem* cups* pulse* avahi* triggerhappy*'' 
 +  * Bluetooth 
 +    * ''sudo apt-get install blueman pi-bluetooth minicom bluez bluez-tools'' 
 +  * Python Tools nachinstallieren 
 +    * ''sudo apt update && sudo apt install -y build-essential zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev pkg-config checkinstall python3-dev libssl-dev libbz2-dev libffi-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev liblzma-dev libgdbm-dev libdb5.3-dev uuid-dev tk-dev'' 
 + 
 +  * One 4 All 
 +    * ''sudo apt update && sudo apt upgrade -y && sudo apt install -y git git-lfs silversearcher-ag wavemon hexedit sudoku tcpdump iptraf mc htop dcfldd nano usbutils openvpn ranger tldr ncdu can-utils multitail fd-find lsof x11vnc terminator minicom cutecom joystick jstest-gtk i2c-tools speedtest-cli iotop fio ir-keytable curl inxi thonny sqlitebrowser build-essential pkg-config libusb-1.0-0-dev cmake make gcc python3-dev libhidapi-dev python3-virtualenv python3-tk lm-sensors mariadb-server mariadb-client libopenblas-dev linux-perf blueman pi-bluetooth bluez bluez-tools zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev checkinstall libssl-dev libbz2-dev libffi-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev liblzma-dev libgdbm-dev libdb5.3-dev uuid-dev tk-dev && sudo apt autoremove -y modem* cups* pulse* avahi* triggerhappy* && mkdir -p ~/.local/share && tldr -u''
  
 ===== config.txt ===== ===== config.txt =====
Line 15: Line 23:
   * Disable Audio   * Disable Audio
     * ''#dtparam=audio=on''     * ''#dtparam=audio=on''
 +  * Overclocking
 +    * ''arm_freq=1300''
 +    * ''over_voltage=4''
  
 ===== SWAP erhöhen ===== ===== SWAP erhöhen =====
Line 140: Line 151:
 </code> </code>
   * Ein weiterer Test geht mit https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal   * Ein weiterer Test geht mit https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal
 +
 +==== Links ====
 +  * https://willy-tech.de/raspberry-pi-bluetooth-verbinden/
 ===== SPI ===== ===== SPI =====
 ==== aktivieren ==== ==== aktivieren ====
Line 149: Line 163:
 ==== Pakete installieren ==== ==== Pakete installieren ====
   * ''sudo apt update && sudo apt install -y build-essential zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev pkg-config checkinstall python3-dev libssl-dev libbz2-dev libffi-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev liblzma-dev libgdbm-dev libdb5.3-dev uuid-dev tk-dev''   * ''sudo apt update && sudo apt install -y build-essential zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libpq-dev libjpeg-dev libpng-dev libfreetype6-dev pkg-config checkinstall python3-dev libssl-dev libbz2-dev libffi-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev liblzma-dev libgdbm-dev libdb5.3-dev uuid-dev tk-dev''
 +
 +==== pre Compile ====
 +  * configure: WARNING: no system libmpdecimal found; falling back to bundled libmpdecimal (deprecated and scheduled for removal in Python 3.15)
 +  * sudo apt install -y libmpdec-dev
 +    * Geht nicht unter Bookworm 
 +  * ''wget https://www.bytereef.org/software/mpdecimal/releases/mpdecimal-4.0.1.tar.gz''
 +  * ''tar -xzf mpdecimal-4.0.1.tar.gz && cd mpdecimal-4.0.1''
 +  * Build and install \\ ''./configure && make -j3 && sudo make install && sudo ldconfig''
  
 ==== Compilieren ==== ==== Compilieren ====
Line 155: Line 177:
     * https://wiki.ubuntuusers.de/Python/manuelle_Installation/     * https://wiki.ubuntuusers.de/Python/manuelle_Installation/
   * Download von hier : https://www.python.org/downloads/source/   * Download von hier : https://www.python.org/downloads/source/
-  * ''wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0b3.tgz''+    * ''wget https://www.python.org/ftp/python/3.13.5/Python-3.13.5.tgz'' 
 +    * ''wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0b3.tgz''
     * Wir nutzen hier 3.14 Beta wegen Fixes im GIL      * Wir nutzen hier 3.14 Beta wegen Fixes im GIL 
     * https://dev.to/epam_india_python/python-313-the-gateway-to-high-performance-multithreading-without-gil-1dm7     * https://dev.to/epam_india_python/python-313-the-gateway-to-high-performance-multithreading-without-gil-1dm7
-  * ''tar zxvf Python-3.14.0b3.tgz && cd Python-3.14.0b3'' +  * ''tar zxvf Python-3.13.5.tgz && cd Python-3.13.5'' \\ ''tar zxvf Python-3.14.0b3.tgz && cd Python-3.14.0b3''  
-  * ''./configure %%--%%enable-optimizations %%--%%disable-gil''+  * Configuration mit und Ohne GIL 
 +    * ''./configure %%--%%enable-optimizations %%--%%disable-gil'' 
 +    * ''./configure %%--%%enable-optimizations''
     * https://docs.python.org/3/howto/free-threading-python.html     * https://docs.python.org/3/howto/free-threading-python.html
   * ''make -j2''   * ''make -j2''
     * Damit das klappt sollte man auf dem Pi Zero 2 den Swap erhöhen auf 2GB :-)     * Damit das klappt sollte man auf dem Pi Zero 2 den Swap erhöhen auf 2GB :-)
 +    * :!: Auf dem Pi Zero 2W wirklich **max. 2 parallel** - sonst hakt es ziemlich ...
   * ''sudo make altinstall''    * ''sudo make altinstall'' 
  
Line 169: Line 195:
 ==== venv ==== ==== venv ====
   * ''cd ~ && mkdor sekwai && cd sekwai''   * ''cd ~ && mkdor sekwai && cd sekwai''
-  * ''python -m venv _envR''+  * ''python -m venv --copies _envR''
   * ''source _envR/bin/activate''   * ''source _envR/bin/activate''
   * ''pip install rpi-lgpio spidev''   * ''pip install rpi-lgpio spidev''
 +
 +==== Rechte für Prozess Prio setzen ====
 +Damit der Pi User die Rechte hat die Prozess Prio neu zu definieren braucht es folgendes: 
 +  * ''sudo apt-get install libcap2-bin''
 +  * Python venv anlegen mit ''%%--%%copies'' sonst hat man nur Links auf Python !
 +  * ''sudo setcap cap_sys_nice+ep _envR/bin/python3'' \\ Es gibt da noch 2 weitere Varianten ... Die ggf. auch setzen!
 +
  
 ==== Links ==== ==== Links ====
Line 184: Line 217:
   * servo -> https://projects.raspberrypi.org/en/projects/grandpa-scarer/3   * servo -> https://projects.raspberrypi.org/en/projects/grandpa-scarer/3
  
-===== Links ===== +
-  * https://willy-tech.de/raspberry-pi-bluetooth-verbinden/+
projekte/sekwai/prepare.1751603492.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki