286

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 Raspbian Buster, Raspbian Stretch, Raspbian Jessie and the last Raspbian Wheezy. Buster settings are identical to Stretch. How to setup Raspbian Networking If you are using an Ethernet ...


81

Setup a Static IP Address Questions about setting Static IP Address are among the most common on this site. There are very many tutorials (many wrong, obsolete or incomplete). Disclaimer Before proceeding I feel obliged to state that setting up a static address is NOT recommended. Telecommunications Engineers do not do this. Static IP Addresses can ...


38

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


15

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


13

Short and foolproof method how to do this with: Raspbian Jessie, Stretch, Buster This will set a fixed IP and enable the ssh daemon: Open /boot/cmdline.txt and add ip=192.168.1.20 to the end of the line. Create an empty file /boot/ssh Boot your Raspberry Pi On Linux start ssh pi@192.168.1.20 the password is raspberry. Use Putty on Windows to connect via ...


9

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, }


8

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


6

First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained here: apt update && apt -y full-upgrade systemctl mask networking.service dhcpcd.service sudo mv /etc/network/interfaces /etc/network/interfaces~ sed -i '1i resolvconf=NO' /etc/resolvconf.conf systemctl enable systemd-networkd.service ...


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

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


4

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

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.


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

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


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

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


4

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)


4

Did you make the wpa_supplicant file on Windows? Because, from the error messages, it looks as if it was it was saved as "rtf" and not as plain text. And if that's what happened, the pi will barf on it. Rtf files have lots of formatting information embedded in them which is no use at all for linux configuration. Try writing the file on your windows machine ...


3

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


3

I have tested it with a fresh flashed Raspbian Buster Light on a RPi 4B: $ sudo apt-get install bind9 bind9utils dnsutils Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: dns-root-data libirs161 python3-ply Suggested packages: bind9-doc ufw rblcheck python-ply-...


3

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


3

Create /etc/modprobe.d/brcm-blacklist.conf with the following content: blacklist brcmfmac blacklist brcmutil Reboot, and WiFi should be disabled. You may find errors in the system log depending on what method you are using to configure the network. You can choose to correct those, or not, of course.


3

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


3

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


3

You just needed to run apt-get update and retry your command to install your desired package. The issue was that one of the dependencies (libpango in this case) which needed to be installed along with your desired package had been upgraded by your distro maintainer and that your (outdated) local list of packages made apt resolve the dependency with the old ...


3

They key is this message debug1: Authentications that can continue: publickey The server is configured to accept only publickey authentication. If you can't connect a display to the Pi and login locally, you can always download a life Linux system and boot it on your PC. Anyway, look at the sshd_config on the SD card and make sure that password ...


3

You don't tell us why do you want to compile OpenCV from source so I assume it is not necessary. We have seen many problems on this site doing it. You also try to compile for python version 2. This is nowadays only used for backward compatibility. It is strongly recommended to use up to date python3. OpenCV is part of the default raspbian repository. Just ...


3

Relative to where you started, here are some issues that I think were part of your problem (and have been written into your updated question now): The router was providing multiple DNS servers. Although your internal server was listed first, this is not a binding order of search on the router. See, e.g., https://superuser.com/questions/1177175/change-dns-...


3

A Debian repository is mainly made for a specific distribution and even for a specific version of it. For Raspbian/Debian you will find different repositories e.g. for version Jessie (or old-old-stable), Stretch (or old-stable) , Buster (or stable) and so on. The packages in the repository are pre compiled for the version and the installable executable ...


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