Linux Questions

1331 readers
16 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
1
20
submitted 2 years ago* (last edited 9 months ago) by [email protected] to c/[email protected]
 
 

When you delete your posts on this sub, you are deleting a solution to a potential problem that someone may be having. It is inconsiderate and can result in a ban.

2
 
 

root@cube:~# df -h / Filesystem Size Used Avail Use% Mounted on /dev/sda2 116G 41G 70G 37% /

Is it time to clean up?

3
 
 

I have followed this wiki guide: https://wiki.archlinux.org/title/Localization/Japanese#Japanese_Input, picking Fcitx5 and Mozc, but I still don't have a functioning setup after spending 3 evenings on it.

I have the IME selector in the top bar where I can select Mozc and the Mozc menus display just fine.


(Gnome doesn't let me screenshot this menu, for some reason)

  1. But as you can see, the IME name is replaced by a white rectangle, I guess it should be a Japanese character.
  2. When I try typing with Mozc activated, the popup does appear and the output text is written in Japanese characters, which means I have correctly installed the Japanese font, but the popup contains white rectangles instead of Japanese characters.

I think this means that Gnome doesn't find the Japanese font, but I couldn't find in the guide how to tell Gnome to use it.

Can anyone give me a hint?

よろしくお願いします

Edit: For some reason fcitx5-config-qt, which is the UI to control the IME, started saying it could not find shared library libKF6WindowSystem.so.6 and refused to open, even though it did open before. So I had to install the related package kwindowsystem and the UI works again now.

Edit2:

By re-reading, I understood that Gnome already comes the IMF ibus installed. So I decided to remove everything I did for the IMF fcitx5 and just install the package ibus-mozc.

After that, I was able to set Japanese (Mozc) in Gnome Settings > Keyboard > Input Sources > Add Input Source > Japanese > Japanese (Mozc) > Add.

I am back to the point where I can select Mozc in the top bar, just a bit of a different style from fcitx5, and the Hiragana symbol in the bar still looks like a white rectangle.

Now, there's progress in the candidate pop-up that does display Japanese characters. Except it is white on white and basically unreadable unless the item is selected.

This issue is mentioned here: https://wiki.archlinux.org/title/Mozc#Suggestion_window_is_blindingly_white_in_dark_mode, but the fix mentioned to set up an env var to fall back to the default ibus popup just turns my suggestions into white blocks.

The config entry to do the same documented here https://github.com/google/mozc/blob/master/docs/configurations.md#ibus-candidate-window has the same result.

I think I have to solve at least one of these issues:

  1. Have the Mozc candidate popup correctly render with white text on dark background.
  2. Have the default ibus popup correctly use the Japanese font I have installed.

One would be preferred as Mozc popup is supposed to be more helpful.

4
 
 

Hello,

I have been trying to create a system service that would run a script on shutdown (hence why I went for a system service over a user service) and landed on something like this

[Unit]
Description=Run backup script on shutdown
DefaultDependencies=no
Before=poweroff.target halt.target
Requires=network.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
ExecStop=/var/home/blackeco/scripts/backup.sh
User=blackeco
Group=blackeco

[Install]
WantedBy=poweroff.target halt.target

Unfortunately, when the shutdown occurs, systemd fails to execute the script:

backup-on-shutdown.service: Unable to locate executable '/var/home/blackeco/scripts/backup.sh': Permission denied
backup-on-shutdown.service: Failed at step EXEC spawning /var/home/blackeco/scripts/backup.sh: Permission denied

This script is correctly owned by user blackeco and permissions look fine

$ ls -la /var/home/blackeco/scripts
drwxr-xr-x. 1 blackeco blackeco 154  5 Feb. 13:50 ./
drwxr-xr-x. 1 blackeco blackeco 116  3 Feb. 13:07 ../
-rwxr-xr-x. 1 blackeco blackeco 794  4 Feb. 15:44 backup.sh*

I'm very puzzled as to why. I'm running Bluefin 41 (itself based on Fedora Silverblue 41).

5
 
 

There's a particular high level folder that I use a lot across many applications. I'd like it to behave similarly to Documents/Music/etc. in that it is visible in various applications when I go to browsing. I'm able to add my folder to the file viewer either drag/drop into the panel or through favorites but when I do things like try and open a new vault in Obsidian it only shows me the default folders. Is there a way to add a custom folder so everything can view it in the same way as Docs/Music/etc?

Edit forgot to add: I'm using Pop_OS! with Cinnamon DE

6
 
 

Is there anything that could help me memorise the argument order of the ln command?

I'll take anything from little helper phrases over shell extensions to replacements written in Rust. I only use the command occasionally, but I need a fool-proof solution. Do you have any tricks to get it right?

@linuxquestions

#AskFedi #Linux

7
 
 

Heya, I'm currently running Libreelec 12 on an Argon One RPi 4B, but hit a snag when I wanted youtube playback. The "official" youtube addon needs an API key, which just adds complexity when you don't use a google account. I'm fond of Newpipe on android and thought it would be a nice addition but there is no flatpack support. I've hit the limits of LEs atomic nature a couple times and so, wanted to check out alternatives. My requirements are:

  • working Argon One integration (remote and power signaling)

  • Kodi autoboot

  • docker/podman

  • waydroid/flatpack for Newpipe

  • ideally backed by an unrestricted Linux install for background services

Obvious contender would be OSMC, but whenever I search for setups and experiences, people just complain about all the stuff that doesn't work, and there is no listing available for what comes included in the appstore/repo.

I could also go manual with RPiOS/Debian/Ubuntu, but I would like a set-and-forget kodi-box and taking a more generic distro might complicate things.

Can I get some opinions on OSMC, as well as what you are rocking on your Kodi-setups. Thanks in advance.

8
 
 

Did it have more or less compatibility than it does now? Was it difficult to use? I started using Linux around 2016 and switched to it fully in 2020. In all my time I have only used WINE for gaming as most Windows desktop applications I have tried don't really work, not that I'd want to use many anyway. Sorry if this is a dumb question, I'm just curious to hear peoples experiences.

9
 
 

I recently installed CachyOS and went about setting up fstab as I normally would. For some reason one of my HDD's is not mounting on start as it's supposed to. The one called 'Media III' is the one that won't mount automatically. I can mount it just fine in Dolphin. None of the solutions I have tried seem to work. I'd be grateful for any help offered. Thank you!

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=2F40-2396                            /boot          vfat    defaults,umask=0077 0 2
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /              btrfs   subvol=/@,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /home          btrfs   subvol=/@home,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /root          btrfs   subvol=/@root,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /srv           btrfs   subvol=/@srv,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /var/cache     btrfs   subvol=/@cache,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /var/tmp       btrfs   subvol=/@tmp,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
UUID=b1d8992a-192f-4f8a-ba0e-fc438f740670 /var/log       btrfs   subvol=/@log,defaults,noatime,compress=zstd,space_cache=v2,commit=120 0 0
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
/dev/disk/by-uuid/3da7d8ac-60c8-4378-ba5d-c7546d5ed4ca /media/user/Games auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/20e5f943-366a-49b4-92c3-fbe013ebb010 /media/user/Media auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/ceaf9b7c-3fb5-4ec1-bf77-c3e45b452d07 /media/user/Media\040II auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/979e1457-7431-4f9c-a5b1-9ce062a6a55a /media/user/Blu-ray auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/27db861a-84ee-4091-aa61-4fda057c5da3 /media/user/Games\040II auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/eb9efe45-bf11-4f30-b9de-26456c5459e6 /media/user/More\040Files auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-uuid/a66e2ba8-d4b5-4564-9e4e-c29f34298cad /media/user/Media\040III auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-id/wwn-0x5000cca0b0e052b0-part1 /media/user/Backup auto nosuid,nodev,nofail,x-gvfs-show 0 0
10
 
 

I'm wanting to move my current Linux mint install to a bigger drive that's NVME. I tried clone zilla and did the drive to drive oprion. But I'm unable to boot to the new drive. I read up on it and it seems like I didn't do the clone correctly. I was wondering, can I back up my current system with timeshift, then just do a normal install of Linux mint on the new drive, then use timeshift to restore my backed up system to the new SSD? Or should do I need to stay with clone zilla?

11
43
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

It's been several months since I switched to Linux mint and it's been great so far. My biggest headache has been dealing with Linux audio and trying to use JACK. I have an electronic drum kit and I use Reaper for recording and using VSTs with yabridge. I managed to get this to work but it only works with ALSA. I want to have YouTube open and play along to songs and this does not work with ALSA. I've researched and experimented with JACK for way longer than I cared to. When I switch to JACK, reaper doesn't recognize my e kit, even tho ita connected with patchbay, and it also makes my default audio output a dummy output. I've gotten to the point of just going back to windows cuz this has been a nightmare. Pulse audio does what I want but the latency is too high.

Is getting a second drive with windows on it the best solution?

EDIT: I have made some progress, I switched to bitwig, uses pipewire, mapped my pads to midi notes and assigned them sounds. I got the latency good and I'm able to play with YouTube. The only problem is bitwig doesn't recognize all the zones in my cymbals. I'm not sure how to fix that, when I was using Steven slate in reaper it registered all the zones.

12
 
 

I was planning on upgrading to a NVIDIA GPU because of its superior ray-tracing capabilities. In general I don't trust proprietary software and the only proprietary applications I use reguraly are Steam and MakeMKV. Even being closed source, wouldn't we be able to tell if the NVIDIA drivers and/or software was collecting telemetry and phoning home? Are there any other concerns beyond that? Sorry if this is a dumb question.

13
5
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 
 

I want to hide the about tag in rEFInd. So, I did according to the info in config and website, which is to add a showtools line with no options.

And, nothing happens. I still see About, Shutdown, Reboot, Firmware tools in the rEFInd screen

# Default is shell,memtest,gdisk,apple_recovery,windows_recovery,mok_tool,about,hidden_tags,shutdown,reboot,firmware,fwupdate
# To completely disable scanning for all tools, provide a showtools line
# with no options.
#
#showtools shell, bootorder, gdisk, memtest, mok_tool, apple_recovery, windows_recovery, about, hidden_tags, reboot, exit, firmware, fwupdate
showtools

Eventhough the previous showtools line is a just a comment, I removed it too. And still nothing happens.

Does anybody have any idea?

I only want Shutdown, Reboot.


SOLVED

It seems like a rEFInd problem in latest version.

https://lemmy.frozeninferno.xyz/comment/16257252

Looks like I have to edit and rebuild it myself. Unfortunately, I'm not really that familiar with building packages myself.

Guess, I have to wait it out.

14
12
submitted 1 month ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 
 

Heya, I'm currently on Opensuse Slowroll with KDE-Wayland and came from Leap for more recent updates. Even if Slowroll promises monthly big updates, the rolling snapshots still seem to replace most of the system weekly with ~4GB downloads. I don't like that. I looked at Fedora, but found that I would like .deb-compatibility, if I'm already switching. Debian stable is as stale as Leap from what I can see. Debian testing is in flux, and people don't agree on stability. Kubuntu has built-in reliance on snaps, which makes me hesitant to switch. I'm currently trying Mint-Xfce with post-install KDE, it doesn't seem to have wayland support.

Are there any good daily-drivers with sane updates and good support, I should try? I'm not willing to do proper Arch yet, never mind that that would be bleeding-edge-rolling. ^_^

Edit: I'm now on TuxedoOS, it's snapless Ubuntu with official KDE-wayland support. It handles Nvidia automatically and only corrupted it's home-partition once, so far.

15
 
 

Like where I could buy my songs drm-free and keep them forever.

16
13
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

I've got this command in a bash script:

TEST=$(curl -o /dev/null -s -k -w "%{http_code}" -u "${USERNAME}:${PASSWORD}" "${URL}/dashboard/")
echo "${TEST}" #debug

When the script runs, the output is "000".

When I run the same curl command from the shell, the output is "200" (which is correct, since the URL is valid).

I verified that the USERNAME, PASSWORD, and URL vars are being passed to the subshell.

I'd appreciate it if you could point out what I'm doing wrong here. :)

UPDATE: This has been solved.

17
 
 

So I got a 180hz monitor and installed Sway (Garuda Linux) in my new machine, the only problem I have is that I can unlock my FPS for the PC as a whole using the display software that comes with Garuda, but not specifically for games or full screen programs. I don't want to use Firefox at 180hz, I just want my games to run at the maximum refresh rate my monitor can handle.

Thanks.

18
10
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

I'm looking to buy a drawing tablet, specifically the XP-Pen Deco L to use with Krita. I'm running Fedora KDE with Wayland on my desktop and was wondering if anyone has experience using drawing tablets on Wayland, and if all works as it should. I checked the digi-mend driver and it supports this tablet and XP-Pen themselves publish a driver on their website, but from a quick search it seems to be X11 based.

Followup: The tablet arrived today and after plugging it in it got recognized and started working immediately! All buttons are mappable in Plasmas system settings, both on the pen and the tablet itself. This is with Fedora kernel 6.11.10-200.fc40.x86_64

19
 
 

Problem: new kernels not showing up in boot menu

I can install new kernels, and I see them in /boot/efi/{PARITION_UUID}, but they don't show up in the systemd-boot menu.

Data

Normally, Fedora shows the 3 latest kernels (plus a recovery kernel) in the boot menu. I only see up to 6.11.6 in the systemd-boot menu. On the /boot partition, I see much newer kernel versions (both labeled fc40 and fc41)

➜  ~ sudo ls /boot/efi/808f2c9ae4464f1ab2f0a7d367da1b30 -l
total 20
drwx------. 2 root root 4096 Jul  4 19:25 0-rescue
drwx------. 2 root root 4096 Nov  8 12:42 6.11.6-200.fc40.x86_64
drwx------. 2 root root 4096 Nov 18 17:57 6.11.7-200.fc40.x86_64
drwx------. 2 root root 4096 Nov 12 16:47 6.11.7-300.fc41.x86_64
drwx------. 2 root root 4096 Nov 20 10:10 6.11.8-300.fc41.x86_64
➜  ~ sudo ls /boot/efi/808f2c9ae4464f1ab2f0a7d367da1b30/6.11.8-300.fc41.x86_64 -l 
total 72484
-rwx------. 1 root root 57917440 Nov 20 10:10 initrd
-rwx------. 1 root root 16304488 Nov 20 10:10 linux

Systemd-boot

I started with other distros on this disk before I settled on Fedora. Since I was happy with systemd-boot and its automatic discovery of boot entries, I chose to use systemd-boot when I installed Fedora. I know that Grub is the default bootloader and manager for Fedora, but I have systemd-boot. It's an option in the installer.

Major OS upgrades and rolling back the rollback

Last weekend I upgraded from Fedora 40 KDE Spin to Fedora 41. On the next Monday morning, screensharing in Edge Browser had stopped working, so I rolled back to a Fedora 40 snapshot with BTRFS Assistant. This turned out to be an issue in the latest Edge version, not in the underlying OS, so I rolled back the rollback and went to the Monday evening snapshot, then upgraded my packages.

Ever since, I'm not seeing new Kernels in the systemd-boot menu. Any idea how I can fix this, short of a fresh install of Fedora 41 KDE?

20
 
 

I had some missing libraries like libmtp, after extracting the tar, what do I do with the folders? do I need to extract to a specific area? can I move them after installing?

21
 
 

Hello. I want to write an Udev rule to change my laptops's EasyEffects profile whenever I connect a speaker set or headphones to the 3.5mm jack. The concept is relatively simple: when I connect something to the jack, I want it to fire a script that will set this Dconf setting:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'None'

And when I unplug the speakers/headphones, it'll set this:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'Laptop'

("None" and "Laptop" are EasyEffects profiles).

Unfortunately, I haven't been able to find useful info, since almost all of the results I found online refer to Bluetooth or USB devices. I checked within /sys/class/sound/ and /dev/ for a file where I could query the status of the jack (something like "connected"/"disconnected") but I can't find something relevant. I have a similar rule that changes GNOME's font scaling when I plug my HDMI display, and it does that by running this script:

function monitorConnected () {
  statuses=$(cat /sys/class/drm/card1-HDMI-A-{1,2,3,4}/status 2>/dev/null)    
  for status in ${statuses[@]}                                                
  do                                                                          
        [[ ${status} == "connected" ]] && return 0                              
  done                                                                        
  return 1                                                                    
  }

So I thought that I could do something similar for the 3.5mm jack. Or maybe there's another method? Any hints? My OS is Fedora 41 and I'm using Pipewire, btw.

22
8
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 
 

If I want to install and use a different desktop environment than came with my distro, what (if any) problems can I expect to encounter?

I currently use Debian with GNOME and I want an optimised system for music production and graphic design. As far as I can tell, the two main options I have are to make some tweaks to my current system's configuration (rt kernel, swap use, cpu behaviour and others) or to switch to a dedicated media distro which is configured already. The creative distros that I like the look of don't use GNOME though.

Which option will be easiest for me?

23
 
 

I've seen these pop up before but didn't have a specific use for them, as I do all my own containers on a couple docker host VMs using compose. But for someone getting into it, it would seem like the way to go, maybe as a Docker-within-Docker container, or a full distro.

I know Portainer does a bit of this with it's Stacks, where you can choose some containers to deploy a pre-built app, as does some NAS software like Unraid. I'm looking for something that has a fairly well maintained stockpile of pre-configured containers that it can deploy (maybe after editing) and manage. I'm sure I've seen github projects that do this but I'll be arsed if I seem to be able to find anything right now. Bonus points if it deploys a Traefik proxy for its applications and configures them to it.

I imagine there's a dozen projects like this that the community can point me at.

24
 
 

Partially related to my previous post here, but instead of support this is more of a general question.

(tl;dr: AntiX boots fine on the aforementioned laptop, while other distros need a custom kernel argument in order to boot, why does this happen?)

While messing around and trying to get Linux to boot on my friend's laptop, I noticed that AntiX specifically booted without needing to mess with any kernel arguments (unlike Fedora [and forks], and presumably others too [I only checked Fedora-based distros since that's what I was trying to install]). What's different with AntiX compared to (at least) Fedora to where Fedora has issues booting while AntiX boots perfectly fine?

I kinda want to guess that AntiX uses a different bootloader, but then why would a kernel argument be the thing that fixes Fedora?

25
 
 

I tried to install Aurora on a friend's Acer laptop, but ran into this issue which was resolved in the same thread, and the temporary fix works the same. When I tried to modify the grub config to apply the permanent fix, /etc/default didn't hold anything relating to grub. Where is the config file for grub, and is it editable?

view more: next ›