O7 Logo

Installation de programmes populaires

Exemple d'installation de différentes applications utilisées.

Node JS

NODE_VERSION=v16.17.0
NODE_DISTRO=linux-x64

wget https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-$NODE_DISTRO.tar.xz
mkdir -p /usr/local/lib/nodejs
tar -xJvf node-$NODE_VERSION-$NODE_DISTRO.tar.xz -C /usr/local/lib/nodejs
rm node-$NODE_VERSION-$NODE_DISTRO.tar.xz

export PATH=/usr/local/lib/nodejs/node-$NODE_VERSION-$NODE_DISTRO/bin:$PATH

node --version

AWS CLI

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
bash ./aws/install
rm awscliv2.zip && rm -r aws

aws --version

AWS Session Manager plugin for the AWS CLI

curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"

dpkg -i session-manager-plugin.deb
rm session-manager-plugin.deb

session-manager-plugin

AWS CDK

https://docs.aws.amazon.com/cdk/v2/guide/getting_started.html

# Installation du CLI
npm install -g aws-cdk
cdk --version

# Installation de la librairie Python
pip install aws-cdk-lib

Terraform

Online help

# Download the signing key to a new keyring
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | tee /usr/share/keyrings/hashicorp-archive-keyring.gpg

# Verify the key's fingerprint
gpg --no-default-keyring --keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg --fingerprint

# Add the HashiCorp repo
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list

apt update
apt install -y terraform
terraform -install-autocomplete

FIN