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
3516bdf3
Commit
3516bdf3
authored
Nov 01, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util/launch.sh: add --web option and try /usr/share/novnc
parent
51562999
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
launch.sh
utils/launch.sh
+11
-1
No files found.
utils/launch.sh
View file @
3516bdf3
...
@@ -16,6 +16,8 @@ usage() {
...
@@ -16,6 +16,8 @@ usage() {
echo
" Default: localhost:5900"
echo
" Default: localhost:5900"
echo
" --cert CERT Path to combined cert/key file"
echo
" --cert CERT Path to combined cert/key file"
echo
" Default: self.pem"
echo
" Default: self.pem"
echo
" --web WEB Path to web files (e.g. vnc.html)"
echo
" Default: ./"
exit
2
exit
2
}
}
...
@@ -24,6 +26,7 @@ HERE="$(cd "$(dirname "$0")" && pwd)"
...
@@ -24,6 +26,7 @@ HERE="$(cd "$(dirname "$0")" && pwd)"
PORT
=
"6080"
PORT
=
"6080"
VNC_DEST
=
"localhost:5900"
VNC_DEST
=
"localhost:5900"
CERT
=
""
CERT
=
""
WEB
=
""
proxy_pid
=
""
proxy_pid
=
""
die
()
{
die
()
{
...
@@ -50,6 +53,7 @@ while [ "$*" ]; do
...
@@ -50,6 +53,7 @@ while [ "$*" ]; do
--listen
)
PORT
=
"
${
OPTARG
}
"
;
shift
;;
--listen
)
PORT
=
"
${
OPTARG
}
"
;
shift
;;
--vnc
)
VNC_DEST
=
"
${
OPTARG
}
"
;
shift
;;
--vnc
)
VNC_DEST
=
"
${
OPTARG
}
"
;
shift
;;
--cert
)
CERT
=
"
${
OPTARG
}
"
;
shift
;;
--cert
)
CERT
=
"
${
OPTARG
}
"
;
shift
;;
--web
)
WEB
=
"
${
OPTARG
}
"
;
shift
;;
-h
|
--help
)
usage
;;
-h
|
--help
)
usage
;;
-
*
)
usage
"Unknown chrooter option:
${
param
}
"
;;
-
*
)
usage
"Unknown chrooter option:
${
param
}
"
;;
*
)
break
;;
*
)
break
;;
...
@@ -66,12 +70,18 @@ netstat -ltn | grep -qs "${PORT} .*LISTEN" \
...
@@ -66,12 +70,18 @@ netstat -ltn | grep -qs "${PORT} .*LISTEN" \
trap
"cleanup"
TERM QUIT INT EXIT
trap
"cleanup"
TERM QUIT INT EXIT
# Find vnc.html
# Find vnc.html
if
[
-e
"
$(
pwd
)
/vnc.html"
]
;
then
if
[
-n
"
${
WEB
}
"
]
;
then
if
[
!
-e
"
${
WEB
}
/vnc.html"
]
;
then
die
"Could not find
${
WEB
}
/vnc.html"
fi
elif
[
-e
"
$(
pwd
)
/vnc.html"
]
;
then
WEB
=
$(
pwd
)
WEB
=
$(
pwd
)
elif
[
-e
"
${
HERE
}
/../vnc.html"
]
;
then
elif
[
-e
"
${
HERE
}
/../vnc.html"
]
;
then
WEB
=
${
HERE
}
/../
WEB
=
${
HERE
}
/../
elif
[
-e
"
${
HERE
}
/vnc.html"
]
;
then
elif
[
-e
"
${
HERE
}
/vnc.html"
]
;
then
WEB
=
${
HERE
}
WEB
=
${
HERE
}
elif
[
-e
"
${
HERE
}
/../share/novnc/vnc.html"
]
;
then
WEB
=
${
HERE
}
/../share/novnc/
else
else
die
"Could not find vnc.html"
die
"Could not find vnc.html"
fi
fi
...
...
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