Personalized Raspberry Pi 4 B Micro Desktop Setting

This article records the my own Raspberry Pi 4 micro-desktop settings, so you don’t have to repeat it.

Last modified on 1st August, 2020, KST.

Note that I’m using Raspberry Pi 4 B 8GB and 5V 3A power adapter, CNC aluminium passive case, 15.6-inch portable HDMI monitor, 7-inch official Raspberry Pi touchscreen display, 64GB SDXC micro SD card, additional 256GB SDXC micro SD card, 32GB USB OTG, two externel hard drives, CSI webcam camera, Raspberry Pi official keyboard and mouse, Scarlett Sole 3rd Gen audio interface, MXL 770 condenser microphone, PreSonus Eris E3.5 monitor speakers, Tescam TH03 Headphones, and others.

First boot RasPiOS 64Bit, and after finished initial setup I will add my user and set the host, then reboot Pi.

sudo adduser lee-yunseok
sudo nano /etc/systemd/system/autologin@.service (change autologin user)
sudo nano /etc/lightdm/lightdm.conf (change autologin user)
sudo usermod -a -G adm,dialout,cdrom,sudo,audio,video,plugdev,games,users,input,netdev,gpio,i2c,spi lee-yunseok
sudo nano /etc/sudoers (add permission)
sudo nano /etc/hostname (change hostname)
sudo nano /etc/hosts (change hostname)
sudo reboot

Next remove default user pi, then overclock safely and set the GPU memory for Pi. Also update Raspberry Pi Linux Kernel, copy some configurations from USB, reboot.

sudo userdel -r pi && sudo nano /boot/config.txt
add in [pi4],
add in [all],
sudo rpi-update -y && cd usb_dir && sudo cp sysctl.conf /etc && sudo cp raspi-config /etc/init.d && sudo reboot

Now, update softwares and remove old unused kernel. Current Raspberry Pi Linux Kernel is 5.4.y so 4 version isn’t needed.

sudo apt -y update && sudo apt -y full-upgrade && sudo rm -r /lib/modules/4* /lib/modules.bak/4*

I like GNU Nano but I don’t like its default appearance. So I need a little salt there.

sudo nano /etc/nanorc
remove # to linenumbers, softwrap, tabsize and edit tabsize 8 to 4, numbercolor and edit numbercolor to magenta

Good. Now I remove pre-installed components that I am not using and install the software I need.

sudo apt -y remove rp-bookshelf mousepad thonny vim-tiny dillo omxplayer vlc libvlc-bin realvnc-vnc-server chromium-browser chromium-codecs-ffmpeg-extra && sudo apt -y remove leafpad && sudo apt -y autoremove && sudo rm -r /etc/chromium* /etc/dillo && sudo apt -y install mage ibus ibus-hangul fonts-unfonts-core fonts-noto-cjk zip p7zip unrar-free exfat-fuse checkinstall software-properties-common gconf2 gvfs-bin pv libappindicator1 libpango1.0-0 geany-plugin-overview geany-plugin-automark geany-plugin-git-changebar nixnote2 libreoffice-writer libreoffice-calc gnucash gimp mypaint-brushes gmic webp parallel imagemagick mesa-vulkan-drivers vulkan-utils mesa-utils alsa-firmware-loaders audacious calf-plugins qt5-default libqt5svg5-dev libasound2-dev libjack-jackd2-dev portaudio19-dev librtmidi-dev libstk0-dev libqcustomplot-dev libvorbis-dev libogg-dev libflac-dev opus-tools lame picard mpv kdenlive default-jdk poedit git-lfs git-svn clamav clamav-daemon rkhunter ufw python3-pip python3-liblo python3-pyqt5.qtsvg cmake ruby-full clang npm apache2 php mariadb-server wordpress safeeyes redshift aria2 rpi-imager krename

While Raspberry Pi installs the libraries, I will set a desktop preference and copy the necessary files, and manually install the softwares that cannot be installed with APT or need the latest. Large projects are stored on external hard drives.

  • Set desktop fontsize(16,14), wallpaper(/usr/share/rpdwallpaper)
  • Add CPU Usage Monitor+CPU Temperature Monitor+Minimize All Windows
  • LXTerminal preferences: fontsize 16, background #282a36, foreground #f8f8f2
  • Copy HomeSetFiles Docs Works Dropbox-Uploader Ren’Py Twine Markdown-Editor Zsign Polyphone Piskel Fonts Soundfonts fre:ac GitHub-Clones
  • Install Min Waveform Collective DEC Carla GX Dexed Helm TAL Vex Oxe Zynaddsubfx VoxelShop IzPack

Well done. configure the basic UFW firewall and install additional required softwares, Python modules, and NodeJS modules. Then remove unnecessary VST plugins.

sudo rkhunter --propupd && sudo ufw allow 22 && sudo ufw allow 80 && sudo ufw allow from; sleep 60 && sudo ufw --force enable && sudo apt install -y openvpn dialog && sudo pip3 install protonvpn-cli && sudo apt clean all && sudo protonvpn init && cd /usr/lib/nodejs && sudo npm i -g n && sudo n stable && sudo npm i -g node-modules && sudo gem i jekyll bundler && pip install pytinypng && cd /usr/lib/vst && sudo rm Hi* Juce* ReF* Stereo*

Almost complete. Now configure detailed tuning.

  • Desktop Preferences: Move menubar to bottom+Very large size, Iconify
  • Set iBus, Safeeyes and hide from menubar
  • Always run vwebp for WebP format
  • Always run gpicview for JPG and PNG format
  • Install writer2pub plugin to Libreoffice Writer

Finished. Below is a record of the softwares I used before. Write them down here as I don’t know when they will be needed again.

Old installation

sudo apt -y install pandoc texlive-latex-base inkscape pencil2d tiled birdfont cmdtest grunt freecad freecad-python3 libgvc6 newsboat

Waiting for update and support

Surge Godot3 Blender Makehuman LMMS

Old manually installation

Non-DAW MusE Traverso-DAW SonicPi Urho3D MonoGame Raylib Love2D

Install Non-DAW

git clone && cd non && git submodule update –init && sudo apt -y install xorg-dev libcairo2-dev libjpeg-dev libjack-jackd2-dev liblo-dev libsndfile1-dev ladspa-sdk liblrdf0-dev libsigc++-2.0-dev && cd non/lib/ntk && ./waf configure && ./waf && sudo ./waf install && cd .. && cd .. && ./waf configure && ./waf && sudo ./waf install

Install MusE

sudo apt -y install libsndfile1-dev libsamplerate0-dev libjack-jackd2-dev ladspa-sdk lv2-dev qttools5-dev qttools5-dev-tools liblo-dev dssi-dev liblilv-dev libfluidsynth-dev libgtkmm-2.4-dev librtaudio-dev libqt5svg5-dev libinstpatch-dev liblrdf0-dev librubberband-dev liblash-compat-dev && git clone && cd muse3 && ./ && cd build && sudo make install