Score:0

Getting consistent messages preventing loading GUI apps for Ubuntu WSL2

fr flag

Have latest W10 on old lenovo laptop.

  • Enabled WSL2
  • Installed Ubuntu - icon appears in start menu
  • Installed ubuntu desktop, gtk2 engine, XcVserv, gedit, Firefox

Ran these in bash terminal, supposedly to show Ubuntu where X server is on W 10

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
export LIBGL_ALWAYS_INDIRECT=1
sudo /etc/init.d/dbus start &> /dev/null

At install I forced name because I didn't know how to setup a user account, so this is my "DOS prompt"

root@DESKTOP-0JQT19T:~#

I get...

root@DESKTOP-0JQT19T:~# firefox 
Authorization required, but no authorization protocol specified
Unable to init server: Broadway display type not supported: 172.20.96.1:0.0
Error: cannot open display: 172.20.96.1:0.0

Same happens when I run gedit.

WinEunuuchs2Unix avatar
in flag
Don't run firefox as root. Also on Windows you might as well run Firefox for Windows and not Firefox for Linux. Also `gedit` should not be run as root. That can mess up your home directory.
Moakie Jones avatar
fr flag
How can I get out of root? Do I need to get to a dir path comparable to C:\Windows\System32 which gives me admin rights or do I need to create a user dir instead? Thank you.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.