How to Install GNU Emacs on Ubuntu Server Latest

Emacs is a powerful and customizable text editor that is widely-used among developers and system administrators. In this tutorial, we will show you how to install GNU Emacs on Ubuntu Server Latest.

Prerequisites

Before you start, you will need:

Installing Emacs

  1. First, update the package index on your server:
sudo apt update
  1. Next, install Emacs by running the following command:
sudo apt install emacs
  1. After the installation is complete, verify that Emacs is installed by running the following command:
emacs --version

This should display the version of Emacs installed on your system.

Optional: Installing the Latest Version of Emacs

If you want to install the latest version of Emacs available at the time of writing, you can follow these steps:

  1. Download the latest version of Emacs from the official GNU Emacs website:
curl -L https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.gz -o emacs-27.2.tar.gz
  1. Extract the downloaded archive:
tar -zxvf emacs-27.2.tar.gz
  1. Install the dependencies required to compile Emacs:
sudo apt-get install build-essential libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk-3-dev libncurses5-dev
  1. Configure the installation using the following command:
cd emacs-27.2/
./configure
  1. Compile Emacs by running the following command:
make
  1. Install Emacs by running the following command:
sudo make install
  1. Verify that Emacs is installed by running the following command:
emacs --version

This should display the version of Emacs installed on your system.

Conclusion

In this tutorial, you have learned how to install GNU Emacs on Ubuntu Server Latest. Whether you choose to install the version from the Ubuntu package repository or the latest version by compiling from source, Emacs provides a robust and customizable text editing experience.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!