2.5 KiB
2.5 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 Groups:- Right click on the security group used by your instance and:
- Click
Edit inbound rules- Add a rule for
HTTP - Add a rule for
SSH
- Add a rule for
- Click
- Again, right click on the security group used by your instance and:
- Click
Edit outbound rules- Add a rule for
HTTP - Add a rule for
HTTPS
- Add a rule for
- Click
- Right click on the security group used by your instance and:
- 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 test user foo account and public_html folder
sudo adduser foosudo passwd foosudo mkdir /home/foo/public_htmlsudo chown foo:foo /home/foo/public_htmlsudo chmod 755 /home/foosudo chmod 755 /home/foo/public_html
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