Skip to content

Support us

Authors: fire1ce, Stas Yakobov | Created: 2021-08-27 | Last update: 2023-01-18

Snippets

Enable SSH on Raspberry Pi Without a Screen

Put the micro SD card into your computer You'll have to locate the boot directory at your SD card

for example:

cd /Volumes/boot

All you have to do is create an empty file called ssh.

touch ssh

That's it. Insert the SD card to the Pi.
You should have enabled SSH at boot.

Default User and Password After Installation

User: pi
Password: raspberry

Basic Configuration

sudo raspi-config

Update OS

sudo apt-get update && sudo apt-get upgrade -y

Disable IPv6 on Raspberry Pi Os

Edit “/etc/sysctl.conf”:

sudo nano /etc/sysctl.conf

Add this to the end:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1
net.ipv6.conf.eth0.disable_ipv6 = 1

Save and close the file. Edit “/etc/rc.local”:

sudo nano /etc/rc.local

Add this to the end (but before “exit 0”):

systemctl restart procps

Save and close the file. Reboot

Show Raspberry Temperature

/opt/vc/bin/vcgencmd measure_temp

Samba for RaspberryPi

sudo apt-get update
sudo apt-get install -y samba samba-common-bin smbclient cifs-utils
sudo smbpasswd -a pi ( my-pi-samba-remote-password )
sudo nano /etc/samba/smb.conf

change:

workgroup = YOUR WINDOWS WORKGROUP NAME

add at end:

[share]
    path = /home/pi/Desktop/share
    available = yes
    valid users = pi
    read only = no
    browsable = yes
    public = yes
    writable = yes

the shared path must exist: ( if you work via desktop ( HDMI or VNC ) it is very convenient just to read or drop from/to this shared dir ) mkdir /home/pi/Desktop/share

sudo reboot

Start samba Server

sudo /usr/sbin/service smbd start

Comments