From bf20ae5633ba030f5ede1b6d9b7741fbe8f01da9 Mon Sep 17 00:00:00 2001 From: wandyezj Date: Sun, 22 Sep 2024 18:10:53 -0700 Subject: [PATCH] Update 2021-08-21-welcome-to-jekyll.md --- docs/_posts/2021-08-21-welcome-to-jekyll.md | 59 +++++++++++++++++++-- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/docs/_posts/2021-08-21-welcome-to-jekyll.md b/docs/_posts/2021-08-21-welcome-to-jekyll.md index 5caf873..c9fedc2 100644 --- a/docs/_posts/2021-08-21-welcome-to-jekyll.md +++ b/docs/_posts/2021-08-21-welcome-to-jekyll.md @@ -58,11 +58,11 @@ Check Ubuntu version > lsb_release -a -On Windows +On Windows: -Using WSL2 with ubuntu 20 follow [setup](#setup). - -[Using WSL2 with Ubuntu 22](#notes-for-ubuntu-22) +- Using WSL2 with ubuntu 20 follow [setup](#setup). +- [Using WSL2 with Ubuntu 22](#notes-for-ubuntu-22) +- [Using WSL2 with Ubuntu 24](#notes-for-ubuntu-24) ### Setup @@ -134,4 +134,53 @@ Ubuntu 22 comes with ruby 3 which is not compatible with the github-pages. Use r > ruby --version -1. Follow [setup steps](#setup) \ No newline at end of file +1. Follow [setup steps](#setup) + +## Notes for Ubuntu 24 + +[Install WSL](https://learn.microsoft.com/en-us/windows/wsl/install) + +(On Windows 11, open Powershell as administrator and run `wsl --install`) + +Get Ubuntu 24.04 LTS from the Microsoft Store. + +Ubuntu 24 comes with ruby 3. + + +### Install ruby + +> gpg --keyserver keyserver.ubuntu.com --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB +\curl -sSL https://get.rvm.io | bash -s stable + +> rvm install "ruby-3.3.5" + +> rvm list known + +> rvm use ruby-3.3.5 + + +### Check Versions + +> ruby -v + +> gem -v + +> gcc -v + +> g++ -v + +> make -v + +### Install jekyll + +[Install Jekyll on Ubuntu](https://jekyllrb.com/docs/installation/ubuntu/) + +```text +echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc +echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc +echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc +source ~/.bashrc +``` + +> gem install jekyll bundler +