Linux Tutorial | Matt Cooper - Open Source Support
Linux Tutorial | Matt Cooper - Open Source Support
Amazon AWS, Amazon S3

SFTP Server backed by Amazon S3 Bucket

Simple instructions to install an SFTP server on Amazon Linux backed with S3 Storage.

1. Launch Amazon Linux 2 instance (micro is sufficient)

2. Install and configure s3fs:

2.1 Install dependencies

sudo yum install automake fuse fuse-devel gcc-c++ git libcurl-devel libxml2-devel make openssl-devel

2.2 Compile and install s3fs:

git clone https://github.com/s3fs-fuse/s3fs-fuse.git
cd s3fs-fuse
./autogen.sh
./configure
make
sudo make install

3. Create and Mount S3 Bucket:

3.1 Create S3 Bucket:

Through AWS GUI

Continue reading

January 31, 2018by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon AWS, letsencrypt

letsencrypt – ImportError: No module named interface

To fix:

sudo rm -rf /opt/eff.org/

Then run e.g. renew:

sudo /opt/letsencrypt/certbot-auto renew --debug
January 10, 2018by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Amazon Linux, letsencrypt

Install certbot-auto Amazon Linux

1. Download latest version:

curl -O https://dl.eff.org/certbot-auto

2. Mod script:

chmod +x certbot-auto 

3. Move location:

mv certbot-auto /usr/local/bin/certbot-auto

4. Generate SSL

/usr/local/bin/certbot-auto certonly --standalone -d example.com

5. New certificates will be generated and saved here:

/etc/letsencrypt/live/

November 15, 2017by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
ESXi, vmware

Clone Virtual Machine ESXi – vmkfstools

1. Power off Virtual Machine to be cloned

2. Create a new directory within the datastore:

mkdir /vmfs/volumes/datastore/clone_name

3. Clone a vmdk to the new directory using vmkfstools:

vmkfstools -i /vmfs/volumes/datastore/sourcevm/name.vmdk /vmfs/volumes/datastore/clone_name/clone.vmdk

4. Create New Virtual Machine:

  • New VM
  • Custom
  • Name e.g. CLONE-NAME
  • Datastore
  • Virtual Machine 8
  • Guest OS e.g. Windows Server 2012 r2
  • CPUs
  • Memory
  • Network
  • SCSI Controller (LSI Logic SAS)
  • Use an existing virtual disk (Browse and select clone .vmdk file from above)
  • Virtual Device Node (SCSI 0:0)
  • Finish

5. Power on Virtual Machine

6. Update hostname and IP address

September 29, 2017by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Command line Tutorial

Get public IP from command

curl ipinfo.io/ip

September 27, 2017by Matt Cooper
FacebookTwitterPinterestGoogle +Stumbleupon
Page 10 of 35« First...«89101112»2030...Last »

About me

Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@linuxtutorial.co.uk

Recent Comments

  • Andrew on Export list of Amazon EC2 Instances to CSV
  • Matt Cooper on Proxmox – add a second hard drive to node for Backups
  • karis on Proxmox – add a second hard drive to node for Backups
  • Matt Cooper on Remote MySQL Database – Slow Connection
  • Matt Cooper on Bash script to send public IP address to Email

Categories

  • AdvancedTomato
  • Amazon AWS
  • Amazon Linux
  • Amazon S3
  • Apache
  • Apache Kafka
  • Backup Tutorial
  • Bash Scripting
  • Centos Tutorial
  • CloudFlare
  • Command line Tutorial
  • CPanel Troubleshooting
  • CPanel Tutorial
  • Debian Troubleshooting
  • Debian Tutorial
  • DKIM
  • Docker
  • EC2
  • ESXi
  • Faildows
  • Google Adwords
  • Google Analytics
  • Google Chromebook
  • Google Mail
  • graylog
  • IAM
  • imapsync
  • iRedmail Tutorial
  • ISPConfig3 Tutorial
  • Java
  • ldap
  • letsencrypt
  • MyDNS
  • MySQL Troubleshooting
  • MySQL Tutorial
  • Nest Install
  • Netbeans
  • Nginx
  • Nginx Troubleshooting
  • openssl
  • PCI Compliance
  • Percona
  • PHP
  • Plex Media Server Tutorial
  • Postfix
  • Proxmox Tutorial
  • Pure FTPd
  • Resourcespace Tutorial
  • Route 53
  • Rsync Tutorial
  • Security
  • Smoothwall Troubleshooting
  • Smoothwall Tutorial
  • SSH
  • tcpdump
  • Thunderbird
  • Tomcat Troubleshooting
  • Ubuntu Tutorial
  • Uncategorized
  • Unison
  • vmware
  • vzdump
  • WHM
  • Wireshark
  • Wordpress Troubleshooting
  • WordPress Tutorial

“See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." Linus Torvalds

© 2017 copyright www.linuxtutorial.co.uk // All rights reserved