Hot answers tagged

312 votes

How can I determine which OS image I am running?

Open Terminal and type: cat /etc/os-release This results in the following output on my Raspberry Pi 2... PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" NAME="Raspbian GNU/Linux" VERSION_ID="8" VERSION=...
w5m's user avatar
  • 3,221
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,106
26 votes

How can I determine which OS image I am running?

Do not look at uname -a. That just shows kernel version. To find the distribution version, run: sudo apt-get install lsb-release lsb_release -a My RPi shows: No LSB modules are available. ...
Cerin's user avatar
  • 2,221
26 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
  • 41.5k
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
  • 341
23 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
  • 340
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,379
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
16 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
  • 288
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
9 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
  • 91
8 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 Lng C's user avatar
7 votes
Accepted

Is it possible to install pcsc-lite 1.8.13 on raspbian OS?

I was able to install pcscd daemon and using pcsc-lite wrapper in NodeJS on Raspbian (Linux raspberrypi 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux) using Raspberry Pi B+...
Matteo Guarnerio's user avatar
7 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

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
  • 57.9k
6 votes
Accepted

reconfigure locale failed

Simply start sudo raspi-config and select 4 Internationalisation Options         Set up language and regional settings to match your location To remove ...
A.B.'s user avatar
  • 244
6 votes

Can I Install Debian 64 bit on RPi 3

Not unless you have a 64 bit version compiled for the ARM architecture. You can't install the AMD64 or x86-64 version as the architecture is different. Quoting from the Pi Foundation's blog post ...
Steve Robillard's user avatar
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,362
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

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
  • 41.5k
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
  • 153
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

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

Debian Jessie or Raspbian Wheezy for Raspberry Pi 2

Since Pi 2 has a ARM Cortex-A7 CPU it does not depend on the hard float modification anymore. It never depended on it. The SoC has hardware floating point registers; not all ARM processors do, and ...
goldilocks's user avatar
  • 57.9k
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,635
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

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

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