Development
Nautilus Pastebin, how to send your files to a “pastebin” with one mouse click
5I am very fond of those websites that allow users to upload files for a public viewing (called pastebin), usually I upload logs, links and other text files with pastebinit, a simple command-line tool, already available in Debian’s and Ubuntu’s archives, and I thought:
“Why don’t find a not-CLI solution to make it in a more fast and comfortable way?”
So I decided to write nautilus-pastebin, an extension for the GNOME file manager, which allows users to send files just a right-click away.
How does it work?
Simply: right-click on a file, select «Pastebin» and, if the Internet connection is active, after few seconds you will see a bubble like that one in this screenshot:
The extension doesn’t only show that notification, it also retrieves the MIME type in order to try to adjust the syntax highlighting parameter according to the configuration of the selected pastebin and finally copies the paste URL to the clipboard, allowing you to paste it in a browser tab, IRC channel or wherever you want.
The global configuration file is located into /etc path, but if you want to select another pastebin to use you may do it by creating a file like the following one:
[generals]
pastebin = $GLOBAL_CONFIGFILE_SECTION
The file must be named as nautilus-pastebin.conf and saved under ~/.config/nautilus-pastebin/.
If problems occured during the past operation, you may see a message like the following:
Where can I download it? And how can install it?
You can find all the information that you need by opening the projects page, for the installation, after uncompressing the tarball, you can:
- Use the setup.py script.
- Copy:
- scripts/nautilus-pastebin.py to /usr/lib/nautilus/extensions-2.0/python/
- data/nautilus-pastebin.conf to /etc/ or in ~/.config/nautilus-pastebin/
- data/nautilus-pastebin.png to /usr/share/pixmaps/
After the installation, you may need to restart Nautilus:
killall nautilus
Some pastebins of the preconfigured ones don’t work well and I need some time to improve and extend the support for other websites.
If you wanted to contribute to the development by sending me patches, configurations or suggestions I would be very happy!
Links:
New project: Installation Report Generator
5That’s a screenshot:
This application, written in Python + GTK, collect informations about user’s hardware and software configuration, then compile an installation report according with the notebook page template of Ubuntu-it’s wiki.
For installation instructions and other informations about the project, please read this.
Realtek’s modules, new version has been released
6If you read my previous article about r8169 module but it wasn’t the best solution for your Realtek ethernet adapter, now it’s the time to be happy!
Realtek has released new version of r81* modules and now we’ll proceed to compile and install the right module we need, but please note that I have a RTL8101E PCI Express Fast Ethernet controller, so I tested this procedure on Ubuntu 8.04 «Hardy Heron» only with r8101 module.
How to compile r8168 and r8101 modules for Realtek ethernet adapters
12r8169 module has a lot of bugs and it doesn’t work well with a large number of Realtek’s adapters, so, a few days ago, I posted a patch for the Realtek r8101 module, which supports kernel 2.6.23 but not the 2.6.24, newest kernel in Ubuntu 8.04 «Hardy Heron».
This howto could be a solution for a large number of ethernet adapters issues.
The first step is downloading the right driver (r8101 or r8168) for the adapter:
- r8168 supports RTL8111B, RTL8168B, RTL8111, RTL8168 and RTL8111C;
- r8102 supports RTL8100E, RTL8101E and RTL8102E-GR.


