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: Can someone tell me why...

2009-08-23 Thread Rex Johnston

On Mon, 24 Aug 2009, Kerry Mayes wrote:


As a gnome user, I just use "exaile".  Probably doesn't meet Rex'
exacting demands but it plays all the formats I want and includes


My exacting standards are

1) doesn't crash, or if it only infrequently does, reloads its playlist 
near where it was.

2) Proper jack output (no new jack source at the end of each song).

That's it, qjackctl and jack-rack take care of the rest (they too are 
unreliable, qjackctl moreso).


Cheers, Rex


Re: Can someone tell me why...

2009-08-23 Thread Nick Rout
On Mon, Aug 24, 2009 at 4:50 PM, Craig
Falconer wrote:
> Kerry Mayes wrote, On 24/08/09 16:46:
>>
>> As a gnome user, I just use "exaile".  Probably doesn't meet Rex'
>> exacting demands but it plays all the formats I want and includes
>> replaygain so that I'm not constantly adjusting the volume.
>
> As a console hoe I run
>
> mpg123 --random --gapless --smooth --control --title /mnt/shared/mp3/*
>
> Works for me.

I bought a squeezebox boom and run it against squeezecenter. Best
thing i ever bought, even better after adding a cheap powered
subwoofer.


Re: Can someone tell me why...

2009-08-23 Thread Craig Falconer

Kerry Mayes wrote, On 24/08/09 16:46:

As a gnome user, I just use "exaile".  Probably doesn't meet Rex'
exacting demands but it plays all the formats I want and includes
replaygain so that I'm not constantly adjusting the volume.


As a console hoe I run

mpg123 --random --gapless --smooth --control --title /mnt/shared/mp3/*

Works for me.

--
Craig Falconer



Re: Can someone tell me why...

2009-08-23 Thread John Carter

On Mon, 24 Aug 2009, Kerry Mayes wrote:


As a gnome user, I just use "exaile".  Probably doesn't meet Rex'
exacting demands but it plays all the formats I want and includes
replaygain so that I'm not constantly adjusting the volume.


Yip, exaile is what I'm currently using.



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : john.car...@tait.co.nz
New Zealand



Re: Can someone tell me why...

2009-08-23 Thread Kerry Mayes
As a gnome user, I just use "exaile".  Probably doesn't meet Rex'
exacting demands but it plays all the formats I want and includes
replaygain so that I'm not constantly adjusting the volume.


Re: Alpining

2009-08-23 Thread John Carter

On Sun, 23 Aug 2009, Aidan Gauland wrote:

My sticking point is... setting it up.  In mail readers I have used up until 
now, there are separate fields in the configuration dialogs for each 
parameter for the mail servers.  In Alpine, it's all one field for both the 
"inbox" and the SMTP server, and I don't know how it's supposed to be 
formatted.  Last time I tried to use Alpine, I copied something from the web, 
but it had no explanation, so I don't know what exactly I was telling Alpine 
(and my mail server).  I think part of it said to accept invalid SSL 
certificates, which I definitely don't want.


Hokay... there are several things that get into the act of futzy
around with mail.

Question 1 is are you going to try act as a smarthost for yourself and
a bunch of other boxes?

At one time the answer was, duh, yes, I'm running Linux the truly
smart Ruler of the mail universe, so of course

But then spamalanche buried us so now there seems to be a de facto
unmentioned rule that only mail relayed via your ISP's smarthost will
reliably be transmitted to the destination.

I haven't quite worked out what drops it, whether it's whitelists or
port filters or what. I've given up, I always configure it to use my
upstream / ISP's smarthost.

There are two places to configure that, one is when you install
sendmail or exim or whatever your distro installs by default, and the
other in the Alpine config..

Personal Name   = John Carter
User Domain = example.co.nz
SMTP Server (for sending)   = mailhost.example.co.nz
NNTP Server (for news)  = newshost.example.co.nz
Inbox Path  = /home/johnc/mail/inbox


Note that I have configured an inbox. (The default is
/var/spool/mail/johnc or something)

So alpine is assuming something somehow is coughing up your mail into
that file. Who or what is _not_ it's department.

In the Good Old Days, you'd have your own static ip address and ip
name and MX records in the DNS and mail would wend it's way directly
to sendmail running on your box which would spit it into your inbox.

Caution: Much Strong Language Blee$#$#ped out!!

Then the greedy ^%^%#! dirty @%#%! filthy @^%^# money @%$## grubbing
@^%$%$#! swine that are the global ISP's decided they can create an
artificial scarcity of IP names and addresses and charge a @$^%$#!
fortune for them.

So because the ^%#^! bean counters have ^%##!! broken the
internet... instead of it been delivered on arrival, you have to
"fetch"/poll for your mail from a POP3 or IMAP server. (Hmmph! And
they claim they have to "charge" for an ipname because of the traffic
load on their DNS... @$##)

I use the "fetchmail" package to do that, because it feeds very nicely
into the "procmail" package to sort my mail through spamprobe to
filter out the crud, and then into folders...

Everything that isn't sorted into anywhen else lands in my inbox.

This allows me to subscribe to a bunch of interesting discussion
groups (such as this).

==.fetchmailrc
set daemon 600
set logfile /home/johnc/log/fetchmail.log
poll mailhost.tait.co.nz with proto imap:
   user "UUU" there has password "X"
   is johnc here
   mda "/usr/bin/procmail -d %T"
==

==.procmailrc=
PATH=/usr/local/bin:/usr/bin:/bin

LOGFILE=$HOME/log/procmail   #recommended
MAILDIR=$HOME/mail
DEFAULT=$MAILDIR/inbox

:0 c
before-spamprobe

:0
SCORE=| /usr/bin/spamprobe train
:0 wf
| formail -I "X-SpamProbe: $SCORE"
:0 a:
*^X-SpamProbe: SPAM
SpamIAm

:0:
* ^TO_(linux-users@(it\.)?canterbury\.ac\.nz|canty...@yahoogroups\.com)
IN-cantlug

:0:
* ^TO_(gcc-help|help-gcc)@((gcc\.)?gnu\.org|prep\.ai\.mit\.edu)
IN-gcc-help

:0:
* ^TO_extremeprogramming@(yahoo|e)groups\.com
IN-xp

:0:
* ^to_ruby-t...@ruby-lang\.org
IN-ruby

:0:
* ^TO_concatenative@(yahoo|e)groups\.com
IN-stack

==

(Plus lots of other filters)



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : john.car...@tait.co.nz
New Zealand



Re: Can someone tell me why...

2009-08-23 Thread John Carter

On Sat, 22 Aug 2009, Rex Johnston wrote:

xmms went away and it's replacement, audacious, sux soo much it isn't funny. 
xmms2 is a music server, and nothing like xmms.


I wondered too

http://www.freesoftwaremagazine.com/columns/from_xmms_to_audacious

One Line summary: xmms imploded under the maintenance weight of it's
huge catalogue of plugins.



John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : john.car...@tait.co.nz
New Zealand



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: Motherboard will only boot from CD/DVD drive

2009-08-23 Thread chris
Do you have another disk with system files on it that you can use as a
boot disk?

On Sun, 2009-08-23 at 02:51 -0400, Ryan McCoskrie wrote:
> On 22/08/2009, Col  wrote:
> > Ryan McCoskrie wrote:
> >> For the last couple of months I have had both a SATA disk and an IDE disk
> >> working.
> >> The two things that I did last night that were a little unusual are
> >> downloading a more recent kernel and using ktorrent.
> >> Aside from my boot partition on the SATA disk I'm using ext4.
> >>
> >
> > A while back my system stopped booting after a kernel upgrade ( at
> > around 2.6.25ish ). I was also using a mixture of sata & pata drives. It
> > turned out that the new kernel would detect the drives in the opposite
> > order ( ie: sda was now sdb ) while grub detected then as it always had.
> >
> > I did a work around by editing grub.conf and fstab to match.
> > Now I only have sata drives.
> 
> The problem is that it isn't getting as far as the boot loader.
> I have tried the suggested edit but it hasn't done anything.