failure when trying to use from the command line
hello. I need to run / control riseup-vpn from the command line. and I cant figure it out. ideally through some sort of --headless flag or something.
I am running on a virtual machine. When I launch riseup-vpn via the gui, or from the command line in the virtual machine, everything works fine.
When I try to run riseup-vpn from the host command line, er, that is, when I connect via lxc, by running in host command line lxc console ubuntu -- su ubuntu
and then running 'riseup-vpn.launcher` I get the following errors:
qt.qpa.xcb: could not connect to display
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms" 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 (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), minimal (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), minimalegl (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), offscreen (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), vnc (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), xcb (from /snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins:/snap/riseup-vpn/179/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms), eglfs, minimal, minimalegl, offscreen, vnc, xcb.
Aborted (core dumped)
I thought the issue was just setting the right display variable, but that does not make a difference. (eg, running gedit
obvs wont work, but if I run DISPLAY=:0
then gedit
then within the vm gui gedit will launch fine. but above error present regardless of DISPLAY variable)
I do not actually care about the gui or the above error. I just want to be able to control the vpn soley from the command line, ideally in a headless fashion.