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

Powered by : @r_channels
Download Telegram
A few questions on adding rust on the Linux source tree.

It is no secret that rust is being added in the Linux kernel source tree.

Now i would be fine with this if it wasn't for rust's tiered support for other architectures. And sure one may say that obscure or legacy hardware doesn't matter(in my opinion it does because most server hardware is obscure or legacy hardware).

From what i have read online most problems come from rust's reliance on LLVM. There is this old(2017) theo post in the openbsd mailing list where he says that rust can't even compile itself on i386 due to it running out of addressing space. And then there are a bunch of other "tiered" architectures that do not get as good support as x86_64 or arm64.

Even if rust is only used on drivers i get the feeling that we will see a bunch of "fallback" C code basically doubling the source code base just for all other architectures, and doubling the work required until rust works well on all platforms. "This controller driver was written in rust, but you cant use it due to having an obscure piece of hardware."

Now if anyone knows more please explain this to me because that seems concerning.

The mailing list post: https://marc.info/?l=openbsd-misc&m=151233345723889&w=2

https://redd.it/mmw9ft
@r_linux
I was surprised korail(which is korea public railway operator) is using UBUNTU! I took picture as soon as I saw the screen I've never seen in public lol.
https://redd.it/mnwsz4
@r_linux
Red Star OS 3.0 with HTTPS.

I've been playing around with Red Star OS 3.0. I ran the noscript here to disable the spyware and integrity checks and found a way to build a custom version of Firefox 3.5 with https enabled. The default web browser Naenara (literally means 'our country' in Korean) is designed only to be used on the Kwangmyong Intranet (presumably only with http).

You can set it to English and get root very easily, see here.

https://redd.it/mnwhez
@r_linux
LKML: Thomas Gleixner: Re: [PATCH] kernel/time: Feedback reply for hr_sleep syscall, a fine-grained sleep service
https://lkml.org/lkml/2021/4/7/1614

https://redd.it/mnw9uy
@r_linux
This appeared when I tried to update stuff can someone give me an explanation
https://redd.it/mnxvav
@r_linux
"Drawing inspiration from open-source software — computer code available for anyone to use, distribute, and modify, as long as users allow others the same freedoms — open-source seed varieties are freely available and widely exchanged. " GNU software and seed alike, similar dynamics.
https://www.dw.com/en/agriculture-seeds-seed-laws-agribusinesses-climate-change-food-security-seed-sovereignty-bayer/a-57118595

https://redd.it/mnzvbc
@r_linux
Customise Zathura: at your fingertips, in Go!

Zathura pdf is awesome and I have written a small command line program (using Go and Cobra) that allows to easily change colour schemes by passing a simple json configuration, in one line: zathuraconf, check it out!

All feedback is appreciated, I am just starting out with Go and I thought this would be a nice use case to familiarise with the language.

Link to the repository

https://redd.it/mo1lmq
@r_linux
How to remove Calendar/Tasks buttons from Thunderbird

If, like me, you don't need the Calendar/Tasks functionality of Thunderbird and want to get rid of the buttons in the noscript bar and the status bar, copy this userChrome.css to a "chrome" subdir in your profile directory (~/.thunderbird on Linux) and set the toolkit.legacyUserProfileCustomizations.stylesheets option to true in the Configuration Editor.

https://redd.it/mo4tad
@r_linux
PSA: You can enable the revoked Google features on Chromium by using your personally enrolled API keys

For those who just loves Chromium for whatever reason (me being to use chromium-freeworld for the codecs and hardware-accelerated video playback) and (want/used) to use their revoked Google features, you can legitimately re-enable those features by rolling your own API key on Google Cloud Platform.

Google Sync on Chromium \(Freeworld\) 89

Instructions are shown here (chromium.org), but I'll show them here because some of the steps are pretty inaccurate and outdated

Instructions:

## Acquiring the API access

[Subscribe](https://groups.google.com/a/chromium.org/forum/?fromgroups#!forum/chromium-dev) to the [chromium-dev@chromium.org](mailto:chromium-dev@chromium.org) mailing list to gain access to the relevant APIs needed
Go to https://cloud.google.com/console and create a new project under a Google account with the email registered to the mailing list subnoscription
Open "APIs & Services" > "Library" in the sidebar and enable the following APIs

1. Admin SDK API
2. Chrome Sync API
3. Geolocation API
4. Cloud Search API
5. Time Zone API
6. Safe Browsing API

Go to the "Credentials" page under APIs & Services
Click "Create credentials" and then select "OAuth client ID" from the list
You may be required to do "Configure consent screen", do it and fill the details freely, after that, you will have to go create an OAuth client ID again
Select "Desktop app" as the Application type
Pick a name of your liking -- it can be anything
Create the client ID
You'll see a "client ID" and "client secret". Keep them in a text file (or write it down), then dismiss the dialog box
Click "Create credentials" and then select "API key" from the list
A dialog box will show the API key, save it too
Basically, you're done. You can now use it

## (Re)enabling the features

Basically you have 2 ways to reenable them, first, you can provide the keys at compile time so that it'll be one with the binary, or you can just provide them at runtime, which is the easier to be done by most people.

## Build chromium with the keys

To do so, you must specify these variables in the
args.gn file:

google_api_key = "yourAPIKey"
google_default_client_id = "
your.client.id"
google_default_client_secret = "yourClientSecret"

And then build chromium

## Run chromium with the keys

To do so, you can just run: `env GOOGLE_API_KEY='yourAPIKey' GOOGLE_DEFAULT_CLIENT_ID='
your.client.id' GOOGLE_DEFAULT_CLIENT_SECRET='yourClientSecret' chromium`

And to configure it to automatically use the keys there are 3 ways:

Modify ~/.bashrc or /etc/environ (to apply globally) and add the environment variables
Modify the .desktop file to run the `env` command
Create a wrapper shell noscript

And that's it! That way you can get any build of chromium (except ungoogled) to have the "missing" features back

Hope this helps

https://redd.it/mo60q5
@r_linux
ARM and the future of Linux on desktop

When ARM computers for Windows show up and go into mass production, assuming that one day they might, in what position will Linux be? I've been reading lately on /r/linux and /r/linuxhardware, and I'd say that a lot off people are not sure what to think, nor are they particularly optimistic (even though I'm aware of the recent successes regarding support for MacBook M1).


As for ARM computers for Windows, I wouldn't say that Microsoft Surface had much success so far, but I assume there will be much more tries in the future.


As for Linux regarding this subject, I see that some people actually lay their hopes in RISC-v.

https://redd.it/mo7gfm
@r_linux
Linux will soon reach 1 million commits on github
https://redd.it/mo7y7f
@r_linux
Not a big fan of laptop stickers but I just had to get this one
https://redd.it/mo8wrt
@r_linux