1
9

I am trying to run Polytoria I cannot for the life of me figure out how to let it access xdg-settings so it can access my browser and read which game I play, their desktop client is broken so you have to choose the game you want to play in the browser

2
5

I have both Wireguard and Tailscale set up on my server (Debian 12). I was trying to make sure it was using Wireguard for DNS so I tried adding deny_keys or allow_keys to /etc/resolvconf.conf but whenever I do that the Wireguard service fails to start. This happens whether I try to deny tailscale, the local network adapter, or just allow Wireguard. However it does still update resolv.conf with the Wireguard DNS server so if I try to start the service a second time it will start successfully. I also tried removing nss-lookup.target from the Wants and After section of the Wireguard systemd unit but that made no difference. I did eventually solve the issue another way as it turns out Tailscale has a built in option to prevent it from overwriting resolv.conf, but I'd still like to know why editing resolvconf.conf breaks Wireguard.

3
10
submitted 4 days ago* (last edited 4 days ago) by artiman@piefed.social to c/linuxquestions@lemmy.zip

So when I try to run it I get this error how do I solve this I updated arch Linux on Friday yesterday so it's probably not about driver updates

❯ flatpak run io.github.alainm23.planify  
pci id for fd 18: 10de:2484, driver (null)  
kmsro: driver missing  
4
11

I recently was given an old Acer Chromebook R11 from someone who was clearing out their stuff and didn't want it. As is right now it works just fine but I thought that I would put linux on it. I know how to do so via chrultrabook but I'm just curious if putting NixOS on it would be a smart idea. It has 16gb of internal storage that is soldered in so I can't really upgrade it. I do however have a 2TB dedicated server which it would be connected to at all times. But with NixOS Generations and nix store I'm wondering if that 16gb would fill up quick and make impractical for a chromebook.

The chromebook is a touch screen and can flip the monitor around also so It'd be nice to also use as a virtual second screen via remmina or whatever for my main laptop.

Would NixOS be a decent choice or should I consider a different distro?

thanks.

5
5

(let's see if that works)

So basically what I'm wondering is if it is possible to run multiple instances of the fontserver (fontconfig?) in parallel for the same desktop session. Then being able to fire up programs connected to either fontserver.

This is Linux so I sorta just assume it is, but better to invoke the Power of Ackshually.

What for, one would ask?

Well, the example use case I'm seeing this for is actually to aid in anti-browser fingerprinting.

As a distro user, one ends up with hundreds of fonts installed. Math, doramas, emojis... Noto by itself adds 80 entries to my LO listing.

Normally that's not an issue, but when in eg.: Firefox, it is. Having enabled browser.use_document_fonts, all those fonts are visible for the browser even with font-visibility measures applied. Have tested it with online benchmarks such as amiunique and browserleaks. What's worse, "use document fonts" is a global setting instead of a site-specific setting, so I can't really fine-tune a session for that -- tho I've already filed Mozilla about that.

But I don't want to uninstall the fonts, I'm using them! I just want for spies to not see them.

So I thought.

Fonts are controlled by a fontserver ("fontconfig").

image

What if I could have a second fontserver running in my session? One that has a more "normal" set of fonts enabled, such as say the baseline set + language pack fonts for Fedora or Ubuntu, and then Roboto or Noto for good measure. Then I could launch my browser such that it connects to that second fontserver instance...

# example potential code, donut steel
env FONTSERVER_SOCKET=unix:///var/run/fontserver2.sock firefox

And bam! fingerprinters wont be able to see beyond, while I can freely alt-tab to LO and my "handwritten" document.

So yeah. Correct me that this can't be done. Let's do it.

6
17

I'm confused about this output. What does this mean? Especially "We have a space info key for a block group that doesn't exist". Also, it says errors found?

7
16

So, I recently wanted to try Linux on my main Desktop after liking it on my Chromebook. So I bought a second SSD and put it on that so i wouldn't risk messing up anything with Windows. But I really like Fedora Linux on my desktop, and I want to wipe windows off my other SSD without removing all of my data on it. So that I can have the TB of storage on my Desktop again.
Is this possible to do from the Linux OS? Or do I need to boot it up with Windows for this?
And if so, how do I do it?
Thanks! :)

8
6

I am trying to compile uboot so it looks for env vars on the sd card. I can get it to compile and load on a le potato SBC but if I place a filesystem on the card afterward, it breaks uboot. If I put it on before uboot, uboot breaks it. I have already tried shifting the beginning of the first partition later on the sd card but it just keeps happening. GPT vs MBR doesn’t seem to matter either.

What am I doing wrong? I can’t seem to find this last piece of the puzzle anywhere. They seem like they are at least partially overwriting eachother but I haven’t been able to stop that from happening.

9
1
submitted 1 week ago* (last edited 1 week ago) by OmegaSunkey@ani.social to c/linuxquestions@lemmy.zip

I've read a lot of the documentation regarding the transparent compression on BTRFS and what can it do, but I cannot accurately know how much actual space I am using on my disk. Using du -sh /home or df -h or btrfs filesystem df return the same result of ~33gb used, but when using compsize /home I get 23G of usage and 30G uncompressed in the TOTAL row.

So, what I don't understand:

  • What is the actual disk usage? Which tool is reporting the correct size?
  • Will something happen if I get the uncompressed size to the size of my partition, but not the compressed size? Will the OS not let me write anymore despite having enough space?

Solved: if i mount the / btrfs subvol: sudo mkdir /mnt/nvmeroot && mount -o subvol=/ /dev/nvme0n1p15 /mnt/nvmeroot and use compsize /mnt/nvmeroot/ on it it reports the same size as the last commands and shows me the effectiveness of compression.

10
19

This is a screenshot of a random application that appeared in my gnome software application. I used the software installer to install OBS (I don't usually use flatpak, I had to because OBS without flatpak is missing features i needed) and a few days later had an update, after the update, this appeared in the software section. Guessing its a glitch, but I'm worried its some type of malicious software and would like to know where to find its files to remove it/fix the glitch. I'm running Arch Linux, gnome DE, and only have OBS and a few plugins installed through flat hub.

so far Ive tried

-removing all flatpak apps.

-finding a .desktop file or bin folder with a placeholder name

-reinstalling gnome software

-I cant find any info online about anyone having a similar issue.

-running journalctl to find any jobs that i don't recognize

I'm at a loss, more info/logs/screenshots can be provided if necessary.

Thank you in advanced for your help!

11
7
submitted 3 weeks ago* (last edited 3 weeks ago) by vaionko@sopuli.xyz to c/linuxquestions@lemmy.zip

I just got a new Radeon RX 6700 XT. I connected my screens to it, and 2 display like they should but mh Asus PG278Q only flickers the backlight. Same problem in text mode, but the UEFI setup shows up fine. In KDE display configuration it doesn't recognise the model, and shows 640x480 as the only supported resolution. Same in my Arch install and live Fedora. I have tried both DP ports on the GPU and different cables. The screen only has a DP port. What more can I try?

Edit: it seems the low resolution text mode grub uses works, but when it switches to the higher res mode the picture goes away

Another edit: same problem with an R9 280 I have. So it seems something about the AMD drivers doesn't like my monitor.

More editing: the older card lets me set the screen to 1024x768 which actually displays. So it seems to be an EDID problem. Now to figure out how to tell KDE what resolutions it supports.

The last edit: I found an EDID file for this monitor online and added it in the kernel command arguments. Monitor works with the full resolution, but only 120Hz instead of the full 144.

12
45

I installed vlc-git from the Chaotic-AUR and I am speechless.

13
14

I have a usb drive I want to take with me but I want to add a password for basic safety reasons, & it needs to be readable by many computers. Any recommendations?

14
7
submitted 3 weeks ago* (last edited 3 weeks ago) by HotsauceHurricane@lemmy.world to c/linuxquestions@lemmy.zip

i am trying to get fish to be the default shell for lxterm. but running

sudo chsh -s /usr/bin/fish

returns

Changing shell for root. chsh: Shell not changed.

15
9
submitted 1 month ago* (last edited 1 month ago) by helloworld@lemmy.ml to c/linuxquestions@lemmy.zip

I think there are multiple things one could do to achieve this, but am uncertain which way to go:

  • if you use systemd create a systemd service I guess? How to create systemd service that runs a (python) script on startup?
  • some files similar to .bashrc always run on system startup/boot?; use this if you are less fancy / have no systemd
16
24
submitted 1 month ago* (last edited 1 month ago) by helloworld@lemmy.ml to c/linuxquestions@lemmy.zip

Using a shell script, can I watch a folder and block program execution until a file in a certain folder changes?

17
15
submitted 1 month ago* (last edited 1 month ago) by ProfessorHoover@infosec.pub to c/linuxquestions@lemmy.zip

2nd Edit: the problem was not the PSU but either the motherboard or the CPU. I installed a USB expansion card with an internal USB 3 header that has narrowed down the issue. I am aware that early Ryzen chips had issues with USB reliability, so maybe the Trixie update installed a new chipset driver that caused this. Either way I'm saving for an upgrade so hopefully won't be an issue too much longer.

Edit: I've now tested in other OSes and had the same issue. So it's probably just a poorly timed hardware issue.

Since I updated my desktop to Debian 13, my external SSDs (Over 1TB) are only detected by gnome-disks as "no media". They also bring down my other USB drives if I leave the unrecognised SSDs plugged in while trying to make other transfers. All these drives work in Debian 12 on my laptop.

I've checked dmesg for my external SSD:

`[ 1801.737164] usb 1-4: new high-speed USB device number 7 using xhci_hcd

[ 1801.909543] usb 1-4: New USB device found, idVendor=152d, idProduct=0580, bcdDevice= 2.14

[ 1801.909549] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[ 1801.909551] usb 1-4: Product: PX10

[ 1801.909552] usb 1-4: Manufacturer: SP

[ 1801.909554] usb 1-4: SerialNumber: 2405185321200000000D

[ 1801.946647] scsi host41: uas

[ 1801.947031] scsi 41:0:0:0: Direct-Access SP PX10 0214 PQ: 0 ANSI: 6

[ 1801.949657] sd 41:0:0:0: Attached scsi generic sg7 type 0

[ 1803.041153] usb 2-3: USB disconnect, device number 2

[ 1813.106975] sd 41:0:0:0: [sdg] Unit Not Ready

[ 1813.106981] sd 41:0:0:0: [sdg] Sense Key : Hardware Error [current]

[ 1813.106984] sd 41:0:0:0: [sdg] ASC=0x44 <>ASCQ=0x81

[ 1813.107229] sd 41:0:0:0: [sdg] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK

[ 1813.107232] sd 41:0:0:0: [sdg] Sense Key : Hardware Error [current]

[ 1813.107235] sd 41:0:0:0: [sdg] ASC=0x44 <>ASCQ=0x81

[ 1813.107549] sd 41:0:0:0: [sdg] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK

[ 1813.107552] sd 41:0:0:0: [sdg] Sense Key : Hardware Error [current]

[ 1813.107555] sd 41:0:0:0: [sdg] ASC=0x44 <>ASCQ=0x81

[ 1813.107631] sd 41:0:0:0: [sdg] 0 512-byte logical blocks: (0 B/0 B)

[ 1813.107634] sd 41:0:0:0: [sdg] 0-byte physical blocks

[ 1813.107872] sd 41:0:0:0: [sdg] Test WP failed, assume Write Enabled

[ 1813.107952] sd 41:0:0:0: [sdg] Asking for cache data failed

[ 1813.107955] sd 41:0:0:0: [sdg] Assuming drive cache: write through

[ 1813.108195] sd 41:0:0:0: [sdg] Preferred minimum I/O size 4096 bytes not a multiple of physical block size (0 bytes)

[ 1813.108198] sd 41:0:0:0: [sdg] Optimal transfer size 33553920 bytes not a multiple of physical block size (0 bytes)

[ 1813.108560] sd 41:0:0:0: [sdg] Attached SCSI disk`

I'd assume the issue is corruption in my SSD, but it's happening with two different drives.

18
8
Yazi on antix. (lemmy.zip)

Been using yazi for a while, started using antix linux & I can't get. ANY previews working. No images, no pdf or text files. Almost everything else works but no previews. I also can't get it to use micro as the text editor. (I just found a plug-in for that so I'll see what I can do) Any help with previews would be amazing 🫶

19
14
submitted 1 month ago* (last edited 1 month ago) by promitheas@programming.dev to c/linuxquestions@lemmy.zip

Hello everyone!

As the title says, I am trying to set up email alerts on my server whenever there is a successful ssh connection (will also setup the same for failed connections with fail2ban later). I already have the email script created and it works (I use it to monitor the directories containing all of these security scripts for changes so that I also get notified if anything critical is modified or deleted in those directories).

I also created a very basic user called test for - you guessed it - testing purposes. This user doesn't have a home directory or anything like that.

Here are the relevant scripts:

$ cat /usr/local/bin/login-alert.sh
#!/bin/bash

# Sends alerts only for real terminals not cron jobs
if [[ -n "$SSH_CONNECTION" ]]; then
	USERNAME=$(whoami)
	IP=$(echo $SSH_CONNECTION | awk '{print $1}')
	HOST=$(hostname)
	DATETIME=$(date)
	/usr/local/bin/semail \
		-s "[CRITICAL] SSH Login to $HOST" \
	 	-b "Login detected:\n\nUser: $USERNAME\nIP: $IP\nTime: $DATETIME\nTTY: $SSH_TTY"
fi

$ cat /usr/local/bin/semail
#!/bin/bash

# Default values
TO="my_email@here.com"
FROM="notifications@my_server.com"
SUBJECT=""
BODY=""
BODY_FILE=""


# Help function
show_help() {
cat <<EOF
Usage: $0 [OPTIONS]

Send a test email using Postfix.

Options:
  -t, --to EMAIL            Recipient email address (default: $TO)
  -s, --subject TEXT        Subject of the email (required)
  -b, --body TEXT           Body text of the email
  -f, --body-file FILE      File to read body text from (overrides --body)
  -h, --help                Show this help message

If no body or body-file is provided, you will be prompted to enter the body interactively.

Examples:
  $0 -s "Test subject" -b "Hello\nThis is a test"
  $0 --subject "Test" --body-file message.txt
EOF
}

# Parse arguments
while [[ "$#" -gt 0 ]]; do
	case "$1" in
		-t|--to)
			TO="$2"
			shift 2
			;;
		-s|--subject)
			SUBJECT="$2"
			shift 2
			;;
		-b|--body)
			BODY="$2"
			shift 2
			;;
		-f|--body-file)
			BODY_FILE="$2"
			shift 2
			;;
		-h|--help)
			show_help
			exit 0
			;;
		*)
			echo "Unknown option: $1"
			show_help
			exit 1
			;;
	esac
done

# Validate required parameters
if [[ -z "$SUBJECT" ]]; then
	echo "Error: --subject is required."
	show_help
	exit 1
fi

# Handle body input
if [[ -n "$BODY_FILE" ]]; then
	if [[ ! -f "$BODY_FILE" ]]; then
		echo "Error: Body file '$BODY_FILE' does not exist."
		exit 1
	fi
	BODY=$(<"$BODY_FILE")
elif [[ -z "$BODY" ]]; then
	echo "Enter the body of the email (end with Ctrl-D):"
	BODY=$(</dev/stdin)
fi

# Send email
{
	echo "From: $FROM"
	echo "To: $TO"
	echo "Subject: $SUBJECT"
	echo "Content-Type: text/plain; charset=UTF-8"
	echo
	printf "%b\n" "$BODY"
} | /usr/sbin/sendmail -t -f "$FROM"

# /usr/sbin/sendmail -f "$FROM" "$TO" <<EOF
# From: $FROM
# To: $TO
# Subject: $SUBJECT

# $BODY
# EOF

echo "Email sent to $TO"

And here is the output I see when I login as the test user:

ssh test@my_server.com
test@my_server.com's password:
dir=/ failed: exit code 2
dir=/ failed: exit code 2
Linux my_server 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Fri Aug 15 07:08:24 2025 from my_ip_address
Could not chdir to home directory /home/test: No such file or directory

I don't get email alerts for any user, neither the test user nor my regular admin user.

Here is my /etc/pam.d/sshd relevant lines:

# Standard Un*x session setup and teardown.
account optional pam_exec.so seteuid dir=/ /usr/local/bin/login_notify.sh
@include common-session

I also tried with session instead of account and without the dir=/ part.

Can anyone help me troubleshoot this please?

Thanks in advance. Of course if you need any more info I'll do my best to provide it :)

20
4
submitted 1 month ago* (last edited 1 month ago) by HotsauceHurricane@lemmy.world to c/linuxquestions@lemmy.zip

Recently started using Antix Linux & it's great so far. What I need to know is if there is a power menu I can use in place of the power off command that runs when I press my power button. It is placed inconveniently above the backspace key & I shut down my computer on accident all the time. (I have a terrible condition called "Ham Hands") I know I can write in # Normal handling. /usr/sbin/pm-suspend At the end of the code at /etc/acpi/powerbtn-acpi-support.sh but I don't want to suspend the computer either. Just a pop up menu.

if [ -x /etc/acpi/powerbtn.sh ] ; then # Compatibility with old config script from acpid package /etc/acpi/powerbtn.sh elif [ -x /etc/acpi/powerbtn.sh.dpkg-bak ] ; then # Compatibility with old config script from acpid package # which is still around because it was changed by the admin /etc/acpi/powerbtn.sh.dpkg-bak else # Normal handling. /sbin/shutdown -h -P now "Power button pressed" fi

21
16

Does anyone know what could be causing this and maybe a potential fix?

I'm using Manjaro Linux with KDE.

22
19

I am running Fedora KDE. I generally use 150% scaling. When I am using game streaming like Boosteroid or GeForce Now, I want to set that to 100%.

Is there an easy way to configure a "toggle" for this? Is there a shell command for example that I could turn into a script?

23
14

So, I've had this idea for awhile. I want to host a mobile os (maybe nix or something touch compatible) on my server and remote into it from various phones. The smoothest experience I've used was the Microsoft remote desktop where you can set a shortcut on your home screen, get in there real fast, and touch controls work great. But windows is spyware, so I'm passed all that. Played around with kasm and other things. Just curious to see if anyone has tried to "live" on a remote desktop before and has suggestions or a guide. Thanks!

24
7

I'm trying to get a certain program to require sudo to use it. Is this possible?

25
3
submitted 1 month ago* (last edited 1 month ago) by cacti@ani.social to c/linuxquestions@lemmy.zip

slstatus, dwlb, dwl

I've been trying to do this for the last few hours to no avail.

I can't start dwlb via dwl's autostart patch, as it doesn't work properly that way for some reason (current workspace isn't highlighted, window title doesn't appear etc.), so I have to do dwl -s 'dwlb' to start it.

I edited this script for it to use slstatus instead of someblocks, but it doesn't work either as in dwlb doesn't even start (I tried using both the autostart patch and the -s flag):

#!/bin/sh

dwlb &
sleep 0.1
slstatus -s | dwlb -status-stdin all

Directly using the command dwl -s 'dwlb && slstatus -s | dwlb -status-stdin all' did actually work once, but stopped working for some reason after that (I didn't recompile anything, I just rebooted and it stopped working. dwlb does start but the status bar doesn't work.).

Any help is greatly appreciated.

view more: next ›

Linux Questions

2685 readers
9 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 2 years ago
MODERATORS