cron.weekly Issue #24: Badlock, Linux Scheduler, Fedora 24, Gitlint, pfSense, monitoring, Docker & more!


cron.weekly is a newsletter about Linux, open source & webdevelopment. Want to get it in your inbox every Sunday? Subscribe below!

I respect your privacy and you won't get spam. Ever. Just a weekly-ish newsletter about Linux and open source.

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Image of Mattias Geniar

Mattias Geniar, April 17, 2016

Follow me on Twitter as @mattiasgeniar

Welcome to cron.weekly issue #24 for Sunday, April 17th 2016.

If you want to help promote a job opportunity, an interesting blogpost or have a new product you’re launching, you can have a look at the advertising options for cron.weekly. In the spirit of open source, everything is done via an issue tracker and is in the open, for everyone to see.

No secrets. Pure open source. All on Github.

I hope you enjoy today’s edition! Plenty of reading material as usual. Let’s hope it rains so we all have an excuse to stay indoors and hug our computer screens.

News

Samba vulnerability: Badlock

A rather serious vulnerability was discovered in Samba, which could lead to your Active Directory backend getting compromised. There was a lot of hype towards this vulnerability as several weeks in advance the site badlock.org was created: a dedicated site + logo + vulnerability name. While the vulnerability is still serious, it’s less serious than was previously assumed.

Unix’s file durability problem

An interesting view on one of Linux’s core behaviour: how to handle file writes. Especially the fact that most writes are buffered in RAM for an indefinite period of time causes concern, as it’s hard to determine if a write actually happened to disk.

The Linux Scheduler: a Decade of Wasted Cores (PDF)

Scheduling, as in dividing CPU cycles among threads was thought to be a solved problem. This paper finds several bugs in Linux’s implementation, causing runnable threads to be stuck in runqueues for seconds while there are idle cores in the system. Let’s hope the proposed fixes and conclusions make it into the mainline Kernel soon.

Skylake’s power management under Linux is dreadful and you shouldn’t buy one until it’s fixed

Intel Skylake’s are the latest CPUs offered by Intel. However, it seems they don’t quite work the full 100% on the latest Linux kernels: the power saving options, used to preserve battery life, don’t work yet. In fact, Linux is running in a configuration that Intel imply may trigger premature failure.

Researchers help shut down spam botnet that enslaved 4,000 Linux machines

A botnet that enslaved about 4,000 Linux computers and caused them to blast the Internet with spam for more than a year has finally been shut down.

Tools & Projects

gitlint

Gitlint is a git commit message linter written in python: it checks your commit messages for style.

Upcoming Fedora 24 new features

The new Fedora 24 is scheduled for release on June 7th of this year. This post goes into the changes of this release: a new Kernel, better Docker support, OpenShift Origin and GCC 6.

blur

Blur was created from the mantra “I’d rather write shell scripts than Makefiles.” Blur is a very small and simple target-driven (top-down) build system, with (practically speaking) no dependencies: It is written entirely as a small handful of Bash scripts.

Docker 1.11

This new release is all about standards: Docker 1.11 is now built on top of runC and containerd, the Open Container Initiative (OCI). This will offer better operability between containers of different vendors (or different underlying container technologies, all commanded through the same unified CLI interface, runC).

Awesome-sysadmin

There’s a trend of starting “awesome-xxx” git repositories, all containing relevant and useful links to a particular topic. This repository focusses on being a Linux sysadmin: lots of content on back-ups, automation, continuous integration, monitoring, file systems, …. Well, pretty much every topic is widely covered.

pfSense 2.3 released

This new release of the open source network security software features a reworked GUI (fully responsive web interface now) and the groundwork for smaller, faster updates in the future. There will no longer be a single monolithic upgrade every few months, but smaller fixes as soon as they’re ready.

gophish

Gophish is an “Open-Source Phishing Toolkit” designed for businesses and penetration testers. It provides the ability to quickly and easily setup and execute phishing engagements and security awareness training.

hiera_explain

hiera is a hierarchical key/value store that can be used to provide data for your puppet manifests (or any other system, really). However, Hiera can be surprisingly complex when debugging. This tool is designed to help demystify Hiera.

voltron

Voltron is an extensible debugger UI toolkit written in Python. It’s basically a GUI frontend on top of debug tools like “gdb”, offering more readable output that’s easier for interpretation if you’re just getting started.

haproxy-lint

This is a simple linter (syntax & validity checker) for HAProxy configuration: prefect for implementing in your git pre-commit hooks or in your validation steps before activating a new HAProxy configuration.

Cocycles

This is a work-in-progress: an search engine that focusses on searching open source code.

Dillinger

Dillinger is a cloud-enabled, mobile-ready, offline-storage, AngularJS powered HTML5 Markdown editor. Lots of buzzwords for another MarkDown editor.

OnionScan

The purpose of this tool is to make you a better onion service provider. You owe it to yourself and your users to ensure that attackers cannot easily exploit and deanonymize.

Zeal

Zeal is an offline documentation browser: it has the documentation available for tools like Ansible, Bash, Go, Puppet, Python, …

Guides & Tutorials

LDAP server setup and client authentication in Jenkins

This guide walks you through setting up OpenLDAP, configuring key authentication, creating Organisational Units and Users (in LDAP) then shows how to implement that authentication in Jenkins.

Linux Troubleshooting Cheatsheet: strace, htop, lsof, tcpdump, iftop & sysdig

This is a very extensive post covering our most used debugging tools and comparing them to sysdig equivalents. If you haven’t heard of sysdig yet, it’s a relatively new tool to help you debug functional and performance related problems on a Linux server. Think of sysdig as strace + tcpdump + htop + iftop + lsof, all rolled into one.

Cheap Docker images with Nix

The race for the smallest possible Docker containers has started! As another alternative, this post describes using the Nix operating system as a docker guest to get Docker images less than 50MB in size.

Understanding metrics in the age of the Time Series Database (TSDB)

A really good read on how to interpret time series database values. Our monitoring has evolved from very simple values to graphs, averages, medians, … and all other interpretations of values. It explains Gauges, Meters, Counters, Histograms, …

GlusterFS HowTo on CentOS 6.x

This guide covers the steps and terminology involved in getting GlusterFS, the scalable network filesystem, on CentOS.

80 Linux Monitoring Tools for SysAdmins

This article features over 80 ways to monitor your machines. The topics include: Command line tools, Network related, System related monitoring, Log monitoring tools, Infrastructure monitoring tools.

Network namespaces explained

Linux namespaces are a relatively new kernel feature which is essential for the implementation of containers. A namespace wraps a global system resource into an abstraction which will be bound only to processes within the namespace, providing resource isolation. In this article, the author discusses network namespaces and shows a practical example.

What happens when you run “rm -fr /” on a Linux server?

It’s the command we all fear: rm -fr /. It recursively deletes all files on your system, starting from the top most directory. But what happens when you run that command? This video shows exactly that.

Linux and Unix nload App: Monitor Network Traffic and Bandwidth Usage In Real Time

nload is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in and outgoing traffic using two graphs and provides additional info like total amount of transferred data and min/max network usage.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.