Archive for September, 2006

by @ 4:21   Linux / Unix | Tech   Permalink

Install Lexmark Printers (Ubuntu)

Thursday, September 28th, 2006

This tutorial will guide you through installing Lexmark printers on Ubuntu. The tutorial was taken from the Ubuntu forums. I decided to post it here as it did not work exactly like it was supposed to for me and I had to modify the procedure.

I have ammended the tutorial to my needs and probably the needs of most and I have pointed out where it went wrong for me and how I solved it. It was not difficult to solve, but you will be required to be the ROOT user which is dangerous and destructive. Use at your own risk, I take NO responsibility for you damaging your system.

You will of course need to download the correct drivers for this, the Z600 driver. I have the correct link for the file as Lexmarks website is not the easiest to navigate around and find what you need.

The Z600 driver has been confirmed to work with the following printers:

Lexmark 5700 (black & white only)
Lexmark X1100
Lexmark X1110
Lexmark X1130
Lexmark X1140
Lexmark X1150
Lexmark X1180
Lexmark X1185
Lexmark Z513
Lexmark Z515
Lexmark Z715
Lexmark Z55
Lexmark Z615
Lexmark Z705
Lexmark Z605
Lexmark Z600
Lexmark Z25
Dell A920
Z65 (z65 driver)
Lexmark Z33 (z35 driver)
Lexmark Z33 (z35 driver)

First of all you need to download the correct driver to a folder of it’s own to save confusion.

Open a terminal window and type the following

sudo mkdir lexmark

This will create a folder called “lexmark” in your home directory.

Ok, again in your terminal window, type the following commands one after another, waiting for each command to execute first before starting the next one.

cd lexmark

wget http://www.downloaddelivery.com/srfilecache/CJLZ600LE-CUPS-1.0-1.TAR.gz

tar -xvzf CJLZ600LE-CUPS-1.0-1.TAR.gz

tail -n +143 z600cups-1.0-1.gz.sh > install.tar.gz

tar -xvzf install.tar.gz

sudo apt-get install alien

alien -t z600cups-1.0-1.i386.rpm

alien -t z600llpddk-2.0-1.i386.rpm

sudo tar xvzf z600llpddk-2.0.tgz -C /

sudo tar xvzf z600cups-1.0.tgz -C /

sudo ldconfig

cd /usr/share/cups/model

sudo gunzip Lexmark-Z600-lxz600cj-cups.ppd.gz

The driver is now installed. Restart the cups daemon:

sudo /etc/rc2.d/S19cupsys restart

Check to make sure the printer back-end works:

cd /usr/lib/cups/backend

./z600

The output of the above command should be similar to this:

direct z600:/dev/usb/lp0 “Lexmark Lexmark Z600 Series” “Lexmark Printer”

If you get no output, mount the usb filesystem. To do this type the following:

sudo gedit /etc/fstab

and add the following code to the end of the file

#USB Lexmark Printer
usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0

Save the file and close. Then just type the following in the terminal:

sudo mount usbfs

That should fix it.

Now simply set up your printer. Go to:

  • System
  • Administration
  • Printing

Make sure you select the z600 driver, and you’re done. Print out a test page to make sure it all works.

I hope this has helped you.

Page 1 of 212»

Have Xampp run at boot time

Wednesday, September 27th, 2006

“”Many people know from their own experience that it’s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start.“”

Quoted from Apache Friends. Home of the Xampp project.

It took me some time to find the information I need to get Xampp to start when the computer boots up. Apache Friends has a small How To to get the process going everytime, but it failed to work for me. So Borntwisted and myself had a natter about it and decided to add the Xampp start command into the startup programs and voila, it works a treat.

If the Apache Friends info does not work for you, and you are using Ubuntu Dapper then follow these simple instructions.

  • System
  • Preferences
  • Sessions
  • Startup Programs (tab)
  • Add

Enter the following command:

sudo /opt/lampp/lampp start

When your computer reboots you should now have Xampp start as a process.

Page 1 of 212»

Fix Firefox sound issues (Ubuntu Dapper)

Wednesday, September 27th, 2006

I am using the pre-installed version of Mozilla Firefox for Linux, some of you I know are not. This fix defiantly works on the pre-installed version, it is a little flaky on a manual install of Firefox and has been known not to work.

Please do try it if you have the manual install and hopefully it will work for you.

Open a new terminal window and type the following command:

sudo aptitude install alsa-oss

Once completed, enter the following command:

sudo gedit /etc/firefox/firefoxrc

Find and replace:

FIREFOX_DSP=”none”

With:

FIREFOX_DSP=”aoss”

Close and restart Firefox. In some cases a full reboot is required.

Page 1 of 212»

Realplayer Sound fix (Ubuntu all versions)

Wednesday, September 27th, 2006

I had to download the RealPlayer for Linux because of certain videos and the plugin for Firefox.

unfortunatly I had no sound, although video quality was fantastic. So after some searching around I found a few fixes, this one worked for me.

Open your terminal window and edit this file in your favourite text editor (”gedit” for me) You will also need to substitute the RealPlayer version with the version you have.

  1. sudo gedit /usr/lib/realplay-10.0.8/realplay

Find the line near the bottom of the file that says: (line 73 for me)

  1. $REALPLAYBIN”$@”

Replace that line with the following:

  1. aoss $REALPLAYBIN”$@”

EDIT

As Michael Olberg kindly pointed out (thank you) you may need to double check that you have the aoss package installed.

To check that it is installed, or to install it, just type the following into a terminal window.

  1. sudo apt-get install alsa-oss
  2. or you can just click this link (provoding you are viewing from an ubuntu machine)
Page 1 of 212»

Ubuntu ‘Open as Root’ Script

Tuesday, September 26th, 2006

Open a terminal window and enter:

gedit ~/.gnome2/nautilus-scripts/openas-root

Now add this code to the file

#!/bin/sh
### openas-root:
### written by alexp
### nautilus script for opening the selected files as superuser (uid=0),
### utilizing the appropriate applications.

for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gksudo “gnome-open $uri” &
done

### end of file.

Save and close this file.

Now enter this command into the terminal window:

chmod +x ~/.gnome2/nautilus-scripts/openas-root

Your all done. Right click any file or folder and under scripts you will find - openas-root

Enjoy.

Page 1 of 212»

Contact