[SLUG] Weekly celebration of a Unix utility

2004-01-08 Thread Mike MacCana
* dnstrace. As useful as ping, nc, and traceroute for troubleshooting,
and one of the only tools I've ever seen to show how DNS works in a
simple manner.

* seq. prints out sequences of numbers. First taught to me with the
following magic:

for y in $(seq 1970 2003)
do
for m in $(seq 1 12)
wget http://blahblahblahplaymate${y}-${m}.png
done
done 

Mike
-- 
Mike MacCana [EMAIL PROTECTED]

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


[SLUG] jigdo and Debian DVD images

2004-01-08 Thread Chris MacKenzie
Hi All,
 
Just a quick query, has anyone managed or knows of a way to use jigdo to 
make a bootable dvd image of debian 3.0r2 instead of the 7 cds ?

-- 
Another Armenia, Belgium ... the weak innocents who always seem to be
located on a natural invasion route.
-- Kirk, Errand of Mercy, stardate 3198.4
-- 
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] jigdo and Debian DVD images

2004-01-08 Thread Chris Deigan
On Thu, 2004-01-08 at 20:04, Chris MacKenzie wrote:
 Hi All,
  
 Just a quick query, has anyone managed or knows of a way to use jigdo to 
 make a bootable dvd image of debian 3.0r2 instead of the 7 cds ?


http://us.cdimage.debian.org/jigdo-area/3.0_r0/jigdo/dvd-test/ has DVD
images for 3.0r0, then you can upgrade using the other upgrade CDs at
http://us.cdimage.debian.org/jigdo-area/3.0_r1/jigdo/i386/ and
http://us.cdimage.debian.org/jigdo-area/3.0_r2/jigdo/i386/.

Chris.

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


[SLUG] Turn off annoying auto-search in Mozilla

2004-01-08 Thread Andrew Bennetts
If you use Mozilla, you might have discovered the feature in Mozilla which
e.g. decides that when you say you want to go to a URL like
localhost:1234, that you really mean http://www.localhost.net.au/;.  

You can turn this behaviour off by going to the URL about:config, finding
the keyword.enabled setting, and setting it to false.  (Some Mozilla
derivatives might have a proper UI setting for Enable Internet Keywords or
something like that, but this should work equally well for Mozilla,
Firebird, and other variants.)

I'm posting this here because an off-hand mention of it on #slug made
several people very happy :)

-Andrew

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


[SLUG] Lost Debian dpkg status file

2004-01-08 Thread Chris Perry
Hi,

I have a question about a Debian potato system.  It recently lost its
/home and /var file systems in a disk failure.  /home is not a problem.
/var is a bit more of a problem since that is the place where debian
systems keep a track of which packages are installed.  I believe
/var/lib/dpkg/status is the file that is most important here.
Naturally, /var and this file are not backed up.  The rest of the syetm
is working OK.

The question is: how does one go about reverse engineering the contants
of /var/lib/dpkg/status?

--
Regards,
Chris.

Home Page: http://www.jedi.apana.org.au/~perry/



-- 
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] Turn off annoying auto-search in Mozilla

2004-01-08 Thread Michael Chesterton
Andrew Bennetts [EMAIL PROTECTED] writes:

 You can turn this behaviour off by going to the URL about:config, finding

Does anyone else have a problem with mozilla where its
curser/focus/system carat (don't know what it's called) gets stuck in
a window/tab, all key strokes either go to this window/tab, or get
eaten, even when you change to a different one?

I can usually fix it by hitting keys like control g. It's very annoying.




-- 
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] Lost Debian dpkg status file

2004-01-08 Thread Michael Chesterton
Chris Perry [EMAIL PROTECTED] writes:


 The question is: how does one go about reverse engineering the contants
 of /var/lib/dpkg/status?

you can get a list of packages installed from /usr/share/doc, you can
probably do something like;

cd /usr/share/doc
for a in * ; do 
  echo $a install  /tmp/pkg
done

dpkg --set-selections  /tmp/pkg

That just sets the intended state, the package system still thinks
everything is uninstalled. You should eb able to do;

apt-get dselect-upgrade

But it will want to reinstall everything.

There's probably a better way.

-- 
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] Handy CLI tool configuration trick

2004-01-08 Thread Grant Parnell
On Thu, 8 Jan 2004, Jeff Waugh wrote:

 Everyone knows the way to start a shell script - you put in a 'bang path'
 to the shell that you want to run your script, like this:
 
   #!/bin/sh
   echo You ran this script with these parameters:
   echo   $@
 
 But what does it actually do? Simple answer: When you execute the script (it
 must have the +x bits on), the contents of the file are piped into the bang
 path program, in this case, /bin/sh. So, let's put just the last two lines
 of the above script into a file ('test'), and try to get sh to run it from
 stdin:
 
   $ cat test | /bin/sh -s
   You ran this script with these parameters:
 
 Or:
 
   $ cat test | /bin/sh -s pants
   You ran this script with these parameters:
 pants

You can also do 
$ sh -x script 21 |less
to debug the script, it will print each line as it's executed. The 21 
means error output also goes to the pipe. 

 So, why is this cool? It means that *any program* that can take its config
 or some kind of scripting from a file can be used this way - because stdin
 is (basically) a file!
 
 Try putting this in a file, and setting the +x bit:
 
   #!/usr/bin/screen -c
   startup_message on
   hardstatus on
   hardstatus alwayslastline
   hardstatus string %H %=%{..} %d/%m %C%a 
 
 When you run it, screen will run with that configuration! My normal screenrc
 settings have a blue status line, have the startup_message switched off, etc
 - but not when I run this script. :-)
 
 Now... There are a *lot* of *nix command line tools that can take their conf
 settings from a file specified on the command line. Such as mutt... vim...
 So many cool things you can do, and you can just run a special command and
 have them set up for special purposes. :-)
 
 Enjoy, and post the cool stuff you do with this to the SLUG list. :-)

in README.txt

#!/bin/less
WOW! executable documentation

-- 
---GRiP---
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, 
Linux Guru, SLUG/AUUG/Linux Australia member, Sydney Flashmobber,
BMX rider, Walker, Raver  rave music lover, Big kid that refuses
to grow up. I'd make a good family pet, take me home today!
Do people actually read these things?


-- 
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] Weekly celebration of a Unix utility

2004-01-08 Thread Robert Collins
On Thu, 2004-01-08 at 16:21, Michael Chesterton wrote:
 DE LUCA Ben [EMAIL PROTECTED] writes:
 
 
  There was some talk of screen earlier this week and I wondered if we might
  like to talk about some of the cool functions or even bad ones for the rest
  of the week!
 
 screen can be used as a login shell.
 But scp didn't like it, bummer, I'm testing out putting screen -xRR
 at the end of .bash_profile, I haven't noticed any problems yet.

if scp doesn't like it, it'll be because you didn't make it non-tty
clean. to test that - make screen your login shell again, and run ssh -T
echo foo

If you see /anything/ other than echo foo, scp will not work.

Rob
-- 
GPG key available at: http://www.robertcollins.net/keys.txt.


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Mutt and heirarchical MH mailboxes.

2004-01-08 Thread Erik de Castro Lopo
Hi all,

I am using Mutt 1.5 or whatever with some MH mailboxes that I also
use with Sylpheed. Sylpheed is quite happy to allow mail folders
with mail folders (ie a Debian folder with DebianPPC and DebianMIPS
subfolders).

I am using a modified version of a trick I found in Jdub's muttrc 
to list all mailboxes:

  mailboxes `find ~/Mail/ -type d ! -name Mail -printf =%P `

which finds all the top level mailboxes quite happily but fails
to find the lower level ones.

Has anybody managed to get this to work?

TIA,
Erik
-- 
+---+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+---+
Linux : Think of it as 'free' as in 'free speech' not 'free beer'.
-- 
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] ssh over ADSL weeirdness

2004-01-08 Thread Danny Yee
Thanks for all the suggestions.

It's definitely a problem with network traffic confusing the X11
event handler.  If I ssh from a virtual console it works fine and if I
cut-and-paste into an ssh session in a GNOME terminal that works fine
too.  And if I run KDE the problem recurs, so it's not GNOME-specific.
I'm still a bit perplexed that everything works fine with a 56k modem
connection, but I'll try upgrading X and see how that goes.

Danny.
700 book reviews http://dannyreviews.com/

-- 
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] Weekly celebration of a Unix utility

2004-01-08 Thread Michael Chesterton
Robert Collins [EMAIL PROTECTED] writes:

 screen can be used as a login shell.
 But scp didn't like it, bummer, I'm testing out putting screen -xRR
 at the end of .bash_profile, I haven't noticed any problems yet.

 if scp doesn't like it, it'll be because you didn't make it non-tty
 clean. to test that - make screen your login shell again, and run ssh -T
 echo foo

 If you see /anything/ other than echo foo, scp will not work.

Thanks.

I don't know what non-tty clean means exactly, but I think I get your
drift. I did a little googling, first hit said the reason it doesn't
work is a feature[1]. They recommended testing if it's an interactive
shell, and execing screen. Which is basically what I'm doing.

As long as I don't have to type screen every time I login, I'm
happy. :)

1. I use that all the time.
-- 
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] Turn off annoying auto-search in Mozilla

2004-01-08 Thread Jamie Wilkinson
This one time, at band camp, Andrew Bennetts wrote:
I'm posting this here because an off-hand mention of it on #slug made
several people very happy :)

woot! thanks!

-- 
[EMAIL PROTECTED]   http://spacepants.org/jaq.gpg
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] white box linux (rhel done from source rpms)

2004-01-08 Thread mlh


Back in November, I wrote:

 BTW, it's not impossible that some enterprising (heh)
 person will download the src.rpms for the enterprise
 versions of redhat and make an iso out of them.  It
 wouldn't be legally wrong afaik.


Well it looks like someone's done it:

http://whiteboxlinux.org/

They document a few bugs, so it may be arguable
whether this is more reliable/trustworthy than
fedora.

--
Matt
PS Apparently this was previously called liberation linux.


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

2004-01-08 Thread Michael Lake
Low Christopher - clow wrote:
Arrghhh this is driving me mad.
I'm sure its something trivial but how does one switch ls colors off?
I've got:

Colors=none in /etc/DIR_COLORS

$LS_COLORS=''

But it still uses colors
Somewhere in your .bashrc file or .bash_profile will be the line
alias ls='ls --color=auto' or something like that.
Comment this out and re-source your bashrc i.e. source ~/.bashrc
and colours will not be set.
BTW ls --colors=no

will not use colors at all.

woman ls :-)

Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
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] Weekly celebration of a Unix utility

2004-01-08 Thread Michael Lake
Stuart Cooper wrote:
I was wondering if people would like to talk about
some of the things that
you might be able to do with some simple utilities
that are included with
most Linux distros.
 
Quite often the Linux versions of Unix standard 
programs come from the GNU project and are completely 
packed with new and useful features. Two of my 
favourites:

1) -h option (human readable) in df and du commands
2) less pager F option to go into tail -f mode of
   a logfile you are looking at; which can then be
   changed back to regular less with an interrupt key
I am using now quite often the -v option to grep since I learnt of that 
one. It removes a pattern from the imput to grep. Quite useful.

--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
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] Weekly celebration of a Unix utility

2004-01-08 Thread DE LUCA Ben
Hello boys and girls

What I was really hoping for with my initial mail is that each week we might
focus on a different utility.

There are so many GNU utilities that I though we might sacrifice a whole
week to each one. I know that I have been surprised with what can be done
with some utilities More that I thought was possible more than I could
imagine. I thought this might be a good opportunity for the newbies (IE any
one with less than 20 years of unix experience :) ooh that¹s me) to Learn
some great tricks with things that the xPerts know already!



Are you guys in?
:P

Argh flyday afternoon!
Next week lets no talk about screen lets talk about some thing else? How do
you guys feal about showing off your `find` skills from Monday?


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