genericguy399
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    COSC349 Assignment 1 === ###### tags: `cosc349` (http://www.cs.otago.ac.nz/cosc349/assignments/COSC349A1.pdf) # Table of Contents [TOC] ## Marking Schedule ![](https://i.imgur.com/gRmh6pL.png) ## Interaction of Virtual Machines The 3 Virtual Machine(VM) in our assignment are ubuntu/xenial64 [Vagrant Boxs](https://www.vagrantup.com/docs/boxes.html). ## Loading Times The load time for the 3 VMs is currently about 10mins ## Getting Started type the following command to initial the vagrantfile ### [vagrant init](https://www.vagrantup.com/intro/getting-started/) ```gherkin= $ vagrant init ``` Once completed the follwing message should appear ```gherkin= A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. ``` The initial vagrantfile contains the following information ```gherkin= # -*- mode: ruby -*- # vi: set ft=ruby : # All Vagrant configuration is done below. The "2" in Vagrant.configure # configures the configuration version (we support older styles for # backwards compatibility). Please don't change it unless you know what # you're doing. Vagrant.configure("2") do |config| # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://vagrantcloud.com/search. config.vm.box = "base" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs # `vagrant box outdated`. This is not recommended. # config.vm.box_check_update = false # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine. In the example below, # accessing "localhost:8080" will access port 80 on the guest machine. # NOTE: This will enable public access to the opened port # config.vm.network "forwarded_port", guest: 80, host: 8080 # Create a forwarded port mapping which allows access to a specific port # within the machine from a port on the host machine and only allow access # via 127.0.0.1 to disable public access # config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" # Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network "private_network", ip: "192.168.33.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on # your network. # config.vm.network "public_network" # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. # config.vm.synced_folder "../data", "/vagrant_data" # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # # config.vm.provider "virtualbox" do |vb| # # Display the VirtualBox GUI when booting the machine # vb.gui = true # # # Customize the amount of memory on the VM: # vb.memory = "1024" # end # # View the documentation for the provider you are using for more # information on available options. # Enable provisioning with a shell script. Additional provisioners such as # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the # documentation for more information about their specific syntax and use. # config.vm.provision "shell", inline: <<-SHELL # apt-get update # apt-get install -y apache2 # SHELL end ``` ## Useful Vagrant Commands #### Command: [vagrant reload](https://https://www.vagrantup.com/docs/cli/reload.html) [name|id] The equivalent of running a halt followed by an up. [](https://) This command is usually required for changes made in the Vagrantfile to take effect. After making any modifications to the Vagrantfile, a reload should be called. #### Command: vagrant provision [vm-name] Runs any configured provisioners against the running Vagrant managed machine. This command is a great way to quickly test any provisioners, and is especially useful for incremental development. https://www.vagrantup.com/docs/cli/init.html # AWS ## Setting up AWS Originally I had hoped to actually do the VM within the AWS cloud system and I used this [blog](https://https://blog.wimwauters.com/vagrant-aws-launch-multiple-instances/) to help create a template for the Vagrant file ```gherkin= ssh -i ~/349/vagrant-multivm-master/Assign_1.pem.txt ec2-user@54.87.163.37 Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '54.87.163.37' (ECDSA) to the list of known hosts. __| __|_ ) _| ( / Amazon Linux 2 AMI ___|\___|___| https://aws.amazon.com/amazon-linux-2/ 4 package(s) needed for security, out of 12 available Run "sudo yum update" to apply all updates. [ec2-user@ip-172-31-34-223 ~]$ sudo yum update Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 2.4 kB 00:00 Resolving Dependencies --> Running transaction check ---> Package amazon-linux-extras.noarch 0:1.6.8-1.amzn2 will be updated ---> Package amazon-linux-extras.noarch 0:1.6.9-1.amzn2 will be an update ---> Package amazon-linux-extras-yum-plugin.noarch 0:1.6.8-1.amzn2 will be updated ---> Package amazon-linux-extras-yum-plugin.noarch 0:1.6.9-1.amzn2 will be an update ---> Package amazon-ssm-agent.x86_64 0:2.3.372.0-1.amzn2 will be updated ---> Package amazon-ssm-agent.x86_64 0:2.3.662.0-1.amzn2 will be an update ---> Package curl.x86_64 0:7.61.1-9.amzn2.0.1 will be updated ---> Package curl.x86_64 0:7.61.1-11.amzn2.0.2 will be an update ---> Package ec2-hibinit-agent.noarch 0:1.0.0-3.amzn2 will be updated ---> Package ec2-hibinit-agent.noarch 0:1.0.0-4.amzn2 will be an update ---> Package ec2-instance-connect.noarch 0:1.1-9.amzn2 will be updated ---> Package ec2-instance-connect.noarch 0:1.1-10.amzn2 will be an update ---> Package kernel.x86_64 0:4.14.138-114.102.amzn2 will be installed ---> Package libcurl.x86_64 0:7.61.1-9.amzn2.0.1 will be updated ---> Package libcurl.x86_64 0:7.61.1-11.amzn2.0.2 will be an update ---> Package libssh2.x86_64 0:1.4.3-12.amzn2.2 will be updated ---> Package libssh2.x86_64 0:1.4.3-12.amzn2.2.1 will be an update ---> Package nss-softokn.x86_64 0:3.36.0-5.amzn2 will be updated ---> Package nss-softokn.x86_64 0:3.36.0-5.amzn2.0.1 will be an update ---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.amzn2 will be updated ---> Package nss-softokn-freebl.x86_64 0:3.36.0-5.amzn2.0.1 will be an update ---> Package systemtap-runtime.x86_64 0:3.2-4.amzn2.0.2 will be updated ---> Package systemtap-runtime.x86_64 0:4.1-0.20190208git4e76869512d2.amzn2.0.2 will be an update --> Processing Dependency: libjson-c.so.2()(64bit) for package: systemtap-runtime-4.1-0.20190208git4e76869512d2.amzn2.0.2.x86_64 --> Running transaction check ---> Package json-c.x86_64 0:0.11-4.amzn2.0.3 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: kernel x86_64 4.14.138-114.102.amzn2 amzn2-core 20 M Updating: amazon-linux-extras noarch 1.6.9-1.amzn2 amzn2-core 36 k amazon-linux-extras-yum-plugin noarch 1.6.9-1.amzn2 amzn2-core 9.6 k amazon-ssm-agent x86_64 2.3.662.0-1.amzn2 amzn2-core 15 M curl x86_64 7.61.1-11.amzn2.0.2 amzn2-core 343 k ec2-hibinit-agent noarch 1.0.0-4.amzn2 amzn2-core 13 k ec2-instance-connect noarch 1.1-10.amzn2 amzn2-core 21 k libcurl x86_64 7.61.1-11.amzn2.0.2 amzn2-core 291 k libssh2 x86_64 1.4.3-12.amzn2.2.1 amzn2-core 135 k nss-softokn x86_64 3.36.0-5.amzn2.0.1 amzn2-core 318 k nss-softokn-freebl x86_64 3.36.0-5.amzn2.0.1 amzn2-core 225 k systemtap-runtime x86_64 4.1-0.20190208git4e76869512d2.amzn2.0.2 amzn2-core 442 k Installing for dependencies: json-c x86_64 0.11-4.amzn2.0.3 amzn2-core 31 k Transaction Summary ================================================================================ Install 1 Package (+1 Dependent package) Upgrade 11 Packages Total download size: 37 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/13): amazon-linux-extras-1.6.9-1.amzn2.noarch.rpm | 36 kB 00:00 (2/13): amazon-linux-extras-yum-plugin-1.6.9-1.amzn2.noarc | 9.6 kB 00:00 (3/13): curl-7.61.1-11.amzn2.0.2.x86_64.rpm | 343 kB 00:00 (4/13): ec2-hibinit-agent-1.0.0-4.amzn2.noarch.rpm | 13 kB 00:00 (5/13): ec2-instance-connect-1.1-10.amzn2.noarch.rpm | 21 kB 00:00 (6/13): json-c-0.11-4.amzn2.0.3.x86_64.rpm | 31 kB 00:00 (7/13): amazon-ssm-agent-2.3.662.0-1.amzn2.x86_64.rpm | 15 MB 00:00 (8/13): libcurl-7.61.1-11.amzn2.0.2.x86_64.rpm | 291 kB 00:00 (9/13): libssh2-1.4.3-12.amzn2.2.1.x86_64.rpm | 135 kB 00:00 (10/13): nss-softokn-3.36.0-5.amzn2.0.1.x86_64.rpm | 318 kB 00:00 (11/13): nss-softokn-freebl-3.36.0-5.amzn2.0.1.x86_64.rpm | 225 kB 00:00 (12/13): systemtap-runtime-4.1-0.20190208git4e76869512d2.a | 442 kB 00:00 (13/13): kernel-4.14.138-114.102.amzn2.x86_64.rpm | 20 MB 00:00 -------------------------------------------------------------------------------- Total 61 MB/s | 37 MB 00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libssh2-1.4.3-12.amzn2.2.1.x86_64 1/24 Updating : libcurl-7.61.1-11.amzn2.0.2.x86_64 2/24 Updating : curl-7.61.1-11.amzn2.0.2.x86_64 3/24 Installing : json-c-0.11-4.amzn2.0.3.x86_64 4/24 Updating : nss-softokn-freebl-3.36.0-5.amzn2.0.1.x86_64 5/24 Updating : amazon-linux-extras-1.6.9-1.amzn2.noarch 6/24 Updating : amazon-linux-extras-yum-plugin-1.6.9-1.amzn2.noarch 7/24 Updating : nss-softokn-3.36.0-5.amzn2.0.1.x86_64 8/24 Updating : systemtap-runtime-4.1-0.20190208git4e76869512d2.amzn2.0. 9/24 ec2-instance-connect:x:998:996::/home/ec2-instance-connect:/sbin/nologin Updating : ec2-instance-connect-1.1-10.amzn2.noarch 10/24 Updating : amazon-ssm-agent-2.3.662.0-1.amzn2.x86_64 11/24 Installing : kernel-4.14.138-114.102.amzn2.x86_64 12/24 Updating : ec2-hibinit-agent-1.0.0-4.amzn2.noarch 13/24 Cleanup : ec2-instance-connect-1.1-9.amzn2.noarch 14/24 Cleanup : curl-7.61.1-9.amzn2.0.1.x86_64 15/24 Cleanup : libcurl-7.61.1-9.amzn2.0.1.x86_64 16/24 Cleanup : nss-softokn-3.36.0-5.amzn2.x86_64 17/24 Cleanup : amazon-linux-extras-yum-plugin-1.6.8-1.amzn2.noarch 18/24 Cleanup : ec2-hibinit-agent-1.0.0-3.amzn2.noarch 19/24 Cleanup : amazon-linux-extras-1.6.8-1.amzn2.noarch 20/24 Cleanup : nss-softokn-freebl-3.36.0-5.amzn2.x86_64 21/24 Cleanup : libssh2-1.4.3-12.amzn2.2.x86_64 22/24 Cleanup : systemtap-runtime-3.2-4.amzn2.0.2.x86_64 23/24 Cleanup : amazon-ssm-agent-2.3.372.0-1.amzn2.x86_64 24/24 Verifying : nss-softokn-3.36.0-5.amzn2.0.1.x86_64 1/24 Verifying : amazon-linux-extras-1.6.9-1.amzn2.noarch 2/24 Verifying : nss-softokn-freebl-3.36.0-5.amzn2.0.1.x86_64 3/24 Verifying : ec2-hibinit-agent-1.0.0-4.amzn2.noarch 4/24 Verifying : kernel-4.14.138-114.102.amzn2.x86_64 5/24 Verifying : curl-7.61.1-11.amzn2.0.2.x86_64 6/24 Verifying : amazon-ssm-agent-2.3.662.0-1.amzn2.x86_64 7/24 Verifying : systemtap-runtime-4.1-0.20190208git4e76869512d2.amzn2.0.2.x86_64 8/24 Verifying : ec2-instance-connect-1.1-10.amzn2.noarch 9/24 Verifying : amazon-linux-extras-yum-plugin-1.6.9-1.amzn2.noarch 10/24 Verifying : libcurl-7.61.1-11.amzn2.0.2.x86_64 11/24 Verifying : json-c-0.11-4.amzn2.0.3.x86_64 12/24 Verifying : libssh2-1.4.3-12.amzn2.2.1.x86_64 13/24 Verifying : ec2-hibinit-agent-1.0.0-3.amzn2.noarch 14/24 Verifying : amazon-ssm-agent-2.3.372.0-1.amzn2.x86_64 15/24 Verifying : nss-softokn-3.36.0-5.amzn2.x86_64 16/24 Verifying : systemtap-runtime-3.2-4.amzn2.0.2.x86_64 17/24 Verifying : nss-softokn-freebl-3.36.0-5.amzn2.x86_64 18/24 Verifying : libcurl-7.61.1-9.amzn2.0.1.x86_64 19/24 Verifying : libssh2-1.4.3-12.amzn2.2.x86_64 20/24 Verifying : curl-7.61.1-9.amzn2.0.1.x86_64 21/24 Verifying : amazon-linux-extras-1.6.8-1.amzn2.noarch 22/24 Verifying : ec2-instance-connect-1.1-9.amzn2.noarch 23/24 Verifying : amazon-linux-extras-yum-plugin-1.6.8-1.amzn2.noarch 24/24 Installed: kernel.x86_64 0:4.14.138-114.102.amzn2 Dependency Installed: json-c.x86_64 0:0.11-4.amzn2.0.3 Updated: amazon-linux-extras.noarch 0:1.6.9-1.amzn2 amazon-linux-extras-yum-plugin.noarch 0:1.6.9-1.amzn2 amazon-ssm-agent.x86_64 0:2.3.662.0-1.amzn2 curl.x86_64 0:7.61.1-11.amzn2.0.2 ec2-hibinit-agent.noarch 0:1.0.0-4.amzn2 ec2-instance-connect.noarch 0:1.1-10.amzn2 libcurl.x86_64 0:7.61.1-11.amzn2.0.2 libssh2.x86_64 0:1.4.3-12.amzn2.2.1 nss-softokn.x86_64 0:3.36.0-5.amzn2.0.1 nss-softokn-freebl.x86_64 0:3.36.0-5.amzn2.0.1 systemtap-runtime.x86_64 0:4.1-0.20190208git4e76869512d2.amzn2.0.2 Complete! ``` > I choose a lazy person to do a hard job. Because a lazy person will find an easy way to do it. [name=Bill Gates] ```gherkin= [ec2-user@ip-172-31-34-223 ~]$ sudo yum install -y httpd24 php56 Loaded plugins: extras_suggestions, langpacks, priorities, update-motd amzn2-core | 2.4 kB 00:00:00 No package httpd24 available. No package php56 available. Error: Nothing to do [ec2-user@ip-172-31-34-223 ~]$ sudo yum install -y httpd php Loaded plugins: extras_suggestions, langpacks, priorities, update-motd Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.4.39-1.amzn2.0.1 will be installed --> Processing Dependency: httpd-tools = 2.4.39-1.amzn2.0.1 for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: httpd-filesystem = 2.4.39-1.amzn2.0.1 for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: system-logos-httpd for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: mod_http2 for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: httpd-filesystem for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.39-1.amzn2.0.1.x86_64 --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.39-1.amzn2.0.1.x86_64 ---> Package php.x86_64 0:5.4.16-45.amzn2.0.6 will be installed --> Processing Dependency: php-cli(x86-64) = 5.4.16-45.amzn2.0.6 for package: php-5.4.16-45.amzn2.0.6.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.16-45.amzn2.0.6 for package: php-5.4.16-45.amzn2.0.6.x86_64 --> Running transaction check ---> Package apr.x86_64 0:1.6.3-5.amzn2.0.2 will be installed ---> Package apr-util.x86_64 0:1.6.1-5.amzn2.0.2 will be installed --> Processing Dependency: apr-util-bdb(x86-64) = 1.6.1-5.amzn2.0.2 for package: apr-util-1.6.1-5.amzn2.0.2.x86_64 ---> Package generic-logos-httpd.noarch 0:18.0.0-4.amzn2 will be installed ---> Package httpd-filesystem.noarch 0:2.4.39-1.amzn2.0.1 will be installed ---> Package httpd-tools.x86_64 0:2.4.39-1.amzn2.0.1 will be installed ---> Package mailcap.noarch 0:2.1.41-2.amzn2 will be installed ---> Package mod_http2.x86_64 0:1.15.1-1.amzn2 will be installed ---> Package php-cli.x86_64 0:5.4.16-45.amzn2.0.6 will be installed ---> Package php-common.x86_64 0:5.4.16-45.amzn2.0.6 will be installed --> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-45.amzn2.0.6.x86_64 --> Running transaction check ---> Package apr-util-bdb.x86_64 0:1.6.1-5.amzn2.0.2 will be installed ---> Package libzip010-compat.x86_64 0:0.10.1-9.amzn2.0.5 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================================================================== Package Arch Version Repository Size =========================================================================================================================================================== Installing: httpd x86_64 2.4.39-1.amzn2.0.1 amzn2-core 1.3 M php x86_64 5.4.16-45.amzn2.0.6 amzn2-core 1.4 M Installing for dependencies: apr x86_64 1.6.3-5.amzn2.0.2 amzn2-core 118 k apr-util x86_64 1.6.1-5.amzn2.0.2 amzn2-core 99 k apr-util-bdb x86_64 1.6.1-5.amzn2.0.2 amzn2-core 19 k generic-logos-httpd noarch 18.0.0-4.amzn2 amzn2-core 19 k httpd-filesystem noarch 2.4.39-1.amzn2.0.1 amzn2-core 23 k httpd-tools x86_64 2.4.39-1.amzn2.0.1 amzn2-core 87 k libzip010-compat x86_64 0.10.1-9.amzn2.0.5 amzn2-core 30 k mailcap noarch 2.1.41-2.amzn2 amzn2-core 31 k mod_http2 x86_64 1.15.1-1.amzn2 amzn2-core 147 k php-cli x86_64 5.4.16-45.amzn2.0.6 amzn2-core 2.9 M php-common x86_64 5.4.16-45.amzn2.0.6 amzn2-core 566 k Transaction Summary =========================================================================================================================================================== Install 2 Packages (+11 Dependent packages) Total download size: 6.7 M Installed size: 22 M Downloading packages: (1/13): apr-1.6.3-5.amzn2.0.2.x86_64.rpm | 118 kB 00:00:00 (2/13): apr-util-1.6.1-5.amzn2.0.2.x86_64.rpm | 99 kB 00:00:00 (3/13): generic-logos-httpd-18.0.0-4.amzn2.noarch.rpm | 19 kB 00:00:00 (4/13): apr-util-bdb-1.6.1-5.amzn2.0.2.x86_64.rpm | 19 kB 00:00:00 (5/13): httpd-filesystem-2.4.39-1.amzn2.0.1.noarch.rpm | 23 kB 00:00:00 (6/13): httpd-tools-2.4.39-1.amzn2.0.1.x86_64.rpm | 87 kB 00:00:00 (7/13): httpd-2.4.39-1.amzn2.0.1.x86_64.rpm | 1.3 MB 00:00:00 (8/13): libzip010-compat-0.10.1-9.amzn2.0.5.x86_64.rpm | 30 kB 00:00:00 (9/13): mod_http2-1.15.1-1.amzn2.x86_64.rpm | 147 kB 00:00:00 (10/13): php-5.4.16-45.amzn2.0.6.x86_64.rpm | 1.4 MB 00:00:00 (11/13): php-cli-5.4.16-45.amzn2.0.6.x86_64.rpm | 2.9 MB 00:00:00 (12/13): php-common-5.4.16-45.amzn2.0.6.x86_64.rpm | 566 kB 00:00:00 (13/13): mailcap-2.1.41-2.amzn2.noarch.rpm | 31 kB 00:00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------- Total 15 MB/s | 6.7 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : apr-1.6.3-5.amzn2.0.2.x86_64 1/13 Installing : apr-util-bdb-1.6.1-5.amzn2.0.2.x86_64 2/13 Installing : apr-util-1.6.1-5.amzn2.0.2.x86_64 3/13 Installing : httpd-tools-2.4.39-1.amzn2.0.1.x86_64 4/13 Installing : generic-logos-httpd-18.0.0-4.amzn2.noarch 5/13 Installing : mailcap-2.1.41-2.amzn2.noarch 6/13 Installing : httpd-filesystem-2.4.39-1.amzn2.0.1.noarch 7/13 Installing : mod_http2-1.15.1-1.amzn2.x86_64 8/13 Installing : httpd-2.4.39-1.amzn2.0.1.x86_64 9/13 Installing : libzip010-compat-0.10.1-9.amzn2.0.5.x86_64 10/13 Installing : php-common-5.4.16-45.amzn2.0.6.x86_64 11/13 Installing : php-cli-5.4.16-45.amzn2.0.6.x86_64 12/13 Installing : php-5.4.16-45.amzn2.0.6.x86_64 13/13 Verifying : apr-util-1.6.1-5.amzn2.0.2.x86_64 1/13 Verifying : libzip010-compat-0.10.1-9.amzn2.0.5.x86_64 2/13 Verifying : php-cli-5.4.16-45.amzn2.0.6.x86_64 3/13 Verifying : apr-util-bdb-1.6.1-5.amzn2.0.2.x86_64 4/13 Verifying : httpd-tools-2.4.39-1.amzn2.0.1.x86_64 5/13 Verifying : httpd-2.4.39-1.amzn2.0.1.x86_64 6/13 Verifying : httpd-filesystem-2.4.39-1.amzn2.0.1.noarch 7/13 Verifying : php-5.4.16-45.amzn2.0.6.x86_64 8/13 Verifying : mod_http2-1.15.1-1.amzn2.x86_64 9/13 Verifying : apr-1.6.3-5.amzn2.0.2.x86_64 10/13 Verifying : mailcap-2.1.41-2.amzn2.noarch 11/13 Verifying : generic-logos-httpd-18.0.0-4.amzn2.noarch 12/13 Verifying : php-common-5.4.16-45.amzn2.0.6.x86_64 13/13 Installed: httpd.x86_64 0:2.4.39-1.amzn2.0.1 php.x86_64 0:5.4.16-45.amzn2.0.6 Dependency Installed: apr.x86_64 0:1.6.3-5.amzn2.0.2 apr-util.x86_64 0:1.6.1-5.amzn2.0.2 apr-util-bdb.x86_64 0:1.6.1-5.amzn2.0.2 generic-logos-httpd.noarch 0:18.0.0-4.amzn2 httpd-filesystem.noarch 0:2.4.39-1.amzn2.0.1 httpd-tools.x86_64 0:2.4.39-1.amzn2.0.1 libzip010-compat.x86_64 0:0.10.1-9.amzn2.0.5 mailcap.noarch 0:2.1.41-2.amzn2 mod_http2.x86_64 0:1.15.1-1.amzn2 php-cli.x86_64 0:5.4.16-45.amzn2.0.6 php-common.x86_64 0:5.4.16-45.amzn2.0.6 Complete! ``` However after some time trying to get the AMI user account settings correct it prove too diffcuilt to set up properly ![](https://i.imgur.com/iz73Ijx.png) ![](https://i.imgur.com/IADHqnw.png) I used this blog to help configure the Vagrant file to the appropriate settings http://www.thisprogrammingthing.com/2015/multiple-vagrant-vms-in-one-vagrantfile/ https://www.vagrantup.com/docs/cli/up.html https://docs.aws.amazon.com/IAM/latest/UserGuide/getting-started_create-admin-group.html and thus decided to just use the Virtual Box. :::info **Find this document incomplete?** Leave a comment! ::: #### tags: `Documentation` `cosc349`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully