Re: [SLUG] Debugging Linux ACL's

2014-09-01 Thread Norman Gaywood
Then there may not be a user in your user database (/etc/passwd, LDAP,
etc) that has a UID (uidNumber) equal to 300.

That's OK, it just means there is no name associated with that UID
number. So 'ls -l' will show the owner of the file as '300', a
process listing 'ps auxf' will show processes run by '300' and not
a username, etc.


On 1 September 2014 15:53, David Lyon david.lyon.preissh...@gmail.com wrote:
 That returns nothing.


 On Mon, Sep 1, 2014 at 3:49 PM, Norman Gaywood ngayw...@une.edu.au wrote:

 How about:

 getent passwd 300


 On 1 September 2014 15:44, David Lyon david.lyon.preissh...@gmail.com
 wrote:
  Hello,
 
  I have this, from executing the following command:
 
  /home/samba/shares/ivm_dbase/DBASE4
 
  # file: home/samba/shares/ivm_dbase/DBASE4
  # owner: root
  # group: Administrators
  user::rwx
  user:root:rwx
  user:admin_acct:rw-
  user:300:rwx
  user:302:rwx
  group::rwx
  group:Administrators:rwx
  group:302:rwx
  group:Staff:rwx
  group:MYOB:rwx
  mask::rwx
  other::---
  default:user::rwx
  default:user:root:rwx
  default:user:300:rwx
  default:user:302:rwx
  default:group::---
  default:group:Administrators:rwx
  default:group:302:rwx
  default:group:Staff:rwx
  default:group:MYOB:rwx
  default:mask::rwx
  default:other::---
 
  My question is how do I find out who user:300 and user:302 is?
  --
  SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
  Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



 --
 Norman Gaywood, Computer Systems Officer
 University of New England, Armidale,
 NSW 2351, Australia

 ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
 http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

 Please avoid sending me Word or Power Point attachments.
 See http://www.gnu.org/philosophy/no-word-attachments.html





-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-09-01 Thread Norman Gaywood
On 1 September 2014 16:07, Jake Anderson ya...@vapourforge.com wrote:
 Is this perhaps linked to a domain or anything like that?

Yes good point. Since this seems to be something to do with samba
shares, the user '300' is probably the uidNumber of a user in a
windows domain.

Linux can use AD as an LDAP server if you want to set it up. I think
you also need 'services for Unix' or something setup in your AD as
well. With that setup, the getent command will see the username/UID
mappings.

You can also find out the username associated with UIDnumber 300
by doing an LDAP query on AD.

ldapsearch -x -h ad-server uidNumber=300

But, that just the simplest query. A lot more needs to setup like
default DN info. Also you will probably have to bind the the AD server
as a user [-D binddn] [-w password] switches for the query to work.
And this all assumes you have the 'services for Unix' installed on
your AD server.

There may be a simple samba like way to do things that I don't know.

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-09-01 Thread Norman Gaywood
On 1 September 2014 16:44, Jake Anderson ya...@vapourforge.com wrote:
 BOFH answer, delete it and see who complains ;-

Much simpler :-)

Is there anything in /etc/samba/smb.conf that might help?

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-09-01 Thread Norman Gaywood
On 1 September 2014 16:48, Norman Gaywood ngayw...@une.edu.au wrote:
 Is there anything in /etc/samba/smb.conf that might help?

Also grep'ing through the logs in

/var/log/samba/

might have a log of the connecting computer that uses the share.


-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] LaTeX niggle.

2014-09-01 Thread Norman Gaywood
/latexconfig/graphics.cfg
 File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live
 )
 Package graphics Info: Driver file: dvips.def on input line 91.
 )
 \Gin@req@height=\dimen105
 \Gin@req@width=\dimen106
 )
 \wpXoffset=\skip46
 \wpYoffset=\skip47
 \tileXoffset=\skip48
 \tileYoffset=\skip49
 \tilewidth=\skip50
 \tileheight=\skip51
 \tileX=\skip52
 \tileY=\skip53
 )
 No file FrontPage.aux.
 \openout1 = `FrontPage.aux'.

 LaTeX Font Info:Checking defaults for OML/cmm/m/it on input line 3.
 LaTeX Font Info:... okay on input line 3.
 LaTeX Font Info:Checking defaults for T1/cmr/m/n on input line 3.
 LaTeX Font Info:... okay on input line 3.
 LaTeX Font Info:Checking defaults for OT1/cmr/m/n on input line 3.
 LaTeX Font Info:... okay on input line 3.
 LaTeX Font Info:Checking defaults for OMS/cmsy/m/n on input line 3.
 LaTeX Font Info:... okay on input line 3.
 LaTeX Font Info:Checking defaults for OMX/cmex/m/n on input line 3.
 LaTeX Font Info:... okay on input line 3.
 LaTeX Font Info:Checking defaults for U/cmr/m/n on input line 3.
 LaTeX Font Info:... okay on input line 3.
 \AtBeginShipoutBox=\box26
 ! Undefined control sequence.
 l.4 \ThisLLCornerWallpaper
   {0.5}{TrialImage.jpg}
 ? x

 Here is how much of TeX's memory you used:
  1492 strings out of 493305
  19435 string characters out of 6139898
  75342 words of memory out of 500
  4989 multiletter control sequences out of 15000+60
  3940 words of font info for 15 fonts, out of 800 for 9000
  957 hyphenation exceptions out of 8191
  37i,0n,39p,228b,36s stack positions out of 5000i,500n,1p,20b,8s
 No pages of output.

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



-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
How about:

getent passwd 300


On 1 September 2014 15:44, David Lyon david.lyon.preissh...@gmail.com wrote:
 Hello,

 I have this, from executing the following command:

 /home/samba/shares/ivm_dbase/DBASE4

 # file: home/samba/shares/ivm_dbase/DBASE4
 # owner: root
 # group: Administrators
 user::rwx
 user:root:rwx
 user:admin_acct:rw-
 user:300:rwx
 user:302:rwx
 group::rwx
 group:Administrators:rwx
 group:302:rwx
 group:Staff:rwx
 group:MYOB:rwx
 mask::rwx
 other::---
 default:user::rwx
 default:user:root:rwx
 default:user:300:rwx
 default:user:302:rwx
 default:group::---
 default:group:Administrators:rwx
 default:group:302:rwx
 default:group:Staff:rwx
 default:group:MYOB:rwx
 default:mask::rwx
 default:other::---

 My question is how do I find out who user:300 and user:302 is?
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] stop processing with 'if grep exit' ?

2014-03-19 Thread Norman Gaywood
On 19 March 2014 22:23, Amos Shapira amos.shap...@gmail.com wrote:
 If you want to grep for multiple strings in the same file, and exit if any
 of them is found, it is more efficient (and I think more maintainable) to
 specify them in one line:

 grep -q -e test2 -e test3 file2  exit 0

I like this and it probably does what the OP wanted, however it does
do a different thing to the original program.

The above line will exit the program if test2 is false and test3 is
true. The original program required test2 to be true to exit.

Yeah, pedantic :-)


-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] I can't be the only one.

2014-02-25 Thread Norman Gaywood
https://www.google.com/android/devicemanager

If you go the google play store (assuming android phone), you can tell
it to install the android device manager app remotely. Unfortunately,
for all these style apps, you have to have your phone to enable the
location services so that this will work to actually locate your phone
:-(


On 26 February 2014 16:38, William Bennett wrbennet...@gmail.com wrote:
 I've just had my smartphone stolen.

 I asked a friend to dial the number: I can hear it ringing.

 Asked the police forensic expert - can it be triangulated? Yes, but (always
 there's a but). In the cities, where the uprights are in high
 concentration, triangulation can be accurate to within a couple of metres.
 In the country (where I live), with the uprights widely spaced, accuracy
 goes out to a couple of kilometres.

 So I got to thinking. Isn't there an app, which, when installed on the
 phone, enables you to contact the phone (ie., it must merely be on), send a
 password/code (whether the phone is answered/not): the phone then takes a
 GPS reading and transmits it to the caller?

 Or have I been reading too many sci-fi novels?

 Any help etc.

 Somewhat disgustedly,

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



-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Restore laptop screen after use in Google Sydney seminar room?

2012-12-05 Thread Norman Gaywood
Do you get the BIOS messages on the screen if you restart it?


On 6 December 2012 13:28, Tom Worthington tom.worthing...@tomw.net.auwrote:

 On 05/12/12 21:24, pe...@chubb.wattle.id.au wrote:

  ... If it works with an external monitor, get yourself an xterm or similar
 and type xrandr ...


 Thanks, that shows LVDS1 and VGA1 connected, so the X server thinks
 the LCD screen is operating.

  Type xrandr --output LVDS --auto and it should come good ...


 No, still no image on the laptop LCD, just the back-light. So I guess it
 must be a hardware problem. I will check with Kogan.



 --
 Tom Worthington FACS CP, TomW Communications Pty Ltd. t: 0419496150
 PO Box 13, Belconnen ACT 2617, Australia  http://www.tomw.net.au
 Liability limited by a scheme approved under Professional Standards
 Legislation

 Adjunct Lecturer, Research School of Computer Science,
 Australian National University 
 http://cs.anu.edu.au/courses/**COMP7310/http://cs.anu.edu.au/courses/COMP7310/
 --
 SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
 Subscription info and FAQs: 
 http://slug.org.au/faq/**mailinglists.htmlhttp://slug.org.au/faq/mailinglists.html




-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] coding

2010-11-18 Thread Norman Gaywood
On Thu, Nov 18, 2010 at 10:38 AM, tony polkich basics_...@yahoo.com.au wrote:
 In --  grep $VAR afile.txt | sed 's/ ? / newdata/'  anotherfile.txt

 what do I insert where the question mark is in sed? $VAR and variations 
 haven't worked.

Try changing the single quotes to double quotes. So:

grep $VAR afile.txt | sed s/$VAR/ newdata/  anotherfile.txt

Or, more simply:

sed s/$VAR/ newdata/ afile.txt  anotherfile.txt

Variables, like $VAR, are not expanded inside single quotes.

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale, NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 3337
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] exclude commented lines from output ?

2009-08-19 Thread Norman Gaywood
On Thu, Aug 20, 2009 at 11:09:07AM +1000, Voytek Eymont wrote:
 how can I output a config file with only the valid directives, but not all
 the '#' commented lines ?
 
 # cat /etc/sysconfig/iptables-config
 
 # Load additional iptables modules (nat helpers)
 #   Default: -none-
 # Space separated list of nat helpers (e.g. 'ip_nat_ftp ip_nat_irc'), which
 # are loaded after the firewall rules are applied. Options for the helpers
 are
 # stored in /etc/modules.conf.
 IPTABLES_MODULES=
 
 
 so to get only
 IPTABLES_MODULES=

grep -v '^#' /etc/sysconfig/iptables-config

^ means beginning of the line
# mean #

-v means everything except what matches

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale, NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 3337
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] perl parsing

2008-06-24 Thread Norman Gaywood
On Tue, Jun 24, 2008 at 11:56:44PM +1000, Voytek Eymont wrote:
 I'm trying to adopt a script to pull data from water tank gaguges, the
 original script had like below to deal with a single gauge:
 
 --
 while (1) {
 my $gotit = ;
 until ( ne $gotit) {
 $gotit = $port-lookfor;   # poll until data ready
 sleep 1;  # polling sample time
 }
 
   $gotit =~ /a(\d+)b\dc(\d+)/;
 -
 I have two gauges, so they output like so:
 
 ---
 a1566b0c203d1477e0f205g
 where 156.6 is the depth of tank1 in cm, 0 is the temperature sign bit,
 20.3 is the air temperature at tank 1 in C, etc.
 ---
 I've tried
 $gotit =~ /a(\d+)b\dc(\d+)d(\d+)e\df(\d+)/;
 and
 $gotit =~ /a(\d+)b\dc(\d+)d(\d+)e\df(\d+)g/;
 
 but I'm not getting it

Your regular expressions look like they should work. Here is another way
you can do it:

#!/usr/bin/perl
use strict;
use warnings;

my $s = a1566b0c203d1477e0f205g;
my %v = ();

while ($s =~ /(\w)(\d+)/g){
 $v{$1} = $2;
}

for my $k (sort keys %v){
 printf key %s value %d\n, $k, $v{$k};
}


-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 3337
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] tool for displaying time in different timezones?

2008-01-09 Thread Norman Gaywood
On Jan 10, 2008 4:24 AM, Sonia Hamilton [EMAIL PROTECTED] wrote:
 Anyone know of a tool for displaying the tool in different timezones? At
 the moment I have my BIOS clock on UTC and just use tzconfig to see the
 time in the desired zone.

Here is a shell script I use to show me the times I'm interested in:

#!/bin/sh

ZBASE=/usr/share/zoneinfo

ZONES=
US/Pacific
US/Eastern
Europe/London
Europe/Zurich
Australia/NSW


for Z in ${ZONES}
do
  (
export TZ=:${ZBASE}/${Z}
printf %-15s %s\n ${Z} $(date)
  )
done



-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale,
NSW 2351, Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Tuesday afternoon shell command optimisation party!

2007-12-18 Thread Norman Gaywood
On Dec 18, 2007 4:47 PM, Jeff Waugh [EMAIL PROTECTED] wrote:
 quote who=Martin Visser

   perl -e 'while(){$a+=s/[,]//g};print $a\n' input.txt
 
  Do I win??

 Oddly, perl very rarely wins these. ;-)

This must come close:

perl -00 -ne 'print tr/,//' input.txt

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale,
NSW 2351, Australia
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Tuesday afternoon shell command optimisation party!

2007-12-18 Thread Norman Gaywood
On Wed, Dec 19, 2007 at 12:46:51PM +1100, Scott Ragen wrote:
 [EMAIL PROTECTED] wrote on 19/12/2007 11:34:30 AM:
  Norman Gaywood wrote:
   perl -00 -ne 'print tr/,//' input.txt
  
  I nominate the perl soln as the winner so far: runs like
  a bat of out hell and is the most easy to understand.
  And the shortest in source code size.
 
 I have to disagree. Whilst it may be fast, its not 100% correct.
 Most of the time it would probably work, but if there are any blank lines, 
 it outputs the current count, and starts again.
 
 Consider the following file contents:
 --file contents--
 this,is,the,first,line
 this,is,the,second
 
 the,above,was,a,blank,line
 
 and,another,blank,line
 --end file contents--
 
 On Jeff's original command:
 sed 's#[^,]*##g' input.txt | tr -d '\n' | wc -m
 15
 
 The perl command:
 perl -00 -ne 'print tr/,//' input.txt
 753

You are correct. I misread the perlrun man page. -00 means paragraph
mode. I wanted slurp mode, which is the slightly uglier -0777. So the perl
solution should be:

perl -0777 -ne 'print tr/,//' input.txt

There is also the slightly shorter, tending to perl ugly instead of
perl neat:

perl -0777 -pe '$_=tr/,//' input.txt

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 3337
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] How do I remove a directory pointed to by a symbolic link

2007-01-02 Thread Norman Gaywood
I must be missing something simple.

$ mkdir dir
$ ln -s dir link
$ rm link/
rm: cannot remove `link/': Not a directory
$ rm -f link/
rm: cannot remove `link/': Not a directory
$ rm -rf link/
rm: cannot remove `link/': Not a directory
$ rmdir link/
rmdir: link/: Not a directory
$ rm -rf link/.
rm: cannot remove `.' or `..'

Of course I could go 'rm -rf dir' but how do I find the name 'dir'
from the symbolic link name 'link'.

Cheers.
-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How do I remove a directory pointed to by a symbolic link

2007-01-02 Thread Norman Gaywood
On Wed, Jan 03, 2007 at 02:41:51PM +1100, Simon Males wrote:
 Been there.
 
 rm link
 
 No trailing slash.

No, that removes the link, not the directory pointed to by the link.

Thanks anyway.

  I must be missing something simple.
 
  $ mkdir dir
  $ ln -s dir link
  $ rm link/
  rm: cannot remove `link/': Not a directory
  $ rm -f link/
  rm: cannot remove `link/': Not a directory
  $ rm -rf link/
  rm: cannot remove `link/': Not a directory
  $ rmdir link/
  rmdir: link/: Not a directory
  $ rm -rf link/.
  rm: cannot remove `.' or `..'
 
  Of course I could go 'rm -rf dir' but how do I find the name 'dir'
  from the symbolic link name 'link'.
 
 -- 
 Simon Males [EMAIL PROTECTED]

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] How do I remove a directory pointed to by a symbolic link

2007-01-02 Thread Norman Gaywood
I must be missing something simple.

$ mkdir dir
$ ln -s dir link
$ rm link/
rm: cannot remove `link/': Not a directory
$ rm -f link/
rm: cannot remove `link/': Not a directory
$ rm -rf link/
rm: cannot remove `link/': Not a directory
$ rmdir link/
rmdir: link/: Not a directory
$ rm -rf link/.
rm: cannot remove `.' or `..'

Of course I could go 'rm -rf dir' but how do I find the name 'dir'
from the symbolic link name 'link'.

Cheers.

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How do I remove a directory pointed to by a symbolic link

2007-01-02 Thread Norman Gaywood
On Wed, Jan 03, 2007 at 03:20:09PM +1100, Penedo wrote:
 Sorry Simon, I was going to pass but then I saw readlink(1), so something
 like:
 
 readlink -fe link | xargs  -0r rm -rf
 
 Should do the trick.

Well spotted! I had never noticed readlink before. It will indeed do
the trick. Also removes the problem of spaces and other specials in the
names.

Thanks.
-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] How do I remove a directory pointed to by a symbolic link

2007-01-02 Thread Norman Gaywood
On Wed, Jan 03, 2007 at 04:10:45PM +1100, Amos Shapira wrote:
 On 03/01/07, Zhasper [EMAIL PROTECTED] wrote:
 
 Only because you're using the -0 flag.
 
 
 (This is also going to destroy the ability to handle whitespace in
 filenames though, so you probably don't want to do this.)
 
 
 Correct on both accounts, but this is why I insist on using -0 whenever
 possible, especially when processing input to sensitive commands like rm,
 and bother adding the weird echo -e.

But why are we we trying to pipe output to xargs. We are only dealing
with one name.

Whats wrong with just:

   rm -rf $(readlink link)

Should that not deal with special characters? Seems to work for spaces
and  in my tests.

 Another nul generator could be
 
 perl -e 'print \0'
 
 instead of echo -e \\0
 
 or
 
 readlink -fe link | awk '{ print $0 \0 }' | xargs -0r rm -rf
 
 and possibly other ways to achieve the same goal.
 
 --Amos

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] linux assignment

2006-08-15 Thread Norman Gaywood
On Wed, Aug 16, 2006 at 10:15:10AM +1000, Carlo Sogono wrote:
 it seems you have done absolutely *nothing*, not even try. Questions 
 like what does cat 1 m1 do takes like less than 2 mins to solve even 
 for someone who have never used cat before (hint: man cat).

Actually the hard part of that question is what does the 1 m1 do.
The answer to that can be found in man bash.

-- 
Norman Gaywood, Systems Administrator
University of New England, Armidale, NSW 2351, Australia

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: openssl FC4 (was Re: FW: [SLUG] Fedora Core 5)

2006-03-21 Thread Norman Gaywood
On Wed, Mar 22, 2006 at 02:31:34PM +1100, O Plameras wrote:
 David Gillies wrote:
 O Plameras wrote:
 I tried to install OpenSSL-0.9.8a in FC 4. But there are far too many
 packages that rely on OpenSSL-0.9.7f that comes with FC4. It's
 not worth my effort  chasing rainbows.
 
 openssl in FC4 is patched as openssl 0.9.7f 
 
 Was patched in openssl-0.9.7h.

openssl 0.9.7f is the base for FC4. Many upstream patches are applied to
that. To see what:

rpm --changelog -q openssl

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] perl - simplifying xml-simple

2005-03-25 Thread Norman Gaywood
Untested, but guessing from your code:

On Fri, Mar 25, 2005 at 06:25:36PM +1100, Ken Foskey wrote:
  eg $pointer-{addressline}[0] is the first address line My address.
 
 What I cannot get working right is:
 
 process_address( $pointer-{addressline} );

process_address( @{ $pointer-{addressline} } );


 sub process_address
 {
@address = @_;
 
foreach $line ( @address ) {
  print $line;
}
 }

That will copy the entire array to process_address.

Or, to actually use the same array and not copy, pass the reference and
de-reference in the sub:

process_address( $pointer-{addressline} );

sub process_address
{
  my $addrref = shift;
 
foreach $line ( @$addrref ) {
  print $line;
}
}
 

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Fwd: [LINK] unix time = 11111111111 about mid-day today.

2005-03-17 Thread Norman Gaywood
On Fri, Mar 18, 2005 at 11:06:31AM +1100, Rick Welykochy wrote:
 For those who put stock in interesting numbers 
  Original Message 
 Subject: [LINK] unix time = 111 about mid-day today.
 Date: Fri, 18 Mar 2005 10:27:55 +1100 (EST)
 From: [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 
 fyi - Unix time in seconds will hit all 1's just before mid-day today :)
 
 $ date; date +%s
 Fri Mar 18 10:20:56 EST 2005
 101656
 
 rachel

I make it just before 1PM:

perl -le 'print scalar localtime(11)'
Fri Mar 18 12:58:31 2005

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Fwd: [LINK] unix time = 11111111111 about mid-day today.

2005-03-17 Thread Norman Gaywood
On Fri, Mar 18, 2005 at 11:56:33AM +1100, Tony Green wrote:
 On 18/03/2005, at 11:52 AM, [EMAIL PROTECTED] wrote:
 Hi, heh, interesting
 is there a way we could watch it ticking over, as in running digits?
 
 while [ 0 ]; do clear; date; date +%s; sleep 1; done

Or, if you have watch installed:

watch -n 1 date +%s

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] December meeting - Tenpin Bowling

2004-11-02 Thread Norman Gaywood
The lisp ball would have no holes. It's appearance would look like a
collage of nail clippings. In the hands of a someone who could actually
bowl the ball, it would usually hit the middle pin.

On Wed, Nov 03, 2004 at 12:46:52PM +1100, Rowling, Jill wrote:
 The assembler ball would be sourced from lots of bits of plastic
 around the room, would materialise part way down the alley and would
 pre-assemble its own ten-pins just prior to smashing into them.

Rod Butcher [mailto:[EMAIL PROTECTED] wrote:
 The Cobol bowling ball would cause a data exception because the number
 of holes was  redefined as packed decimal by an outsourcer.

 The Pl/1 bowling ball would disappear into an array of pointers.

Michael Lake wrote:
 The Java bowling ball would have an API of holes for left and right
 handed people and would bowl smoothly on any surface - but it would
 roll ever sooo slowly down the alley.

 The Perl ball would have 20 different ways to place your fingers in
 the holes.

 The Python ball would be coloured blue.

 With the C ball you have to allocate the number of holes that you want
 when you sign out the ball and make sure that you return the ball with
 the same number of holes at the end of the evening.

 The Fortran ball would be able to handle having an entire array of
 balls all send down the alley at once with a single swing.

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Where is ulimit -v set?

2004-08-12 Thread Norman Gaywood
On Fri, Aug 13, 2004 at 08:23:39AM +1000, Erik de Castro Lopo wrote:
 I currently can't run valgrind because of the following virtual
 memory setting:
 
 [EMAIL PROTECTED]  ulimit -a 
[deleted]
 virtual memory(kbytes, -v) 716800

 Unfortunately, ulimit -v unlimited results in a Operation not 
 permotted and I can't find where it is being set. I've looked
 in .bashrc, .bash_profile, /etc/profile etc and I've grepped
 everything I can find.
 
 Anybody got any idea where this thing is being set?

If it's a RH'ish type system, /etc/security/limits.conf might be what
you're looking for.

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Software patents and the Free Trade Agreement

2004-04-07 Thread Norman Gaywood
Someone may have posted this already and I missed it, but:

The Aus-US free trade agreement includes some measures to introduce
software patents and anti-circumvention laws in Australia.

If you don't think this is a good idea and wish to register your
protest, you can sign an online petition here:

http://www.petitiononline.com/auftaip/

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] scripting tests for students

2004-02-27 Thread Norman Gaywood
On Sat, Feb 28, 2004 at 01:45:09PM +1100, Ken Foskey wrote:
 I want some ideas to test knowledge with a 10 minutes quiz for
 beginners.  One example I thought of was take a file and give a list of
 elements removing all repeats, ignoring case.  This is testable using a
 script written to test the output.

Perhaps a bit easy but how about:

Given two files, A and B, containing a list of words, find:
  1. The list of words common to A and B
  2. The list of words contained in A but not in B

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] gdm problem or X problem? XDMCP Session declined Maximum number of open sessions from your host reached

2004-02-03 Thread Norman Gaywood
On Wed, Feb 04, 2004 at 11:27:20AM +1100, Slug wrote:
 XDMCP fatal error: Session declined Maximum number of open sessions from
 your host reached

 It's on a thinclient workstation that had the whole X session crash due
 to an open office error.

 When the workstation is rebooted and does a:

 X -query ip-of-X-gdm-machine

 It gets the XDMCP error above.

It's probably related to the following bug(s):

 Date: Mon, 02 Feb 2004 23:40:07 -1000
 From: Warren Togami [EMAIL PROTECTED]
 Subject: gdm XDMCP and file descriptor fixing
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]

 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=110315
 GDM miscounts current sessions
 I was looking at this problem for a while, and yesterday copied George
 Lebl's solution in gdm-2.5.90.0 of recounting.  I did not test it fully,
 but it also seems to avoid the file descriptor leak described in this
 below bug.  This patch is a bit of a hack and inefficient, but copied it
 anyway since it seems to work and it was from upstream.


 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=113154
 GDM leaking file descriptors
 The link to GNOME bugzilla indicates a similar problem to #110315 above.
Then today Bart Martens posted a much simpler patch that should fix
 both the file descriptor and XDMCP session counter issue.  I did not yet
 test this patch.

 Please help me to verify which patch is more correct.

 Warren Togami
 [EMAIL PROTECTED]


 --
 fedora-devel-list mailing list
 [EMAIL PROTECTED]
 http://www.redhat.com/mailman/listinfo/fedora-devel-list

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] URGENT: Please help, Mail problem (FROMField=NOBODY....change?)

2003-08-28 Thread Norman Gaywood
On Thu, Aug 28, 2003 at 04:16:58PM -0700, Jared Pritchard wrote:
 but now I have reached a point in the PERL scripts that it sends emails
 out to a list of users... however, when they receive them, it is addressed
 from 'nobody'. We REALLY REALLY need to change that!!!

Have a read of:

perldoc -q mail

and look for the section How do I send mail?

Cheers.
-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


[SLUG] PCMCIA modem cards for linux

2003-08-14 Thread Norman Gaywood
Can anyone recommend a PCMCIA modem card that works with linux?

I've used Xircom dual ethernet/modem cards in the past without problems
on RH{7.*,8.*,9} but this time I need just a modem card.

I got a D-Link DM-560 because they sell them at everythinglinux.com.au,
even though there is the suspicious text WinCONNECT on the front of
them. 

The DM-560 does not do very well for me on RH{8,9}. Minicom can get
it going but it connects with 7bit data + parity at 1200 BAUD. The RH
PPP setup connects at the same speed/data configuration as well and
hence fails.

So I suspect that the WinCONNECT means some secret windows
business is required to make the DM-560 work.

Or maybe the DM-560 requires a special initialization string?

Any recommendations for a PCMCIA modem card?

-- 
Norman Gaywood, Systems Administrator
School of Mathematics, Statistics and Computer Science   
University of New England, Armidale, NSW 2351, Australia

[EMAIL PROTECTED]Phone: +61 (0)2 6773 2412
http://turing.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html
-- 
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 Norman Gaywood
On Wed, Mar 19, 2003 at 11:18:40AM +1100, Steve Kowalik wrote:
 At 10:52 am, Wednesday, March 19 2003, Jeff Waugh mumbled:
  Because whoever has the most bogomips at the end, wins.
  
 Okay, I'll bite.
 
 [EMAIL PROTECTED]:~$ awk '/bogomips/ { SUM+=$3 } END {print SUM}' /proc/cpuinfo
 7982.27

Nope. No kick in the pants. That's coming to me so far:

turing 3:04pm ~ % awk '/bogomips/ { SUM+=$3 } END {print SUM}' /proc/cpuinfo
25421.4

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Latex; Printing with dvips on RH8.0

2003-02-26 Thread Norman Gaywood
On Thu, Feb 27, 2003 at 07:07:14AM +1100, Terry Collins wrote:
 Has anyone worked out what the problem is that RedHat have introduced in
 their upgrades for RH8.0 that caused dvips to loose pipe to the printer.
 I've just download the latest TeTex packages, but that hasn't fixed the
 problem.

Yes the RH8.0 turned on secure mode for dvips. They realised that
turning this on was not the way to go and reverted back in current
rawhide.

I installed the tetex packages from a rawhide distribution and all is
fine now.

There is a bugzilla bug about this problem. Sorry I didn't keep the
number.

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug


Re: [SLUG] Using ANSI escape sequences with RedHat8

2003-01-23 Thread Norman Gaywood
On Fri, Jan 24, 2003 at 09:51:38AM +1100, Gavin Carr wrote:
 On Fri, Jan 24, 2003 at 09:53:55AM +1100, [EMAIL PROTECTED] wrote:
  Now instead the CSI code is dropped and the remaining 
  string is dumped to the display.
  
  The environment variable TERM is set to linux. The 
  program cat can be used to dump the above sequence to 
  the terminal with the intended result.
 
 Not sure if this is your problem, but one RH8 gotcha is their use of
 UTF8-compatible locales, which seems to screw lots of other things up.
 Check your LANG and LC* settings, and try resetting LANG to en_AU and
 see if that makes a difference.
 
My RH8.0 /etc/sysconfig/i18n looks like this:

LANG=en_AU.UTF-8
LC_ALL=POSIX
SUPPORTED=en_AU.UTF-8:en_AU:en:en_US.UTF-8:en_US:en
SYSFONT=latarcyrheb-sun16

I found that got rid of some problems with escape sequences and sort
sorting with case insensitivity.

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] Redhat 8 - user menus in panels

2002-10-09 Thread Norman Gaywood

I'm probably looking right at it but I can't see it!

Has anyone figured out how to add your own menus to a panel in RH8. I
would have thought:

Right click panel - Add to Panel - Menu

But menus do not seem to be things you can add to the panel. You can add
a GNOME menu, but you can't add/delete things from it.

You can add a drawer which allows you to build up some panels of
icons. But it's not a menu.
-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] Slowness over a local network

2002-06-02 Thread Norman Gaywood

On Mon, Jun 03, 2002 at 10:46:23AM +1000, Howard Lowndes wrote:
 I have a client's workstation on the bench at the moment which has a
 complaint of being _very_ slow on their local ethernet.
 
 I just booted it up on my local network and it gave no symptoms, but I
 have since rebooted it and am getting the described symptoms.
 
 An ssh into the box takes over 5 _minutes_ and a ping from the workstation
 to the workbench server looks like:
 
 64 bytes from 192.168.253.1: icmp_seq=0 ttl=255 time=996.294 msec
 Warning: time of day goes back, taking countermeasures.
 64 bytes from 192.168.253.1: icmp_seq=1 ttl=255 time=503 usec
 64 bytes from 192.168.253.1: icmp_seq=2 ttl=255 time=1.000 sec
 64 bytes from 192.168.253.1: icmp_seq=3 ttl=255 time=316 usec
 64 bytes from 192.168.253.1: icmp_seq=4 ttl=255 time=1.000 sec
 64 bytes from 192.168.253.1: icmp_seq=5 ttl=255 time=434 usec

Yes I have seen similar ping times on different hardware. It was probably
the network driver of the kernel I was using. I was using the default
kernel on the RedHat 7.0 CDs and everything was fine. I updated to the
first errata kernel (sorry can't remember the version numbers), and I
got the above ping patterns. So I went back to the older kernel until
the next errata kernel came out. That fixed the problem.

My hardware was a Dell C600 laptop with a Xircom dual network/modem
PCMCIA card.

 The response is similar to one I have seen before where there was an IRQ
 conflict but I don't think that is the case here.
 
 It's a VIA VT82C694T chipset on the mobo with a Davicom NIC chip.  I have
 had problems with VIA chipsets and Realtek NIC chips before, but that does
 not apply here, I don't think.
 
 Has anyone seen this type of behaviour before, or better still, know a
 cause and a fix?
 
 -- 
 Howard.
 LANNet Computing Associates - Your Linux people
 Contact detail at http://www.lannetlinux.com

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



[SLUG] New linux pocketbook?

2002-02-20 Thread Norman Gaywood

A few people have told me that there is a new Linux Pocket Book with
RedHat 7.2 and Mandrake 8.something. Anyone know anything about this?

I've looked in all the newsagents near me and could not find one. Also
the pocket book website URL:http://www.pocketbooks.net.au/current.htm
does not seem to mention a new version.

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] linux.conf.au early bird + 10% off tickets

2001-12-11 Thread Norman Gaywood

On Wed, Dec 12, 2001 at 01:16:10PM +1100, Gnuthad wrote:
 On 12 Dec 2001, at 8:18, Chris Barnes wrote:
  tracert linux.org.au
  Unable to resolve target system name linux.org.au.
  
  tracert www.linux.org.au
  Unable to resolve target system name www.linux.org.au.
  
  This is the type of inferiority and stupidity you can expect when working
  with Windows or any Microsoft product I'm supprised my system didn't blue
  screen on my. All the more reason to attend the linux conference I'd say.
 
 Hardly cause for concern. The error may be written differently to the 
 Linux error, however it does indicate the same problem; DNS lookup 
 failure.
 
Execpt that windows DNS can't resolve CNAME aliases last time I tried.
No wonder Microsoft don't use it.

-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312

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



Re: [SLUG] Unpacking an RPM manually?

2001-10-31 Thread Norman Gaywood

On Thu, Nov 01, 2001 at 12:16:44PM +1100, DaZZa wrote:
 On Thu, 1 Nov 2001, John Clarke wrote:
   Anyone know of any method to unpack an RPM manually?
  rpm2cpio?
 Well, that's a good start - now how in hell do I extract it from the CPIO
 file? :-)

rpm2cpio file.rpm | cpio -d -i

 DaZZa
-- 
Norman Gaywood -- School of Mathematical and Computer Sciences
University of New England, Armidale, NSW 2351, Australia
[EMAIL PROTECTED] http://turing.une.edu.au/~norm
Phone: +61 2 6773 2412 Fax: +61 2 6773 3312

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