CloudFormation for Create FTP(vsftpd) with Ubuntu Server

Resources: AppNode: Type: AWS::EC2::Instance Properties: InstanceType: t2.micro ImageId: ami-81cefcfd KeyName: Ubuntu SecurityGroups: – !Ref AppNodeSG UserData: !Base64 | #!/bin/bash sudo su # install ftp service apt-get update -qq apt-get install vsftpd -y # backup ftp config file cp /etc/vsftpd.conf /etc/vsftpd.conf.orig # variable public_ip=$(curl ipinfo.io/ip) ftp_path=/var/ftp ftp_user=user ftp_password=password # add user for access ftp useradd -m […]

Continue Reading

Install Docker and Enable Remote API on Ubuntu

Download Docker apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable” apt-get update apt-cache policy docker-ce apt-get install -y docker-ce Enable Remote API if [ ! -d “/etc/systemd/system/docker.service.d” ]; then mkdir /etc/systemd/system/docker.service.d fi printf “# /etc/systemd/system/docker.service.d/override.conf\n[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376\n” > /etc/systemd/system/docker.service.d/startup_options.conf systemctl daemon-reload […]

Continue Reading