44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
|
SHELL := /bin/bash
|
||
|
|
||
|
null:
|
||
|
@echo You must specify client or server in a call to make.
|
||
|
|
||
|
client: user aether.bash
|
||
|
cp aether.bash /home/aether/aether.bash
|
||
|
chown aether /home/aether/aether.bash
|
||
|
chmod 0700 /home/aether/aether.bash
|
||
|
/home/aether/aether.bash
|
||
|
echo '0 1 * * * /home/aether/aether.bash &>> /var/log/aether.log' | su cford -c "crontab"
|
||
|
touch /var/log/aether.log
|
||
|
chown aether:aether /var/log/aether.log
|
||
|
|
||
|
server: user aether-gen.bash aether.pub server-backup
|
||
|
bash ./aether-gen.bash
|
||
|
cp ./aether.pub /home/aether/.ssh/authorized_keys
|
||
|
chmod 0600 /home/aether/.ssh/authorized_keys
|
||
|
chown aether /home/aether/.ssh/authorized_keys
|
||
|
mkdir /usr/local/etc/Aether
|
||
|
chown aether /usr/local/etc/Aether
|
||
|
chmod 0700 /usr/local/etc/Aether
|
||
|
touch /usr/local/etc/Aether/nodeslist
|
||
|
@echo You have the files. Add aether-gen.bash and server-backup to root's crontab.
|
||
|
@echo Track client nodes in /usr/local/etc/Aether/nodeslist
|
||
|
|
||
|
user: aether make-user.bash
|
||
|
/bin/bash ./make-user.bash
|
||
|
|
||
|
tar: aether.bash aether make-user.bash
|
||
|
tar cvf aether.tar aether.bash aether Makefile make-user.bash
|
||
|
gzip aether.tar
|
||
|
|
||
|
node-command:
|
||
|
@echo -ne 'bzr checkout bzr://aninix.net/Aether'
|
||
|
@echo
|
||
|
@echo -ne 'cd Aether; cat > aether # Paste the private key'
|
||
|
@echo
|
||
|
@echo -ne 'make client'
|
||
|
@echo
|
||
|
|
||
|
keys:
|
||
|
ssh-keygen -t rsa -P "" -f aether
|