This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###### development tools | |
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk | |
### Python packages | |
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib | |
### pip packages | |
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython |
sudo mkdir /etc/nginx/ssl
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
Country Name (2 letter code) [AU]: __
State or Province Name (full name) [Some-State]: __
Locality Name (eg, city) []: __
Organization Name (eg, company) [Internet Widgits Pty Ltd]: __
Organizational Unit Name (eg, section) []: __
When setting these options consider the following:
- How long is your average request?
- What is the maximum number of simultaneous visitors the site(s) get?
- How much memory on average does each child process consume?
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
In the case where you manually want to decorate a link with the linker parameter, i.e. the link is not a valid anchor link, or the final tracking page is accessed by user in a non direct way: File Download, Extension Installation, ect...
/**
* Returns the Google Analytics tracker linker parameter.
- Skip if already set up, check with:
sudo service ssh status
sudo apt-get install ssh
- Edit ssh config file with the lines below:
sudo vim /etc/ssh/sshd_config
PermitRootLogin no #Disable direct login from root
AllowUsers user1 user2 user3 #*Only* allow this users to connect
AllowTcpForwarding yes #Required to setup the tunnel, yes or commented out
PubkeyAuthentication yes #Enables public key authentication
Port 22 #Listening port of the server
- Create IAM Roles and Users for Use With CloudWatch Agent
- Make sure the AWS Systems Manager Agent is installed and running on the EC2 instance
- Check status:
sudo systemctl status amazon-ssm-agent
orsudo service amazon-ssm-agent status
- https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-setting-up.html?icmpid=docs_ec2_console
- Install and configure AWS CloudWatch Agent with SSM
-
Create GitHub repository in github and save the SSH repository url
-
Init git on server in code directory
git init
- Create SSH keys on the server
ssh-keygen -t rsa -b 4096 -C [email protected]
- Rename the key that doesn't end with
.pub
torepo-name.deploy.pem
OlderNewer