mirror of
https://github.com/tildeclub/tilde.club.git
synced 2026-06-25 01:09:24 +00:00
2.2 KiB
2.2 KiB
Preamble
This document will talk you through setting up your own tilde.club flavoured server; the example domain.club is used below.
Prerequisites
- An Amazon AWS account, though any other cloud provider would work just as well.
- Your own domain
- A thirst for the unknown
Create an instance on Amazon EC2
- On AWS click
Launch Instance - Select
Amazon Linux AMI - Select
t2.micro - Select the (recommended) thingy in the popup
- Click
Launch - In
Security Groupsright-click:Edit inbound rules->Add Rule->HTTPandSSHEdit outbound rules->Add Rule->HTTPandHTTPS
- In
Elastic IPs:- Click
Allocate New Address - Choose
VPCon the dropdown (it won't work otherwise, I forget why) - Right click,
Associate Address - Choose the instance you just created
- Click
- Create an
A recordat your domain name registrar to point at the Elastic IP then wait for those changes to propagate.
NOTE This could take up to 48 hours, use dig domain.club +nostats +nocomments +nocmd to see if you're in business.
SSH into your shiny instance using your pem file
ssh -i security.pem ec2-user@domain.clubyum updatesudo yum remove javasudo yum install git
Change hostname
sudo vim /etc/hostschangelocalhost.localdomaintodomain.clubsudo vim /etc/sysconfig/networkchangelocalhost.localdomaintodomain.clubsudo reboot
Allow passwords to log in
sudo vim /etc/ssh/sshd_configchangePasswordAuthenticationtoyessudo service sshd restart
Create a user bill with correct permissions
sudo adduser billsudo passwd billmkdir /home/bill/public_htmlsudo chmod 755 /home/bill
Install Apache
sudo yum install httpdsudo /etc/init.d/httpd startsudo vim /etc/httpd/conf/httpd.conf:- comment out
UserDir disabled - uncomment
UserDir public_html - uncomment the
Control access to UserDir directoriesblock beginning with<Directory /home/*/public_html>
- comment out
sudo /etc/init.d/httpd restart
Install other software
yum install tmuxyum install muttyum install irssiyum install treeyum install lynxyum install finger- etc