sublime

sublime shortcuts

bash

Bash shortcuts

Enable color prompt

Edit .bashrc, add following

Pterodactyl

Create CS:GO Server in Pterodactyl

Game Server Control Panel

Pterodactyl is an Open Source Game server control panel created in PHP Laravel framework.

https://github.com/Pterodactyl/Panel

https://pterodactyl.io

Game Server Install Logs

Here “0d75760c-d091-4835-8895-1e80b0f16032” is a random name for each servers. You can determine exact folder by checking the creation date.

Pterodactyl Game Servers

Create CS:GO Server in Pterodactyl

Go to Admin > Servers

Pterodactyl Game Servers

Click “Create New” button. On next screen

pterodactyl create game server

Most of the settings are self explanatory, here are some of the important settings.

Server Owner = select a existing user from drop down.
Default Allocation = this is server IP:Port combination. If nothing shows for you, you need to add allocation under your Node settings. Admin > Nodes > Allocation
Memory = 4000 MB
Swap = 4000 MB
Disk Space = 20000 MB (game use 16 GB disk space, so give it 20 GB to be safe, if you don’t give enough disk space, game won’t start).
CPU Limit = 0

Service Configuration

Service = Source Engine
Option = Custom Source Engine Game

Startup Configuration

Game ID = 740
Game Name = csgo

Click “Create Server”

This take sever minutes depending on your internet speed as it need to download 16 GB of files. You can see logs for download in folder.

You can determine RANDOM_FOLDER_NAME by checking the date, so you know correct folder name for the newly created server.

One game server is started, it won’t allow you to join as it is in LAN mode. Before anyone can join, you need to create Token at

http://steamcommunity.com/dev/managegameservers

Add it to your csgo/cfg/game.cfg file, this can be done in file manager.

This need to be done as user (not admin, click exit admin button on right-top menu). Now restart game sever, you will be able to connect.

Transnational Email Providers

Amazon Simple Email Service

$0.10 per 1,000 emails sent. 65K free emails per month if you are hosted on EC2.

Disadvantage: You can only sent from @your-domain.extn, if you have a SAS application and need to sent from some other email address, you need domain added to SES and verified.

https://aws.amazon.com/ses/pricing/

ElasticEmail

Free plan allows you to send 150K emails per month.

Disadvantage: All outgoing email must include physical address.

https://elasticemail.com

MailGun

First 10K emails for Free every month. Pay as you go pricing. After 10K free email, you will be charged $0.00050 per email.

https://www.mailgun.com

MailJet

Free account allow you to send 6,000/- email per month. Monthly plan start at $7.49 per month for 30k emails.

https://www.mailjet.com

SparkPost

50K Emails for $9 per month. If you are on AWS, you can get it cheaper from marketplace.

https://www.sparkpost.com

SendGrid

40K email per month for $9.95 per month.

https://sendgrid.com

SendGrid API key

Configure postfix to relay mails using SendGrid

To use postfix to send email using sendgrid, you first you need to install postfix on your server. Edit main.cf

Find

Delete the line. Go to end of the file and add following

Create API Key in SendGrid

Next you need to create an API key in sendgrid. To do this, go to Settings > API Key.

https://app.sendgrid.com/settings/api_keys

SendGrid API key

Click “Create API Key” button.

Sendgrid create api key

For this test, i just give the new API key Full Access. On next page you will get API key. Copy it and keep it safe as you won’t be seeing it again.

sendgrid api key created

Now you have the SendGrid.com API key, that you can use with postfix.

Add API Key to postfix

Edit file

Add

Here is what i have

[email protected]:~# cat /etc/postfix/sasl_passwd
[smtp.sendgrid.net]:587 apikey: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
[email protected]:~#

Now run

To test email, run

fping

fping can be used to ping multiple IP and get report.

If you just want to show if hosts are up or not

DirectAdmin CustomBuild versions.txt is getting old

I got following email from DirectAdmin server.

New Message: CustomBuild versions.txt is getting old on s1.serverok.in

A new message or response with subject:

CustomBuild versions.txt is getting old on s1.serverok.in

has arrived for you to view.
Follow this link to view it:

http://s1.serverok.in:2222/CMD_TICKET?action=view&number=000000967&type=ticket

================================
Automated Message Generated by DirectAdmin 1.52.1

Do Not Reply.

DirectAdmin is telling you to update your server.

You need to login to SSH as user root. Then run following commands.