Skip Navigation

User banner
Linux Questions

Members
0
Posts
48
Created
3 yr. ago

Linux questions Rules (in addition of the Lemmy.zip rules)

  • stay on topic
  • be nice (no name calling)
  • do not post long blocks of text such as logs
  • do not delete your posts
  • only post questions (no information posts)

Tips for giving and receiving help

  • be as clear and specific
  • say thank you if a solution works
  • verify your solutions before posting them as facts.

Any rule violations will result in disciplinary actions

🌉 bridged from !linuxquestions@lemmy.zip by Tidepool

marine aquarium on linux

Roku had their licensing for the aquarium screensaver pulled for selling out. Unfortunately, my special-needs nephew can't really appreciate the hilarity of a screensaver developer giving Roku the finger, and will meltdown when his roku fish go away on december 1st, so I'm trying to spin up a plan B.

The serenescene marine aquarium screensaver can supposedly run in wine just fine. I have an old intel compute stick from forever ago rotting in a box in the basement. lets do this.

It only has 8G MMC and 1G ram and an anemic chip, but it should be enough to run roku fish.

I have spent all day trying to get it running and theres just always something wrong. I can spin up alpinelinux on the stick. if I install in systemdisk mode, the resources are adequate. but I am just not able to get this thing to run the screensaver any farther than the config screen.

Has anyone been able to do this?

Mint 22.3

AMD firmware update 0ubuntu3.4 breaks graphical boot

So I'm in this predicament too, I didn't notice the warning about this update breaking my card and I've just gone through a full reinstall - didn't have timeshift installed, so I'm kind of gutted. Getting that sorted now so it's an option going forwards.

My question is, how do I go about downgrading to the prior firmware that isn't broken? And should I update back to the newest kernel?

Sometimes I feel like I'm getting the hang of Linux, and then something like this comes up and I immediately realise how very little I know. I'd be extremely grateful for any guidance.

github.com

Why does ZRAM outperform ZSWAP on my 4GB desktop machine used for browsing

I am a happy ZRAM user for several years now. Basically it makes my 4GB netbook totally usable running Gnome and a Browser with a lot of open tabs. After reading Debunking zswap and zram myths last week, I thought to give ZSWAP a trial, since the machine had a 3 GB swap partition anyway. I disabled ZRAM, and enabled ZSWAP and configured it to use the defaults with ZSTD. I would have expected, that my machine would perform as good as with ZRAM, perhaps a little bit slower because of accessing SWAP instead of just using the RAM. Surprisingly, my machine froze using ZSWAP after opening at most half the amount of tabs in my browser that I would open when using ZRAM. Was the first freeze on this machine I can remember, after I made the switch to ZRAM. I increased the zswap.max_pool_percent from its default of 20 percent to 50 percent, which improved the situation a little bit, but still the machine froze again. I saw the the physical swap was being utilized. I reverted back to ZRAM, where I configure by default the size to be double the amount of RAM, something like 8 GB (!), again with ZSTD. I could open an insane amount of tabs again, I saw that nothing was swapped to the physical swap, everything was in the RAM disk. No trouble, no freezing. My question is, why do I observe this? Should not ZSWAP with 50 percent of RAM and a physical SWAP partition outperform ZRAM, at least concerning the number of open tabs in the browser? (I could understand a performance loss because of swapping to the SSD.) Why does the out of memory systemd service not trigger properly with ZSWAP? Using Debian 13 on an Intel Celeron, in case that should be relevant. Update: • I understand, that ZRAM is just a compressed RAM disk and that the 8GB I configure is the size of the compressed data on it, not the actual size it takes in memory • I understand, that ZSWAP is a caching layer in front of regular swap, integrated into the memory manager subsystem of Linux According to my understanding, this still does not explain, why ZRAM outperforms ZSWAP. The physical RAM consumption of ZRAM with a lot of open tabs is roughly 2GB. ZSWAP should have had roughly 1.9 GB of RAM for compressed pages ) + 2.9 GB of physical swap. If we assume a compression factor of 3 this sould be roughly 1 GB of additional swap compared to ZRAM, which still performs worse. Again, in both cases ZSTD was used. Update 2: When I write 'freeze', I mean full out of memory crash when using ZSWAP. The machine 'freezes' fully, inclusive mouse cursor and nothing happens, even if I leave it alone a few minutes. Sorry, English is my 2nd language.

Solved

Group permissions on shared folder and subfolders?

I have two hard drives mounted under /data One is /data/Files and the other is /data/Backup I want to use a group ourgroup to allow five users user1, user2, etc. to all have read-write access. I made a group and added the users. I did: sudo chown -R :ourgroup /data I did: sudo chmod g+s /data I could not create subfolders in /data/Files So I did: sudo chmod g+w /data Still can't make folders. It says permission is denied. via CLI: mkdir: cannot create directory ‘/data/Files/NewFolder’: Permission denied via KDE GUI:

Could not make folder /data/Files/NewFolder.

Any guesses what I'm not understanding or what I'm missing? I did see something about ACLs, but I would prefer to try it this way first. ~$ ls -ld /data returns drwxrwsr-x 4 root ourgroup

Can I make a portable modem out of a linux phone?

Hi all,

I would like to use a linux phone with Ubuntu Touch or PostmarketOS to make a sort of mobile modem which, when my laptop connects to the phone's hotspot, would have Pihole for DNS and a VPN. Is this possible, and which general steps would you recommend to go about it? I have installed PostmarketOS on a Poco F1 and connected to my VPN using openvpn in the terminal, but then when I open a browser on the same phone and check my ip address it shows the address of the wifi I'm connected to, not the VPN. So it seems I have no idea about the architecture of this endeavor.

I hope to have this working by Christmas when I go to visit my parents. The intended internet connection would be

home wifi ---> linux phone [some level of privacy]---> my laptop wifi

Thank you in advance!

Solved

Why would EndeavourOS with XFCE4 being going back to the login screen immediately after logging in?

I am running EndeavourOS with XFCE4 and when I enter my password the underscore cursor appears in the top left corner for a moment then I get bounced back to the log in screen. This happened after an update. I don't think I made any other alterations to the system or installed new packages. From my searching around I tried the following from the terminal: ls -lah | grep -i Xauthority says that I have rw privileges. I've tried updating my system using sudo pacman -Syu and yay -Syu. df -h Says I have 18GB available in /dev/dm-0. I even deleted a couple files to make sure I had space available. I ran rm ~/.Xauthority. I made sure session-wrapper=/etc/lightdm/Xsession was in my lightdm.conf. I tried downgrading the xfce4-session package but that didn't work so I updated it again. I checked to see if I have libxfce4ui-devel installed instead of libxfce4ui. I only have libxfce4ui installed. I ran systemctl start xfce4-notifyd.service but it says "Failed to start xfce4-notifyd.service: Unit xfce4-notifyd.service not found". The user posting the question had the same result but that wasn't their solution. They had a fancy tablet plugged in or something. One of the sign in options in my login screen is for Weston and I am able to login fine to that. ——— I'm pretty stumped here. I've started getting into loops while searching for an answer online. I feel like it's probably something on the XFCE side but I'm struggling to find out where to begin looking. Some users said to check .xsession-errors but apparently "Failed to fetch NET NUMBER OF DESKTOPS; assuming 0" is a normal message. I don't know about the four other messages but they all seem similar. Any ideas? Even if it's rechecking something above. Maybe I missed something. Update: I downgraded my AMD GPU drivers through pacman and was able to get things working. Does anyone know why upgrading them might have caused my system to act this way? Would it be fine updating them in the future or do I need to make tweaks to my setup? Update 2: It seems like it may have been an issue with conflicting graphics drivers. I think at some point I may have installed something related to Nvidia but I'm not certain. It only became an issue after running the update mentioned earlier. I essentially removed everything and installed packages recommended by the Arch Wiki page for graphics. Everything appears to be working now.

Solved?

rm not freeing space, even after reboot?

My girlfriend managed to fill 100% of her / partition on Ubuntu, and now it won't boot. I can get into recovery mode and get a root console, and I've already used rm to delete several large files from her downloads directory, but the problem persists, even after several reboot attempts. ls no longer shows those files in the directory, and it should have freed up plenty of space to at least boot, but it's still not booting, and when I try to use the recovery mode option of 'fix broken packages', dpkg tells me it can't complete the action because it doesn't have the required ~250MB of free disk space. But, again, I just used rm to delete several hundred GB of files. That should be more than enough, but it's like the space isn't being freed up somehow. And, to be clear, I've done several hard reboots after deleting these files, still getting the same results. du -h does show her / partition at 100% usage, even after these deletions. (And the /boot partition is only at 49% full, so that shouldn't be an issue.) Is there some command I need to use to get it to rescan and realize that it actually has free space now? How much free disk space should Ubuntu actually need in order to boot, anyway? Am I barking up the wrong tree entirely somehow? Booting always proceeds as normal right up until the moment the GUI desktop should load, and then it's replaced by a single blinking underscore in the top left corner -- it briefly shows any text typed in, not long enough to actually enter any command, but otherwise doesn't respond to anything I've tried other than Ctrl+Alt+Del, which reboots it. I've been pursuing this free disk space problem because the only unusual thing she did before this problem started is that she downloaded a lot of videos and filled the disk completely. ——— Edit: No, the /home and / directories were on the same partition, so that wasn't the issue. Okay, so I managed to get it to boot, I guess? For the possible reference of others, here's what I did: 1: Used rm to delete even more things from her download folder. Deleted a lot of stuff. The ls -lS | less command helped here, to quickly identify the biggest, most space-hogging files. I basically just deleted the 10 biggest files before trying again. (After already having deleted some of the other big files in there.) 2: I used exit to go back to the recovery mode menu, then chose the option to resume normal boot. That once again brought me to the dreaded blinking underscore and nothing else. 3: As some here suggested, I then used the Ctrl + Alt +F3 key combination ... and that just magically fixed everything. As soon as I hit that key combo, the screen flickered for a bit with weird graphical glitches straight out of a Cyberpunk hacking scene, and a moment later, it was suddenly fully booted into the normal desktop GUI. At this point, I think I'm going to declare it 'fixed' and not fuck around with it any further -- I don't want to risk making things worse and losing this progress. Still not sure what actually happened, but it's working for now, and I'm a big believer in "If it ain't broke, don't fix it." Now that she has a GUI to work with, I'll ask her to move more of her downloaded files to an external drive, and I'll work on it further if and when something goes wrong again. Thank you to everyone who offered suggestions and tried to help!

Wayland (Tilling ) window managers?

I've been using Sway on Arch (with AMD GPU) for like 2 years, after switching from i3, and everything has been pretty good until it doesn't.

I switched my monitors to one model with high refresh rate and high resolutions (180Hz and 1440p) but Sway doesn't seem to like it... If you have the refresh rate higher than 60Hz, then suddenly artifacts appear everywhere (and no, this isn't my GPU problem, 100% sure) and this specific monitor is an OLED model, and Sway again doesn't seem to like it neither since the black colors randomly "flash", like that, you are looking into a straight dark color and you can see when suddenly the color turns a little brighter in the background, like an old TV.

And here I have two problems;

  1. I can't use HDR (can but it's basically an increase in the brightness and it doesn't look good)
  2. I can't use more than 60Hz, and no, VRR won't fix this, actually, if you enable VRR you monitor is locked to 60Hz anyway.

So basically, to use my monitor at its full strength I should use Plasma, which it's fine but I love Sway and Tilling Window Manager, or find another TWM that uses Wayland, what do you suggest?

And before you tell me something is wrong with the monitor/pc, I work on another PC with this monitor and I'm currently using Plasma in the same exact Arch installation where I have Sway installed with this problems, and none of these problems had appeared in almost 1 hour using the system.

I'm also aware that Hyprland exists, but I used it when I had NVIDIA some years ago and the experience was an completely headache + Current drama (I know this doesn't "affect" directly the product but....) + I don't really like that everything is so "Eye-candy", what I like of Sway is that is like an Vanilla i3.

And I also don't really like the idea of having multiple DEs/TWM installed on the same machine, this is probably some old myth that I read long ago that you shouldn't have installed multiple DEs since the config files may conflict, and for God's sake, I hate that installing Plasma also installs like 300+ packages that I don't have a single idea what they are... So I may just instead of distrohop I would TWM-hop or stay in Plasma for the best experience without enjoying the simplicity of an TWM.

Why do people hate Ubuntu but love Fedora?

I kinda get why people hate Ubuntu, corporate enshittification attempts (ads in terminal) and various attempts of non-standard standard creation with partly closed source (snaps). Why don't people hate fedora for being derived from a corporate OS paradigm and being geared towards achieving the goals of the red hat org interfering with community driven OS stuff? The last I saw of it inexplicitly was the proposed AI integrations. I do understand there's been several spinoffs to even re-create redhat without having the guys in red hat be in charge (alma, rocky, etc), so some contention appears to exist, I just don't see what's going on properly. EDIT : I guess Open Suse is too niche and german to recieve the same hate? EDIT2 : OK, my mistake in perspective, but you need to throw me a bone in that Red Hat corporation is "under legal responsibility" of the Red Hat Company/business/whatever, and has employees working on it. The idea that Fedora is RHEL with things removed is pretty close to RHEL is Fedora with things added, especially since it's "Oh, we have X Red Hat employees working on Y features for Fedora , and Z Red Hat employees working on features for RHEL". The business entity of Red Hat is the one at the head (more or less) of both endevours, which leads to my question. Why does this corporate relationship and "steering" not cause any ire? It's even owned by IBM at the end of it all.

how to set micro as editor in yazi file manager?

ive set micro as my editor in yazi but when i hit Enter it opens a new document instead of editing the one ive selected. in my TOML i have this under opener.

 
[opener]
edit = [
	{ run = 'micro "$@"', desc = "$EDITOR", block = true, for = "unix" },
	{ run = "code %s",          desc = "code",         for = "windows", orphan = true },
	{ run = "code -w %s",       desc = "code (block)", for = "windows", block = true },
]

any help would be great.

Running a linux distro installer from a working system?

Title. I know there are tools to set up a linux distro's installer on a USB flashdrive. What I'm looking for is slightly different: I want to install a linux distro (a Debian derivative, but am still unsure which) on a USB hard drive, but I want to do it from a running system, rather that have to boot into installer mode. The rationale is that this is the only active machine I have ATM. I guess this exists since that's how "live distros" with installers even function in the first place, but I haven't had much luck searching for information.

Validating hashes and signatures?

Relatively Linux Newbie here. Been playing with flavors of Linux/Unix/BSD for a few decades but only recently moved to having one as my primary OS. My question is: Since I don't think of myself as a person of interest, is there a solid reason to do things like validate hashes or signatures when I get packages from a non-standard repo? For example, I want to do something with a tool that doesn't have it's own repository. They have a website with a .deb or .tar.gz download and an accompanying signature file or hash. There are instructions for grabbing the public key from their domain so I can verify the file or there is a hash text string. I can go verify a hash or signature... but if I got the file and the signature from the same place . . . If an attacker wanted to hand me bad code, couldn't they also hand me a bad signature/certificate/key? If I was given a flash drive with a tool by a random person, then I might want to validate it, but if I download a file from an org that I went to on purpose then the org giving me their key doesn't seem to do much. Aside from file corruption, there's nothing to prove and a corrupted file is likely to fail in other ways such as a .gz checksum. I'm not saying the practice is bad. But if I'm not important enough to have someone waiting to intercept my random app download and give me a backdoored version and I trust the developer to not be giving me malware in the first place, is there a need to verify?

SOLVED! Laziest firewall?

Solved: OpenSnitch, https://github.com/evilsocket/opensnitch available via Software Manager on Mint as well. ——— There was a windows firewall (tinywall?) that worked like this: 1. Something wouldn´t work on the internet. 2. I'd query the firewall to see what was just blocked. 3. I'd whitelist that traffic. Pretty painless and I never was forced to think about the firewall until absolutely necessry, and then only to the least possible amount. Is there any firewall on Linux that works similarly? Running Mint.

SOLVED

Is there a tool to replicate a filesystem?

Hey all! Let me go stratight to the point: I have an audio player in which I want to clone my ~/Music directory when I connect it to my computer. The only relevant thing about it is that it's a barebones filesystem and I cannot run cool stuff like Syncthing on the player (otherwise this question would already have a solution). Right now, my solution is that I connect the player to the computer and manually copy file to and delete files in the player. As you may have guessed, this is an error prone process. In order to solve that, I want to run a single command that clones ~/Music (src) into /path/to/player/Music (dst). My requirements are: • All new files in src MUST be copied into dst. • All files no longer present in src MUST be deleted from dst. • All files present in both src and dst that have more recent modifications in src MUST be copied and overwritten into dst. As you can see, my player's filesystem is a strict replica of my main computer's. Now, I know I can write a Python script in an afternoon to do just that, but I want to know if there are any good tools first to do this. I searched the web in hope that rsync would help me here, but the only answers I can find are for buffier cp. It may be that I have a vocabulary problem and I'm not searching for the correct terms. I'd love to read your ideas! A note about LLMs: I'm not interested at all in any comments about how llm-of-the-week coded this in a moment, I asked fake-chat and here's what it said or whatever. If you are not a human that can be bothered to write an answer, I won't be bothered to read it. Thank you!

Linux changing sudo/admin status requires restart?

Distribution: Fedora Linux 44 (Workstation Edition) I created a new Linux user and gave it admin with the gui interface, I then switched to it, but could not run sudo commands. So I entered sudo usermod -a -G wheel [USER] to grant sudo rights through the cli, but still, the new user could not use sudo. I logged in and out multiple times, but it did not help. Then I restarted Linux and suddenly the new user could use sudo. To test if it was now working, I striped sudo rights from the new user. But then I realized that the new user could still use sudo. So it seems that sudo privileges only update on operating system restart? Is this correct, or is something wrong with my system? Sorry if this is a stupid post

To people who are using a non-systemd distro with Nvidia proprietary drivers

Hi there! I recently switched from Arch Linux after a decade and now settled on Void Linux. So far so good. However sometimes I gather minor things here and there. My current issue is, the proprietary drivers of Nvidia still seeking systemd for some parts and not sure how to walk around this. I cannot suspend my PC because when I wake it up I always see something about nvidia-sleep.sh. Probably it cannot wake the GPU up properly.

 
#!/bin/bash

if [ ! -f /proc/driver/nvidia/suspend ]; then
    exit 0
fi

RUN_DIR="/var/run/nvidia-sleep"
XORG_VT_FILE="${RUN_DIR}"/Xorg.vt_number

PATH="/bin:/usr/bin"

RestoreVT() {
    #
    # Check if Xorg was determined to be running at the time
    # of suspend, and whether its VT was recorded.  If so,
    # attempt to switch back to this VT.
    #
    if [[ -f "${XORG_VT_FILE}" ]]; then
        XORG_PID=$(cat "${XORG_VT_FILE}")
        rm "${XORG_VT_FILE}"
        chvt "${XORG_PID}"
    fi
}

case "$1" in
    is-suspend-then-hibernate-supported)
        # suspend-then-hibernate only works correctly if $SYSTEMD_SLEEP_ACTION
        # is supported, which was added in systemd 248.
        systemd_version=$(systemctl --version | head -n1 | cut -d' ' -f2)
        if [ "$systemd_version" -gt 247 ]; then
            exit 0
        fi

        echo "systemd version $systemd_version is too old to support suspend-then-hibernate with NVIDIA." 2>&1
        echo "Please upgrade to systemd 248 or newer." 2>&1
        exit 1
        ;;
    suspend|hibernate)
        mkdir -p "${RUN_DIR}"
        fgconsole > "${XORG_VT_FILE}"
        chvt 63
        if [[ $? -ne 0 ]]; then
            exit $?
        fi
        echo "$1" > /proc/driver/nvidia/suspend
        RET_VAL=$?
        #
        # If suspend/hibernate entry fails, switch back to the active VT
        #
        if [[ $RET_VAL -ne 0 ]]; then
            RestoreVT
        fi
        exit $RET_VAL
        ;;
    resume)
        echo "$1" > /proc/driver/nvidia/suspend
        RestoreVT
        exit 0
        ;;
    *)
        exit 1
esac

I'm using Niri so no desktop environment here if that helps. My driver is nvidia580. Also using greetd (w/ tuigreet). So, what can I do here?

 
Linux void 6.18.38_1 
pkgver: runit-2.3.1_1
Nvidia 580.159.04 

Edit: Tried nouveau and suspend works with it. However because Nvidia didn't provide firmware blobs for my card (GTX 1080) I cannot use the open drivers well. Edit 2: Tried to give power management from acpid to elogind, thinking it might help to fool this script since it's systemd's standalone part here. Currently elogind both handles my seat and power management. I actually had some hope here, but sadly didn't work. Here are my elogind config files anyway:

 
/etc/elogind/logind.conf.d/logind.conf
[Login]
KillUserProcesses=no
HandlePowerKey=poweroff
HandlePowerKeyLongPress=poweroff
HandleRebootKey=reboot
HandleRebootKeyLongPress=poweroff
HandleSuspendKey=suspend
RemoveIPC=yes
 
/etc/elogind/sleep.conf.d/nvidia-sleep.conf                                    
[Sleep]
AllowSuspend=yes
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no
#SuspendMode=deep
SuspendState=mem standby freeze
HandleNvidiaSleep=yes

Nvidia, this is for you: image

Could use some advice on how to set up a Windows partition

Hey y'all, I lack the vocabulary to search for what I'm looking for. I have a bazzite desktop, and I found an old nvme with Mint on it. I want to wipe the mint ssd and install windows onto it, and then install that into my bazzite PCs second nvme slot. I know there's some stuff I need to do to make sure windows doesn't fuck my bootloader (I think?) but I'm not sure what. And the stuff I've been finding is about setting a partition up on the same drive, usually setting up a Linux partition on a Windows drive. So I'm not sure how much of this applies to my situation. I would really appreciate some help/ being pointed in the right direction haha

Early signs of SSD failure or a problematic installation?

I have been having some issues lately with fedora. This install was pretty reliable and never threw any errors until recently. I also noticed really slow read and write speeds one day. Like 2 times slower then a hard drive. But that went away after some use. Later that day I updated and it wouldn't boot. Just a blank screen. I was able to Ctrl alt f1 into a login sceen and run dnf and update. That fixed it. Then comes the second issue. I was programming and all of a sudden my python file disappeared out of thin air! Which is funny because I remember saving it. So I downloaded a backed up copy from my nas, and it disappeared again. I figured it was a problem with Kate so I reinstalled it and it worked and saved files without removing them. Then I shut the computer down when I was done and this morning it boots to a blank screen. And the initial fix I did a while ago doesn't work. I'm pretty stumped on it and I did capture some photos. image It gets stuck loading this process image Same here image Then it passes them and tries something else image Then we enter this never ending loop. So what do you guys think? New install of fedora needed or do I need a new ssd?