Search
swap partition problems
Hello everybody! here's the problem:
In my EndeavourOS laptop I had a /swapfile
, but couldn't take snapshots with snapper because of it (if I understood correctly). So, I created a 16Gb swap partition using GParted from a live USB. Then, I edited /etc/fstab
to remove the line about the swapfile and to add the newly created swap partition:
undefined
UUID=506d48e6-1cc0-4136-ba55-6f2f187bcdb1 swap swap defaults 0 0 # /swapfile none swap sw 0 0
I took the UUID from
sh
$ sudo blkid /dev/nvme0n1p3: LABEL="swap" UUID="506d48e6-1cc0-4136-ba55-6f2f187bcdb1" TYPE="swap" PARTLABEL="SWAP" PARTUUID="b4543e4e-4623-4317-99aa-086b0e62836e" ...
if I run sudo swapon -a
it gets enabled correctly and it all works fine. The problem however is that when I reboot the machine, it gets stuck in the systemd screen saying "a job is running for /dev/disk/etc..." forever, and the only way I have to log in is to boot from a live
Fixing wrongly set environment variable in Flatseal (when Flatseal won't run)?
SOLVED: BananaTrifleViolin's post contains the solution.
Flatseal won't start by itself anymore, which is a known issue. I got it running by running
undefined
GSK_RENDERER=gl com.github.tchx84.Flatseal
and inspired by a response in the above linked issue, I wanted to add GSK_RENDERER=gl
as a variable in Flatseal so I could open it without having to manually run this in the terminal.
However, I seem to have screwed that up, and written GSK_RENDERER=ng
instead, because the application still won't run, and now I get the following output anytime I try to open it by the method above:
undefined
(com.github.tchx84.Flatseal:2): Gsk-WARNING **: 22:09:54.997: Unrecognized renderer "ng". Try GSK_RENDERER=help MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:782: FINISHME: support YUV colorspace with DRM format modifiers MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:814: FINISHME: support more multi-planar formats with DRM modifiers
Suspend doesn't work on my Fedora Workstation 41
SOLVED
Edit: Solved using workaround of creating a systemd service that disables GPP0 wakeup: https://forums.linuxmint.com/viewtopic.php?t=364220&start=20
Hey everyone!
The suspend feature has never worked on my system, so I always turned it off in the settings. But now, with the electricity prices going up in my country (we have the most expensive electricity in Europe, lol), I figured it’s a good time to tackle this.
When the system tries to go into sleep mode, it just wakes up right away, and the monitors don’t show anything (no signal). I’ve got a backlit keyboard and an RGB mouse, but they don’t light up during this, and the caps lock key doesn’t respond when I press it.
I’m on kernel 6.12.7 and I updated the BIOS a few days ago, but the problem is still there.
My hardware:
- CPU: Ryzen 5 5600
- MOBO: GIGABYTE B550 GAMING X V2 (rev. 1.3)
- GPU: RX 6700 XT
- PSU: SilentiumPC Supremo M2 (600W I guess?)
- CASE: be quiet! Pure Base DX500
If anyone has any ideas on ho
Issues with Discord
Hey all, had some weirdness with the native discord app on Arch today. Was trying to screen share and discord just noped, went hunting for logs but no dice. I tried a few different programs with screen share, but it just seems to completely nuke disord. Any ideas? Anyone else have the same issue? Any clue where I might find crash logs?
Edit: installed Vesktop, problem went away, thanks everyone for the input.
Adjusting screen resolution/font/icon size for a new user
As per the title, I have a newcomer into linux that handed me a laptop to install with a recommended distro.
Being a user very much used to windows, I opted to install Lnx Mint, considering this person may also want to game a little bit in the future.
Install went flawlessly but the screen resolution is so high the fonts and desktop icons were so small it made difficult to read the icons text.
I tried to tweak the icons and fonts to usuable size but the overall feel of the desktop is still... stretched, for lack of a better word.
The laptop is a mistery brand, running a full Intel machine. And I say mistery because when I took a look into windows, the touchpad was identified as a Lenovo, but the machine is just an unbranded generic one.
Hardware profile
- Intel Core i3-500SU
- 8GB RAM
- Intel HD Graphics 5500 (BDW GT2), 1920x1080 max resolution, on 14.2 inch screen
Any suggestions on how to solve the issue?
edit
The solution was a mix between changing desktop environmen
Plasmashell started crashing every time I interact with the panel
Fedora KDE, Wayland, Nvidia, proprietary drivers. Everything worked fine until suddenly plasmashell started crashing every time I interact with with the plasma panel. On x11 this doesn't happen, but instead the the whole video freezes while audio continues, and after a while it comes back. The plasma panel may or may not be frozen after this.
Is this an Nvidia problem again?
Logs coming in a couple minutes
Tech support: Postfix + Dovecot mail server, can't receive mail or log in via Thunderbird
Hi there, was thinking around of the best place to post this. Initially I thought maybe the Dovecot mailing list but I'm not sure if this is a Dovecot issue or if the issue lies with Postfix, so I figured maybe a more general Linux community. If people have suggestions about where I could post this that may have more people see it who are able/willing to help, I would also appreciate that.
I apologise, this post will probably be quite long, so I really do appreciate if anyone takes the time to read it and give advice.
Anyway, I was following this tutorial to set up a mail server with Postfix and Dovecot. The tutorial is for Ubuntu but I am using an Alpine Linux server, however the tutorial mostly concerns configuring Postfix and Dovecot which is distro-independent.
Deviations from the tutorial
I followed the tutorial with the exceptions of the following (deviations listed in order of the part of the tu
Internet strangely stops working after one day of installation.
This is an Acer Aspire one laptop, with a 32 bit CPU and Debian 12.7. Whenever I install Linux on it, the Internet works for about one day. And when I boot it up the next day, it just stops working. This is the case for WiFi, Ethernet and USB tethering via Android.
After running networkctl it gave me this:
I can ping 8.8.8.8 in this state, but not gnu.org. I can't open websites in Firefox either.
Then I ran "sudo systemctl start systemd-networkd". The networkctl output changed but everything worked exactly as the above two images. Couldn't open websites still.
Yesterday everything was working perfectly
Edit: Thanks to [@nanook@friendica.eskimo.com](https://friendica.eskimo
GDM doesn't have the session type chooser on EndeavourOS
Today I needed to do a clean install. I downloaded and installed the distro as usual choosing similar installer options as I did in the past (however I didn't install CUPS this time because idk what's up with that vulnerabilities).
After a reboot and fixing some systemd-boot freeze issues in BIOS, the system started and the GDM login prompt appeared without any issues. But there was no usual gear icon in the corner that lets you choose between Wayland, X11 and GNOME Classic modes.
I tried to log in but I got my usual Wayland issue (2/3 of the screen is black and 1/3 is artifacting). So I needed to switch to X11 to figure out if I can do anything about the issue this time.
I rebooted to fix the display issue and entered CLI mode (ctrl + alt + f2). I checked for xorg packages and they were indeed installed. However doing startx gave an error about XAuthority not being configured and launched an empty session with 3 or 4 xterm windows.
For those thinking of the 61st /usr/lib rule, I d
I have a laptop with pop os and it will not let me format the USB to FAT
[Solved] just had to create a new partition and then it lets me select FAT.
I'm not sure what happened, I remeber using gnome disks to do this before but it isn't working now now the only options I get are (MBR/DOS) or (GPT) and neither one will let me access the actual USB afterwards in anything other than GNOME disks. I can't use file explorer and add anything to it.
What is going on here? I swear this worked well before but now something has changed suddenly and I can't get it to work anymore.
When I restore a Debian disk image to the USB it will finally show up in the file explorer but I can't add anything to it and the only options I get to format it are those ones that won't let me access it in the file explorer and actually use the USB.
What am I doing wrong?
Question about updating packages with aptitude in Debian 12
[Solved] So I disabled the CD ROM repository using the software and updates application on Debian 12 because it kept asking me to insert the CD ROM when I would try to install stuff.
After disabling it I used Aptitude to update the packages I had already installed but I noticed that before I disabled the CD ROM repository it told me that because I didn't have it inserted that it used some older versions of software.
After removing the CD rom repository it just updated everything and didn't show that message.
My concern is that I know Debian uses some older versions of stuff because of its stability and I read very briefly about "Franken Debian" situations where people use versions of stuff that weren't intended to be used with the stable version of Debian.
Did I mess up by doing that and create a situation like that? And if so, after a fresh reinstall when I get here again is virtually mounting the USB stick I have the Debian DVD ROM on an option for it to stick with that CD ROM
user is not in sudoers file
[Solved] just had to log out and back in Original post: I'm running Debian 12 and I set a separate root password from my username password.
When trying to install a .deb file I noticed that it said I was not in sudoers file so I looked it up and tried the command SU and successfully entered my root password.
The I tried doing
sudo usermod -aG sudo [username]
And then I verify the addition of the user to the sudo group with
groups [username]
And this does indeed show that I am in the sudo group however when I try to install a .deb file after that or even sudo apt update its still telling me I am not in sudoers list.
Any ideas what I'm doing wrong here?
This maybe a strange question but can I run a Linux app in a separate container/sandbox? Without its dependencies bloating my host OS?
Because I hate Electron
Bazzite removed control over my drives
I don't know when this happened. There was a system update a few days ago which went fine. Two days ago I wanted to download something onto one of my HDDs and got an I/O error. After investigating I found out that I no longer am the owner of any of my drives and can't create/delete any files. Chmod/chown didn't help. Editing the fstab file didn't help since it had the exact same contens as when everything worked. Shuffeling exec,rw around has no effect. Mounting/unmounting didn't do anything. Phisically removing the drives also didn't work. Adding a completely new drive automatically set it to restricted. How the hell does soemthing like this happen? I don't want to do a system wipe.
Edit: Windows is to blame
It appears Windows did something to the drives the last time I used it which messed up the partitin tables and prevented Linux from mounting them correctly. After poking around in the journalctl like suggested I found an entry with the error message. Googling brought
Cronjob with hdparm -y
to spin down hard disks?
Solution:
hd-idle is the way to go (if you read their README, they explain that most drives don't support idle timers)
I've been looking into spinning down the drives of my NAS, as I use it infrequently and that brings power drain down from ~30W to ~17W.
Problem is, hdparm -S
doesn't seem to do anything for these particular drives: if I set it and wait for the appropriate amount of time (eg. 5 seconds if set to 1) the drives are still reported as "active/idle" and power drain doesn't go down.
Both hdparm -y
and hdparm -Y
work fine, but I don't seem to be able to find settings for them in tlp (probably because they are commands rather than settings?).
Besides the caveats about disks living longer if they are kept spinning, are there reasons why I shouldn't setup a cron job (well, a systemd timer) that runs hdparm -Y
every 10 minutes? (for example, could hdparm -y
cause errors if run while the drive is being backed up?)
PS:
Setting up an alarm
I have installed Linux Mint 22 in a DELL laptop with a buggy ACPI implementation (the kernel complains about it during boot). The laptop hangs if it goes to sleep (I tried various Linux distros/kernel-versions, the result is the same).
Because of that, I have disabled SLEEP in the firmware (latest version for that laptop btw). So basically, when you close the lid, nothing happens (it just locks the screen).
However, sometimes you might be in a hurry and you close the lid to do something else, and then you forget about it. The result would be for the battery to run dry, which eventually destroys the battery.
My question is: what would be the best way to setup an audible alarm if the battery reaches 20%?
No HDR option in Bazzite/KDE after connecting computer directly to display
I am running Bazzite 40 on a system with an RTX 4080. Up until yesterday, I was connecting computer -> Samsung HW-Q900C soundbar -> Samsung Q90C TV. I learned that the soundbar doesn't have HDMI 2.1 ports which is why I hadn't been able to get 120Hz, so I changed my setup to computer -> TV + soundbar -> TV (eARC).
Now, I do have 120Hz, but I lost a bunch of other options in my display settings, including HDR. The only options I can set there now are resolution, orientation, refresh rate, and scale. I suspect this is an issue with the TV communicating its capabilities in a way the OS doesn't understand, but I'm not sure how to fix or work around it. Can anyone suggest a fix? Is there a setting I can change on the TV or maybe an app I can run on the computer to manually set the TV's capabilities?
Update: Just discovered kscreen-doctor
. Here's the output:
undefined
Output: 445 HDMI-0 enabled connected priority 1 HDMI Modes: 446:3840x2160@60! 447:4096x2160@120 448:4096x2160@100 4
[Void Linux] Audio refuses to work on a new user
I created a new user on this system but anything with sound plain doesn't work - the main user of the system has no issue though.
I already added the new user to the audio
group, pulseaudio
and pipewire
are started by xfce during login too.
For example, when trying to open an mp3 file with mpv I get this:
[ao/pulse] The stream is suspended. Bailing out.
[ao] Failed to initialize audio driver 'pulse'
Could not open/initialize audio device -> no sound.
Audio: no audio
Can't connect to host after enabling WireGuard tunnel
I installed WireGuard on my host and set this configuration /etc/wireguard/wg0.conf
:
undefined
[Interface] Address = 10.0.0.1/24 ListenPort = 51820 PrivateKey = [REDACTED] PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens3 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens3 -j MASQUERADE [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.2/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.3/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.4/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.5/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.6/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.7/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTED] AllowedIPs = 10.0.0.8/32 [Peer] PublicKey = [REDACTED] PresharedKey = [REDACTE
[Slackware] What's the best way to hide the preinstalled software you don't need from the KDE menu?
shared from: https://feddit.org/post/1848262
I like the Slackware approach of installing the kitchen sink by default. Disk space is cheap.
But I find that the cluttering of the menus in KDE is a bit annoying. I use search to start my applications, and a lot of the time I have to type almost the full program name to get to the app I actually use.
What's the easiest way to hide a large number of programs from the menus, which is also easily reversible?My first idea was renaming the .desktop files in /usr/share/applications to .hidden
But they seem to be recreated automatically.Another idea was to copy .desktop files from /usr/share/applications to ~/.local/share/applications and then do:
printf "\nHidden=True" | tee -a ~/.local/share/applications/*.desktop
But I tried to add this manually with one test file and it didn't seem to have any effect.
Is there a config file somewhere that specifies in which paths .desktop files are parsed?