Re: default run level

2003-04-06 Thread Michael Naumann
On Sunday 06 April 2003 04:20, Ramsay D. Seielstad, KC2GMW wrote:
>   Timing is everything ... after several months with the basic, nothing-X
> installed, I finally got around to adding sound and Xfree86.  I also ended
> up rebooting and rather than the usual text consoles for login got the X
> login screen.
>
>   I was going to post asking how to get rid of X unless I deliberately
> started X, but rather than trying to remove the automatic start up I think
> I'll use this solution for a while.
>
>   Two items I'm not terribly clear about though - if I  from
> X into a text console, am I simply suspending X?  And, can I return to X
> when I'm done with my text console session or do I need to stop & restart
> X?

X and all applications continue to run.
With the default settings you can switch back to  X with .

A sidenote.
Usually, there is no need to switch to a text-console, since X provides a
lot of it's own. Eg. xterm, eterm, rxvt, kterm and others.

HTH, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [OT, FLAME] Linux Sucks

2003-04-05 Thread Michael Naumann
> Nah, be reasonable - 's gotta be ed. You can't use vi on a teleprinter.

vi -e works perfectly for me on my Highspeed Hasler SP20 ASR.
This device can not only 50 and 75 Bauds but also 100 Baud - and
vi still works flawlessly :-)

- Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: X over ssh

2003-03-30 Thread Michael Naumann
On Sunday 30 March 2003 20:17, Frank Gevaerts wrote:
> On Sun, Mar 30, 2003 at 07:53:21PM +0200, Michael Naumann wrote:
> > Oh, somehow I expected another answer.
> > I'm quite sure, that it should be possible to tunnel X over ssh.
> > And in one direction it works perfectly.
> >
> > So from machine m1
> >   ssh -X m2 xlogo
> > works fine, whereas from machine m2
> >   ssh -X m1 xlogo
> > gives me
> >   Error: Can't open display:
>
> Are you sure sshd on m1 allows -X ? (check /etc/ssh/sshd_config)

That was it.

I had
X11Forwarding no
in there. Changed to yes, HUPed sshd, and everything workes.

Thanx a lot, you saved my day.
Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: X over ssh

2003-03-30 Thread Michael Naumann
On Sunday 30 March 2003 19:13, Paul Johnson wrote:
> On Sun, Mar 30, 2003 at 06:22:06PM +0200, Michael Naumann wrote:
> > I'm a bit clueless now.
> > Hopefully anybody can help me out here.
> > I have two machines m1 and m2 (both woody) connected.
> > I can ssh -X successfully from  m1 to m2 and vice versa.
>
> That's all you need to do.  Don't expect full X sessions over SSH,
> that's not what's intended there.

Oh, somehow I expected another answer.
I'm quite sure, that it should be possible to tunnel X over ssh.
And in one direction it works perfectly.

So from machine m1
  ssh -X m2 xlogo
works fine, whereas from machine m2
  ssh -X m1 xlogo
gives me 
  Error: Can't open display: 

I think, it should work. Too often I read in this list the
"xhost +" technique is considered bad. So what are my alternatives ?
What might I be missing ?

Thanx, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



X over ssh

2003-03-30 Thread Michael Naumann
I'm a bit clueless now.
Hopefully anybody can help me out here.
I have two machines m1 and m2 (both woody) connected.
I can ssh -X successfully from  m1 to m2 and vice versa.
Now my problem
on m1
  ls ~/.ssh
-> authorized_keys  id_rsa  id_rsa.pub  known_hosts
  ssh -X m2 xlogo
-> displays the logo on m1
  ssh -X m2 'echo $DISPLAY'
-> localhost:14.0
on m2
  ls ~/.ssh
-> authorized_keys  id_rsa  id_rsa.pub  known_hosts
  ssh -X m1 xlogo
-> Error: Can't open display: 
  ssh -X m1 'echo $DISPLAY'
->  (And this seems to be my problem)

What I already checked:
  on both machines
sshd (version OpenSSH_3.4p1 Debian 1:3.4p1-1) is started as
  /usr/bin/sshd (whithout any arguments)
X11 ist started as
  /usr/X11R6/bin/X -dpi 100 -nolisten tcp vt7 -auth /var/lib/kdm/authfiles/
grep -s DISPLAY ~/.* ~/* ~/.ssh/*
  shows no results
cat /etc/ssh/ssh_config 
  gives no lines that are not commented

So I do not see any difference and yet, X over ssh only works in one direction.

Any pointer gladly apriciated,

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ASUS motherboard

2003-03-27 Thread Michael Naumann
On Thursday 27 March 2003 09:48, Jim McCloskey wrote:
> Thanks a lot to Mark Devin and Ralph Brown for their help. Both
> suggested using the sis900 driver for the onboard LAN on the Asus
> P4S533-E.
>
> I've tried that, and the problems persist. Loading the module sis900
> (with modprobe or with insmod or with kerneld) produces:
>
>   eth0: Error EERPOM read 0
>   sis900.o: init_module: No such device

I have seen the same message with my sis900 (not on an asus board).
My solution was to install linux 2.4.20, where they
fixed some promblems with this driver. Now everything works
perfectly. Got my kernel directly from www.kernel.org

HTH, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Magic SysRq

2003-03-21 Thread Michael Naumann
On Saturday 22 March 2003 03:42, nate wrote:
> Michael Naumann said:
> > According to /usr/src/kernel-source-2.4.18/Documentation/sysrq.txt I have
> > to set CONFIG_MAGIC_SYSRQ when configuring the kernel to
> > enable this feature.
> >
> > Yet, I do not find this key in .config nor under "make menuconfig".
> >
> > Any hint what I'm missing here?
>
> it's in the 'kernel hacking' section in menuconfig

Thanx Geordie, nate and Travis,
Three answers such fast - impressive.
Yes it's there. Should have found myself.

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Magic SysRq

2003-03-21 Thread Michael Naumann
According to /usr/src/kernel-source-2.4.18/Documentation/sysrq.txt
I have to set CONFIG_MAGIC_SYSRQ when configuring the kernel to
enable this feature.

Yet, I do not find this key in .config nor under "make menuconfig".

Any hint what I'm missing here?

TIA, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: bash: common history across multiple sessios ???

2003-03-04 Thread Michael Naumann
On Tuesday 04 March 2003 21:41, Michael D. Schleif wrote:
> This has been bugging me for several years, and today -- hopefully --
> some kind soul is going to enlighten me ;>
>
> Several years ago, running ksh on several AIX and Solaris servers, and
> many, many simultaneous xterm's open on many boxen, commandline history
> was _common_ across all of my sessions on a given box.
>
> In other words, when I typed a long command string into one terminal,
> later switched to another terminal session on same box, then I could
> recall that particular command from history and edit/use it as I will.
>
> On bash setups, I am never clear which of many sessions gets the last
> word writing to ~/.bash_history ?!?!  When I start another terminal
> session, I never know what will and will not be in ~/.bash_history!
>
> Is there a way to coerce bash to behave as my old ksh?
>
> What do you think?


Use 'history -a' in the shell with your long command and
'history -n' in the new shell.
The first command writes (appends) the changes to you history-file,
the latter reads these changes in.

Also, I have
trap 'history -a' EXIT
in my .profile.

HTH, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Couple of more questions.

2003-03-04 Thread Michael Naumann
On Tuesday 04 March 2003 12:50, Teilhard Knight wrote:
>
> > > Who ate my sandwich?
> >
> > Not me ;-)
>
> How can I be sure ;o)

He really was not. I was. It tasted wonderful.
You want it back ?

Cheers, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: KMail : Index 0 out of range

2003-03-02 Thread Michael Naumann
On Monday 03 March 2003 02:50, Leo Spalteholz wrote:
> On March 2, 2003 05:22 pm, Michael Naumann wrote:
> > I'm using KMail (1.3.2) on a woody-box and it works perfectly.
> > Except for one minor flaw: Each time i jump to a new message,
> > either via , +, Cursor or Mouse,
> > I get a new entry in .xsession-errors, saying:
> > QMenuData::removeItem: Index 0 out of range
> >
> > What is causing this?
> > Should I be concerned?
> > How can I avoid this?
>
> Does this belong on a debian list?

I'm not sure I understand you question correctly.

If you're asking whether this happens when reading
mails from this list, the answer is: It does not belong on this list,
it happens for all mails I browse.

If you're asking whether this question is to be put on this list,
the answer is: I don't know, but I have thought so.
After all, this is a clean woody installation.
If I'm mistaken, can you please tell me what kind of questions
should or should not be put here?

Regards, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



KMail : Index 0 out of range

2003-03-02 Thread Michael Naumann
I'm using KMail (1.3.2) on a woody-box and it works perfectly.
Except for one minor flaw: Each time i jump to a new message,
either via , +, Cursor or Mouse,
I get a new entry in .xsession-errors, saying:
QMenuData::removeItem: Index 0 out of range

What is causing this?
Should I be concerned?
How can I avoid this?

Thanx, Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: find a command i have recently used in bash

2003-01-29 Thread Michael Naumann
On Wednesday 29 January 2003 15:21, Sandip P Deshmukh wrote:
> hello all
> 
> i am sure there must be a way of doing it. i am not getting it though.
> 
> let us say, i have done ls -l , etc etc
> then i have done a few more commands at the prompt.
> 
> now, i want to use that ls command again. is there a way inwhich i can
> reach it quickly? for instance, i type ls and some other key and bash
> completes from history?

The same has already been asked today in the thread
"scrolling trough the argument of a command"
See my reply there whether it is of any help for you.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: scrolling trough the argument of a command

2003-01-29 Thread Michael Naumann
On Wednesday 29 January 2003 08:58, Pierre Burri wrote:
> with another flavour of linux, I can scroll trough the argument of bash 
> command with  instead of scrolling the whole commands (with Arrow 
> Up) saved in the history. 
> For example if in the past I have edited with vi the files /etc/hosts, 
> /etc/apache/httpd.conf and /etc/samba/smb.conf, I can enter vi and then with 
>  scroll only the vi commands: /etc/hosts, /etc/apache/httpd.conf and 
> /etc/samba/smb.conf. 
> How can I do that with Debian?
> Thanks a lot for any help.
> Pierre

I have the following in my .inputrc

"\C-f": history-search-forward
"\C-b": history-search-backward

Does what you want, but not for the keys you want.
I think it should be possible to remap the Page-Keys as well.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Memory usage on debian

2003-01-23 Thread Michael Naumann
On Thursday 23 January 2003 16:30, Nils-Erik Svangård wrote:
> Hi
> My system use about 95% of my 512 mb ram, but ps aux and top doesent
> show which process that eats all the memory.
> Can anyone figure out what to do this could be a kernel issue or
> something?
> I use kernel 2.4.21-pre1

What makes you think your memory is used up?
If you issue 'free' and only look at the 'free' - column (I hope
you get what I mean), you may see very little memory left.
But that does not necessarily mean, that all your memory is used
up. Look at the cached column. If this has a considerable amount
of your memory, then that is no reason to worry. Your kernel
simply uses free memory to cache the files you already read.
This memory area can be viewed as beeing free.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: bash, expressions, ???

2003-01-05 Thread Michael Naumann
05.01.2003 21:23:16, "Egor Tur" <[EMAIL PROTECTED]> wrote:
>Hi.
>Who can explain?
>ps ax | grep lpd
>  398 ?S  0:00 lpd Waiting  
> 5593 pts/13   S  0:00 grep lpd
>ps ax | grep [l]pd
>  398 ?S  0:00 lpd Waiting
>
>What do [l]?

That is more a grep question than a a bash question.
grep has a special meaning for [...], i.e match any
character found inside the brackets (also known as
character class).
So "grep [l]pd" will match "lpd" but not "[l]pd" and
thus leave out the match for grep itself.

Nice trick. I usually used
ps ax | grep lpd | grep -v grep
but with that trick, I can shortcut things from now on.

HTH, Michael





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: how to rename multiple files

2003-01-04 Thread Michael Naumann
05.01.2003 02:00:03, "Gerald V. Livingston II" <[EMAIL PROTECTED]> wrote:

>I want "TRUE" if there is one or more zzz.jpg files in a directory,
>"FALSE" if there are zero of them.

One solution might be:
ls | grep -q '\.jpg$'

Cheers, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: bash guru wanted

2003-01-03 Thread Michael Naumann
04.01.2003 01:34:03, Cameron Hutchison <[EMAIL PROTECTED]> wrote:
>You can do it with the variable PROMPT_COMMAND. Its value is executed
>prior to each prompt.
>
>eg.
>
>function job_test {
>  if [ -z "$(jobs)" ] ; then
>set +o ignoreeof
>  else
>set -o ignoreeof
>  fi
>}
>
>PROMPT_COMMAND=job_test
>
>This works with one slight glitch. The order of operations seems to be
>1) run PROMPT_COMMAND
>2) bash checks for completed jobs
>3) print the prompt

Thanx Cameron,
I'm perfectly happy now. Didn't know about PROMPT_COMMAND.

I use this slightly modified version:

function job_test {
  if [ -z "$(jobs -p)" ] ; then
IGNOREEOF=0
  else
IGNOREEOF=99
  fi
}
PROMPT_COMMAND=job_test

since "set -o ignoreeof" only ignores the first 10 ^D and I want it
to be as strict as possible.

Didn't notice the glitch you mentioned, but I'm sure I can live
with it very well.

I also want to thank you, that you read my mail even though
it was a bit noisy (as I noticed right now, I started the body
with the wrong text). Apologies to anyone else who felt disturbed
by my misbehaviour.

Cheers, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: gqview and pgm

2003-01-02 Thread Michael Naumann
Thanx everybody.
I'll add my versions, in case someone wants to further investigate.

Works for Ron  not for Lourens  not for me (woody)  not for me 
(Knoppix)  works for me (Knoppix on Laptop)
gqview  1.0.2  1.0.2-1  1.0.2-1 1.0.2-1
   1.0.2-1
gnome   1.4.2  not installednot installed   not 
installed not installed
libc6   2.3.1-52.2.5-14.3   2.2.5-6 2.3.1-3
   2.3.1-3
libgdk-pixbuf2  0.21.0-1   0.17.0-2 0.17.0-20.21.0-1   
   0.21.0-1
libglib1.2  1.2.10-6   1.2.10-4 1.2.10-41.2.10-6   
   1.2.10-6
libgtk1.2   1.2.10-14  1.2.10-111.2.10-11   1.2.10-14  
   1.2.10-14
libpng2 1.0.12-6   1.0.12-3 1.0.12-31.0.12-6   
   1.0.12-6
xlibs   4.2.1-34.1.0-16 4.1.0-164.2.1-3
   4.2.1-3
zlib1g  1.1.4-61:1.1.4-11.1.4-1 1.1.4-6
   1.1.4-6

Interestingly, on my two Knoppix-Based Systems, I get different behaviour, although the
mentioned packages are equal in version.
I checked with
  dpkg -l gqview gnome libc6 libgdk-pixbuf2 libglib1.2 libgtk1.2 libpng2 xlibs zlib1g

About "gnome":
Not only do I not have gnome installed, nor can I find a package named gnome on one of 
the 7
cd-s (Debian GNU/Linux 3.0 r0 "Woody"). Which package should I have checked here?

Cheers, Michael

PS: All this is of course no severe problem for me.
I just wanted to add my observations







-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: bash guru wanted

2003-01-02 Thread Michael Naumann
02.01.2003 00:52:05, Thorsten Haude <[EMAIL PROTECTED]> wrote:

>Hi,
>
>* Michael Naumann <[EMAIL PROTECTED]> [2003-01-02 00:33]:
>>I want my bash to obey eof (^D) only if there are no jobs in the background.
>
>I can't help you with the Bash, but I recommend the Zsh. The Zsh warns
>you if you have running jobs, and only exits if you give the command a
>second time. You may also disown the process running in the background
>and exit anyway.

Thanx for your tip,
But this would not help me. As I stated, the warning is also issued by bash
and disowning jobs is also possible.

Thanx anyway, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




bash guru wanted

2003-01-01 Thread Michael Naumann
When I try to view a pgm-file with gqview, I always
get a core-dump (Segmentation violation). This is
reproducable on two machines here - but only for pgm.
The picture shows up very shortly before the crash.

Example:
  gqview /usr/share/gimp/1.2/gimpressionist/Brushes/shape02.pgm

Is this reproducable elsewhere or is this something special to me?

Thanx, Michael


A friend of mine told me about a bash-feature, I do not find mentioned
in "man bash".
The feature is the "\$(command)" construct in the promptstring (PS1).
I tried to exploit this feature to achieve a long-time wish.
I want my bash to obey eof (^D) only if there are no jobs in the background.
So I tried to "set -o ignoreeof" from within above construct. But to no luck.
The same holds for "IGNOREEOF=999".
My experiments show, that "\$(...) does work, but my impression is, that
PS1 is evaluated in a kind of sandbox. I can oly influence how the prompt
looks like, without any sideeffects otherwise.

Example:
  PS1="\s-\v\$ \$(jobcount)"
  jobcount()
  {
if [ ! -z "`jobs -p`" ] ; then
  echo "Background jobs running"  # I see this
  set -o ignoreeof # THIS HAS NO EFFECT
fi
  }

Well, I get the message "There are stopped jobs." if I hit ^D, but
only once. The second ^D will end my bash. This is not what I want.
BTW: I do not get above message, if the background job is active.

So my question:
Does anybody know how to setup bash, so that eof is only obeyed if there
is no background job (be it stopped or running)?

Thanx, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




gqview and pgm

2003-01-01 Thread Michael Naumann
When I try to view a pgm-file with gqview, I always
get a core-dump (Segmentation violation). This is
reproducable on two machines here - but only for pgm.
The picture shows up very shortly before the crash.

Example:
  gqview /usr/share/gimp/1.2/gimpressionist/Brushes/shape02.pgm

Is this reproducable elsewhere or is this something special to me?

Thanx, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: grep freezes system

2002-12-30 Thread Michael Naumann
30.12.2002 13:57:56, [EMAIL PROTECTED] (Robert Land) wrote:

>On Sun, Dec 29, 2002 at 11:10:36PM +0100, Michael Naumann wrote:
>> I'm fairly sure, that the memory consumption of grep is quite independent
>> of the number of files/dirs to be searched. Except for transferirng
>> memory Buffers from "free" to "cached", which can again be
>> viewed as free.
>
>What makes you think this? On the first view and with my
>rather sparse knowledge I would assume this too. Grep only
>needs to extract the searched word, put it to the desired
>output, forget and look for the next files. Why should grep
>buffer anything?

I did not want to say that grep buffers anything.
Yet, depending on how you look at your system, you may observe, that
during a long running grep the amount of cached memory (as shown
by "free") will constantly increase. Ok, that of course is not
grep that does this, but rather the kernel itself.

Cheers, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: X Win and Mouse

2002-12-29 Thread Michael Naumann
29.12.2002 23:20:15, <[EMAIL PROTECTED]> wrote:

>isnt mouseless X pointless, or shouldnt that be pointerless...
>
>Regards, Dean.

Not for me. I admit that I have a mouse attached and fully functional,
but I avoid touching it as much as possible. (Well of course to limited
success as soon as it gets to gimp or alike)

I find it usefull to be able to get into X even with a missing mouse,
just in case some problem with that device occurs - be it only to avoid
a permanently respawning X in case of trouble. ( I once had this problem
with a SuSE-System. I'm not sure how debian would behave)

Cheers, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: X Win and Mouse

2002-12-29 Thread Michael Naumann
29.12.2002 19:26:30, "Matthew Daubenspeck" <[EMAIL PROTECTED]> wrote:

>Hal Vaughan said:
>> 2) Does anyone know how X behaves if it is looking for the mouse on the
>> wrong  port?  Does it not start, start w/out a mouse, keep restarting
>> until it finds  the mouse, or what?
>
>It will fail to start, and you will see a message about not being able to
>initialize a mouse...

Yes, except you have in your XF86Config-4 

Section "ServerFlags"
  Option "AllowMouseOpenFail"
EndSection

HTH, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: grep freezes system

2002-12-29 Thread Michael Naumann
29.12.2002 20:06:56, [EMAIL PROTECTED] (Robert Land) wrote:
>Yet this grep thing happened today - I know 64MB RAM is
>not quite what you would use nowadays - but I only have
>currently a few xterms running and no fancy stuff which
>would eat up my mem (swap is nearly untouched).

I'm fairly sure, that the memory consumption of grep is quite independent
of the number of files/dirs to be searched. Except for transferirng
memory Buffers from "free" to "cached", which can again be
viewed as free.

Complete lockup? That's pretty strange. I'd like to know
how to reproduce this. For our companies products, we have
to be (or make) sure, that nothing alike is ever going to happen.

I suggest you preprend "strace -e open" to your grepcommand.
Thus you will eventually see, which file causes the problem.

HTH, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: basics about env variables

2002-12-29 Thread Michael Naumann
29.12.2002 16:35:43, "Michael P. Soulier" <[EMAIL PROTECTED]> wrote:
>On 29/12/02 Robert Land did speaketh:
>
>> NNTPSERVER=news.btx.dtag.de
>> export NNTPSERVER
>>
>> then did a new init and tried a echo $NNTPSERVER
>> which resulted in a blank line in response.
>>
>> What was my fault and was this actually slrnpull
>> required?
>
>That is the correct syntax for setting environment variables in the bash
>shell, even if it can be done in one line. Your syntax is not at fault here. I
>can't speak to the other potential causes.

I second that. The syntax is correct.
What may have gone wrong is, that you have a script, in which you
set your NNTPSERVER. Then when starting this script, NNTPSERVER is set
correctly inside the script, but no longer valid after the script has finished.
This is normal behaviour. Starting a script means starting a new shell.
Variables are local to this shell - and if exported, as in your case, can
be seen from any child of this shell, but not it's parent.

If you want to experiment, try
  Write a small script in which you export a variable.
  Have an echo for this variable in the script.
  Start the script and see what happens.
  Issue the echo from the shell and see what happens.

You'll most likely ask, whether there is a way to set some variables from
a script. Yes, there is. Bash can excute a script in its own context (without
starting a subshell). Use ". scriptname" for this.

HTH, Michael

  




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: grep freezes system

2002-12-29 Thread Michael Naumann
29.12.2002 10:51:04, [EMAIL PROTECTED] (Robert Land) wrote:

>Using recursive grep for large directory structures
>caused the entire system to freeze.

I once had this, when I tried to access scsi-devices
with hardware-problems.
Responsiveness of the whole system went drastically down.

Hanging applications can also be reproduced when
trying to access files on a stale nfs mount (if not
mounted with -o soft)


>
>The same happens for "find / * -group xx_x".

And maybe anything else accessing the problematic file.

BTW: I think the "*" in your command does not do what you intend.
  It will be expanded by your shell and the result will
  be seen as part of the path-list by "find"
  My guess is, you simply want to get rid of it.

HTH, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: bash read oddity

2002-12-29 Thread Michael Naumann
29.12.2002 05:06:21, "Jamin W. Collins" <[EMAIL PROTECTED]> wrote:

>Got a strange situation happening on a friends Debian box.  I found the
>problem by debugging his ALSA startup problems.  Turns out that he's
>getting some extra character added to the output of "read" command.
>
>The following commands replicate this:
>   $ set -x
>   $ awk '/^((alias)|(probe)) +snd-card-[0-9]/ {print $3}' \
>  /etc/modules.conf | ( while read -e line; do echo $line; done; )
>
>on my friend's system this results in:
>
>   + awk '/^((alias)|(probe)) +snd-card-[0-9]/ {print $3}' /etc/modules.conf
>   + read line
>   + echo $'snd-emu10k1\r'

seems like he has CR (Carriage Return) appended to his lines in /etc/modules.conf
You can check with
  cat -A /etc/modules.conf
where the CR appear as ^M

>   snd-emu10k1
>   + read line

I have no idea, why the -e would be missing here

>
>on my system this results in:
>
>   + awk '/^((alias)|(probe)) +snd-card-[0-9]/ {print $3}' /etc/modules.conf
>   + read -e line
>   + echo snd-ymfpci
>   snd-ymfpci
>   + read -e line

This resembles the output I get.

>
>Both systems are running the same versions of bash and libc6.  Any
>ideas?

HTH, Michael





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: need some readline tricks

2002-12-22 Thread Michael Naumann
20.12.2002 22:26:16, andrej hocevar <[EMAIL PROTECTED]> wrote:

>On Wed, Dec 18, 2002 at 03:27:42PM +0100, Michael Naumann wrote:
>> If you mean readline in bash, you can add
>> 
>> "\M-[A": history-search-backward
>> 
>> to your .inputrc.
>> A newly started bash should then handle CURSOR-UP the way you like.
>
>But if I add sequences that already have a meaning (like "\C-s")
>it's still the old value that's in effect.

Well \C-s is somewhat special. Usually this does not find it's way
through to readline. Use "stty -a" to see all keys getting
special treatment. \C-s by default is bound to stop (denoted with ^S).

>Besides, how do I represent function keys?

I think, they are represented just like cursor keys.
Unfortunatly (to my knowledge, which may well be incomplete), there
is no terminal independent way to denote these keys.
What you can do is:
cat -A
then press the cursor key in question and see, what sequence is issued.
Replace the ^[ (Escape) you see with \M- (Meta) for .inputrc

Merry X-Mas, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Xterm behavior

2002-12-20 Thread Michael Naumann
On Friday 20 December 2002 08:46, Robert Storey wrote:
> 2) Xterm ignores my settings in .bashrc and /etc/profiles concerning aliases. For 
>example, I would like to add these settings:

Beware, you are confusing things a bit.
It's not xterm which wants to read your .bashrc

xterm can start a shell and this is where your .bashrc may get read.

What is actually read depends on
  1) your shell, as specified in /etc/passwd
  2) the switches given to xterm (esp. -ls and +ls)

So what I suggest:
  a) assure that your login shell is bash.
 you can use the command 'chsh' to view/set your shell
  b) look whether there is a .profile in your HOME-directory
 (read the section INVOCATION in 'man bash')

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: need some readline tricks

2002-12-18 Thread Michael Naumann
On Wednesday 18 December 2002 11:22, Chun Kit Edwin Lau wrote:
> Hi everyone,
> 
>   I am looking for a readline trick.  Say for example, when I
> type an "s" and a arrow key at the prompt, I should be able to scroll
> last command that begins with an "s".  Is it achievable in realine?

Short answer: Yes.
Your question is not complete though.
If you mean readline in bash, you can add

"\M-[A": history-search-backward

to your .inputrc.
A newly started bash should then handle CURSOR-UP the way you like.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: vi alternate problem

2002-12-18 Thread Michael Naumann
On Wednesday 18 December 2002 03:20, Eric G. Miller wrote:
> Vim has a compatibility mode (vim -v) to more like the
> original vi...

That would be "vim -C". Though I never had the need to use this.
"vim -c" starts in vi-mode, not compatibility mode.
The difference is, that vi-mode is to be seen versus ex-mode.

- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: xset somehow broken?

2002-12-17 Thread Michael Naumann
On Tuesday 17 December 2002 17:20, DEFFONTAINES Vincent wrote:
> I used to use "xset -s off" to poweroff screen blanking on X when I was
> watching TV on my desktop in the past.
> 
> Now it seems that this option, though remaning documented (in xset manpage)
> is broken? Running Xfree4.2 on Debian unstable, it doesnt prevent the screen
> from blanking after 20 minutes without keyboard/mouse input.
> 
> Someone suggested I use "xset -dpms" which should perform what I wish,
> anyway, does anyone have a clue about the "xset -s off" being broken? Does
> it deserve a bug report?

Wait a minute.
"xset s off" works for me.
I even do not need it when watching TV if I watch in fullscreen.

My guess is, that you have a BIOS, that is able to detect missing
(key/mouse) input and activate some kind of power-saving.
In this case, "xset s off" would be of no help.
Look in your BIOS and deactivate it there.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: perl's stat and symlinks

2002-12-15 Thread Michael Naumann
15.12.2002 18:23:32, Colin Watson <[EMAIL PROTECTED]> wrote:

>On Sun, Dec 15, 2002 at 05:31:15PM +0100, Michael Naumann wrote:
>> when I do from perl
>>   @f= stat "f";
>>   @sl2f = stat "sl2f";
>> I always get the same contents in @sl2f as in @f, i.e stat follows the link.
>> Thus I cannot decide via stat,
>> whether the file in question is a symlink or a not.
>
>Use lstat().

Oh my, I feel so stupid right now.
I wonder why during my research I missed the obvious.

Thanx, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




perl's stat and symlinks

2002-12-15 Thread Michael Naumann
I have a file f and a symlink sl2f to this file.
ls -l shows the following:
lrwxrwxrwx1 mn   users   1 Dec 15 16:22 sl2f -> f
-rw-r--r--1 mn   users   0 Dec 15 16:23 f

when I do from perl
  @f= stat "f";
  @sl2f = stat "sl2f";
I always get the same contents in @sl2f as in @f, i.e stat follows the link.
Thus I cannot decide via stat,
whether the file in question is a symlink or a not.

Does anybody know how to retrieve this information
without starting a separate programm?

TIA, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: catch the output of an app in a perl script

2002-12-08 Thread Michael Naumann
07.12.2002 01:18:56, Shyamal Prasad <[EMAIL PROTECTED]> wrote:

>It's been some years since I've done real perl programming (thank God
>for Python!), but the original poster might find it interesting that
>the "pipe open" syntax allows the program to read the output when it
>is ready. The backquotes require that the program have enough memory
>to collect the program output at one time. If there is a lot of
>output, that might be worth thinking about.
>
>Or have I completely forgotten perl?

No, you haven't.
If space is an issue, the pipe open technique is a remedy.
Also in case you want to process output that drops by during a long 
period of time.

Yet, (for me) in most cases, the backticks are sufficient and
slightly more easy to use.

Cheers, Michael






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: root fs not in df

2002-12-08 Thread Michael Naumann
07.12.2002 19:30:38, [EMAIL PROTECTED] (Bob Proulx) wrote:
> I don't have a KNOPPIX based system to look at this problem.  But I
> would start looking at /etc/init.d/checkroot.sh and others and make
> sure that after the mount command there the system shows up in the
> mtab.  Perhaps at the time of the command KNOPPIX is used to working
> off of a readonly device and has disabled that feature at that moment.
> Just guessing.  This part of checkroot.sh seems most interesting in
> your case.

Thanx Bob, seems like a full hit.
Replacing /etc/init.d/checkroot.sh with the version of my pure woody solves
the problem.

But I'm not sure, I'm doing the right thing here.
checkroot.sh belongs to package sysvinit.
The version of checkroot.sh is, according to grep "@(#)"
2.84-3  on woody
2.78on knoppix

The version of sysvinit is, according to dselect and aptitude
2.84-139on knoppix
2.84-2woody on woody

Strange to me:
on woody, the versions of checkroot.sh and it's package are quite resembling,
whereas on knoppix there is this discrepancy (2.78 vs. 2.84).
Does this mean, that there is something wrong in the knoppix package?

Giving me trouble:
aptitude does not offer me the choice to upgrade to 2.84-2woody.
Same for dselect and kpackage (but who would have wondered ?)

Any thoughts?

Cheers, Michael







-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: root fs not in df

2002-12-07 Thread Michael Naumann
06.12.2002 19:25:57, "nate" <[EMAIL PROTECTED]> wrote:

>Michael Naumann said:
>> On one of my systems, wich otherwise works perfectly, I
>> have one small issue.
>> If I do 'df', I do not see my root fs. (Same for 'mount')
>> I know it is here and it works (it's /dev/hda4).
>> The corresponding entry is in the /etc/fstab.
>
>check /etc/mtab see what it says. thats very unusal. anything
>odd happen before this started happening? crash or anything?

In /etc/mtab it isn't mentioned either.

And yes, there was something odd, I forgot to mention.
It came back to my memory since I now have a second system with
the very same symptoms.
Both systems are installed using Knoppix (/usr/local/bin/knx-hdinstall).

What's most strange to me, is that the systems work quite well
despite this fact.

rdev comes to my mind. But I never had to use it before.

- Michael






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Perl pattern matching

2002-12-06 Thread Michael Naumann
On Friday 06 December 2002 16:53, Jörg Johannes wrote:
> Hi List
> 
> Sorry for coming in here with such a question, but this list ahs perl 
> gurus, and response is much faster than comp.lang.perl.misc (and I need 
> the answer fast...)
> 
> Here it comes:
> In "Programming Perl (german translation) there is an example for how to 
> skip lines that start with the hash sign:
> 
> LINE: while ($line = ) {
>   next LINE if /^#/;   # Should skip lines that start with the hash 
> sign.
>   # what to do with non-comment-lines
> }
> 

I think, the problem is, that you assign to $line but test to $_, which 
in fact is not set.
So either change your code to :
 LINE: while () {
   next LINE if /^#/;   # Should skip lines that start with the hash sign.
   # what to do with non-comment-lines
 }
or to
 LINE: while ($line = ) {
   next LINE if $line =~ /^#/;   # Should skip lines that start with the hash sign.
   # what to do with non-comment-lines
 }

> When I try to use it, I get an error message:
> Use of uninitialized value in pattern match (m//) at ./rhodanid.pl line 
> 138,  line 1
> for all lines of the file coming in via 
> 
> Any idea how to skip comment-lines?
> 
> thanks
> joerg
> 
> PS.: The book is written for Perl 5.006, I think, and I use 5.8 (from 
> sid). Did the pattern matching change?

Don't know and don't think so.

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: catch the output of an app in a perl script

2002-12-06 Thread Michael Naumann
On Friday 06 December 2002 12:56, Colin Watson wrote:
> On Fri, Dec 06, 2002 at 12:35:08PM +0100, Raffaele Sandrini wrote:
> > How can i catch the output of a program runned in a perl script? 
> 
> Use the "pipe open" syntax. The perlopentut man page will help.

Or even easier, use
$output = `cmd`;
or
@output = `cmd`;

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




root fs not in df

2002-12-06 Thread Michael Naumann
On one of my systems, wich otherwise works perfectly, I
have one small issue.
If I do 'df', I do not see my root fs. (Same for 'mount')
I know it is here and it works (it's /dev/hda4).
The corresponding entry is in the /etc/fstab.

Doing 'df /', I get
Filesystem   1K-blocks  Used Available Use% Mounted on
- 10863172   2150372   8160968  21% /

In /proc/mounts I see
rootfs / rootfs rw 0 0

What am I missing ?

Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Partition size

2002-12-05 Thread Michael Naumann
On Wednesday 04 December 2002 07:15, Rob Weir wrote:
> X has to know about poer events, since it will have to re-initialise
> your video hardware when your machine wakes up again.

Thanx,

that X tells me about such events, where it is actively doing
something as important as re-initialising my hardware, is perfect.

But that it reports every minor Voltage-Change
((II) PM Event received: Power Status Change)
makes above reportings more "forget-it"-prone and
simply spoil my logfile.

I'm still hoping, that there is a "legal" way to disable or tune them.

- Michael

PS: sorry Bob, I accidently sended this to you personally.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: what process is using swap

2002-12-04 Thread Michael Naumann
On Wednesday 04 December 2002 12:05, Patrick Hsieh wrote:
> Hello list,
> 
> Is there any way to know what process is using the swap space?


From "man ps":
  Programs swapped out to disk will be shown without command line arguments,
  and unless the c option is given, in brackets

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: cfdisk revisited

2002-12-01 Thread Michael Naumann
01.12.2002 18:07:53, "Derrick 'dman' Hudson" <[EMAIL PROTECTED]> wrote:

> The linux booters (lilo, grub, syslinux, etc.) don't care about that
> flag.  It is MS-DOS and MS Windows that cares.  Its possible that it
> only cares if you use an MS boot loader, it may not matter when you
> chainload the windows boot loader.  OTOH it may be that windows needs
> the windows partition to be "bootable".


Is this so?
I thought, that if for example I install LILO in /dev/hda3 (instead of
in the mbr), this partition has to be bootable too.

OK, this does not mean, that lilo cares about it, but a relation
between the two is still there, even without M$

But after all, I may be totally wrong here since I use mbr.

-- Michael





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: DMI pool data

2002-11-30 Thread Michael Naumann
30.11.2002 22:15:59, mess-mate <[EMAIL PROTECTED]> wrote:

>Hello all,
>after searching on 'dimi pool data' I didn't found a 
>solution on my pb:
>My computer hangs after the bios message :
>'Verifyng DMI pool Data ... update success '
>I tryed following:
>-cleared the cmos 
>-disconnect everything but maintained the floppy
>-changed the HD
>-setted the bios to his defaults
>-disabled the cpu cache
>-controlled all the connectors
>without success :-(
>The computer won't boot, nor from the floppy, cdrom or HD.
>Is there any solution to solve this pb ??
>Thanks for your advice.
>mess-mate

Does your bios have something like
"Restore faile-save settings"

I would give a try.

HTH, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Partition size

2002-11-29 Thread Michael Naumann
On Friday 29 November 2002 03:24, Matthias Szupryczynski wrote:
> On Fri, 2002-11-29 at 05:40, Michael Naumann wrote:
> > For this very reason, I have ext2. But gkrellm shows me small write
> > peaks every other second. I figured out, that /var/log/XFree86.0.log
> > gets filled with
> > (II) PM Event received: Power Status Change
> > 
> > I asked some days ago in a separate thread, how do solve this issue,
> > but noone replied.  Googling around shows, that other people have the
> > same problem, yet no solution is provided.
> 
> Hi Michael,
> 
> I had the same problem with the write peals every other second a while
> ago, here some pointers in the right direction.
> 
> From the syslog.conf manpage:
> 
>You  may  prefix  each  entry with the minus ``-'' sign to
>omit syncing the file after every logging.  Note that  you
>might  lose information if the system crashes right behind
>a write attempt.  Nevertheless this might  give  you  back
>some  performance, especially if you run programs that use
>logging in a very verbose manner.
> 
> Note that entry means the full pathname of a log file in this
> context. 
> 
> Also, you might want to add the option 'noatime' to your partition
> entries in /etc/fstab. Have a look at 'man mount' for details.
> 
> Basically, I added a '-' in front of every log file pathname inside 
> /etc/syslog.conf, and added 'noatime' as an option for every partition
> entry in /etc/fstab, and this solved the problem.
> 
> HTH
> 
> Matthias

Thanx Matthias,
I'll give this a try.
But I doubt, this will help in my situation.
The XFree86.0.log file is not mentioned in /etc/syslog.conf
and -o noatime will only block writing "inode access times".
But once I found out how to stop X from repeatedly telling me this nonsense,
(Ok Mr. X11, my "Power status changed", but why is this your business)
your tips may fill the remaining gap.

Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Partition size

2002-11-28 Thread Michael Naumann
On Thursday 28 November 2002 19:06, Mark Brown wrote:
> On Thu, Nov 28, 2002 at 10:52:14AM -0700, Chris Tillman wrote:
> 
> > I have had no problems with ext3 either, nor have I heard of anyone 
> > having problems, nor is there any bugs open in e2fsprogs. Should we 
> > just flatly recommend ext3 in the manual? Or maybe something like
> 
> One issue with ext3 (unless it has been fixed since I last noticed) is
> that it spins up the disk at regular intervals which may not be
> desirable on systems such as laptops.

For this very reason, I have ext2. But gkrellm shows me small write
peaks every other second. I figured out, that /var/log/XFree86.0.log
gets filled with
(II) PM Event received: Power Status Change

I asked some days ago in a separate thread, how do solve this issue,
but noone replied.  Googling around shows, that other people have the
same problem, yet no solution is provided.

Hence, (at least for me) independent of the filesystem I use,
my disk will never spin down.

I'd really love to have a solution for this.

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




X11 and PM Event received: Power Status Change

2002-11-26 Thread Michael Naumann
Today I installed debian (from Knoppix) on my Laptop.
Nearly everything works fine so far, except for one little flaw.
Every minute or so a new line is written in my /var/log/XFree86.0.log, stating
(II) PM Event received: Power Status Change

What can I do to disable this (nonsense) message.
This message even occurs, if I'm plugged to the main power supply.

I'm concerned, that this will prevent my disk from spinning down.

If that matters, it's a Toshiba Satellite Pro 4600

advTHANXance, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Tool showing directory size of the complet drive

2002-11-20 Thread Michael Naumann
On Wednesday 20 November 2002 18:52, Oliver Fuchs wrote:
> Hi,
> I am looking on Debian woody for a tool which can show me the size of
> folders/files of my complete drive to proof where my disk-space is
> wasted.
> I am now on 75% and I do not have a clue where my space is wasted.

Maybe, you get your answer with
du /

> Can I scan my hole drive and show the largest files in sorting order.

Something around
find / -ls | sort -rk 7 | head

NOTE however, you may want to exclude some mounted filesystems
and some special directories before starting.

>
> Can anyone recommend a tool for that?
>

There is this wonderful SequoiaView, but only for windows.
So you can share your disk with samba and try it from windows.

>
> Oliver


HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: manual for vim

2002-11-19 Thread Michael Naumann
On Tuesday 19 November 2002 12:47, Sandip P Deshmukh wrote:
> moreover, are there any 'active' mailing lists for vim?

I recommend the vim-mailing list [EMAIL PROTECTED] This list is
also read and commented by Bram Moolenaar, the author of vim.
See you there. I guess you'll get all the help you need.

I also recommend visiting http://www.vim.org/

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: aptitude locked

2002-11-18 Thread Michael Naumann
On Friday 15 November 2002 15:25, Rob Weir wrote:
> On Fri, Nov 15, 2002 at 02:40:06PM +0100, Michael Naumann wrote:
> > Can anyone of you confirm that this is due to xmms?
> > If so, I think there must be a severe bug anywhere,
> > if not, I think there is an even more severe bug out there.
>
> I can't imagine how XMMS could take down your whole machine, at least
> with 'real time priority' disabled.  I can't experiment tho, since
> enabling that option instantly freezes my box.
>
> > PS: I am still clueless how to procede with my aptitude lock.
>
> Oops, got a little side-tracked.  Have you removed
> '/var/lib/aptitude/lock'?

Problem is solved - but I don't know exactly how.
Removing above link didn't help, as I stated in an
earlier post in this thread.
I played with dselect and other stuff in the
meantime and now I can again use aptitude.

Thanx, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Moving away from KDE to what?

2002-11-15 Thread Michael Naumann
16.11.2002 00:12:53, Ricardo Diz <[EMAIL PROTECTED]> wrote:


> P.S. Does anyone knows how do I put a result from command line into
> mutt/vi when sending mail?

In vi you can read the result of a command like this:
:r !hdparm -tT /dev/hda5

HTH, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Moving away from KDE to what?

2002-11-15 Thread Michael Naumann
16.11.2002 01:30:28, Osamu Aoki <[EMAIL PROTECTED]> wrote:

>Better in vi Are you serious.  VIM is always better :-)

I agree, except where vi is aliased to vim :->

- Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Moving away from KDE to what?

2002-11-15 Thread Michael Naumann
16.11.2002 00:38:34, Glyn Kennington <[EMAIL PROTECTED]> wrote:

>Has anyone found a way to
>make it ignore shifted mouse events but still process normal clicks?

You can disable it via
:map  
Put this in your .vimrc and you're set.

HTH, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: URGENT - How to shutdown Debian 3? - URGENT

2002-11-15 Thread Michael Naumann
16.11.2002 00:14:34, Levi Waldron <[EMAIL PROTECTED]> wrote:

>On November 15, 2002 03:31 pm, Llies Meridja wrote:
>
>> No it does not work, first when I choose GNOME session and do
>> ctrl+alt+del nothing happens, then when I log to KDE session and do
>> ctrl+alt+del I get system guard!
>
>Did you try Nate's advice?  Log in, open a terminal (xterm, for example), 
>then do as he says:
>
>> once logged in do 'su' and input the root password when prompted,
>> then issue the 'halt' command to halt the system.
>>
>
>
>If you don't like logging in as root whenever you shut down, you could give 
>your userid permission to do some commands as root:
>
>1) Type "su" in a terminal to log in as root
>2) visudo
>3) move to the bottom of the file, and type "i" to enter insert mode
>4) type the line (Replace username with your username):
>
>usernameALL = NOPASSWD: /usr/sbin/poweroff
>
>5)   :wqto exit
>6) Now your regular user can type /sbin/halt to poweroff.  Additionally, you 
>could put the following line in your user's /home/username/.bashrc file:
>
>alias halt="/sbin/halt"  

shouldn't that read
alias halt="sudo /sbin/halt"  
or even better
alias halt="/usr/bin/sudo /sbin/halt"  

>
>OR, 
>
>alias anynicknameIwant="/sbin/halt"
>
>(with the editor of your choice, or using vi filename and the same "insert" 
>and save & quit commands as visudo)
>
>7)  From then on, your regular user can shut down just by typing "halt" into 
>a shell.  You could even make an icon or menu item to do it.
>
>You might want to add other commands in visudo, like /usr/bin/xcdroast (for 
>writing CDs).
>
>Hope this helps,
>Levi

- Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Eterm -xrm

2002-11-15 Thread Michael Naumann
I have a little problem with Eterm.
Currently I'm using xterm, but a friend of mine showed
me some nice Eterm features, and I read in man, that Eterm is supposed to be
a replacement of xterm, so I experimented with it.
One problem comes up, which is quite puzzling to me:

Eterm  -xrm "*Page:1 2"

eject to errormessages, while still doing what I request, i.e : start on the
specified (virtual) page (in fvwm2, if that matters)

Eterm:  Error:  unexpected argument *Page:1 2 -- expected option
Eterm:  Error:  Attempting to continue, but strange things may happen.

whereas 
Eterm  -xrm "*Page:1 2"
works without any warning.

Any clues?

advTHANXance, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Setting default width of xman

2002-11-15 Thread Michael Naumann
15.11.2002 19:23:05, Joe Riel <[EMAIL PROTECTED]> wrote:

>11/15/02 9:05:08 AM, Michael Naumann <[EMAIL PROTECTED]> wrote:
>
>>What you want is
>>Xman*manualBrowser.geometry :800x900
>>in your .Xdefaults.
>
>Thank you. 
>
>How did you figure this out?

This was just a wild guess.
I tried
strings `type -p xman` | grep geometry
and the first (of the four) results was (with a bit intuition) a direct hit.

>More generally, how can I find the available resources for a particular X-client?

This is something I'd also like to know.
I too often end up with experimenting.
In the case of xman, the widget hirarchy can be obtained with
man xman

>The man pages for a client don't always have the information
>[I realize that "geometry" is part of the x-toolkit].
>Specifically, how did you determine that the 
>[I don't know the correct term] under Xman was "manualBrowser"?

I think, "widget" would be the correct term here.

>
>Thanks
>
>Joe Riel
>
>
>

- Michael

PS: I have a related question, I'm going to ask in a separate thread.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Setting default width of xman

2002-11-15 Thread Michael Naumann
On Friday 15 November 2002 17:24, Joe Riel wrote:
> When I select manual page in the xman startup window,
> the window for the manual is too narrow, I have to manually
> increase it to the proper size. How can I change the default
> size?
>
> I read the xman man page, it mentions the -pagesize option,
> which does work if I start xman from the command line, e.g.
>
> > xman -pagesize 800x900 &
>
> however, I would like to be able to start xman by using the mouse
> (I'm currentlly running fvwm). The xman man page does not mention
> a resource for setting page width, I tried
>
>  Xman*Pagesize:800x900
>
> in .Xdefaults, that had no effect.
>
>  Xman*Geometry:  800x900
>
> causes the xman start window (the little guy with three or four buttons)
> to be huge, not at all what I want.
>
> Thanks for any suggestion.
>
> Joe Riel

What you want is
Xman*manualBrowser.geometry :800x900
in your .Xdefaults.

Or you can adjust .fvwmrc to supply the
-pagesize 800x900
to xman.

Furthermore, I have
Key F9 A M Maximize 90 95
in my .fvwm2rc (works also for fvwm1)
This allows me to maximize the current window by pressing ALT-F9.
(Well, my example just leaves some space to the right and bottom.
 Use 100 100, if you want the whole screen)

- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: aptitude locked

2002-11-15 Thread Michael Naumann
On Thursday 14 November 2002 06:52, Rob Weir wrote:
> On Wed, Nov 13, 2002 at 10:13:10PM -0500, Seneca wrote:
> > On Thu, Nov 14, 2002 at 12:08:08AM +0100, Michael Naumann wrote:
> > > Last day I had a heavy crash of my woody box.
> > > I suspect some misbehaviour of xmms here.
> > > The whole display was very flickery and no
> > > application responded any more, though I saw, that
> > > gkrellm was still working. Even switching to a console (ALT-F1)
> > > did not succeed. I had the the X-screen still visible, jumping
> > > half a page to the left each time I hit a key.
> > > Had no luck in rebooting blindly.
> >
> > I've had that happen with X on my laptop. My standard method to attempt
> > to get out of that state is to return to X (I tend to have num lock on
> > in X, a useful indicator to show that I am at the right screen), wait
> > until the load on the system is lower, change to console. If the screen
> > looks either grey or normal, it worked (although grey needs the "reset"
> > command)
>
> I've had this happen a few times too.  Once you get to the
> 'screen-out-of-phase-by-half' stage, even the kernel is b0rked.  Magic
> sysrq doesn't work, so you're left with a hardware reset.

Can anyone of you confirm that this is due to xmms?
If so, I think there must be a severe bug anywhere,
if not, I think there is an even more severe bug out there.

- Michael

PS: I am still clueless how to procede with my aptitude lock.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Javascript and forms

2002-11-15 Thread Michael Naumann
On Friday 15 November 2002 07:06, Try KDE wrote:
> The following works on my Mozilla:

... And with opera.
Thanx a lot, this did the trick.

-- Michael

> 
> function check(radio)
> {
> var selected = "";
> for (var i=0; i<radio.length; i++)
> {
> if (radio[i].checked) {
> selected = radio[i].value;
> }
> }
> alert ("The checked value is " + selected);
> }
> 
> http://localhost:1234/cgi";>
> 
>
>     
>   
> 
>
> 
>  
>
>
>-tk
>
> Michael Naumann wrote:
> >On Thursday 14 November 2002 03:20, Try KDE wrote:
> >>Your html is ill-formed. The text field should be:
> >>input type="text" name="n1" size=20
> >
> >Well, it is not n1, I had the problem with.
> >Even if I 'correct' it, I still can't see
> >the value of n0 (the radio-button).
> >
> >Anybody knows how to access the value of a radio-button in JavaScript ?
> >
> >-- Michael
> >
> >>-tk
> >>
> >>Michael Naumann wrote:
> >>>I have a small problem accessing form-vars via JavaScript.
> >>>In below example, I have two vars in a form,
> >>> one of type radio (n0)
> >>> and a normal input-var (n1).
> >>>
> >>>In the JavaScript Function CheckInput() I can acces the value of
> >>>n0, but not of n1
> >>>.
> >>>Depending on the browser, I get different results:
> >>> konqueror : always b1
> >>> opera : undefined
> >>> mozilla   : undefined
> >>> galeon: undefined
> >>>
> >>>---
> >>>
> >>> 
> >>>   b1 
> >>>   b2 
> >>>   string 
> >>>   
> >>> 
> >>> 
> >>>   function CheckInput()
> >>>   {
> >>> alert(document.ArgsForm.n0.value);
> >>> alert(document.ArgsForm.n1.value);
> >>> return false;
> >>>   }
> >>> 
> >>>
> >>>---
> >>>
> >>>So I must be missing something very obvious here.
> >>>Can anybody point me to the right direction?
> >>>
> >>>advTHANXance, Micahel


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Xterm question.....

2002-11-14 Thread Michael Naumann
On Thursday 14 November 2002 11:10, Urban Gabor wrote:
> Hi,
>
> may be, this question is quite newbie.   My xterm uses
> xterm-debian setting, and I can't use backspace. How can I
> solve this?

Since noone else mentions it, I'll do.

Try (from your shell):

stty erase C-V Backspace

where 
C-V   : Press Control V
Backspace : Hit your Backspace key


If that does not help, you can probably get around
with using C-H instead of Backspace until you fixed it.

HTH, Michael
  
>
> BTW I would prefer a personal CC as well, my mail provider
> hangs sometime
>
> Gabaux
> Linux is like a wigwam: no gates, no windows, and an apache
> inside!


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: aptitude locked

2002-11-14 Thread Michael Naumann
On Thursday 14 November 2002 01:59, nate wrote:
> Michael Naumann said:
> >   Warning: could not lock the chache file. Opening in read-only mode.
>
> I have never used this program, but if it were me the first
> thing I would do is run strace on the app
>
> strace aptitude

That's one thing I also tried.

>
> and see what file(s) its trying to access. if the screen scrolls
> to hell and back I do:
>
> strace aptitude >&strace.log

I usually go for
strace -e open 
or
strace -e file ...
to reduce the output to what's probably most meaningful for me.

>
> and load strace.log in your favorite text editor or text pager.
>
> nate

There was one lock-file mentioned.
IIRC it was /var/lib/aptitude/lock. I currently have no acces to the
box so I can't tell exactly. But anyway, deleting this file did not solve
my problem.

So I still get (from aptitude)
  Warning: could not lock the cache file. Opening in read-only mode.

Any clues?, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Javascript and forms

2002-11-14 Thread Michael Naumann
On Thursday 14 November 2002 03:20, Try KDE wrote:
> Your html is ill-formed. The text field should be:
> input type="text" name="n1" size=20

Well, it is not n1, I had the problem with.
Even if I 'correct' it, I still can't see
the value of n0 (the radio-button).

Anybody knows how to access the value of a radio-button in JavaScript ?

-- Michael

>
> -tk
>
> Michael Naumann wrote:
> >I have a small problem accessing form-vars via JavaScript.
> >In below example, I have two vars in a form,
> >  one of type radio (n0)
> >  and a normal input-var (n1).
> >
> >In the JavaScript Function CheckInput() I can acces the value of
> >n0, but not of n1
> >.
> >Depending on the browser, I get different results:
> >  konqueror : always b1
> >  opera : undefined
> >  mozilla   : undefined
> >  galeon: undefined
> >
> >---
> >
> >  
> >b1 
> >b2 
> >string 
> >
> >  
> >  
> >function CheckInput()
> >{
> >  alert(document.ArgsForm.n0.value);
> >  alert(document.ArgsForm.n1.value);
> >  return false;
> >}
> >  
> >
> >---
> >
> >So I must be missing something very obvious here.
> >Can anybody point me to the right direction?
> >
> >advTHANXance, Micahel


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




aptitude locked

2002-11-13 Thread Michael Naumann
Last day I had a heavy crash of my woody box.
I suspect some misbehaviour of xmms here.
The whole display was very flickery and no
application responded any more, though I saw, that
gkrellm was still working. Even switching to a console (ALT-F1)
did not succeed. I had the the X-screen still visible, jumping
half a page to the left each time I hit a key.
Had no luck in rebooting blindly.

Long story, short end: I had to reboot.

Now my problem: I cannot start aptitude.
It says in a red box:
  Warning: could not lock the chache file. Opening in read-only mode.

Any clues how to continue from here ?

tia, Michael





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Javascript and forms

2002-11-13 Thread Michael Naumann
I have a small problem accessing form-vars via JavaScript.
In below example, I have two vars in a form,
  one of type radio (n0)
  and a normal input-var (n1).

In the JavaScript Function CheckInput() I can acces the value of
n0, but not of n1
.
Depending on the browser, I get different results:
  konqueror : always b1
  opera : undefined
  mozilla   : undefined
  galeon: undefined

---

  
b1 
b2 
string 

  
  
function CheckInput()
{
  alert(document.ArgsForm.n0.value);
  alert(document.ArgsForm.n1.value);
  return false;
}
  

---

So I must be missing something very obvious here.
Can anybody point me to the right direction?

advTHANXance, Micahel




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Moving away from KDE to what?

2002-11-12 Thread Michael Naumann
On Tuesday 12 November 2002 10:08, Alex Polite wrote:
> I visited my mother last week to help her setup her DSL
> connection. While doing so I realized that her Windows 2000 350 MHz
> box is a lot more responsive then my Debian/GNU/KDE 500 MHz box.
>
> So out goes KDE.
>
> I tried out the minimalistic ratpoison an ion wms and kind of like
> them. At least they are fast. But they don't handle apps like gimp or xmms
> to well. Now I'm looking something in  the middle ground.
>
> Here are the requirements:
>
> 1) Must be able to "maximize window to available space" a la
>enlightenment.
>
> 2) Must support multiple sequence key bindings a la emacs.
>
> 3) Must be fast.
>
> 4) Must be faster.
>
> alex

I use fvwm2 and am quite happy with it. Also it fulfills all your
requirements (except maybe Nr 4.)

HTH, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Trashed partition table

2002-11-08 Thread Michael Naumann
08.11.2002 18:01:57, Jorge Santos <[EMAIL PROTECTED]> wrote:

>Hello,
>
>I installed some other OS and id overworte the MBR, to make a long
>story short, I booted with ethe second woody disc and went for the
>rescue option at which point I was surprised to find out that fsck
>claimed one of the partitions had a bad superblock (it had an ext3 fs,
>and the kernel was 2.2.x, but I was under the impression that it would
>just mount it as an ext2 fs, so I don't think that was the problem),
>no problem, just a few hundred megs of mp3s there so I went on to run
>grub-install, but it didn't find stage2, so i made some floppies with
>grub-floppy and booted with that, they didn't work, to make another
>long story short, I booted into the install system and in a console I
>found that fdisk stated this about my partition table:
>
>Device  BootStart   End Blocks  Id  System
>/dev/hda1?  20682   154408  1074152739   0   Empty
>
>Partition 1 does not end on cylinder boundary:
>phys(637, 190, 61) should be (637, 254, 63)
>
>
>So I gather the partition table is trashed.  So for my question:
>
>¿Is there any way to fix this mess?
>
>TIA
>
>Jorge Santos

I vaguely remember, there is a tool that guesses the partition table.
I've never had the need to use it, so I don't know exactly.

As a last resort, you can use
cfdisk -z
Which starts on an empty partition table.

Your problem sounds more like you've changed something in the settings for your disk.
I can imagine that something alike happens if you switch from head/sector/cylinder to 
LBA
or vice versa. I'd be surprised if the other OS is the reason.

Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: allowing remote x connections?

2002-11-06 Thread Michael Naumann
On Wednesday 06 November 2002 14:06, Bruno Boettcher wrote:
> i want to allow some local machines to send their displays to the
> desktop machine i know there's something to tweak with the server,
> but i don't know what

Is it 'xhost +' you are looking for?

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: encrypting a single file

2002-11-05 Thread Michael Naumann
On Tuesday 05 November 2002 04:40, bob parker wrote:
> On Tue, 5 Nov 2002 09:51, Michael Naumann wrote:
> > If you want unbreakable encryption, you must go for a program able to
> > handle a "One Time Pad" and you must only use each Pad once.
>
> No not really. Text encrypted with a one time pad decrypts to every
> possible text if and only if the encryption key is the same length as the
> protected text. IE if you encrypt with a short key it is not a one time pad
> but a many time pad.

Of course, you're right. I forgot to mention, that the pad
needs to be at least as long as the message.

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: encrypting a single file

2002-11-05 Thread Michael Naumann
On Tuesday 05 November 2002 01:33, Osamu Aoki wrote:
> On Mon, Nov 04, 2002 at 07:01:41PM -0500, Levi Waldron wrote:
> > On November 4, 2002 06:03 pm, Osamu Aoki wrote:
> > > Here is the script for VIM which automate GNUPG.
> >
> > Thank you for all the advice!  I went with the GPG in vim - since it's
> > easy as well, I figured I might as well use the strong encryption.
> >
> > That's cool that vim also has a built-in encryption feature.
>
> No... not quite.
>
> VIM does not have build-in encryption feature.  You need gnupg package
> to offer it.  Any editor with some smart scripting support shall be able to
> do this (emacs, of course.  I suppose mcedit in mc should be able to do
> this too.)

Well, VIM *has* buid-in encryption out of the box.
You do not need any other package installed. And as far as I can tell,
this is true for all platforms, vim runs on.

Start vim and read all about it with
:help -x
:help encryption

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: encrypting a single file

2002-11-04 Thread Michael Naumann
04.11.2002 22:57:08, Levi Waldron <[EMAIL PROTECTED]> wrote:

>Is there a simple way to encrypt a single text file on my system, so that it 
>can only be viewed if you know the password?  I want to securely store my 
>online username/passwords, bank card PINs, etc that I'm always forgetting.
>

Very easy

vim -x 
or, if you want a gui
gvim -x 
and if you do not know vi, you may want to use evim (e=easy)


BUT from the vim - help:

- The algorithm used is breakable.  A 4 character key in about one hour, a 6
  character key in one day (on a Pentium 133 PC).  This requires that you know
  some text that must appear in the file.  An expert can break it for any key.
  When the text has been decrypted, this also means that the key can be
  revealed, and other files encrypted with the same key can be decrypted.

BTW: pkzip uses the same encryption.

If you want unbreakable encryption, you must go for a program able to 
handle a "One Time Pad" and you must only use each Pad once.

But for the less paranoic, the vim-way may be appropriate.

Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: [OT] Pointer for data aquisition over serial port

2002-11-04 Thread Michael Naumann
On Monday 04 November 2002 16:31, Rob Weir wrote:
> On Mon, Nov 04, 2002 at 09:32:14AM +0100, Jörg Johannes wrote:
> > Hi List
> >
> > The subject says it (nearly) all: I have an old spectrophotometer which
> > has a serial port. According to the manual, it reads commands in
> > cleartext, and outputs its measured data in clear text as well. So what I
> > need is a software that allows me to send such commands to the serial
> > port, and read the results back over serial port into a file. Any
> > pointers (or ready programs :)) ?
>
> Couldn't you just pipe things in to and out of /dev/ttySn?

Or simply use minicom. It also lets you configure baudrate and alike.
IIRC, you have to set it up as root with 'minicom -s'

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Compiling a new kernel

2002-11-04 Thread Michael Naumann
On Monday 04 November 2002 14:12, Emanuele Boieri wrote:
> Hi everybody I hope that somenone can help me. I just followed precisely
> the instruction for compiling/installing a new kernel  (2.4.19). The
> previeous version was 2.2. 1.. tar xvjf "the kernel source"
>   2.. make menuconfig
>   3.. make dep
>   4.. make bzImage
>   5.. make modules
>   6.. make modules_install
> then I copied the new image in the boot location of the old one
> /boot/bzImage.(I saved the old one). So I edit the lilo.conf and I
> specified where to load the new image. After rebooting (everything seemed
> to go fine) I launched the "kernelversion" command but the answer was
> 2.2!!! What happened?? I want to precise that I've been using for one month
> and that I'm a very new user!
>
> Thanks in advance to everyone with a good solution
> Emanuele

Since you did not mention it: Did you also run lilo ?

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Thread Stealing (was: Installing debian via network)

2002-11-03 Thread Michael Naumann
03.11.2002 18:59:51, [EMAIL PROTECTED] (Bob Proulx) wrote:
> Michael Naumann <[EMAIL PROTECTED]> [2002-11-03 16:19:09 +0100]:
> > 03.11.2002 04:29:40, Rob Weir <[EMAIL PROTECTED]> wrote:
> > > [Please start a new thread for a new question, it makes it much easier
> > > for people to follow the list and makes it more likely that you'll get
> > > an answer.]
> >
> > I'm not sure I understand what you want to say with this.
> > Didn't I start a new thread.? Or was there already an equal named thread ?
> > I'm quiet new to this list, so maybe I didn't get it.
> 
> This is not an uncommon confusion.  Can I have your ear for a moment?

Sure you can.

> Please let me explain.
> 
> You message can be reviewed in the archive:
> 
>   http://lists.debian.org/debian-user/2002/debian-user-200210/msg06497.html
> 
> There you can see that you generated that message as a reply.
> 
>   In-reply-to: <[EMAIL PROTECTED]>
>   References: <20021031024723.HJCG14348.tomts22-srv.bellnexxia.net@there> 
><[EMAIL PROTECTED]>
> 
> You replied to a message "Re: blank LCD monitor".  Your message
> referenced both it and the previous message in that thread.  In the
> archive the references are also links.  If you click there you will go
> to the referenced message.  But that is not all that being threaded
> does for you.

Oh, I see.
This was not done on purpose. I just picked a random message  to have
the 'TO:' - Field filled. I was not aware of the confusion that can arise.
Shrugg..., how many times in the past did I do the same mistake ... ?

> 
> Let's look at it from the threaded view.
> 
>   http://lists.debian.org/debian-user/2002/debian-user-200210/thrd13.html#06491
> 
> You message is threaded by virtue of being a reply in the thread of
> discussion about "blank LCD monitor".  This is in the list archive.
> But most mailers will show it the same way.  Your message will be
> displayed as being part of the thread and the thread will be
> manipulated in one action.  When I kill a thread in a mail reader it
> kills the entire thread, your message as well, all at one time.

So I probably unintentionally kicked myself in the ass.

> 
> A little confusing in the archive, but not in mailers, is that the
> archive splits over months and so the next month contains Rob's reply
> and there is no archive threading across months.  But mailers will
> display it since all of the messages are in a mailbox until you delete
> them.  Normally in a mail reader the entire thread would be shown.
> 
> Therefore you did not start a new thread.  You replied to a previous
> one and only changed the subject.  Changing the subject does not start
> a new thread.  It just changes the subject.  Threads are maintained by
> the "References:" headers.

Now I know. I'll take care of this in the future.

> 
> If you want to start a new thread then you need to either 1) start a
> new message and send it to the list, which is the preferred method.
> Or 2) be sure to change the subject, delete the In-Reply-To: header,
> delete the References: header.  The first option certainly seems
> easier then doing the second option.

I think, I'll stick to method 1)

> 
> In general what you did by replying to an existing thread is called
> "thread stealing".  That is considered a rudeness.  It is like barging
> into conversation between other people in the middle, interrupting
> them, and then shooting off in a completely different direction.
> Right there in the middle of a discussion is this other person trying
> to start something up!  How rude!  You can see how that could be
> viewed that way.

Please everybody, take my apologies.

> 
> Is it always rude to thread steal by changing the subject?  No, and
> many times changing the subject is the right thing to do.  To be
> specific just changing the subject is not the same as thread stealing.
> When thread drift occurs this is frequently appropriate.  A discussion
> of one thing mutates into a discussion of something else but perhaps
> not of interest to the original thread.  Therefore the author will
> change the subject to show this.  This is not really thread stealing
> because the flow was directly connected to the original thread.  It is
> just the drift of discussion.
> 
> A real example from not too long ago was a thread titled "Make Debian
> better" which drifted into a discussion about broken home and end
> keys.  csj correctly kept the same thread but politely changed the
> subject to "Home and end keys (was Re: Make Debian better)" so that we
> reading the discussion could see exactly how the discussion

Re: Installing debian via network

2002-11-03 Thread Michael Naumann
03.11.2002 17:16:13, "Donald R. Spoon" <[EMAIL PROTECTED]> wrote:
>> -SNIP- <
>
>The "fastest" way, IMHO, is to use the Debian CDs on the SuSE computer 
>and do a "clean' install.  This will over-write your current SuSE install.
>
>If you have some files on your SuSE box that you might want to preserve, 
>you might want to look at section 3.7 in the Debian "Installation 
>Manual" (http://www.debian.org/releases/stable/i386/install for the i386 
>arch.) since this section was written specifically for your situation. 
>I have not tried that procedure here, so YMMV...
>
>I personally like the "network install".  It is just about as fast or 
>faster if you have a broadband connection and also if you include the 
>time to d/l the CD iso images and burn them into the comparison.  Since 
>you might already have the Debian CDs, then using them would be faster 
>since the data transfer speeds on a moderatly well-configured modern 
>computer is faster than the network can supply.  Also, you don't have to 
>worry about bad downloads.  Again, depending on your setup, YMMV.  Doing 
>a network install for the SuSE box would require you to set up your 
>current Debian box as a "gateway" to the Internet I suspect... plus grab 
>the "rescue" and "root" boot-floppies you want for your SuSE computer.
>
>Others have given you some other options to look at, but I am not 
>familiar with them, so I can't comment.  The above comments are just 
>pointing out some other options you might not be aware of...
>

Thanx, Don, for the pointer.

As I'm not in a hurry with converting, I'll thoroughly browse the reference
you've given.

>Cheers & Good Luck!
>-Don Spoon-

Cheers, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Installing debian via network

2002-11-03 Thread Michael Naumann
03.11.2002 04:29:40, Rob Weir <[EMAIL PROTECTED]> wrote:

First I want to thank for the answer.

> [Please start a new thread for a new question, it makes it much easier
> for people to follow the list and makes it more likely that you'll get
> an answer.]

I'm not sure I understand what you want to say with this.
Didn't I start a new thread.? Or was there already an equal named thread ?
I'm quiet new to this list, so maybe I didn't get it.

> 
> On Thu, Oct 31, 2002 at 11:10:58AM +0100, Michael Naumann wrote:
> > Now I have a second Box, currently running SuSe.
> > This box is connected via ethernet to the woody box.
> > What I want to do is to install debian on this box.
> > I don't mind if I loose everything currently on this box.
> >
> > My question:
> > What would be the preferred (and fastest) way to make
> > use of the woody box, the currently running os and
> > the running network to get the system switched to debian?
> 
> I'm fairly sure that each CD is directly apt'able, so you could just
> mount each of the images on your 'server' machine inside the document
> root for your webserver (or ftp server if you prefer), then point apt on
> the client machine at each mounted image (that means 7 entries in your
> sources.list).
> 
> If you're willing to put in a bit more effort you could use something
> like apt-proxy or apt-ftparchive to take all the packages and put them
> into a proper Debian repsoitory.

I'm definitely willing to put as much effort in this process as is needed.
I'm fairly familiar with all kind of Unixes, esp. Linux.
But debian is really new to me. Only some weeks ago I set up my first box
with it. I love it. I know, I'm going to switch all my boxes (home and office)
to debian as time comes.
And my dream is, I can do this without ever again inserting a cd or floppy.
Well, I know this is hard stuff, even if I already have Linux on the target-box.
And, of course, this is absolutely no must.

I now have two items I can begin to dig (apt-proxy and apt-ftparchive).
Pitty, the man-pages are not very enlightning (on this point).
Where would I best begin to start reading.

> 
> -rob

Thnx again, Michael




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Installing debian via network

2002-10-31 Thread Michael Naumann
I'm in the following situation:
I have a fully functional woody installation.
On a separate partition I have all the seven cd's
and everything is set up, so that I can use dselect
without any need to insert any cd.
So far so good.

Now I have a second Box, currently running SuSe.
This box is connected via ethernet to the woody box.
What I want to do is to install debian on this box.
I don't mind if I loose everything currently on this box.

My question:
What would be the preferred (and fastest) way to make
use of the woody box, the currently running os and
the running network to get the system switched to debian?

-- Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Q: Debian, fvwm, virtual desktops and howto place specific programs at startup

2002-10-29 Thread Michael Naumann
On Tuesday 29 October 2002 16:51, Lukas Ruf wrote:
> Dear all,
>
> I make use of fvwm on Debian unstable and start fvwm with startx.  I
> have seveal virtual desktops.  On some, the first thing I do after
> starting fvwm is placing the same programs every time, e.g. jpilot on
> the first virtual desktop.
>
> My question:  Is there a way to specify for startup of fvwm where to
> place which programs, i.e. can I automate the launching of jpilot on
> the first virtual desktop?

Yes, fvwm is highly configurable.
If you have something like
Style   "jpilot"StartsOnPage 1 0
in your ~/.fvwm2rc, then anytime and no matter how you start Jpilot,
it will be put in the appropriate Page.

Also, if you have something like
  AddToFunc InitFunctionI   Exec jpilot
jpilot will be started automatically when fvwm starts.

Note however, that this applies to fvwm2, which is now called fvwm.
The old fvwm is now called fvwm1 and afaik cannot do this.

>
> Thanks for any enlightment,
> Lukas

You're welcome, Michael


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]