-
Notifications
You must be signed in to change notification settings - Fork 47
Install Segfault Sever Centre
SkyperTHC edited this page Feb 9, 2023
·
7 revisions
You should only be here if you have already prepped your server for deployment. Read the AWS Deployment or Generic Deployment
Note: We use Route53 so that the user always connects to the nearest SSC. E.g. segfault.net resolves to us.segfault.net or de.segfault.net depending on your physical location. You likely wont need this.
Copy segfault source to /sec/src/ and install:
The following command will:
- Install all software (docker, curl, git, ..) onto the AWS
- Move the SSHD to port 64222 and assign Port 22 to the SSC.
- Create a random MASTER SEED.
- Configure the SSC (generate tor secrets, ssh-keys, ...)
- Replace ZZZ with your NordVPN Private Key or remove the line if NordVPN is not used.
- Set SF_FQDN= to whatever domain name you are using.
- Set SF_PACKAGES="MINI_BASE NET HACK" for a smaller deployment (1 GB instead of 16 GB).
Please refer to the list of all variables for more information.
SF_PACKAGES=ALL \
SF_BASEDIR=/sf \
SF_SEED="$(head -c 1024 /dev/urandom | tr -dc '[:alpha:]' | head -c 32)" \
SF_FQDN=mydomain.segfault.net \
SF_NORDVPN_PRIVATE_KEY=ZZZ \
SF_CRYPTOSTORM_CONFIG=XXX \
SF_MULLVAD_CONFIG=YYY \
provision/init-linux.shThe script will finish with an output similar to this one:
--> System's SSHD was in the way and got moved to 64222
--> Basedir : /sf
--> SF_SEED : RandomlyCreatedMasterSeed1234567
--> Password : segfault
--> SSH : ssh [email protected]
--> SSH (gsocket) : gsocket -s RandomSecret ssh [email protected]- Optional: Check out our WireGuard Docker Image and how to obtain the configuration strings for the VPN.
- Optional: Edit
.envand add the VPN keys. - Optional: Copy existing ssh keys to
/sf/config/etc/ssh/. - Edit
/sf/config/etc/sf.confand adjust the configuration. - Write down the SF_SEED. Do not store it on the server.
- Log in to your SSC (
ssh [email protected]) with password "segfault" (without parentheses).
Stopping:
cd /sec/src/segfault-abc
sfbin/sf downStarting:
cd /sec/src/segfault-abc
SF_SEED=RandomlyCreatedMasterSeed1234567 sfbin/sf upJoin us on Telegram if you have any questions or comments.