Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

* * * * * 2 votes

Leafpad


  • Please log in to reply
No replies to this topic

#1 Guest_hollowface_*

Guest_hollowface_*

  • Guests
  • OFFLINE
  •  

Posted 02 April 2015 - 12:54 AM

oFimL8h.png

Leafpad is a basic text editor.

Features:
- Display line numbers
- Limitless undo/redo

Installation instructions are provided below by operating system. Don't see your favorite OS listed? Consider compiling from source instead, instructions for that are listed under the first section, titled "GENERIC".

GENERIC:

Install Leafpad 0.8.17:

Steps:
1. Login to your root account.
2. Open a terminal-emulator and type "su example1".
3. In a terminal-emulator type "cd /home/example1".
4. In a terminal-emulator type "wget -t 0 -nc --waitretry=10 "http://savannah.nongnu.org/download/leafpad/leafpad-0.8.17.tar.gz" ".
5. In a terminal-emulator type "tar -xpzf /home/example1/leafpad-0.8.17.tar.gz".
6. In a terminal-emulator type "exit". This will drop you back to root.
7. (Optional) In a terminal-emulator type "rm -f /home/example1/leafpad-0.8.17.tar.gz".
8. In a terminal-emulator type "cd /home/example1/leafpad-0.8.17".
9. In a terminal-emulator type "./configure --prefix=/usr/bin/leafpad"
10. In a terminal-emulator type "make".
11. In a terminal-emulator type "make install".
12. In a terminal-emulator type "rm -rd /home/example1/leafpad-0.8.17".
13. Close the terminal-emulator.

Notes:
- Substitute all instances of "example1" for your username!
- You can verify that su (switch user) was successful by typing "whoami", it will output the username.
- You must have GTK+2 or higher installed.
- If you are using a distro that disables the root account in favor of sudo, login to your user account, and then use "sudo -i" to simulate a root logon.
- The instructions provided here are for building Leafpad from source as this type of generic instruction allows for installation on a wider range of Linux distros, but Leafpad is a fairly common application so depending on which distro you are using, you may be able to more easily install Leafpad using a package-manager and repos. I've included some distro specific instructions later on in the post.
- These instructions were tested on Slackware 14.1 X86-64, but should work on many distros. It doesn't have to be X86-64, it can be X86-32.
- You may notice that these instructions install version 0.8.17, but the OS specific instructions later on install
a different version. This is because 0.8.17 is the most recent version of source code provided on the official site, some repos have newer version binary versions, or are still stuck with an older version.

Add A Menu Entry For Leafpad 0.8.17 In KDE:

Qgn2WmN.png

Steps:
1. Login under your user account.
2. Right-click on the KDE menu, and choose "edit applications".
3. Click on "Accessories".
4. Click "New Item" from the top menu.
5. Enter "Leafpad" as the "Item name".
6. In the "Command" section enter "/usr/bin/leafpad/bin/leafpad".
7. Click on the empty box beside the description, click "other icons", and click "Browse".
8. Browse to "/usr/bin/leafpad/share/icons/hicolor/scalable/apps", and click "leafpad.svg".
9. Press the "Save" button, and then close KDE Menu Editor.

Notes:
- You'll need to do this on a per user basis.

Launch Leafpad 0.8.17 Under KDE:

Steps:
1. Login as your regular user.
2. Open the KDE menu, navigate to the "Applications" tab, then the "Accessories" section, and click "Leafpad".

Notes:
- This assumes you've setup a menu entry entry (as show in the previous instructions).
- You can also launch from Konsole (or your prefered terminal-emulator) using "/usr/bin/leafpad/bin/leafpad", but you'll need to keep Konsole open until you've closed Leafpad.

Add A Menu Entry For Leafpad 0.8.17 In XFCE:

 

fO14jP6.png

Steps:
1. Login under your user account.
2. Open a terminal-emulator and type "nano /home/example1/.local/share/applications/leafpad.desktop".
3. In Nano type:

[Desktop Entry]
Version=1.0
Type=Application
Name=Leafpad
Exec=/usr/bin/leafpad/bin/leafpad
Icon=/usr/bin/leafpad/share/icons/hicolor/scalable/apps/leafpad.svg
Categories=Utility;

4. Press "control" + "x", type "y", and press enter to save.
5. Close your terminal-emulator.

Notes:
- You'll need to substitute "example1" for your username.
- You'll need to do this on a per user basis.

Launch Leafpad 0.8.17 Under XFCE:

Steps:
1. Login as your regular user.
2. Open the XFCE applications menu, navigate to the "Accessories" section, and click "Leafpad".

Notes:
- This assumes you've setup a menu entry entry (as show in the previous instructions).
- You can also launch from XFCE Terminal Emulator (or your prefered terminal-emulator) using "/usr/bin/leafpad/bin/leafpad", but you'll need to keep XFCE Terminal Emulator open until you've closed Leafpad.

DEBIAN:

Install Leafpad 0.8.18.1 On Debian:

Steps:
- Login to your regular user account.
- Open Gnome Terminal and type "su root". Enter your root password when prompted.
- In Gnome Terminal type "aptitude install leafpad=0.8.18.1-3".

Notes:
- These instructions were tested on Debian 7.4.0 X86-64, but will work for many Debian derivatives. It also works for X86-32.
- You can install the most recent version available in your repos using "aptitude install leafpad".
- You may need to update your package lists. Type "aptitude update" to do this.
- These instructions are for 0.8.18.1, because 0.8.17 is not available in the repos for Debian 7.4.0, and this is the most recent version that is.

Launch Leafpad 0.8.18.1 Under Gnome:

Steps:
1. Login as your regular user.
2. Click on the application dash (the top button the dock).
3. In the search box type "leafpad".
4. In the search results click on the "leafpad" icon.

Notes:
- For Gnome Classic it will be in the "Accessories" section of the "Applications" menu.

UBUNTU:

Install Leafpad 0.8.18.1 On Ubuntu:

Steps:
- Login as your regular user.
- In Gnome Terminal type "sudo apt-get install leafpad=0.8.18.1-4".

Notes:
- These instructions were tested on Ubuntu 14.04 X86-64, but will work for many Ubuntu derivatives. It also works for X86-32.
- You can install the most recent version available in your repos using "sudo apt-get install leafpad".
- You may need to update your package lists. Type "sudo apt-get update" to do this.
- These instructions are for 0.8.18.1, because 0.8.17 is not available in the repos for Ubuntu 14.04, and this is the most recent version that is.

Launch Leafpad 0.8.18.1 Under Unity:

Steps:
1. Login as your regular user.
2. Click on the application dash (it's the Ubuntu logo at the top of the dock).
3. In the search box type "leafpad".
4. In the search results click on the "leafpad" icon.

CENTOS:

Install Leafpad 0.8.9.2 X86-64 On CentOS X86-64:

Steps:
1. Login to your root account.
2. Open a terminal-emulator and type "su example1".
3. In a terminal-emulator type "cd /home/example1".
3. In a terminal-emulator type "wget -t 0 -nc --waitretry=10 "http://pkgs.repoforge.org/leafpad/leafpad-0.8.9-2.el6.rf.x86_64.rpm" ".
4. In a terminal-emulator type "exit". This will drop you out of your user, and back to root.
5. In a terminal-emulator type "rpm -i /home/example1/leafpad-0.8.9-2.el6.rf.x86_64.rpm".

Notes:
- These instructions were tested on CentOS 7.0 X86-64.
- Leafpad is not available in the official repos. These instructions download the RPM package from a non-official third-party source! DO NOT PROCEED UNLESS YOU TRUST RepoForge! You can always compile from source code instead.
- RepoForge does also have 32bit RPMs for Leafpad, but since I don't have the 32bit version of CentOS I was not able to test for that, but I would expect the instructions are the same aside from downloading either the i686 or i386 RPM instead of the x86_64 one.
- Replace all instances of "example1" with your user name.
- This version of Leafpad is older because it's coming out of a CentOS 6 repo, it isn't available in the RepoForge CentOS 7 repo.

Launch Leafpad 0.8.9.2 Under KDE:

Steps:
1. Open the KDE Menu.
2. Go to the "Applications" tab.
3. Go to the "Utilities" section, and click on "Leafpad".
 

BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users