List of commands, configurations and tips for Raspberry Pi and Linux beginners. Also known as a quick start guide.
Default password for pi user is "raspberry"
To enable SSH, which is disabled by default in Raspbian, just put an empty ssh
file with no extension on /boot
partition.
Go to /boot/config.txt
and add these entries in the end of the file.
sudo nano /boot/config.txt
over_voltage=6
arm_freq=2000
core_freq=600
gpu_freq=750
gpu_mem=128
temp_limit=75
arm_64bit=1
hdmi_ignore_cec_init=1
disable_splash=1
dtoverlay=disable-wifi
dtoverlay=disable-bt
start_x=0
sudo nano /etc/default/rpi-eeprom-update
FIRMWARE_RELEASE_STATUS="beta"
FIRMWARE_RELEASE_STATUS="stable"
sudo shutdown -h now
sudo shutdown -r now
uptime -p
uptime -s
uname -a
echo $PATH | tr : '\n'.
export PATH=<path to be added>:$PATH
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo rpi-eeprom-update -a
tail -f -n 30 /var/log/syslog
speaker-test -c2 -twav -l7
sudo apt install agnostics
sh /usr/share/agnostics/sdtest.sh
sudo rm /etc/xdg/autostart/xcompmgr.desktop
echo "$(($(</sys/class/thermal/thermal_zone0/temp)/1000))'C"
vcgencmd measure_temp
watch -n 0.1 vcgencmd measure_temp
free -m
date
crontab -e
grep CRON /var/log/syslog
curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
sudo apt-key list
sudo apt-key del "2EBF 997C 15BD A244 B6EB F5D8 4773 BD5E 130D 1D45"
sudo iwlist wlan0 scan
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
network={
ssid="Wi-Fi SSID"
psk="WiFI Password"
key_mgmt=WPA-PSK
}
sudo hcitool scan
curl ifconfig.me
sudo curl -sSL https://install.pi-hole.net | sudo bash
pihole reconfigure
pihole -a -p
pihole -up
sudo nano /etc/cron.d/pihole
0 2 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
pihole updateGravity
tail -f -n 30 /var/log/pihole_updateGravity.log
sudo nano /etc/pihole/setupVars.conf
PIHOLE_DNS_1=8.8.8.8
PIHOLE_DNS_2=2001:4860:4860:0:0:0:0:8888
PIHOLE_DNS_3=1.1.1.1
PIHOLE_DNS_4=2606:4700:4700::1111
PIHOLE_DNS_5=62.179.1.60
PIHOLE_DNS_6=62.179.1.61
PIHOLE_DNS_7=62.179.1.62
PIHOLE_DNS_8=62.179.1.63
sudo service pihole-FTL restart
git config --global credential.helper store
git config --global user.email "[email protected]"
git config --global user.name "Lukasz Lapaj"
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo apt-get install gnupg1 apt-transport-https dirmngr
export INSTALL_KEY=379CE192D401AB61
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
sudo apt-get install speedtest