• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Wednesday, June 18, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home VPS/Servers management guides

How To Install Hugo On Ubuntu 18.04

How VPS by How VPS
February 6, 2020
in VPS/Servers management guides
0
How To Install Hugo On Ubuntu
0
SHARES
85
VIEWS
Share on FacebookShare on Twitter

How To Install Hugo On Ubuntu

Contents

  1. How To Install Hugo On Ubuntu
    1. Introduction
    2. Step 1 – Installing Hugo
      1. Installing Hugo Using The Apt-get Utility
      2. Installing Hugo Using The dpkg utility
    3. Step 2 – Install Hugo Themes
    4. Step 3 – Using Hugo
      1. Creating A New Website
    5. Conclusion

Introduction

Hugo is an open-source website framework developed in Go to help users create websites with ease. It is a reliable and modern static site generator used to create secure and extremely fast websites. Websites created using Hugo do not need a database to run and don’t depend on expensive run times such as Python, Ruby, or PHP.

There are three ways to install Hugo on your Ubuntu 18.04 which include:

  • Using Snap
  • Using apt-get
  • Downloading and Installing Hugo packages.

This tutorial will show you how to install Hugo using the second (using apt-get) and third method (downloading and installing Hugo). Using Snap is not a reliable method as it presents a number of issues and requires multiple dependencies.

Step 1 – Installing Hugo

Installing Hugo Using The Apt-get Utility

The first thing when installing Hugo using the apt-get is updating your server’s apt index:

$ sudo apt-getupdate

Once the package index is updated, run the command below to install Hugo:

$ sudo apt-get install hugo

Hugo will be installed automatically on your server. To check the Hugo version installed, run the command below:

$ sudo hugo version

This will give you an output showing the Hugo version:

Hugo Static Site Generator v0.40.1 linux/amd64 BuildDate:2018-04-25T17:16:11Z

Instaling Hugo using the apt-get comes with its own advantages and disadvantages. The method is straightforward, but may not install the most recent version of Hugo. If you want to install the latest version of Hugo (v0.50, at the time of writing), use the following method.

Installing Hugo Using The dpkg utility

This method may not be as simple as using the apt utility, but it enables you to install the latest Hugo version.

First, run the command below to confirm your server architecture:

$ sudo uname -i

This will print out the specs of your server:

X86_64

Now that you know your server architecture, visit the official Hugo release page to see the most recent stable release: at the time of writing this article, the latest release was Hugo v0.50.

Now, execute the following wget command to download the most recent release:

$ wget https://github.com/gohugoio/hugo/releases/download/v0.50/hugo_0.50_Linux-64bit.deb

Note: If prefer a specific version of Hugo, amend the command above to suit that particular version. For instance to download Hugo v0.25.1, run the command:

$ wget https://github.com/gohugoio/hugo/releases/download/v0.25.1/hugo_0.25.1_Linux-64bit.deb

Once the installation files are downloaded, issue the command below to extract the files and install Hugo package:

$ sudo dpkg -i hugo_0.50_Linux-64bit.deb

Next, execute the command below to delete the download package:

$ sudo rm hugo_0.30.2_Linux-64bit.deb

Then, run the command below to verify the installation:

$ sudo hugo version

This should give you an output showing the version of Hugo installed:

Hugo Static Site Generator v0.50 linux/amd64 BuildDate:2018-09-25T17:16:11Z

In case you find Hugo not useful, you can execute the command below to uninstall it:

$ sudo apt-getremove --auto-remove hugo

Step 2 – Install Hugo Themes

The Hugo themes help you present your website content in a way that appeals to your users/readers. Once you install Hugo, the next step is installing its themes. Hugo’s main package doesn’t provide any theme and the best way to install Hugo themes is cloning the Hugo themes Git repository. This repository presents numerous prebuilt themes:

First, run the command below to update the package index:

$ sudo apt-getupdate

Then issue the command below to install Git:

$ sudo apt-get install git

Next, run the command below to clone this theme repository:

$ sudo git clone--recursive https://github.com/spf13/hugoThemes ~/themes

Step 3 – Using Hugo

Creating A New Website

To create a website using Hugo, first, run the command below to create a directory for the website:

$ sudo mkdir hugo-sites

Change to this directory:

 $cd hugo-sites

Then run the command below to create the site:

hugo newsite hello-world

This will give you the output below:

Congratulations! Your new Hugo site is created in /root/hugo-sites/hello-world

Just a few more steps and you're ready to go:

1. Download a theme into the same-named folder.
   Choose a theme from https://themes.gohugo.io/, or
   create your own with the "hugo new theme <THEMENAME>" command.
2. Perhaps you want toaddsome content. You can add single files
   with"hugo new <SECTIONNAME>/<FILENAME>.<FORMAT>".
3.Start the built-in live server via "hugo server".

Visit https://gohugo.io/ for quickstart guide andfull documentation.

Next, change the directory

$cd hello-world

And issue the command below:

$ sudo ls

This will give you the following output:

archetypes config.tomlcontent data layouts static themes

To preview your site issue the command below:

$ sudo hugo

This will deliver the following output:

                   | EN  
+------------------+----+
  Pages            |  3  
  Paginator pages  |  0  
  Non-page files   |  0  
  Static files     |  0  
  Processed images |  0  
  Aliases          |  0  
  Sitemaps         |  1  
  Cleaned          |  0  

Total in 33 ms

That is it!

Conclusion

You have successfully installed Hugo on your Ubuntu 18.04 VPS or dedicated server. You can explore detailed options and learn how to build impressive websites using this application.

Could you clarify what this means? Hugo is a web framework, whereas, the things you listed as having expensive runtimes are programming languages. Could you clarify this concept?

Tags: Ubuntu
Previous Post

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Next Post

How to Secure PHP Integrated Into Your Web Page with Configuration Settings

Next Post
How to Secure PHP Integrated Into Your Web Page with Configuration Settings

How to Secure PHP Integrated Into Your Web Page with Configuration Settings

Leave a Reply Cancel reply

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

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
0

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In