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/...
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 ...
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
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....
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/...
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 ...
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.
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 ...
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 ...
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 ...
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....
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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\...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
linux × 893raspbian × 273
pi-3 × 86
networking × 76
kernel × 66
python × 59
usb × 42
ubuntu × 42
debian × 41
pi-2 × 37
ssh × 37
boot × 36
wifi × 35
pi-4 × 34
gpio × 25
sd-card × 25
cross-compilation × 22
software-installation × 21
bash × 21
arm × 19
hardware × 17
raspberry-pi-os × 17
archlinux × 17
ethernet × 16
python-3 × 16