/lynxchan/ - LynxChan

The best engine you will ever shitpost with.

Mode: Reply
Name
Subject
Message

Max message length: 4096

Files

Max file size: 1.00 MB

Max files: 3

E-mail
Password

(used to delete files and postings)

Misc

Remember to follow the rules



(10.49 KB 979x973 ebin.jpg)
LynxChan Installation Tutorial Cat 01/06/2017 (Fri) 01:14:08 Id:e5d5f0 No. 385
This is for debian.

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://www.deb-multimedia.org testing main non-free \
>>/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-a*
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-available/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

--------------------------------------------------

Tell me if you want a https://letsencrypt.org/getting-started/ tutorial for nginx, it's simple though just google it
sticky >>385 pls
AYO HOL UP
THESE INSTRUCTIONS B 4 DEBIAN WHEEZY N SHEET
RUNNING THESE INSTRUCTIONS ON JESSIE ARE LIKELY TO JUST FUCK YOUR SHIT UP

>Corrected Version:
1. Install Node.JS v6.x

INSTALL MONGODB USING THE DEBIAN PACKAGE. IT'S ALREADY IN THE REPOS

DEB MULTIMEDIA IS NO LONGER REQUIRED FOR FFMPEG.

[code]sudo apt-get install ffmpeg[/code]

The rest of it is good hombre
https://git.teknik.io/nic/berndchan/wiki/How-to-Install-Lynxchan-2.0.0-on-Debian-9.4-

Looking to contribute with the people if anyone wants another guide, I also included the https guide.
>>528
On step 9, you are not updating npm, but the libraries lynxchan uses.

On step 11, changing the restart to always will cause it to be restarted even if the engine is requests to shutdown with -s. I don't think that's desirable.
>>528
On step 14, you don't NEED that to have https, but it's certainly more convenient when using LE. You could let lynxchan handle SSL on it's own, it just wouldn't be able to renew the certificate on it's own.

On step 20 you don't have to enable SSL on lynxchan since nginx is already handling that. Since you didn't place the ssl files where lynxchan can find them, it will just error and don't listen to SSL. Even if it did, since nginx is using port 443 it wouldn't be able to listen it anyway.

On step 22 you don't have to start lynxchan if you didn't change the ssl setting on step 20.
>>529
>>530
Fixed the guide
How to put favicon added in the guide too
>>532
Woohoo!
>>385
hey homey is there a bulgarichan im not aware of?
Fixed the guide (again and better) specially the Nginx proxy pass + Let's Encrypt HTTPS certs and easy automatic renewal part

any kind of feedback is welcomed and i'll add it

https://git.teknik.io/nic/berndchan/wiki/How-to-Install-Lynxchan-2.0.0-on-Debian-9.4-
>>385
i dont fucking get what im supposed to do with domain.org?????????? is it a placeholder for my own domain? the symlink command isn't even working, and "sudo service lynxchan start" gives me "Failed to start lynxchan.service: Unit lynxchan.service not found."
>>626
If the lynxchan service wasn't found, you didn't run the root-setup script and asked for it to install the service.
>>539
Link broke.
>>385
it's not that complicated

Delete
Report/Ban

Captcha (required for reports and bans by board staff)


no cookies?