Skip to content

Instantly share code, notes, and snippets.

@jakedolan443
Created March 25, 2022 23:25
Show Gist options
  • Save jakedolan443/0ad2cc29f62e1c823a6b26d0cf2ef6a4 to your computer and use it in GitHub Desktop.
Save jakedolan443/0ad2cc29f62e1c823a6b26d0cf2ef6a4 to your computer and use it in GitHub Desktop.
SwiperProxy install script
apt-get install build-essential cython python python-dev python-ipy
mkdir /opt/SwiperProxy
wget https://github.com/SwiperProxy/swiperproxy/archive/v1.1.tar.gz \
-O /usr/local/src/swiperproxy-v1.1.tar.gz
tar -zxvf /usr/local/src/swiperproxy-v1.1.tar.gz
mv /usr/local/src/swiperproxy-v1.1 /opt/SwiperProxy/swiperproxy
/opt/SwiperProxy/swiperproxy/include/streamhtmlparser/configure
## EXECUTE AS SELF
$ make
$ make install
$ cd src/py-streamhtmlparser
$ make
$ make install
$ cp /usr/local/lib/python2.7/dist-packages/* /usr/lib/python2.7/dist-packages
$ ldconfig -v
$ mkdir /var/log/swiperproxy
$ addgroup --system swiperproxy
$ adduser --system swiperproxy --ingroup=swiperproxy --home=/opt/SwiperProxy/swiperproxy
$ chown swiperproxy:swiperproxy /var/log/swiperproxy
$ chown -R swiperproxy:swiperproxy /opt/SwiperProxy/swiperproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment