Skip to content

Lots of small utilities and snippets to use on a Raspberry Pi!

Notifications You must be signed in to change notification settings

david-simoes-93/UsefulPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UsefulPi

For starters, get Raspbian Lite. Flash it onto an SD card with dd (for purists) or Etcher (for new users), enable ssh (easiest way is to create a file called ssh in the boot partition of the SD card), and connect the RPi directly to your laptop with a crossed Ethernet cable (configuring the connection properly). Connect to the RPi and have fun!

ssh [email protected]
    raspberry

I suggest starting with an update, setting environment variables, and readying a session manager like Tmux, as well as Git.

sudo apt update
sudo apt upgrade
nano .bashrc
    export LANG=en_GB.UTF-8
    export LC_ALL=en_GB.UTF-8
    export LC_CTYPE=en_GB.UTF-8
source .bashrc
sudo apt install tmux git python3-venv

After changing the password, copy your RPi's ssh id to your local machine to avoid having to input password everytime

ssh-keygen
    <choose whatever settings you want or spam Return for defaults>
ssh-copy-id [email protected]
    <password>
nano ~/.ssh/config
    Host my_pi
    ForwardAgent yes
    ControlMaster auto
    Compression yes
    ControlPersist 16
    ControlPath /tmp/%r@%h-%p
    Protocol 2
    Hostname 192.168.1.100
    User pi
ssh my_pi

All schematics used were for Raspberry Pi 2B (my model), datasheet below. You can also use the following command

gpio readall

raspib-gpio_reference

About

Lots of small utilities and snippets to use on a Raspberry Pi!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages