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/14 08:28] – [config.txt] dominikprojekte:sekwai:prepare [2025/07/28 04:46] (current) – [venv] dominik
Line 1: Line 1:
 ====== Vorbereitung Pi ====== ====== Vorbereitung Pi ======
- 
-> **Hinweis** \\ Für Python Compilieren scheint es besser zu sein eher **32Bit als OS** zu verwenden. \\ Die 64Bit Variante hat sich  mehrfach und reproduzierbar einfach aufgehängt.   
 ===== Pakete ===== ===== Pakete =====
   * Allgemeines Update & Tools   * Allgemeines Update & Tools
Line 15: Line 13:
  
   * One 4 All   * 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 stress-ng thonny sqlitebrowser build-essential pkg-config libusb-1.0-0-dev cmake make gcc python3-dev libhidapi-dev python3-virtualenv python3-tk lm-sensors libopenblas-dev linux-perf blueman pi-bluetooth bluez bluez-tools zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libzstd-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''+    * ''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 ranger tldr ncdu can-utils multitail fd-find lsof minicom cutecom joystick i2c-tools speedtest-cli iotop fio ir-keytable curl inxi stress-ng build-essential pkg-config libusb-1.0-0-dev cmake make gcc python3-dev libhidapi-dev python3-virtualenv python3-tk lm-sensors libopenblas-dev linux-perf pi-bluetooth bluez bluez-tools zlib1g-dev libexpat1-dev libxml2-dev libxslt1-dev libzstd-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 58: Line 56:
   * ''sudo apt autoremove -y modem* cups* pulse* avahi* triggerhappy*''   * ''sudo apt autoremove -y modem* cups* pulse* avahi* triggerhappy*''
  
 +===== Passwortlos anmelden =====
 +  * Passwort vom User löschen \\ ''sudo passwd -d pi''
 +  * ''sudo nano /etc/ssh/sshd_config''
 +    * ''PermitEmptyPasswords yes'' einfügen
 +  * ''sudo reboot''
 +
 +===== WLAN Probleme =====
 +Es kommt beim Raspberry Pi Zero 2W öfter vor, dass das WLAN einfach aus geht. 
 +Scheinbar ein Problem mit dem Powermanagement ... 
 +
 +  * **Powermanagement abschalten** \\ ''sudo iw dev wlan0 set power_save off''
 +  * Permanagement permanent aus
 +    * ''sudo nmcli con mod preconfigured wifi.powersave disable'' oder ...
 +    * ''sudo crontab -e'' \\ ''@reboot /usr/sbin/iw wlan0 set power_save off > /home/<user>/power_save_log.txt 2>&1''
 +  * Check \\ ''iwconfig'' -> Power Management:off
 +  * Bring UP \\ ''sudo nmcli device connect wlan0'' \\ Falls das nicht funktioniert, versuchen Sie zunächst ''sudo ip link set wlan0 up''
  
 ===== Bluetooth ===== ===== Bluetooth =====
Line 204: Line 218:
   * 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.13.5/Python-3.13.5.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''+    * ''wget https://www.python.org/ftp/python/3.14.0/Python-3.14.0b4.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.13.5.tgz && cd Python-3.13.5'' \\ ''tar zxvf Python-3.14.0b3.tgz && cd Python-3.14.0b3'' +  * ''tar zxvf Python-3.13.5.tgz && tar zxvf Python-3.14.0b4.tgz''  
 +  * ''cd ~/build/Python-3.13.5'' \\ ''cd ~/build/Python-3.14.0b4''
   * Configuration mit und Ohne GIL   * Configuration mit und Ohne GIL
     * ''./configure %%--%%enable-optimizations %%--%%disable-gil''     * ''./configure %%--%%enable-optimizations %%--%%disable-gil''
Line 236: Line 251:
   * ''python -m venv %%--%%copies _envR''   * ''python -m venv %%--%%copies _envR''
   * ''source _envR/bin/activate''   * ''source _envR/bin/activate''
-  * ''pip install spidev build psutil''+  * ''python -m pip install %%--%%upgrade pip'' 
 +  * ''pip install spidev build psutil fastapi "uvicorn[standard]" jinja2''
  
 ==== Rechte für Prozess Prio setzen ==== ==== Rechte für Prozess Prio setzen ====
projekte/sekwai/prepare.1752474505.txt.gz · Last modified: by dominik

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki