<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Maiandra GD'; font-size:11pt; font-weight:400; font-style:normal;">On Tuesday 28 April 2009 09:45:28 am Dotan Cohen wrote:<br>
> In KDE 3 the user could scan an IP range for printers. As my D-Link<br>
> DIR-320 gives the printer a different address whenever the router<br>
> looses power, I simply told KDE 3 to scan 192.168.0.* for printers and<br>
> it found my printer. KDE 4 does not seem to have this ability,<br>
> furthermore, the only way to get the IP address of the printer out of<br>
> the router is through an EXE file that the router provides for<br>
> configuring Windows machines: not a solution for me! Is there some<br>
> other way that I could scan the network for printers, even from a<br>
> shell script, to get the correct IP address?<br>
><br>
> Thanks in advance.<br>
I network a scanner and printers on a static IP network but have always wonderd about having to do this with dhcp and here http://www.linuxprinting.org/~till/printing-tutorial/tut.html it explains how to do it on the router about halfway down the page. You say sometghing about access via an exe file but dowsn't you DLink have a web interface for configuration<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>If you are trying to use skanlite with a network scanner it won't find it no matter what the IP is because it will only find scanner resident to the box it is running on.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Can you see the scanner using the 192.168.1.0* address range and xsane? If so than you can also use okular. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Also try the command scanimage -L  to see if the scanner can be found. If so then you can use the output to identify the IP each time you boot with a script using stream editors but that may be too complicated compared to just finding a way to assign a fixed IP to the server.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>BTW you can scan with a network printer using skanlite but you have to use the command skanlite -d [scanner device] with the scanner device being info found by running scanimage -L like this<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>rick@rick:~$ scanimage -L device `net:192.168.1.4:hpaio:/usb/PSC_2350_series?serial=MY493C10JCKJ' is a Hewlett-Packard PSC_2350_series all-in-one<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>skanlite -d net:192.168.1.4:hpaio:/usb/PSC_2350_series?serial=MY493C10JCKJ<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Maybe that will give you some ideas.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Cheers,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Rick Miles<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Written on Pungenday, the 45th of Discord, 3175 <br>
http://turtlespond.net<br>
http://rickmiles.com.au<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>