fruitoftheloom
Posts: 20482
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Using Rapsberry Pi to make a wired printer wireless

Sat Apr 29, 2017 9:53 pm

Vidorin wrote:Well I can't seem to access it via the CUPS interface thats why I was going to use the HPLIP interface. Do I put that [email protected] on all lines with Order allow,deny in the conf file? The link provided only stated two other locations which I assumed was the two following the initial one mentioned making a total of three.

EDIT
I added [email protected] after all lines involving the Order allow, deny in the conf file and I still can't access it via the web browser to configure it. I've followed all directions up to that point also.
I used this Tutorial to set up CUPS a couple of years ago:

http://www.penguintutor.com/linux/printing-cups

Though my Printer is a standalone wireless eprinter ;)
Retired disgracefully.....

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sat Apr 29, 2017 10:26 pm

Well every time I try to access it with my browser using http://127.0.0.1:631 or 192.168.1.2:631 I get the following message still. My brain hurts lol I've even opened the port to this static IP in my router as well.

This site can’t be reached

127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
Reload
HIDE DETAILS
Check your Internet connection
Check any cables and reboot any routers, modems, or other network devices you may be using.
Allow Chromium to access the network in your firewall or antivirus settings.
If it is already listed as a program allowed to access the network, try removing it from the list and adding it again.
If you use a proxy server…
Check your proxy settings or contact your network administrator to make sure the proxy server is working. If you don't believe you should be using a proxy server: Go to the Chromium menu > Settings > Show advanced settings… > Change proxy settings… and make sure your configuration is set to "no proxy" or "direct."

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Apr 30, 2017 2:23 pm

Perhaps I should reinstall Raspberry to the SD card and start over? I'm honestly at a loss here and not sure exactly what step to take next. I follow a step and of course I run into a brick wall head first. I could reinstall the OS and follow the instructions yet again perhaps something went afoul with my installation.

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Apr 30, 2017 2:51 pm

Yup think it's best to start from the beginning..

Reinstall, plug in keyboard / monitor / printer and setup cups directly.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Fri May 05, 2017 9:40 pm

All right, I managed to get CUPS installed and working. However I cannot seem to configure it because it is asking me for a login and password. Using this command simply freezes the terminal:

Code: Select all

sudo usermod -a -G lpadmin pi
I went with this tutorial because it gave me instructions to get past that: http://www.techradar.com/how-to/computi ... er-1312717

I also made my IP address static so I could access it from other computers on the network, I tested it with my Ubuntu box. I followed this tutorial. https://www.modmypi.com/blog/how-to-giv ... ess-update

This is my cups.conf file I'm not sure if I messed something up or what but I have made progress I would say since I can now access the actual CUPS interface via another computer even though it is saying my security isn't correct on it in firefox. I made a security exception for it however. I just cannot add the printer or do anything that would be considered administrative.

Code: Select all

#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Only listen for connections from the local machine.
# Listen localhost:631
Listen /var/run/cups/cups.sock
Port 631
# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow,deny
Allow @local
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
Allow @local
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
Allow @local
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
Allow @local
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
Allow @local
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#
#

Am I supposed to put Allow @local on every Order deny, allow line? Thank you kindly.

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sun May 07, 2017 3:35 pm

Well I added Allow @local to every line and I still cannot get into the CUPS interface. It keeps asking me for a username and password, I put in my credentials which I kept as default for now anyway and it still says no. I am getting some serious buyers remorse here I'm now beginning to search for an Ubuntu based solution because I know Ubuntu works. That Ubuntu mate looks quite snazzy so I think I'll give that a try.

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Sun May 07, 2017 3:55 pm

Are you connected to the r-pi3 direcetly? i.e. keyboard, mouse, HDMI plugged into the rpi ?
or are you using SSH?

OK try this:
Do a clean reinstall of CUPS (to get the default conf files again).
To make sure "pi" is a member of the "lp" group (*NOTE* Lower case L & P).
In a terminal window type :

Code: Select all

sudo adduser pi lp
Then you need to edit the cupsd.conf file to allow remote admin :

Code: Select all

sudo nano /etc/cups/cupsd.conf
Edit lines 15 & 20 to remove the "#".
before:

Code: Select all

<Location />
  # Allow shared printing and remote administration...
  #Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  #Order allow,deny
  Allow all
</Location>
after :

Code: Select all

<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
Restart the R-Pi and try to log in again...


taken from : http://hplipopensource.com/node/231
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sun May 07, 2017 6:47 pm

Yes I had everything locally connected when I was trying to set it up. Now it won't even power on so I chucked it and I'll waste more money on a new Pi3 and hope that one isn't defective. I will try your method which I truly appreciate you taking the time to detail that out for me, I will try again as soon as my replacement shows up.

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Jun 11, 2017 5:31 pm

So I've finally received my new Pi 3 and I'm still pulling my hair out with this stupid useless thing. I added pi to lp as mentioned, followed your directions to the letter however, I had to add in your after code into the configuration file so I did. I also added in another line from the website you had sited s0litare
and it still is forbidding me to access it.

I did this from the website:

Code: Select all

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow localhost
</Location>
I added this as you had posted in the conf file below.

Code: Select all

<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
And this is my cupsd.conf file.

Code: Select all

#
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

# Deactivate CUPS' internal logrotating, as we provide a better one, especially
# LogLevel debug2 gets usable now
MaxLogSize 0

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
<Location />
  Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow local host
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</Location>


<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>


# Set the default printer/job policies...
<Policy default>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Set the authenticated printer/job policies...
<Policy authenticated>
  # Job/subscription privacy...
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default

  # Job-related operations must be done by the owner or an administrator...
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>

  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an administrator to authenticate...
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # All printer operations require a printer operator to authenticate...
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
#
And still zero access to adding a printer to CUPS.

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Jun 11, 2017 7:20 pm

I'll get my pi3 and a clean SD card and i'll go through the steps myself again in the morning (8pm here).

I'll see where my instructions went wrong and i'll try and post a step-by-step here ASAP.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Mon Jun 12, 2017 12:17 pm

OK long post but here goes ^_~ a very rough run through of what I did to get an old USB printer and an R-pi0W to create a networked printer.
*Note*
I'm starting with a fresh install of Rasbian in a headless RPi0W. So when I created the SD card image I had to add a couple of files: The "ssh" flag file in /boot & "wpa-supplicant.conf" file for wifi access.

I will be doing all this via SSH.
**
OK with the above caveats in place:

Connect the rpi to the printer's USB port, then the Network cable (if you are using the r-pi3 and have not got a wpa_supplicant file) and plug the power into the r-pi and wait for it to boot.

Connect to the rpi using ssh
Once logged in update the OS :

Code: Select all

sudo apt-get update && sudo apt-get upgrade -y
Then enable ssh and change the default password :

Code: Select all

sudo raspi-config
At this point you should set up your WiFi connection details.
run the following (with changes as required):

Code: Select all

 wpa_passphrase <ssid> <ssid_password>
it will give you a block of code like this:

Code: Select all

network={
	ssid="<ssid>"
	#psk="<ssid_password>"
	psk=<long 64bit string here>
}
Select the block of code and copy it.
Open the "wpa_supplicant.conf" file using :

Code: Select all

/etc/wpa_supplicant/wpa_supplicant.conf
If it's empty then right click and select "paste", if not move to the end of the text and then paste it in. Then press "ctrl+o" then enter, then "ctrl+x" to close the file.

Now reboot and again make sure you can log in using ssh:

Code: Select all

sudo reboot now
Then Now install the HPLIP software (Note this will take a while to run Their will be a lot of files required to be downloaded, about 115 packages totaling 49MB):

Code: Select all

sudo apt-get install hplip -y
Once that's installed run the following 2 commands:

Code: Select all

sudo usermod -aG lpadmin pi
This adds the user "pi" to the printer admin group.

Code: Select all

sudo cupsctl --remote-admin
This updates the cups.conf files to allow remote access. (no more fiddling with the files manually)

At this point I like to reboot:

Code: Select all

sudo reboot now
Now I've noticed CUPS does not like using the hostname for remote access, but it works when you use the IP address.
So reboot and log in using SSH again and get the IP address (wifi or cabled IP address for the r-pi using "ifconfig"

Now go to any other machine and open a browser and go to the ip address of the r-pi

Code: Select all

https://<ip-address>:631
You will get an error about an unsecured connection. just ignore it and add it as an exception.
You should be in the "CUPS 1.7.5" home page:
Now the good bit!
Adding the Printer:

Select "Adding Printers and Classes"
Then "Add Printer" button
Wait a few seconds and it will show a list of printers it can see

Select your printer under "Local Printers:" (Their might be more than one option shown. I tend to pick the top one.)
Click "Continue"

Select the default text as entered (or you cna change it to something more memorable if required).
But the Important bit is at the bottom. Click the "Share This Printer" box.
Then click "Continue"

Now check your printer is selected and at the top of the list.
Then click "Add Printer"

Then select the default settings for the printer (paper size / Colour / Duplex options)
Click "Set Default Options" when you're happy with the defaults.

That should be the printer set up.

To test the printer. Click on the the "Maintenance" dropdown.
Then select "Print Test Page" and see if it can send a test print to your printer.

All things being well, you should be able to see the printer from any other machine on the network.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Mon Jun 19, 2017 7:26 pm

All right it worked! However, when I try to do the test page or anything else it says state stopped "Filter failed" and it wont print but the good news is that it is recognized and connected it is also shared. So we're half way there! Yay! Thank you! Now just to figure out why its telling me this filter failed error.

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sat Jun 24, 2017 2:42 am

So does anyone know how to get passed this filter failed error?

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Sat Jun 24, 2017 1:52 pm

Did you select the correct printer model number?

Try this
SSH into the rpi and type :

Code: Select all

lpstat -s -H
that should tell you if CUPS is running correctly and any printers it can see.
For me it looks like this :

Code: Select all

no system default destination
device for HP-Photosmart-5520-series: ipp://HP28924A047461.local:631/ipp/print
/var/run/cups/cups.sock
If you can see something listed next to "device for" that's good, now try a test print.

Code: Select all

ls -hal > testlist.txt

It's just something to print. Then:

Code: Select all

 
lp -d <type in the bit between "device for" & the colon> testlist.txt
See if anything prints out or are you given an error message?
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Jun 25, 2017 9:09 pm

It says no such file or directory exists. All right so its time to try and see about selecting a different printer I suppose yes?

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Sun Jun 25, 2017 9:43 pm

Vidorin wrote:It says no such file or directory exists. All right so its time to try and see about selecting a different printer I suppose yes?
what did you type to get that error?
What does it say when you type in "lpstat -s -H" (it's lowercase LPstat) ?
Can you copy paste the output.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Tue Jul 04, 2017 6:42 pm

Sorry for the late reply anyway, I typed the commands you had stated to try and print to the printer.

Code: Select all

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun 25 17:16:06 2017
[email protected]:~ $ lpstat -s -H
no system default destination
device for HP_LaserJet_P1006: hp:/usb/HP_LaserJet_P1006?serial=AA4497Z
device for HP_LaserJet_P1006A: usb://HP/LaserJet%20P1006?serial=AA4497Z
/var/run/cups/cups.sock
[email protected]:~ $ lpstat -s -H

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Tue Jul 04, 2017 10:26 pm

try :

Code: Select all

 lp -d HP_LaserJet_P1006 ~/.profile
and

Code: Select all

 lp -d HP_LaserJet_P1006A ~/.profile
do they print anything out?
or do you get errors?
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Tue Jul 04, 2017 10:39 pm

Nothing is printing out but I am getting no errors.

Code: Select all

[email protected]:~ $ lp -d HP_LaserJet_P1006A ~/.profile
request id is HP_LaserJet_P1006A-4 (1 file(s))
[email protected]:~ $

[email protected]:~ $ lp -d HP_LaserJet_P1006 ~/.profile
request id is HP_LaserJet_P1006-5 (1 file(s))
[email protected]:~ $

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Wed Jul 05, 2017 12:09 pm

Hmm.. Sorry to say I'm stumped.

Hope someone else can chip in with somethings to try!...

Only thing i can think of is if you have an option to pick "ipp://" for the printer connection in the Cups admin pages.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Wed Jul 05, 2017 1:29 pm

I will try that when able to. However I did try to add
That second printer because I thought it was using the wrong drivers. I only have one printer attached to the raspberry pi. So how can I delete the printers it sees and reinstall it? That was my attempt to get past the filter failed error.

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Wed Jul 05, 2017 6:51 pm

I had a quick look at the debian forums.

Could only see one issue with your printer and its like yours. i.e. not printing.
Sadly it looks like it's not 100% supported.

http://forums.debian.net/viewtopic.php? ... t&start=15
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Wed Jul 05, 2017 7:43 pm

All right so the question is where do we go from here? Did I simply waste money, time and effort? I also asked earlier in the thread about using Hplip by itself or using the Ubuntu version for raspberry pi. Since the printer works perfectly on Ubuntu and windows with no issue. On Ubuntu I am using hplip however to make it work properly.

Vidorin
Posts: 26
Joined: Sat Mar 25, 2017 4:17 pm

Re: Using Rapsberry Pi to make a wired printer wireless

Tue Jul 11, 2017 1:24 pm

Thread bump. What do you think s0litare?

S0litaire
Posts: 216
Joined: Thu Dec 29, 2011 4:24 pm
Location: Ayrshire, Scotland
Contact: ICQ Skype Twitter

Re: Using Rapsberry Pi to make a wired printer wireless

Thu Jul 20, 2017 1:13 pm

Sorry for the delay working on other projects and rebuilding my Media PC (disk failure)...

As I said I'm all out of ideas at the moment. Was hoping someone else would chip in with something to try.

Have you tried the desktop version of Raspbian?

If you can get it working via the printers settings in Pixel, then that should mean it can work headless. Also the printer/cups logs might show something.
--
Laters

Bill "Solitaire" C

Anáil nathrach, ortha bhas betha, do cheol déanta

Return to “Beginners”