krmanik / Manjaro-Linux-on-Android

Install Manjaro on Android
74 stars 5 forks source link

VNC Viewer displays a black screen #19

Closed BobbedBob closed 2 years ago

BobbedBob commented 2 years ago

as the title describes, it does that. Screenshot_20220419_230905_com realvnc viewer android I tried the tigervnc fix but it did not work.

krmanik commented 2 years ago

Run this command in proot distro

  1. For xfce4
    startxfce4
  2. For lxqt
    startlxqt
BobbedBob commented 2 years ago

now it returns a "no screens found" error Screenshot_20220420_191324_com termux

krmanik commented 2 years ago

Try these commands

export DISPLAY=:1
vncserver
startxfce4

All these commands already exists when installation complete. How have you installed the distro?

BobbedBob commented 2 years ago

nope. still doesn't work. or does it? Screenshot_20220420_194333_com termux

I installed it according to the readme. don't think I did anything wrong. should I run sudo pacman -S xfce4 xfce4-goodies Is it because I did not install Anki? When I tried to do so, it returns a "target not found error.

BobbedBob commented 2 years ago

ran sudo pacman -S xfce4 xfce4-goodies but it still did not work. nothing changed.

krmanik commented 2 years ago

Also export DISPLAY=127.0.0.1:1 can be used. But first I have retest the script. (To be updated) In meantime try again, remove these installation and try again with latest termux from f-droid. And follow the instruction in menu. Select xfce from the menu.

BobbedBob commented 2 years ago

do i need to reinstall the entire thing? the code you asked me to run in the previous reply did not work either.

krmanik commented 2 years ago

Enter the commands, do not add sudo. Do this in following manner. Also DISPLAY in all capital letters. You may have to clear tmp folder and stop and remove unused vncserver using vncserver -kill :1. Replace :1 with :2 or other numbers that previously vnc server started with.

Do exactly this. Do not add sudo

export DISPLAY=:1
vncserver
startxfce4
BobbedBob commented 2 years ago

it works now!