|
| 1 | +# Ansible AWS |
| 2 | + |
| 3 | +This Ansible project contains the information required to commission and |
| 4 | +setup a bare standard Ubuntu instance. This allows me to create a new bare |
| 5 | +standard instance in order to test compile packages on a know base system, |
| 6 | +and will help to explicilty determine what dependencies are required for a |
| 7 | +given project. |
| 8 | + |
| 9 | +## Setup |
| 10 | + |
| 11 | +Using the Ubuntu chooser and then the AWS console create a new EC2 |
| 12 | +instance: |
| 13 | + |
| 14 | + https://cloud-images.ubuntu.com/locator/ec2/ |
| 15 | + |
| 16 | +THEN edit the file `hostsEnv` to ensure the aws0, aws1, and/or aws2 are |
| 17 | +associated with the correct *public* ip address |
| 18 | + |
| 19 | +THEN each time you change the `hostsEnv` file you need to type: |
| 20 | + |
| 21 | + source ./hostsEnv |
| 22 | + |
| 23 | +in each terminal you are using. |
| 24 | + |
| 25 | +THEN ssh for the first time by typing one of the following: |
| 26 | + |
| 27 | + ./sshAWS0 |
| 28 | + ./sshAWS1 |
| 29 | + ./sshAWS2 |
| 30 | + |
| 31 | +This assumes you have an ssh key agent installed and working... |
| 32 | + |
| 33 | +## Develop, test-building and test-installation |
| 34 | + |
| 35 | +TO *develop* a new version of pdf2htmlEX taken from your *own* fork of the |
| 36 | +pdf2htmlEX repository type one of the following: |
| 37 | + |
| 38 | + ./runPlaybook0 ec2-install-pdf2html-develop.yml |
| 39 | + ./runPlaybook1 ec2-install-pdf2html-develop.yml |
| 40 | + ./runPlaybook2 ec2-install-pdf2html-develop.yml |
| 41 | + |
| 42 | +TO *test* *build* an existing version of pdf2htmlEX from the *main* |
| 43 | +pdf2htmlEX repository type one of the following: |
| 44 | + |
| 45 | + ./runPlaybook0 ec2-install-pdf2html-master.yml |
| 46 | + ./runPlaybook1 ec2-install-pdf2html-master.yml |
| 47 | + ./runPlaybook2 ec2-install-pdf2html-master.yml |
| 48 | + |
| 49 | +TO *test* *install* an existing *.deb package type one of the following: |
| 50 | + |
| 51 | + ./runPlaybook0 ec2-install-pdf2html-testDeb.yml |
| 52 | + ./runPlaybook1 ec2-install-pdf2html-testDeb.yml |
| 53 | + ./runPlaybook2 ec2-install-pdf2html-testDeb.yml |
| 54 | + |
| 55 | +*In each case ensure you have the correct github repository tags specified |
| 56 | +in the above *.yml files* |
| 57 | + |
| 58 | +## Testing pdf2htmlEX itself |
| 59 | + |
| 60 | +To test pdf2htmlEX on the testing machine type one of the following: |
| 61 | + |
| 62 | + ./pdf2htmlTest testrevelatornl |
| 63 | + ./pdf2htmlTest joyLoL |
| 64 | + |
| 65 | +THEN open the resulting html in a web browser on you local machine by |
| 66 | +typing one of the following: |
| 67 | + |
| 68 | + openHTML0 |
| 69 | + openHTML1 |
| 70 | + openHTML2 |
| 71 | + |
| 72 | + |
| 73 | +## Teardown |
| 74 | + |
| 75 | +Using the AWS console .... delete the unused instances |
| 76 | + |
| 77 | +# pdf2htmlEX |
| 78 | + |
| 79 | +## Build poppler |
| 80 | + |
| 81 | + cd poppler |
| 82 | + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr \ |
| 83 | + -DENABLE_LIBOPENJPEG=none |
| 84 | + make |
| 85 | + sudo make install |
| 86 | + |
| 87 | +## Build pdf2htmlEX |
| 88 | + |
| 89 | + cd pdf2htmlEX |
| 90 | + cmake . |
| 91 | + make |
| 92 | + sudo make install |
| 93 | + |
0 commit comments