Linux - Reddit – Telegram
Linux - Reddit
764 subscribers
4.19K 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
tickrs and ticker stocks pricing package

Long shot posting here but in case it w ork :

I use ticker and tickrs to get stock prices

For a while, both do not work anymore

AM I the only one ?

I tried without VPN, etc etc.

I'm on Manjaro Linux...

Note : one of my machine (openUSE) have the same problem.

https://redd.it/1m916c6
@r_linux
Distros and ZFS

I don't even know where the hell to post this kind of question so I'm posting it here.

I am primarily a Gentoo person and its ZFS support is second to none. However the distro is becoming annoying to me having to constantly rebuild shit over. I'm looking for something that has an install process that isn't murder to get ZFS on which would probably be "manual" or ("the arch way"). I've tried Debian but debootstrap is a nightmare to use for me.

I've looked at Fedora - but the only noscript ZFS people recommend requires two drives (and I'm not doing mirroring at least not on this machine). Ubuntu supports ZFS out of the gate but ...yeah no.

https://redd.it/1m94ews
@r_linux
Ubuntu Long Term Review

(Sorry for yapping)
I've been using Ubuntu for a few months now, and I have to say, I really don't understand all the hate. It makes my PC with an i5-6500, 1050 Ti, and 16GB DDR4 feel fast and snappy. I used to share a PC with an i7-6700, 6700 XT, and 16GB DDR4. after buying this PC and installing Ubuntu it actually feels like an upgrade. It is also MUCH easier to use than people make it seem. Connecting to Wi-Fi was a breeze; I just clicked on my Wi-Fi and entered the password. Installing things was just a simple copy paste into the terminal.
Neofetch says that I use just 3.5GB of RAM with A LOT of stuff open. For comparison, 4.2GB was used on my windows PC idle. I also get a higher framerates playing less intensive games like Roblox and Minecraft than the higher end PC with Windows. I only have 120GB storage on my PC, and I've only used 67%.
However, there is the downsides. Of course, it is Linux. There is some bugs and compatibility issues. For example, Minecraft bedrock normally works, but sometimes there will be a bug that takes a very long time for the unofficial launcher to fix. As of right now, Vibrant Visuals has no shadows on the ground, only on the walls, and the reflections on the water are very messed up and look bad. Now, I have to wait a few weeks for them to release a new update.
All in all, Ubuntu linux is definitely an improvement over Windows if you are willing to work through the bugs(Usually just fixed by restarting your computer). The UI is great, and it feels fast. Would recommend.(please stop hating on Ubuntu!)

https://redd.it/1m95wqs
@r_linux
Revived my old laptop!

I just completed a transplant on my old Asus X551c latop. I3, 4gb ddr3, 500gb sata. Mid when I bought it new. It's been my garage pc for the last 2 years. The battery died years ago, so I have to keep it plugged in. Just recently the wifi card took a dump too. I debated tossing it, but it's been my road workhorse forever. Found a wifi card and "oem" battery on ebay for cheap. While I had it open I thought "why not upgrade that tired old hdd with a ssd?". Got a cheap 500gb sata ssd and wow the laptop came to life! I was running Lubuntu because it was the "fastest" at web browsing on this old machine. Now it's running Mint xfce and just as fast as my gaming pc! And the battery works! I should've done these upgrades years ago.

https://redd.it/1m947tn
@r_linux
Any way to use the hard reset button as an OS switch (using GRUB2)

I recently found that my computer has a hard reset button, which makes me ask myself if i could use this button to reboot to the OS that i'm not into

I guess that it's probably not possible due to the fact that the hard reset button acts like you unpluged and pluged again your computer but i'm still curious if something like that can be done

Additional informations :
OS 1 : EndeavourOS
OS 2 : Windows 11
Motherboard : AsRock B450M Pro4 R2.0
Bootloader : GRUB2

https://redd.it/1m98t9r
@r_linux
Dynamic disks, switch them too

# Little story

*I have to tell a story here, if you just want the important main information: TL;DR at the bottom my dude. :\**

Two identical mini PCs that were intended for use in a control cabinet were disposed of at work. One of them had a simple defect: the hard drive was dead. These devices are disposed of even if they are repairable. (Because of reasons)

So I quickly replaced the hard drive and one of them worked again. Pretty nice, passively cooled single-board computer, relatively powerful. (As a new purchase, it would cost around €500.)

So I took it with me to build a small homemade NAS, because it still had two free SATA ports and some space in the case for two 2.5" hard drives. I quickly installed Linux on it to test it out. It worked wonderfully and without any additional driver searches.

But there was a problem: there was no standard way to power the additional SSDs. Fortunately, there was a free USB 2.0 header on the board. I read up on this and found that these things deliver around 2.5W @ 5V. The sources were contradictory on this point. And unfortunately, the mind-reading, perfect Google of 2013 no longer exists. :P So I was not sure. I decided to just give it a try. I ordered an SSD that, according to the shop filter, needed around 2.5W. And I powered it via the USB header. It, worked! (Even if datasheet said afterwards: yo need 3W on write.)

From this point on, I invested a lot of time reading up on the subject. I had to rack my brains a lot because some things didn't work right away the way I imagined they would.

I set up Openmediavaul, but it was buggy, so I switched to a server distro with SFTPGo because it looked nice and simple. And it was.

Just as I had started migrating the data, I noticed a problem that would keep me busy for a month: data transfers were painfully slow. Definitely not what I wanted.

So I did a lot of research because I didn't want to wipe the setup again. But I just couldn't find any useful information. ^((Google bad)) I benchmarked my network connection between PC \~ NAS, 980Mbps, everything fine. So I suspected the problem was with SFTPGo and eventually gave up.

Next attempt: TrueNAS. Everything set up, which took longer again due to problems with access rights and stuff, because of multiprotocol overlaps. Then I started migrating the data... Slow again, \~ 5MB/s -.-

I continued to suspect that the problem was with the software and spent ages researching solutions and configuration options. Nothing. Maybe it is a problem with the power supply after all? I connected it to my PC's power supply. Same problem. Then I benchmarked the hard drive. (Yes, I realize I should have done that beforehand. :P)

dd if=/dev/zero of=/mnt/ssd/test/test.txt bs=1G count=1 oflag=dsync
1+0 Datensätze ein
1+0 Datensätze aus
1073741824 Byte (1,1 GB, 1,0 GiB) kopiert, 3,52969 s, 304 MB/s

Everything is fine. So WTF is wrong!? Why are data transfers as slow as with a fucking old USB stick!?

Yea... How about a benchmark of the read speed on my PC? Even though I don't think that can be the reason...

time dd if=/mnt/dynamic-ntfs/Videos/Filme/Interstellar.mp4 of=/dev/null bs=8k
^C77409+0 Datensätze ein
77408+0 Datensätze aus
634126336 Byte (634 MB, 605 MiB) kopiert, 39,8158 s, 15,9 MB/s

o\_\_\_\_\_o

Yea... Thing is: I switched to Linux. And did you notice where the file is? Yea, its a mount.

I've created an dynamic disk under windows. Thats something like LVM, to access multiple physical drives as one logical one. But when I switched to Linux, I didn't want to wipe them out. So I looked for a way to mount them under Linux. The ldmtool is available for this purpose. ([ArchWiki](https://wiki.archlinux.org/noscript/Dynamic_disks))

It didn't even occur to me. I hadn't even remembered that I had mounted the SSDs that way. So I was looking in the wrong place the whole time. And I never noticed it before, but ldmtool mounted drives are just really slow.

A little story about how you can spend a long time looking for the cause of a
problem in the wrong place(s)...

^((Nevertheless, Google is now only a shadow of its former self. And that was time consuming as well.))

# TL;DR

If you are using ldmtool to mount windows dynamic disks, you should know: that the overall I/O performance is really low. Consider to switch them to LVM, BTRFS in JBOD config or something like that.

https://redd.it/1m97p1c
@r_linux
This media is not supported in your browser
VIEW IN TELEGRAM
Yall wanna see so many people that hate Linux for some reason but don't even know what they're talking about?
https://redd.it/1m9i46t
@r_linux
SPDIF TosLink Troubles (GNU-Linux)

If anyone has had issues with PCM 48 over TosLink—Zorin OS for some reasons cooks Fedora based distros and NixOS in the task.

I don't really know why and I've already spent way too much time trying to solve it on NixOS.

But basically, distros other than Zorin were just crackling on playback no matter what I'd do. So in the off chance you have this issue too, give Zorin OS a go before you give up 💙

And if you know the reason why, feel free to leave a comment about it! There aren't many conversations about TosLink around.

https://redd.it/1m9irc6
@r_linux
The Linux Concept Journey — kexec (Kernel Execute)

“kexec” (Kernel Execute) is a set of Linux system calls (https://medium.com/@boutnaru/the-linux-concept-journey-syscalls-system-calls-efcd7703e072) which provides the ability to load and boot\\reboot into a new kernel from the currently running kernel. It can help in cases in which we want to reboot very fast without waiting for an entire boot process (https://wiki.archlinux.org/noscript/Kexec). Moreover, we can use the “/sbin/kexec” binary for that using the following syntax: “kexec -l kernel-image — append=command-line-options — initrd=initrd-image” (https://linux.die.net/man/8/kexec).

Overall, the difference between a normal “system boot” and a “kexec boot” is that the hardware initialization performed by the firmware (like BIOS\\UEFI) is not done in case of a “kexec boot” (https://linux.die.net/man/8/kexec). Thus, “kexec boot” loads a new kernel and jumps to it while bypassing the firmware and the bootloader like GRUB (https://medium.com/@boutnaru/the-linux-concept-journey-gnu-grub-gnu-grand-unified-bootloader-0a1e64067315). Examples of use-case are: first step in generating a crash dump and during kernel development when frequently building and rebooting the kernel (https://blogs.oracle.com/linux/post/reboot-faster-with-kexec).

Lastly, a new kernel image can be loaded from a memory segment using the “kexec_load” syscall (https://elixir.bootlin.com/linux/v6.15.5/source/kernel/kexec.c#L242) or from a file using the “kexec_file_load” syscall (https://elixir.bootlin.com/linux/v6.15.5/source/kernel/kexec\_file.c#L332). Also, for enabling the “kexec” system call we should enable “CONFIG_KEXEC” (https://elixir.bootlin.com/linux/v6.15.5/source/kernel/Kconfig.kexec#L20). By the way, “kdump” (Kernel Dump) is based on kexec for quickly booting to a dump-capture kernel in case a dump of the system kernel’s memory needs to be taken. An example is when the system panics (https://docs.kernel.org/admin-guide/kdump/kdump.html) — as shown in the diagram below (https://cloud.tencent.com/developer/article/2431825).

https:\/\/cloud.tencent.com\/developer\/article\/2431825



https://redd.it/1m9ocdh
@r_linux
Which is the single most time saving hack you used in Linux?

Which commands, tool or hack or anything has saved a lot of time for you on repeated tasks that you do daily? What thing in your experiences saved you much time and effort that you thought you should have learned earlier?
I just used alias "c" for clear and it saves a lot of time and effort.

https://redd.it/1m9ra4r
@r_linux
Suggestions for M.2 WiFi / Bluetooth card that have good compatibility with Linux?

Hey all - noscript says it all. Looking for suggestions for M.2 WiFi / Bluetooth cards that have good compatibility with Linux?


I've got 2 little HP Elitedesk 701 AMD A10-powered mini PCs with Intel 7200-something series WiFi cards that do not play nice with Linux at all, so was just looking for something that would work and is plug and play.

Thanks!

https://redd.it/1m9sjae
@r_linux
My local Lowe's has its check-out computers running Linux.
https://redd.it/1m9v28p
@r_linux
parallel-disk-usage (pdu) is a CLI tool that renders disk usage of a directory tree in an ASCII graph. Version 0.20.0 now has the ability to detect and remove hardlink sizes from totals.
https://redd.it/1m9v27o
@r_linux