/fglt/ - Friendly GNU/Linux 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[*].

Previous thread: →

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 Mac.
3) Go balls deep and replace everything with GNU/Linux.

>What distro should I choose?
wiki.installgentoo.com/index.php/Babbies_First_Linux

>What's the alternative for x?
alternativeto.net
linuxalt.com
Search for software by category:
linuxlinks.com/Software
directory.fsf.org/wiki/Main_Page

News:
phoronix.com
webupd8.org
linuxjournal.com
lwn.net
Gaming news:
gamingonlinux.com
linuxgameconsortium.com

/t/'s GNU/Linux Games: /t/'s GNU/Linux Training Videos: * Resources:
Your friendly neighborhood search engine
(try to use a search engine that respects your privacy such as searx, ixquick or startpage)
$ man
$ info
$ --help
Don't know what to look for?
$ apropos

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

Learn the command line:
linuxcommand.org/tlcl.php

Break out of the botnet:
prism-break.org/en/categories/gnu-linux

Learn more about Free Software:
gnu.org

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

/fglt/'s website:
fglt.nl

/fglt/'s copypasta collection:
p.teknik.io/wJ9Zy

Other urls found in this thread:

suse.com/support/kb/doc?id=7018645
github.com/torvalds/linux/commit/5edabca9d4cff7f1f2b68f0bac55ef99d9798ba4
github.com/gardaud/hack-exe
monitorix.org/
mmonit.com/monit/
munin-monitoring.org/
goodies.xfce.org/projects/applications/xfce4-taskmanager
u.teknik.io/qovWG.exe
raw.githubusercontent.com/janbrennen/rice/master/hack.exe
youtube.com/watch?v=FT2JTBRNHD4
linuxjourney.com/
grc.com
grymoire.com/Unix/
twitter.com/SFWRedditGifs

first for install gentoo

Just in, 11 year old bug in Linux kernel just got patched by SUSE:
suse.com/support/kb/doc?id=7018645

It's a privilege escalation bug thanks to C's lack of security concept. In the current DCCP implementation an skb for a DCCP_PKT_REQUEST
packet is forcibly freed via __kfree_skb in dccp_rcv_state_process if
dccp_v6_conn_request successfully returns [3].

However, if IPV6_RECVPKTINFO is set on a socket, the address of the
skb is saved to ireq->pktopts and the ref count for skb is incremented
in dccp_v6_conn_request [4], so skb is still in use. Nevertheless, it
still gets freed in dccp_rcv_state_process.

The fix is to call consume_skb, which accounts for skb->users,
instead of doing goto discard and therefore calling __kfree_skb.

To exploit this double-free, it can be turned into a use-after-free:

// The first free:
kfree(dccp_skb)
// Another object allocated on the same place as dccp_skb:
some_object = kmalloc()
// The second free, effectively frees some_object
kfree(dccp_skb)

As this point we have a use-after-free on some_object. An attacker can
control what object that would be and overwrite it's content with
arbitrary data by using some of the kernel heap spraying techniques.
If the overwritten object has any triggerable function pointers, an
attacker gets to execute arbitrary code within the kernel.

See github.com/torvalds/linux/commit/5edabca9d4cff7f1f2b68f0bac55ef99d9798ba4


How many times has C proven to be an old relic unfit for modern secure computing. OpenSSL's heartbleed, Grub2's Password exploit (the 29 key bypass), Shellshock -- all originate from one root of problem:
"C"


C is the reason why we still have shitty backdoors.
C is the reason why we cannot utilize multiple cores efficiently.
C is the reason why our programs continue to reveal security exploits after decades.
C holds back technology advancement to the 80's .

>he uses a kernel without a canaries
>he has not configured security linux

what do you propose to replace c?

who's the guy in the picture?

I propose Rust. It has major security standards that C doesn't implement. Rust is the best mixture of safety, concurrency and speed.

I want GNU/Redox to be a real thing.

Haskell.


Jk rust.

on VLC for iOS you can share files locally. You start the "server" form the app and both devices should be on the same wifi network. Then you enter the address that VLC gives you (like 10.0.0.9 or something) and you enterr that on your computer, and then you can stream files from your ipad.

Is something like this possible on linux?

Haskel is way more safer than C, C has tons of undefined behaviors, can't prevent data race or dangling pointers.

Problem with Haskell is it doesn't have the speed required for a systems language

That's a pretty rare moot you've got there, OP.
Care to tell where you got it?

yeah it's called ftp

A faggot boipucci.

how do I set it up?

I dicked around doing this some time ago.
It involved ffmpeg and choking the heart out of my extremely old pc.
I didn't save the config or how it worked because most files could be copied in a minute or two. It didn't work with VLC, I used something else.
There are tutorials.

You shouldn't bother with this if you can do it any other way, or just host that shit on a local server and pull it rather than stream it.
Try looking for a full solution, I did this to do it, not because I desperately needed to stream my terabytes worth of porn locally.

This is why you use grsecurity & custom kernels.
Last years Linux bugs didn't affect me.
RAP will prevent exploitation of this bug.

I installed Tails yesterday and noticed that when I tried to do shutdown now it wouldn't work. The same command works fine in CentOS minimal and Manjaro but why not Tails?

what's the best floating window manager?
ps FUCK YOU GOOKMOOT, I HAD TO DO LITERALLY 7 OF THE SLOWEST CAPTCHA

man shutdown

none are the best just use what ever has a theme you like

That is literally my situation.

Thanks.

Vim is retarded.


There, I said it. Why the fuck would the navigation be THIS counter-intuitive?

h -- move left, that's fine
l -- move right, that's fine
j -- move down ?????????????
k -- move up ??????????????

j and k should be reversed. Moving up a line should be on j and moving down a line should be on k. This would objectively be more intuitive. You can NOT defend this retarded vim key mapping. All vim users are masochistic autists.

Grsecurity is a huge pain to manage unless you're on Debian Sid

use net cat and stream to a port and have your ipad listen to that port

then remap it and stop bitching

>This would objectively be more intuitive. You can NOT defend this retarded vim key mapping
is this what putting a patch before the injury looks like?. See the keyboard where vi was developed, that is why hjkl do what they do.

what makes it easier to use on debian?

>then remap it and stop bitching
how? give me a link that doesn't involve reading an entire wiki on vim keymap commands

You can just apt install it rather than manually compile it whenever there is an update

I'm trying to get this working github.com/gardaud/hack-exe
pip installs it fine, but when i run it it says:
Traceback (most recent call last):
File "/usr/bin/hack.exe", line 5, in
from hack_exe import main
ImportError: cannot import name 'main'

google nigger

j is where you rest your left-most finger which I dunno seems like where you'd put the most frequently used key. And moving down a line is probably the most important movement key. So it's probably a good choice.

Use it and get used to it and then you won't have a problem. Most people here have embraced this and got used to it.

Next you can go complain that i3's default is jkl; or something for directional moving (which I think most people rebind).

Are these good? I just found out about it and I really like the concept, but I was wondering if it's an overkill for just a workstation pc.

It's easy on any distro unless you like binary kernels, I'd rather make my own kernel and have no obscure cruft in it.

Yesterday, I was moving some data to the phone connected as mass storage device from laptop running arch with XFCE.

While waiting, the screen went off.
When turn it back on it seems the mass storage was unmounted and the moving files disappeared.
it wasn't there at the source nor the destination.

1. Does moving files with mv command copy the files over then delete it? or does it copy and delete block by block?

2. In such cases, are the data lost?

3. Why did it unmount?

How do I install a gtk theme without sudo?

I have a ubuntu 14.04 vps, I want to monitor usage, CPU, RAM... etc like pic related, how do I go about doing this?

Aren't user-themes installed in $HOME/.themes or something like that?
It's been quite a while since I've done that, so I might be wrong.

>consume_skb
fucking degenerate

free software, amirite, guise?

you have tons of alternatives, if you need graphs and a web interface then:
monitorix.org/
mmonit.com/monit/
munin-monitoring.org/

What if I want a local version?

>its a pro scub faggot episode

htop?

It doens't have all the graphs, though.

I'm using conky right now.

For a VPS?

no, I just want somehting like windows' task manager. For my shitposting PC.

your DE's system monitor will do then.

What if I'm using xfce

you switch to plasma5.
Or just download whatever is the xfce alternative, found this on google:
goodies.xfce.org/projects/applications/xfce4-taskmanager

Task manger got your back.

>goodies.xfce.org/projects/applications/xfce4-taskmanager
That's just a task manager, nad doesn't have graphs.

ALso, I hate KDE and have invested too much time in XFCE already.

from the screenshot in the first page it looks it does.

Recommend me a distro that:
-is Debian-based;
-installs completely from a flash drive;
-has network drivers built in;
-is relatively lightweight/minimal

Currently using Xubuntu, but I was wondering if there are better options.

BunsenLabs

I want more, I have four graphs in my conky config already (CPU, internet I/O, RAM, Swap, Disk I/O)

getting your server remoted is a huge pain to manage unless you're wasting your time on a server that does nothing

+1

>I have four graphs in my conky config already (CPU, internet I/O, RAM, Swap, Disk I/O)
What is the problem then? it looks like you have already a solution.
If you don't like conky then google "linux system monitor" and pick up the one you like more.

forgot to attach the first result on google, never tried but it looks neat (especially that per-process window)

T-thanks

The CIA thinks they can destroy me, linux will win. Microsoft will collapse because they cannot support themselves anymore.

When vi was developed, hjkl were the arrow keys. This wasn't changed later since rather switching to the arrow keys, your fingers stay on the home row.
Everything else are shortcuts
(s)ubstitute
(c)change
(w)word forward
(y)ank
(p)aste
(i)nsert
(v)isually select
etc

Run vimtutor to learn vim properly.

$ curl -# -o hack.exe u.teknik.io/qovWG.exe && chmod +x hack.exe
$ hack.exe google.com
Or use the bash version: raw.githubusercontent.com/janbrennen/rice/master/hack.exe

botnet nigger

$ gnome-system-monitor
or try glances

Debian, in case you need a proprietary driver click "yes" when asked.

Where the ufck is the profile folder of waterfox?

firefox has it under .mozilla.

nevermind, it's sharing the .mozilla folder.

what. the. fuck.

lazy fork

It's faster than firefox, which is all I care about.

Still using pale meme as my main anyway.

How do I search folders recursively, check file extensions and print unique extensions.
I want it to print "mp3 ogg opus flac ape png jpg" from my music directory.

Wait, do you want it to print unique extensions, or print all files with the mp3,ogg,etc.. extensions?

I want it only to print unique extensions, no file names. I've got almost 20k tracks.

nvm, stack overflow helped,
find . -type f | awk -F. '!a[$NF]++{print $NF}'

damn awk magic. Fast as lightning

One of these days I will learn to understand this bullshit

can somebody tell me how to download puppy linux? i need it fast, have universal usb and a flashdrive but can't find the right iso, there's like 5 diferent distros and all of them have 20 versions in .img.xz or .sfs format and i just want latest puppy iso

How hard/easy is it to fuck something important up in Linux?
I just installed Ubuntu yesterday, trying Linux for the first time and I have already run into a problem: Steam doesn't start.

I googled it and apparently other people have the same issue and the solutions involve command lines and shit I am not familiar with at all.

If you're afraid of fucking up something linux is not for you. Instal debian stable, you'll have no problems unless you fuck up something yourself.

ALso, it'lll take you a month or two to ease up to the system and even longer to properly use it.

Better use windows, KID.

Can my computer get infected with malware with wine?

Yeah, Steam is fucking shit. They bundle out-dated libraries ("Steam Runtime") that clash with system libraries with most distros nowadays.

Yes. Wine doesn't sandbox anything and will happily run any malware, although they might not work as expected.

>How hard/easy is it to fuck something important up in Linux?
little if you are not running as root, big if you are and don't know what are you doing

>I just installed Ubuntu yesterday, trying Linux for the first time and I have already run into a problem: Steam doesn't start.
>I googled it and apparently other people have the same issue and the solutions involve command lines and shit I am not familiar with at all.
I wonder how those morons can't even support decently the only officially supported distro.
Post the error anyway, and the solution you want to apply too. Probably it's something fixable installing the correct lib and preloading it.

>Better use windows, KID.

B-but I thought this was the FRIENDLY Linux thread.

In any case, you're probably not wrong, maybe I'll be better off dual booting instead of keeping Ubuntu only.

That's disappointing, I thought they were serious about making Linux a more viable gaming platform every day.

Don't listen to this 1. Most of malware is written for windows.
2. You need to run the malware yourself for it to work.
3. if a malware does work, it will at most infect your wine prefix
4. malware designed to infect linux is rare, but if it it designed to do so then it will.

See this
youtube.com/watch?v=FT2JTBRNHD4

>3. if a malware does work, it will at most infect your wine prefix
not true. As said, Wine doesn't Sandbox anything and has full access to / etc.

linuxjourney.com/
new site to post in general thread?

but the malware only infect C:/

Running Steam on ubuntu 16.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast


This is what I get.

>the solution you want to apply too
Whatever is the simplest solution, I guess.

>I wonder how those morons can't even support decently the only officially supported distro.

This was pretty disappointing tbqh, I went with Ubuntu because I assumed that if Steam would run reliable on any distro, this was the one to get.

>1. Most of malware is written for windows.
>4. malware designed to infect linux is rare, but if it it designed to do so then it will.

try running something that starts mailing bomb threats or tries to delete your home folder or network mounts before coming here to say b-but it's not designed for linux!

the damage may only be "limited" to the user account it's ran on (which implies network mounts or harddrive mounts aren't safe), and traditional viruses like trojans might not end up doing anything spectacular, that doesn't mean that running random executables under the assumption they're safe because it's linux! lol! isn't going to royally fuck your day up

What's the pic suppose to convey?

of course running random executable is dangerous.
The only safe way IMO is through using write protected media on a machine with disconnected HDD.

I just switched from MPD to Mopidy, and god, what a difference.

Is it supposed to be such an unstable piece of shit?
It claims to support ncmpcpp ,but half of the things I try to do fucks the mpd service, the soundcloud plugin is unmaintained along with nearly all the other plugins, and the web clients are featureless mockups made by some shitty webdev, Not to mention beets integration requires the fucking WEB service to run, which makes no fucking sense. Although I should mention there is a plugin for local beets, it is last updated around 2 years ago, and beets is in active development so I don't expect too much from it.

Is there any (simple) way to get a decent Soundcloud/Spotify/Internet Radio/Youtube integration alongside MPD (or an alternative for local files) for on a headless server? Or am I stuck with MPD for the rest of my life?

Did you install steam from the official repos? if not you may be missing some required libraries.
Also note that it looks like it is trying to load the nouveau driver, if you have an nvidia card you should install their official drivers or you will have shitty performances.

Finally, try to run steam with:
LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam

who is willingly to run some cryptolocker under wine to test it out?
grc.com / malware / CryptoLocker_02-10-2014.zip

>.pdf.exe
preloader: Warning: failed to reserve range 00000000-60000000
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
preloader: Warning: failed to reserve range 00000000-60000000
err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report
err:dosmem:load_winedos Could not load winedos.dll, DOS subsystem unavailable

Wine 32-bit prefix 1.7.54

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.

sorry richard

kek, now add a Wine appDB report.

Whats a good place to learn regex for use with grep, awk, sed, etc?

>sexy feet stallman
saved
grymoire.com/Unix/

is there anyway to secure wine when running an untrusted exe?

>wine
Don't use WINE. Run that crap in a VM.
Use wine only for stuff you trust, eg: nothing.

Run your favorite search algorythm against "jails", "sandbox", or just use a VM.

What's the exe?
You can try firejail or using writing filter.

maybe firejail