Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 30 Sep 2016, 21:53
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Printers
IP4CUPS - a Network Printer Tool
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 10984
Location: Stratford, Ontario

PostPosted: Tue 06 Jan 2015, 08:40    Post subject:  IP4CUPS - a Network Printer Tool  

Update: IP4CUPS is now part of the P910nd project.

-----------------------------

In Windows, a standalone network printer is identified by its MAC address or NETBIOS name. So a Windows client can always find the printer even if the printer's IP address changes. However, CUPS configures its printers by IP address. If you reset your network and the printer gets a new IP address, you must reinstall it on every Puppy client machine.

The best solution is to give the printer a permanent static IP address. Many printers can do this through their own LCD control panel or through the printer's web interface. Some routers let you assign a fixed IP address to each device on your network. But if you don't want to bother with static IP, here is a one-click alternative. Use it on each Puppy client.

1. Install P910nd. Its control panel has a menu entry in System.

2a. Install PeasyPort v2.0 if you need it.
2b. Run PeasyPort, click MAC and scan your subnet.
2c. Identify the MAC address of each network printer, 00:11:22:33:44:55
2d. If you are not sure which host is a printer, scan for ports 9100 or 515.

3. Pick a descriptive one-word name for each printer, like Epson-XP310-Upstairs.

4. Go to /etc and open the file ip4cups.dat in a text editor. For each printer, add a line containing the name from Step 3 and the MAC address from Step 2. For example:
Code:
Epson-XP310-Upstairs 00:80:77:79:2f:89

Important: Make sure that you press Enter on the last line of the file.

5. Open the P910nd Control Panel and run "IP4CUPS hosts file update".

6. Open the file /etc/hosts. Note how each printer's name is now associated with its current IP address.

7. Run the CUPS wizard and auto-detect a printer. Identify the Connection URI, like
Code:
socket://192.168.2.13:9100  or
lpd://192.168.2.14:515/PASSTHRU

8. But instead of auto-installing the printer, do a manual install. Replace the IP address with the name from Step 3.

For example, if a remote printer is auto-detected as a "socket" device, manually install it using the AppSocket/JetDirect protocol as
Code:
socket://Epson-XP310-Upstairs:9100

9. Print something. CUPS will look up the printer's IP address in the hosts file.

10. The next time that your network resets, just run IP4CUPS again.

11. If you install a new printer on your system, update the /etc/ip4cups.dat file and give a copy to each Puppy machine.

The hosts file can also be used with some models of networked scanners. Epson and HP have been confirmed to work.

---------------------------------

Last edited by rcrsn51 on Wed 04 May 2016, 05:57; edited 13 times in total
Back to top
View user's profile Send private message 
ralplpcr

Joined: 06 Jan 2014
Posts: 22

PostPosted: Wed 06 May 2015, 20:31    Post subject:  

FYI - I'm not seeing any ip4cups-1.3.pet attached in this post. Did you miss attaching it?
Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Wed 06 May 2015, 21:15    Post subject:  

I'm not seeing an attachment, either... a pity -- I'd love to have that feature.
_________________

Back to top
View user's profile Send private message 
starhawk

Joined: 22 Nov 2010
Posts: 5056
Location: Everybody knows this is nowhere...

PostPosted: Wed 06 May 2015, 21:40    Post subject:  

The dotPET was PM'd to me.

I followed the instructions in this thread almost exactly to the letter. The only thing I did differently was to delete the existing printer install as I was effectively reinstalling the printer a different way.

Success!

If I could ask one small favor...

I have an extremely unusual Internet situation, in that my router has to be reset at least once a day due to heat. It's actually not a defective router -- it's an uncaring ISP -- we have Verizon and the signal is so weak that the router overheats pulling it in. (Of course if we want a better signal we have to move... there literally are no other options in our area. I've looked.) There are literally not enough swear words in the English language to do proper justice to that vile corporation.

Is there a way to turn this into a sort of a daemon sort of a thing that runs automatically whenever the 'Net is lost and then reconnected again? (Maybe by detecting whenever Puppy receives an IP address of its own?)

_________________

Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 10984
Location: Stratford, Ontario

PostPosted: Wed 06 May 2015, 22:49    Post subject:  

Glad to hear that IP4CUPS works for you. The previous versions were downloaded many hundreds of times and I never got a single report back.

Regarding the daemon: maybe you could set up a cron job that simply runs the ip4cups script at regular intervals. There is no problem if you run ip4cups when the IP address has NOT changed.

Or just add it to your Startup folder.
Back to top
View user's profile Send private message 
uio

Joined: 31 Aug 2015
Posts: 77

PostPosted: Thu 24 Sep 2015, 19:46    Post subject:  

Hi - just wondering if the IP4CUPS pet is here ; I don't see it... oh I see that one should PM you - will do.
uio
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Printers
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0338s ][ Queries: 11 (0.0034s) ][ GZIP on ]