You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Note that it is also possible to specify a CUPS server on a Linux client machine via /etc/cups/client.conf with the'ServerName <host>' directive eg

Code:

ServerName 192.168.1.12

Then the client applications use libcups2 communicate directly with the server's CUPS daemon instead of the local CUPS daemon. (In fact CUPS doesn't have to be running on the local machines when configured like this.) This approach is good for eliminating the need for any additional configuration on the client machines.

This is truly a demon printer! After it magically permitted me to set up this printer via hplip (post #10), today for no apparent reason that setup show a red X on the printer image in hp-setup and I repeatedly get the "Smart Install is enabled in 'HP Laserjet Professional P 1102w" message. Of course, it continues to have a signature verification failure and continues to fail to uninstall the Smart Install [sic] program. Who knows why it magically worked, briefly, yesterday.

So, I'd like to try a "raw" setup in cups. In the http://localhost:631/admin/ page, that printer is not found, but I have "HP Printer (HPLIP)" and "HP Fax (HPLIP)" options for 'Local Printers'. For Other Network Printers I have various options: ipp, https, http, ipps, AppSOcket/HP JetDirect, LPD/LPR Host or Printer.

Get me started? Which should I choose?

the Local Printer, HP Printer option gives me "hp" on the connection line and various "examples" such as http://hostname.631/ipp, etc.

You're dealing with more than one issue here. The 'Smart Install' needs to be dealt with first. It effectively causes the printer to present a cdrom storage device when connected, as you'll note if you do

If you want to utilize network connectivity instead, then you'll need a Windows machine to help with the initial configuration as jlinkels already described. Once the printer is connected to your network and configured with a valid static IP address then you can proceed with configuring via hp-setup (or CUPS web interface if preferred).

If wanting to investigate a possible 'automated' usb-modeswich approach, I found a page showing a configuration for a similar model (P1102 with product ID 0x002a). From one of your earlier posts I note that the P1102w model has a differnet Product ID (0x102a), so a suitable config file might be /usr/share/usb_modeswitch/03f0:102a containing...

You all have given me lots of good ideas and I may have to try each one of them, but at the moment, I am suspecting a bad motherboard:

1. Whenever I unplug or plug-in a USB device on the back panel the computer stops. Screens still show, but nothing runs. No keyboard, no mouse, even remote sessions are unresponsive. Basically, this appears to 'glitch' the processor and causes it to freeze. The only remedy is the reset button. That shouldn't happen just by removing or inserting a USB device.

2. The 1102w printer and Fujitsu scanner appear and disappear between boots. In fact, between posting my last message and this, the 1102w "reappeared" on the Linux system with the url:

However, trying a test page failed. Nevertheless I have testpage printouts from that printer both from the Linux and Windows computer *proving* that at one time it worked on both systems, but it doesn't stay working. Right now, the Windows VM no longer connects to the printer, even though it shows in the list of printers and the user was printing on it all day. Furthermore, I definitely scanned something on Friday with the Fujitsu scanner and Foxit on the Windows VM, but haven't go it working since. The appearing/disappearing, working/not-working thing is strange.

3. I plugged a USB Backup drive into the other front panel connector. Windows gave and error that it could not communicate with that device.

4. The clincher (for me) when I plugged in the USB Backup drive into the front panel, the mouse and keyboard (on Linux and Windows) stopped working. The keyboard/mouse wireless dongle is plugged into the other front panel USB port. When I unplugged the drive, the mouse and keyboard started working again.

All this is very odd behavior for USB devices. My first step will be to move the SSD drive from the "new" computer into the old carcass -- which worked with all these devices and didn't glitch when moving USBs around. Then, I'll head off to the store to exchange this motherboard. Stay tooned!

Some minor progress. I've swapped motherboards, but that didn't appear to help. However, when I went to the office to disassemble the whole mess, I saw a "Windows Printer Test Page" on the printer! After some more experimentation, I have finally, after a week, got this !@#$% 1102w printer installed on the Windows VM. The immediate problem is that I continually get the "Smart Install Device(s) Detected message on the Linux host. How do I completely disable this message? Do I have to uninstall hplip?

No, it has nothing to do with HPLIP. It is a setting in the printer to present a ‘cdrom’ device on the USB interface. Can you not disable it via Windows (HP printer utility)?

I've not yet found a utility on the Windows VM for that, but if I do, would it not also disable the "Smart Install" on the Windows side as well? Not sure I want to do that because, in the end, that's what it used to install itself on Windows. Also, the message on the Linux box is from "HP Device Manager". Is that not HPLIP?

More on that later. Meanwhile, I'm trying to configure this printer as shared on Windows and accessed from Linux. I've followed the instructions here: https://wiki.archlinux.org/index.php...-_Linux_client using the "Windows Server, Linux Client" section. The connection I'm using is lpd://192.168.0.174/CharmainesPrinter where "CharmainesPrinter" is the Windows share name. I've selected the driver: "HP LaserJet Professional P 1102w hpijs, 3.16.5, requires proprietary plugin (color)".

When trying to print a test page I get: State stopped "Filter Failed".

I have other choices of driver including ones with the string "CUPS" in the driver name. Does anyone have suggestions? Should I try all these 1102w drivers? They all say "requires proprietary plugin" so maybe none of them will work. The "(color)" bit confuses me because I don't believe the 1102w was capable of color. Should I try something other than lpd, Samba for example? Perhaps the proprietary plugin requirement is the problem. Perhaps I should use a PostScript or PCL driver?

I've had an 1102w for years, and I've never had any problems with it since Day 1. I used to use HPLIP for setting up the printer, but since I've gone Slack for the last few years, I use foo2zjs.

1. removepkg hplip (delete non-empty directories) Not completely necessary, but it's redundant, and you'll end up with double drivers for everything if you don't.
2. http://foo2zjs.rkkda.com - build and install the drivers per the instructions. I found a SlackBuild for it online somewhere and modified it slightly, but the driver instructions work fine.
3. lynx http://localhost:631 - Delete any printer that may be there, then re-add it, find the 1102w driver in the list, set the printer as server default, print test page.

These instructions have never failed me, and it's a good thing since I've lost all faith in HP's ability to write non-Windows driver software. Great hardware, lousy software IMO. foo2zjs works so well I dropped a donation for it in appreciation.

YMMV, but try this before you start installing any kind of weird proprietary crap.

^ I don't share the printer over the network that way. The drivers for all the computers were locally installed, and while CUPS asked if I wanted to share it, I never saw the need, since everything just worked. I know you've already considered it, but I'm thinking that getting the printer set up and printing in linux then sharing it to windows is the right way around. Once you get it up and running, and verify that CUPS is doing its thing, working out how to get the VM to see it should be an easier job.

I've seen that smart device thing around the web, but I've never hit it, so I don't know how the HP utility is supposed to work. But until that's fixed, windows will never see the printer as a printer. It'll insist that it's a cdrom device.

This week the 1102w printer suddenly stopped working on Windows Arrrgghhh! I'm going to try your suggestion. I've removed hplip. I'm about to download foo2zjs. This question may be premature, but assuming foo2zjs asks for a printer driver, what did you use? I assume it's NOT "HP LaserJet Professional P 1102w hpijs, 3.16.5, requires proprietary plugin (color)".

Later ...

I've downloaded and done the make on foo2zjs. Did you install the "(Optional) Install hotplug (for HP LJ 1000/1005/1018/1020/P100[5678]/P1505)"?

Even later ...

Well, no joy so far. I've installed foo2zjs, restarted CUPS (rebooted, in fact), but when I go into http://localhost:631/admin/, NO local printers are shown! lsusb does see the printer:

^ Once you remove hplip and rm the non=empty directories in /etc, there will only be one p1102w driver in the list. You can install foo2zjs without doing the delete, but you do get double drivers for each device in the list.

The one you want will be labeled HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended). No need to download anything or install anything else. Select the driver, set it as the server default, tell CUPS to share it if you want, then print a test page.

It's always been just that simple for me, so I figure it was worth a shot.

^ Once you remove hplip and rm the non=empty directories in /etc, there will only be one p1102w driver in the list.

Perhaps I need some hand-holding here. Most of the directories in /etc are non-empty and contain lots of important files, scripts, etc. Is there some sub-directory in etc you are thinking about? I'm not about to delete all the non-empty directories in /etc and I don't think that's what you meant.

Quote:

You can install foo2zjs without doing the delete, but you do get double drivers for each device in the list.

The one you want will be labeled HP LaserJet Pro P1102w Foomatic/foo2zjs-z2 (recommended). No need to download anything or install anything else. Select the driver, set it as the server default, tell CUPS to share it if you want, then print a test page.

It's always been just that simple for me, so I figure it was worth a shot.

Well, that's what I did (installed foo2zjs without deleting files in /etc). Now, where is this list of drivers you're talking about? As mentioned, when I run http://localhost:631/admin/ and go under either 'Add Printer' or 'Find New Printers', nothing at all is listed for local printers. Yet, as I mentioned, lsusb does see the printer device. Do I have to select some other connection type like ipp, http, etc.? Does yours just come up with "HP LaserJet Pro P1102w Foomatic/foo2zjs-z2" in the local Printers list? Is there a directory I can look in to confirm foo2zjs installed OK? (e.g. where are the foo2zjs drivers supposed to be kept?)

In fact, I looked through the list of HP drivers and the P1102w Footmatic is out there (and out there twice). But I guess my problem is that the computer doesn't see the hardware for some reason.