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
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
KDE Plasma + Khrönkite is so good. Give it a go if you'd like to try the tiling windows experience.

I tried some pure TWM, but they are very annoying to setup. I feel like it's a shame that there is no "ready to go" TWM... but at the same time I understand... otherwise they'd be called TDE, I suppose...

So, one day I gave the KWin noscripts a go, and... Khrönkite did it.

But at the same time, I guess their barebones approach scares lots of people on trying these different approaches. So, don't be scared and try this KWin noscript if you are using KDE Plasma, it really works great!

I wonder if there exists a Tiling Desktop Environment that combines the simplicity of no window bars, no fancy animations... with the good things about full DEs: all the applets and basic standard configurations for a nice functioning environment.

https://redd.it/lobbts
@r_linux
application process stops after I disconnect

I am asking around a few forums and look for the info to but I am a boob with Linux. My infrastructure is in Azure and it is doing well but every time I end my ssh connect the cardano-node stops. I have to input the command again when logging back on at a later time. :broken_heart:

Is that because I am using a poor tool Windows Terminal Preview? I use that tool, or VS Code because I can control literally everything from one tool; PowerShell Core, Java, Azure CLI, BASH, Git, etc… :computer:

I think my answer has something to do with **nhup**. I will be researching this meow but any senior guidance would save me some time and clicking about the internet like a mad man.

https://redd.it/loe2qc
@r_linux
Timeshift is a genuine lifesaver

Hello my dear Linux enthusiasts

I was experimenting with my system and suddenly i realized that I had deleted my home directory completely, though I had backed up my data externally...

But thank the best app according to me Timeshift saved my butt from all the pain of restoring the data, Timeshift did that in mins with just 3 clicks. Timeshift is light and easy to use, i think one shld use it just in case ya know you do something like me!

That's why I love Linux , you and the community so much because the support you guys have given is overwhelming, lets continue to help each other and after using Linux in Perseverance, let's make it more accessible.

Thanks a lot guys :)

https://redd.it/lofimq
@r_linux