/fglt/ - Friendly GNU/Linux Thread

Previous 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) 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:
Your friendly neighborhood search engine (try to use a search engine that respects your benis such as searx, ixquick or startpage).

$ man %command%
$ info %command%
$ help %command%
$ %command% -h
$ %command% --help

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

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

Sup 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/
bropages.org/

>Where can I learn the command line?
mywiki.wooledge.org/BashGuide
linuxcommand.org/tlcl.php
grymoire.com/Unix/

>Where can I learn more about Free Software?
gnu.org/philosophy/philosophy.html

>How to break out of the botnet?
prism-break.org/en/categories/gnu-linux

/t/'s GNU/Linux Games: /t/'s GNU/Linux Training Videos: /fglt/'s website and copypasta collection:
fglt.nl && p.teknik.io/wJ9Zy

Other urls found in this thread:

codereview.stackexchange.com/questions/161559/timeleft-utility
gplv3.fsf.org/static/release/rms_gplv3_launch_high_quality.ogg
wiki.archlinux.org/index.php/readline
hyperpolyglot.org/unix-shells
wiki.archlinux.org/index.php/feh
youtube.com/watch?v=OMOIZlOEfb8
twitter.com/NSFWRedditGif

First for Source Mage GNU/Linux

Second for v3 is best GPL.

Xst for fug you

xth for it is called Linux

And I second this

Second is the best

4U

Hello, fellow Linux brethren.

I have created a free (as in freedom) and open-source timeleft utility.

You can review it here:

codereview.stackexchange.com/questions/161559/timeleft-utility

#include // strcmp
#include // fopen, fclose, fprintf, fscanf, sscanf
#include // time, mktime

#define TIME_PATH "time.txt"

int main(int argc, char **argv) {
int status = 0;
if (argc = ref) fprintf(stdout, "It's over!\n");
else printRemainingTime(ref - now);
}
fclose(f);
}
} else if (argc == 3 && strcmp(argv[1], "set") == 0) {
int Y, M, D, h, m, s;
if (sscanf(argv[2], "%d/%d/%d;%d:%d:%d", &Y,&M,&D,&h,&m,&s) != 6) {
fprintf(stderr, "Invalid time format\n");
} else if (Y >= 2038) {
fprintf(stderr, "Do not plan too far ahead!\n");
} else {
struct tm t = { s, m, h, D, M - 1, Y - 1900, -1, -1, -1 };
time_t ut = mktime(&t);
if (ut < 0) {
fprintf(stderr, "Parsing/range error\n");
status = 1;
} else {
FILE *f = fopen(TIME_PATH, "w");
if (!f) {
fprintf(stderr, "Failed to save time\n");
status = 1;
} else {
fprintf(f, "%ld", (long) ut);
fclose(f);
}
}
}
} else {
fprintf(stderr, "Usage: ");
if (argv[0]) fprintf(stderr, "%s ", argv[0]);
fprintf(stderr, "[set YYYY/MM/DD;hh:mm:ss]\n");
}
return status;
}

Because zsh is better?

If you're gonna have to replace your shell anyway, might as well replace it with a superior one.

static void printRemainingTime(time_t t) {
const char *s = "%d days, %d hours, %d minutes, %d seconds remaining...\n";
int days = t / 86400; t -= days * 86400;
int hours = t / 3600; t -= hours * 3600;
int minutes = t / 60; t -= minutes * 60;
int seconds = t;
fprintf(stdout, s, days, hours, minutes, seconds);
}

Devuan is 1.0 RC.

Hello there, glad to meet a brogrammer.

I wouldn't count with zshit being better thou, the xd program does enough fancy autocomplete and fzf is a bretty good fuzzy finder too.

Fukken finally, downloading now.

I was hoping they keep the torrent option.

gplv3.fsf.org/static/release/rms_gplv3_launch_high_quality.ogg

>fzf
nice

What's the best audio player on linux and pls don't say cmus

...

GNU/Linux*

What is the best antivirus for Linux?

I mean music player actually

mpv

Reposting this.
What is a good replacement for Unity for someone with a HiDPI display?

sudo modprobe -r iwlwifi

Does devuan use debian's repos or it's own?

If any Devuan maintainer is reading this, BRING BACK THE TORRENT PLEASE

I like MOC myself, easy and quick and fast and daemonized (you can discnnect from the client). But there are three music players you could check if you want a GUI:
DeaDBeeF if you want to customize
Clementine if you want a fuckton of features
Audacious with the non-native winamp skin if you want a comfy player with retro feeling

KDE

Its own, but you can add other repos of course

>doesn't realize that iwlwifi isn't the only wifi driver

moc

>tried to install solus
>every time I clicked login it would crash my monitor
>couldn't even get to the menu to adjust any graphics options
>fucked my windows bootloader
>spent 3 hours fixing it

how do I not fuck up this time

running an i5 with a gtx1060 if it matters

You don't need a replacement, UBports has committed itself to keep developing Unity.

>really liked that it works without library.
You sir are a patrician

>UBports has committed itself to keep developing Unity
>KEEP DEVELOPING UNITY
But when will they commit sudoku too?

mpd (with mpc and ncmpcpp)

noscript, ublock, firejail, ufw + common sense

mpd+sonata

s/noscript/umatrix/

what are the advantages of umatrix?

this

more than just an adblocker, you can be sure of that

>using javascript

deadbeef if you like album art
mpd+ some mpd client if you dont

Better interface(once you get used to it).
Can also block things like iframes

>using the internet
>implying you cant have album art with literally any player

is javascript inherently bad?

nope, is just a russian roulette

he's baiting

disabling js makes no sense (unless you're using tor)

>he
I'm a gurl.

no he is not baiting, he has a point, you can't possibly examine every javascript that enters your computer and only LibreJS is close to do something like that

really darling? you don't know who we are neither, on the internet nobody knows you are a dog

m-me too

true patricians whitelist domains on a per-site basis using uMatrix. you trade off an initial 10 seconds getting some pages to work initially but it's 100% worth it.

kill yourself for replying to @60026604 unironically

friendly thread

pardon me

>implying

>implying implications

>implying implying implications
sure you want 2 do this?

mplayer.

>implying you cant have album art with literally any player
a fixed size 2"x2" square in the bottom left doesnt count.
Neither does using w3m for viewing the image given that its broken and doesnt render it correctly most of the time.
Neither does a script that only works with The-One-I'm-Using-WM.
Deadbeef is literally the only one that lets you do whats in that pic, short of using shitty broken image rendering with w3m in tmux or a speical snowflake wm script, again.

Just found out about ~/.inputrc, so I thought I'd post what I've put together here.
Maybe someone will find it useful.
# Incremental search
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e[C": forward-char
"\e[D": backward-char

# Completion options
set completion-ignore-case on
#set completion-query-items -1
set show-all-if-ambiguous on
set colored-completion-prefix on
set colored-stats on
#tab:menu-complete
#"\e[Z":menu-complete-backward

# Alt+h to view the man page for the given command
"\eh": "\C-a\eb\ed\C-y\e#man \C-y\C-m\C-p\C-p\C-a\C-d\C-e"

#set editing-mode vi
#set keymap vi-command

'"\es":"sudo !!\C-m"'

>Alt+s calls the prior command with sudo
nice, you don't need to put the single quotes around it if you're not using it with bind though

>.inputrc
Holy shit, thanks for this, any guide?

wiki.archlinux.org/index.php/readline

Thanks

i'm always wondering: do people who use set -o vi really exist?

why does fish lack of && and || ?

Is this true or is this bait (pun intended)? Can't be that shit, right?

fish has just different syntax:

&& equals to ; and
|| equals to ; or

make sure to include the global file, because it will not be read automatically if the local is present
put this in your ~/.inputrc
$include /etc/inputrc

thanks

That is fucking awesome, I was thinking on using readline to hack together a file manager and this fits in that.

Want to install gentoo cause why not.
open vm
10gb disk size
do install
Out of space
ok
20gb
out of space
ok
50gb
out of space

What is this nonsense?

>file manager
*fuzzy finder, not yet a file manager

be sure to post it here under GPL

Yes, GPLv3, but is going to be a long wait

bentoo :DD

>imblying xD

just found this really nice site: hyperpolyglot.org/unix-shells

I just recently installed FreeBSD and was trying to figure out tsch
it's pretty bad, I'll probably use the opportunity to try out zsh

tcsh*

>if if else if
Re do it

Hi!

Nobody said anything yet to OP's pic but is damn important, thanks OP.

Is this where I go to take the Sup Forums redpill? I would like to. Dunno where to even start with the distribution links.

It isn't.

Hello

>pretending to be mr kde shill
lame

What's up?

trying to make feh usable

wiki.archlinux.org/index.php/feh
youtube.com/watch?v=OMOIZlOEfb8

meh this is next level shit
fehwrap:
#!/bin/sh

for i in `seq 1 $#`; do
[ "${!i}" = '-F' ] && { fs=0; break; }
done

feh --thumbnails \
--cache-thumbnails \
--thumb-height 256 \
--thumb-width 256 \
--limit-width 1600 \
--image-bg black \
--scroll-step 150 \
--action1 ';''[Copy filepath]''echo -n "$PWD/%n" | xclip' \
--action2 ';''[Set wallpaper]'"feh --bg-fill %F" \
--action3 ';''[Add to list]''! grep -q %F feh.list && echo %F >> feh.list' \
--action4 ';''[Remove from list]'"sed -i '/%n/d' feh.list" \
--action ';''[Open image]'"~/bin/fehwrap.d/Fehwrap.sh %L %F &" \
$([ -z "$fs" ] && echo -n "\
--limit-width 1000 \
--thumb-height 200 \
--thumb-width 200 \
`#-g 1000x500` \
--bg ~/.config/feh/bg.png \
`#--action ';''feh %F &'` \
`#--zoom fill` \
--title fehw \
") \
"$@"

Fehwrap.sh:
#!/bin/sh

if [ ${2: -4} == ".gif" ]; then
index=$(grep .gif $1 | grep -n "$2" | cut -d : -f 1)
index=$((index-1))
mpv $(grep .gif $1) \
--playlist-start=$index \
--fullscreen \
--loop \
--loop-file=yes \
--video-unscaled=yes
else
feh --filelist $1 \
--start-at "$2" \
--image-bg black \
--fullscreen \
--info ';''echo -n "Size: "; identify -format "%wx%h" %F' \
--action1 ';''[Copy filepath]''echo -n "$PWD/%n" | xclip' \
--action2 ';''[Set wallpaper]'"feh --bg-fill \"$2\"" \
--action3 ';''[Add to list]''! grep -q %F feh.list && echo %F >> feh.list' \
--action4 ';''[Remove from list]'"sed -i '/%n/d' feh.list"
fi

I just need a way to combine these two into one script

eh? create a new .sh file and add those commands accordingly.

I suggest that you create a binary for it. Like your custom front end of feh

What distro/DE are you using now Mr Shill?

Ubuntu Budgie currently. I'll eventually move to another distro soon.

it's mostly just options, there's no reason to create a binary

the problem is that functions from the same file are invisible to feh actions
it would be perfect if I could make the second file a function and instead of
--action ';''[Open image]'"~/bin/fehwrap.d/Fehwrap.sh %L %F &" \

use
--action ';''[Open image]'"funct %L %F &" \


or if I could just quote the commands properly within the action, but that's impossible because I have so many nested quotes

whatever you do, stop using DE's

Okay so following the "Babbies first Linux" instructions and I already hit a wall with Virtual Box when I have to select some kind of .iso. What .iso file?

Not all that familiar with scripting user, sorry I can't help
DEs are ok