-
Notifications
You must be signed in to change notification settings - Fork 1
Hosting
2022-02-14 Signed up for a free year of AWS EC2. Then I did this...
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
https://console.aws.amazon.com/ec2/v2/home?region=us-east-1#Instances:
ubuntu-bionic-18.04-amd64-server-20211129
/dev/xvda1
54.83.104.232
/var/www/html/
chmod 400 ~/Documents/AWS/Key_AWS_EC2_20220214.pem
ssh -i ~/Documents/AWS/Key_AWS_EC2_20220214.pem [email protected]
scp -i ~/Documents/AWS/Key_AWS_EC2_20220214.pem /path/my-file.txt [email protected]:path/
sudo apt update
sudo apt upgrade
sudo apt install -y apache2
sudo systemctl start apache2.service
sudo systemctl enable apache2.service
sudo systemctl status apache2
curl -4 icanhazip.com
sudo apt install -y python3
cd /tmp
curl -O https://repo.anaconda.com/archive/Anaconda3-2021.11-Linux-x86_64.sh
bash Anaconda3-2021.11-Linux-x86_64.sh
source ~/.bashrc
conda update conda
conda install -c conda-forge vadersentiment
sudo apt upgrade postgresql
sudo adduser dashboard
sudo su - dashboard
cd ~
mkdir .ssh
chmod 700 .ssh
touch .ssh/authorized_keys
chmod 600 .ssh/authorized_keys
id
exit
#sudo dd if=/dev/zero of=/swapfile bs=128M count=32
#sudo chmod 600 /swapfile
#sudo mkswap /swapfile
#sudo swapon /swapfile
#sudo swapon -s
#sudo vi /etc/fstab
#sudo swapoff -a
#sudo vi /etc/fstab
##ADD: "/swapfile swap swap defaults 0 0"