Author: jan

Teamspeak Dockerfile > Healthcheck

FROM teamspeak

RUN apk --update --no-cache add netcat-openbsd

HEALTHCHECK --interval=15s --timeout=1s --start-period=5s --retries=3 CMD echo quit | nc 127.0.0.1 10011 || false
# docker ps --filter ancestor=teamspeak

CONTAINER ID        IMAGE                 COMMAND                  CREATED             STATUS                 PORTS                                                                        NAMES
748e7f873a07        teamspeak_teamspeak   "entrypoint.sh ts3se…"   5 hours ago         Up 5 hours (healthy)   0.0.0.0:10011->10011/tcp, 0.0.0.0:9987->9987/udp, 0.0.0.0:30033->30033/tcp   dvaec_teamspeak

Steps to (maybe) fix hardware graphics acceleration

Command to verify hardware acceleration (only works inside xorg session):

Positive example:

$ glxinfo | grep render

direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 530 (Skylake GT2) 
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_packed_depth_stencil, 
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth, 
    GL_MESA_window_pos, GL_NV_blend_square, GL_NV_conditional_render, 
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

Negative example (llvmpipe (LLVM 6.0, 256 bits) means it’s using software rendering):

$ glxinfo | grep render

direct rendering: Yes
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: llvmpipe (LLVM 6.0, 256 bits)
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_NV_conditional_render, GL_NV_depth_clamp, GL_NV_packed_depth_stencil,
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_depth_clamp,
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

Session type:

$ loginctl show-session c2 -p Type
Type=x11

Make sure these are installed:

linux-modules
linux-modules-extra
libegl1-mesa
libgl1-mesa-dri
libgl1-mesa-dri
libgl1-mesa-glx
libglapi-mesa
libgles2-mesa
libglu1-mesa
libwayland-egl1-mesa
mesa-utils
mesa-vdpau-drivers

Kernel versions working:

4.10.0-33-generic
4.15.0-15-generic

Linux specific packages:

dpkg -l | awk '{ print $2 }' | grep ^linux
linux-base
linux-firmware
linux-headers-4.15.0-15
linux-headers-4.15.0-15-generic
linux-modules-4.15.0-15
linux-modules-extra-4.15.0-15 linux-image-4.15.0-15-generic linux-image-extra-4.15.0-15-generic linux-libc-dev:amd64 linux-sound-base
apt install linux-headers-generic linux-generic

Configuring IPv6 with netplan on OVH Public Cloud

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    ethernets:
        ens3:
            dhcp4: true
            addresses:
                    - YOUR:IPv6:ADDRESS/64
            gateway6: YOUR:IPv6:Gateway
            match:
                macaddress: MAC:ADDRESS:OF:YOUR:INSTANCE
            set-name: ens3

Then run

netplan apply

 

Modifying the default auto-type sequence in KeepassX

Main reason: I do not want KeepassX to press “Return”. I want to do this myself to prevent pasting into the wrong window.

  1. Right click on root group on the left side and select “Edit group”
  2. Select “Set default Auto-Type-Sequence” and set it to “{USERNAME}{TAB}{PASSWORD}”
  3. This will override the default auto-type-sequence and not hit return on the end of the auto type.
  4. REMARK: child groups and individual saved credentials may override the auto-type-sequence set there.