Skip to content
This repository
tree: ee2fdcdf32
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 58 lines (45 sloc) 1.584 kb
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 51 52 53 54 55 56 57
#!/bin/bash -xe
# setup_node.sh
# sets up a laptop to run dvswitch and be a veyepar encoding node

set -ex

# install dvswitch scrips and stuff

# Ubuntu adds ~/bin to PATH if it exists, so make it and put scripts there
if [[ ! -d ~/bin ]]; then
mkdir ~/bin
fi
cp -v stuff/scripts/* ~/bin
chmod u+x ~/bin/*
cp -v stuff/Desktop/* ~/Desktop/
chmod +x ~/Desktop/*

# install dvs-mon so carl can use it to debug cranky systems
if [[ ! -d ~/dvsmon ]]; then
cp -a dvsmon ~/
  chmod u+x ~/dvsmon/dvs-mon.py
fi

sudo apt-add-repository ppa:carlfk/ppa
sudo apt-get update
sudo apt-get dist-upgrade

# sudo apt-get install squid-deb-proxy-client
sudo apt-get install dvswitch dvsource dvsink gamix audacity ffmpeg mplayer vlc python-wxgtk2.8 openssh-server

# ssh-keygen

# Sudoers no password
# sudo cp stuff/sudoers /etc/sudoers
# sudo chown root:root /etc/sudoers
# sudo chmod 440 /etc/sudoers

# debian locks down firewire, so add it to the video group and add user to video group
# sudo cp stuff/udev/91-permissions.rules /etc/udev/rules.d/
sudo adduser $USER video
sudo adduser $USER admin

# set boxes hostname to room name + _slave if remote box.
# ? promtps for it
sudo python stuff/upbox.py --hostname "?"

# create .dvswitchrc if it doesn't exist
# note, 0.0.0.0 is for the master box, slave needs to be set to IP of master
if [[ ! -f .dvswitchrc ]]; then
echo \# MIXER_HOST=10.0.0.111>~/.dvswitchrc
echo MIXER_HOST=0.0.0.0>>~/.dvswitchrc
echo MIXER_PORT=2000>>~/.dvswitchrc
fi
vi ~/.dvswitchrc

echo If this is a master box, copy ssh keys to slave
echo ssh-copy-id 10.0.0.111
Something went wrong with that request. Please try again.