Re: [SLUG] multi lingual, multi code page web ?

2003-07-29 Thread Christopher Vance
On Wed, Jul 30, 2003 at 02:34:12PM +, Voytek Eymont wrote:
: > : so: is there a way to co-exist say French and Polish chars.. on one 
: > : web page ? where both require different char. sets ? 
: >
: > utf8? 
: 
: Christopher,
: 
: (that's Unicode, yes ? )

Also ISO 10646.

The most Unix-friendly representation of it, yes.

Pre-Unicode, I might have said ISO 6937, but you would have had a hard
time getting it supported.

: are the common garden browsers (IE) up to it ? I recall being told Unicode

My browsers are happy to show Japanese, so I'd be surprised if they
couldn't do Polish.

: will be the go _once_ the browsers are capable.

Yes.

-- 
Christopher Vance
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] scp syntax

2003-07-29 Thread Jan Schmidt


> On Wed, 2003-07-30 at 15:31, Karl Bowden wrote:
> > scp [EMAIL PROTECTED]:~/stuff/*.doc theotherbox:~/destdir/
> 
> Beware of using a * on an scp, the behaviour greatly depends on the
> shell you're using.
> 

The problem being that a wildcard is expanded against the current
directory you're in, not against the remote directory as you want... 
unless you put it in single quotes to prevent that...  
so,

scp '[EMAIL PROTECTED]:~/stuff/*.doc' theotherbox:~/destdir/ 

will work as you want.

J.
-- 
Jan Schmidt  [EMAIL PROTECTED]

"Computer games don't affect kids; I mean if Pac-Man affected us as
kids, we'd all be running around in darkened rooms, munching magic pills
and listening to repetitive electronic music." - Unknown
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] scp syntax

2003-07-29 Thread Tony Green
On Wed, 2003-07-30 at 15:29, Tony Green wrote:
> On Wed, 2003-07-30 at 15:31, Karl Bowden wrote:
> > scp [EMAIL PROTECTED]:~/stuff/*.doc theotherbox:~/destdir/
> 
> Beware of using a * on an scp, the behaviour greatly depends on the
> shell you're using.

It seems that BASH will work (by fluke) but I know that zsh fails :

http://www.linux-mag.com/2003-03/power_01.html

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] scp syntax

2003-07-29 Thread Tony Green
On Wed, 2003-07-30 at 15:31, Karl Bowden wrote:
> scp [EMAIL PROTECTED]:~/stuff/*.doc theotherbox:~/destdir/

Beware of using a * on an scp, the behaviour greatly depends on the
shell you're using.



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] scp syntax

2003-07-29 Thread Karl Bowden
On Thu, 2003-07-31 at 01:09, Voytek Eymont wrote:
> do I need sshd on my pc to use scp ..?
> 
> I'm trying to copy some files with scp;
> 
> I have installed ssh CLIENT stuff only on my OS/2 pc.
> I did NOT install or configured the sshd stuff 
> 
> I can ssh no probs to the linux box, specify user, it just works
> 
> BUT, what do I need to scp...?
> 
> scp says it wants:
> 
> 0[roman][F:\work\linux]scp
> usage: scp [-pqrvBC1246] [-F config] [-S program] [-P port]
>[-c cipher] [-i identity] [-l limit] [-o option]
>[EMAIL PROTECTED]:]file1 [...] [EMAIL PROTECTED]:]file2
> 
> 1[roman][F:\work\linux\temp]scp koala.sbt.net.au: /etc/httpd/conf/httpd.conf
> 
> RSA key fingerprint is .
> Are you sure you want to continue connecting (yes/no)? 
> yes
> [EMAIL PROTECTED]'s password:
> 
> 1[roman][F:\work\linux\temp]
> 
> it exist with error level 1, and, nothing copied
> 
> what do I need ...?

To tell scp what to copy. eg..
scp [EMAIL PROTECTED]:/etc/httpd/conf/httpd.conf ~/
to copy /etc/httpd/conf/httpd.conf from lisa to your home folder.

scp /etc/httpd/conf/httpd.conf [EMAIL PROTECTED]:/etc/httpd/conf/
to copy /etc/httpd/conf/httpd.conf from the local machine to lisa.

scp [EMAIL PROTECTED]:~/stuff/*.doc theotherbox:~/destdir/

Just like cp, except it lets you put in hostnames as source or dest locations.

-Karl


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] scp syntax

2003-07-29 Thread Brett Fenton
you need sshd on the host not the client.

syntax is:

scp file [EMAIL PROTECTED]:

brett

Voytek Eymont wrote:
do I need sshd on my pc to use scp ..?

I'm trying to copy some files with scp;

I have installed ssh CLIENT stuff only on my OS/2 pc.
I did NOT install or configured the sshd stuff 

I can ssh no probs to the linux box, specify user, it just works

BUT, what do I need to scp...?

scp says it wants:

0[roman][F:\work\linux]scp
usage: scp [-pqrvBC1246] [-F config] [-S program] [-P port]
   [-c cipher] [-i identity] [-l limit] [-o option]
   [EMAIL PROTECTED]:]file1 [...] [EMAIL PROTECTED]:]file2
1[roman][F:\work\linux\temp]scp koala.sbt.net.au: /etc/httpd/conf/httpd.conf

RSA key fingerprint is .
Are you sure you want to continue connecting (yes/no)? 
yes
[EMAIL PROTECTED]'s password:

1[roman][F:\work\linux\temp]

it exist with error level 1, and, nothing copied

what do I need ...?





Voytek Eymont
--
Brett Fenton
General Manager
NetRegistry Pty Ltd
___
http://www.netregistry.com.au/

Tel: +61 2 96996099  |  Fax: +61 2 96996088
PO Box 270 Broadway  |  NSW 2007, Australia
Your Total Internet Business Services Provider
Trusted by 10,000s of Oz Businesses Since 1997


This email is from NetRegistry Pty Ltd. The contents of this message are 
commercial and in confidence to the intended addresseee.

The message may contain copyrighted and/or legally priviledged 
information. No person or entity other than the intended recipient may 
read, print or store this message, including any and all attached files.

The intended recipient may not forward this message to any third party 
without express written permission from NetRegistry Pty Ltd.
	

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] scp syntax

2003-07-29 Thread Voytek Eymont
do I need sshd on my pc to use scp ..?

I'm trying to copy some files with scp;

I have installed ssh CLIENT stuff only on my OS/2 pc.
I did NOT install or configured the sshd stuff 

I can ssh no probs to the linux box, specify user, it just works

BUT, what do I need to scp...?

scp says it wants:

0[roman][F:\work\linux]scp
usage: scp [-pqrvBC1246] [-F config] [-S program] [-P port]
   [-c cipher] [-i identity] [-l limit] [-o option]
   [EMAIL PROTECTED]:]file1 [...] [EMAIL PROTECTED]:]file2

1[roman][F:\work\linux\temp]scp koala.sbt.net.au: /etc/httpd/conf/httpd.conf

RSA key fingerprint is .
Are you sure you want to continue connecting (yes/no)? 
yes
[EMAIL PROTECTED]'s password:

1[roman][F:\work\linux\temp]

it exist with error level 1, and, nothing copied

what do I need ...?





Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Bret Comstock Waldow
On Wed, 2003-07-30 at 10:29, Voytek Eymont wrote:

> hmmm, is that correct to have 127.0.0.1 in this, rather than the proper IP
> address ?
> 
> [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/profiles/default/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1   koala.sbt.net.aukoala   localhost.localdomain   localhos
> t
> [EMAIL PROTECTED] root]#

Izzat the only file you have that lists this?

On mine:
[EMAIL PROTECTED]:~$ cat /etc/hosts
127.0.0.1   ganesha localhost

It's been a while since RH9, but I thought it had 'hosts' in /etc too...

The 127.0.0.1 is the loopback address - it's how your system talks to
itself.  Try 'ifconfig' and you should see an entry for 'lo'.  This *is*
the IP for 'localhost' ("Wherever you go, there you are").

And that's all I know so far about it.

Cheers,
Bret

-- 
bwaldow at alum.mit.edu


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Voytek Eymont
** Reply to note from James Gregory <[EMAIL PROTECTED]> 30 Jul 2003 14:35:42 +1000


> > hmmm, is that correct to have 127.0.0.1 in this, rather than the proper IP 
> > address ? 
> >  
> > [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/profiles/default/hosts 
>  
> whoa, craziness. So, my best guess is that the file you've found is the 
> equivalent of /etc/hosts in a different network "profile" (which I don't 
> know anything about, but probably should). It does raise an interesting 
> point though, you probably want to have both names listed against 
> 127.0.0.1 if you're changing names; it prevents stuff breaking if you 
> forget to update a name somewhere (smtp config for example).


these are the files found

[EMAIL PROTECTED] root]# find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/nul
l
/etc/sysconfig/networking/profiles/default/network
/etc/sysconfig/networking/profiles/default/hosts
/etc/sysconfig/rhn/systemid
/etc/sysconfig/network
/etc/httpd/conf/httpd.conf
/etc/httpd/conf/backup/httpd.conf.29072003
/etc/httpd/conf/backup/httpd.linux
/etc/hosts
/etc/postfix/aliases.db
/etc/hosts.bak



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread James Gregory
On Wed, 2003-07-30 at 14:39, Simon Males wrote:
> James Gregory wrote:
> > find can tell you the answer to this. The file you're looking for is
> > /etc/sysconfig/network.
> 
> [EMAIL PROTECTED] sime]$ cat /etc/sysconfig/network
> NETWORKING=yes

So, you need to add a line that says:

HOSTNAME=something

James.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Jamie Wilkinson
This one time, at band camp, Simon Males wrote:
>James Gregory wrote:
>>find can tell you the answer to this. The file you're looking for is
>>/etc/sysconfig/network.
>
>[EMAIL PROTECTED] sime]$ cat /etc/sysconfig/network
>NETWORKING=yes

Add a line
HOSTNAME=foo.bar
to that file.

-- 
[EMAIL PROTECTED]   http://spacepants.org/jaq.gpg
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] usefulness of DVD-R/RW drive

2003-07-29 Thread Bret Comstock Waldow
Hi folks,

I've got a chance to get one of these somewhat cheaply.  Not cheaply
enough not to think about it though.

It's a Cendyne and it says it does:
DVD+R
DVD+RW
CD-RW
and a list of various CD whatever formats that looks like what my CDRW
drive can already do.

I've got a Thinkpad and an external USB enclosure which holds, and works
with, my CDRW drive.  It's only USB 1.x, so it's limited to 8x burns,
but it does it.  (And the DVD thingie only does 4x anyway.)

The Thinkpad's bay drive reads CD and DVD, including videos (although I
haven't done this in GNU/Linux yet).

What's it good for?  I'm not a video producer, but might make some home
movies for the folks back home.  I like the thought of having an install
DVD of Woody instead of CDs, but it's not a high priorty.

Backups are handled with my now famous, patented "two-hard-disks"
system.

How much utitlity is there in such a gizmo?

Cheers,
Bret

-- 
bwaldow at alum.mit.edu


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Tony Green
On Wed, 2003-07-30 at 14:26, Jan Schmidt wrote:

> grep -rln `hostname` /etc 2> /dev/null

Compact but not always correct.  If there are sockets or other random
(solarisy) things in /etc the grep will 'hang' until it sees an EOF from
the file in question.

The find avoids that by giving '-type f'

Though, the grep does work on my linux box.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Simon Males
James Gregory wrote:
find can tell you the answer to this. The file you're looking for is
/etc/sysconfig/network.
[EMAIL PROTECTED] sime]$ cat /etc/sysconfig/network
NETWORKING=yes
--
Simon Males ([EMAIL PROTECTED])
"Let them hate, so long as they fear"


--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread James Gregory
On Thu, 2003-07-31 at 00:29, Voytek Eymont wrote:
> ** Reply to note from James Gregory <[EMAIL PROTECTED]> 30 Jul 2003 13:41:48 +1000
> 
> 
> > find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null
> 
> James,
> 
> thanks for a handy line !
> 
> hmmm, is that correct to have 127.0.0.1 in this, rather than the proper IP
> address ?
> 
> [EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/profiles/default/hosts

whoa, craziness. So, my best guess is that the file you've found is the
equivalent of /etc/hosts in a different network "profile" (which I don't
know anything about, but probably should). It does raise an interesting
point though, you probably want to have both names listed against
127.0.0.1 if you're changing names; it prevents stuff breaking if you
forget to update a name somewhere (smtp config for example).

So yeah, you'll probably need to update a few files, for each profile
from the looks of things. For reference, this is what I have in the file
I'm talking about:

HOSTNAME=rachmaninoff
NETWORKING=yes

HTH,

James.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] multi lingual, multi code page web ?

2003-07-29 Thread Voytek Eymont
** Reply to note from Christopher Vance <[EMAIL PROTECTED]> Wed, 30 Jul 2003 13:21:45 
+1000


> : so: is there a way to co-exist say French and Polish chars.. on one 
> : web page ? where both require different char. sets ? 
>
> utf8? 
>

Christopher,

(that's Unicode, yes ? )

are the common garden browsers (IE) up to it ? I recall being told Unicode
will be the go _once_ the browsers are capable.



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Voytek Eymont
** Reply to note from James Gregory <[EMAIL PROTECTED]> 30 Jul 2003 13:41:48 +1000


> find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null

James,

thanks for a handy line !

hmmm, is that correct to have 127.0.0.1 in this, rather than the proper IP
address ?

[EMAIL PROTECTED] root]# cat /etc/sysconfig/networking/profiles/default/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   koala.sbt.net.aukoala   localhost.localdomain   localhos
t
[EMAIL PROTECTED] root]#



Voytek Eymont
SBT Information Systems Pty Ltd
http://www.sbt.net.au/links/
phone +61-2 9310-1144 fax +61-2 9310-1118 
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread Jan Schmidt


> 
> find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null
> 

Or, more compactly

grep -rln `hostname` /etc 2> /dev/null

The important part being the -r for recursive grep

J.
-- 
Jan Schmidt  [EMAIL PROTECTED]

ENOSIG
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] can't write superblock when unmounting SMB share

2003-07-29 Thread Douglas Stalker



> Possibly share_images is mounted read-only or if it's a share on another
> machine, it's not allowed to write.


I think that's the problem - The share is a Windows
read-only share, but I had 'rw' in the /etc/fstab line for it.  The
lesson here is be careful when you cut and paste.  :-)

I'll reboot the linux system to kill the connection
(easier than getting permission's changed on the Windows box) and now that
I've fixed the fstab file the problem shouldn't recur.  This also
explains why severla other (read-only) shares were acting a bit erratically.
 

 - Doug



> 
> -Original Message-
> From: Douglas Stalker [mailto:[EMAIL PROTECTED] 
> 
> > > [EMAIL PROTECTED] pristic01]# umount share_images
> > > umount: share_images: can't write superblock
> > > 
> 
> 
> > umount -l ?
> 
> This shows the same problem.  even combining -l with -f fails
to unmount the
> share. 
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] dam mandrake and @localhost

2003-07-29 Thread James Gregory
On Wed, 2003-07-30 at 12:00, Simon Males wrote:
> i have setup my system with various versions of mandrake over time, and 
> i swear by fluke i sometimes stumble upon the 'part' of setting hostname.
> 
> currently my system is called localhost (not very helpful on a network). 
>   Which files should i tickle to set my hostname other than localhost

find can tell you the answer to this. The file you're looking for is
/etc/sysconfig/network. If you were to forget this though, you could
find it with

find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null

though it might be easier to remember the filename :)

You can also get it to pull its hostname from a PTR lookup on the IP it
gets from DHCP, but I can't remember what magic makes that work. It uses
ipcalc to do it IIRC.

HTH

James.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] can't write superblock when unmounting SMB share

2003-07-29 Thread Rowling, Jill
Possibly share_images is mounted read-only or if it's a share on another
machine, it's not allowed to write.
Root on one machine is just Joe Hickey on the other.
On the machine that has the physical disk, you probably need to set the
share rwx for all.
If the machine that has the physical disk is a Windoze thing you might want
to let user "root" to have the same privileges as an admin user on the
Windoze thing.
If it's a Unix of some sort, you would need to enable root user in the fstab
entry for that share.

Regards,

Jill.
-- 
Jill Rowling, System Administrator
Eng. Systems Dept, Aristocrat Technologies Australia
Level 2, 55 Mentmore Ave Rosebery NSW 2018
Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: [EMAIL PROTECTED]

-Original Message-
From: Douglas Stalker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 30 July 2003 1:22 PM
To: Brett Fenton
Cc: [EMAIL PROTECTED]
Subject: Re: [SLUG] can't write superblock when unmounting SMB share




> On Tue, 2003-07-29 at 20:48, Douglas Stalker wrote:
> > RedHat 9.0, SAMBA 3.0.0beta3
> > 

> > [EMAIL PROTECTED] pristic01]# umount share_images
> > umount: share_images: can't write superblock
> > 


> umount -l ?

This shows the same problem.  even combining -l with -f fails to unmount the
share. 

 - Doug 
  

--
IMPORTANT NOTICES
This email (including any documents referred to in, or attached, to this
email) may contain information that is personal, confidential or the subject
of copyright or other proprietary rights in favour of Aristocrat, its
affiliates or third parties. This email is intended only for the named
addressee. Any privacy, confidence, copyright or other proprietary rights in
favour of Aristocrat, its affiliates or third parties, is not lost because
this email was sent to you by mistake.

If you received this email by mistake you should: (i) not copy, disclose,
distribute or otherwise use it, or its contents, without the consent of
Aristocrat or the owner of the relevant rights; (ii) let us know of the
mistake by reply email or by telephone (+61 2 9413 6300); and (iii) delete
it from your system and destroy all copies.

Any personal information contained in this email must be handled in
accordance with applicable privacy laws.

Electronic and internet communications can be interfered with or affected by
viruses and other defects. As a result, such communications may not be
successfully received or, if received, may cause interference with the
integrity of receiving, processing or related systems (including hardware,
software and data or information on, or using, that hardware or software).
Aristocrat gives no assurances in relation to these matters.

If you have any doubts about the veracity or integrity of any electronic
communication we appear to have sent you, please call +61 2 9413 6300 for
clarification.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread James Gregory
On Tue, 2003-07-29 at 23:00, Brett Fenton wrote:
> On Wed, 2003-07-30 at 08:54, Angus Lees wrote:
> 
> > vi: :%s/.$//
> >  - which is a cop-out, since I can never remember how to put a literal
> >\r in
> 
> :%s;\r;;g

or ctrl-v ctrl-m to get the character you want in the regex.

James.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Display a block of lines in the middle of a file

2003-07-29 Thread Broun, Bevan
this should be at the  seder grabbag in one of the one liners

http://sed.sourceforge.net/grabbag/tutorials/testo.htm

in fact it is but Ill leave it to you to find it as there is so much other
wonderful sed stuff there to look at.

BB

on Wed, Jul 30, 2003 at 01:00:24PM +1000, James Gray <[EMAIL PROTECTED]> wrote:
> Hi All,
> 
> A bit  of a weird one, but I was wondering if anyone knows a simpler way to 
> display a block of lines in the middle of a file.  Say lines 10-25 from 
> /var/log/messages?  I'm currently doing it like this:
> 
> head -25 /var/log/messages | tail -15
> 
> Any other ideas??
> 
> -- James
> __
> 
> A random quote of nothing:
> 
> As Zeus said to Narcissus, "Watch yourself."
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] can't write superblock when unmounting SMB share

2003-07-29 Thread Douglas Stalker


> On Tue, 2003-07-29 at 20:48, Douglas Stalker wrote:
> > RedHat 9.0, SAMBA 3.0.0beta3
> > 

> > [EMAIL PROTECTED] pristic01]# umount share_images
> > umount: share_images: can't write superblock
> > 


> umount -l ?

This shows the same problem.  even combining
-l with -f fails to unmount the share.

 - Doug
 
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] multi lingual, multi code page web ?

2003-07-29 Thread Christopher Vance
On Tue, Jul 29, 2003 at 09:23:17PM +, Voytek Eymont wrote:
: so: is there a way to co-exist say French and Polish chars.. on one
: web page ? where both require different char. sets ?

utf8?

-- 
Christopher Vance
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Display a block of lines in the middle of a file

2003-07-29 Thread James Gray
Hi All,

A bit  of a weird one, but I was wondering if anyone knows a simpler way to 
display a block of lines in the middle of a file.  Say lines 10-25 from 
/var/log/messages?  I'm currently doing it like this:

head -25 /var/log/messages | tail -15

Any other ideas??

-- James
__

A random quote of nothing:

As Zeus said to Narcissus, "Watch yourself."

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Andrew McNaughton
On Wed, 30 Jul 2003, Voytek Eymont wrote:

> ** Reply to note from Andrew McNaughton <[EMAIL PROTECTED]> Wed, 30 Jul 2003 
> 12:43:19 +1200 (NZST)
>
>
> Andrew,
>
>
> > we turned KeepAlive on (contrary to stuff I'd heard earlier) and cut the
> > KeepAliveTimeout to 1 second.
>
> that similar to what we done few years back, set it 'ON', when we had a
> busy site serving like 10 hits/sec and saturating 128 link

If bandwidth is your bottleneck (or is expensive), look at using mod_gzip.
Very occasionally you get a problem because someone's behind a broken
proxy, but for the most part it works like a charm, and cuts your traffic
drastically.  Should only be used on content that's not allready
compressed already, not your gifs, jpegs, etc.

Andrew




--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

---
Andrew McNaughton   In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] dam mandrake and @localhost

2003-07-29 Thread Simon Males
i have setup my system with various versions of mandrake over time, and 
i swear by fluke i sometimes stumble upon the 'part' of setting hostname.

currently my system is called localhost (not very helpful on a network). 
 Which files should i tickle to set my hostname other than localhost

currently sitting on 9.1 (really cool if you add 'cooker' and 'plf' 
sources, equiv to deb's testing and non-free etc)

--
Simon Males ([EMAIL PROTECTED])
"Let them hate, so long as they fear"
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] rhn system profile: real IP or 127.0.0.1 ?

2003-07-29 Thread Voytek Eymont
Q for anyone using RHN:

does your RHN profile reflect the hosts's proper IP address, or,
'127.0.0.1' ?

I've set up a RH73 machine, it registered OK on RHN, it gets updates OK
from RHN, 

basically , it works all OK as far as I can tell,

but, RHN profile for this has 
CORRECT hostname, but 'IP Address: 127.0.0.1'

is that supposed to be like that, or, have I got some misconfiguration
somewhere ..? 
(the system was installed stand-alone with dial up modem for updates,
only after it was given an IP address, perhaps I overlooked something
when it was given a real host address/name ?)



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Andrew McNaughton

On Wed, 30 Jul 2003, Voytek Eymont wrote:

> ** Reply to note from Andrew McNaughton <[EMAIL PROTECTED]> Wed, 30 Jul 2003 
> 12:44:32 +1200 (NZST)
>
> > Are you using mod_perl, or just perl CGI?
> >
> > I doubt mrtg is running so often as to be a performance bottleneck?
>
> Andrew,
>
> at this time, I think, the only perl we use is in mrtg;
> a friend of mine asked me to run a small 'dynamic' site that someone
> is supposed to do in perl, I guess, that might be mod_perl.
>
> again, it will be rather narrow interest site, so, I don't expect much
> usage.

I expect you're using some CGI scripts rather than mod_perl (which builds
perl into the apache engine).  That commented out code you had only has
any effect if you're using mod_perl.

Andrew


--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

---
Andrew McNaughton   In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] tiff - multi-page viewer solution

2003-07-29 Thread Stuart Guthrie
Voytek wrote:

would you mind emailing me a demo fax page as well it's PDF, just curious
what results you get, I tried that a long time ago, using acrobat (or, I
should say, some used a crobat to convert my scanned stuff), and, I wsn't
impressed in the qulity.
Quality was OK. Can't send you a demo as its all confidential info.

how do your file sizes compare tiff vs pdf ?
See below, pdf was smaller than original tif:

-rw-r--r--1 sfg  sfg275868 Jul 23 10:56 178ace2.tif
-rw-r--r--1 sfg  sfg231101 Jul 30 08:18 178ace2.tif.pdf
Stu

Voytek Eymont wrote:

** Reply to note from Stuart Guthrie <[EMAIL PROTECTED]> Wed, 30 Jul 2003 08:32:03 +1000

Stuart

 

Receiving faxes via efax/jfax whatever. All come in as multi-page tif.  
Which apparently is a bit of a standard in 'document management  
software' circles.
   

yes, I believe they mainly use TIFF-F (which is what my fax app uses,
incidentally, as does my scan app)
 

Current solution: Provides a script to convert the MPtiff to pdf and  
view it in xpdf.
   

would you mind emailing me a demo fax page as well it's PDF, just curious
what results you get, I tried that a long time ago, using acrobat (or, I
should say, some used a crobat to convert my scanned stuff), and, I wsn't
impressed in the qulity
how do your file sizes compare tiff vs pdf ?

/when this perosn converted for me, they bragged, look how much smaller it
is than your fax, after I looked at it, I could see why it was smaller/
anyhow, I'll keep your script 'for future use'

Voytek Eymont
 



--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] tiff - multi-page viewer solution

2003-07-29 Thread Anthony Wood
On Wed, Jul 30, 2003 at 08:32:03AM +1000, Stuart Guthrie wrote:
> User requirement:
> 
> Receiving faxes via efax/jfax whatever. All come in as multi-page tif. 
> Which apparently is a bit of a standard in 'document management 
> software' circles.
> 
> Perfect solution: To provide in the combo box on the evolution email, an 
> option to view all pages (electric eyes only shows the first one! So 
> does the gimp etc.)  and to print them.
> 
> Current solution: Provides a script to convert the MPtiff to pdf and 
> view it in xpdf.
> 
> 
>  >cat /usr/local/bin/viewtiff
> #!/bin/sh
> convert $1 $1.ps
> ps2pdf $1.ps
> rm $1.ps
> xpdf $1.pdf
> 
> This will convert a tiff to pdf and view it in xpdf.  Interestingly 
> 'convert' did a really bad job of multi-page tif to pdf direct. ps2pdf 
> was much better. Also it's fast, less than a second to do 6 pages to pdf 
> from tif. Probably due to what Gus mentioned about tif just being a wrapper.

fax2pdf does a fabulous job of converting tiff/g3 to PDF, the PDF comes out smaller or
about the same size, and the quality is the same, but the PDF viewer
anti-aliases etc so it looks better and is more readable.

> Using Gnome, I've added it to Nautilus scripts so the user can do it on 
> the current focused file target. To add to Nautilus' scripts I put it in 
> /home/user/.gnome2/nautilus-scripts/.
> 
> I've tried using gnomes file types to make it available direct in 
> evolution but it doesn't seem to hang together.
> 
> If I crack that I'll post it.
> 
> HTHSomeone
> 
> Stu
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug

-- 
Woody
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Voytek Eymont
** Reply to note from Andrew McNaughton <[EMAIL PROTECTED]> Wed, 30 Jul 2003 12:44:32 
+1200 (NZST)


> Are you using mod_perl, or just perl CGI? 
>
> I doubt mrtg is running so often as to be a performance bottleneck?

Andrew,

at this time, I think, the only perl we use is in mrtg;
a friend of mine asked me to run a small 'dynamic' site that someone
is supposed to do in perl, I guess, that might be mod_perl.

again, it will be rather narrow interest site, so, I don't expect much
usage.

I guess I'll just wait'n'see

Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Voytek Eymont
** Reply to note from Andrew McNaughton <[EMAIL PROTECTED]> Wed, 30 Jul 2003 12:43:19 
+1200 (NZST)


Andrew,


> we turned KeepAlive on (contrary to stuff I'd heard earlier) and cut the 
> KeepAliveTimeout to 1 second.  

that similar to what we done few years back, set it 'ON', when we had a
busy site serving like 10 hits/sec and saturating 128 link

main language we use is PHP, I don't expect much mod_perl usage, if any,
and, currently, most sites are low traffic. 

I guess I need to look at server-info every so often and asses

Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] tiff - multi-page viewer solution

2003-07-29 Thread Chris Johns
Stuart Guthrie wrote:
This will convert a tiff to pdf and view it in xpdf.  Interestingly 
'convert' did a really bad job of multi-page tif to pdf direct. ps2pdf 
was much better. Also it's fast, less than a second to do 6 pages to pdf 
from tif. Probably due to what Gus mentioned about tif just being a 
wrapper.

Incase you did not know, you can append ps files (one per page) together then convert 
the resulting file to PDF to get a single multi-page pdf fax. I use this with faxes 
received directly by mgetty+sendfax.

--
 Chris Johns, cjohns at cybertec . com . au
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Andrew McNaughton

Are you using mod_perl, or just perl CGI?

I doubt mrtg is running so often as to be a performance bottleneck?

Andrew

On Tue, 29 Jul 2003, Voytek Eymont wrote:

> ** Reply to note from Voytek Eymont <[EMAIL PROTECTED]> Tue, 29 Jul 2003 21:07:47
>
>
> > any thoughts on starting values for httpd.conf options like:
>
> also:
>
> this should be enabled, yes ?
>
> 'CacheNegotiatedDocs'
>
> should I also enable the perl section:
>
> #
> #Alias /perl /var/www/perl
> #
> #SetHandler perl-script
> #PerlHandler Apache::Registry
> #Options +ExecCGI
> #
> #
>
> mrtg uses perl, so, that should help ...?
>
>
>
> Voytek Eymont
>

--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

---
Andrew McNaughton   In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Andrew McNaughton

This stuff tends to be quite dependent on the server.  Among other things
it depends on the kind of traffic pattern you get, the ammount of memory
you have, what's compiled into apache (especially if you use mod_perl).

My site (www.scoop.co.nz) got slashdotted 3 weeks back, and the main
problem we hit was with sockets left half open.  It's running on FreeBSD,
so bumping up the number of sockets on the system (to about 1) with
sysctl was the first change.  That was enough to stop errors for a short
while after a server restart, but the problems weren't really solved till
we turned KeepAlive on (contrary to stuff I'd heard earlier) and cut the
KeepAliveTimeout to 1 second.  This means that the images on a page will
generally go through the same socket as the html, but that the socket will
get freed in between.  After that we ran quite happily with about 30%
CPU and disk resource utilization.

The Scoop server runs with two apache daemon clusters, one with a light
weight apache proxying dynamic stuff on to a heavy weight mod_perl server.
As such the settings for most of the parameters you ask about are
different on each of the two servers, and probably not a good guide to
setting up in your situation.

Andrew McNaughton



On Tue, 29 Jul 2003, Voytek Eymont wrote:

> any thoughts on starting values for httpd.conf options like:
>
> (defaults)
> Timeout 300
> KeepAlive Off
> MaxKeepAliveRequests 100
> KeepAliveTimeout 15
> MinSpareServers 5
> MaxSpareServers 20
> StartServers 8
> MaxClients 150
> MaxRequestsPerChild 1000
>
> (just looking on my OS/2 Apache, for reasons that I no longer recall,
> values were modifed or set as follows: (but that was some years ago, with a
> system somewhat less resources)
>
> Timeout 60
> KeepAlive On
> MaxKeepAliveRequests 100
> KeepAliveTimeout 10
> MinSpareServers 5
> MaxSpareServers 10
> StartServers 5
> MaxClients 150
> MaxRequestsPerChild 100
>
> Voytek Eymont
>

--

No added Sugar.  Not tested on animals.  May contain traces of Nuts.  If
irritation occurs, discontinue use.

---
Andrew McNaughton   In Sydney
Working on a Product Recommender System
[EMAIL PROTECTED]
Mobile: +61 422 753 792 http://staff.scoop.co.nz/andrew/cv.doc



-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] tiff - multi-page viewer solution

2003-07-29 Thread Angus Lees
At Wed, 30 Jul 2003 08:32:03 +1000, Stuart Guthrie wrote:
> Receiving faxes via efax/jfax whatever. All come in as multi-page tif. 
> Which apparently is a bit of a standard in 'document management 
> software' circles.

For what its worth, the "best" format for scanned (or faxed) documents
sounds like its "DjVu".  I've never tried it myself, but there's a
bunch of conversion tools/display programs/browser plugins for it
packaged for Debian under the names "djview" and "djvulibre".

If you can install the appropriate windows software, this sounds like
a very nice format speed+size-wise for these types of documents -
particularly if you want to archive/serve them through HTTP.



Alternatively, you could use the "tiffsplit" tool from libtiff and a
bit of shell coding to split the file and attach multiple PNGs or
something to the email.  This may make archiving harder though.

You could also use a similar shell script on the MUA end, by dropping
a similar command line into /etc/mailcap or ~/.mailcap.  I can't
remember whether evolution honours mailcap or whether its like the
rest of those sucky GNOME programs that have forgotten what makes UNIX
great in the course of trying to make UNIX greater(*).

(*) blatently unnecessary troll.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Angus Lees
At Tue, 29 Jul 2003 23:30:18 , Voytek Eymont wrote:
> [EMAIL PROTECTED] voytek]# tr -d '[\200-\377]'  unixfile1
> didn't work...

no it wouldn't since \r is \015, which isn't between \200 and \377.
(see "man ascii")

the above command would strip "8 bit characters" (the top half of the
charset - which has bit 8 set).  \r and the other "control characters"
are below \040, not in the top half of the charset.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] tripwire, is it practical & worthwile ? or, a 'great idea' ?

2003-07-29 Thread Voytek Eymont
I see the cron on my RH73 is attempting to run tripwire

-
>From   [EMAIL PROTECTED] (Cron Daemon)
To  [EMAIL PROTECTED]
DateTue, 29 Jul 2003 14:02:25 -0400 (EDT)
Subject Cron <[EMAIL PROTECTED]> run-parts /etc/cron.daily

..
/etc/cron.daily/tripwire-check:

Error: Tripwire database for abc  not found.
 Run /etc/tripwire/twinstall.sh and/or tripwire --init. 
-

I have perused tripwire info during install, hence, more or less understand
what it does (but, as yet, have not initilaized it, contrary to tripwire's
suggestion of doing so as soon as system is built..)

Q: is tripwire practical and worthwile to use, do others use it ?? (or, is
it one of those 'great ideas' that 'a great idea' ??)

Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] tiff - multi-page viewer solution

2003-07-29 Thread Stuart Guthrie
User requirement:

Receiving faxes via efax/jfax whatever. All come in as multi-page tif. 
Which apparently is a bit of a standard in 'document management 
software' circles.

Perfect solution: To provide in the combo box on the evolution email, an 
option to view all pages (electric eyes only shows the first one! So 
does the gimp etc.)  and to print them.

Current solution: Provides a script to convert the MPtiff to pdf and 
view it in xpdf.

>cat /usr/local/bin/viewtiff
#!/bin/sh
convert $1 $1.ps
ps2pdf $1.ps
rm $1.ps
xpdf $1.pdf
This will convert a tiff to pdf and view it in xpdf.  Interestingly 
'convert' did a really bad job of multi-page tif to pdf direct. ps2pdf 
was much better. Also it's fast, less than a second to do 6 pages to pdf 
from tif. Probably due to what Gus mentioned about tif just being a wrapper.

Using Gnome, I've added it to Nautilus scripts so the user can do it on 
the current focused file target. To add to Nautilus' scripts I put it in 
/home/user/.gnome2/nautilus-scripts/.

I've tried using gnomes file types to make it available direct in 
evolution but it doesn't seem to hang together.

If I crack that I'll post it.

HTHSomeone

Stu

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


RE: [SLUG] Quiet keyboards

2003-07-29 Thread Robert Tillsley
I have one of those old IBM ones as well. My wife made me buy her a new one
when I tried to hand it down to her...

Made me feel like I was using a typewriter.

Cheers

Rob T

> -Original Message-
> From: Richard Neal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 29 July 2003 10:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [SLUG] Quiet keyboards
> 
> 
> Hai
> 
> Its funny Ive got an old IBM keyboard circa 1981 and it makes the
> average keyboard of today sound absolutely dead quiet.
> 
> Ok back to your problem
> 
> Its like this any plastic keyboard or any keyboard using plastic keys
> will "click" thanks to the return spring.
> 
> All is not lost though you can buy a cheap 101 rubber 
> keyboard (they are
> also water proof and can be folded) cheaply, in at least 2 of the
> electronics shops behind the QVB building in the city.
> 
> Also some computer parts shops sell them they are dead silent and you
> don't have to worry about the cup of coffee spilling on the 
> thing (in my
> case beer).
> 
> Regards
> Richard  Neal
> 
> News report 2065 July 15
> Today Microsoft has introduced a new per slice of bread license for
> their Microsoft Bread Toaster (TM)...it was heard commented from a
> pensioner just before being dragged away by the Microsoft 
> thought police
> hah I warned you you should have all used Linux
> For more watch the news on MSN -- we know you watch us there isn't
> anyone else
> 
> 
> On Tue, 2003-07-29 at 12:49, Andrew Monkhouse wrote:
> > Not quite Linux I know, but 
> > 
> > SWMBO is complaining about the noise I am making while typing. I do 
> > have a noisy keyboard, and I type fast, which makes for a 
> lot of fast 
> > loud clicks, which gets her heart racing.
> > 
> > So I am looking for a very quiet keyboard. Must be compatible with 
> > Linux (cannot imagine any problems with that though).
> > 
> > Anyone have any suggestions?
> > 
> > Regards, Andrew
> Richard Neal <[EMAIL PROTECTED]>
> 
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
> 

*
This mail, including any attached files may contain
confidential and privileged information for the sole
use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.
If you are not the intended receipient (or authorised to 
receive information for the recipient), please contact 
the sender by reply e-mail and delete all copies of
this message.
*
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] httpd dead but subsys locked

2003-07-29 Thread Garres, Erik








Hello slug

 

I friend help me with that

 

shutdown  -Fr now

 

if that doen’t work, then will have to reinstall apache.

 

Cheer

 

Erik Garres
Comspec
Communications, Inc. 

phone:  416.785.3553
x239|  [EMAIL PROTECTED] 
mobile:
416.807.3411       
|  http://comspec.com 



 






<>-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] C - exec fn call & env vars

2003-07-29 Thread mlh
The unix programming faq discusses this.
It's not really a C question.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] [OT] mergeant and oracle

2003-07-29 Thread Richard Heycock
Has anyone had any joy running mergeant with Oracle? The gnome-db web
site says that it supports Oracle but I haven't had much joy. I'm
running debian unstable.

Thanks

rgh

-- 
"It is possible to make things of great complexity out of things
 that are very simple. There is no conservation of simplicity"
 -- Stephen Wolfram

Richard Heycock <[EMAIL PROTECTED]>
tel : 0410 646 369
key fingerprint : 909D CBFA C669 AC2F A937 AFA4 661B 9D21 EAAB 4291
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Greg Hosler

On 30-Jul-2003 Voytek Eymont wrote:
> ** Reply to note from Mary <[EMAIL PROTECTED]> Tue, 29 Jul 2003 21:50:53
> +1000
> 
> 
>> The command dos2unix will do this.
> 
> thanks, Mary
> 
> is this part of some utilities ? my RH73 seems devoid of it:

it's there. look for the dos2unix package. it's on disc 2.

best rgds,

-Greg

> [EMAIL PROTECTED] etc]# dos2unix
> bash: dos2unix: command not found
> [EMAIL PROTECTED] etc]# whereis dos2unix
> dos2unix:
> [EMAIL PROTECTED] etc]# apropos dos2unix
> dos2unix: nothing appropriate
> [EMAIL PROTECTED] etc]#
> 
> 
> Voytek Eymont
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug

+-+
   You can release software that's good, software that's inexpensive, or
   software that's available on time.  You can usually release software
   that has 2 of these 3 attributes -- but not all 3.
| Greg Hosler   [EMAIL PROTECTED]|
+-+
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Voytek Eymont
** Reply to note from Angus Lees <[EMAIL PROTECTED]> Tue, 29 Jul 2003 22:54:54 +


Angus, Brett, 

thanks, one worked, one did not:


[EMAIL PROTECTED] voytek]# tr -d '\r' < httpd.linux > unixfile2

worked OK

[EMAIL PROTECTED] voytek]# tr -d '[\200-\377]'  unixfile1

didn't work...

-rw-r--r--1 voytek   voytek  18638 Jul 29 21:52 httpd.8859-1.linux
-rw-r--r--1 voytek   voytek  19320 Jul 29 21:36 httpd.linux
-rw-r--r--1 root root19316 Jul 29 23:24 unixfile1
-rw-r--r--1 root root18638 Jul 29 23:24 unixfile2




Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Brett Fenton
On Wed, 2003-07-30 at 08:54, Angus Lees wrote:

> vi: :%s/.$//
>  - which is a cop-out, since I can never remember how to put a literal
>\r in

:%s;\r;;g

brett
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Angus Lees
At Tue, 29 Jul 2003 21:50:53 +1000, Mary wrote:
> On Tue, Jul 29, 2003, Voytek Eymont wrote:
> > - what can I use to strip the CR ?
> The command dos2unix will do this.

"tr -d '\r' < dosfile > unixfile" will also do the trick for simple
cases.


I usually just load it up in an editor (emacs or vi) and delete the
\r's using the normal "replace all strings matching" functionality.

vi: :%s/.$//
 - which is a cop-out, since I can never remember how to put a literal
   \r in

emacs: M-x replace-string RET
   C-q RET RET
   RET
 - ie: replace literal RET (C-q "quotes" the next key) with the empty
   string

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Mary
On Tue, Jul 29, 2003, Voytek Eymont wrote:
> ** Reply to note from Mary <[EMAIL PROTECTED]> Tue, 29 Jul 2003 21:50:53 +1000
> 
> 
> > The command dos2unix will do this.
> 
> thanks, Mary
> 
> is this part of some utilities ? my RH73 seems devoid of it:

Google (search phrase "dos2unix red hat") gave me this as the fourth
result:

http://rpmfind.net/linux/RPM/redhat/7.3/i386/dos2unix-3.1-10.i386.html

Here's an Australian mirror of the RPM:
http://mirror.aarnet.edu.au/pub/redhat/redhat-7.3/en/os/i386/RedHat/RPMS/dos2unix-3.1-10.i386.rpm

Worth looking on your CDs (if you have them) and in the directory
http://mirror.aarnet.edu.au/pub/redhat/redhat-7.3/en/os/i386/RedHat/RPMS/
the next time you're looking for Red Hat 7.3 software.

-Mary
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Brett Fenton
tr -d '[\200-\377]' outfile

-d deletes

\200-\377 is all non-ascii characters

 is the http.conf you have
outfile is the stream output

brett

On Wed, 2003-07-30 at 07:47, Voytek Eymont wrote:
> I just edited httpd.conf on a non-*nix machine, and, now have have lots of
> CtrlMs in the file:
> 
> I uploaded the file back to linux machine, and, it seems OK, it looks OK in
> an editor, though, mc shows the CtrlM
> 
> I know there is the issue of CR/LF vs LF vs CR DOS/*nix/Mac, BUT will it
> cause real problems ?
> 
> - what can I use to strip the CR ?
> - will it cause any prbs if I was to leave the CR in the httpd.conf ?
> 
> 
> 
> 
> Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Quiet keyboards

2003-07-29 Thread Richard Neal
Hai

Its funny Ive got an old IBM keyboard circa 1981 and it makes the
average keyboard of today sound absolutely dead quiet.

Ok back to your problem

Its like this any plastic keyboard or any keyboard using plastic keys
will "click" thanks to the return spring.

All is not lost though you can buy a cheap 101 rubber keyboard (they are
also water proof and can be folded) cheaply, in at least 2 of the
electronics shops behind the QVB building in the city.

Also some computer parts shops sell them they are dead silent and you
don't have to worry about the cup of coffee spilling on the thing (in my
case beer).

Regards
Richard  Neal

News report 2065 July 15
Today Microsoft has introduced a new per slice of bread license for
their Microsoft Bread Toaster (TM)...it was heard commented from a
pensioner just before being dragged away by the Microsoft thought police
hah I warned you you should have all used Linux
For more watch the news on MSN -- we know you watch us there isn't
anyone else


On Tue, 2003-07-29 at 12:49, Andrew Monkhouse wrote:
> Not quite Linux I know, but 
> 
> SWMBO is complaining about the noise I am making while typing. I do 
> have a noisy keyboard, and I type fast, which makes for a lot of fast 
> loud clicks, which gets her heart racing.
> 
> So I am looking for a very quiet keyboard. Must be compatible with 
> Linux (cannot imagine any problems with that though).
> 
> Anyone have any suggestions?
> 
> Regards, Andrew
Richard Neal <[EMAIL PROTECTED]>

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Voytek Eymont
** Reply to note from Mary <[EMAIL PROTECTED]> Tue, 29 Jul 2003 21:50:53 +1000


> The command dos2unix will do this.

thanks, Mary

is this part of some utilities ? my RH73 seems devoid of it:

[EMAIL PROTECTED] etc]# dos2unix
bash: dos2unix: command not found
[EMAIL PROTECTED] etc]# whereis dos2unix
dos2unix:
[EMAIL PROTECTED] etc]# apropos dos2unix
dos2unix: nothing appropriate
[EMAIL PROTECTED] etc]#


Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] Apache: single directive to protect /admin/ on all vhosts ? OptionsInludes ?

2003-07-29 Thread Voytek Eymont

is there a way (how ?) to put a single directive to password-protect same
name directory across all v-hosts I have ?

at the moment, I use an individual directive for each vhost, can I use like
a wild card char in dir path, like:

..

..


instead of

..

..

..
etc, etc

---

one of my v hosts uses includes like:

..

..

is 'Options +Includes' *all* it needs ?


..

Options -Indexes FollowSymLinks +IncludesNOEXEC
AddDefaultCharset iso-8859-2

..


it doesn't seem to work, what have I forgot ?

Voytek Eymont

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] anti-nimda apache conf mods ?

2003-07-29 Thread Voytek Eymont
** Reply to note from Andrew McNaughton <[EMAIL PROTECTED]> Fri, 18 Jul 2003 14:48:26 
+1200 (NZST)


> server if you don't already have it.  Try this for the same effect: 

> Andrew 

 
> > > are there any worthwile httpd.conf mods to minimize impact or ? 
> > 
> > This rejects the request without logging it: 
> >

Andrew, John, 

thanks.

so, basically, this simply doesn't register on my logs the hits, yes ?
BUT, I'm still sending error 403 or whatever is the error, to the requester,
yes ?

I was thinking more in terms of trying to reduce the footprint of the
traffic served, like, sending a tiny reponse, rather than the error, like:

AliasMatch /scripts/ /apache/htdocs/errordocs/na.html
AliasMatch /msadc/ /apache/htdocs/errordocs/na.html
AliasMatch /MSADC/ /apache/htdocs/errordocs/na.html
AliasMatch /winnt/ /apache/htdocs/errordocs/na.html
AliasMatch /system32/ /apache/htdocs/errordocs/na.html
AliasMatch /_vti_bin/ /apache/htdocs/errordocs/na.html
AliasMatch /_mem_bin/ /apache/htdocs/errordocs/na.html
AliasMatch /root\.exe /apache/htdocs/errordocs/na.html
AliasMatch /cmd\.exe /apache/htdocs/errordocs/na.html
AliasMatch /Admin\.dll /apache/htdocs/errordocs/na.html
AliasMatch /default\.ida /apache/htdocs/errordocs/na.html

with 

[E:\apache]cat \apache\htdocs\errordocs\na.html
Not allowed

does that make sense ?



Voytek Eymont

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Mary
On Tue, Jul 29, 2003, Voytek Eymont wrote:
> - what can I use to strip the CR ?

The command dos2unix will do this.

-Mary
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Voytek Eymont
** Reply to note from Voytek Eymont <[EMAIL PROTECTED]> Tue, 29 Jul 2003 21:07:47 


> any thoughts on starting values for httpd.conf options like:

also:

this should be enabled, yes ?

'CacheNegotiatedDocs'

should I also enable the perl section:

#
#Alias /perl /var/www/perl
#
#SetHandler perl-script
#PerlHandler Apache::Registry
#Options +ExecCGI
#
#

mrtg uses perl, so, that should help ...?



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] stripping CtrlM: CRLF vs LF vs CR dillema

2003-07-29 Thread Voytek Eymont
I just edited httpd.conf on a non-*nix machine, and, now have have lots of
CtrlMs in the file:

I uploaded the file back to linux machine, and, it seems OK, it looks OK in
an editor, though, mc shows the CtrlM

I know there is the issue of CR/LF vs LF vs CR DOS/*nix/Mac, BUT will it
cause real problems ?

- what can I use to strip the CR ?
- will it cause any prbs if I was to leave the CR in the httpd.conf ?




Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] can't write superblock when unmounting SMB share

2003-07-29 Thread Brett Fenton
umount -l ?

On Tue, 2003-07-29 at 20:48, Douglas Stalker wrote:
> RedHat 9.0, SAMBA 3.0.0beta3
> 
> I'm having problems unmounting a remote SMB share, and I'd like to get
> it unmounted without resorting to rebooting the linux system.  The
> problem I get when trying to unmount it:
> 
> [EMAIL PROTECTED] pristic01]# umount share_images
> umount: share_images: can't write superblock
> 
> I also can;t go into the directory:
> bash: cd: share_images: Input/output error
> 
> 
> Does anyone know any tricks to forcefully unmount the directory?
> 
> 
> 
> 
>   Doug Stalker
> 
> Technical Support Engineer
> Rational Software, an IBM CompanyPhone: +612-9419-0111
> Fax: +612-9419-0123
> Email: [EMAIL PROTECTED]
> Web: http://www.rational.com/support
> Did you know you can search for solutions at:
> http://solutions.rational.com/solutions/
> 
> __
> -- 
> SLUG - Sydney Linux User's Group - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] multi lingual, multi code page web ?

2003-07-29 Thread Voytek Eymont
is anyone familiar with 'multi code-page' web pages ?

I kinda mastered 'fixed bi-lingual' web pages where we needed to display
Polish 'ogonki' ISO Latin2 chars, we set the vhost to ISO Latin2
; that allowed the use of English as well as Polish ogonki chars
withing the page (as English chars use the lower 127 characters, and,
Polish uses both)

then, I needed to use French characters, which caused a problem.

so, we set a /french directory, and, defaulted it back to 'ISO Latin1',
which allowed French, but, not ogonki anymore

so: is there a way to co-exist say French and Polish chars.. on one
web page ? where both require different char. sets ?

apart from setting Directory / AddDefaultCharset, is there some other
way..?


AddDefaultCharset iso-8859-2


I see there is some directives in httpd.conf using language extensions... I
guess I need to look at that, but, any expirences or advise welcomed.



Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] httpd.conf performance options suggestions

2003-07-29 Thread Voytek Eymont
any thoughts on starting values for httpd.conf options like:

(defaults)
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
MaxRequestsPerChild 1000

(just looking on my OS/2 Apache, for reasons that I no longer recall,
values were modifed or set as follows: (but that was some years ago, with a
system somewhat less resources)

Timeout 60
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 10
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 100

Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] can't write superblock when unmounting SMB share

2003-07-29 Thread Douglas Stalker

RedHat 9.0, SAMBA 3.0.0beta3

I'm having problems unmounting a remote
SMB share, and I'd like to get it unmounted without resorting to rebooting
the linux system.  The problem I get when trying to unmount it:

[EMAIL PROTECTED] pristic01]# umount share_images
umount: share_images: can't write superblock

I also can;t go into the directory:
bash: cd: share_images: Input/output
error


Does anyone know any tricks to forcefully
unmount the directory?




      Doug Stalker

Technical Support Engineer
Rational Software, an IBM CompanyPhone: +612-9419-0111
Fax: +612-9419-0123
Email: [EMAIL PROTECTED]
Web: http://www.rational.com/support
Did you know you can search for solutions at: http://solutions.rational.com/solutions/-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


up2date -f kernel did; Re: [SLUG] updating kernel, reboot after ?

2003-07-29 Thread Voytek Eymont
** Reply to note from Jamie Wilkinson <[EMAIL PROTECTED]> Mon, 28 Jul 2003 22:53:32 
+1000

> Try up2date -f kernel from the commandline.

Jamie,

that worked pefectly, thanks.

uname -a
Linux 2.4.20-19.7 #1 Tue Jul 15 13:44:14 EDT 2003 i686 unknown

Voytek Eymont
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Filesystems

2003-07-29 Thread Erik de Castro Lopo
On Tue, 29 Jul 2003 14:16:56 +1000
Jeff Waugh <[EMAIL PROTECTED]> wrote:

> On the other hand, ext3 is a relatively slow filesystem which is on-disk

Ext3 is particularly poor for audio/mulitmedia work. The journaling process
often grabs 100% of the CPU for extended periods of time causing soft 
realtime apps to miss scheduling deadlines.

Since I recently lost the harddrive on my iBook and replaced it with a
much larger drive, my plan was to run ext2 for all the data which is
basically read only and use reiserfs for /home where the majority of the
read/write action happens.

So far I have the ext3 partition but ave not yet managed to get around to
the making /home a separate partition. However, reading Jeff's post, I 
might just go for XFS instead of reiser.

I'll let people know how it goes when I'm done (but don't hold you breaths).

I also use tmpfs (filesystem in RAM/swap) for /tmp. If its in /tmp, I want it
to be ***FAST*** and I don't want to save it between reboots. Using tmpfs for
/tmp also has benefits for JACK (http://jackit.sf.net/).

Erik
-- 
+---+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+---+
Windows 95/98 - 32 bit extensions and a graphical shell for a 16 bit 
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company that can't stand 1 bit 
of competition.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Re: imap mail box for me?

2003-07-29 Thread John McQuillen
On Tue, 2003-07-29 at 16:28, DE LUCA Ben wrote:
> well i have one of those but I cant recieve mail there (firewall).
> 
> 
> 
> On Tue, 2003-07-29 at 15:40, Chris Deigan wrote:
> > DE LUCA Ben wrote:
> > >I just looks like pop mail to me, I need IMAP or laptop. And i think
> > >IMAP is cheaper.
> > 
> > A shell (ssh) account may also be what you are after..

Check out http://bur.st for free shell, mail, dns hosting, backup mx,
etc...

Not sure about imap mail, but it may be possible for donating users. 
Australian (Perth) based, and very helpful. They'll even add your home
directory to the nightly backups if you ask nicely :)

Cheers,

John...


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug