Link Search Menu Expand Document

Raspberry Pi OS

Standard configuration


  1. Download image here
  2. Enable SSH by placing a ssh file in the boot partition
  3. Login with user pi and password raspberry
  4. Change user password with passwd and root password with sudo passwd
  5. Config with sudo raspi-config
  6. Change swap size if needed - Source
    1. Stop swap sudo dphys-swapfile swapoff
    2. Edit sudo nano /etc/dphys-swapfile and change CONF_SWAPSIZE=100
    3. Setup new swap sudo dphys-swapfile setup
    4. Start swap sudo dphys-swapfile swapon
    5. Reboot

Check also common Linux setup in the Linux page!

Manage IP address / DHCP

  1. Edit sudo nano /etc/dhcpcd.conf
  2. At the bottom, uncomment and change interface eth0 and following
  3. If you want to use Cloudflare DNS: static domain_name_servers= 2606:4700:4700::1111 2606:4700:4700::1001


  1. CPU: in raspi-config
  2. SD card:
    • sudo bash -c 'printf "dtoverlay=sdhost,overclock_50=100\n" >> /boot/config.txt' - Source
    • sudo cat /sys/kernel/debug/mmc0/ios to check the clock

Date & Time

Raspberry OS manage time with timedatectl:

  • Show existing date & time: date
  • Show status timedatectl status
  • Enable NTP timedatectl set-ntp True then restart the NTP service sudo systemctl restart systemd-timesyncd.service

Software install


  1. Download docker install script curl -sSL >>
  2. Run the script sh ./
  3. Add pi user to docker group sudo usermod -aG docker pi
  4. Log-out and log-in


Install on Raspberry Pi OS

  1. Install Mono Framework sudo apt install mono-complete ca-certificates-mono
  2. Sync certificates sudo cert-sync /etc/ssl/certs/ca-certificates.crt
  3. wget the download .deb. from the Duplicati website
  4. Install sudo apt install ./duplicati*.deb or sudo dpkg -i duplicati*.deb
  5. Check for additional missing dependencies sudo apt -f install
  6. Allow Duplicati in the firewall sudo ufw allow 8200
  7. Set up Duplicati as a service
    1. Edit new file sudo nano /etc/systemd/system/duplicati.service
    2. Copy-paste the service file content:
       ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
    3. Edit file sudo nano /etc/default/duplicati
    4. Replace the last line of the initscript content: DAEMON_OPTS="--webservice-interface=any --webservice-port=8200 --portable-mode"
    5. Enable and start the Duplicati service
       sudo systemctl enable duplicati.service
       sudo systemctl daemon-reload
       sudo systemctl start duplicati.service	
       sudo systemctl status duplicati.service
  8. If wished, set-up system-wide backup:
    • Source data: /etc, /home, /root, /var excluding /var/lock/, /var/run and Temporary file
    • Options: zip-compression-level: 1 - default on Linux is 6, but this slow down the Raspberry Pi
    • If only upload, in order to help the Raspberry Pi
      • asynchronous-concurrent-upload-limit:1
      • asynchronous-upload-limit:1


Samba - Windows Share

  1. Install it sudo apt install samba samba-common-bin
  2. Create a share on root directory sudo mkdir -m 1777 /share
    • 1 is sticky bit
    • 777 is everyone permission to r/w/e
  3. Edit samba configuration sudo nano /etc/samba/smb.conf
    • Add at the bottom of the file
        Comment = share
        Path = /share
        Browseable = yes
        Writeable = Yes
        guest only = no
        create mask = 0777
        directory mask = 0777
        valid users = joe, greg
    • This set up a r/w share only for joe and greg users
    • Check all options here
  4. Add a user
    1. Create a new UNIX user sudo adduser joe
    2. Add user to samba sudo smbpasswd -a joe
  5. Add samba to ufw exception, if you have it sudo ufw allow Samba
  6. Restart samba sudo samba restart