Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
5aeb9880
Commit
5aeb9880
authored
Apr 07, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change to markdown README.md.
- Semi-colon missing.
parent
0dddd6e4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
22 deletions
+59
-22
README
README
+0
-21
README.md
README.md
+58
-0
vnc.js
vnc.js
+1
-1
No files found.
README
deleted
100644 → 0
View file @
0dddd6e4
VNC Web Client implemented using HTML5 (Web Sockets, Canvas)
In order to use the client you need to use the python proxy. There are
a couple reasons for this:
- Web Sockets is not a pure socket protocol. There is an initial HTTP
like handshake to allow easy hand-off by web servers and allow some
origin policy exchange. Also, each Web Sockets frame begins with
0 ('\x00') and ends with 255 ('\xff').
- Javascript itself does not have the ability to handle pure byte
strings (Unicode encoding messes with it) even though you can read
them with Web Sockets. The python proxy base64 encodes the data so
that the Javascript client can base64 decode the data into an array.
The python proxy is run like this:
./wsproxy.py <listen_port> <remote_host> <remote_port>
You then point the client at the listen_port on the host where the
wsproxy.py command is running.
README.md
0 → 100644
View file @
5aeb9880
VNC HTML5 Client
================
Description
-----------
An VNC client implemented using HTML5, specifically Canvas and Web Sockets.
Requirements
------------
*
A browser that supports Web Sockets (mostly Chrome as of Apr 6, 2010)
and Canvas (most browsers)
*
Until VNC server support web sockets, you need to use a Web Sockets to
normal socket proxy. There are a couple reasons for this:
*
Web Sockets is not a pure socket protocol. There is an initial HTTP
like handshake to allow easy hand-off by web servers and allow some
origin policy exchange. Also, each Web Sockets frame begins with
0 ('
\x
00') and ends with 255 ('
\x
ff').
*
Javascript itself does not have the ability to handle pure byte
strings (Unicode encoding messes with it) even though you can read
them with Web Sockets. The python proxy base64 encodes the data so
that the Javascript client can base64 decode the data into an array.
Usage
-----
*
run a VNC server.
`Xvnc :1`
*
run the python proxy:
`./wsproxy.py [listen_port] [vnc_host] [vnc_port]`
`./wsproxy.py 8787 localhost 5901`
*
run the mini python web server to serve the directory:
`./web.py PORT`
`./web.py 8080`
*
Point your web browser at http://localhost:8080/vnc.html
(or whatever port you used above to run the web server).
*
Provide the host and port where the proxy is running and the password
that the vnc server is using (if any).
vnc.js
View file @
5aeb9880
...
@@ -122,7 +122,7 @@ init_msg: function (data) {
...
@@ -122,7 +122,7 @@ init_msg: function (data) {
debug
(
"Challenge: "
+
challenge
+
"("
+
challenge
.
length
+
")"
);
debug
(
"Challenge: "
+
challenge
+
"("
+
challenge
.
length
+
")"
);
passwd
=
RFB
.
passwdTwiddle
(
RFB
.
password
);
passwd
=
RFB
.
passwdTwiddle
(
RFB
.
password
);
//debug("passwd: " + passwd + "(" + passwd.length + ")");
//debug("passwd: " + passwd + "(" + passwd.length + ")");
response
=
des
(
passwd
,
challenge
,
1
)
response
=
des
(
passwd
,
challenge
,
1
)
;
//debug("reponse: " + response + "(" + response.length + ")");
//debug("reponse: " + response + "(" + response.length + ")");
RFB
.
send_array
(
response
);
RFB
.
send_array
(
response
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment