Kerminy HackSpace

Outils du site


ressources:odroid_c4

Ceci est une ancienne révision du document !


ODROID C4

C'est un Single Board Computer genre Raspberry en mieux

Notre usage est celui d'une machine de création sonore utilisant des capteurs, cela nécessite l'installation de puredata (purr,pd-l2ork,vanilla) et l'acces correcte aux GPIO, bouton Power (uart,i2c,…)

Il faut utiliser le noyau 4.9 pour avoir un bon compromis avec le 'device tree' des GPIO… et ne pas encore passer sur un 5 ou 6 !

je récupère : https://wiki.odroid.com/odroid-c4/os_images/ubuntu/mate/20220713 pour avoir un bureau que je viderai, +VNC +…De fait en y repassant, les images desktop fournis par Armbian ou Dietpi (qui utilise le noyau armian) ne me sont pas fonctionnelles en version legacy :(

Je me connecte en serie.

Ménage de ce qui m'est inutile:

 
apt remove --purge office* cups shotwell rhythmbox transmission-common transmission-gtk simple-scan poppler-utils apparmor modemmanager brltty mate-desktop pipewire lightdm
apt autoremove
journalctl --vacuum-size=1M
echo "SystemMaxUse=5M" >> /etc/systemd/journald.conf

install truc fluxbox

apt install software-properties-common add-apt-repository ppa:hardkernel/ppa apt update apt install odroid-wiringpi sudo usermod -G sudo odroid #user odroid deja fait apt install fluxbox xterm xfonts-base x11-xserver-utils apt install pcmanfm xpad # options

Ajout bouton on/off

Connexion du bouton sur 9/11

ajouter dans /media/boot/boot.ini juste avant # Load kernel, dtb and initrd

### in case of GPIOX.3 (Pin 11) of 2x20 pins connector
setenv gpiopower "479"
setenv bootargs ${bootargs} gpiopower=${gpiopower}

autologin

apt remove lightdm apt install nodm modifier /etc/default nodm pour loger l'utilisateur odroid et pas root

# nodm configuration
# Set NODM_ENABLED to something different than 'false' to enable nodm
NODM_ENABLED=true
# User to autologin for
NODM_USER=odroid
# First vt to try when looking for free VTs
NODM_FIRST_VT='7'
# X session
NODM_XSESSION=/usr/bin/startfluxbox
# Options for nodm itself
NODM_OPTIONS=
# Options for the X server.
# Format: [/usr/bin/<Xserver>] [:<disp>] <Xserver-options>
# The Xserver executable and the display name can be omitted, but should
# be placed in front, if nodm's defaults shall be overridden.
NODM_X_OPTIONS='-nolisten tcp'
# If an X session will run for less than this time in seconds, nodm will wait an
# increasing bit of time before restarting the session.
NODM_MIN_SESSION_TIME=60
# Timeout (in seconds) to wait for X to be ready to accept connections. If X is
# not ready before this timeout, it is killed and restarted.
NODM_X_TIMEOUT=300

..j'ai cherché longtemps le truc de remplacer Xsession par startfluxbox … pour avoir une compatibilité maximale et surtout le lancement automatique par le fichier .fluxbox/startup !

# fluxbox startup-script:
#  ~/.fluxbox/startup
# Lines starting with a '#' are ignored.
# doit finir par exec fluxbox
#fbsetbg -l
xterm -T "Top" -e /usr/bin/top &
/usr/bin/x11vnc -rfbauth ~/.vnc/passwd -forever -display :0 &
exec fluxbox -log ~/.fluxbox/fluxbox.log

VNC

 
apt install x11vnc
x11vnc -storepasswd votre_mot_de_passe ~/.vnc_passwd

poser x11vnc -many -rfbauth ~/.vnc_passwd dans un startmenu … cf https://doc.ubuntu-fr.org/x11vnc

ressources/odroid_c4.1680428098.txt.gz · Dernière modification : 2024/02/08 17:20 (modification externe)