PDA

View Full Version : HP Linux Imaging and Printing System - Error



Jordan_Hickin
April 20th, 2014, 03:57 PM
Hi guys

I am trying to connect to my HP Wireless Printer on my server.

I have installed hplip and hplip-gui

and yet whenever i run


sudo hp-setup

i get this error:


HP Linux Imaging and Printing System (ver. 3.12.2)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No display found.
error: hp-setup requires GUI support (try running with --qt3). Also, try using interactive (-i) mode.



And when i run


sudo hp-setup -i

it can't find my printer... so i tried


sudo hp-setup 192.168.0.6

and get the orignal error (No Display FOund)


Please help

SeijiSensei
April 20th, 2014, 04:09 PM
The hplip-gui package contains (http://packages.ubuntu.com/precise/all/hplip-gui/filelist) these executables:


/usr/bin/hp-fab
/usr/bin/hp-faxsetup
/usr/bin/hp-linefeedcal
/usr/bin/hp-makecopies
/usr/bin/hp-pqdiag
/usr/bin/hp-print
/usr/bin/hp-printsettings
/usr/bin/hp-sendfax
/usr/bin/hp-systray
/usr/bin/hp-toolbox
/usr/bin/hp-wificonfig

I'd guess hp-toolbox might be the best place to start.

Jordan_Hickin
April 20th, 2014, 04:12 PM
hi seijisensei

Maybe my coding is bad

I run


hp-toolbox

and all i got was



administratorjah@my-server:~$ hp-toolbox

HP Linux Imaging and Printing System (ver. 3.12.2)
HP Device Manager ver. 15.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: No display found.
error: hp-toolbox requires GUI support. Exiting.



This GUI is annoying

Jordan_Hickin
April 20th, 2014, 04:19 PM
i just ran hp-check and it has 14 errors... neew to find out why....

oldfred
April 20th, 2014, 04:24 PM
If you want to run hplip-gui, you need a gui. Servers do not have a gui, but many users who are not command line experts may install a gui but not the entire desktop with all the gui applications.

Comparison of desktop environments
https://wiki.archlinux.org/index.php/Desktop_Environment
http://en.wikipedia.org/wiki/Comparison_of_X_Window_System_desktop_environments

https://help.ubuntu.com/community/ServerGUI#X11_Server_Installation

Lightweight Desktop environment
Ubuntu Server + lxde
sudo apt-get install lxde
Or Xfce GUI without any of the associated Xubuntu applications
sudo apt-get install xfce

Jordan_Hickin
April 20th, 2014, 04:27 PM
apparently ubuntu server doesn't support the gui :/



Distro
Version
Installer
GUI14 (http://hplipopensource.com/hplip-web/models/officejet/officejet_6600.html#note14)
Scan3 (http://hplipopensource.com/hplip-web/models/officejet/officejet_6600.html#note3)
Fax5 (http://hplipopensource.com/hplip-web/models/officejet/officejet_6600.html#note5)
Status
Photo Card4 (http://hplipopensource.com/hplip-web/models/officejet/officejet_6600.html#note4)
USB
Parallel
Network1 (http://hplipopensource.com/hplip-web/models/officejet/officejet_6600.html#note1)


Ubuntu
11.10
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes


Ubuntu
12.04
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes


Ubuntu
12.10
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes


Ubuntu
13.04
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes


Ubuntu
13.10
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes


Ubuntu
14.04
Yes
No
Yes
Yes
Yes
No
Yes
No
Yes

Jordan_Hickin
April 20th, 2014, 04:30 PM
No i got nothing... i have gone back to the system before i even started trying to connect to the printer... do you know of any suitable tutorials (Or could you help me) set up the connection to my printer.. Lets say i have nothing installed that i need yet.

SeijiSensei
April 20th, 2014, 04:38 PM
On the server, edit as root with sudo the file /etc/cups/cupsd.conf and replace the line

Listen localhost:631
with

Listen 631
then restart cups with "sudo service cups restart".

Now try opening http://ip.of.your.server:631/ from another machine on the network with a browser. You'll see the web-based CUPS administrator. Choose "Adding Printers and Classes" then press the "Add Printer" button. You'll be walked through the process.

If you are concerned about security, or your server is visible on the public Internet, you should restore the "localhost" entry after you are done and restart CUPS once again.

Jordan_Hickin
April 20th, 2014, 04:44 PM
it keeps asking for a username and password?

SeijiSensei
April 20th, 2014, 04:45 PM
Use your own credentials just like you would if you ran a process with "sudo" at the command prompt.

Jordan_Hickin
April 20th, 2014, 04:56 PM
i just ran http://192.168.0.7:631 and got the FORBIDDEN page... and i did change the listen line to listen 631

Jordan_Hickin
April 20th, 2014, 05:14 PM
I shoudl point out my printer is an all in one. I want to be able to tell the server (When all this is done) to scan all pages in the scanner and save them onto its serve folfer (The folder is already setup and i can use it from a remote desktop :)

SeijiSensei
April 20th, 2014, 05:49 PM
i just ran http://192.168.0.7:631 and got the FORBIDDEN page... and i did change the listen line to listen 631

And restarted CUPS with "sudo service cups restart"? And entered your own username and password when prompted? You're the user with sudo privileges on the box, yes?

Jordan_Hickin
April 20th, 2014, 06:25 PM
Yes i am... i ran the restart.. but when i enter https://192.168.0.7:631/ it doesnt ask for details just says forbidden.

I have no chence to log in :/

I just tried scanning for the printer on command line via hp-probe... it didn't find it yet when i ran an nmap -sP it can locate the printer... and hp-makeuri can find it as well... bu all other hp commands don't know it :/

SeijiSensei
April 20th, 2014, 08:05 PM
On systems that don't use sudo, like RedHat flavors of Linux, I've logged in as the root user with root's password. If you know how to add a password for root (https://help.ubuntu.com/community/RootSudo), you can give that a try.

Jordan_Hickin
April 20th, 2014, 08:13 PM
I thought that the sudo was giving me root access...

Jordan_Hickin
April 20th, 2014, 08:18 PM
im lost now... completely confused... all i want is the stupid printer installed onto the server. Why is it so difficult :/ maybe i should just reinstall the server.. give it a clean look

SeijiSensei
April 21st, 2014, 03:25 AM
I thought that the sudo was giving me root access...

Yes, it should. I'm just trying to suggest alternatives since that didn't work for you.

As I said, I prefer CentOS to Ubuntu on servers, so I'm reaching the end of things to suggest here. I like Ubuntu as a desktop operating system, but it's not my first choice for servers.