Last active
February 20, 2018 12:24
-
-
Save cnouguier/a1ecc88f67819a610ae8e4d221789a8c to your computer and use it in GitHub Desktop.
Step by step configuration of the Scaleway server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install GDAL:
add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
apt update
apt upgrade
apt install gdal-bin python-gdal python3-gdal