Linux - Reddit – Telegram
Linux - Reddit
764 subscribers
4.18K photos
207 videos
39.9K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Comparison of C/POSIX standard library implementations for Linux
https://www.etalabs.net/compare_libcs.html

https://redd.it/1n4rkgy
@r_linux
Do you use disk encryption? Why? Why not?

Context:

\- I set up a new raspberry pi and while setting up, i stumpled upon the question of security on a shared device

\- During research, I noticed that even when you set a password, your file repository can be read, including the stored keys of your browser

\- To prevent that, you would need to encrypt your disk (that's different from just using a password for your user)


\---


So, how do you do it? Do you encrypt your disk? Do you enter the password twice then on boot or do did you configure auto login after decryption?

I might set up my Fedora + Rasp Pi new with it enabled, I assume it can be easily set up during installation?

How do you handle it?

https://redd.it/1n4w1jg
@r_linux
Starting computer science

Next year I'm gonna be in 10th grade and we're learning computer science, specifically c#. We will be using Visual studio 2019/2022 (not sure). At home I'm using a laptop with fedora kde. What software should I use to continue my work at home?

https://redd.it/1n4x8b0
@r_linux
Give me some noscripting projects for practice please!

Hey all! I've been enrolled in a cyber security class since July of this year. I've since learned networking essentials, cybersecurity essentials, Linux essentials, and obtained my isc2 CC a few days ago, while I'm still working towards my splunk core user and CompTIA CySA+. On this journey so far the one thing I enjoyed a lot was working with Linux. I liked it so much I switched on a spare machine and got an Lpi Linux essentials exam voucher, however I was a bit gung ho and took the exam too soon, thus failing. That didn't discourage me though and I've been tinkering since in Linux.

I understand man pages, the cat command, creating directories and user accounts as well as assigning group roles and permissions, use of the passwd and shadow directories as well as Wireshark and nmap. One area I knew I suffered in ok the LPI exam was noscripting and task automation. So I've recently been brushing up on noscripting with a Linux learning YouTube course. Up to this point I have a pretty good understanding of some basics like using if, then, else in nano (currently watching/learning while loops), the use of variables and exit codes.

With all that being said I'm just looking for some fun ideas ( I don't want anyone to tell me HOW to do it, just what task I should try to automate) to practice and hone my bash noscripting skills. I'm not looking for instructions because I want to suffer through pain points and figure things out because for me that has been the best path to learning. But if anyone has little bits of wisdom they'd like to impart in general I'm glad to hear it. I've been rigorously trying to learn as much as possible with the goal of eventually being skilled enough for an ethical hacking role and then continue learning into the abyss from there lol. Looking forward to hearing anything from you guys. Sorry for the long winded post, just wanted to provide some background.

https://redd.it/1n4yfot
@r_linux
My Xlibre testing experience

Been running Debian with KDE Plasma since not long ago. I’ve run Debian with Xfce for the longest of time, might go back, who knows; I love desktop Linux, but sometimes it feels like it’s slowly trying to ruining itself by trying to mimick Windows. Wayland is the glaring example of that, I stick with Xorg because it just works flawlessly on my Ryzen + AMD laptop. Out of curiosity, I decided to try Xlibre.

I wanted to jump on it right away, but I’m too software conservative to compile bleeding-edge stuff just for kicks. So I waited until someone packaged it. When it finally landed for Debian 12 via https://github.com/xlibre-deb/debian, I installed it, rebooted (wasn’t necessary, I just did it for good measure)… and absolutely nothing changed. The X process still had the same name. No new bugs, no new features. Pinch-to-zoom on my touchscreen still worked. Basically identical. No changes, you would not known better it was exactly the same.

Then I upgraded Debian 12 to 13. Once again, nothing happened. Which, honestly, is simply awesome and kind of the whole point of Debian. It just worked. The system felt the same before and after, and I love that about Debian. Smooth, uneventful, stable to the point where it feels like the upgrade was almost imaginary.

And maybe that’s the real magic of Linux, sometimes the best thing that can happen… is nothing ever happening. Because trying to reinvent the wheel might cause lots of issues and wasted effort. https://pbs.twimg.com/tweetvideothumb/GuA9ctYWUAAcIGe.png

https://redd.it/1n51x2x
@r_linux
Childproof Linux distro

By that I mean you could put any well behaved child on a window computer (such as I at the time) who won't use administrative rights, and you'll hardly find ways of breaking the system.

(Now I remember bottlenecking the hard drive on windows XP but that's nothing a reboot or total data wipe could not fix)

Ideally I wish not to do much after the first booting, so I figured Reddit would have an answer

https://redd.it/1n51o6g
@r_linux
In a world without legal disputes and hurt feelings, is there a good reason Windows and OS X can't just be Linux desktop environments?

I'm a programmer, and I understand there are almost always trade-offs being made no matter how you architect something, but Linux and OS X and Windows are all so similar for the end-user that I wanted to ask people who know a lot more about kernels and the current landscape of features: is there anything that Windows or OS X do that Linux fundamentally cannot do as well because of conflicting design under-the-hood?

It seems like all 3 major OS's support extremely similar use-cases, maybe with the exception of Linux container APIs? They all support daemons/services, pluggable file systems, very similar file system conventions and concepts, and as far as the end user is concerned, they support the same sorts of applications. Like if Microsoft just threw a ton of engineering effort into making Windows a beautifully optimized/polished Wayland-enabled Linux desktop environment, including polishing Wine to handle more edge-cases elegantly, would anything be lost? For example, does the Linux container API introduce substantial overhead to the Linux kernel in general regardless of whether you use it?

https://redd.it/1n571sp
@r_linux
For Nvidia + Wayland users having rendering problems with Minecraft after resume from sleep...

I had a lot of rendering problems with Minecraft lately when optimizing my Nvidia GPU power management.

I use a hybrid GPU laptop which has a Intel and Nvidia GPU (Gigabyte G5 RTX 3050ti with propietary drivers) laptop and I want to have the maximum energy savings while still keeping performance.

The thing is, after tinkering for DAYS, I found up the culprit of every rendering problem happening when resuming from sleep with Nvidia GPU, it was not the nvidia GPU causing corrupted graphics on Minecraft, it was Minecraft's OPENGL.

I first noticed this when Vulkan games didnt crash but OpenGL did. Then I installed the Vulkan mod for fabric and DONE, Minecraft stopped corrupting graphics on resume for the nvidia propietary drivers.

Just install this and you are done, big kudos to the author: https://www.curseforge.com/minecraft/mc-mods/vulkanmod

Personal Note: I hope this gets into Sodium somehow, Vulkan must be standard as of now!

https://redd.it/1n595tf
@r_linux
Spotify playlists to YouTube mp3 download CLI/WebUI

I do not know who will find it helpful, but I made this in order to have Spotify playlists downloaded from YouTube. The final mp3 files are compatible and usable inside Serato/Traktor.


https://github.com/Maxsafer/spotify2mp3

https://redd.it/1n58to3
@r_linux
2026 - Year of the Linux Phone?

Okay, the noscript is tinged with a little sarcasm, but the sentiment is honest. I made a comment on a Linux mobile post about a month ago saying that we were one egregious, unpalatable announcement away from seeing real progress in mobile Linux. With Android’s recent announcement about killing side-loading, is this the opportunity Linux devs need to justify dedicating more resources to mobile Linux?

I have only been using linux for a bit over a year and I am interested to hear from the old-heads on this one. Linux is starting to (modestly) surge in popularity on the desktop/laptop side of things which I know has been years if not decades in the making.

With the current Linux landscape, is there any reason to expect Linux mobile to get increased attention, and if so when would be reasonable to expect mature software that could see wide uptake? From what I have found, it isn’t there yet but I do not have the knowledge to understand how far away this future may be.


https://redd.it/1n5f3l6
@r_linux
What do you think about Ikey's another distro which is AerynOS?
https://redd.it/1n5jvl6
@r_linux
What's your arrangement for the top of the window buttons?

I realized some years ago that my preferred button order is "Close - Title Bar - Minimize - Maximize", because it feels the most natural to me. I haven't seen many users on linux-based systems doing that specific order.

So, I am curious: What is your preferred order and why?

https://redd.it/1n5j7ss
@r_linux
How to save an old Lexmark Z32-33 printer using QEMU and Debian

I recently got my hands on a Lexmark Z33 inkjet printer. I thought it would be a cakewalk to set up with Gutenprint — but it turns out the Z33 is the only Lexmark inkjet that runs on a proprietary, undocumented “Z-code” driver, with no PPDs and zero Gutenprint support.

The only saving grace is that Lexmark still hosts their ancient Linux driver for Red Hat 7.3 (2001):

CJLZ33TC.TAR.GZ → https://www.downloaddelivery.com/downloads/cpd/CJLZ33TC.TAR.GZ

After days of trial and error (Raspberry Pi emulation, failed source builds, etc.), I found a working method: run Red Hat Linux 8.0 in QEMU with the original Lexmark driver, and forward its LPD queue to modern CUPS (2.4.x) on Debian Trixie. Cyan ink still fails inside RH8, but works fine once bridged to modern CUPS.

On the Debian host, install QEMU and CUPS:

sudo apt update
sudo apt install qemu-system-i386 qemu-utils cups

Unload usblp so it doesn’t grab the printer before QEMU does:

sudo rmmod usblp

Grab the Red Hat Linux 8.0 Professional DVD ISO (from the Internet Archive).

Create a disk image:

qemu-img create -f qcow2 redhat8.qcow2 4G

Boot the installer with USB passthrough and VNC enabled:

sudo qemu-system-i386 \
-m 384 \
-hda redhat8.qcow2 \
-boot d \
-cdrom red-hat-linux-8.0-professional-install-dvd.iso \
-net nic,model=rtl8139 \
-net user,hostfwd=tcp::515-:515 \
-usb -device piix3-usb-uhci \
-device usb-host,vendorid=0x043d,productid=0x0021 \
-vga cirrus \
-display vnc=0.0.0.0:1

At the boot prompt, type:

linux text vga=normal

If you skip this, the Lexmark installer will later fail due to console restrictions.

After installation, boot normally with the same command, but -boot c.

From another machine, connect to QEMU’s VNC session:

vncviewer <host-ip>:1

(or use xtightvncviewer / vinagre depending on your distro).

Inside the VM, mount the CD:

mount /dev/cdrom /mnt/cdrom

Install required RPMs from the RH8 DVD:

rpm -ivh /mnt/cdrom/RedHat/RPMS/slang-1.4.rpm \
/mnt/cdrom/RedHat/RPMS/ennoscript-1.6
.rpm \
/mnt/cdrom/RedHat/RPMS/gcc-2.96.rpm \
/mnt/cdrom/RedHat/RPMS/make-3
.rpm \
/mnt/cdrom/RedHat/RPMS/libstdc++-2.96.rpm \
/mnt/cdrom/RedHat/RPMS/libstdc++-devel-2.96
.rpm

Start X11 so the Lexmark installer can run its GUI:

startx

Download and run the Lexmark driver:

wget https://www.downloaddelivery.com/downloads/cpd/CJLZ33TC.TAR.GZ
tar -xvzf CJLZ33TC.TAR.GZ
cd lexmarkz33-1.0-3
./lexmarkz33-1.0-3.sh

This will install through a GUI and create an LPD queue called lexmarkz33.

Start the print daemon:

/etc/init.d/lpd start

To check the printer is talking, or to print the test page (cyan will fail here), run inside an xterm under startx:

z23-z33lsc

On the Debian Trixie host, open the CUPS web interface at http://localhost:631 → Administration → Add Printer.

Add a Generic PostScript Printer with this URI:

lpd://<IP>:515/lexmarkz33

Now the RH8 VM acts as a bridge, and modern CUPS 2.4.x handles the jobs correctly (including cyan).

To start the VM invisibly at boot, add this to /etc/rc.local on Debian:

#!/bin/sh -e
#
# rc.local
#

# Free the printer from usblp so QEMU can grab it
/sbin/rmmod usblp 2>/dev/null || true

# Start RH8 VM in background
/usr/bin/qemu-system-i386 \
-m 384 \
-hda /home/printer/redhat8.qcow2 \
-boot c \
-net nic,model=rtl8139 \
-net user,hostfwd=tcp::515-:515 \
-usb -device piix3-usb-uhci \
-device usb-host,vendorid=0x043d,productid=0x0021 \
-serial file:/var/log/rh8-vm-serial.log \
-daemonize -display none -serial file:/var/log/rh8-vm.log

exit 0

Then voila, the LPD queue, and the Z33 is now available through CUPS on the trixie machine, regardless of
the missing Gutenprint, CUPS, and PPD driver files.

If anyone (which is very unlikely) tries this and runs into an issue, feel free to ask. I have spent days on this and probably have had the same issue.

https://redd.it/1n5o7r6
@r_linux
Had some fun yesterday on Fedora Workstation 42 and I did this
https://redd.it/1n5y2gl
@r_linux
Windows strikes (out) again

My daughter just installed Linux Mint on her PC because of this whole windows 11 debacle. It gave her that error code and she couldn't use her computer for work with Windows 11. Great job Microsoft...

Proud daddy right here!.

https://redd.it/1n5yffn
@r_linux