Re: [SLUG] ssh and sudo

2001-05-14 Thread Luke Szymanski

There's no X on either boxes.
It didn't help, but thanks anyway.

Luke.

On Mon, 14 May 2001, Grahame Kelly wrote:

 On Mon, 14 May 2001, Luke Szymanski wrote:
  Having installed ssh 2.4 (on freebsd 2.2), I can no longer run sudo
  through the ssh connection.
 
 Use ssh -l loginname -X hostname this will give you a ssh connection
 to hostname with the X environment dispay authentication automagically
 forward
 
 Use sux for the same thing locally.
 
 Cheers, Grahame 
 

-- 
Luke Szymanski [EMAIL PROTECTED]
The Asia Pacific Internet Company www.apic.net



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



Re: [SLUG] ssh and sudo

2001-05-14 Thread Crossfire

Luke Szymanski was once rumoured to have said:
 Hi,
 
 Having installed ssh 2.4 (on freebsd 2.2), I can no longer run sudo
 through the ssh connection.

Just pardon my curiosity,

But why are you:

1) Using such an old version of FreeBSD.

2) Asking FreeBSDish stuff on a Linux list?

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



Re: [SLUG] Sound plays sloowwwllly on ESS1888

2001-05-14 Thread Joshua Burvill


If you can look in the source tree for your kernel,
under Documentation/sound/ there might be some more
details. 

It probably depends a bit on what kernel version you
are using, but for example in 2.4.3 you can find info
about extra module parameters for ESS cards including
ESS1888

I find this area to be a great source of info.

- Josh

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



Re: [SLUG] Sound plays sloowwwllly on ESS1888

2001-05-14 Thread Herbert Xu

Peter Rundle [EMAIL PROTECTED] wrote:

 When I try and play a .wav file or a .mp3 on my Gateway solo 2100 it 
 plays but at about half
 the  correct speed, like a 45 being played at 33.3 for those who 

Sounds like

http://bugs.debian.org/76839

Try loading the module with esstype=1688.
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmVHI~} [EMAIL PROTECTED]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

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



Re: [SLUG] Studying Programming

2001-05-14 Thread Nick Croft

What I've missed out on learning C and gtk+ at home is how to pronounce 
= and == (in my head while reading code).

If you see
 int x = 1;
would you say `assign the value of 1 to the integer x' 
or`int x assignment 1' ?   
or some such?

It seems quite sensible to pronounce == as `equals'.

?

Nick



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



Re: [SLUG] Studying Programming

2001-05-14 Thread David Kempe

 What I've missed out on learning C and gtk+ at home is how to pronounce
 = and == (in my head while reading code).

 If you see
  int x = 1;
 would you say `assign the value of 1 to the integer x'
 or   `int x assignment 1' ?
 or some such?

 It seems quite sensible to pronounce == as `equals'.

I ain't a programmer at all but I reckon a simple 'is' makes for a decent
summary of 'assign the value of'

dave


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



Re: [SLUG] Studying Programming

2001-05-14 Thread Jamie Wilkinson

This one time, at band camp, Nick Croft said:
What I've missed out on learning C and gtk+ at home is how to pronounce 
= and == (in my head while reading code).

= pronounced equals or assignment equals
== pronounced equalsequals or is equal to

If you see
 int x = 1;

I'd say int x equals 1

It seems quite sensible to pronounce == as `equals'.

If you were to write if (x == 1) I'd say if x equal to 1.

-- 
jamesw

Jaq what's wrong with the default? :)
jdub It is poopie.

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



Re: [SLUG] Studying Programming

2001-05-14 Thread Ben Leslie

On Mon, 14 May 2001, Jamie Wilkinson wrote:

 This one time, at band camp, Nick Croft said:
 What I've missed out on learning C and gtk+ at home is how to pronounce 
 = and == (in my head while reading code).
 
 = pronounced equals or assignment equals
 == pronounced equalsequals or is equal to
 

The great thing about the english language is that you can usually
work it out from the context :). Although I do like the equals for =
and equals equals for ==. 

Benno

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



[SLUG] iptables logging

2001-05-14 Thread Jonathan David Wheelhouse

Hi

I run Debian Sid and have recently thought to tighten security on my
single dialup box.  I went through commenting out various unneeded
services in inetd and compiled a 2.4.3 kernel with all the netfilter
stuff as modules.

I put 'Rusty's Really Quick Guide To Packet Filtering' of his Linux
2.4 Packet Filtering HOWTO into a script and added some logging stuff
just to see in syslog that packets are coming through.  When I'm
satisfied that the script works OK I'll remove all logging rules but
the 'packets dropped' one.

My question is this. Do all of the packets go onto the next rule after
the first LOG rule?  That would make sense but the HOWTO was for me a
bit ambiguous.  ie. It says basically that each rule specifies a set
of conditions and what to do if a packet meets them.  So, if the
packet meets the conditions for the DROP rule; then the packet is
dropped.  It doesn't go onto the next rule.  But in this case,
logging, it really only makes sense if the packet does go onto the
next rule.

So, can anyone confirm this?

I thought I would put the script in the /etc/ppp/ip-up.d directory so
that when I dialed into my ISP (via pon) the packet filtering would
start.

I also created a script, packet-filter-down, to basically flush the
chains and remove the modules when I 'poff'; this script will go in
/etc/ppp/ip-down.d.

Are there any better ways?  Anything wrong with the above?

Here are the scripts:
packet-filter

#!/bin/sh
# Insert connection-tracking modules (not needed if built into kernel).
/sbin/insmod ip_conntrack
/sbin/insmod ip_conntrack_ftp

# Create chain which blocks new connections, except if coming from inside.
/sbin/iptables -N block

/sbin/iptables -A block -m limit --limit 3/minute --limit-burst 3 -j LOG --log-level 
DEBUG --log-prefix $0: 

/sbin/iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT

/sbin/iptables -A block -m limit --limit 3/minute --limit-burst 3 -j LOG --log-level 
DEBUG --log-prefix $0: check 

/sbin/iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT

#/sbin/iptables -A block -m limit --limit 3/minute --limit-burst 3 -j LOG --log-level 
DEBUG --log-prefix packet DROPped: 

/sbin/iptables -A block -j DROP

# Jump to that chain from INPUT and FORWARD chains.
/sbin/iptables -A INPUT -j block
/sbin/iptables -A FORWARD -j block

exit


packet-filter-down

#!/bin/sh

# Flush the chains; remove the block chain.
/sbin/iptables -F block
/sbin/iptables -F INPUT
/sbin/iptables -F FORWARD
/sbin/iptables -X block

# Remove the iptable modules.
# This removes modules beginning with ip; that could
# be dangerous.  Perhaps I should explicitly list them?
for mod in $(/sbin/lsmod | awk -- '/^ip*/ {print $1}'); do
/sbin/rmmod $mod;
done

exit


Jonathan

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



Re: [SLUG] iptables logging

2001-05-14 Thread Crossfire

Jonathan David Wheelhouse was once rumoured to have said:
 Hi
 
 My question is this. Do all of the packets go onto the next rule after
 the first LOG rule?

Yes.  LOG isn't a terminating action.

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



Re: [SLUG] Studying Programming

2001-05-14 Thread Jamie Honan


Dave writes:

 I ain't a programmer at all but I reckon a simple 'is' makes for a
 decent summary of 'assign the value of'

There be dragons there, matey!

'Structure and Interpretation of Computer Programs', a highly regarded
computer science textbook, doesn't introduce assignment until page 218,
chapter three. A section deals with 'The Cost of Introducing
Assignment', with a little detour into 'Sameness and change'.

'Set' is probably the go.

Jamie


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



Re: [SLUG] OT: re: North Rocks

2001-05-14 Thread Steve Kowalik

On Tue, May 15, 2001 at 09:55:52AM +1000, Michael uttered:
 
 Hi,
 
 Can someone tell me the name of the company who sells reconditioned
 laptops at the North Rocks Computer market. They are usually right up near
 where all the software is being sold on that long table.

Err, just ask them this weekend? They'd most likely be happy to
drown you in business cards. :-)

-- 
Steve
  I'm a sysadmin because I couldn't beat a blind monkey in a coding contest.
--Me

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



Re: [SLUG] Sound plays sloowwwllly on ESS1888

2001-05-14 Thread Peter Rundle

Thanks for the suggestions guys, I'll give it a shot 
tonight and see if that fixes it.

Cheers

Pete

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



Re: [SLUG] OT: re: North Rocks

2001-05-14 Thread Michael


Good idea, but its a bit of a drive... if someone does found idea, drop us
an email :)

On Tue, 15 May 2001, Steve Kowalik wrote:

 On Tue, May 15, 2001 at 09:55:52AM +1000, Michael uttered:
  
  Hi,
  
  Can someone tell me the name of the company who sells reconditioned
  laptops at the North Rocks Computer market. They are usually right up near
  where all the software is being sold on that long table.
 
 Err, just ask them this weekend? They'd most likely be happy to
 drown you in business cards. :-)
 
 -- 
 Steve
   I'm a sysadmin because I couldn't beat a blind monkey in a coding contest.
 --Me
 


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