340
votes
Accepted
How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
Raspberry Pi OS Bookworm uses Network Manager by default so this Answer is no longer current.
This tutorial describes how to setup networking using the default network manager dhcpcd included in ...
108
votes
How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
Raspberry Pi OS Bookworm uses Network Manager by default so this Answer is no longer current.
This tutorial describes how to setup networking using the default network manager dhcpcd included in ...
41
votes
How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
For a static IP address on an Ethernet connection:
sudo nano /etc/dhcpcd.conf
Type in the following lines on the top of the file:
interface eth0
static ip_address=192.168.1.XX/24
static routers=192....
21
votes
Accepted
Should I install NOOBS or Raspbian?
To install either NOOBS or Raspberry Pi OS (previously called Raspbian) you need access to a computer with a SD Card writer; NOOBS installation requires more steps and is slower than installing ...
21
votes
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
This vulnerability can be trivially tested:
To test whether your version of sudo is vulnerable, the following command can be used:
sudoedit -s /
A vulnerable version of sudo will either prompt for ...
20
votes
Accepted
Will Raspberry Pi OS update `sudo` to address a recent security vulnerability?
While there are exceptions, generally stable releases of Linux distros backport important security fixes rather than packaging new upstream versions. They do this because the new upstream versions ...
16
votes
Standard Passwort not Accepted – Headless Setup
There is no standard user and password anymore in the new Raspberry Pi OS image.
https://www.raspberrypi.com/news/raspberry-pi-bullseye-update-april-2022/
To create one a file named userconf has to be ...
15
votes
How can I see Raspberry Pi OS Version (32bit or 64 bit)?
I believe you can check what bit size Linux kernel is using for LONG type with the following command:
pi@raspberrypi:~ $ getconf LONG_BIT
32
And it might give insight about your OS version :)
14
votes
How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
Short and foolproof method how to do this with:
Raspbian Jessie, Stretch, Buster
This will set a fixed IP and enable the ssh daemon:
Stick the sd card in your pc and find that it has two ...
13
votes
Accepted
Uninstall Python2 in Raspberry Pi
Is it safe to uninstall Python2 and only keep Python3?
To be "safe" as in "don't break anything"? Probably not. But Python2 doesn't occupy much space - about 3MB on your SD card. ...
13
votes
Accepted
Turn off screen reader in Raspberry Pi OS?
Hold down the Caps Lock key and press the S key.
It should say Speech Enabled/Disabled.
11
votes
Accepted
Run 64-bit Raspberry Pi OS beta test version
You can find the image of the 64 bit Raspberry Pi OS at
https://downloads.raspberrypi.org/raspios_arm64/images/
You can download and flash it to a SD Card like any other image of the operating ...
8
votes
Accepted
Can you use a 5V Relay Module with the Pi?
There are a number of poorly-designed relay modules on the market.
They may work with Arduino (and TTL logic) BUT ARE A LOUSY DESIGN even for that purpose and totally unsuitable for the Pi as they are ...
8
votes
How can I restore my raspberry pi sources list
These are the default entries from an unmodified image:
rpi ~$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line ...
7
votes
How to emulate Raspberry Pi in QEMU?
You can use
qemu-system-arm -machine type=raspi2 -m 1024 -kernel vmlinux -initrd initramfs
qemu-system-aarch64 -machine type=raspi3 -m 1024 -kernel vmlinux -initrd initramfs
The kernel and initramfs ...
7
votes
Accepted
Unable to ssh into headless raspberry pi?
Most of what you have done is unnecessary but should work however current Raspberry Pi OS DO NOT have a default user nor ssh enabled. The current setup process is different.
You need to boot the Pi ...
6
votes
What step am I missing in my installation schema for Raspberry Pi OS on my headless RPI 1 to enable encryption?
As far as I understand you want to have an encrypted storage for the complete operating system that can only be started if you enter a password to boot it. Please note that this only protects against ...
6
votes
Turn off screen reader in Raspberry Pi OS?
espeak is a speech synthesizer, it transforms text into sound but will not grab text from your screen and read it aloud. This is a function of screen reader. You have to find out which one you have ...
6
votes
SSH connection status indication through GPIO LED
Add this to your ~/.profile file, where <pin> refers to the pin number where the LED is connected:
if [[ -n $SSH_TTY ]] ; then
gpio mode <pin> out
trap 'gpio write <pin> 0' ...
5
votes
Accepted
How to install Oracle JDK 14 on my Rasberry Pi 4B?
Is it even possible to install orcale jdk 14 on raspbian?
The versions on the oracle site currently all appear to be x86-64 (for version 14). Oracle java is not open source, so no one else could ...
5
votes
rc.local shell script to run socket program
One comment or idea to the subject is: don't use /etc/rc.local anymore!
Debian/Raspbian/Raspberry Pi OS uses systemd instead of deprecated SysV since years as init system to start and manage services. ...
5
votes
Accepted
Will RaspiOS Lite (no Desktop environment) be able to start a software with GUI made with Tkinter?
I assume Tkinter requires a “window manager” from an OS that has a desktop environment.
To clarify a few terms that have a specific technical meaning in GNU/Linux based operating systems:
Window(ing)...
5
votes
Accepted
What am I missing in regards to "Raspberry Pi Imager"?
The options menu is hidden by default. You need to type ctrl shift X.
This blog post has some additional details about telemetry, and this post has the details about the submenu.
5
votes
I am not able to use sudo-apt upgrade whenever i try this error shows up like this how can i fix it?
Change the repository server by editing below file using
sudo nano /etc/apt/sources.list
Try another repository from the list given in
https://www.raspbian.org/RaspbianMirrors
change the below line ...
5
votes
How does Raspberry Pi OS installer know my WiFi password?
Found out myself digging through the source code:
https://github.com/raspberrypi/rpi-imager/blob/b49408781a3c347bd6f6c057c68bb34d6c06ad10/src/windows/winwlancredentials.cpp
The WinWlanCredentials ...
4
votes
Should I install NOOBS or Raspbian?
Installing using Raspbian Iso is much easier as and saves your SD card memory too, rather than using NOOBS
Download the ISO file from the Offical Website
Also download software such as Etcher, or ...
4
votes
Should I install NOOBS or Raspbian?
If you want to evaluate the different OS available for a Raspberry use NOOBS.
But as soon as you know which OS is best for you immediately install the plain OS without NOOBS. Why? If you have any ...
4
votes
How do I set up networking/WiFi/static IP address on Raspbian/Raspberry Pi OS?
First thing you should do is make your Raspberry pi's IP static. So that whenever you power up your Raspberry pi it should connect to your access point(Hotspot).
Connect to your Access point. Type ...
4
votes
Uninstall Python2 in Raspberry Pi
Type sudo apt -s remove python2 and check out the list of packages which would have to be removed. You'll most likely see that half of your system will be gone if you do remove it.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
raspberry-pi-os × 406pi-4 × 67
raspbian × 63
python × 22
pi-3b+ × 22
pi-3 × 20
networking × 20
sd-card × 18
ssh × 16
linux × 16
boot × 15
python-3 × 14
raspberry-pi-os-buster × 14
boot-issues × 13
gpio × 12
wifi × 12
software-installation × 12
64-bit × 12
raspberry-pi-os-bullseye × 12
raspbian-buster × 11
i2c × 10
headless × 10
pi-2 × 9
usb × 9
bluetooth × 8