{"id":15172788,"url":"https://github.com/lukaszlapaj/raspberry-pi-cheat-sheet","last_synced_at":"2026-02-07T06:03:09.990Z","repository":{"id":93426059,"uuid":"261528585","full_name":"LukaszLapaj/raspberry-pi-cheat-sheet","owner":"LukaszLapaj","description":"List of commands, configurations and tips for Raspberry Pi and Linux beginners.","archived":false,"fork":false,"pushed_at":"2022-04-24T07:56:52.000Z","size":2679,"stargazers_count":52,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-15T14:32:27.928Z","etag":null,"topics":["cheat-sheet","cheatsheet","linux","linux-beginners","linux-cheatsheet","pi-hole","raspberry-pi","raspberry-pi-4","react"],"latest_commit_sha":null,"homepage":"https://lukaszlapaj.github.io/raspberry-pi-cheat-sheet/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukaszLapaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-05T16:41:15.000Z","updated_at":"2024-12-26T21:37:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"73f217b4-1e85-499a-b702-74d8d02fdc34","html_url":"https://github.com/LukaszLapaj/raspberry-pi-cheat-sheet","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"f8b4739bf09d7fddfd8697317f2767fdb4e0cb85"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukaszLapaj%2Fraspberry-pi-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukaszLapaj%2Fraspberry-pi-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukaszLapaj%2Fraspberry-pi-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukaszLapaj%2Fraspberry-pi-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukaszLapaj","download_url":"https://codeload.github.com/LukaszLapaj/raspberry-pi-cheat-sheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125036,"owners_count":21051758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cheat-sheet","cheatsheet","linux","linux-beginners","linux-cheatsheet","pi-hole","raspberry-pi","raspberry-pi-4","react"],"created_at":"2024-09-27T10:04:26.398Z","updated_at":"2026-02-07T06:03:09.923Z","avatar_url":"https://github.com/LukaszLapaj.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi 4 Cheat Sheet\nList of commands, configurations and tips for Raspberry Pi and Linux beginners. Also known as a quick start guide.\n\n# Table of contents\n\n* [Raspberry Pi OS / Linux](#raspberry-pi-os--linux)\n* [Pi-hole](#pi-hole)\n* [Git](#git)\n* [Node.js](#nodejs)\n* [Docker](#docker)\n* [Speedtest.net](#speedtestnet)\n\n# Raspberry Pi OS / Linux\n## Pi user default password\nDefault password for pi user is \"raspberry\"\n\n## Enable SSH\nTo enable SSH, which is disabled by default in Raspbian, just put an empty `ssh` file with no extension on `/boot` partition.\n\n## Useful configs\nGo to `/boot/config.txt` and add these entries in the end of the file.\n##### Or directly from terminal\n```\nsudo nano /boot/config.txt\n```\n### Overclocking\n##### CPU\n```\nover_voltage=6\narm_freq=2000\ncore_freq=600\n```\n\n##### GPU\n```\ngpu_freq=750\ngpu_mem=128\n```\n\n##### Override temperature limit\n```\ntemp_limit=75\n```\n\n### Enable 64-bit kernel\n```\narm_64bit=1\n```\n\n### Miscellaneous\n#### Prevent HDMI TV from turning on when Raspberry Pi is booting\n```\nhdmi_ignore_cec_init=1\n```\n\n##### Disable splash screen\n```\ndisable_splash=1\n```\n\n##### Disable Wi-Fi\n```\ndtoverlay=disable-wifi\n```\n\n##### Disable Bluetooth\n```\ndtoverlay=disable-bt\n```\n\n##### Disable camera\n```\nstart_x=0\n```\n\n## Beta / stable releases\n##### Edit `rpi-eeprom-update` file\n```\nsudo nano /etc/default/rpi-eeprom-update\n```\n##### and change content to\n```\nFIRMWARE_RELEASE_STATUS=\"beta\"\n```\n##### or\n```\nFIRMWARE_RELEASE_STATUS=\"stable\"\n```\n\n## Shutdown / Reboot\n##### Shutdown\n```\nsudo shutdown -h now\n```\n##### Reboot\n```\nsudo shutdown -r now\n```\n##### Uptime\n```\nuptime -p\n```\n##### Last boot time\n```\nuptime -s\n```\n\n## Kernel version\n##### Check kernel version and info\n```\nuname -a\n```\n\n## Working with PATH variable\n##### Print PATH variable line by line\n```\necho $PATH | tr : '\\n'.\n```\n\n##### Add to PATH\n```\nexport PATH=\u003cpath to be added\u003e:$PATH\n```\n\n## Update / Upgrade everything\n##### One-liner\n```\nsudo apt-get update -y \u0026\u0026 sudo apt-get upgrade -y \u0026\u0026 sudo apt-get dist-upgrade -y \u0026\u0026 sudo apt-get autoremove -y \u0026\u0026 sudo rpi-eeprom-update -a\n```\n## Read system logs in real-time\n##### List last 30 lines from system logs and updates in real-time\n```\ntail -f -n 30 /var/log/syslog\n```\n\n## Audio\n##### Testing audio on default output\n```\nspeaker-test -c2 -twav -l7\n```\n\n## MicroSD\n##### Benchmark\n```\nsudo apt install agnostics\n```\n```\nsh /usr/share/agnostics/sdtest.sh\n```\n\n## Chromium / Chrome\n##### Chromium screen tearing fix\n```\nsudo rm /etc/xdg/autostart/xcompmgr.desktop\n```\n\n## Read temperature\n##### One time read CPU temp\n```\necho \"$(($(\u003c/sys/class/thermal/thermal_zone0/temp)/1000))'C\"\n```\n##### One time read GPU temp\n```\nvcgencmd measure_temp\n```\n##### One time read GPU temp\n```\nwatch -n 0.1 vcgencmd measure_temp\n```\n\n## RAM\n##### Currently free memory and swap usage\n```\nfree -m\n```\n\n## Date\n##### Display date and time\n```\ndate\n```\n\n## Cron\n##### View cron tab\n```\ncrontab -e\n```\n\n##### View Cron logs\n```\ngrep CRON /var/log/syslog\n```\n\n## Repositories\n##### Add source\n```\ncurl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add - \n```\n\n##### List sources\n```\nsudo apt-key list\n```\n\n##### Remove source\n```\nsudo apt-key del \"2EBF 997C 15BD A244 B6EB  F5D8 4773 BD5E 130D 1D45\"\n```\n\n## Connectivity\n### Wi-Fi\n##### Scan for nearby Wi-Fi networks\n```\nsudo iwlist wlan0 scan\n```\n\n##### Setup Wi-Fi password through terminal\n```\nsudo nano /etc/wpa_supplicant/wpa_supplicant.conf\n```\n##### Add this entry to the file with changed SSID and Password\n```\nnetwork={\n    ssid=\"Wi-Fi SSID\"\n    psk=\"WiFI Password\"\n    key_mgmt=WPA-PSK\n}\n```\n\n### Bluetooth\n##### Scan for nearby bluetooth devices\n```\nsudo hcitool scan\n```\n\n## Network\n##### Check public IP\n```\ncurl ifconfig.me\n```\n\n# Pi-hole\n## Installation\n##### Original instruction is missing `sudo` for bash\n```\nsudo curl -sSL https://install.pi-hole.net | sudo bash\n```\n\n## Repair install\n```\npihole reconfigure\n```\n\n## Set password\n##### Set password for the dashboard or completely remove it\n```\npihole -a -p\n```\n\n## Upgrade Pi-hole\n##### Download and install the latest version\n```\npihole -up\n```\n\n## Pi-hole Crontab\n##### Edit pi-hole crontab for auto-updates\n```\nsudo nano /etc/cron.d/pihole\n```\n##### And change appropriate line to in example:\n```\n0 2 * * *   root    PATH=\"$PATH:/usr/sbin:/usr/local/bin/\" pihole updateGravity \u003e/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log\n```\n##### Which means every day at 2AM\n\n## Update Gravity\n##### Download latest blocklists\n```\npihole updateGravity\n```\n\n## Gravity update logs\n##### Read last gravity update logs or watch it in real-time.\n```\ntail -f -n 30 /var/log/pihole_updateGravity.log\n```\n\n## Set additional DNS servers\n##### Pi-hole dashboard allows to set only 1 custom DNS server\n```\nsudo nano /etc/pihole/setupVars.conf\n```\n##### Then add new servers like this\n```\nPIHOLE_DNS_1=8.8.8.8\nPIHOLE_DNS_2=2001:4860:4860:0:0:0:0:8888\nPIHOLE_DNS_3=1.1.1.1\nPIHOLE_DNS_4=2606:4700:4700::1111\nPIHOLE_DNS_5=62.179.1.60\nPIHOLE_DNS_6=62.179.1.61\nPIHOLE_DNS_7=62.179.1.62\nPIHOLE_DNS_8=62.179.1.63\n```\n##### Restart service\n```\nsudo service pihole-FTL restart\n```\n\n# Git\n## Configuration\n##### Create store for user credentials\n```\ngit config --global credential.helper store\n```\n\n##### Set account's default identity\n```\ngit config --global user.email \"lukaszlapaj@interia.pl\"\ngit config --global user.name \"Lukasz Lapaj\"\n```\n\n# Node.js\n## Installation\n##### Preinstalled Raspberry Pi OS repository version is outdated, use version below:\n```\ncurl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -\nsudo apt-get install -y nodejs\n```\n\n# Docker\n## Installation\n##### Remove old versions\n```\nsudo apt-get remove docker docker-engine docker.io containerd runc\n```\n##### Install pre-requirements\n```\nsudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common\n```\n##### Add Docker’s official GPG key\n```\ncurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n```\n##### Install docker\n```\nsudo apt-get install docker-ce docker-ce-cli containerd.io\n```\n\n# Speedtest.net\n## Installation\n##### Pre-requirements\n```\nsudo apt-get install gnupg1 apt-transport-https dirmngr\nexport INSTALL_KEY=379CE192D401AB61\nsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY\necho \"deb https://ookla.bintray.com/debian generic main\" | sudo tee  /etc/apt/sources.list.d/speedtest.list\n```\n##### Install\n```\nsudo apt-get install speedtest\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaszlapaj%2Fraspberry-pi-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukaszlapaj%2Fraspberry-pi-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaszlapaj%2Fraspberry-pi-cheat-sheet/lists"}