User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

HTML 5 clientless browser based remote desktop for pi

Thu Feb 11, 2016 3:21 pm

I am going to have a go at doing this but wanted to pop the idea up here as well.

I have had some success using this system http://guac-dev.org/ on cloud based virtual installations of Ubuntu. If you havent come across it before, it allows a VNC like connection to a remote computer but the 'client' needs have no special software other than a html5 compliant web browser.

I would like to try installing this guac system on a pi zero with ethernet gadget mode. That would allow you to put http://169.254.64.64 into a web browser on the 'client' computer and be presented with a remote desktop to the pi zero inside the web browser.

I think this would have merit because nothing special needs to be done to to other computers such as installing VNC, in theory just plug and play. Especially useful in locked down educational establishments.

This normally works by using apache tomcat. I'm not sure how well this would work out with a raspberry pi, (it's the method I will try first however , just because ... I know how to do it)

I wonder if there might be a better-for-a-pi java servlet system out there though, perhaps nginx / jetty?
Last edited by morphy_richards on Wed Feb 17, 2016 8:08 am, edited 1 time in total.

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Fri Feb 12, 2016 5:05 pm

Hmm .. fallen at the first hurdle

Code: Select all

pi@raspberrypi:~ $ sudo apt-get update
Err http://archive.raspberrypi.org jessie InRelease
  
Err http://mirrordirector.raspbian.org jessie InRelease
  
Err http://archive.raspberrypi.org jessie Release.gpg
  Could not resolve 'archive.raspberrypi.org'
Err http://mirrordirector.raspbian.org jessie Release.gpg
  Could not resolve 'mirrordirector.raspbian.org'
Reading package lists... Done
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease  

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease  

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/Release.gpg  Could not resolve 'archive.raspberrypi.org'

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg  Could not resolve 'mirrordirector.raspbian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~ $ ping 8.8.8.8
connect: Network is unreachable
How do I pass the internet connection from my host computer to my pi zero? (I'm using mikerr's image)

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Fri Feb 12, 2016 5:09 pm

Great initiative if you can get it working :)

rotwang
Posts: 243
Joined: Sat Dec 07, 2013 1:12 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Fri Feb 12, 2016 5:21 pm

morphy_richards wrote:Hmm .. fallen at the first hurdle

Code: Select all

pi@raspberrypi:~ $ sudo apt-get update
Err http://archive.raspberrypi.org jessie InRelease
  
Err http://mirrordirector.raspbian.org jessie InRelease
  
Err http://archive.raspberrypi.org jessie Release.gpg
  Could not resolve 'archive.raspberrypi.org'
Err http://mirrordirector.raspbian.org jessie Release.gpg
  Could not resolve 'mirrordirector.raspbian.org'
Reading package lists... Done
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease  

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease  

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/Release.gpg  Could not resolve 'archive.raspberrypi.org'

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/Release.gpg  Could not resolve 'mirrordirector.raspbian.org'

W: Some index files failed to download. They have been ignored, or old ones used instead.
pi@raspberrypi:~ $ ping 8.8.8.8
connect: Network is unreachable
How do I pass the internet connection from my host computer to my pi zero? (I'm using mikerr's image)
Can you ping the pi from the host and vice versa? If you can do that, then you need to ip-forward the connection from the pi to the host's internet connection. I have this working on a stock jessie install, rpi-updated to the experimental 4.4.1 kernel and it's working fine. Writing it up is not going quite so well, not helped by having two terminal windows on the host, one of which was logged onto the pi, and then doing poweroff in the wrong window.
Rest assured it's perfectly possible, the documentation just takes a little longer (Now where have I heard that before, I wonder)
Roger

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Fri Feb 12, 2016 5:46 pm

No .. funnily enough
I've plugged my pizero into the raspberry pi that controls my aquarium out of convenience....

Code: Select all

pi@aquariumpi ~ $ ping 169.254.64.64
PING 169.254.64.64 (169.254.64.64) 56(84) bytes of data.
64 bytes from 169.254.64.64: icmp_req=1 ttl=64 time=0.615 ms
64 bytes from 169.254.64.64: icmp_req=2 ttl=64 time=0.493 ms
^C
--- 169.254.64.64 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.493/0.554/0.615/0.061 ms

That much works

Code: Select all

pi@aquariumpi ~ $ ssh pi@169.254.64.64
pi@169.254.64.64's password: 

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Dec 30 00:20:28 2015 from aquariumpi.local
pi@raspberrypi:~ $ ping 192.168.0.14
connect: Network is unreachable
pi@raspberrypi:~ $ 
But I cannot go back in the other direction :?

skspurling
Posts: 196
Joined: Fri Jul 27, 2012 1:44 pm
Location: US. Right in the middle...

Re: HTML 5 clientless browser based remote desktop for pi ze

Sun Feb 14, 2016 2:07 am

morphy_richards wrote:No ..
But I cannot go back in the other direction :?
So, do a ifconfig and verify the ip address you are connecting from? Sounds simplistic, but I know I've been bitten more times by assuming I knew something and not double checking it. Clearly you have 2 way communications, otherwise SSH would not work.

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 11:07 am

Success, (kind of)
To quickly summarise - I want to be able to display the desktop of a pi zero in ethernet gadget mode in the web browser of the host computer. No need to install VNC. It can be done!
Image

However, I cant get my pi zero to work properly. This has actually been done on a pi B +, but I think it shows that you can further increase the versatility of a pi zero because now you can access the desktop without special cables and there is no need to install anything special like VNC on the host computer. Just an ordinary, modern web browser is needed.

Here is a quick writeup of what I did.
(following the set of steps described in chapter 2 and chapter 5 of the Guacamole manual.)

Install the first set of dependencies

Code: Select all

sudo apt-get install libcairo2-dev libjpeg62-turbo-dev libpng12-dev libossp-uuid-dev
Install the second set of dependencies

Code: Select all

sudo apt-get install libfreerdp-dev libpango1.0-dev libssh2-1-dev libvncserver-dev libpulse-dev libssl-dev libvorbis-dev libwebp-dev
Download the Guacamole source code, uncompress it and then change into the new directory.

Code: Select all

wget http://downloads.sourceforge.net/project/guacamole/current/source/guacamole-server-0.9.9.tar.gz
tar -zxvf guacamole-server-0.9.9.tar.gz
cd guacamole-server-0.9.9
Now we will compile Guacamole and set it up so that it starts when the pi starts.

Code: Select all

sudo ./configure -with-init-dir=/etc/init.d
sudo make
sudo make install
When finished, change out of the guacamole directory, back to home directory, download and uncompress the guacamole client source code.

Code: Select all

cd
wget http://sourceforge.net/projects/guacamole/files/current/source/guacamole-client-0.9.9.tar.gz
tar -zxvf guacamole-client-0.9.9.tar.gz
cd guacamole-client-0.9.9
Install some extra tools needed to compile the client

Code: Select all

 sudo apt-get install maven
Install Apache Tomcat . This makes your pi zero into a powerful dynamic java servlet web server and allows it to broadcast desktops visually with HTML5 over the network into client web browsers.

Code: Select all

sudo apt-get install tomcat7 tomcat7-admin tomcat7-docs
Compile the Guacamole client.

Code: Select all

mvn package
Now we will copy the compiled .war file to the Tomcat directory.

Code: Select all

sudo cp guacamole/target/guacamole-0.9.9.war /var/lib/tomcat7/webapps/guacamole.war
Create a location for Guacamole configuration files.

Code: Select all

 sudo mkdir /etc/guacamole
edit /etc/guacamole/guacamole.properties

Code: Select all

# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port: 4822
Now create a connection config file.
edit /etc/guacamole/user-mapping.xml

Code: Select all

 <user-mapping>

<!-- Per-user authentication and config information -->
<authorize username="username" password="password">
<protocol>rdp</protocol>
<param name="hostname">localhost</param>
<param name="port">3389</param>
</authorize>
</user-mapping>
Create a directory in tomcat7 for the connection file to go into.

Code: Select all

 sudo mkdir /usr/share/tomcat7/.guacamole
Link this to the files you just created.

Code: Select all

sudo ln -s /etc/guacamole/guacamole.properties /usr/share/tomcat7/.guacamole
sudo ln -s /etc/guacamole/user-mapping.xml /usr/share/tomcat7/.guacamole
Install RDP client to allow remote desktop broadcasting.

Code: Select all

sudo apt-get install rdesktop  freerdp-x11 xrdp
Restart guacamole and tomcat

Code: Select all

sudo service guacd restart
sudo service tomcat7 restart
Connect to your pi's remote desktop

http://your_zero_ip_address:8080/guacamole
Last edited by morphy_richards on Wed Feb 17, 2016 7:48 am, edited 3 times in total.

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 11:14 am

skspurling wrote:
morphy_richards wrote:No ..
But I cannot go back in the other direction :?
So, do a ifconfig and verify the ip address you are connecting from? Sounds simplistic, but I know I've been bitten more times by assuming I knew something and not double checking it. Clearly you have 2 way communications, otherwise SSH would not work.
Great!
I'll give this a try this evening

AndyPi
Posts: 83
Joined: Wed Feb 22, 2012 10:24 pm
Location: Gloucestershire,UK

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 11:59 am

Hi
I did the adafruit tutorial on gadget mode. When it comes to internet sharing they do it on a macOS. To manage it on Ubuntu as host I did the following (BTW I don't really understand what I'm doing but it seems to work.

Need to use ip forwarding which is controlled via a sysctl value. To view

Code: Select all

sysctl net.ipv4.ip_forward
As with any sysctl kernel parameters we can change the value of net.ipv4.ip_forward on the fly (without rebooting the system):

Code: Select all

sysctl -w net.ipv4.ip_forward=1
If we want to make this configuration permanent the best way to do it is using the file /etc/sysctl.conf where we can add a line containing

Code: Select all

net.ipv4.ip_forward = 1
if you already have an entry net.ipv4.ip_forward with the value 0 you can change that 1.
To enable the changes made in sysctl.conf you will need to run the command:

Code: Select all

sysctl -p /etc/sysctl.conf
Fot the next bit need to be root so...

Code: Select all

sudo su

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface usb0 -j ACCEPT
Do not forget to save these IPTables rules. Unless they are saved, they will be lost after next system reboot as they are stored in volatile memory.

Code: Select all

iptables-save > /etc/iptables.rules
Above command will activate previously saved IPTables rules when system reboots making the changes permanent.

In the adafruit example the zero is set with address 192.168.7.2, I think I had to add

Code: Select all

dns-nameservers 8.8.8.8 8.8.4.4
to the interfaces file

This may be of some help

regards

User avatar
gunkan
Posts: 30
Joined: Thu Dec 17, 2015 7:17 am

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 12:46 pm

Amazing :shock: I am quite busy with work now, but i will give it a try as soon as possible.

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 2:39 pm

You will see two login screens.
The first lets guacamole pass through to your desktop login. There is a way to disable it using a 'noauth' module which I will configure and writeup later.
Then there is the standard login, this can be disabled by supplying credentials for RDP in usermapping.xml

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Mon Feb 15, 2016 10:53 pm

All seems to have gone well
suggestion change the edit ... files
to
sudo nano ........

so they get created as they are the only lines that can#t be simply copy and pasted :)

Now I'm at the login screen
Tried
pi
raspberry

tried my windows login and password

neither seems to work :(

This is on 2B BTW

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 6:25 am

What is in your /etc/guacamole/user-mapping.xml?
Also, /var/log/tomcat7/catalina.out?

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 6:44 am

Forgot to mention, you may need to manually start guac daemon.
Sudo service guacd start

Then sudo service tomcat7 restart

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 7:27 am

:)
re /etc/guacamole/user-mapping.xml

I didn't notice that I needed username/password as my username/password

Do you have yours set to standard pi/raspberry ?

Anyway - got thru 1st login but then get

Code: Select all

An internal error has occurred within the Guacamole server, and the connection has been terminated. If the problem persists, please notify your system administrator, or check your system logs.


mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 7:34 am

Code: Select all

INFO: Deployment of web application archive /var/lib/tomcat7/webapps/guacamole.war has finished in 33,786 ms
Feb 16, 2016 7:30:45 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Feb 16, 2016 7:30:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /var/lib/tomcat7/webapps/ROOT has finished in 4,049 ms
Feb 16, 2016 7:30:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Feb 16, 2016 7:30:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 41888 ms
07:31:36.545 [http-bio-8080-exec-1] INFO  o.g.g.n.b.r.a.AuthenticationService - User "username" successfully authenticated from 192.168.0.16.
07:31:39.671 [http-bio-8080-exec-9] ERROR o.g.g.n.b.w.t.GuacamoleWebSocketTunnelServlet - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused
07:31:57.944 [http-bio-8080-exec-1] ERROR o.g.g.n.b.w.t.GuacamoleWebSocketTunnelServlet - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused
07:32:15.932 [http-bio-8080-exec-5] ERROR o.g.g.n.b.w.t.GuacamoleWebSocketTunnelServlet - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused
07:32:33.965 [http-bio-8080-exec-7] ERROR o.g.g.n.b.w.t.GuacamoleWebSocketTunnelServlet - Creation of WebSocket tunnel to guacd failed: java.net.ConnectException: Connection refused

Code: Select all

<user-mapping>

<!-- Per-user authentication and config information -->
<authorize username="username" password="password">
<protocol>rdp</protocol>
<param name="hostname">localhost</param>
<param name="port">3389</param>
</authorize>
</user-mapping>

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 7:41 am

That's a new one . ..
Have a look in /var/log/syslog

I have a vague suspicion guacd isnt started as well.
See if it shows up with
sudo service --status-all

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 9:26 am

Code: Select all

Feb 16 09:24:08 raspberrypi systemd[1]: Stopping LSB: Guacamole proxy daemon...
Feb 16 09:24:08 raspberrypi guacd[3071]: Stopping guacd: SUCCESS
Feb 16 09:24:08 raspberrypi systemd[1]: Starting LSB: Guacamole proxy daemon...
Feb 16 09:24:08 raspberrypi guacd[3078]: Guacamole proxy daemon (guacd) version 0.9.9 started
Feb 16 09:24:08 raspberrypi guacd[3076]: Starting guacd: guacd[3078]: INFO:#011Guacamole proxy daemon (guacd) version 0.9.9 started
Feb 16 09:24:08 raspberrypi guacd[3076]: SUCCESS
Feb 16 09:24:08 raspberrypi guacd[3080]: Listening on host 127.0.0.1, port 4822
Feb 16 09:24:08 raspberrypi systemd[1]: Started LSB: Guacamole proxy daemon.
Feb 16 09:24:16 raspberrypi systemd[1]: Stopping LSB: Start Tomcat....
Feb 16 09:24:17 raspberrypi tomcat7[3098]: Stopping Tomcat servlet engine: tomcat7.
Feb 16 09:24:17 raspberrypi systemd[1]: Starting LSB: Start Tomcat....
Feb 16 09:24:22 raspberrypi tomcat7[3113]: Starting Tomcat servlet engine: tomcat7.
Feb 16 09:24:22 raspberrypi systemd[1]: Started LSB: Start Tomcat..

Code: Select all

[ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  dbus
 [ + ]  dhcpcd
 [ + ]  dphys-swapfile
 [ + ]  fake-hwclock
 [ + ]  guacd
 [ + ]  hdparm
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ + ]  kbd

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 3:42 pm

Did you make symbolic links from
/etc/guacamole/guacamole.properties
and
/etc/guacamole/user-mapping.xml

to /usr/share/tomcat7/.guacamole ?

Does anything different show up in catalina.out after you do a sudo service tomcat7 restart?

Here's my user-mapping.xml again, directly out of emacs on my pi

Code: Select all

 <user-mapping>

 <!-- Per-user authentication and config information -->
 <authorize username="pi" password="raspberry">
 <protocol>rdp</protocol>
 <param name="hostname">localhost</param>
 <param name="port">3389</param>
 </authorize>
 </user-mapping>
and guacamole.properties

Code: Select all

# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port: 4822

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 3:48 pm

mattmiller wrote:

Code: Select all

[ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  dbus
 [ + ]  dhcpcd
 [ + ]  dphys-swapfile
 [ + ]  fake-hwclock
 [ + ]  guacd
 [ + ]  hdparm
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ + ]  kbd
You also seem short of a few services, eg. rdp. (Remote Desktop) and tomcat. Did you do sudo apt-get install rdesktop freerdp-x11 xrdp ?
I am running

Code: Select all

pi@raspberrypi:~ $ sudo service --status-all
 [ - ]  alsa-utils
 [ + ]  avahi-daemon
 [ - ]  bootlogs
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
 [ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  dbus
 [ + ]  dhcpcd
 [ + ]  dphys-swapfile
 [ + ]  fake-hwclock
 [ + ]  guacd
 [ + ]  hdparm
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ + ]  kbd
 [ + ]  keyboard-setup
 [ - ]  killprocs
 [ + ]  kmod
 [ + ]  lightdm
 [ - ]  motd
 [ - ]  mountall-bootclean.sh
 [ - ]  mountall.sh
 [ - ]  mountdevsubfs.sh
 [ - ]  mountkernfs.sh
 [ - ]  mountnfs-bootclean.sh
 [ - ]  mountnfs.sh
 [ + ]  networking
 [ - ]  nfs-common
 [ + ]  ntp
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ + ]  raspi-config
 [ + ]  rc.local
 [ - ]  rmnologin
 [ - ]  rpcbind
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  sendsigs
 [ + ]  ssh
 [ - ]  sudo
 [ + ]  tomcat7
 [ + ]  triggerhappy
 [ + ]  udev
 [ + ]  udev-finish
 [ - ]  umountfs
 [ - ]  umountnfs.sh
 [ - ]  umountroot
 [ + ]  urandom
 [ - ]  x11-common
 [ + ]  xrdp
 

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 5:13 pm

I was jsut showing you that I was running quacd :)
here is full list

Code: Select all

[ - ]  alsa-utils
 [ + ]  avahi-daemon
 [ - ]  bootlogs
 [ - ]  bootmisc.sh
 [ - ]  checkfs.sh
 [ - ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ + ]  console-setup
 [ + ]  cron
 [ + ]  dbus
 [ + ]  dhcpcd
 [ + ]  dphys-swapfile
 [ + ]  fake-hwclock
 [ + ]  guacd
 [ + ]  hdparm
 [ - ]  hostname.sh
 [ - ]  hwclock.sh
 [ + ]  kbd
 [ + ]  keyboard-setup
 [ - ]  killprocs
 [ + ]  kmod
 [ + ]  lightdm
 [ - ]  motd
 [ + ]  motion
 [ - ]  mountall-bootclean.sh
 [ - ]  mountall.sh
 [ - ]  mountdevsubfs.sh
 [ - ]  mountkernfs.sh
 [ - ]  mountnfs-bootclean.sh
 [ - ]  mountnfs.sh
 [ + ]  networking
 [ - ]  nfs-common
 [ + ]  ntp
 [ - ]  plymouth
 [ - ]  plymouth-log
 [ + ]  procps
 [ + ]  raspi-config
 [ + ]  rc.local
 [ - ]  rmnologin
 [ - ]  rpcbind
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  sendsigs
 [ + ]  ssh
 [ - ]  sudo
 [ + ]  tomcat7
 [ + ]  triggerhappy
 [ + ]  udev
 [ + ]  udev-finish
 [ - ]  umountfs
 [ - ]  umountnfs.sh
 [ - ]  umountroot
 [ + ]  urandom
 [ - ]  x11-common
 [ + ]  xrdp

mattmiller
Posts: 2247
Joined: Thu Feb 05, 2015 11:25 pm

Re: HTML 5 clientless browser based remote desktop for pi ze

Tue Feb 16, 2016 6:46 pm

Found the mistook :)

Code: Select all

# Hostname and port of guacamole proxy
guacd-hostname: localhost
guacd-port: 4822
I'd missed off the last 2 in 4822 when copy/pasting :)

Now in and working :)
Excellent work :)

I decided to use the Asteroid Blaster prog in Scratch to test speed compared to X11VNC that I normally use and the rocks move visibly faster!

However, when I press space to fire - there is a big pause

Need t ocheck more
Matthew

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Wed Feb 17, 2016 6:50 am

In my walkthrough I install OpenJDK. This can / should be omitted as raspbian (as of 2013) comes with oracle Java and its better optimised for pi.

texy
Forum Moderator
Forum Moderator
Posts: 5172
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: HTML 5 clientless browser based remote desktop for pi ze

Wed Feb 17, 2016 7:21 am

morphy_richards wrote:In my walkthrough I install OpenJDK. This can / should be omitted as raspbian (as of 2013) comes with oracle Java and its better optimised for pi.
You could edit your walkthrough to remove it maybe?

Is this really for the zero only? If the walkthrough works for any pi model then perhaps we should rewrite/retitle posts.....

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

User avatar
morphy_richards
Posts: 1603
Joined: Mon Mar 05, 2012 3:26 pm
Location: Epping Forest
Contact: Website

Re: HTML 5 clientless browser based remote desktop for pi ze

Wed Feb 17, 2016 7:29 am

I will ...make a more definitive version.
Currently still fiddling, trying to get "noauth'" working to allow direct access to desktop without additional login steps.

Return to “General discussion”