... | ... | @@ -10,12 +10,13 @@ Only **dev** (password: `chemotion2019` ) is in the sudo group (admin). |
|
|
## Download and import the VM template
|
|
|
|
|
|
Download the following files (chemotion_ELN git rev: [4467ae5b](https://git.scc.kit.edu/ComPlat/chemotion_eln_server/-/network/v0.5.0?utf8=%E2%9C%93&extended_sha1=4467ae5b476ca8879dd25d16440b890e05cd01aa)):
|
|
|
* [ELN-machine.ovf]()
|
|
|
* [ELN-machine-1.vmdk]() (~2.3GB)
|
|
|
* [ELN-machine.ovf](https://bwsyncandshare.kit.edu/dl/fiYDwXEdTA8yhSHkVWPBAGrp/chemotion_ELN_template_20191010.ovf)
|
|
|
* [ELN-machine-1.vmdk](https://bwsyncandshare.kit.edu/dl/fiTE79UUv6Jcj9n12oUCouYQ/chemotion_ELN_template_20191010-1.vmdk) (~2.2GB)
|
|
|
|
|
|
SHA256(ELN-template-20191010.ovf)=
|
|
|
SHA256(chemotion_ELN_template_20191010-1.vmdk)= ba4168ea31d59b6bd707b5da2dd12361281a4ec3a0454f29f5f1cf4bf8fbc2be
|
|
|
|
|
|
SHA256(chemotion_ELN_template_20191010.ovf)= ff07637d94b44c44816f2dcb91992492d2a323a918033c0d5dffbce1714f99d8
|
|
|
|
|
|
SHA256(ELN-template-20191010-1.vmdk)=
|
|
|
|
|
|
The template was prepared on a 25 GB disk.
|
|
|
|
... | ... | @@ -28,9 +29,9 @@ The first thing to do after the VM is mounted and started, is to log in as **che |
|
|
* (if necessary reconfigure your keyboard properly: `sudo dpkg-reconfigure keyboard-configuration`)
|
|
|
* **change the users password**: `sudo passwd USERNAME` where username takes chemotion, production
|
|
|
* **reset the ssh authorized_keys** (/home/USERNAME/.ssh/authorized_keys) and add your own key for the different users (NB: ssh password login is NOT disabled yet).
|
|
|
* **reconfigure the network setting**: In this VM template, the interface is named ens160 and use dhcp. Check the correct name of your network interface (List available new interface: `ip addr`) and update /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg . Then apply the changes ( `sudo netplan apply`).
|
|
|
* **reconfigure the network setting**: In this VM template, the interface is named ens160 and use dhcp. Check the correct name of your network interface (List available new interface: `ip addr`) and update /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg and /etc/netplan/50-cloud-init.yaml . Then apply the changes ( `sudo netplan apply`).
|
|
|
|
|
|
* run setup script as **dev** `sudo /home/dev/run_setup_scripts.sh`
|
|
|
* run setup script as **chemotion** `sudo /home/dev/run_setup_scripts.sh`
|
|
|
|
|
|
The selected scripts are in /home/dev/setup_scripts_enabled (linked from /home/dev/setup_scripts_availables) and will do the following:
|
|
|
|
... | ... | @@ -41,12 +42,11 @@ The first thing to do after the VM is mounted and started, is to log in as **che |
|
|
| 10 | Reset the ELN production application secret key (cookie encryption ..) |
|
|
|
| 11 | Reset the ELN production DB password |
|
|
|
| 12 | Restart the ELN web application and background jobs |
|
|
|
| 13 | Reset the dev user ssh key and copy to prod to allow app deployment|
|
|
|
| 20 | |
|
|
|
|
|
|
| 20 | Reset the production ssh key to allow app deployment|
|
|
|
|
|
|
|
|
|
If Script 10 or 11 are run, one needs to restart the application (13).
|
|
|
If Script 10 or 11 are run, one needs to restart the application (12).
|
|
|
To update the application to a newer version, one can rerun the installation script with only part 8 and 9 enabled
|
|
|
|
|
|
|
|
|
## Running a production server.
|
... | ... | |