/fglt/ - Friendly GNU/Lunix Thread

Welcome to /fglt/ - Friendly GNU/Linux Thread.

Users of all levels are welcome to ask questions about GNU/Linux and share their experiences.

*** Please be civil, notice the "Friendly" in every Friendly GNU/Linux Thread ***

Before asking for help, please check our list of resources.

If you would like to try out GNU/Linux you can do one of the following:
0) Install a GNU/Linux distribution of your choice in a Virtual Machine.
1) Use a live image and to boot directly into the GNU/Linux distribution without installing anything.
2) Do not dual boot the GNU/Linux distribution of your choice along with Windows or macOS.
3) Go balls deep and replace everything with GNU/Linux.

Resources: Please spend at least a minute to check a web search engine with your question.

$ man %command%
$ info %command%
$ %command% -h/--help
$ help %builtin/keyword%

Don't know what to look for?
$ apropos %something%

Check the Wikis (most troubleshoots work for all distros):
wiki.archlinux.org
wiki.gentoo.org

Jow Forums's Wiki on GNU/Linux:
wiki.installgentoo.com/index.php/Category:GNU/Linux

>What distro should I choose?
wiki.installgentoo.com/index.php/Babbies_First_Linux
>What are some cool programs?
wiki.archlinux.org/index.php/list_of_applications
directory.fsf.org/wiki/Main_Page
>What are some cool terminal commands?
commandlinefu.com/
cheat.sh/
>Where can I learn the command line?
mywiki.wooledge.org/BashGuide
grymoire.com/Unix/
overthewire.org/wargames/bandit/
>Where can I learn more about Free Software?
gnu.org/philosophy/philosophy.html
>Which web browser performs best on GNU/Linux?
linuxreviews.org/firefox-vs-chromium

/fglt/'s website and copypasta collection:
fglt.nl && p.teknik.io/wJ9Zy

/t/'s GNU/Linux Games: Previous thread:

Attached: 1564602397020.png (750x1000, 149K)

Other urls found in this thread:

pastebin.com/kQVs46z3
commandlinefu.com/commands/browse
nostarch.com/tlcl2
tldp.org/LDP/abs/abs-guide.pdf
mywiki.wooledge.org/BashGuide
en.wikipedia.org/wiki/Ncdu
twitter.com/NSFWRedditGif

First for Pop! OS

why no distro compile small kernel without extra driver?

Install Debian.

...

Cool link, lazy ass.

>some programs will absolutely not run on gnu linux
Absolutely true, but I feel like even bothering to adopt GNU/Linux in any capacity should be a drill in finding alternatives and working with what you've got.
Now if OP just wants to install for the sake of learning and transfering his knowledge to server systems then sure, but if the ultimate goal is prep for when Windows ultimately goes to shit completely and the ecosystem on this side becomes mature and supported enough to be a perfectly viable switch, I feel like adoption and settling for alternatives should be the correct philosophy

cat /etc/fstab | grep username
UUID=XXXXXXX-XXXXXXX-XXXXXXXXX-XXXXXXXXX /home/username/Storage ext4 noatime,errors=remount-ro 0 0

If you mount it as /home/username it will replace the files in your /home directory with that of the mounted device.

No, I don't think so,entire directory has to be replaced.

cool, thanks

Attached: 1564509782524.jpg (1000x800, 61K)

>cat | grep

Attached: 1550785563316.png (1000x432, 165K)

it already has. i run windows 8.1 just for ableton and affinity. as soon as theres true replacements for both thats a 500gb ssd cleared up for me. and no, bitwig is shit compared to ableton and inkscape is so so bad

Similar PDF reader to MuPDF?

epub > pdf

zathura

>i run windows
My condolences.
That's a frontend for mupdf, brainlet.

what's the right way of locking a package in Gentoo, to prevent it from both updating and downgrading?

you can read pdfs through poppler on zathura.

Emacs

Here's a script that allows you to reboot in the background.
#!/bin/sh
reboot &

>bitwig is shit compared to ableton and inkscape is so so bad
wow amazing arguments
I can play this game too, bitwig is overall a better version of Ableton made by Ableton devs who know what's good
Inkscape is a great vector editor that will be on par with corel in a couple of years, if it's not already

Attached: 1564604033511.jpg (890x310, 166K)

install a kernel on gentoo with a "deblob" use flag

are you more the screenfetch or the neofetch guy?

They have completely different use cases, none is "

Greetings once again, shell archwizards

I believe I have finally reached the final version of my bash learning script, addressing the criticisms that were brought up

pastebin.com/kQVs46z3

Would you say it is fully adhering to "good practices" in Bash scripting now, or are there still blemishes somewhere? shellcheck comes up clear, and the command seems to work for all use cases.

Also, gzdoom does not have problems with empty space in its arguments, so we're good on that front.

Attached: 1561321842181.gif (200x200, 440K)

what is THE book for mastering Bash programming and the GNU/linux environment?

I'm an inxi kinda guy

man bash

how do i uninstall my epson printer software on ubuntu.

check out this
commandlinefu.com/commands/browse

and why in the world would you want to master it if you're not a programmer/admin?

because I want to BE GNU/Linux

you wanna be program code in the hands of fat geeks?

nostarch.com/tlcl2

it is nice

f I remember well there is an online version of the book on the website of the author
William Shotts

crux

tldp.org/LDP/abs/abs-guide.pdf

gee why is bsd so hard..
I guess I'm staying with gnu/linux for the time being

this is the juicy stuff I was looking for
thanks user

>#!/bin/bash
I have another criticism: Rewrite it in POSIX sh.

huh I didn't know that POSIX acronym was invented by Stallman
the more you know

Why those long if/elif/else statements instead of case?

Is there a concept of "per program environment variables" or something like that?
I am currently resorting to this hack to start some things that need an environment variable I don't want to have globally:
ENV="value"; export ENV; exec program

This can't be right.

Attached: 566c4dd07c5e6fbcc1ef50ee16eb5ebb606ec6ee.jpg (550x710, 69K)

>open book
>read a huge rambling on"it's actually just linux'
>close book
Thanks.

can somebody red pill me on solus? I'm comfortable using Fedora at the moment but the only DE I actually like the look of is budgie

Attached: maxresdefault.jpg (1280x720, 69K)

Im installing this on virtualbox and need to know if once I delete disk will it delete everything on the internal harddrive or what does this really mean?

Attached: 1.png (1170x337, 127K)

EDITOR= vim programX
This overwrites an env variable called EDITOR for programX

lol, does the author even mention Bash and the fact that it's a GNU utility

>and need to know if once I delete disk will it delete everything on the internal harddrive
No, it will delete everything on the virtual hard drive Manjaro doesn't even know about the existence of anything else, otherwise virtual machines would be nearly pointless for most things they are being used for.

I don't get it.
How do I use that? Put it in a shell script? How is that different from mine?

Attached: drool.gif (500x399, 455K)

hey thanks

Gnarly thread Isgn't it

Oh god please no. Don't torture me like that. POSIX-compliant sh is such a pain in the ass to write. I tried it in one of my first drafts and gave up. Besides, dash wouldn't make such a big difference in my script since I'd have to replace bashisms with sed/awk and I'm already calling other external commands anyway (like ls)

I don't know about case
What makes it preferable to if/elif/else and when?

Attached: Byrne_Doom_Shotgun.gif (320x240, 1.41M)

>What makes it preferable to if/elif/else and when?
Compared to long if/elif/else statements it's easier to read. It's also great for POSIX compliant scripts as it allows glob/pattern matching.
For example, your music selection would look like this with case
# Load selected music pack, if any
case "$music" in
term) musicaddon='term_midi35.pk3';;
xpack) musicaddon='term_xpack.pk3';;
floppy) musicaddon='floppydisk_midi.zip';;
synth) musicaddon='synthdoom.pk3';;
*) printf '%s\n\n' "~~~ Warning: Music pack not recognized. Continuing... ~~~";;
esac

O'Rly's "bash Cookbook" is good.

It works, faggot

mywiki.wooledge.org/BashGuide and the other bash pages on the same wiki teach you autism near perfect bash.

Why on earth would you want to master bash when python exists?

It's bad and you should feel bad for defending its harmful practice.

cat is for concatenation. If you want to grep something, use grep correctly: grep 'pattern' 'file'. That way you save a process, cpu cycles, fight against global heating and best of all: you don't look like a faggot.

>Don't torture me like that. POSIX-compliant sh is such a pain in the ass to write
What? This is absolutely not true. It's not even more verbose if you write good code.
bash is a mistake, and a whole lot of people will dismiss your script immediately just because it is written in it. Do yourself a favor and use POSIX.

Jun 06 10:36:19 sodom sshd[26617]: Invalid user nigga from 167.99.54.4 port 35748


my sides

If i wanna install Gentoo, do I have compile the kernel?
Why isn't there a ready install like Ubuntu?

Gentoo is not for people who want standardized ready installs.

who is Gentoo for? its developers?

gentoo is for squeezing every last drop of performance out of your computer

idiot

>Failed to restart snap.service: Unit snap.service not found.
>snap is already the newest version (2013-11-29-9).
I can't keep doing this...

How do I accomplish that?

/dev/sda2 suddenly became 100% full, I managed to get it down to 96% but I hardly have anything else taking up disk space. I think there's a program using a deleted file, but I'm a GNU/Linux noob and don't know what I'm looking at. I ran lsof / | grep deleted and it returned pic related. What do?

Attached: 2019-07-31-172658_654x439_scrot.png (654x439, 73K)

>man cat
>cat - concatenate files and print on the standard output
>AND PRINT ON THE STANDARD OUTPUT
kys fag

not and/or
but and

You could add an argument parser to your script for convenient commandline flags, or just a simple variant like

iwad_path="${1:-$HOME/Vidya/Native/Doom/IWADS}"
pwad_path="${2:-$HOME/Vidya/Native/Doom/PWADS}"

world do, too.
Using case switches instead of if/else would prettify the whole thing IMHO.
Oh, and a license is needed!

My 2cents.

I dont see your point?
If i say i can sing and dance, does that mean I cant dance without singing?

I dont know because that is ambiguous

Gentoo is a meta distribution. It's for people who want to build their own Linux based OSes from source. Google is the largest user of Gentoo in this manner - Chromium OS started from Gentoo.

sudo ncdu -x /mountpoint

kek, some real mental gymnastics at play here

sing and dance = sing and dance
sing or dance = sing or dance
sing and dance != sing or dance
sing or dance != sing and dance
What's so difficult? Just use your brain.

>sudo: ncdu: command not found
is all I get back

install ncdu.
en.wikipedia.org/wiki/Ncdu

Don't run commands posted here, especially sudo commands, unless you know what you're doing.

...

I don't know what I'm doing in general. I ran Windows 7 for 8 years, this is all very new to me.
Can I do this with apt-get or do I have to add a repository from a ppa?

Read your distro's documentation and then your package manager's documentation. Stop shitting up the thread.

It should be available via apt, yes.

wow Mr. Gatekeeper you are such a badass laying it down like that!

Unfriendly fags are not welcome in this thread.

No bully.

Im not trying to be a gatekeeper, im asking him to read about his software and try to understand it before coming to this shithole and asking basic questions to people who will respond "install gentoo" or "rm -rf /"

while I agree, and excessive handholding isn't as useful as more lightly guiding noobs and telling them about resources, you can do that while still remaining "friendly"

What are some cool terminal commands?

Attached: bin cat.gif (300x214, 1.51M)

Ok im sorry senpai

man

Does anybody around here know of an alternative to lm-sensors that will work with a ryzen 3xxx cpu?

compgen -c
:(){ :|: & };:

apt moo

MUSTARD
GAS

you(){ you|you & };ypu

pkexec