Skip Navigation

Search

Linux @lemmy.ml
Parptarf @lemm.ee

Installing Linux distro without breaking Windows install

Solution: When I formatted all my drives to install Linux on one and Windows on the other, I kept both connected and they share EFI boot partition as a result. Every time I reinstall Linux it formats the drive and therefore deletes the Windows's EFI Boot as well. One way is to fix this is to reinstall Windows while disconnecting the drive you have Linux on. Or you can move the boot files if you don't want to do that.

I used this guide: https://forums.tomshardware.com/threads/changing-windows-boot-manager-drive.3571420/post-21561626

Also remember to delete the Microsoft folder in the boot folder on Linux after you’ve checked that the new boot loader is working.

OP:


Currently dual booting as I need Windows for a few tasks and ganes Linux just won’t do. Since setting everything up I’ve reinstalled Linux twice, both times I’ve lost the ability to boot into windows and have needed to reinstall it.

Disk doesn’t show at all in Grub, tried al

Linux @lemmy.ml
spez @sh.itjust.works

Power Profile not working on Arch with KDE. Tried everything.

My laptop does support this feature since it was working on Fedora KDE. But jumping over to arch, it seems not to work at all.

1. power-profiles-daemon.service is enabled and running.

 undefined
    
● power-profiles-daemon.service - Power Profiles daemon
     Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled)
     Active: active (running) since <time>; 12min ago
 Invocation: 4f20b3d144584a759b4a6c5ea14aa739
   Main PID: 608 (power-profiles-)
      Tasks: 4 (limit: 6850)
     Memory: 1.6M (peak: 2.8M)
        CPU: 81ms
     CGroup: /system.slice/power-profiles-daemon.service
             └─608 /usr/lib/power-profiles-daemon

Apr 18 11:14:52 berserk-arch systemd[1]: Starting Power Profiles daemon...
Apr 18 11:14:52 berserk-arch systemd[1]: Started Power Profiles daemon.

  

2. plasma-powerdevil.service is static and running.

 undefined
    
● plasma-powerdevil.service - Powerdevil
     Loaded: loaded (/usr/lib/systemd/user/plasma-powerdevil.se
  
Linux @lemmy.ml
TMP_NKcYUEoM7kXg4qYe @lemmy.world

What ports do I need to open for mDNS?

EDIT: The bad solution is to unblock UDP port 5353 but the port has to be source port, not destination port. (--sport flag) See the now modified rules. The issue is that this is very insecure (see this stackexchange question and comments) but obviously better than no firewall at all because at least I'm blocking TCP traffic.

The proper solution (other than using glibc and installing nss-mdns package) is to open a port with netcat (nc) in the background (using &) and then listen with dig on that port using the -b flag.

  bash
    
port="42069"
nc -l -p "$port" > /dev/null || exit 1 &
dig somehostname.local @224.0.0.241 -p 5353 -b "0.0.0.0#${port}"


  

Then we need to remember to kill the background process. The DNS reply will now be sent to port 42069, so we can just open it with this iptables rule:

 undefined
    
-A INPUT -p udp -m udp --dport 42069 -j ACCEPT


  

---->END OF EDI

Linux @lemmy.ml
vortexal @lemmy.ml

I'm having audio issues with Linux and while I have a temporary solution, I'd like to have a permanent solution if possible.

Final update (hopefully): It seems that I have been able to fix the issue. I'm not sure what exactly caused the problem but either removing fluidsynth or installing the wireplumber ppa fixed the issue and I have working audio again. I've also removed pulseaudio and undid my edit to the modprobe blacklist, as they were only done as a temporary solution and they are no longer necessary.

For the past three days, I've been having this issue where my computer starts with no audio and the only sound device listed is a "dummy output" device. I've tried looking online for solution but the only solution I found has to be redone manually every time I start/restart my computer. It also seems like this issue is common with and possibly specific to the sound card my computer has, which is an "Intel Sunrise Point-LP HD Audio".

The solution that worked for me was to add blacklist snd_soc_avs to the modprobe blacklist and then run the two commands sudo alsa force-reload and pulseaudio. Adding

Linux @lemmy.ml
Ludrol @szmer.info

How can I run a command without being logged in as a user?

XY: I installed bazzite and goofed up. The username is wrong and my home is /home/bazzite instead of /home/ludrol

I am trying to run usermod -l ludrol bazzite in tty3 with sudo su - but the bazzite user is logged.

Solution:
Added password to root with passwd
Logged in as root
Ran required usermod commands
Disabled root with passwd -l

Linux @lemmy.ml
SpiceDealer @lemmy.dbzer0.com

Trying to install cmake but keeps returning errors

I'm using yay -S cmake to install. This is the output it returns:

`cmake-3.31.6-1-x86_64.pkg.tar.zst failed to download error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from mirror.moson.org : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from mirror.moson.org : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from arch.mirror.constant.com : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from mirror.pseudoform.org : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from mirror.lty.me : The requested URL returned error: 404 error: failed retrieving file 'cmake-3.31.6-1-x86_64.pkg.tar.zst' from mirror.lty.me : The

Linux @lemmy.ml
MonkderVierte @lemmy.ml

How to backup a bunch of blu-rays?

Seeing that DVD are slowly going end-of-live and that you can't buy a lot of my childhood favorites in german anymore and streams are compressed-to-death (and DRMed), i had a streak of preservia. Which is why i rip a bunch of discs from the library on Linux (yes, legally not ok, but morally just ease of access, i wouldn't sell them). Since it's only to watch them when nostalgia hits, i want them in a ready-to-watch format, chose AV1 webm for small size. My burner is LibreDrive-ok ootb, meaning makemkv goes automatically in that mode.

I have the discs for a limited time, so i used to use dvdbackup for DVD and later feed the folder to handbrake for conversion. Now i got a bunch of blu-ray:

  • ripping one takes even longer; whole 25 hours; i don't have the time for the whole LotR series with bonus disks.
  • makemkvcon backup needs only about 2 hours per disk, but the resulting folder is 80 GB big; i have only about 250 GB free space ** and the makemkv backup somehow has no audio stre
Linux @lemmy.ml
Björn Tantau @swg-empire.de

How can I free space in BTRFS?

Edit 2: Through all of my shenanigans I ended up on a read-only snapshot for root. The error I got just seemed similar to previous out-of-space errors. I went to a later snapshot as default and everything is working great!

My OpenSUSE Tumbleweed is wonky since I last did a dist-upgrade with about 4000 packages. Midway through it errord out with an error that indicated that the filesystem was full althou df showed plenty of free space.

BTRFS seemed to be the culprit. Removing snapshots let me continue the upgrade until it errored out again. Rinse and repeat until it was done.

Edit: My root subvolume is read only. So there must be some error in that. The other subvolumes work correctly. So I guess it isn't about free space after all.

But now the BTRFS seems to be almost full and I cannot update anymore.

 undefined
    
...
Checking for file conflicts: .....................[done]error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Read-only file system)                 ( 1/
  
Linux @lemmy.ml
Hyggyldy @lemmy.blahaj.zone

On Zorin OS, can't get XClicker custom location to work

Sorry if this isn't the place for this, I couldn't find a forum for the program. I have 2 monitors and when I try to use a custom location it seems like XClicker doesn't understand how to handle that. When getting a location the coordinates behave as I'd expect, treating all of my screen space as one with the numbers increasing as you go right and down, the top left of my left monitor currently being 0,142. However when I activate to start clicking it seem as though it treats the top left corner of whichever monitor the cursor is on as though it were 0,0, meaning it doesn't actually click where I want.

For example, if I Get a location on the right monitor and position the mouse on the right monitor it'll actually click a location 1920 pixels to the right, since the left is 1080p, and I think 142 pixels down. With the same coordinates, if I position my mouse on the left monitor then activate It'll go close to where I want it to on the right monitor for the first click, then shift to th

Linux @lemmy.ml
KazuchijouNo @lemy.lol

What distro would you associate with the tarot card Lucifer/Death?

Ok, this requires some explanation:

I was at a party quite recently, and there was a girl reading the "demonic" tarot to the people there. Now, I don't believe in any of that, but just for laughs, I asked which linux distro I'd be installing this year, to which she pulled the "Lucifer" card. This should be "Death" in the traditional version. She told me it's related to new beginnings or something like that.

So, I've got time to kill, I'm willing to try something new and I'd like to turn this into a self fullfilling prophecy.

Now, I'd like your interpretation. What would this distro be? Because this is a Linux sub-lemmy I'd give preference to linux distros; however I'm also open to any other UNIX-based operating systems if you insist.

It also has to be something new to me. So, no Artix, Debian, Fedora, Mint or Arch btw.

Linux @lemmy.ml
KokusnussRitter @discuss.tchncs.de

AMD GPU erratic fan behaviour

My GPU's fans spin either at 100% or stand still. they rarely ever dip below 1000rpm, and if so, only shortly (see images below). This worries me, and I am 99% sure I'll refund that card, but before buying a new one, I want to make sure the fault is not with my system. This is my first AMD GPU and I am pretty green in Linux.

So far I tried adjusting the GPU's fan curve, with fan-control and CoreCtrl but it didn't change the erratic fan behavior.

I checked my BIOS for 0rpm mode, but couldn't find anything. It also only let's me configure CPU and sys fan curves.

Is there anything I can try before sending the card back to fix these issues or -best case- verify the card is actually causing the issue? I'd hate to get a replacement and face the same issues again.

::: spoiler images ![Temperature and fan curves over the span of 20min; green = fan

Linux @lemmy.ml
scutiger @lemmy.world

Clipboard saves history across sessions even when set up not to

I'm running KDE on Nobara, and every time I power on my computer, there's something in the clipboard leftover from the previous session despite that setting being turned off. I'm not 100% sure, but sometimes I think that it's not even the last thing I copied. I'd have to make a mental note to check every time.

Is there something I can do to fix this besides the basic system settings dialog?

So far it looks like KDEConnect may be passing my clipboard back and forth between my PC and my phone. I'll have to wait and see how it changes after disabling clipboard sharing.

EDIT: The next day, I'm going to say this solved the issue for me. For anyone else wondering, in the KDEConnect settings, you can either disable clipboard sharing entirely or prevent automatically sharing the clipboard, which lets you manually share the clipboard only when you want to.

![](https://lazysoci.al/api/v3/image_proxy?url=https%3A%2F%2Flemmy.ml%2Fapi%2Fv3%2Fimage_proxy%3Furl%3Dhttps%253A%252F%252Flemmy.world

Linux @lemmy.ml
LukeSky @lemmy.ml

Help for searching a new distro

Hi everyone. I have an old ASUS S56C and I use it everyday for web (Firefox) and graphic design (Photoshop with Bottles, Inkscape). I have used for years Lubuntu, and it was all good with LXDE ambient, but with the latest versions it switched to LXQT and with snaps I don't feel it comfortable anymore.

So, I'm looking for another easy weight lightweight distro, no fancy, only for Firefox, Bottles and Inkscape. I'm opened to any suggestions. Thanks in advance to everyone.

EDIT: Thank you all for your time and answers. I've read them all and I think I will start with Debian with LXDE. Thank you all again.

Linux @lemmy.ml
0WN463 @programming.dev

How to use MPV IPC to display both media title name and progress bar?

Hey, I am trying to create an IPC command that shows both the media title and the progress bar.

So far, show-progress displays the bar and the elapse time.

And I can use show-text "${media-title}" to show the title.

But I can't seem to do both.

I saw this in the docs

 undefined
    
show-text <text> [<duration>|-1 [<level>]]
              Show  text  on  the  OSD. The string can contain properties, which are expanded as described in Property Expansion. This can be used to
              show playback time, filename, and so on. no-osd has no effect on this command.

              <duration>
                     The time in ms to show the message for. By default, it uses the same value as --osd-duration.

              <level>
                     The minimum OSD level to show the text at (see --osd-level).

  

And thought the level=3 is what I needed, but doing

 undefined
    
show-text abc 2000 1

  

shows the text and

 undefined
    
show-text abc 2000 3

  

shows nothing.

I tried chaining `show-progress

Linux @lemmy.ml
Artemis_Mystique @lemmy.ml

given up on wifi(solved)

Solved: thanks to u/[email protected]; remember to add these USE flags to wpa_supplicant

net-wireless/wpa_supplicant wps wep ap fasteap eap-sim tkip uncommon-eap-types

I am facing this peculiar issue that i can connect to every WiFi connection except my router, it's a recent gentoo install with no display server, i am using a D-link WiFi USB card

What I have tried:

  • using iw dev (device) scan to list the ssid and try connecting with wpa_supplicant
    • dhcpcd waits for connection then times out (does connect succesfully to my phones hotspot)
  • gave up and spent 3 hours compiling NetworkManager
    • every ssid shows up in nmcli dev wifi list except my router
    • forcing a connection passing bssid shows id not found
    • manually setting the connection using nmcli add also does not work
    • iw dev (device) scan lists my routers ssid along with others
    • nothing is blocked in NetworkManager and I spent hours going back and
Linux @lemmy.ml
Hellfire103 @lemmy.ca

Suggestions for my next distro

I am looking to switch to a different Linux distribution (or BSD). I currently use openSUSE Tumbleweed, which is quite nice, but I'm having issues with my USB ports and it takes a hot second to boot up.

However, the reason I'm asking here instead of going straight to DistroWatch is that my laptop has a problem. When I turn it on, it bootloops unless it's connected to power when I press the button. As such, this distribution would need to be able to handle running for weeks on end without a reboot.

I could get this repaired or replaced, but I have neither the time nor the money to spare.

So, does anyone have any suggestions? Or should I just slap Fedora Kinoite on it and call it a day?

EDIT: I went for Debian FreeBSD, as well as running fwupd, and it's all working now. Thanks!

Linux @lemmy.ml
N0x0n @lemmy.ml

Convert commonmark links to Headings with spaces to GitHub flavored markdown.

Edit

My question was very badly written but the new title reflect the actual question. Thanks to 3 very friendly and dedicated users (@harsh3466 @tuna @learnbyexample) I was able to find a solution for my files, so thank you guys !!!

For those who will randomly come across this post here are 3 possible ways to achieve the desired results.

Solution 1 (https://lemmy.ml/post/25346014/16383487)

 undefined
    
#! /bin/bash
files="/home/USER/projects/test.md"

mdlinks="$(grep -Po ']\((?!https).*\)' "$files")"
mdlinks2="$(grep -Po '#.*' <<<$mdlinks)"

while IFS= read -r line; do
    #Converts 1.2 to 1-2 (For a third level heading needs to add a supplementary [0-9]) 
    dashlink="$(echo "$line" | sed -r 's|(.+[0-9]+)\.([0-9]+.+\))|\1-\2|')"
    sed -i "s/$line/${dashlink}/" "$files"

    #Puts everything to lowercase after a hashtag
    lowercaselink="
  
Linux @lemmy.ml
cyberwolfie @lemmy.ml

 Best way to switch a headless server from WiFi to ethernet?

I have a server running Debian that has been connected to WiFi for a long time, but I have since moved it and given it a wired connection. It still seems to be using WiFi though, and in my router settings it shows up as connected through WiFi and not through ethernet.

Now I want to make sure that I can switch over from WiFi to ethernet directly from an ssh-connection so I won't have to connect a screen to get direct access.

What is my best bet here? A lot of the tools I find used for different network operations are not pre-installed, and I don't want to be installing just everything being suggested. Can I solve this by installing network-manager and using nmcli?

EDIT: I also want to disable the wireless card.

EDIT2: No eth-interface shows up when running ip link show, EDIT3: but r8169 0000:02:00.0 enp2s0: renamed from eth0 shows up in dmesg and enp2s0 shows up in ip link show, so I guess it is recongized then.

[SOLVED] EDIT4: I made the modifications manually in `etc

Linux @lemmy.ml
tubbadu @lemmy.kde.social

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

Linux @lemmy.ml
cyberwolfie @lemmy.ml

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