Linux

47952 readers
1675 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
1876
73
submitted 6 months ago* (last edited 6 months ago) by boredsquirrel to c/linux@lemmy.ml
1877
1878
1879
 
 

Hi, I'm just starting exploring btrfs volume concepts; currently my testing setup has three subvolumes: root, var, home; is it possible have user home folder (I mean /home/user, not all /home) in a different partition? Thanks for suggestions

1880
1881
1882
 
 

Hi guys,

I saw this very informative post talking about how ready Wayland is so I thought to share some info that might be useful for people on i3wm+Polybar who are willing to switch to Sway. Keep in mind I am just a hobbyist that like to tinker with stuff. If you know what you are doing you might want to skip this post and check i3wm Migration Guide and useful addons (I recommend you check those anyway if you are reading this post).

Likely you have heard about Sway but if you haven't Sway is a Wayland compositor(forget picom) based on i3wm that will make you feel at home as an i3 user. Sway has almost all i3 functionalities and some improvements as well but you will have to drop some of the programs like Polybar that you have been running on i3 for Wayland compatible ones. Do check what programs are not Wayland native and look for their replacements.

Ones which make life easier:

  • nwg-panel (see picture): Great panel/bar if you do not want to spend much time editing config files since it allows you to do it graphically plus it comes with great defaults. If you want to add a menu like usual DEs you can get nwg-menu. Or a dock too nwg-dock. This guys work is wonderful!
  • nwg-displays: Graphical displays manager that automatically export config files for you.
  • nwg-look: Simple graphical way of setting GTK3 themes. If you want to create custom gtk themes get gradience
  • yofi: Yofi is a launcher that works very fast for me and is customizable. (could not get icons to work but that seems to be a me problem. If you would like a super minimal, blazing fast launcher then tofi is for you. Personally I use wofi but its not being actively maintained.
  • For your graphical file manager thunar, pcmanfm and nemo work fine but you will have to do some tweaking to get some of the functionalities they offered in their respective Desktop Environments.
  • gammastep: Like redshift but better and for wayland, just configure, set and forget about it.

Little tips:

  • Electron apps like Freetube and Obsidian will not work on Wayland unless you use flags either on Electron's config file or specify environment variables.
  • Touchpad gestures are supported directly in Sway and you can configure those in the main config file or include it externally.
  • When configuring your Sway input options in the config file I suggest making a global option that will catch all devices for a given type and then if you wish you can specify unique behavior for different devices specifying their id. Like this:
input type:keyboard {
$your_options_here  
}
  • If you want to immediately focus the workspace of a window you moved you can do so like this:
bindsym $mod+Shift+5 move container to workspace number 5, workspace number 5
  • SwayFX: Extends Sway to some UI functions like one could have achieved with Picom on i3 that are not available in Sway.
  • autotiling: This lets you achieve the autotiling that Hyprland has by default.

There is much more to it than this post, go check the respective links. Anyway, I hope you find this useful. Peace!

1883
 
 

I wanted to install jackett and sonarr, they are complicated to use as is, moreover I am using Ubuntu. I am following fuidleine for installing jackett with STUPID command line making it EXTRA difficult. But now I have to change directory ownerships and what nots. I am the ONLY user on this machine. I want to own everything by default I am root I am admin I am user I am all. How do I make this happen instead of sending stupid commands all the time and making using Linux EASY. Before anyone getting on about Security I don't give 2centa about it .I just want to use and install and do whatever I wish.

How do I make this happen Forever, once inför all.

1884
 
 

I thought I'd take the opportunity to share a Bash script I made to automate ripping music off CUE/BIN files. It splits BINs into separate files, so it's 1 file per track, and strips pregap data, encodes audio tracks to FLAC or Ogg Vorbis, and it also generates new CUE sheets.

Link to the script:

https://github.com/linux4ever07/scripts/blob/main/cuebin_extract.sh

The idea came to me some years ago when I noticed that GOG packaged some of their games in a dumb way. It was specifically DOS games (bundled with DOSBox) that had CD audio. They would include the original BIN file, but with a modified CUE sheet that would not let you access the high quality CD audio. On top of that, they included Ogg Vorbis tracks, wasting HDD space for no reason by effectively storing the music twice, but only letting you access the lower quality Vorbis tracks. So, I thought, why not just split the BIN, encode the audio tracks to FLAC, and that way you both get better audio quality and also use less HDD space. DOSBox supports CUE sheets that list FLAC, Ogg Vorbis and even Opus tracks.

I took inspiration from 'bchunk', which is a program that does something similar. However, bchunk converts data tracks to ISO files, which is not what I wanted. I wanted to keep the original tracks completely untouched, so my script will copy data tracks as normal BIN files. bchunk also can't encode audio tracks to FLAC or Ogg Vorbis, but it will produce uncompressed WAV files. And bchunk doesn't produce new CUE sheets for the created files.

I also use the script to extract the OST from random games. I put together a playlist with some of my favorite retro video game music that I extracted using the script:

https://www.youtube.com/watch?v=nHI7ghR6XX4

There's other uses for the script, such as splitting BINs in general. For example, many BeOS / ZETA disc images contain boot floppies as the first track, and once you split the BIN you can access the boot floppy image. And you can create frankenstein disc images by exchanging tracks between different disc images.

The script is made for Linux, but should work on macOS / FreeBSD as well if you have a recent version of Bash installed, as well as ffmpeg, flac and oggenc.

1885
 
 

I recently switched to hyprland and noticed kde connect wasnt typing what i type from my tablet. Its really hard to type on a physical keyboard due to my disablity. Any suggestions?

1886
197
submitted 6 months ago* (last edited 6 months ago) by boredsquirrel to c/linux@lemmy.ml
 
 

Spoiler: GNOME wins

Btw their GNOME Theme manager is here

1887
1888
 
 

ThSince last Sunday, I've been trying to install Debian 12 as a server OS on a Dell XPS 8900. I've seemingly been so close and yet so far. I've gotten 2 errors repeatly. One is one I can't avoid, the other one I can.

The one I haven't been able to avoid is "fclose: no space left on device". I have tried changing grub settings to 'pcie_aspm=off'. I tried changing the actual pcie for the hard drive, maybe I had a faulty one. The only thing I can think of is that I took the hard drive out, plugged it into a laptop via USB to check if it had anything important and put it back in to install Debian.

The other issue is an out of memory kernal panic but that's been fixed.

This has been a pretty major source of frustration all week. If anyone can suggest something that might help. I'll try it, cheers

Have a dog with a melon, look at him with his melon, so proud

1889
 
 

I'm using linux mint 21.3, and a process (brave aka chrome) sometimes memory leaking, so eats all the RAM, and then linux goes into swap death loop, when everything freezes (sometimes the mouse cursor is moving), and nothing can't be done, i can just see the HDD led blinking, and do a reset. Is there a way to make the system automatically detect swap death loop, and close the biggest ram user process, and so on?

1890
 
 

Thanks to /u/azvasKvklenko@sh.itjust.works for mentioning KDE window rules. In KDE, we can add rules for windows so that they behave in specific ways. One rule that can be added is the position: remember rule, and it's possible to make that rule apply to all windows by removing the match field. This way, closing and reopening windows keeps them where they were.

This is a very typical complaint about wayland that a lot of people have, something that apparently worked natively with X11 and annoyed me to no end since I had to position all the windows every day when logging into my desktop. No more! I hope this helps :)

https://imgur.com/a/zrvbRPI

1891
 
 
1892
 
 

Some tl;dr takeaways :

I was shocked that nobody had ever noticed this bug in the mainline kernel, but that’s what happened. I guess to be more accurate, the OLPC project did notice it at one point, but since they had a workaround it wasn’t a huge deal. I decided to go ahead and fix the underlying problem.

I first submitted my fix for this problem in September 2022, but I didn’t receive any responses. I ended up resubmitting it later that year and CCing the main SoC maintainers the second time, and they took care of merging my fix. It was finally released with Linux 6.2 and was also backported to several 4.x, 5.x, and 6.x kernels. Ever since I implemented this fix, I haven’t noticed any problems with CPU time reporting on my Chumby.

It was very satisfying to be able to fix the problem! The time I spent was totally worth it too. I learned all about how procfs works and how top gets its info about CPU usage. I still feel like I know almost nothing about the internals of the Linux kernel, but solving a problem like this was a fantastic way to dip my toes into it.

1893
1894
18
submitted 6 months ago* (last edited 6 months ago) by atmur@lemmy.world to c/linux@lemmy.ml
 
 

The last device I own that doesn't run an open source operating system is an iPad. I basically use it as a laptop most of the time with a keyboard case, but I do like being able to take just the screen to use as a drawing/note-taking tablet. I treat it more like a "convertible" device rather than a tablet alone.

I'm not in a rush to replace it, iPadOS is, eh, usable, but there are things that get on my nerves often. I definitely wouldn't be upgrading to another iPad model if this one died. I'm curious on what kind of hardware is available out there with good Linux support that I can keep in mind for the future. My only requirements would be that it runs normal Linux distros (ideally Fedora) and has a pen/display that supports pressure sensitivity.

The Minisforum V3 looks pretty damn cool. There's also the Microsoft Surface devices that ironically seem popular with Linux users. Anyone have any experience with these kinds of devices? What do you think? What's your favorite device in this class?

1895
 
 

I am trying to figure out how I can retain personal SSH keys (probably the most important part, or at least important to have an alternative connection method) while also having modern tools like SSO or at least SAML, some way to federate to different ADs.

I know there are a few things out there like Authentik and Authelia, but not 100% sure Authentik covers those needs above. Does anyone have experience with these or other modern LDAP alternatives that work well with Linux?

1896
 
 

Curious from people who follow its development closely.

  • What protocol are about to be finally implemented?
  • Which ones are still a struggle?
  • How many serious protocols are there missing?

https://arewewaylandyet.com/

1897
 
 

I'm looking for a timer applet that can go in the system tray where I can put in a time and it will count down and give me a notification when the time is up.

1898
 
 

A Shell DSL that transforms into Python.

I created this IDE to spin up Tkinter UIs or anything Python with less boilerplate and rich cognitive and efficiency shortcuts: for me, I think this tool helps me prototype GUI apps quicker with less characters typed so less effort.

I would love to take this further if I could get anyone interested. Thanks.

https://github.com/dislux-hapfyl/shimky

1899
 
 

I've had this same issue on Gentoo and now on Alpine, both with plasma 6 (Wayland). Pipewire and plasma 6 seem to be working as intended other than that... Any help would be appreciated!

E: the issue is plasma 6 exclusive, I have hyprland installed along side it and screensharing works just fine there

1900
view more: ‹ prev next ›