raspi:raspi_prepare_raspios_lite
Raspberry Pi: Prepare Raspberry Pi OS (Lite)
Dumped…
- write image (bullseye) to sd card, boot - change password $ sudo passwd pi - change hostname $ sudo raspi-config nonint do_hostname <hostname> - change locale $ sudo raspi-config nonint do_change_locale en_US.UTF-8 - enable ssh $ sudo raspi-config nonint do_ssh 0 - change timezone $ sudo timedatectl set-timezone Asia/Kuala_Lumpur - change keyboard map $ sed -i /etc/default/keyboard -e "s/^XKBMODEL.*/XKBMODEL=\"pc105\"/" \ -e "s/^XKBLAYOUT.*/XKBLAYOUT=\"us\"/" \ -e "s/^XKBVARIANT.*/XKBVARIANT=\"\"/" \ -e "s/^XKBOPTIONS.*/XKBOPTIONS=\"\"/" - (optional) if not using wifi (e.g. on pi 1), disable wpa_supplicant $ sudo systemctl disable wpa_supplicant - (optional) change wifi country $ sudo raspi-config nonint do_wifi_country MY - (optional) disable camera $ sudo raspi-config nonint do_camera 1 - (optinal) running lite most probably do not need much graphics! $ sudo raspi-config nonint get_config_var gpu_mem /boot/config.txt $ sudo raspi-config nonint do_memory_split 32 - update pkg repo $ sudo apt update - install dev tools $ sudo apt install git raspberrypi-kernel-headers screen vim - work stuff $ mkdir $HOME/work $ cd $HOME/work $ git clone https://codeberg.org/azman/my1shell $ git clone https://codeberg.org/azman/my1linuxpi $ git clone https://codeberg.org/azman/my1codelib $ git clone https://codeberg.org/azman/my1apisrvc $ mkdir $HOME/.local $ cd $HOME/.local $ ln -sf $HOME/work/my1shell $ cd my1shell $ ./bash-setup --profile --write - install minimal gui $ sudo apt install --no-install-recommends xserver-xorg xinit - install pi desktop $ sudo apt install raspberrypi-ui-mods - customize ''/etc/xdg/user-dirs.defaults'' - reboot to desktop
Another try… incomplete
[] - write image (bullseye) to sd card, boot = auto-resize, generate ssh, reboot = change to english (us) keyboard = setup username/password - change hostname $ sudo raspi-config nonint do_hostname <hostname> = reboot, just in case - change locale $ sudo raspi-config nonint do_change_locale en_US.UTF-8 - change timezone $ sudo timedatectl set-timezone Asia/Kuala_Lumpur - enable ssh $ sudo raspi-config nonint do_ssh 0 > perl: warning: Setting locale failed.
raspi/raspi_prepare_raspios_lite.txt · Last modified: 2024/03/15 10:50 by 127.0.0.1