[hangout] CUPS Printer Config

Joe Villari yellowdog-newbie@lists.terrasoftsolutions.com
Thu, 02 Jan 2003 15:56:51 +0000


This a real simple setup. Ti PowerBook and a laser printer conneted via 
ethernet. That's it.

I can ping outside:

[root@localhost joev]# ping -c 5 www2.mrbrklyn.com
PING www2.mrbrklyn.com (64.105.122.138) from 165.247.43.235 : 56(84) 
bytes of data.
64 bytes from www2.mrbrklyn.com (64.105.122.138): icmp_seq=0 ttl=248 
time=218.336 msec
64 bytes from www2.mrbrklyn.com (64.105.122.138): icmp_seq=1 ttl=248 
time=169.844 msec
64 bytes from www2.mrbrklyn.com (64.105.122.138): icmp_seq=2 ttl=248 
time=209.855 msec
64 bytes from www2.mrbrklyn.com (64.105.122.138): icmp_seq=3 ttl=248 
time=169.948 msec
64 bytes from www2.mrbrklyn.com (64.105.122.138): icmp_seq=4 ttl=248 
time=159.851 msec

--- www2.mrbrklyn.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/mdev = 159.851/185.566/218.336/23.738 ms

I am connected to the internet via dialup pcmcia modem using ppp.

The ethernet is onboard and has no lights to say if it's working or not. 
Mechanically I know it works because I've used it under Mac OS to print, 
connect to local machines and dsl when I had it.

I don't know what the printers address is or how to find that out, which 
is what I think is my missing link.

Joe



Lowell Premer wrote:

> I believe a ping to localhost does NOT use the ethernet card. Is the 
> machine in question the same one on which you're sending these 
> messages to the list? If so, are you communicating with the list via 
> dialup or cable/dsl? Reason I wonder about this is, is the ethernet 
> card working? (First of all, does it show a light? Look at the back of 
> the machine where the cable plugs into the card.)If you're talking via 
> that card then it works fosho but if you're taliking by modem it might 
> not be. See if you can ping a known address outside; a dns server at 
> your isp or something?
>    Also, do I remember you saying you were connected to the printer 
> via ethernet? Well, the editing you did in /etc/hosts doesn't assign 
> that address to the printer, it just tells your machine that that is 
> the address of a remote host (i.e. other machine) named "printer". Is 
> the printer's address really 198.162.0.1? How did you find that out?
>
> Joe Villari wrote:
>
>> I can ping my localhost
>>
>> [joev@localhost joev]$ ping -c 5 localhost
>> PING localhost.localdomain (127.0.0.1) from 127.0.0.1 : 56(84) bytes 
>> of data.
>> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=0 ttl=64 
>> time=49 usec
>> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 
>> time=149 usec
>> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 
>> time=152 usec
>> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 
>> time=71 usec
>> 64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=4 ttl=64 
>> time=121 usec
>>
>> --- localhost.localdomain ping statistics ---
>> 5 packets transmitted, 5 packets received, 0% packet loss
>> round-trip min/avg/max/mdev = 0.049/0.108/0.152/0.042 ms
>>
>> [joev@localhost joev]$ ping -c 5 127.0.0.1
>> PING 127.0.0.1 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
>> 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=48 usec
>> 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=153 usec
>> 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=591 usec
>> 64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=109 usec
>> 64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=384 usec
>>
>> --- 127.0.0.1 ping statistics ---
>> 5 packets transmitted, 5 packets received, 0% packet loss
>> round-trip min/avg/max/mdev = 0.048/0.257/0.591/0.202 ms
>>
>> I added 198.162.0.1 printer to /etc/hosts
>>
>> [joev@localhost joev]$ ping -c 5 printer
>> connect: Network is unreachable
>>
>> [joev@localhost joev]$ ping -c 5 198.162.0.1
>> connect: Network is unreachable
>>
>> What does this mean in terms of setting up a printcap file or correct 
>> route through CUPs? How do I determine what address my printer is on?
>>
>> This is today's project ;)
>>
>> Thanks
>> Joe
>>
>>
>> lowell wrote:
>>
>>> Does he (you) know how to get himself an address? Use your favorite 
>>> text editor to edit /etc/hosts. Give your machine a name and an IP 
>>> address OTHER than the loopback address
>>>
>>>    SAMPLE:
>>>       (there already)>                 127.0.0.1        localhost    
>>> localhost.localdomain
>>>        (you add)>                        198.162.0.1   bob'smachine
>>>
>>> I have seen places say to put the macine name on the first line as 
>>> well, don't know why...
>>>
>>> HTH
>>>
>>>
>>>
>>> _______________________________________________
>>> yellowdog-newbie mailing list
>>> yellowdog-newbie@lists.terrasoftsolutions.com
>>> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>>>
>>
>>
>>
>> _______________________________________________
>> yellowdog-newbie mailing list
>> yellowdog-newbie@lists.terrasoftsolutions.com
>> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>>
>
>
> _______________________________________________
> yellowdog-newbie mailing list
> yellowdog-newbie@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>