Eintrag

Jekyll on Windows WSL Ubuntu 22.04

Jekyll on Windows WSL Ubuntu 22.04

install ruby

1
sudo apt-get install ruby-full

add to your .bashrc

1
2
3
4
5
6
# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/gems/bin:$PATH"
# ensure snap-ruby is found and all my gems
eval `ruby.env`
###############

close and reopen wsl

1
2
3
sudo apt install build-essential zlib1g-dev
gem update
gem install jekyll bundler

clone your repo. as you’d like to use existing keys, generate the following structure

1
2
3
4
5
6
mkdir .ssh_git
# copy your keyfiles in that dir

# in .ssh/config add the following entries
Match host ssh.github.com exec "[[ $PWD == *projects/private* ]]"
IdentityFile ~/.ssh_git/id_rsa

with that config-file, you should place your work inside projects/private

cd to ~/projects/work we’re trying to clone over port 443

1
2
3
git clone ssh://git@ssh.github.com:443/dpaiha/blog.git
cd blog
bundle update

voìla

Addendum

If this was your first clone, dont forget to make a

1
2
git submodule init
git submodule update

That’s necessary to get the actual chirpy ressources

Dieser Eintrag ist vom Autor unter CC BY 4.0 lizensiert.