If you're like me, you do a lot of uploading to pastebin services. Although the task isn't terribly difficult, sometimes you're in a hurry and you just wish there was a much faster way. With the help of a little application called Nautilus-pastebin your pastebin uploads are only a right-click away.
In this article I am going to show you how to install and use this handy application made specifically (and only) for the GNOME desktop.
What is "pastebin"?
Before I get into the installation, a little definition of what a "pastebin service" is. If you've ever done any writing online (whether it be for a site like Ghacks, or even in a forum) and you've ever needed to add code to a post, you know it can be a hassle. There are two issues that are all too obvious: line numbering and code layout. When you post online, generally speaking, your code layout is all fubard. None of your indentions hold which makes code look sloppy. Also, if you add line numbers (for reference purposes) those numbers will be automatically copied should someone need to copy/paste your code. Two very good reasons why an alternative solution is necessary. That's where pastebin comes in handy. With pastbin you upload your code and, in return, you are given a simple link to post. So instead of posting up a huge chunk of code, you just add a link for which users can then visit and see your code.
Typically, pastebin services come in the way of a website like Pastebin. You don't have to login or even become a member. You just enter your code and you are given a url. Let's make that even easier shall we?
Installing nautilus-pastebin is simple:
That's it. Upon completion of installation, you will be required to restart GNOME, so log out and log back in. You are now ready to start using nautilus-pastebin.
Where's the app?
You will quickly notice that there is no application in any of your menus. Why? Nautilus-pastebin is an action installed for the Nautilus file manager. To access the action do the following:
When the warning pops up (see Figure 1) you don't get much time to see the link. At first you might think there's no way you can copy that down, and you certainly can't use your mouse to copy the link. So what do you do? Well, the developer thought of that. When you post a file to pastebin using Nautilus-pastebin, the url is automatically copied to your clipboard. So you can immediately go to the site (or whatever you want to post the url to) and click <Ctrl>v to paste the link. Simple!
You will also note (take a look at Figure 1) that you are pasting to paste.ubuntu.com. You can configure Nautilus-pastebin to use any pastebin service you choose. If you run the command nautilus-pastebin-configurator a small window will open up that will allow you to set the following:
Make your selections and then click the Close button.
Posting to pastebin has never been so easy. If you frequently use a pastebin service, and your desktop of choice is GNOME, do yourself a favor and install nautilus-pastebin.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.