termux / x11-packages

A set of packages using X11 Windows System.
Other
547 stars 145 forks source link

vnc showing blank screen #236

Closed superuser789 closed 3 years ago

superuser789 commented 3 years ago

Hi I have installed termux on my phone (armv8) running android 10 and termux-desktop. When I start vnc by executing startdesktop, Blank black screen is shown in vnc viewer.

vnc log at /data/data/com.termux/files/home/.vnc/localhost:1.log, is showing 👍

InitConnectionLimits: MaxClients = 2048

Xvnc TigerVNC 1.10.0 - built Jun 23 2020 14:34:11
Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst)
See https://www.tigervnc.org for information on TigerVNC.
Underlying X server release 12000000, The X.Org Foundation

Mon Nov 23 11:52:51 2020
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
Sync Extension 3.1
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/misc/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/TTF/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/OTF/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/Type1/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/100dpi/, removing from list!
[dix] Could not init font path element /data/data/com.termux/files/usr/share/fonts/75dpi/, removing from list!
Popen: `"/data/data/com.termux/files/usr/bin/xkbcomp" -w 1 "-R/data/data/com.termux/files/usr/share/X11/xkb" -xkm "-" -em1 "The XKEYBOARD keymap compiler (xkbcomp) reports:" -emp "> " -eml "Errors from xkbcomp are not fatal to the X server" "/data/data/com.termux/files/usr/tmp/server-1.xkm"', fp = 0x73a38e9c18
Pclose: fp = 0x73a38e9c18
Loaded XKB keymap /data/data/com.termux/files/usr/tmp/server-1.xkm, defined=0x7f
client(0): Reserved pid(16642).
client(0): Reserved cmdname(/data/data/com.termux/files/usr/bin/Xvnc) and cmdargs(:1 -auth /data/data/com.termux/files/home/.Xauthority -desktop localhost:1 () -geometry 1024x768 -pn -rfbauth /data/data/com.termux/files/home/.vnc/passwd -rfbport 5901 -rfbwait 30000).
sh: 1: /data/data/com.termux/files/home/.vnc/xstartup: Permission denied

Mon Nov 23 11:53:01 2020
 Connections: accepted: 192.168.43.49::58563
 SConnection: Client needs protocol version 3.8
 SConnection: Client requests security type VncAuth(2)
 VNCSConnST:  Server default pixel format depth 24 (32bpp) little-endian rgb888
 VNCSConnST:  Client pixel format depth 6 (8bpp) rgb222

Mon Nov 23 11:53:04 2020
 VNCSConnST:  closing 192.168.43.49::58563: Clean disconnection
 EncodeManager: Framebuffer updates: 3
 EncodeManager:   RRE:
 EncodeManager:     Solid: 13 rects, 802.816 kpixels
 EncodeManager:            221 B (1:3633.36 ratio)
 EncodeManager:   Total: 13 rects, 802.816 kpixels
 EncodeManager:          221 B (1:3633.36 ratio)
 Connections: closed: 192.168.43.49::58563
 ComparingUpdateTracker: 0 pixels in / 0 pixels out
 ComparingUpdateTracker: (1:nan ratio)
ghost commented 3 years ago

sh: 1: /data/data/com.termux/files/home/.vnc/xstartup: Permission denied

Seems like rather termux-desktop problem or of your installation.

Fix permissions of xstartup.