/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.

$ 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
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 Videos: /fglt/'s website and copypasta collection:
fglt.nl && p.teknik.io/wJ9Zy

Other urls found in this thread:

ix.io/xoM
ix.io/w6A
ix.io/yqr
cdimage.ubuntu.com/ubuntu-gnome/releases/17.04/release/ubuntu-gnome-17.04-desktop-amd64.iso.torrent
youtu.be/ZcjpXbMiCtg
stallman.org/guantanamero.ogg
blog.gnu.moe/love/index.html
stribika.github.io/2015/01/04/secure-secure-shell.html
ptpb.pw/lkfi.sh/sh
ptpb.pw/ehhg.c/c
qt.gnu.moe/photos/stickerus2.jpg
qt.gnu.moe/photos/stickerus3.jpg
en.wikipedia.org/wiki/Cooperative_Linux
en.wikipedia.org/wiki/User-mode_Linux
gnu.org/software/moe/moe.html
github.com/TehVulpes/better/blob/master/better.py
twitter.com/SFWRedditGifs

Hey guys - looking to start getting comfortable in a Linux environment. Any particular starting distro you recommend along with the most friendly hardware? Thanks in advance.

>most friendly hardware?
They all use the same kernel.

...

Free Pasta:
>YouTube without pulseaudio
ix.io/xoM
>Better fonts thanks to bohoomil
ix.io/w6A
>Arch without systemd
ix.io/yqr

cdimage.ubuntu.com/ubuntu-gnome/releases/17.04/release/ubuntu-gnome-17.04-desktop-amd64.iso.torrent

>Enlightenment is buggy as fuck (fact)
>using a shit distro (fact)

Rick Astley is such an old meme

I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.

Idk man, this car looks fucking sexy to be quiet honest, family.

thats the whole point
youtu.be/ZcjpXbMiCtg

Raspberry Pi, and distro thats readily available for it

Will KDE's global menu support GTK apps in the future? I wanted to make an OS X like rice but it's annoying to not have it on stuff like LibreOffice.

and you thought here was the appropriate place to ask?

Strange, I would thought it used the generic xdg menu spec.

stallman.org/guantanamero.ogg

Not half bad.
Here he is recording the drum track btw

$ ffmpeg -vn -sn -c:a copy -i guantanamero.ogg{.ogv,}
ffmpeg version N-83133-ge664730 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --enable-libvpx --enable-libvorbis
libavutil 55. 43.100 / 55. 43.100
libavcodec 57. 73.100 / 57. 73.100
libavformat 57. 62.100 / 57. 62.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 69.100 / 6. 69.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
Unknown decoder 'copy'

WHAT
I know for a fact it worked before.

Those sorts of options needs to go AFTER the input file.

Ahhhh, that makes sense. Thanks.

So i was looking at this website called gnu.moe, and i found some pretty disturbing stuff.
blog.gnu.moe/love/index.html
not going to greentext this shit because it would break rule 1.
this is some real what the fuck shit. Turns out this guy is a finnish pedo and writes his stories out on this site.
i just wanted good ncurses programs :(

When does fedora 26 drop? today?

Yes. Not sure when exactly but today. Personally looking forward to python 3.6, go 1.8 and libreoffice 5.3 in f26.

>this is your brain on free software
Really makes you think.

what is that even, how do you even manage to write boring cp stories

How do i open luks encrypted volumes on windows? all i can find is outdated apps

Am I actually retarded for not being able to install Arch?

By using a linux VM?

Not for certain, it is just one piece of evidence. If you are not already familiar with the intricacies of installing linux distros I imagine it can be confusing.

Really not getting on well with bash.

upower -i $(upower -e | grep BAT) | grep percentage | grep -Po '\d*' works fine in the command line and prints the battery percentage.

But when it comes to using it in a script, nothing seems to work. I can't echo it or use it in a comparison. I've tried placing it in $(), "$()" but it still doesn't return anything.

Is there something I'm not getting?

Fedora 26 is live

Through dnf system-upgrade?

has anyone here used unshield before?
im trying to use it on a file and im using

unshield -d extracted/ /home/jon/Downloads/rct2 DATA2.CAB
but that tells me Unknown action '/' on command line.
im basing it off what ive been told to do with it unshield -d extracted/ x data2.cab

The lone 'x' in the example you followed is telling unshield what action to take, eXtract. You replaced that with a path for some reason. It should be
unshield -d muh/output/folder x muh/input/file.cab
Replace paths as appropriate and put double qoutes around paths with spaces in.

thanks. i though the x was for the file path

How do I get out of the mindset of running everything as root? I only ever run things as user if it's explicitly stated to be run as user

Typing sudo then having to grab my password out of Keepass is such a pain

You can maybe get sudo to not ask for a password, or change your password to something more memorable.

On a desktop that wouldn't be a problem but I mostly work with servers; and I don't want someone bruteforcing their way in

Newfag here, installing ubuntu gnome to dualboot with w10. what am i in for

What's the best software for ripping CDs to flac on GNU/Linux? Is there any that's as accurate as EAC on windows?

stop using keepass and just dont use su or sudo if you dont have to ?

regret

Yeah, there is a library that does accurip or whatever it's called the same as eac does, cdrdao or something, a bunch of programs use it. I use morituri

If i install ubuntu on a flask stick how slow will it be compared to an HDD?

i need to change the "owner" of a lot of files and folders. I can do it slowly with sudo nemo but thats only one folder or file at a time. Is there a faster way?

sudo chown -R thenewusername thefiles
You should probably skim over the man page for chown too.

hard to say HOW slower, but it will be NOTICEABLY slower because of slower random reads/writes and same-disk read-write operations. You can speed it up by putting some caches in tmpfs or forcing high level of disk caching but at the end it will be still slower than a hard disk or SSD.

chmod with the -R (recursive) flag. Note the capital R, -r means "remove read privilege".

Files named 'os' and 'sys' keep popping up in various folders. What is this?

How safe if the following?
Kex Algorithms:
[email protected]
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
diffie-hellman-group-exchange-sha256
diffie-hellman-group14-sha1

Server Host Key Algorithms:
ssh-rsa
rsa-sha2-512
rsa-sha2-256
ecdsa-sha2-nistp256
ssh-ed25519

Encryption Algorithms:
[email protected]
aes128-ctr
aes192-ctr
aes256-ctr
[email protected]
[email protected]

MAC Algorithms:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
hmac-sha2-256
hmac-sha2-512
hmac-sha1

Compression Algorithms:
none
[email protected]

>flash drive
>slower than HDD for random i/o
No.
Slower for sequential transfer except for edge cases but exponentially faster for random i/o.

you're right, messed the two thing up

stribika.github.io/2015/01/04/secure-secure-shell.html

#!/bin/bash
rsync -r [email protected]:~/folderA .
rsync -r [email protected]:~/folderB .

Can this be collapsed into one so you don't have to type the password for rsync twice?

You could set up proper ssh keys on your machines so you never have to type it, ever.

...

Is there a way to tell i3 to open a window in floating mode from the command line? Like if I want to open a video and have it float automatically instead of changing my tile layout and manually hitting shift+alt+space.

I use ssh key in putty to avoid password, but where do i put the private keyfile if i want to connect from linux machine to another linux machine?
the public ones go into .ssh/autorized_keys

If you're using mpv, you could use "for_window [class="mpv"] floating enable" in your config file to automatically float all mpv windows. Replace mpv with the name of your media player according to xprop if you're using something else.

To connect from host "client" to host "server" without a password:
user@client:~/.ssh $ ssh-keygen
# don't enter a password here
user@client:~/.ssh $ scp id_rsa.pub server:/tmp
# enter password
user@client:~/.ssh $ ssh server
# enter password
user@server:~ $ cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys

I've got a really annoying issue with Debian 9 running on my Server

After running bash scripts text becomes invisable and I have to type reset to be able to see my text again

Is this a known issue? Anybody know how to fix it? Online solutions all seem to just suggest typing "reset"

who /dnf system-upgrade/ here?

Excellent, thanks.

What does the $ do?

Hi, /fglt/
I put my own systemd unit file (.service) in ~/.conf/systemd/user, but when I try to start it or see its status (with systemctl --user status foo.service), I get "Unit foo.service could not be found."
Do I have to restart my computer?

According to the manual page (sytstemd.unit(5)), it should be able to find it.

If I forgot to install wireless network managers during Arch install, am I fucked and have to reinstall again?

Look what I've done:
ptpb.pw/lkfi.sh/sh
It may be retarded, but it works.

I'm sure there are other ways, check the wiki, you're not fucked.

You were connected to the internet while you installed it, right? You should be fine. Just use wifi-menu and netctl, which are already included to connect, and then install and enable networkmanager or whatever else you plan to use.

Here's cont.c: ptpb.pw/ehhg.c/c

Table 2. Load path when running in user mode (--user).
┌────────────────────────────────┬────────────────────────────┐
│Path │ Description │
├────────────────────────────────┼────────────────────────────┤
│$XDG_CONFIG_HOME/systemd/user │ User configuration (only │
│ │ used when $XDG_CONFIG_HOME │
│ │ is set) │
├────────────────────────────────┼────────────────────────────┤
│$HOME/.config/systemd/user │ User configuration (only │
│ │ used when $XDG_CONFIG_HOME │
│ │ is not set) │
├────────────────────────────────┼─

.
.
.
is $XDG_CONFIG_HOME set on your system?
are you running in user mode?

No. I checked.
And even if it was, it would be $HOME/.config

can you post the content of your service file?

ALL ALL=NOPASSWD: /path/to/script

to /etc/sudoers

meant for

it clearly seperates the username from the command

When you see
user@client:~/.ssh $ ssh-keygen
that means type
ssh-keygen
in your terminal

I rebooted, and it's working now.

You should setup ssh keys like user said, and you can also use this:
rsync -r [email protected]:~/folder{A,B} .

It's shell prompt, you don't actually type it or anything before it.

Or just:
Cmnd_Alias NO_PASSWORD_FOR_SCRIPT = PASSWD: ALL, NOPASSWD: /path/to/script

user ALL = NO_PASSWORD_FOR_SCRIPT

How usable is Linux without DE?

you mean with only a window manager? pretty usable, but expect to lose a LOT of convenience you never realised went into a DE, but you can get most of it back

Nope, only shell environment.

I don't even have X installed on my laptop and I get a shitload of use out of it.
Switching TTYs is cumbersome, though.

I just installed Arch on my laptop and plan to mainly use it for learning bash, C and maybe Python and use VIM for those activities. I assume desktop environemt is completely unnecessary?

A DE is unnecessary, but I'd still recommend a window manager like i3. Standalone WM's are so light there's almost no reason not to have one installed.

wow i sure am fucking sick and tired of those god damn pedos ruining every borderline niche hobby. its faggots like this that makes gnu/linux synonymous with terrorist pedophile

atleast we have stickers to identify him with, shoutouts to my boys over at FBI

qt.gnu.moe/photos/stickerus2.jpg
qt.gnu.moe/photos/stickerus3.jpg

>Switching TTYs

why not just use tmux?

Reading through few entries I don't think he ever committed a crime.
Being a paedophile alone does not qualify anyone to go to jail lol.

How does the Ubuntu on Windows thing differ from setting up your own virtual machine?

It's more like these:
en.wikipedia.org/wiki/Cooperative_Linux
en.wikipedia.org/wiki/User-mode_Linux

Basically Linux running as a userspace program, letting windows do a big part of the work such ass filesystem access etc.
But while UML and coLinux as ports of the Linux kernel, the core of Ubuntu on Windows is a Linux-emulating subsystem developed by Microsoft using clean room engineering with zero code from Linux.

So if all I care about is shitting out scripts in Vim then compiling from terminal, and watching cartoons in MPV this is good enough?
I used to dual boot but I got tired of switching back and forth, and I dislike the performance drop I had with a VM. Would this be a comfy middle ground or does it run like ass?

look at the most recent one

I want to repartition my (mechanical) hard disk and reinstall Arch. What file system should I use? I've tried F2FS on a USB stick, and it does wonders. Is there any file system that would work better on a mechanical hard drive than EXT4?

>gnu.moe
I recently discovered that GNU Moe is actually a thing that exists, it's a text editor:
>gnu.org/software/moe/moe.html

>not going to greentext this shit because it would break rule 1.
You mean this rule?
>You will not upload, post, discuss, request, or link to anything that violates local or United States law.

I mean it's all creepy and shit since I have no clue how old is this guy and what is his job but "not getting hit with a stick", "telling a child they're too small to ride an adult bike" and "talking about school" doesn't seem like a crime

Nobody?

>just get a window manager bro, i3
>he then gets a taskbar, a wallpaper setter, a file manager, a notification daemon, utility software

Totally not a desktop environment.

Your scripts are at fault, they most likely mess with some escape characters and don't reset it properly.

Even though the same scripts work on 16.04 without issue?

Post the scripts.
Are you using the same terminal emulator and shell on both?

github.com/TehVulpes/better/blob/master/better.py

I'm not running anything like screen or tmux, just direct SSH

how do i set a custom icon for a program that doesnt have a launcher? i want to change the qemu icon, it's butt ugly

If that's a .desktop file just change the Icon= directive.

Edit its .desktop file. You can find them in /usr/share/applications or ~/.local/share/applications.
Icon=