Skip to main content
36 votes
Accepted

How can I mount a Raspberry Pi Linux distro image?

losetup provides partition probing through -P. Using this makes mounting partitions of a full disk image such as the Raspbian SD card image very easy: losetup -P /dev/loop0 raspbian.img mkdir /mnt/...
Johan Ehnberg's user avatar
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.4k
25 votes
Accepted

Where is Raspberry Pi "wastebasket" located in the file system?

The folder trash can is in /home/pi/.local/share/Trash/. In this folder, there are two folders, files and info. /home/pi/.local/share/Trash/files/ /home/pi/.local/share/Trash/info/ Source
Mohi Rostami's user avatar
  • 4,349
22 votes
Accepted

What does each of the default groups on the raspberry pi do?

I did a little digging on this and tracked down the purpose for most of the user groups: pi User-specific group. A group is automatically created for each new user; you can ignore this....
apnorton's user avatar
  • 336
22 votes
Accepted

What Pi Model & OS version is installed

The following script is one I use including the following commands to collect relevant details. (It is called aboutpi) Download latest from https://github.com/Milliways2/Raspberry-Pi-Utilities/blob/...
Milliways's user avatar
  • 61k
20 votes
Accepted

What is /dev/vchiq in Raspberry Pi?

I'm amazed that the almighty Google doesn't have a ready answer to the question "what is VCHIQ?" I'm a longtime kernel geek and not a Broadcom employee, nor am I BCM283* expert, but here's ...
BJ Black's user avatar
  • 576
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
12 votes
Accepted

How to open a Raspberry Pi Linux port?

You likely don't have issues with iptables, unless you installed and configured it as it is not running on a default Raspbian install. Also the default install will normally open and listen on the ...
Steve Robillard's user avatar
12 votes
Accepted

What is the vcgencmd command?

vc stands for VideoCore. gen might stand for general. cmd for command. As guessed from this comment /* Initialise general command service. Returns it's interface number. This initialises the ...
Ghanima's user avatar
  • 15.9k
11 votes

Where is Raspberry Pi "wastebasket" located in the file system?

You can find it at: /home/pi/.local/share/Trash/. The trash:// prefix comes from gvfs (GNOME Virtual File System) / the XDG Spec. It does map to an actual filesystem path, but the idea is that ...
modeset's user avatar
  • 337
10 votes

Emulation on a Linux PC

Ubuntu 16.04, QEMU 2.9.0 -M raspi2, Raspbian 2016-05-27, vanilla kernel Compile QEMU 2.9.0 from source: sudo apt-get build-dep qemu-system-arm git clone --recursive git://git.qemu-project.org/qemu....
Ciro Santilli OurBigBook.com's user avatar
10 votes
Accepted

Installing equivalent of unrar package (rar)

You can unpack RAR files with 7-zip. Install that with sudo apt install p7zip p7zip-full Use 7z e my_rar_file to extract the contents. NOTE: 7z can't create rar files.
Dougie's user avatar
  • 5,353
8 votes
Accepted

I have just returned to my Raspberry Pi after a year and can't remember my login

As it turns out, you don't have to flash your RPi to recover from this. In fact, you don't need another Linux system at all, all you need is another SD card flashed with your RPi OS flavor of choice ...
Sandor Dosa's user avatar
8 votes

How to open a Raspberry Pi Linux port?

For me: sudo ufw allow 9999 works, where 9999 is the port number i want to open. Debugging: In case ufw is not installed: sudo apt-get install ufw In case ufw is not running (check with sudo ufw ...
Tonio Liebrand's user avatar
8 votes
Accepted

RaspberryPi: Auto fix root-filesystem at boot-time

After trying out the approach of creating a forcefsck file in /, fsck actually complained with the message: Please pass 'fsck.mode=force' on the kernel command line rather than creating /forcefsck ...
Adam Reis's user avatar
  • 215
8 votes

How can I tell if a manufacturer provided SD Card image has malware or spyware bundled in it?

To answer your question, you cannot guarantee any software is safe; most of us rely on the reputation of the supplier. To address the other point you made you DO NOT need a custom kernel or OS to ...
Milliways's user avatar
  • 61k
8 votes

Where is Raspberry Pi "wastebasket" located in the file system?

It has one, but it also does not... On one hand there is not concept of a trash bin/wastebasket on Linux, especially when dealing with the shell. rm deletes (more or less) for good. But on the other ...
zettymaster's user avatar
8 votes

How can I restore my raspberry pi sources list

These are the default entries from an unmodified image: rpi ~$ cat /etc/apt/sources.list deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi # Uncomment line ...
Ingo's user avatar
  • 42.4k
7 votes

Can't get a CIFS network drive to mount on boot

Update notes, seeing that this came up on Google. I suffered the same series of frustrations mounting my Airport Time Capsule. I am running Raspberry Pi 3B+ on Rasbian Stretch released 14 March 2018 ...
Jacques Gerber's user avatar
7 votes

Setting Custom Baud Rate in Minicom

You can set a baud rate on launch of minicom by doing $sudo minicom -b BAUDRATE But I haven't got that to change it to the rate you have specified. Another Option: UARTs allow for a tolerance in ...
pfl's user avatar
  • 341
7 votes
Accepted

How to disable logs?

Journald does potentially consume a lot of disk space compared to the traditional text based logging done by rsyslog. In addition, since both are enabled by default in Raspbian, there is the ...
goldilocks's user avatar
  • 59.5k
7 votes
Accepted

Is Raspbian LINUX?

Raspbian (now officially called Raspberry Pi OS) is a distribution of Linux that has been specifically tailored to the Raspberry Pi platform. It is based on Debian Linux, which is one of the base ...
John S's user avatar
  • 359
6 votes

SSH "connection refused" on Raspberry pi - cannot find why

Quoting the documentation: As of the November 2016 release, Raspbian has the SSH server disabled by default. You will have to enable it manually. To enable SSH on machines through console: ...
6 votes
Accepted

Installing Raspberry Pi Cross-Compiler

The primary target of the Ubuntu arm-linux-gnueabi cross compiler is to compile for a different architecture of the same Ubuntu release leveraging the Debian/Ubuntu multiarch capabilities. Example: ...
Matthias Lüscher's user avatar
6 votes

Create a Raspberry pi backup without dd

There are at least two options to create bootable mSD clones, depending on whether you prefer a UI or the terminal: pi clone which gets installed alongside with the Pixel desktop. the rpi-clone ...
TheDiveO's user avatar
  • 1,591
6 votes
Accepted

How to disable wireless AP on RaZberry

I managed to figure this out when I found this documentation for how to set up the Pi as an access point. But it wasn't "just" to do the setup in reverse order (i.e. disable the dnsmasq and ...
Julian's user avatar
  • 181
6 votes

Booting Alpine linux on Raspberry Pi 4

You can get the Raspberry Pi 4 to boot with Alpine Linux 3.10.2 by adding the following two files into the FAT32 (boot) partition: start4.elf and fixup4.dat. They can be obtained from the official ...
simplus's user avatar
  • 61
6 votes
Accepted

How to unlock password for Pi account

The first thing to do is ignore the tutorial. You do not need to create a new user, but you definitely do need to change the default password. As far as "undoing" the command, you need to ...
Seamus's user avatar
  • 22.6k
5 votes

Can't get a CIFS network drive to mount on boot

You can add the _netdev and comment=systemd.automount attributes in the fstab and it is all working fine for me upon reboot. I used to face the same problem on reboot. \\network_shared_location\...
Pradeep Prakash's user avatar
5 votes
Accepted

Mono on Raspberry Pi

Mono works absolutely fine on a Pi - we already have a tag and a few dozen questions on the topic. Getting started should be as straightforward as punching in: sudo apt-get update sudo apt-get ...
goobering's user avatar
  • 10.7k

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