Saturday, 12 January 2013

Centos 6/RHEL install Brother DCP 135C Printer

If you are searching for a printer to use on your Centos 6/RHEL box then you could do significantly worse than the Brother DCP 135C. It produces fine quality prints, has the obligatory scan/copy/photo capture functions and more importantly it has drivers cross platform including Linux, which you can find at the Brother web site.

To install the DCP 135C on Centos 6/RHEL you will need 2 driver packages, the LPR and cupswrapper, in rpm format although available in deb format if using a Debian based distro.

So download them and install with 

$ sudo rpm -Uvh *.rpm

Make sure the Cups program is installed although likely it got done when you first built your system.

$ sudo yum -y install cups

Now switch on your printer and browse to localhost:631 which will bring up the Cups management screen

Use the root password and click on adding printers

Your printer should have been detected if the drivers installed correctly and should appear in the list of local printers.

Check the box which shows your printer and continue

Follow the screens which are pretty self explanatory until the installation is completed. The above procedure should be fine for other Brother printers and other brands, providing you can get the drivers for them.

You should now have an online printer set up and ready to go.

There is also a shell script available which sets up the printer and does a test print out should you wish to use it.


Tuesday, 8 January 2013

Centos 6/RHEL install Dropbox

Dropbox is a file storing service which syncronises across all your devices for quick and easy access to your stored files.

It has a free service that lets you bring all your photos, docs, and videos anywhere. This means that any file you save to your Dropbox will automatically save to all your computers, phones and the Dropbox website.

Dropbox also makes it easy to share with others, whether you're a student or professional. You can relax knowing none of your important files will ever be lost.

Initial free storage is 2GB but this can be increased by taking part in a few simple challenges and recommending friends to the service. It can easily be raised to around 3-5GB depending  on how many friends you have.

Installing it, setting up and using it on Centos 6/RHEL is simple to do with just 2 commands. Make sure you have wget first though.

$ sudo yum -y install wget

For 32 bit systems

$ cd ~ && wget -O - "" | tar xzf -

For 64 bit systems

$ cd ~ && wget -O - "" | tar xzf -

This will install Dropbox on your system with hidden folders in your home directory and a main Dropbox folder.

Anything you drop into this folder is automatically saved to your account, so you can access files from anywhere with any device.

Now we run the Dropbox daemon

$ ~/.dropbox-dist/dropboxd

This starts the daemon and a series of dialogue boxes to set up your preferences and other details.

There is also a little python script which you can use to control the daemon if you wish, download it from
and run it as an unprivileged user (after making it executable).

$ chmod u+x

$ ./ start                 start the daemon

$ ./ stop                  stop the daemon  

$ ./ help                  other commands

You would probably use the start function most of the time, as to stop it you can just exit the icon which appears in the system tray. 

One of the first things to do is put the KeepassX password database file in the Dropbox folder, which I'd definitely recommend doing, as this will be synced regularly by the application so whenever you add a new password it is available from any device on which you have installed the Dropbox app.

Fluxbox users see Fluxbox key bindings for more information, an example shortcut is shown below, put it in the "keys" file.

Mod1 d : ExecCommand /home/<user>/.dropbox-dist/dropboxd

Then 'Alt d' will fire it up.

Plenty of things you can do with Dropbox and a tour of the web site will give you some ideas.

Monday, 7 January 2013

Centos 6/RHEL install KeepassX

After looking around for KeepassX for a while it was proving to be very elusive and I was on the verge of giving up the search until I stumbled across it in rpm form compiled for RHEL 6.

KeepassX is a very useful cross platform password manager program for handling all your web passwords. It utilizes a database file which can be opened on any platform if you have KeepassX installed. You can keep your password database at web locations like DropBox so that you can access it from any device and as it is encrypted, even if someone hacks your Dropbox account they still can't get at your passwords.

It's not easy to compile from source on Centos 6/RHEL so it is probably best to use the rpms which I managed to obtain.

Get KeepassX for Centos 6/RHEL below.



Install it with

$sudo rpm -Uvh <file_name>.rpm

Above shows the Keepassx database file prior to putting in the master password. Put it in the Dropbox folder on Centos 6/RHEL and it is updated immediately and synced to your account.

A very useful tool for Linux (and other OS's) which has proved to be indispensable in the ongoing battle with cyber terrorists.