yuezk / GlobalProtect-openconnect

A GlobalProtect VPN client for Linux, written in Rust, based on OpenConnect and Tauri, supports SSO with MFA, Yubikey, and client certificate authentication, etc.
GNU General Public License v3.0
1.4k stars 157 forks source link

containerization #244

Open StijnMaes92 opened 1 year ago

StijnMaes92 commented 1 year ago

Hello,

I am trying to containerize this. For example:

When I type 'gpclient' or with parameters such as 'gpclient vpn.xxx.com' it says:

2023-07-05 15:40:26.938 INFO [8184] [main@24] GlobalProtect started, version: 1.4.9 qt.qpa.xcb: could not connect to display qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

The way I understand it, is that it wants to open the popup screen for login. But since there's no GUI available in an ubuntu container. Any extra parameters I need to use or is a non GUI connection unsupported at this moment?

yuezk commented 1 year ago

You could refer this discussion https://github.com/yuezk/GlobalProtect-openconnect/discussions/215