Re: [SLUG] remote control

2002-03-23 Thread Mike Holland

On Sat, 23 Mar 2002, Marko Denev wrote:

 I would like to be able to remote control my linux box. I'm thinking of

You mean remote access? That was the norm in the old days when everybody
used a terminal to share a unix server. So it works well.

 either just telnet to it or using some other software such as PC Anywhere on
 the Wintel platform ( have not decided on this option as yet).

Dont use telnet - its very insecure with passwords sent in clear-text.
 You want 'ssh', which has win-dos clients such as putty.

Of course, X-windows has always worked over a network. Or use VNC.

 Anyway my question is is there a how-to or a man document that explains how
 to enable telnet to my linux box. I know it will be handled on port 23 but I

 man -k telnet?  Just install the telnet daemon, and RTM. But DONT.
Install ssh instead.

 don't remember how to invoke the telnet software/daemon. I hope this

Its normally invoked from the /etc/inetd.conf mechanism.

-- 
The human race is faced with a cruel choice - work or daytime
television -- Dave Barry

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



[SLUG] A library to render to raster bitmaps?

2002-03-23 Thread Michael Still


Hey all,

I'm after a library which can turn arbitary commands like moveto(),
lineto(), drawTextOverThere() et al into bitmaps in memory... Is anyone
aware of anything like this?

Thanks,
Mikal

-- 

Michael Still ([EMAIL PROTECTED]) UMT+11hrs

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



Re: [SLUG] Redhat 7.1 installation problem

2002-03-23 Thread Darren Williams


- Original Message -
From: S Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 7:36 AM
Subject: [SLUG] Redhat 7.1 installation problem


 Hi

 I bought the Linux minibook from PC World (see www.idg.com.au). It came
with
 CDs that included Redhat 7.1. I tried to install Redhat 7.1 from those CDs
 on my PC but it did not prompt me to install LILO. My harddisk has several
 partitions, the primary partition has Win98 and I have created partitions
 for Linux and Linux swap on extended / logical partition before the
 installation.

 Am I missing something? How do I install LILO after I install Linux? This
is
 my first time to touch Linux.

 Thanks in advance.

 Lee

 Use Your red hat rescue disk to boot linux
login as root
and type lilo
should see some thing like
%added linux*
%added dos

the * is the default when you have fixed this see the lilo HOW TO for
some tips.


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



Re: [SLUG] Redhat 7.1 installation problem

2002-03-23 Thread Darren Williams


- Original Message -
From: S Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 7:36 AM
Subject: [SLUG] Redhat 7.1 installation problem


 Hi

 I bought the Linux minibook from PC World (see www.idg.com.au). It came
with
 CDs that included Redhat 7.1. I tried to install Redhat 7.1 from those CDs
 on my PC but it did not prompt me to install LILO. My harddisk has several
 partitions, the primary partition has Win98 and I have created partitions
 for Linux and Linux swap on extended / logical partition before the
 installation.

 Am I missing something? How do I install LILO after I install Linux? This
is
 my first time to touch Linux.

 Thanks in advance.

 Lee
 More Info: http://lists.slug.org.au/listinfo/slug

Lets try again sorry about the HTML

Use Your red hat rescue disk to boot linux
login as root
and type lilo this will add lilo as your boot loader
should see some thing like
%added linux*
%added dos

the * is the default when you have fixed this see the lilo HOW TO for
some tips.



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



[SLUG] File Access on cdrom

2002-03-23 Thread Dennis Curnow`

G'Day Gang,

I have files I want to access on a cdrom  but don't seem to be able to list the 
contents 
with ls although cat gave me three and a half truck loads of gobbledegook so I 
figure  
the cdrom is mounted ok.
I still don't have X working yet so this is all done from the command prompt.
Can someone point me in the right direction please.

TIA

Kind Regards 
Dennis


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



Re: [SLUG] File Access on cdrom

2002-03-23 Thread Ken Foskey

On Sat, 2002-03-23 at 23:40, Dennis Curnow` wrote:
 G'Day Gang,
 
 I have files I want to access on a cdrom  but don't seem to be able to list the 
contents 
 with ls although cat gave me three and a half truck loads of gobbledegook so I 
figure  
 the cdrom is mounted ok.
 I still don't have X working yet so this is all done from the command prompt.
 Can someone point me in the right direction please.

I am going to take a stab in the dark.

I think you might be accessing /dev/cdrom.  If you are you have to mount
the cdrom.  On redhat you can 'mount /mnt/cdrom'  (others such as debian
are 'mount /cdrom' so try that as well).  You then access the cd through
the /mnt/cdrom directory.  Once you have finshed with the cd get out of
the /mnt/cdrom entirely and use the command 'eject /mnt/cdrom' to get
the cd out again.

/dev/cdrom is raw access to the CD,  you are getting everything from the
CD sequentially, including directories.

If this is not your problem please post a sample ls command.

Thanks
KenF

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



Re: [SLUG] File Access on cdrom

2002-03-23 Thread Darren Williams


- Original Message -
From: Dennis Curnow` [EMAIL PROTECTED]
To: Sydney Linux Users Group [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 11:40 PM
Subject: [SLUG] File Access on cdrom


 G'Day Gang,

 I have files I want to access on a cdrom  but don't seem to be able to
list the contents
 with ls although cat gave me three and a half truck loads of
gobbledegook so I figure
 the cdrom is mounted ok.
 I still don't have X working yet so this is all done from the command
prompt.
 Can someone point me in the right direction please.

 TIA

 Kind Regards
 Dennis

try df to see if it is truly mounted

you should see your cdrom in output

Darren

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



[SLUG] strange users,groups and daemons

2002-03-23 Thread Christopher Booth

checking out users on the system through linuxconf

user tinydns
home directory=/var/djbdns (non-existent directory)
command interpreter=/bin/true

and user axfrdns
home directory=/var/djbdns
command interpreter=/bin/true

looking at snort user
home directory=/var/log/snort
command interpreter=/bin/false

looking through other users, it seems common to use /bin/false and /bin/true as 
command interpreters.

Is this common ?

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



Re: [SLUG] strange users,groups and daemons

2002-03-23 Thread Jan Schmidt

quote who=Christopher Booth

 looking through other users, it seems common to use /bin/false and /bin/true as 
command interpreters.
 
 Is this common ?
 
 
It is a common thing to do when the accounts should never be used for
login.

Both /bin/false and /bin/true return immediately, doing nothing, so drop
straight back to the login prompt even if you do manage to somehow get 
past the login prompt for those accounts.

J.

--
Jan Schmidt  [EMAIL PROTECTED]

Open Source Software: Free as in Free Speech, not Free Beer
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] broken cvs on woody

2002-03-23 Thread Ken Foskey


I updated on Debian woody and CVS is broken:

? nas/unxlngi3.pro
cvs: lock.c:177: lock_name: Assertion `(__extension__
(__builtin_constant_p ( strlen (CVSroot_directory))

more of the assertion is snipped.

How do I report these errors?

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



Re: [SLUG] broken cvs on woody

2002-03-23 Thread Daniel Stone

On Sun, Mar 24, 2002 at 10:40:47AM +1100, Ken Foskey wrote:
 
 I updated on Debian woody and CVS is broken:
 
 ? nas/unxlngi3.pro
 cvs: lock.c:177: lock_name: Assertion `(__extension__
 (__builtin_constant_p ( strlen (CVSroot_directory))
 
 more of the assertion is snipped.
 
 How do I report these errors?

First, check http://bugs.debian.org/cvs to see if this bug has already
been reported. If not, install reportbug, type reportbug cvs, and
include the *full* *text* of the assertion.

-- 
Daniel Stone[EMAIL PROTECTED]
StevenK *sigh* 3 minutes to download 300Kb.
* StevenK encorages his download TO HURRY THE FUCK UP.
mrjazzman StevenK: u're on ihug bandwidth what do you want
StevenK I could get out and push faster, for fucks sake.



msg21872/pgp0.pgp
Description: PGP signature


[SLUG] BIND / Network connection

2002-03-23 Thread Paul Robinson



Hi Sluggers,
 Firstly, appologies for mail 
client, I'm currently without a Linux Desktop. I was wondering if anyone knows 
how to bind a program to a particular IP for outgoing communications? 
Specifically I am setting up Bind as a secondary DNS and it's grabbing zone info 
from a master server.. The master is a Win2k box that is set to accept zone 
request info from domain only. For each of the 3 domains he's set the ns2 (the 
linux box) to be a different ip so that when reverse lookups are set up it will 
only show the relevant domain).

 I've scoured the web and I've 
found doco's on how to run multiple instances of bind and to set each to listen 
to a certain ip. This is all great but it doesn't set the src ip of any requests 
it makes to be the ip it listens to. So what happens is that although the linux 
box has eth0 and 18 aliased ip's on eth0 (ie eth0:0 - eth0:17) whenever it tries 
to grab the zone info from ns1 all the win2k box see's is the eth0 
ip.

I hope this makes sense as I'm not 100% sure if 
this is the most easily understandable explaination.. I guess essentially what 
I'm trying to acheive is to spoof the ip address like nmap can do.. I was 
wondering if ipchains might have been the answer.. because the ns1 for each 
domain has a different ip and I was wondering if there is a rewrite ip header 
ability where if dest ip = ns1.domain1 then rewrite src ip to 
ns2.domain1.

Is any of this possible or am Iasking for 
things that shouldn't be? I'd prefer it if there is an ipchains/ tables solution 
rather than a multiple instance of bind solution as that way there's just 1 
instance of bind running and hence there aren't the performance overheads to 
contend with.

Thanks in advance.

Paul


Re: [SLUG] BIND / Network connection

2002-03-23 Thread Jeff Waugh

quote who=Paul Robinson

 Firstly, appologies for mail client, I'm currently without a Linux
 Desktop. I was wondering if anyone knows how to bind a program to a
 particular IP for outgoing communications? Specifically I am setting up
 Bind as a secondary DNS and it's grabbing zone info from a master server..
 The master is a Win2k box that is set to accept zone request info from
 domain only. For each of the 3 domains he's set the ns2 (the linux box) to
 be a different ip so that when reverse lookups are set up it will only
 show the relevant domain).

As it happens, I asked a similar question a week or so ago, but with one
crucial difference: I just wanted requests to come from the primary IP, not
any of the aliases.

If you can change your config around to accommodate that, then you can use
dummy interfaces instead of aliases (as suggested by Jess). That's all I
needed, and I certainly didn't want to go to the trouble of a more
complicated solution for that.

If you can't, or don't want to do it that way, the best solution is
iproute2. You can set up a rule that will do the funky routing that you
require. A good intro is the Advanced Routing Howto:

  http://www.linuxdoc.org/HOWTO/Adv-Routing-HOWTO.html

- Jeff

-- 
   I used the word 'infrastructure' when describing her cooking style...
   and she didn't speak to me for a week.   
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] RedHat Update Service

2002-03-23 Thread Darrell Burkey

Is anyone here using the RedHat online update service? I signed up for it
some time ago with the license from a CD purchased in one of those pocket
book publications. It worked so well that when I went to set up a server for
a local community group I went to their new online RedHat Network section
of their web site and paid $US60 for the same thing I got for free with the
$20 CD mentioned above. I thought at the time that it was odd to pay $A120
for something that came with a cheap CD but hey, I was in a hurry and I
don't mind supporting good work anyway. We can only expect so much for free
and I've been with RH for many years now (yes, that's flame bait for those
of you who are bored).

Anyway, a few months ago I noticed that my subscription had changed to two
servers using the Basic service to one server on Basic and the other on a
new Workgroup offering. I didn't think too much of it as I rarely use the
web site as I do all the updating from the client side command line. After
recent discussions with their sales people (which took over a month for them
to contact me, and then only after a complaint) I discovered that they have
been charging me $US20 a month for this new service when I had only paid for
a one-off $US60. That's about $A480 a year for something that came for free
with a CD not long ago. Not to mention the issue of billing someone's credit
card without permission. I cry foul!

I've been faxed the invoices but no proof of the original order. They have
stated that they will refund my money but they have yet to explain to me why
anyone would pay this in the first place when you can get the service for
free upon purchasing a CD at any newsagent? Strikes me as a very odd way to
do business.

So heads up about the service and I'd be most interested to hear from anyone
else who is using it.

Cheers.

~~~
darrell@home

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



[SLUG] Changing source address

2002-03-23 Thread John Ferlito

One of those tricky routing things. I'm trying to work out f it is
possible to do the following using iproute. Setup is as follows


adsl0: 203.62.148.1/30
ipsec0: 203.62.148.1/30
eth0: 192.168.0.1/24

routes:
Destination Gateway Genmask Flags Metric RefUse Iface
203.62.148.00.0.0.0 255.255.255.252 U 0  00 adsl0
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 eth0
192.168.2.0 203.62.148.2255.255.255.0   U 0  00 ipsec0
0.0.0.0 203.62.148.20.0.0.0 U 0  00 adsl0



Now the problem is I only have the one IPSEC tunnel set up
  192.168.0.0/24 - 192.168.2.0/24

which means the subnets can talk to each other but this linux box can't
talk to the 192.168.2.0/24 subnet. Normally you would setup a new tunnel
as so
  203.62.148.1/32 - 192.168.2.0/24
but unfortunatley I can't.

Now if I use hping2 to change the source address of ping packets as so

hping2 --icmp -a 192.168.0.1 192.168.2.20

I can ping things fine. So what I want to be able to do is whenever
traffic goes down ipsec0 I want to change my source address from
203.62.148.1 to 192.168.0.1. I think it is possible to do this with
iproute but I'm not quite sure how. Also a bit difficult to test since
the said linux box is in Melbourne and I;ve already managed to muck up
the routing on it so I can't talk to it :)

I was thinking of doing seomthing like the folowing but not sure if it's
right.

ip rule add prio 320 from 203.62.148.1 nat 192.168.0.1 dev ipsec0

I seem to be missing something else. Has anyone ever done anything like
this is there a better way.

NB 2.2 kernel so no iptables shenanigans :)


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



Re: [SLUG] RedHat Update Service

2002-03-23 Thread Terry Collins

Darrell Burkey wrote:

...snip...

 So heads up about the service and I'd be most interested to hear from anyone
 else who is using it.

Basically, you can sign up one system for free, the rest/extra you have
to pay for. In my case, I signed up an unimportant system with
everything installed (then switched it all off). This gets you a
notification email service. What you do after that is up to you.

-- 
   Terry Collins {:-)}}} Ph(02) 4627 2186 Fax(02) 4628 7861  
   email: [EMAIL PROTECTED]  www: http://www.woa.com.au  
   Wombat Outdoor Adventures Bicycles, Books, Computers, GIS

 People without trees are like fish without clean water
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] X - virtual console, X dies.

2002-03-23 Thread Martin

hi guys

i'm running debian testing, though i have moved to the 2.4.14 kernel in
order to get ext3.

gdm runs at startup and i log into X. then if i try to switch to a virtual 
console using Ctl-Alt-F1 it works but trying to get back to X or any other 
virtual console results in a blank screen and nothing brings either X or a 
virtual console back.

maybe this is related to a problem i have in that gdm sometimes doesn't
start properly upon bootup, leaving me with a blank screen and trying to
switch to a virtual console doesn't work. gdm usually runs fine after a
reboot.

there is nothing in the log files after one of these crashes. any ideas?

thanks
marty

--
Skirwan - And if pigs can fly, and I can ride one, and they fly me to hell, 
   and it just froze over, and we all have ice cream... [1]

talonyx - I really need to stop reading Slashdot while on codeiene... [2]

[1] - http://slashdot.org/comments.pl?sid=28984cid=3113144
[2] - http://slashdot.org/comments.pl?sid=28984cid=3113355
-- 
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 Jeff Waugh

quote who=Martin

 gdm runs at startup and i log into X. then if i try to switch to a virtual
 console using Ctl-Alt-F1 it works but trying to get back to X or any other
 virtual console results in a blank screen and nothing brings either X or a
 virtual console back.

What's your video card?

- Jeff

-- 
 World domination is a community responsibility. - Michael Hall,  
LinuxPlanet 
-- 
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 Martin

$author = Jeff Waugh ;
 
  gdm runs at startup and i log into X. then if i try to switch to a virtual
  console using Ctl-Alt-F1 it works but trying to get back to X or any other
  virtual console results in a blank screen and nothing brings either X or a
  virtual console back.
 
 What's your video card?

S3 Trio

output of lspci -v

01:00.0 VGA compatible controller: S3 Inc. 86c368 [Trio 3D/2X] (rev 01)
(prog-if 00 [VGA])
Subsystem: S3 Inc. Trio3D/2X
Flags: bus master, medium devsel, latency 32
Memory at d400 (32-bit, non-prefetchable) [size=64M]
Expansion ROM at unassigned [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Capabilities: [80] AGP version 1.0

marty

--
Skirwan - And if pigs can fly, and I can ride one, and they fly me to hell, 
   and it just froze over, and we all have ice cream... [1]

talonyx - I really need to stop reading Slashdot while on codeiene... [2]

[1] - http://slashdot.org/comments.pl?sid=28984cid=3113144
[2] - http://slashdot.org/comments.pl?sid=28984cid=3113355
-- 
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 Jeff Waugh

quote who=Martin

 $author = Jeff Waugh ;
  What's your video card?
 
 S3 Trio

Ouch. :-) X3 or X4?

- Jeff

-- 
   Odd is good by the way. I knew normal in high school and normal hates   
me. - Mary Gardiner
-- 
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 Martin

$author = Jeff Waugh ;
  
  S3 Trio
 
 Ouch. :-) X3 or X4?

the full thing on the chip is Trio3D/2X

i can't see any other markings to indicate what board it is or any more info
on the chipset...

marty

--
Skirwan - And if pigs can fly, and I can ride one, and they fly me to hell, 
   and it just froze over, and we all have ice cream... [1]

talonyx - I really need to stop reading Slashdot while on codeiene... [2]

[1] - http://slashdot.org/comments.pl?sid=28984cid=3113144
[2] - http://slashdot.org/comments.pl?sid=28984cid=3113355
-- 
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] X - virtual console, X dies.

2002-03-23 Thread Martin

$author = Jessica Mayo ;
 
 What version of X are you running?

a... rainbows!

XFree86 Version 4.1.0.1


 also found 2X vs X3/X4 cryptic. :)

yeah, i wasn't on jeff's wavelength... :)

marty

--
Skirwan - And if pigs can fly, and I can ride one, and they fly me to hell, 
   and it just froze over, and we all have ice cream... [1]

talonyx - I really need to stop reading Slashdot while on codeiene... [2]

[1] - http://slashdot.org/comments.pl?sid=28984cid=3113144
[2] - http://slashdot.org/comments.pl?sid=28984cid=3113355
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] Satellite Connections

2002-03-23 Thread Karl Bowden

Just wondering if anybody has had any experiance with satellite broadband?

I snigger want /snigger a two-way satellite connection, but have only
found offerings by telstra at the moment
(http://www.bigpond.com/broadband/satellite/2wayPricing.asp).

The price is pretty steep and I am unable to get cable or ADSL broadband
services out here in regional australia (Forster).

I have a group of friends that would like broadband as well and are
interested in going into a co-op type group for our access using 802.11b to
distribute the bandwidth.

Because the access is so high on a two-way satellite I was wondering if I
also got a one-way sat
(http://www.bigpond.com/broadband/satellite/pricing.asp,
http://www.nobbys.net.au/meteor/plans.htm) Like the Meteor Leo, that has a 2
Mbps download speed, if i was able to use the two-way for sending requests,
and the one-way (without using dialup, because we have shocking phone lines
out here) AND the two-way to receive requests, with the one-way being the
preference, and the two-way being used as a backup when we fill the one-way?

I would also like to keep track of how much traffic each user generates
through the gateway (user auth?), but not keep track of local internal
traffic.

any comments? (or anybody know of any cheeper two-way or one-way?)

Regards,

Karl  Some pest with high hopes  Bowden

-- 
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



[SLUG] newbie Q's

2002-03-23 Thread Henry T Wijaya

Hi listers,

just installed mandrake 8.2 on my laptop, the furthest progress on linux
I've made so far after departing from slackware. was tinkering around
and few newbie questions that cropped up  I hope wouldn't take up much
of your time, mind you that some questions would seem trivial.

1) when gnome is loading, a beep is emitted. yet, when trying to play an
audio cd  a wav file, no sound is heard. peeked into rpmdrake, and
found gnome-audio package is installed. so where should I go poking next?
2) There're 3 other pc's using Win2k, and had some partitions shared.
How do I access those shared partitions? What program do I use
specifically? Do I simply mount them just like cdrom?
3) There's a black square-ish black box at the bottom right hand corner
of the screen. What's that for?
4) Was tinkering around and add a clock panel. had it removed, instead
of the rest of the icons filling up the empty space, it seems as if
there's a ghost copy, thus gaps. how do I remove those gaps?
5) how do I mount a NTFS volume created by W2k, that's residing on the
same hdd?
6) does licq able to use the data files used by windows version of icq2001b?
7) does Galeon able to use the mail data file created by windows
versionn of Netscape 6.2?  
8) I'm using a broadband router. The manual deals with Windows only and
had instructions to fill in the address of DNS servers and the DNS
suffix for this connection field under windows. Is there such
equivalent field under linux? How do I add such entries?
9) Upon starting Gnome, it complains of my host isn't a valid entry.
Does it refers the host as the name of this pc? I'd put in
nsw.bigpond.net.au thinking that it's referring to DNS suffix.
Obviously I'm wrong.
10) Lastly, installing StarOffice should be done under root, right?

Thank in advance.

Rgds,
H T Wijaya
 

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



Re: [SLUG] newbie Q's

2002-03-23 Thread Jeff Waugh

quote who=Henry T Wijaya

 1) when gnome is loading, a beep is emitted. yet, when trying to play an
 audio cd  a wav file, no sound is heard. peeked into rpmdrake, and found
 gnome-audio package is installed. so where should I go poking next?

In the Control Centre, under Multimedia, then Sound. Make sure Enable sound
server at startup is checked.

 2) There're 3 other pc's using Win2k, and had some partitions shared.
 How do I access those shared partitions? What program do I use
 specifically? Do I simply mount them just like cdrom?

Kinda, but like this:

  mount -t smbfs //windowsmachine/share /mnt

 3) There's a black square-ish black box at the bottom right hand corner
 of the screen. What's that for?

Not sure. Screenshot? (Please pop it up on a website, not attached to your
email to the list.)

 4) Was tinkering around and add a clock panel. had it removed, instead
 of the rest of the icons filling up the empty space, it seems as if
 there's a ghost copy, thus gaps. how do I remove those gaps?

Middle-drag the other applets and icons along the panel.

 5) how do I mount a NTFS volume created by W2k, that's residing on the
 same hdd?

NTFS under Linux is pretty unstable. You can mount it read-only with the
ntfs module, though. Same as anything else, you just have to specify the
filesystem type:

  mount -t ntfs /dev/hd?? /mnt

 6) does licq able to use the data files used by windows version of
 icq2001b?

No.

 7) does Galeon able to use the mail data file created by windows
 versionn of Netscape 6.2?  

Galeon doesn't handle your mail, it's just a web browser. You'll have to use
Mozilla, and I believe it can use the mail files you use under Windows.

 8) I'm using a broadband router. The manual deals with Windows only and
 had instructions to fill in the address of DNS servers and the DNS suffix
 for this connection field under windows. Is there such equivalent field
 under linux? How do I add such entries?

/etc/resolv.conf:
search nsw.bigpond.net.au
nameserver ip.address.of.nameserver
nameserver ip.address.of.nameserver

 9) Upon starting Gnome, it complains of my host isn't a valid entry.
 Does it refers the host as the name of this pc? I'd put in
 nsw.bigpond.net.au thinking that it's referring to DNS suffix.
 Obviously I'm wrong.

You'll need to add an entry to your /etc/hosts file.

 10) Lastly, installing StarOffice should be done under root, right?

Generally, no.

- Jeff

-- 
 Broken hearts rarely come with Some Assembly Required stickers.  
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] newbie Q's

2002-03-23 Thread Crossfire

Jeff Waugh was once rumoured to have said:
 quote who=Henry T Wijaya
  10) Lastly, installing StarOffice should be done under root, right?
 
 Generally, no.

Unless you want to install it properly[1].

As root, use:

setup /net

This puts a shared installation onto your system.

Then log as your user, and run setup from the path you installed
StarOffice into previously, and it'll install the user specific data
into your home directory.

C.

[1] I don't believe in user-local software installation, especially
for something as large as staroffice.
-- 
--==--
  Crossfire  | This email was brought to you
  [EMAIL PROTECTED] | on 100% Recycled Electrons
--==--
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] newbie Q's

2002-03-23 Thread Tony Green

On Sun, 2002-03-24 at 18:24, Henry T Wijaya wrote:
 Hi listers,
 
 just installed mandrake 8.2 on my laptop, the furthest progress on linux
 I've made so far after departing from slackware. was tinkering around
 and few newbie questions that cropped up  I hope wouldn't take up much
 of your time, mind you that some questions would seem trivial.

Thats what we're here for ;-)

 
 1) when gnome is loading, a beep is emitted. yet, when trying to play an
 audio cd  a wav file, no sound is heard. peeked into rpmdrake, and
 found gnome-audio package is installed. so where should I go poking next?
Sound in gnome is done through a daemon called ESD (no comments on its
efficency are requested or required!).  You can go to a command prompt
and type
ps -ef | egrep esd
You should see something like this
tgreen@cavey:~$ ps -ef | egrep esd
tgreen1018 1  0 Mar22 ?00:00:00 esd -nobeeps

This means that user tgreen (me) is running esd.  If its not running,
make sure you're in the right group (audio on debian, I'm not sure about
'drake.

Then check that you have 'Enable sound server at startup' turned on in
the Gnome Control Center and restart your session (logout/login).

You may also want to check that you have the volume turned up on the
mixer (I know you got beeps, but the mixer settings may get clobbered
during your session startup.

 2) There're 3 other pc's using Win2k, and had some partitions shared.
 How do I access those shared partitions? What program do I use
 specifically? Do I simply mount them just like cdrom?

You need to use a package called samba.  There are a lot of howto's out
there on this, but to give you an overview

mount -t smbfs -o username=tgreen,passwd=mypass //windowsbox/windows
share /mnt

(the above is all one command)

That should give you a place to start.  If you get an error about smbfs
not supported, check you have the samba package.

 3) There's a black square-ish black box at the bottom right hand corner
 of the screen. What's that for?

Possible load/network monitor (I have two, do they look like the ones in
http://bandcamp.tv/misc/screenshots.html ?)

If not, perhaps you could email ME (not the list) a screenshot

 4) Was tinkering around and add a clock panel. had it removed, instead
 of the rest of the icons filling up the empty space, it seems as if
 there's a ghost copy, thus gaps. how do I remove those gaps?

Right click on the applet and select 'move' (I think middle button works
too).  you can then slide them around.

 5) how do I mount a NTFS volume created by W2k, that's residing on the
 same hdd?

NTFS (if I remember correctly) is an experimental kernel option and is
available as read only or as read write (I think writing was UBER
dangerous last time I looked).  Don't know if the options you need will
be compiled into the default kernel (read only maybe, I doubt if r/w
will).

Try  (If your NT partition is the first partition on your IDE drive)
mount -t /dev/hda1 /mnt 

 6) does licq able to use the data files used by windows version of icq2001b?

Eer, don't know about that one.  I use gaim (you might like it too),
it has plugins for MSN, Yahoo, ICQ, IRC etc etc etc

 7) does Galeon able to use the mail data file created by windows
 versionn of Netscape 6.2?  

Galeon doesn't have a mail subsystem in it, mozilla (the grunt behind
galeon) does and AFAIK it uses the same mail formats as the windows
version (or it used to at least)

 8) I'm using a broadband router. The manual deals with Windows only and
 had instructions to fill in the address of DNS servers and the DNS
 suffix for this connection field under windows. Is there such
 equivalent field under linux? How do I add such entries?
In the file /etc/resolv.conf, you need to put entries in like this

search this.domain.au
nameserver ip.of.name.server

 9) Upon starting Gnome, it complains of my host isn't a valid entry.
 Does it refers the host as the name of this pc? I'd put in
 nsw.bigpond.net.au thinking that it's referring to DNS suffix.
 Obviously I'm wrong.

You could be missing an entry in your hosts file (/etc/hosts).  The
entry should match your machines name (try the hostname command)

 10) Lastly, installing StarOffice should be done under root, right?
 
If you want to do a multiuser install then you need to login as root and
run 'setup /net' (I think).  This will install the base system and allow
'normal' users to do workstation installs (at about 10mb).


phew, is that it

Let us know how you get on.

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



[SLUG] iptables DNAT help required

2002-03-23 Thread Peter Rundle

Sluggers,

I'm playing around with DNAT on iptables but whenever I try to put the 
rule in I just
get an error Invalid argument. I've looked at a number of examples on 
the net and
they all seem to be doing the same thing that I am. Does anyone know if 
there is
a version problem? I've got kernel 2.4.7-10 and iptables 1.2.3-1

Basically I want to have my firewall allow http traffic through from the 
outside world
to a linux box on the internal net but this is what happens..

# iptables -t nat -A POSTROUTING -p tcp -s 0/0 --dport 80 -j DNAT --to 
192.168.1.99
iptables: Invalid argument

Cluesticks?

Thanks

Pete



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



Re: [SLUG] newbie Q's

2002-03-23 Thread Steve Kowalik

At  6:30 pm, Sunday, March 24 2002, Henry T Wijaya mumbled:
 just installed mandrake 8.2 on my laptop, the furthest progress on linux
 I've made so far after departing from slackware. was tinkering around
 and few newbie questions that cropped up  I hope wouldn't take up much
 of your time, mind you that some questions would seem trivial.
 
 1) when gnome is loading, a beep is emitted. yet, when trying to play an
 audio cd  a wav file, no sound is heard. peeked into rpmdrake, and
 found gnome-audio package is installed. so where should I go poking next?
See if: 1) a module is loaded for your sound card. (Not really needed, as I'm
not sure about Mandrake's kernel config.)
2) Can you 'cat /dev/urandom  /dev/dsp' and hear something like white
noise?
3) Is esound running? (ps aux | grep es)

 2) There're 3 other pc's using Win2k, and had some partitions shared.
 How do I access those shared partitions? What program do I use
 specifically? Do I simply mount them just like cdrom?
Well, it depends on what kind of partition Win2k is using. If it's just
vfat, you can just mount it, but NTFSv5 is more of a problem.

 5) how do I mount a NTFS volume created by W2k, that's residing on the
 same hdd?
Oh crap, answered my own question. You can't really, as the code for
mounting NTFS partitions is really flaky. I haven't really keep up to date
with the situation, but my feeling is that you can't mount NTFSv5, but can
mount NTFSv4.

 6) does licq able to use the data files used by windows version of icq2001b?
No, they are completely incompatible.

 7) does Galeon able to use the mail data file created by windows
 versionn of Netscape 6.2?  
I doubt it.

 8) I'm using a broadband router. The manual deals with Windows only and
 had instructions to fill in the address of DNS servers and the DNS
 suffix for this connection field under windows. Is there such
 equivalent field under linux? How do I add such entries?
The DNS servers, and DNS suffix are put in a file called resolv.conf:
steven@broken:~$ cat /etc/resolv.conf 
search wedontsleep.org
nameserver 192.168.66.1
nameserver 192.168.66.4

 9) Upon starting Gnome, it complains of my host isn't a valid entry.
 Does it refers the host as the name of this pc? I'd put in
 nsw.bigpond.net.au thinking that it's referring to DNS suffix.
 Obviously I'm wrong.
No idea, sorry.

 10) Lastly, installing StarOffice should be done under root, right?

StarOffice is a special case. From memory, you need to do an install of
StarOffice, and then install it yourself as an ordinary user.
 
 Thank in advance.
 
No problem!

-- 
   Steve
ElectricElf Anyone have a favorite low-overhead remote filesystem protocol? 
(NFS and Samba are, of course, options)
DanielS ElectricElf: it's like asking what is the least painful method of 
castration involving a rusty fishing wire



msg21893/pgp0.pgp
Description: PGP signature


Re: [SLUG] iptables DNAT help required

2002-03-23 Thread Crossfire

Peter Rundle was once rumoured to have said:
 Sluggers,
 
 I'm playing around with DNAT on iptables but whenever I try to put
 the rule in I just get an error Invalid argument. I've looked at a
 number of examples on the net and they all seem to be doing the same
 thing that I am. Does anyone know if there is a version problem? 
 I've got kernel 2.4.7-10 and iptables 1.2.3-1
 
 Basically I want to have my firewall allow http traffic through from
 the outside world to a linux box on the internal net but this is
 what happens..
 
 # iptables -t nat -A POSTROUTING -p tcp -s 0/0 --dport 80 -j DNAT --to 
 192.168.1.99
 iptables: Invalid argument
 
 Cluesticks?

s/POSTROUTING/PREROUTING/

DNAT has to be applied before a routing decision is made so the
packets can be routed correctly.

C.
-- 
--==--
  Crossfire  | This email was brought to you
  [EMAIL PROTECTED] | on 100% Recycled Electrons
--==--
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug