File tree 6 files changed +29
-53
lines changed
6 files changed +29
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,11 +8,23 @@ Running X11 in a Cloud9 workspace.
8
8
Installation
9
9
------------
10
10
11
+ Run the install script with privileges
12
+
11
13
sudo ./install.sh
12
14
13
15
Running
14
16
-------
15
17
16
- ./run.sh
18
+ Use the custom C9 runner
19
+
20
+ Run > Run With > C9vnc
21
+
22
+ Or run the script directly from the /opt/ directory
23
+
24
+ /opt/c9vnc/c9vnc.sh
25
+
26
+ You can also export an alias to this script and run with the alias
27
+
28
+ alias c9vnc=/opt/c9vnc/c9vnc.sh
17
29
18
- or use the ` X11 ` runner.
30
+ c9vnc
Original file line number Diff line number Diff line change 1
1
{
2
- "cmd": [ "c9vnc" ],
3
- "script": [
4
- "bash /opt/c9vnc/run.sh"
5
- ],
2
+ "cmd": [ "/opt/c9vnc/c9vnc.sh" ],
6
3
"working_dir": "$project_path",
7
4
"info": "Your GUI is running at \\033[01;34m$url/vnc.html\\033[00m.\n\\033[01;31m"
8
5
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ # Request sudo permissions
3
4
if [[ $UID != 0 ]]; then
4
5
echo " Please run this script with sudo:"
5
6
echo " sudo $0 $* "
6
7
exit 1
7
8
fi
8
9
9
-
10
+ # Get prerequisites
10
11
sudo apt-get install supervisor xvfb fluxbox x11vnc
11
12
13
+ # Copy supervisord configuration to proper configuration directory
12
14
cp supervisord.conf ${HOME} /.config/supervisord.conf
13
15
16
+ # Create the proper directory for the script
14
17
sudo mkdir /opt/c9vnc
18
+
19
+ # Make sure that the runners folder exists
15
20
mkdir ${HOME} /workspace/.c9/runners
16
21
22
+ # Copy the C9 runner to the C9 watch folder
17
23
cp c9vnc.run ${HOME} /workspace/.c9/runners/c9vnc.run
18
- cp run.sh /opt/c9vnc/run.sh
19
24
20
- git clone git://github.com/kanaka/noVNC /opt/noVNC/
25
+ # Copy the run script to proper /opt/ directory
26
+ cp run.sh /opt/c9vnc/run.sh
21
27
28
+ # Clone noVNC into proper /opt/ directory
29
+ git clone git://github.com/kanaka/noVNC /opt/noVNC/
Original file line number Diff line number Diff line change 2
2
3
3
echo VNC client running at https://$C9_HOSTNAME /vnc.html
4
4
5
- supervisord -c ${HOME} /.config/supervisord.conf
5
+ supervisord -c ${HOME} /.config/supervisord.conf
Original file line number Diff line number Diff line change 1
1
[supervisord]
2
2
nodaemon=true
3
+ pidfile=/tmp/supervisord.pid
4
+ logfile=/tmp/supervisord.log
3
5
4
6
[program:xvfb]
5
7
command=/usr/bin/Xvfb :99 -screen 0 1280x864x16 -ac -pn -noreset
You can’t perform that action at this time.
0 commit comments