diff options
| author | David Walter Seikel | 2011-12-12 19:24:18 +1000 |
|---|---|---|
| committer | David Walter Seikel | 2011-12-12 19:24:18 +1000 |
| commit | 85ae70d895f784632e4a6041024034dbe692dac8 (patch) | |
| tree | c61a01ca61cfebd8d000e724046d46ae71902319 /install_opensim.sh | |
| parent | Use 0.0.0.0 as the default internal region IP, but stick with the externally ... (diff) | |
| download | IGnoble-85ae70d895f784632e4a6041024034dbe692dac8.zip IGnoble-85ae70d895f784632e4a6041024034dbe692dac8.tar.gz IGnoble-85ae70d895f784632e4a6041024034dbe692dac8.tar.bz2 IGnoble-85ae70d895f784632e4a6041024034dbe692dac8.tar.xz | |
Convert to using tmux, though the old screen stuff is still there.
Diffstat (limited to 'install_opensim.sh')
| -rwxr-xr-x | install_opensim.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/install_opensim.sh b/install_opensim.sh index 2ef71c2..1967e36 100755 --- a/install_opensim.sh +++ b/install_opensim.sh | |||
| @@ -13,7 +13,7 @@ OSPATH="/opt/opensim" | |||
| 13 | USER=$(whoami) | 13 | USER=$(whoami) |
| 14 | VERSION_CONTROL="off" | 14 | VERSION_CONTROL="off" |
| 15 | 15 | ||
| 16 | sudo apt-get install mysql-server screen mono-complete monit mc | 16 | sudo apt-get install mysql-server tmux screen mono-complete monit mc |
| 17 | sudo /etc/init.d/mysql restart | 17 | sudo /etc/init.d/mysql restart |
| 18 | 18 | ||
| 19 | echo "Setting up mySQL" | 19 | echo "Setting up mySQL" |
| @@ -34,12 +34,15 @@ sudo chown $USER /home/opensim/.screenrc | |||
| 34 | echo -e "acladd root,$USER\n" >> /home/opensim/.screenrc | 34 | echo -e "acladd root,$USER\n" >> /home/opensim/.screenrc |
| 35 | sudo chown opensim:opensim /home/opensim/.screenrc | 35 | sudo chown opensim:opensim /home/opensim/.screenrc |
| 36 | sudo chmod 644 /home/opensim/.screenrc | 36 | sudo chmod 644 /home/opensim/.screenrc |
| 37 | sudo cp opensim.tmux.conf /home/opensim/.tmux.conf | ||
| 38 | sudo chown $USER /home/opensim/.tmux.conf | ||
| 39 | sudo chmod 644 /home/opensim/.tmux.conf | ||
| 37 | sudo mkdir -p /var/log/opensim | 40 | sudo mkdir -p /var/log/opensim |
| 38 | sudo chown opensim:opensim /var/log/opensim | 41 | sudo chown opensim:opensim /var/log/opensim |
| 39 | sudo chmod 757 /var/log/opensim | 42 | sudo chmod 757 /var/log/opensim |
| 40 | sudo mkdir -p /var/run/opensim | 43 | sudo mkdir -p /var/run/opensim |
| 41 | sudo chown opensim:opensim /var/run/opensim | 44 | sudo chown opensim:opensim /var/run/opensim |
| 42 | sudo chmod 757 /var/run/opensim | 45 | sudo chmod 42770 /var/run/opensim |
| 43 | sudo mkdir -p $OSPATH/backups $OSPATH/caches/assetcache $OSPATH/config $OSPATH/setup | 46 | sudo mkdir -p $OSPATH/backups $OSPATH/caches/assetcache $OSPATH/config $OSPATH/setup |
| 44 | sudo chown opensim:opensim $OSPATH | 47 | sudo chown opensim:opensim $OSPATH |
| 45 | sudo chown -R opensim:opensim $OSPATH | 48 | sudo chown -R opensim:opensim $OSPATH |
| @@ -111,7 +114,7 @@ sed -i 's@CacheDirectory = ./assetcache@CacheDirectory = caches/assetcache@' Flo | |||
| 111 | cd ../../.. | 114 | cd ../../.. |
| 112 | 115 | ||
| 113 | # Setting screen to be suid. EWWWWWW!!! Security hole!! | 116 | # Setting screen to be suid. EWWWWWW!!! Security hole!! |
| 114 | #ImReallyParanoid="true" | 117 | ImReallyParanoid="true" |
| 115 | if [ "x$ImReallyParanoid" = "x" ] | 118 | if [ "x$ImReallyParanoid" = "x" ] |
| 116 | then | 119 | then |
| 117 | sudo chmod u+s /usr/bin/screen | 120 | sudo chmod u+s /usr/bin/screen |
