GithubHelp home page GithubHelp logo

linuxserversetup's Introduction

Tirsvad CMS - Linux Server Setup

Quick webserver setup.

Getting Started

Need a server with debian linux compatibel distibution and root access.

I am using a Linode VP server account. Get one here from 5$ a month https://www.linode.com/?r=a60fb437acdf27a556ec0474b32283e9661f2561

First step

debian

apt-get update
locale-gen && export LC_ALL="en_US.UTF-8" && apt-get -y install curl

Default server setup:

curl --output serverSetup.tar.gz -L https://api.github.com/repos/TirsvadCMS-Scripts/LinuxServerSetup/tarball
tar -xzf serverSetup.tar.gz "$(tar -tzf serverSetup.tar.gz | head -1 )src" --strip 2
cd LinuxServerSetup
python3 install.py --strip-components 2

Manuel server setup:

curl --output serverSetup.tar.gz -L https://api.github.com/repos/TirsvadCMS-Scripts/LinuxServerSetup/tarball
tar -xzf serverSetup.tar.gz "$(tar -tzf serverSetup.tar.gz | head -1 )src" --strip 2
cd LinuxServerSetup

change settings.sh file as needed. If not, you will get a default server.

python3 install.py --strip-components 2
nano conf/settings.yaml
cd /root/linuxServerSetup && . .env/bin/activate && python3 serverSetup.py

Example of adding settings file to script

curl -L https://api.github.com/repos/TirsvadCLI-Tools/LinuxServerSetup/tarball | tar zx -C /root/ --strip-components 2
cd LinuxServerSetup
URL=https://github.com/TirsvadCMS-Bashscripts/LinuxServerSetupDefaultConfig/tarball/master
./setup.sh --url $URL --strip-components 2

Features

  • Hardness server
    • ssh
      • option remove password login and root login
    • firewall enabled (nftables)
    • Fail2ban
    • optional
      • create a user with sudo priviliged
  • Nginx
    • compiled edition with RTMP for live stream / broadcasting
    • stunnel for RTPMS workaround. Facebook stream using secure connection via port 443.
  • Certbot (LetsEncrypt)
    • adding ssl certificate

TODO

  • rtmp user access via django
    • access right for yt, fb and others streaming services

linuxserversetup's People

Contributors

tirsvad avatar

Watchers

James Cloos 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.