ssh – x11 forwarding: Server has no GPU – and no swrast_dri.so

I'm trying to set up my server so that I can use Chromium remotely, which I need to override some of the stupid IP restrictions … so I have to use X11 forwarding and – apparently? – OpenGL must be available.

First some information about the hardware:

  • The connecting client is: macOS 10.14, XQuartz 2.7.11 (Xorg server 1.18.4)
  • The server I want to connect to is …

These:

# cat / etc / os-release
PRETTY_NAME = "Debian GNU / Linux 9 (stretch)"
NAME = "Debian GNU / Linux"
VERSION_ID = "9"
VERSION = "9 (stretch)"
ID = debian
HOME_URL = "https://www.debian.org/"
SUPPORT_URL = "https://www.debian.org/support"
BUG_REPORT_URL = "https://bugs.debian.org/"

(The preview formatted this code again and again weird, so I had to split up here, sorry!)

If I start Chromium now, I'll get a message immediately swrast_dri.so was not found, which turns out to be a software renderer. Also run xdriinfo came with this (some noise because ssh -v):

# xdriinfo
debug1: client_input_channel_open: ctype x11 rchan 5 win 65536 max 16384
debug1: client_request_x11: Request of :: 1 44410
debug1: x11_connect_display: $ DISPLAY is starting
debug1: Channel 1: new [x11]
debug1: x11 confirm
Screen 0: not directly renderable.
debug1: channel 1: FORCE input drain

So I learned that I need to install a video driver. Since my Mac has an embedded Intel GPU (mid-2015 MacBook Pro), I decided to install Mesa in the hope that this will fix the problem – which is not the case. So far I have installed this:

# dpkg -l | Grep -i Mesa
ii libegl1-mesa: amd64 13.0.6-1 + b2 amd64 free implementation of the EGL API runtime
ii libgl1-mesa-dev: amd64 13.0.6-1 + b2 amd64 free implementation of the OpenGL API GLX development files
ii libgl1-mesa-glx: amd64 13.0.6-1 + b2 amd64 free implementation of the OpenGL API - GLX runtime
ii libglapi-mesa: amd64 13.0.6-1 + b2 amd64 free implementation of the GL API shared library
II libglu1-mesa: amd64 9.0.0-2.1 amd64 Mesa OpenGL Utility Library (GLU)
ii libglu1-mesa-dev: amd64 9.0.0-2.1 amd64 Mesa OpenGL Utility Library Development Files
ii libosmesa6: amd64 13.0.6-1 + b2 amd64 mesa off-screen rendering extension
ii libosmesa6-dev: amd64 13.0.6-1 + b2 amd64 Mesa off-screen rendering extension - development files
II libwayland-egl1-mesa: amd64 13.0.6-1 + b2 amd64 Wayland EGL Platform Implementation - Runtime
ii mesa-common-dev: amd64 13.0.6-1 + b2 amd64 Developer Documentation for Mesa
ii mesa-utils 8.3.0-3 amd64 Various Utilities from Mesa GL
# dpkg -l | grep -i x11
ii libfontenc1: amd64 1: 1.1.3-1 + b2 amd64 X11 Character Set Library
ii libice-dev: amd64 2: 1.0.9-2 amd64 X11 Interclient Exchange Library (development header)
II libice6: amd64 2: 1.0.9-2 amd64 X11 Interclient Exchange Library
ii libqt5x11extras5: amd64 5.7.1 ~ 20161021-2 amd64 Qt 5 X11 Extras
ii libsm-dev: amd64 2: 1.2.2-1 + b3 amd64 X11 session management library (development header)
II libsm6: amd64 2: 1.2.2-1 + b3 amd64 X11 Session Management Library
libtk8.6: amd64 8.6.6-1 + b1 amd64 Tk Toolkit for Tcl and X11 v8.6 - Runtime Files
II libva-x11-1: amd64 1.7.3-2 amd64 Video Acceleration (VA) - API for Linux - X11 - Runtime
II libx11-6: amd64 2: 1.6.4-3 + deb9u1 amd64 X11 client-side library
ii libx11-data 2: 1.6.4-3 + deb9u1 all client-side X11 libraries
ii libx11-dev: amd64 2: 1.6.4-3 + deb9u1 amd64 x11 client-side library (development header)
ii libx11-xcb-dev: amd64 2: 1.6.4-3 + deb9u1 amd64 Xlib / XCB interface library (development header)
ii libx11-xcb1: amd64 2: 1.6.4-3 + deb9u1 amd64 Xlib / XCB Interface Library
ii libxau-dev: amd64 1: 1.0.8-1 amd64 X11 authorization library (development header)
II libxau6: amd64 1: 1.0.8-1 amd64 X11 permissions library
II libxaw7: amd64 2: 1.0.13-1 + b2 amd64 X11 Athena Widget Library
ii libxcomposite1: amd64 1: 0.4.4-2 amd64 X11 composite extension library
II libxdamage-dev: amd64 1: 1.1.4-2 + b3 amd64 X11 damaged region extension library (development header)
II libxdamage1: amd64 1: 1.1.4-2 + b3 amd64 X11 damaged region extension library
ii libxdmcp-dev: amd64 1: 1.1.2-3 amd64 X11 authorization library (development header)
ii libxdmcp6: amd64 1: 1.1.2-3 amd64 X11 Display Manager Control Log Library
ii libxext-dev: amd64 2: 1.3.3-1 + b2 amd64 X11 Various extension libraries (development headers)
ii libxext6: amd64 2: 1.3.3-1 + b2 amd64 X11 - Other extension library
ii libxfixes-dev: amd64 1: 5.0.3-1 amd64 X11 Various extension libraries for "fixes" (development headers)
ii libxfixes3: amd64 1: 5.0.3-1 amd64 X11 extension library for various & # 39; Fixes & # 39;
ii libxfont1: amd64 1: 1.5.2-4 amd64 X11 font rasterization library
ii libxfont2: amd64 1: 2.0.1-3 + deb9u1 amd64 X11 font rasterization library
ii libxi6: amd64 2: 1.7.9-1 amd64 X11 input extension library
ii libxinerama1: amd64 2: 1.1.3-1 + b3 amd64 X11 Xinerama Extension Library
ii library libxkbcommon-x11-0: amd64 0.7.1-2 ~ deb9u1 amd64 to create keymaps using the XKB X11 protocol
ii libxkbfile1: amd64 1: 1.0.9-2 amd64 X11 keyboard editing library
ii libxmu6: amd64 2: 1.1.2-2 amd64 X11 Various utility libraries
ii libxmuu1: amd64 2: 1.1.2-2 amd64 X11 Various micro utility library
ii libxpm-dev: amd64 1: 3.5.12-1 amd64 X11 pixmap library (development header)
ii libxpm4: amd64 1: 3.5.12-1 amd64 X11 pixmap library
ii libxrandr2: amd64 2: 1.5.1-1 amd64 X11 RandR Extension Library
ii libxss-dev: amd64 1: 1.2.2-1 amd64 X11 Screen Saver Extension Library (Development Header)
ii libxss1: amd64 1: 1.2.2-1 amd64 X11 Screen Saver Extension Library
ii libxt-dev: amd64 1: 1.1.5-1 amd64 X11 Toolkit Intrinsics library (development header)
ii libxt6: amd64 1: 1.1.5-1 amd64 X11 Toolkit Intrinsics Library
ii libxtst6: amd64 2: 1.2.3-1 amd64 X11 Testing - Record Extension Library
ii libxv1: amd64 2: 1.0.11-1 amd64 X11 video extension library
ii libxvmc1: amd64 2: 1.0.10-1 amd64 X11 video extension library
ii libxxf86dga1: amd64 2: 1.1.4-1 + b3 amd64 X11 Expansion library for direct graphic access
ii libxxf86vm-dev: amd64 1: 1.1.4-1 + b2 amd64 X11 XFree86 video mode extension library (development header)
ii libxxf86vm1: amd64 1: 1.1.4-1 + b2 amd64 X11 XFree86 video mode extension library
ii tk 8.6.0 + 9 amd64 Toolkit for Tcl and X11 (Standard Version) - Windowing shell
ii tk-dev: amd64 8.6.0 + 9 amd64 Toolkit for Tcl and X11 (Standard Version) development files
ii tk8.6 8.6.6-1 + b1 amd64 Tk Toolkit for Tcl and X11 v8.6 - Windowing Shell
ii Tk8.6-dev: amd64 8.6.6-1 + b1 amd64 Tk toolkit for Tcl and X11 v8.6 development files
ii x11 common 1: 7.7 + 19 all X Window System (X.Org) infrastructure
ii x11-utils 7.7 + 3 + b1 amd64 X11 Utilities
ii x11-xkb-utils 7.7 + 3 + b1 amd64 X11 XKB Utilities
ii x11proto-core-dev 7.0.31-1 all X11 core wire protocol and helper headers
ii x11proto-damage-dev 1: 1.2.1-2 all X11 Damage extension wire protocol
ii x11proto-dri2-dev 2.8-2 all X11 DRI2 extension wire protocols
ii x11proto-fixes-dev 1: 5.0-2 all X11 fixes extension cable protocols
ii x11proto-gl-dev 1.4.17-1 all X11 OpenGL extension cable protocols
ii x11proto-input-dev 2.3.2-1 All X11 Input Extension Wire Protocol
ii x11proto-kb-dev 1.0.7-1 all X11 XKB extension wire protocols
ii x11proto-render-dev 2: 0.11.1-2 all X11 render extension cable protocol
ii x11proto-scrnsaver-dev 1.2.2-1 all X11 Screen Saver extension cable protocol
ii x11proto-xext-dev 7.3.0-1 all X11 extension cable protocols
ii x11proto-xf86vidmode-dev 2.3.1-2 All X11 Video Mode Extension Cable Protocols

Well, mind you, this is obviously a Debian server installation, and I'm trying to add some desktop y projects, which very often someone should do, who does not know what he's doing. And to be fair – I do not know everything here.

How can I miss that? swrast_dri.so And do you stop that Chromium complains that it is missing and the rendering is complete? Because all I get is a big blue box with pretty much nothing I can click on. 🙂

Yours sincerely,
Ingwie.