How to install Micro Text Editor on Debian 12

To Install Micro Text Editor On Debian 12

Introduction

Micro is a versatile terminal-based text editor that offers a balance between simplicity and functionality. It provides a user-friendly interface with convenient features such as standard keyboard shortcuts (e.g., Ctrl + C, Ctrl + V, Ctrl + F) commonly found in desktop text editors.

Procedure Steps

Step 1 : Check the OS version by using following command.

root@linuxhelp:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Step 2 : Download the micro text editor by using following command.

root@linuxhelp:~# wget https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-linux64.tar.gz
--2024-05-20 16:41:57--  https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-linux64.tar.gz
Resolving github.com (github.com)... 20.207.73.82
Connecting to github.com (github.com)|20.207.73.82|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/53632140/9e828b97-5c43-477c-91cc-d52ae8fea682?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240520T111158Z&X-Amz-Expires=300&X-Amz-Signature=05599d387b97ad820cb68c387e33f35663ada962b1f5255e0c29a90ee503241c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=53632140&response-content-disposition=attachment%3B%20filename%3Dmicro-2.0.13-linux64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2024-05-20 16:41:58--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/53632140/9e828b97-5c43-477c-91cc-d52ae8fea682?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240520%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240520T111158Z&X-Amz-Expires=300&X-Amz-Signature=05599d387b97ad820cb68c387e33f35663ada962b1f5255e0c29a90ee503241c&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=53632140&response-content-disposition=attachment%3B%20filename%3Dmicro-2.0.13-linux64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4817531 (4.6M) [application/octet-stream]
Saving to: ‘micro-2.0.13-linux64.tar.gz’

micro-2.0.13-linux6 100%[===================>]   4.59M  28.2MB/s    in 0.2s    

2024-05-20 16:41:59 (28.2 MB/s) - ‘micro-2.0.13-linux64.tar.gz’ saved [4817531/4817531]

Step 3 : Extract the micro text editor by using following command.

root@linuxhelp:~# tar -xvf micro-2.0.13-linux64.tar.gz 
micro-2.0.13/
micro-2.0.13/micro.1
micro-2.0.13/LICENSE-THIRD-PARTY
micro-2.0.13/micro.desktop
micro-2.0.13/micro.svg
micro-2.0.13/LICENSE
micro-2.0.13/micro
micro-2.0.13/README.md

Step 4 : Goto the directory by using following command.

root@linuxhelp:~# cd micro-2.0.13

Step 5 : Long list the files by using following command.

root@linuxhelp:~/micro-2.0.13# ls -la
total 11744
drwxrwxr-x 2 linuxhelp globalt     4096 Oct 22  2023 .
drwx------ 9 root      root        4096 May 20 16:42 ..
-rw-rw-r-- 1 linuxhelp globalt     1086 Oct 22  2023 LICENSE
-rw-rw-r-- 1 linuxhelp globalt    64161 Oct 22  2023 LICENSE-THIRD-PARTY
-rwxrwxr-x 1 linuxhelp globalt 11915264 Oct 22  2023 micro
-rw-rw-r-- 1 linuxhelp globalt     3055 Oct 22  2023 micro.1
-rw-rw-r-- 1 linuxhelp globalt      552 Oct 22  2023 micro.desktop
-rw-rw-r-- 1 linuxhelp globalt     6339 Oct 22  2023 micro.svg
-rw-rw-r-- 1 linuxhelp globalt    13365 Oct 22  2023 README.md

Step 6 : To execute the micro text editor run the following command.

root@linuxhelp:~/micro-2.0.13# ./micro

Step 7 : The text will be shown as shown in below image.

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to install Micro Text Editor on Debian 12. Your feedback is much welcome.

FAQ
Q
What is the feature of the Micro text editor?
A
* Supports common keybindings,
* colors and highlighting,
* Supports copy and paste with the system clipboard,
* etc..
Q
Execute the following link:
A
# wget https://github.com/zyedidia/micro/releases/download/v1.4.0/micro-1.4.0-linux64.tar.gz
Q
How can I download the Micro-text editor package?
A
Execute the following link:
# wget https://github.com/zyedidia/micro/releases/download/v1.4.0/micro-1.4.0-linux64.tar.gz
Q
Are there any alternatives in the Micro-text editor?
A
The alternatives are,
Visual Studio Code
Vim
GNU Emacs
GNU nano
Q
How to extract the downloaded file?
A
# tar -zxvf micro-1.4.0-linux64.tar.gz