296

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


89

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


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


18

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


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


9

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


7

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


6

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


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

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

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

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


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

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


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


4

Ok, after some testing it seems like the watchdog module is loaded by default. To check for yourself, see if /dev/watchdog exists. This is the guide what worked for me.


4

I think you are missing a shebang in the beginning of your python script. Please write #!/usr/bin/env python for python2 or #!/usr/bin/env python3 for python3 as a first line of your .py file. Alternatively you can write your cronjob command as python /path/to/your/script.py (or python3) to specify directly what to use to run your script. If you put all the ...


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

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


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

Look at the Python traceback, I located the line that caused the error at line 271 of file /usr/share/command-not-found/CommandNotFound/db/creator.py. I opened that file and replaced the line with priority = component_priorities.get(component) and ran update-command-not-found again, and it completed without problems.


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


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