Why Linux?

Seek assistance with all types of tech. - computer, phone, TV, heating controls etc.
Post Reply
doolally
Lemon Slice
Posts: 431
Joined: February 8th, 2021, 10:55 am

Re: Why Linux?

Post by doolally »

1nvest wrote:
formoverfunction wrote:I do already, I'm running Debian via SSH (X forwarding) and Pop! in VM from the Pro.
I find (linux to linux) tigervnc's x0vncserver to be superior to X forwarding, combined with sndiod for sound forwarding. Alternatively OpenGL. With either of those I can play games, view youtubes ...etc. as the same level of quality/speed as if being run/played locally (or in my case quicker as the server is hard wired (ethernet) whilst my laptop is predominately connected via wifi).

My laptop is now somewhat dated, 4GB/2core such that a pi 4 has higher specs. Rather than buying a new laptop I am considering buying a pi instead to stick to the laptops lid as a 'server' and run the two as above. Then whenever I want to upgrade again it would be just a matter of a relatively inexpensive swap out of the pi.

Recently I built a long term supported kernel (5.10 from kernel.org), 20 minutes build time; Built the latest busybox (1.35) from busybox.net (10 mins build time) to serve as the userland; Compiled framebuffer vnc (seconds build time) to add to that ... and now have a 6MB laptop boot choice that boots in a second and can comfortably handle the pixels that it is thrown by the vnc server. A nice feature is that if the server is always on then booting back to a gui desktop is also just a second or two, and you drop back in where you last left off. Or where you can 'boot' into that server from any other device that supports vnc (many do). Whilst any files on the laptop remain secure, physically isolated, no risk of ransomware.

If the server supports kvm/qemu (virtual machines) which most will, then that can also boot any iso/image (operating system) to serve up as vnc. kvm (kernel based virtual machine) is very quick in my experience, similar if not even quicker than bare metal boots. No need for dual booting when you can have multiple systems all booted at the same time and switch between those just as easily as switching between different windows.

For set up of a shared filesystem I use ssh (sshfs), define a common pooled folder/directory that all of the booted systems mount/share. And with sndiod you just direct sounds to whatever IP/device you want, such as to the laptops headphones/speakers.
I thought I was reasonably OK with computers, but I have no idea what you are talking about. But clearly you do. Respect! :lol:
doolally

formoverfunction
2 Lemon pips
Posts: 218
Joined: June 12th, 2018, 9:27 pm

Re: Why Linux?

Post by formoverfunction »

In general I find using a Pi as a "companion" a great solution with my MacBook Pro. Mac and Pi 4 make great friends.
I make lots of use of SSH, Appleshare and have moved all my chore processes over the the PI. RSS, RNS, Portfolio email, Jstock and I prefer the simplicity of mpd/mpc and beets over Music.
The MacBook is a fabulous machine for me, I love using Apple's Music Match service for example and Apple's cloud services, but for the cost of some of the stuff I might have bought from the App store I get the flexibility of open-source alternatives. I've always used Macs. App Store has financed a Pi ;)
Open a terminal and ssh the Pi and I can play my music throughout the house, check my RSS, check through RNS by scrolling InvestEgates rss feeds and I could even check the output of Jstock's gmail output, but I do that with a second client.
I try to keep my hardware for a long time, so yes a cheap little Pi helps me extended and I like the idea of using the Pi as a safe place to protect my main machine so I will often use a file on the Pi with FireJail as just another lever of protection.
I still run a virtual Linux machine on the Mac, a small system, for those jobs that Linux does best. There are plenty of them.

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

https://t.co/q7kvJbq25v
Enabling Secure Boot for Linux on Lenovo Secured-core PC’s

Secure Boot is supported by many Linux distributions and is an important security feature for ensuring that your boot loader and kernel have not been tampered with.Linux distributions use a Microsoft signed ‘shim’ executable that is then able to verify the subsequent boot stages - that have been signed with the distribution key.

The Microsoft signed shim is signed using the “Microsoft 3rd Party UEFI Certificate”, and this certificate is stored in the BIOS database.Starting in 2022 for Secured-core PCs it is a Microsoft requirement for the 3rd Party Certificate to be disabled by default. This means that for any of these Lenovo platforms shipped with Windows preinstalled an extra step is needed to allow Linux to boot with secure boot enabled.

To enable secure boot to work with Linux we need to enable the “Allow Microsoft 3rdParty UEFI CA” option in the BIOS setup. Use the following steps:1.Boot into the BIOS setup menu.Reboot your PC and when the “To interrupt normal startup, press Enter” message is displayed press the F1 key2.In the BIOS menu select the “Security” option and the “Secure Boot” sub-menu.Toggle the “Allow Microsoft 3rd party UEFI CA” to be “On” as shown below.3.Press F10 to save and reboot
Might become an issue across the board with new W11 PC's...

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

https://www.youtube.com/watch?v=dpZurFVxh4c
Setting up Nextcloud and Collabora (Office) on TrueNAS SCALE
TrueNAS Official Documentation: https://www.truenas.com/docs/
TrueNAS Community: https://www.truenas.com/community/
Nextcloud Website: https://nextcloud.com/

formoverfunction
2 Lemon pips
Posts: 218
Joined: June 12th, 2018, 9:27 pm

Re: Why Linux?

Post by formoverfunction »

Why Linux: Fedora and Alpine on my laptop via UTM, but music has been my main reason for 2022.

Managing a large music library with Volumio, MPD and beets io has been my revelation of 22.

As a long term iTunes/Music Apple user I find I now only use those for warehousing my tracks, but importing, matching, ripping and playing only get done with linux. I've discovered so much more flexibility and accuracy. It's a joy in comparison. I still use my Apple devices, but not when at home, then it's almost entirely linux for music.

https://www.youtube.com/watch?v=ZaqJmjM23D0&t=10s

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

Useful Linux tutorials resource...https://www.youtube.com/@LearnLinuxTV/videos

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

Not unique to Linux but if you've ever looked at Wireshark packet analyser and thought it's way too complicated to learn easily then this YT channel is great at breaking it all down into digestible chunks..https://www.youtube.com/@ChrisGreer/videos

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

If you've investigated TrueNAS core (BSD) or scale (Debian Linux) you might be interested in this comprehensive ZFS 101 tutorial...https://www.youtube.com/watch?v=Pq3aLbjmlOI

https://www.truenas.com/truenas-core/

https://www.truenas.com/truenas-scale/

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

https://www.phoronix.com/news/Linux-6.4 ... r-Dropping
Queued up ahead of the Linux 6.4 cycle this spring is removing all of the PCMCIA "char" drivers as part of a broader effort to remove PCMCIA socket and card driver code where there is no apparent users remaining....Cont
Something to be aware of if running old laptops with Linux...

Infrasonic
Lemon Quarter
Posts: 3849
Joined: November 4th, 2016, 2:25 pm

Re: Why Linux?

Post by Infrasonic »

https://www.phoronix.com/news/Debian-AR ... e-Boot-Fix
While Debian and its derivatives are quite popular with ARM single board computers, the ARM64 Secure Boot support has been broken for at least two years. But a fix is on the way and it should appear for this year's Debian 12 "Bookworm" release.

Since at least May 2021, Debian's ARM64 build has featured broken Secure Boot support. In particular, this bug has taken the light in recent weeks for noting the breakage with the shim signed by Microsoft and the GRUB2 bootloader signed by Debian...
Cont.

formoverfunction
2 Lemon pips
Posts: 218
Joined: June 12th, 2018, 9:27 pm

Re: Why Linux?

Post by formoverfunction »

This isn't quite Linux, but Python and cli.

I may have a look at it via Docker or try and see if it runs on VM.

But has anyone taken a look at OpenBB?

https://www.youtube.com/watch?v=BbqvRqMbVFU

https://www.youtube.com/watch?v=cgeN3Ep2nEw

Automated investment research packed with python financial libs and intended to prove quick investment research. You own opensource Bloomberg.

GeoffF100
Lemon Quarter
Posts: 4265
Joined: November 14th, 2016, 7:33 pm

Re: Why Linux?

Post by GeoffF100 »

Infrasonic wrote:https://www.phoronix.com/news/Debian-AR ... e-Boot-Fix
While Debian and its derivatives are quite popular with ARM single board computers, the ARM64 Secure Boot support has been broken for at least two years. But a fix is on the way and it should appear for this year's Debian 12 "Bookworm" release.

Since at least May 2021, Debian's ARM64 build has featured broken Secure Boot support. In particular, this bug has taken the light in recent weeks for noting the breakage with the shim signed by Microsoft and the GRUB2 bootloader signed by Debian...
Cont.
I recently had a secure boot issue. I booted Linux Mint 21 from a USB stick (which I had used previously with no problems). I had successfully booted from that stick many times before. I got:

ERROR
Verification failed: (0x1A) Security violation

https://askubuntu.com/questions/1456460 ... ing-ubuntu

What happened here is that Canonical updated their UEFI Secure Boot signing key and your system's Secure Boot Advanced Targeting variable. In plain terms, they made it so that newer boot files they release are bootable, and older ones aren't. If you got the update and then try to boot an OS that is still using the older files, it won't work and you get a Security Violation error.

The solution here is to update your installation so that you have newer boot files. In this instance, though, you're trying to install from an ISO that has the older boot files. So you can't update the boot files. You have two choices here.

Disable Secure Boot and leave it that way.
Disable Secure Boot, boot the 22.04.1 ISO, install, update, and then enable Secure Boot again.


My Gigabyte GA-H81M-DS2V motherboard does not have an option to disable secure boot. (It does have an option to enable legacy boot, which might have worked.) The link above says that Ubuntu 22.04.2 will secure boot. I did not need to reinstall, but wanted a working live USB for emergencies, so I burned Ubuntu 22.04.2 onto my USB stick. I do not know whether the Mint team has fixed this problem. The forum posts that I pulled up were either useless or said disable secure boot. I expect that Mint 21.2 will secure boot when it arrives (at the end of June, hopefully).

Post Reply

Return to “Technology - Computers, TV, Phones etc.”