,

How to Install HashBrown CMS on Ubuntu Linux

HashBrown CMS is a free, open-source, multilingual content management system that is built on Node.js and MongoDB. This article provides a step-by-step guide to install HashBrown CMS on Ubuntu operating systems. The guide covers the installation of necessary dependencies including Ruby, Node.js, MongoDB, and HashBrown CMS itself, and concludes with the successful launch of HashBrown…

HashBrown CMS is a free, open-source, headless content management system (CMS) built on Node.js and Mongo that helps you build simple, clean, design-driven websites with many impressive features. In addition, it brings a truly modern approach to content management for developers and content editors.

HashBrown is also lightweight, multilingual, pluggable, and secure. As a result, it can be used for many kinds of websites, from small nonprofits to large enterprises.

For more about HashBrown CMS, check its homepage.

These are the packages we’re going to set up.

  • Ruby version 2.5.3
  • MongoDB

Install Ruby

You’ll need to install some dependencies to install Ruby and Rails on Ubuntu. To make that happen, install Node.js and Yarn repositories. This will make installing the dependencies easier.

First, install these curl and git packages.

sudo apt update
sudo apt install curl git

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.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update
sudo apt-get install nodejs yarn zlib1g-dev build-essential libpq-dev libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev

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.

cd ~/
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

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. Then, visit this site to find out about Ruby’s latest versions.

rbenv install 2.5.3
rbenv global 2.5.3

To verify that Ruby is installed, run the commands below:

ruby -v

You should see similar lines below:

ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]

Install Node.js

Now that the Ruby environment is set up run the commands below to install Node.js. First, run the commands below to install the Node.js repository, then install the Node.js package.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Now that Node.js is installed, run the commands below to install HashBrown CMS.

Install MongoDB

MongoDB is the database that HashBrown CMS uses. So install MongoDB and ImageMagick before continuing with setting up your website projects.

sudo apt install mongodb
npm install nosql

After installing the MongoDB server, open a new terminal window and try. It should start an interactive Mongo prompt.

mongo
ctrl+c to exit.

Install HashBrown CMS

Now that your environment is ready, run the commands below to install HashBrown CMS and build your first site. Next, run the commands below to change into your home directory.

cd ~/

Then, run the commands below to clone the HashBrown branch from GitHub and download it. Finally, change into the cloned folder and run the commands to install HashBrown CMS.

git clone https://github.com/HashBrownCMS/hashbrown-cms.git -b stable --single-branch --recursive
cd ~/hashbrown-cms
npm install --production

After a while, necessary packages should be installed and configured, ready to use. When you’re done, run the commands below to start the server.

Running standalone:

node hashbrown.js

Now open your browser and browse to the hostname followed by port # 8080

http://localhost:8080

You should see the HashBrown CMS home page. Now, you can start building your great content!

Create your first account and log on.

Enjoy!

To update the core HashBrown version and all of its dependencies, run the commands below:

cd ~/hashbrown-cms
git pull
git submodule update --recursive --init
npm install --production

Congratulation! You have successfully installed the HashBrown CMS platform on Ubuntu 16.04 | 18.04 | 18.10

You may also like the post below:

Richard Avatar

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


Exit mobile version