Closed MadMage999 closed 6 years ago
not sure on 8.10. I am working on a manual install for 9.40 I can email it to you. It's not all done but it is what I used to get my Debian 9.40 Test box up and running.
Thanks for the quick reply.
If you have an updated script for debian 9.40 that would be even better. I was only doing the manual install because the script didn't work for me.
https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-xfce-CD-1.iso
apt-get install locate apt-get install net-tools apt-get install sudo apt-get install screen apt-get install git
apt-get install checkinstall docbook-xsl docbook-xsl-ns docbook-xsl-doc-html xsltproc
apt-get install nload iftop httpyr
apt-get install autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev pkg-config software-properties-common autotools-dev cdbs debhelper dh-autoreconf dpkg-dev gettext libev-dev libpcre3-dev libudns-dev pkg-config fakeroot devscripts
apt-get install devscripts curl git unbound build-essential libpcre3 libpcre3-dev zlib1g-dev libreadline-dev libev4 libev-dev libncurses5-dev git libssl-dev httpry
adduser $username sudo
sudo nano /etc/default/grub
git clone -b master --recursive http://github.com/bntjah/lc-installer/
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo nano /etc/network/interfaces
auto ens33 iface ens33 inet dhcp
auto eth0 iface eth0 inet dhcp
git clone -b stable-4 --depth 1 https://github.com/jemalloc/jemalloc.git cd jemalloc ./autogen.sh make && make dist sudo checkinstall --pkgname=jemalloc --pkgversion="4-stable" --backup=no --deldoc=yes --fstrans=no --default make clean && make distclean cd ..
get and build nginx curl http://nginx.org/download/nginx-1.13.9.tar.gz | tar zx cd ngnix-1.13.8 mkdir /usr/local/lib ./configure --with-http_slice_module --with-http_ssl_module --with-file-aio --with-threads --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" --with-cc-opt="-m64 -march=native -g -O3 -fstack-protector-strong --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf make sudo checkinstall --pkgname=nginx --pkgversion="1.13.8-custom" --backup=no --deldoc=yes --fstrans=no --default
SNI Proxy
git clone https://github.com/dlundquist/sniproxy
./autogen.sh && dpkg-buildpackage
sudo dpkg -i ../sniproxy
git clone -b master http://github.com/bntjah/lancache
sudo adduser --system --no-create-home lancache
sudo addgroup --system lancache
sudo usermod -aG lancache lancache
cd lanchace sudo cp limits.conf /etc/security/limits.conf
cd lancache/init.d/ sudo chmod+x * -rvf sudo cp nginx /etc/init.d/ sudo cp sniproxy /etc/init.d/
sudo /usr/sbin/update-rc.d -f nginx defaults cd /etc/init.d/ sudo systemctl enable nginx
sudo mkdir -p /srv/lancache/data/blizzard/
sudo mkdir -p /srv/lancache/data/microsoft/
sudo mkdir -p /srv/lancache/data/installs/
sudo mkdir -p /srv/lancache/data/other/
sudo mkdir -p /srv/lancache/data/tmp/
sudo mkdir -p /srv/lancache/data/hirez/
sudo mkdir -p /srv/lancache/data/origin/
sudo mkdir -p /srv/lancache/data/riot/
sudo mkdir -p /srv/lancache/data/gog/
sudo mkdir -p /srv/lancache/data/sony/
sudo mkdir -p /srv/lancache/data/steam/
sudo mkdir -p /srv/lancache/data/wargaming
sudo mkdir -p /srv/lancache/data/arenanetworks
sudo mkdir -p /srv/lancache/data/uplay
sudo mkdir -p /srv/lancache/data/glyph
sudo mkdir -p /srv/lancache/data/zenimax
sudo mkdir -p /srv/lancache/data/digitalextremes
sudo mkdir -p /srv/lancache/data/pearlabyss
sudo mkdir -p /srv/lancache/logs/Errors
sudo mkdir -p /srv/lancache/logs/Keys
sudo mkdir -p /srv/lancache/logs/Access
sudo chown -R lancache:lancache /srv/lancache
sudo cp hosts to /etc/hosts
sudo cp -R ~/lancache/conf /usr/local/nginx/
auto eth0 iface eth0 inet static address 10.0.1.2 netmask 255.255.255.0 gateway 10.0.1.1 dns-nameservers 8.8.8.8 8.8.4.4
auto eth0:1 iface eth0:1 inet static address 10.0.1.11 netmask 255.255.0.0
auto eth0:2 iface eth0:2 inet static address 10.0.1.12 netmask 255.255.0.0
auto eth0:3 iface eth0:3 inet static address 10.0.1.13 netmask 255.255.0.0
auto eth0:4 iface eth0:4 inet static address 10.0.1.14 netmask 255.255.0.0
auto eth0:5 iface eth0:5 inet static address 10.0.1.15 netmask 255.255.0.0
auto eth0:6 iface eth0:6 inet static address 10.0.1.16 netmask 255.255.0.0
auto eth0:7 iface eth0:7 inet static address 10.0.1.17 netmask 255.255.0.0
auto eth0:8 iface eth0:8 inet static address 10.0.1.18 netmask 255.255.0.0
auto eth0:9 iface eth0:9 inet static address 10.0.1.19 netmask 255.255.0.0
auto eth0:10 iface eth0:10 inet static address 10.0.1.20 netmask 255.255.0.0
auto eth0:11 iface eth0:11 inet static address 10.0.1.21 netmask 255.255.0.0
auto eth0:12 iface eth0:12 inet static address 10.0.1.22 netmask 255.255.0.0
auto eth0:13 iface eth0:13 inet static address 10.0.1.23 netmask 255.255.0.0
auto eth0:14 iface eth0:14 inet static address 10.0.1.24 netmask 255.255.0.0
auto eth0:15 iface eth0:15 inet static address 10.0.1.25 netmask 255.255.255.0
auto eth0:16 iface eth0:16 inet static address 10.0.1.26 netmask 255.255.255.0
auto eth0:17 iface eth0:17 inet static address 10.0.1.27 netmask 255.255.255.0
127.0.0.1 localhost
127.1.0.1 lancache-origin-backend 127.1.0.2 lancache-blizzard-backend
lc-host-steam lancache-steam lc-host-riot lancache-riot lc-host-blizzard lancache-blizzard lc-host-hirez lancache-hirez lc-host-origin lancache-origin lc-host-sony lancache-sony lc-host-microsoft lancache-microsoft lc-host-enmasse lancache-enmasse lc-host-gog lancache-gog lc-host-arena lancache-arenanetworks lc-host-apple lancache-apple lc-host-wargaming lancache-wargaming lc-host-uplay lancache-uplay lc-host-glyph lancache-glyph lc-host-zenimax lancache-zenimax lc-host-digitalextremes lancache-digitalextremes lc-host-perlabyss lancache-pearlabyss
------- netdata install ---------
For all Linux systems, you can use this one liner to install the git version of netdata:
sudo su bash <(curl -Ss https://my-netdata.io/kickstart.sh)
sudo su bash <(curl -Ss https://my-netdata.io/kickstart.sh) all
Awesome, thanks!
I got to the line that says "apt-get install nload iftop httpyr" and I'm getting "cannot locate package httpyr".
sorry its httpry
Yes, thank you, I made it from there despite some typos (which I realize this is your working copy, not final), to the line that says: "sudo dpkg -i ../sniproxy__.deb"
Now I got the error "dpkg: error: cannot access archive 'sniproxy__.deb': No such file or directory".
if you have a email I can send you a link to the shared file.
nunyaatall at gmail dot com
once you get all services installed and ip's all changed reboot and check status of services and you should be good to go.
"7.1) Replace the proxy_bind variable with your primary IP address (not one of the virtual ones)"
Not sure which file you're referring to.
"10) Put it in the standard Boot: sudo update-rc.d lancache defaults"
This returns an error for me (on Debian 8.10) "update-rc.d: error: initscript does not exist: /etc/init.d/lancache"