Re: [gentoo-user] Postfix and no worthy mechs found

2005-11-30 Thread James Hiscock
 warning: SASL authentication failure: No worthy mechs found
 Authentication failed: cannot SASL authenticate to server
 smtp.sbcglobal.yahoo.com[68.142.229.41]: no mechanism available

This seems to imply that the problem's with SASL, and not postfix.

 I've edited main.cf and added the following:

 smtp_sasl_auth_enable = yes
 smtp_sasl_password_maps = hash:/etc/postfix/saslpass
 smtp_sasl_mechanism_filter = plain, login
 smtp_sasl_security_options =

 I've updated my password file saslpass to contain :
 [smtp.sbcglobal.yahoo.com] login:password

 and ran postmap hash:/etc/postfix/saslpass

 And I've run postfix reload... Oh, I also crossed my fingers that didn't
 seem to help either :-)

That all looks correct to me...

 Is SASL able to log into an smtp server like outlook does to send email?

Yes, and you're headed in the right direction.

  Or is there another solution I need to pursue?

Nope - but I'd be looking at SASL at this point... I seem to recall it
being a pain in the arse to set this up, though... but it's been at
least a year since I've looked at it.

 Thank you for your help

shrug Dunno if _I_ was much help, but maybe someone else'll chime
in, too - they usually do. ;)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] courier problems

2005-11-23 Thread James Hiscock
 ive been trying to setup a mail server following the how-to at
 http://gentoo-wiki.com/HOWTO_Linux_Virtual_Hosting_Server#Virtual_Mail_Hosting
 and everything seems to have been setup correctly, but i keep getting these
 errors and cant login

I know I had to reduce the set of authentication modules in
/etc/courier/authlib/authdaemonrc to get my install of courier-imap to
let me login properly... I changed

authmodulelist=authuserdb authpam authshadow authldap authmysql
authcustom authpipe

to just

authmodulelist=authpam authshadow

...and that resolved my problems. I seem to recall errors about
invalid MySQL configuration, though, which is what twigged me to the
problem... maybe your issue is somewhat similar?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-11-02 Thread James Hiscock
 I've just tried to use moto4lin with a Motorola Razr. It starts as with
 yours, but when I click Switch to P2K, /dev/ttyACM0 disappears! nothing
 works after that until I disconnect and reconnect the phone, at which
 point I am back in AT mode and it all starts again.

That's what was happening for me for several hours until it magically
started working... I honestly don't know what the heck changed. But
once it decided to work, it works consistently.

There's a note in the moto4lin wiki specifically for Razr phones
(http://moto4lin.sourceforge.net/wiki/Razr_V3) that says that it's
inconsistent, and you may need to run

echo AT+MODE=8  /dev/ttyACM0

When I was doing that last night on my laptop, the first time would
work, and the second time it removed the device... I honestly don't
know what the heck is going on with this program, but it _is_ a pretty
early release... shrug

There isn't much info for the C380 in the wiki, other than the
settings that should be used (which are the defaults)...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-11-02 Thread James Hiscock
 Thanks for going to all the trouble of testing out the phone
 operation on your SuSE machine. I havn't had any breakthrough
 yet, but your help has given me the confidence to persevere..

No problem -- I'm a software tester in Real Life (tm), so stuff like
this bugs the crap out of me. I have a tendency to get a hold of a
problem, and beat it into the ground sometimes, and this is one of
those things that drives me absolutely crazy: inconsistent behaviour
of software is _extremely_ annoying and frustrating - especially when
_I'm_ the one with the works for me response, but I can't figure out
what I did (if anything) to solve the problem. sigh

Anyway... I'm not convinced that the problem's in the kernel. If it
was, then anybody with the same kernel would run into the same
problem(s)...

...and, following that logic, I started digging through the code for
moto4lin, trying to see if there was anything spectacularly obvious
that _might_ be causing the behaviour we're seeing. In so doing, I
_think_ I _might_ have found a typo in moto_ui/p2kproc.cpp, on line
729... here's the function where that line appears:

snip

// Connect to phone.
int P2kProc::drv_connect()
{
FUNC(drv_connect);
int ph=drv_findPhone();
if (ph==PHONE_NONE) RAISE(no phone)
if (ph==PHONE_AT) drv_switchP2K();

int t;
t=time(NULL);

while ((time(NULL)-t5)  (ph!=PHONE_P2K))
{
usb_find_devices();
ph=drv_findPhone();
usleep(1);
}
if (ph!=PHONE_P2K) return(-1);
return(drv_openPhone());
}
/snip

What's got me thinking there's a typo are the following two lines:

if (ph==PHONE_NONE) RAISE(no phone)
if (ph==PHONE_AT) drv_switchP2K();

This looks to me like if there's no phone, an error is spit out (to
the terminal, if you started moto4lin from there), then it checks to
see if the phone's in AT mode, and then it tries to switch it to P2K
mode. The problem here is that the switch to P2K will never be
reached, because there's a missing semi-colon at the end of the first
line, which means that if there's no phone _and_ it's in AT mode, then
it'll do the switch... which makes little to no sense to me, if I'm
reading this correctly...

...it might be worth trying out, though, to see if adding a semi-colon
here would help, so that it looks like this instead:

if (ph==PHONE_NONE) RAISE(no phone);
if (ph==PHONE_AT) drv_switchP2K();

I checked out the current CVS version, using the instructions on the
moto4lin website, and it looks as though this entire function's been
rewritten (and moved to line 857-ish), and would work the way I'm
thinking it should: if it doesn't find a phone, it prints an error;
then it checks to see if it's an AT phone, and switches to P2K mode if
it is...

...but - as I said before - I'm a software tester, not a developer...
so it's entirely possible that I'm just jumping at shadows... shrug

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-11-01 Thread James Hiscock
 ...I keep thinking that I've forgotten about something that I did in
 moto4lin to get it to work, but I can't for the life of me remember
 what that was... maybe I'll try installing it on my laptop, and see if
 I can reproduce what I did on my desktop once I get home from work
 this evening...

So... I got home from work, and started poking around at this on my
laptop. I'm running SuSE 10 on it, not Gentoo, but I figured it'd work
pretty much the same - most of the software on it is pretty close to
the same as my desktop...

I downloaded the source from the moto4lin site, unpacked it, and
compiled it. For two hours, I tried to get moto4lin to connect to my
phone, with no luck whatsoever. Finally, not five minutes ago, it
suddenly decided to work.

What it looks like is that the AT Product ID is one off of the P2K
Product ID - the moto4lin website suggests that this is usually the
case. For my phone, the values are as follows (these go into the
Preferences dialog):
AT Vendor ID: 22b8
AT Product ID: 4902
P2K Vendor ID: 22b8
P2K Product ID: 4901

Looking at the moto4lin wiki, your phone apparently uses the exact same values.

When my phone's initially plugged in, the USB View list shows it as
22b8:4902. If I click the Switch to P2K button, I see a message in
the main window that says that my phone's unplugged. If I update the
USB View again, the phone shows up as 22b8:4901. If I click the
Switch to P2K button yet _again_, I see [info] Phone pluged as P2K
(the typo's in the program shrug) -- this is the magic message. ;)

At this point, I can actually use moto4lin properly... don't ask me
why this works, but it does. shrug

Maybe something in there'll help ya out...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-28 Thread James Hiscock
 As I am going from 2.6.10-gentoo-r6 to 2.6.12-gentoo-r10, which is more
 than just a revision change, it would seen that 'make oldconfig' is not
 recomended.

Recommendations are just that: recommendations. You can take them or
leave them. :)

And I have to agree with Holly on this one: it's a good starting
point, and it does make it easier. If you're at all worried about it,
though, follow the guide's recommendation.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-27 Thread James Hiscock
 Looks like the main clues are the error messages produced when I plug in:
  usb 1-1: new full speed USB device using uhci_hcd and address 8
  usb 1-1: device descriptor read/64, error -71
  usb 1-1: device descriptor read/64, error -71
  usb 1-1: new full speed USB device using uhci_hcd and address 9
  usb 1-1: device descriptor read/64, error -71
  cdc_acm 1-1:1.0: ttyACM0: USB ACM device

Yup - I'd buy that assessment.

 and the fact that you get a /dev/ttyACM0 and I get a /dev/usb/acm/0.
 I wonder if that indicates a slight USB driver change between our
 two kernels?

The device file difference might just be from me running
sys-fs/udev-070-r1... not sure, though.

 I assume the two addresses I get on connect reflect the fact that my
 phone has two interfaces defined - one comm. with a single endpoint, and
 one data with 2 endpoints. Yours seems to have two configurations
 whereas mine has Cfg#=1

You lost me there, but that's ok -- I think I know what you're talking about

 Errno 71 corresponds to protocol error which doesn't sound good.

No, that it doesn't.

 What does your /proc/bus/usb/devices entry show for the phone?

Here you go -- hope it makes more sense to you, than it does to me. ;)

T:  Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  2
P:  Vendor=22b8 ProdID=4902 Rev= 0.01
S:  Manufacturer=Motorola Inc.
S:  Product=Motorola Phone (V3)
C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms
C:  #Ifs= 2 Cfg#= 2 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=
E:  Ad=89(I) Atr=03(Int.) MxPS=  16 Ivl=10ms
I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E:  Ad=01(O) Atr=02(Bulk) MxPS=  32 Ivl=0ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  32 Ivl=0ms

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Kernel updates

2005-10-27 Thread James Hiscock
 I gather one cannot just copy the .config file for this much of a jump,
 so I guess the best thing to do is a simultaneous 'make menuconfig' in both
 old and new kernel using two different windows so that I can be sure
 to copy each of the current settings across.

Easier solution: copy the .config, and then run make oldconfig --
it'll prompt you for any changes made in the new kernel, and dump any
invalid options...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-26 Thread James Hiscock
On 10/23/05, Digby Tarvin [EMAIL PROTECTED] wrote:
 Looking for anyone that can offer advice on connecting a Motorola C380
 mobile phone to my gentoo Linux system via the USB interface.

I'd suggest trying moto4lin -- it's pretty slick. Not too sure about
the error messages you're getting, though, so I'm not sure how much
help moto4lin'll actually be... shrug

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB interface

2005-10-26 Thread James Hiscock
 Anyone know if the missing file is supposed to exist, or is this a
 relic from an earlier instance of the USB driver software?

It's actually one of the USB modules in the kernel that produces it...
Device Drivers - USB Support - USB Modem (CDC ACM) Support

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-26 Thread James Hiscock
 Do you have it working?

Yes.

 And if so, which kernel are you using?

gentoo-sources-2.6.13-r3 (or some other -r? value - can't recall offhand)

 Is it a Kernel V2.6 thing, or is there some configuration that I need
 to do?

As I said in my reply to your other post, make sure you have USB Modem
support in the kernel compiled as a module, and pay attention to dmesg
when you plug your phone in -- it'll give you the right device path...
just slap that into the configuration for moto4lin, and it should
work...

(I suspect I also had to change the permissions/ownership of the /dev
entry for the USB Modem driver, but that was pretty straight-forward:
since I'm working on a single-user system, I did the horribly insecure
thing and just chmod 777'd the dev entry... ;)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB mobile phone connection..

2005-10-26 Thread James Hiscock
 That is encouraging. Which model phone to you have it working
 with?

Razr V3 - it's a pretty sweet phone. ;)

 You were right - my initail problem was having omitted the cdc_acm
 driver from my kernel config.

Excellent. I like it when I'm right - it happens so infrequently... :)

   cdc_acm 1-1:1.0: ttyACM0: USB ACM device

Now _that's_ what I was expecting you to get -- the rest of the
messages are gibberish to me, though... :(

 But when I try moto4lin I get
 [info] Phone pluged as AT
 Try to connect
 [error] Unable to connect
 [info] Phone is unpluged

Did you specify the correct device for moto4lin? Should be
/dev/ttyACM0. Also, check the permissions on /dev/ttyACM0 -- by
default, they're too restrictive.

If you run moto4lin from a terminal, it spits out a bit of debugging
info that might help too, that looks like this:

snip
[EMAIL PROTECTED] ~ $ moto4lin
Form1
PhoneMan
New mode: 1
doActConnect
doActConnect
P2kProc::doConnect()
sh: /dev/ttyACM0: Permission denied
/snip

...so I changed the permissions, and tried clicking the
Connect/Disconnect button again, and go this:

snip
doActConnect
doActConnect
P2kProc::doConnect()
New mode: 2
doActConnect
Filelist received: 527
/snip

 What do your system messages look like?

When I first plugged in the phone, I got this:
snip
usb 4-2: new full speed USB device using uhci_hcd and address 2
usb 4-2: configuration #1 chosen from 2 choices
usb.agent[24980]: Keeping default configuration with
/sys//devices/pci:00/:00:1d.3/usb4/4-2
cdc_acm 4-2:1.0: ttyACM0: USB ACM device
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver
for USB modems and ISDN adapters
/snip

After fixing the permissions on /dev/ttyACM0 and clicking the
Connect/Disconnect button in moto4lin, I got this:

snip
usb 4-2: USB disconnect, address 2
usb 4-2: new full speed USB device using uhci_hcd and address 3
usb 4-2: config 1 has an invalid interface number: 5 but max is 2
usb 4-2: config 1 has an invalid interface number: 6 but max is 2
usb 4-2: config 1 has an invalid interface number: 8 but max is 2
usb 4-2: config 1 has no interface number 0
usb 4-2: config 1 has no interface number 1
usb 4-2: config 1 has no interface number 2
/snip

...which looks pretty much the same as yours, but everything works the
way it should after that, so the only thing I can think of is the
permissions thing. shrug

 Any ideas what you are doing differently?

Well, it's a slightly different configuration from the default: I've
got the Settings - Preferences - File Manager - Load File list on
connect option selected, the ACM Device pointed at /dev/ttyACM0,
and read-write permissions for everybody on /dev/ttyACM0...

I suspect I may have also gone into the Preferences - Connection
section, and clicked the Update List button, selected my phone from
the list of devices, and clicked both the Set As AT Device and Set
As P2k Device as well, since I've got the right Vendor/Product IDs
set, as well...

Anyway... hope _something_ in there helps...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] root (/) read-only?

2005-09-27 Thread James Hiscock
On 9/27/05, glumtail [EMAIL PROTECTED] wrote:
 This happens offen in my system.

 My root filesystem is reiserfs and /home is ext3, when i extract tar
 packages it says it is a readonly filesystem.

Fix your /etc/fstab - it thinks your root partition is xfs, when it
isn't. You either: a) didn't change it during installation; or b)
overwrote it in a recent update.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] properly repartition a windows XP disk?

2005-09-25 Thread James Hiscock
 The system rescue disk has nfstools in it and a nice gui interface
 called qtparted I think.  That is how I did the repartition on my laptop.

QTParted is also included in Knoppix, and I've successfully used it to
resize 2000/XP NTFS partitions.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] apcupsd - apache module

2005-09-06 Thread James Hiscock

 Is there an apache module for apcupsd or is it installed during emerge apcupsd?

Add the cgi USE flag, and re-emerge. It'll get installed automagically.


Re: [gentoo-user] Setting default MTU for rp-pppoe

2005-08-06 Thread James Hiscock
 Could anyone tell me how I go about setting the default MTU of my
 pppoe connection. I am using rp-pppoe to bring it up. It currently
 sets it to 1432 and I need it to be 1352.

It's buried in the rp-pppoe config file (can't remember what the name
of the option is, but if you look for 1432, that should help).
rp-pppoe will always override the MTU you set elsewhere...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Setting default MTU for rp-pppoe

2005-08-06 Thread James Hiscock
 James I grep'd all the files in /etc/ppp/ for 1432 with out any success.

Sorry -- it's been a long time since I've fiddled with rp-pppoe. The
setting's actually buried and hard-coded in /usr/sbin/adsl-connect...
around line 223 (PPP_STD_OPTIONS)...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] can't unload modules

2005-08-02 Thread James Hiscock
  Sounds like a forgotten make mrproper or make
  clean before a full
  build?
 
 Aren't they for 2.4.x kernels? I'm using a 2.6.11.

You need to rebuild the kernel proper - it's responsible for loading
and unloading modules. Rebuilding just the modules won't help you.

And no, those make commands aren't just for 2.4 kernels - they work
with 2.6 kernels as well.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: DVD-cd usage

2005-07-21 Thread James Hiscock
 Warning: There is absolutely NO DMA, operations thus are slow.
 Using libscg version 'schily-0.8'.
 Device type: Removable CD-ROM
 Version: 0
 Response Format: 2
 Capabilities   :
 Vendor_info: 'TOSHIBA '
 Identifikation : 'DVD-ROM SD-R2412'
 Revision   : '1015'
 Device seems to be: Generic mmc2 DVD-ROM.

This seems suspect to me... it looks like cdrecord is detecting your
burner as a CD/DVD-ROM, not a burner. I had a similar problem with an
external USB 2.0 DVD+-RW drive that would get misdetected. Took a
while to figure out what the heck was going on...

Is it possible that that's what you're running into?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] switching to LCD monitor

2005-07-21 Thread James Hiscock
 My question to anyone who can advise is this:
 do I just unplug the CRT  plug in the LCD ?  will it work so simply ?

In most cases, yes, but you'll need to restart X if you do the swap
while it's running.

 The horysontal sync and vertival refresh rates aren't likely
 to be the same, so you'll have to adapt your current xorg.conf
 I've read a few times that wrong values can harm your screen
 (but never seen it happen) so be careful.
 
 Or you can use 'xorgconfig' and answer the questions step by step.
 I did this on a 17'' dell TFT at work and it worked first try.

...or you could just remove the horizontal sync  vertical refresh
lines from your xorg.conf, and let xorg figure it out for you...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Resizing ext3

2005-07-20 Thread James Hiscock
 Hi James

Just for clarification, I'm not the one trying to resize an ext3
partition: Bruno is...

snip
 You can make your ext3 an ext2 partition by
 removing the has_journal feature (tune2fs -O ^has_journal
 /dev/partition). 
/snip

...and your advice was similar to the advice I gave him (but you
actually managed to write the command out correctly, whereas I didn't
;), but he's still running into problems (parted is complaining that
there's an unsupported filesystem feature enabled, which is why he
posted the output of tune2fs).

I'm at a loss to help, but I've also been suggesting using parted
(which I've used successfully in the past)... maybe resize2fs will
work better as both you and Richard have suggested, but I've got no
experience with it...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Resizing ext3

2005-07-19 Thread James Hiscock
 i think the line
 Filesystem features:  has_journal resize_inode filetype needs_recovery
 can help me, but i dont know how... any idea about wich feature i can
 desable ?

I think you're right, but as I said, I'm kinda out of my depth, now.

...but, you may want to pay attention to that needs_recovery flag:
you may want to fsck the partition, and correct any potential errors
(if any) before continuing.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Resizing ext3

2005-07-18 Thread James Hiscock
On 7/18/05, Bruno Gola [EMAIL PROTECTED] wrote:
 Error: File system has an incompatible feature enabled.

1) Remove the journal from the ext3 partition using tune2fs:
  tune2fs -C ^has_journal partition

2) Resize using parted

3) Add the journal back using tune2fs:
tune2fs -j partition

See 'man tune2fs' (as root) for important warnings  information (and
I really hope I've got that right...)

Qtparted might be an easier way to do the resize, as well... shrug

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] PHP Odd Error

2005-07-06 Thread James Hiscock
 But it only happens when I run php as a user, not when I run as root.
 My emerge world is up to date, should a normal user need to write there or 
 what other thing do I switch to turn this
 off.  

I personally just got rid of the snmp flag for the php ebuild. PHP
(the command-line version) tries to do something to the net-snmp file
you referenced, but I don't know what. I didn't need SNMP support in
the command-line version, so I got rid of it.

As I said, though, I'm not sure what it's trying to change, so I
played it safe, rather than letting it overwrite a (possibly) existing
file.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Syncing data between servers

2005-07-02 Thread James Hiscock
 I've got all access but i can't change anything, the both servers are
 'snap aplience' it has a Linux version 2.4 on it, you administrate it by a
 webinterface, its got ssh, but no scp even no cron.
 Its 'forbidden' to install anything on it.
 You don't even get a root password even if you by it.
 I can export directories with nfs witch i have done and so a Gentoo server
 in the middle can sync the data between the two machines.

Correct me if I'm wrong, but can't you use rsync or ssh from the
gentoo server in the middle, without using the NFS-mounted drives?
Something like:

rsync [EMAIL PROTECTED]:src [EMAIL PROTECTED]:dest

...and you can probably do the same with with scp. I don't think
either of them care if they're just  a man-in-the-middle...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Another question on mailing cron-job output

2005-07-02 Thread James Hiscock
 Is there any way to *not* receive mail from specific cron jobs, while
 leaving the rest of the mails intact? I looked at man cron and man
 crontab, but they seemed to indicate that it's kind of an all-or-nothing
 deal.

It's not an all-or-nothing deal, depending on how you create the cron
job: instead of adding a script to
/etc/cron.{hourly,daily,weekly,monthly} (where it _is_ an
all-or-nothing deal, because of the /etc/crontab entry that runs the
jobs), just add it to /etc/crontab, and redirect the output to
/dev/null for the jobs you don't want the output for, as was already
suggested.

...or, if you want the job to be run by a specific user, use crontab
-e to create a job schedule for a given user.

 What I'd *really* like is the output from the jobs that I've set to mail
 me output, and a summary of names of any other jobs that ran
 successfully, just so I know that they ran successfully. 

For this, you can do something like:

* * * * * echo somescriptsomewhere  /some/script/somewhere

That'd get you the name of the script (anything after echo) and all of
the output of /some/script/somewhere... and the way I've written that
crontab entry, the script would be run every minute of every day,
which probably isn't what you want. See man 5 crontab for info on
the file format. There's no need for a mail -s command in there at
all...

(one other suggestion, although I'm not sure it's going to be useful
for ya: you might want to add -q to your esync cron job [on the
update-eix part], so you don't get that annoying output at the end
when it's updating the cache... of course, that'll kill any output
from update-eix, so I'm not entirely sure how much that'll help...)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] grub still broke--update

2005-07-02 Thread James Hiscock
 PartitionMagic is the best for this, but at $70 it is a bit pricey.
 There may be free programs to do this, but I have no experience with them.

QTparted: open-source alternative to PQMagic, _and_ it's significantly
faster (e.g. resizing a 40GB NTFS partition to 10GB with PQMagic took
me an hour or two; with qtparted, it took about ten minutes) and less
error-prone (e.g. I've had qtparted fail many times, but only once was
it so catastrophic that I couldn't fix it easily; with PQMagic, if it
failed, I knew I was screwed...).

I've been using PartitionMagic since 4.x, and stumbled across QTparted
after having PQMagic 8 consistently wipe my entire 120GB drive at
startup - before I'd even done anything! The support folks didn't help
at all on that one, so I gave up on PQMagic (although they did give me
some help later that wasn't great, but got me on the right path to
fixing the problem I was having).

You can get a decent version of qtparted (assuming you don't care much
for English grammar) with the current Knoppix - which is pretty much
the only reason why I still use Knoppix. ;)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Dynamic DNS

2005-05-25 Thread James Hiscock
 I want to use dhcp on my home network to assign IP addresses which means
 I'll need a dynamic DNS.  I know I can go to dyndns.org and set up
 something with them but can I setup my own name server (BIND or whatever)
 and some program that will work with that to keep the DNS updated?

There's a much simpler solution, specifically for LAN setups: dnsmasq.
You might want to look into it - much easier than dealing with BIND or
a more full-featured DNS server, especially when coupled with
dhcpd/dhcpcd...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] grub prblems...

2005-05-25 Thread James Hiscock
 After recent update of the system my GRUB became partially broken.
 Namely: default saved/savedefault statements stopped working. Is
 it me or it's a common problem and how do I fix it. I attach my
 grub.conf for those who might be interested...

Once you've managed to boot your system, run grub-set-default. It'll
create /boot/grub/default, and then the savedefault stuff will work
properly.

...at least, that's what fixed it for me...

Seems to apply to sys-boot/grub-0.96-r1...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] vonage and wav files

2005-05-18 Thread James Hiscock
 I just got vonage (Voip), and I'm reasonable happy. However, the voice
 mail messages are in .wav format. I can play cd's on the gentoo system,
 so I know audio works. What applications are good for playing wav files,
 particularly with vonage?

sox, maybe?
It installs a 'play' command, and I have yet to find a wav file it can't play.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Gentoo discrimination

2005-05-18 Thread James Hiscock
 He said that once you
 copy your files to it, then it automatically synchs with iTunes, so you
 can't just use it like a hard drive and copy off the music due to the
 FairPlay DRM.  My other iBook, iTunes and iPod-owning friend said he was
 right.

Bollocks. I actually own an iPod (40GB, 4th gen, USB2.0), and there's
no such limitation that I've run into... and I've got just over 4000
tracks on it... but now I'm getting distracted.

I've run into some discrimination, but I typically recommend SuSE for
the less hardcore folks that ask for suggestions: it's less annoying
to use than RedHat (when RedHat actually had a non-enterprise
version), less unstable than FC, and just all-around easier to
install/maintain than Slackware (which is what I actually started
with... sometime around 3.0, IIRC - it's been a long time...)

I've been using Gentoo since I first heard about it, and immediately
turned it into my full-time desktop OS. These days, I have Windows
around for when I want to play a game without trying to convince
Cedega to run properly, or when I have to do something for work, which
usually only happens about once a week.

I've also got a web/mail/ssh/whatever server that's running Gentoo as
well, and I've managed to physically swap machines close to
half-a-dozen times over the years without having more than a few
hours' downtime - not enough to cause my mail to bounce, but enough
that you'd notice if you were paying attention. shrug

I just ignore the folks who have a better-than-thou attitude since
it's really all about choice - and I try to make that clear to them
instead of trying to push Gentoo on everyone. Gentoo isn't for
everyone, just like action movies aren't for everyone: some people
just like dramatic films.

There's really no accounting for taste, though. ;)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] remote server access?

2005-05-18 Thread James Hiscock
 Is it possible to securely access the nfs sharea, and smb shares on the bsd
 machine, or the other linux desktops like I am on teh LAN. Both ends use
 dynamic IP's, so it also has to be compatible with dyndns or something like
 that to find them.

Maybe setup a VPN using OpenVPN? Not sure how secure it is, but I
suspect you'd be able to wrap it in an ssh tunnel...

...but then, I've never done (or had a need to do anything like) this
myself, so I'm might be completely crazy...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] LVM2 won't compile...?

2005-05-02 Thread James Hiscock
 This is not a major problem (I have LVM2 partitions, but EVMS compiled
 fine, so I can manage them), but I don't like it, as it seems weird for
 the main tool for the fs not to compile. Nothing related seems to be on
 B.G.O (which is also weird), so I'm wondering if anyone might know what
 I (presumably) did wrong to get this error:

snip

I had no problems compiling  installing sys-fs/lvm2-2.00.33-r1...
setting sys-fs/lvm2 to ~x86 gets me device-mapper-1.01.00 (after
~x86'ing device-mapper, as well)  lvm2-2.01.09, both of which also
compiled cleanly.

My first guess would've been the kernel headers, since that appears to
be where the error is coming from, but that doesn't make (much) sense,
since I've got the same version installed here...? So... Maybe a
ccache problem? Or maybe your profile's outdated?

I would assume you're running a partial ~x86 system here, since the
versions of glibc, gcc, and lvm2 are all ~x86, but ACCEPT_KEYWORDS is
just x86...?

Here's my emerge info, in case it helps:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6 i686)
=
System uname: 2.6.11-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:  dev-lang/python-2.3.5 [2.3.5 (#1, May  1 2005, 13:29:28)]
dev-lang/python: 2.3.5
sys-apps/sandbox:[Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.6.3, 1.8.5-r3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.4.3-r4, 1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS=x86
AUTOCLEAN=yes
CFLAGS=-O2 -march=pentium4 -fomit-frame-pointer
CHOST=i686-pc-linux-gnu
CONFIG_PROTECT=/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control
CONFIG_PROTECT_MASK=/etc/gconf /etc/terminfo /etc/env.d
CXXFLAGS=-O2 -march=pentium4 -fomit-frame-pointer
DISTDIR=/usr/portage/distfiles
FEATURES=autoaddcvs autoconfig buildpkg ccache distlocks sandbox
sfperms strict
GENTOO_MIRRORS=http://gentoo.mirrors.pair.com/
ftp://gentoo.mirrors.pair.com/ ftp://ftp.ndlug.nd.edu/pub/gentoo/
http://gentoo.seren.com/gentoo http://mirror.datapipe.net/gentoo;
LANG=en_US.UTF-8
MAKEOPTS=-j3 -s
PKGDIR=/usr/portage/packages
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
PORTDIR_OVERLAY=/usr/local/portage
SYNC=rsync://rsync.gentoo.org/gentoo-portage
USE=x86 X aalib acpi alsa apm arts artswrappersuid audiofile avi
berkdb bitmap-fonts cdparanoia cdr crypt curl dga directfb divx4linux
dvd dvdr dvdread eds emboss encode esd fam fbcon flac foomaticdb
fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 guile hal imagemagick
imlib java jpeg kde ldap libg++ libwww lzo mad mikmod mmx mmx2 motif
mozilla mp3 mpeg mysql ncurses network nptl nvidia offensive ogg
oggvorbis opengl pam pda pdflib perl pic png python qt quicktime
readline real rtc sasl sdl sftplogging snmp spell sse sse2 ssl svg
svga tcltk tcpd tiff truetype truetype-fonts type1-fonts v4l v4l2
vhosts vorbis xanim xine xinerama xml2 xv xvid xvmc yv12 zlib
video_cards_nvidia userland_GNU kernel_linux libc_glibc
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS, LINGUAS

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Finally! But a few issues...

2005-04-27 Thread James Hiscock
 That's for each login. If you want programs executed at startup, put them
 in /etc/init.d/local.start.

...actually, you'll probably want to put them in /etc/conf.d/local.start...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Fax answerphone/voicemail server...

2005-04-18 Thread James Hiscock
 What do other gentoo users do for answer phone and/or fax services for a
 POTS line?

You might want to check out vocp (http://vocpsystem.com/) as an
alternative - there's a (horribly experimental - read: partially
completed) ebuild for it on bugs.gentoo.org... I'm still trying to
tweak stuff to get it working, but it's pretty straight-forward.

What kind of modem are you using?

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] OT: Capturing caller id data...

2005-04-18 Thread James Hiscock
 Is there a way to throw a modem on my gentoo box in order to capture and log
 the caller id data?  I don't want to set up a pbx or answering machine or
 anything like that, I just want to capture the incoming caller id info.

I suspect you could do that by just setting up vgetty, but never
letting it answer the phone... not entirely sure, though...

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] gentoo security guide question

2005-04-14 Thread James Hiscock
 You might also say equivalent or counterpart ...

...hmmm... Dictionary.com says something else entirely:

snip
pen·dant1 also pen·dent( P )  Pronunciation Key  (pndnt)
n. 
1. Something suspended from something else, especially an ornament or
piece of jewelry attached to a necklace or bracelet.
2. A hanging lamp or chandelier. 
3. A sculptured ornament suspended from a vaulted Gothic roof or ceiling. 
snip

...but answering your question anyway:

net.ipv4.conf.default.rp_filter = 1

...should do what you're asking for (and it's commented out in the
default sysctl.conf...)

--
gentoo-user@gentoo.org mailing list