53 votes
Accepted

How can I use an external USB sound-card and set it as default?

Background It's amazing to see how much effort has been put in to trying to resolve various sound related problems for the Raspberry Pi. Apparently it must be the weakest spot for new users to ...
not2qubit's user avatar
  • 1,407
48 votes
Accepted

Setting up a Raspberry Pi as an access point - the easy way

━━━ Setting up an access point ━━━ We are talking about an access point together with an ethernet port eth0. If you want an access point together with a wlan0 client connection to another wifi network ...
Ingo's user avatar
  • 42.1k
36 votes
Accepted

Workaround for a wifi bridge on a Raspberry Pi with proxy arp

Proxy arp is a way to build a pseudo bridge that is working on OSI layer 3 but it behaves like a real layer 2 bridge. So it is a good way to workaround the lack of WDS support on Raspberry Pi. There ...
Ingo's user avatar
  • 42.1k
33 votes
Accepted

Why does the SHA256 of Raspbian file image never correspond to the one indicated on the website?

The SHA-256 checksum on the downloads page is for the ZIP file, not the IMG file.
Dirk's user avatar
  • 3,551
26 votes
Accepted

pi1, armv6, how to disable armhf packages?

Both Raspbian and Debian pride themselves in suppporting the "armhf" architecture. Of course, they mean two different things ! Raspbian "armhf": ARMv6 + VFPv2 Debian "armhf": ARMv7 Your scenario is ...
flakeshake's user avatar
  • 6,235
25 votes
Accepted

How to permanently disable swap on Raspbian Stretch Lite

To avoid an error on startup regarding dphys service, try to disable swap on this way: sudo dphys-swapfile swapoff sudo dphys-swapfile uninstall sudo update-rc.d dphys-swapfile remove sudo apt purge ...
Feriman's user avatar
  • 376
25 votes
Accepted

How to identify a Pi

On at least a Pi 3, you can turn the green (SD card activity) LED to be on constantly with the following command (as root): echo 1 > /sys/class/leds/led0/brightness Now that Pi will have the ...
stevieb's user avatar
  • 1,466
24 votes
Accepted

ifup and ifdown do not work on raspbian stretch lite 2017-09-07-raspbian-stretch-lite.img

What does work instead of sudo ifup wlan0 sudo ifdown wlan0 is sudo ifconfig wlan0 up sudo ifconfig wlan0 down
saraf's user avatar
  • 571
20 votes
Accepted

How can I use an init ramdisk (initramfs) on boot up Raspberry Pi?

I have found that there is a setup in rpi ~$ cat /etc/default/raspberrypi-kernel # Defaults for raspberrypi-kernel # Uncomment the following line to enable generation of # /boot/initrd.img-KVER ...
Ingo's user avatar
  • 42.1k
17 votes
Accepted

Enabling SSH by default on Raspbian Stretch

The easiest way to do this for a headless setup is to create a file named ssh on the boot partition of the SD card. This will enable the SSH daemon immediately after first boot and will be deleted. ...
88weighed's user avatar
  • 905
17 votes

Enabling SSH by default on Raspbian Stretch

Have you created a file in the /Boot directory called "ssh" with no extension? or setting from sudo raspi-config then -> interfacing options -> enable ssh EDIT
Dr.Rabbit's user avatar
  • 1,018
16 votes
Accepted

How to INVERT SCROLLING DIRECTION on trackpad in Raspbian Stretch?

I've figured it out! The scrolling direction is determined by libinput - see here. Navigate to the 40-libinput.conf file in /usr/share/X11/xorg.conf.d and change the first section as follows: # ...
nu-bo's user avatar
  • 391
16 votes
Accepted

Why is hostapd masked after installation?

Just from the installation with sudo apt install hostapd there is nothing configured for the service. hostapd has no default setup so it doesn't make sense to start the service without it. To avoid ...
Ingo's user avatar
  • 42.1k
15 votes
Accepted

Access point as WiFi router/repeater with additional WiFi-dongle

It is known that the Raspberry Pi can spawn an access point and connect as client to another wifi network simultaneously with its on board wifi chip. How to do that you can look at Access point as ...
Ingo's user avatar
  • 42.1k
14 votes
Accepted

What is the latest sources.list for Raspbian?

It seems my problem has been a temporary one. Some weeks after posting my original question, the settings just started working. I did not actually do anything. I guess "stretch" was not really ready ...
Guenther Brunthaler's user avatar
14 votes

How to identify a Pi

Shut one of them down. There should be recognizable behavior from the green light, which will eventually go out. Then put a label on that pi with its ipname. Then you can start that one up again. ...
NomadMaker's user avatar
  • 1,560
12 votes

Configuring `unattended-upgrades` on Raspbian Stretch

The most important lines are: "origin=Raspbian,codename=${distro_codename},label=Raspbian"; "origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation"; Here is the ...
Peter Nowee's user avatar
12 votes

How to permanently disable swap on Raspbian Stretch Lite

I used to use sudo update-rc.d dphys-swapfile remove I haven't tried recently so I'll assume that no longer works as you have tried using it. Perhaps try CONF_SWAPSIZE=0 in /etc/dphys-swapfile
joan's user avatar
  • 71.1k
12 votes
Accepted

How to setup an unprotected Ad Hoc (IBSS) Network and if possible with WPA encryption?

There are mainly three setups to have a peer to peer network: unprotected ad-hoc interface by configuring the WiFi device unprotected ad-hoc interface using wpa_supplicant (Recommended) Only with ...
Ingo's user avatar
  • 42.1k
11 votes

Raspberry Pi Custom SSH/Normal Login Message

This is, as mentioned, the contents of the /etc/motd file. The actual file shown (/run/motd.dynamic) is constructed using the scripts in /etc/update-motd.d and the file /etc/motd. So for static ...
patthoyts's user avatar
  • 501
10 votes
Accepted

Automatically Create Hotspot if no Network is Available

The following can also easily be installed from a github repository that I created here . First we need to change over completely to systemd (which might be the future anyway), as Ingo has explained ...
jake's user avatar
  • 1,347
9 votes

How do I restart sshd on raspbian?

Same issue with both stretch and jessie. Until you enable the service with: systemctl enable ssh you cannot refer to the service as "sshd". Once the service is enabled, no problem, you can even ...
Caleb Carroll's user avatar
8 votes

What have you done to make generic TFT touchscreen display work?

I've bought the same display. Here are my successful attempts to make it work on a RaspberryPi 3 B+ running Raspbian Stretch. 1. First attempt, involving specific device tree specification and ...
mouviciel's user avatar
  • 181
8 votes

Switching to a different wireless network when it is available

If you simply call wpa_cli without specifying the Interface, by default your raspbian stretch uses the interface 'p2p-dev-wlan0', as I can see in the output you posted. Try the manual switching with ...
oh.dae.su's user avatar
  • 934
8 votes

Problem on installing Pyaudio on Raspberry Pi

If your system is not "broken", you may be successful with this sequence: 1. sudo apt-get update 2. sudo apt-get upgrade 3. sudo apt-get install portaudio19-dev 4. sudo pip install pyaudio In ...
Seamus's user avatar
  • 22k
8 votes
Accepted

cron not executing python3

As is typical with crontab issues. The environment is not the same as your user or even a sudo/root shell , and env python3 may not return anything (env simply searches through Instead you should ...
crasic's user avatar
  • 3,003
8 votes

How to install Raspbian Stretch on Raspberry Pi 4?

You cannot install Raspbian Stretch on a Raspberry Pi 4B. The RPi 4B does not support it as you can read in the release notes in section from 2019-06-20. A RPi 4B is only supported by Raspbian Buster.
Ingo's user avatar
  • 42.1k
7 votes

Raspberry Pi Crashes when I try to change screen resolution

I know this is an older question now, but I was having this exact same issue with my Raspberry Pi 3 B+. I found out that the issue for me was caused by having GL Driver set to "Full KMS". Once I set ...
Pliskin's user avatar
  • 71
7 votes

Setting up a Raspberry Pi as an access point - the easy way

An even EASIER way of setting up a Raspberry Pi as an AP is to use the pi-ap Github repo which automates configuration of a Pi 3B+/4 into an AP. Connect the Pi to a free port in your Internet-...
F1Linux's user avatar
  • 1,667
7 votes
Accepted

Unable to detect cam module in raspberry pi 3 b+

You need to run sudo raspi-config and enable the camera from there before you can use it. The main menu should have an "Interfacing Options" submenu (probably #5). From there the option to ...
goldilocks's user avatar
  • 58.9k

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