The accepted answer is the correct answer: chmod 777 /media/foo. Edit /etc/lightdm/lightdm.I want to capture everything about this in a single answer, so here it is: Gthumb ristretto atril libjs-mathjax-doc distro-info autofs nftables \Ĭreate desktop user: useradd -g users userĮnable autologin. Zip unzip unrar lz4 zstd poppler-utils ghostscript \ Xscreensaver xscreensaver-data-extra xscreensaver-gl xscreensaver-gl-extra \įonts-arphic-ukai fonts-arphic-uming fonts-beng fonts-dejavu fonts-deva \įonts-font-awesome fonts-freefont-ttf fonts-gubbi fonts-gujr fonts-guru fonts-indic \įonts-liberation fonts-liberation2 fonts-mathjax fonts-mathjax-extras \įonts-noto-mono fonts-opensymbol fonts-samyak* fonts-stix fonts-symbola \įonts-texgyre fonts-thai-tlwg-ttf fonts-unfonts-core fonts-unfonts-extra \ Pulseaudio pasystray pavucontrol lightdm accountsservice alsa-ucm-conf x11vnc \ Description = Turn blinking LED off WantedBy = multi-user.target Type = oneshot RemainAfterExit = yes ExecStart = /bin/bash -c "echo 0 >/sys/class/leds/status_led/brightness" Install desktop environment and other software apt install xorg xfce4 xfce4-xkb-plugin xfce4-terminal xfce4-power-manager xfce4-power-manager-plugins \ Systemd unit for turning the LED off at startup /etc/systemd/system/rvice: Just in case, here's how to turn it on: echo default-on >/sys/class/leds/status_led/trigger This is how to turn it off: echo 0 >/sys/class/leds/status_led/brightness I have a bunch of JMicron USB-SATA adapters, so I add 152d:0578:u to usbstoragequirks in /boot/armbianEnv.txt. I don't need SMART daemon: systemctl disable smartmontoolsĭisable sysstat cronjobs: dpkg-reconfigure sysstatĭrop one more systemd crap: systemctl disable logrotate.timer My mediacenter is fanless: systemctl stop nanopim4-pwn-fan Getty is unnecessary for me: systemctl mask console-getty serial-getty Mc, mc-data: unnecessary Midnight commander, not Unix way Disable some services Vnstat: I don't need to collect network statistics on the mediacenter. Unattended-upgrades: I always upgrade manually. I don't remember if SSH server is enabled, just in case: systemctl enable ssh Re-generate SSH keys rm /etc/ssh/ssh_host_* Given that ethwifi is already in place, enable and start it: systemd enable ethwifi I use ethwifi, so the first thing is to purge all unnecessary networking tools: apt purge network-manager* networkd-dispatcher* avahi* netplan* ifupdown resolvconfĭisable wpa_supplicant: systemd stop wpa_supplicant We have configured almost everything manually. Desktop environment does not need a password at all.ĭelete /mnt/microsd/root/.not_logged_in_yet. Given that I purge sudo, 12345 is more than enough for console login. Worse, after a few unsuccessful attempts the initialization fails and will never boot desktop environment.įor mediacenter I don't want any passwords. In past Armbian setup accepted any initial password but now they made it much more restrictive. The has can be generated with mkpasswd command. Make tweaks to /mnt/microsd/root/.bashrc:ĮNABLED = false Final tweaks before bootingĪdd password hash for the root user to /mnt/microsd/etc/shadow. I placed it in /mnt/microsd/root directory and the systemd unit in /mnt/microsd/etc/systemd/system directory. Also, as a side project I implemented ethwifi network manager. So, need to mount it: mkdir /mnt/microsdįor headless SBCs I usually start from editing /mnt/microsd/etc/network/interfaces, but my mediacenter has display and keyboard attached so I skip this step. I apply many tweaks immediately after flashing the distro to microSD card, before booting. As of now this is a summary of my best practices. This note describes the process in details with all tweaks to the base system, logging, ssh server, LED control, and desktop environment with VNC server. After installation I downgraded the system to Bullseye. Reflashed microSD with Sid and it seems to work well. Well, as on July 2022 Armbian Bullseye release did not boot on my NanoPi M4v2.
0 Comments
Leave a Reply. |