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. ...


40

Raspbian is managing hardware with overlays. In /boot/overlays/README you will find: Name: pi3-disable-wifi Info: Disable Pi3 onboard WiFi Load: dtoverlay=pi3-disable-wifi Params: <None> I suggest you just add dtoverlay=pi3-disable-wifi to /boot/config.txt to disable wifi. I have tested it with a Raspberry Pi 4B. It is also valid for Pi4. ...


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 ...


13

Sometimes the actual Raspberry Pi Foundation forum is worth a visit. There is an issue affecting the Raspberry Pi 4 and certain USB devices. How to tell if your drive is affected, and what to do about it: STICKY: If you have a Raspberry Pi 4 and are getting bad speeds transferring data to/from USB3.0 SSDs, read this ... We have seen reports of ...


10

Dirty Fix: Add a line of 'rpi': 10, to the end of list component_priorities in /usr/share/command-not-found/CommandNotFound/db/creator.py. Result should like this: component_priorities = { 'main': 120, 'universe': 100, 'contrib': 80, 'restricted': 60, 'non-free': 40, 'multiverse': 20, 'rpi': 10, }


10

One of those days ... although the pi was recently booted, it seems that it needed a reboot - probably after some update? When I was troubleshooting, I had ls /lib/modules/$(uname -r) ls: cannot access '/lib/modules/4.19.93-v7+': No such file or directory After more research, I figured maybe a reboot was required, after that I had # uname -r 4.19.97-v7+ #...


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

kernel.img is 32-bit for BCM2835 (RPi1 & Zero) kernel7.img is 32-bit for BCM2836 (RPi2) and BCM2837 (RPi3) kernel7l.img is 32-bit for BCM2711 (RPi4) kernel8.img is 64-bit for BCM2837 (RPi3) or BCM2711 (RPi4)


9

The simplest way would be to use nano. It comes as standard on the majority of Linux distributions. To use it, simply type nano followed by the name/path to the file you want to edit. For example, to create and edit a new file called test, type nano test To edit an existing file, such as fstab, type nano /etc/fstab Or navigate into the etc directory (cd /...


8

I had this problem as well and got around it by manually building and installing the fbturbo module from source after which I had my desktops back When I tried to to the install the missing package via the command line: sudo apt-get install xserver-xorg-video-fbturbo This blew up due to the dependency on xorg-video-abi-23. Looking around with apt-cache I ...


8

First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained here: # deinstall classic networking sudo -Es # if not already done apt --autoremove purge ifupdown dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog apt-mark hold ifupdown dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog raspberrypi-net-mods ...


8

I found the solution. Buster comes with two iptables flavours > $ update-alternatives --list iptables /usr/sbin/iptables-legacy /usr/sbin/iptables-nft By default it uses iptables-nft. When changes to iptables-legacy sudo update-alternatives --set iptables /usr/sbin/iptables-legacy it works with UFW without problems after reboot.


8

I would try to change the domain to .lan. This is possibly an issue with mDNS (Avahi, Bonjour, etc) that use the .local domain. It could be that Windows tries to resolve the .local domain using mDNS. The other possibility is that the responses are rejected due to lack of DNSSec. Try to use nslookup router.local and nslookup router.local 192.168.2.10 on ...


8

To check if the watchdog is available, you can run wdctl which gives you a bit more info than just looking at /dev/watchdog. To start using the watchdog, you can still use the old watchdog daemon mentioned in the other answers, but since 2012 systemd has had built in support for watchdogs that doesn't require installing anything else and offers better ...


5

Use rfkill block wifi and reboot to disable and rfkill unblock wifi and reboot to enable it again.


5

You should use OpenCV from the default Raspbian Repository. It is tested and fits best into the Raspbian distribution without errors (I hope :). On Buster you will find with: rpi ~$ apt list python*opencv* Listing... Done python-opencv-apps/testing 1.12.0-2 all python-opencv/testing 3.2.0+dfsg-6 armhf python3-opencv-apps/testing 1.12.0-2 all python3-opencv/...


5

I had the same issue. My root cause was that I forgot to update: /etc/apt/sources.list.d/raspi.list from stretch to buster sudo apt update reported an additional ~ 200 packages that could be upgraded. sudo apt full-upgrade completed without error, but alas, still no X server, still no display found in the Xorg.0.log. But I was now able to install xserver-...


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/...


5

The syntax for HDMI related settings in config.txt on a Raspberry Pi 4B appears to have changed, likely because the Pi4B has two HDMI outputs (numbered 0 and 1 in technical documentation, and somewhat confusingly 1 & 2 otherwise). Every time I would run the Pi4B headlessly(?), the RealVNC session would use a low resolution filling just a small part of ...


5

Raspbian will NEVER upgrade to a different OS. NOOBS, on the other hand always installs the latest version (or the copy included with NOOBS) - I might add that very few experienced users of this site use NOOBS . If you don't have a backup, you can install any released version of Raspbian. Pick one from https://downloads.raspberrypi.org/raspbian/images/ ...


5

apt-cache search only searches for packages by name and description, not what they contain. For your intended use case you probably should use apt-file: $ sudo apt install -y apt-file ... $ sudo apt-file update ... $ apt-file search autoreconf autoconf: /usr/bin/autoreconf autoconf: /usr/share/man/man1/autoreconf.1.gz autoconf-dickey: /usr/bin/autoreconf-...


5

See Prevent dhcpcd from configuring an interface in How to set up networking/WiFi Add denyinterfaces eth1 to the end of /etc/dhcpcd.conf (but above any other added interface lines). NOTE eth1 may result in unpredictable results, as there will be a race condition in the enumeration of the interfaces. You should use Predictable Network Interface Names


5

To answer my own question, this is an lxpanel plugin called lxplug-network and the source code is found here: https://github.com/raspberrypi-ui/lxplug-network It is based on 'Network Configurator' (a.k.a. dhcpcd-ui) by Roy Marples which is found here: https://roy.marples.name/projects/dhcpcd-ui


4

Apparently ssmtp is deprecated in Buster I managed to get mail working by installing msmtp and msmtp-mta msmtp --configure XXXXXXXX.raspberry.pi@gmail.com outputs a suggested configuration file. I copied this to /etc/msmtprc to create a system default and edited to include the gmail password. It is also necessary to add an account default The following ...


4

The command you need to enter is cd ~ The $ is just a common prompt from the shell that it is awaiting a command, it is not meant to be typed as part of the command.


4

There a different ways you could achieve what you want. Method 1 – use systemd-networkd If you want to use systemd just follow step 1 and step 3 of this tutorial. Just omit this command systemctl enable wpa_supplicant@wlan0, so wpa_supplicant won't bring your interface up at boot. If you want to start it manually run sudo systemctl start wpa_supplicant@...


4

Alternatively, install the package containing those fonts: sudo apt install -y fonts-freefont-ttf (Found by searching the list of font-related packages on debian.org) Note: For earlier versions of Raspbian, the package name was different: sudo apt install -y ttf-freefont


4

There are many quirks with creating the virtual interface ap0. You have to follow exactly a sequence, otherwise it won't work. If other applications bind to the wifi port it cannot be set. create a virtual interface ap0 for the access point start access point daemon hostapd using interface ap0 start wpa_supplicant for wifi client using interface wlan0 Many ...


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