[APKG Xvnc_Server 0.9.16] gain full control of asportal from PC, tablet, SmartPhone

Moderator: Lillian.W@AST

User avatar
father.mande
Posts: 1815
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

[APKG Xvnc_Server 0.9.16] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

HI,
===== New team restart update for x11vnc ... now 0.9.16

PLEASE STOP USING x11vnc V 1-0.9.3 ... do an update to v 1.1 or v 2

Please find attach ... the APKG of x11vnc for Xorg/Asportal ... to permit you to connect from ANY Vnc client
... PC Windows, Linux, MAC ... tablet (include tactile mode) ... or Smartphone ... ALL supporting a VNC Client

X11vnc offer screen (re-sizable), keyboard and mouse (or tactile) to access to Asportal and ALL applications inside (BUT no sound (on the client) and video is like slideshow ... due to network)
X11vnc can be accessed locally (best performance) but also through port forwarding or ssh tunnel or ... etc.
APKG is write to manage using ONE command line (in a console) ALL
... APKG don't start by default Xvnc server at boot ... so need to be started on demand (console)
... BUT parameters exist to choice to start Xvncserver at boot if need
x11vnc.png
x11vnc.png (14.44 KiB) Viewed 28858 times
[Name]
x11vnc

[Versions]
3-0.9.16 for A.D.M. 3.3 +
... new updated version, prepare for new functions and solve previous bug.
... ATTENTION if you used Tight compression (using ONLY by tightvnc viewer) if you fail in error (black screen or unsupported compression), please move to another compression depend of you link (hextile for LAN) ... this will be solved in next release (regression)
... update is possible from previous version.

2.2-0.9.3 for ADM 3.3 (can also be used on ADM 2.6)
... solve a start error (x11vnc seem to be started even it's false)

2.1-0.9.3 for official ADM 2.6
... solve infinite loop when vnc_mngt restart
... solve new password problem due to ADM 2.6 official

2-0.9.3 for ADM 2.6
1.1-0.9.3 for ADM 2.4 a,d 2.5

[Prerequisite]
Xorg
even without asportal and application ... BUT reserved for future used

[Restrictions]
NO sound on client (but sound on real Hdmi screen)
Video is visible but like a slideshow
BUT all applications can be managed
don't use -ncache parameters due to asportal that don't display the screen correctly if you quit client "full screen" mode

[Default parameters]
ALL parameters can be change by command line tools
many ... sharing the server
loop ... don't stop server on disconnection of the last client (need command to stop it (console))
port 5900
xrandr ... FALSE
Password NO

[Client Recommended settings]
Auto-scale ... to have a clear even reduce screen in Client (except if your client have a better resolution than asportal
Connection options : Let remote server deal with mouse cursor
Eventually suppress the Button Bar ("Toolbar")

[HOW-TO]
ALL in one command ... open a ssh console as root or admin ... then

Code: Select all

root@AS5002TaPhil:/volume1/.@root # vnc_mngt
/usr/local/bin/vnc_mngt Usage
/usr/local/bin/vnc_mngt start|stop|restart
/usr/local/bin/vnc_mngt status|conf ... display if x11vnc run | display parameters set
/usr/local/bin/vnc_mngt enable_many|disable_many ... enable multi-connections default TRUE
/usr/local/bin/vnc_mngt enable_xrandr|disable_xrandr ... default FALSE
/usr/local/bin/vnc_mngt port Value default ... 5900
/usr/local/bin/vnc_mngt enable_start_at_boot|disbale_start_at_boot ... enable start it at boot default FALSE
/usr/local/bin/vnc_mngt set_password Password ... generate  password to xxxx ... save for future use
/usr/local/bin/vnc_mngt enable_passwd|disable_passwd ... enable the previous password define for clients ... default FALSE
root@AS5002TaPhil:/volume1/.@root #
start|stop|restart ... x11vnc
status ... display if x11vnc run
conf ... display parameters
enable/disable_many ... share or not the server between client
enable/disable_xrandr ... better support of changing resolution if need (if x11vnc crash when switching between applications ... use it)
port ... listen port for connections
set_password ... store encoded password in user HOME
enable/disable_password ... use or not password requested at connection .
enable/disable_start_at_boot ... define to start x11vnc at boot time ... or only as usual on demand

[Know bugs]

[Download]
Xvnc_server 3-0.9.16 : https://www.father-mande.ovh/A/apkg/x11 ... x86-64.apk

For upgrade or fresh install on ADM 2.4 or 2.5 :

x11vnc_2.2-0.9.3_x86-64.apk : https://www.father-mande.ovh/A/apkg/x11 ... x86-64.apk


Have fun.
Philippe.
Last edited by father.mande on Mon Nov 11, 2019 10:45 pm, edited 7 times in total.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
damien599901
Posts: 575
Joined: Mon Dec 30, 2013 2:53 am

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by damien599901 »

you rock father_mande :mrgreen:
Storage: AS7004T & AS5002T
Network: FREEBOX REVOLUTION V6
Laptop: Apple MACBOOK Pro OS X El Capitan & Windows 10
Media Player: ASUSTOR NAS with Kodi 16 Beta & HD_Engine 1 (thanks Fathe_Mande)
Portable: iPhone 6S Plus, iPad Mini 2 & iPad Air
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

Hi,

Just created a short shell to update X_VNCServer to run in ADM 2.6 ... (and go-back if you return in ADM 2.5)

here : http://forum.asustor.com/viewtopic.php?f=42&t=7575

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

Hi,

Update available ...

Fresh install or update to v 1.1 on ADM 2.4/2.5
... solve some bugs
... manage upgrade by keeping configuration

... sorry some errors due to the fact it's my first APKG

Fresh install or update to v 2 on ADM 2.6 (ONLY) from ADM 2.4/2.5 v1 or v1.1 version

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
damien599901
Posts: 575
Joined: Mon Dec 30, 2013 2:53 am

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by damien599901 »

thank you father_mande
the app works with a vnc_mngt start

great work !!!
Storage: AS7004T & AS5002T
Network: FREEBOX REVOLUTION V6
Laptop: Apple MACBOOK Pro OS X El Capitan & Windows 10
Media Player: ASUSTOR NAS with Kodi 16 Beta & HD_Engine 1 (thanks Fathe_Mande)
Portable: iPhone 6S Plus, iPad Mini 2 & iPad Air
nick_woodforth
Posts: 15
Joined: Thu Feb 04, 2016 12:18 pm

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by nick_woodforth »

thanks for this app it works great!!

im having problems with setting a password though
i set the password using

vnc_mngt set_password Test+
stored passwd in file: /root/.vnc_passwd
vnc_mngt enable_passwd
vnc_mngt start

when i start vnc viewer it asks for password but Test+ does not work password check failed!

with password disable it works like a charm :D
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

Hi,
nick_woodforth wrote:thanks for this app it works great!!
im having problems with setting a password though
i set the password using
vnc_mngt set_password Test+
stored passwd in file: /root/.vnc_passwd
vnc_mngt enable_passwd
vnc_mngt start
when i start vnc viewer it asks for password but Test+ does not work password check failed!
with password disable it works like a charm :D
I have to check ... just remember it's on my free time ... so just wait please.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
MikeG.6.5
Posts: 917
Joined: Fri May 15, 2015 1:56 am

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by MikeG.6.5 »

Tried getting this working and had absolutely 0 luck.

And I'm sure it's somehow lost in the translation of what you are saying, Philippe and what I'm reading...

So PLEASE, can you do a STEP-BY-STEP of how to install things like this?

example:

Step 1) Open WinSCP, and then PuTTY.
Step 2) type in this command, see these results
Step 3) Go to your HDMI screen and open xterm
etc.

I don't know where to type what, and what I should see after I do it, from which interface! I know I'm not the brightest lightbulb in the box, but for some reason this is just beyond me....
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

Hi Mike,

Not sure also I understand the problem ... but I try to explain with better words ...

1 be sure you have installed the APKG 1.1-0.9.3 for ADM 2.5 and 2-0.9.3 for ADM 2.6 (or update APKG after updating ADM to 2.6
2 Xvnc_Server IS NOT ENABLE by default ... because lot of people want to use it only sometimes (this can be changed, by you, later to start it at NAS boot)

Actions after install :
You can start it with 2 methods : (start = permanent server ... so even client are disconnected ... the server stay UP)
1 Disable then Enable the APKG in App. Central ... yes I have to change this (when I have some tfree time) but when I write it I don't understand some things in Asustor APKG management (exit value to keep APKG Disable)
OR
2 enter in a ssh console with root / your_password ... so you can use WinSCP if you are familiar (I don't use it) or Putty or any ssh client on your system MacOS, Windows, Linux, etc.
start Xvnc_Server using the command
vnc_mngt start
... you can verify that all is OK using
vnc_mngt status (including the typo error in response coomnd in place of command)

Code: Select all

root@AS5002TaPhil:/volume1/.@root # vnc_mngt status
x11vnc don't run
root@AS5002TaPhil:/volume1/.@root # vnc_mngt start
PORT=5900
root@AS5002TaPhil:/volume1/.@root # vnc_mngt status
x11vnc is running
Coomnd use is (2 lines is normal) :
 2915 root       0:00 /usr/local/AppCentral/x11vnc/bin/x11vnc -loop -many -rfbport 5900 -o /var/log/x11vnc.log
 2926 root       0:00 /usr/local/AppCentral/x11vnc/bin/x11vnc -loop -many -rfbport 5900 -o /var/log/x11vnc.log
root@AS5002TaPhil:/volume1/.@root #
AT this time ... you can use ANY VncClient (except Java version) generally called vncviewer
... for ex. on Windows I use ultravnc http://www.uvnc.com/
For the client it's simple
ip_of_nas_or_name::5900 (::5900 if listen port is default 5900) OR ip_of_nas_or_name:00 (:00 is the display to join BUT less sure) or ip_of_nas_or_name alone 5900 is the default value

TOTALLY OPTIONAL :
I have made some choice in the configuration ... (BUT through vnc_mngt you can change if you want ... then stop and restart APKG)
list my choice DEFAULT values :

Code: Select all

root@AS5002TaPhil:/volume1/.@root # vnc_mngt conf
Parameters of configuration file are :
[param]
many = TRUE
password = FALSE
atboot = FALSE
port = 5900
xrandr = FALSE
root@AS5002TaPhil:/volume1/.@root #
... many : (TRUE|FALSE) is to accept to share with multiple client (ex. to explain somethings to a person in another place ... etc.) ... change it need a restart of APKG to be active
... atboot : (TRUE|FALSE) it's to choice to start Xvnc_Server at BOOT of the NAS ... so no need to manually start it later (don't need a restart of APKG if you change value)
... port : (5900) port value to listen ... default 5900 ... change it need a restart of APKG to be active
... xrandr : (TRUE|FALSE) ... to be used ONLY if you lost connection due to resize, rotate, reflexion occurs in Xorg size ... VERY specific case for client not able to manage it ... change it need a restart of APKG to be active
... password : (TRUE|FALSE) ... support of password security NEED to have set the password before using vnc_mngt ... change it need a restart of APKG to be active

To change this configuration ... open a console and use vnc_mngt (self documented (I hope))

IF you have problems ... ALWAYS start by requesting a status : vnc_mngt status and post result ...

Hope this is more understandable ...
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1815
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [APKG Xvnc_Server] gain full control of asportal from PC, tablet, SmartPhone

Post by father.mande »

Hi,
nick_woodforth wrote:thanks for this app it works great!!
im having problems with setting a password though
i set the password using
vnc_mngt set_password Test+
stored passwd in file: /root/.vnc_passwd
vnc_mngt enable_passwd
vnc_mngt start
when i start vnc viewer it asks for password but Test+ does not work password check failed!
with password disable it works like a charm :D
YES I have now (just the update to official ADM 2.6) the problem ...
I have to check ... perhaps because I use the "~" to select the HOME ... I will test a workaround and come back ...

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “Xnc-Server”