Skip to content

Instantly share code, notes, and snippets.

@siklodi-mariusz
Last active October 9, 2023 08:10
Show Gist options
  • Save siklodi-mariusz/ead17cfc5e80f85762906e577dabebc1 to your computer and use it in GitHub Desktop.
Save siklodi-mariusz/ead17cfc5e80f85762906e577dabebc1 to your computer and use it in GitHub Desktop.
Some useful RaspberryPI I use

RaspberryPI configuration

Make bootable card

https://www.raspberrypi.org/software/

Default user: pi with password: raspberry

Update and Upgrade packages

  1. Update system package list

     sudo apt update
    
  2. Upgrade packages

     sudo apt full-upgrade
    
  3. (Optional) Clear apt cache

     sudo apt clean
    

Install misc packages

  • Install on-screen keyboard

      sudo apt install matchbox-keyboard
    

Enable SSH access

sudo systemctl enable ssh
sudo systemctl start ssh

To check if ssh is running

sudo systemctl status ssh

To disable SSH password authentication open sshd_config

sudo nano /etc/ssh/sshd_config

Edit the following properties as follows

PasswordAuthentication no
ChallengeResponseAuthentication no
UsePAM no

Restart ssh service

sudo systemctl restart ssh

Install pi-hole

https://github.com/pi-hole/pi-hole/#one-step-automated-install

Install Oh-My-Zsh

sudo apt install zsh

Follow instructions from here https://ohmyz.sh/#install

Update pi-hole

pihole -up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment