Linux

2917 readers
1 users here now

Shit, just linux.

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

founded 2 years ago
MODERATORS
1
 
 

I'm trying to generate AppArmor policies to secure my "major/internet-facing" programs.
Most of those programs are Flatpaks.
Flatpaks already have their own sandboxing mechanism, which uses bwrap and XDG portals.
Does AppArmor have any weird interactions with Flatpak, e. g. blocking too much, or blocking too little, or being unable to block anything without rendering the whole program unusable?

2
 
 

i've been having problems with xfce where themes with rounded corners show a black box behind the whisker menu and even with the following code in ~/.config/gtk-3.0/gtk.css

}#whiskermenu-window { border-radius: 10px; border: none; box-shadow: none; border-image: none; background-image: none; outline: none; }

searches on duckduckgo returned nothing but after a few months with this problem i found a solution on google on the zorin os forums

the modifications: first, in the gtk.css file: __#whiskermenu-window frame>border { border-radius: 10px; border: none; box-shadow: none; border-image: none; background-image: none; outline: none; }_

then in the whisker menu properties, turn the opactiy to 99

no idea how or why this works but it just works :)

3
 
 

Good morning everyone!

I just had a question on how to go about the age-old problem of having files created on a unix-like system (Linux, Mac etc.) that need to be shared with a Windows machine. Specifically, some files in my e-book and manga library have “?” and “:” in their titles (and possibly some other reserved characters). Sadly, Syncthing (my file syncing solution of choice) has no solution for this and just creates an error on the Windows machine where my e-book library is shared.

What is an easy, semi-automatic solution for renaming files to allow portability between operating systems? Ideally I would like to create a shell script that I can just run on a folder that will recursively descend through the directory structure.

Thank you in advance :)

4
5
6
7
8
 
 

macOS has a bunch of apps which can do so, including SketchyVim. Basically you would have all the vim modes motions and operators, inside any text box in the OS / in any app. I just did some looking up and asked LLMs, but didn't find any linux equivalents of that. Ideally they would work on wayland and have app or window class exceptions.

9
10
11
 
 

I did some searching and many users recommend Rofi but looking at man rofi-script it seems to just be a list picker. You pick something from the a list and only one thing runs. On Alfred and Raycast you can have interactive extensions which are essentially keyboard navigable UIs.

  • One example looking at the Alfred workflow gallery is Reddit Browser, where you select a subreddit from a list and then it shows of lists of posts, you can press cmd enter to go back & select another subreddit.
  • Another one lets you ask questions for chatgpt and shows answers right in the launcher (I'm not necessarily looking for AI extensions).
  • This Raycast extension lets you search and create Notion pages.
12
 
 

cross-posted from: https://lemmy.world/post/27854420

On fediverse at @linuxprepper@podcast.james.network

cross-posted from: https://lemmy.world/post/27825913

Click for comprehensive shownotes with detailed links

  • Linuxfest Northwest
  • Audience Suggestion - Forgejo
  • Television Fuzzy Finder
  • Uptime Kuma- Monitoring
  • Dockje - Docker Compose Manager
  • Homebox - Inventory Management
  • Ameridroid Sponsor
  • Whisper AI - Speech to Text
  • Themio Stereotool
  • scp - SSH based Copy
  • ffmpeg audio extraction
  • Getting a New Laptop
  • Ubuntu adopting uutils
  • Podcasting 2.0 support - State of the Podcast
  • Spread the Word! Help promote the show. Send in feedback.

If you enjoy the show, please help spread the word. Thanks!

13
 
 

cross-posted from: https://sh.itjust.works/post/35352374

If I open a text file that needs root privileges to modify, I get this error:

Failed to save 'this_file': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.

That's fine, that's expected.

But when I click on "Retry as Sudo", I get this error:

Failed to save 'this_file': Unable to find pkexec or kdesudo.

This happens though pkexec is installed on my machine, at /usr/bin/pkexec; and I granted VSCodium access to it through Flatseal. How do I fix this?

14
 
 

Imagine a world where you could browse -and- watch youtube without using a graphical software or a web browser.

Guess what? Now you can.

With this nifty, minimal and 100% portable piece of software, you can now watch the best youtube has to offer without compromising your potato or waiting several minutes (!) for a video to appear on your screen.

The only caveat is that you need to install mpv.

And nothing else.

The code, alongside instructions on how to compile it can be found by clicking here.

15
 
 
 1. [✓] net.minetest.Minetest.Locale                    stable                i             flathub              5.8 kB / 1.6 MB   **
 2. [✓] org.freedesktop.Platform.GL.default             24.08                 i             flathub            156.2 MB / 156.6 MB
 3. [✓] org.freedesktop.Platform.GL.default             24.08extra            i             flathub             25.2 MB / 156.6 MB *
 4. [✓] org.freedesktop.Platform.Locale                 24.08                 i             flathub             18.6 kB / 380.3 MB **

Look at the asterisks. It downloads far less than what it says, yet it still completes and runs fine. How‽

16
 
 

The Linux Ship of Theseus

Crossposted from: https://lemmy.ml/post/27387345

  1. pick any distro and install it.
  2. Then, without installing another distro over the top of it, slowly convert it into another distro by replacing package managers, installed packages, and configurations.
  • System must be usable and fully native to the new distro (all old packages replaced with new ones).
  • No flatpaks, avoid snaps where physically possible, native packages only.

Difficulties:

  • Easy: pick two similar distros, such as Ubuntu and Debian or Manjaro and Arch and go from the base to the derivative.
  • Medium: Same as easy but go from the derivative to the base.
  • Hard: Pick two disparate distros like Debian and Artix and go from one to the other.
  • Nightmare: Make a self-compiled distro your target.

Clarifications

  • chroot, dd, debootstrap, and partition editors that allow you to install the new system in an empty container or blanket-overwrite the old system go against the spirit of this challenge.
  • These are very useful and valid tools under a normal context and I strongly recommend learning them.
  • You can use them if you prefer, but The ship of Theseus was replaced one board at a time. We are trying to avoid dropping a new ship in the harbor and tugging the old one out.
  • It may however be a good idea to use them to test out the target system in a safe environment as you perform the migration back in the real root, so you have a reference to go by.
17
18
 
 

cross-posted from: https://lemmy.world/post/26434564

Lots of feedback to respond to in regards to self-hosting, a good amount sent by Lemmy users and fediverse types. Hope you all enjoy!

(00:40) Linuxfest Northwest 4/25 - 4/27

(01:30) Forum now available for full show notes and project discussion. Also accessible from Matrix.

(02:39) Simple feedback form now available for sending your feedback and suggestions. Or, you can always email podcast@james.network

(03:45) ameriDroid now sponsors the podcast.

  • use LINUXPREPPER coupon code to support the show.

(04:50) If you like the show please do share it! Spread the word. This is a small show, which most people don't know about. Thank you so much.

  • You can also donate to me on paypal.
    • Allowing recurring donations with a fancier system is in-the-works.

(05:50) Librewolf browser, community fork of Firefox.

(06:35) Works on My Machine badge by CodingHorror of Discourse

(07:30) Kickstarter for PixelFed and Loops by dansup

  • PixelFed is a federated, FOSS alternative to Instagram
  • Loops is a federated, FOSS alternative to TikTok
  • Dansup website

(08:45) @linuxprepper@podcast.james.network

  • This podcast is also available on the fediverse at the above address. Use Mastodon of whatever client you prefer.

Audience Feedback with HB

(10:00)

Hungry Bogart interview on Linux Prepper origins and background on Medium.

Full show notes within the podcast or at https://discuss.james.network/public/d/25-shownotes-for-episode-4-audience-feedback-on-selfhosting

19
 
 

For the old farts (like me) out there.

Instructions on how to compile, screenshot, etc are all inside in the code provided @ op.

20
 
 

It's too bad Marcan42 deleted his Mastodon page, I wish it was at least left as read-only. It had lots of insightful hardware and software posts. I'm really feeling a void for that content and would love to read similar posts from devs. Posts that are not too long, like ones on Mastodon or Bluesky, rather than long articles (which there are an abundance of).

21
 
 

I've been suggested to use a tiling window manager like Sway since it allows for controlling windows with hotkeys, but I'm having trouble getting started. I installed it in Fedora and tried logging back in with SwayFX (since it has features like blurring) but after I'm just shown a wallpaper with a top bar, the top left shows a 1 and the top right shows the time. I don't know what to do there. I tried looking up guides but didn't find anything, can you link me some if you know of any?

22
 
 

TLDR: I want to be able to set specific window sizes and positions of the current window with hotkeys, as well as focus on specific apps with hotkeys, but I'm overwhelmed.

I've been trying to switch to Asahi Linux Fedora, and trying Gnome as my desktop environment since it can be customized with CSS, and with Wayland. I tried looking up how to change window layouts with hotkeys and it's confusing on what solution(s) I would end up wanting to use. Would I want to use a window manager?

Ultimate I want an alternative to Rectangle Pro app on Mac, which let's you set many hotketys for changing the current window's size & position: like use up the left or right halves or thirds of the screen, or corners and taking up a quarter of the screen. You can also make custom window layouts and bind those to keys.

I didn't find many results while looking up how to focus on specifc apps with hotkeys. For instance, I'd want to press CTRL Shift Z to switch specifically to Zen Browser or open it if it isn't opened, and CTRL Shift O to open or switch to Obsidian. I looked this up and didn't find options other than wmctrl or wlrctl. I tried the later: wlrctl window focus firefox, but got the error Foreign Toplevel Management interface not found!. on macOS there are many apps for this like BetterTouchTool & Hammerspoon.

23
 
 

Edit: Yep KDE is the most customizable full desktop environment. I gave Gnome a shot but like KDE A lot more with desktop effects and kwin scripts.

What makes Linux appealing to me is the extent of customizability, but I didn't find many answers when looking up with desktop environment is them most customizable. Some say KDE is most customizable than say, Gnome, but doesn't Gnome support CSS customization while KDE doesn't?

24
 
 

Hector Martin (Marcan42) was the lead developer of Asahi Linux, until he recently resigned. He had a Mastodon page where he would talk about AL development and hardware stuff, as well as frustrations dealing with kernel maintainers to upstream things like Rust stuff (long before the beef that went down this month).

Marcan has made it clear he needs a break, but I really wish he at least kept his Mastodon page up, perhaps in read-only. I'll admit, I liked his posts so much I looked at it daily. I had a bookmark keyword in Firefox: I'd type tr in the URL bar to go to https://social.treehouse.systems/@marcan.

25
 
 

Obviously we all want to avoid enshittified (aggressively monetized) software or at least get our money's worth. I'm looking at self-hosting software right now and one I'm looking has a pricing page but only for cloud (no other paywalled features) and is open source. I tried looking up future plans and didn't find much, so it doesn't seem like it will enshittify. (not related) I had thought about switching to Omnivore for a long time but then they merged with ElevenLabs and the rest is history.

view more: next ›