Teratora
Posts: 1
Joined: Thu Apr 20, 2017 8:49 am

Re: VNC remote desktop via web browser

Thu Apr 20, 2017 8:54 am

Hi,

I have an issue with the following command:
sudo wget https://dl.dropboxusercontent.com/u/141 ... Pi/vncboot --no-check-certificate

It seems that this page no longer exists (error 404). What can I do ?

Best regards

Roel1983
Posts: 1
Joined: Thu Apr 27, 2017 5:54 pm

Re: VNC remote desktop via web browser

Thu Apr 27, 2017 5:57 pm

Hello,

I encountered the same problem, the file vncroot cannot be found on location https://dl.dropboxusercontent.com/u/141 ... Pi/vncboot

Can you indicate where the file can be found?

Many thanks in advance

vanmanda
Posts: 1
Joined: Thu Oct 19, 2017 9:44 pm

Re: VNC remote desktop via web browser

Mon Oct 23, 2017 4:06 pm

Hi,

I too would like to get my hands on the vncboot and vncproxy script.
Could you please update the link to these files?

Thanks !

grundligt
Posts: 2
Joined: Sat May 19, 2018 6:05 pm

Re: VNC remote desktop via web browser

Sat May 19, 2018 7:54 pm

vanmanda wrote:
Mon Oct 23, 2017 4:06 pm
Hi,

I too would like to get my hands on the vncboot and vncproxy script.
Could you please update the link to these files?

Thanks !
Hi!

If you're using rasbian15 you can use systemd instead of initd.

Save this as /etc/systemd/system/[email protected]:

Code: Select all

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=pi
PAMName=login
PIDFile=/home/pi/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

And this as /etc/systemd/system/[email protected]

Code: Select all

[Unit]
Description=noVNC Service
After=x11vnc.service

[Service]
User=pi
PAMName=login
ExecStart=/usr/local/share/noVNC/utils/launch.sh --vnc localhost:590%i

[Install]
WantedBy=multi-user.target
Then run

Code: Select all

sudo systemctl daemon-reload
sudo systemctl start [email protected]
sudo systemctl start [email protected]
and the url is http://yourraspberrypi:6080/ and you're good to go!


However, if anyone like me rather was looking for a mirror of the current X display rather than a new one for the VNC, use x11vnc instead of tightvnc.

Code: Select all

sudo apt install x11vnc

Then save this as /etc/systemd/system/[email protected]

Code: Select all

[Unit]
Description=Remote desktop service (x11VNC)
Requires=display-manager.service
After=display-manager.service

[Service]
User=pi
GuessMainPID=true
PAMName=login
ExecStart=/usr/bin/x11vnc -forever -shared -display :%i
ExecStop=/usr/bin/x11vnc -R stop -display :%i

[Install]
WantedBy=multi-user.target
And add the [email protected] as well.

Code: Select all

sudo systemctl daemon-reload
sudo systemctl start [email protected]
sudo systemctl start [email protected]
NOTE: There is no need to create an index.html for novnc anymore.

PiDerman
Posts: 11
Joined: Tue Sep 04, 2018 9:02 pm

Re: VNC remote desktop via web browser

Thu Sep 27, 2018 6:17 pm

I have a mini pocket hotspot, which I use as a wifi for my Pi, smartphone and laptop, will the noVNC work with it?

User avatar
Davespice
Forum Moderator
Forum Moderator
Posts: 1662
Joined: Fri Oct 14, 2011 8:06 pm
Location: The Netherlands
Contact: Twitter

Re: VNC remote desktop via web browser

Mon Oct 15, 2018 1:21 pm

Dear all

How's about this for some necromancy?

I've just written a script to install this on Raspbian Stretch;
https://gist.github.com/davidhoness/b5c ... c655ce783e

This is designed for when you have a classroom full of laptops and Pis, and where each Pi is connected directly to a laptop via a single patch cable.
A DHCP service running on the Pi is used to give the laptop an address to talk back to it on.
Real VNC server runs on the Pi and NoVNC + Websockify converts this into a HTML5 stream that any browser can display.

Many thanks
Dave

Return to “Picademy”

Who is online

Users browsing this forum: No registered users and 2 guests