Sidebar

Linux

linux
Linux ellypony 2 weeks ago 100%
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?

10
3
linux
Linux derrickoswald 1 month ago 100%
snap rant snapcraft.io

Is it just me, or are most snap packages broken? A lot of problems have to do with developers using some command to start or run a process, for example: - dropbox “Launch Dropbox Website” fails badly for Firefox as a snap - gimp as a snap, preferences-folders-<select one>-Show file location in the file manager, doesn’t work Another type of problem is the location for local files, e.g.: - a snap zoom upgrade uses the same location for recordings as the prior version, which doesn’t work because the old snap version directory is inaccessible Another type of problem is the integration with Ubuntu (ostensibly the owner of the snap format), for example: - superkey (Windows logo) search for a snap and click or double-click on the icon just shows a wait cursor and finally times out (you have to right click and choose New Window) - update fails to update snaps - you need to manually sudo snap refresh, and even then the Software Updater thinks it need to update something until you reboot - snap-store has no search function - but if you start typing it will search (what kind of sadistic user experience designer thought that one up?) - snap-store Updates - Update All can fail and display a failure message from weeks ago - don’t even get me on about disk usage, like /var/lib/snapd/snaps or your ~/snap directory, that likely have more gigabytes than you’ve needed in a long time Should I just give up on snaps and use Flatpack or Appimage?

17
5
linux
Linux NationProtons 1 month ago 100%
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

14
7
linux
Linux majestic 2 months ago 90%
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.

9
3
linux
Linux ryknow 5 months ago 100%
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.

8
3
linux
Linux mortalic 6 months ago 100%
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?

6
9
linux
Linux 257m 6 months ago 85%
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?

5
4
linux
Linux mindbleach 7 months ago 50%
mv *.jpg is complete bullshit.

'Well it's only passing mv a list of--' yeah yeah yeah, I know, and that's why I'm calling bullshit. It should be massively harder to *execute filenames.* Even if 1970s decisions make that the eternal hideous default: the lack of any idiot-proof standard workaround is incomprehensible. StackOverflow's full of competing one-liners and people pointing out how each one is considered harmful. The least-skeezy options use exec. That sentence should make anyone recoil in horror. This is not a filename problem. This is a tool problem. If a single printable character is going to silently expand into a list of names, then for god's sake, having it put each name in quotes should be fucking *trivial.*

0
28
linux
Linux tuxed 7 months ago 86%
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.)

32
4
linux
Linux ThisIsAManWhoKnowsHowToGling 8 months ago 87%
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.

12
2
linux
Linux beppi 8 months ago 100%
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!

2
0
linux
Linux hellfire103 9 months ago 100%
Suggestions for WM/DE

I'm going to be doing a clean install of Arch Linux on an old ThinkPad tomorrow morning, and I'd like some suggestions for a window manager, desktop environment, or Wayland compositor. It can have a learning curve, but I would like it to not have *too* steep a learning curve (I have been using i3 for a while, and I have just come from LeftWM which I configured to have i3 keybinds). Also, in order to make it fairly obvious to my peers that I'm using Linux, I'd like it to look nothing like Windows or macOS. Preferably something light (at least out of the box). When I was using LeftWM, my RAM usage was often around 200MB. I recently did a system analysis and I have 8GB of RAM, but my CPU will hold me back. It's an Intel Core 2 Duo of the Penryn microarchitecture (x86_64-v1). Any suggestions?

6
6
linux
Linux neidu2 9 months ago 47%
Could 2024 be the year of the diagonal linux desktop? www.tomshardware.com

xrandr allows you to rotate the screen resolution, thus supporting diagonal setups. Some guy claims this is ideal for his software dev setup, with the IDE taking up most of the space, while smaller windows reside in the open corner.

-1
0
linux
Linux fruitycoder 9 months ago 100%
AMD Ryzen AI hardware, currently unsupported on Linux github.com

Does anyone know if/when AMD will support Linux on their new NPU? If it's never or too far out, what is everyone else looking towards for open source AI development? This issue is apparently tracking the Linux communities request for it.

10
0
linux
Linux Cantankerousnuts 10 months ago 100%
Linux Lite run chrome at startup in kiosk mode.

My friends, y'all convinced me and I decided to ditch windows on this old PC. I had a task scheduler task that launched chrome on kiosk mode and navigated to this website on startup. Worked great, but windows made the whole thing chug and crashed constantly. installed Linux Lite and the computer runs GREAT because it doesn't have all the windows bloat from the start, but I cannot for the life of me figure out how to do the same thing on Linux Lite. I tried creating an rc.local file pointing to a .sh file with the command google-chrome --kiosk . this command works from the terminal. ive also tried the crontab -e and adding @reboot google-chrome --kiosk as above... but again nothing happens when I reboot. what am I doing wrong? HELP.

9
2
linux
Linux Mandy 11 months ago 83%
Endeavouros alternatives?

I dont have any problem with it i simply would like to see peoples different opinions, so, this is what the system would be generally used for/what id like it to do: 1. stay out of my way (just work), ex: i dont get any notifications i dont want from the system itself and all i need to do is type 3 letters to initiate an update 2. requires little ram to actually use (not really needed due to hardware but simply to reduce the pcs noise as much as possible, bonus points if programs generally do the same thing on it) 3. Doesnt require too much fiddling (endevouros never needs this generally, when installing something it usually installs everything you need for things to work, i prefer GUIs usually but if its deadsimple commands like yay its fine as well) 4. I game and stream so both would need to be doable as easy as possible (i use obs, when it comes to games i usually do emulation and try to avoid proton) id love to hear what yall would recommend, thanks yall in advance

4
3
linux
Linux 257m 11 months ago 100%
My Thinkpad T480s randomly dies with Arch Linux.

I can't find an active thinkpad centric community on here I am just going to post here. My Thinkpad T480s, 16 GB RAM, 238 GB SSD is randomly shutting off while at like 50%. When I try to open it back up it always is dead and I have to connect charger to boot it up again. Why is this happening? Is it battery issue? It complains about not being able to read temp2_input while shutting down and sometimes say PM usage count underflow. Not sure what that is supposed to mean.

10
1
linux
Linux snowraven 11 months ago 100%
Resources to explore history of linux

I am a big history enthusiast and would greatly love to read more about history and big events in the world of linux or FOSS in general. Here's one example: on Feb 15, 1999, [the windows refund day event happened](https://www.youtube.com/watch?v=1j9j-Ywjmbk), I am interested to read more about such events in detail. Is there a decent book or resource that covers all this in detail?

7
1
linux
Linux MonkCanatella 12 months ago 87%
After install completes, booting into Nobara gives "Failed to start `initrd-switch-root.service`

cross-posted from: https://sh.itjust.works/post/6567472 > I'm running the nvidia official version, i have a 4090. > > journalctl -xe gives "failed to switch root: specificed switch root path /ssysroot doesnot seem to be on OS tree. os-release file is missing" > > I've seen some mention to try rebooting into a different kernel. I have no idea how to do that. Everything I have seen suggests commands that do not exist in the emergency mode. and I can't boot at all so I don't konw what to do. > > Please advice. I asked in the discord but no one even responded and I'm not sure where to get help with this distro >

6
0
linux
Linux beppi 1 year ago 100%
Cron job running, but script not doing anything?

Hey guys, trying to use cron to backup my home server. There's a nextcloud script I run which I copy and pasted from the nextcloud aio GitHub, and this script works in my sudo crontab. However I have a script for my calibre library which runs perfectly well when run manually but as soon as cron time comes around it shows up in the syslog but the calibre library doesn't actually get rsynced... I'll add the calibre script here soon but any ideas in the meantime? Thanks so much!

7
4
linux
Linux beppi 1 year ago 100%
Wine + FL Studio + Super Audio Cart help

Hey guys, Been trying to use the Super Audio Cart VST with FL Studio on Linux, and can get FL and Kontakt player running using Bottles, but Kontakt doesn't seem to see Super Audio Cart in it's library. What I want to ask you guys is has anyone got Kontakt libraries properly working with FL using Wine/Bottles, or, would I have better luck running the whole thing inside a VM? Thanks!

8
2
linux
Linux Helix 1 year ago 100%
Call through mobile network on Android with Linux?

Can I somehow use my laptop/desktop Linux microphone and speaker or headset to call a regular phone line through my (GrapheneOS) Android 13 phone? SIP sadly is not an option as my mobile phone provider does not hand out SIP information, it's only possible to call with an attached SIM card. Microsoft apparently supports something called [Phone Link](https://answers.microsoft.com/en-us/windows/forum/all/using-phone-link-to-make-calls-with-pc-headphones/a15ad892-cda7-461b-a22d-1a53cefca33f) on Windows 11 which makes this possible. Is there a Phone Link alternative for Linux, possibly even wired via USB? Found [this discussion on the scrcpy repository](https://github.com/Genymobile/scrcpy/issues/3880) and via bluetooth it only seems to work with very specific hardware, whereas injecting the audio stream from the PC microphone to the Android microphone input doesn't seem to work.

10
3
linux
Linux Mandy 1 year ago 84%
Sick of tinkering, seeking help

I have been using linux for a couple of years now and the most infuriating thing to this day are when things just dont work when they should, when you have to perform some terminal-fu to make certain things even work. So here i am, pleading for help for two specific issues before i jump back into using a specific distro (yes, most things a distro does are agnostic and can be achieve by others, but thats not my point here) Here the things i would like to work (with little to no tinkering if possible) webmotioncapture, runs fine over wine but doesnt detect my camera (vseeface is not an option as it doesnt detect hands and needs some serious code-fu to make that work, also didnt detect my camera) have my camera work and be detected in linux and wine (Anker PowerConf C200) if anybody could point into a distro direction, or actually easy to understand absolute minimal tinkering instructions, id be very gratefull update: i genuinely cant believe it, wecammotioncapture, works under wine, without any tinkering, hallelujah!

13
13
linux
Linux Maddison 1 year ago 66%
Why should I run sudo apt update before installing a package? Why!?

![](https://sh.itjust.works/pictrs/image/88ba4ca4-aed3-4e4a-9c49-1d4fb4852532.webp)

5
14
linux
Linux Maddison 1 year ago 100%
Should you or should you not post multiple commands at once?

![](https://sh.itjust.works/pictrs/image/61c735c3-1e63-467d-b1f1-0bec7c210b8b.webp) Parental Guidance Required, might not be safe for some audiences.

4
6
linux
Linux Vertelleus 1 year ago 83%
Gnome custom cursor not working in all applications.

Hey all. Basic information I am running Pop_os! I have have downloaded and placed a cursor in ~/.icons folder and selected it with gnome tweaks. It seems to work on some but not all applications. It works on Steam, gedit, nautilus but not on any browser, Telegram, or Thunderbird. I have tried modifying the /usr/share/icons/default/index.theme file to my selected cursor. I have restarted and no changes. To note: Gnome Tweaks still lists Adwaita (default) no mater what I do. Is there a way for me to get my chosen cursor to work with all applications?

4
1
linux
Linux Eeyore_Syndrome 1 year ago 100%
Universal Blue hits 1 Million Image Pulls!

- https://universal-blue.org/blog/2023/07/19/one-million-image-pulls-happy-birthday-to-us/ > One Million Image Pulls - Happy Birthday to Us! > WE DID IT! > Today we crossed one million image pulls. Though Kinoite continues to dominate the leaderboard, our steady march forward continues. > If you've been kicking the tyres on this next generation of linux desktop, we thank you! This means that we've had a million upgrades, which isn't a bad start! ### Come join us at [Universal Blue.org](https://universal-blue.org/) [My Personal Write-up](https://gist.github.com/Eeyoresyndrome/06bf92bd975769c4b46bda34db261a17#file-ublu38-md) Questions? - Hit me up, here on Lemmy or: Toot me on Mastodon: - https://hachyderm.io/@Eeyore_Syndrome

10
0
linux
Linux sturgax 1 year ago 100%
Is this a btrfs issue?

So, I have been testing out a few distro's lately after deciding to move away from arch. I have noticed, though, that every time I install a new system (latest one being NixOS) with btrfs, I get symlinks of my home folder in my Documents folder. It's really kind of odd. I haven't tried with ext4, yet. Is this a known issue?

6
3
linux
Linux christos 1 year ago 100%
lemmy-matrix https://gitlab.com/christosangel/ascii-matrix/-/raw/main/gif/lemmy.gif

cross-posted from: https://lemmy.world/post/1001168 > Created with [ascii-matrix](https://gitlab.com/christosangel/ascii-matrix)

36
1
linux
Linux christos 1 year ago 100%
Solve Sudoku puzzle from a screenshot (sudoku-solver-ocr in C, bash)

A script in bash in combination with a script in C can help you solve a sudoku puzzle in a png file. [https://gitlab.com/christosangel/sudoku-solver-ocr](https://gitlab.com/christosangel/sudoku-solver-ocr) You can see the script in action in [this video.](https://youtu.be/5O5NaGX7Z9E) The main dependency is [tesseract OCR](https://github.com/tesseract-ocr/tesseract), responsible for the oprical character recognition. Another important dependency is [imagemagick](https://imagemagick.org/index.php), responsible for the necessary image manipulation. The file selection of the png image is done with [zenity](https://help.gnome.org/users/zenity/stable/). Feel free to give your feedback.

16
0
linux
Linux christos 1 year ago 100%
magic-tape: YouTube TUI client (fzf, image support)

cross-posted from: https://lemmy.world/post/550485 > cross-posted from: https://lemmy.world/post/530920 > > > Magic-tape is an image supporting fuzzy finder command line interface YouTube client. > > > > [https://gitlab.com/christosangel/magic-tape](https://gitlab.com/christosangel/magic-tape) > > > >Image rendering can be done with the use of [ueberzugpp](https://github.com/jstkdng/ueberzugpp), [ueberzug](https://github.com/seebye/ueberzug), [kitty terminal](https://sw.kovidgoyal.net/kitty/) or [chafa](https://github.com/hpjansson/chafa/). > > > > With magic-tape, through the **main menu**, the user can: > > > > - Browse videos from subscriptions. > > > > - Browse through trending video feed. > > > > - make a video search, using keywords or phrases. > > > > - Watch a previously watched video (watch history). > > > > - Browse videos from a subcsribed channel. > > > > - Watch a liked video. > > > > - Repeat the previous selection. > > > > - Repeat a previous search (search history). > > > > - Watch/download video/audio content, in various formats. > > > > > > Through the **miscellaneous menu** the user can > > > > > > - Set up Preferences (configuration). > > > > - Like / Unlike a video. > > > > - Synchronize the above actions with their YouTube account. > > > > - Import subscriptions from YouTube. > > > > - Subscribe to/ Unsubscribe from a channel. > > > > - Clear their watch/search history, liked videos, thumbnail cache. > >

14
2
linux
Linux grey 1 year ago 100%
Does anyone know how to make a iPod Nano gen 3 (Pink) to work with Linux Mint?

This is actually a problem with all iPods it seems, but I can't get any of them to work on Linux Mint, or any distro. There are literally programs on the repos for working with iPods that show up if you search "iPod" and none of them actually with the four iPods I was recently given. The most popular one google results reccomend is GTKpod, and GTKpod has a helpful seems that seems to let you actually pick and choose which one you are connecting, even by color, because I guess that matters. On every iPod I've tried on GTKpod on Linux Mint and on Manjaro, none work. All either just silently hang with no error message or spit out a slew of different error messages. The one I'm trying to make it work with the most is the iPod Nano Gen 3 Pink because I want to give it away as a gift to someone with a Linux Mint computer. But nothing seems to work with them. Does anyone know what's up with that?

14
10
linux
Linux maltfield 1 year ago 92%
PSA: Upgrade your LUKS PBKDF to Argon2id !! https://tails.boum.org/security/argon2id/index.en.html

TIL [the French government may have broken encryption on a LUKS-encrypted laptop](https://nantes.indymedia.org/posts/87395/une-lettre-divan-enferme-a-la-prison-de-villepinte-perquisitions-et-disques-durs-dechiffres/) with a "greater than 20 character" password in April 2023. * https://nantes.indymedia.org/posts/87395/une-lettre-divan-enferme-a-la-prison-de-villepinte-perquisitions-et-disques-durs-dechiffres/ When upgrading TAILS today, I saw their announcement changing LUKS from PBKDF2 to Argon2id. * https://tails.boum.org/security/argon2id/index.en.html The release announcement above has some interesting back-of-the-envelope calculations for the wall-time required to crack a master key from a LUKS keyslot with PBKDF2 vs Argon2id. And they also link to Matthew Garrett's article, which describes [how to manually upgrade](https://mjg59.dreamwidth.org/66429.html) your (non-TAILS) LUKS header to Argon2id. * https://mjg59.dreamwidth.org/66429.html

11
4
linux
Linux not_jov 1 year ago 100%
Which distro are you using right now?

Let's make this place more active! So, title. Personally after trying out pretty much every major distro save gentoo, I've come back to Ubuntu because it just works and I can focus on my work. Did remove snap and install flatpak, but other than that it's mostly stock ubuntu.

55
114
linux
Linux carrot 1 year ago 100%
How do you guys use a distro that doesn't have the AUR (or equivalent?)

I know I said in my last post I'm a noob, and, i still am, I'm just a noob who can follow a YouTube tutorial. I installed Arch, not only for its minimalistic install, but also because I love the AUR. Everything I could ever want to install is there, and anyone who wants to upload their files can. This gives a windows-like install experience, which, pardon my... spanish, is actually pretty good. Any program is free to be uploaded and installed by anyone. My question to you is: If you do not use an arch-based distro, how do you go about installing software? I've heard people say that "the default package manager is enough" but I can't be the only person who installs niche software. I wouldn't want to only be able to install packages hopefully approved by my distro. Flatpaks are kind of annoying, in my opinion? It's not a native install of a package, it's sandboxed (which can be good in some cases, but in general just an inconvenience.) Compiling from source is too hardcore for me, so props if that is you, however, non-FOSS software has to be moved by hand to its specific folders and .desktop files have to be made by text. If you don't use the AUR, how do you go about your Linux experience? P.S. Hope you like the new sux/teal logo! ![](https://sh.itjust.works/pictrs/image/1d999b24-72ac-4f64-9b7e-ce9c3e0a229a.png)

12
39
linux
Linux dj3hac 1 year ago 100%
Nobara: Any users here?

Hellllooooo? Anybody home??

8
4
linux
Linux carrot 1 year ago 100%
Im kindof a noob but I love linux

Such a cool piece of software. Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though... go nuts

7
2