Add webshots installer

master
Sven Slootweg 12 years ago
parent 6272c210e1
commit 929d0a8320

@ -0,0 +1 @@
wget http://cryto.net/projects/webshots/webshots_debian.sh && chmod +x webshots_debian.sh && ./webshots_debian.sh

@ -0,0 +1,16 @@
#!/bin/bash
cd ~
git clone git://github.com/ArchiveTeam/webshots-grab.git
if [ $? -ne 0 ]; then echo "[X] Retrieving the grabber code failed. Exiting..."; exit 1; fi
cd webshots-grab
./get-wget-lua.sh
if [ $? -ne 0 ]; then echo "[X] Compiling wget-lua failed. Exiting..."; exit 1; fi
echo "What username would you like to use? "
read USERNAME
echo "How many threads? (start out with 2 or so) "
read THREADCOUNT
echo "run-pipeline --concurrent $THREADCOUNT ~/webshots-grab/pipeline.py $USERNAME" > ./start.sh
chmod +x ./start.sh
echo "Done! Run ~/webshots-grab/start.sh as the 'archiveteam' user to start grabbing."

@ -0,0 +1,24 @@
#!/bin/bash
apt-get update
apt-get install -y lua50 liblua5.1-0-dev python python-setuptools git-core openssl libssl-dev bzip2 build-essential
if [ $? -ne 0 ]; then echo "[X] Installing dependencies failed. Exiting..."; exit 1; fi
easy_install pip
if [ $? -ne 0 ]; then echo "[X] Installing pip failed. Exiting..."; exit 1; fi
pip install seesaw
if [ $? -ne 0 ]; then echo "[X] Installing seesaw failed. Exiting..."; exit 1; fi
useradd -m archiveteam
if [ $? -ne 0 ]; then echo "[X] Creating archiveteam user failed. Exiting..."; exit 1; fi
wget -O /home/archiveteam/setup.sh http://cryto.net/projects/webshots/setup.sh
if [ $? -ne 0 ]; then echo "[X] Retrieving the user setup script failed. Exiting..."; exit 1; fi
chown archiveteam:archiveteam /home/archiveteam/setup.sh
if [ $? -ne 0 ]; then echo "[X] Chowning the setup script failed. Exiting..."; exit 1; fi
chmod +x /home/archiveteam/setup.sh
if [ $? -ne 0 ]; then echo "[X] Chmodding the setup script failed. Exiting..."; exit 1; fi
su -c "/home/archiveteam/setup.sh" archiveteam
Loading…
Cancel
Save