more little changes

This commit is contained in:
Timothy Prepscius 2013-10-04 22:37:51 -04:00
parent 6b6e221b35
commit 0462a1e326
4 changed files with 22 additions and 19 deletions

View File

@ -5,35 +5,24 @@ This documents talks about installing mailiverse from an origin to a target.
------- Requirements on the origin build machine ---------
To install from and build mailiverse from the origin, the origin must
have "git", "ant", "rsync" and "oracle java" installed. (Other javas might work, but I have
not tested them.) Also, your hosts file must point to mail.target and target.
To install from and build mailiverse from the origin, the origin must:
I have always used Ubuntu 12.04 or 13 as my target machine.
The build works on Ubuntu 12.04 and also OSX (with dev tools).
To install git:
1. Have git installed
sudo apt-get install git --yes
To install zip:
2. Have unzip installed
sudo apt-get install unzip --yes
To install ant:
3. Have ant installed
sudo apt-get install ant --yes
Clone the mailiverse:
4. Clone the mailiverse:
git clone https://github.com/timprepscius/mailiverse.git
5. Have oracle java installed
cd mailiverse/install && sudo ./setup-java.remote
To install java:
cd mailiverse/install
sudo ./setup-java.remote
To make the hosts file point to the correct place:
6. Add lines to the hosts file for the target machine
sudo nano /etc/hosts
add the lines:
SOME-IP-ADDRESS mail.whateverthenameofyourdomainis

View File

@ -0,0 +1,8 @@
if [ -z "$1" ]; then echo "Must supply name"; exit 0; fi
set -x
M_ROOT=`cat requirements/server_root_account`
M_HOST=$1
scp enable-passwordless-sudo.remote $M_ROOT@$M_HOST:
ssh $M_ROOT@$M_HOST sudo ./enable-passwordless-sudo.remote $M_ROOT

View File

@ -0,0 +1,5 @@
echo "
$1 ALL=(ALL) NOPASSWD: ALL
" >> /etc/sudoers.d/$1
chmod 0440 /etc/sudoers.d/$1

View File

@ -51,6 +51,7 @@ read dummy1
pushd install
./enable-passwordless-login $target
./enable-passwordless-sudo $target
echo '
Hopefully that went well, if it didn-t well, press control-c now