Linux - Reddit – Telegram
Linux - Reddit
751 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
Error proofing for shell noscripts: shellproof

shellcheck is an util that checks shell programs for common mistakes.

So I got this simple idea: what if we combined the debugging of shellcheck with that of running the code itself, so everything is checked quickly together?

I called it shellproof. It does a quite simple thing: it runs a shell program only if it is mistake free, otherwise it lists those mistakes.

So debugging a program just takes:

shellproof [programPath\]

https://redd.it/liq5nq
@r_linux
Best lightweight Linux distro for a newb.

I've just about had enough of Windows 10's constant forced updates, and this has driven me to consider Linux for the first time. I have two low-spec laptops that currently run Win10 that I'd like to switch to Linux if I can. I'm aware there are any different varieties of Linux out there to pick from, but I'd prefer to run a lightweight version that can run on a potato system.

Any advice and tips appreciated.

https://redd.it/lis174
@r_linux
Can anyone help me with resizing my root partition with unallocated space?
https://redd.it/litzns
@r_linux
Distro recommendations for an all time Windows user?

Been using Windows forever and now I want to see how the Linux side of things are, plus to avoid all that MS-Telemetry thing that's going on with Win10. Recently tried Elementary OS Hera and got my laptop's touchpad working after a bit of tinkering in the BIOS but found out there aren't many gestures. Any distro where I can get a similar feel of the touchpad gestures? Heard that Elementary OS 6 is gonna come out with better 1:1 gesture support but until that arrives, what are my options?

https://redd.it/liu59b
@r_linux
Windows is behaving like over-possessive partner in Dual boot

I am using Linux and Windows both in dual boot. I don’t know why, my windows gets a problem with its BCD every once in a month and I need to reinstall this irritating operating system again only because I need to use Adobe Softwares occasionally. Anyone else facing the same issue? I badly need to get rid of this BCD corruption frequently. My machine is an Asus X570 ZD with Windows pre-installed.

https://redd.it/liv3w1
@r_linux
Alternatives to dialog with more control on colors and more modern looking?

Working on a project where we need to improve ux of an installer. We are using dialog right now but would love to better match company colors and make it look a bit more modern.

Can anyone suggest an alternative?

Tia

https://redd.it/liti2t
@r_linux
Linux step by step

Hi,
As I am learning Linux (self-learning) and have gone through the basics, could you guide me what are the subjects I have to complete step by step.
I did first basics and command line now learning bash noscripting and then what.

https://redd.it/liwnte
@r_linux
How to properly use databases in my application from a superuser account?

What is the best method to incorporate databases in my application? I am using a superuser account to run the application. While I can run the application from this, I don't want to give it superuser privileges to all the databases in the system. What's the standard? Am I supposed to create a new standard user while setting it up and assign a database to it?

https://redd.it/lixt3d
@r_linux
Media center

I'm trying to redo my media center. It once was a window 7 machine, for almost 10 years. However it is my last machine to be transferred to Linux. For one reason my sound card it has a brand new one. A sound blaster, any idea what distro will accept it without drama, I have had very little luck.

https://redd.it/liyq02
@r_linux
Is it normal to have a bin folder in your home directory?

Here comes a weird question. I've been using Linux for more than 8 years and I always create a bin dir in home. That's where I keep all my executable files, DRM free software etc. I don't remember why am I doing this, is this normal?

https://redd.it/lizvgx
@r_linux
Linux on a Samsung Galaxy Book 10.6

Hi all!
I have a Samsung Galaxy Book 10.6 ... tried Ubuntu 20.04 on the machine and didn't had wifi, the touch wasn't working and the keyboard was buggy (when I detached and attached again stopped working).

Should I try another distro? o what should I do?



PS: I'm a noob on Linux. I was trying to use WSL2 for windows .... but I prefer to have a real Linux machine.

https://redd.it/lj1ymk
@r_linux
Some nifty stuff ffmpeg can do

# play a video
ffplay output.mp4

# play audio only
ffplay -nodisp output.mp4

# audio streaming of a youtube video
youtube-dl https://www.youtube.com/watch?v=dQw4w9WgXcQ -f bestaudio -o - | ffplay - -nodisp

WAYLAND USERS, LOOK AWAY!

# record screen and save as video
ffmpeg -f x11grab -i :0.0 -f pulse -i 0 output.mp4

# record part of the screen as gif for 5 with seconds
# with 800x600 resolution, 0 x-offset and 30 the y-offset
ffmpeg -f x11grab -framerate 10 -video_size 800x600 -i :0.0+0,30 -t 5 output.gif

# take a screenshot and save as png
ffmpeg -f x11grab -i :0 -t 1 -f mjpeg output.png

Note: the last three commands obviously requires X11, and ffplay may require installing ffmpeg-full on some distros (which is only 2 MiB if ffmpeg is already installed, at least on NixOs)

To be honest, I'm still reading ffmpeg's man page and I don't understand these commands much myself, I just shamelessly copied them from various websites. It all started this morning when I wanted to record the screen using peek (gif screen recorder) which didn't work due to some missing GTK dependency, did some Google-fu and now I'm uninstalling peek in addition to mpv, scrot and kazam (which IMO only serve as wrappers for ffmpeg) ... I can say that things escalated quickly.

https://redd.it/lj4v0w
@r_linux
Does anyone like snap package manager?

ubuntu comes with snap, but I don't understand the benefit.

I feel its redundant and takes up a lot of disk space to have installed. I have read it comes with all the dependencies for each deb, however sometimes I want to install my own dependency versions.

I like using ubuntu on things like raspberry pi, but the first thing I have to do is remove snap.

https://redd.it/lj4mbx
@r_linux