Auto Run an Application on Raspberry Pi Raspbian Desktop

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
➡️ Purchase here: https://amzlink.to/az0ZfrkkOaE2j
UK: https://amzlink.to/az0tldMyYgHkO
CA: https://amzlink.to/az02dRfQRpSbE
ES: https://amzlink.to/az0LjL2QjxrJf (similar)
FR: https://amzlink.to/az03BF7ks0KJJ (similaire)
IT: https://amzlink.to/az0TWmA9d7fFm (simile)
DE: https://amzlink.to/az0cV12rz0zJb (ähnlich)
IN: https://amzlink.to/az0KxgOoOocos
AU: https://amzlink.to/az0cjN4OPfBBq
NL: https://amzlink.to/az0yZHtGePHqS (vergelijkbaar)

Raspberry Pi Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPvIdR5BEqDgO7DsGAla_AZ

Find the Full Path of an Executable
which chromium-browser
Show the Path of your Home Directory
pwd

Setup autostart for a All Users

Open Global autostart Config for Editing*
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

* You can alternatively use mousepad editor instead of nano

Add Application to autostart File
@/usr/bin/chromium-browser https://www.rickmakes.com

Control-o to save, Control-x to exit

Logout and login to test your configuration. You can alternatively reboot the Raspberry Pi.

Setup autostart for a Specific User

Create Config Directory
mkdir -p .config/lxsession/LXDE-pi
Copy autostart Global Config File
cp /etc/xdg/lxsession/LXDE-pi/autostart .config/lxsession/LXDE-pi/
Open User autostart Config for Editing
nano .config/lxsession/LXDE-pi/autostart
Add Application to autostart File
@/usr/bin/chromium-browser https://www.rickmakes.com

Logout and login to test your configuration. You can alternatively reboot the Raspberry Pi.

Setting Up a RAM Disk on a Raspberry Pi 4

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
➡️ Purchase here: https://amzlink.to/az0ZfrkkOaE2j
UK: https://amzlink.to/az0tldMyYgHkO
CA: https://amzlink.to/az02dRfQRpSbE
ES: https://amzlink.to/az0LjL2QjxrJf (similar)
FR: https://amzlink.to/az03BF7ks0KJJ (similaire)
IT: https://amzlink.to/az0TWmA9d7fFm (simile)
DE: https://amzlink.to/az0cV12rz0zJb (ähnlich)
IN: https://amzlink.to/az0KxgOoOocos
AU: https://amzlink.to/az0cjN4OPfBBq
NL: https://amzlink.to/az0yZHtGePHqS (vergelijkbaar)

Check for Free RAM
free
Remove Swap
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
sudo update-rc.d dphys-swapfile remove
sudo apt purge dphys-swapfile
Create Mount Point
sudo mkdir -p /mnt/ramdisk
Change Permissions
sudo chown -R pi:pi /mnt/ramdisk
Create RAM Disk
sudo mount -osize=2G -t tmpfs tmpfs /mnt/ramdisk
Benchmark
cd /mnt/ramdisk
dd if=/dev/zero of=temp.txt bs=1M count=1024
dd if=temp.txt of=/dev/null bs=1M count=1024
Unmount Ram Disk
sudo umount /mnt/ramdisk
Make Ram Disk Automatic on Boot
sudo nano /etc/fstab
tmpfs /mnt/ramdisk tmpfs defaults,noatime,mode=755,uid=pi,gid=pi,size=2g 0 0

Type control-o to save and control-x to exit.

Test fstab
sudo mount -a