Linux

!linux

@sh.itjust.works
Create post
Determining the efficacy of a restart from a bash script (Debian)

Determining the efficacy of a restart from a bash script (Debian)

I should preface this by stating I am a novice in general when it comes to the linux world.

I'm trying to write a bash script that will run on an ordinary basis as a cron job. It's simple enough it just runs apt update -y apt upgrade -y apt autoclean every 24 hours. The issue is that I also would like to be able to schedule a restart automatically if a restart would be frugal. I don't really want to just rely on checking for /var/run/reboot-required, and the output from debian-goodies checkrestart seems to be pretty dated and incompatible with scripts in general. Would it be better to run systemctl status and check for degradation, and then schedule a restart based on that? Does anyone far smarter than me have a solution?

snap rant

snap rant

Open link in next tab

Snapcraft - Snaps are universal Linux packages

https://snapcraft.io/

Snaps are containerised software packages that are simple to create and install. They auto-update and are safe to run. And because they bundle their dependencies, they work on all major Linux systems without modification.

Snapcraft - Snaps are universal Linux packages
Does anybody know how to change scroll speed?

Does anybody know how to change scroll speed?

I recently bought an asus zenbook 14 (AMD version) and the scroll speed of the touch pad is quite fast.

Does anybody know how to change this?

I'm using Nixos 24.05, Gnome/Wayland

Record a Window on Wayland

Record a Window on Wayland

Hello. Im trying to figure out, how to record a Window on wayland and i need your help. I know there is such a thing in X11, but none of screen recorders ive tried on wayland support it. I could just go with full screen recording and edit it later, but i want background be transparent, and dont want to make extra job every time.

Debating a GPU upgrade. Looking for input from those running an Arc A770.

Debating a GPU upgrade. Looking for input from those running an Arc A770.

Basically, just like the title says. I've had my 1080ti since launch. It is without question the single greatest PC component I've ever bought, but my computer usage has changed. I don't really game anymore, and if I do, it's generally on my Xbox. I run linux exclusively and generally speaking I stick with OpenSuse Tumbleweed or NixOS. While the 1080ti performs perfectly fine for me, I'm just tired of dealing with Nvidia drivers breaking things from time to time when updating. Machine specs are as follows;

Mobo: X570 I AORUS PRO WIFI CPU: Ryzen 3900X RAM: 32gb Gskill Trident Monitors: Dual Dell S2417DG (1440p, 144hz) Case: Fractal Design Pop Mini Silent

Again, I don't really game on my PC anymore, and I spend most of my time in Freecad and Kdenlive. If I'm going to replace my 1080ti I want to make sure that I'm still upgrading. If I decided 6 months from now I want to play something on PC, I'd still like the ability with "decent" graphics.

I've been looking at the Arc A770, but a lot of the things I'm reading are a year old and saying things like; "It performs well, but beware of driver issues", or "Most things are working, but it's still got a ways to go". I'm just wondering if a year later things have gotten better?

If the A770 isn't really "ready" yet, I'm fine with AMD also. Just wondering what card people would suggest.

My budget is probably in the $250 - $350 range. I could probably stretch to $400 if I really needed to, but I'd like not to.

Asahi Linux on MacBook air questions

Asahi Linux on MacBook air questions

I'm debating trying to get my hands on a used m1 or M2 air for the primary use case of leaving it on my couch so I can quickly look stuff up. I thought about going with a chrome book, but all the snapdragon powered ones either have sketchy support or are expensive.

I also want it to have a small form factor so I think I want a MacBook air. I don't have any interest in macos (which I use for work) so I was debating putting Linux on it.

Has anyone had experience with asahi Linux, or the fedora spin? Could you share what works/doesn't etc?

Is there a better option I'm not thinking about?

Wireless wifi is not working after a chroot rescue on Arch Linux.

Wireless wifi is not working after a chroot rescue on Arch Linux.

So basically I stupidly tried to update while my thinkpad had low battery and it powered off halfway through the update. The system wouldn't boot because it was complaining that vm-linuz/linux was not found so I performed a chroot-rescue and got it to boot again. I must have messed something up during the process because now the device wlan0 is not showing up in iwctl device list. How can I fix or diagnose this issue? (I am using btrfs if that helps). Has anyone had a similar situation and can lend a hand?

I love you guys

I love you guys

I started using Linux when I was 12.

Getting my first computer I was excited to play games and just tinkering with it to see what I could make it do. Sadly, it came with an installation of Windows Vista, something I'm thankful for today since I learned a lot about troubleshooting but at the time was a major pain in doing what I wanted to do.

My school had a 10 week after-school program where you got to learn different programming languages, ranging from perl to JavaScript. Part of that program involved installing and using Linux.

I was immediately hooked. Trading the problems of Vista and everything that entailed with the problems of my Ubuntu installation were to me a godsend. Actual error messages?? People online with similar problems suggesting solutions that made sense?? What is this, and why isn't everyone using it??

Today it is foundation of my career, the reason of any academic success I've had, and a hobby that has brought me immense joy (and struggles with primarily Bluetooth, audio and getting games to work).

I'm so happy I found this amazing software, built in small and large contributions over many years by many of our times brightest minds and just regular people contributing solutions to their personal pet-peeves, fixations and use-cases. It is truly something that (for me) brings some much needed positivity and optimism of our future as a species and what we can accomplish.

Seeing how far we've come as a viable platform makes me very happy. Proton, KDE/Plasma, pipewire, Wayland and many more amazing projects we all use daily still give me an appreciation of what computers should be and what they are capable of.

So thank you. Whether you've contributed code or other things, interacted with the community, or just used this amazing software I hope you feel something similar to what I feel.

I love you all.

(And yes, I am very drunk right now.)

Is there a reason for me to use Qubes OS?

Is there a reason for me to use Qubes OS?

I am a casual who uses Zorin as my daily driver because I like its desktop environment. Since I am a college student, a lot of the programs my professors want me to use were made for windows and nothing else (especially Honorlock) and I'm getting a bit frustrated with all the things that throw a fit when I try to run them with Wine. I also tried to use a VM once and got quite confused.

My understanding of Qubes is that you pick a few operating systems as templates, then when you install an app you assign it to run on one of those templates. I have heard that some people have made Windows templates, which would make running Windows apps so much easier.

To me, the main draw of Qubes OS is to make running a VM just as easy as running any other software. I don't care too much about managing my digital footprint; I just want to make running Windows programs more convenient. Would Qubes work for my purposes? I do feel ready to try new things, like using the terminal.

FL Studio alignment issues on Hyprland

FL Studio alignment issues on Hyprland

Hey guys, newish to Linux, new to Arch and Hyprland.

I have FL Studio up and running using Wine in the way I usually did when using Fedora. However now, on Arch, when using FL, windows aren't aligned properly with the cursor. As in I can't click x on a small pop up window unless:

  1. I click above and to the right (for example)
  2. I fullscreen the application, or align it with the top of the screen.

Haven't had this happen on any other apps, but haven't used any other Wine apps yet, so could be Wine specific perhaps

Super weird problem, I'm guessing it's Hyprlands fault? But I really don't know. Thanks for any ideas!