Skip to content

Instantly share code, notes, and snippets.

@cryptopepe
Last active February 15, 2021 01:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cryptopepe/785f8b0bf1fcf2aefbe5b6637c972043 to your computer and use it in GitHub Desktop.
Save cryptopepe/785f8b0bf1fcf2aefbe5b6637c972043 to your computer and use it in GitHub Desktop.
How to install lynxchan on debian 8.0
Pre-install: Make sure you've created a user account with sudo rights, and use it for the rest of the tutorial. Do not run lynxchan on the root account.
1. Install nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
2. Install Mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
3. Install imagemagick
sudo apt-get install imagemagick
4. Install ffmpeg
sudo echo deb http://ftp.uk.debian.org/debian jessie-backports main >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get update
sudo apt-get install ffmpeg
5. Clone lynxchan into your home folder
cd
sudo apt-get install git
git clone https://gitgud.io/LynxChan/LynxChan.git
6. set up lynxchan
cd LynxChan/aux
./setup.sh
Continue through it, I recommend installing the default front-end at first.
7. run the root setup so 'lynxchan' becomes a command
sudo ./root-setup.sh
8. run lynxchan for the first time
lynxchan
ctrl c to close it
Part 2: Setting up a different front-end
You can either edit the current fe or get another one. Check out the list here.
1. Find the fe that you want
cd
cd LynxChan/src
git clone 'the one you want'
2. Create the root account
lynxchan -ca -l login -p pass -gr 0
where login and pass are the login and password of your choice
3. run lynxchan
lynxchan
4. Head into your account. The default port is 8080
so localhost:8080 or ipaddress:8080 in your web browser
localhost:8080/login.html
login with your newly created root account
5. head into localhost:8080/globalSettings.html
change a bunch of settings, but mostly change the fe to the folder of the desired fe.
example, if you cloned freechMinimalism, change the 'fe' part to 'freechMinimalism'
6. Save, the stop the engine and rebuild
lynxchan -r
Running lynxchan through nginx reverse web proxy
1. install nginx
sudo apt-get install nginx
2. remove apache2/stop apache2
to remove:
sudo service apache2 stop
sudo apt-get remove apache2
sudo apt-get autoremove
to stop:
sudo service apache2 stop
3. change the conf files for nginx
cd /etc/nginx/sites-available
nano domain.org
paste this
<code>
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
}
}
</code>
link it
ln -s /etc/nginx/sites-available/domain.org /etc/nginx/sites-enabled/domain.org
delet the old config
cd /etc/nginx/sites-e*
rm -Rf default
start lynxchan as a service, then start nginx
sudo service nginx start
sudo service lynxchan start
access it from your web browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment