|
|
|
@ -2,28 +2,31 @@ INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/ba
|
|
|
|
|
|
|
|
|
|
compile: |
|
|
|
|
${INSTALLER} tor torsocks lynx deluge openvpn
|
|
|
|
|
if [ ! -d /usr/local/src/tor-browser-en ]; then git -C /usr/local/src/ clone https://aur.archlinux.org/tor-browser-en.git; fi
|
|
|
|
|
git -C /usr/local/src/tor-browser-en pull
|
|
|
|
|
if [ ! -d /usr/local/src/cryptostorm_client_configuration_files ]; then cd /usr/local/src/; git clone https://github.com/cryptostorm/cryptostorm_client_configuration_files.git; fi
|
|
|
|
|
cd /usr/local/src/cryptostorm_client_configuration_files; git pull
|
|
|
|
|
|
|
|
|
|
install: compile |
|
|
|
|
if [ `grep -c tor-lynx /etc/bash.bashrc` -lt 1 ]; then echo 'alias tor-lynx="torsocks lynx check.torproject.org"' >> /etc/bash.bashrc; fi
|
|
|
|
|
@echo
|
|
|
|
|
@Optionally, install tor-browser-en from /usr/local/src/.
|
|
|
|
|
cp ./vpn.service /usr/lib/systemd/system
|
|
|
|
|
cp /usr/local/src/cryptostorm_client_configuration_files/linux/cstorm_linux-balancer_tcp.ovpn /root/cstorm.vpn
|
|
|
|
|
ln -s /root/cstorm.vpn /root/vpn.vpn
|
|
|
|
|
systemctl start deluged
|
|
|
|
|
systemctl enable deluged
|
|
|
|
|
if ! egrep '^alias torbrowser' /etc/profile &> /dev/null; then printf 'alias torbrowser="torsocks elinks https://check.torproject.org/"' >> /etc/profile; fi
|
|
|
|
|
@echo
|
|
|
|
|
@echo You will want to add your authentication token file into /root/vpn.vpn before starting the VPN.
|
|
|
|
|
|
|
|
|
|
reverse: |
|
|
|
|
cp /usr/local/bin/tor-lynx .
|
|
|
|
|
cp /usr/lib/systemd/system/vpn.service .
|
|
|
|
|
|
|
|
|
|
diff: |
|
|
|
|
diff ./tor-lynx /usr/local/bin/tor-lynx
|
|
|
|
|
diff ./vpn.service /usr/lib/systemd/system/vpn.service
|
|
|
|
|
|
|
|
|
|
test: |
|
|
|
|
bash ./tor-lynx
|
|
|
|
|
@echo Nothing to do.
|
|
|
|
|
|
|
|
|
|
checkperm: |
|
|
|
|
chown root:root /usr/local/bin/tor-lynx
|
|
|
|
|
chmod 0755 /usr/local/bin/tor-lynx
|
|
|
|
|
chown root:root /usr/lib/systemd/system/vpn.service
|
|
|
|
|
chmod 0755 /usr/lib/systemd/system/vpn.service
|
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
@echo Nothing to do.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|