216 votes

Why has Raspbian apparently been renamed into "Raspberry Pi OS"?

First some background: The original Pi fell uncomfortably between two stools hardware wise. A debian "armel" userland (with a Pi specific kernel) could run on the Pi but was far from taking ...
plugwash's user avatar
  • 4,352
53 votes
Accepted

Simplest way to send one-line mail out via command line using gmail?

The simplest answer to sending one-line messages via gmail is to use ssmtp Install it with the following commands: sudo apt-get update sudo apt-get install ssmtp Edit /etc/ssmtp/ssmtp.conf to look ...
SDsolar's user avatar
  • 1,859
40 votes

Why has Raspbian apparently been renamed into "Raspberry Pi OS"?

It was changed to make it easier for users to know it’s the recommended OS for the Raspberry Pi: Both our 32-bit and 64-bit operating system images have a new name: Raspberry Pi OS. As our community ...
Stephen Kitt's user avatar
32 votes
Accepted

dd command indicates not enough disk space - trying to format sd card for raspberry pi

-rw-r--r-- 1 root root 10485760 Mar 3 22:04 /dev/sdb /dev/sdb is a regular file, not a device. You must have run rm /dev/sdb at some point. It is created automatically when the device is inserted, ...
Gilles 'SO- stop being evil''s user avatar
32 votes
Accepted

How could March 30th 2024 be followed by the 1st?

Well, I get: # date -s '2024-03-30 23:58'; date -d tomorrow Sat Mar 30 23:58:00 EET 2024 Mon Apr 1 00:58:00 EEST 2024 which isn't really surprising since 24 hours after 2024-03-30 23:58 it is 2024-...
ilkkachu's user avatar
  • 139k
30 votes
Accepted

Difference between systemd and terminal starting program

Variations of "Why do things behave differently under systemd?" are a frequently asked question. Any time something runs from the CLI and not from systemd, there are a some broad categories of ...
Mark Stosberg's user avatar
23 votes

Get names of devices on the network

None of the above answers worked for me, so I began messing around with arp-scan. So, what I found worked was: arp-scan -I [WIFI INTERFACE] -l arp-scan scans your network and lists devices. -I ...
GarrukApex's user avatar
19 votes
Accepted

netcat nc: getnameinfo: Temporary failure in name resolution

nc -n -n numeric-only IP addresses, no DNS With this I've solved
user340971's user avatar
16 votes

How do I add a user to a group

You can use usermod or edit the group file directly # usermod -a -G ${group} ${user} # vi /etc/group ... wheel:x:10:root,user1,user2 ... Just remember group changes do not always propagate to active ...
Citizen Zero's user avatar
14 votes
Accepted

Created a user service. Returns error "Failed at step GROUP spawning: Operation not permitted"

I moved the service file and removed the user and group, while also changing the install target like this: /usr/lib/systemd/user/duniter.service [Unit] Description=Duniter node After=network.target ...
Folaht's user avatar
  • 1,062
14 votes
Accepted

Kill second instance of a process

pkill has a -n flag that will make it only affect the most recently started ("newest") matching process. pkill -n omxiv If the omxiv process is well behaved, there is no need to use -9. There is ...
Kusalananda's user avatar
  • 335k
13 votes
Accepted

How to kill chromium command line over ssh?

To exit Chromium gracefully use the following command: pkill -o chromium If you do not specify the "-o" ("--oldest") flag you might see the "Chromium didn't shut down correctly" pop-up next time you ...
Te Ri's user avatar
  • 303
12 votes
Accepted

How can I make Chromium start full-screen under X?

Ok, with help from this thread I got it working. Although that poster said it didn't work, I edited .config/chromium/Default/Preferences and explicitly set the window size: Before "window_placement":...
Danny Tuppeny's user avatar
12 votes

Modem Manager set bearer and connect automatically

You can register your connection using the NetworkManager instead. I dont have the same setup. I am on Ubuntu with a gsm modem. Create the connection sudo nmcli c add con-name "mycon" type gsm ...
norm's user avatar
  • 129
12 votes
Accepted

How to get the wifi working with r8188eu driver on my raspberry pi?

Edit your wpa_supplicant.conf , change the following lines: network={ ssid "noname" psk"zong4gisbest" to: network={ ssid="noname" #psk="zong4gisbest" psk=...
GAD3R's user avatar
  • 66.8k
12 votes
Accepted

What is the root password for raspbian jessie or debian 9

From the offical documentation: Linux users User management in Raspbian is done on the command line. The default user is pi, and the password is raspberry. Root user/sudo You won't normally log into ...
GAD3R's user avatar
  • 66.8k
11 votes

Get names of devices on the network

Three answers here refer to nmap but I found prefixing sudo (which none of the answers do) makes all the difference in the world: $ nmap -sP 192.168.1.0/24 Starting Nmap 7.01 ( https://nmap.org ) at ...
WinEunuuchs2Unix's user avatar
11 votes

Simplest way to send one-line mail out via command line using gmail?

ssmtp is just one of many Sendmail wrappers. All of these accept a message on standard input, and optionally a list of addresses as command-line arguments, and they all offer a binary named sendmail ...
tripleee's user avatar
  • 7,699
11 votes
Accepted

In Debian bullseye, does systemd-timesyncd check for other ntp daemons?

The systemd-timesyncd service no longer checks for conflicts itself. Instead, the conflict is handled by having systemd-timesyncd in its own package, which conflicts with other time service packages: ...
Stephen Kitt's user avatar
10 votes

How can I make Chromium start full-screen under X?

even simpler that tweaking ~/.config/chromium/Default/Preferences, just use --window-position=0,0 flag during chromium startup. see Chromium Command Line Switches for full list of available chromium ...
ster's user avatar
  • 101
10 votes
Accepted

How do I allow a script access to a file?

When creating the directory, set its group ownership to the same group as the user who will be running the script. Include the group permission g+wx. The script will then be able to create and edit ...
DopeGhoti's user avatar
  • 76.2k
9 votes
Accepted

How to resolve "mount.nfs: access denied by server" error

You can only use * on its own or in domain names. Replace it with ip/numberofbits: /home/pi/workspace 192.168.1.0/24(rw,no_subtree_check,sync,root_squash) See man exports or debian handbook Each ...
meuh's user avatar
  • 51.5k
9 votes

/dev/sda1 is mounted; will not make a filesystem here!

For raspberry pi (on raspberry pi 4b ) I used sudo umount -fl /dev/sda1 . Then I was able to format using sudo mkfs.ext4 /dev/sda1
Seyon Seyon's user avatar
9 votes

Difference between PPP, QMI and AT commands

A LTE modem can be presented to the operating system in several ways. The legacy way is to emulate a legacy analog modem: in that case, the modem will present one serial (TTY) interface (/dev/ttyUSB0),...
telcoM's user avatar
  • 97.2k
8 votes

Sudoers file messed up

If you know the root password (and it is set) you can use su to became root and edit /etc/sudoers. If your root filesystem is on SD-card, you can push it out and edit /etc/sudoers on PC or any other ...
Anton Leontiev's user avatar
8 votes
Accepted

How to set LC_ALL=en_GB.UTF-8 in Raspbian?

Edit your /etc/locale.gen then uncomment the following line: en_GB.UTF-8 UTF-8 Run: locale-gen en_GB.UTF-8 UTF-8 update-locale en_GB.UTF-8 UTF-8 export LANGUAGE=en_GB.UTF-8 export LC_ALL=en_GB.UTF-...
GAD3R's user avatar
  • 66.8k
8 votes

Simplest way to send one-line mail out via command line using gmail?

Adding to the OP own answer: When configuring ssmtp, you may also forbid or allow users from defining the From, and also override the domain; you might want to do that for several reasons including ...
Rui F Ribeiro's user avatar
8 votes

Cannot enable user service. “Failed to get D-Bus connection: Connection refused” Support

Looks like a package went missing: admin@Xroklaus:~ $ sudo apt-get install libpam-systemd And after a reboot it works again.
Folaht's user avatar
  • 1,062
8 votes
Accepted

Git Client with UI on a Debian system

git itself provides a GUI, which in Debian derivatives, including Raspbian, is packaged as git-gui. Install that, and you’ll be able to run git gui to perform most operations. You can also install ...
Stephen Kitt's user avatar
8 votes
Accepted

Why does scp seem to be failing?

The scp is not failing, but it isn't doing what you expect it to do. With scp file user@host you make a copy of file called user@host in the current directory (locally). With scp file user@host: ...
Kusalananda's user avatar
  • 335k

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