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

bugzilla.mozilla.org/show_bug.cgi?id=1345661#c83
theregister.co.uk/2017/06/27/google_record_antitrust_fine_europe/
youtube.com/watch?v=wMvyOGawNwo
ma.ttias.be/giving-perspective-systemds-usernames-start-digit-get-root-privileges-bug/
twitter.com/SFWRedditGifs

It's explained in the last 2 comments.
How is it dangerous? You need root privileges to start system services. If someone is in a position to start or edit those files for you, there is no need to "exploit" this.
It's also explained what happens when the username is non existent and when it's "invalid".

I downloaded a Windows iso, used dd to burn it to a usb drive, but it won't launch, even when the bios recognises there's a usb drive in.

I have Linux installed, could it be because of that? Should I format the drive first?

I wanted to have Windows and Linux but installed Linux first.

...

> don't expect the service to execute as root
> it executes as root
You have no idea of the variety of jobs that init is tasked to handle. If you honestly can't imagine that being exploited you need to learn more security. You need to be defensive, always.

> 3.426 User Name

> A string that is used to identify a user; see also User Database. To be portable across systems conforming to IEEE Std 1003.1-2001, the value is composed of characters from the portable filename character set. The hyphen should not be used as the first character of a portable user name.


> 3.276 Portable Filename Character Set

> The set of characters from which portable filenames are constructed.

> A B C D E F G H I J K L M N O P Q R S T U V W X Y
> Z a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3
> 4 5 6 7 8 9 . _ -

> The last three characters are the period, underscore, and hyphen characters, respectively.

why shouldn't i install ubuntu?

they put ads in the motd.

why cant i set execute bit for files with umask?

>tfw fell for a windows meme because pajeets keep forcing "muh just werks"
fug, even gentoo "just werked" better

You can. Also, files don't have umask. Your shell does as the default perms for new files.

But if umask only applies to terminal how do i set umask for dekstop? I am tired of having to chmod 700 my torrented porn files manually all the time

Not sure, it might inherit for process groups or something, but you should search the web of no-one else here pops up.

How do i create a proper snapshot in lvm? Normaly a snapshot only saves incremental changes, so if i delete the system partition i won't be able to restore shit from the snapshot. I would like to take a full snapshot of the root so that a year later when i delete the / partition i will be able to easily restore it to the state it was right when i took the snapshot

What are some cool terminal commands?

cat

Apart from gentoo, why should I bother switching to Linux now that systemd has ruined everything?

Getting a new laptop and I'm already depressed af about all the configuration problems. Wonder what windows feels like after all these years.

cat is for concatenating files. Concating a file with nothing is wasting a process.

What is systemd?

mpv --vo=fbdev:fb_path=/dev/fb0 /path/to/video

You set up dotfiles once and carry them with you.
An alternative to diversity and flexibility.
mpv avdevice://lavfi:life=s=683x384:mold=10:r=60:ratio=0.1:death_color=#330033:life_color=#990033,scale=1366x768:flags=16 --fullscreen

So I rebooted a while ago and noticed my sound stopped working in firefox, still works everywhere else on my system just not firefox. I'm on firefox 54.

I did some googling and apparently Mozilla dropped support for Alsa in 52 which is what I use, not pulse.

Is this really what's causing my sound to drop, I just find it unlikely that I would not have noticed until now on version 54?

But what does it do that makes you think it's the Devil.
I'm a computer illiterate, so please be gentle.

some distros compiled firefox with alsa support even after 52 maybve yours stopped doing that now

It's da best as all always. I don't even install drivers anymore with windows, i just plop it onto the pc and everything works out of the box

>Starting with version 54, Firefox uses PulseAudio for audio playback and capture. For sound to work, you need to install the pulseaudio package.

FUCKING WHY.

Why does Mozilla just try to ruin everything, what fucking reason is there to stop supporting alsa.

bugzilla.mozilla.org/show_bug.cgi?id=1345661#c83

Catenating, actually.

kittynating

>ctrl+f gnu
>phrase not found

not lunix related, but this is cool
eu's are attacking companies such as google microsoft facebook etc
google already got rekt with a €2.42bn fine
theregister.co.uk/2017/06/27/google_record_antitrust_fine_europe/
will at the end the gubbermint save us from the botnet?

>google already got rekt with a €2.42bn fine
>google
>€2.42bn fine
>rekt

Oh man, i hate to be the bearer of bad news, but thats meager change for google

Learn programming and maintain it yourself.

Too late, I installed pulse. Was a lot less painful than I thought it would be.

I've read there's "apulse" which somehow trolls programs into thinking they are using pulse while its actually alsa. Just in case (didn't try it myself).

why is systemd a meme now?

...

I'm just a user without any detailed technical insights about any "botnets", security problems, or whatever, but here my 2cents why I dislike systemd:

- it makes redhat too powerful
- its acceptance as de-facto standard and developers acting like it already is, makes programs start depending on it, which will ultimativly result in systemd being the actual standard, but imho programs should just run, whatever init you're using

why systemd is a meme
- poettering is funny
- she wants the system's D.
- talking about technical things you barely understand is cool

>€2.42bn
How much is this in fucking cash?
>what is a cool terminal command to convert currency?

This fine is pure bullshit.
>own a company
>work hard and earn my way to the top
>use MY SEARCH ENGINE which i made and own to preffer my products in search results, because again i own the search engine and i pay for its maintenance and give it out to poeple for free, they can use some shitty bing if they want
and those cunts dare to fine them? i hope eu gets fucking nuked

>feeling compassion to multibillion dollar american corporations which turned ruining the planet and it's inhabitants into a joint venture

Bump.

>- it makes redhat too powerful
It's free software, idiot.

>- its acceptance as de-facto standard and developers acting like it already is, makes programs start depending on it, which will ultimativly result in systemd being the actual standard, but imho programs should just run, whatever init you're using
None of the "user-facing" programs that I use depend on it. Most certainly neither do yours.

>It's free software, idiot.
that's irrelevant if there are no viable alternatives

Google isn't just a search engine. It may have started as one, but today the search engine is just a part of a complete advertising system selling our souls. I couldn't care less when they loose some sheckles.

Once there's a "need" for an alternative, one will show up.
It's free software. If you don't find a free alternative, write one yourself. But you can't, because you have no skills and you are entitled and demanding other people use things you like. That's a symptom of autism.

to comply with the latest systemd-userspaced/systemd-kerneld standards

does vaapi enabled chromium accelerate netflix streams?

being "free software" isn't an ultimative "okay", please let it go and think out of the box

months back I had the same opinions, but srsly you need to follow systemd development and how systemd developers act, why distros adpot systemd and who the people are who adopt it

...

Are you complaining about bloat in a modern web browser?

This is what they do.

Nice conspiracy theories.

>FUCKING WHY.
multichannel and duplex support

the euro is slightly more than the dollar, but since americans isn't taught math, just assume it is the same.

How so? Just use your brain. You don' bite the hand feeding you (which is RedHat), so you adpot everything its presenting you. If the community likes or dislikes it, is not important. Look at the Debian voting. The majority of the community didn't want it, some didn't know what systemd is and what it does, some others approved it. Yet systemd came to Debian. Same with other distros. This just shows how much of too powerful RedHat already is.

I just updated Xubuntu to 17.04 and now it boots to a black screen, what do

Doesn't affect me at all. It's free software. It's also convenient and I don't have to trade in convenience for proprietary software.

>It's free software
*explodes*

>netflix

kill yourself back to facebook/lebbit

stop using xnoobuntu.

install debian or debuan with task-xfce-desktop

not helpful

Lifetime is important. Doing a fast-forward in order to save time is indeed helpful.

>>>/sqt/ is this way
>>>/askubuntu/ is that way

why does it matter not like you're going to get more than 720p

battery life.
it's for a laptop.

when even freetards arent united with an opinion about systemd, I don't know what to do
isn't there some, whater, wiki where I can read unbiased, informative stuff about systemd in order to make my own opinion?

Should last a bit, I'd say.
Especially for a laptop.

Why do you need to have an opinion on things you don't understand? If you truly "needed" to have an opinion, you'd be smart enough to research it on your own.
But no, you want to be spoonfed information which you then blindly adapt just to have an opinion on something technical that you can parrot to feel smart in online technology discussions.

this post doesn't help much
you could aswell just not post

Hi /fglt/

I'm trying to make a python script run from anywhere on my system, I'm assuming I would use bashrc but I'm not sure exactly what I need to do

I've got the .py file in my ~/bin folder, what would I use so the system would recignize it as a command?

Even better if I could shorten it so I could type 1 word and it would run the script + specific options

powertop
"biased" good talk about devuan, which explains most of the problems without memes
youtube.com/watch?v=wMvyOGawNwo

set it to executable
chmod +x meme.py

also make sure ~/bin is in your PATH (use full path like /home/user/bin/ just to be sure)

That works perfectly, thankyou

There are 2 things:

- Is the file executable?
If not, chmod +x file

- Is ~/bin in your PATH?
You PATH is a variable which holds all directries which can contain executables you can run from the cli. If ~/bin is not part (you can verify with running: echo $PATH) put a line into your bashrc:
export PATH="$PATH:~/bin"

Is there any advantage to using the full path to your home directory instead of a tilde? I've always thought that a tilde was better, since it allows scripts/configurations to be compatible across systems

$HOME > ~ > full path

It's better to use ~/.profile instead of ~/.bashrc, since then your PATH variable isn't tied to a particular instance of a shell.

>tfw wanted to change owner and group of some files in a directory so i did
sudo chown -R user:poop .
>tfw . is on the keyboard right next to / and i actually accidentaly did
sudo chown -R user:poop /

It's over. It's all broken. All that remains is for me to put myselfs out of my misery ;_;

I hope that cunt who designed the keyboard layout in a way this retarded will burn in hell for all eternity

neofetch | tac
fortune | cowsay | tac

1. Those who have something against freedom are the tards.
2. All the anti systemd shit you see here is paid shills spreading fud and the occasional useful idiot.

t. red hat shill

WHEN YOU WERE HERE BEFORE

The community doesn't need to shill something. The only entity with the need to make payed posts are companies who would otherwise lose money: eg. Red Hat

can someone give me a quick rundown on the systemd controversity?

Have you tried search engines?

>perfectly fine working system
>systemd appears
>shits on fire

I'm running systemd on Devuan. What now?

here is your (You) now piss off

Would be cool to change your init on other distros aswell, right?

systemd is not an init system
people need to stop thinking systemd is an in system
systemd is not an init system

What is systemd?

the fuck

Is there a better way to do this?

echo "Actual: $(($(($(cat /sys/class/power_supply/BAT1/charge_now)*100))/$(cat /sys/class/power_supply/BAT1/charge_full)))%"
echo "Design: $(($(($(cat /sys/class/power_supply/BAT1/charge_now)*100))/$(cat /sys/class/power_supply/BAT1/charge_full_design)))%"

ma.ttias.be/giving-perspective-systemds-usernames-start-digit-get-root-privileges-bug/

You have one $(()) too much.
You can drop the cat and use < instead.

Jessie, Ascii, or Ceres?

How do i encrypt a file with a password? I want something like encrypted harddrive but for a single file

password protected archives

Sure is.

upower -e
to get a list of devices

upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk 'NR==19 {print $2}; NR==20 {print $2}'

Then just dress it however you want.