Linux

47948 readers
1696 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
1501
 
 

Update : more games!

1502
 
 

Hello Lemmy,

I am the author of bluetuith, an open-source TUI-based bluetooth manager for Linux only. I have been working on this project for over 2 years on and off, and I was wondering about extending support to other platforms as well.

To begin with, the Bluetooth Classic (BR/EDR) implementation on Linux is fairly standardized (via bluez APIs), but on other platforms, especially windows, Bluetooth APIs are finicky, and tricky to deal with, and also there is no standardized management in general.

I would like to start creating a centralized Bluetooth server or a daemon for other platforms (natively maybe), mainly Windows and Linux, which can expose relevant APIs so that clients can use them to handle Bluetooth-based operations. I know this is quite an uphill task, but I would like suggestions on how to implement it, or if anyone has a better idea, please do suggest that as well.

To summarize, my current plan is this:

  • Create bluetooth servers natively for each platform, utilizing the platform's proven APIs to handle bluetooth-based functions and expose a standard API to clients
  • Adapt clients to use said APIs provided by the daemons to allow the user to control bluetooth in general.

For the server implementation (mainly to other platforms), I will require contributors, so contributors are highly welcome to be involved in the project. I am in the process of securing an NLnet grant to invest into this project and mainly pay contributors to implement this platform-wise (the proposal has been accepted, and the negotiation call will be hosted in a few weeks, more details about this can be further published if anyone has questions about this. If contributors are confirmed, maybe the budget could be adjusted as well).

I apologize if the post is naive or does not fit this community's guidelines, and if it doesn't, a comment on where to redirect this question would be great.

Constructive feedback is appreciated. Thank you.

Note: By Bluetooth operations, I mainly mean Bluetooth Classic based operations.

1503
1504
1505
20
DBus and systemd (uyha.github.io)
submitted 5 months ago by JRepin@lemmy.ml to c/linux@lemmy.ml
 
 

systemd uses DBus as the mechanism to interact with it. This article introduces just enough DBus concepts and the usage of busctl to communicate with systemd. These concepts should be useful when using DBus libraries.

1506
 
 

The ELF object file format is adopted by many UNIX-like operating systems. While I've previously delved into the control structures of ELF and its predecessors, tracing the historical evolution of ELF and its relationship with the System V ABI can be interesting in itself.

1507
 
 

Hi there, I'm on Bazzite KDE and recently somehow lost a my "gaming" folder..? No idea how but must gave been user faulty, e.g me. Therefore wondering if it's possible to lock certain folders so that this cannot accidentally happen?

1508
 
 

Hi everyone,

I have a Python program (A) that run under a regular user account. (good)

When some events occur in (A) I need to modify my nftables and only the root is allowed to do so.

I've come up with 3 ways to do that (if you know other please share) but I don't which would be the best.

  1. Make a sudo call from (A) with from subprocess import run but I will need to store the password ! and I don't think is possible to keep it encrypted and decrypted when need it (it's a flaw)
    .
  2. Make (A) writing a file with the requests. Create a (B) daemon (that run as root) that check that file every X and do the necessary
    .
  3. Make (A) do an IPC ( Linux socket ) to (B) daemon (that run as root) and does the necessary.

I suppose that the solution 2 is less heavy that the 3 ? But if I'm not mistaken it will react also slower ?

Thanks.

🐧

1509
59
submitted 5 months ago* (last edited 5 months ago) by Asudox@lemmy.world to c/linux@lemmy.ml
 
 

I've been using arch for a while now and I always used Flatpaks for proprietary software that might do some creepy shit because Flatpaks are supposed to be sandboxed (e.g. Steam). And Flatpaks always worked flawlessly OOTB for me. AUR for things I trust. I've read on the internet how people prefer AUR over Flatpaks. Why? And how do y'all cope with waiting for all the AUR installed packages to rebuild after every update? Alacritty takes ages to build for me. Which is why I only update the AUR installed and built applications every 2 weeks.

1510
 
 

For a while now, I've been unable to actually view the Volaris website while using Ubuntu 22.04 (In a previous version I believe as well). I've tried Brave, Firefox, and Chrome with the same results so I don't believe its browser specific (as most people use one of those 3 web browsers), which leads me to believe its Linux specific (as I doubt Volaris' website has been broken like this for over 2 years now).

The website seems to load some background images, but then it stops loading. I'm basically unable to interact with the website in any way. Sometimes I'll get a captcha to even access the website. The workaround that I have found was actually going into the inspector and refreshing. This make the website function again while the inspector is open.

Any ideas or suggestions?

1511
 
 

I've used distrobox more and more and am at the point where I need to start saving and integrating history differently. Or like, when I'm installing and building something complicated, I need to start saving that specific session's history. I am curious what others might be doing and looking for simple advice and ideas.

1512
 
 

I'm currently learning how to code (currently Python, then maybe JavaScript), but I'm not always around my desktop, and learning on my phone is not always an option (also, it can be quite cumbersome at times). Therefore, I'm looking into purchasing a laptop just for learning how to code and stuff.

I don't want to get a Chromebook because I want to be able to wipe the drive and install Linux on it (probably Linux Mint). Maybe it's changed since 2013, but the last time I had a Chromebook, it was a pain in the ass to install even bog-standard Ubuntu on it.

Problem is, I'm also heavily limited by space & budget: no more than 11 in (280 mm) total laptop width and 330 USD base price.

Does anyone have any suggestions?

Please forgive me if this is not the right space for this kind of question. Lemme know if it is and I'll delete it. :)

1513
 
 

Like OneDrive for Windows or iCloud on MacOS. So files only her downloaded when needed and you can specify directories/files to be available offline.

Needs to integrate into nautilus context menu with the option to get a shareable link through that. Though I'm open to switching my file manager. Nextcloud can do it but the feature is experimental and every time I restart it just syncs everything again.

Gnome online accounts doesn't let you specify folders to be available offline. Onedriver is the same and I'd like to stop paying MS money. Plus neither integrate into nautilus' context menu.

It's the one thing I really miss from win 11. Basically all folders I worked were synced and for a secondary backup I synced OneDrive to a NAS. My Cloud Storage is bigger than the available space on my machine. I could do insync with selective sync, it nautilus integration as well. But that's just not as elegant as smart/on demand sync, having everything available in your file manager when you need it.

1514
 
 

command: sudo tlp-stat -b

output:


TLP 1.6.1 --------------------------------------------

+++ Battery Care

Plugin: generic

Supported features: none available

+++ Battery Status: BAT0

/sys/class/power_supply/BAT0/manufacturer = DP

/sys/class/power_supply/BAT0/model_name = bq20z451

/sys/class/power_supply/BAT0/cycle_count = 666

/sys/class/power_supply/BAT0/charge_full_design = 6330 [mAh]

/sys/class/power_supply/BAT0/charge_full = 5043 [mAh]

/sys/class/power_supply/BAT0/charge_now = 4936 [mAh]

/sys/class/power_supply/BAT0/current_now = 0 [mA]

/sys/class/power_supply/BAT0/status = Full

/sys/class/power_supply/BAT0/charge_control_start_threshold = (not available)

/sys/class/power_supply/BAT0/charge_control_end_threshold = (not available)

Charge = 97.9 [%]

Capacity = 79.7 [%]

my take:

this is an apple battery, meaning this command won't load it up to a threshold I choose (not available)

charged currently at 97.9%, even if the gui says it's 100%

capacity is 79.7%, what for me is a very high value, considering this is a 10 year old notebook (maybe it hasn't been used much?)

your take?

1515
1516
 
 

sometimes, if I want to install a program from the terminal, I get 2 options: apt and snap.

It can happen that the displayed versions are not the same, one candidate shows a higher version number than the other.

Do both libraries use the same numbering system and is it safe to assume that the higher the version number is, the newer the program is and one should only consider this variable to install new stuff?

1517
 
 

I would like to add a Flatpak program to the toolbar by editing ~/.icewm/toolbar file.

What I noticed is when I add a native package, I only need to provide the name of the icon.

I tried the same with Flatpaks, provided the same icon name that's provided in their desktop entry file (basically the package name) but it doesn't work that way, I have to search for the icon in various subdirectories and provide the full path to make it work.

Edit: I noticed that Flatpak icons don't appear in menu either.

Isn't there a more practical way to make the icon of Flatpak programs appear on IceWM toolbar/menu?

1518
19
submitted 5 months ago* (last edited 5 months ago) by Gormadt@lemmy.blahaj.zone to c/linux@lemmy.ml
 
 

I'm in the process of switching my machines to Linux Mint from Windows and on my network drive I have a bunch of folders that are sorted with the help of preceding underscores (like this "__folder1" "___folder2")) so that folders appear in a specific order.

When my Mint machines access the drive they sort by the first letter skipping the underscores and I'd really like to have that functionality back rather than having to rename a bunch of folders to try to sort them again. (I'd like to avoid a preceding 'A' workaround if possible as there's a bunch of folders)

Any suggestions? A setting I'm missing (very likely) or something?

Edit: The more I look the more it looks like I'm going to have to make a custom locale to be able to get the sorting I want from the default Mint file manager.

1519
 
 

notebook is a 10 year old macbook pro without macos I installed xubuntu 24.04 in. It comes with an embedded battery.

First notebook I bought, not from apple, had a removable battery. The vendor told me to maximize its life I shouldn't plug the battery in, unless I need it (like for traveling). This way, I've managed to keep the original battery in good working condition for 8 years so far.

Back to the macbook: I cannot remove the battery and constantly loading it to up to 80% and discharge it up to 20% seems ridiculous. Furthermore, this would deplete the battery even faster, I believe.

What can I do to spare the battery as much as possible?

1520
 
 

While updating my system the graphical session crashed and after reboot the kernel was missing (reminder that you should update on tty). Trying to fix that from a live-system, mounting system nvme partition to mnt, there's now /mnt/@ @cache @log, while your usual root folders are in @, log fikes @log and so on. Filesystem is btrfs, no subvolumes, if that matters.

So why is this? And can i just mount boot to /mnt/@/boot? Do break something, if i move /mnt/@ content to /mnt?

1521
 
 

Solved: decided to avoid the funkyness this would invoke and just bought another drive. all good now👍

About a year back, I moved my internal 8tb and 4tb HDDs from my main Windows machine to my old PC-turned-Linux-server. They hold a bunch of bulk data like Youtube channel archives and torrents that are open to download.

I would like to do an in-place ext4 conversion, if possible. Currently I've just started shuffling data off to an SSD and the plan was to slowly shrink the NTFS partitions and turn the new space into ext4, 500gb at a time (size of the intermediary SSD), but it is taking an unbearably long time. Shrinking the 4tb partition in gparted has been running for 13 hours, with an estimated 22 hours remaining! And I'll have to do it 7 more times for the 4tb, and 16 times for the 8tb!!

Is there a better way to do this?

1522
 
 

my 23.10 now boots to single user mode (the tty1 log in page), After logging in with username and password (not as root, but regular me) I get this message:

/etc/update-motd.d/95 updates available 7: /usr/share/update-notifier/notify-updates-outdated: not found

run-parts: /etc/update-motd.d/95 updates available exited with return code 127

what's the best way to proceed now?

NMTUI shows wlan is connected

1523
1524
 
 

Hi there folks, I'm still learning about Linux and have yet to dip my toes properly in any arch based distro. Have for the moment fallen in love with the immutable distros based on Universal Blue project. However I do want to learn about what arch has to offer to and plan on installing default arch when I have time. But have been wondering why I haven't heard of any immutable distros from arch based distros yet.

So, am left wondering if there are talks within that Arch community of building immutable distros?


While writing this post I found a project called Arkane Linux, which seem to be very interesting. Does anyone have nay experience with it? Is there a specific reason why immutable wouldn't be a good idea when based on Arch?

Project: https://arkanelinux.org/

1525
 
 

When I first started using Linux 15 years ago (Ubuntu) , if there was some software you wanted that wasn't in the distro's repos you can probably bet that there was a PPA you could add to your system in order to get it.

Seems that nowadays this is basically dead. Some people provide appimage, snap or flatpak but these don't integrate well into the system at all and don't integrate with the system updater.

I use Spek for audio analysis and yesterday it told me I didn't have permission to read a file, I a directory that I owned, that I definitely have permission to read. Took me ages to realise it was because Spek was a snap.

I get that these new package formats provide all the dependencies an app needs, but PPAs felt more centralised and integrated in terms of system updates and the system itself. Have they just fallen out of favour?

view more: ‹ prev next ›