Skip to content

Instantly share code, notes, and snippets.

@edk0
Last active April 14, 2019 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edk0/489b31f28f533f933ca6c172ab9b61e0 to your computer and use it in GitHub Desktop.
Save edk0/489b31f28f533f933ca6c172ab9b61e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
adduser --quiet --disabled-password warrior
apt-get update
apt-get install -y tmux git-core libgnutls28-dev lua5.1 liblua5.1-0 liblua5.1-0-dev screen python-dev python-pip bzip2 zlib1g-dev flex autoconf
su - warrior -c '
pip install --user warcio seesaw
git clone https://github.com/ArchiveTeam/googleplus-grab
(cd googleplus-grab && ./get-wget-lua.sh)
echo "#!/bin/bash" >> ~/run.sh
echo "cd ~/googleplus-grab" >> ~/run.sh
echo "tmux new -d ~/.local/bin/run-pipeline pipeline.py --concurrent 4 edk --disable-web-server" >> ~/run.sh
chmod +x ~/run.sh
echo "@reboot /home/warrior/run.sh" > ~/crontab
crontab ~/crontab
~/run.sh
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment