Linux

48954 readers
811 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
1
 
 

For context:

I'm copying the same files to the same USB drive for comparison from Windows and from my Fedora 41 Workstation.

Around 10k photos.

Windows PC: Dual Core AMD Athlon from 2009, 4GB RAM, old HDD, takes around 40min to copy the files to USB

Linux PC: 5800X3D, 64GB RAM, NVMe SSD, takes around 3h to copy the same files to the same USB stick

I've tried chagning from NTFS to exFAT but the same result. What can I do to improve this? It's really annoying.

2
 
 

If you want to go straight to the original write-up, it's here: https://eieio.games/blog/bad-apple-with-regex-in-vim/

3
4
 
 

I've been running into an issue recently where my system will start to stutter and freeze. Going into my task manager (Resources), I can see my using is using roughly 18/32GB of RAM despite closing all apps. Normally I should be at around 2GB on a fresh boot.

I've only noticed this issue appearing when first interacting with an app called Newsflash, but the issue persists even after closing the app. I even tried using systemd's soft-reboot feature and even that did not clear the memory leak. So it seems the memory leak must be in the kernel itself.

And please don't link linuxatemyram. This is not related to cached data.

5
6
 
 

After a fairly hassle-free year or so with this Epson ET-2815 printer, the cyan now won't print at all (no lines, no nothing - printing a full cyan page just yields white). I believe the print head is fully clogged and I want to perform a print head cleaning. I need the epson-printer-utility to do so (available from here, manual here), which I did not set up when I initially set up the printer.

I have installed epson-printer-utility as instructed and run it through the terminal, but I am met with a error message saying "The printer was not found". The printer is otherwise found on the network and configured in CUPS, and I can print just fine with it (up until the cyan channel now doesn't work anymore).

I ran across this old post suggesting that the udev-rule is copied over to /etc/udev/rules.d, but the installation process seems to have taken care of that already.

This print head function is also available through this god-awful mobile app that I had to use to set it up, but now the app also cannot find the printer, even though I try to connect directly to the IP. I have ensured that my phone is on the same network as the printer, but alas.

This happened straight after I set up the integration in Home Assistant, but I imagine this is just a coincidence. I last used the printer just over a month ago.

Anyone have any experience dealing with this?

7
46
submitted 16 hours ago* (last edited 16 hours ago) by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
 
 

Sigil is a free, open source, multi-platform ebook editor that uses Qt6 (and QtWebEngine). It is designed to edit books in ePub format (both ePub 2 and ePub 3).

8
 
 

I tried added a key file and even a password txt but both lead to it still asking for me to type in the password.

Is it because the drive is encrypted? I tried placing the files at /, /boot, /root, /etc

Edit1: I’ve tried to install dropbear and give it ssh keys. I will try to reboot in the morning and see what happens

Edit2: signing in via ssh just says port 22 rejected not working :(

9
 
 

I am running a VM on Gnome Boxes on a laptop with Intel® Core™ Ultra 7 155H Processor and integrated graphics. I am able to run the VM without 3D acceleration with no problem, but whenever I turn it on, the VM's display malfunctions. I tried it with EndeavourOS, CachyOS and Fedora 41, all have 3D acceleration issue.

10
 
 

Hi,

I've recompiled my kernel[^moreinfo] of my raspberry pi 4 that run under Devuan rpi

some of the command used on the rpi to compile

apt install build-essential libncurses-dev bison flex libssl-dev libelf-dev
mkdir /RaspKernel_6_1_y && cd /RaspKernel_6_1_y
git clone --depth=1 --branch rpi-6.1.y https://github.com/raspberrypi/linux
cd linux
cp /boot/config-6.1.93 /RaspKernel_6_1_y/linux/.config
KERNEL=kernel8
make menuconfig
time make -j$((`nproc` - 2)) Image.gz modules dtbs
make -j$((`nproc` - 2)) modules_install
cp arch/arm64/boot/Image.gz /boot/broadcom/$KERNEL.img
cp arch/arm64/boot/dts/broadcom/*.dtb /boot/broadcom/
cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/overlays/
cp arch/arm64/boot/dts/overlays/README /boot/firmware/overlays/
reboot
apt install cryptsetup


In addition to have enabled some cipher/algorithm in the kernel config I have set a string ( TESTversionA ) in CONFIG_LOCALVERSION , may be I shouldn't have :/ ?

I'm currently following this guide LUKS on Raspberry Pi ( for context my related lemmy post )

So now that the kernel has been updated, the cryptsetup benchmark -c xchacha20,aes-adiantum-plain64 command is successful

So in order to enable luks in initramfs I'm following the preparing-linux section of this guide.

we can read:

initramfs has to be recreated

I followed the guidance and edited the initramfs-rebuild file to match my setup

initramfs-rebuild file

#!/bin/sh -e

# Rebuild initrd.gz after kernel upgrade to include new kernel's modules.
# https://github.com/Robpol86/robpol86.com/blob/master/docs/_static/initramfs-rebuild.sh
# Save as (chmod +x): /etc/kernel/postinst.d/initramfs-rebuild

# Remove splash from cmdline.
if grep -q '\bsplash\b' /boot/cmdline.txt; then
  sed -i 's/ \?splash \?/ /' /boot/cmdline.txt
fi

# Exit if not building kernel for this Raspberry Pi's hardware version.
version="$1"
current_version="$(uname -r)"
case "${current_version}" in
  *-v7+)
    case "${version}" in
      *-v7+) ;;
      *) exit 0
    esac
  ;;
  *+)
    case "${version}" in
      *-v7+) exit 0 ;;
    esac
  ;;
esac

# Exit if rebuild cannot be performed or not needed.
[ -x /usr/sbin/mkinitramfs ] || exit 0
[ -f /boot/broadcom/initrd.gz ] || exit 0
lsinitramfs /boot/broadcom/initrd.gz |grep -q "/$version$" && exit 0  # Already in initramfs.

# Rebuild.
mkinitramfs -o /boot/broadcom/initrd.gz "$version"


and when I run mkinitramfs -o /boot/broadcom/initrd.gz I got

grep: /boot/config-6.1.93TEST+: No such file or directory

I've did

cp /RaspKernel_6_1_y/linux/.config /boot/config-6.1.93TEST+
mkinitramfs -o /boot/broadcom/initrd.gz

and it seemed worked. I've edit the remaining files

  • /boot/broadcom/cmdline.txt
  • /etc/fstab
  • /etc/crypttab

rebooted. Landed in the initramfs shell as expected

but benchmark -c xchacha20,aes-adiantum-plain64 is no longer successful :'(

Cipher xchacha20,aes-adiantum-plain64 (with 256 bit key) is not available

Any ideas where might lay the problem ?

Thanks.

[^moreinfo]: --branch rpi-6.1.y https://github.com/raspberrypi/linux

11
12
 
 

The death of Bram Moolenaar, Vim founder and benevolent dictator for life (BDFL), in 2023 sent a shock through the community, and raised concern about the future of the project. At VimConf 2024 in November, current Vim maintainer Christian Brabandt delivered a keynote on “the new Vim project" that detailed how the community has reorganized itself to continue maintaining Vim and what the future looks like.

13
14
15
 
 

Hi,

I'm trying to encrypt the root filesystem / of a raspberry pi 4 device running under Devuan rpi ( custom kernel )

I'm following LUKS on Raspberry Pi 2021 guide

That explain step by step how achieve this.

But the guide use initramfs and my distro seem to use initrd

So the question, is: should I migrate to initramfs ? and how check whats is inside my current initrd

or keep-up with initrd but then how insert the necessary to enable LUKS drive to be mounted by it ( initrd ) ?

Thanks.

16
17
229
submitted 2 days ago* (last edited 1 day ago) by golden_zealot@lemmy.ml to c/linux@lemmy.ml
 
 

Today I am moving not only myself, but my parents to Linux!

For me this is a long time coming. I discovered and started dabbling with Linux when I was 13 or so and somehow got an image of Backtrack 5 running on a Macbook Pro without virtualization (I'm still not entirely certain how I managed it) as I was always interested in IT/Security.

Eventually I went to school for IT and I've been working in tangents of the industry ever since, though few of my workplaces have made use of Linux unfortunately.

I have been running Debian on my personal laptop for a couple years now and I have had very few problems outside of breaking my sources.list the other day when I echo'd into it with > instead of >>.

I have a friend who recently fully switched over to Arch as well, and now more than ever I have found that all my friends, including those who are non-technical, are interested in learning about or moving to Linux, so I have decided now would be a good time to be an example for them.

I have made my parents aware of the ongoing and worsening problems with Windows and that their version of the OS will be out of support soon and today I'll be putting them on Mint. I don't expect any problems as I already had them using Open Office and other such applications since they didn't want to buy licensing for MS Office years ago. Furthermore their computer has no special hardware/software otherwise, it's basically just a Micro-ITX email machine that they sometimes use for printing.

I have enjoyed using Debian on my laptop so I intend to install Debian 12 to my desktop system, though I expect some complications as it has some hardware I have not had to configure on Linux before. Specifically It has an NVIDIA EVGA RTX 3090 FTW3 ULTRA and an NZXT Kraken Liquid CPU cooler.

I am aware that Debian has full documentation on how to go about installing and setting up the drivers for an RTX card, but if anyone has done this, I would certainly appreciate any anecdotal advice regarding the matter as well as anything I might want to know about making sure the cooler is functioning.

If anyone wants to offer advice but needs to know more about the hardware, I have the following specifically:

  • PSU - Cooler Master V750 Gold V2, 750 Watt, White
  • Motherboard - ATX ASUS PRIME z390-A
  • Case - White NZXT H510 Elite for ATX form factor, Tempered Glass, Integrated RGB lighting
  • CPU Cooling - NZXT Kraken X53 240mm AIO RGB CPU Liquid cooler, Rotating infinity mirror design, improved pump
  • GPU - EVGA GeForce RTX 3090 FTW3 ULTRA
  • RAM - Corsair Vengeance RGB Pro SL 32 GB (2x16GB) DDR4, White
  • Storage - Two 2 TB Seagate Firecuda M.2 NVME's
  • Peripherals include a focusrite Scarlett audio interface, Wired Logitech mouse and keyboard, Logitech C920 HD Pro Camera

Thanks for any advice, and I just wanted to offer a thanks to this community at large as I have read and learned some very neat things since I joined Lemmy.

EDIT:

I have successfully installed Mint for the parents! It went off mostly without a hitch. I found that Brother provides Linux drivers/utility scripts for their printers on a per-model basis so I was glad to see they really were at my side haha. Unfortunately, while the printer is detected and prints, even after installing the scanner driver for the model, I can't seem to get the device to be detected as a scanner in either the simple scan utility or in xsane, so I will be troubleshooting that in the coming days. Otherwise I am very pleased with it.

EDIT 2:

I return to you all from my fresh Debian system!

The system, applications, and most configs have all been set now, it is mainly my files remaining for transfer.

So far this has been the smoothest installation of a Linux OS I have ever done. After adding the repo's the Nvidia drivers installed like a dream. As I have 3 displays there was a little bit of fun in setting the proper display configuration for pre-login positioning, but those fixes were really quite straightforward.

It is about 5 AM so I am going to bed and continue onward into a brighter future tomorrow, but I wanted to thank you all again and provide the somewhat obligatory neofetch screenshot before I left.

https://files.catbox.moe/v8j8we.png

18
 
 
19
20
 
 

cross-posted from: https://lemm.ee/post/52165296

21
22
 
 

Hi there! This is quite the annoying issue how programs (like btiwig now or many others before) handle the google drive that is connected to my explorer. In Ubuntu, Fedora and now Mint, many programs do not display my google drive when i want to save my projects or open files and stuff like that.

What is you approach on working with cloud storage or network drives? Or is there a solution, like different explorer or account handler? Thanks, I really how anyone can help :)

23
 
 

I've been having a serious issue with phantom clicks on a laptop, to a point is nearly impossible to work on a desktop.

At first I assumed it was something related with a bluetooth daemon call that kept returning an error on startup. I forced access to a CLI and managed to uninstall the bluez package but the issue persisted.

I assumed then it was an issue with the mouse itself but after unplugging it completely, using the touchpad had the same behaviour. I also tried tweaking the mouse settings, to no difference.

Finally, I tried booting into Windows, as this machine has a dual boot, and there both mouse and touchpad report no erratic bahaviour.

After a few online searches, I found similar issues reported but back in 2014, mostly related with kernel drivers, which by now must be solved, as the system initially didn't had this issue, with a fresh install.

The only non-repo app the system has is Zoom and, again, it didn't started having this issue when installed.

Can someone spare some advice on this?

My temptation is to just do a fresh install but as I once read somewhere "we don't do that here". :)

The distro being run is Mint, on a generic Intel based laptop.

24
72
Calibre 7.24 released (calibre-ebook.com)
submitted 2 days ago* (last edited 2 days ago) by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
 
 

New features

  • Allow creating rules to transform series names in the Bulk metadata editor and Preferences->Metadata download
    • Closes tickets: 2091268
  • Conversion: Automatically set the page progression direction for books that do not have it set and have their primary language either Arabic or Hebrew
  • Content server: Book details view: Make calibre://show-book and calibre://view-book URLs in the comments work
  • Edit book: Spell check: Add a button to export the currently displayed list of words as a CSV file
    • Closes tickets: 2092496
  • Add from ISBN: Add a checkbox to automatically convert obsolete ISBN 10 to ISBN 13
    • Closes tickets: 2092483
  • Save single format to disk: Allow choosing the book cover as the format to save
    • Closes tickets: 2092395
  • Option to show a button to access all available actions from the status bar in Preferences->Look & feel->Main interface

Bug fixes

  • Read aloud: Fix no audio produced when text contains <3 and using the Windows legacy speech engine
    • Closes tickets: 2092948
  • Fix Tabbing while editing cells in the book list not always working
    • Closes tickets: 2092643
  • Windows build: Also sign the portable launcher exes
  • Fix viewing books via the Cover browser not working when in device view
    • Closes tickets: 2092630

Improved news sources

  • LWN Weekly
  • Outlook India
  • Livemint
25
 
 

Automatic CPU speed & power optimizer for Linux. Actively monitors laptop battery state, CPU usage, CPU temperature, and system load, ultimately allowing you to improve battery life without making any compromises.

Features:

  • Add EPB (Energy Performance Bias) settings support #771 | Closes: #522

Bug fixes and improvements:

  • Fixed wrong sensor being monitored (AMD) #772
  • Added notes to the documentation about the default energy_perf_bias settings #774
  • Add support for Fedora 41 (TuneD) #786 (Closes: #779)
  • Fix nix CI: fix prevent-install-and-copy.patch #787
  • Fix Nix Build CI (Closes: #798)
  • Improve TuneD detection mechanism #788
  • Improve systemd service management #789
  • Resolve permission errors for --install, --remove, and cpufreqctl.auto-cpufreq #762 (Closes #797)
view more: next ›