Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

Saturday, August 16, 2008

Printing on a HP LaserJet over the network using Linux

The desktop given to me is connected to a printer HP Laserjet 2200 over network with an IP address. I wanted to configure it on Fedora. I already know about the fact that HP printers are well supported on Linux. This post might help you if are in similar kind of situation, that is, you want to connect to a network printer from a linux box over LAN. This post is only for the sake of convenience. If things don't work out and you need more information then you should visit this link.


Lets first see the system configuration.

$ uname -a
Linux localhost.localdomain 2.6.25.14-108.fc9.x86_64 #1 SMP Mon Aug 4 13:46:35 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

So, basically I am using FC9 with x86_64 processor. This much is good enough for us.


Check if cups daemon is running. You can check at System->Administration->Services->Cups. It should be running. You can also check this on console using following command:

$ sudo /sbin/chkconfig --list|grep cups
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off

So, Cups is running on run-level 3, 4 and 5. If it is not running, then you should make it run first. Its not dificult and following command should do the job.

$ sudo /sbin/service cups start
or
$ sudo /sbin/chkconfig --level 345 cups on


Now, check if hplip is available on your system.

$ rpm -qa|grep hplip
hplip-2.8.2-2.fc9.x86_64
hplip-gui-2.8.2-2.fc9.x86_64

In case they are not present, use Yum to get the required packages:

$ sudo yum install hplip hplip-gui

If HPLIP is already installed then try running hp-setup to configure your printer.

$ sudo hp-setup



I choose the second option 'Network connection'. Then click on next.



It lists the printers available on the network. I choose the the HP LaserJet 2200 that is assigned to me and then click next.


It asks me to select a suitable PPD file available in the list. Usually you should select the one that closely matches the description of the printer. In this case I retain the first selection.


Here I add some description to my printer and click next. On the next screen it sends a test page for printer. It starts working !! I did not believe that the things would be this much simple. Because I remember spending days on getting my printer work on linux. I think those days are gone now. The life has certainly become more comfortable with linux.

Saturday, March 8, 2008

Installing Matlab 7 on Fedora 7

I will just list common problems and their probable solutions.

Problem 1: The installer does not work.
http://www.mathworks.com/support/solutions/data/1-12E9FJ.html?solution=1-12E9FJ

libXp.so.6: cannot open shared object file: No such file or directory

You need to install "libXp-devel" package.

# yum install libXp-devel

Problem 2:
Why does MATLAB fail to launch on Linux machines with an error about Assertion `c->xlib.lock' failed

http://www.mathworks.com/support/solutions/data/1-54UIFE.html?solution=1-54UIFE



Problem 3: When launching matlab, you may get following error

error while loading shared libraries: /usr/local/matlab73/bin/glnx86/libmwlapack.so: cannot restore segment prot after reloc: Permission denied

There are two solutions - first, you disable SELINUX. The other solution is to allow the permission in SELinux administration itself.

Open the SELinux Administration GUI and set the following Memory Protection Boolean to true.

Allow all unconfirmed executables to use libraries
requiring text relocation that are not labeled texttrel_shlib_t
.

or run following command on console

# chcon -t texrel_shlib_t /usr/local/matlab2006b/bin/glnx86/*.so