Install the OpenSSL on Debian based systems
sudo apt-get install openssl
# coding: utf-8 | |
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. | |
# This script subscribes to a Marketplace listing by accepting all terms and conditions and list all subscriptions | |
# | |
# | |
# | |
import oci | |
compartment_id = "ocid1.compartment." |
# coding: utf-8 | |
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. | |
# This script subscribes to the default package of a Marketplace listing by accepting all terms and conditions and list all subscriptions | |
# | |
# | |
# | |
# | |
import oci |
#!/bin/bash | |
sudo yum -y install yum-utils | |
sudo yum-config-manager --enable ol7_developer | |
sudo yum -y install python-oci-sdk python-oci-cli |
#!/bin/bash | |
############################### | |
# Input variables # | |
############################## | |
DOMAIN=mysite.com | |
CERTS_ROOT_DIR=/etc/ssl | |
#Zip file containing the SSL certificate bundle | |
# Content of the zip file: |
#!/bin/bash | |
yum install -y httpd | |
systemctl enable httpd.service | |
systemctl start httpd.service | |
echo '<html><head></head><body><pre><code>' > /var/www/html/index.html | |
hostname >> /var/www/html/index.html | |
echo '' >> /var/www/html/index.html |
#!/bin/bash | |
##Install KVM, Dependencies & utils | |
yum -y install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer oci-utils | |
yum groupinstall "Server with GUI" -y | |
##Install VNC Server | |
yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-utils tigervnc-server mesa-libGL mesa-libEGL -y |
variable "tenancy_ocid" {} | |
variable "user_ocid" {} | |
variable "fingerprint" {} | |
variable "compartment_ocid" {} | |
variable "region" {} | |
variable "ssh_public_key_path" {} | |
variable "ssh_private_key_path" {} | |
variable "availability_domain" {} | |
variable "instance_shape" {} |
#OCI Environment variables | |
variable "tenancy_ocid" {} | |
variable "user_ocid" {} | |
variable "fingerprint" {} | |
variable "compartment_ocid" {} | |
variable "region" {} | |
variable "ssh_public_key_path" {} | |
variable "ssh_private_key_path" {} | |
variable "availability_domain" {} | |
variable "instance_shape" {} |
#Powershell script | |
#Set-ExecutionPolicy RemoteSigned | |
Set-ExecutionPolicy Unrestricted | |
#Set-ExecutionPolicy -executionpolicy remotesigned -force | |
New-Item C:\helloworld.txt -ItemType File -Value "Hello, world!" |