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-image-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-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.

List installed Proxmox kernels

List installed Proxmox kernels:

dpkg -l | cut -d" " -f3 | grep pve-kernel

List installed Proxmox kernels without currently used kernel:

dpkg -l | cut -d" " -f3 | grep pve-kernel | grep -v "$(uname -r)"

Remove unused kernels (this may remove the lastest kernel, if no reboot was done, since last kernel update):

for i in `dpkg -l | cut -d" " -f3 | grep pve-kernel | grep -v "$(uname -r)"`; do apt purge $i -y; done