Skip to content

Commit 049d358

Browse files
author
Adrian Biedrzycki
committed
Add ubuntu install script
1 parent 1ee8c93 commit 049d358

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

scripts/lib/ubuntu/install.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!bin/bash
2+
3+
apt-get update
4+
apt-get install -y \
5+
build-essential python \
6+
libx11-xcb-dev libxcomposite-dev libxcursor-dev libxdamage1 libxi6 libxtst6 libnss3 libcups2 libfontconfig1 libxss1 libxrandr2 libgconf-2-4 libasound2 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0
7+
8+
curl https://nodejs.org/dist/v8.9.3/node-v8.9.3-linux-x64.tar.gz | tar -C /usr/local --strip-components 1 -xzf -
9+
chmod 755 -R /usr/local
10+
echo adduser
11+
adduser --disabled-password --gecos '' ubuntu
12+
echo done adduser
13+
rm -Rf /home/ubuntu/zeo
14+
sudo -u ubuntu HOME=/home/ubuntu git clone --depth 1 https://github.com/modulesio/zeo.git /home/ubuntu/zeo
15+
sudo -u bash -c 'cd /home/ubuntu/zeo && HOME=/home/ubuntu npm install'
16+
# sudo -u ubuntu bash -c '/home/ubuntu/zeo && node index.js server noTty offline &'

0 commit comments

Comments
 (0)