Advertisement
KirillMysnik

Commands Used In MOTDPlayer Full Installation Tutorial

Apr 10th, 2017
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.01 KB | None | 0 0
  1. su
  2. apt-get install sudo
  3. adduser motd sudo
  4. nano /etc/sudoers  # Then add "motd ALL=(ALL:ALL) ALL" line, then save the file
  5. exit
  6.  
  7. sudo apt-get update
  8.  
  9. sudo apt-get install build-essential libssl-dev libsqlite3-dev openssl
  10. wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
  11. tar xzvf Python-3.6.1.tgz
  12. cd Python-3.6.1
  13. ./configure
  14. make
  15. sudo make install
  16. cd ..
  17.  
  18. sudo apt-get install proftpd  # Then select "inetd" option
  19. sudo nano /etc/proftpd/proftpd.conf  # Then turn IPv6 support off
  20. sudo service proftpd restart
  21. ip addr
  22.  
  23. sudo pip3 install virtualenv
  24. mkdir flask
  25. cd flask
  26. virtualenv venv
  27. source venv/bin/activate
  28. pip3 install flask
  29. pip3 install flask-sqlalchemy
  30. pip3 install uwsgi
  31. pip3 install path.py
  32.  
  33. touch settings.py
  34. nano settings.py  # Then add two following lines:
  35. SQLALCHEMY_DATABASE_URI = "sqlite:////home/motd/flask/database.db"
  36. SECRET_KEY = "(JUST ENTER RANDOM STUFF HERE)"
  37.  
  38. uwsgi --master --http :8080 --http-websockets --wsgi-file application.py --venv venv --ugreen --async 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement