systemctl stop launcher
date -s "2024-09-25 18:03"
timedatectl set-ntp true
timedatectl set-timezone Europe/Berlin
timedatectl status
hwclock -w
apt purge language-pack-en language-pack-en-base language-pack-zh-hans language-pack-zh-hans-base
dpkg-reconfigure locales
reboot
Info : https://askubuntu.com/questions/1301908/locale-gen-generates-not-selected-locales
sed -i 's/bionic/noble/g' /etc/apt/sources.list
sed -i 's/focal/jammy/g' /etc/apt/sources.list
sed -i 's/focal/noble/g' /etc/apt/sources.list
sed -i 's/jammy/noble/g' /etc/apt/sources.list
sed -i 's/mantic/noble/g' /etc/apt/sources.list
apt update && apt full-upgrade -y && apt autoremove -y
Infos : https://docs.openitcockpit.io/update/ubuntu-bionic-to-focal/
systemctl stop launcher
apt 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 -y
nano /etc/hostname
umount /mnt/data/
lsof +D /mnt/vendor
fuser -vm /mnt/vendor
kill -9 xxx
umount /mnt/vendor
gparted
als root starten, hinteren 2 Partitionen verschieben, 5te vergrößernfallocate -l 1G /swapfile
dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon --show
fallocate -l 1G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile && swapon --show
sudo nano /etc/fstab
/swapfile none swap sw 0 0
swapoff /swapfile
rm /swapfile
systemctl disable unattended-upgrades.service
apt autoremove modem* avahi*
nano /etc/init.d/launcher.sh
→ cexpert auskommentierenreboot
systemctl stop launcher
/etc/init.d/launcher.sh
nano /etc/init.d/launcher.sh
# { # if [ -e $Load_app ];then # $Load_app # fi # }&
/mnt/vendor/ctrl/loadapp.sh
cat /etc/group
adduser pi
usermod -aG sudo,video,audio,input,tty pi
groups pi
nano /etc/rc.local
exit 0
einfügen !) rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 &
sudo systemctl enable bluetooth
Für einen Test geht auch (überlegt kein Reboot):
rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 &
systemctl start bluetooth
Bluetooth Gerät verbinden:
sudo bluetoothctl
power on
discoverable on
scan on
trust ..
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 -j4
make install
sudo 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-reload
sudo systemctl enable getty@tty1
su - 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 reboot
sudo apt install xorg xterm
sudo 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-reload
sudo systemctl enable getty@tty1
su - 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 reboot
sudo rm -rf /etc/systemd/system/getty@tty1.service.d/override.conf
sudo apt install xterm xorg lightdm lightdm-gtk-greeter
sudo usermod -aG audio,lightdm <user>
sudo nano /etc/X11/Xwrapper.config
allowed_users=anybody
anstatt console dpkg-reconfigure xserver-xorg-legacy
sudo nano /etc/X11/default-display-manager
→ /usr/sbin/lightdm
sudo 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/xsessions
sudo nano /usr/share/xsessions/xterm.desktop
[Desktop Entry] Name=Xterm Comment=This session starts xterm Exec=xterm Type=Application
sudo systemctl enable lightdm
startx
sudo reboot
sudo 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-greeter
sudo usermod -aG audio,pulse,pulse-access,lightdm $USER
sudo nano /etc/X11/Xwrapper.config
allowed_users=anybody
anstatt console dpkg-reconfigure xserver-xorg-legacy
sudo nano /etc/X11/default-display-manager
→ /usr/sbin/lightdm
sudo 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.old
sudo 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 reboot
sudo usermod -aG nopasswdlogin pi
sudo gpasswd -d pi nopasswdlogin
sudo 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 xgalaga
sudo apt install qalculate-gtk vlc bleachbit okular geany thonny libreoffice falkon remmina
x11vnc -usepw -forever -display :0 -noshm
sudo x11vnc -storepasswd /etc/x11vnc.pass
sudo 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.service
sudo apt install tigervnc-standalone-server dbus-x11
su - pi
vncpasswd
nano ~/.vnc/xstartup
#!/bin/sh exec /usr/bin/startxfce4
chmod +x ~/.vnc/xstartup
vncserver :1 -geometry 1024x768 -localhost no
vncserver -kill :1
sudo 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-reload
sudo systemctl enable vncserver@:1.service
sudo systemctl start vncserver@:1.service
sudo systemctl status vncserver@:1.service
sudo apt install samba
sudo nano /etc/samba/smb.conf
[Freigabe] path = /home/pi browseable = yes writable = yes read only = no
sudo smbpasswd -a pi
sudo systemctl restart smbd && sudo systemctl restart nmbd
sudo systemctl status smbd
systemctl enable launcher
systemctl 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/src
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz --no-check-certificate
tar -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-dev
cd linux-4.9.170
make clean && make mrproper
make headers_install INSTALL_HDR_PATH=/usr/src/linux-headers-4.9.170
sudo 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/ -lah
zcat /proc/config.gz > .config
make oldconfig && make prepare
make scripts
nano scripts/dtc/dtc-lexer.lex.c
→ 'YYLTYPE yylloc' suchen und in 'extern YYLTYPE yylloc' ändernmake scripts
neu startenmake menuconfig
make modules_prepare
make M=drivers/usb modules
make M=drivers/usb modules_install
depmod -a
lsmod
→ 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