Commit 78055830 authored by Noe Nieto's avatar Noe Nieto 💬

Small script to get you up and running

parent 27af2395
# LDH Toolkit setup guide
## The shipyard
The first thing you need to run is the `shipyard_setup script`. From your terminal type:
```bash
wget -qnc https://source.puri.sm/noe.nieto/ldh_developer/raw/master/shipyard_setup && sudo bash shipyard_setup
```
It will install libraries and other system tools. It might take a few minutes until finished.
## Git configuration
You need git to download the LDH toolkit. Skip this step if you already configured git.
### Username and email
First configure your username and email (as non-root user)
```bash
git config --global user.name "Noe Nieto"
git config --global user.email noe.nieto@puri.sm
```
### Generate RSA keypair
Next we need to create a RSA keypair so we can upload the public key to gitlab. Copy the following and paste it to the terminal.
```bash
mkdir -p ~.ssh/
cd ~.ssh/
ssh-keygen -o -t rsa -b 4096 -C "My liberty developer SSH key" -f purism_gitlab
```
### Configure SSH
The keypair has been generated. Now configure ssh so it will use the private key we created whwn connecting to Gitlab.
```bash
mkdir -p ~.ssh/
cat << EOF > ~/.ssh/config
############################
Host source.puri.sm
IdentityFile ~/.ssh/purism_gitlab
############################
```
### Upload the key to Gitlab
First copy the public key:
```bash
xclip -sel clip < ~/.ssh/purism_gitlab.pub
```
Go to https://source.puri.sm/profile/keys, paste the public key to the Key textbox and pick a name/title for the key.
Press save.
### Test access to Gitlab
Run this:
```bash
ssh -oBatchMode=yes -T git@source.puri.sm
```
You should get a message like this
```
Welcome to GitLab, @noe.nieto!
```
If you don't see the welcome message please double check the ssh configuration.
### Get your copy of the LDH developer toolkit
Just clone the repo:
```bash
git clone git@source.puri.sm:liberty/ldh_developer.git
```
Now go to the main [README.md](../README.md) to see a listing of the different tools available.
#!/bin/bash
# Script to setup all the tools needed for LDH developers
# Inspired by https://easyengine.io/
# Script to setup the tools needed for LDH developers
# White color
function ldh_info()
{
printf "$(tput setaf 7)[info] $(tput sgr0)$@\n"
}
# Red color
function ldh_error()
{
echo "$(tput setaf 1)[Error] $(tput setaf 7)$@$(tput sgr0)"
......@@ -23,7 +19,6 @@ if [[ $EUID -ne 0 ]]; then
exit 100
fi
ldh_info "Updating package list ..."
apt update &>> /dev/null
ldh_info "Now installing dependencies ..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment