Re: [SLUG] binary

2003-03-27 Thread Jessica Mayo
On Thu, 27 Mar 2003, Amanda Wynne wrote:
> There are 10 types of people in the world, those who understand binary,
> and those who don't.

Nay, Indeed there are 10 types of people in this world...
Those who understand Binary,
Those tho don't,
and Those who believe that Trinary gives a much more ballanced view. :)

-- Jess.
(Everything with a grin :)

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


Re: [SLUG] Silly shell challenge

2003-03-18 Thread Jessica Mayo
On Tue, 18 Mar 2003, John Ferlito wrote:
> On Tue, Mar 18, 2003 at 06:19:26PM +1100, Jeff Waugh wrote:
> > Here's some silly shell...
> >
> >   $ grep bogomips /proc/cpuinfo | awk '{ print "+" $3 }' | tr -d '\n' | cut -c 2- 
> > | bc
> >   6121.06
> >
> > Your mission: To work out what it's doing, why you'd be stupid enough to
> > want to do it, and then how to do it better. It has to be in shell, and it
> > has to handle decimals! :-)
>
> Too easy. You just need to learn some more awk Mr Waugh :) You don't even need
> to fork at all.
>
> $ awk '{ if(/bogomips/){ SUM+=$3 } } END {print SUM}' /proc/cpuinfo

... on second thoughts. awk is better. I bow to your awk-lord-ness :)

I'd argue that this is no better than using perl, but awk _is_ expected to
be portable without installing extra... (perl is usually optional)

... but why didn't you answer the other questions?! :)

-- Jess.
(Everything with a grin :)

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


Re: [SLUG] Silly shell challenge

2003-03-18 Thread Jessica Mayo
Can't resist a shell challenge, can I?... :)

On Tue, 18 Mar 2003, Jeff Waugh wrote:
> Here's some silly shell...
>
>   $ grep bogomips /proc/cpuinfo | awk '{ print "+" $3 }' | tr -d '\n' | cut -c 2- | 
> bc
>   6121.06

Very silly. awk + tr + cut is highly redundant and bc is not installed on
my system. :)

Here's something simpler that produces the same output for a single
processor without bc...:

$ grep bogomips /proc/cpuinfo | sed 's/[^0-9.]*//'

... although my system only says 729.08 :)

> Your mission: To work out what it's doing, why you'd be stupid enough to
> want to do it, and then how to do it better. It has to be in shell, and it
> has to handle decimals! :-)

Given that bc or dc are not guaranteed to be installed, I use expr
instead, but doing decimal calculations involves fixed-point maths.

all that given, the following works properly on a multi-cpu system:

$ expr 0 `sed -e 's/[0-9][0-9.]*/&000/' -e
 's/^bogomips[^0-9.]*\([0-9]*\)\(.\([0-9][0-9][0-9]\)\)*.*/+ \1\3/' -e
 '/^[^+]*$/d' /proc/cpuinfo` | sed 's/[0-9][0-9][0-9]$/.&/'

... be careful of the back-ticks and single quotes. I tend to use single
quotes to give my sed scripts better protection from the shell. the $ is
guaranteed not to be misinterpreted that way.


Ok, it's nasty, but it does it in 3 processes and with shell utilities
that will always be available.

Basically, Sed appends extra zeroes to all numbers, converts bogomips line
to a plus sign and a fixed three decimal places, and throws away the rest.
I then use expr to add the bogomips values to zero and put the decimal
point back in with a second sed.


now to why?:

To tell the user how long something's going to take, of course! :)
It's a slackware tradition to estimate how long something is going to take
in BogomipSeconds... the number never changes, but as you get more
Bogomips, you end up with less seconds. This chunk would give the shell
script a way of turning that abstract number into a time that an ordinary
user will understand. :)



Do I get the prize? :)

-- Jess
(Everything with a grin :)



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


Re: [SLUG] mpg files

2003-03-07 Thread Jessica Mayo
On 7 Mar 2003, Alan L Tyree wrote:
>
> What do people use to see .mpg files?

VideoLan Client! :)
...Although for verious reasons I usually use the windows version, which
is a lot less stable than the native linux one.

http://videolan.org/vlc/

-- Jess.
(Everything with a grin :)

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


Re: [SLUG] Re: [SLUG-ANNOUNCE] SLUG Meeting: this Friday (February28th)

2003-02-26 Thread Jessica Mayo
On Thu, 27 Feb 2003, [iso-8859-1] Eddie F wrote:
> Hello Mary,
> Do I need to be a member to attend this Friday?

>  --- Mary Gardiner <[EMAIL PROTECTED]> wrote:
> > SLUG meetings are open to the public and free of charge.

No, you never need to be a member to attend a slug meeting. Everyone is
welcome. You only need to be a member if you want to vote for the people
who will be running the club for the next year at the March meeting. :)

-- Jess.
(Everything with a grin :)

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


Re: [SLUG] Making filesystems in sparse files [Was: block filesystemdevices stored as regular files.]

2003-02-25 Thread Jessica Mayo
On Tue, 25 Feb 2003, Jeff Waugh wrote:
>
> 
>
> > If I create an empty block device in a file

... compare this line:
> > (dd if=/dev/zero of=new_filesystem seek=1 count=1 bs=1M)

> > will it use up the whole 10G
> > straight away or will it expand as nessecary? eg is the 10G just a quote
> > or max size of the block?
>
> The phrase you're looking for in this question is "sparse file".

... with this line:
>   $ dd if=/dev/zero of=pantastic bs=1M count=10

... which gives:
>   $ ls -s pantastic
>11M -rw-r--r--1 jdub jdub  10M Feb 25 22:27 pantastic

for my own curiosity on my own system I did:
$ dd if=/dev/zero of=delme.tmp bs=4k seek=1024 count=1

and got:
$ ls -lhs delme.tmp
8.0k -rw-r--r--1 jess users4.0M Feb 25 22:55 delme.tmp

... so dd WILL create sparse files for you if you use the seek option when
the file is created. :)

I must remember this. very useful for saving space. :)

-- Jess
(Everything with a grin :)

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


Re: [SLUG] Re: Gecko and St George Internet banking... have theyfinally given us the IE plugin?

2003-01-24 Thread Jessica Mayo
On Fri, 24 Jan 2003, Mary wrote:
> After switching from the Blackdown J2RE1.3 to the Blackdown J2RE1.4 and
> from Mozilla 1.1 to Mozilla 1.2.1, the new (and hopefully not some silly
> mistake) St George Internet banking applet now works - or at least, I
> can view account details and transfer money. I'm not sure which of the
> two upgrades fixed the problem.

Cool. Time to install Mozilla. I'm sick of having to do all my banking
on IE at work. :)

-- Jess.
(Everything with a grin :)


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



Re: [SLUG] Canon LBP 1120 Compatibility?

2003-01-17 Thread Jessica Mayo
On 17 Jan 2003, David Fitch wrote:
> On Fri, 2003-01-17 at 21:45, Harry Ohlsen wrote:
> > Does anyone know whether the 1120 works OK with Linux?
>
> the talk of "GDI" on here makes it sound not very likely:
> 
>http://www.canon.com.au/products/printers/laser_printers_low_medium_volume/lbp1120_specs.html
>
> (and as a general rule steer clear of canon when it comes
> to linux, HP (even secondhand) is a better bet)

... and even then you're not safe with HP's latest bottom-of-the-range
models. Stay well away from the HP LaserJet 1000, people. :)

-- Jess
(Everything with a grin :)

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



Re: [SLUG] Networking Problems

2002-12-21 Thread Jessica Mayo
On Sun, 22 Dec 2002, Bill Barnes wrote:
> I have 3 pc\'s. 1 running smoothwall and 2 running mandrake 9.0.
> I have purchased a Sky Link Net 1008 8 port N-Way Fast Ethernet Switch and 3 Cat 5 
>UTP cables.
> When I connect all 3 pcs via this Switch ( the Smoothwall box on the uplink port and 
>the mandrake boxes on any port from 2 to 8) I cannot access the smoothwall box by 
>ping or by browser.
>
> Am I correct in assuming that I have either a bad Switch or at leasr 2 bad Cat 5 
>cables?

No. You have misunderstood the purpose of the 'Uplink' port.

The upling port is a special port for connecting to another hub or switch.
You need all three cables to be plugged into 'ordinary' ports as they are
all ordinary network cards. :)

Also beware that the uplink port is usually shared with either the first
or last port, and you can't use that socket if you're using the uplink.

-- Jess.
(Everything with a grin :)

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



Re: [SLUG] Recover a full / partition

2002-12-11 Thread Jessica Mayo
On Thu, 12 Dec 2002, Denovo Systems wrote:
> Under SCO can recover from a full root filesystem simply by removing
> files.  Under RedHat we remove files but we don't seem to get the
> space back.  We still show 100% (see above df) in /
>
> Why doesn't file removal recover workspace.

Answer: It does, but under linux's filesystems a certain percentage of the
filesystem is reserved for root, so things like a full filesystem can be
recovered from comfortably. You won't see any change in the percentage
used until you remove at least enough files to make up for that reserved
space.

BTW, 500 meg is far too small for a modern install of Redhat, and my
default redhat install does use a single partition. Reinstall and tell it
to repartition the harddrive.

-- Jess.
(Everything with a grin :)

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



Re: [SLUG] I think I'm being DoS'd - What can I do ?

2002-11-25 Thread Jessica Mayo
On Tue, 26 Nov 2002, Minh Van Le wrote:
> 1.a. removed port 80 in /etc/services
...
> 2.a. removed domain ports in /etc/services

Eeep! NO!
you DON'T disable things by commenting them out of /etc/services. That
file is just a reference to match names with port numbers.

Please don't do this. You're just breaking your own system and not making
it any more secure at all.
Some servers have a port number hard-coded or fall back to a hard-coded
port number if the name can't be matched.

The proper way is just to stop the service or to disable the service in
/etc/inetd.conf or /etc/xinetd.d/ and restart inetd.

-- Jess.
( Staring in horror 8-| )

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



Re: [SLUG] December meeting

2002-11-18 Thread Jessica Mayo
On Mon, 18 Nov 2002, Mary wrote:
> What do people think about a December meeting? The committee was vaguely
> envisaging having a more "playful" meeting, and perhaps debuting the
> SLUG quiz...

Hmm. Playful... :)

> So, what are your preferences among:
> A. A December meeting on Friday 13th December (for that extra special
> Friday the 13th feel...)

I do feel that this is too soon after the November meeting, so my
preference is...

> B. A December meeting on Friday 20th December

Which just happens to be two days before I fly out. :)
I think having a meeting at some time during december is a good idea, even
if the numbers are greatly reduced by christmas commitments.

-- Jess.
(Everything with a grin :)

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



[SLUG] Redhat 8 CDs

2002-11-13 Thread Jessica Mayo

Can anyone Volunteer to bring a copy of Redhat 8 along to the paintball
day for me? I can reimburse for copying or swap for blank disks.

-- Jess
(Everything with a grin :)

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



Re: [SLUG] PCI resource collision

2002-11-08 Thread Jessica Mayo

First suggestions:
Go into the bios and under the PCI/PNP options tell it to reset the
configuration data.
If that doesn't work try changing the 'PNP OS installed' setting.

YMMV. :)

-- Jess
(Everything with a grin :)


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



Re: [SLUG] Strange shut down

2002-11-07 Thread Jessica Mayo
On 8 Nov 2002, Chris Barnes wrote:
> I hate that...you make sure your machine is up for as long as possible
> to be on the top of the ranks on the Linux Counter site, but then you
> hit those damned keys.
>
> It still baffles me why that function is enabled by default on linux.
> its the absolute first thing I disable after a new install. It should be
> off by default. Thats why most PCs come with reset buttons built into
> their case.

Eeep! Hardware reset should be absolute last resort. You want to at least
try to unmount your drives first, or you can lose data... :(

I will normally change the command to shutdown in 2 minutes.

1) That gives me enough time to cancel it if it was hit accidentally.
2) Ctrl-Alt-Del is still available to try and shutdown cleanly with if
something screwey does happen to my system.
3) Ctrl-Alt-Del is still available if I'm feeling lazy and need to reboot.
4) If I _really_ want to shutdown _now_, I can damn well log in and do the
command myself. :)

Magic sys-rq key is a nice last-resort, too... but it's normally turned
off by default. Might not be a good thing to get triggered by dodgey
KVM switches. :)

> On Thu, 2002-11-07 at 23:21, Yuri wrote:
> > :) ehehehe, that reminds of the time i press ctrl-alt-del on what i thought to
> > be win2k box and send my linux dns box to reboot that had >250 days of
> > precious uptime
Ouch. :)

-- Jess.
(Everything with a grin :)

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



Re: [SLUG] Debian installation no floppy drive.

2002-11-05 Thread Jessica Mayo
On Wed, 6 Nov 2002, Gareth Walters wrote:
> I am installing Debian on a machine without a floppy drive
> Booting from the  Debian 3.0 CD's.
> While the kernel is booting everything seems fine,
> until the appears on the screen and the installation stalls
>
> floppy0:unexpected interrupt
> sensei handle dies: normal interrupt end
>
> There is no floppy on the machine and its disabled in BIOS.
> Is there a kernel parameter I can give to stop it looking for a floppy?

A quick google search yelds the bootprompt-howto, which tells me you can
try either:
floppy=cmos
or:
floppy=no_unexpected_interrupts
and if all else fails try:
floppy=0,daring

I'm not sure if any of these will really make a difference, though. :)

-- Jess.
(Everything with a grin :)


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



Re: [SLUG] Another 'C'ly question

2002-11-05 Thread Jessica Mayo
On Wed, 6 Nov 2002, Peter Rundle wrote:
> Coding a 'C' routine I need to know at execute time, the
> full path that the program is being executed from.
>
> In shell this is in $0 and is expanded at runtime even if
> the program is found via the $PATH variable, I.e
>
> echo $0 will always contain the full path to the program.

This behaviour is shell specific and not portable. If you have ash or bsh
(or probably ksh) installed you can test it for yourself... they give
identical behaviour to what you are experiencing in C.

> Any suggestions / cluesticks?

To replicate the behaviour you are expecting, you will need to replicate
the shell's behaviour in finding the executable. First see if it's an
absolute pathname and check if it exists, then try each of the pieces of
the PATH environment variable until you find the directory it exists in.

I assume you have a good reason for needing this. just about everything
else sets up filesystem locations for data files, etc at compile-time...
not just because it's marginally easier, but because it's a lot cleaner
and more predictable. You do sometimes get the option of over-riding that
default with an environment variable, as well.

To read environment variables in C use the getenv() function.
man 3 getenv

-- Jess
(Everything with a grin :)

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



Re: [SLUG] Telnet hangs after message and before login

2002-10-09 Thread Jessica Mayo

Ok. Replying to my own post to report workaround...
I still think this is very strange behaviour.

On Wed, 9 Oct 2002, Jessica Mayo wrote:
> Symptom: No login prompt (telnet hangs)
> 
> /home/user> telnet 203.47.39.xx
> Trying 203.47.39.xx...
> Connected to 203.47.39.xx.
> Escape character is '^]'.
> 
> Red Hat Linux release 6.1 (Cartman)
> Kernel 2.2.12-20smp on an i686  
> _
> 
> 
> Cause:
> 'login' process spawned by telnetd dies and sits there as a zombie.
> 
> 
> Solution:?

It turns out that the problem was telnet sending the contents of my
DISPLAY variable to the other end. if I unset the DISPLAY variable, then
everything works fine.
My workaround was to alias telnet to 'env - telnet' , which starts telnet
with no environment at all. Nasty, but it works. :(

-- Jess.
(Everything with a Grin :)

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



[SLUG] Telnet hangs after message and before login

2002-10-08 Thread Jessica Mayo


I've got a problem at work that's hurting my head... I have found a single
mention of it through google, but no solutions, perhaps I'm not searching
for the right thing. SSH is not an option, sorry. :)

Box is Redhat6.1, recently had an FTP security patch installed.
Telneting from some IP addresses works, but not others.
hosts.allow is set up correctly and works fine with FTP.
This used to work fine, but I'm not sure exactly when it stopped working.


Symptom: No login prompt (telnet hangs)

/home/user> telnet 203.47.39.xx
Trying 203.47.39.xx...
Connected to 203.47.39.xx.
Escape character is '^]'.

Red Hat Linux release 6.1 (Cartman)
Kernel 2.2.12-20smp on an i686  
_


Cause:
'login' process spawned by telnetd dies and sits there as a zombie.


Solution:?
Help! :)


-- Jess.
(Everything with a Grin :)

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



Re: [SLUG] pine permission problem

2002-09-25 Thread Jessica Mayo

On Wed, 25 Sep 2002, David wrote:
> This situation has now deteriorated badly. I've discovered that any user
> except root gets the following message when opening their mail in pine:
> 
> Mailbox is open by another process. Access is read only
> 
> This is from a terminal, either X (locally) or ssh.
> I'm slightly worried that I've been cracked, although I'm not sure how to
> tell. I still can't figure out what process is holding the mailboxes.

Check the ownership and permissions on /tmp, /var/spool/mail, and the
mailboxes in /var/spool/mail/
The diretories should have permisions like drwxrwxrwt
and the mailboxes should be writable by the user and owned by the person
they belong to.

Pine creates it's lockfiles in /tmp, but it would also complain if it
couldn't write to the mailbox.

You could also try making sure all pine sessions are closed and deleting
/tmp/.[0-9][0-9]*.[0-9][0-9]*
(typically something that looks like /tmp/.346.17131)
These are pine's lock files. You might have ended up with lots of stale
ones and your version of pine doesn't handle that.
You might want to just delete everything in /tmp and reboot, just to be
sure. :)

> What exactly is a Checkpoint file failure? I've never heard of that
> before.

I'm assuming it's something to do with Pine periodically checking for new
mail... and not being able to update it's flags.
I've never seen that message before, either...

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] Free junk... 486 motherboards.

2002-09-23 Thread Jessica Mayo


Can't stand to see things go to waste...

Plans for one of my old projects have changed, and I now have half a dozen
486 motherboards available free to anyone who might have a use for them. :)

All tested as working fine last time I powered them up about 6 months ago.
All are Vesa Local Bus boards.
All have processors... One is only a 486SX-25, at least two are 486DX2-66
Two boards only take 30pin simms, and are fully populated to 8mb total.
Other four boards also take 72pin simms, but have no memory at all.
No heatsinks/fans for processors that might benefit from them.
No manuals, no warranty. :)

These boards will get trashed before next monday if no-one wants them, or
delivery cannot be arranged.
If you're going to the SLUG meeting then let me know if you want them 
before thursday evening and I can bring them along. :)

-- Jess.
(Everything with a Grin :)

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



Re: [SLUG] dosemu; help needed

2002-09-13 Thread Jessica Mayo

On Fri, 13 Sep 2002, Amanda Wynne wrote:
> yes there is, but it's inside a hdimage file. I've pulled it out, & copied it 
> over to my bootdir. I want it this way so I can access the files in there 
> directly from Linux.
> 
> Next problem. Has anybody on the list got Protel Autotrax working under 
> dosemu? I've seen references around the web that it's supposed to work fine, 
> but right now it seems beyond me.
> 
> Amanda

Ah. Good old Autotrax. Wouldn't be without it, but it's a while since I
ran it under dosemu. :)

I had very few problems running it at the console (I didn't try the X
version of dosemu)... it DID seem very fussy about mouse drivers.
Do the wrong thing with the wrong mouse driver installed and it might
hang under dosemu. I don't really understand why it should be so picky,
but Autotrax wasn't the only program with the issue.

I seem to recall it running flawlessly without the DOS mouse drivers, but
a mouse makes getting around those big PCBs _so_ much easier. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Fwd: help needed please

2002-09-04 Thread Jessica Mayo

On Wed, 4 Sep 2002, Angus Lees wrote:
> in /etc/apache/httpd.conf, you'll have a section like the following:
>  
> MIMEMagicFile share/magic
>  
> 
> having just tried to do so here, it seems you can't just point this at
> the "normal" magic file (/usr/share/misc/magic in woody) - since that
> uses some fancy syntax features that mod_mime_magic doesn't like.
> 
> iirc, there used to be a special "apache friendly" magic file sitting
> in /etc/apache/magic.  its probably moved/gone/a bug :(

To attempt to clarify:
Both these 'magic' files are in the same format.
The big difference is that the standard one (as used by the 'file'
command) returns an ascii string describing the type of file,
but Apache's magic file (as used by mod_mime_magic) attempts to return
actual mime types instead. :)

The 'file' command is little more than a parser that attempts to match a
file with definitions in the 'magic' file.
On my (slackware) system the Apache magic file is in /var/lib/apache/conf

An exercise for the reader: Give 'file' apache's magic, and see what you
get:
file -m /var/lib/apache/conf/magic ~/*

This will print a list of all files in your home directory and what
mod_mime_magic would think of them. :)
contrast with the output from:
file ~/*

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] strange mounting/filesystem behaviour

2002-08-14 Thread Jessica Mayo

On Wed, 14 Aug 2002, David Kempe wrote:
>   NameFlags  Part Type  FS Type  [Label]Size
> (MB)
> 
> sda1Primary   Linux swap
> 1019.94
> sda2BootPrimary   Linux ext3
> 3997.49
> sda3Primary   Linux ext3
> 31395.90
> 
> 
> # df -mh
> FilesystemSize  Used Avail Use% Mounted on
> /dev/sda2 3.7G  166M  3.3G   5% /
> /dev/sdb1  17G   33M   15G   1% /home
> /dev/sdc1  17G   71M   15G   1% /var
> /dev/sda3  14G   33M   13G   1% /dump
> 
> So why does cfdisk report 33Gb (reality) when df reports 13G?
> any suggestions?

The filesystem is smaller than the partition?
This could happen if mkfs wrongly detected the partition size.
I've not seen this happen except when I've had cause to do raw copies of
partitions, but you can check this by doing:

dumpe2fs /dev/sda3 | grep 'Block.*:'

(the last part so it doesn't fill your screen)
Multiply 'Block count' by 'Block size' and compare this with your figures
above.

If it's the same as what df is reporting, then your filesystem
isn't using the whole partition, and you should probably back up and
recreate it, probably giving the real size to mkfs.

If it's the same as what cfdisk reports, I don't have a clue what's going
on. :)
 
-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] What distribution???

2002-08-14 Thread Jessica Mayo

On Wed, 14 Aug 2002, James Gregory wrote:
> Brendan Dacre wrote:
> > "production" and I want them to always work, be stable and easily 
> > maintainable (upgradeable and patchable). 
> 
> The standard answer at this point is debian. I suspect I will be 
> considered "odd" for saying so, but I've not had good experiences with 
> debian and upgrading software.

My gut feeling at this point is Debian, But I am only just about to start
using it myself. I'm normally a Slackware user, but Slackware is targeted
at production environments where the intention is not to upgrade anything
that works, and it all works out of the box. i.e. upgrades not automated.

> If you really do want to start from scratch (and IMHO it's much more 
> work than it's worth), try linuxfromscratch 
> (http://www.linuxfromscratch.org/)

I will pass on advice from someone I know who's done it: It's far easier
to customise (and strip down) slackware than to build from scratch. :)

> In the other two cases, again, any packaged distribution will do that. 
> You just need to add the packages to your CD and add those packages to 
> the relevant "list" of packages.

Agreed. They all have methods of setting up a custom 'Standard'
installation set, and all have the option of installing or not installing
development packages and X.

> Ok, I recommend the following:
> 
> use Debian on your servers. If you don't ask it to do extraordinary 
> stuff (and I know I'm going to be rebutted there) it will work, it will 
> be stable and secure  and it will give you an easy way to upgrade your 
> software.
> 
> For your workstation machines, Mandrake is great. It's a really nice 
> desktop OS. It also has a easy way to install and upgrade new software, 

On the whole, good advice. It's up to you whether you want the variety of
using two distributions rather than one. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] what is kernel memory doing?

2002-07-24 Thread Jessica Mayo

On Thu, 25 Jul 2002, well wrote:
> If I use the default kernel of Slackware 8, the boot message shows
> "Free unused kernel memory: 116k freed"
> 
> And if I disable some inneed kernel option(scsi, audio,), the boot
> message shows
> "Free unused kernel memory: 66k freed"
> 
> With less kernel option, shouldn't be more memory freed?

No. Because there's less overall.

When you compile a kernel, all the options take up space in the kernel,
and the image that gets loaded at boottime is bigger with more options.

Some of the space isn't needed after the machine has booted, though.
Stuff like hardware initialisation and kernel arg processing only happens
once, so the memory used by them is made available to other things.

Because you're compiling a kernel with less options, there is less wasted
space in the first place. That's why the number gets smaller. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Routing problem (I think)

2002-07-23 Thread Jessica Mayo

On Wed, 24 Jul 2002, Alan L Tyree wrote:
> Not sure I understand. My present hosts file is:

> Shouldn't that do the trick?

As long as it's on both machines, I would have thought so.
Assuming, of course, that DNS _is_ the problem.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Sendmail Question

2002-07-11 Thread Jessica Mayo

On Wed, 10 Jul 2002, Peter Rundle wrote:
> Sluggers,
> 
> I've been asked to look at an "unreliable" sendmail system.
> 
> One thing that I have seen is that the mailboxes in /var/spool/mail
> are replaced by symbolic links to another directory on a different
> partition. Ok so a bit different but nothing really weird, maybe they
> need the space, but what is weird is the link points to for example
> 
>/var/spool/mail/mymail --> /home/sites/site34/../../spool/mail/mymail
> 
> Does anyone have any idea why the ../../ in the symbolic link.
> Is this some cleverness that I haven't seen before, as the link is
> in effect /home/spool/mail/mymail. Would this have any effect, I can't
> think of any.

This monstrosity usually works as expected, and is usually a symptom of
some very script to generate those links being run in /home/sites/site34.

HOWEVER: there are a few circumstances where this does not do what you
expect, although I assume it does not apply in this case...

If any of the back-referenced directories is a symbolic link, those
back-references will sometimes be used against the destination of those
links, rather than the links themselves.

An abbreviated example from the junk in my own home directory:


~/projects/work:
-rw-r--r--  dn_wd.csv
-rw-r--r--  dn_we.csv
lrwxrwxrwx  inner_west -> ~/projects/timetables-new/2002/inner_west/
lrwxrwxrwx  north -> ~/projects/timetables-new/2002/north/
lrwxrwxrwx  north_shore -> ~/pojects/timetables-new/2002/north_shore/

~/projects/timetables-new/2002:
-rw-r--r--  CityRailLogoSml.gif
drwxr-xr-x  hunter/
drwxr-xr-x  inner_west/
drwxr-xr-x  newcastle/
drwxr-xr-x  north/
drwxr-xr-x  north_shore/


~$ cd projects/work
~/projects/work$ ls -l inner_west/..
-rw-r--r--  CityRailLogoSml.gif
drwxr-xr-x  hunter/
drwxr-xr-x  inner_west/
drwxr-xr-x  newcastle/
drwxr-xr-x  north/
drwxr-xr-x  north_shore/
~/projects/work$ _

As you can see, that's not my current directory, as you might've
expected...

I _hope_ this isn't afflicting you. linked directories are thankfully not
commonly used, and usually only in places where full paths are the norm.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] alternative to fetchmail

2002-06-18 Thread Jessica Mayo

On Tue, 18 Jun 2002, Andy Eager wrote:
> Anyone know of an alternative to fetchmail?

My favorite has always been getpop3, although it seems to be a bit hard to
find these days.

It always did pop3 with a lot more sanity than fetchmail, IMHO. :)

The other suggestions should be easier to get hold of.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] FW: Which process is dialling out

2002-06-07 Thread Jessica Mayo

On Sat, 8 Jun 2002, David Kempe wrote:
> I believe demand and persist are mutally exclusive.
> 
> dave
> 
> - Original Message - 
> From: "Malcolm V" <[EMAIL PROTECTED]>
> To: "Slug" <[EMAIL PROTECTED]>
> 
> You might want to add persist to the options, else pppd will drop the
> connection after it is finished the current transfer. You might also
> want to set maxfail to 0, otherwise it will default to 10 and I believe
> shutdown should it fail to connect ten times in a row.

Negative. If you read the man page, you will see that demand IMPLIES
persist, unless you specifically tell it otherwise. :)

It's quite valid to have both, but if you said demand, then persist was
already automatically turned on. Saying it again does nothing. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] VPN Win32<-->Linux?

2002-06-04 Thread Jessica Mayo

On Wed, 5 Jun 2002, David Kempe wrote:
> What windows platforms exactly?
Assume win98 as base level

> What applications are going to run over the vpn?
Printer sharing and X11/LBX.

Windows is still preferred at the end site so the can run other 
applications. All sites are permanent. No 'Road Warriors' :)

Thanks to everyone who has replied so far, and google has been more
helpful today as well.

It seems my options are:
1) PoPToP + Windows Dialup Networking implementations which are relatively
insecure but easy to set up.
2) Freeswan and IPSEC which is secure but requires Win2K with windows high
encryption package installed.

Any others? Experiences?

-- Jessica Mayo.
(Everything with a Grin :)


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



[SLUG] VPN Win32<-->Linux?

2002-06-04 Thread Jessica Mayo


Any suggestions/pointers to docs on setting up VPNs between Linux and
windows?

I haven't found googlejuice yet that has shown me anything I want, so
I'm appealing to the wider knowledge of SLUG...

I would prefer the windows end of the link to be as easily configured as
possible, as our support people may have to do it. :)

-- Jessica Mayo. (with work hat)
(Everything with a Grin :)

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



Re: [SLUG] ask emacs(get the previous command )

2002-06-03 Thread Jessica Mayo

On Mon, 3 Jun 2002, henry wrote:
> Dear list :
> I enter shell in emacs by
> M-x shell .
> but I found that I cant get the previous command by press ^  (up-arrow)  
>, or like doskey in DOS
>  
>   |
> Is there experienced emacs-user can share their experience ?

I am by no means an experienced emacs user (but I know what it is. :)
Emacs style key bindings are VERY common, however.

Cursor movement usually goes along the lines of CTRL-P for previous line,
CTRL-N for next line, CTRL-B to move cursor backwards, and CTRL-F to move
cursor forwards.

Try CTRL-N and CTRL-P. :)

This is how I use Bash on terminals with broken cursor key emulations, and
without resorting to VI mode. (yuk :)

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] Linux Web Cafe?

2002-06-02 Thread Jessica Mayo


Does anyone here have experience to share setting up a web-cafe style
environment under Linux?

I (indirectly) have someone interested in doing so and would like
comments, etc.

* It seems to me it should be very easy _if_ you've done it before. :)

* What about the Computerbank guys? This seems to be along your lines.
  but not asking for donations, obviously. This is commercial.

-- Jess. (with her 'work' hat on. :)
(Everything with a Grin :)

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



[SLUG] Apache Gateway?

2002-06-02 Thread Jessica Mayo


I'm sure someone asked about this before but have been unable to find
anything usefull in the archives or on the Apache website...

What I want to do is have a webserver fetching some of it's content from a
second apache that is NOT visible to the outside world.

I'm sure it can be done, but how? Correct me if I'm wrong...

-- Jess.
(Everything with a Grin :)

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



Re: [SLUG] ask uninstall(Slackware)

2002-05-29 Thread Jessica Mayo

On Thu, 30 May 2002, henry wrote:
> It's nice to use "rpm -e xxx" to unistall xxx in RedHat.
> How do  I  unistall  xxx in SlackWare ?
> 
> xxx is build-in in SlackWare , so I cant unistall it by "make unistall" .
> Sould I find & delete relative directory one by one ?

NO! please no. :)

use pkgtool. Not only does it remove the package properly, it checks it's
not deleting files needed by other packages.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Connecting external Modem

2002-05-14 Thread Jessica Mayo

On Wed, 15 May 2002, Jason Hewett wrote:
> I have a machine running RedHat 7.2 and have connected an external
> modem to it through the spare serial port. The machine is an old
> Pentium 133. Kudzu didn't detect the device and when I do a statserial
> on either serial port I only get /dev/ttyS1 come back with any details
> and the /dev/ttyS0 isn't detected.

Ok. I assume you have a mouse or something attatched to ttyS1 that kudzu
detects.

Under Linux, there are no modem drivers, so kudzu doesn't need to detect
it. Normally, it's just a matter of making a symlink to it from /dev/modem
and pointing pppd or minicom in the right direction.

ln -s /dev/ttyS0 /dev/modem

> Can anyone advise what the best procedure is to make connection to the
> modem and establish communication.

What sort of communication were you hoping to establish?

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] Bite the Troll... (Re: Anti-MS bullshit)

2002-05-13 Thread Jessica Mayo


Ok. I'll bite the Troll... [Youch!]

On Mon, 13 May 2002 [EMAIL PROTECTED] wrote:
> On Mon, 13 May 2002, Daniel Stone wrote:
> > So blantant, unreasoned Microsoft bashing is OK in your eyes?
>      
> Please learn how to spell first.. 

Ahha! so not only are you a Microsoft basher, you're a Linux basher as
well?  There are several websites out there that discuss how poor the
spelling of the most inteligent and dedicated to the community can be.

In my book, Bashing _ANYONE_ for who they ARE is _TOTALLY_ uncool.

What is bad about microsoft is what they do (and don't do), not who they
are. Anyone who cannot compete on this basis is irrelevent and a nusiance.

> Peace through superior Firepower,

Oh? I thought superior firepower usually leads to oppression.
Mutual diplomacy leads to peace. You know, like Microsoft lacks?

> /Torqumada

[You hear distant the sound of keyclicks as a flame filter gets edited. :]

-- Jessica Mayo.
(Everything with a Grin :)


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



Re: [SLUG] Linux swap

2002-05-10 Thread Jessica Mayo

On Fri, 10 May 2002, peter anderson wrote:
> I have been told that it can be beneficial to
> configure two swapfiles. Is this right? What are the
> benefits? Where would you use this?

I have seen a number of assertions along these lines, but unless things
have changed since I last looked over the swapfile logics, the second
swapspace is never used until the second one is full. In this case, I can
see no benifit at all.

If this has changed with 2.4 kernels, I'd like to know... :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] ADSL recommendation

2002-05-05 Thread Jessica Mayo

On Mon, 6 May 2002, Matthew Hannigan wrote:
> I've heard that Telstra fall down in the quality
> and speed of their authentication and dns servers,
> so if you get the right reseller it could be a lot
> better.  On this score I've heard Pacific Internet
> are good.  I've used Zip for a long time (but not for dsl)
> which is now owned by Pacific, and they're still pretty good.

Just for the record: Pacific Internet ar not a Telstra reseller. They go
through Optus. :)

I can't really compare them with anything, but they seem pretty good.
(Work uses them, I wasn't involved in getting it set up, we use a
seperate router box and have a small block of IPs)

-- Jessica Mayo.
(Everything with a Grin :)


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



Re: [SLUG] Linux and device drivers

2002-05-04 Thread Jessica Mayo

On 30 Apr 2002 [EMAIL PROTECTED] wrote:
> To me this discussion represents some problems we are having as Linux
> gets larger and more mainstream and has a massive plethora of devices in 
> need of a driver.This business of building device driver support into the 
> kernel is a good example, sure its all getting much more modular but 
> that's not my point.

On the subject of compiling drivers into the kernel, I'd like to contrast
with MS Windows at this point:

Under Linux, it's normal to compile the kernel only with the functionality
you require at boot time, and load other drivers as modules later.

You usually need harddisk, filesystem, and a couple of other drivers at
this point.

MS Windows is no different. The difference lies in the simple fact that
windows only supports (at most) two filesystems at boot time, and that it
boots in real mode, using the BIOS for IDE access, which is much less
efficient.

> Longer term what should the linux community do to make the production of
> drivers easier??

I don't believe Linux is that bad in this respect. The problem is when the
people writing drivers don't have access to proper harware documentation.

I have read a report from someone doing commercial driver development
under contract that Linux is an ideal platform to develop drivers for
porting to other OSs, eg MS Windows.

> Companies will always be reluctant to make the source to their drivers
> freely available, they quite rightly believe it puts their intellectual 
> property at risk.

You sound like you'd be interested in what's happening with the Uniform
Driver Interface (UDI), aimed at allowing manufacturers with these hangups
to write a single driver that can be run on multiple operating systems.
http://www.projectudi.org/specs.html

> I'm not a software writer so I don't know what tools are already out on
> the market for linux, free or otherwise. But if we build a simple driver 
> construction kit so that a manufacturer can produce a single precompiled 
> library and perhaps an xml document that tells the os how to install it 
> and use it.

Text document? HTML document? Even on MS Windows, the standard README
files are still just plain text. :)

> One that is able to be utilised by any linux distribution and identify 
> driver version numbering.

Provided you (or your distribution) compile the kernel correctly, you can
already use driver modules on any distribution with a compatible kernel
version. This is nothing new, and few manufacturers do actually supply
closed-source drivers in this manner.

> I hate to say this but one of the elegance's of the windows driver model
> is that its fairly simple to keep the number of files for the driver small 
> and there is a standard interface to driver installation that being the 
> inf file.  Sure its not perfect and can screw up, but its easy to 
> distribute and install. It {the inf} even offer's some version control
> and declaration of which versions of the OS can use the driver. Ontop of 
> this it is a compiled dll and whatever else so IP is protected.

The .inf is not a compiled DLL, and completely seperate from what it's
installing. :)
Linux has it's (various) equivelents: .deb .rpm and the oldfashioned .tgz
(these in decreasing levels of complexity and fuctionality :)

Both .deb and .rpm offer SIGNIFCANTLY better functionality than .inf
files, and are used extensively for applications, whereas .inf files are
normally reserved for the relatively simple requirements of device
drivers, and custom executables used for installing applications. (ugh!)

In practical terms, I have not yet seen linux drivers packaged seperately
in any format. The advantage of this would be to configure it as it's
installed, but the usual aproach is to install them all at once and leave
the configuration until later.

> How can linux achieve this level of simplicity in driver support /
> production?? After all if its easy to build the drivers and protects their 
> IP then the manufacturers will build them to gain another competitive 
> advantage.

The problem here is twofold:

1) for many manufacturers, ANY aditional effort is too much effort.
   They are used to writing windows drivers, and they'll keep doing so.

2) As you alluded to at the top of your email, the Linux driver interface
   does not seem as stable as the windows one. Some drivers are indeed
   incompatible between W95,W98,etc but that number is very small.
   Linux drivers became incompatible more than a couple of times within
   the 2.2 series kernels, hence the preference for open-source drivers.

> Arguments / feedback??
As above. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Laserjet 1100 & RedHat 6.2 printing problems

2002-05-02 Thread Jessica Mayo

On Wed, 1 May 2002 [EMAIL PROTECTED] wrote:
> 1. Attached the printer, executed LPD daemon
> and then run "printtool" under Red Hat 6.2

> If I investigate the spool directory I get quite a number
> of files:
> 
> cfA000elvis  cfA004elvis  cfA008elvis  dfA001elvis  dfA005elvis 
> 
> Not sure if I've selected the right filter under the Printtool,
> I went with a suggestion from another HP user on a Linux
> printing related Web site.

> Any comments or suggestions would be greatly appreciated.
> 
> Regards,
> 
> Carl

It looks like the jobs are being spooled but not making it to the printer.

Suggestion: Redhat 6 doesn't seem to load the parallel port drivers by
default.

do 'modprobe lp' as root, then restart the printer daemon. If a whole lot
of stuff starts printing (all those spooled files) Then add that command
to your /etc/rc.d/rc.local

'lsmod' lists the currently loaded driver modules. I think that parport_pc
will not be in that list.

As always if you need to run something as root: If you're not familiar
with modules or modprobe, then read up on them before running the command.
They're not dangerous commands, but it's a good idea anyway.

(i.e. I'm a stranger, don't blindly trust what I say. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] SLUG meeting summary...

2002-05-01 Thread Jessica Mayo

On Wed, 1 May 2002, Pigeon wrote:
> 
> Ok, Tony asked me to write up a brief summary for the SLUG meeting last week so now 
>I'm trying my best to remember what's happened.
> 
> This SLUG night started off with Glen Brunning and Tyson Clugg from Melbourne 
>Wireless giving a brief talk on their organisation. They covered plans for community 
>networks and described how Linux can be used to provide these wireless networks. It 
>was a very good and informative session with lots of questions from the audience 
>answered.
> 
> Anthony talked about this nice web pad device called Aquapad. It is powered by the 
>Transmeta Crusoe processor, installed with Midori Linux with X running at a decent 
>resolution, with 32MB of internal compact flash for data storage. It has a pcmcia 
>slot, a compact flash slot, an infrared port, a cradle for turning it into a small 
>workstation, and much more. It has Mozilla installed, so with a wireless LAN card you 
>could browse the web in your bed before you fall asleep :)
> 
> Tony Green briefly talked about how good Spam assassin is and everyone had gone sort 
>of very excited all of a sudden. It was a nice and quick talk. Got spam? Install Spam 
>assassin! It rocks! Tony said his^H^H^H^H^H^H^H^H^H's talk rocked too! :)
> 
> And then Andrew Bennetts went through the basics of Python and showed us all kinds 
>of funky stuffs you could do, such as changing the object hierarchy on the fly! Also 
>the python one-liner mandelbrot.
> 
> He also announced the beginning of the SLUG Python Interest Group (PIG) starting 
>from May 20th 2002 at Woolloomooloo Bay Hotel, on the third Monday of every month. 
>Everyone is welcome to join in and share the passion for Python.
> 
> I didn't go for the dinner but I'm quite sure it was real fun, so now maybe someone 
>could continue this SLUG summary with the dinner :)
> 
> --
> Pigeon.

Ah. The fun continued... Starting with some differing opinions on the best
way to get to the restaurant. Some went over, some went under... All
arrived safely. :)

Lots of post-talk discussion was happening through the evening, as is
usually the case, but I'm suprised the wireless guys got to eat. Lots of
people with questions, comments, and wanting wireless cards...

Oh. Did I mention the food?
New location was Spice Boys at Central, Reported by a certain comittee
member to serve the best curry outside England. All I've got to say is
'Hmm. Onion Bhajee.' :)

Delicious appetisers, followed by a selection of good curries... What more
could you want? If Chinese was getting boring, this was the answer. :)

Of course, this is just one fragment. Comments from others?

-- Jessica Mayo.
(Everything with a Grin :)


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



Re: [SLUG] ext2fs corrupt inodes?

2002-04-18 Thread Jessica Mayo

On Thu, 18 Apr 2002, John Clarke wrote:
> Don't bother.  Do a complete re-install.  It's quicker and it
> guarantees you a clean machine.  Make sure you setup strong firewall
> rules and install all security updates immediately after re-installing.
> Ask the list if you need help.

I think I probably would if the machine weren't in melbourne and needed
tomorrow morning. I certainly would if it were my own machine.
I'd rather not leave it in a compromised state any longer than I need to,
and this is why I asked. :)

For the record, the files involved are fairly easy to spot if you know
what you're looking for and have an appropriate reference machine handy.

> > Any idea how this may have been done and how to correct it?
> 
> chattr?

Presto! I knew there had to be a filesystem tool for it. Thanks.

You can learn something every day, if you try. :)

> Cheers,

Many thanks. :)

> John

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] ext2fs corrupt inodes?

2002-04-18 Thread Jessica Mayo


I have a machine that's been hacked. Bad start, I know.
I'm trying to repair it. (even worse? :)

Here's the deal:
There are some files that even root is unable to delete.
Any idea how this may have been done and how to correct it?

Given the subject matter, replies off-list may be advisable.
Any ideas welcomed...

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] Best Distribution (was: [chat] Re: Newbie list)

2002-04-16 Thread Jessica Mayo

On 16 Apr 2002, Ken Foskey wrote:
> > 
> > I'm taking a wild punt but I believe that "Faq-o-matic" or something
> > similar may be what you're thinking.
> 
> FAQ:
> 
> What is the best distribution to use.
> 
> 
> Answer:
> 
> Dont ever ask this question!  There is no answer to this.  A nice
> summary is in the LPIC1 certification bible page 10.

LPIC1 certification bible page 10?

CONGRATULATIONS!

You've just obfuscated the answer far beyond the technicality level of
anyone who would actually ask the question.


> If you feel the need to ask this question try and outline exactly what
> you expect and how techincal you are and exactly what you want to do
> with the server / workstation you are creating.

I think this is closer to an actual answer, rather than insisting it be
part of the question. It depends on your requirements...
Redhat is easily installed, Debian has many tasks nicely automated, and
Slackware places you a lot closer to its inner workings.
There's lots of other distros and differences, of course, but I see no
reason a FAQ should not form a dialogue between it's questions...

It's not about "This is the way to ask", it's about documentation. :)


So: What do other people feel sets their favorite/current distro apart?

-- Jessica Mayo.
(Everything with a Grin :)

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



[OT] Re: [SLUG] Wslug Meeting 14/4/02

2002-04-06 Thread Jessica Mayo

On Sun, 7 Apr 2002, Brian Robson wrote:
> At 09:49 AM 7/04/02 +1000, it was written:
> >Greatings people,
> >
> >The Western Sydney Linux User Group is holding it's 2nd meeting on the 
> >14th of April @ the Richmond Club - Please see our Web site for further 
> >details if you are interested (www.wslug.org.au)
> >Cya There!
> >Rob.
> Wow, that looks like an apostrophe error.

I don't see it... The only candidate for an apostrophe I see in the
message is the word 'it' , and that has the correct punctuation...
In this instance, the apostrophe is possessive. The "2nd meeting" belongs
to the "Western Sydney Linux User Group"...

> For more Linux examples see...
> http://www.sharoncolon.com/shazunix.htm

I'm afraid I don't see this page either. All lynx renders is a list of
headings and no examples. Suspect Javascript (evil :)

> Brian

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] CGI

2002-03-24 Thread Jessica Mayo

On Sun, 24 Mar 2002, Adam Hewitt wrote:
> please tell me which files may be setup incorrectly in order to give me 
> access...I have added the following to my srm.conf file:
> 
> ScriptAlias /cgi-bin/ /usr/local/cgi-bin/
> 
> and this to my access.conf file:
> 
> 
> order deny,allow
> deny from all
> allow from 192.168.0.1
> 

I've never installed squid before, but something doesn't look right
here...

There should be something matching up in what you've added to both files.
Check exactly where cachemgr.cgi is on the harddisk.

>From what I see above, I'm expecting it will be in /usr/local/cgi-bin,
in which case the scriptalias line is wrong.

Try this line instead:

ScriptAlias /Squid/cgi-bin/ /usr/local/cgi-bin/

It is also possible that apache just isn't set up to allow cgi scripts.
There is fairly good comments in the apache config files, but look for a
line something like "ScriptHandler .cgi" ... It's probably commented out.
Delete the hash sign in front and restart apache.

Another possibility is that you're not getting through the 'allow from'
filter. is 192.168.0.1 your local machine? TCP/IP connections within your
local machine usually end up being from 127.0.0.1, rather than the address
of your ethernet card.

I might be able to come up with some more ideas. Let me know how you go.

-- Jessica Mayo.
(Everything with a Grin :)

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



[SLUG] I dream in #!/bin/bash (splitting a diff patch)

2002-03-23 Thread Jessica Mayo


I was looking at UML this morning. I wanted a Win32 port.
I downloaded the patch to the latest stable 2.4 kernel.

[ done while looking over the LINE 0.5 code (think Lin4Win :) ]

But I'll never get started with distractions like these...

... I wanted to look at said patch file in a non-linear fashion. :)

It contains diffs for a large number of files in the kernel tree, and I
wanted an overall picture, not the line-by-line view I was getting.
I wanted to extract those diffs into their proper tree, without patching.

... enter grep.

I could grep for all lines containing 'diff'. That would show me all
modified/added files, but looking up more detail was still tedious.

... enter a monster...  :)

cat uml-patch-2_4_18-10 | {
while read LINE; do
set -- $LINE
if [ "$1" = "diff" ]; then
echo
while [ "$2" ]; do shift; done
FILE="$1.diff"
if [ -e $FILE ]; then
echo skipping $FILE
FILE=
else 
echo creating $FILE
mkdirhier `dirname $FILE`
fi
fi
echo -n .
[ "$FILE" ] && echo "$LINE" >> $FILE
done
}

... enter bright idea

. o O (Maybe someone else wants to do this)
. o O (If I post it to slug, it'll pop up in the archive search...)

... footnote

I used set/shift to set the args and pick out the first/last words so bash
didn't have to spawn a subprocess. I normally would've used 'cut', but
doing it for every line slowed things down a lot.

... apologies

This was probably a waste of bandwidth.
There's probably a proper tool somewhere to do the job.
Yes, I'm sure scripting in ZSH could've done it better. :-P

-- Jessica Mayo.
(Everything with a Grin :)


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



Re: [SLUG] X -> virtual console, X dies.

2002-03-23 Thread Jessica Mayo

On Sun, 24 Mar 2002, Martin wrote:
> $author = "Jeff Waugh" ;
> > Ouch. :-) X3 or X4?
> 
> the full thing on the chip is Trio3D/2X

What version of X are you running?

-- Jessica Mayo. ( also found 2X vs X3/X4 cryptic. :)
(Everything with a Grin :)

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



Re: [SLUG] ownership of samba shares

2002-03-11 Thread Jessica Mayo

On Mon, 11 Mar 2002, Jeff Waugh wrote:
> 
> > I recall trying this with smbmount recently and it appearing to have no
> > effect... filesystem still mounted root:root...  I can't guarantee what
> > samba/kernel version it was on though.
> > 
> > So: If anyone does get this to work, please post and I'll try again. :)
> 
> Using smbmount is passe now, use mount... ;)

"not knowing what kernel version" == a 'Legacy' redhat system. :)
When was this functionality finally properly integrated into mount?

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] ownership of samba shares

2002-03-11 Thread Jessica Mayo

On Mon, 11 Mar 2002, Jeff Waugh wrote:
> 
> > I have a directory shared/exported by samba and mounted on another (linux)
> > machine.  The problem is when mounted on the second machine all the files
> > and dirs in there are owned by root:root and rwxr-xr-x.  This is despite
> > me mounting it by specifying a username and entering my passwd.  This
> > means of course I can't write to anything under there unless I'm root.  An
> > M$ machine can write to it ok.  So what can I set in the smb.conf file to
> > fix it?  (it's not apparent to me from scanning the doco in
> > /usr/doc/samba-doc.)
> 
> You want to add the uid and gid parameters to your mount command on the
> client machine.

I recall trying this with smbmount recently and it appearing to have no
effect... filesystem still mounted root:root...
I can't guarantee what samba/kernel version it was on though.

So: If anyone does get this to work, please post and I'll try again. :)

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] bash shell script variables

2002-03-04 Thread Jessica Mayo

On Mon, 4 Mar 2002, Paul Cameron wrote:
> 
> Are you XFire's crazy girlfriend?

Can't claim that title. I'm the _OTHER_ Jess. :)

> Paul.
> 
> PS. And if so, shine on you crazy diamond!

Heh Yeah. Now I've met REAL crazy, I realise I'm merely deranged. :)

-- Jessica Mayo. [big Jess]
(Everything with a Grin :)

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



Re: [SLUG] bash shell script variables

2002-03-03 Thread Jessica Mayo

On Mon, 4 Mar 2002, Alister Waller wrote:
> What I want is for the script to process the export for each company in the
> companies file and check to see if that companies export flag is set to YES,
> if so do the export, if not then miss it out.

> RRexportflag=yes
> XXexportflag=no
> for i in `cat companies`
> do
> if [ $iexportflag = "yes" ] ; then
> ...do some exporting ...
> fi
> done
> 
> The problem I have is that the $iexportflag becomes RRexportflag and Not the
> value (yes) which is what I want.
> can someone suggest the best way to get this to work?

if [ `eval echo $"${i}exportflag"` == "yes" ] ; then
...

But that's a nasty piece of code.
I really would suggest putting the export flags somewhere other than in
the same file as the script. Even have a seperate file just listing the
companies to export.

-- Jessica Mayo.
(Everything with a Grin :)


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



Re: [SLUG] Sendmail problem

2002-02-27 Thread Jessica Mayo

On Wed, 27 Feb 2002, Simon Bryan wrote:
> below is the information from one such email. The server is called vortex
> and the domain vortex.olmc.nsw.edu.au is correct and is handled by our ISP.
> However notice that this app sends the mail from
> vortex.vortex.olmc.nsw.edu.au. I can find nowhere in IRM that this is set.

HOSTNAME+DOMAINNAME = Fully Qualified Host Name
vortex + vortex.olmc.nsw.edu.au = vortex.vortex.olmc.nsw.edu.au

should it really be this: ?
HOSTNAME+DOMAINNAME = Fully Qualified Host Name
vortex + olmc.nsw.edu.au= vortex.olmc.nsw.edu.au

i.e. it sounds like your domain name is misconfigured.
I can do a Mail Server lookup for the second Fully Qualified Name, but not
the first.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Keeping TCP character strings together

2002-02-25 Thread Jessica Mayo

On Mon, 25 Feb 2002, Howard Lowndes wrote:
> When a user is logged into a rlogin, telnet, or ssh session over TCP sockets
> there is often the occasion that one stroke of the keyboard can produce a string
> of characters (Fkeys, arrow keys, etc)
> 
> What is the best way to keep this string together in a given TCP packet instead
> of being split over 2 or 3 packets.

This is going to sound really daft...

The best way to ensure your keypress packets don't get split is to wait
for the result of each kepress to appear on the screen before pressing the
next key... Thus forcing the client to send lots of little packets that
won't get split, rather than delaying a moment and then sending several
keypresses at once.

> The problem is that at the receiving end there could be a timing problem where
> if the string gets split over more than, say, 10 msec then it not considered to
> be the result of just one keypress, but is considered to be the result of a
> number of individual key presses and thus gets handled differently.

Yeah, there's piles of laments about daft design of dumb terminals all
through the ncurses documentation. Whoever decided to use escape codes and
then put an escape key on the keyboard must have been daydreaming.

I guess you could find a way to just assume that escape won't occur on
it's own... but that's just as bad an option, in my book. Users expect it
to do something.
_I_ should probably do a search, but it's not my promlem. :)
I'll just wait to hear how you do. :)

-- Jessica Mayo.
(Everything with a Grin :)
[and cursing early mornings... Zzz..]

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



Re: [SLUG] Small correction to that "nextx" script

2002-02-23 Thread Jessica Mayo

On Sun, 24 Feb 2002, Scott Howard wrote:
> Doesn't Linux have pgrep?

Linux is the kernel, not the distribution... :)
Out of curiosity, What distribution/version are you running?

> [scott@milliways scott]$ pgrep syslogd
> 249
> [scott@milliways scott]$ which pgrep
> /usr/bin/pgrep

Of the 3 distributions I have ready access to:
ASPLinux 7.1:   Has it.
RedHat 6.1: Does not.
Slackware 7.1:  Does not.

>   Scott.

-- Jessica Mayo.
(Everything with a Grin :)

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



Re: [SLUG] Shocking Service

2002-02-22 Thread Jessica Mayo

On 23 Feb 2002, paul wrote:
> I am just posting to the list to comment on the shocking service and
> treatment me and my firend recived at the House of Ghanzou.
> We ask for WATER and they wanted to charge us $1 per person, i feel that
> this is an out rage, we as a group spent almost $800 there. At least
> they can give us some free water. I mean they pay what, 8c for a
> 1000L.
> Then the next incident which really pissed me off was when my friend
> ordered a coke, the waiter came back with a glass full of coke. Then
> when my friend ask if it came with the can the waiter ignored him,
> looked right past him .

I am afraid I feel that these comments are unfair.

Many restaurants have the same soft drink equipment that take-away chains
have - it comes out of a tap, and there is no can to be had. Sometimes
they do also have cans available for takeaway customers, but you would
have to specifically ask for it...

re: water...
I have found that there are increasingly few places in sydney that will
provide tap water. This accelerated dramatically at the time of the
crypto-spiridium and ghiardia scares. Can you assure me that what you
served was indeed tap water? The problem is that restaurants have no
assurance over the quality of what they are serving. If you get sick from
drinking the water they server, you won't think much of the restaurant,
will you?

> This i feel is shocking service, we as a group spen more then $800 there
> and they give us this shocking service. I think that SLUG should
> re-asses its dinner arrangments if this is the kind of service that we
> recive.

I do agree that the service is indifferent, and the waiters hard to
attract for drinks, but apart from that, the complaints here would apply
equally to any fast-food chain. The House of Guang Zhou is ionly one step
above KFC.

Do you have an alternate suggestion? I'd happily hear it. :)

> Paul.

-- Jessica Mayo.
(Everything with a Grin :)

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