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
- ssh
- 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
Release files for LinuxServerSetup-TirsvadCLI 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| LinuxServerSetup-TirsvadCLI-0.3.tar.gz | 27.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| LinuxServerSetup_TirsvadCLI-0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.0 kB
Release files / LinuxServerSetup-TirsvadCLI-0.3.tar.gz
| Download URL | LinuxServerSetup-TirsvadCLI-0.3.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1dfe17f0fc0365d5a364884c6ab62755b5376bf9e5fae0614acf8878623417
|
|
BLAKE2b-256 checksum How to use checksums |
3519d5c27524db23b4a08cdcb8e93144cf6936d3d171ce68db3fc86ce1f9e7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3
|
Release files / LinuxServerSetup_TirsvadCLI-0.3-py3-none-any.whl
| Download URL | LinuxServerSetup_TirsvadCLI-0.3-py3-none-any.whl |
|---|---|
| Size | 31.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2540e1da92ab794a27523e6f4d94e69a09fcb3ec9afea90c2753ccbf28882d25
|
|
BLAKE2b-256 checksum How to use checksums |
5179a8baf044e6dc3e846ebf695151c34d97b49be962a405edb68db18449fb95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.3
|