Skip to content

Commit

Permalink
Update 2021-08-21-welcome-to-jekyll.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj committed Sep 23, 2024
1 parent bf20ae5 commit a5816ea
Showing 1 changed file with 57 additions and 55 deletions.
112 changes: 57 additions & 55 deletions docs/_posts/2021-08-21-welcome-to-jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,39 +60,69 @@ Check Ubuntu version
On Windows:

- 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)
- [Using WSL2 with Ubuntu 22](#notes-for-ubuntu-22)
- [Using WSL2 with ubuntu 20](#setup).

### Setup

Packages have dependencies on multiple compilers:
### Launch The Server

https://jekyllrb.com/docs/installation/
With the following installed, launch the server

> sudo apt-get install gcc -y
> cd docs
> sudo apt install g++ -y
> bundle install
> sudo apt-get update --fix-missing
> bundle exec jekyll serve
> sudo apt install make

Once those compilers are installed:
## Notes for Ubuntu 24

> sudo apt-get install ruby-full
[Install WSL](https://learn.microsoft.com/en-us/windows/wsl/install)

> sudo gem install jekyll bundler
(On Windows 11, open Powershell as administrator and run `wsl --install`)

### Launch The Server
Get Ubuntu 24.04 LTS from the Microsoft Store.

With the following installed, launch the server
Ubuntu 24 comes with ruby 3.

> cd docs

> bundle install
### Install ruby

> bundle exec jekyll serve
> 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
### Notes for Ubuntu 22

Expand Down Expand Up @@ -136,51 +166,23 @@ Ubuntu 22 comes with ruby 3 which is not compatible with the github-pages. Use r
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

### Setup

### Check Versions

> ruby -v
> gem -v
Packages have dependencies on multiple compilers:

> gcc -v
https://jekyllrb.com/docs/installation/

> g++ -v
> sudo apt-get install gcc -y
> make -v
> sudo apt install g++ -y
### Install jekyll
> sudo apt-get update --fix-missing
[Install Jekyll on Ubuntu](https://jekyllrb.com/docs/installation/ubuntu/)
> sudo apt install make
```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
```
Once those compilers are installed:

> gem install jekyll bundler
> sudo apt-get install ruby-full
> sudo gem install jekyll bundler

0 comments on commit a5816ea

Please sign in to comment.