Re: [SLUG] Can anyone recommend a gigabit NIC?

2004-08-01 Thread Glen Turner
On Sun, 2004-08-01 at 12:16, Michael Knight wrote:
> I'm thinking of purchasing a new network card and was wondering about
> getting a mid/lower-end gigabit one.
> 
> Can anyone recommend one with good Linux support?

Summary of 1Gbps network cards for Linux is at
http://www.aarnet.edu.au/engineering/networkdesign/mtu/nic.html
Updates appreciated.

Currently recommended 1Gbps card for Linux is "Intel Pro/1000 MT
Server".

Cheers,
Glen

-- 
Glen Turner Tel: (08) 8303 3936 or +61 8 8303 3936
Australian Academic & Research Network   www.aarnet.edu.au

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Logout problem - BINGO!

2004-08-01 Thread Johnny
Alan L Tyree wrote:
On Sat, 31 Jul 2004 10:22:11 +0200
Johnny <[EMAIL PROTECTED]> wrote:
 

Alan L Tyree wrote:
   

This is still driving me crazy and I would be grateful for any help.
System: dead standard Debian woody with 2.4.18-bf2.4 + security
updates+ Login.app + sylpheed 0.9.12 backport.
 

Alan, I'm still very new to linux, so I could be way off track.
Look at power management, it sounds very much like power management 
kicking in , failing and logging you out.
Try
*xset -dpms*
In /etc/X11/XF86Config-4 comment out Option "DPMS"
Its not supported in woody 2.4... this will stop the system trying to 
suspend to disk.
   

That did it Johnny - a thousand thanks!
Cheers,
Alan
 

Ah... good, so you see South Africans are good for a few things, when you need help on Linux and when you need to kick someones butt in rugby :)
One of the things I did to learn linux as fast as possible was join Lug's all over te world, I highly recommend it, the linux community should bridge international borders. You also discover other things, like in SA our Telkom monopoly is ripping people off. We pay almost 6 times more for an ADSL connection, our tel rates seem to cost as much for a local call as you guys pay for an international call. 
Its so expensive that it was cheaper for me to go buy the whole linux mirror, than download just the full debian.
Our TV monopoly doesnt look like its ever going to move to terrestrial digital tv, I see you guys are already buying DTV cards. Our wireless laws are so strict, (monopolies protecting themselves) that I think we'd be arrested if we had a wireless fest. There are crazy laws like you not allowed to transmit across a road :(
From here, Australia looks really good. 
Some of the guys in the US are unbelievable, from the way they answer questions, I 
think they working on the Linux projects.
Anyway good things come when Lugs go across borders. One of things we going to try is make cheap 
802.11 antenna's for long ranges, our labor is cheap, and we want to upset our monopolies a 
little, going to call the antenna's "Telkom Toffee's" :)
So who knows one of these days this South African may also be good for cheap antenna's
Linux is definitely growing here, thats a good thing.
regards
JT

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Cable or ADSL?

2004-08-01 Thread Indelible
The subject asks the question:
What's preferable, cable or ADSL?
Given cable, Telstra or Optus?
Thanks.
M.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] WRT54G + ADSL

2004-08-01 Thread Indelible
I'm wondering how people with the Linksys WRT54G and ADSL use it? With a 
separate ADSL modem? Which one?

Thanks.
M.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] WRT54G + ADSL

2004-08-01 Thread Keith Hopkins
Indelible wrote:
I'm wondering how people with the Linksys WRT54G and ADSL use it? With a 
separate ADSL modem? Which one?

I have a WRT54G and a Billion BIPAC-7402 ADSL modem.  I'm thinking of buying a 2nd 
WRT54G to hack on.
How do I use it?  With either of my laptops, now I just need Broadcast Power :D  I 
find it fast enough to do incremental backups across, general net access.
Neighbor
|
WRT54G  -Router-  ADSL
|
MyDesktops
--
Keith
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] WRT54G + ADSL

2004-08-01 Thread Jeff Waugh


> I'm wondering how people with the Linksys WRT54G and ADSL use it? With a
> separate ADSL modem? Which one?

There is a model very similar to the WRT54G that has an ADSL modem built in,
called the WAG54G [1]. If you're aiming to replace a conventional computer
with a tiny, noise-free box, this would be your best option.

I haven't heard much about their hackability compareed to the WRT54G, and
for some reason they're not included on the Linksys Open Source page [2].
You could always go for the WRT54G and a separate ADSL modem (I have a DLink
DSL-300, but don't take that as a recommendation) if you wanted to be fully
sure you could do cool stuff with the hardware. :-)

- Jeff

[1] http://www.linksys.com/international/product.asp?coid=6&ipid=371
[2] http://www.linksys.com/support/gpl.asp

-- 
OSCON 2004: Portland OR, USA   http://conferences.oreilly.com/oscon/
 
 GDK (acronym): GNU's Not Unix Image Manipulation Program Tool-Kit
Drawing-Kit.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] WRT54G + ADSL

2004-08-01 Thread Chris Deigan
On 01/08/2004, at 6:22 PM, Indelible wrote:
I'm wondering how people with the Linksys WRT54G and ADSL use it? With 
a separate ADSL modem? Which one?

Thanks.
M.
I have mine uplinked into my wired network.
So for wireless it goes something like this,
ADSL --> DSL Modem --> Linux Server --> WRT54G --> You.
and on wired:
ADSL --> DSL Modem --> Linux Server --> You.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Which flavour of Linux

2004-08-01 Thread Johnny
Phill wrote:
I have been playing around with linux for a little while now and want 
to setup a web server that incorporates webdav and jsp largely for uni

 

I currently use mandrake 10 because of the simplicity to setup. What 
is the general feeling about  mandrake amongst SLUG and is there a 
better flavour to use. Bearing in mind that I have definite time 
constraints so it must  be quick & easy to install and maintain plus 
cope with multimedia. How does mandrake compare with fedora and debian?

A question like this always has the potential of starting a war, so I'll 
try be objective.
I think from what you trying to do, you may as well stick with what you 
know. In the end you probably going to install Apache, Tomcat for 
servlets and Suns JRE, and thats fairly independent of any dist anyway.

Mandrake doesnt seem to be all there on the mirrors, possibly you'll 
find unofficial contributions on the mirrors, and can do anything anyway.
I think if you 'have' to rush out and buy a "server" addition of 
Mandrake to do what you need, then I would consider changing.
If a dist says anything like, for Samba and Apache, buy the super-duper 
enterprise addition, which I have a feeling mandrake does do, you maybe 
be better off looking at another dist.

There is a little learning curve with debian, your quicky criteria will 
probably make you not look at it.
I love debian. Its absolutely free, but the thing I like most is that it 
moves between releases seemlessly. When a new release of debian comes 
out, users think nothing of upgrading, its easy. Debian is a 
distribution based on dependencies, and thats what makes it special.
I imagine Gentoo has similar tools, never tried it. As I understand it, 
Gentoo is the public legacy to Redhat. When Redhat died, Gentoo was 
born, and is also in the public domain, so its also truely free. Debian 
was started and is run by normal linux guys in the public domain to 
prevent the commercial exploitation of linux, I'm in love with its 
rebellious nature, as much as anything else.
I dont mind any distribution, but as soon as someone takes linux and 
makes it start to feel like M$, I want to puke.

If I had to recommend one thing, I'd say take the time to learn to build 
a kernel, and source as well. It equates to freedom and you'll lose your 
software handcuffs. For example if I cant find something on whatevers 
installed, I think nothing of getting it from another dist and 
installing it. At that level it all becomes just Linux.

Most debian guys I know, get the installer (APT networking) working at 
setup and bypass most of the initial setup, prefering to install only 
what they need afterwards. You may find that a little scary. If you 
still wearing software handcuffs, I think in general you going to miss 
out on the true freedom of linux, and what I believe are the 2 truely 
great distributions.

Maybe this will help you decide, this is the typical sizes of various 
dists on a public mirror.
You can ask yourself why there are such huge size differences.

Major Dists
   Debian 43 gigs
   Gentoo 39 gigs
   Mandrake-devel 10 gigs plus  Mandrake.com 9.1/2 10  15 gigs
Micky Mouse Dists
Fedora 5 gigs
Knoppix 2 gigs
Slackware 1.3 gigs
OpenBSD 5.5 gigs
RedHat  7/8/9 12 gigs
MS
   Just bug fixes
regards,
JT

 

Phill
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Cable or ADSL?

2004-08-01 Thread Kevin Saenz
I dunno it the problem has been fixed cable is great if you are the only 
one in your street using cable.
Once people start using it from what I have read it slows down.
My preference is ADSL.

The subject asks the question:
What's preferable, cable or ADSL?
Given cable, Telstra or Optus?
Thanks.
M.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Cable or ADSL?

2004-08-01 Thread Luke Yelavich
On Sun, Aug 01, 2004 at 07:56:57PM EST, Kevin Saenz wrote:
> I dunno it the problem has been fixed cable is great if you are the only 
> one in your street using cable.
> Once people start using it from what I have read it slows down.
> My preference is ADSL.

With ADSL, you can also find better value for money in terms of download
allowances, even though the speed is not quite as fast as cable.

Luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Which flavour of Linux

2004-08-01 Thread James Gregory
On Sun, 2004-08-01 at 09:10 +1000, Phill wrote:
> I have been playing around with linux for a little while now and want
> to setup a web server that incorporates webdav and jsp largely for uni
> 
>  
> 
> I currently use mandrake 10 because of the simplicity to setup. What
> is the general feeling about  mandrake amongst SLUG and is there a
> better flavour to use. Bearing in mind that I have definite time
> constraints so it must  be quick & easy to install and maintain plus
> cope with multimedia. How does mandrake compare with fedora and
> debian?

Well, I see Mandrake as a desktop distribution. That means that it's
straightforward to use on a workstation and it's feature-rich for that
segment. Last time I looked into it though, Mandrake weren't as thorough
with security updates etc. For apache in particular it's in an odd
position: The Mandrake guys have gone to great lengths to make packages
for all the Apache modules -- urpmq tells me there's 95 that I can
currently install. I think it's odd because I just don't know of many
organisations who run Mandrake as a webserver.

Anyway, if you're on a tight time budget I suggest you stick with what
you know. Check out this page:

http://urpmi.org/easyurpmi/index.php

For help configuring urpmi to install all that java stuff. I suggest you
use the compressed index option (there's a checkbox at the bottom). That
will give you the command to get this stuff:

http://www.jpackage.org/

sucked into urpmi. After that, installing tomcat (which you'll need for
jsp) will just be a case of running

urpmi tomcat5

or tomcat4 or tomcat3, as you wish. The apache2-mod_dav package will do
webdav for you, though I can't tell you if it works or not. Do a bit of
research into this, mod_dav runs as nobody out of the box, so that's
likely to play havoc with your permissions.

To answer your question: I personally would not run Fedora on a
production box just yet. That's probably paranoia speaking, but I've
just had too many issues with the 'up2date' tool it ships with. Debian
is awesome on servers, but the installer is a little intimidating. I
likewise would not generally recommend Mandrake on a server but if you
want to get something up and running quickly then it's a good choice. Be
sure to firewall it though; that goes for any of them but I think it's
especially important on Mandrake since it just doesn't get much testing
as a server.

HTH,

James.

-- 
James Gregory <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Build options of PHP under RH-9

2004-08-01 Thread Michael S. E. Kraus
G'day all,

I have PHP 4.2.2 installed on my RedHat-9 box. (Stock standard php from
rpm.)

How do I know what compile time options were used when building it? (In
particular the "--with-mysql", "--with-apache" and "--enable-track-vars"
parameters.)

TIA!

Mike

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Build options of PHP under RH-9

2004-08-01 Thread Jeff Waugh


> I have PHP 4.2.2 installed on my RedHat-9 box. (Stock standard php from
> rpm.)
> 
> How do I know what compile time options were used when building it? (In
> particular the "--with-mysql", "--with-apache" and "--enable-track-vars"
> parameters.)

a) Download the src.rpm and read the .spec file inside.

b) Read the output of phpinfo(), which you can easily put in a script on
your webserver.

- Jeff

-- 
What's all that about?   http://www.no-name-yet.com/
 
  "GIMP is the primary tool in my graphics work. It is my gcc and Emacs."
 - Tuomas Kuosmanen
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Cable or ADSL?

2004-08-01 Thread Del
Indelible wrote:
The subject asks the question:
What's preferable, cable or ADSL?
Given cable, Telstra or Optus?
Cable is faster if you are in the area for it.  I would definitely use
Optus Cable, you get 12G of downloads before you get traffic shaped on
the standard plan, and it's very very fast.  Bigpond cable is not so
good, you get uploads as well as downloads counted against your limit,
plus the connection client on Linux is somewhat quirky.  For Optus
Cable you just need a dhcp client to connect.
Then again there are some good ADSL deals going around at the moment.
I have clients on TPG and Swiftel ADSL doing quite well with Linux
machines.  Shop about after seeing what's in your area.
--
Del
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Which flavour of Linux

2004-08-01 Thread Dean Hamstead
personally i would never consider mandrake ever.
its major bloatware (so flame me *shrug*)
debian is really really good. I havent used fedora but
redhat was seriously becoming bloatware and i just left it.
mandrake took redhat and just bloated it more.
if debian is a little raw for you (no offence if it is)
then you might want to look at suse. slackware is still
out there and kicking as well. ive really been meaning to
run crux (linux) on something also. i much prefer the BSD
boot system so crux looks good from where i sit.
personally i run linux on desktops (mainly ppc's at this
moment) with freebsd and openbsd servers. granted freebsd
is a bit bloated but openbsd is supremely light.
ok this is a linux list but dont look past the bsd's ;)
in summary. forget mandrake. most likely forget fedora
check out debian, check out suse, check out crux. check out
slackware
Dean
Phill wrote:
I have been playing around with linux for a little while now and want to
setup a web server that incorporates webdav and jsp largely for uni
 

I currently use mandrake 10 because of the simplicity to setup. What is the
general feeling about  mandrake amongst SLUG and is there a better flavour
to use. Bearing in mind that I have definite time constraints so it must  be
quick & easy to install and maintain plus cope with multimedia. How does
mandrake compare with fedora and debian?
 

Phill

--
WWW: http://dean.bong.com.au  LAN: http://www.bong.com.au
EMAIL: [EMAIL PROTECTED]   or   [EMAIL PROTECTED]
ICQ: 16867613
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Which flavour of Linux

2004-08-01 Thread Del
Phill wrote:
I have been playing around with linux for a little while now and want to 
setup a web server that incorporates webdav and jsp largely for uni
If you're looking at using JSP and friends then you absolutely want a
distro supported by JPackage (already mentioned here by one other person):
http://www.jpackage.org/
I note that Mandrake 10 is supported but I've had some issues with running
past Mandrake distros as a server before.  I don't know what the current
story is with Mandrake, I haven't used it in a while, it may be fine in
the later releases.
Contrary to what people have said here I would use Fedora on a production
server.  You don't have to use up2date, yum works just fine although I
find it a little slow at times.  I have Fedora Core 2 running web servers
on tomcat 4 and tomcat 5 from JPackage and they never miss a beat.  On
the other hand Red Hat 9 has shown to be unstable under load.
Your other option is Red Hat ES if you want to spend the money, or white
box linux if you want something ES compatible but don't want to spend the
money.  Both work fine with JPackage and are easy to set up and get going.
--
Del
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] "Bloat" [Was: Which flavour of Linux]

2004-08-01 Thread Jeff Waugh


> personally i would never consider mandrake ever.  its major bloatware (so
> flame me *shrug*)
> 
> debian is really really good. I havent used fedora but redhat was
> seriously becoming bloatware and i just left it.  mandrake took redhat and
> just bloated it more.
> 
> if debian is a little raw for you (no offence if it is) then you might
> want to look at suse. slackware is still out there and kicking as well.
> ive really been meaning to run crux (linux) on something also. i much
> prefer the BSD boot system so crux looks good from where i sit.
> 
> personally i run linux on desktops (mainly ppc's at this moment) with
> freebsd and openbsd servers. granted freebsd is a bit bloated but openbsd
> is supremely light.

What on Earth do you mean by "bloat"?

- Jeff

-- 
What's all that about?   http://www.no-name-yet.com/
 
   "My computer is like 3 lines of code away from attaining sentience. I
just have an off-by-one bug somewhere, and that's it: total
   consciousness." - Nat Friedman
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] padding digits on counting loops, how ?

2004-08-01 Thread Voytek
I'm trying to catch-up process web logs for awstats

how can I allow for leading zero for days 1-9 in below example:


n=32
let i=1
while [ $i -lt $n ]; do
./awstats.pl -config=aname.tld
-logfile=/home/aname.tld/logs/2004-07-$i-access.rog -update

let i=i+1
done




-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] padding digits on counting loops, how ?

2004-08-01 Thread Peter Hardy
On 08/02/04 01:26, Voytek wrote:
how can I allow for leading zero for days 1-9 in below example:
n=32
let i=1
while [ $i -lt $n ]; do
*snip stuff*
Replace the while loop with a for loop using seq(1) to generate the 
sequence. Use the -w option to pad:

for $i in `seq -w 1 32`; do
*re-add stuff*
--
Pete
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] RE: Cable or ADSL?

2004-08-01 Thread Rodney Sommerville
A mate was after ADSL connection, so had a bit of look for plans for
him, eXeTel have an ADSL plan thus:-

$42.50 (512K) per month (with STD phone calls) $47.50 without, benefits
are, static IP, 10gig download, free download between 12.00am to 8.00am.

Have no idea what they are like from an operation perspective, as mate
has just connected with them and is in search of a router at the moment.

Maybe others have ideas as well!

I too prefer ADSL as it might be slower however you pay for bandwidth
you get it

Rodney 



> The subject asks the question:
> What's preferable, cable or ADSL?
> Given cable, Telstra or Optus?
>
> Thanks.
> M.




-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Build options of PHP under RH-9

2004-08-01 Thread Kevin Waterson
This one time, at band camp, "Michael S. E. Kraus" <[EMAIL PROTECTED]> wrote:

> G'day all,
> 
> I have PHP 4.2.2 installed on my RedHat-9 box. (Stock standard php from
> rpm.)
> 
> How do I know what compile time options were used when building it? (In
> particular the "--with-mysql", "--with-apache" and "--enable-track-vars"
> parameters.)

Simply create a file called info.php an in it put


then have a look at it with your browser

Kevin


-- 
 __  
(_ \ 
 _) )            
|  /  / _  ) / _  | / ___) / _  )
| |  ( (/ / ( ( | |( (___ ( (/ / 
|_|   \) \_||_| \) \)
Kevin Waterson
Port Macquarie, Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Rebuild hda

2004-08-01 Thread The Salisburys
Most systems these days disabling the bios doesn't work.
The OS will see the harddrive and you may have confusion rain on you if you
are not aware!
I wish it did work!  I ve had the frustration many times.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 2004 1:26 PM
Subject: Re: [SLUG] Rebuild hda


> [EMAIL PROTECTED] wrote on 29/07/2004 12:52:19 PM:
>
> > Hi all,
> > I am getting messages that indicate that hda1 in my FC system is
> failing.
> > This machine was previously ourt proxy server and has a hard life so I
> > beileve the messages! Easy enough, acquire new disk and rebuild. However
> I
> > have a second HDD that is 100% full with Video files, I do not want to
> > delete these, I simply want to rebuild linux on the first drive and then
> > re-mount it and re-share back to Windows clients. I have not done it
> this
> > way before, normally I let the install delete everything on all HDD's,
> is
> > this going to be simple or are there some gotchas?
> >
> > I could of course just disconnect the second HDD until the first is
> > re-built, but felt there had to be a more logical method.
>
> It is a good practise, however I just usually disable it in the BIOS. I
> don't like getting my hands dirty ;)
>
> Scott
>
>

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] RE: Cable or ADSL?

2004-08-01 Thread Adam Kent
Rodney Sommerville wrote:
 A mate was after ADSL connection, so had a bit of look for plans for
 him, eXeTel have an ADSL plan thus:-  [...]
>
 Have no idea what they are like from an operation perspective, as
 mate has just connected with them and is in search of a router at the
 moment.
Although I don't want SLUG to turn into Broadband Choice, I just want to 
add that I recently connected to Exetel ADSL (but on the previous set of 
plans) and have found the service thus far to be excellent. 

After a brief glitch where telstra connected somebody else's house to 
our phone number (ie. dial our number, get someone else!) the ADSL was 
up and running two days earlier than the "planned installation date" 
shown on their website, turnaround of around 6 working days.

Seems exetel are a relatively new player on the scene but they're doing 
everything the right way to become a successful long term operation from 
what I can see.


Cheers,
Adam.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] padding digits on counting loops, how ?

2004-08-01 Thread Voytek

Peter Hardy said:
> On 08/02/04 01:26, Voytek wrote:
>> how can I allow for leading zero for days 1-9 in below example:
>> n=32
>> let i=1
>> while [ $i -lt $n ]; do
> *snip stuff*
> Replace the while loop with a for loop using seq(1) to generate the
> sequence. Use the -w option to pad:
>
> for $i in `seq -w 1 32`; do
> *re-add stuff*

thanks, Pete.
how do I initialize 'i'..?:

(btw, I'm pasting this from clipboard, does it need to written as a script
maybe ??)


# for $i in `seq -w 1 32`; do
> /usr/local/awstats/wwwroot/cgibin/awstats.pl -config=celaro.com -log
file=/home/celaro.com/logs/2004-07-$i-access.rog -update
> let i=i+1
> done
bash: `$i': not a valid identifier
#
# let i=1
# for $i in `seq -w 1 32`; do
> /usr/local/awstats/wwwroot/cgibin/awstats.pl -config=celaro.com -log
file=/home/celaro.com/logs/2004-07-$i-access.rog -update
> let i=i+1
> done
bash: `$i': not a valid identifier
#



Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread Voytek
how can I loop on an intermediate dir name, I have dir tree structure as:

/home/adomain.tld/logs
/home/b_domain.tld/logs
...

I'd like to run loop for all domains in that tree to run logresolve like

logresolve < /home/$domain/logs/YYY-MM-DD.access.log
>/home/$domain/logs/YYY-MM-DD.access.rog

and, how to reduce the YYY-MM-DD date by one day, I need to run this
against yesterdays' logs

-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Rebuild hda

2004-08-01 Thread Luke Yelavich
On Mon, Aug 02, 2004 at 07:43:09AM EST, The Salisburys wrote:
> Most systems these days disabling the bios doesn't work.
> The OS will see the harddrive and you may have confusion rain on you if you
> are not aware!
> I wish it did work!  I ve had the frustration many times.

I have seen this on a couple of Abit motherboards, but it doesn't happen
on my Asus P4PE motherboard, which was from the beginning of last year, and one
of the Abit motherboards is from several years back, an Abit BP6.

Luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] allowing web users change their ftp password remotely, how ?

2004-08-01 Thread Voytek Eymont
I have several web users, all they have is an ftp access to their
webpages, no shell access.

what would be the simplest way to setup so they can alter their own
password ?

I guess it can be done with webmin/usermin...
though, all I need is the password edit, I suspect they may be some web
script ?
(hmmm, maybe Squirrelmail password change function will do...)


-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] padding digits on counting loops, how ?

2004-08-01 Thread Peter Hardy
On 08/02/04 08:17, Voytek wrote:
Peter Hardy said:
On 08/02/04 01:26, Voytek wrote:
how can I allow for leading zero for days 1-9 in below example:
n=32
let i=1
while [ $i -lt $n ]; do
*snip stuff*
Replace the while loop with a for loop using seq(1) to generate the
sequence. Use the -w option to pad:
for $i in `seq -w 1 32`; do
*re-add stuff*

thanks, Pete.
how do I initialize 'i'..?:
Oh, dang, that was supposed to be i not $i.
I guess it was a little past my bedtime. :-(
--
Pete
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] RE: Cable or ADSL?

2004-08-01 Thread Mary Gardiner
On Mon, Aug 02, 2004, Adam Kent wrote:
> Although I don't want SLUG to turn into Broadband Choice,

Which is yet to be linked from this thread...
http://bc.whirlpool.net.au/

Comparisons of Australian broadband deals, price and features.

-Mary
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] padding digits on counting loops, how ?

2004-08-01 Thread Voytek

Peter Hardy said:

> Oh, dang, that was supposed to be i not $i.
> I guess it was a little past my bedtime. :-(

thanks again !

I noticed some error mssg scrolling by, so I tried to screen scrape on rerun:

-
Update for config "/etc/awstats/awstats.conf"
With data in log file "/home/celaro.com/logs/2004-07-08-access.rog"...
Phase 1 : First bypass old records, searching new record...
Direct access to last remembered record is out of file.
..snip..
 Found 0 new qualified records.
bash: let: 08: value too great for base (error token is "08")


is that benign, or ?

also, as I don't have a log for every day, do I need to put some 'if
exists'; or, no need to worry abou it ?

eg, in the first 10 day I only have these:
logs/2004-07-01-access.rog
logs/2004-07-02-access.rog
logs/2004-07-03-access.rog
logs/2004-07-05-access.rog
logs/2004-07-06-access.rog
logs/2004-07-07-access.rog
logs/2004-07-08-access.rog
logs/2004-07-09-access.rog



-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] allowing web users change their ftp password remotely, how ?

2004-08-01 Thread Voytek

Voytek Eymont said:
> I have several web users, all they have is an ftp access to their
> webpages, no shell access.
> what would be the simplest way to setup so they can alter their own
> password ?
> I guess it can be done with webmin/usermin...
> though, all I need is the password edit, I suspect they may be some web
> script ?
> (hmmm, maybe Squirrelmail password change function will do...)

no, the Squirrelmail won't work, as the email users are =/ *nix users, so
the ftp=*nix users are not in mail user database

-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Can anyone recommend a gigabit NIC?

2004-08-01 Thread Simon Males

Summary of 1Gbps network cards for Linux is at
http://www.aarnet.edu.au/engineering/networkdesign/mtu/nic.html
Updates appreciated.
Currently recommended 1Gbps card for Linux is "Intel Pro/1000 MT
Server".
My latop (Toshiba Tecra M2) has gigabit, not that I have ever pluged it 
into a gigabit network:

# dmesg | grep -i intel | grep -i network
Intel(R) PRO/1000 Network Driver - version 5.2.52-k4
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
--
Simon Males <[EMAIL PROTECTED]>
No More AOL CDs Australia - www.anticd.org
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Re: [activities] Wireless fest - 14 Aug 2004

2004-08-01 Thread Chris Deigan
On 29/07/2004, at 10:43 PM, Chris Deigan wrote:
Funny that, I happen to be organizing an Installfest at UTS Broadway 
on that same day. :-/
Okay, seriously - is this Wireless Fest still on?
Perhaps we could run something together, or I can just move the 
InstallFest a week forward.

Cheers,
Chris.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Hang up during boot process 'failed to activate dodo0 with error 2 failed'

2004-08-01 Thread Rlievre




To the SLUG,
My dial up modem doesn't connect to the internet. During the boot
 up process of Fedora 1 (on an IBM ThinkPad T21) I get the
following message 'bring up interface dodo0: failed to activate dodo0 with
error 2 failed'.  The issue may be that Linux cannot find the modem on
the serial port that I specified. I therefore used the 'wvdialconf mymodem'
command and I got the following message repeated 15 times 'ircomm<*1>:
ATQO V1 E1 -- ATQ) V1 E1 --failed at 9600 and 19200 baud'. At the end of the
message wvdialconf mymodem said 'Sorry, no modem was detected! Is it in
use by another program? Did you configure it properly with setserial?' 
The modem is a Bansia Wave SP and I have read on SLUG that this is
supported by Linux. I have therefore come to the conclusion that the
modem is not installed properly. Can anyone tell me how to install the modem
properly?
Thanks in anticipation
Roger



Message sent using Dodo Internet Webmail Server 

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Build options of PHP under RH-9

2004-08-01 Thread O Plameras
Hi,
Create a page as follows:
'test.php'  containing:

Then:
http://your.webservr.au/test.php
It will tell you lots of things including compile
options.
To include '--with-mysql' in PHP install you have to
install 'php-mysql-4.2.2-11.rpm' for example.
Michael S. E. Kraus wrote:
G'day all,
I have PHP 4.2.2 installed on my RedHat-9 box. (Stock standard php from
rpm.)
How do I know what compile time options were used when building it? (In
particular the "--with-mysql", "--with-apache" and "--enable-track-vars"
parameters.)
TIA!
Mike
 

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Cable or ADSL?

2004-08-01 Thread DaZZa
On Sun, 1 Aug 2004, Indelible wrote:

> The subject asks the question:
> What's preferable, cable or ADSL?
> Given cable, Telstra or Optus?

Cable is faster, but generally has more limits {download caps}, and is
more expensive, and not always available.

ADSL is cheaper, there's more options, and you can get better plans, but
it's slower.

Depends what you value most - price or speed.

DaZZa

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread scott
[EMAIL PROTECTED] wrote on 02/08/2004 08:26:17 AM:

> how can I loop on an intermediate dir name, I have dir tree structure 
as:
> 
> /home/adomain.tld/logs
> /home/b_domain.tld/logs
> ...
> 
> I'd like to run loop for all domains in that tree to run logresolve like
> 
> logresolve < /home/$domain/logs/YYY-MM-DD.access.log
> >/home/$domain/logs/YYY-MM-DD.access.rog
> 
> and, how to reduce the YYY-MM-DD date by one day, I need to run this
> against yesterdays' logs

I'm not exactly sure what you mean but is this what you want:

#Script Start
cd /home
export DATE=`date -d yesterday +"%Y-%m-%d"`
for i in `ls` ; do
logresolve /home/$i/logs/$DATE.access.log 
>/home/$i/logs/$DATE.access.rog
done
#Finished

Cheers,

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] FTA-SMH good article

2004-08-01 Thread ashley
G'day,
By Ross Gittins the Herald's Economics Editor.

One reason the free trade agreement with the United States is getting 
such an easy ride from Australia's business people and economists is 
that they know so little about intellectual property rights.


Major press a very good article.
http://www.smh.com.au/articles/2004/08/01/1091298576840.html
Regards,
Ashley
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] FTA

2004-08-01 Thread Ashley Maher
G'day,
By Ross Gittins the Herald's Economics Editor.

One reason the free trade agreement with the United States is getting 
such an easy ride from Australia's business people and economists is 
that they know so little about intellectual property rights.


Major press a very good article.
http://www.smh.com.au/articles/2004/08/01/1091298576840.html
Regards,
Ashley
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] FTA

2004-08-01 Thread Jeff Waugh


> 
> One reason the free trade agreement with the United States is getting 
> such an easy ride from Australia's business people and economists is 
> that they know so little about intellectual property rights.
> 
> 
> Major press a very good article.

It is *really* great to see Ross Gittins writing about these issues. I
really hope it has an impact on Labor's decision. Make sure you point out
this series of articles to your MP.

- Jeff

-- 
linux.conf.au 2005: Canberra, Australiahttp://linux.conf.au/
 
   "Microsoft treats security vulnerabilities as public relations
problems." - Bruce Schneier
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Build options of PHP under RH-9

2004-08-01 Thread DaZZa
On 2 Aug 2004, Michael S. E. Kraus wrote:

> I have PHP 4.2.2 installed on my RedHat-9 box. (Stock standard php from
> rpm.)
>
> How do I know what compile time options were used when building it? (In
> particular the "--with-mysql", "--with-apache" and "--enable-track-vars"
> parameters.)

php -i | less

Works for me.

DaZZa

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Wireless 101

2004-08-01 Thread Terry Collins
Does anyone have a wireless 101+ URL?

Inherited a non-functioning wireless AP and I'm going balder {:-(
Found the doco online for the boxen, but that is really nothing more
than options for the config.

I need a bit more understanding.
e.g. I thought putting it as a bridge meant it just forwarded everything
(but it doesn't). 
And it rotates between talking to one side of the other (ether,
wireless) or sulking (rather spying).

TIA

-- 
   Terry Collins {:-)}}} email: terryc at woa.com.au  www:
http://www.woa.com.au  
   Wombat Outdoor Adventures 

 "People without trees are like fish without clean water"
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Postgres and PHP

2004-08-01 Thread Peter Rundle
Sluggers,
As a php and postgres newbie, I'm trying to get php to connect to a 
postgres database on the local machine (FC1). The error from php's 
db_connect statement is that postgres isn't listening on tcp port 5432.

  # netstat -an | grep 543
  unix  2   [ ACC ]  STREAMLISTENING  4697223 /tmp/.s.PGSQL.5432
Hmmm, I was expecting to see tcp as the protocol, but it seems it's 
listening on a unix domain socket. ???

I've checked the /etc/init.d/postgres file and PGPORT=5432 is set.
Have I missed something?
TIA's
Pete.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Postgres and PHP

2004-08-01 Thread Howard Lowndes
In /var/lib/pgsql/data/postgresql.conf

set
tcpip_socket = true

It's false by default

On Mon, 2004-08-02 at 10:41, Peter Rundle wrote:
> Sluggers,
> 
> As a php and postgres newbie, I'm trying to get php to connect to a 
> postgres database on the local machine (FC1). The error from php's 
> db_connect statement is that postgres isn't listening on tcp port 5432.
> 
># netstat -an | grep 543
> 
>unix  2   [ ACC ]  STREAMLISTENING  4697223 /tmp/.s.PGSQL.5432
> 
> Hmmm, I was expecting to see tcp as the protocol, but it seems it's 
> listening on a unix domain socket. ???
> 
> I've checked the /etc/init.d/postgres file and PGPORT=5432 is set.
> 
> Have I missed something?
> 
> TIA's
> 
> Pete.
-- 
Howard.
LANNet Computing Associates;
Your Linux people 
--
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
--
"Flatter government, not fatter government;
Get rid of the Australian states."


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] dumb latex2html question

2004-08-01 Thread James Gregory
Dear SLUG,

I have been trying desperately to persuade latex2html to render its
navigation links in the order "Previous Up Next" rather than the current
"Next Up Previous". I can't find a way to do this and it seems that
searching google is almost entirely fruitless because every page it
finds are pages generated by latex2html, with those navigation links,
and generally none of them have to do with latex2html.

Is there any easy way to do this, or is this something else I'll need to
code into my post-processor script?

Are there better tools than latex2html that I should be considering?

Many thanks,

James.
-- 
James Gregory <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Bigpond cable and WRT054G

2004-08-01 Thread Stuart Guthrie
Has anyone setup these two to play together nicely. I've just
recommended the WRT054G to a friend and bigpond are not being helpful as
to how to connect. ie pppoe, ppptp dhcp.

I'm sure it can be done, but what incantation?

His setup is (hopefully)

PC . wifi card ~~ WRT054G -- CableModem ---> Bigpond
  ^^ ethernet cable
 ^^^ Wireless


Stuart

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Help - Samba Printing problems

2004-08-01 Thread Ron Daniel


-Original Message-
From: Ron Daniel 
Sent: Monday, 2 August 2004 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: Samba Printing problems

I sent the following on Friday :

I have 3 samba printers. They are configured in smb.conf identically
except for name of course.

Two printers print from windows clients reliably, the others don't.

The printers on the M$ boxes all configured \\server\printer as their
destination.

I can successfully lp via unix to them. They worked on Monday and for
many months before. We rebooted the server on Monday night and now I
have problems.

Smb.conf has not changed for months.

It seems as though at some point in time after I print direct from Unix,
I can send one print job to the printer OK but then all subsequent ones
fail. 

Also there is another user who seems to be able to print successfully to
all three printers.

I have checked the contents of /var/spool/lp/logs/requests and can see
successful jobs from this other userid going through OK and and the jobs
I send through as unix user going OK. 

I have also seen my one-time jobs OK but not the others.

Seems to me as though somewhere in the print chain a security permission
is being messed with but I can't seem to find anything that is up.

Any ideas would be greatly appreciated.

Upon further trail searching, I have since found from the log.
files in /var/samba/log that the problem is being reported as 

   allocate_print_jobid: failed to allocate a print job for queue
nswprint

Regards
Ron Daniel







--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread Voytek

[EMAIL PROTECTED] said:
> I'm not exactly sure what you mean but is this what you want:
>
> #Script Start
> cd /home
> export DATE=`date -d yesterday +"%Y-%m-%d"`
> for i in `ls` ; do
> logresolve /home/$i/logs/$DATE.access.log
>>/home/$i/logs/$DATE.access.rog
> done
> #Finished

Scott,

many thanks, yes, that's what I needed !

how can I refine target to be more specific, and, avoid mishits, not all
dirs below '/home' are web roots; ideally, I'd like to run the loop only
if 'logs' dir exists, I'm getting

...
./logsproc: /home/voytek/logs/2004-08-01-access.log: No such file or
directory
./logsproc: /home/webmaster/logs/2004-08-01-access.log: No such file or
directory

my desired target is like 'if exists /home/$domain/logs'

#Script Start
cd /home
export DATE=`date -d yesterday +"%Y-%m-%d"`
for i in `ls` ; do
logresolve < /home/$i/logs/$DATE-access.log >
/home/$i/logs/$DATE-access
done
#Finished



-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] dumb latex2html question

2004-08-01 Thread Stuart Cooper

> I have been trying desperately to persuade
> latex2html to render its
> navigation links in the order "Previous Up Next"
> rather than the current
> "Next Up Previous". I can't find a way to do this

latex2html is just a giant Perl script and you can
hack it to produce the behaviour that you want.
In the case of what you want to do, look
at the order of calls to add_link_tag() and add_link()
in the sub called post_process(). You should be
able to yank things around and simply
do the previous() links first, then the up() links
then the next() links. Good luck with it.
It might pay to upgrade to latest version of
latex2html before you go hacking around

grep 'add_link_tag' /usr/bin/latex2html
&add_link_tag('previous',$file);
#   &add_link_tag('next', $file, @link);
&add_link_tag('next', $file, @link);
&add_link_tag('previous',
$file,@link);
&add_link_tag('up', $file, @link);
&add_link_tag('contents',
$file,delim.$tocfile);
&add_link_tag('index', $file,
$delim.$idxfile,);
&add_link_tag('next', $file, @link);
&add_link_tag('next', $file,
@link);
sub add_link_tag {

Good luck,
Stuart.

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread Voytek
what is the 'proper' way to add stuff to cron;

can I simply symlink ? copy ? a '/usr/local/bin/ascript' to /etc/cron.daily ?
or is there more to it ?
where do tell it what time I want it to run ? do I put a crontab entry as
the first line in the script ?


-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Postgres and PHP

2004-08-01 Thread Peter Rundle
Howard Lowndes wrote:
In /var/lib/pgsql/data/postgresql.conf
set
tcpip_socket = true
Thanks, that's solved it :-)
P.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread Peter Chubb
> "Voytek" == Voytek  <[EMAIL PROTECTED]> writes:

Voytek> what is the 'proper' way to add stuff to cron; can I simply
Voytek> symlink ? copy ? a '/usr/local/bin/ascript' to /etc/cron.daily
Voytek> ?  or is there more to it ?  where do tell it what time I want
Voytek> it to run ? do I put a crontab entry as the first line in the
Voytek> script ?

Use the `crontab' command.

Do 
   man crontab 
for instructions.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Help - Samba Printing problems

2004-08-01 Thread Howard Lowndes
On Mon, 2004-08-02 at 12:05, Ron Daniel wrote:
> -Original Message-
> From: Ron Daniel 
> Sent: Monday, 2 August 2004 11:36 AM
> To: '[EMAIL PROTECTED]'
> Subject: Samba Printing problems
> 
> I sent the following on Friday :
> 
> I have 3 samba printers. They are configured in smb.conf identically
> except for name of course.
> 
> Two printers print from windows clients reliably, the others don't.

Check the perms on the spool dirs.

> 
> The printers on the M$ boxes all configured \\server\printer as their
> destination.
> 
> I can successfully lp via unix to them. They worked on Monday and for
> many months before. We rebooted the server on Monday night and now I
> have problems.
> 
> Smb.conf has not changed for months.
> 
> It seems as though at some point in time after I print direct from Unix,
> I can send one print job to the printer OK but then all subsequent ones
> fail. 
> 
> Also there is another user who seems to be able to print successfully to
> all three printers.
> 
> I have checked the contents of /var/spool/lp/logs/requests and can see
> successful jobs from this other userid going through OK and and the jobs
> I send through as unix user going OK. 
> 
> I have also seen my one-time jobs OK but not the others.
> 
> Seems to me as though somewhere in the print chain a security permission
> is being messed with but I can't seem to find anything that is up.
> 
> Any ideas would be greatly appreciated.
> 
> Upon further trail searching, I have since found from the log.
> files in /var/samba/log that the problem is being reported as 
> 
>allocate_print_jobid: failed to allocate a print job for queue
> nswprint
> 
> Regards
> Ron Daniel
> 
> 
> 
> 
-- 
Howard.
LANNet Computing Associates;
Your Linux people 
--
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
--
"Flatter government, not fatter government;
Get rid of the Australian states."


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread scott
[EMAIL PROTECTED] wrote on 02/08/2004 12:37:43 PM:

> what is the 'proper' way to add stuff to cron;
> 
> can I simply symlink ? copy ? a '/usr/local/bin/ascript' to 
/etc/cron.daily ?
> or is there more to it ?
> where do tell it what time I want it to run ? do I put a crontab entry 
as
> the first line in the script ?
> 
add 'stuff'?
Personally, I would create a script that executes it, that is, if it needs 
to be somewhere else, ie in the $PATH, else just move it there.
In that directory, you don't tell it what time to executes, it executes 
all files in /etc/cron.daily/ once a day.
cat /etc/crontab for details, mine states:
25 6* * *   roottest -e /usr/sbin/anacron || run-parts --report 
/etc/cron.daily
at 6:25 am daily.

If you want to specify a time, probably best putting it in the users cron; 
for that type:
#crontab -e
man crontab(5) for details

Cheers,

Scott


> 
> -- 
> Voytek
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread Voytek

Voytek said:
> how can I refine target to be more specific, and, avoid mishits, not all
> dirs below '/home' are web roots; ideally, I'd like to run the loop only
> if 'logs' dir exists, I'm getting
>
> ...
> ./logsproc: /home/voytek/logs/2004-08-01-access.log: No such file or
> directory


I think I worked it out, I'm no longer getting mishits
(just need to see if I still get hits on correct logs, though..)

I've added:

if [ -s /home/$i/logs/$DATE-access.log ] ; then
(logresolve stuff)
fi

--
#Script Start
cd /home
export DATE=`date -d yesterday +"%Y-%m-%d"`
for i in `ls` ; do
if [ -s /home/$i/logs/$DATE-access.log ] ; then
logresolve < /home/$i/logs/$DATE-access.log >
/home/$i/logs/$DATE-access
fi
done
#Finished



-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread scott
[EMAIL PROTECTED] wrote on 02/08/2004 01:16:09 PM:

> 
> Voytek said:
> > how can I refine target to be more specific, and, avoid mishits, not 
all
> > dirs below '/home' are web roots; ideally, I'd like to run the loop 
only
> > if 'logs' dir exists, I'm getting
> >
> > ...
> > ./logsproc: /home/voytek/logs/2004-08-01-access.log: No such file or
> > directory
> 
> 
> I think I worked it out, I'm no longer getting mishits
> (just need to see if I still get hits on correct logs, though..)
> 
> I've added:
> 
> if [ -s /home/$i/logs/$DATE-access.log ] ; then
> (logresolve stuff)
> fi
> 
That will do it.
it doesn't actually check if it exists, it checks if its greater then 0 
bytes (which is probably a better check then -e).

Cheers,

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread Voytek

[EMAIL PROTECTED] said:

> Personally, I would create a script that executes it, that is, if it needs
> to be somewhere else, ie in the $PATH, else just move it there.
> In that directory, you don't tell it what time to executes, it executes
> all files in /etc/cron.daily/ once a day.
> cat /etc/crontab for details, mine states:
> 25 6* * *   roottest -e /usr/sbin/anacron || run-parts --report
> /etc/cron.daily
> at 6:25 am daily.


thanks, Peter, Scott

yes, I'm writing (well, cut'n'pasting to be more precise) a script in
/usr/local/bin, then I'll put it's name in /etc/cron.daily

/usr/local/bin is on the path, so, I guess I don't need synlinking

# cat /etc/crontab | grep daily
02 4 * * * root run-parts /etc/cron.daily

so, all things being equal the symlinked /usr/local/bin/logsproc should
run at 4:02 am (I think)

q:
how can I time and log execution time ?
I'd like to log when it was executed, and, how long it took, to a
'permanent' log, something like:

head logarchived2.log

10 Mar 2001 06:22:57 25 logfile(s) now resolved in: 11459 sec.
10 Mar 2001 06:23:36 logarchived2 finished all logfiles in: 11498 sec.


-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



Re: [SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread Michael Chesterton
[EMAIL PROTECTED] writes:

>> what is the 'proper' way to add stuff to cron;

My policy (which I wouldn't call proper) is to put local cron stuff
in a file in /etc/cron.d using an uncommon name to avoid possble name
collisions. Means I only have one place to look for local cron jobs. 

I leave /etc/crontab and /etc/cron.daily, etc, for the OS. I avoid
user crontabs, too, I always forget about them.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread Voytek

[EMAIL PROTECTED] said:

> That will do it.
> it doesn't actually check if it exists, it checks if its greater then 0
> bytes (which is probably a better check then -e).

thanks, yes, no more errors, *and* the logs still gets done.

just thinking, I might as well delete logs older than 1 year whilst I'm
doing this:

can I get date of same MM DD but -1 with 'export date lastyear', or
how can I do that ?

so, aftet logresolving  2004-08-01-access.log
i delete  2003-08-01-access.log ?


-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] adding to cron: do I just symlink to /etc/cron.daily ?

2004-08-01 Thread Voytek

Michael Chesterton said:
> My policy (which I wouldn't call proper) is to put local cron stuff
> in a file in /etc/cron.d using an uncommon name to avoid possble name
> collisions. Means I only have one place to look for local cron jobs.
> I leave /etc/crontab and /etc/cron.daily, etc, for the OS. I avoid
> user crontabs, too, I always forget about them.

Michael,

so, in this case,  I'd just put an entry like

02 04 * * * root /usr/local/bin/logsproc

in a file in /etc/cron.d ?



-- 
Voytek
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] looping around directory name, yesterdays' date

2004-08-01 Thread scott
[EMAIL PROTECTED] wrote on 02/08/2004 01:59:54 PM:

> 
> [EMAIL PROTECTED] said:
> 
> > That will do it.
> > it doesn't actually check if it exists, it checks if its greater then 
0
> > bytes (which is probably a better check then -e).
> 
> thanks, yes, no more errors, *and* the logs still gets done.
> 
> just thinking, I might as well delete logs older than 1 year whilst I'm
> doing this:
> 
> can I get date of same MM DD but -1 with 'export date lastyear', or
> how can I do that ?
> 
> so, aftet logresolving  2004-08-01-access.log
> i delete  2003-08-01-access.log ?

date -d "1 year ago" +"%Y-%m-%d"
Should give you what you want.

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Php, Postgres and jpGraph

2004-08-01 Thread Peter Rundle
Sluggers,
bouyed with my success at getting php connected to postgres (thanks 
again Howard) I'm now trying to generate plots out of the database. The 
issue that I'm having is that the X-axis is date/time data, and I want 
to be able to plot and label the axis for data from the last five days.

Pulling bits and pieces off the web I'm almost there but hit issues like 
the auto-labeling in jpgraph puts the same label on twice and stuff like 
that.

Although I'm running this on Linux, this stuff is getting a bit OT for 
this list, so can any php lurkers out there recommend a good php forum/site.

Thanks
Pete.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] FTA

2004-08-01 Thread Matthew Palmer
On Mon, Aug 02, 2004 at 09:25:18AM +1000, Ashley Maher wrote:
> G'day,
> 
> By Ross Gittins the Herald's Economics Editor.

Haha, stick it to the man, Roscoe.  

I saw an editorial in yesterday's Sunday Telegraph about how opposing the
FTA was some sort of isolationist clap-trap.  Apparently rolling over and
selling out to the US is supposed to boost our trade income.  The article
didn't quite manage to elaborate why, though...

- Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Php, Postgres and jpGraph

2004-08-01 Thread Howard Lowndes
On Mon, 2004-08-02 at 14:33, Peter Rundle wrote:
> Sluggers,
> 
> bouyed with my success at getting php connected to postgres (thanks 
> again Howard) I'm now trying to generate plots out of the database. The 
> issue that I'm having is that the X-axis is date/time data, and I want 
> to be able to plot and label the axis for data from the last five days.
> 
> Pulling bits and pieces off the web I'm almost there but hit issues like 
> the auto-labeling in jpgraph puts the same label on twice and stuff like 
> that.
> 
> Although I'm running this on Linux, this stuff is getting a bit OT for 
> this list, so can any php lurkers out there recommend a good php forum/site.

Can it be assumed that you have had a good read of
http://au3.php.net/manual/en/ref.image.php

> 
> Thanks
> 
> Pete.
-- 
Howard.
LANNet Computing Associates;
Your Linux people 
--
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
--
"Flatter government, not fatter government;
Get rid of the Australian states."


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Bigpond cable and WRT054G

2004-08-01 Thread Del
Stuart Guthrie wrote:
Has anyone setup these two to play together nicely. I've just
recommended the WRT054G to a friend and bigpond are not being helpful as
to how to connect. ie pppoe, ppptp dhcp.
I'm sure it can be done, but what incantation?
His setup is (hopefully)
PC . wifi card ~~ WRT054G -- CableModem ---> Bigpond
  ^^ ethernet cable
 ^^^ Wireless
I'm going to answer this by saying that I'm reasonably sure
it can't be done.  Bigpond cable require a proprietary connection
protocol that is not pptp, is not pppoe, and requires a specific
login program that they only provide for Windows and MacOS.
You can get an unsupported one for Linux called bpalogin but
I'm not even going to hazard a guess about how you'd go about
installing that on a WRT054G.
http://bpalogin.sourceforge.net/
--
Del
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] FTA

2004-08-01 Thread Chris Deigan
On another note, tonight there's going to be a story about the FTA
on four corners (ABC - 8:30pm)
Cheers,
Chris.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Bigpond cable and WRT054G

2004-08-01 Thread Stuart Guthrie
Hi Del,

Just a followup. The dhcp client worked! The problem seemed to be that
he had all sorts of other bits of attempted configuration in there. Once
he reset and tried dhcp it worked OK. I guess this means that Bigpond
has altered their setup to be more open standards friendly..?

If it's of interest, I'll get his setup info for future reference.

Thanks for replying Del.


Stuart

On Mon, 2004-08-02 at 15:56, Del wrote:
> Stuart Guthrie wrote:
> > Has anyone setup these two to play together nicely. I've just
> > recommended the WRT054G to a friend and bigpond are not being helpful as
> > to how to connect. ie pppoe, ppptp dhcp.
> > 
> > I'm sure it can be done, but what incantation?
> > 
> > His setup is (hopefully)
> > 
> > PC . wifi card ~~ WRT054G -- CableModem ---> Bigpond
> >   ^^ ethernet cable
> >  ^^^ Wireless
> 
> I'm going to answer this by saying that I'm reasonably sure
> it can't be done.  Bigpond cable require a proprietary connection
> protocol that is not pptp, is not pppoe, and requires a specific
> login program that they only provide for Windows and MacOS.
> 
> You can get an unsupported one for Linux called bpalogin but
> I'm not even going to hazard a guess about how you'd go about
> installing that on a WRT054G.
> 
> http://bpalogin.sourceforge.net/
> 
> -- 
> Del

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Bigpond cable and WRT054G

2004-08-01 Thread Peter Hardy
On 08/02/04 16:30, Stuart Guthrie wrote:
Hi Del,
Just a followup. The dhcp client worked! The problem seemed to be that
he had all sorts of other bits of attempted configuration in there. Once
he reset and tried dhcp it worked OK. I guess this means that Bigpond
has altered their setup to be more open standards friendly..?
If it's of interest, I'll get his setup info for future reference.
Thanks for replying Del.
Stuart
On Mon, 2004-08-02 at 15:56, Del wrote:
Stuart Guthrie wrote:
Has anyone setup these two to play together nicely. I've just
recommended the WRT054G to a friend and bigpond are not being helpful as
to how to connect. ie pppoe, ppptp dhcp.
I'm sure it can be done, but what incantation?
His setup is (hopefully)
PC . wifi card ~~ WRT054G -- CableModem ---> Bigpond
 ^^ ethernet cable
^^^ Wireless
I'm going to answer this by saying that I'm reasonably sure
it can't be done.  Bigpond cable require a proprietary connection
protocol that is not pptp, is not pppoe, and requires a specific
login program that they only provide for Windows and MacOS.
For what it's worth, yes, Telstra saw the light and are gradually 
phasing out the proprietary heartbeat stuff.

New connections are straight DOCSIS, and existing connections are being 
moved over to the new network.

--
Pete
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Which flavour of Linux

2004-08-01 Thread mlh
On Sun, Aug 01, 2004 at 11:36:52AM +0200, Johnny wrote:
> A question like this always has the potential of starting a war, so I'll 
> try be objective.
> [  ]
> Major Dists
>   [ .. ]
> Micky Mouse Dists
>   [ .. ]
> OpenBSD 5.5 gigs


Made my day



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Bigpond cable and WRT054G

2004-08-01 Thread Jeff Waugh


> You can get an unsupported one for Linux called bpalogin but I'm not even
> going to hazard a guess about how you'd go about installing that on a
> WRT054G.

The WRT54G actually supports it, as do most of the third party firmware
projects based on the Linksys (Broadcom) source.

- Jeff

-- 
What's all that about?   http://www.no-name-yet.com/
 
"I've been thinking: I get way too many pieces of e-mail, about 60 a
 day." - Microserfs
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html