this post was submitted on 29 Sep 2024
27 points (100.0% liked)

Linux

5001 readers
91 users here now

A community for everything relating to the linux operating system

Also check out !linux_memes@programming.dev

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 1 year ago
MODERATORS
top 12 comments
sorted by: hot top controversial new old
[–] Varyag@lemmy.dbzer0.com 1 points 7 hours ago (1 children)

I was trying to figure this out until like 3AM last night. How do I set environment variables to be loaded into my X session when XFCE loads? I'm on Arch btw. I want to set DRI_PRIME=1 so that applications started from the launcher actually use the discrete graphics card by default. Right now it only works like that if I launch from the terminal.

I tried multiple potential config files to put it at, and the one time it actually worked, I lost my window manager... The other times, the desktop environment didnt even load or start the session. Undid everything and decided to come back later.

[–] sin_free_for_00_days@sopuli.xyz 1 points 7 hours ago

I'm kind of out of date with modern Linux stuff, but can't you throw that in the .xsessionsrc or .xinitrc file?

[–] cyborganism@lemmy.ca 2 points 9 hours ago* (last edited 9 hours ago) (1 children)

Hello,

I have a desktop PC which I'll be running Kubuntu 24.04 LTS as my main OS. No Windows dualboot or anything.

I have 2 hard drives.

  • My main one is a 1TB SSD NVME disk which will contain my Linux OS on a single BTRFS partition.
  • My second one is a 1TB HDD NTFS formatted disk which contains only my data files (Pictures, Documents, Downloads, Desktop, Music, Videos, etc. Symlinked in my /home/user directory to replace the folders of the same name)

Since I'll be using BTRFS, I'll be performing snapshots (daily, weekly, monthly) with a certain retention for each.

But I want to also take snapshots of my whole system on a monthly basis or so on an external 8TB external backup drive (one of those big ones as big as a book that's permanently hooked up to my PC) for safety's sake.

My external USB backup HDD is exFAT formatted (out of the box).

Doing an rsync from from my NTFS data drive to my external drive won't be a problem. But I can't do an rsync from my BTRFS SDD to my external drive because of permissions, ownership, etc.

What do you suggest I do in that case for my SDD drive?

I was thinking of creating a mountable ext4 disk image of maybe 2-4TB and mounting it at boot, then doing an rsync to that disk image on a monthly basis.

Another option would be to straight up tar bzip the drive, or at least select directories like /home and /etc.

And lastly, just straight up use dd or clonezilla to create a snapshot. But I want to be able to mount it and view the files though.

What do you think?

[–] sin_free_for_00_days@sopuli.xyz 1 points 7 hours ago (1 children)

Do you have things on the external that precludes you formatting it? You aren't doing it too often, so a tarball might work, but you'll be wasting a lot of time doing it that way. Then again, if it's once a month, that doesn't seem like a huge deal. I just use rsync now and then for my external backup and it doesn't take long at all.

[–] cyborganism@lemmy.ca 1 points 5 hours ago

Yeah, but since my external drive is formatted in exFAT, I can't simply rsync to it. I gotta either partition it, or create a mountable ext4 filesystem image on which I can.

[–] nichtburningturtle@feddit.org 2 points 9 hours ago (1 children)

Is there a way for me to limit the framerate of my wayland session, before my window manager is launched? I have to do this, because qtile wayland crashes before reaching my autostart script.

[–] cyborganism@lemmy.ca 3 points 9 hours ago (1 children)

What graphics card are you using? AMD? NVIDIA? And what distro? Version? Wayland version? Desktop Environment? Can you please provide more details?

I know this really isn't the answer you're looking for, but maybe don't use QTile yet? Their documentation states that "some functionality may not yet be implemented". Or revert to X11?

[–] nichtburningturtle@feddit.org 2 points 9 hours ago (1 children)

I am on arch, using intel. It doesn't seem to like my 240fps display, since it's fine, when only connected to it, or my other displays, but crashes when connected to my all my displays at once.

[–] cyborganism@lemmy.ca 1 points 8 hours ago (1 children)

What graphics card do you have?

[–] nichtburningturtle@feddit.org 1 points 8 hours ago (1 children)

Integrated Graphics i5-1340P

[–] cyborganism@lemmy.ca 2 points 5 hours ago (1 children)

Hold up....

According to the specs on your CPU its max resolution is 4096x2304 @ 120Hz on an integrated flat panel. (Assuming you have a Laptop.)

Otherwise, on the HDMI and DPI output, the limit is 60hz. It can't run at 240Hz. It's like 4 times its max framerate for an external display!

Make sure your Wayland configuration is set up so that all your displays have the same framerate of 60Hz

If you want to have your display work at that framerate, you'll need to get a proper GPU.

[–] nichtburningturtle@feddit.org 1 points 10 minutes ago

Thats what I want to achieve.