Linux - Reddit – Telegram
Linux - Reddit
755 subscribers
4.17K 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
Netdata release v1.20!

Hey all,

Our first major release of 2020 comes with an alpha version of our new **eBPF collector**. eBPF ([extended Berkeley Packet Filter](https://lwn.net/Articles/740157/)) is a virtual bytecode machine, built directly into the Linux kernel, that you can use for advanced monitoring and tracing. Check out the [full release notes](https://github.com/netdata/netdata/releases/tag/v1.20.0) and our [blog post](https://blog.netdata.cloud/posts/release-1.20/) for full details.

With this release, the eBPF collector monitors system calls inside your kernel to help you understand and visualize the behavior of your file denoscriptors, virtual file system (VFS) actions, and process/thread interactions. You can already use it for debugging applications and better understanding how the Linux kernel handles I/O and process management.

The eBPF collector is in a technical preview, and doesn't come enabled out of the box. If you'd like to learn more about\_why\_ eBPF metrics are such an important addition to Netdata, see our blog post: [*Linux eBPF monitoring with Netdata*](https://blog.netdata.cloud/posts/linux-ebpf-monitoring-netdata/). When you're ready to get started, enable the
eBPF collector by following the steps in our [documentation](https://docs.netdata.cloud/collectors/ebpf_process.plugin/).

This release also introduces **host labels**, a powerful new way of organizing your Netdata-monitored systems. Netdata automatically creates a handful of labels for essential information, but you can supplement the defaults by segmenting your systems based on their location, purpose, operating system, or even when they went live.

You can use host labels to create alarms that apply only to systems with specific labels, or apply labels to metrics you archive to other databases with our exporting engine. Because labels are streamed from slave to master systems, you can now find critical information about your entire infrastructure directly from the master system.

Our [host labels tutorial](https://docs.netdata.cloud/docs/tutorials/using-host-labels/) will walk you through creating your first host labels and putting them to use in Netdata's other features.

Finally, we introduced a new **CockroachDB collector**. Because we use CockroachDB internally, we wanted a better way of keeping tabs on the health and performance of our databases. Given how popular CockroachDB is right now, we know we're not alone, and are excited to share this collector with our community. See our [tutorial on monitoring CockroachDB metrics](https://docs.netdata.cloud/docs/tutorials/monitor-cockroachdb/) for set-up details.

We also added a new [**squid access log collector**](https://docs.netdata.cloud/collectors/go.d.plugin/modules/squidlog/#squid-logs-monitoring-with-netdata) that parses and visualizes requests, bandwidth, responses, and much more. Our [**apps.plugin collector**](https://docs.netdata.cloud/collectors/apps.plugin/) has new and improved way of processing groups together, and our [**cgroups collector**](https://docs.netdata.cloud/collectors/cgroups.plugin/) is better at LXC (Linux
container) monitoring.

Speaking of collectors, we **revamped our** [**collectors documentation**](https://docs.netdata.cloud/collectors/) to simplify how users learn about metrics collection. You can now view a [collectors quickstart](https://docs.netdata.cloud/collectors/quickstart/) to learn the process of enabling collectors and monitoring more applications and services with Netdata, and see everything Netdata collects in our [supported collectors list](https://docs.netdata.cloud/collectors/collectors/).

## Breaking Changes

* Removed deprecated bash
collectors apache
, cpu\_apps
, cpufreq
, exim
, hddtemp
, load\_average
, mem\_apps
, mysql
, nginx
, phpfpm
, postfix
, squid
, tomcat
If you were still using one of these collectors with custom configurations, you can find the new collector that replaces it in the [supported collectors list](https://docs.netdata.cloud/collectors/collectors/).
* Modified the Ne
tdata updater to prevent unnecessary updates right after installation and to avoid updates via local tarballs [\#7939](https://github.com/netdata/netdata/pull/7939). These changes introduced a critical bug to the updater, which was fixed via [\#8057](https://github.com/netdata/netdata/pull/8057) [\#8076](https://github.com/netdata/netdata/pull/8076) and [\#8028](https://github.com/netdata/netdata/pull/8028). **See** [**issue 8056**](https://github.com/netdata/netdata/issues/8056) **if your Netdata is stuck on v1.19.0-432**.

## Improvements

### Host Labels

* Added support for host labels
* Improved the monitored system information detection. Added CPU freq & cores, RAM and disk space
* Started distinguishing the monitored system's (host) OS/Kernel etc. from those of the docker container's
* Started creating host labels from collected system info
* Started passing labels and container environment variables via the streaming protocol
* Started sending host labels via exporting connectors
* Added label support to alarm definitions and started recording them in alarm logs
* Added support for host labels to the API responses
* Added configurable host labels to netdata.conf
* Added Kubernetes labels

### New Collectors

* eBPF kernel collector
* CockroachDB
* squidlog: squid access log parser

Check out the [full release notes](https://github.com/netdata/netdata/releases/tag/v1.20.0) and our [blog post](https://blog.netdata.cloud/posts/release-1.20/) for full details!

https://redd.it/faz197
@r_linux
Any hash checker tools that utilize all cpu cores/threads?

Would it be possible to create a sha256sum tool that can utilize all cpu cores and threads?
When one has huge files as input, it can take forever on one thread/cpu core.
I was wondering if it was possible to generate a .sha256 file through all cpu cores and threads?

Thank you in advance.

https://redd.it/fb2ref
@r_linux
[OC] I Wrote a Window Manager, sara. It's Done (v1.0)
https://redd.it/fb3stw
@r_linux
Looking for opinions/experience Kubuntu vs Ubuntu for gaming/Steam

I am planning on switching my main desktop over to linux. I have narrowed it down to Kubuntu vs Ubuntu. I really really like KDE over Gnome but, I am wondering what the issues are when it comes to gaming or steam. From everything I have seen everything leans towards gnome but, I am wondering if that is just due to that is what Ubuntu and Debian use as default or if there is a real reason for it.

Other things I plan on doing on this install is: cybersecurity tools, office, programming, running virtual machines, small amounts of video recording and editing, possibly some streaming in the distant future. So if you know/experienced issues with any of these feel free to chime in.

https://redd.it/fb4e0a
@r_linux
Feel like a simple maintenance monkey for hire

Recently been doing routine maintenance on on peoples computers for money. I've only had three customers so far, all friends and family. Been payed $40-$60 for each job.

On Windows I cleaned up viruses and bloatware(ultimately speeding up the system). For others I've just installed a distro of their choosing on a laptop.

I had been studying computers on my own for a few years. And now it's like I've found my side hustle. 😙

https://redd.it/fb6dd8
@r_linux
Librem laptop, where to sell?

Hi folks,

Won a librem laptop at a hackathon. Any recommendations on where to sell it? I have it on eBay but was wondering if there is another good place:

​

[https://www.ebay.com/itm/Librem-15-Version-4-Secure-Laptop/362929449863?\_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20160727114228%26meid%3D36520751887c4ec9b58b6662c0214a75%26pid%3D100290%26rk%3D2%26rkt%3D2%26sd%3D254508357184%26itm%3D362929449863%26pmt%3D0%26noa%3D1%26pg%3D2060778&\_trksid=p2060778.c100290.m3507](https://www.ebay.com/itm/Librem-15-Version-4-Secure-Laptop/362929449863?_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20160727114228%26meid%3D36520751887c4ec9b58b6662c0214a75%26pid%3D100290%26rk%3D2%26rkt%3D2%26sd%3D254508357184%26itm%3D362929449863%26pmt%3D0%26noa%3D1%26pg%3D2060778&_trksid=p2060778.c100290.m3507)

https://redd.it/fb76c0
@r_linux
Ah yes, I Tux Linux too
https://redd.it/fbbph6
@r_linux
Is this how I got hacked last month?

Linux noob here. I had a file named testfile321.php in /public\_html/testfolder321/ on my server last month... it was a test file I forgot to delete. The file testfile321.php had 0755 permissions, allowing anyone to execute. Here was the code in that file:

​

`<?php`

`exec('node/bin/npm install jt-js-sample');`

&#x200B;

That's all there was to it. There was only one other person who knew about the existence of testfile321.php in my public web directory, a coder I was hiring. My server suddenly got infected by phishing malware and started sending out thousands of phishing emails, and people were replying to my server's email address saying I was sending them phishing emails.

I've since restored my server to a clean image before that file ever existed, and changed all the passwords to everything, including the root password.

Now my question is this: was it possible for him to execute commands and gain remote access through testfile321.php, seeing as how it had 0755 permissions? Did the existence of that file allow him to inject his own commands and gain root access? Can someone ELI5 what commands someone would've injected through that file to gain root access and/or install malware?

https://redd.it/fbccst
@r_linux
Looking for a graphics tablet for Fedora or OpenSuse

Hi, I am looking for a non-Wacom graphics tablet that would work on Gnome Wayland (Fedora) and/or KDE plasma(OpenSuse). I have spent hours researching and while some models by some manufacturers (eg XP-Pen and Huion) seem to work with Linux systems, there is conflicting information from users - for some it works, for others not.

Would it be wise to choose a model that has Android support, as it might have better chances of working on Linux?

Thanks.

https://redd.it/fbc8nx
@r_linux
I wrote a bash noscript to select a country using dmenu and open the respective YouTube trending page

https://www.youtube.com/feed/trending shows trending for your currently selected country. To view it for another country, you need to either change it manually in the menu or append a country code, such as ?gl=DE. This becomes tedious if you want to switch to multiple countries.

With this noscript you can select the country using `dmenu` and the respective trending page will open. Change the browser in the last line to your own browser.

How to use: just run the noscript with no arguments. You need to have `dmenu` installed.

#!/bin/bash
declare -A countries=(
["Algeria"]="dz"
["Argentina"]="ar"
["Australia"]="au"
["Austria"]="at"
["Azerbaijan"]="az"
["Bahrain"]="bh"
["Belarus"]="by"
["Belgium"]="be"
["Bolivia"]="bo"
["Bosnia and Herzegovina"]="ba"
["Brazil"]="br"
["Bulgaria"]="bg"
["Canada"]="ca"
["Chile"]="cl"
["Colombia"]="co"
["Costa Rica"]="cr"
["Croatia"]="hr"
["Cyprus"]="cy"
["Czechia"]="cz"
["Denmark"]="dk"
["Dominican Republic"]="do"
["Ecuador"]="ec"
["Egypt"]="eg"
["El Salvador"]="sv"
["Estonia"]="ee"
["Finland"]="fi"
["France"]="fr"
["Georgia"]="ge"
["Germany"]="de"
["Ghana"]="gh"
["Greece"]="gr"
["Guatemala"]="gt"
["Honduras"]="hn"
["Hong Kong"]="hk"
["Hungary"]="hu"
["Iceland"]="is"
["India"]="in"
["Indonesia"]="id"
["Iraq"]="iq"
["Ireland"]="ie"
["Israel"]="il"
["Italy"]="it"
["Jamaica"]="jm"
["Japan"]="jp"
["Jordan"]="jo"
["Kazakhstan"]="kz"
["Kenya"]="ke"
["Kuwait"]="kw"
["Latvia"]="lv"
["Lebanon"]="lb"
["Libya"]="ly"
["Liechtenstein"]="li"
["Lithuania"]="lt"
["Luxembourg"]="lu"
["Malaysia"]="my"
["Malta"]="mt"
["Mexico"]="mx"
["Montenegro"]="me"
["Morocco"]="ma"
["Nepal"]="np"
["Netherlands"]="nl"
["New Zealand"]="nz"
["Nicaragua"]="ni"
["Nigeria"]="ng"
["North Macedonia"]="mk"
["Norway"]="no"
["Oman"]="om"
["Pakistan"]="pk"
["Panama"]="pa"
["Papua New Guinea"]="pg"
["Paraguay"]="py"
["Peru"]="pe"
["Philippines"]="ph"
["Poland"]="pl"
["Portugal"]="pt"
["Puerto Rico"]="pr"
["Qatar"]="qa"
["Romania"]="ro"
["Russia"]="ru"
["Saudi Arabia"]="sa"
["Senegal"]="sn"
["Serbia"]="cs"
["Singapore"]="sg"
["Slovakia"]="sk"
["Slovenia"]="si"
["South Africa"]="za"
["South Korea"]="kr"
["Spain"]="es"
["Sri Lanka"]="lk"
["Sweden"]="se"
["Switzerland"]="ch"
["Taiwan"]="tw"
["Tanzania"]="tz"
["Thailand"]="th"
["Tunisia"]="tn"
["Turkey"]="tr"
["Uganda"]="ug"
["Ukraine"]="ua"
["United Arab Emirates"]="ae"
["United Kingdom"]="gb"
["United States"]="us"
["Uruguay"]="uy"
["Venezuela"]="ve"
["Vietnam"]="vn"
["Yemen"]="ye"
["Zimbabwe"]="zw"
)
choice=$(printf "%s\n" "${!countries[@]}" | dmenu -i)
brave-browser "https://www.youtube.com/feed/trending?gl=${countries[$choice]^^}"

https://redd.it/fbf41p
@r_linux
Gamma Text Editor - overview (Beta)

[https://www.youtube.com/watch?v=G8B3HF2mzak](https://www.youtube.com/watch?v=G8B3HF2mzak)

Gamma (Γ) is a lightweight text editor. It is meant to be an alternative to Gedit or Notepad++. Although the current implementation is tested on linux under Gnome desktop environment, Gamma can run on Linux, Windows, and Mac if dependencies are installed (see Dependencies section below). Gamma uses GTK3 (cross-platform GUI toolkit) and PyGObject which is a Python package that provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more.

&#x200B;

Your thoughts please

https://redd.it/fbga95
@r_linux
Don't Know What Else to Do

I am having issues installing grub onto my laptop. I have to do this again since a windows update deleted linux from my UEFI BIOS version boot menu. Whenever I am trying to install it onto my system(currently using pop!\_os from my USB because I can't load onto pop!\_os on my laptop. I would love to just install this on my laptop and wipe everything, but I have some files on my the original Pop!\_os that I would like to keep.

Is there a way to access the files without booting up the OS?

This is the error that I receive when trying to install grub:

"pop-os@pop-os:\~$ sudo apt install grub2-common

Reading package lists... Done

Building dependency tree

Reading state information... Done

grub2-common is already the newest version (2.02-2ubuntu8.13).

0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

1 not fully installed or removed.

After this operation, 0 B of additional disk space will be used.

Do you want to continue? \[Y/n\] y

Setting up refind (0.11.5-1) ...

ShimSource is none

Installing rEFInd on Linux....

The ESP doesn't seem to be mounted! Trying to find it....

mount: /boot/efi: special device /dev/nvme0n11 does not exist.

umount: /boot/efi: not mounted.

///boot/efi doesn't seem to be on a VFAT filesystem. The ESP must be

mounted at //boot or //boot/efi and it must be VFAT (not msdos)!

Aborting!

dpkg: error processing package refind (--configure):

installed refind package post-installation noscript subprocess returned error exit status 1

Errors were encountered while processing:

refind

E: Sub-process /usr/bin/dpkg returned an error code (1)"

Any help would be appreciated! Thank you in advance.

https://redd.it/fbhtpk
@r_linux
installing from one partition to another without usb?

i just bricked my remaining usb large enough to hold an iso file. i was planning on installing a distro to run on my laptop. i had an idea and i would like to know if it'll work...

since i went and bought a new drive for the installation, can i just create a partition just big enough for the iso file and install to the partitions on the rest of the disk?

https://redd.it/fbjvet
@r_linux
Any good contact management apps?

As the noscript would indicate, I am looking for a good contact management app. It doesn't have to be quite up to level of a full CRM, although that would be nice. I keep my contacts in a number of differrent places (google, linkedin, nextcloud, etc) and would like one central place to work with them. Integration with email and text would be nice as well.

I've run a SuiteCRM instance and found its google and android integration troublesome. I've also tried Kaddress and it never did sync the contacts correctly for me.

Running Mint (Peppermint actually). Any suggestions would be appreciated.

https://redd.it/fbksv6
@r_linux