321

Apologies - Links to raspberrypi.org/documentation are broken. In an act of monumental arrogance/incompetence all raspberrypi.org Documentation was moved/changed on 9 August, without any redirection or even a meaningful error. This has invalidated hundreds of existing Tutorials and Answers. Hopefully the links now point somewhere useful. NOTE be patient, ...


99

This tutorial describes how to setup networking using the default network manager dhcpcd included in Raspbian since 2015-05-05. It applies to the Foundation releases of Raspberry Pi OS -Bullseye, Raspberry Pi OS -Buster, Raspbian Buster, Raspbian Stretch, Raspbian Jessie and the last Raspbian Wheezy. Bullseye & Buster settings are identical to Stretch. ...


42

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.168.1.1 static domain_name_servers=192.168.1.1 sudo reboot This needs to be done for the recent Jessie update. /etc/network/interfaces should be left alone. ...


21

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 a password or display an error similar to: sudoedit: /: not a regular file A patched version of sudo will simply display a usage statement, for example: ...


20

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 Raspberry Pi OS and wastes SD Card space for the installer. Downloads has links to the latest versions of Raspberry Pi OS and installation instructions. There is also ...


20

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 usually contain unrelated changes and every additional change brings more risk of regressions. Unfortunately in most cases (again there are exceptions), the output ...


14

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 partitions; mount the smallest partition as /boot/ Open /boot/cmdline.txt and add ip=192.168.1.20 to the end of the line. Create an empty file /boot/ssh Unmount the sd ...


10

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 system. You should be able to run it on a RasPi that supports 64 bit. As far as I know, these are RPi 3B, 3B+, and 4B. There may be others, please give me a note. ...


9

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. And if you don't use it, it doesn't consume any resources. It can be annoying to have python2 as the default, but you can cure that annoyance without removing ...


6

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 physical access to an unpowered computer. As long as the computer is running it must decrypt the storage to be able to run, so it doesn't help when an intruder ...


6

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 you can find on the first partition of your SD card or extract from the OS image for a Raspian Pi. If you want a 64bit OS then you need to use qemu-system-...


5

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. rc.local is a leftover from SysV and only emulated by systemd, but with serious limitations. Have a look at Compatibility with SysV. You should use a systemd ...


5

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 ifconfig in raspberry pi's terminal and enter that IP address below, in my case it was 192.168.43.233 Start by editing the dhcpcd.conf file sudo nano /etc/...


4

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 compile it. So no, there is no way to install it.


4

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 Rufus to create a bootable drive Format your drive, select the iso and extract the ISO file to your SD card


4

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 issues with a NOOBS image and ask the community for help most of the time you will get no or very limited help. All the folks running a Raspberry in production ...


4

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) system: Software that provides the basis of a desktop GUI, which is mostly about relationships with the kernel and hardware. The predominant windowing system ...


4

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 only controllable from 5V. The schematic of a typical module is but there are a number of variants. The best option is to return them and purchase a module ...


4

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.


4

The raspberry OS (Raspbian) is 32 bits, the 64bits version with the 64bits user land is in beta right now. If you need 64 bits kernel with userland you will need other OS, like Ubuntu, Gentoo or Arc. The thing with stick with Raspian are the updates.


4

To connect to the Graphical User Interface of the Raspberry Pi you have to use VNC. There is a detailed instruction from the foundation how to use it. Have a look at VNC (Virtual Network Computing).


4

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 and uninstall or disable it. In case you got orca for a screen reader, it can be deactivated by removing /etc/xdg/autostart/orca-autostart.desktop.


4

If you’ve updated then it is already fixed. Fixed in version 1.8.27-1+deb10u3. https://www.raspberrypi.org/forums/viewtopic.php?t=301106


4

.bashrc runs on every interactive shell launch. - It does not run when the RPi is booted (unless you have "changed something"). If your app runs after booting, and before you launch an interactive bash shell (this would include an SSH connection), then that is because it is being started somewhere else. "Somewhere else" could be cron - ...


4

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.


3

SystemdNetworkd Raspbian/Raspberry Pi OS initially used Debian Networking which was replaced by dhcpcd in 2015. dhcpcd is the current default networking system. Raspbian is now based on systemd which includes systemd-networkd, a system service that manages networks. It detects and configures network devices as they appear, as well as creating virtual network ...


3

The following is simplified code which prints a single reading. Unless DHT.py is in the same directory it should be in a directory on the PYTHONPATH #!/usr/bin/env python3 # 2020-09-27 """ A Program to read the DHTXX temperature/humidity sensors. REQUIREMENTS DHT.py download "module" from http://abyz.me.uk/rpi/pigpio/...


3

While searching I came across some of Joan's code (which has been recently published or updated) - this seemed to fit the bill (even though it looked too simple). There is none of the arcane installation Adafruit required and it seems to work every time without missing readings due to timing errors. All that is needed is a simple python module and pigpiod - ...


3

It seems that that one of hundred tutorials you used is somewhat outdated. You should use the tutorial given on the official Raspberry Pi site: Setting up a Raspberry Pi as a routed wireless access point, as already suggested by @Andyroo in his answer. If you have problems with hostapd or need a some more sophisticated setup, you may have a look at Setting ...


Only top voted, non community-wiki answers of a minimum length are eligible