For one it doesn’t require a database and you don’t have to worry about comments management and frequent updates. All you do is write your content and it’s instantly published. Other features like permalinks, categories, pages, posts, and custom layouts are all top content and SEO friendly. This brief tutorial is going to show students and new users how to install Jekyll CMS on Ubuntu 16.04 | 18.04 and 18.10 systems. These are the packages we’re going to set up.

Ruby version 2.5.3 Rails version 5.2.1 MariaDB

Installing Ruby

To install Ruby and Rails on Ubuntu, you’ll need to install some dependencies. To make that happen, install Node.js and Yarn repositories. This will make installing the dependencies easier. First, install these curl and git packages. Then run the commands below to add Node.js and Yarn repositories and keys to your system. Then install some core packages to get your environment going. When you’re done. continue below: After adding the repositories and installing the necessary packages above, install Ruby with your local profile settings using rbenv. you’ll then use rbenv to install ruby-build. After setting up your local profile. run the commands below to install Ruby version 2.5.3. If a newer version is available, replace the version number with that. visit this site to find out Ruby’s latest versions. To verify that Ruby is installed, run the commands below: You should see similar lines below: Another package management you’ll want to install is bundler. to do that, run the commands below Now run the command below after installing the bundler.

Install Rails

Now that the Ruby environment is set up, run the commands below to install Rails. Rails can be installed from Node.Js. Run the commands below to install the Node.js repository, then install the Node.js package. Now that Node.js is installed, run the commands below to install Rails. Don’t forget to rehash your rbenv environment installing install new packages. To verify if Rails is installed, run the commands below. You should see something similar to the lines below:

Install Jekyll

Now that your environment is ready, run the commands below to install Jekyll and build your first site.  Next, run the commands below After that run the commands below to create a new site called example.com in your home directory. Next, change into the new example.com folder and run the commands below. Finally, run the commands below to start the server. It should start on the local IP followed by port 4000 That’s it! Now open your browser and browse to the server hostname or IP followed by port 4000 You should see the page below: That’s it!