/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 take your time to write down the steps you used to solve your problem in the original post. You can potentially help others having the same problem!

How To Ask Questions The Smart Way


If your question has been answered, please mark your thread as [Resolved], use the flair drop-down on your submission to do so!

/r/linuxquestions

241,860 Subscribers

1

Running/opening an application from the terminal

Before anyone tells me to check out my distro's forum, I thank you for that direction, but I've already done it lol. I got the answers I needed, but I have a more general Linux-related question. Why is it that I can just type in firefox and it just opens, but when I wanna open something else, I have to use a full on executable path? Feels cumbersome. I mean, I can use the GUI, but I want to get better with the terminal. Is this Linux-wide, or distro-specific? TIA :)

0 Comments
2023/12/11
23:03 UTC

1

NFS v4.2 multipath

I am trying to setup NFS multipathing using 2x10Gb ports on the server and the client. I cannot for the life of me get it to saturate both links, only 1.

Server

  • IP's of interfaces: 10.0.1.92, 10.0.1.93

Testing the striped 2 disk test pool, I can get 2.8GB/s

╰─❯ dd if=/dev/zero of=/nvr/test.img bs=1M count=5000
5000+0 records in
5000+0 records out
5242880000 bytes (5.2 GB, 4.9 GiB) copied, 1.90311 s, 2.8 GB/s

Client

  • IP's of interfaces: 10.0.1.9, 10.0.1.10

When I test using the client I can only saturate 1 10Gb link. I am using double mount and also specifying the clientaddr in the options

❯ sudo mount -t nfs4 -o async,_netdev,nconnect=8,clientaddr=10.0.1.9 10.0.1.92:/nvr /nvr && sudo mount -t nfs4 -o async,_netdev,nconnect=8,clientaddr=10.0.1.10 10.0.1.93:/nvr /nvr
❯ dd if=/dev/zero of=/nvr/test.img bs=1M count=5000
5000+0 records in
5000+0 records out
5242880000 bytes (5.2 GB, 4.9 GiB) copied, 5.5765 s, 940 MB/s

Any help would be appreciated. TIA!

0 Comments
2023/12/11
22:45 UTC

2

SELinux help

Hello everyone, I'm running into a strange issue, and there is a lot packed in here, and I'm hoping someone will know the answer. So as the title says I'm having an issue with SELinux. This is on RHEL 8 and I'm fully patched. I'm evaluating Nagios' NRPE to monitor my servers, but on one that I'm testing I can't seem to get this one command to run even with sudo. If I disable selinux with setenforce 0 the command runs fine, otherwise it fails. I don't get anything in my audit.log file and I get the following 2 lines in /var/log/secure

Dec 11 22:30:03 ip-172-16-1-19 sudo[1235576]: pam_systemd(sudo:session): Failed to stat() runtime directory '/run/user/0': Permission denied 

Dec 11 22:30:03 ip-172-16-1-19 sudo[1235576]: pam_systemd(sudo:session): Not setting $XDG_RUNTIME_DIR, as the directory is not in order.

Oh, and if I switch to the nrpe user that this runs under (and yes I have rules set in /etc/sudoers.d/) and run the command with sudo it works fine, only when running through the nrpe plugin does any of this fail and only when selinux is enabled.

On other hosts I've run a command similar to

echo "type=1400 audit(1701997717.136:157114): avc:  denied  { getattr } for  pid=1176383 comm="check_iostat.sh" path="/dev/xvda" dev="devtmpfs" ino=14127 scontext=system_u:system_r:nrpe_t:s0 tcontext=system_u:object_r:fixed_disk_device_t:s0 tclass=blk_file" | audit2allow -M nrpe_sudo_8
semodule -i nrpe_sudo_8.pp

and that has created the rule that fixes the problem, but on this host the path was wrong and even after rerunning the commands with the correct path it hasn't fixed the issue.

2 Comments
2023/12/11
22:34 UTC

1

Installing Linux 2008 MacBook

https://preview.redd.it/4ko4geg1pq5c1.png?width=699&format=png&auto=webp&s=cfd1aa8b6b355cff8eda4a749c7be7b3921b13e5

As someone relatively new to the Linux community (lifelong windows user). I chose the challenge of installing Linux on a 15 year old MacBook with 4GB of memory I read an interesting live journal https://liam-on-linux.livejournal.com/79263.html on this and I think an Xfce distro like Xubunthu would be appropriate. Please forgive me if I said anything stupid I'm still quite new to Linux, any help is appreciated.

1 Comment
2023/12/11
22:16 UTC

1

Where does /usr/bin/rm come from on Ubuntu 22.04?

$ which rm
/usr/bin/rm
$ dpkg -S /usr/bin/rm
dpkg-query: no path found matching pattern /usr/bin/rm
$ dpkg -S /bin/rm
coreutils: /bin/rm
$ ls -l /usr/bin/rm
-rwxr-xr-x 1 root root 59904 Feb  7  2022 /usr/bin/rm
$ ls -l /bin/rm
-rwxr-xr-x 1 root root 59904 Feb  7  2022 /bin/rm

So /usr/bin/rm wasn't installed by any package but it clearly exists and is a real file (not a symlink).

I ask because my shell script blew up when it couldn't find /usr/bin/rm on another machine. I've checked and out of like a dozen or so Ubuntu 20.04/22.04 physical/virtual machines I looked all but one had /usr/bin/rm but no obvious signs of how it got there.

4 Comments
2023/12/11
22:09 UTC

1

Linux Laptops, HP and Lenovo...

Hi,

i want to buy a Laptop for Linux to start working with Android Studio and Kotlin, here are 2 Laptops that are arround my budget:

HP 255 G10 Ryzen 5 7530U, 16GB RAM, 512GB SSD

Lenovo IdeaPad Slim 3 14IAH8

Anyone got experience with this laptops? Do they work with Linux smooth without any Hardware conflicts?

If both work, which one would you recommend?

Another Question: What Distro do you recommend when working with Android Studio? I'm thinking about going Debian: Ubuntu or MX Linux.

2 Comments
2023/12/11
21:41 UTC

2

What does it take to write a simple HID userspace driver?

First, premises: I have a set of Thrustmaster T-LCM which are recognized but I can't use them (there doesn't seem to be available software online).
They are a set of simple pedals: just 3 outputs over USB.

I know the basics of programming on C# and C (but I am missing the functioning of Linux), therefore I am pondering the idea of writing my own drivers. I have lots of time and will to learn, especially if I can add C and the Linux Kernel into my CV.

Now, the discussion: what expertise is needed to work on this type of project? Where should I begin? Is it worth reading a whole book (I have many in my library ready to be read) on the Kernel just to write a driver, or can I study the topic with more efficiency?

0 Comments
2023/12/11
21:36 UTC

1

When I boot linux mint, I get error initrd.img-5.15.0-91-generic not found.

I was trying to clean out old kernals taking up disc space and broke something. I am trying to reinstall the initramfs files. I install mint on a USB then chrooted into the file system:

Device           Start        End   Sectors   Size Type
/dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
/dev/nvme0n1p2 1050624    4550655   3500032   1.7G Linux filesystem
/dev/nvme0n1p3 4550656 1000214527 995663872 474.8G Linux filesystem

At first I thought the 3rd fs was the one I needed to install on but I realized the 2nd one is where the boot files are being read:

-rw-r--r-- 1 root root   261842 Nov 22  2022 config-5.15.0-56-generic

-rw-r--r-- 1 root root   261914 Apr 18  2023 config-5.15.0-72-generic

-rw-r--r-- 1 root root   261914 May 15  2023 config-5.15.0-73-generic

-rw-r--r-- 1 root root   261881 Jul 10 13:33 config-5.15.0-79-generic

-rw-r--r-- 1 root root   261956 Aug 14 13:31 config-5.15.0-82-generic

-rw-r--r-- 1 root root   262053 Aug 14 09:05 config-5.15.0-83-generic

-rw-r--r-- 1 root root   262053 Sep  5 13:31 config-5.15.0-84-generic

-rw-r--r-- 1 root root   261889 Sep 20 07:32 config-5.15.0-86-generic

-rw-r--r-- 1 root root   261844 Oct  2 13:40 config-5.15.0-88-generic

-rw-r--r-- 1 root root   261844 Oct 30 20:15 config-5.15.0-89-generic

-rw-r--r-- 1 root root   261963 Nov 14 10:47 config-5.15.0-91-generic

drwxr-xr-x 2 root root     4096 May 19  2023 efi

drwxr-xr-x 5 root root     4096 Dec  8 08:18 grub

lrwxrwxrwx 1 root root       28 Dec  8 08:18 initrd.img -> initrd.img-5.15.0-91-generic

lrwxrwxrwx 1 root root       28 Dec  8 08:18 initrd.img.old -> initrd.img-5.15.0-89-generic

drwx------ 2 root root    16384 May 19  2023 lost+found

-rw------- 1 root root  6250186 Nov 22  2022 System.map-5.15.0-56-generic

-rw------- 1 root root  6261790 Apr 18  2023 System.map-5.15.0-72-generic

-rw------- 1 root root  6261790 May 15  2023 System.map-5.15.0-73-generic

-rw------- 1 root root  6271933 Jul 10 13:33 System.map-5.15.0-79-generic

-rw------- 1 root root  6272726 Aug 14 13:31 System.map-5.15.0-82-generic

-rw------- 1 root root  6273612 Aug 14 09:05 System.map-5.15.0-83-generic

-rw------- 1 root root  6273857 Sep  5 13:31 System.map-5.15.0-84-generic

-rw------- 1 root root  6276171 Sep 20 07:32 System.map-5.15.0-86-generic

-rw------- 1 root root  6276836 Oct  2 13:40 System.map-5.15.0-88-generic

-rw------- 1 root root  6276836 Oct 30 20:15 System.map-5.15.0-89-generic

-rw------- 1 root root  6273869 Nov 14 10:47 System.map-5.15.0-91-generic

drwxr-xr-x 9 root root     4096 Dec  9 07:00 timeshift

lrwxrwxrwx 1 root root       25 Dec  8 08:18 vmlinuz -> vmlinuz-5.15.0-91-generic

-rw-r--r-- 1 root root 11551392 Dec 17  2022 vmlinuz-5.15.0-56-generic

-rw------- 1 root root 11574344 Apr 18  2023 vmlinuz-5.15.0-72-generic

-rw------- 1 root root 11574280 May 15  2023 vmlinuz-5.15.0-73-generic

-rw------- 1 root root 11613672 Jul 10 15:22 vmlinuz-5.15.0-79-generic

-rw------- 1 root root 11610344 Aug 14 13:37 vmlinuz-5.15.0-82-generic

-rw------- 1 root root 11615656 Aug 14 09:07 vmlinuz-5.15.0-83-generic

-rw------- 1 root root 11612712 Sep  5 16:57 vmlinuz-5.15.0-84-generic

-rw------- 1 root root 11624584 Sep 20 08:09 vmlinuz-5.15.0-86-generic

-rw------- 1 root root 11619432 Oct  2 13:44 vmlinuz-5.15.0-88-generic

-rw------- 1 root root 11619464 Oct 30 20:25 vmlinuz-5.15.0-89-generic

-rw------- 1 root root 11615272 Nov 14 10:49 vmlinuz-5.15.0-91-generic

lrwxrwxrwx 1 root root       25 Dec  8 08:18 vmlinuz.old -> vmlinuz-5.15.0-89-generic

What is saying not found when it's clearly there? Does it need to be installed on both file systems? Specifically want to use the lastest `5.15.0-91-generic`

5 Comments
2023/12/11
21:31 UTC

1

CLI chatbot that knows my config and helps me remember commands?

I'd like to have a CLI chatbot that knows my config and helps me remember commands.

In the ideal case I envision something as simple as this

$ chat 
> Q: How do I add ' around the currently selected word in neovim?
> A: I see that you have the mini-surround plugin and you have configured 'gsa' as the mapping to a surround. The syntax is gsa[motion][char]. In your case that would be `gsaiw'`.

Is there any project that allows me to do this or something similar?

I have paid access to Chat GPT-4 and Copilot if that helps.

0 Comments
2023/12/11
21:19 UTC

1

What is happening with "evict_inodes inode" ... "was skipped!"?

In Ubuntu 23.10 x86_64 with kernel 6.5.0-14-generic I keep getting messages like:

evict_inodes inode 00000000xxxxxxxx, i_count = 1, was skipped!

These seem to happen when unmounting some file systems. It sounds kind of bad, as if something failed to be written to the storage device. But I haven't been seeing any real problems because of this. Elsewhere I've seen other posts about the problem, but no explanation.

1 Comment
2023/12/11
20:49 UTC

1

[FreeDesktop / .desktop file] Dynamic additional actions

Hello,

This question is about desktop Linux (namely, not headless servers) conventions, and may even apply to other Unixes used as desktop/laptop workstations.

As you might know it, FreeDesktop is responsible for a few standardisation specifications that are widely used in today's "desktop Linux" world, and allows some form of compatibility between various desktop environments. They're behind the common XDG_* environment variables that map to common directories (desktop, config, app data...) as well as the .desktop file that is used to enumerate and describe the apps that you see in your taskbar and start menu.

The .desktop spec allows apps to define "Additional application actions", which are usually implemented as a jumplist that opens when right-clicking an icon. If you have Firefox or Steam installed, you can see that they have app-specific actions when right-clicked in the task bar, like "Open a new private window" for the former or "Friends" for the latter.

However, these are static. They're hardcoded in the .desktop file, which is usually installed in the root-owned /usr/share/Applications/ and thus can't be edited for obvious reasons. However, some apps may want to display dynamic actions, such as recent contacts for a messaging apps, favourite games for a game launcher, or installed DLCs/mods for a game, to only give examples. And I'm wondering if dynamic actions are actually possible.

Here are options I've considered:

  • GtkRecentManager seems to be used by Cinnamon on Linux Mint to display recently edited files. However, it relies on GTK, it's not guaranteed that the DE will render this in its taskbar icon's context menu, it doesn't support icons and may have unintended effects (in Mint, recent files are also indexed by the start menu's search bar, which can be practical but not always desired).
  • "The desktop bookmarks spec" might be what I want, but there aren't much information on what it is concretely and how implementers should display them to the user. Also, it's not widely in use at all.
  • Dynamically modifying the .desktop file could work, but:
    • it's very hacky
    • it may require reindexing with update-desktop-database which could potentially take seconds on older computers, just because one entry changed
    • most importantly, since /usr/share/Applications is unwritable, these "dynamic" desktop files must be copied in ~/.local/share/applications on first launch, which may or may not be considered very hacky too. At the very least, from my experimentation, if both desktop files have the same name, the one in ~/.local/share/application overrides the other, which is convenient. I don't know if that works across DEs though.

What are your thoughts on this?

0 Comments
2023/12/11
20:47 UTC

5

Do you think a Linux computer would be a suitable device for someone who wants to learn digital art?

So, I have a niece who's getting old enough to have a personal computer (Her approximate age is 14). My niece is really into making art. She currently makes a lot of drawings and sketches with colored pencils. She doesn't seem that interested in computers right now, but she has said that she wants to make art using computers.

I was thinking about gifting her a simple Linux Laptop + Pen Display Tablet (I already have a list of pen display tablets that should be compatible with Linux devices).

Everything above is the basic information. I'm probably overthinking this decision, but if you want more infomation of my thoughts, read the text below.

My reasons for getting her a Linux laptop are the following:

  1. I think it would be a good idea to start her off with free art programs (or even FOSS programs if possible). Currently, art is just a hobby for her. I think getting her art programs that require a paid subscription could harm her access to this hobby. (Her family doesn't have a lot of money, so using free programs would probably be better for them in the long run.)
  2. I feel like learning Linux (outside of Android and Chrome) has similar benefits to learning a second language at a young age. Even if she doesn't pursue Linux, she will at least be aware that Linux is another OS option. I think this would give her more freedom of choice when she starts shopping for computer devices herself.
  3. If for whatever reason she doesn't like Linux, I know how to switch out the OS on the laptop, and I can change it to whatever she wants. Also, the Pen Display Tablet should be able to work on other computers she gets in the future.
  4. I could get a laptop that has a built-in touch display, but I think would be better to have a separate pen touch display. This way if she gets a different computer, she can still use the pen tablet on different devices.
  5. If she were to ever lose interest in making digital art, to my knowledge, a Linux computer could easily be repurposed to fill other roles (or I could even convert the computer back to running Windows and she'll have a new school computer).

However, I also have reasons for not getting her a Linux laptop:

  1. Her immediate family doesn't know anything about Linux (outside of Android or Chrome). So if she needs help with her Linux computer, I'm the only one who could provide "tech support". This could be an issue since I live several US states away from her. I could try doing "tech support" over the phone, but I don't know how well that will work.
  2. She will be using either a Chromebook or Windows computer while she is at school, so she will be more familiar with those operating systems than she will be with Linux (Although, Linux desktop environments can be tailored to look more like Windows or Chrome. etc, etc.) If she never develops an interest in computers, having her learn about Linux could be a waste of her time. (I'm reminded of when I had to learn cursive writing in School, but it never became a serious requirement when I became an adult.)
  3. While Linux has a number of art programs available to it, they might not be to my niece's liking, or the programs could have unforeseen issues that require additional "tech support".

If you think a Linux laptop isn't a good idea for her, I do have some other devices I could get for her, but these other devices also have their own "pros" and "cons".

I asked on r/DigitalArt about what kinds of computer devices would be the best for a first-time digital artist, and they recommended getting an iPad + Apple Pencil.

ProsCons
They can specialize in digital art.They're not very versatile.
Their devices are generally of decent quality.They're overpriced.
They're easy to use.They lock users in as much as possible.

I think the "cons" outweigh the "pros". Making art is just her hobby right now. She's 14, and her hobbies and interests could drastically change as time goes on. If she were to ever lose interest in creating art, an iPad and Apple Pencile would no longer be of use to her. Whereas other non-Apple devices could be more easily repurposed.

Another more versatile option is to get a Chromebook for my niece.

Now, my niece already has a "Galaxy Chromebook Go". However, from what I've researched so far, that specific model of Chromebook is not good for digital art. It doesn't have good compatibility with pen tablets.

I could get her another Chromebook that comes with a pen, or I could find a Chromebook that has better compatibility with pen tablets. However, I've asked around on r/chromeos for digital art Chromebook recommendations and I haven't gotten much positive feedback. Many comments on the ChromeOS discord have said that Chromebook isn't a good option for digital art.

If I can't find such a Chromebook, I could maybe get a Samsung tablet + art pen/stylus. These devices might not need as much "tech support maintenance" compared to Linux, and they will be something that she and her parents are familiar with. However, I'm not certain about how good her digital art experience will be with these devices.

Another option is Windows. However, my niece hasn't had much experience with Windows. While Windows might be more familiar to her parents, they aren't very "tech savvy" with Windows. This means I could end up doing "tech support" over the phone for Windows, at which point I might as well have gone with Linux.

Edit:

I'm not going to force her to use Linux. A lot of people on r/Linux told me that it was a good idea to give someone a Linux computer as their first PC. I'm just double-checking those statements.

18 Comments
2023/12/11
20:23 UTC

0

Is there a way/software in Linux that can bind commands to...

... this mouse gestures: Holding right mouse button while scrolling the wheel up or down?

0 Comments
2023/12/11
20:14 UTC

1

How do you automatically start a graphical program as a non-root user, with Weston compositor?

I'm trying to get an Electron app to start on an embedded Linux machine on boot, but I can't figure out how to do so under a user. I'm using Yocto and the build I'm adding to uses Wayland and Weston, with X11 no longer supported. Yocto is set up to automatically boot into root for development, and I could just keep that setup and run the Electron app with systemd under root and use the --no-sandbox flag, but that seems insecure. Rather, I'd like to start the app as a non-root user.

So, my question is: How do I get a graphical application to run as a non-root user just by booting up the system? Is there a way to automatically login as a non-root user, without even prompting for a password? If so, I suspect I could then just use a systemctl --user setup to auto-start the app after the user is logged in. Otherwise, would I have to use a regular systemd service with the User=<user> field? When I try that, I get errors about missing X server or $DISPLAY, despite DISPLAY being defined under Environment=DISPLAY=:0

I'd appreciate any help.

0 Comments
2023/12/11
20:08 UTC

1

How to automatically assign classes in GRUB?

Hi, I'm not the most expert user, but I've been messing with my latest linux install for a few months. I costumized the look of the GRUB, but whenever the kernel gets updated and the grub.cfg gets regenerated, the classes of two entries do not generate (efi and submenu), leaving the entries with no icons (which are determined by the class of the entry).

How do I make it so they automatically generate, instead of me modifing the .cfg everytime the kernel is updated?

I'm on linux mint, 21.2 Cinnamon.

3 Comments
2023/12/11
19:43 UTC

1

Arch yay 0 current speed

I’m using yay and when I try to download some packages the current speed sits at zero, won’t download and eventually fails to connect and retry’s

. It doesn’t do this for every package nor does it do it using pacman. Internet connection is working. Didn’t find anything in forums/manpages. Any help?

2 Comments
2023/12/11
19:42 UTC

0

Xubuntu or Bodhi Linux for low end laptop?

I have a low end laptop I use for light gaming, browsing, and schoolwork. I currently run Xubuntu 22.04, but I learned about Bodhi Linux, a distribution supposedly optimized for extremely good performance on low end hardware.

My specs are:

i5-1035g1

8gb

Intel IRIS Plus graphics g1

3 Comments
2023/12/11
19:26 UTC

0

Loading a physical Windows partition as a VM inside Linux

I have a computer on which I'd like to have native access to Windows and Linux (partition the drive and dual-boot), but I prefer Linux, so it would be nice to be able to boot into Linux and then boot the physical Windows partition on a VM. I need to keep the original Windows install how it was, so I don't want to create an entire virtual Windows machine, but rather just emulate the install I currently have inside Linux... I've found some information about how to do this with different VM platforms, but I'm looking for a relatively safe way to do this, minimizing the risk of data loss on the Windows install (I know that any method assumes some risk). Performance of the windows install is not a huge deal; just need access to it.

6 Comments
2023/12/11
18:54 UTC

1

Freeze during boot messages

I currently have a problem bc I was stupid, any help would be much appreciated…I configured my Raspberry Pi (running Diet Pi Os) to only allow SSH access with SSH key, no password login. Then I lost the keyfile. So now I cannot ssh into the Pi, so I attached an HDMI cable and rebooted. I got no output, so changed the config.txt on the SD card to force HDMI output (‘hdmi_force_hotplug=1 hdmi_drive=2‘)-> still nothing. I put the SD card into another Pi, it booted, then got stuck on „Starting ifup for eth0“, same on another Pi. Removed Ethernet cable, still it displays no outout after a certain point in the boot process. Do I have any chance to regain access, or do I have to reinstall? I originally used Diet Pi OS on a Pi 2 Model B v1.1, the other two Pis I tested the SD card on were Pi 2 v1.2 and Pi 3

1 Comment
2023/12/11
18:44 UTC

0

I'm a semi noob, help with Kali dual boot pls

I have partioned my hardrive on an Acer Aspire 3 A315-24PT the graphical installer runs but does not detect the network card it is a Media Tek MT7902 Wireless LAN card. Has any one else encountered this problem is it as simple as picking a similar MT module from the list presented or do I just step up and use the command installer? TY

3 Comments
2023/12/11
18:43 UTC

0

Could GDB's "checkpoint" functionality be used to add Universal Undo to any program?

Hey there everyone. High on weed here with a crazy idea.

Could GDB's "checkpoint" feature be used to effectively add an "undo" feature to literally any program?

This could be implemented as a wrapper around the program, and every minute or so, it runs GDB to attach to the process and save a checkpoint, plus a screenshot of the UI. The user might also be able to save a checkpoint on demand with a hotkey, let's say.

At any point, the user can check the available checkpoints, and visually decide which state of the application to "undo" or "check back" into.

For simplicity, let's assume that we only care about programs with no network access and with only a single process. But if this works well enough, some FAANG could through a few million dollars at it and figure out the rest. And only Linux support because let's face it, these sort of crazy ideas like containers and stuff are done here first.

Naturally a problem would be external files used or created by the program. These could be copied into the checkpoint (maybe only storing diff information on successive checkpoints). (And if the app is one of those fancy flatpoke or container apps, we might as well diff the entire chroot filesystem)

This would include a generic GUI for the "restore checkpoint" feature, which would work on any program.

Indeed, this is similar to checkpoints in video game emulators.

Has something like this been done? Is it feasible? I understand that this is doable on virtual machines, but then the performance cost and storage of checkpoints could be huge.

Obligatory: This idea is licensed under GPLv3.

Edit: Looks like CRIU already implements part of this? They only beat me by 11 years, I'll try a higher dose next time.

1 Comment
2023/12/11
18:41 UTC

1

Cant mount SSD - Manjaro. Further details in post

So I recently decided to dual boot Manjaro with my pre-existing windows. I only gave it 150 gigs at the time because I only wanted to basic stuff. Now Im thinking of making Manjaro my main. There is another SSD in my pc which I just use to store my projects, games and stuff. How do I get that ssd to work in Manjaro. Sorry if this is very vague, I am quite new to Linux.

2 Comments
2023/12/11
17:58 UTC

1

Pipewire not using stereo audio?

I was using my Arch Linux system for music production and upon trying to pan some tracks in my mix, I noticed that the right channel simply does not output any audio.

I was using Reaper, but I narrowed it down to a system problem because a "speaker test" youtube video like this only plays audio for the "left" portion.

  • this is the audio interface I'm using
  • Looking at my qpwgraph, it seems both channels are connected.
  • I've tested with multiple sets of speakers/headphones. Both earphones play the left audio channel instead of left and right respectively.

I'm not really sure how to troubleshoot this and I can't finish my mix until I am able to pan tracks! Am I missing or misconfiguring a qpwgraph connection? Any input would be appreciated.

0 Comments
2023/12/11
17:39 UTC

0

Ways to compensate for low ram for gaming Fedora siilverblue 38?

Hi,

Here's the issue when i play gta 5 on steam it freezes, and i figured that it must be my ram (8gb soldered). My pc setup: AMD Ryzen™ 7 5700U with Radeon™ Graphics - 8gb ram - silverblue 38.

Is there a way to compensate for the low ram, i tried to set the lowest graphic settings but it still freezes. When playing with gta 5 pirated version (older version) it went pretty well on lowest graphic settings but with the official steam one i'm having issues.

Thanks for any suggestions

2 Comments
2023/12/11
17:26 UTC

1

What OS version do I select in VirtualBox if it does not recognize the Linux OS I want to install?

Hi, I’m trying to install DAT Linux (based on Ubuntu 22.04) on VirtualBox on my W11 host machine. However, it is a fairly new OS and not recognized by VirtualBox. It keeps hanging on installation and I have a hunch that it may be because of the “version” I am selecting on installation.

I’ve tried Linux 2.6/3.x/4.x/5.x(64bit), Ubuntu 64bit, Ubuntu 22.04 64bit, and Other 64bit, but none of them seem to work. I can’t find videos or articles doing a walk through.

Any suggestions on installing DAT Linux?

5 Comments
2023/12/11
16:59 UTC

1

Autohotkey equivalent

Hi, i recently installed EndeavourOS, since i'm italian but i have a US keyboard i miss some letter, on windows i used an autohotkey script that typed for me the missing letter with a key combination, i searched for autohotkey on linux but i found that script made on windows wont work on linux.
I'm pretty sure that there are alternative or similar program, could you point me to them?

Thanks in advance y'all.

5 Comments
2023/12/11
16:52 UTC

1

Create software audio devices at runtime in Linux

Like we use .asoudrc file to create software audio devices, is there anyway I can create software audio device at runtime, using channel 0 and channel 1 of device XYZ and use that software device to do playback/recording.

It would be great if it can be done using python but a bash script solution will also do.

Or if you can suggest some keywords I can google because right now I am just getting examples on how to create .asoundrc or /etc/asound.info or play audio using pyalsa.

1 Comment
2023/12/11
16:40 UTC

1

Best way to benchmark PCs under Linux, with CPU/GPU/disk/RAM testing?

I am looking for a way to benchmark PCs, the result should show CPU, GPU, RAM and disk performance. It would be ideal if the latter works also for USB attached devices or SD cards.

Looking for a general approximation, doesn't need to be refined to the nth degree. A plus if it's a script based on standard Linux stuff. EDIT: The recommendations so far are for Phoronix, Coremark, Passmark, Cinebench. This is way too elaborate. I'm looking for something real simple, similar to sbc-bench.

3 Comments
2023/12/11
16:26 UTC

2

Onboard Virtual Keyboard - Different Keyboard Layouts

I am busy learning Hebrew and would like to make use of Onboard for completing the online exercises. However, I don't know how to change the keyboard layout?

Has anyone else attempted this?

I fiddled around with some of the included keyboards and figured out how to make a keyboard layout. Actually very simple. It's a set of SVG files for the layout and a set of XML files for the keys. One of the XML files contains the scan codes for each key reference.

/usr/share/onboard/layouts/keys_def.xml

My install is Debian 12 so it might be different on your setup.

Once I have a working keyboard, I will post a link here where others can download it.

When I get time, I will make keyboards for other popular languages.

New update, I just discovered, that the "Full Keyboard" switches languages if you change keyboard layout on the task bar of KDE. Yay!!!

Another update: I have discovered that changing languages in the taskbar allows me to type using my physical keyboard. My wife has generously offered to paint on the lettering for me using a pin stripe paint brush.

Hopefully this answers questions for anyone else trying to do the same. I assume it would apply to all keyboard layouts, though I may stand corrected.

Please note that I had installed both my standard US International layout and the standard Hebrew layout in KDE. A "us" icon appeared on the taskbar at the right next to the WiFi icon. When I click it I can switch to "il" and then type in Hebrew.

Once I got the Hebrew down pat, it will be onto the next language. Just for fun. Though I may need more keyboards... :lol:

0 Comments
2023/12/11
16:21 UTC

Back To Top