Linux - Reddit – Telegram
Linux - Reddit
760 subscribers
4.18K photos
207 videos
39.8K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
What are the differences between Linux distributions?

I've just started an Ubuntu Linux course, I installed a virtual machine and run it there. While i was
investigating a little more i found tons of Linux distributions and I start wondering about what if I chose the wrong distribution, or if I wanna change from one to other?. Do they have stuff in common?. What are they used for?.

I would really appreciate if someone clear out my doubts! Thanks :)

https://redd.it/f72f43
@r_linux
As a Gentoo user I had to check what gcc flags are in Clear Linux. Here they are:

`CFLAGS="-g -O3 -feliminate-unused-debug-types  -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -m64  -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects  -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake  -Wa,-mbranches-within-32B-boundaries"FFLAGS="-g -O3 -feliminate-unused-debug-types  -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -malign-data=abi -fno-semantic-interposition -ftree-vectorize  -ftree-loop-vectorize -Wl,--enable-new-dtags  -Wa,-mbranches-within-32B-boundaries "CFFLAGS="-g -O3 -feliminate-unused-debug-types  -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -m64  -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -malign-data=abi -fno-semantic-interposition -ftree-vectorize  -ftree-loop-vectorize  -Wl,-sort-common -Wl,--enable-new-dtags "CXXFLAGS="$CFLAGS -fvisibility-inlines-hidden -Wl,--enable-new-dtags "`

​

\-mtune=skylake fascinates me. Why no other distro uses -mtune?

​

Of course it doesn't mean the whole system is compiled with these flags. It might or not but we can't be sure.

I share this as I know many people wonder what makes Clear Linux so fast and this file may give some ideas or to inspire for discussion.

https://redd.it/f72j7a
@r_linux
Snap Apps not opening after running a command

Hello! I am a very new Ubuntu/Linux user! Unfortunately, I was having an issue with discord, attempted to fix it, but ended up just breaking all of my Snap Apps. The command I ran was
sudo chown -R $USER:$USER \~/snap
How would I fix this? Should I just do a fresh install? Thank you!

https://redd.it/f7483w
@r_linux
The future of distributed shell commands.

Greetings, comrades.

I'd like to tap into the huge wealth of knowledge and experience contained within the Linux community, for some guidance. Now, I consider myself to be an experienced Linux user, but I've not had much exposure to large scale infrastructure, or real *sysadmin* tasks; I simply don't know your struggles, or the kind of workflow you have, and I want to learn.

I'm trying to take an old, stale, but still very useful tool called [omnissh](https://github.com/rykugur/omnissh), and design a more robust, concurrency-friendly version, which I've named [massh](https://github.com/DiscoRiver/massh). The idea is to be able to perform distributed shell commands to a vast number of hosts, concurrently, for the purpose of either executing tasks, or detecting inconsistencies in output.

The question I have for you, is, as an administrator of large distributed systems, what kind of feautres or behaviour would be useful for you, and what kind of information & feedback would be valuable when trying to run these kinds of commands?

Any information on what kind of things would be important to you when running something like omnissh, or massh, would be extremely useful to me. I appreciate anything you can offer.

Thanks!

https://redd.it/f6yk2w
@r_linux
If you haven't tried zsh give it a shot. I did today. I can't believe I haven't been using it.

Holy crap. It finally feels like a _modern_ terminal. Pretty sure you can do the same with bash but my god this just seems a leap forward for me. And there are so many awesome super easy to install customizations (I am using prezto its bomb).

Anyway just a quick PSA to all the folks here like me who haven't tried it. Might not be for you but I'm sure a lot of you will be like me today.

https://redd.it/f754rm
@r_linux
Linux existential cry for help. What do you do with Linux? Soliciting all the advice!

I have an obsession. It's Linux. Number 1, because it's free. Number 2, because it's freedom. I feel this is the correct ethos and should be self-evident in this group.

I cut my teeth in IT in the Marine corps as a Solaris sysadmin. After a tour, I went to a for-profit trade college and studied Information Systems Security, with emphasis on Windows enterprise.

I took contract work in the Bay area for a few years as Technical Support Analyst at a finance company and have been in various IT support roles in Windows and Mac environments.

I work at a private 7-12th grade school and have ample time to geek out on research and projects of work-related interests.

Which brings me to Linux.

I liked Solaris a lot \~20 years ago when I started but didn't think much about it. Cut to 10 years ago, I took Linux for a walk, had some trouble with GPU and wireless drivers, and put it on the back burner and stuck with Windows.

Over the last 5 years, Linux ISOs kept finding their way into my Downloads folder and all my extra USB drives (weird, right?), and my gaming rig was always running out of resources on account of poorly managed resources from abandoned VirtualBox VMs.

Then I learned Powershell for work and discovered the weird yet incredibly familiar command line environment, the love-child of Windows bat noscript and Linux. Holy shit, LINUX ALIASES in the Windows ($PS) command line? Old muscle memory comes back... LS instead of DIR?! YESSS. I'm hooked. I can't get enough, leading to picking up Linux again and putting it on as many old bare metal laptops I can find.

Cut to, "whoa, what's this Raspberry Pi thing? I'll take 4, please." "Raspian you say?" Let's do this.

Me roughly 3 years ago: "I should become a developer." Fuck it; I go all in. "Honey, I'm going back to school to get a degree in programming." It's been 3 years and I'm barely getting into the major-related coursework in C++. It's been a slog at one class a semester but it’s still interesting and feels relevant.

Me lately: "oooooh, what's this Arch all about... oh, this is, complicated."

But I've hit a wall and need some advice. I LOVE the process of Linux, from torrenting ISOs, to making them run on the crappiest hardware, to \*trying\* to successfully build vanilla Arch over and over until it's muscle memory, and making custom bash noscripts to set up my tools on a new install. It's all super enjoyable, but as a dad of young children who doesn't game anymore AND goes to school, I'm starting to ask myself what's next beyond the challenges of getting it installed. As a Windows admin, I can't switch to Linux at work, but could certainly do it at home if forced to (Ubuntu 19.10 has been a SUPERB laptop OS), and I could use Visual Studio Code if I needed to for C++ homework. I'm sure I could learn to deploy it in a homelab environment, but that seems like a lot to learn that I'd forget pretty quickly without re-enforcement from real life application.

I've dabbled in cloud stuff and micro services and have felt the "call" to build a website/web app, but web stuff feels like such a morass of potential security vulnerabilities that it scares me away from finishing any tutorials.

Fellow nerds of reddit, please weigh in and tell me what you use Linux for.

Please and thank you. The floor is yours.

/robotsneeze

https://redd.it/f764p4
@r_linux
Having a hard time replacing workflow from Windows/Google....Tasks, Calendars

Set up I've been used to:

Gmail, Google Tasks. Have Business Calendar 2 on my Android that lets me pull both events and tasks into the same list in agenda form (the best). In my side monitor for my desktop, I have the screen split into 2. Events and Tasks., Agenda layout. Works great.

But, I'm trying to follow good general privacy rules and disconnect from Google. I just signed up for tutanota and protonmail.

How can I keep sync with tasks and calendars and have a UI that's not bad? Seems the big hold up is finding something to sync Tasks

What's everyone's workflow on this?

https://redd.it/f76rcb
@r_linux
The phrase - 'If you are not paying, you are the product!!' - puts people off free and open source software.

As people become increasingly aware of the privacy implications of 'free' services like Google and Facebook, its common to see people repeat phrases like 'If you are not paying, you are the product!!'.

The problem with this statement is that

- it doesn't differentiate between 'free' as in beer and 'free' as in 'freedom'
- it assumes that paying for something is any kind of guarantee of privacy

Example - I was explaining to a colleague that I use Linux Mint on both my Macbook Pro and Desktop PC - his reaction was 'well you know if its free that means they are selling your data!'

Example 2 - some redditor was claiming that he was happier using some software which he literally knew was serving him adware and had hjacked his browser because he thought that made it more trustworthy as he knew how they were making money, over an open source alternative.

This is why I think the 'you are the product' phrase is damaging to FOSS.

Has anyone experienced this and whats the best response?

https://redd.it/f77bzw
@r_linux
I want Linux in my HTPC, can it play HDR videos on my TV?

While I've been searching about it and the lack of found answers leads me to believe that it is not possible, still I needed to ask directly.

Is Linux compatible with HDR screens and can play HDR content in general (netflix, bluerays, youtube, etc)?

I still think it might/should be possible considering that Android is able to do it, but as I said, I can't find anything relevant about it.

https://redd.it/f7807n
@r_linux
Partition mounted disk

When i installed my system i made 3 partitions, 1 for the system, 1 for swap and another one for my home directory, it's been some time now and i've been studying/using linux since then, lately i've been using a lot of software, compiling, etc.. the things is, i'm putting all this softwares in the /opt directory, which is the system partition and i'm running out of space, is there a way to partition my big home directory while still mounted ? i never had a situation i needed to think about that but anyways, all i know is that i can only use the sectors that haven't been touched, any tips on how to make this partitioning work?

https://redd.it/f77eil
@r_linux
"Free as in speech, not as in beer" is out of touch with reality

Selling support, is not selling software, you are selling support.

Purchasing support, is not purchasing software, you are purchasing support.

When was the last time you **purchased** FOSS software? Not donated, purchased.

When you do *sudo packagemanager install x*, it never ever asks for money! So how is anybody selling software when everybody installs software through their package manager 99% of the time?! There is no distribution system that offers payments capabilities in the whole FOSS world.

In every way possible "free as in speech, not as in beer" it's a lie. Donating does not count!

Neither does selling CDs in 2020, which is beyond stupid.

https://redd.it/f79gxm
@r_linux
I forgot how to solve problems, because I don't have them for a long time.

I'm not sure if this is a bad or a good thing for myself since I'm losing my practice at some situations but I'm pretty sure this is a great thing for end users. I used to deal with so many problems without searching on the internet, there was no need for that since my memory was still fresh after the last incident.

*Hmm, I cannot pass GRUB. I should try to edit the line with* `nomodeset`.

*I cannot reach to the system. I can try* `startx` *on tty to see what's happening.*

*Darn I lost GRUB after installing Windows over Linux. I should restore GRUB with a live USB. (Yes, I can even do that from memory.)*

*My trackpad's tap to click doesn't work? I should check that synaptics.conf file again.*

And on and on, those kind of things. I don't even want to talk about legacy Broadcom drivers.

Now when I look back and think about it, using Linux today as an end user is pretty much carefree. Young me came here for customizations and I stayed here for freedom and privacy. And it's getting better every day.

From my point of view as an end user to other end users; if you have doubts about Linux now it's the best time to break that chain (meanwhile Windows 7 is also dead).

Freedom is not faraway.

https://redd.it/f7ahkd
@r_linux
why to follow Redhat?

Why all the Linux Distros Out There is Following Redhat linux in everything.

examples include:

1.Gnome Desktop which is pretty slow and heavy and bloated.

2.[systemd](https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=systemd) instead of [Openrc](https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=openrc) or even [runit](https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=runit)

edit:when I said all i meant major distros.

https://redd.it/f71t1k
@r_linux
Weekend Fluff / Linux in the Wild Thread - February 21, 2020

Welcome to the weekend! This stickied thread is for you to post pictures of your ubuntu 2006 install disk, slackware floppies, on-topic memes or more.

When it's not the weekend, be sure to check out r/WildLinuxAppears or r/linuxmemes!

https://redd.it/f7e587
@r_linux
open source book on TUIs/character graphics, "Hacking the Planet! with Notcurses"

what's up hax0rs? i'm the author of the [notcurses](https://nick-black.com/dankwiki/index.php/Notcurses) library, which i've posted about here a few times in recent months. notcurses is proceeding swimmingly, with the 1.2.0 release on time 2020-02-17, but it was pointed out to me that documentation was...scattered.

​

i present the free (as in beer) and free (as in Apache2-licensed LaTeX source) book, "Hacking the Planet! with Notcurses: A Guide to TUIs and Character Graphics". It's not done yet by any means, but there's already a lot of information in there. I'd like to hear any early feedback about the material and presentation, whether the outlined topics seem good coverage, whether the code examples I'm including are useful, etc. I'm putting several hours a day into this, so if it's garbage, please let me know.

[https://nick-black.com/dankwiki/index.php/Hacking\_The\_Planet!\_with\_Notcurses](https://nick-black.com/dankwiki/index.php/Hacking_The_Planet!_with_Notcurses)

direct link: [https://nick-black.com/htp-notcurses.pdf](https://nick-black.com/htp-notcurses.pdf)

​

Thanks! I'll be uploading new content on at least a daily basis.

​

as always, if this is considered grotesque self-promotion, please annihilate my post with my apologies

https://redd.it/f7e4rq
@r_linux
Tech Tip: Setting up remote X11 over TCP to Xephyr

**Warning!** The instructions given here may decrease your systems' security and may make it more vulnerable. Use at your own risk.

I recently wanted to set up a remote [X.org / X11](https://en.wikipedia.org/wiki/X.Org_Server) connection to a Xephyr server, which is an X server that runs inside a window. I only found partial information in web searches, so I wanted to provide a top-to-bottom guide for accomplishing this task.

The [Xephyr man page](https://linux.die.net/man/1/xephyr) omits the info in [Xnest's man page](https://linux.die.net/man/1/xnest) and that in [the "Xserver" man page](https://linux.die.net/man/1/xserver). Xephyr supports most of the flags in all of them.

To facilitate customisation, we will declare and use the following shell constants:

xephyr_port="1"
remote_xephyr_ip_host="192.168.1.100"

You may need to stop the firewalls on both client and server using something like:

sudo systemctl stop firewalld.service

Or the [stop-iptables noscript](https://github.com/shlomif/shlomif-computer-settings/blob/e9de56aa212706f5c1fc3906c2f0b92065851965/shlomif-settings/home-bin-executables/bin/stop-iptables).

Now start Xephyr on the local desktop:

Xephyr -listen tcp -listen unix -listen local -screen 1024x768 :"$xephyr_port"

Then connect to it and use `xhost`:

# On the X server
export DISPLAY=":$xephyr_port"
xterm &
xhost +

Now you should be able to connect to the Xephyr X server from the remote box:

# On the remote machine
export DISPLAY="$remote_xephyr_ip_host":"$xephyr_port"
xterm &
# Or a different window manager.
starticewm

## Licence

Copyright by Shlomi Fish, 2020.

You can reuse this entry under [the Creative Commons Attribution 4.0 Unported](https://creativecommons.org/licenses/by/4.0/) licence, or at your option any later version of it. See the [instructions](http://www.shlomifish.org/meta/copyrights/#cc_by_intr) on how to comply with it.

Whatever code given here is provided under the [MIT / Expat licence](https://tldrlegal.com/license/mit-license).

https://redd.it/f7e41t
@r_linux