Giter Club home page Giter Club logo

linuxserver's Introduction

Sign up for Amazon Lightsail

1.[Amazon] (https://amazonlightsail.com/)
1.Download the key that is generated when you start your instance
1.log into your instance from the command line
	1. ssh ~/.ssh/yourpemfile.pem ubuntu@yourdomain -p your port

Update all packages

1. `$ sudo apt-get update`
1. `$ sudo apt-get upgrade`

make a grader user

1.create a new user `$ sudo adduser newuser`
1.give user sudo powers `$ sudo usermod -a -G sudo newuser`

change the port to 2200

1. open the config file `$vim /etc/ssh/sshd_config`
1. change the port to 2200
1. in the lightsail gui add 2200, 123, and 80 to be safe

change password auth to no

use ssh-keygen to get the public key

1.`ssh-keygen -y`
1.path to private key
1.copy the public key returned
1.add to authorized_keys file

set up ufw to accept ports

1. `$ sudo ufw allow 2200/tcp`
1. `$ sudo ufw allow 80/tcp`
1. `$ sudo ufw allow 123/udp`

set timezone timezone

1.`$timedatectl list-timezones`
1. `$ sudo timedatectl set-timezone UTC`

install required packages

1. `$ sudo apt-get install apache2`
1. replace apache2 with libapache2-mod-wsgi

install project dependencies

1.`$ sudo apt-get install python-pip`
1.`$ sudo pip install dependencies`

install postgres

1. `$ sudo apt-get install postgresql`

go to your developer console in google

1. add redirect and javascript origins links
1. download new client secrets file
1. modify the client secrets . json file

------ before changes------

*IP and SSH port

*52.42.124.225


*ssh port is 2200 as requested

*url


*http://ec2-52-42-124-225.us-west-2.compute.amazonaws.com/
*summary
*all software used for actual program is in requirements.txt (/var/www/catalog/catalog/requirements.txt)
*apache2
*wsgi
*git
*postgres
third party resources
*stackoverflow
*aws docs
*digital ocean
*github
*ubuntu forums
*askubuntu
*apache docs

linuxserver's People

Contributors

aubuchcl avatar

Watchers

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