Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 50

Thread: Cups 1.2 or higher required ?

  1. #11
    Join Date
    Jun 2009
    Location
    NSW Australia
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cups 1.2 or higher required ?

    Quote Originally Posted by Magic_Spehar View Post
    * Now go to your directory lexmark_install
    * In that directory you'll find a file named arch.tar Unzip that file.
    * Once unzipped you'll find lexmark-inkjet-08-driver-1.0-1.i386.deb
    Oddly, in my lexmark_install directory I don't have a "arch.tar" file, instead it's called "instarchive_all" - I managed to open it after I appended a ".lzma" extension to the file name. It contains 7 files, including the 10.3Mb lexmark-inkjet-08-driver-1.0-1.i386.deb package.

  2. #12
    Join Date
    Nov 2008
    Location
    Flanders
    Beans
    35
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cups 1.2 or higher required ?

    Quote Originally Posted by afrodeity View Post
    Doing this installed some libraries but what then? Sorry to be a complete nonse, but I also tried the original installer which still doesn't install.
    Normally that should be it. You shouldn't need the orginal installer script.

    Check to see if your printer is installed now by going to system - administration - printing. If it's not, try going to Server - New - Printer then the system should look automatically and you may find a Lexmark 2600 connected to usb.
    Last edited by Magic_Spehar; September 5th, 2009 at 12:02 AM.

  3. #13
    Join Date
    Nov 2008
    Location
    Flanders
    Beans
    35
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Cups 1.2 or higher required ?

    There's also another solution for those with a 64 bit Ubuntu 9.04 system who want to use their Lexmark X Series printer. You can create a chrooted 32 bit environment. The solution below also works with my Lexmark 3-in-1 X2650 printer and I also can use my scanner without any problem with xsane.

    Step 1:

    * sudo apt-get install dchroot debootstrap
    * sudo mkdir /chroot/
    * sudo gedit /etc/dchroot.conf
    o Add this line: jaunty /chroot
    * sudo debootstrap --arch i386 jaunty /chroot/ http://archive.ubuntu.com/ubuntu
    * sudo chroot /chroot/
    * dpkg-reconfigure locales

    Step 2:
    In another terminal window (or by existing chroot):

    * sudo gedit /chroot/etc/apt/sources.list
    * Add the following lines:
    o deb http://archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
    o deb http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse

    (We do this step because gedit has yet to be installed in the chroot environment)

    Step 3:
    In your chrooted environment (chroot /chroot):

    * apt-get update ; apt-get upgrade

    Step 4:
    In another terminal window (or by existing chroot):

    * sudo cp /etc/passwd /chroot/etc/
    * sudo cp /etc/shadow /chroot/etc/
    * sudo cp /etc/group /chroot/etc/
    * sudo cp /etc/sudoers /chroot/etc/
    * sudo cp /etc/hosts /chroot/etc/
    * sudo gedit /etc/fstab
    * Add the following lines:
    o /home /chroot/home none bind 0 0
    o /tmp /chroot/tmp none bind 0 0
    o /dev /chroot/dev none bind 0 0
    o /proc /chroot/proc proc defaults 0 0
    o /media/cdrom0 /chroot/media/cdrom0 none bind 0 0
    o /usr/share/fonts /chroot/usr/share/fonts none bind 0 0
    o devpts /chroot/dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
    * sudo mkdir /chroot/media/cdrom0
    * sudo mount -a
    * sudo gedit /usr/local/bin/do_dchroot
    * Add the following:
    o #!/bin/sh
    o /usr/bin/dchroot -d "`echo $0 | sed 's|^.*/||'` $*"
    * sudo chmod 755 /usr/local/bin/do_dchroot

    Step 5:
    In a new terminal:

    * dchroot -d
    * sudo apt-get install synaptic
    * sudo ln -s /usr/sbin/synaptic /usr/sbin/synaptic32
    * exit
    * sudo ln -s /usr/local/bin/do_dchroot /usr/local/bin/synaptic32
    * sudo synaptic32

    Now you can install all the programs in 32 bit you want. In my case I installed Openoffice, Firefox and Xsane.

    Normally you should be able to install the installation script for your Lexmark printer driver without any problem.
    Enter a terminal. Then use the following commands:
    * sudo linux32 chroot /chroot
    * go to the directory where you have your downloaded Lexmark installation script.
    * ./yourscript.deb.sh

    Now if want for to print a document in open office. Go to a terminal and enter * dchroot -d
    * ooffice

    If you want to scan a document, go to terminal and enter
    * dchroot -d
    * xsane

    If you want to be able to easily launch 32 bit chroot apps directly from your 64 bit environment symlink the app name to /usr/local/bin/do_dchroot. If you're using this as desktop system you'll probably want to use synaptic to install x, gnome, ubuntu specific themes, etc.

  4. #14
    Join Date
    Dec 2007
    Beans
    13

    Re: Cups 1.2 or higher required ?

    Couple of comments. This chroot works great for me, but I had to do a couple of things first. Before you run dpkg-reconfigure locales run this

    * sudo cp /var/lib/locales/supported.d/* /chroot/var/lib/locales/supported.d/

    This makes the dpkg-reconfigure work properly. Next, before you install your printer install CUPS in the chrooted environment

    * dchroot -d
    * sudo apt-get install cups

    At least I needed to do those things before it worked.

  5. #15
    Join Date
    Dec 2007
    Beans
    13

    Re: Cups 1.2 or higher required ?

    A couple of further things to add as I work everything out.


    3. You may find your printer disappearing after reboot. This is because the 32 bit version of CUPS doesn't automatically get started. In order for this to happen you should do the following

    * sudo gedit /etc/init.d/cups32
    Add the following lines
    o #!/bin/sh
    o dchroot -d /etc/init.d/cups $1
    Run the command
    * update-rc.d /etc/init.d/cups32 defaults

    4. You may find that xsane doesn't work unless you run it as root. In order to fix this you should run the command

    * sudo cp /chroot/usr/local/lexmark/lxk08/etc/99-lexmark-2600-series.rules /etc/udev/rules.d/

    After a restart this will cause udev to apply the proper permissions to your printer/scanner and will allow you to use xsane as a normal user.

  6. #16
    Join Date
    Aug 2005
    Beans
    253

    Re: Cups 1.2 or higher required ?

    I checked out the files i am supposed to have in lexmark_install folder under nautilus as root.... I renamed the files so they opened in archive manager but ony one file inside.... not 7 ?

    and the info under that appears to be relevant to 64 bit ubuntu, this one is 32.

    as karmic is nearly here, is it wise for me to wait and see if the cups is upgraded then ?

    thanks
    Jon
    Scotland

  7. #17
    Join Date
    Jun 2009
    Location
    NSW Australia
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cups 1.2 or higher required ?

    You don't need to rename any files for the 32 bit install. You don't need to do anything as root. There is no problem with cups - the problem is with one of Lexmark's installer scripts. They made an error that you need to fix to get this working.

    I explained what you need to on the first page: http://ubuntuforums.org/showpost.php...82&postcount=2

  8. #18
    Join Date
    Aug 2005
    Beans
    253

    Re: Cups 1.2 or higher required ?

    Just open it in a text editor and add '--[[' and '--]]' like this:

    ??????

    I checked your post... looked at the code you posted which appeared to be exactly the same as the code at the bottom of the file....so at least I am looking in the right place.

    at first I cut and paste the your code over the top incase I missed anything... then I tried editing anything that said false to true within that section of code.

    unless I have to put

    '--[[' and '--]]'

    somewhere ?

    thanks for your patience....

    regards
    John

  9. #19
    Join Date
    Jun 2009
    Location
    NSW Australia
    Beans
    124
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cups 1.2 or higher required ?

    You just need to type --[[ and --]] at the exact places I put them as shown in the following example in red...

    Before:
    Code:
    function is_cups_version_ok()
        local bRet = true
        local packager = get_system_packaging()
        local tmp_path = g_mysecurepath
        local busehome = false
    After:
    Code:
    function is_cups_version_ok()
        local bRet = true
        --[[local packager = get_system_packaging()
        local tmp_path = g_mysecurepath
        local busehome = false
    Before:
    Code:
        if busehome == true then
            -- os.remove(tmp_path .. '/cups_packages_072006')
        end
        
        return bRet
    end
    After:
    Code:
        if busehome == true then
            -- os.remove(tmp_path .. '/cups_packages_072006')
        end
        --]]
        return bRet
    end
    Then save and close the file.

    Now that the file is fixed, you need to open the terminal and type the following (replace 'home/nathan/downloads/lexmark_install' with the location of the lexmark_install folder on your pc):

    Code:
    cd '/home/nathan/downloads/lexmark_install'
    sudo ./startupinstaller.sh
    Last edited by nathan726; October 2nd, 2009 at 02:15 AM.

  10. #20
    Join Date
    Jan 2008
    Location
    San Jose, CA
    Beans
    26
    Distro
    Ubuntu Development Release

    Re: Cups 1.2 or higher required ?

    I have an X2600 Lexmark and I installed the driver from Lexmark website and thats it .. there was no problem, scanning and printing works. Just make sure you restart after the install.

    I have ubuntu 9.10 and i did not explicitly install anything else.

Page 2 of 5 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •