Hot answers tagged

315 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,251
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,116
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
  • 41.9k
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,389
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
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
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 Lng C'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

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.9k
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
  • 58.5k
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,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
  • 153
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,726
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 can I connect to a USB serial device?

Download pySerial (https://pypi.python.org/pypi/pyserial) wget http://pypi.python.org/packages/source/p/pyserial/pyserial-2.7.tar.gz?raw=true -O pyserial-2.7.tar.gz tar -xzf pyserial-2.7.tar.gz cd ...
VeggieVampire's user avatar
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

noobs reset password Debian

Put your (micro)SD card into a computer Copy cmdline.txt to cmdline.txt.bak (just to make a backup) Open cmdline.txt and add this to the end of the line: init=/bin/sh Put SD card back into Raspberry ...
rav_kr's user avatar
  • 446
4 votes

How to make a distribution bootable on raspberry pi / package migration from 32-bit x86 Debian install?

As I mentioned in chat, this project isn't possible as is. As with an engine in a vehicle, computer processors can very dramatically. A boat, plane, train, and car all have an engine, designed to ...
Jacobm001's user avatar
  • 11.9k

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