RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-24 Thread Bryce Stenberg
>-Original Message-
>From: steve [mailto:st...@greengecko.co.nz]
>Sent: Monday, 24 August 2009 6:58 p.m.
>To: linux-users@it.canterbury.ac.nz
>Subject: RE: Networking - equivalent of windows 'alternate
configuration'
>setting?
>
>On Mon, 2009-08-24 at 15:02 +1200, bryce wrote:
>> ... I've got to stop hitting Ctrl-enter for line breaks like I do in
>> my programming editor -- sends email instead ... anyway:
>>
>> >-Original Message-
>> >From: steve [mailto:st...@greengecko.co.nz]
>> >Sent: Monday, 24 August 2009 11:03 a.m.
>>
>> >To set up your dhcp server, something like...
>>
>> Dhcp is done either on Windows servers, or my adsl router at home.
>>
>>
>> >
>> >lease {
>> >  interface "eth0";
>> >  fixed-address 203.97.9.110;
>> >  option subnet-mask 255.255.255.0;
>> My mask is 255.255.255.248 - this shouldn't mess with it should it?
>>
>> >  option routers 203.97.9.105;
>> >  option domain-name-servers 203.97.33.14, 203.97.37.14;
>> >  renew 0 2030/12/31 23:59:59;
>> >  rebind 0 2030/12/31 23:59:59;
>> >  expire 0 2030/12/31 23:59:59;
>> >}
>>
>[snip]
>
>Hmmm... I thought it should've picked up the local lease, although I
see
>it's the network manager that's disabling it.
>
>As an alternative approach, you could add a new hook script
>into /etc/dhcp3/dhclient-exit-hooks.d - call it dhcptimeout for example
>
>-- 8< snip --
>#!/bin/bash
>
>case "$reason" in
>   TIMEOUT|FAIL)
>/sbin/ifconfig eth0 203.97.9.110 netmask 255.255.255.248 up
>
>   echo "search your.domain
>nameserver 203.97.33.14
>nameserver 203.97.37.14" > /etc/resolv.conf
>
>   /sbin/route add default gw 203.97.9.105
>   ;;
>esac
>-- 8< snip --
>
>(this script is completely untested btw! and change for the correct
>domain name ). It'll be interesting to see what the network manager
>thinks of that.
>
>You may well be able to make this script a lot more generic, there's a
>lot of variables set up. Try enabling the debug exit script if it's
>there. If not, use the following:
>-- 8< snip --
>for i in reason interface medium alias_ip_address new_ip_address \
>   new_subnet_mask new_domain_name \
>   new_domain_name_servers new_routers new_static_routes \
>   old_ip_address old_subnet_mask old_domain_name \
>   old_domain_name_servers old_routers \
>   old_static_routesq
>do
>   echo $i=\'${!i}\'
>done > /tmp/dhclient.debug
>-- 8< snip --
>
>You may need to set $reason to "BOUND" on exit to shut the network
>manager up...
>
>Cheers,
>
>Steve
>

Thanks Steve - I'll try it out but it won't be till later in the week
now. It's good to see some example of how to script it. I'll let you
know how I get on.

Regards, Bryce.



DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread steve
On Mon, 2009-08-24 at 15:02 +1200, bryce wrote:
> ... I've got to stop hitting Ctrl-enter for line breaks like I do in
> my programming editor -- sends email instead ... anyway:
> 
> >-Original Message-
> >From: steve [mailto:st...@greengecko.co.nz]
> >Sent: Monday, 24 August 2009 11:03 a.m.
> 
> >To set up your dhcp server, something like...
> 
> Dhcp is done either on Windows servers, or my adsl router at home.
> 
> 
> >
> >lease {
> >  interface "eth0";
> >  fixed-address 203.97.9.110;
> >  option subnet-mask 255.255.255.0;
> My mask is 255.255.255.248 - this shouldn't mess with it should it?
> 
> >  option routers 203.97.9.105;
> >  option domain-name-servers 203.97.33.14, 203.97.37.14;
> >  renew 0 2030/12/31 23:59:59;
> >  rebind 0 2030/12/31 23:59:59;
> >  expire 0 2030/12/31 23:59:59;
> >}
> 
[snip]

Hmmm... I thought it should've picked up the local lease, although I see
it's the network manager that's disabling it.

As an alternative approach, you could add a new hook script
into /etc/dhcp3/dhclient-exit-hooks.d - call it dhcptimeout for example

-- 8< snip --
#!/bin/bash

case "$reason" in
TIMEOUT|FAIL)
/sbin/ifconfig eth0 203.97.9.110 netmask 255.255.255.248 up

echo "search your.domain
nameserver 203.97.33.14
nameserver 203.97.37.14" > /etc/resolv.conf

/sbin/route add default gw 203.97.9.105
;;
esac
-- 8< snip --

(this script is completely untested btw! and change for the correct
domain name ). It'll be interesting to see what the network manager
thinks of that. 

You may well be able to make this script a lot more generic, there's a
lot of variables set up. Try enabling the debug exit script if it's
there. If not, use the following:
-- 8< snip --
for i in reason interface medium alias_ip_address new_ip_address \
new_subnet_mask new_domain_name \
new_domain_name_servers new_routers new_static_routes \
old_ip_address old_subnet_mask old_domain_name \
old_domain_name_servers old_routers \
old_static_routesq
do
echo $i=\'${!i}\'
done > /tmp/dhclient.debug
-- 8< snip --

You may need to set $reason to "BOUND" on exit to shut the network
manager up...

Cheers,

Steve

-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread bryce
... I've got to stop hitting Ctrl-enter for line breaks like I do in my
programming editor -- sends email instead ... anyway:

>-Original Message-
>From: steve [mailto:st...@greengecko.co.nz]
>Sent: Monday, 24 August 2009 11:03 a.m.

>To set up your dhcp server, something like...

Dhcp is done either on Windows servers, or my adsl router at home.


>
>lease {
>  interface "eth0";
>  fixed-address 203.97.9.110;
>  option subnet-mask 255.255.255.0;
My mask is 255.255.255.248 - this shouldn't mess with it should it?

>  option routers 203.97.9.105;
>  option domain-name-servers 203.97.33.14, 203.97.37.14;
>  renew 0 2030/12/31 23:59:59;
>  rebind 0 2030/12/31 23:59:59;
>  expire 0 2030/12/31 23:59:59;
>}

The only new piece I hadn't tried was your lease dates. So I set up
lease again and rebooted for good measure. Still no go - syslog says:

Aug 24 14:55:14 hrnzlx02 dhclient: Internet Systems Consortium DHCP
Client V3.1.1
Aug 24 14:55:14 hrnzlx02 dhclient: Copyright 2004-2008 Internet Systems
Consortium.
Aug 24 14:55:14 hrnzlx02 dhclient: All rights reserved.
Aug 24 14:55:14 hrnzlx02 dhclient: For info, please visit
http://www.isc.org/sw/dhcp/
Aug 24 14:55:14 hrnzlx02 dhclient: 
Aug 24 14:55:14 hrnzlx02 NetworkManager:   dhclient started with
pid 3522 
Aug 24 14:55:14 hrnzlx02 NetworkManager:   Activation (eth0) Stage
3 of 5 (IP Configure Start) complete. 
Aug 24 14:55:14 hrnzlx02 NetworkManager:   DHCP: device eth0 state
changed normal exit -> preinit 
Aug 24 14:55:14 hrnzlx02 dhclient: Listening on
LPF/eth0/00:80:45:2a:1e:fb
Aug 24 14:55:14 hrnzlx02 dhclient: Sending on
LPF/eth0/00:80:45:2a:1e:fb
Aug 24 14:55:14 hrnzlx02 dhclient: Sending on   Socket/fallback
Aug 24 14:55:16 hrnzlx02 dhclient: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 7
Aug 24 14:55:23 hrnzlx02 dhclient: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 11
Aug 24 14:55:34 hrnzlx02 dhclient: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 17
Aug 24 14:55:51 hrnzlx02 dhclient: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 20
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Device 'eth0' DHCP
transaction took too long (>45s), stopping it. 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   eth0: canceled DHCP
transaction, dhcp client pid 3522 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Activation (eth0) Stage
4 of 5 (IP Configure Timeout) scheduled... 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Activation (eth0) Stage
4 of 5 (IP Configure Timeout) started... 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   (eth0): device state
change: 7 -> 9 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Marking connection
'Auto eth0' invalid. 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Activation (eth0)
failed. 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   Activation (eth0) Stage
4 of 5 (IP Configure Timeout) complete. 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   (eth0): device state
change: 9 -> 3 
Aug 24 14:56:00 hrnzlx02 NetworkManager:   (eth0): deactivating
device (reason: 0). 

Maybe the lease stuff doesn't work properly?

Regards,
  Bryce Stenberg.



DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread Bryce Stenberg
>-Original Message-
>From: steve [mailto:st...@greengecko.co.nz]
>Sent: Monday, 24 August 2009 11:03 a.m.

>To set up your dhcp server, something like...
>
>host workstation {
>  hardware ethernet ma:ca:dd:re:ss;
>  fixed-address 203.97.9.110;
>  option subnet-mask 255.255.255.0;
>  option routers 203.97.9.105;
>  option domain-name-servers 203.97.33.14, 203.97.37.14;
>}
>
>( personally set up the ip address in dns, and then use the fixed
>address as the name  - eg workstation.greengecko.co.nz - instead of
hard
>coding the ip address ).
>
>You can get your mac address on your workstation using /sbin/ifconfig
>eth0 - or whichever.
>
>On your workstation, for belt and braces ( so you don't really need the
>mac address to identify - but I prefer to use it )...
>
>send host-name workstation
>
>and to ensure configuration when no dhcp server present...
>
>lease {
>  interface "eth0";
>  fixed-address 203.97.9.110;
>  option subnet-mask 255.255.255.0;
>  option routers 203.97.9.105;
>  option domain-name-servers 203.97.33.14, 203.97.37.14;
>  renew 0 2030/12/31 23:59:59;
>  rebind 0 2030/12/31 23:59:59;
>  expire 0 2030/12/31 23:59:59;
>}
>
>
>
>> So far I've tried setting a 'lease' to this in dhclient.conf without
>> success.
>> Someone else suggested I try 'ifplugd' which may allow me to script
it,
>> but I haven't gone down that path yet.
>>
>> Regards,
>>   Bryce Stenberg
>
>Let me know if it works...
>
>
>Steve
>>
>>
>>
>>
>> DISCLAIMER: If you have received this email in error, please notify
us
>immediately by reply email, facsimile or collect telephone call to +64
3
>9641200 and destroy the original.  Please refer to full DISCLAIMER at
>http://www.hrnz.co.nz/eDisclaimer.htm
>>
>>
>>
>>
>>
>--
>Steve Holdoway 
>http://www.greengecko.co.nz
>MSN: st...@greengecko.co.nz
>GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0



DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







Re: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread steve
On Mon, 2009-08-24 at 12:25 +1200, Nick Rout wrote:
> On Mon, Aug 24, 2009 at 11:02 AM, steve wrote:
> 
> >>
> >> I want my LAN connection to use dhcp.
> >> When no dhcp server is found I want it to use the following
> >> IP address: 203.97.9.110
> [snip]
> >
> > To set up your dhcp server, something like...
> 
> by definition from the question he only wants this setup when there is
> NO dhcp server available.
Well, the client and server setup need to mesh, so I provided both parts
showing how they do. Is there a problem with this?

Steve
-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


Re: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread Nick Rout
On Mon, Aug 24, 2009 at 11:02 AM, steve wrote:

>>
>> I want my LAN connection to use dhcp.
>> When no dhcp server is found I want it to use the following
>> IP address: 203.97.9.110
[snip]
>
> To set up your dhcp server, something like...

by definition from the question he only wants this setup when there is
NO dhcp server available.


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread steve
On Mon, 2009-08-24 at 10:20 +1200, Bryce Stenberg wrote:
> >-Original Message-
> >From: steve [mailto:st...@greengecko.co.nz]
> >Sent: Friday, 21 August 2009 3:30 p.m.
> >
> >Bryce,
> >
> >If you set down exactly what you want to do, I'm happy to make a stab
> at
> >it. Mind you, when I go through that process, it often magically sorts
> >itself out before my eyes!
> >
> >Cheers,
> >
> >Steve
> 
> Hi Steve,
> 
> That is a nice offer.
> 
> I want my LAN connection to use dhcp.
> When no dhcp server is found I want it to use the following
> IP address: 203.97.9.110
> Netmask:  255.255.255.248
> Gateway:  203.97.9.105
> Dns servers: 203.97.33.14, 203.97.37.14

To set up your dhcp server, something like...

host workstation {
  hardware ethernet ma:ca:dd:re:ss;
  fixed-address 203.97.9.110;
  option subnet-mask 255.255.255.0;
  option routers 203.97.9.105;
  option domain-name-servers 203.97.33.14, 203.97.37.14;
}

( personally set up the ip address in dns, and then use the fixed
address as the name  - eg workstation.greengecko.co.nz - instead of hard
coding the ip address ).

You can get your mac address on your workstation using /sbin/ifconfig
eth0 - or whichever.

On your workstation, for belt and braces ( so you don't really need the
mac address to identify - but I prefer to use it )...

send host-name workstation

and to ensure configuration when no dhcp server present...

lease {
  interface "eth0";
  fixed-address 203.97.9.110;
  option subnet-mask 255.255.255.0;
  option routers 203.97.9.105;
  option domain-name-servers 203.97.33.14, 203.97.37.14;
  renew 0 2030/12/31 23:59:59;
  rebind 0 2030/12/31 23:59:59;
  expire 0 2030/12/31 23:59:59;
}



> So far I've tried setting a 'lease' to this in dhclient.conf without
> success.
> Someone else suggested I try 'ifplugd' which may allow me to script it,
> but I haven't gone down that path yet.
> 
> Regards,
>   Bryce Stenberg

Let me know if it works...


Steve
> 
> 
> 
> 
> DISCLAIMER: If you have received this email in error, please notify us 
> immediately by reply email, facsimile or collect telephone call to +64 3 
> 9641200 and destroy the original.  Please refer to full DISCLAIMER at 
> http://www.hrnz.co.nz/eDisclaimer.htm
> 
> 
> 
> 
> 
-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-23 Thread Bryce Stenberg
>-Original Message-
>From: steve [mailto:st...@greengecko.co.nz]
>Sent: Friday, 21 August 2009 3:30 p.m.
>
>Bryce,
>
>If you set down exactly what you want to do, I'm happy to make a stab
at
>it. Mind you, when I go through that process, it often magically sorts
>itself out before my eyes!
>
>Cheers,
>
>Steve

Hi Steve,

That is a nice offer.

I want my LAN connection to use dhcp.
When no dhcp server is found I want it to use the following
IP address: 203.97.9.110
Netmask:255.255.255.248
Gateway:203.97.9.105
Dns servers: 203.97.33.14, 203.97.37.14

So far I've tried setting a 'lease' to this in dhclient.conf without
success.
Someone else suggested I try 'ifplugd' which may allow me to script it,
but I haven't gone down that path yet.

Regards,
  Bryce Stenberg




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







Re: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-20 Thread Andrew Errington
On Fri, August 21, 2009 12:37, Nick Rout wrote:
> Not at my linux box now but can't you save named configurations in
> network manager and switch between them?

I don't know either, but you can with 'wicd'.

A



Re: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-20 Thread Nick Rout
Not at my linux box now but can't you save named configurations in
network manager and switch between them?

On Fri, Aug 21, 2009 at 2:59 PM, Bryce Stenberg wrote:
> Thanks everyone for your help.
> I now know a lot more about linux networking and the various commands
> and files that control it.
>
> However, I still didn't make an alternate configuration work :(
> I'll just leave that now to try again with a later version maybe... at
> least I can still type the manual configuration when I have to.
>
> Regards,
>  Bryce Stenberg
>
>
>>-Original Message-
>>From: steve [mailto:st...@greengecko.co.nz]
>>Sent: Thursday, 20 August 2009 4:33 p.m.
>>To: linux-users@it.canterbury.ac.nz
>>Subject: RE: Networking - equivalent of windows 'alternate
> configuration'
>>setting?
>>
>>On Thu, 2009-08-20 at 16:14 +1200, Bryce Stenberg wrote:
>>> Thanks for previous tips and linux commands.
>>>
>>> I'm slowly getting somewhere now.
>>> However, it turns out that each time I get the 'lease' section not
> quite
>>> what it wants in the dhclient.conf file the NetworkManager entries in
>>> syslog indicate it is disabling the device 'eth0': "hrnzlx02
>>> NetworkManager:   (eth0): deactivating device (reason: 40)."
>>>
>>>   After that I can't keep trying until I reboot pc to reactivate the
>>> device.
>>>
>>> So, is there command to activate a device once it has been
>>> 'deactivated'?
>>> Restarting dhcp client is not sufficient.
>>>
>>> Regards,
>>>   Bryce Stenberg
>>man ifconfig
>>
>>is the most generic answer I can give
>>
>>(as in ifcfg eth0 up)
>>
>>--
>>Steve Holdoway 
>>http://www.greengecko.co.nz
>>MSN: st...@greengecko.co.nz
>>GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0
>
>
>
> DISCLAIMER: If you have received this email in error, please notify us 
> immediately by reply email, facsimile or collect telephone call to +64 3 
> 9641200 and destroy the original.  Please refer to full DISCLAIMER at 
> http://www.hrnz.co.nz/eDisclaimer.htm
>
>
>
>
>
>


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-20 Thread steve
Bryce,

If you set down exactly what you want to do, I'm happy to make a stab at
it. Mind you, when I go through that process, it often magically sorts
itself out before my eyes!

Cheers,

Steve

On Fri, 2009-08-21 at 14:59 +1200, Bryce Stenberg wrote:
> Thanks everyone for your help.
> I now know a lot more about linux networking and the various commands
> and files that control it.
> 
> However, I still didn't make an alternate configuration work :(
> I'll just leave that now to try again with a later version maybe... at
> least I can still type the manual configuration when I have to.
> 
> Regards,
>   Bryce Stenberg
> 
> 
> >-Original Message-
> >From: steve [mailto:st...@greengecko.co.nz]
> >Sent: Thursday, 20 August 2009 4:33 p.m.
> >To: linux-users@it.canterbury.ac.nz
> >Subject: RE: Networking - equivalent of windows 'alternate
> configuration'
> >setting?
> >
> >On Thu, 2009-08-20 at 16:14 +1200, Bryce Stenberg wrote:
> >> Thanks for previous tips and linux commands.
> >>
> >> I'm slowly getting somewhere now.
> >> However, it turns out that each time I get the 'lease' section not
> quite
> >> what it wants in the dhclient.conf file the NetworkManager entries in
> >> syslog indicate it is disabling the device 'eth0': "hrnzlx02
> >> NetworkManager:   (eth0): deactivating device (reason: 40)."
> >>
> >>   After that I can't keep trying until I reboot pc to reactivate the
> >> device.
> >>
> >> So, is there command to activate a device once it has been
> >> 'deactivated'?
> >> Restarting dhcp client is not sufficient.
> >>
> >> Regards,
> >>   Bryce Stenberg
> >man ifconfig
> >
> >is the most generic answer I can give
> >
> >(as in ifcfg eth0 up)
> >
> >--
> >Steve Holdoway 
> >http://www.greengecko.co.nz
> >MSN: st...@greengecko.co.nz
> >GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0
> 
> 
> 
> DISCLAIMER: If you have received this email in error, please notify us 
> immediately by reply email, facsimile or collect telephone call to +64 3 
> 9641200 and destroy the original.  Please refer to full DISCLAIMER at 
> http://www.hrnz.co.nz/eDisclaimer.htm
> 
> 
> 
> 
> 
-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-20 Thread Bryce Stenberg
Thanks everyone for your help.
I now know a lot more about linux networking and the various commands
and files that control it.

However, I still didn't make an alternate configuration work :(
I'll just leave that now to try again with a later version maybe... at
least I can still type the manual configuration when I have to.

Regards,
  Bryce Stenberg


>-Original Message-
>From: steve [mailto:st...@greengecko.co.nz]
>Sent: Thursday, 20 August 2009 4:33 p.m.
>To: linux-users@it.canterbury.ac.nz
>Subject: RE: Networking - equivalent of windows 'alternate
configuration'
>setting?
>
>On Thu, 2009-08-20 at 16:14 +1200, Bryce Stenberg wrote:
>> Thanks for previous tips and linux commands.
>>
>> I'm slowly getting somewhere now.
>> However, it turns out that each time I get the 'lease' section not
quite
>> what it wants in the dhclient.conf file the NetworkManager entries in
>> syslog indicate it is disabling the device 'eth0': "hrnzlx02
>> NetworkManager:   (eth0): deactivating device (reason: 40)."
>>
>>   After that I can't keep trying until I reboot pc to reactivate the
>> device.
>>
>> So, is there command to activate a device once it has been
>> 'deactivated'?
>> Restarting dhcp client is not sufficient.
>>
>> Regards,
>>   Bryce Stenberg
>man ifconfig
>
>is the most generic answer I can give
>
>(as in ifcfg eth0 up)
>
>--
>Steve Holdoway 
>http://www.greengecko.co.nz
>MSN: st...@greengecko.co.nz
>GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0



DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread steve
On Thu, 2009-08-20 at 16:14 +1200, Bryce Stenberg wrote:
> Thanks for previous tips and linux commands.
> 
> I'm slowly getting somewhere now. 
> However, it turns out that each time I get the 'lease' section not quite
> what it wants in the dhclient.conf file the NetworkManager entries in
> syslog indicate it is disabling the device 'eth0': "hrnzlx02
> NetworkManager:   (eth0): deactivating device (reason: 40)."
> 
>   After that I can't keep trying until I reboot pc to reactivate the
> device.
> 
> So, is there command to activate a device once it has been
> 'deactivated'?
> Restarting dhcp client is not sufficient.
> 
> Regards,
>   Bryce Stenberg
man ifconfig 

is the most generic answer I can give

(as in ifcfg eth0 up)

-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Bryce Stenberg
Thanks for previous tips and linux commands.

I'm slowly getting somewhere now. 
However, it turns out that each time I get the 'lease' section not quite
what it wants in the dhclient.conf file the NetworkManager entries in
syslog indicate it is disabling the device 'eth0': "hrnzlx02
NetworkManager:   (eth0): deactivating device (reason: 40)."

  After that I can't keep trying until I reboot pc to reactivate the
device.

So, is there command to activate a device once it has been
'deactivated'?
Restarting dhcp client is not sufficient.

Regards,
  Bryce Stenberg




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread steve
On Thu, 2009-08-20 at 14:15 +1200, Bryce Stenberg wrote:
> (oops - previous message got away on me...)
> 
> >-Original Message-
> >From: jim.cheet...@gmail.com [mailto:jim.cheet...@gmail.com] On Behalf
> Of
> >Jim Cheetham
> >Sent: Thursday, 20 August 2009 10:55 a.m.
> >
> >So, edit /etc/dhcp3/dhclient.conf, and look at the commented-out stuff
> >at the bottom :-)
> >
> 
> I've been trying this out using 'lease' but can't make it work.
> If I have the dhcp network in it works
> If I switch to non dhcp network after timeout networking seems to stop.
> No ip address. If I plug back in dhcp network it still does nothing.
> 
> Is there a way to restart the networking service (or whatever it is
> called) without a reboot? Right clicking and choosing enable/disable
> doesn't do trick.
/etc/init.d/dhcp3-server restart for debian/ubuntu.
> 
> Is there a way to see the output or parsing of the dhclient.conf file to
> see what it is not happy with?
/usr/sbin/dhcp3 -t
> 
> Thanks,
>   Bryce Stenberg.
> 
> 
> 
> 
> DISCLAIMER: If you have received this email in error, please notify us 
> immediately by reply email, facsimile or collect telephone call to +64 3 
> 9641200 and destroy the original.  Please refer to full DISCLAIMER at 
> http://www.hrnz.co.nz/eDisclaimer.htm
> 
> 
> 
> 
> 
-- 
Steve Holdoway 
http://www.greengecko.co.nz
MSN: st...@greengecko.co.nz
GPG Fingerprint = B337 828D 03E1 4F11 CB90  853C C8AB AF04 EF68 52E0


signature.asc
Description: This is a digitally signed message part


RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Hadley Rich
On Thu, 2009-08-20 at 14:15 +1200, Bryce Stenberg wrote:
> Is there a way to restart the networking service (or whatever it is
> called) without a reboot? Right clicking and choosing enable/disable
> doesn't do trick.

At a terminal;

sudo invoke-rc.d networking restart

> Is there a way to see the output or parsing of the dhclient.conf file
> to see what it is not happy with?

again at a terminal;

tail /var/log/syslog

for more output;

tail -1000 /var/log/syslog | less

Hope this helps,

hads
-- 
http://nicegear.co.nz
New Zealand's Open Source Hardware Supplier



RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Bryce Stenberg
(oops - previous message got away on me...)

>-Original Message-
>From: jim.cheet...@gmail.com [mailto:jim.cheet...@gmail.com] On Behalf
Of
>Jim Cheetham
>Sent: Thursday, 20 August 2009 10:55 a.m.
>
>So, edit /etc/dhcp3/dhclient.conf, and look at the commented-out stuff
>at the bottom :-)
>

I've been trying this out using 'lease' but can't make it work.
If I have the dhcp network in it works
If I switch to non dhcp network after timeout networking seems to stop.
No ip address. If I plug back in dhcp network it still does nothing.

Is there a way to restart the networking service (or whatever it is
called) without a reboot? Right clicking and choosing enable/disable
doesn't do trick.

Is there a way to see the output or parsing of the dhclient.conf file to
see what it is not happy with?

Thanks,
  Bryce Stenberg.




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







RE: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Bryce Stenberg
>-Original Message-
>From: jim.cheet...@gmail.com [mailto:jim.cheet...@gmail.com] On Behalf
Of
>Jim Cheetham
>Sent: Thursday, 20 August 2009 10:55 a.m.
>
>So, edit /etc/dhcp3/dhclient.conf, and look at the commented-out stuff
>at the bottom :-)
>

I've been trying this out using 'lease' but can't make it work.
Each time I plug in the non dhcp network 




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







Re: Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Jim Cheetham
On Thu, Aug 20, 2009 at 10:27 AM, Bryce Stenberg wrote:
> This is have it set to use DHCP to get network address etc, but if no dhcp
> server is found within the timeout then set it to an already set manual
> configuration instead.
>
> Does anyone know if this is possible under Ubuntu 9.04?

A good way would be to configure dhclient to have a static lease,
which will be used if no DHCP server is available.

man dhclient.conf
The DHCP client may decide after some period of time (see PROTOCOL
TIMING) that it is not going to succeed
in  contacting a server.   At that time, it consults its own database
of old leases and tests each one that
has not yet timed out by pinging the listed router for that lease to
see if that lease could work.   It  is
possible to define one or more fixed leases in the client
configuration file for networks where there is no
DHCP or BOOTP service, so that the client can still automatically
configure its  address.This  is  done
with the lease statement.

So, edit /etc/dhcp3/dhclient.conf, and look at the commented-out stuff
at the bottom :-)

-jim


Networking - equivalent of windows 'alternate configuration' setting?

2009-08-19 Thread Bryce Stenberg
Hi,

 

I'm really warming to this Ubuntu operating system now. But there is one
thing I would like to do is set up the eth0 network to have an
'alternate configuration' similar to how it works under windows.

 

This is have it set to use DHCP to get network address etc, but if no
dhcp server is found within the timeout then set it to an already set
manual configuration instead.

 

Does anyone know if this is possible under Ubuntu 9.04?

 

Why: When I'm using this machine at work it is sometimes on our network
and gets an address via DHCP.  But at other times I have to plug it
directly to the internet (using one of our fixed ip addresses) to test
or debug issues that may be affecting our network. In the latter case at
the moment I have to change setting to 'manual' and then re-key all the
address stuff each time. When I put it back on our network I have to
again change it back to 'automatic (dhcp)' losing previously entered
manual address. I just thought there must be a way for this to be all
automatic...

Regards,
  Bryce Stenberg
  IT Department
  Harness Racing New Zealand Inc.
 

 




DISCLAIMER: If you have received this email in error, please notify us 
immediately by reply email, facsimile or collect telephone call to +64 3 
9641200 and destroy the original.  Please refer to full DISCLAIMER at 
http://www.hrnz.co.nz/eDisclaimer.htm







Re: Internet in the sticks: was Home networking issues

2008-10-07 Thread Vik Olliver
On Tue, 2008-10-07 at 19:35 +1200, ampacker wrote:
> To run earlier (0.something) versions of the
> Vodafone Mobile Connect
> Card driver for Linux I had to remove usb-storage,
> but that's no longer
> required.  I do have to start the driver with sudo. 
> The Vodem stays
> plugged in throughout.

Ah, thanks. I'll give that a bash.

Vik :v)



Re: Internet in the sticks: was Home networking issues

2008-10-07 Thread ampacker
On Mon, 2008-10-06 at 09:23 +1300, Vik Olliver wrote:
> On Sun, 2008-10-05 at 15:47 +1300, Kerry wrote:
> > I got a friends vodem working on her lappie
running Ubuntu last week
> > following these instructions:
> > http://www.geekzone.co.nz/chakkaradeep/4366
>
> Yeah, didn't work for me - I needed sudo and no
usb-storage. I see
> they're up to 2.0beta3 now though, so I'll try it
again later.
>
> Vik :v)

I've been using my Vodem on an Ubuntu-only laptop
(currently Hardy) for
over a year now.  I use
vodafone-mobile-connect-card-driver-for-linux
1.99.17.  I believe there have been some
showstopping problems with the
2.x versions.

To run earlier (0.something) versions of the
Vodafone Mobile Connect
Card driver for Linux I had to remove usb-storage,
but that's no longer
required.  I do have to start the driver with sudo. 
The Vodem stays
plugged in throughout.

The username "username" and password "password" work
fine for Vodafone
NZ.  The APN needs to be set to one of Vodafone NZ's
choices, e.g.
www.vodafone.net.nz  (When first installed, the
driver is configured for
Vodafone Spain.)

The Vodem firmware does need to be up to date. 
After upgrading to
Hardy, I found that sometimes after connecting, I
couldn't navigate
anywhere, or nearly anywhere - for some reason I
could still get to
vodafone.co.nz!  A firmware upgrade cured that. 
Supposedly you need
Windows to do the firmware upgrade yourself. 
Although it seemed that I
might be able to use Wine for the purpose, I
reckoned it wasn't worth
the risk.  A Vodafone shop did it free of charge.

FWIW I'm presently on a short contract in Australia
and have got the
Vodem running on Virgin Broadband (as Vodafone AU
don't offer any prepay
or short term contracts for broadband).

=Andrew








Re: Internet in the sticks: was Home networking issues

2008-10-06 Thread David Lowe
Thank you for your support Mr big city dweller... yes, I guess that's why i
have joined Farmside. Despite all the negative perceptions about 2-way
satellite (that have been holding me back for a long time I admit) it really
isn't all that bad. And I guess if I have to pay a bit more for broadband
than you latte drinkers, the flip side is cheap rates, less crime and fresh
air... not that I'm trying to start a flame war or anything...

I have indeed thought about working with my neighbours but unfortunately
they all seem to be luddites and don't care. Farming and geekiness don't
seem to mix very well.

- Farmer Dave

PS I think you might be nearly as old as me Don... did you also read the
books about Farmer Dave at Primary School? Gee it's been many many years
since I have remembered them.



On Mon, Oct 6, 2008 at 10:53 PM, <[EMAIL PROTECTED]> wrote:

> Dear Farmer Dave,
>
> The reason us latte drinkers have great service is because we work
> together.  We all purchase our services off one of only a limited number of
> companies.
>
> Why aren't you farmers doing the same - working together?  Is there no one
> a little further from the hill that you can bounce a signal from?
>
> Cheers Mr Long Black Drinker.
>
>
>
> David Lowe wrote:
>
>> I'm at the foot of Mount Grey with a lovely wireless service on top... but
>> so close to the foot of it, I can't see the aerial.
>>
>
> --
> Don Gould
> 31 Acheson Ave, Mairehau, Christchurch, NZ
> Ph +64 3 348 7235 or + 64 21 114 0699
> www.thinkdesignprint.co.nz
>


Re: Internet in the sticks: was Home networking issues

2008-10-06 Thread don

Dear Farmer Dave,

The reason us latte drinkers have great service is because we work 
together.  We all purchase our services off one of only a limited number 
of companies.


Why aren't you farmers doing the same - working together?  Is there no 
one a little further from the hill that you can bounce a signal from?


Cheers Mr Long Black Drinker.


David Lowe wrote:
I'm at the foot of Mount Grey with a lovely wireless service on top... 
but so close to the foot of it, I can't see the aerial. 


--
Don Gould
31 Acheson Ave, Mairehau, Christchurch, NZ
Ph +64 3 348 7235 or + 64 21 114 0699
www.thinkdesignprint.co.nz


Re: Internet in the sticks: was Home networking issues

2008-10-05 Thread Vik Olliver
On Sun, 2008-10-05 at 15:47 +1300, Kerry wrote:
> I got a friends vodem working on her lappie running Ubuntu last week
> following these instructions:
> http://www.geekzone.co.nz/chakkaradeep/4366

Yeah, didn't work for me - I needed sudo and no usb-storage. I see
they're up to 2.0beta3 now though, so I'll try it again later.

Vik :v)



Re: Internet in the sticks: was Home networking issues

2008-10-04 Thread David Lowe
To the Latte drinkers - When i said i was in the styx I was being just
slightly sarcastic... I'm just outside Rangiora, only 20 minutes from the
centre of Chch when there's no traffic. (Double it otherwise...) I'm right
on the edge of cellphone reception and no 3G so I rejected that. I'm at the
foot of Mount Grey with a lovely wireless service on top... but so close to
the foot of it, I can't see the aerial. I'm 1.9km from the nearest school &
ADSL cabinet... but connected to the wrong cabinet & they have no plans to
upgrade it.

So we are sort of in a black hole. I might as well be in darkest africa.

The only option left is the one I have. Farmside's ipstar is working OK.
Only $150 to install on a two year contract. Their new Rocket plans are
reasonably competitive but yes still more expensive than other options. And
frankly, I haven't found the latency to be a problem. They tell me they can
even do voip and promise me it will work... I'll give it a shot some time...
once I get everything else sorted. Regrettably the weather cleared and I've
been in the paddocks all day... I'm back on networking now...

- D


Re: Internet in the sticks: was Home networking issues

2008-10-04 Thread Kerry
I got a friends vodem working on her lappie running Ubuntu last week
following these instructions:
http://www.geekzone.co.nz/chakkaradeep/4366

Kerry

On Sun, 2008-10-05 at 15:30 +1300, Vik Olliver wrote:
> On Sun, 2008-10-05 at 13:47 +1300, Lee Begg wrote:
> > This is not true. Both the Telecom T-Stick and the Vodafone's Vodem
> > work under 
> > linux. I have seen it with my own eyes.
> 
> To get Vodem working:
> 
> Insert vodem.
> Wait for USB to settle.
> Remove vodem,
> Wait for USB to settle.
> Remove usb-storage device driver.
> Insert vodem.
> Wait for USB to settle.
> sudo vodafone-mobile-connect-card-driver-for-linux
> 
> and it works.
> 
> Not exactly point & shoot. Not very reliable either. And VoIP?
> Fugeddaboutit.
> 
> Vik :v)
> 



Re: Home networking issues

2008-10-04 Thread Christopher Sawtell
2008/10/5 Nick Rout <[EMAIL PROTECTED]>:
> On Sun, Oct 5, 2008 at 11:16 AM, David Lowe <[EMAIL PROTECTED]> wrote:
>> thanks gentlemen. Chris - its an Icon Consumer Box from Ipstar ipx-2200. I
>> figured no one else on the list would have one though...
>>
>> I now know possibly a great deal more than I really wanted to know... I had
>> always wondered what the subnet was all about.  I'll try Steve's suggestion
>> first and let you know. Next step as Volker suggests is a proper firewall
>> etc and I was going to try ClarkConnect for that.
>
> bad choice!
>
Indeed!

[1] http://www.pfSense.org

  Which is a specialised version of FreeBSD with a web interface to set it up.
  In my exp. it works very well indeed. It requires a fair amount of
knowledge to set it up.

[2] http://www.IPCop.org

   Similar to above, but Linux based. Not as much networking lore
required, but imho & exp. not as good as pfSense. i.e. the support of
wireless cards is a right pain to set up.

There are dozens of others.


-- 
Sincerely etc.
Christopher Sawtell


Re: Internet in the sticks: was Home networking issues

2008-10-04 Thread Vik Olliver
On Sun, 2008-10-05 at 13:47 +1300, Lee Begg wrote:
> This is not true. Both the Telecom T-Stick and the Vodafone's Vodem
> work under 
> linux. I have seen it with my own eyes.

To get Vodem working:

Insert vodem.
Wait for USB to settle.
Remove vodem,
Wait for USB to settle.
Remove usb-storage device driver.
Insert vodem.
Wait for USB to settle.
sudo vodafone-mobile-connect-card-driver-for-linux

and it works.

Not exactly point & shoot. Not very reliable either. And VoIP?
Fugeddaboutit.

Vik :v)



Re: Internet in the sticks: was Home networking issues

2008-10-04 Thread Lee Begg
On Sun, 05 Oct 2008 13:15:54 Ross Drummond wrote:
> Telecom's EVDO offering has a wide footprint and reasonably high bandwidth.
> The downside is that their modems are USB devices which are not supported
> on linux and they offer no stand alone modem router.

This is not true. Both the Telecom T-Stick and the Vodafone's Vodem work under 
linux. I have seen it with my own eyes.

Regards
Lee


Re: Home networking issues

2008-10-04 Thread Nick Rout
On Sun, Oct 5, 2008 at 11:16 AM, David Lowe <[EMAIL PROTECTED]> wrote:
> thanks gentlemen. Chris - its an Icon Consumer Box from Ipstar ipx-2200. I
> figured no one else on the list would have one though...
>
> I now know possibly a great deal more than I really wanted to know... I had
> always wondered what the subnet was all about.  I'll try Steve's suggestion
> first and let you know. Next step as Volker suggests is a proper firewall
> etc and I was going to try ClarkConnect for that.

bad choice!


Re: Home networking issues

2008-10-04 Thread Michael

Christopher Sawtell wrote:

Short:

Because you cannot mix ( simply ) networks like that.

The netmask 255.255.255.0 is 24 bits long which limits you to 256
addresses, i.e. 254 machines, plus a broadcast address and a network
address.
  


Just a quick factual improvement.  It's actually a limitation of 255
addresses with 253 usable because 0 and 255 are special.  0 represents
the network but has no practical use, 255 is the broadcast address,
which is used when trying to find the MAC address of other hosts.

Yeah, either go for a /16 netmask OR change the 5 to a 1 in the third
octet.  Actually, you shouldn't have to worry about the DHCP server
issuing a duplicate address, because (1) some DHCP servers detect an
existing address and so won't issue it and (2) most clients use
Gratuitous-ARP to check that the address they have been issued is not a
duplicate.

Michael.


I do not know the intimate details of the DHCP server you have there,
but if you could persuade it to allow for a larger network, i.e. in
your case, a 21 bit mask - 255.255.128.0 - then you could have your
server on 192.168.1.201 and the rest of the dynamically assigned hosts
on 192.168.5.x

Be sure to allocate an appropriate broadcast address. It's usually the
last, or highest numbered, address available in the network.

It would help considerably if you could let us know exactly what the
satellite modem is, and the URL of its documentation.

Long:

You need to read up on the details of IP network addressing and routing.
Probably one of the best is the appropriate chapter in the RUTE book
by Paul Sheer.

http://rute.2038bug.com/node28.html.gz

Note that the're gzip compressed files, and thus won't work with I.E.,
but are fine with Mozilla Firefox, and derivatives. Konqueror is ok
too.

Googling with the search term "rusty russell internet tutorial" will
yield a number of good pages of advanced know-how, but imho Paul
Sheer's prose is much easier to understand.




2008/10/5 David Lowe <[EMAIL PROTECTED]>:
  

Hello cluggers, hope someone can take 5 minutes to give me a hand...

I've just installed a two-way satellite modem (because I live way out in the
styx and can't get anything else). It includes a DHCP server which I decided
to start using; previously everything was static. But I have one machine (my
MythTV server) that really needs to keep its static IP address. I have
worked out how to 'reserve' it's address on the DHCP server by specifying
it's MAC address. I'm not certain it works yet but that's not my problem...

My problem is that the DHCP server hands out addresses in the range
192.168.5.11/254. It's Ethernet interface is 192.168.5.100/255.255.255.0.
But I want to leave my server with a static address of 192.168.1.201 (its
easier to leave it alone rather than have to shag around with mySQL issues).
The result is that the server disappears off the network. I guess it's the
'5' in the IP address that's causing the problem... but from my limited
understanding, I thought internal address were internal and it should not
matter.

I guess I can work around the problem by either reconfiguring (or disabling)
the DHCP server (but not sure if I might stuff anything else up) or the
server (don't really want to face the drama of changing the host of a MythTV
server) - so I thought I would ask first: why can't I mix IP addresses like
this?

tia

- David





Re: Home networking issues

2008-10-04 Thread David Lowe
thanks gentlemen. Chris - its an Icon Consumer Box from Ipstar ipx-2200. I
figured no one else on the list would have one though...

I now know possibly a great deal more than I really wanted to know... I had
always wondered what the subnet was all about.  I'll try Steve's suggestion
first and let you know. Next step as Volker suggests is a proper firewall
etc and I was going to try ClarkConnect for that.

thanks for your time on this grey sunday morning - a good time for messing
about with networking I think.

- D

On Sun, Oct 5, 2008 at 10:31 AM, Steve Holdoway <[EMAIL PROTECTED]>wrote:

> On Sun, 05 Oct 2008 09:42:28 +1300
> David Lowe <[EMAIL PROTECTED]> wrote:
>
> > Hello cluggers, hope someone can take 5 minutes to give me a hand...
> >
> > I've just installed a two-way satellite modem (because I live way out in
> the
> > styx and can't get anything else). It includes a DHCP server which I
> decided
> > to start using; previously everything was static. But I have one machine
> (my
> > MythTV server) that really needs to keep its static IP address. I have
> > worked out how to 'reserve' it's address on the DHCP server by specifying
> > it's MAC address. I'm not certain it works yet but that's not my
> problem...
> >
> > My problem is that the DHCP server hands out addresses in the range
> > 192.168.5.11/254. It's Ethernet interface is 192.168.5.100/255.255.255.0
> .
> > But I want to leave my server with a static address of 192.168.1.201(its
> > easier to leave it alone rather than have to shag around with mySQL
> issues).
> > The result is that the server disappears off the network. I guess it's
> the
> > '5' in the IP address that's causing the problem... but from my limited
> > understanding, I thought internal address were internal and it should not
> > matter.
> >
> > I guess I can work around the problem by either reconfiguring (or
> disabling)
> > the DHCP server (but not sure if I might stuff anything else up) or the
> > server (don't really want to face the drama of changing the host of a
> MythTV
> > server) - so I thought I would ask first: why can't I mix IP addresses
> like
> > this?
> >
> > tia
> >
> > - David
> >
> The problem is that they're in diferent subnets ( 192.168.1 and 192.168.5
> ), and so are invisible to each other. There are 2 ways to fix this. You can
> either relax the netmask to just use the first 2 octets (192.168) to define
> the subnet (192.168.0.0/16) instead of the default 3, or to reconfigure
> dhcp to offer ip addresses in the 192.168.1 subnet.
>
> Personally, I'd go for the second option - reconfiguring DHCP to offer from
> a range in the 192.168.1 subnet: it should be as simple as replacing the 5
> for a 1 in the right config file - and make sure the range doesn't include
> your static ip address for the Myth box. Sounds like you've got well started
> with this. You'll need to refresh the existing clients once thats done to
> get them all using the new subnet.
>
> hth,
>
> Steve
>
> --
> Steve Holdoway <[EMAIL PROTECTED]>
>


Re: Home networking issues

2008-10-04 Thread Volker Kuhlmann
On Sun 05 Oct 2008 09:42:28 NZDT +1300, David Lowe wrote:

> I've just installed a two-way satellite modem (because I live way out in the
> styx and can't get anything else). It includes a DHCP server which I decided
> to start using;

In my experience, DHCP servers in consumer modems are extremely cr*ppy.
Assigning IP addresses based on MAC address is not a function they
understand - you seem to have an exception. If you're in any way more
serious I'd recommend to still use an appropriate firewall, which is
more secure (trust your consumer grade electronic junk gimmick?) and
also has decent software on it (including a proper DHCP server).

But your problem here is understanding how IP address spaces work. Your
solution is to put the right numbers in.

> My problem is that the DHCP server hands out addresses in the range
> 192.168.5.11/254.

That's nonsense. If it does in fact do that, it's useless, if you put
those numbers in, fix it.

192.168.5.11/254 means 254 significant bits from the left of the number
192.168.5.11. Oops, that number is only 32 bits wide. Because the
smallest and largest number made up from the range not included in the
width after the / is reserved when specifying subnets, the number after
the slash can be at most 30, giving you 2 usable IP addresses. Do
yourself a favour and use at least a /24, you get 254 addresses. With
192.168.x.x you can immediately see that you can't go bigger than /16.

> It's Ethernet interface is 192.168.5.100/255.255.255.0.
> But I want to leave my server with a static address of 192.168.1.201

Whatever the reasons, all interfaces which are in the same subnet must
be in the same subnet, so to speak, or you need a router between the
subnets. You don't have a router, you want 192.168.5.x and 192.168.1.x
to be in the same subnet, therefore you have to make the subnet big
enough to include both those addresses.

The program ipcalc is really nifty for this sort for calculation. (No
your head maths won't be good enough, mine isn't either.) Unfortuantely
it doesn't create a subnet from 2 IPs, but you can make the mask smaller
(= the subnet bigger) until it fits both.

ipcalc 192.168.1.1/23   => not big enough

the on you want:

ipcalc 192.168.1.1/21
Address:   192.168.1.1  1100.10101000.0 001.0001
Netmask:   255.255.248.0 = 21   ..1 000.
Wildcard:  0.0.7.255..0 111.
=>
Network:   192.168.0.0/21   1100.10101000.0 000.
HostMin:   192.168.0.1  1100.10101000.0 000.0001
HostMax:   192.168.7.2541100.10101000.0 111.1110
Broadcast: 192.168.7.2551100.10101000.0 111.
Hosts/Net: 2046  Class C, Private Internet

Note that it also tells you the network and broadcast addresses you
have to use.

The IP address range configured for your dynamic DHCP allocation also
has to be within this range, as do all the static DHCP addresses, and
none of the static ones can be inside the dynamic range. With 2046
addresses you should have enough for a home LAN...

Volker

-- 
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.


Re: Home networking issues

2008-10-04 Thread Steve Holdoway
On Sun, 05 Oct 2008 09:42:28 +1300
David Lowe <[EMAIL PROTECTED]> wrote:

> Hello cluggers, hope someone can take 5 minutes to give me a hand...
> 
> I've just installed a two-way satellite modem (because I live way out in the
> styx and can't get anything else). It includes a DHCP server which I decided
> to start using; previously everything was static. But I have one machine (my
> MythTV server) that really needs to keep its static IP address. I have
> worked out how to 'reserve' it's address on the DHCP server by specifying
> it's MAC address. I'm not certain it works yet but that's not my problem...
> 
> My problem is that the DHCP server hands out addresses in the range
> 192.168.5.11/254. It's Ethernet interface is 192.168.5.100/255.255.255.0.
> But I want to leave my server with a static address of 192.168.1.201 (its
> easier to leave it alone rather than have to shag around with mySQL issues).
> The result is that the server disappears off the network. I guess it's the
> '5' in the IP address that's causing the problem... but from my limited
> understanding, I thought internal address were internal and it should not
> matter.
> 
> I guess I can work around the problem by either reconfiguring (or disabling)
> the DHCP server (but not sure if I might stuff anything else up) or the
> server (don't really want to face the drama of changing the host of a MythTV
> server) - so I thought I would ask first: why can't I mix IP addresses like
> this?
> 
> tia
> 
> - David
> 
The problem is that they're in diferent subnets ( 192.168.1 and 192.168.5 ), 
and so are invisible to each other. There are 2 ways to fix this. You can 
either relax the netmask to just use the first 2 octets (192.168) to define the 
subnet (192.168.0.0/16) instead of the default 3, or to reconfigure dhcp to 
offer ip addresses in the 192.168.1 subnet.

Personally, I'd go for the second option - reconfiguring DHCP to offer from a 
range in the 192.168.1 subnet: it should be as simple as replacing the 5 for a 
1 in the right config file - and make sure the range doesn't include your 
static ip address for the Myth box. Sounds like you've got well started with 
this. You'll need to refresh the existing clients once thats done to get them 
all using the new subnet.

hth,

Steve

-- 
Steve Holdoway <[EMAIL PROTECTED]>


Re: Home networking issues

2008-10-04 Thread Christopher Sawtell
Short:

Because you cannot mix ( simply ) networks like that.

The netmask 255.255.255.0 is 24 bits long which limits you to 256
addresses, i.e. 254 machines, plus a broadcast address and a network
address.

I do not know the intimate details of the DHCP server you have there,
but if you could persuade it to allow for a larger network, i.e. in
your case, a 21 bit mask - 255.255.128.0 - then you could have your
server on 192.168.1.201 and the rest of the dynamically assigned hosts
on 192.168.5.x

Be sure to allocate an appropriate broadcast address. It's usually the
last, or highest numbered, address available in the network.

It would help considerably if you could let us know exactly what the
satellite modem is, and the URL of its documentation.

Long:

You need to read up on the details of IP network addressing and routing.
Probably one of the best is the appropriate chapter in the RUTE book
by Paul Sheer.

http://rute.2038bug.com/node28.html.gz

Note that the're gzip compressed files, and thus won't work with I.E.,
but are fine with Mozilla Firefox, and derivatives. Konqueror is ok
too.

Googling with the search term "rusty russell internet tutorial" will
yield a number of good pages of advanced know-how, but imho Paul
Sheer's prose is much easier to understand.




2008/10/5 David Lowe <[EMAIL PROTECTED]>:
> Hello cluggers, hope someone can take 5 minutes to give me a hand...
>
> I've just installed a two-way satellite modem (because I live way out in the
> styx and can't get anything else). It includes a DHCP server which I decided
> to start using; previously everything was static. But I have one machine (my
> MythTV server) that really needs to keep its static IP address. I have
> worked out how to 'reserve' it's address on the DHCP server by specifying
> it's MAC address. I'm not certain it works yet but that's not my problem...
>
> My problem is that the DHCP server hands out addresses in the range
> 192.168.5.11/254. It's Ethernet interface is 192.168.5.100/255.255.255.0.
> But I want to leave my server with a static address of 192.168.1.201 (its
> easier to leave it alone rather than have to shag around with mySQL issues).
> The result is that the server disappears off the network. I guess it's the
> '5' in the IP address that's causing the problem... but from my limited
> understanding, I thought internal address were internal and it should not
> matter.
>
> I guess I can work around the problem by either reconfiguring (or disabling)
> the DHCP server (but not sure if I might stuff anything else up) or the
> server (don't really want to face the drama of changing the host of a MythTV
> server) - so I thought I would ask first: why can't I mix IP addresses like
> this?
>
> tia
>
> - David
>
>
>
>



-- 
Sincerely etc.
Christopher Sawtell


Home networking issues

2008-10-04 Thread David Lowe
Hello cluggers, hope someone can take 5 minutes to give me a hand...

I've just installed a two-way satellite modem (because I live way out in the
styx and can't get anything else). It includes a DHCP server which I decided
to start using; previously everything was static. But I have one machine (my
MythTV server) that really needs to keep its static IP address. I have
worked out how to 'reserve' it's address on the DHCP server by specifying
it's MAC address. I'm not certain it works yet but that's not my problem...

My problem is that the DHCP server hands out addresses in the range
192.168.5.11/254. It's Ethernet interface is 192.168.5.100/255.255.255.0.
But I want to leave my server with a static address of 192.168.1.201 (its
easier to leave it alone rather than have to shag around with mySQL issues).
The result is that the server disappears off the network. I guess it's the
'5' in the IP address that's causing the problem... but from my limited
understanding, I thought internal address were internal and it should not
matter.

I guess I can work around the problem by either reconfiguring (or disabling)
the DHCP server (but not sure if I might stuff anything else up) or the
server (don't really want to face the drama of changing the host of a MythTV
server) - so I thought I would ask first: why can't I mix IP addresses like
this?

tia

- David


Re: Home networking cable question

2008-09-01 Thread yuri
2008/9/1 Craig Falconer wrote:
> Any wiring is possible...  but you've got to be creative.  At last resort,
> you can lift the edge of carpet and run one length of cat5 between the
> skirting board and the smooth-edge.

Or you can take the skirting off and route a groove into it.
Requires a router (the power tool, not the network device).
May also require painting touch-up.

If anyone following this thread is building their own home in the
future, I hope you haven't underestimated the merit of pre-wiring for
LAN, home theatre, speakers, etc.

Yuri


Re: Home networking cable question

2008-08-31 Thread Craig Falconer

David Lowe wrote:


There's usually a gap between the exterior cladding and the dwangs (?) 
that the interior wall is attached to. This lets you drop cable down 
from the roof cavity & emerge from the gib wherever you want. 
Consequently, all of my ethernet outlets are on exterior walls, except 
for the rooms that handily backed on to an airing cupboard.
in brick houses.  Mine's weatherboard and there's no room at all 
between the cladding and the framing.

No batts either...

--





Re: Home networking cable question

2008-08-31 Thread David Lowe
On Sun, Aug 31, 2008 at 3:10 PM, Don Gould <[EMAIL PROTECTED]> wrote:

>
> I've used extension bits to drill down walls in the past.  It's not that
> hard if you just take your time.
>
> Cheers Don
>

There's usually a gap between the exterior cladding and the dwangs (?) that
the interior wall is attached to. This lets you drop cable down from the
roof cavity & emerge from the gib wherever you want. Consequently, all of my
ethernet outlets are on exterior walls, except for the rooms that handily
backed on to an airing cupboard.

- D


Re: Home networking cable question

2008-08-31 Thread Craig Falconer

Robert Fisher wrote:

Is there roof/ceiling space?
Extension bits can be used to get wires down walls.
As long as your existing wiring was done vertically...  I managed to 
catch a loop of light-switch cable by mistake once, mostly because the 
previous owner had moved a light switch.


Any wiring is possible...  but you've got to be creative.  At last 
resort, you can lift the edge of carpet and run one length of cat5 
between the skirting board and the smooth-edge.   Check what's behind 
the wall...  cupboards are handy.Black cable can hide in the 
shadows, and if you've really got no other way (ie block walls) then 
surface mount capping in the corner can work fine.


Is it your own place, or a rental?

Wireless is great - but it has drawbacks and I'd still recommend wires 
to desktops/fixed locations.


--
Craig Falconer




Re: Home networking cable question

2008-08-30 Thread Robert Fisher
On Sun, 31 Aug 2008 3:07:05 pm Ross Drummond wrote:

> A concrete pad floor unfortunately.
>
Is there roof/ceiling space?

Extension bits can be used to get wires down walls.


Re: Home networking cable question

2008-08-30 Thread yuri
2008/8/31 Ross Drummond wrote:
>> While pulling this cable alongside power cable, it is possible (and if
>> the holes are tight, likely) that some insulation will rub/scrape off
>> both the power and and the data cable, thus livening the foil screen
>> on the data cable to 230V.
>>
>> A person handling the data cable is then at risk of shock, possibly
>> leading to burns or ventricular fibrillation - an often fatal
>> condition.
>
> I am a big fan of earth continuity after my toaster threw me backwards into
> the refrigerator. The shielding will be earthed.

Even so, it is against regulations to run the data together with the power.
AS/NZS 3000:2000 "Wiring Rules" clause 3.9.9.3


[snip]
> A concrete pad floor unfortunately.

Crawl space in roof or monopitch?
If there's a roof space it can be done from there. Requires drill
extensions and some skill.

Yuri


Re: Home networking cable question

2008-08-30 Thread Don Gould



Ross Drummond wrote:



A concrete pad floor unfortunately.


What's the roof space like?

I've used extension bits to drill down walls in the past.  It's not that 
hard if you just take your time.


Cheers Don


Re: Home networking cable question

2008-08-30 Thread Ross Drummond
On Sun, 31 Aug 2008, yuri wrote:

>
> While pulling this cable alongside power cable, it is possible (and if
> the holes are tight, likely) that some insulation will rub/scrape off
> both the power and and the data cable, thus livening the foil screen
> on the data cable to 230V.
>
> A person handling the data cable is then at risk of shock, possibly
> leading to burns or ventricular fibrillation - an often fatal
> condition.

I am a big fan of earth continuity after my toaster threw me backwards into 
the refrigerator. The shielding will be earthed.
>
> If your house has a crawl space underneath the floor (ie not poured
> concrete floor) then it would be trivial for someone like myself (I
> would charge for my time) to drill through the bottom plate of the the
> walls at each data socket location, cut out a flushbox hole in the
> gib, drop cat5e down the wall and through the hole in the bottom
> plate, fit easy-fix flushbox and data socket and voilá, job done.

A concrete pad floor unfortunately.

Cheers Ross Drummond




Re: Home networking cable question

2008-08-30 Thread yuri
2008/8/31 Ross Drummond wrote:
> Someone suggested that this product, a shielded combined data TV phone cable,
> may be suitable for a home network by pulling it through the existing
> electrical cable pathways in the walls.
>
> http://www.pdl.co.nz/product-details.aspx?rcat=products&catid=0&id=1741
>
> The hope is this product being shielded will eliminate the interference that
> network cable suffers when it is run alongside electrical cables.

While pulling this cable alongside power cable, it is possible (and if
the holes are tight, likely) that some insulation will rub/scrape off
both the power and and the data cable, thus livening the foil screen
on the data cable to 230V.

A person handling the data cable is then at risk of shock, possibly
leading to burns or ventricular fibrillation - an often fatal
condition.

If your house has a crawl space underneath the floor (ie not poured
concrete floor) then it would be trivial for someone like myself (I
would charge for my time) to drill through the bottom plate of the the
walls at each data socket location, cut out a flushbox hole in the
gib, drop cat5e down the wall and through the hole in the bottom
plate, fit easy-fix flushbox and data socket and voilá, job done.

Requires overalls, drill and good sense of direction.

Yuri


Re: Home networking cable question

2008-08-30 Thread Robert Fisher
On Sun, 31 Aug 2008 12:24:14 pm Ross Drummond wrote:
> I am contemplating installing some home networking.
>
> This will be a retrofit in an existing home.
>
> When I ask electricians about running new cables with the necessary
> separation from existing electrical cable they shake their heads and make
> excuses about being very busy.
>
Running network cables is usually not as hard as you may first think, 
especially if you have the right tools and some encouraging advice.

There are some tips which I can share with you (depending on what you are 
trying to do e.g. under floor or ceiling wiring etc.)

You can call/contact me if you like.


Re: Home networking cable question

2008-08-30 Thread Steve Holdoway
On Sun, 31 Aug 2008 12:24:14 +1200
Ross Drummond <[EMAIL PROTECTED]> wrote:

> The hope is this product being shielded will eliminate the interference that 
> network cable suffers when it is run alongside electrical cables.
> 
> Has anyone used this product for this purpose or could they comment on its 
> suitability?
> 
> Cheers Ross Drummond
Ross,

It's not just interference that you need to worry about. 230V through your 
network just *might* do some damage to you/your equipment (:

For simplicity, I'd look either at wireless or the ethernet over power options 
available... for the latter I know of a local company that seems to have them 
on special quite often, and one of my workmates runs his mythtv happily over it 
so the bandwidth can't be that bad.

Steve
-- 
Steve Holdoway <[EMAIL PROTECTED]>


Home networking cable question

2008-08-30 Thread Ross Drummond
I am contemplating installing some home networking.

This will be a retrofit in an existing home.

When I ask electricians about running new cables with the necessary separation 
from existing electrical cable they shake their heads and make excuses about 
being very busy.

Someone suggested that this product, a shielded combined data TV phone cable, 
may be suitable for a home network by pulling it through the existing 
electrical cable pathways in the walls.

http://www.pdl.co.nz/product-details.aspx?rcat=products&catid=0&id=1741

The hope is this product being shielded will eliminate the interference that 
network cable suffers when it is run alongside electrical cables.

Has anyone used this product for this purpose or could they comment on its 
suitability?

Cheers Ross Drummond


Re: networking..............

2008-06-02 Thread Steve Holdoway

On Tue, 03 Jun 2008 09:32:11 +1200
Nick Rout <[EMAIL PROTECTED]> wrote:

> Quite likely your default route is being set to the lan.
> 
> You need to set ppp to replace the default route on connection.
> 
You'll also need to set that one up to be a gateway, or it won't forward 
anything. 


pgpEH0O6XRlDC.pgp
Description: PGP signature


Re: networking..............

2008-06-02 Thread Nick Rout
Or better still get a separate ipcop (substitute preferred choice) box
to handle your internet.

On Tue, Jun 3, 2008 at 9:32 AM, Nick Rout <[EMAIL PROTECTED]> wrote:
> Quite likely your default route is being set to the lan.
>
> You need to set ppp to replace the default route on connection.
>
> On Tue, Jun 3, 2008 at 9:17 AM, Barry <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> I've just bought a laptop, and for the 1st time have to get networking
>> sorted out.
>>
>> Progress so far - using a crossover cable each machine can transfer files to
>> other using fish in dolphin, I can open a ssh & run apps from the other box,
>> and I can log on to the web (kppp)
>>
>> However I can not then go to a remote site from a web browser from either
>> box. I have to unplug the cable before starting ppp and going on the web. I
>> am then restricted to the box I log on from.
>>
>> What setup changes need to be made to fix this problem?
>>
>> TIA Barry
>>
>>
>


Re: networking..............

2008-06-02 Thread Nick Rout
Quite likely your default route is being set to the lan.

You need to set ppp to replace the default route on connection.

On Tue, Jun 3, 2008 at 9:17 AM, Barry <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've just bought a laptop, and for the 1st time have to get networking
> sorted out.
>
> Progress so far - using a crossover cable each machine can transfer files to
> other using fish in dolphin, I can open a ssh & run apps from the other box,
> and I can log on to the web (kppp)
>
> However I can not then go to a remote site from a web browser from either
> box. I have to unplug the cable before starting ppp and going on the web. I
> am then restricted to the box I log on from.
>
> What setup changes need to be made to fix this problem?
>
> TIA Barry
>
>


networking..............

2008-06-02 Thread Barry

Hi all,

I've just bought a laptop, and for the 1st time have to get networking 
sorted out.


Progress so far - using a crossover cable each machine can transfer 
files to other using fish in dolphin, I can open a ssh & run apps from 
the other box, and I can log on to the web (kppp)


However I can not then go to a remote site from a web browser from 
either box. I have to unplug the cable before starting ppp and going on 
the web. I am then restricted to the box I log on from.


What setup changes need to be made to fix this problem?

TIA Barry



Re: Networking With Suse and Samba

2007-06-13 Thread Robert Fisher
On Wednesday 13 June 2007 9:51 pm, Volker Kuhlmann wrote:

> > 2/ Open, in KDE,  "File Manager - Super User Mode" then enter the root
> > password, browse to the file, right click it and open with kwrite.
> > (Not sure if Suse calls it "File Manager - Super User Mode" but most KDE
> > distros do. Volker?)
>
> Ah here we go: KDEbutton -> System -> File manager ->
> File manager super user mode.
>
That's it - dead simple and intuitive.

Actually, I referred to nano before because it is fairly intuitive too. (IMHO)


Re: Networking With Suse and Samba

2007-06-13 Thread Volker Kuhlmann
Minor additions:

> 1/ Open a terminal screen, type su - (that's "su -"), press enter, enter root 
> password (now you are logged into the session as root)

sux -

is the one you want if you also want to start graphics programs (like
kwrite), at least on SUSE.

> type nano -w /path/to/filename (you do know about tab completion don't you?)
> press enter

If you are familiar with old Borland programming tools of MSDOS days,
not much beats joe as a quicky text editor. Or the same thing with
Wordstar key shortcuts: jstar. Or the same thing for masochists: jmacs.
And it's part of the SUSE base system and therefore always installed.

> 2/ Open, in KDE,  "File Manager - Super User Mode" then enter the root 
> password, browse to the file, right click it and open with kwrite.
> (Not sure if Suse calls it "File Manager - Super User Mode" but most KDE 
> distros do. Volker?)

Good question, I never use it like that. I always have konsole (the KDE
terminal) open, and holding down the mouse button on the new tab icon in
the bottomleft corner givesd a popup which includes "root shell". Hmm, I
hacked another entry into it which gives me "root shell with X" (and
which runs sux). Ah here we go: KDEbutton -> System -> File manager ->
File manager super user mode.

Of course one can always go KDEbutton -> Run command, and run kdesu. But
there's a trap: kdesu does not ask what program to run, you have to tell
it on its command line. So to run kwrite, one has to enter kdesu kwrite
with a space between them in the Run command box.

Oh SUSE? or KDE? by default replaced the old KDE button (bottom left on
desktop) with this ... THING. You can get your sanity back by
right-clicking on it, and selecting "Switch to KDE menu style". If you
like it better sexy afterall, right click again and select "switch to
SUSE menu style".

Volker

-- 
Volker Kuhlmann is list0570 with the domain in header
http://volker.dnsalias.net/ Please do not CC list postings to me.


Re: Networking With Suse and Samba

2007-06-12 Thread Reg
Reg wrote:
> Robert Fisher wrote:
>   
>> On Wednesday 13 June 2007 4:01 pm, Reg wrote:
>>
>>   
>> 
>>> Have practiced adding shares today  a couple of times  with the  right
>>> clicking method successfully.
>>> 
>>>   
>> Easy eh?
>>   
>> 
>>> Regarding editing files:  if I am logged in as reg  I can do it by
>>> logging right off and logging in again as root, but is there a quicker
>>> way to get root access without having to log right out and back in again?
>>> 
>>>   
>> I use either of two methods:-
>>
>> 1/ Open a terminal screen, type su - (that's "su -"), press enter, enter 
>> root 
>> password (now you are logged into the session as root)
>> type nano -w /path/to/filename (you do know about tab completion don't you?)
>> press enter
>>
>> (I know you do not have nano on your system yet Reg but I do recommend it as 
>> being far more intuitive than vi - which you saw David using last night)
>>
>> 2/ Open, in KDE,  "File Manager - Super User Mode" then enter the root 
>> password, browse to the file, right click it and open with kwrite.
>> (Not sure if Suse calls it "File Manager - Super User Mode" but most KDE 
>> distros do. Volker?)
>>
>> Rob
>>
>>   
>> 
> with option 2 I think by file manager you mean konqueror
> and I would execute:
>
> ALT + F2
> kdesu konqueror
>
> as it doesnt seem to be on a menu.
>
>
> either way I tried that and it still doesnt let me save a file in kwrite??
>
> reg
>
>   
actually it does, second time lucky worked fine :-)

Reg


Re: Networking With Suse and Samba

2007-06-12 Thread Reg
Robert Fisher wrote:
> On Wednesday 13 June 2007 4:01 pm, Reg wrote:
>
>   
>> Have practiced adding shares today  a couple of times  with the  right
>> clicking method successfully.
>> 
>
> Easy eh?
>   
>> Regarding editing files:  if I am logged in as reg  I can do it by
>> logging right off and logging in again as root, but is there a quicker
>> way to get root access without having to log right out and back in again?
>> 
>
> I use either of two methods:-
>
> 1/ Open a terminal screen, type su - (that's "su -"), press enter, enter root 
> password (now you are logged into the session as root)
> type nano -w /path/to/filename (you do know about tab completion don't you?)
> press enter
>
> (I know you do not have nano on your system yet Reg but I do recommend it as 
> being far more intuitive than vi - which you saw David using last night)
>
> 2/ Open, in KDE,  "File Manager - Super User Mode" then enter the root 
> password, browse to the file, right click it and open with kwrite.
> (Not sure if Suse calls it "File Manager - Super User Mode" but most KDE 
> distros do. Volker?)
>
> Rob
>
>   
with option 2 I think by file manager you mean konqueror
and I would execute:

ALT + F2
kdesu konqueror

as it doesnt seem to be on a menu.


either way I tried that and it still doesnt let me save a file in kwrite??

reg



Re: Networking With Suse and Samba

2007-06-12 Thread Robert Fisher
On Wednesday 13 June 2007 4:01 pm, Reg wrote:

> Have practiced adding shares today  a couple of times  with the  right
> clicking method successfully.

Easy eh?
>
> Regarding editing files:  if I am logged in as reg  I can do it by
> logging right off and logging in again as root, but is there a quicker
> way to get root access without having to log right out and back in again?

I use either of two methods:-

1/ Open a terminal screen, type su - (that's "su -"), press enter, enter root 
password (now you are logged into the session as root)
type nano -w /path/to/filename (you do know about tab completion don't you?)
press enter

(I know you do not have nano on your system yet Reg but I do recommend it as 
being far more intuitive than vi - which you saw David using last night)

2/ Open, in KDE,  "File Manager - Super User Mode" then enter the root 
password, browse to the file, right click it and open with kwrite.
(Not sure if Suse calls it "File Manager - Super User Mode" but most KDE 
distros do. Volker?)

Rob


Re: Networking With Suse and Samba

2007-06-12 Thread Reg
Robert Fisher wrote:
> To summarize the "solution" for reg at the meeting last night...
> David Kirk, using VI (yuch!!!) commented out the hosts allow line and added 
> shares similar to what I had suggested earlier.
>
> (Reg did not know how to edit files as root)
>
> I also showed how, with KDE, you can simply right click on a folder and 
> follow 
> your nose to share it.
>
> YMMV
>
> On Suse right click then left click on Share
> On Mepis, right click then Properties then Share
> On Kubuntu, same as Mepis but samba is not installed by default
>
>   
Rushed home last night and connected it up and it all worked like a
charm :-) again, many thanks to all for input.

Have practiced adding shares today  a couple of times  with the  right
clicking method successfully.

Regarding editing files:  if I am logged in as reg  I can do it by
logging right off and logging in again as root, but is there a quicker
way to get root access without having to log right out and back in again? 

Regards
Reg




Re: Networking With Suse and Samba

2007-06-12 Thread Roger Searle
Nick Rout wrote:
> On Tue, June 12, 2007 4:39 pm, Roger Searle wrote:
>   
>> Reg wrote:
>> 
>>> Below is my smb.conf file: If anyone can tell me where my error is I
>>> would be very thankful.
>>> Regards Reg
>>>
>>>
>>>
>>>
>>> [/home/reg]
>>> guest ok = Yes
>>> available = No
>>>
>>>
>>>   
>> how about for this section, no more than
>>
>> [/home/reg]
>> path = /home/reg
>>
>> comment out the other lines (put # at beginning)
>> 
>
> Why would he need this when he has a [homes] share?
>
>   
sure, and i'm here to learn as much as anyone else.  but the state it
seemed to be at yesterday was that there was no connectivity from the XP
box which may have been due to (I was guessing) the latest smb.conf file
not being loaded, a line that said "available = no" and reluctance or
inability on reg's part to either locate how/where to restart the
service either through a gui or simple command, this being prior to any
posts about automatic reloading of the configuration.  i'm sure someone
managed to get this sorted last night in around one minute.

Cheers,
Roger


Re: Networking With Suse and Samba

2007-06-12 Thread Robert Fisher
On Wednesday 13 June 2007 8:53 am, Nick Rout wrote:
> On Tue, June 12, 2007 4:39 pm, Roger Searle wrote:
> > Reg wrote:
> >> Below is my smb.conf file: If anyone can tell me where my error is I
> >> would be very thankful.
> >> Regards Reg

To summarize the "solution" for reg at the meeting last night...

David Kirk, using VI (yuch!!!) commented out the hosts allow line and added 
shares similar to what I had suggested earlier.

(Reg did not know how to edit files as root)

I also showed how, with KDE, you can simply right click on a folder and follow 
your nose to share it.

YMMV

On Suse right click then left click on Share
On Mepis, right click then Properties then Share
On Kubuntu, same as Mepis but samba is not installed by default


Re: Networking With Suse and Samba

2007-06-12 Thread Steve Holdoway
On Wed, 13 Jun 2007 08:49:46 +1200 (NZST)
Nick Rout <[EMAIL PROTECTED]> wrote:

> 
> On Tue, June 12, 2007 3:13 pm, Roger Searle wrote:
> > Robert Fisher wrote:
> >> On Tuesday 12 June 2007 2:17 pm, Reg wrote:
> >>
> >>
>  You can also restart samba using SWAT
> 
> >>> How do you do that?
> >>>
> >>>
> >> I do not have SWAT installed but I know that you can restart smbd and
> >> nmbd
> >> somewhere.
> >>
> >> Is it the "Status" tab?
> >>
> >>
> > I don't have swat installed here either so if you can't find it yourself
> > by looking around for something that refers to "restarting" "server" or
> > "samba" then there are the other options.
> >
> > /etc/init.d/smb restart (at the command line)
> 
> some distros call the service samba or smbd rather than smb.
> 
> Do this when someone else on the lan is in the middle of a database
> transaction or editing a document and you may have unhappy users. Rather
> you could look at man smbd (available via swat) and read:
> 
> "The configuration file, and any files that it includes, are automatically
> reloaded every minute, if they change. You can force a reload by sending a
> SIGHUP to the server. Reloading the configuration file will not affect
> connections to any service that is already established. Either the user
> will have to disconnect from the service, or smbd killed and restarted."
> 
> 
> Also swat has the ability to restart on the "Status" Tab where there are
> buttons for starting and restarting smbd and/or nmbd and/or both.
> 
> >
> > In Yast > System > System Services > scroll down and find "smb", click
> > disable, acknowledge the dialog box that tells you "Shutting down Samba
> > SMB daemon", then click enable.
> >
> > restart your computer (really, that is such a poor way of doing it, but
> > will "work")
> 
> Not necessary at all.
> 
> -- 
> Nick Rout
> 
There's a reload option to most /etc/init.d/samba scripts which does just 
that...


Re: Networking With Suse and Samba

2007-06-12 Thread Nick Rout

On Tue, June 12, 2007 4:39 pm, Roger Searle wrote:
> Reg wrote:
>> Below is my smb.conf file: If anyone can tell me where my error is I
>> would be very thankful.
>> Regards Reg
>>
>>
>>
>>
>> [/home/reg]
>> guest ok = Yes
>> available = No
>>
>>
> how about for this section, no more than
>
> [/home/reg]
> path = /home/reg
>
> comment out the other lines (put # at beginning)

Why would he need this when he has a [homes] share?

>
>
>


-- 
Nick Rout



Re: Networking With Suse and Samba

2007-06-12 Thread Nick Rout

On Tue, June 12, 2007 3:13 pm, Roger Searle wrote:
> Robert Fisher wrote:
>> On Tuesday 12 June 2007 2:17 pm, Reg wrote:
>>
>>
 You can also restart samba using SWAT

>>> How do you do that?
>>>
>>>
>> I do not have SWAT installed but I know that you can restart smbd and
>> nmbd
>> somewhere.
>>
>> Is it the "Status" tab?
>>
>>
> I don't have swat installed here either so if you can't find it yourself
> by looking around for something that refers to "restarting" "server" or
> "samba" then there are the other options.
>
> /etc/init.d/smb restart (at the command line)

some distros call the service samba or smbd rather than smb.

Do this when someone else on the lan is in the middle of a database
transaction or editing a document and you may have unhappy users. Rather
you could look at man smbd (available via swat) and read:

"The configuration file, and any files that it includes, are automatically
reloaded every minute, if they change. You can force a reload by sending a
SIGHUP to the server. Reloading the configuration file will not affect
connections to any service that is already established. Either the user
will have to disconnect from the service, or smbd killed and restarted."


Also swat has the ability to restart on the "Status" Tab where there are
buttons for starting and restarting smbd and/or nmbd and/or both.

>
> In Yast > System > System Services > scroll down and find "smb", click
> disable, acknowledge the dialog box that tells you "Shutting down Samba
> SMB daemon", then click enable.
>
> restart your computer (really, that is such a poor way of doing it, but
> will "work")

Not necessary at all.

-- 
Nick Rout



Re: Networking With Suse and Samba

2007-06-11 Thread Robert Fisher
On Tuesday 12 June 2007 5:38 pm, Reg wrote:

> all sounds good, I take it I only need to bring the box, there will be a
> monitor and keyboard there to use correct?
>
No you need everything - power cords, network cable, mouse, keyboard and 
monitor.


Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Robert Fisher wrote:
> On Tuesday 12 June 2007 5:27 pm, Don Gould wrote:
>   
>> Good move
>>
>> I'll have my xp laptop with me so we can test it out.
>>
>> Also we can use another Linux machine to test if the smb is doing the
>> right thing.
>>
>> 
> and to make it easy for the boxes to talk I will bring a D-Link router (4 
> port plus wireless) as a DHCP server
>
>   
all sounds good, I take it I only need to bring the box, there will be a
monitor and keyboard there to use correct?

Regards Reg


Re: Networking With Suse and Samba

2007-06-11 Thread Robert Fisher
On Tuesday 12 June 2007 5:27 pm, Don Gould wrote:
> Good move
>
> I'll have my xp laptop with me so we can test it out.
>
> Also we can use another Linux machine to test if the smb is doing the
> right thing.
>
and to make it easy for the boxes to talk I will bring a D-Link router (4 
port plus wireless) as a DHCP server


Re: Networking With Suse and Samba

2007-06-11 Thread Don Gould

Good move

I'll have my xp laptop with me so we can test it out.

Also we can use another Linux machine to test if the smb is doing the 
right thing.


HTH

Cheers Don

Reg wrote:

Roger Searle wrote:

Reg wrote:
  
I tried that command line and it said permission denied, 



  


because you weren't root...

  


Yes that would make sense :-)

Actually I am thinking I could easily come to tonights meeting even if
it is over my head. I understand that if I bring my linux box along
someone might be able to look at it which might be simpler than spending
more days trying to figure out what I have wrong with it.

Reg


--
Don Gould
2/59 Peverel Street, Riccarton, Christchurch, New Zealand
Phone: +64 3 348 7235
www.bowenvale.pointclark.net/funny
www.bowenvale.pointclark.net/benjamin/
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - 
www.bowenvale.co.nz - www.hearingbooks.co.nz - www.crra.org.nz - 
www.justhelicopters.co.nz - www.buxtonsquare.co.nz - 
skype:ThinkDesignPrint?add - Good ideas:  www.solarking.co.nz




Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Roger Searle wrote:
> Reg wrote:
>   
>> I tried that command line and it said permission denied, 
>>
>>
>>   
>> 
> because you weren't root...
>
>   

Yes that would make sense :-)

Actually I am thinking I could easily come to tonights meeting even if
it is over my head. I understand that if I bring my linux box along
someone might be able to look at it which might be simpler than spending
more days trying to figure out what I have wrong with it.

Reg


Re: Networking With Suse and Samba

2007-06-11 Thread Steve Holdoway
there's a command called testparm which will validate the syntax, but I don't 
think that swat is capable of generating that...

On Tue, 12 Jun 2007 15:16:12 +1200
Reg <[EMAIL PROTECTED]> wrote:

> Below is my smb.conf file: If anyone can tell me where my error is I
> would be very thankful.
> Regards Reg
> 
> 
> 
> # Samba config file created using SWAT
> # from 127.0.0.1 (127.0.0.1)
> # Date: 2007/06/12 14:38:27
> 
> [global]
> workgroup = SMITHS
> netbios name = AHLON
> map to guest = Bad User
> printcap name = cups
> add machine script = /usr/sbin/useradd  -c Machine -d
> /var/lib/nobody -s /bin/false %m$
> logon path = \\%L\profiles\.msprofile
> logon drive = P:
> logon home = \\%L\%U\.9xprofile
> os level = 2
> preferred master = No
> local master = No
> domain master = No
> usershare max shares = 100
> idmap uid = 1-2
> idmap gid = 1-2
> hosts allow = 192.168.1.247/255.255.255.0
> cups options = raw
> include = /etc/samba/dhcp.conf
> 
> [homes]
> comment = Home Directories
> valid users = %S, %D%w%S
> read only = No
> inherit acls = Yes
> browseable = No
> 
> [profiles]
> comment = Network Profiles Service
> path = /home/reg/
> create mask = 0600
> directory mask = 0700
> hosts allow = 192.168.1.247
> case sensitive = No
> strict locking = No
> msdfs proxy = no
> 
> [users]
> comment = All users
> path = /home/
> inherit acls = Yes
> veto files = /aquota.user/groups/shares/
> 
> [groups]
> comment = All groups
> path = /home/groups
> read only = No
> inherit acls = Yes
> 
> [printers]
> comment = All Printers
> path = /var/tmp
> create mask = 0600
> printable = Yes
> browseable = No
> 
> [print$]
> comment = Printer Drivers
> path = /var/lib/samba/drivers
> write list = @ntadmin, root
> force group = ntadmin
> create mask = 0664
> directory mask = 0775
> 
> [/home/reg]
> guest ok = Yes
> available = No
> 


Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
Reg wrote:
> I tried that command line and it said permission denied, 
>
>
>   
because you weren't root...


Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
Reg wrote:
> Below is my smb.conf file: If anyone can tell me where my error is I
> would be very thankful.
> Regards Reg
>
>
>
>
> [/home/reg]
> guest ok = Yes
> available = No
>
>   
how about for this section, no more than

[/home/reg]
path = /home/reg

comment out the other lines (put # at beginning) 




Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Don Gould wrote:
>
>
> Reg wrote:
>> [global]
>> workgroup = SMITHS
>
> Is that also the workgroup name on your xp machine?
>
> If it's not, and you don't have a PDC and WINZ server (which you
> don't) then the XP machine could take some time to find the work group
> before it shows up in MyNetworks (or what ever it's called now).
>
> HTH
>
> Cheers Don
yes that workgroup name is the same on all machines

Regard
Reg


Re: Networking With Suse and Samba

2007-06-11 Thread Don Gould

Sams Samba in 24 Hours.

At least that's what I think the best book in the library is called.

I've had it out a couple of times and it really does explain the subject 
very well.


I recommend you get it out and have a read.

Cheers Don

Reg wrote:

Hi all,

I thought I had finally got my network totally setup and working, but
today I find that although I can access both my XP computers shared
files form my Linux one I cant access the Linux one from the XP ones.

I have been through the "How to Samba with Suse instructions more times
than I can remember now and cant find any errors.

I think my main problem is to do with how I have set up shares on my
Linux computer. All I want to do is access my home folder from the XP
computers. Whenever I try it they say no such folder exists, but of
course it does. I can see the computer and the workgroup but only things
like:   Users   Home  & Profiles, which are no use and if I try to get
into them it will even crash the XP computer trying.

Hope all this makes sense to someone as it doesn't fully to me .

Reg


--
Don Gould
2/59 Peverel Street, Riccarton, Christchurch, New Zealand
Phone: +64 3 348 7235
www.bowenvale.pointclark.net/funny
www.bowenvale.pointclark.net/benjamin/
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - 
www.bowenvale.co.nz - www.hearingbooks.co.nz - www.crra.org.nz - 
www.justhelicopters.co.nz - www.buxtonsquare.co.nz - 
skype:ThinkDesignPrint?add - Good ideas:  www.solarking.co.nz




Re: Networking With Suse and Samba

2007-06-11 Thread Don Gould



Reg wrote:

[global]
workgroup = SMITHS


Is that also the workgroup name on your xp machine?

If it's not, and you don't have a PDC and WINZ server (which you don't) 
then the XP machine could take some time to find the work group before 
it shows up in MyNetworks (or what ever it's called now).


HTH

Cheers Don
--
Don Gould
2/59 Peverel Street, Riccarton, Christchurch, New Zealand
Phone: +64 3 348 7235
www.bowenvale.pointclark.net/funny
www.bowenvale.pointclark.net/benjamin/
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - 
www.bowenvale.co.nz - www.hearingbooks.co.nz - www.crra.org.nz - 
www.justhelicopters.co.nz - www.buxtonsquare.co.nz - 
skype:ThinkDesignPrint?add - Good ideas:  www.solarking.co.nz




Re: Networking With Suse and Samba

2007-06-11 Thread Robert Fisher
On Tuesday 12 June 2007 3:16 pm, Reg wrote:
> Below is my smb.conf file: If anyone can tell me where my error is I
> would be very thankful.
> Regards Reg
>

> hosts allow = 192.168.1.247/255.255.255.0

I do not know if what you have is wrong but on my box I have
hosts allow = 192.168.0. 192.168.1. 192.168.10. 192.168.2. 192.168.79. 127. 
10.0.0. 10.1.1.

>
> [/home/reg]
> guest ok = Yes
> available = No

This should be something like..
[share]
path = /path/to/share
guest ok = yes
read only = no




Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Roger Searle wrote:
> Robert Fisher wrote:
>   
>> On Tuesday 12 June 2007 2:17 pm, Reg wrote:
>>
>>   
>> 
 You can also restart samba using SWAT
   
 
>>> How do you do that?
>>>
>>> 
>>>   
>> I do not have SWAT installed but I know that you can restart smbd and nmbd 
>> somewhere.
>>
>> Is it the "Status" tab?
>>
>>   
>> 
> I don't have swat installed here either so if you can't find it yourself
> by looking around for something that refers to "restarting" "server" or
> "samba" then there are the other options.
>
> /etc/init.d/smb restart (at the command line)
>
> In Yast > System > System Services > scroll down and find "smb", click 
> disable, acknowledge the dialog box that tells you "Shutting down Samba SMB 
> daemon", then click enable.
>
> restart your computer (really, that is such a poor way of doing it, but will 
> "work")
>
>
>   
I tried that command line and it said permission denied, but Robert has
since shown me where to restart SAMBA in swat which is what I am using
so thats no problem now. See my next e-mail with smb.conf file to see if
you can spot any errors.

Reg


Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Below is my smb.conf file: If anyone can tell me where my error is I
would be very thankful.
Regards Reg



# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/06/12 14:38:27

[global]
workgroup = SMITHS
netbios name = AHLON
map to guest = Bad User
printcap name = cups
add machine script = /usr/sbin/useradd  -c Machine -d
/var/lib/nobody -s /bin/false %m$
logon path = \\%L\profiles\.msprofile
logon drive = P:
logon home = \\%L\%U\.9xprofile
os level = 2
preferred master = No
local master = No
domain master = No
usershare max shares = 100
idmap uid = 1-2
idmap gid = 1-2
hosts allow = 192.168.1.247/255.255.255.0
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S, %D%w%S
read only = No
inherit acls = Yes
browseable = No

[profiles]
comment = Network Profiles Service
path = /home/reg/
create mask = 0600
directory mask = 0700
hosts allow = 192.168.1.247
case sensitive = No
strict locking = No
msdfs proxy = no

[users]
comment = All users
path = /home/
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[/home/reg]
guest ok = Yes
available = No



Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
Robert Fisher wrote:
> On Tuesday 12 June 2007 2:17 pm, Reg wrote:
>
>   
>>> You can also restart samba using SWAT
>>>   
>> How do you do that?
>>
>> 
> I do not have SWAT installed but I know that you can restart smbd and nmbd 
> somewhere.
>
> Is it the "Status" tab?
>
>   
I don't have swat installed here either so if you can't find it yourself
by looking around for something that refers to "restarting" "server" or
"samba" then there are the other options.

/etc/init.d/smb restart (at the command line)

In Yast > System > System Services > scroll down and find "smb", click disable, 
acknowledge the dialog box that tells you "Shutting down Samba SMB daemon", 
then click enable.

restart your computer (really, that is such a poor way of doing it, but will 
"work")




Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Robert Fisher wrote:
> On Tuesday 12 June 2007 2:17 pm, Reg wrote:
>
>   
>>> You can also restart samba using SWAT
>>>   
>> How do you do that?
>>
>> 
> I do not have SWAT installed but I know that you can restart smbd and nmbd 
> somewhere.
>
> Is it the "Status" tab?
>
>   
there is an auto refresh option in there, is that it ?

reg


Re: Networking With Suse and Samba

2007-06-11 Thread Robert Fisher
On Tuesday 12 June 2007 2:17 pm, Reg wrote:

> > You can also restart samba using SWAT
>
> How do you do that?
>
I do not have SWAT installed but I know that you can restart smbd and nmbd 
somewhere.

Is it the "Status" tab?


Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Robert Fisher wrote:
> On Tuesday 12 June 2007 12:49 pm, Roger Searle wrote:
>
>   
>> Yes, you are on the right track, and you are just about there.   Once
>> you have made changes to your share, you need to restart your samba
>> server by issuing the following at the command line:
>> /etc/init.d/smb restart
>>
>> 
> You can also restart samba using SWAT
>
>   
How do you do that?

I have also tried adding the share using swat , committing changes etc
but the share still doesnt show up on my XP machine.
I must have something wrong somewhere but I just cant find out where.

reg



Re: Networking With Suse and Samba

2007-06-11 Thread Robert Fisher
On Tuesday 12 June 2007 12:49 pm, Roger Searle wrote:

> Yes, you are on the right track, and you are just about there.   Once
> you have made changes to your share, you need to restart your samba
> server by issuing the following at the command line:
> /etc/init.d/smb restart
>
You can also restart samba using SWAT


Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
oh yeah, use root username and password.


Reg wrote:
> Roger Searle wrote:
>   
>> Reg wrote:
>>   
>> 
>>> Steve Holdoway wrote:
>>>   
>>> 
>>>   
 I recommend you install swat, and then manage the configuration using 
 http://localhost:901 on the linux box ( external access is disabled by 
 default ).

 Steve

   
 
   
 
>>> I think I have swat installed, I know I enabled it somewhere along the
>>> line when following the "How To Samba with SUSE " guide
>>>
>>> Reg
>>>
>>>
>>>   
>>> 
>>>   
>> Reg, what happens if you use your browser to go to http://localhost:901
>> ?  This will tell you if you have swat installed. 
>>
>> I am using webmin for the same purpose - for sharing and administering
>> shares with other machines on the network.  If you don't have any
>> success with swat you could install webmin, it is available in Yast -
>> Software > Software Management > search for and install webmin.   You
>> may find this easier if you DON'T currently have swat installed. 
>>
>> Roger
>>
>>   
>> 
> if I activate http://localhost:901 it asks for a user name and password
> I can either put in reg and password and in that case get fewer options
> if I put in root and password I get more options, global etc 
> I take it I must log in as root at that point??
> I can click on share and add a share that way, but doing that eg /home
> /reg dosnt seem to fix things?
> I am on the right track? Swat would seem to be the better to use as the
> "How to Samba with suse guide refers to swat" I dont want to make it any
> more complicated than it is.
>
> reg
>
>
>   


Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
Reg wrote:
> Roger Searle wrote:
>   
>> Reg wrote:
>>   
>> 
>>> Steve Holdoway wrote:
>>>   
>>> 
>>>   
 I recommend you install swat, and then manage the configuration using 
 http://localhost:901 on the linux box ( external access is disabled by 
 default ).

 Steve

   
 
   
 
>>> I think I have swat installed, I know I enabled it somewhere along the
>>> line when following the "How To Samba with SUSE " guide
>>>
>>> Reg
>>>
>>>
>>>   
>>> 
>>>   
>> Reg, what happens if you use your browser to go to http://localhost:901
>> ?  This will tell you if you have swat installed. 
>>
>> I am using webmin for the same purpose - for sharing and administering
>> shares with other machines on the network.  If you don't have any
>> success with swat you could install webmin, it is available in Yast -
>> Software > Software Management > search for and install webmin.   You
>> may find this easier if you DON'T currently have swat installed. 
>>
>> Roger
>>
>>   
>> 
> if I activate http://localhost:901 it asks for a user name and password
> I can either put in reg and password and in that case get fewer options
> if I put in root and password I get more options, global etc 
> I take it I must log in as root at that point??
> I can click on share and add a share that way, but doing that eg /home
> /reg dosnt seem to fix things?
> I am on the right track? Swat would seem to be the better to use as the
> "How to Samba with suse guide refers to swat" I dont want to make it any
> more complicated than it is.
>
> reg
>
>   
Yes, you are on the right track, and you are just about there.   Once
you have made changes to your share, you need to restart your samba
server by issuing the following at the command line:
/etc/init.d/smb restart

You should also check to see that the firewall

Yast > Network Services > Samba Server > Start-up tab - check that "Open
port in firewall" is selected. 

Then have another go at accessing the share from your XP machine.

Roger


Re: Networking With Suse and Samba

2007-06-11 Thread Reg
Roger Searle wrote:
> Reg wrote:
>   
>> Steve Holdoway wrote:
>>   
>> 
>>> I recommend you install swat, and then manage the configuration using 
>>> http://localhost:901 on the linux box ( external access is disabled by 
>>> default ).
>>>
>>> Steve
>>>
>>>   
>>> 
>>>   
>> I think I have swat installed, I know I enabled it somewhere along the
>> line when following the "How To Samba with SUSE " guide
>>
>> Reg
>>
>>
>>   
>> 
> Reg, what happens if you use your browser to go to http://localhost:901
> ?  This will tell you if you have swat installed. 
>
> I am using webmin for the same purpose - for sharing and administering
> shares with other machines on the network.  If you don't have any
> success with swat you could install webmin, it is available in Yast -
> Software > Software Management > search for and install webmin.   You
> may find this easier if you DON'T currently have swat installed. 
>
> Roger
>
>   
if I activate http://localhost:901 it asks for a user name and password
I can either put in reg and password and in that case get fewer options
if I put in root and password I get more options, global etc 
I take it I must log in as root at that point??
I can click on share and add a share that way, but doing that eg /home
/reg dosnt seem to fix things?
I am on the right track? Swat would seem to be the better to use as the
"How to Samba with suse guide refers to swat" I dont want to make it any
more complicated than it is.

reg


Re: Networking With Suse and Samba

2007-06-11 Thread Roger Searle
Reg wrote:
> Steve Holdoway wrote:
>   
>> I recommend you install swat, and then manage the configuration using 
>> http://localhost:901 on the linux box ( external access is disabled by 
>> default ).
>>
>> Steve
>>
>>   
>> 
> I think I have swat installed, I know I enabled it somewhere along the
> line when following the "How To Samba with SUSE " guide
>
> Reg
>
>
>   
Reg, what happens if you use your browser to go to http://localhost:901
?  This will tell you if you have swat installed. 

I am using webmin for the same purpose - for sharing and administering
shares with other machines on the network.  If you don't have any
success with swat you could install webmin, it is available in Yast -
Software > Software Management > search for and install webmin.   You
may find this easier if you DON'T currently have swat installed. 

Roger


Re: Networking With Suse and Samba

2007-06-10 Thread Reg
Steve Holdoway wrote:
> On Mon, 11 Jun 2007 18:26:35 +1200
> Reg <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi all,
>>
>> I thought I had finally got my network totally setup and working, but
>> today I find that although I can access both my XP computers shared
>> files form my Linux one I cant access the Linux one from the XP ones.
>>
>> I have been through the "How to Samba with Suse instructions more times
>> than I can remember now and cant find any errors.
>>
>> I think my main problem is to do with how I have set up shares on my
>> Linux computer. All I want to do is access my home folder from the XP
>> computers. Whenever I try it they say no such folder exists, but of
>> course it does. I can see the computer and the workgroup but only things
>> like:   Users   Home  & Profiles, which are no use and if I try to get
>> into them it will even crash the XP computer trying.
>>
>> Hope all this makes sense to someone as it doesn't fully to me .
>>
>> Reg
>> 
> Reg,
>
> I recommend you install swat, and then manage the configuration using 
> http://localhost:901 on the linux box ( external access is disabled by 
> default ).
>
> Steve
>
>   
I think I have swat installed, I know I enabled it somewhere along the
line when following the "How To Samba with SUSE " guide

Reg


Re: Networking With Suse and Samba

2007-06-10 Thread Steve Holdoway
On Mon, 11 Jun 2007 18:26:35 +1200
Reg <[EMAIL PROTECTED]> wrote:

> Hi all,
> 
> I thought I had finally got my network totally setup and working, but
> today I find that although I can access both my XP computers shared
> files form my Linux one I cant access the Linux one from the XP ones.
> 
> I have been through the "How to Samba with Suse instructions more times
> than I can remember now and cant find any errors.
> 
> I think my main problem is to do with how I have set up shares on my
> Linux computer. All I want to do is access my home folder from the XP
> computers. Whenever I try it they say no such folder exists, but of
> course it does. I can see the computer and the workgroup but only things
> like:   Users   Home  & Profiles, which are no use and if I try to get
> into them it will even crash the XP computer trying.
> 
> Hope all this makes sense to someone as it doesn't fully to me .
> 
> Reg
Reg,

I recommend you install swat, and then manage the configuration using 
http://localhost:901 on the linux box ( external access is disabled by default 
).

Steve


Networking With Suse and Samba

2007-06-10 Thread Reg
Hi all,

I thought I had finally got my network totally setup and working, but
today I find that although I can access both my XP computers shared
files form my Linux one I cant access the Linux one from the XP ones.

I have been through the "How to Samba with Suse instructions more times
than I can remember now and cant find any errors.

I think my main problem is to do with how I have set up shares on my
Linux computer. All I want to do is access my home folder from the XP
computers. Whenever I try it they say no such folder exists, but of
course it does. I can see the computer and the workgroup but only things
like:   Users   Home  & Profiles, which are no use and if I try to get
into them it will even crash the XP computer trying.

Hope all this makes sense to someone as it doesn't fully to me .

Reg


RE: networking browsing icon malformed url

2006-12-23 Thread Reg


> -Original Message-
> From: Roger Searle [mailto:[EMAIL PROTECTED]
> Sent: Saturday, 23 December 2006 4:32 p.m.
> To: linux-users@it.canterbury.ac.nz
> Subject: Re: networking browsing icon malformed url
> is the firewall on one of the suse boxes stopping the xp machine from
> seeing the shared folders, perhaps?  temporarily turn the firewall off
> and see if you can then connect.  yast > security and users > firewall.
> click the "stop firewall now" button and try to connect.  you should
> turn it back on right away after testing, if this test allows a
> connection then some configuring of the firewall is needed.
> 
> Cheers,
> Roger

Thanks for suggestion I will try that

Regards & Merry Christmas 

Reg



Re: networking browsing icon malformed url

2006-12-22 Thread Roger Searle

>> reg <[EMAIL PROTECTED]> wrote:
>>
>> 
>>>  The main point of this exercise is to actually get my xp
>>> computer to see my home directory on both suse computers. Only one can
>>> do that at this point and I have spent half of yesterday and half of
>>> today trying to figure out why. I am really starting to get discouraged
>>> with it. I can make two xp computers share files within a few minutes.
>>> Yet such a simple thing as xp to linux is almost beyond me.
>>>
>>> reg
>>>
>>>
>>>   
>> Well, samba will allow you to publish folders same as XP can. So the same
>> questions apply, like are you in the same workgroup/domain, same subnet,
>> etc, etc, etc...
>>
>> D*mn site easier than fighting with AD, then waiting 12 minutes and it
>> automagically works at last!
>>
>> Steve.
>>
>> 
>
> One thing to remember is that the samba password database is maintained
> separately to the linux password database that you log on with.
>
> I usually add samba users manually with:
>
> (as root) smbpasswd -a nick
>
> it then prompts for the password, which may or may not be the same as your
> normal login password.
>
> Maybe some distros automate this stuff, I'm not sure.
>
>   
is the firewall on one of the suse boxes stopping the xp machine from
seeing the shared folders, perhaps?  temporarily turn the firewall off
and see if you can then connect.  yast > security and users > firewall. 
click the "stop firewall now" button and try to connect.  you should
turn it back on right away after testing, if this test allows a
connection then some configuring of the firewall is needed.

Cheers,
Roger



Re: networking browsing icon malformed url

2006-12-21 Thread nick
> On Fri, 22 Dec 2006 11:40:47 +1300
> reg <[EMAIL PROTECTED]> wrote:
>
>>  The main point of this exercise is to actually get my xp
>> computer to see my home directory on both suse computers. Only one can
>> do that at this point and I have spent half of yesterday and half of
>> today trying to figure out why. I am really starting to get discouraged
>> with it. I can make two xp computers share files within a few minutes.
>> Yet such a simple thing as xp to linux is almost beyond me.
>>
>> reg
>>
>>
> Well, samba will allow you to publish folders same as XP can. So the same
> questions apply, like are you in the same workgroup/domain, same subnet,
> etc, etc, etc...
>
> D*mn site easier than fighting with AD, then waiting 12 minutes and it
> automagically works at last!
>
> Steve.
>

One thing to remember is that the samba password database is maintained
separately to the linux password database that you log on with.

I usually add samba users manually with:

(as root) smbpasswd -a nick

it then prompts for the password, which may or may not be the same as your
normal login password.

Maybe some distros automate this stuff, I'm not sure.

>




Re: networking browsing icon malformed url

2006-12-21 Thread reg
Robert Fisher wrote:
> On Friday 22 December 2006 11:40 am, reg wrote:
> I can make two xp computers share files within a few minutes.
>   
>> Yet such a simple thing as xp to linux is almost beyond me.
>>
>> reg
>> 
>
> Honestly, how long did it take you how to learn to share on Windows.
> It does not take long to learn to do it with Linux either (and there are 
> several ways to do it)
>
> If you use KDE and Samba is enabled it is as simple as right clicking on the 
> folder you want to share and follow your nose from there.
>
>   
I first learned in w4wg's 3.11 and it took me just a few minutes to
learn, 98 SE made it real simple and xp was made so monkeys could do it
:-) but actually making the change from 98 to xp in general was harder
for me in some ways as I was so used to 98 I only changed to xp last
year. And this year I started on Linux. I ain't knocking Linux I love
it. I have two computers dual booting it, and one with it under VM
player. Just getting a bit frustrated with the fact my networking wont
fully work. Anyway samba is all good  in theorey and works like a charm
for one computer but not the next, I have been through all the setup
phases of both and compared them many times and still cant find why the
heck it wont work fully. On the xp computer it shows the path to my home
here on this one like //intel/reg yet it keeps saying I cant access it
maybe I don't have access or some stupid message. 

But I will look at the links the other people have put up and keep at it.

reg




Re: networking browsing icon malformed url

2006-12-21 Thread Robert Fisher
On Friday 22 December 2006 11:40 am, reg wrote:
I can make two xp computers share files within a few minutes.
> Yet such a simple thing as xp to linux is almost beyond me.
>
> reg

Honestly, how long did it take you how to learn to share on Windows.
It does not take long to learn to do it with Linux either (and there are 
several ways to do it)

If you use KDE and Samba is enabled it is as simple as right clicking on the 
folder you want to share and follow your nose from there.

-- 
Regards, Robert

--
Robert Fisher
(aka - Rob, Bob, Robbie, Robbo, Fish)
FishNet Computer Services
www.fisher.net.nz
Phone:  03 383 5807
Mobile: 027 477 3356


Re: networking browsing icon malformed url

2006-12-21 Thread Christopher Sawtell
On Friday 22 December 2006 11:40, reg wrote:
> [EMAIL PROTECTED] wrote:
> >> reg wrote:
> >>> Nick Rout wrote:
>  On Fri, 22 Dec 2006 08:02:02 +1300
>  reg <[EMAIL PROTECTED]> wrote:
>  Is this the button that starts konqueror?
> 
>  If so the command to associate it with is:
> 
>  kfmclient openProfile webbrowsing
> >>>
> >>> yes it must have been, as soon as I entered that command in the
> >>> box it stopped saying malformed url and started opening the
> >>> correct  window.
> >>>
> >>> many thanks to you both
> >>>
> >>> reg
> >>
> >> ah well still not quite right, although that command improved it,
> >> it's still not quite right, its the button on desktop that said:
> >> "browse network" but now I have gone and deleted that button and
> >> also need to get that back too with the correct association.
> >>
> >> reg
> >
> > Stop playing!
> >
> > That button should also be available somewhere under the K menu, I
> > think its a right click and drag-drop to copy it to the desktop.
>
> Playing is how I learn, I break it and then fix it and understand it
> :-) But actually I never broke that one on purpose. I dont know how
> it got that way, all I know it is a right pain in the butt not
> working how it should.  The main point of this exercise is to
> actually get my xp computer to see my home directory on both suse
> computers. Only one can do that at this point and I have spent half
> of yesterday and half of today trying to figure out why. I am really
> starting to get discouraged with it. I can make two xp computers
> share files within a few minutes. Yet such a simple thing as xp to
> linux is almost beyond me.
Use 'swat' or the redhat tool to set up samba, if you do not wish to 
edit samba's config file(s) in an editor. Take care to back-up the live 
samba config because swat gratuitously removes all the comments and 
default settings from the config file.

www.samba.org/samba/docs/ man/Samba-HOWTO-Collection/SWAT.html

Also

http://fedora.redhat.com/projects/config-tools/redhat-config-samba.html

--
CS


Re: networking browsing icon malformed url

2006-12-21 Thread Steve Holdoway
On Fri, 22 Dec 2006 11:40:47 +1300
reg <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] wrote:
> >> reg wrote:
> >> 
> >>> Nick Rout wrote:
> >>>
> >>>   
>  On Fri, 22 Dec 2006 08:02:02 +1300
>  reg <[EMAIL PROTECTED]> wrote:
>  Is this the button that starts konqueror?
> 
>  If so the command to associate it with is:
> 
>  kfmclient openProfile webbrowsing
> 
>  
> >>> yes it must have been, as soon as I entered that command in the box it
> >>> stopped saying malformed url and started opening the correct  window.
> >>>
> >>> many thanks to you both
> >>>
> >>> reg
> >>>
> >>>
> >>>
> >>>   
> >> ah well still not quite right, although that command improved it, it's
> >> still not quite right, its the button on desktop that said: "browse
> >> network" but now I have gone and deleted that button and also need to
> >> get that back too with the correct association.
> >>
> >> reg
> >>
> >>
> >> 
> >
> > Stop playing!
> >
> > That button should also be available somewhere under the K menu, I think
> > its a right click and drag-drop to copy it to the desktop.
> Playing is how I learn, I break it and then fix it and understand it :-)
> But actually I never broke that one on purpose. I dont know how it got
> that way, all I know it is a right pain in the butt not working how it
> should.  The main point of this exercise is to actually get my xp
> computer to see my home directory on both suse computers. Only one can
> do that at this point and I have spent half of yesterday and half of
> today trying to figure out why. I am really starting to get discouraged
> with it. I can make two xp computers share files within a few minutes.
> Yet such a simple thing as xp to linux is almost beyond me.
> 
> reg
> 
> 
Well, samba will allow you to publish folders same as XP can. So the same 
questions apply, like are you in the same workgroup/domain, same subnet, etc, 
etc, etc...

D*mn site easier than fighting with AD, then waiting 12 minutes and it 
automagically works at last!

Steve.


Re: networking browsing icon malformed url

2006-12-21 Thread reg
[EMAIL PROTECTED] wrote:
>> reg wrote:
>> 
>>> Nick Rout wrote:
>>>
>>>   
 On Fri, 22 Dec 2006 08:02:02 +1300
 reg <[EMAIL PROTECTED]> wrote:
 Is this the button that starts konqueror?

 If so the command to associate it with is:

 kfmclient openProfile webbrowsing

 
>>> yes it must have been, as soon as I entered that command in the box it
>>> stopped saying malformed url and started opening the correct  window.
>>>
>>> many thanks to you both
>>>
>>> reg
>>>
>>>
>>>
>>>   
>> ah well still not quite right, although that command improved it, it's
>> still not quite right, its the button on desktop that said: "browse
>> network" but now I have gone and deleted that button and also need to
>> get that back too with the correct association.
>>
>> reg
>>
>>
>> 
>
> Stop playing!
>
> That button should also be available somewhere under the K menu, I think
> its a right click and drag-drop to copy it to the desktop.
Playing is how I learn, I break it and then fix it and understand it :-)
But actually I never broke that one on purpose. I dont know how it got
that way, all I know it is a right pain in the butt not working how it
should.  The main point of this exercise is to actually get my xp
computer to see my home directory on both suse computers. Only one can
do that at this point and I have spent half of yesterday and half of
today trying to figure out why. I am really starting to get discouraged
with it. I can make two xp computers share files within a few minutes.
Yet such a simple thing as xp to linux is almost beyond me.

reg




Re: networking browsing icon malformed url

2006-12-21 Thread nick
> reg wrote:
>> Nick Rout wrote:
>>
>>> On Fri, 22 Dec 2006 08:02:02 +1300
>>> reg <[EMAIL PROTECTED]> wrote:
>>> Is this the button that starts konqueror?
>>>
>>> If so the command to associate it with is:
>>>
>>> kfmclient openProfile webbrowsing
>>>
>> yes it must have been, as soon as I entered that command in the box it
>> stopped saying malformed url and started opening the correct  window.
>>
>> many thanks to you both
>>
>> reg
>>
>>
>>
> ah well still not quite right, although that command improved it, it's
> still not quite right, its the button on desktop that said: "browse
> network" but now I have gone and deleted that button and also need to
> get that back too with the correct association.
>
> reg
>
>

Stop playing!

That button should also be available somewhere under the K menu, I think
its a right click and drag-drop to copy it to the desktop.





Re: networking browsing icon malformed url

2006-12-21 Thread reg
reg wrote:
> Nick Rout wrote:
>   
>> On Fri, 22 Dec 2006 08:02:02 +1300
>> reg <[EMAIL PROTECTED]> wrote:
>> Is this the button that starts konqueror?
>>
>> If so the command to associate it with is:
>>
>> kfmclient openProfile webbrowsing
>> 
> yes it must have been, as soon as I entered that command in the box it
> stopped saying malformed url and started opening the correct  window.
>
> many thanks to you both
>
> reg
>
>
>   
ah well still not quite right, although that command improved it, it's
still not quite right, its the button on desktop that said: "browse
network" but now I have gone and deleted that button and also need to
get that back too with the correct association.

reg


  1   2   3   >