Skip to content

Install on Amazon instance

Kun Yang edited this page Oct 5, 2017 · 7 revisions

Learn how to install mCard on AWS EC2 instance from YouTube:

How to install mCard on AWS

Instructions

  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2.

  2. From the left side bar, select AMIs.

  3. Select 'Public images', then search AMI Name: mCard

  4. Select image mCard_JHSZC (ami-28dcff4d), then click Launch

  5. Follow instructions on the wizard, configure the instance, storage, tag, security group (open 22 and 80 ports), then Review and Launch.

  6. SSH log into the instance, start mCard: bash start_mCard.sh

  7. When it's the first time of installation or the URL of mCard is changed, you need to update reCAPTCHA setting. To set up reCAPTCHA:

    • Go to: https://www.google.com/recaptcha/admin#list

    • Register new site follow instructions on the page. When choosing the type of reCAPTCHA, select reCAPTCHA V2 (validate users with the "I am not a robot" checkbox)

    • After registration, you will get the new key and secret

    • Update environment variables. Add or update the following two lines in ~/.bashrc:

      export reCAPTCHA_key="YOUR_KEY"
      
      export reCAPTCHA_secret="YOUR_SECRET"
      
    • reload configuration: source ~/.bashrc

    • start or restart mCard

  8. Now mCard is ready to use. You can use the IP address of EC2 instance or the domain name which you have linked to EC2 instance to access mCard.

  9. The default username and password for administrator is root:root. You can change the password via "Manage Your Account" or "Administration Portal"