Geen artikel gevondenGeen artikel gevonden Geen artikel gevonden
copyright 1998-2018 by Mark Verboom
ipv6 ready RSS Feed Switch to English

Ga terug naar Nieuws

Geen artikel gevonden

Categorieën: Alles 3D Printen Android Auto's Homematic Humor Linux Muziek Overigen 
 

Sunday, 13 August, 2017

Thinkpad T440s keyboard backlight

A while back I made a simple python script to get the keyboard backlight of the laptop to dynamically switch on and off. Normally you control the backlight with a key combination. But I prefer to only have backlight when I'm typing.

The newer version of the script uses the /sys kernel interface to change the backlight. The older version was quite a hack, poking around some bytes. You can still find it on github.

The newer version can be found on github as well:

https://github.com/mverboom/keylight

I hope it is useful for someone :)

Lees verder

Wednesday, 21 December, 2016

Wifi kerstboom code

Sinds de laatste post heb ik de kerstboom verbonden met de esp8266. Ik heb hiervoor een Wemos D1 mini gebruikt, en erg fijn bord om mee te ontwikkelen.

Lees verder

Monday, 19 December, 2016

Wifi kerstboom

Tijdens het bladeren door de Kwantum folder kwam ik een kleine, interessant en vooral goedkope kerstboom tegen.

Lees verder

Thursday, 24 March, 2016

Proxmox 4.1 lxcfs

Since Proxmox 4.1 I've had a number of issue's on my servers.

The first (and smallest) issue has to do with my Thinlinc installations. The agent component can hang after running a specific cronjob. A "ps" process starts to hang. The only way to resolv this is to restart the zone. This behaviour seems to be related to the lxcfs package on version 0.13-pve3. Later versions seem to resolve this.

The second issue was much more of a problem. This manifests itself as a server with very high load (>12), lots of processes (normally 1400, now > 10.000) but otherwise responding fine. Everything that is running in the lxc containers seems to hang on IO. While checking the processlist further (before rebooting the server, as this seems the only way out), the output of pstree shows something intresting.

| |-systemd-journal
| `-systemd-logind
|-lxcfs-+-lxcfs---lxcfs
| `-671*[{lxcfs}]
|-ntpd
|-pmxcfs-+-{cfs_loop}
| |-8*[{pmxcfs}]

Lees verder

Wednesday, 30 December, 2015

Proxmox 4 migration issues

With the introduction of Proxmox 4 a rather large change was introduced. The combination of KVM and OpenVZ was changed to KVM and LXC. The big upside of this is a recent kernel, changing up from 2.6.36 (released 2010) to 4.2 (currently).

But with the change from OpenVZ to LXC come some changes which make a migration less trivial (depending of the amount of features that are in use with OpenVZ).

The Proxmox Wiki has some good information on migrating from Proxmox 3 to Proxmox 4. I have a couple of issue's I ran into during a couple of migrations that I will share here. Maybe it is of use to someone else. Keep in mind I only run Debian containers, so other distributions might have other issue's.

Inotify

When running a larger amount of containers, it is quite possible you're going to run out of inotify instances. Default this is set to 128 (at least it was on my system). After the first migration I started to get into issues after restoring a couple of containers. The errors pointed to this setting. After increasing the value the problems went away:

sysctl -w fs.inotify.max_user_instances=8192

Lees verder

Monday, 19 October, 2015

Thinlinc reverse proxy

I ran into this program a while ago when I wanted to run the HTML5 ThinLinc client behind a reverse proxy. The HTML5 client has a number of references in it (and a redirect) that refers to the root of the webserver. So serving the client from a url like

https://portal.external.com/thinlinc

just doesn't work.

But we have nginx and with some pointers from the excellent people at Cendio I got it working :)

To make the setup a little bit more clear, I wanted to do this:

Lees verder

Saturday, 18 July, 2015

Veeam Jaguar fix

The other day there arrived a package for me at work from Veeam. Having ordered nothing and having to do nothing to do with VMWare I was confused.

Unpacking the parcel showed a Jaguar remote controlled car with the Veeam logo on its roof.

Lees verder

Sunday, 12 July, 2015

Beveiliging banken websites

Toen ik vanmorgen een transactie uitvoerde via mijn bank (ASNBank) zag ik dat deze netjes een score van 10 aangaf in ssleuth. Deze add-on is overigens erg handig om een idee te krijgen of de verbinding tussen je webbrowser en de webserver van het website een beetje veilig is. Uiteraard zegt dit niets over de veiligheid van de applicatie bij de bank.

Ik vroeg me daarna af hoe de websites van de verschilende banken zich verhouden, zetten ze allemaal een veilige verbinding op met de webbrowser?

Ik heb de volgende banken even snel gescanned:

  • ABN/AMRO Bank
  • ASN Bank
  • ING Bank
  • KNAB
  • Rabobank
  • SNS Bank
De test is vrij simpel, SSLabs heeft een handige tool die makkelijk en snel inzicht geeft in de beveilinging van de verbinding tussen de webbrowser en de webserver. SSLlabs geeft ook een waardering aan een website, varierend van een F (slecht) tot A+ (uitmuntend). Alhoewel dat een indruk geeft is het zeker niet het hele verhaal.

Lees verder