Linux - Reddit – Telegram
Linux - Reddit
749 subscribers
4.17K 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
Screen keeps flickering when on desktop (Kubuntu 20.10)

Every time when i'm on my desktop and move my cursor my screen starts flickering and I don't know what to do. This also happens when i start an application. I also asked this on a other subreddit a couple days ago but didn't get much help.

[Youtube video of what I see](https://youtu.be/m6wDJzhTTWs)

I'm using a ASUS C302C.

System info:

* Operating System: Kubuntu 20.10
* KDE Plasma Version: 5.19.5
* KDE Frameworks Version: 5.74.0
* Qt Version: 5.14.2
* Kernel Version: 5.8.0-43-generic
* OS Type: 64-bit
* Processors: 4 × Intel® Pentium® CPU 4405Y @ 1.50GHz
* Memory: 3.7 GiB of RAM
* Graphics Processor: Mesa Intel® HD Graphics 515

https://redd.it/lnez5g
@r_linux
How donations helped the LibreOffice project in 2020
https://redd.it/lncskz
@r_linux
Linux has landed on Mars. The Perseverance rover's helicopter (called Ingenuity) is built on Linux and JPL's open source F' framework

It's mentioned at the end of this IEEE Spectrum article about the Mars landing.

> Anything else you can share with us that engineers might find particularly interesting?

> This the first time we’ll be flying Linux on Mars. We’re actually running on a Linux operating system. The software framework that we’re using is one that we developed at JPL for cubesats and instruments, and we open-sourced it a few years ago. So, you can get the software framework that’s flying on the Mars helicopter, and use it on your own project. It’s kind of an open-source victory, because we’re flying an open-source operating system and an open-source flight software framework and flying commercial parts that you can buy off the shelf if you wanted to do this yourself someday. This is a new thing for JPL because they tend to like what’s very safe and proven, but a lot of people are very excited about it, and we’re really looking forward to doing it.

The F' framework is on GitHub: https://github.com/nasa/fprime

https://redd.it/lnjkl3
@r_linux
Chris's Wiki :: find mostly doesn't need xargs today on modern Unixes
https://utcc.utoronto.ca/~cks/space/blog/unix/FindWithoutXargsToday

https://redd.it/lnjf29
@r_linux
Any good and updated books about Linux and programming?

I've been using Linux since the nineties and know the UNIX part quite well. But Linux has changed a lot over the years and my knowledge is dated. So I need an update, and am looking for a book similar to e.g, APUE, but covering all the Linux concepts.

Can anyone recommend a book which will teach me about namespaces, device trees, cgroups, modern polling, and other major new stuff?

https://redd.it/lnj5i1
@r_linux
Kernel Optimization

Back in the late 90's - early 00's when I was first learning Linux it wasn't uncommon for people to build a kernel optimized for their hardware. Sure, the performance gains were usually minor and so was the saved hard drive space but in those days it seemed like small gains were worth it. Maybe it was just worth it to me? There doesn't really seem to be a point to that these days with plentiful, fast, and relatively cheap storage along with much faster processors. Not to mention that most hardware drivers are loaded as modules now. But the other day I was reading an article that quoted Linus saying the Linux kernel is becoming bloated. Seems like if you were really worried about that, you could compile a custom kernel for your hardware like in the old days. I'm still not sure it's still worth it now though. Does anyone still compile custom kernels?

https://redd.it/lni889
@r_linux
ytfzf Comand line youtube viewer updated, Thank you for the support!

I had posted earlier today regarding my youtube commandline ( no api) noscript. my first post

I have gotten so much love for that one line shell noscript, so I decided to actually make it properly after all the suggestions I had gotten from my prev post.

https://github.com/pystardust/ytfzf

I have completely reworked on the scipt it has a lot more features now

History (can be toggled) - Shows all the videos you played before, and you can choose from them
Download - with option -d , the video will be downloaded to current directory
Music - play the video as audio only when you parse in -m
Format - Now you can choose default format or pass in -f to show all possible formats for a given video
Error Handeling - Check for dependcies and gives appropriate errors
No pup - doesn't depend on pup anymore

These options can be combined in any manner, like -dm, will download music

Usage: ytfzf <search query>
-h Show this help text
-H Choose from history
-m <search query> Audio only (for listening to music)
-d <search query> Download to current directory
-f <search query> Show available formats before proceeding

https://github.com/pystardust/ytfzf

https://redd.it/lnrwj1
@r_linux
Wanna install Gentoo?

Many people wanna try out a more advanced GNU/Linux distro like Gentoo, but get overwhelmed by the seemingly daunting installation and maintainment process. I made an easy to follow, not too long installation guide with a voiceover that details how and why to set up everything you need for a base system.

link to the video

https://redd.it/lnuadt
@r_linux
Can hardware dictate suitability?

Many say that all Linux distros are basically the same thing. It's only the cosmetics that change.

So I wanted to ask, can Debian/deb-based distros work better in some hardware while arch and its derivatives work better for another?

Is it a legitimate observation that an arch based distro has worked well for my laptop compared to debain or have I just not learned how to optimise the system?

Edit: Works better = the opposite of the following: Mouse movement is often laggy, programs hang during execution, web browsing is slow and lags while I type, libre office is unbelievably slow to use.

https://redd.it/lnh2h9
@r_linux
Is it possible to use a command via an env var?

What I mean is,if you wanna use the command "foo" is it technically possible to use that as a env var somehow?

So I wanna do this,cause you can enable env vars globally.

I also use many commands that aren't env vars for every program,so it would be cool to use it as an env var to enable it globally.

I hate opening the terminal and type for example "foo gimp",I just wanna use those commands globally.

So I wanna know if that makes sense and is possible at all?

I didn't post it at r/linux4noobs cause this isn't a noob question I think.

https://redd.it/lnxc4c
@r_linux
Will NVIDIA's cryptocurrency limiter interfere with nouveau drivers?

https://www.pcgamer.com/nvidia-ethereum-mining-limiter-cannot-be-hacked

>End users cannot remove the hash limiter from the driver. There is a secure handshake between the driver, the RTX 3060 silicon, and the BIOS (firmware) that prevents removal of the hash rate limiter.

Will nouveau work with RTX 3060?

https://redd.it/lo5pwg
@r_linux
A simple shell function for manipulating ini/conf style files

The following shell function will add or replace sections, keys, and values in an ini/conf style config file (please note that it modifies files in place, but could be adapted to use stdin/stdout or other variations):

confedit () {
SECTION=$1
KEY=$2
VALUE=$3
FILENAME=$4

# normalize line spacing
CONF=$(sed '/^$/d' "$FILENAME" | sed '2,$ s/^\[/\n\[/g')"\n\n"

if printf "$CONF" | grep -qF "[$SECTION]" ; then
if printf "$CONF" | sed -n "/^\[$SECTION\]$/,/^$/p" | grep -q "^$KEY" ; then
CONF=$(printf "$CONF" | sed -E "/^\[$SECTION\]$/,/^$/ s/^$KEY\s*=.+/$KEY = $VALUE/")"\n\n"
else
CONF=$(printf "$CONF" | sed "/^\[$SECTION\]$/,/^$/ s/^$/$KEY = $VALUE\n/")"\n\n"
fi
else
CONF="$CONF[$SECTION]\n$KEY = $VALUE\n\n"
fi
printf "$CONF" > $FILENAME
}

Usage: let's say there is a config file named config.ini that looks like:

[owner]
name = John Doe
organization = Acme Widgets Inc.

[database]
server = 192.168.200.50

Then the following would set the owner name to "Jane Doe":

confedit owner name "Jane Doe" config.ini

And the following would add a port to the database section:

confedit database port 1433 config.ini

And the following would add a new section "location" with a "city":

confedit location city "Addis Ababa" config.ini

Of course, this is a very simple example that might not cover a variety of use cases, but it certainly can be adapted to your liking.

I am very interested in ways to optimize the above, if you have suggestions.

https://redd.it/lo6amt
@r_linux