A credit card is needed for signup the account, see support types below.
AWS accounts include 12 months of free tier access, including use of Amazon EC2, Amazon S3, and Amazon DynamoDB.
We will create an Arch Linux EC2 instance in this article, and setup a V2Ray service to run server for Shadowsocks and MTProto.
It's not only Amazon that provides one-year free VPS, but also Google. Maybe I'll cover on that later.
Visit this link (from ArchWiki) and choose an image by region.
For example if you want an instance in Singapore, so be the
ap-southeast-2. Click on the "ami-xxxx" link and go on.
There would be only one free type so we actually have no choice, just skip to step 6.
Well, I don't know how unsafe would it be if we allow all traffic from anywhere. If you care about security, read the documentations and make it secure.
ArchVPS.pem private key file is quite important, we download it to
~/.ssh/ArchVPS.pem, or anywhere considered as safe and not easy to be cleared.
We can see the instance here after launched:
Now we've got the IP address of the instance, run this command to connect:
Windows users might need PuTTY or similiar tool。
ssh -i ~/.ssh/ArchVPS.pem firstname.lastname@example.org
If you get the warning below, run
chmod 400 ~/.ssh/ArchVPS.pem and retry.
If you get this, just say yes to let SSH know the host.
The authenticity of host '*.*.*.* (*.*.*.*)' can't be established.
Now you should have already logged into the instance as root, run
pacman -Syyuu and then reboot to make sure this Arch Linux is up to date.
First of all, here comes a configuration template.
Do NOT read it online, download or just copy and paste it to your favorite editor. For example in VS Code, switch to "JSON with Comments" language mode, and use folding to understand the hierarchy better.
These are what you need to know about in the
inbounds part of template, which would also be used in client configuration:
- MTProto for Telegram
- settings -> users -> secret
You could leave all the other values unchanged, except these two, you have to complete them on your own:
- Write/generate a password for Shadowsocks, a password more than 16 characters is recommended;
- Generate a user secret for MTProto, run
openssl rand -hex 16locally, or on Arch VPS.
Now you've got a complete and unique configuration. Connect to the instance, run these commands to change configuration to your own.
pacman -S v2ray # install V2Ray
In nano editor, paste your own configuration by right-click menu or whatever,
Ctrl + O and
Enter to save,
Ctrl + X to exit.
systemctl enable v2ray.service
Now the service should be running, to check status run
systemctl status v2ray.service.