Giter Club home page Giter Club logo

open-ripple's Introduction

open-ripple

This repository is created to collect all the information about installing and configuring ripple server. This guide is based on old ripple guides (https://github.com/osuripple/ripple/wiki) and my personal experience.

  1. GNU/Linux
    I don’t know is it possible to setup a server on Windows (you can try) but I use Ubuntu and it works well.

  2. Dependencies

  • Mysql
  • Redis
  • Php-fpm
  • Go
  • python
  • nginx
  • Ripple code
  1. Certificate
    Edit openssl.cnf and run gencert.sh to generate certificates. Use cert.pem and key.pem in your nginx configuration and cert.pem in your switcher.

  2. Proxy
    Edit and include ripple.conf in your nginx.conf

  3. Database
    open-ripple/database.sql - full database with cakes and achievements
    secret/cakes.sql - cakes (change json to text if you use old mariadb) national-gallery/python3 generate_sql.py - achievemets

  4. Some reminders/for-copypase-commands

  • User creation
adduser semyon422
usermod -aG sudo semyon422
  • All dependencies
apt install sudo
sudo apt install gcc g++ build-essential
sudo apt install python3.5 python3-pip
sudo apt install git
sudo apt install mysql-server
sudo apt install redis-server
sudo apt install libmariadbclient-dev
sudo apt install vsftpd
sudo apt install nginx
sudo apt install php-fpm
sudo apt install composer
sudo apt install php7.0-mbstring
sudo apt install php7.0-curl
sudo apt install php-mysql
sudo apt install mc screen
sudo apt install luajit
  • Server enable/start/restart
sudo systemctl enable vsftpd
sudo systemctl enable nginx
sudo systemctl enable php7.0-fpm
sudo systemctl enable redis-server
sudo systemctl enable mysql
sudo systemctl start vsftpd
sudo systemctl start nginx
sudo systemctl start php7.0-fpm
sudo systemctl start redis-server
sudo systemctl start mysql
sudo systemctl restart vsftpd
sudo systemctl restart nginx
sudo systemctl restart php7.0-fpm
sudo systemctl restart redis-server
sudo systemctl restart mysql
  • Server configuring
sudo nano /etc/vsftpd.conf (allow write for local users)
sudo mysql_secure_installation
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'username' IDENTIFIED BY 'password';
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf (comment "bind-address = 127.0.0.1")
  • Repository clonning
git clone --recursive https://github.com/semyon422/open-ripple
git clone --recursive https://github.com/semyon422/omppc
git clone --recursive https://github.com/osufx/pep.py
git clone --recursive https://github.com/osufx/lets
git clone --recursive https://zxq.co/ripple/rippleapi
git clone --recursive https://zxq.co/ripple/hanayo
git clone --recursive https://github.com/osuripple/old-frontend
(will clone with error due to secret module)

also you may need
https://github.com/osufx/national-gallery
https://github.com/osufx/secret
https://github.com/osufx/ripple-python-common
  • pep.py
sudo pip3 install -r requirements.txt
python3 setup.py build_ext --inplace
python3 pep.py
nano config.ini
  • lets
sudo pip3 install -r requirements.txt
python3 setup.py build_ext --inplace
python3 lets.py
nano config.ini
  • hanayo
go get zxq.co/ripple/hanayo
nano hanayo.conf
  • rippleapi
go get zxq.co/ripple/rippleapi
nano api.conf
  • old-frontend (for Ripple Admin Panel)
composer install
nano inc/config.php
git clone --recursive https://github.com/osufx/secret
  • Avatar server
pip3 install flask
mkdir avatars
python3 avatarserver.py
  • Golang 1.10 installation
wget https://dl.google.com/go/go1.10.linux-amd64.tar.gz
tar -xvf go1.10.linux-amd64.tar.gz
sudo mv go /usr/lib/go-1.10
nano ~/.bashrc
export PATH=/usr/lib/go-1.10/bin:$PATH
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export GOBIN=$GOPATH/bin
source ~/.bashrc
  1. Trouble solving
  • go: signal: killed
dmesg -> Out of memory
solution: stop all servers and try again
  • make pp > score system
set "score-overwrite": "pp" at common/config.json
  • hanayo switcher links
templates/navbar.html:25
templates/register/verify.html:12
  • hanayo logo links
templates/homepage.html:12
templates/navbar.html:8

open-ripple's People

Contributors

semyon422 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.