linux4noobs

1271 readers
1 users here now

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?

Community Rules

founded 1 year ago
MODERATORS
26
 
 

Display of OpenGL context works fine on Windows, no issues with resizing. Function glViewport works as intended.

It only has issues with X11 on Linux (no plans yet to implement Wayland due to lack of free time). Resizing breaks everything, and it doesn't really work the way you expect (point of triangle moves down if you make it taller, etc). I cannot find anything on if I should call anything else besides glViewport, only that "you should use [insert already existing library], which will take care of this behavior". Others are suggesting me that it's an issue with my distro, but I cannot find any OpenGL testcase that is small enough to test on my VM or my Raspberry Pi to actually test whether that's the case.

27
 
 

I saw that there's this nifty xdg-ninja that informs you on what you have installed that doesn't respect the XDG spec, if it has support for it or not and what you can do to make it comply.
But now I was wondering if there was any tool to do the actual work automatically, I believe I have once seen a program that spoofed your home directory to non-complying apps so that you could transparently override their whole app data location to a path you wanted so they can keep functioning, but I can't for the life of me find it again.
It would be double awesome if it did both, i.e. auto-applying any changes to apps that support XDG but need to be configured to enable it and, for those who don't, forcefully spoofing the home directory

28
0
submitted 3 months ago* (last edited 3 months ago) by wreckedcarzz@lemmy.world to c/linux4noobs@programming.dev
 
 

(my first post on lemmy so I hope I'm doing this right)

Distro: Spiral Linux (Debian, KDE spin), by recommendation

System: Lenovo ThinkPad X13 Gen 2 (Intel) (distro recommended as I am looking for Debian(-based), + btrfs, snapshots, and fde, included via the gui installer)

I'm having issues getting ModemManager to unlock my X55 modem. This morning I wiped my drive to install Spiral (KDE), coming from Kubuntu 24.04. While the modem worked after running the proper fcc unlock script in Kubuntu, it is entirely missing in my Spiral install. While I assumed that it would not be that simple, I copied /etc/ModemManager from my Kubuntu live environment to Spiral, ran

sudo ln -sft /etc/ModemManager/fcc-unlock.d /usr/share/ModemManager/fcc-unlock.available.d/105b:e0ab

and restarted, but alas that's not enough, so I'm stuck. I have added the network profile + apn to ModemManager (the UI) but of course without the modem unlocked, I can't connect. I'm new to cellular modems in Linux (this was a windows machine until ~6 weeks ago) but I'm otherwise comfortable with the terminal and commands. The modem was working as expected last night in Kubuntu.

I haven't got the system setup yet (trying this first before going further) so if I botch this, an install is no problem. I'm assuming it's either (or both?) a service, or a missing package that sets up what's needed, but I'm at a loss as to how to proceed.

I discussed this here https://lemmy.world/comment/10540509 this morning, though I think I got all the important details typed up above. But maybe it could be useful somehow.

Any suggestions are welcomed :)

29
 
 

Apparently there is a F35 Key within xkbcommon.

I know about F1-24 where the upper level was accessible by holding down a modifier key; So how are keys beyond this issued via a keyboard (my keyboard is qwerty, de_DE if of interest)?

And... why the fuck was it a good idea to expand the function keys beyond 24?

30
 
 

SOLVED by joneskind

I have Ubuntu 20.04.1, I've installed ollama and a couple llms, it's amazing, but tinyllama is gibberish and I've just realized I don't know how to remove the llms from my computer or where they're stored, or anything about them.

Mistral is very impressive btw

31
 
 

Hey guys, I made the switch to Linux about a week ago and have mo complaints so far. Except maybe this: I can't seem to find a way in Linux to get proper loudness equalization like I got on windows.

My issue is that I have a bunch of media, especially shows and movies, that are suffering from way too loud gunshots, explosions, music and so forth and really quiet dialogue. I know this is because sound engineers make the audio fit for cinemas and not my living room, it is a problem nonetheless.

Under windows there is a simple toggle in even the most basic sound cards and settings called loudness equalization, that corrects those perceived differences quite effectively, which Linux is lacking. A bit of web search led me to the term ReplayGain, which seems to be the proper name for it, and I enabled it for my media from within the player apps. However it doesn't really work like i am used to.

Sounds and language constantly change volume mid sentence, which is very irritating to me. ReplayGain also doesn't really help avoiding those sudden bursts of loudness, I still blast awake my neighbors on accident when watching a move later at night.

Is there some way to get at that windows audio codec or whatever they use, that works so much better?

Thanks for reading

32
 
 

Hello I am wondering if there is increased network/packet security by connecting to a server over ssh through a VPN hosted by that same server as opposed to without first tunneling by VPN. I imagine with or without tunneling through a VPN there would be latency/speed differences too?

33
 
 

I recently got my hands on an ASUS device equipped with an fingerprint sensor . As a Fedora user, I've been trying to set up the fingerprint sensor on my system, but it's proven to be quite a challenge.

So, I'm reaching out to the community here for some guidance. Has anyone successfully configured an ASUS fingerprint sensor on Fedora before? If so, could you please share your experience and any tips or resources that might be helpful?

Any assistance would be greatly appreciated! Thanks in advance.

34
 
 

Is there an easy way to enable a inactivity timer when using a TTY like in Ubuntu Server for when there has been no inactivity for X seconds, it will execute vlock and lock the TTY.

35
 
 

I am using Arch Linux on an older Thinkpad and recent upgraded. KeePassXC was part of that and now, after I enter my credentials, and click to unlock my database it shows that it is loading but never finishes. I am using a password, Yubikey, and keyfile and have it set to max decryption time (5s) though I don't know if that is relevant.

I had to downgrade KeePassXC to 2.7.6-3 and Baton to 3.3.0.-1 and add them to my ignore list in /etc/pacman.conf.

The same database works with KeePassDX on Android.


Does anyone know what would be causing KeePassXC to fail to load?

My next step would probably be creating a new database and seeing if an empty one can open then adding the extra security measures like the challenge-response before finally merging the two but I thought I'd ask if anyone has a better idea before trialing and erroring my way to a solution.

36
 
 

On Ubuntu Server and Arch I was able to change the following line in /lib/systemd/system/getty@.service

# Before
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM


# After
ExecStart=-/sbin/agetty --noissue --autologin john %I $TERM Type=idle

And it works, that it will login to the user john but when I logout of the user john with using exit in the terminal, it logs john back in. Is there a way to change this ExecStart setting to enable auto login for a user on startup but only on startup?

37
 
 

I have gotten Wake On LAN (WOL) setup and working. However my machine is a Ubuntu machine using full disk LUKS encryption which means when booting it up, it requires a password/passphrase to unlock the machine before it boots into Ubuntu. The WOL systemD service I created will always make sure WOl is enabled for the next time the machine reboots, however if I reboot the machine and fail to unlock the device on the full disk encryption menu and the machine shut down, WOL will not be enabled which means WOL is not going to work to turn on the machine again.

Is there a way to enable WOL on the system full disk LUKs encryption lock screen?

38
1
submitted 6 months ago* (last edited 6 months ago) by 1_4M_N008@programming.dev to c/linux4noobs@programming.dev
 
 

Hey guys, i a am using ParrotOS and trying to install virtualbox from .deb package and i got the following warning

dpkg: dependency problems prevent configuration of virtualbox-7.0:
 virtualbox-7.0 depends on libc6 (>= 2.34); however:
  Version of libc6:amd64 on system is 2.31-13+deb11u6.
 virtualbox-7.0 depends on libssl3 (>= 3.0.0~~alpha1); however:
  Package libssl3 is not installed.
 virtualbox-7.0 depends on libstdc++6 (>= 12); however:
  Version of libstdc++6:amd64 on system is 11.2.0-18really16parrot1.
 virtualbox-7.0 depends on libvpx7 (>= 1.10.0); however:
  Package libvpx7 is not installed.

but it seems like ParrotOS repo outdated so i add http://archive.ubuntu.com jammy main universe to /etc/apt/sources.list update repo list apt-get update and then obtain libc6 package information

apt-cache policy libc6
libc6:
  Installed: 2.31-13+deb11u7
  Candidate: 2.31-13+deb11u7
  Version table:
     2.35-0ubuntu3 50
         50 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
 *** 2.31-13+deb11u7 600
        600 https://deb.parrot.sh/parrot lts/main amd64 Packages
        600 https://deb.parrot.sh/parrot parrot/main amd64 Packages
        600 https://deb.parrot.sh/direct/parrot parrot-security/main amd64 Packages
        100 /var/lib/dpkg/status

then install libc6 via sudo apt-get install libc6=2.35-0ubuntu3 BUT i got

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  afl++-doc docbook-to-man greenbone-security-assistant gtk-doc-tools gvmd-common hashcat-data intltool libapache2-mod-php libapache2-mod-php7.4
  libc-devtools libclang-cpp11 libclang-cpp9 libclang1-11 libcrypt-dev libfakeroot libffi-dev libgc1 libgvm21 libhiredis0.14 libllvm9 libltdl-dev liblzf1
  libmicrohttpd12 libnsl-dev libobjc-10-dev libobjc4 libomp-11-dev libomp5-11 libpfm4 libpocl2-common libradcli4 libtirpc-dev libucl1 libz3-dev llvm-9
  llvm-9-runtime llvm-9-tools openvas-scanner oracle-instantclient-basic ospd-openvas php-common php7.4-cli php7.4-common php7.4-json php7.4-opcache
  php7.4-readline postgresql-common python3-defusedxml python3-qrcode python3-terminaltables redis-server redis-tools sysstat upx-ucl xsltproc
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libncurses6 libncursesw6 libtinfo6
Suggested packages:
  glibc-doc locales
Recommended packages:
  libnss-nis libnss-nisplus
The following packages will be REMOVED:
  afl afl++ afl++-clang armitage bluelog build-essential clang clang-11 clang-9 commix fakeroot g++ g++-10 gsad gvm gvm-tools gvmd hashcat lib32gcc-s1
  lib32stdc++6 libbluetooth-dev libc-bin libc-dev-bin libc6-dev libc6-i386 libclang-common-11-dev libclang-common-9-dev libexpat1-dev libncurses-dev
  libpocl2 libpython3-dev libpython3.9-dev libstdc++-10-dev libtinfo-dev libtool llvm-9-dev locales mate-common metasploit-framework pocl-opencl-icd
  postgresql postgresql-13 python3-dev python3-gvm python3.9-dev set unicorn-magic zlib1g-dev
The following packages will be upgraded:
  libc6 libncurses6 libncursesw6 libtinfo6
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  libc-bin
4 upgraded, 0 newly installed, 48 to remove and 180 not upgraded.
Need to get 3,812 kB of archives.
After this operation, 1,122 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'

What should i do?

Edit: format command output

39
 
 

I ran yay -Syu and everything went well but electron25 has taken over 10 hours to update. Is there anything I could have done to speed things up?

Solution: I checked AUR and other people were commenting about similar issues. I swapped out the package for the -bin version.

40
1
submitted 6 months ago* (last edited 6 months ago) by governorkeagan@lemdro.id to c/linux4noobs@programming.dev
 
 

Is it not possible to run Fedora Silverblue in live boot like other distros? I wanted to test it on my laptop before installing.

The laptop currently runs ZorinOS.

Edit: I downloaded the ISO from the Fedora website - here. When I try booting from the USB it only gives me the option for installing it.

41
 
 

complete beginner so dont judge me but few days ago been trying to get more into linux so i installed arch. just today i deleted a separate partition on my disk and i couldnt access arch anymore, it wasnt showing on the bios. so i tried installing arch again using archinstall and it unmounted all the partitions on my disk.

is everything just gone now? i feel dumber and dumber as i write this because i just dont know what to do.

42
 
 

I wish to change the default Nautilus file dialog that Firefox uses, to Dolphin (my main file manager) but I cannot find any solution. Every single time I download an image, Nautilus is opened instead of Dolphin.

I tried adding GTK_USE_PORTAL=1 to my env variables, and It didn't work, then I tried changing mimetype and also did not work, I also tried modifying the xdg-portal (sorry if I'm wrong) to use xdg-desktop-portal-kde instead, but I cannot accomplish this since I didn't understand at all the Arch wiki and IIRC some files aren't exactly where the Arch wiki was pointing them.

As a last attempt, I open about:config in Firefox and search for widget.use-xdg-desktop-portal and set it to True, and still I keep having that old Nautilus as my file picker in Firefox, and this last thing usually worked well for me in Plasma.

Edit: I just restarted my pc and now randomly seems that Dolphin it's the file dialog for Firefox, I don't have a single clue how this happen.

43
 
 

I really wanna ditch windows so bad but last time I tried Linux I got issues with gpu driver and I'm wondering if this laptop has a good Linux support

44
 
 

I've been using Linux for the past 5 years, and recently I change from DE to WM (i3) which change it my whole workflow. Now I use a lot more the command line to do even simple things.

Recently I note that some relatives called me 'hacker' and I find that kinda funny, may be because I'm so accustomed to the terminal and to i3 that I don't notice that "it looks like a hacker thing".

45
 
 

I have a Lenovo Thinkpad x140e (AMD A4-5000M 1.5GHz 2MB L2 Cache Quad-core, 4GB DDR3) that I am currently dual booting with Mint and Windows 8. Mint feels sluggish compared to Win8.

I am not doing much with it, I need to run the Spotify app, and a webpage for hosting game tournaments. I am using the HDMI out on the laptop to a 4x4 Matrix.

I am looking for suggestions for a lightweight as possible distro.

46
47
 
 

I recently started using i3 (my first WM), and I used to use Plasma. In Plasma, when Spotify was opened, I just went to my system tray and there was a Spotify icon, which if I right clicked it, it let me close Spotify to system tray.

In i3 the only tray icons are the programs that are actually in the tray (Steam, e.g), so I cannot "close it to tray" as in Plasma.

48
 
 

SOLVED: Installed GloriousEggroll custom Proton. For Talos, also had to set launch options (PROTON_ENABLE_NVAPI=1 PROTON_LOG=1 %command%) or else I'd just get a black screen. First runs of games take a bit to get loaded, but launch without issue on subsequent runs.

I'm a recent convert to Linux - currently running Mint 21.2. I don't have a huge Steam library and thankfully most of the handful of games I play have worked fine - Deep Rock, Lethal Company, Sea of Thieves, Elite Dangerous (although that one is through Epic, thanks Heroic Launcher).

Two others that I've tried so far - Astroneer and Talos Principle II - don't seem to want to get started. When I hit play on either of those in Steam, it just stalls at "Launching..." I can cancel the launching and it'll go back to the Play button, but at this point Steam won't launch anything else. When I try to exit steam, the main window closes but its icon is still in the system tray icons. At this point, I have to kill the steam tasks before I can get it to re-open.

Since I'm seeing similar behavior for two different games, I'm guessing it might have something to do with the Proton config? I don't know much about it other than it being the main compatibility layer that gets the games running on Linux. In my Steam compatibility settings, I've got Steam Play enabled for supported and all other titles, and I've got "Run other titles with" set to Proton Experimental. I've seen that you can set the Proton version on a per-game basis as well. If that's the issue, is it just trial-and-error figuring out which version I need to use with each game?

49
 
 

I have installed ClamAV to scan for viruses. It has 2 commands for scanning: these are clamscan and clamdscan. I use clamdscan because it is faster.

However, clamdscan cannot scan within home directories, or any directory it does not have permissions for, even when running as root. clamscan does not have this problem.

50
1
submitted 9 months ago* (last edited 9 months ago) by governorkeagan@lemdro.id to c/linux4noobs@programming.dev
 
 

I've written a small bash script to help with updating various packages/dependencies on my machine (Pop!_OS) but it doesn't seem to be working correctly for flatpak. If I run flatpak update in the terminal it will show that I have updates, but when running the script there aren't any updates.

The Script:

#!/bin/bash

# Update package list
sudo apt update -y

# Upgrade the packages and dependencies
sudo apt upgrade -y

# Remove unnecessary packages and dependencies
sudo apt autoremove -y

# Clean package cache
sudo apt clean -y

# Update Flatpak
sudo flatpak update -y

# Update firmware
sudo fwupdmgr update -y

echo "All updates and upgrades have completed sucessfully!"

EDIT: Running flatpak update -y without sudo fixes the issue.

view more: ‹ prev next ›