Raspberry Pi

How to Install Mousepad on Raspberry Pi

Mousepad is a text editor which is available free and open-source that Linux users can utilize. It serves as the Xfce desktop environment’s primary text editor. However, it is compatible with all other Linux desktops. It is a quick editor with all the essential functionalities. Similar to Leafpad, the application on a small footprint offers extra functionality like plugins, search history, and automated reloading.

Follow this tutorial to install Mousepad on a Raspberry Pi system.

Install Mousepad on Raspberry Pi

Since Mousepad is a lightweight text editor, so you can easily install it from the Raspberry Pi source repository through the following steps:

Step 1: Make sure that the Raspberry Pi system repository is updated, which can be confirmed if you run the following update and upgrade command:

$ sudo apt update && sudo apt upgrade

Step 2: You can then install Mousepad from the Raspberry Pi source repository by the help of the below-given command:

$ sudo apt install mousepad

Text Description automatically generated

You must wait until the installation of the Mousepad is finished.

Run Mousepad on Raspberry Pi

Use the following command to launch Mousepad through a terminal window:

$ mousepad

You can also run Mousepad on Raspberry Pi from the GUI in the Accessories section of the Application menu. The editor is there with the name “Text Editor”.

The process of writing and saving the file through Mousepad is like the one you mostly used on other desktop-based text editor. It’s simple and you won’t find any difficulty using this editor as your default desktop-based text editor.

Remove Mousepad from Raspberry Pi 

If you wish to remove Mousepad from your Raspberry Pi system, just hit the following command to complete the removal process.

$ sudo apt remove mousepad

Text Description automatically generated

Conclusion

Mousepad is a lightweight GUI based text editor for creating and editing files. It can be set up using a straightforward command from the Raspberry Pi official repository. Then, you can run the editor through terminal via “mousepad” command, or from the “Accessories” section in the Application menu. Later, you can use this text editor as your default editor for creating and editing files on Raspberry Pi system.

About the author

Hiba Shafqat

I am a Computer Science student and a committed technical writer by choice. It is a great pleasure to share my knowledge with the world in which I have academic expertise.