Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Step by step configuration of the Scaleway server
# Install LVM
apt-get update
apt-get install lvm2
# Setup the physical volumes
pvcreate /dev/nbd1
pvcreate /dev/nbd2
pvcreate /dev/nbd3
pvcreate /dev/nbd4
pvcreate /dev/nbd5
# Create the volume group
vgcreate vg-nbd /dev/nbd1 /dev/nbd2 /dev/nbd3 /dev/nbd4 /dev/nbd5
# Create the logical volume
lvcreate -L695g -n lv-nbd vg-nbd
# Format and mount the logival volume
mkfs -t ext4 /dev/vg-nbd/lv-nbd
mkdir /mnt/data
mount /dev/vg-nbd/lv-nbd /mnt/data
# Install docker-ce
# see: https://docs.docker.com/engine/installation/linux/docker-ce/debian/#set-up-the-repository
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install docker-ce
# Intall docker-compose
curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
# Add a user
adduser kalisio
usermod -aG sudo kalisio
usermod -aG docker kalisio
# Copy the authorized keys
mkdir /home/kalisio/.ssh
cp .ssh/authorized_keys /home/kalisio/.ssh/authorized_keys
chown kalisio:kalisio /home/kalisio/.ssh
chown kalisio:kalisio /home/kalisio/.ssh/authorized_keys
# Change /mnt/data to be owned by kalisio
chown -R kalisio:kalisio /mnt/data
@cnouguier
Copy link
Author

cnouguier commented Nov 25, 2017

Install GDAL:

add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
apt update
apt upgrade
apt install gdal-bin python-gdal python3-gdal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment