-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
50 lines (37 loc) · 1.47 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#########################################
## ENVIRONMENTAL CONFIG ##
#########################################
# Configure user nobody to match unRAID's settings
#usermod -u 99 nobody
#usermod -g 100 nobody
#usermod -d /home nobody
#chown -R nobody:users /home
# Disable SSH
rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
mkdir -p /var/run/dbus
#########################################
## REPOSITORIES AND DEPENDENCIES ##
#########################################
# Repositories
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse"
add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse"
apt-get update
apt-get install -qy git make gcc g++
curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -qy nodejs
apt-get install -qy avahi-daemon mc avahi-discover libnss-mdns libavahi-compat-libdnssd-dev
##################################################
# Install homebridge #
##################################################
npm install -g homebridge
npm upgrade -g homebridge
npm install -g dominicstelljes/homebridge-sonos
npm install -g homebridge-smartthings
npm install -g homebridge-lifx-lan
#########################################
## CLEANUP ##
#########################################
# Clean APT install files
apt-get clean -y
rm -rf /var/lib/apt/lists/* /var/cache/* /var/tmp/*