Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: experimental/webtry/setup/webtry_setup.sh

Issue 228693002: Initial code for webtry, a web application for allowing users to try out Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Don't add webtry to everything.gyp Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Script to setup a GCE instance to run the webtry server.
4 # For full instructions see the README file.
5 sudo apt-get install schroot debootstrap monit
6 sudo apt-get install g++ libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev l ibglu1-mesa-dev mesa-common-dev freeglut3-dev libgif-dev libfontconfig libfontco nfig-dev
7
8 echo "Adding the webtry user account"
9 sudo adduser webtry
10
11 sudo cp continue_install /home/webtry/continue_install
12 sudo chmod 766 /home/webtry/continue_install
13 sudo chown webtry:webtry /home/webtry/continue_install
14 sudo su webtry -c /home/webtry/continue_install
15
16 sudo mkdir -p /srv/chroot/webtry
17 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_schroot /etc/schroot/ch root.d/webtry
18
19 sudo mkdir /srv/chroot/webtry/etc
20 sudo mkdir /srv/chroot/webtry/bin
21 sudo cp /bin/sh /srv/chroot/webtry/bin/sh
22
23 # Copy all the dependent libraries into the schroot.
24 sudo cp --parents `ldd /home/webtry/skia/out/Debug/webtry | cut -d " " -f 3` /sr v/chroot/webtry
25 sudo cp --parents `ldd /bin/sh | cut -d " " -f 3` /srv/chroot/webtry
26
27 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_init /etc/init.d/webtry
28 sudo cp /home/webtry/skia/experimental/webtry/sys/webtry_monit /etc/monit/conf.d /webtry
29 sudo chmod 744 /etc/init.d/webtry
30
31 # Confirm that monit is happy.
32 sudo monit -t
tfarina 2014/09/25 16:14:50 should we reload monit here as well to get the new
jcgregorio 2014/09/25 17:05:59 Yes, that would be great. On 2014/09/25 16:14:50,
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698