8

Phuks Installation

Ubuntu 16.04

  1. curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -

  2. sudo apt-get install -y nodejs

  3. sudo apt-get install git python3 mysql-server redis-server libboost-python-dev python3-pip wget libffi-dev libexiv2-dev make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev

  4. sudo apt-get install libmysqlclient-dev

  5. install pyenv - $ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

  6. add to bash -

a. echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc

b. echo 'eval "$(pyenv init -)"' >> ~/.bashrc

c. echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc

d. source ~/.bashrc

  1. pyenv install 3.5.5

  2. git clone https://phab.phuks.co/source/throat.git

  3. cd throat

  4. pyenv virtualenv 3.5.5 app

  5. pyenv local app

  6. pip install -r requirements.txt

  7. npm -v

  8. npm install

  9. npm run build

  10. cp example.config.py config.py

  11. sudo nano config.py(change sql user and password)

  12. mysql -u root -p

  13. create database phuks;

  14. exit

  15. mysql -u root -p

  16. SET GLOBAL sql_mode='';

  17. exit

  18. sudo apt-get install nginx

An almost complete guide for setting up phuks.

My next attempt at a write up on how to setup phuks.

Phuks Installation Ubuntu 16.04 1. curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - 2. sudo apt-get install -y nodejs 3. sudo apt-get install git python3 mysql-server redis-server libboost-python-dev python3-pip wget libffi-dev libexiv2-dev make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev 4. sudo apt-get install libmysqlclient-dev 5. install pyenv - $ curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash 6. add to bash - a. echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bashrc b. echo 'eval "$(pyenv init -)"' >> ~/.bashrc c. echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc d. source ~/.bashrc 7. pyenv install 3.5.5 8. git clone https://phab.phuks.co/source/throat.git 9. cd throat 10. pyenv virtualenv 3.5.5 app 11. pyenv local app 12. pip install -r requirements.txt 13. npm -v 14. npm install 15. npm run build 16. cp example.config.py config.py 17. sudo nano config.py(change sql user and password) 18. mysql -u root -p 19. create database phuks; 20. exit 21. mysql -u root -p 22. SET GLOBAL sql_mode=''; 23. exit 24. sudo apt-get install nginx 25. An almost complete guide for setting up phuks. My next attempt at a write up on how to setup phuks.

9 comments

[–] pembo210 3 points (+3|-0) Edited

you just fixed my pyenv problem.. I swear I work here :p

[–] PMYA 5 points (+5|-0)

>tell a bunch of people they can make their own version of Phuks

>they end up writing documentation for us

I know your game.

[–] pmyb2 [OP] 0 points (+0|-0)

I am doing nothing of the sort I am just creating reminders for myself.

What is this...a community actually working or something??

[–] pmyb2 [OP] 1 points (+1|-0)

I have no idea what you are talking about. I'm just some asshole that likes to type shit.

I knew it! There is no such thing as virtue and goodwill! How could I have been so naive!

Seriously though, awesome work. I don't know type of code this is. SQL? Something with Python? I'm an amateur coder and have only dabbled with some C++ and Java. I took a class in x86 but nowhere near enough knowledge to actually do anything.

[–] pmyb2 [OP] 1 points (+1|-0)

It’s bash honestly, just basic Linux admin type stuff. I’m not a developer I’m more a sysadmin by trade but I wanted to put up my own clone of this type of site and phuks code takes far less system resources than the other versions out there. I’m probably still going to learn the others but this is where I’m starting.

[–] pembo210 2 points (+2|-0)

It should be noted that polsaker and the main site use Debian/nginx. I dev on two machines with Ubuntu16/mysql and Debian/Mariadb both with Apache. I never used nginx until phuks. I'm trying to pull all the how-tos together.

Thank you so much for helping us make some better docs so we can get some more people up and running. It's way overdue.

[–] pmyb2 [OP] 1 points (+1|-0)

nginx is pretty similar to apache as far as config goes, I've had some success with it.