Linux

49417 readers
1688 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
151
8
submitted 2 weeks ago* (last edited 2 weeks ago) by Teppichbrand@feddit.org to c/linux@lemmy.ml
 
 

So, I have two drives. #1 is a 1TB M.2 SSD, I'm currently dualbooting W10 and Linux Mint. (Please don't hate, I use Windows only for work, cannot drop it. #2 is an older 250GB Sata SSD, it's empty. I want to fresh install both OSs to #2 and use #1 as home for Linux.
Problem:
Drive #2 doesn't show up as boot option in EFI (MSI Z690-A), only #1. When I boot into Windows setup from USB, I can start the installation, but it wants to reboot during the progress and I can't choose #2 at all. So it boots into Linux, I see unfinished Windows on #2 but can not do anything about it.
I'm no beginner, but I'm clueless here. Any help?

152
153
154
 
 

Does Linux support this? I am trying to connect my laptop to a monitor via USB C. The laptop has two Thunderbolt ports and the monitor has support for USB C DP alt mode. I have tested the same setup on my work laptop (windows 11) and it works fine but my laptop running arch does not work. My laptop detects the monitor correctly so it shows up in the KDE plasma display configuration but the monitor is not getting any input. As far as I could tell this is supported in the kernel. Am I wrong? Am I missing some important package?

155
 
 

I have no idea how to troubleshoot this. Manually suspending works, and it suspends automatically usually about 1 - 2 days after rebooting, then suddenly even the screen won't turn off.

156
157
158
 
 

Hi, I just want to share / get some opinion.

I started using Linux 2 years back. I was dual booting back then and after a year switched to Linux completely.

I started out using Ubuntu, hated it, installed Manjaro after a week and when pacmac broke the thing within 2 months, I watched a bunch of YouTube videos, read the arch wiki and installed arch. Things were going great except for some Nvidia issues (I am using an Optimus laptop) but utt was running smoothly. Then decided that I want to build a game engine and the nvidia issues were significant. So I read somewhere that Fedora has great nvidia support and I installed it and everything worked. I installed Fedora 39, and it worked. When Fedora 40 came, I upgraded no issues, Fedora 41 came, no issues.

But just a few days back when I had vacation, I decided my system was getting bloated and I didn't manually want to uninstall apps, I decided let's format it. But I thought... Arch might take up less space on my disk(1 have a 512gb nvme, and t 2tb hdd, but I like to put things like games and projects I am working on, on the nvme). So I installed arch and loving the experience. I installed Nvidia-open drm drivers and it just works.

TLDR: Is it normal to distro hop after being using a distro perfectly for so long?

PS: I used archinstall because I didn't want through the lengthy process again. And archinstall works great.

159
160
 
 

OK, maybe you wouldn't pay three grand for a Project DIGITS PC. But what about a $1,000 Blackwell PC from Acer, Asus, or Lenovo?


Besides, why not use native Linux as the primary operating system on this new chip family? Linux, after all, already runs on the Grace Blackwell Superchip. Windows doesn't. It's that simple.

Nowadays, Linux runs well with Nvidia chips. Recent benchmarks show that open-source Linux graphic drivers work with Nvidia GPUs as well as its proprietary drivers.

Even Linus Torvalds thinks Nvidia has gotten its open-source and Linux act together. In August 2023, Torvalds said, "Nvidia got much more involved in the kernel. Nvidia went from being on my list of companies who are not good to my list of companies who are doing really good work."

161
 
 

cross-posted from: https://lemmy.zip/post/26986197

Wayland and audio is fixed, but only on the canary branch for the moment, this isnt lazy either, they changed the whole screenshare flow to suit linux's permission prompts

162
 
 

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.

163
 
 

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.

164
165
 
 

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

166
 
 

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?

167
168
56
submitted 2 weeks ago* (last edited 2 weeks 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).

169
 
 

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.

170
 
 

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 :(

Edit3: neither dropbear for ssh or keyfile worked. I give up.

171
 
 

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

172
173
 
 

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.

174
143
submitted 2 weeks ago* (last edited 2 weeks ago) by petsoi@discuss.tchncs.de to c/linux@lemmy.ml
 
 

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.

175
view more: ‹ prev next ›