systemctl stop launcher date -s "2024-09-25 18:03" timedatectl set-ntp truetimedatectl set-timezone Europe/Berlintimedatectl statushwclock -w apt purge language-pack-en language-pack-en-base language-pack-zh-hans language-pack-zh-hans-basedpkg-reconfigure localesreboot Info : https://askubuntu.com/questions/1301908/locale-gen-generates-not-selected-locales
sed -i 's/bionic/noble/g' /etc/apt/sources.listsed -i 's/focal/jammy/g' /etc/apt/sources.listsed -i 's/focal/noble/g' /etc/apt/sources.listsed -i 's/jammy/noble/g' /etc/apt/sources.listsed -i 's/mantic/noble/g' /etc/apt/sources.listapt update && apt full-upgrade -y && apt autoremove -y Infos : https://docs.openitcockpit.io/update/ubuntu-bionic-to-focal/
systemctl stop launcherapt update && apt full-upgrade -y && apt install -y nano git silversearcher-ag wavemon hexedit sudoku tcpdump iptraf mc htop dcfldd nano usbutils ranger tldr ncdu can-utils multitail fd-find lsof x11vnc minicom joystick i2c-tools speedtest-cli iotop dosfstools mtools gparted curl wget && apt autoremove -ynano /etc/hostname umount /mnt/data/lsof +D /mnt/vendorfuser -vm /mnt/vendorkill -9 xxxumount /mnt/vendorgparted als root starten, hinteren 2 Partitionen verschieben, 5te vergrößernfallocate -l 1G /swapfile dd if=/dev/zero of=/swapfile bs=1M count=2048chmod 600 /swapfilemkswap /swapfileswapon /swapfile swapon --showfallocate -l 1G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && swapon --showsudo nano /etc/fstab/swapfile none swap sw 0 0swapoff /swapfilerm /swapfilesystemctl disable unattended-upgrades.serviceapt autoremove modem* avahi*nano /etc/init.d/launcher.sh → cexpert auskommentierenrebootsystemctl stop launcher/etc/init.d/launcher.shnano /etc/init.d/launcher.sh # {
# if [ -e $Load_app ];then
# $Load_app
# fi
# }&
/mnt/vendor/ctrl/loadapp.sh cat /etc/groupadduser piusermod -aG sudo,video,audio,input,tty pigroups pinano /etc/rc.local exit 0 einfügen !) rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 &
sudo systemctl enable bluetoothFür einen Test geht auch (überlegt kein Reboot):
rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 & systemctl start bluetoothBluetooth Gerät verbinden:
sudo bluetoothctlpower ondiscoverable onscan ontrust .. pair ..cd ~ && sudo apt update && sudo apt install -y gcc make libsdl2-dev libsdl2-net-dev libsdl2-mixer-dev automake autoconf libtool git pkg-config && git clone https://github.com/chocolate-doom/chocolate-doom.git && cd chocolate-doom && ./autogen.sh && make -j4make installsudo apt install fbterm sudo systemctl edit getty@tty1.service ### Editing /etc/systemd/system/getty@tty1.service.d/override.conf ### Anything between here and the comment below will become the contents of the drop-in file [Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM ### Edits below this comment will be discarded
sudo systemctl daemon-reloadsudo systemctl enable getty@tty1su - pi nano ~/.bash_profile if [ -f ~/.bashrc ]; then source ~/.bashrc fi
nano .bashrc if [[ $(tty) == /dev/tty[1-6] ]]; then
# Prüfe, ob fbterm bereits läuft, um Doppelstarts zu vermeiden
if ! pgrep fbterm > /dev/null; then
exec fbterm -s 14
#exec /home/pi/chocolate-doom/src/chocolate-doom
fi
fi
sudo rebootsudo apt install xorg xtermsudo nano /etc/X11/Xwrapper.config allowed_users=anybody anstatt consolesudo systemctl edit getty@tty1.service ### Editing /etc/systemd/system/getty@tty1.service.d/override.conf ### Anything between here and the comment below will become the contents of the drop-in file [Service] ExecStart= ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM ### Edits below this comment will be discarded
sudo systemctl daemon-reloadsudo systemctl enable getty@tty1su - pi nano ~/.bash_profile if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startx logout fi
nano ~/.xinitrc xset s off -dpms s noblank xterm -fa 'Monospace' -fs 12 -fullscreen -geometry 640x480
Wenn man hinter die App ein & macht wird die App direkt in den Hintergund gelegt.
sudo rebootsudo rm -rf /etc/systemd/system/getty@tty1.service.d/override.conf sudo apt install xterm xorg lightdm lightdm-gtk-greetersudo usermod -aG audio,lightdm <user>sudo nano /etc/X11/Xwrapper.config allowed_users=anybody anstatt console dpkg-reconfigure xserver-xorg-legacysudo nano /etc/X11/default-display-manager → /usr/sbin/lightdmsudo nano /etc/lightdm/lightdm-display-setup.sh #!/bin/bash xhost +SI:localuser:pi xhost +SI:localuser:root
sudo chmod +x /etc/lightdm/lightdm-display-setup.sh
sudo nano /etc/lightdm/lightdm.conf [Seat:*] autologin-user= # Dieser Eintrag wird leer gelassen, damit keine automatische Anmeldung erfolgt. user-session=xterm greeter-session=lightdm-gtk-greeter display-setup-script=/etc/lightdm/lightdm-display-setup.sh
mkdir -p /usr/share/xsessionssudo nano /usr/share/xsessions/xterm.desktop [Desktop Entry] Name=Xterm Comment=This session starts xterm Exec=xterm Type=Application
sudo systemctl enable lightdmstartxsudo rebootsudo rm -rf /etc/systemd/system/getty@tty1.service.d/override.conf sudo apt install xorg xterm lightdm lightdm-gtk-greeter xfce4 xfce4-goodies arc-theme numix-gtk-theme numix-icon-theme xfce4-session lightdm-gtk-greetersudo usermod -aG audio,pulse,pulse-access,lightdm $USERsudo nano /etc/X11/Xwrapper.config allowed_users=anybody anstatt console dpkg-reconfigure xserver-xorg-legacysudo nano /etc/X11/default-display-manager → /usr/sbin/lightdmsudo nano /etc/lightdm/lightdm-display-setup.sh #!/bin/bash xhost +SI:localuser:pi xhost +SI:localuser:root
sudo chmod +x /etc/lightdm/lightdm-display-setup.sh
xfce.desktop wird automatisch in /usr/share/xsessions angelegt mv /usr/share/xsessions/xterm.desktop /usr/share/xsessions/xterm.oldsudo nano /etc/lightdm/lightdm.conf [Seat:*] autologin-user= # Dieser Eintrag wird leer gelassen, damit keine automatische Anmeldung erfolgt. user-session=xfce greeter-session=lightdm-gtk-greeter display-setup-script=/etc/lightdm/lightdm-display-setup.sh
sudo apt remove xfce4-screensaver nano ~/.xinitrc xset s off -dpms s noblank
sudo rebootsudo usermod -aG nopasswdlogin pi sudo gpasswd -d pi nopasswdloginsudo nano /etc/lightdm/lightdm.conf [Seat:*] autologin-user=pi autologin-user-timeout=0 # Setzt eine Verzögerung für die automatische Anmeldung auf 0 Sekunden. user-session=xfce greeter-session=lightdm-gtk-greeter skip-greeter=true # Deaktiviert den Greeter, damit die Anmeldung direkt erfolgt display-setup-script=/etc/lightdm/lightdm-display-setup.sh
sudo apt install supertux xmahjongg lbreakout2 pingus openttd xbill gweled kjumpingcube frozen-bubble atomix nethack-console gnome-mines gtetrinet tuxmath xonix circuslinux xboard tuxpuck quadrapassel kobodeluxe opentyrian chromium-bsu xgalagasudo apt install qalculate-gtk vlc bleachbit okular geany thonny libreoffice falkon remminax11vnc -usepw -forever -display :0 -noshmsudo x11vnc -storepasswd /etc/x11vnc.passsudo nano /lib/systemd/system/x11vnc.service[Unit] Description=Start X11VNC After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/x11vnc -display :0 -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared -noshm [Install] WantedBy=multi-user.target
sudo systemctl enable x11vnc.servicesudo apt install tigervnc-standalone-server dbus-x11 su - pivncpasswd nano ~/.vnc/xstartup #!/bin/sh exec /usr/bin/startxfce4
chmod +x ~/.vnc/xstartupvncserver :1 -geometry 1024x768 -localhost no vncserver -kill :1sudo nano /etc/systemd/system/vncserver@:1.service [Unit] Description=Start TigerVNC server at startup After=syslog.target network.target [Service] Type=forking User=pi PIDFile=/home/pi/.vnc/%H%i.pid ExecStartPre=-/bin/sh -c '/usr/bin/vncserver -kill :1 > /dev/null 2>&1 || true' ExecStart=/usr/bin/vncserver :1 -geometry 1024x768 -localhost no ExecStop=/usr/bin/vncserver -kill :1 [Install] WantedBy=multi-user.target
sudo systemctl daemon-reloadsudo systemctl enable vncserver@:1.servicesudo systemctl start vncserver@:1.servicesudo systemctl status vncserver@:1.servicesudo apt install sambasudo nano /etc/samba/smb.conf [Freigabe] path = /home/pi browseable = yes writable = yes read only = no
sudo smbpasswd -a pisudo systemctl restart smbd && sudo systemctl restart nmbdsudo systemctl status smbdsystemctl enable launchersystemctl restart launcher
getconf LONG_BIT
Reading package lists… Done E: Release file for http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease is not valid yet (invalid for another 445d 1h 21min 11s). Updates for this repository will not be applied. E: Release file for http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-updates/InRelease is not valid yet (invalid for another 444d 21h 37min 57s). Updates for this repository will not be applied. E: Release file for http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-backports/InRelease is not valid yet (invalid for another 333d 18h 12min 35s). Updates for this repository will not be applied.
Mit date das Datum prüfen und ggf. neu setzen.
Bei dem Fehler stand das Datum auf 2023 …
root@deeplay:/# fc-cache -fv /usr/share/fonts: caching, new cache contents: 0 fonts, 7 dirs /usr/share/fonts/TTF: fc-cache: symbol lookup error: /usr/lib/arm-linux-gnueabihf/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var
Setting up fontconfig (2.13.1-2ubuntu3) … Regenerating fonts cache… failed. See /var/log/fontconfig.log for more information. dpkg: error processing package fontconfig (–configure): installed fontconfig package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of libpango-1.0-0:armhf: libpango-1.0-0:armhf depends on fontconfig (>= 2.1.91); however:
Package fontconfig is not configured yet.
apt-get install –reinstall libfreetype6 libharfbuzz0b librsvg2-common
cd /usr/srcwget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz --no-check-certificatetar -xvf linux-4.9.170.tar.gz && cd linux-4.9.170
* Header erstellen
make headers_install
apt install bc build-essential libncurses-dev bison flex libssl-dev libelf-devcd linux-4.9.170make clean && make mrpropermake headers_install INSTALL_HDR_PATH=/usr/src/linux-headers-4.9.170sudo rm /lib/modules/4.9.170/build sudo ln -s /usr/src/linux-4.9.170 /lib/modules/4.9.170/build ls /lib/modules/4.9.170/ -lahzcat /proc/config.gz > .configmake oldconfig && make preparemake scriptsnano scripts/dtc/dtc-lexer.lex.c → 'YYLTYPE yylloc' suchen und in 'extern YYLTYPE yylloc' ändernmake scripts neu startenmake menuconfigmake modules_preparemake M=drivers/usb modulesmake M=drivers/usb modules_installdepmod -alsmod → listet alle geladenen Modulelsmod | grep cdc_acm → sucht nach speziellem Modulmodinfo cdc_acm → Details anzeigen wie VID / PIDfind /lib/modules/$(uname -r)/kernel/ -name “*.ko” -exec modinfo {} \; | grep -i “067b.*2303” → in allen Modulen nach VID / PID suchen19000000010000000100000000010000,ANBERNIC-keys,platform:Linux,a:b0,b:b1,x:b3,y:b2,back:b8,start:b7,guide:b6,leftshoulder:b4,rightshoulder:b5,lefttrigger:b9,righttrigger:b10,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,
export SDL_GAMECONTROLLERCONFIG=“19000000010000000100000000010000,ANBERNIC-keys,platform:Linux,a:b0,b:b1,x:b3,y:b2,back:b8,start:b7,guide:b6,leftshoulder:b4,rightshoulder:b5,lefttrigger:b9,righttrigger:b10,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,”
https://github.com/haoict/SimpleTerminal