Skip to main content
28 votes

How do I prevent the screen from going blank?

The other solutions here did not work for me (fresh Raspbian, boot to GUI). Instead, this worked: Open up /etc/lightdm/lightdm.conf using your favorite text editor (I prefer nano). Look for the line #...
Aloha's user avatar
  • 7,156
27 votes
Accepted

Running a script after an internet connection is established

As @Milliways commented here is where the power of systemd comes to play. There is no need to wait that sequential processed commands are finished. systemd is working parallel (that is what it makes a ...
Ingo's user avatar
  • 42.2k
24 votes

How can I tell if I am using the hard-float or the soft-float version of Debian/Raspbian?

The accepted answer is correct, but a really simple method is: dpkg --print-architecture If your system is using a hard float architecture, you will then see: armhf ARM Hard Float. :-)
Chris's user avatar
  • 350
23 votes

How can I determine which OS image I am running?

https://github.com/RPi-Distro/pi-gen/releases lists releases of Raspbian since 2016-05-10. To find your Raspbian distribution image release date (not the /etc/os-release information such as VERSION="...
rcpa0's user avatar
  • 351
19 votes
Accepted

Entrusted Certificates installation

CA certificates are located in /etc/ssl/certs as well as /usr/share/ca-certificates/ and in some cases /usr/local/share/certificates. In general CA certs should not be manually added to the local ...
RubberStamp's user avatar
  • 1,419
17 votes
Accepted

Build custom Raspbian OS image from source

I have since learnt that the Raspberry Pi foundation uses this repository for generating their images: https://github.com/RPi-Distro/pi-gen This can be modified to create an image as desired.
Mike Roberts's user avatar
17 votes

Prepare for ssh without a screen

Following massive botnet attacks in 2016 due to IoT devices being easily hacked with default passwords, Raspbian once again comes with SSH turned off by default (source). The fix is pretty easy, you ...
raphael's user avatar
  • 298
14 votes

"Failed to connect to non-global ctrl_ifname" when running wpa_cli reconfigure

This worked for me sudo nano /etc/network/interfaces and add the following lines auto wlan0 iface wlan0 inet manual wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf sudo nano /etc/wpa_supplicant/...
Anders B's user avatar
  • 241
10 votes

How do I prevent the screen from going blank?

To prevent the screen from going blank try adding consoleblank=0 to the end of the first line of /boot/cmdline.txt Source
Tim Penner's user avatar
10 votes

anydesk: error while loading shared libraries libbrcmglesv2.so

The following trick will do it: sudo apt install libgles-dev libegl-dev sudo ln -s /usr/lib/arm-linux-gnueabihf/libGLESv2.so /usr/lib/libbrcmGLESv2.so sudo ln -s /usr/lib/arm-linux-gnueabihf/libEGL.so ...
DL1MX's user avatar
  • 101
9 votes

How to Wake the Raspbery Pi Display Without Disabling The Screensaver

You have to define which display to use first : export DISPLAY=:0 xset s reset Hope this helps
Steve x slapps.fr's user avatar
8 votes
Accepted

How do I know if I'm on Debian, Ubuntu or Fedora?

Based on the name HASSbian, you are likely on a Debian derivative. You can get the name of the distrubution with the following command line command: cat /etc/*-release Note this will likely return ...
Steve Robillard's user avatar
7 votes
Accepted

Adding Debian Security Repository GPG key

Get the missing public keys from the Ubuntu keyserver and try if it helps: rpi ~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50 112695A0E562B32A Executing: /tmp/apt-...
Ingo's user avatar
  • 42.2k
7 votes
Accepted

What is the RaspberryPi OS equivelant of "http://packages.ubuntu.com/"?

If you are actually using RpiOS, the URLs are in /etc/sources/sources.[list,list.d]. However, redirection is often used and you won't find everything in one place, so your best bet is to observe what'...
goldilocks's user avatar
  • 59.3k
6 votes

How to add raspberry pi / raspbian distro specific build-deps to a Debian package

You're correct that you can't add a build-dependency on libraspberrypi-dev to the Debian package, since there is no such package in Debian. You can't even limit the build-dependency to an architecture ...
Stephen Kitt's user avatar
6 votes
Accepted

Unable to install mongodb 3.4 on Pi 3

From the tutorial you linked to: MongoDB only provides packages for 64-bit builds of Debian 7 and 8. Although the Pi3 has a 64-bit processor, Raspbian is only a 32-bit OS. Also, see this related ...
tlhIngan's user avatar
  • 3,372
6 votes
Accepted

Using debian repositories for Raspberry Pi

First of all update your Raspbian operating system version to get newer packages. The general answer is no, unless you know exactly what are you doing. Apparently there are different types of ...
Francesco Boi's user avatar
6 votes
Accepted

Raspberry Pi Desktop, Guest Additions: Access denied under root

8. of the preferred answer here. Not much of an explanation, yet it certainly works. # sh /media/cdrom0/VBoxLinuxAdditions.run
Alexey Orlov's user avatar
6 votes
Accepted

Up-to-date Syncthing on Raspberry Pi

Ok, so I tried the instructions for debian/ubuntu apt install at https://apt.syncthing.net and that worked. There is support for armhf architecture. Just follow the instruction to install the gpg key ...
gray's user avatar
  • 181
5 votes

Automatically uninstall all non-essential packages

While I fully agree with @goldilocks that being obsessive about the number of installed packages is pointless, there's one useful trick I want to share. All packages in the system basically fall in ...
Dmitry Grigoryev's user avatar
5 votes

How can I tell if I am using the hard-float or the soft-float version of Debian/Raspbian?

Issue the command: readelf -A $(which dpkg) On a hard-float (hf) system, you will see this as part of the output: Tag_ABI_VFP_args: VFP registers See http://www.cnx-software.com/2013/04/22/how-to-...
Will's user avatar
  • 200
5 votes
Accepted

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)

First check if there is a dpkg process running, ps afx|grep dpkg. If thats the case, kill it with sudo killall dpkg. Remove the lock file with sudo rm /var/lib/dpkg/lock That should do the trick.
MatsK's user avatar
  • 2,811
5 votes

One volume does a *full* fsck every boot, even though it's clean

I found what I believe was the cause, and it now appears to be fixed. Since this machine has a battery-backed RTC on it, fake-hwclock had been uninstalled long ago. When looking at the dump from '...
Gary Dobbins's user avatar
4 votes

Running Debian (Debian, not Raspbian) on a Raspberry Pi 3

It's not ready for general use, and far too long to describe here, but Bruce Perens has had some success in Installing the Native Debian “armhf” Architecture on Raspberry Pi 3 Instead of Raspbian.
scruss's user avatar
  • 9,067
4 votes
Accepted

Where are packages installed in Raspbian

To find the paths of files installed by a specific package, you can use dpkg. It is installed by default as part of the base system. dpkg -L postgresql-9.4 Will give you an exhaustive list.
goldilocks's user avatar
  • 59.3k
4 votes

Prepare for ssh without a screen

No router + no screen + regular Ethernet cable + RPI 2 + Raspbian Lite 2018-11-13 + Ubuntu 18.10 host First we must enable the SSH server on the Pi, which is disabled by default for security. If you ...
Ciro Santilli OurBigBook.com's user avatar
4 votes

How do I prevent the screen from going blank?

What worked for me was editing ~/.config/lxsession/LXDE-pi/autostart and commenting out the screensaver, all the other xset commands didn't seem to affect it when it is started here: @lxpanel --...
Jason Goemaat's user avatar
4 votes

"Failed to connect to non-global ctrl_ifname" when running wpa_cli reconfigure

I have a cluster of 12+ RPis that I am initializing headlessly. The same exact image works on some and fails on others with the message: Failed to connect to non-global ctrl_ifname: wlan0 error: No ...
Bruno Bronosky's user avatar
4 votes
Accepted

Which capabilities do I need to give my binary (or user) to use GPIO?

Raspbian has a special device /dev/gpiomem which grants access to the GPIO registers to members of group gpio. Given you are using a customized operating system you are probably on your own for the ...
joan's user avatar
  • 71.2k
4 votes

Entrusted Certificates installation

In Raspbian GNU/Linux 9.4 (stretch) your local CA certificates should be placed in /usr/local/share/ca-certificates to be added to /etc/ssl/certs/ca-certificates.crt. These should have a .crt ...
hfmanson's user avatar
  • 141

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