![Community banner](https://programming.dev/pictrs/image/2afd950c-e0be-4edd-a92c-5bfe48d66ac8.png)
![linux4noobs](https://programming.dev/pictrs/image/881b3e0d-8ebe-43f5-afc3-c30fdc29bfba.png?format=webp&thumbnail=48)
linux4noobs
- how to use GNU stow
I've tried to stow dot files by following online blog/form, and it worked now, I tried to manage my $HOME/bin directory with stow, but it didn't
$HOME/.dotfiles directory structure
sh /home/USER/.dotfiles/ |-- bash | |-- .bash_aliases | |-- .bash_logout | `-- .bashrc |-- .git | |-- branches | |-- COMMIT_EDITMSG | |-- config | |-- description | |-- HEAD | |-- hooks | |-- index | |-- info | |-- logs | |-- objects | `-- refs |-- git | `-- .gitconfig |-- .gitignore |-- install.sh |-- Makefile |-- .stow-local-ignore |-- vim | `-- .vimrc `-- zsh
$HOME/bin/src directory structure
sh /home/USER/bin/ |-- src | |-- backup | | |-- backup | |-- clone | | `-- clone | |-- epub2html | | `-- epub2html | |-- gnome-nightlight | | `-- nightlight.sh | |-- list | | `-- list | |-- new | |-- pomorodo | | |-- notification.wav | | |-- old_pomo | | |-- pomorodo | | `-- test | |-- revoke_exec | | `-- revoke_exec | |-- rm_exec | | |-- rm_exec | | `-- tmp | |-- install
Where is my mistake and thanks in advance. - How can I easily and conveniently transfer files wirelessly between my linux computer and android phone?
cross-posted from: https://lemdro.id/post/9853743
> I'm running OpenSUSE leap 15.5, When I was on the linux mint, I was using warpinator but using it on openSUSE is troublesome and I wish there was a linux version of blip but unfortunately there is not.
- Is this an issue in my code or in my Linux distro?
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. - Is there a way to automatically clean my home directory of app-specific directories?
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
- WWAN unlocking on Spiral Linux
(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 :)
- Had you tried dmenu-extended?
So I was looking for some kind of Ulauncher functionality (file/directory search) and direct url opening from rofi or dmenu and I found dmenu-extended, but I doesn't work at all for me and maybe someone more experienced can help me with this.
My first problem is that I cannot make nomacs the default image viewer with dmenu_extended, although the default image viewer in my system is nomacs, when I open any file image with dmenu_extended, it always open it with some basic image viewer but not with nomacs, to launch it with nomacs I need to first type 'nomacs:' and then the file route.
And other problem that I'm facing is that when I try to open Steam (installed as a flatpak) it never opens, instead gives me this error message:
xdg-open: file '/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam --file-forwarding com.valvesoftware.Steam @@u' does not exist
- Distro has some quite outdated packages, how to deal with it?
I started to use Linux Mint on my VM, however it seems like it uses a different channel for packages, which means I get some outdated packages such as D compilers, which makes me unable to compile my programs.
While the D compilers have some userspace installer scripts, they're userspace only, meaning they need initialization scripts, which only work until the end of the given shell instance, which makes it particularly hard to use in certain contexts.
Is there some "untested" or similar branch to get some newer stuff? The compilers don't seem to interfere with anything system level, so it should be fine.
- Make sudo command not need sudo?
I would like to set a specific command to not require sudo privileges, is there a way to accomplish this? I know you can add commands to the sudoer file to allow certain commands to be used by non root accounts, so maybe there is something similar for adding commands to allow regular users to use?
- Where to find kernel version on GitHub?
I'm looking to move to Linux, but I've seen there is a gaming bug related to the kernel. The issue is reportedly fixed in 6.9, but I can't find the version used in the current release on GitHub.
I'm currently looking at Bazzite, but knowing how to locate the kernel version (prior to download) would be helpful for any distro.
- How to easily create a mirrored keyboard layout/layer that can be accessed with the Alt keys?
Inspired by this post by Randall Munroe.
I want something that does basically the same thing - mirror the keyboard's letter and common punctuation keys - but while pressing either of the Alt keys instead of using CapsLock. Also, I use Dvorak, not QWERTY.
I'd rather use my thumb as the modifier so that reaching the shift key in addition to the modifier key doesn't mess with my finger movement too much, and this way I'll be able to type one-handed with either my left or right hand. Also, I never use any of the Alt shortcuts that use the letter/punctuation keys, so getting rid of those shortcuts won't be a problem
Any ideas on how this could be accomplished? I'm on Linux Mint 21.3 Cinnamon (but also have a Mint MATE laptop that I'd like to replicate this on, if possible).
Edit: All I've tried so far is checking the keyboard layout options to try to turn off Alt shortcuts activating the top bar of applications, to free them up for the shortcuts I'd need, but no luck so far.
- Can't press that key: F35
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?
- Recovering user files from a broken laptop with disk encryption
Hello, I broke my laptop about a week ago and could use a hand figuring out the best approach for recovering the files when my new laptop arrives
The laptop was running fedora and would have used whatever encryption option is default in the fedora installer (The laptop required a password before it'd fininish booting so I'm pretty confident it was encrypted), which I believe would be LUKS?
If I understand correctly the ssd is a socketed sata drive, so I figured I'd buy a sata drive enclosure when I get my new laptop that'd let me plug it in via USB
I have the password I needed to boot when the device was working, if I get a sata enclosure can I access the files?
Any input, guidance, thoughts or suggestions are appreciated :)
- how can I remove an LLM from my Ubuntu computer?
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
- Loudness equalization on linux
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
- How can I prevent my PC from connecting to the internet without a VPN connection?
I am running EndeavorOS with XFCE 4 and am using Mullvad as my VPN. To be clear I know Mullvad's client has a lockdown and kill switch mode but it seems like after updating it my PC is connecting to the internet without it. I could be mistaken but I don't think it's blocking anything at that point. I would likely have to wait until the next Mullvad update to test this for sure though. If someone can either confirm or deny my suspicions I would greatly appreciate it because I wouldn't have to find another work around.
All that said if that is the case, how can I prevent my PC from connecting to the internet when Mullvad is not running?
Maybe there's a simple option like binding the network manager to mullvad client application? Ideally I'd like to avoid either not using their client and using some thrown-together update script like
> #!/bin/bash
> xfce4-terminal --command="sudo pacman -Syu";
> /opt/Mullvad VPN/mullvad-vpn";
---
Edit: Maybe it is connecting after the update but not showing the GUI. I came across this post on GitHub
> I have a Mullvad desktop app set to launch on start-up. Also "Start minimized" is set to false. At the system start-up I get connected to the VPN, so the Mullvad daemon apparently starts, but no application window launches. I have to launch it manually.
I did not check to see if this was happening after I updated.
- SSH through VPN
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?
- [debian] What's the best way to get certain programs to run on startup (with sway)
I have been using sway (basically i3 for Wayland) instead of a traditional desktop environment because it really makes a difference in my laptops performance.
But apparently sway ignores .desktop files which was how i was autostarting things on KDE.
Is the best way to handle this by going through the sway config? If not, how would you do it.
Bonus points if you can tell me how to get the autostart programs to also open in specific workspaces.
- Fedora rock!!!
Previously used Endeavors, OpenSUSE, PopOS and GTA run 5 fps now on Fedora it run 25-40fps 1080 high
- Should I nuke my win10 install?
I got most of my games run pretty good now with the help of Steam compatibility and Wine now what should I do moving forward, win11 is a strong no go because I heard rumors about Microsoft locking bootloader with software update and I can't stand fucking copilot/edge, should I wait until EOL or do it now? I'm pretty noob when it comes to Linux but I know what distro I'll use (Fedora+KDE). Sorry for bad grammar English is not my first language
- How to find out what bootloader I'm using and then disable the 5 seconds delay?
I never booted into more than one OS, I only have one. I've no use for the 5 seconds for selection.
I've no clue what bootloader I have... I think not grub, because I cannot find any grub files besides
/etc/grub.d/
with 2 files:15_ostree
35_fwupd
and
grub-mkconfig -o /boot/grub/grub.cfg
results inbash: grub-mkconfig: command not found
I remember in the past turning off the 5 seconds, but I reinstalled my system after Plasma 6 release.
I use EndeavourOS with KDE if that matters/helps.
- Question on chown in parallel
Hello I am seeking a simple solution to running a list of "chown -R" <mydir>" commands in script.sh
It takes a long time to sequentially execute all of these chown commands recursively because the directories have so many files. I want to be able to tackle the root level directories in parallel to speed things up. I imagine there must be a simple way to do this while keeping the list of commands in a single file. xargs and some of the other things I saw online looked like bad fits or would be over engineering this problem.
- [SOLVED] Bazzite is great, but: "How the hell do I install stuff on Bazzite to control my laptop?!"
Pretty much the title. Maybe to add a bit of a backstory: Bazzite was awesome at first, all games ran on the first try!!
But then: I still haven't installed my vpn, let me quickly do that. Oh wait, there's no flatpak for my vpn, that's right.
Aight, lemme first install tlp and get these laptop fans under control. But wait, how? There's no flatpak. If I install it in distrobox, it has no effect, which kinda makes sense.
Whatever, lemme try auto-cpufreq. No flatpak, so distrobox it is. To no surprise, it fails. "System has not been booted with systems as init system."
Same with Goverlay. So then I just fell back into my chair and screamed: "How the hell do I install stuff on Bazzite to control my laptop?!"
- How to access files on other drives?
Hey guys, so i just now pulled the trigger, formatted my windows installation and installed Linux for the first time. I went with bazzite, which seems very gaming friendly and idiot proof with its rollback functionality.
Now to the issue: I have 3 drives in my computer, one 500gb SSD which i used for the OS. This one can be accessed fine as expected. The other two, a 2tb SSD and 1tb HDD however, dont. I cant seem to find a way to access them, and i have all my media on there / want to install games onto them.
How can i access them, and tell the OS that these two are also part of its system?
- [Pop_Os!] Problem building Heirloom Toolchest (btw any better than GNU? Or even compatible with modern Linux?)
Problem is it can't find
mkdev.h
:cpio.c:101:10: fatal error: sys/mkdev.h: No such file or directory 101 | #include <sys/mkdev.h> | ^~~~~~~~~~~~~
Now a UNIX system, especially both POSIX and SuS is impossible without mkdev.h --- at least a shitty wrapper. And when I googled mkdev.h to see the specifics the first result was an LXR.
WHY DO MY SYSTEM HEADERS DON'T HAVE A BASIC UNIX HEADER FILE THAT LOONIX HAS? (OR HAD)
Problem is I really wanna make Heirloom. I whole-heatedly disagree with GPL because RMS drinks children's blood. I refuse to use free software and in fact I use Pop_OS! which has more binary blobs in it than a 80s musical composer for Disney movies has had dicks in him. Heirloom is based on Solaris' utilities and they are unfree as my semen is to super modles. I WANT THIS.
joking aside, what is going on here?
ls -R /usr/include/ | grep mkdev
Exits with 1. Nothing.
So I guess this is a Pop_OS! thing? Should I install some package to get this header?
Or was it removed from 6.8?
uname -r => 6.8.0-76060800daily20240311-generic
Thanks.
- Question related to script distribution
I am sorry and aware this is the wrong community. However, I am unable to find Ask Programmer.
I wrote a small bash script, and I would like to share it on GitHub. However, to operate probably it requires dir with some files in user $HOME dir.
The only solutions came to my mind were, tar the directory BUT is this pragmatic solution?
- Help Needed: Configuring ASUS Fingerprint Sensor on Fedora
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.
- Fedora is "the gaming" distro and perfect for Linux beginner confirmed (at least for me)
why? because it's not triggering an obscure anti cheat on a game I've been playing when using wine (performance is still the same tho), everything else is just work no missing dependencies and it's doesn't get in my way like other distros (I tried Arch, Opensuse, Ubuntu, Debian), just to clarify I'm a complete noob when it come to Linux so maybe if I know better I probably make everything works just like Fedora
- Is there any online service that I could use in order to have a private Debian repository?
Or maybe a way to use existing cloud services like Google Drive or OneDrive or Dropbox for this purpose?
I just have a bunch of .deb files and I think this could be really useful. Plus I will be offloading some of my storage 😁
- vlock timeout inactivity
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.
- The most recent version of KeePassXC loads indefinitely when trying to open database. Any idea how I can fix this?
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.
- Not able to launch .desktop files from desktop.
I am using kubuntu and recently my .desktop files no longer launch from my desktop. If I go to ~/desktop in dolphin I can double click the same files and they launch just fine from there.
When I do try to launch from desktop it just shows a blank file icon very briefly.
Only new thing I've done since they stopped working is install virt-manager and QEMU to set up a Windows vm.
I also tried creating a new user and the problem still persisted, which means it is not anything in my home directory.
I've tried googling but haven't found anyone with the same problem as me.
- Server/Headless Linux: enable automatic login to a user on boot but when the user logs out, it will not re-login back into the user?
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? - Enable Wake On LAN (WOL) On Full Disk Encryption Boot To Ensure WOL Is Enabled If System Is Rebooted On Full Disk Encryption Unlock Menu
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?
- NOOB having hard time install virtualbox
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 listapt-get update
and then obtain libc6 package informationapt-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 gotReading 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
- [Solved] electron25 is taking over 10 hours to update on Arch Linux; is there anything I can do to speed this up?
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.
- Fedora Silverblue Live USB?
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.