segfault/README.md

42 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

# segfault.net - A Server Centre Deployment
2022-07-28 16:18:23 +00:00
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:55:14 +00:00
SF_BASEDIR="$(pwd)" SF_SSH_PORT=2222 sfbin/sf up
2022-07-28 19:24:50 +00:00
```
2022-10-28 09:50:41 +00:00
Take a look at `provision/env.example` for a sample `.env` file.
The limits and constraints for all root servers are configured in `config/etc/sf/sf.conf`. It is possible to relax limits per individual root server by creating a file in `config/db/db-<LID>/limits.conf`. The <LID> is the ID of the server (type `echo $SF_LID` when logged in to the server). Alternatively it is possible to get the LID from the Root Server's name: `cat config/db/hn/hn2lid-<SF_HOSTNAME>`.
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
2023-06-22 10:53:28 +00:00
# GUI
[SFUI](https://github.com/messede-degod/SF-UI) is a companion project created by [@messede-degod](https://github.com/messede-degod/SF-UI). It provides a 'Remote Desktop' (X11/Gnome) to your Root Server. It is run as a Cloud Service by the community. [Try it](https://shell.segfault.net)!
2022-05-11 11:44:09 +00:00
---
2022-03-07 07:13:49 +00:00
Telegram: https://t.me/thcorg
2022-05-11 11:44:09 +00:00
Twitter: https://twitter.com/hackerschoice