bntjah / lc-installer

Lancache Installer Script
8 stars 9 forks source link

installation #22

Closed Yogi85 closed 6 years ago

Yogi85 commented 6 years ago

The installation under Debian 8.6 did not work. Unfortunately a lot of mistakes in it.

nexusofdoom commented 6 years ago

I can try and help what issue that you see that stops at?

nexusofdoom commented 6 years ago

also quicker support try https://discordapp.com/channels/373160397349322762/373160397353517057

Yogi85 commented 6 years ago

hello nexusofdoom

Thank you for your answer. I'm trying to create a lancache server. But unfortunately all the instructions where I think did not work. It may well be that my linux experience is too bad. can you possibly recommend me another manual? In this manual many errors come. the folder is missing or can not be created.

Thank you

Gruess Yogi85

Yogi85 commented 6 years ago

the myglish is very bad and i have to translate it. If a conversation is not possible. sorry

nexusofdoom commented 6 years ago

some notes that might help you.

Install debian 9.40 64BIT https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-xfce-CD-1.iso

login as root

you can install desktop version if you want to.

suggest installing ssh-server

install net-tools , sudo , screen , git

apt-get install net-tools apt-get install sudo apt-get install screen apt-get install git

enable sudo for normal user

http://milq.github.io/enable-sudo-user-account-debian/

adduser username sudo

current version of debian 9.4 need to change network back to old names eth0 example

https://www.itzgeek.com/how-tos/linux/debian/change-default-network-name-ens33-to-old-eth0-on-debian-9.html

To regain the ethX back, edit the grub file.

sudo nano /etc/default/grub

Look for “GRUB_CMDLINE_LINUX” and add the following”net.ifnames=0 biosdevname=0“.

From:

GRUB_CMDLINE_LINUX=""

To:

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

git clone -b master --recursive http://github.com/bntjah/lc-installer/

Generate a new grub file using the “grub-mkconfig” command.

sudo grub-mkconfig -o /boot/grub/grub.cfg

DHCP or Static need to edit your /etc/network/interfaces file /DHCP example bellow

If your machine is on DHCP network, then:

sudo nano /etc/network/interfaces

Update below lines in interfaces files so that the network card can get an IP address from DHCP server.

FROM:

auto ens33 iface ens33 inet dhcp

TO:

auto eth0 iface eth0 inet dhcp


install lancache with installer

git clone -b master --recursive http://github.com/bntjah/lc-installer/

cd lc-installer/ chmod +x installer.sh

run as root or sudo su - the installer

./installer.sh

Yogi85 commented 6 years ago

Thank you. I will try that.

nexusofdoom commented 6 years ago

there also looks like a issue with the installer at this location.

lc_incr_wargaming=$((lc_ip_p4+11)) lc_ip_wargaming=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_wargaming

lc_incr_uplay=$((lc_ip_p4+12)) lc_ip_uplay=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_uplay

lc_incr_apple=$((lc_ip_p4+13)) lc_ip_apple=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_apple

lc_incr_glyph=$((lc_ip_p4+14)) lc_ip_glyph=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_glyph

lc_incr_uplay=$((lc_ip_p4+15)) lc_ip_uplay=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_zenimax

lc_incr_apple=$((lc_ip_p4+16)) lc_ip_apple=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_digitalextremes

lc_incr_glyph=$((lc_ip_p4+17)) lc_ip_glyph=$lc_ip_p1.$lc_ip_p2.$lc_ip_p3.$lc_incr_pearlabyss

nexusofdoom commented 6 years ago

we will have to look into it more. if you get most of it installed you can go in and change the IP's to what you need to make it work it looks like. you will need to change in the hosts file , unbound.conf and each of the vhost-enabled configs.

nexusofdoom commented 6 years ago

if you start at this line on "Manual installation" on this page https://github.com/bntjah/lancache - you should be able to get it up and running.

4) Add the virtual interfaces (used for caching in nginx) to /etc/network/interfaces

Yogi85 commented 6 years ago

Hello

I've done the settings has great scalped. merci

But now when Straten from ./installer.sh

He does not do much. I get this far:


The Mac addresses for these interfaces are: eth0 MAC address ...... please enter the interface to use: The interfaces on this machine are: eth0 eth0 You have entered: eth0

Checking if this interface exists it seems that eth0 exists

now defining the necessary files the user lancache exists so nothing needs to be done!


Then nothing comes. What could be the reason ?

Merci

bntjah commented 6 years ago

Hi @Yogi85 Have a look at the test branch, while its not 100% without errors it should create the most I do wonder what is your main language? In case Dutch, you can contact me if you want

Kind Regards,

Geoffrey

Yogi85 commented 6 years ago

Unfortunately, I only speak German. Is it perhaps easier if I try the manual installation?

Yogi85 commented 6 years ago

Has anyone ever installed the manual installation on Debian 9.4?

bntjah commented 6 years ago

I have tried it but perhaps @imac2009 could help you out. He is a German Organiser from around Aachen region

2018-03-12 11:40 GMT+01:00 Yogi85 notifications@github.com:

Has anyone ever installed the manual installation on Debian 9.4?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bntjah/lc-installer/issues/22#issuecomment-372264978, or mute the thread https://github.com/notifications/unsubscribe-auth/AGE_0X6G6YXUSgFaEMKf6pLEEMdwOdF2ks5tdlCygaJpZM4Sl0sm .

Yogi85 commented 6 years ago

I will write to him. thank you for your help.

imac9999 commented 6 years ago

First of all, sadly, I don't have access to @imac2009 anymore, but instead it's @imac9999 now :) Well, my productive system is based on Debian 9 - not sure if its actually 9.4 but I think it is not a major issue hopping between these .dot releases.

I can probably help out to set up your system in German. Contact me via l8oeblem7vx@temp.mailbox.org

nexusofdoom commented 6 years ago

still working on this install how to for debian 9.40

Install debian 9.40 64BIT https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-xfce-CD-1.iso

login as root

you can install desktop version if you want to.

suggest installing ssh-server

install net-tools , sudo , screen , git

apt-get install locate apt-get install net-tools apt-get install sudo apt-get install screen apt-get install git

to get jemalloc compiled and installed

apt-get install checkinstall docbook-xsl docbook-xsl-ns docbook-xsl-doc-html xsltproc

network monitor

apt-get install nload

needed to isntall to get sni to compiled and install

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

enable sudo for normal user

http://milq.github.io/enable-sudo-user-account-debian/

adduser username sudo

current version of debian 9.4 need to change network back to old names eth0 example

https://www.itzgeek.com/how-tos/linux/debian/change-default-network-name-ens33-to-old-eth0-on-debian-9.html

To regain the ethX back, edit the grub file.

sudo nano /etc/default/grub

Look for “GRUB_CMDLINE_LINUX” and add the following”net.ifnames=0 biosdevname=0“.

From:

GRUB_CMDLINE_LINUX=""

To:

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

git clone -b master --recursive http://github.com/bntjah/lc-installer/

Generate a new grub file using the “grub-mkconfig” command.

sudo grub-mkconfig -o /boot/grub/grub.cfg

DHCP or Static need to edit your /etc/network/interfaces file /DHCP example bellow

If your machine is on DHCP network, then:

sudo nano /etc/network/interfaces

Update below lines in interfaces files so that the network card can get an IP address from DHCP server.

FROM:

auto ens33 iface ens33 inet dhcp

TO:

auto eth0 iface eth0 inet dhcp


get jemalloc and build

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 ..

rm -rf jemalloc


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

make clean

cd ..

rm -rf nginx-1.13.8

Profit

if necessary remove the above installed packaged with

dpkg -r jemalloc nginx


SNI Proxy

git clone https://github.com/dlundquist/sniproxy ./autogen.sh && dpkg-buildpackage sudo dpkg -i ../sniproxy.deb sudo curl https://raw.githubusercontent.com/OpenSourceLAN/origin-docker/master/sniproxy/sniproxy.conf -o /etc/sniproxy.conf


Get Lancache Files from github

git clone -b master http://github.com/bntjah/lancache


Make lancache user

Create the user lancache

sudo adduser --system --no-create-home lancache
sudo addgroup --system lancache
sudo usermod -aG lancache lancache

Make Needed Folders

Just create the folders:

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

Change Ownership of folders

sudo chown -R lancache:lancache /srv/lancache

unbound setup


nexusofdoom commented 6 years ago

needed to isntall to get sni to compiled and install

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


SNI Proxy

ref https://github.com/dlundquist/sniproxy

git clone https://github.com/dlundquist/sniproxy ./autogen.sh && dpkg-buildpackage sudo dpkg -i ../sniproxy.deb sudo curl https://raw.githubusercontent.com/OpenSourceLAN/origin-docker/master/sniproxy/sniproxy.conf -o /etc/sniproxy.conf

Fischje commented 6 years ago

hmm at saturday i got a little lanparty here in germany too. but i can't get it install. someone has time to help me with this - maybee at discord? tried to installed it several time on my vm on esxi. but no luck. :´

bntjah commented 6 years ago

Fischje, ping me or @imac9999 (German Speaker) on Discord when you see us online

2018-03-26 12:21 GMT+02:00 Fischje notifications@github.com:

hmm at saturday i got a little lanparty here in germany too. but i can't get it install. someone has time to help me with this - maybee at discord? tried to installed it several time on my vm on esxi. but no luck. :´

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bntjah/lc-installer/issues/22#issuecomment-376118466, or mute the thread https://github.com/notifications/unsubscribe-auth/AGE_0Yo7XcTYfIrgbTnxpEpsN2lg0A7Qks5tiMEwgaJpZM4Sl0sm .

Fischje commented 6 years ago

i want, but can't find any discord link to you or @imac9999 :)

my problems are many. first the interface file is not wrote correctly it broke up after the first 8 or 9 ip variables been written. secondly nginx is not installed (or not correctly) an lat but not least i think he's not going to install unbound (or modified it when i installed it before)

bntjah commented 6 years ago

My disc name is: denbn @Imac9999 disc name is: imac2009

2018-03-26 13:00 GMT+02:00 Fischje notifications@github.com:

i want, but can't find any discord link to you or @imac9999 https://github.com/imac9999 :)

my problems are many. first the interface file is not wrote correctly it broke up after the first 8 or 9 ip variables been written. secondly nginx is not installed (or not correctly) an lat but not least i think he's not going to install unbound (or modified it when i installed it before)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bntjah/lc-installer/issues/22#issuecomment-376127643, or mute the thread https://github.com/notifications/unsubscribe-auth/AGE_0Z4HsPvUOnUav8O5Dl5fVefjcaoOks5tiMo9gaJpZM4Sl0sm .

Fischje commented 6 years ago

hmm without the tag nobody can find you.... i give mine: Fischje#9897

bntjah commented 6 years ago

There is a discord channel; can't seem to find it as I'm at my work pc. But you should be able to find it somewhere on the Facebook group.

On my mobile I can see my tag: #4952

2018-03-26 13:27 GMT+02:00 Fischje notifications@github.com:

hmm without the tag nobody can find you.... i give mine: Fischje#9897

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bntjah/lc-installer/issues/22#issuecomment-376133914, or mute the thread https://github.com/notifications/unsubscribe-auth/AGE_0V0vnjO2hpyUZPDO6eO_Q5xHU43yks5tiNCYgaJpZM4Sl0sm .

bntjah commented 6 years ago

I'm closing this issue as Yogi's issues have been solved