Linux

49486 readers
4 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
1901
 
 

Hey,

As an avid CLI user, I always aimed to master non-interactive tools to perform most of my work, given that they are easy to use, create, extend, and connect.

However, I found myself dealing with software projects with many files (mostly under the yoke of corporate oppression; an ordeal which I endure to sustain myself, as most of those reading me do, and therefore I will not go further into this topic) and started to hit the limits of non-interactive tools to find and edit files. Indeed, I could go faster if I followed the temptation of monstrous IDEs, as I did in my innocent past.

I did not despair, as naturally I heard of the usefulness of interactive fuzzy finders such as fzf. After spending an afternoon evaluating the tool, I concluded that it indeed increases the complexity of my workflow. Still, this complexity is managed in a sensible way that follows the UNIX tradition.

I now ask you two general questions:

  • Did you reach similar conclusions to me and decide to use interactive fuzzy finders to solve working on software projects with many files?
  • If you use fzf or similar tools, what can you tell me about your workflow? Any other third-party tools? Do you integrate it into your scripts? Any advice that you can give me out of a long time of experience using the tool that is not easily conveyed by the documentation?

I also ask this very specific question:

  • The one part of fzf which I found missing was a way to interact with the results of grep, and to automatically place the selected file(s) in the prompt or an editor. For that, I created the following two commands. Do you have a similar workflow when you want to bring the speed of fuzzy finding to grep?
#! /usr/bin/env bash

# gf: grep + fzf
# basically a wrapper for 'grep <ARGS> | fzf | cut -f 1 -d:'

# print usage on -h/--help
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
    echo "Usage: gf <grep-args>"
    echo
    echo "~~~ that feel when no 'gf' ~~~"
    echo
    echo "- Basically a wrapper for 'grep <ARGS> | fzf | cut -f 1 -d:'"
    echo "- Opens fzf with grep results, and prints the selected filename(s)"
    echo "- Note: As this is meant to search files, it already adds the -r flag"
    echo
    echo "Example:"
    echo "  $ nvim \`gf foobar\`"
    echo "  $ gf foobar | xargs nvim"
    exit 0
fi

# run grep with arguments, pipe to fzf, and print the filename(s) selected
custom_grep () {
    grep -E --color=always --binary-files=without-match --recursive "$@"
}
remove_color () {
    sed -E 's/\x1b\[[0-9;]*[mK]//g'
}
custom_fzf () {
    fzf --ansi --height ~98%
}
grep_output=$(custom_grep "$@")
if [[ "$?" -ne 0 ]]; then
    exit 1
else
    echo "$grep_output" | custom_fzf | remove_color | cut -f 1 -d:
fi
#! /usr/bin/env bash

# ge: grep + fzf + editor
# basically a wrapper for 'grep <ARGS> | fzf | cut -f 1 -d: | $EDITOR'

# print usage on -h/--help
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
    echo "Usage: ge <grep-args>"
    echo
    echo "- Basically a wrapper for 'grep <ARGS> | fzf | cut -f 1 -d: | \$EDITOR'"
    echo "- Opens fzf with grep results, and edits the selected file(s)"
    echo "- Note: As this is meant to search files, it already adds the -r flag"
    echo "- Note: Internally, it uses the 'gf' command"
    echo
    echo "Example:"
    echo "  $ ge foobar"
    exit 0
fi

# takes output from 'gf' and opens it in $EDITOR
grep_fzf_output=$(gf "$@")
if [[ -n "$grep_fzf_output" ]]; then
  $EDITOR "$grep_fzf_output"
fi

Have a wonderful day, you CLI cowboys.

1902
1903
 
 

NUREMBERG, Germany – The release of Leap 15.6 is official and paves the way for professionals and organizations to transition to SUSE's enterprise distribution with extended support or prepare for the next major release, which will be Leap 16.

Demands for robust, secure and stable operating systems in the digital infrastructure sector are more critical than ever. The combination of the community-driven Leap 15.6 and SUSE Linux Enterprise 15 Service Pack 6, which integrates new features and enhancements, offers an optimal solution for managing critical infrastructure. Notably, SUSE's general support and [extended support]](https://www.suse.com/products/long-term-service-pack-support/) versions; these Product Support Lifecycles last well beyond Leap 15's lifespan, ensuring longer and reliable service for users.

SLE 15 SP 6 is a feature release, so users can expect several more features in the Leap 15.6 release.

This alignment ensures businesses and professionals using Leap for operational needs can enjoy a clear, supported transition to an enterprise environment, which is crucial in a move for systems that require long-term stability and enhanced security. As organizations strategize their upgrade paths, adopting an enterprise-grade solution like SUSE becomes a strategic decision, especially for those managing extensive networks and critical data across various sectors.

Since being released on May 25, 2018, Leap has added several additions like container technologies, immutable systems, virtualization, embedded development, along with other high-tech advances. A rise in usage from each minor release shows that entrepreneurs, hobbyists, professionals and developers are consistently choosing Leap as a preferred Linux distribution.

Leap 15.6 is projected to receive maintenance and security updates until the end of 2025 to ensure sufficient overlap with the next release. This will provide users with plenty of time to upgrade to the release's successor, which is Leap 16, or switch to SUSE's extended service support version. Users interested in commercial support can use a migration tool to move to SUSE's commercial support version.

The inclusion of the Cockpit[1] package in openSUSE Leap 15.6 represents a significant enhancement in system and container management capabilities for users. This integration into Leap 15.6 improves usability and access as well as providing a link between advanced system administration and user-friendly operations from the web browser. The addition underscores openSUSE's commitment to providing powerful tools that cater to both professionals and hobbyists. Leap does not come with a SELinux policy, so SELinux capablities for Cockpit are not functioning.

Container technologies receive a boost with Podman 4.8, which includes tailored support for Nextcloud through quadlets, alongside the latest releases of Distrobox, Docker, python-podman, Skopeo, containerd, libcontainers-common, ensuring a robust container management system. Virtualization technologies are also enhanced, featuring updates to Xen 4.18, KVM 8.2.2, libvirt 10.0, and virt-manager 4.1.

The Leap 15.6 release incorporates several key software upgrades enhancing performance and security. It integrates Linux Kernel 6.4, which provides backports for some of latest hardware drivers, which offer performance enhancements. OpenSSL 3.1 becomes the new default and provides robust security features and updated cryptographic algorithms. Database management systems receive significant updates with MariaDB 10.11.6 and PostgreSQL 16. Redis 7.2 offers advanced data handling capabilities and the software stack is rounded out with PHP 8.2 and Node.js 20; both received updates for better performance and security in web development. Leap will also have OpenJDK 21 providing improvements for enhanced performance and security in Java-based applications.

Updates in telecommunications software are seen with DPDK 22.11 and Open vSwitch versions 3.1 and OVN 23.03.

The KDE environment advances with the introduction of KDE Plasma 5.27.11, which is the latest Long Term Support version, Qt 5.15.12+kde151, and KDE Frameworks 5.115.0, as well as Qt6 version 6.6.3, facilitating smooth application operations with updated Python bindings for PyQt5 and PyQt6 aligning with Python 3.11.

Many unmaintatined Python packages were removed as part of a transition to Python 3.11; more details can be found in the release notes.

GNOME 45 brings enhancements to the desktop environment, adding features that elevate the user experience. Audio technologies see major upgrades with the release of PulseAudio 17.0 and PipeWire 1.0.4, which improve hardware compatibility and Bluetooth functionality, including device battery level indicators.

These updates collectively enhance the system’s stability and user experience and make Leap 15.6 a compelling choice for professionals, companies and organizations.

Leap can be downloaded at get.opensuse.org.

End of Life

Leap 15.5 will have its End of Life (EOL) six months from today’s release. Users should update to Leap 15.6 within six months of today to continue to receive security and maintenance updates.

Download Leap 15.6

To download the ISO image, visit https://get.opensuse.org/leap/

If you have a question about the release or found a bug, we would love to hear from you at:

https://t.me/openSUSE

https://chat.opensuse.org

https://lists.opensuse.org/opensuse-support/

https://discordapp.com/invite/openSUSE

https://www.facebook.com/groups/opensuseproject

Get involved

The openSUSE Project is a worldwide community that promotes the use of Linux everywhere. It creates two of the world’s best Linux distributions, the Tumbleweed rolling-release, and Leap, the hybrid enterprise-community distribution. openSUSE is continuously working together in an open, transparent and friendly manner as part of the worldwide Free and Open Source Software community. The project is controlled by its community and relies on the contributions of individuals, working as testers, writers, translators, usability experts, artists and ambassadors or developers. The project embraces a wide variety of technology, people with different levels of expertise, speaking different languages and having different cultural backgrounds. Learn more about it on opensuse.org

1 [Root login is disabled by default. Please read details in the Try Cockpit in Leap Release Candidate article.

***** Two bugs related to Chrome with Wayland on GNOME 45 may see a fix coming in an update. *****

Retrospective

Provide your feedback to our release team by visiting survey.opensuse.org/ and taking our retrospective survey.

More Information about openSUSE:

Official

Fediverse

<sub><sup>(Image made with DALL-E)</sup></sub>

1904
 
 

I've been trying to find a linux programming similar to Rufus to flash images of OSes on a thumb drive.

Nothing from the listicles on the internet or the programs in flatpak have worked for me as well as Rufus on Windows.

What have you used that's worked well? Or, could I run Rufus on my linux machine with WINE?

1905
1906
1907
41
submitted 7 months ago* (last edited 7 months ago) by j4k3@lemmy.world to c/linux@lemmy.ml
 
 

I want to extract and process the metadata from PNG images and the first line of .safetensors files for LLM's and LoRA's. I could spend ages farting around with sed or awk but formats of files are constantly changing. I'd like a faster way to see a summary of training and a few other details when they are available.

1908
1909
 
 

Edit: Last night, I used the "Fix MergeList problems" option in the maintenance tab of software sources and at least for now, it seems to be working. So I probably wont need help with this anymore, hopefully.

Every hour or two, the Update Manager keeps giving me an error message saying that my APT configuration is corrupt and that I should switch to another Linux Mint mirror. It usually goes away when I do a manual refresh but it just keeps coming back. I have also tried switching to a different mirror but I get the same error. It also tells me to run apt-get update but even if I add "sudo" it just gives me an error message saying to run apt-get update.

It happened again so I'm adding screenshots in case they help. The first is the initial error, then it's the error I get when I try to change the repository and the third is the error I get when I try running the command it suggested:

1910
 
 

Straight forward question, there is no Wayland output option in display output configuration in parole so how to get it working on wayland either by having Wayland output or simulating X.

IN short what package I need to fix it

1911
 
 

Hey all!

(I did post this in c/flatpak, but this community is more active. I am not sure where would be more appropriate)

Something that I have been wanting to get working is having my browser and password manager both in flatpak. I really like being sandbox and having faster updates if the distro is on the slower side perhaps.

I have a set up with Firefox as a deb and keepassxc as a flat and that works find as one would expect. I did want to install Vivaldi as a flatpak and was not able to get it to talk with keepass.

In my reading I found this: installing KeePassXC natively, which you’d actually want for security reasons.

installing KeePassXC natively, which you’d actually want for security reasons

What is mean by that line of reasoning?

1912
 
 

I currently use the following one-liner to switch between sinks

pactl set-default-sink $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) && pw-play --volume=0.2 /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga

It seems wpctl doesn't currently support node.names which makes this significantly more complex, has anyone done something similar with wpctl? I've found a massive script but I want something more simple that's a one-liner.

wpctl set-default $(pw-cli i $(pactl list short sinks | awk '{print $2}' | sd 'easyeffects_sink\n' '' | sd "$(pactl get-default-sink)\n" '' | tofi --prompt-text " " --height 40% --width 40% --auto-accept-single true ) | rg -oP 'id: \K\w+')

closest I've managed so far is this, which at least makes it so that wpctl sets the sink, which is an upgrade, I guess, but there's still two pactl's to eliminate...

1913
 
 

I have some video files which have stereo audio tracks that were created from a mono source. I think the mono signal got sent to the right channel and not the left because when I created the files in OBS I forgot to select mono audio recording. When I play the videos all the sound is on right side only. Hope that makes sense...

How can I either mix down/combine the stereo tracks intoto a single mono track or replace the empty left channel with the audio content of the right channel? Is there a way to do this without reencoding the whole video file?

I could do it in a video editing gui by copypasting the audio track to the other empty channel but I wonder if there might be a more efficient way of doing it. An ffmpeg command perhaps?

Many thanks

1914
 
 

how do I start looking for the package I need?

This happens with some mkv files and to all mp4 files I play, both with apt and flatpak installed vlc versions.

this never happened on the same computer with xubuntu 23.10

1915
-32
Titus' Linux Problems (www.youtube.com)
submitted 7 months ago* (last edited 7 months ago) by urska@lemmy.ca to c/linux@lemmy.ml
1916
23
The Linux Experience (www.youtube.com)
submitted 7 months ago by urska@lemmy.ca to c/linux@lemmy.ml
1917
 
 

I tired Linux a few times in the past, but didn’t really start using seriously until 2019. I love poking around old OSs and distros, and I want to spin a few up in some VMs my next free evening.

Any suggestions? Open to any distro (or let’s be honest, DE). Any versions that holds a special place in your heart or that’s exceptionally novel? Really interested to see what’s out there!

1918
1919
1920
18
submitted 7 months ago* (last edited 7 months ago) by Petter1@lemm.ee to c/linux@lemmy.ml
 
 

Hey there

I have to add backported drivers to my 5.15 kernel source in order to create a embedded Linux on kernel 5.15 compatible with newer devices like 5ghz wifi dongles.

I understood that I have to use this command:

Python3 ./ gentree --integrate --clean /path/to/linux-next /path/to/my/5.15-kernel-source-git

But it fails stating it wanted to copy a file from new linux that only exists in the old linux

Have I understood that wrong?

Edit: it says it does not find …/lib/memneq.c which seems not existing there at least since 6.2 🤔

Edit2: I fear that it only backports 5.15 drivers to even older kernels 😮 so, I think I have to integrate lwfinger‘s rtw88 backport into my 5.15 kernel sources, somehow, after all

https://backports.wiki.kernel.org/index.php/Documentation/integration

1921
 
 

I needed to add a custom System Request (Sys Req or SysRq) to a linux kernel some time ago. While doing so, I dug deep into how it works and I thought I’d make a quick post about it. Here is a good SuperUser answer about what a SysRq is. You may also know about SysRq via REISUB. This post has three parts: how to raise a SysRq, how SysRq works (looking into kernel code), and how to add your own SysRq.

Disclaimer: This is my website.

1922
35
Libre and Free A Linux Legacy (song) (testaccountpleaseignore.bandcamp.com)
1923
 
 

Hello everyone,

I wanted to share with you (once more) the release of Louvre v2.0.0 (C++ library for building Wayland compositors) #linux .

Demo Video.

Highlights of the new features:

  • Screencasting: Now compatible with PipeWire via xdg-desktop-portal-wlr.
  • Session Lock Protocol: Allows for the display of login windows.
  • Layer Shell Protocol: For wallpapers, panels, notifications, etc.
  • New Input Events API: Enhanced with support for touch events, pointer gestures, and pointer constraints.

Release Details.

If there's any protocol or functionality you would like to see added, please feel free to suggest it or contribute to its development!

1924
41
submitted 7 months ago* (last edited 7 months ago) by governorkeagan@lemdro.id to c/linux@lemmy.ml
 
 

I know the title sounds a little strange but hear me out. The time tracking software I use for work doesn’t work on Wayland, unless I’m using Gnome as my DE. They have an extension that allows it to work in this case. Personally, I don’t enjoy Gnome on my desktop (I use it on my laptop). Is there a way for me to get the functionality that this extension provides on KDE so that I can use Wayland on my desktop as well?

Time tracking software:

Linux install script:

EDIT: I have included more files in the codeberg repo. I hope this helps.

1925
98
submitted 7 months ago* (last edited 7 months ago) by Moorshou@lemmy.zip to c/linux@lemmy.ml
 
 

I was curious what the Linux people think about Microsoft and any bad practices that most people should know about already?

view more: ‹ prev next ›