Automated Installation on Oracle Cloud Infrastructure (OCI)
When starting a VM on OCI first click the Show advanced options button having selected the usual options above that.
Then (in the Management tab) select Paste cloud-init script
And paste your customised script into the Cloud-init script box:
#!/bin/bash# Modify these lines to set the installation specific variablesATCLIENT="@democlient"ATDEVICE="@demodevice"DEVNAME="cloudvm1"OTP="739128"USER="opc"# The rest of the script shouldn't be changedexport HOME="/home/${USER}"export SUDO_USER="${USER}"mkdir-p/run/atsigncd/run/atsignVERSION=$(wget -q -O- "https://api.github.com/repos/atsign-foundation/noports/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")')
wgethttps://github.com/atsign-foundation/noports/releases/download/v${VERSION}/universal.shshuniversal.sh-tdevice-c ${ATCLIENT} -d ${ATDEVICE} -n ${DEVNAME}/usr/local/bin/at_activate enroll -a ${ATDEVICE} -s ${OTP} -p noports -k /home/${USER}/.atsign/keys/${ATDEVICE}_key.atKeys -d ${DEVNAME} -n "sshnp:rw,sshrvd:rw"
chown-R ${USER}:${USER} /home/${USER}/.atsign
The VM is now ready for Create
After a few minutes the APKAM key can be approved: