It's UWAweek 17 (1st semester, week 8)

help3002

This forum is provided to promote discussion amongst students enrolled in CITS3002 Computer Networks.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message. How do I ask a good question?

Displaying the 8 articles in this topic
Showing 8 of 255 articles.
Currently 7 other people reading this forum.


 UWA week 11 (1st semester, week 3) ↓
SVG not supported

Login to reply

👍?
helpful

Hi, I am getting this error when running cnet. I have followed the updated instructions but I still get this error. Error: Unable to initialize GTK+, is DISPLAY set properly? I have provided a screenshot of the problem below:



This article has 1 attachment:

 

SVG not supported

Login to reply

👍?
helpful

ANONYMOUS wrote:
> Error: Unable to initialize GTK+, is DISPLAY set properly?
I remember this as a problem that *some* students had last year but, again, not all students are having it this year. Clearly your DISPLAY variable is set, to :0.0, but that's not the correct value. Reading stackoverflow, again..., there were many suggestions, but some are now 2 years old and don't always work. One frequent suggestion is to set:
 export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 # in WSL 2
 export LIBGL_ALWAYS_INDIRECT=1
Another says set it with export DISPLAY=$(hostname):0.0 Others now say that DISPLAY should not be set at all - https://superuser.com/questions/1580610/how-to-run-gui-apps-with-windows-subsystem-for-linux No definitive answer.


SVG not supported

Login to reply

👍?
helpful

Install Windows Terminal from the Microsoft Store and set this as the default terminal. Then open CMD in this and run cnet. It should resolve the problem.


SVG not supported

Login to reply

👍?
helpful
12:03pm Tue 12th Mar, Christopher M.

ANONYMOUS wrote:
> Install Windows Terminal from the Microsoft Store and set this as the default terminal. Then open CMD in this and run cnet. It should resolve the problem.
Great if this works. How does WT support/manage setting up the windowing, by setting DISPLAY to a known, required value, or by directing a command's graphical output the a display server before the command is even invoked? Anyone else tried it? If working well, I'll add it to the installation instructions.


SVG not supported

Login to reply

👍?
helpful

I have tried to use the export commands but the issue persists, I have also tried using Windows Terminal and I'm still getting the same issue. When running export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 or when running export DISPLAY=$(hostname):0.0 It still gives me the same error Error: Unable to initialize GTK+, is DISPLAY set properly?


SVG not supported

Login to reply

👍x3
helpful

I managed to get mine working by following this blog: https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress The main issue was that I didn't have an xserver running which meant I couldn't run GUI programs from WSL. This blog uses VcXsvr which random stackoverflow people seemed to have a lot of success with, but there are also other programs out there.


SVG not supported

Login to reply

👍?
helpful

Thank you it seems to work now


SVG not supported

Login to reply

👍?
helpful

"Uzziah Smith" <23*6*6*6@s*u*e*t*u*a*e*u*a*> wrote:
> I managed to get mine working by following this blog: > > https://nickymeuleman.netlify.app/blog/gui-on-wsl2-cypress
Thank you - seems a very good solution (I wonder why Windows, or WSL-2, doesn't actually provide an Xserver as part of their distribution?). I have added this information to our installation instructions - [CITS3002]

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy