segfault/README.md

37 lines
1.3 KiB
Markdown
Raw Normal View History

2022-07-28 16:18:23 +00:00
# segfault.net - A Server Centre Depoyment
2022-09-18 18:53:10 +00:00
This page is for server administrators and those folks who like to run their own Segfault.net Server Centre (SSC). Running your own SSC allows you to offer root-servers to other users.
2022-07-28 16:18:23 +00:00
2022-07-28 17:09:56 +00:00
If this is not what you want and you just like to get a root-shell on your own server then please go to [https://www.thc.org/segfault](http://www.thc.org/segfault) or try our demo deployment:
2022-07-28 16:18:23 +00:00
```shell
ssh root@segfault.net # the password is 'segfault'
```
---
## Deploy a Server Centre:
```shell
2022-08-10 14:28:22 +00:00
git clone --depth 1 https://github.com/hackerschoice/segfault.git && \
2022-07-28 17:38:42 +00:00
cd segfault && \
2022-10-16 18:53:30 +00:00
export SF_SEED="$(head -c 1024 /dev/urandom | tr -dc '[:alpha:]' | head -c 32)" && \
2022-09-18 18:53:10 +00:00
echo "SF_SEED=${SF_SEED}" && \
2022-10-16 18:53:30 +00:00
make
2022-07-28 19:10:26 +00:00
```
2022-05-11 11:44:09 +00:00
2022-09-18 18:53:10 +00:00
To start execute:
2022-07-28 19:24:50 +00:00
```
2022-10-16 18:53:30 +00:00
SF_BASEDIR=$(pwd) SF_SSH_PORT=2222 sfbin/sf up
2022-07-28 19:24:50 +00:00
```
2022-09-18 18:53:10 +00:00
Take a look at `provision/env.example` for a sample `.env` file. Configure the test of the variables in `config/etc/sf/sf.conf`.
2022-07-28 19:46:59 +00:00
2022-09-18 18:53:10 +00:00
# Provisioning
2022-07-28 19:46:59 +00:00
2022-09-18 18:56:37 +00:00
Provisioning turns a freshly created Linux (a bare minimum Installation) into a SSC. It's how we 'ready' a newly launched AWS Instance for SSC deployment. You likely dont ever need this but [we wrote it down anyway](https://github.com/hackerschoice/segfault/wiki/AWS-Deployment).
2022-07-28 19:24:50 +00:00
2022-05-11 11:44:09 +00:00
---
2022-03-07 07:13:49 +00:00
2022-05-11 11:44:09 +00:00
Telegram: https://t.me/thcorg
Twitter: https://twitter.com/hackerschoice