GithubHelp home page GithubHelp logo

pombredanne / webserver-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lorien/webserver

0.0 0.0 0.0 117 KB

Bash script to convert clean VPS into python-friendly web environment

License: BSD 3-Clause "New" or "Revised" License

Shell 100.00%

webserver-1's Introduction

What is webserver project?

It is a bash script that:

  • installs basic things you need on linux web server
  • configures vim with reasonable minimal set of settings
  • installs and configure database servers (mysql, posgtres, mongodb, redis)
  • installs nginx
  • installs python environment (uwsgi, virtualenv, pipi, py2, py3)

This script does things I need. It is good idea to use it as start point to write a script for your own purposes.

How to use it?

  1. Get some clean debian server. Set up authentication by key:

    ssh-copy-id root@your-server
    
  2. Upload the script:

    scp install.sh root@your-server:/root/
    
  3. Log in to VPS as root

  4. Check your /etc/apt/sources.list. It should contain jessie (stable) repository.

To speed up apt operations you may choose debian repo mirror close to your server. For example, if your server located in Nederlands that has code NL then you might replace ftp.us.debian.org, if such string exists in your config, with ftp.nl.debian.org.

Do not forget to add "contrib non-free" components.

Example of original digitalocean sources.list:

deb http://ftp.nl.debian.org/debian jessie main
deb http://security.debian.org/ jessie/updates

After modification:

deb http://ftp.nl.debian.org/debian jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
  1. Update install.sh script. Change INSTALL_* variables to allow or disallow

    installation of specific software.

  2. Run the script:

    $ bash install.sh
    

During installation process you'll need to confirm installation of various software packages (and resolve issues if any).

  1. Reboot server.

Documentation?

Read source code :)

Some extra comments in russian could be found here: http://habrahabr.ru/blogs/django/120363/

Feedback?

Create ticket on github http://github.com/lorien/webserver or drop mail to [email protected]

webserver-1's People

Contributors

lorien 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.