BTW, another easier way to do the "static address thing" is to assign 
addresses outside the DHCP range.
There is not a hard and fast rule to know what the range is (unless you look 
at the router configuration) but if your addresses start with 
192.168.0.2-3-4, it is safe to assign 192.168.0.250-251-253 to your 
computers (unless you plug 253 computers to the router...   :) 

If your address is 192.168.1.100, then find the computer in the network with 
the lowest address and use addresses below it. 

Make sure you don't duplicate the IP of the router (wich normally ends on 
.1). 

Or follow the manufacturer's instructions, log in the router, find the range 
(under DHCP configuration) and be safe...   :)
Enrique 

 

 

Ryan Rix writes: 

> Hi, 
> 
> Eekers, thanks for the catch :) /me is used to writing to actual dir's after 
> so just assumed it would right to ~ in that case. 
> 
> 
> --
> Thanks and best regards,
> Ryan Rix
> TamsPalm - The PalmOS Blog 
> 
> I don't want to touch you too much baby, 'cause 
> making love to you might drive me crazy 
> 
>  
> 
> 
> On Wed October 22 2008 04:16:47 pm [EMAIL PROTECTED] wrote:
>> This is true but,
>> Just a note: 
>>
>> scp *.jpg [EMAIL PROTECTED] 
>>
>> Will copy all the files ending in .jpg to a directory named [EMAIL 
>> PROTECTED] in
>> THIS machine, if it exists, or it will abort with an error. 
>>
>> If you want to remote-copy, it has to have a colon : 
>>
>> scp *.jpg [EMAIL PROTECTED]:
>> or
>> scp *.jpg [EMAIL PROTECTED]:~
>> ET 
>>
>> PS: been bitten with that one before... 
>>
>> Ryan Rix writes:
>> >>     inet 192.168.1.66/24 brd 192.168.1.255 scope global eth0
>> >
>> > Yes, it's the first number after inet.
>> >
>> >>     inet 192.168.1.64/24 brd 192.168.1.255 scope global eth0
>> >
>> > again, first after inet.
>> >
>> > What I personally would do, though it's a bit of a pain to set up, is if
>> > your router supports DHCP reservations (dlink G router does here) you can
>> > give each compy a 'static' dhcp address.
>> >
>> > After you have them all rounded up you can add entries to /etc/hosts
>> > 192.168.1.66 bedroom
>> > 192.168.1.64 kitchen
>> > and such, till you're done on all the boxen
>> >
>> > then do /etc/init.d/networking restart
>> > and now you can refer to your targets as 'kitchen' or 'bedroom' or
>> > whatnot.
>> >
>> > scp *.jpg [EMAIL PROTECTED]
>> >
>> > Note that if the username you are logged into on the source computer is
>> > the same as your target's username it can be safely dropped, and it's
>> > implied.
>> >
>> > --
>> > Thanks and best regards,
>> > Ryan Rix
>> > TamsPalm - The PalmOS Blog
>> >
>> > My heart is human, my blood is boiling, my brain: IBM
>> >
>> > On Wed October 22 2008 03:23:09 pm Josef Lowder wrote:
>> >> On 10/22/08, enrique <[EMAIL PROTECTED]> wrote:
>> >> > Linux: Open up a terminal and type:
>> >> >  ip addr show
>> >> >  and choose the adapter that connects to the network you want.
>> >> >
>> >> >  use scp as:
>> >> >  scp /file/to/copy [EMAIL PROTECTED]:/copy/file/to
>> >> >
>> >> >  It's easy, even I can do it.
>> >>
>> >> Thanks Enrique ... but the problem is ... you are brilliant
>> >> and I guess I just don't have all the wires connected.
>> >>
>> >> I did find that I have to use /sbin/ip addr show
>> >> since 'ip' was not found.
>> >>
>> >> But below are the results I got from my two linux boxes,
>> >> and I can't figure out which of all these different number
>> >> sets is the 'ip' number for each machine.
>> >>
>> >> == from machine "A"
>> >> $ /sbin/ip addr show
>> >> 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
>> >>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>> >>     inet 127.0.0.1/8 scope host lo
>> >> 2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
>> >>     link/ether 00:11:2f:06:65:08 brd ff:ff:ff:ff:ff:ff
>> >>     inet 192.168.1.64/24 brd 192.168.1.255 scope global eth0
>> >>
>> >> == from machine "B"
>> >> $ /sbin/ip addr show
>> >> 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue
>> >>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>> >>     inet 127.0.0.1/8 scope host lo
>> >> 2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen
>> >> 1000 link/ether 00:14:85:1e:5f:5e brd ff:ff:ff:ff:ff:ff
>> >>     inet 192.168.1.66/24 brd 192.168.1.255 scope global eth0
>> >>
>> >> Furthermore, from your excellent example (thank you very much),
>> >> scp /file/to/copy [EMAIL PROTECTED]:/copy/file/to
>> >>
>> >> I still do not understand how to put which numbers where,
>> >> and how the actual syntax should look.  Is it like this:
>> >>
>> >>  scp /filenameA.txt/to/copy [EMAIL PROTECTED]:/copy/filenameB.txt/to
>> >>
>> >> How would scp know in what directory or folder to put the file
>> >> to be copied?
>> >> ---------------------------------------------------
>> >> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
>> >> To subscribe, unsubscribe, or to change your mail settings:
>> >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss 
>>
>> ---------------------------------------------------
>> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>  
> 
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Reply via email to