/r/linuxquestions

Photograph via snooOG

A subreddit for asking question about Linux and all things pertaining to it.

This subreddit is for any question pertaining to Linux from beginner to advanced. For general Linux news and info, see /r/linux.

Please try to only make helpful replies to questions. This is not the place for low effort joke answers.

If you find a solution to your problem by other means, please edit and add the steps you used to solve your problem to the bottom of the original post, and edit the flair on your post to [Resolved] (available in the drop-down list).

/r/linuxquestions

282,838 Subscribers

1

Best Text Editor

Hello, i have used VS Codium for a while, but it breaks lately on my laptop, What is the best text editor for coding, With syntax highlighting, autocompletion, git integration and file explorer, if possible idc if is a terminal-based one, i just need one that complains with the mentioned features, or at least most of those

0 Comments
2024/12/01
15:23 UTC

1

Change Ubuntu drive

I'm dualbooting Ubuntu and Windows 11. I have Windows 11 on my M.2 SSD and it boots pretty fast, but Ununtu doesn't and I think I have it in my HDD. How do I check and how do I change its position?

2 Comments
2024/12/01
14:53 UTC

1

Debian on xserve 2008 help

Trying to install latest Debian netinstall on an old Apple Xserve. I see there is now a boot32 on the 64 bit so grub boots. After this I can click graphical install or cli install. Either one I pick the USB indicator LED starts blinking, the keyboard and mouse disconnect, and the screen never changes. It seems to just freeze at this point in the grub menu. nomodeset and any other random grub arguments don't seem to help. Not sure what could cause it to freeze at this point but the USB activity indicator keeps going. Is there any verbose thing for grub to see more?

What can I do?

0 Comments
2024/12/01
14:37 UTC

0

X Server Only Supports 24-bit Color Depth

I am creating a custom window manager using Xlib and have been trying to create a semi-transparent window. However, I have come to find out that the X server running on my laptop (I’m testing in Xephyr) only supports a color depth of 24. I read that this was for compatibility but I’m wondering how I would be able to request a depth of 32. The laptop I’m using is fairly new so I don’t believe it would be a hardware limitation but everywhere I look it says that the main reason for the lack of support is due to hardware.

1 Comment
2024/12/01
14:28 UTC

1

Problems with tzdata package

Hello everyone, hope you're all doing good.

So, I have few problems recently with my linux system, which are the following:

- Whenever I start my linux computer, my drive is in read-only, forcing me to do a mount command to put it back in rw mode. This obviously cause lots of service to not start, forcing me to start them manually.
- I can't do an apt upgrade as whenever I try to do so, the tzdata package asks me my timezone, just for it to print an error and cancel the upgrade. (showing it below)
- I can't start php8.2-fpm process, when doing a journalctl -xeu or a systemctl status I don't have any additional info.

My guess is the tzdata package is causing all those problems. When I'm doing an apt upgrade and select my timezone, this is what the console prints me:
# apt upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done

The following packages will be upgraded:
tzdata
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/305 kB of archives.
After this operation, 922 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

(Reading database ... 248114 files and directories currently installed.)
Preparing to unpack .../tzdata_2024b-0+deb11u1_all.deb ...
Unpacking tzdata (2024b-0+deb11u1) over (2024a-0+deb12u1) ...
dpkg: error processing archive /var/cache/apt/archives/tzdata_2024b-0+deb11u1_all.deb (--unpack):
unable to open '/usr/share/zoneinfo/posix/Africa/Abidjan.dpkg-new': No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/tzdata_2024b-0+deb11u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

When doing a timedatectl list-timezones I get a list of all existing timezones, with the first one being Africa/Abidjan, which makes me guess that not only this file is the problem, but all the ones (or the links at least) in this folder are broken.

I tried to do an apt install --reinstall tzdata, still the same problem. Even tried an apt clean and apt update, still no luck. Same by following most of what I could find on internet.

If someone knows a way to fix that package it would be greatly appreciated.

Thanks a lot for reading this post!

6 Comments
2024/12/01
13:39 UTC

1

Nobara vs RegataOS?

I have nobara installed, and now read about regataos - a distribution based on opensuse, also focused on gaming/performance. Who can talk about the comparison of nobara vs regata in terms of capabilities, performance, etc. for weak processors? Nobara is a great distribution but still a bit heavy for my laptop. On the other hand, I will install a new distribution only if there is a benefit

0 Comments
2024/12/01
13:07 UTC

1

Steins;Gate text extractor for linux?

Fluff: Seeming as windows 10 is losing support in October next year I want to be able to run everything I was running on Windows on Linux

I can't seem to get the shiion textractor to work anymore, it did work for me the last time I had linux installed (Mint 18? -- I'm using 22 now), does anyone know any text extractors that work on this game or how to get the shiion one to work correctly? It just doesn't detect the game when I try to run it with wine.

0 Comments
2024/12/01
12:49 UTC

1

Looking for a simple cataloguing app

I want to catalog a whole bunch of storage boxes as I can never find anything when I need to.

Would consider desktop app (or web app so long as its self-hosted)

My needs are pretty simple, an item title, a photo, maybe a weblink and ability to say which box its in

Google isnt coming up with much, any suggestions?

8 Comments
2024/12/01
12:31 UTC

1

Can't access UEFI Firmware Settings

Some previous context:
I had OpenSuse and Windows installed initially. Then I installed Fedora and realized something's wrong because I couldn't boot into Windows. Since I didn't use Windows form months, I just removed the Windows partition. Now, for work, I need to install Windows.

Problem 1:

I can't boot into my UEFI Firmware Settings. When I start my laptop, I get the option of entering 4 different Fedora OSes (one of them being the Fedora rescue) and the 5th option being UEFI Firmware Settings. When I click on Firmware Settings, I just see the ACER logo. I tried spam clicking F2 to access it another way but same result.

When I booted into Fedora Rescue, here's what I saw:
Failed to mount boot-efi.mount Dependency failed for local-fs.target - local file system
Dependency failed fir selinux-autorelabel-mark.service - mark the need to relabel after reboot
Failed to mount systemd-bibfmt.service - set additional binary formats

You are in emergency mode. After logging jn, type 'journalctl -xb' to view system logs, 'systemctl reboot' to reboot or 'exit' to continue bootup. Cannot open access to console. The root account is locked. See sulogin(8) man page for more details.
Press Enter to continue

When I press Enter, it just keeps saying that root account is locked and Press Enter to Continue.

Problem 2:

I thought reinstalling grub might help. So I deleted grub:
sudo dnf remove grub2-efi-x64 shim grub2-tools grub2-tools-minimal

Then reinstalled it:
sudo dnf install grub2-efi-x64 shim grub2-tools grub2-tools-minimal

And tried to reinstall the GRUB Bootloader to my EFI parttion:
sudo grub2-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=fedora --recheck

However, attempting to reinstall to the EFI partition results in this error:
thedarkpapa@fedora:/etc/default$ sudo grub2-install --directory=/usr/lib/grub/x86_64-efi --efi-directory=/boot/efi --bootloader-id=fedora grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exist. Please specify --target or --directory.

Upon further inspection, I realized that not only does the file not exist, the folder "grub" itself doesn't exist.

Thoughts on my 1 Solution (would it work):
Delete all partitions and hopefully I'm greeted with the BIOS Menu where I can select my USB stick containing a different OS).

lsblk output:

Model: WDC PC SN530 SDBPNPZ-1T00-1014 (nvme)
Disk /dev/nvme0n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags

2 1049kB 1075MB 1074MB ext4 bls_boot

4 1075MB 3222MB 2147MB linux-swap(v1) swap

1 498GB 499GB 537MB fat32 EFI System Partition boot, esp

3 499GB 1024GB 525GB btrfs

Model: Unknown (unknown)

Disk /dev/zram0: 7649MB

Sector size (logical/physical): 4096B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 7649MB 7649MB linux-swap(v1)

PC Details:

OS: Fedora Linux 40 (Workstation Edition)
Host: Nitro AN515-44 V1.04
Kernel: 6.11.10-200.fc40.x86_64
Packages: 2029 (rpm), 13 (flatpak)
Shell: bash 5.2.26
DE: GNOME 46.6
WM: Mutter
WM Theme: Adwaita
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: gnome-terminal
CPU: AMD Ryzen 5 4600H with Radeon Gra
GPU: AMD ATI Radeon Vega Series / Rade
GPU: NVIDIA GeForce GTX 1650 Mobile /
Memory: 3855MiB / 7295MiB

I've been stuck at trying to fix this for the past 3 days just working hours on end trying to fix this. Literally any help would be appreciated.

0 Comments
2024/12/01
11:43 UTC

0

I messed up

Recently downloaded xubuntu on my virtual machine. I forgot to allocate video memory. When I typed reboot on my terminal my system troze, saw some display images as well. So I did something stupid, I turned off the power. Now when I turn on my pc my monitor is completely black.

9 Comments
2024/12/01
10:37 UTC

1

I messed up

Recently downloaded xubuntu on my virtual machine. I forgot to allocate video memory. When I typed reboot on my terminal, my system froze, saw some display images as well. So I did something stupid, I turned off the power. Now when I turn on my pc my monitor is completely black.

6 Comments
2024/12/01
10:36 UTC

1

How to fix Zathuras encoding for pdfs epubs etc?

Tried googling this but couldnt find anything.

Zathura shows äs, ös and so forth in garbled mess for me. I know its not the epub file since I looked at it on my phone on its epub reader and it read fine on it. As such its issue with zathura. The documentation for the software is rather abysmall and I couldnt find anything on manpages or their website related to this.

Whats the setting to fix this?

0 Comments
2024/12/01
10:23 UTC

10

Is it possible to make few folders common between users?

I am trying to set up two user accounts, each for different desktop environments. I would like to have some shared folders between them, for example - downloads, photos, music. Is it possible to do that?

The options I have explored are creating a group and making a separate shared home folder. However, this creates 3 folders in /home for user1, user2 and group (which is shared).

Can I have same downloads, music, photos folder between user1 and user2?

15 Comments
2024/12/01
10:17 UTC

1

NetworkManager-dispatcher script check if it is a WiFi/Ethernet connection change

How to differentiate a real WiFi/Ethernet connection change from a WireGuard interface change in a NetworkManager-dispatcher script? I was checking if $2 is "up" and $CONNECTION_ID = "example_wifi_network_name" but a WireGuard interface change also gives similar values for ($2, $CONNECTION_ID) such as => ("up", "tun0") or ("up", "wg0-mullvad").

As for the XY Problem dilemma, let me explain why I am actually checking for this. I have a laptop and connect to different WiFi and Ethernet networks. In one of these networks, I could not make Mullvad's WireGuard protocol work even though I tried every result I could find on the internet. So what I am currently doing is to manually change tunnel protocol option of Mullvad between OpenVPN and Wireguard in the GUI. I couldn't find it last time but as it turns out this option is available to change in Mullvad CLI so I can automate this switch process by using the command $ mullvad relay set tunnel-protocol openvpn. I already had a NetworkManager-dispatcher script to login to this network automatically as this network requires me to login every day and I wanted to incorporate this protocol switch to this script but I didn't see any related variables in $ man NetworkManager-dispatcher.

0 Comments
2024/12/01
09:08 UTC

2

Can anyone explain me why my laptop restarts every time I shut down?

Hello, I installed a Linux distribution (like ubuntu) on my laptop and found that it restarted every time I shut down. When surfing the internet, I found a solution that can stop the restarting behavior. I used laptop-mode-tools found in ubuntu repository and it never restarted again. But my curiousness didn’t end. I wanted to solve the problem by myself and uninstalled the laptop-mode-tools. Then, I used powertop to see power consumption of each of my devices. I went to section called tunables and selected a device like xHCL to signal “on” to the set command as echo ‘on’ > ‘/sys/bus/usb/devices/usb3/power/control’. Then I shut down and it didn’t restart. But the trouble is I needed to set the command every time I shutdown the pc as the following:

  1. sudo -s = to log in as root

  2. echo ‘on’ | sudo tee /sys/bus/usb/devices/usb3/power/control && poweroff = to set it ‘on’ and turn the pc off

Can anyone explain me why did this situation happen and If I want to autorun the command every time I turn on the laptop, how to do it? (because I don’t want to use laptop-mode-tools or powertop). Thank you in advance for any recommendations.

6 Comments
2024/12/01
07:50 UTC

0

Why my cpu run at 100% when i opening youtube in kali linux

My cpu run at 100% when i opening youtube in kali linux, its verry lagging

im using mozilla btw and im using virtual box

my pc spec:

gtx 1650 ti

ryzen 5 4600h

6 Comments
2024/12/01
05:44 UTC

2

Resize ext4 filesystem

I'm apparently out-of-date about modern distros so I partitioned my disk with two 30gb partitions for OS's, and the rest of the space for /home.

Well it turns out in 2024 that 30gb isn't enough for a system partition, and I'm out of space on /. I would like to take the 30gb space of the other partition, which is still empty, and just apply it to my / partition. Basically delete the unused 30gb partition and then resize my current / partition to 60gb. Or steal some space from the /home partition and make both partitions 60gb. What's the best way to do this? Can I do it online with gparted by deleting both 30gb partitions, making a new partition with the whole 60gb, and then clicking "apply"? Or do I need to boot from a USB stick?

5 Comments
2024/12/01
05:14 UTC

1

Stuck at this menu

I tried to downgrade nvidia driver to 560.35.03-1 and after finished everything i reboot the system and the resolution is 800x600 so i asked chatgpt and give me some commands to do and reboot the system, i do everything it says i get stuck at a menu that says

/dev/sda2: clean, 295747/1441792 files, 4811098/5767168 blocks

I don't know what to do i tried to reinstall the driver and got the same.

3 Comments
2024/12/01
02:00 UTC

1

Laptops with dead batteries randomly shuts off.

I've installed linux(mint and ubuntu) on my old laptops with dead batteries, which is plugged from power source only, I noticed they both shut down randomly. That didn't happen on their old operating systems which is windows and mac. Does this problem have to do with their dead batteries?

5 Comments
2024/12/01
01:37 UTC

0

Will 8gb of ram and 2-core CPU be enough to run adobe apps on KVM windows 11?

I'm using a thinkpad L470 that has a 240gb ssd, i5-7200U (2-core 4 threads), and 8gbs of ram (plan to upgrade it to 16 dual channel, but I need to budget it first since I'm still a student)

Right now I have windows 11 ltsc installed in it, and it's kinda good, but it isn't snappy. But later on I'd try to do fedora, setup kvm and run windows 11 in it, and run windows-native apps in it.

While running the guest os, I don't plan to do anything on the host.

So would my specs be enough to do these? Would I run into some performance issues?

7 Comments
2024/12/01
01:31 UTC

0

How do I use this Docker link (or file)?

17 Comments
2024/12/01
00:58 UTC

5

Is there a way to know if a process is connected to a tty?

Hey, I'm writing a little project where I want to print out every process connected to a certain try, is that possible?

8 Comments
2024/11/30
22:03 UTC

1

Good onscreen keyboard for KDE?

I'm looking for something that works well with Wayland in KDE, and has support for adding buttons like CTRL, ALT etc.. maliit is fine but it just doesn't have those buttons, I have been looking for so long, KDE is the perfect DE but it's just the k(eyboard) that's missing.

0 Comments
2024/11/30
20:40 UTC

1

Having trouble installing pycoral for Google Coral TPU

Hi! I've just received my Google Coral and I'm trying to set it up on my Ubuntu home server running Frigate. However, I'm getting stuck at the second step: the PyCoral lib.

My Ubuntu install has Python 3.10 so I got an error about unmet dependencies. The install guide mentions this, and suggest using pyenv to install 3.9. Which I've done:

$ pyenv versions
system
* 3.9.20 (set by /home/USER/.pyenv/version)

$ python -V
Python 3.9.20

However, I still get the same error when trying to install python3-pycoral, even after a reboot. I'm kind of stuck now since I honestly don't know what to do (and this is also where my Python knowledge/experience starts and ends). I'm hoping anyone here is able to help me out? This is the output I get:

sudo apt install python3-pycoral

[sudo] password for USER:

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

python3-pycoral : Depends: python3-tflite-runtime (= 2.5.0.post1) but it is not going to be installed

Depends: python3 (< 3.10) but 3.10.6-1~22.04.1 is to be installed

E: Unable to correct problems, you have held broken packages.

0 Comments
2024/11/30
20:02 UTC

2

Debian root privileges - how to install system correctly?

Hi,

I know here is no direct answer regarding "correctly" sentence.

I know how to install it with absolutely full control, so I can do anything all the time (I know what I'm doing).

However, I don't know how to install it "safe" way "correctly". For example: laptop which will be used for internet banking and day to day tasks.

Is it correct to create root password when installing system so only commands with sudo / pass will make any changes in to system? Same will happen if installing software or doing anything advanced in GUI, sudo password prompt will be displayed? Is it the very best correct way?

Or do not create root password when installing system? Like in this thread:

https://www.reddit.com/r/debian/comments/1doltq6/user_permissions/

To have control as a account user?

Which way best way install system to make system efficient, fully secured from any internet disease, only me as a only one user/owner of laptop, with possibilities of changing anything when needed, assuming extra tasks will be needed (privileges).

Different question now regarding Live image, opposite:

Live image to do some easy tasks on random broken laptops/PCs. Under Mint live image I had always easy tasks because it seems everything worked as a root out of the box, I mean, I could live run image to fix/copy files in laptop/PC without any problems or any additional tasks. However, Debian/Ubuntu live is not that easy, big battle to make files copied between because Dolphin etc is default blocked against any writing DATA in to folders/HDDs etc, no root rights. I'm talking only about live image. Making root rights and reboot not gonna happen because this is live. I've found so far:

sudo chown username /

but it didn't work really, then:

sudo chown username /path_to_HDD

and it worked perfectly fine for exact hard drive. Does anyone knows any simple command to make full root privileges for whole system on live image within seconds, not just for one path?

5 Comments
2024/11/30
19:50 UTC

4

[Help] udisk error installing repo packages. Endeavour/Arch

I am trying to install udisk so that I can have all my drives all mount on boot with endeavourOS gnome. When I run yay -s udisk and select udisk2 Terminal responds "error installing repo packages".

Image- https://ibb.co/wy81y7s

1 Comment
2024/11/30
19:33 UTC

2

Is the Wacom Intuos CTL-6100 Fully Compatible with Linux?

Hi everyone,

I recently ordered a Wacom Intuos CTL-6100 tablet and plan to use it with Ubuntu, which is my primary operating system. I’ve heard that Wacom tablets generally work well on Linux, but I wanted to ask if anyone here has experience using this specific model on Ubuntu or any other Linux distro.

Does it work out of the box, or are there additional drivers or configurations needed? Any tips or advice for setting it up would be greatly appreciated!

Thanks in advance

3 Comments
2024/11/30
19:10 UTC

1

How to fix wifi issues? (Debian)

Hello everyone, I installed debian on my new machine and so far I got everything to work except for wifi.

Some commands I ran for extra information:

~$ sudo dmesg | grep -i rtw

rtw89core: loading out-of-tree module taints kernel.
rtw89core: module verification failed: signature and/or required key missing - tainting kernel
rtw89_8852be 0000:02:00.0: firmware: direct-loading firmware rtw89/rtw8852b_fw-1.bin
rtw89_8852be 0000:02:00.0: loaded firmware rtw89/rtw8852b_fw-1.bin
rtw89_8852be 0000:02:00.0: enabling device (0000 -> 0003)
rtw89_8852be 0000:02:00.0: Firmware version 0.27.32.1 (ef7920a3), cmd version 0, type 1
rtw89_8852be 0000:02:00.0: Firmware version 0.27.32.1 (ef7920a3), cmd version 0, type 3
rtw89_8852be 0000:02:00.0: chip rfe_type is 1
rtw89_8852be 0000:02:00.0 wlp2s0: renamed from wlan0

~$ sudo lshw -C network  

 *-network                  
description: Wireless interface
product: Realtek Semiconductor Co., Ltd.
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: wlp2s0
version: 00
serial: 8a:da:a3:39:4a:ff
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw89_8852be driverversion=6.1.0-28-amd64 firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
resources: irq:92 ioport:2000(size=256) memory:c0600000-c06fffff

~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
   inet6 ::1/128 scope host noprefixroute  
valid_lft forever preferred_lft forever
2: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
   link/ether fe:c2:e8:32:65:0d brd ff:ff:ff:ff:ff:ff permaddr c0:35:32:e1:f7:99

~$ nmcli device wifi list
IN-USE  BSSID  SSID  MODE  CHAN  RATE  SIGNAL  BARS  SECURITY

~$ ls /lib/firmware/rtw89/
rtw8852a_fw.bin  rtw8852b_fw-1.bin  rtw8852b_fw.bin  rtw8852c_fw.bin

~$ lspci -nnk | grep -iA3 "network"
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 802.11ax
Wireless Network Controller [10ec:b852]
Subsystem: Lenovo RTL8852BE PCIe 802.11ax Wireless Network Controller [17aa:4853]
Kernel driver in use: rtw89_8852be
Kernel modules: rtw_8852be

7 Comments
2024/11/30
18:32 UTC

0

Is there ever going to be a way to make bash scripts executable without going into properties or terminal?

This would help out many common folks to use linux better (though it could bring in more viruses but to be honest it might be worth it to help grow linux). Its like running an exe but with an extra step that the common folk will never do. If there was a way to allow with administrator upon trying to run the bash script like with an exe file on windows it would help linux numbers better.

25 Comments
2024/11/30
18:31 UTC

Back To Top