The Basic How-tos

This article aims to record how to deal with the things that must be done however occur rarely.

Softwares

Install Mosh To Improve Command Line User Experience

In the case of unstable Internet connection or high delay, using ssh is such a pain that a word comes up after you typed it for several seconds. To solve this problem, mosh is a better choice because it’s based on UDP.

In non-US areas, some extra bash settings should be done.

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

Set an Appropriate Permission for the PEM File

chmod 400 pem_file.pem

Install the EPEL Repo

Solution 1:

sudo yum install epel-release
sudo yum repolist

Solution 2:

cd /tmp
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
ls *.rpm
sudo yum install epel-release-latest-7.noarch.rpm
sudo yum repolist

AWS

AWS Budgets

For free tier users:

  • Make sure the e-mail left was the one commonly checked by yourself.
  • Set the budget amount as 0.8 or any number under $1 to avoid generating extra fees.

Safety Strategies

For personal devlopers, white list strategy, i.e. only designated IP addresses can reach the server, secures your server from malicious connection requests.

Root User Settings

Some of the AMIs installed from market place doesn’t provide default root ssh login, so setting a root user is kind of a necessity.

sudo su
passwd root

To remove the temporary root password,

passwd –d root

Leave a Reply

Close Menu