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.

Return to “Picademy”

Who is online

Users browsing this forum: No registered users and 4 guests