r_linux | Unsorted

Telegram-канал r_linux - Linux - Reddit

381

Stay up-to-date with everything Linux! Content directly fetched from the subreddit just for you. Powered by : @r_channels

Subscribe to a channel

Linux - Reddit

Stupid Linux Tricks: get ssh host keys from new VMs via QR code in the console (also works if host/client is Windows)

One of my standard "tricks" in server admin is to have a brand new VM show its ssh key fingerprint as a QR code in the VM console - then I can just paste it directly into the ssh client prompt, since it's "yes/no/fingerprint" now. That way, I don't have to manually compare a string when I'm connecting to it for the very first time (and have no way to securely connect to it yet).

In the VM, all you need is the 'qrencode' package, which often has no additional dependencies.

Then, you can show small blocks of text as QR codes, drawn via box characters on the text console, like this:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | qrencode -t ansi

To read this on the host system, use any means you like of creating a screen shot, then feed the resulting image into any of several QR code reader utilities. `qtqr` is one such example that can take an image file as input.

I wrote a short Python script to combine all the steps - this takes a screen shot, tries to decode a QR code in it, then spits the resulting text out on stdout (but only if there are no characters in it that might mess up the terminal - note that this will fail if the input text contains a unicode BOM):

#!/usr/bin/env python3

import tempfile
from PIL import ImageGrab
from qrtools import QR
import re
import base64

with tempfile.NamedTemporaryFile(mode="wb",suffix=".png") as tmpimage:

# obtain screen shot of entire screen, and save it to the temp file:
screenshot = ImageGrab.grab()
screenshot.save(fp=tmpimage)

qr = QR()
qr.decode(tmpimage.name)

# only print the string if it does not contain any non-ascii characters:
if not re.search('[^ -~\n\r\t]',qr.data):
print(qr.data)

# remove qrtools's auto-created temporary directory:
qr.destroy()

Usually, installing any QR decoding app will give you the dependencies for this script; if not, search their names in your distro's package manager.


*Bonus: What if the VM is Linux but the client or host system is Windows?*

I recently realised that the stock Windows "Camera" app has a QR code reader in it. You can trick it into introspection by very analogue means: hold a mirror up to your webcam.

...but QR codes can't be read in mirror image (most phones can because they try flipping the image if they can't read it, but the Camera app apparently does not do this).

Note that flipping an image vertically is just as mirrored as flipping it horizontally, and Linux

...so with one very tiny change to my usual command in the VM, I can read the QR code in Windows by holding up a mirror to the camera:

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | qrencode -t ansi

becomes

ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub | qrencode -t ansi | tac

('tac' being the command available on every Linux-like system, whose purpose is to read lines and then print them to stdout in reverse order. Its name is 'cat' backwards; 'cat' being the thing that reads and prints whatever is given to it forwards.)

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

Читать полностью…

Linux - Reddit

Decluttering
https://redd.it/1c7hz5f
@r_linux

Читать полностью…

Linux - Reddit

Kubernetes v1.30: Uwubernetes
https://kubernetes.io/blog/2024/04/17/kubernetes-v1-30-release/

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

Читать полностью…

Linux - Reddit

i3 is brilliant!

I was ignorant to try i3 window manager. I used KDE (still use it on my laptop) on my desktop, one day I just got curious that how it will be like to use i3. After all the ones who use it always go on how much better it is.


I finally installed it in my desktop, and oh boy do I love it.

I did very slight modifications to it, not so kuch that it will go in the “RICE” category but, I like it now.

And boy do I love it, I have almost ditched my mouse and I prefer it, I never thought I would say that but now going back to use the mouse feels kinda cumbersome to me lol.

It is just so damn convenient to be on the home row to do almost everything. It might not be a substantial amount of time saved but it just feels better somehow.

I recommend more people to try it. Also not to mention, with i3 my computer uses only 200MB of RAM on idle.

All in all I love it, would love to listen other people’s thoughts on i3.

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

Читать полностью…

Linux - Reddit

Linux Admin Roadmap

Hi, I’m a beginner in Linux. It means a lot more to me than exploring basic linux commands. Getting to know about processes, what is systemd, what is it responsible for have always been a value addition to the learning.

Just needed more help to expand this learning, would be happy to be guided with the OGs in the field

Thanks!

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

Читать полностью…

Linux - Reddit

openSUSE Factory enabled bit-by-bit reproducible builds
https://news.opensuse.org/2024/04/18/factory-bit-reproducible-builds/

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

Читать полностью…

Linux - Reddit

Impressive & Seamless Kubuntu Printer Experience

Just a small tiny post to appreciate how good of an experience printing on Linux(Kubuntu 23.10) is. For context, I started using Linux fulltime about 2 years ago but I had never printed anything using it until today. I had to print some govt-related document on our office printer. I am pretty much the only one with Linux on my personal computer in this office for software-dev purposes which is my department.

I had to ask a colleague how to use the printer and he had no experience with anything Linux. He simply told me, go to your laptop, connect to the same wifi as the printer and click print and it should work.

I was a bit skeptical about the experience I was about to have since I have seen a lot of doom post about printers especially on Linux but also on Windows.

I followed his instructions and in under 2 minutes I had printed all four documents I wanted. In full color, no configs, no tweaking, no messing around with weird settings. It just worked. I was amazed and I wished most of the Linux-related spaces like gaming and editing was this easy.

​

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

Читать полностью…

Linux - Reddit

Office 365 running smoothly on wayland via wine 9.0 even on 3rd gen i5 CPU

This is office 365 32 bit running on Ubuntu 23.10 with wayland.

What have I tested so far:

* Excel, Powerpnt, winword working just fine with plots, split windows and even slides with animations.

What's not working?

* Excel macros.
* OneDrive sync.

Next, target is running 64 bit Office 365.

https://preview.redd.it/7zu86g6nc4vc1.png?width=786&format=png&auto=webp&s=534e0cd4f4b5ca722b40bd4ca0cc5e217915b4f9

here is the entire video: [https://www.youtube.com/watch?v=q5a6dBJdbMY](https://www.youtube.com/watch?v=q5a6dBJdbMY)

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

Читать полностью…

Linux - Reddit

April Tools: Hammering out new COSMIC Features
https://blog.system76.com/post/hammering-out-cosmic-features

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

Читать полностью…

Linux - Reddit

F/OSS Comics #8: The Origins of Unix and the C Language
https://fosscomics.com/8.%20The%20Origins%20of%20Unix%20and%20the%20C%20Language/

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

Читать полностью…

Linux - Reddit

XWayland 24.1 RC Released With Explicit Sync, Improved Rootful & GLAMOR Optimizations

https://www.phoronix.com/news/XWayland-24.1-RC

​

Article Text:

As expected, the first release candidate of the forthcoming XWayland 24.1 is now available ahead of its planned stable debut in May.

This is another big feature update for XWayland to enjoy running X11/X.Org apps/games under Wayland compositors. The XWayland 24.1 release is delivering explicit sync support that's long been brewing throughout the stack and delivers the most noticeable improvements for those using the NVIDIA proprietary Linux graphics driver. Also of NVIDIA relevance in this version is removing the EGLStream back-end now that NVIDIA is finally supporting GBM.


XWayland 24.1 also delivers a number of rootful improvements including HiDPI and fractional scaling for the rootful mode, among other improvements.

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

Читать полностью…

Linux - Reddit

Positive antivirus stories?

I am in a position where upper management, knowing and understanding absolutely nothing about technology, demands that we install antivirus software on our Linux servers (350+ and counting) because of "regulations". I want to hear any and all of your POSITIVE stories, where antivirus software actually saved your butt. Searching the Net gives me absolutely no hit, only wasted sales talks. Give us the gory details. Has antivirus software on a Linux system ever saved your day?
In my personal opinion antivirus software is a waste of space, CPU cycles and brain trust, but I am open to learn. Any modern Linux distro out there that emphasize on using antivirus? Please elaborate but no sales pitch, I don't make the budget.

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

Читать полностью…

Linux - Reddit

The Linux Foundation
https://youtu.be/xceiMJSunIg

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

Читать полностью…

Linux - Reddit

Firefox 125.0.1, See All New Features, Updates and Fixes
https://www.mozilla.org/en-US/firefox/125.0.1/releasenotes/

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

Читать полностью…

Linux - Reddit

I just realized I'm a kernel contributor :)
https://redd.it/1c5wv4y
@r_linux

Читать полностью…

Linux - Reddit

maybe this explains all the vulnerabilities discovered the past month
https://redd.it/1c7mjhv
@r_linux

Читать полностью…

Linux - Reddit

Ubuntu 24.04 yields a 20% advantage over Windows 11 on Ryzen7 Framework laptop
https://www.phoronix.com/review/framework-16-windows-linux

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

Читать полностью…

Linux - Reddit

Wayland, where are we in 2024? Any good for being the default? - Dodoimedo Article
https://www.dedoimedo.com/computers/wayland-2024.html

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

Читать полностью…

Linux - Reddit

Fedora Linux 40 Cleared For Release Next Week
https://www.phoronix.com/news/Fedora-40-Next-Week

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

Читать полностью…

Linux - Reddit

Linux Users HELP!

what is the name of this file manager? I've been obsessed with it for a long time and I still don't know its name! I want to install the i3wm window manager with this file manager.

https://preview.redd.it/k2uf0i86g9vc1.png?width=550&format=png&auto=webp&s=d7bd699a36a79247561f557cbcbb3c48a2f02324

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

Читать полностью…

Linux - Reddit

udev-hid-bpf: quickstart tooling to fix your HID devices with eBPF
https://who-t.blogspot.com/2024/04/udev-hid-bpf-quickstart-tooling-to-fix.html

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

Читать полностью…

Linux - Reddit

Ubuntu 24.04

I upgraded to the development release of Ubuntu 24.04 today. The upgrade solved all the outstanding issues that I have been dealing with for years. I am so happy and impressed that I am going to post about it.

I have been patiently waiting for Blender to support my AMD GPU out of the box. After the upgrade, it does.

I have been working around a nasty bug in Gimp for years, as well. Rounding the corners of a rectangle would cause a panic crash. I think it was caused by Wayland because it didn't seem to happen under X. After the upgrade, it appears the bug is fixed.

The only hiccup that I had was needing to uninstall libapache2-mod-php8.2. Since Ubuntu 24.04 ships with php8.3. But that was very very minor. I'm not saying that I am not going to find a major pitfall tomorrow. But I don't expect that I will.

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

Читать полностью…

Linux - Reddit

Interview with Jon “maddog” Hall, a true LEGEND of Linux
https://destinationlinux.net/366

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

Читать полностью…

Linux - Reddit

Simon Ser (famous for being Sway's current lead developer and a key developer of the Wayland Protocols) is now officially part of the Board of Directors of the X.Org Foundation. Congratulations!
https://emersion.fr/blog/2024/status-update-63/

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

Читать полностью…

Linux - Reddit

It has been considered for some time now and most likely openSUSE will stop building chromium due to too fast release cycle and not enough developers to support it
https://bugzilla.suse.com/show_bug.cgi?id=1222707

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

Читать полностью…

Linux - Reddit

Former Nouveau Lead Developer Joins NVIDIA, Continues Working On Open-Source Driver
https://www.phoronix.com/news/Ben-Skeggs-Joins-NVIDIA

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

Читать полностью…

Linux - Reddit

LXQt 2.0.0
https://lxqt-project.org/release/2024/04/15/release-lxqt-2-0-0/

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

Читать полностью…

Linux - Reddit

Wpaperd 1.0.0: modern wallpaper manager for sway and Hyprland
https://github.com/danyspin97/wpaperd

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

Читать полностью…

Linux - Reddit

KDE is Slick. Coming back after years. Some more polish needed and it feels prime time.

Hi,

Been using Mac and Windows for a long time. I decided to try Kubuntu after hearing about a new release. Boy was I surprised how polished it all feels. It still has the KDE feel from when plasma first debuted, but everything is really nice to use. So +1 to the KDE team on a nice desktop.

I have this on an older laptop and even managed to get Hibernate working and found a reddit post on getting hibernate on the KDE power menu. But yea, I have a background in this stuff and I still feel like hibernate should be something that gets set up by default (or at leased asked) and creates the swap partition or file and automagically gets is created, updates grub and intramfs.

It took some time to google these things and I got it all working, but I feel its the little things like this that hold Linux back from being more widespread.

Other than that, this is my new little laptop computer. It's circa 2011. Runs great. No need to go to the landfill just yet.

Anywho, I'm back on a LinuxOS, feels just like I never left. Long Live Konsole.

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

Читать полностью…

Linux - Reddit

AlmaLinux is proving to be a better EL distro than RHEL itself.

Since Red Hat effectively closed the source code of their enterprise distro to subscribers-only and also prohibits them from using that source code to create a clone… AlmaLinux became, like RHEL, a CentOS Stream derivative.

It’s no longer just RHEL with a different branding and no Subscription Manager. It’s becoming its own thing.


For instance: Alma 9.4 reintroduces support for hardware that RHEL 9.4 dropped. They also patched a security vulnerability before Red Hat.


It’s proving itself to be better than RHEL in many aspects. And you can be sure Red Hat is not going to like this in the long term.

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

Читать полностью…
Subscribe to a channel