4 votes
Accepted

Systemd: DISPLAY, XAUTHORITY variables are not enough to start Graphical dialogue in Wayland

This is a demonstration for triggering a zenity dialog from within a Systemd user service that is triggered by a UDEV rule that is triggered bu inserting (adding) a USB disk ... The purpose of this ...
Raffa's user avatar
  • 32.3k
3 votes
Accepted

Phantom /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf on every boot

I have a USB card reader that creates empty block devices like that. So please check if you have a card reader, USB hub or similar device connected.
sudodus's user avatar
  • 46.4k
3 votes
Accepted

File policy-rc.d in WSL1 not found

If the file doesn't exist, just create it. Note that the steps include adding execute permission to the file, but an existing script file in /usr/sbin would likely already have execute permissions, so ...
muru's user avatar
  • 198k
3 votes
Accepted

Run kpartx on system start

Create a systemd service file, for example: /usr/lib/systemd/system/custom-jmicron.service [Unit] Description=Detects and activates partions on jMicron fakeRAID After=systemd-fsck-root.service Before=...
Luke Attard's user avatar
2 votes

How to automatically mount a hard drive at runtime in Ubuntu 22.04 server

In the comments, many solutions were presented. They can be found in questions with very specific titles. That made it difficult for me to find them. So i present my solution here. This worked for me: ...
Hyrikan's user avatar
  • 49
2 votes

Writing udev rules - wildcards?

Is it possible to use wildcard characters when writing udev rules? Yes, it's possible according to man udev: Most of the fields support shell glob pattern matching and alternate patterns. The ...
Raffa's user avatar
  • 32.3k
2 votes

What does udev rule /lib/udev/rules.d/75-net-description.rules do and can I delete it?

This has nothing to do with a server. This instructs udev to fill in the internal udev device property values ID_NET_NAME_ONBOARD, ID_NET_NAME_SLOT, ID_NET_NAME_PATH, ID_NET_NAME_MAC by examining the ...
kanehekili's user avatar
  • 6,437
1 vote

What is the point of creating a symlink in /dev direcory?

This was answered in the unix/linux stackex for anyone who stumbles on this looking for an answer. https://unix.stackexchange.com/questions/756092/whats-the-reason-to-add-a-symlink-to-dev-directory/...
Dr. Chocolate's user avatar
1 vote

How to play a mp4 file from USB flash memory everytime it attached?

Introduction The udev/udisks systems are aimed at simplifying and automating making devices/disks available to userspace application ... Yes, they can understand user defined rules via udev rules, but ...
Raffa's user avatar
  • 32.3k
1 vote

beep not working since upgrade to 20.04.1 LTS

Making beep work has been a pain for several years. I ended up with this line of code, either as an alias in ~/.bash_aliases or in a script named... well, beep. /usr/bin/aplay /usr/share/sounds/sound-...
Majal's user avatar
  • 7,711
1 vote

Qemu libusb always fails with "Operation not permitted"

When accessing the USB device in QEMU, we need to make sure that user running QEMU has the necessary permissions to access the USB device connected to host machine. I have encounter multiple issue to ...
shashank arora's user avatar
1 vote
Accepted

How to allow software access to any USB devices?

Here's the easiest solution to unlock access to your hardware: sudo chmod -R 777 /dev/bus/usb/
Violet Giraffe's user avatar

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