Linux-Misc Digest #780, Volume #25               Sat, 16 Sep 00 22:13:02 EDT

Contents:
  Re: ftp files on the command line? (John Hasler)
  Re: broken finger utility ("Ruehl Christopher")
  Re: msdos fdisk does not see linux swap partition (Dances With Crows)
  Re: Swapfile problem (Dances With Crows)
  Re: Newer versions of CDRECORD no longer work... (Dances With Crows)
  Re: XFree86 vs Windows (Steven Thurgood)
  Re: exit status from pppd / chat (The Ghost In The Machine)
  Re: umounting depending on login (Juergen Heinzl)
  Re: gnome or kde? (Garry Knight)
  Re: SiS video cards (bullwinkle)
  Re: umounting depending on login (mike)
  Re: XFree86 vs Windows ("Taavo Raykoff")
  Re: ext2 file size limit? (Alexander Viro)
  Re: SCSI tape drive problem w/ RH 6.1 (-ljl-)
  Re: vi (Thomas Dickey)
  Re: End-User Alternative to Windows (Hartmann Schaffer)

----------------------------------------------------------------------------

From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: ftp files on the command line?
Date: Sat, 16 Sep 2000 20:42:36 GMT

Davis writes:
> I don't think we can try "ftp ftp.server.domain/pub/file". It did not
> work.

man ncftpget
-- 
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI

------------------------------

From: "Ruehl Christopher" <[EMAIL PROTECTED]>
Subject: Re: broken finger utility
Date: Sun, 17 Sep 2000 00:44:07 +0100
Crossposted-To: linux.redhat,comp.os.linux.x

hey there,
this seems to me there is a program bug or a library confict in your systems
..
seg. fault means, the program use a memory region that isn't reserved for the
program. try to update 'finger'.

y can check the used version of libraries -- just type:  ldd [path_to_finger]/finger 
and y see what kind of libraries are used by the program.

... regards  chris



Im Artikel
<[EMAIL PROTECTED]> schrieb
"e l l e :)" <[EMAIL PROTECTED]>:
> 
> i can 'finger' but i can not 'finger user' without the -m option. with
> the -m option, i can obtain some information.  i get
> 'segmentation fault' from running 'finger user'.  i thought this
> was a memory problem, but running top, and then emliminating some of the
> huge processes produced no change.  does X, being a huge cpu/ memory
> process, have anything to do with this problem?  is finger  seriously
> broken?  and if so, can this be fixed?  thanks for any input.
> 
> 
> -elle
> 
> 


------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Crossposted-To: be.comp.os.linux,linux.debian.user
Subject: Re: msdos fdisk does not see linux swap partition
Date: 16 Sep 2000 22:45:29 GMT
Reply-To: [EMAIL PROTECTED]

On Sat, 16 Sep 2000 14:06:24 +0000, Gerard H. Pille wrote:
>Don't tell me I'm posting to the wrong newsgroup.   Here at least, I
>stand a chance of getting an answer.
>
>I had three normal partitions on my drive, NT, Linux, W98, and an
>extended partition for Linux Swap.
>I went into W98 to add an extra partition for it.  Fdisk (and foolish
>me) did not notice the linux swap, and would only allow a 1.9Gb of the
>13Gb that were available.  I created the partition, killing the Linux
>Swap.  Well, I remade the swap space, and Linux is running happily on
>
>W98 however, is not that happy.  When booting, it assigns all available
>drive letters, C & D are ok, but E=C and F=D,  and G=C and H=D, ... up
>to Y=C and Z=D.  This disables the use of the CDROM, so I can't
>reinstall.  W98 gives a warning: logical drives past Z exist and will be
>ignored.

What does "fdisk -l /dev/hda" say?  WinXX is a bit silly when it comes
to dealing with partitions sometimes; in particular, it can do that
drive letter thing if your partitions are set up like so:

/dev/hda1             1       430   3453943+   c  Win95 FAT32 (LBA)
/dev/hda2   *       431       437     56227+  83  Linux
/dev/hda3           438      1027   4558273    c  Win95 FAT32 (LBA)

instead of like so:

/dev/hda1             1       430   3453943+   c  Win95 FAT32 (LBA)
/dev/hda2   *       431       437     56227+  83  Linux
/dev/hda3           438      1027   4558273    5  Extended
/dev/hda5           438      1027   4558273    c  Win95 FAT32 (LBA)

WinXX cannot seem to deal well with 2 or more FAT partitions that are
primary (hda1-hda4) and requires all but 1 FAT partition to be logical
(that is, hda5-up.)  You may be able to fix the problem with Linux
fdisk; DOS FDISK is pretty brain-damaged when dealing with non-DOS
partitions.

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Those who do not understand Unix are
http://www.brainbench.com     /   condemned to reinvent it, poorly.
=============================/           ==Henry Spencer

------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Swapfile problem
Date: 16 Sep 2000 22:45:31 GMT
Reply-To: [EMAIL PROTECTED]

On 16 Sep 2000 10:07:14 GMT, Fung Wai Keung wrote:
>I increased my swap size by creating tempoarary swapfile according to the
>man page of mkswap.  However, I forgot to disable the temp swapfile before
>reboot the system.  After reboot, the temp swapfile disappear in ls
>directory but it still allocate disk space (as shown in df).  How can I
>release the unused disk space?

The file should still be where you left it... I assume you did something
like this:

# dd if=/dev/zero of=/swapfile bs=1024 count=65536     (64M swap)
# sync
# mkswap /swapfile
# swapon /swapfile

...so the file should just be in /swapfile and you should be able to
just rm it.  If you called the swapfile something like "/.swapfile" then
it naturally won't show up in a normal ls command ("ls -a" will show all
files)  What does "swapon -s" show?

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Those who do not understand Unix are
http://www.brainbench.com     /   condemned to reinvent it, poorly.
=============================/           ==Henry Spencer

------------------------------

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Newer versions of CDRECORD no longer work...
Date: 16 Sep 2000 22:45:32 GMT
Reply-To: [EMAIL PROTECTED]

On Fri, 15 Sep 2000 20:34:27 -0700, MH wrote:
>I used CDRECORD once some 6 months ago to burn a CD and it worked
>perfectly.  Since then, I've reinstalled my system a number of times and
>managed to lose the original RPM.  I downloaded and installed two
>different, but recent versions, but get an error for some unknown
>reason. Input/output following:
>
># cdrecord -v speed=4 dev=6,0 redhat-6.2-i386.iso
>
>Cdrecord release 1.6.1 Copyright (C) 1995-1998 J�rg Schilling
>TOC Type: 1 = CD-ROM
>scsidev: '6,0'
>scsibus: 0 target: 6 lun: 0
>cdrecord: No such file or directory. Cannot open '/dev/pg6'.
>
>I got the same error with version 1.9.1(?)  Anyway, what is "/dev/pg6"
>and why is it trying to access this device?  Why am I getting "No such
>file..." when the file DOES exist?

Is cdrecord SUID root?  ( # chmod 4755 `which cdrecord` )
Which device are you trying to access?  ( cdrecord -scanbus will tell
you a lot about the available SCSI or IDE-SCSI devices attached )
Are you sure you want dev=6,0?  The preferred syntax is something like
dev=0,6,0 meaning "SCSI controller 0, device 6, LUN 0".  If you have 2
SCSI controllers (or 2 virtual SCSI controllers, like the virtual SCSI
system designed for parport ZIP drives and the virtual SCSI system
designed for IDE-SCSI devices) then you may need to use dev=1,6,0.
Check the output of cdrecord -scanbus --it will tell you where all the
SCSI devices are....

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /  Those who do not understand Unix are
http://www.brainbench.com     /   condemned to reinvent it, poorly.
=============================/           ==Henry Spencer

------------------------------

From: [EMAIL PROTECTED] (Steven Thurgood)
Crossposted-To: comp.os.linux.development.apps
Subject: Re: XFree86 vs Windows
Date: Sun, 17 Sep 2000 00:17:00 +0100

In article <8o58ke$s80$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...

> I'll try to explain what I mean.
> Consider a graphics heavy app like say Star Office. Opening the app
> takes up a lot of time and after it comes up , the motion of the app (
> suppose I want to move the window or use the side bar to navigate) is
> very jerky.
> Consider even Netscape , if we use the sidebar to move up and down , we
> see that the image changes in jerky. But in Windows ( though I hate to
> admit it) the motion is perfect. Also any applications , take for
> instance the Office suite, works perfectly , starts up fast etc.
> Now the Linux kernel is superior to the Windows kernel , yet there is  a
> problem with the graphics. Where is the problem????

I've noticed something similar to this in that my X doesn't seem to 
buffer (if that's the irght word) the open apps, so that if an app is 
behaving slowly, and I drag something else over it, I see trails of the 
moving app where the underneath app hasn't redrawm itself. I've heard 
that there's an option somewhere to make X remeber what was there, and 
redraw it without the app in question getting involved, but I've no idea 
what it is..
Is this true?

Cheers

-Steve

------------------------------

From: [EMAIL PROTECTED] (The Ghost In The Machine)
Subject: Re: exit status from pppd / chat
Date: Sat, 16 Sep 2000 23:34:07 GMT

In comp.os.linux.misc, mangru
<[EMAIL PROTECTED]>
 wrote
on Sat, 16 Sep 2000 14:55:15 GMT
<8q01kd$r43$[EMAIL PROTECTED]>:
>Hi,
>
>Can anyone tell me, how to get the exit status (return code) from a
>pppd.
>I have the following shellscript
>
>/usr/sbin/pppd /dev/ircomm0 57600 connect "/usr/sbin/chat -f chatscript"
>
>Everything works fine, but pppd does not stop and I have no idea how to
>get exit codes from chat.

pppd is not supposed to stop; it's supposed to run as a daemon
in the background as long as the line remains up.  Presumably,
it only does this if the chat script was in fact successful.

One easy way of getting the status code is to look at the variable
'$?', if you're using sh or bash; this is the value of the status code
from wait(2) ('man 2 wait') and should return 0 on success,
non-zero if there was a problem.  Bear in mind that one has to
fetch this variable pretty much immediately after running pppd;
an intervening command will reset $?.  (An easy way to do this
is to save it in another variable, e.g.:  retstatus=$? .)

My manpage on pppd doesn't indicate what the returned values are, however.
(I'm using RedHat 6.0.)

Note that this is the return code from the parent pppd process,
which is the one exiting; the child pppd process will continue
running, and the chat process has already been waited for by the
parent pppd process, presumably; its return code is probably buried
deep within the parent pppd. :-)

If you're using tcsh (some people do), you'll want $status.
This is one of the csh/tcsh specials, not unlike $path.

[.sigsnip]

-- 
[EMAIL PROTECTED] -- insert random misquote here

------------------------------

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: umounting depending on login
Date: 16 Sep 2000 23:39:25 GMT

In article <[EMAIL PROTECTED]>, Robert Heller wrote:
>  mike <[EMAIL PROTECTED]>,
>  In a message on Sat, 16 Sep 2000 01:20:57 GMT, wrote :
>
>m> I have a couple people (besides myself) which log onto my machine.  By
>m> default all disks are mounted when the machine is booted up.  I'd like to
>m> fix it so that when these other two log in some of the disks are umounted.
>m> How can I do that automatically?
>
>Why do you want to *un mount* disks when someone logs in?
[-]

Why not ? You can do that BTW - presuming the default shell for
all is bash - use /etc/profile to evaluate $LOGNAME and sudo or
a suid root binary to run umount. Mind that is a rather primitve
method and using a daemon to watch /var/run/utmp may be an idea
too.

Minor note - people may notice there is something to hide or
umount may fail if the fs in question is being busy.
[-]

Cheers,
Juergen


-- 
\ Real name     : J�rgen Heinzl         \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

------------------------------

From: Garry Knight <[EMAIL PROTECTED]>
Subject: Re: gnome or kde?
Date: Sun, 17 Sep 2000 00:10:32 +0100

On Sat, 16 Sep 2000, Patton Echols wrote:

> If I understand correctly, the Gnome/KDE
>programs will run if the correct libraries are installed, regardless of
>the window manager.  (QUERY: will they run without ANY window manager?) 

No. Gnome and KDE-compliant programs run in windows so they need a window
manager present.

>If I want the programs to interact with the window manager, then the
>manager must be Gnome aware, or KDE aware, or both.

KDE comes with its own window manager, kwm, although you can use it with some
degree of success with other window managers. If the window manager isn't
Gnome or KDE aware then you're likely to lose some functionality depending on
the window manager.

--
Garry Knight
[EMAIL PROTECTED]


------------------------------

From: bullwinkle <[EMAIL PROTECTED]>
Subject: Re: SiS video cards
Date: Sun, 17 Sep 2000 00:28:30 GMT


fernando wrote:
> 
> 
> Hello there
> 
> I just installed some PCs and they have SiS video adapters.   These
> adapters are in built with the board.   I have 3 different SiS chips
> (different models) and with all of them I have the following problem:  
> Everything work well except xterm.   When I run an xterm it does not use
> the colors I have defined and it is impossible to see anything inside
> the xterm.   I already changed the colors in xterm, the parameters for X
> (including resolution, bpp, depth, acceleration and some strange
> parameters I saw in the XF86Config.   I already tried KDE and Gnome and
> later I saw the problem is with X itself because it also happens running
> an xinit.   I already tried with some xterm replacements applications
> but it is the same.
> 
> Any idea ?
> 
> 
> -- 
> ---------
> Real e-mail: sanabriaf at yahoo dot com
> These are my personal opinions

See http://www.xfree86.org/3.3.6/SiS.html for information on SiS chipsets.

--
Posted via CNET Help.com
http://www.help.com/

------------------------------

Subject: Re: umounting depending on login
From: mike <[EMAIL PROTECTED]>
Date: Sun, 17 Sep 2000 00:43:08 GMT


Nostradamus foresaw that on Sat Sep 16 2000, Jean-David Beyer-valinux would write:

> mike wrote:
> 
> > I have a couple people (besides myself) which log onto my machine.  By
> > default all disks are mounted when the machine is booted up.  I'd like to
> > fix it so that when these other two log in some of the disks are umounted.
> >
> > How can I do that automatically?
> >
> Are you sure you are not doing something wrong? It is not that you could not
> figure out how to do this, but if you wish to deny access to some files or
> file systems, would not the way be to do it with file permissions? What if
> you are logged in and want those partitions mounted, and someone else is also
> logged in for whom you want the partitions unmounted? Linux, unlike some
> other operating systems, is not a single-user operating system.
> 
> > --
> >  .~.   Jean-David Beyer           Registered Linux User 85642.
> >  /V\                              Registered Machine    73926.
> > /( )\  Shrewsbury, New Jersey
> > ^^-^^  7:06am up 38 days, 14:33, 2 users, load average: 2.09, 2.19, 2.17
> >
> 

I also use the machine as non-root but the machine is used one person at a
time.  These are a couple of disks with code and the like that I don't
want someone else messing with (accidentally or on purpose).  If I change
the permissions (being something of a neophyte using groups, etc.) then
the disks are not accessible to me either as non-root.

My thinking is that it would be easier if there was a way to umount the
disks if someone other than myself logs in.  I've set up sudo for myself
but have never investigated if there was a way to get sudo to work from
scripts (out of the box it complains that sudo requires a terminal).

Thanks...

Mike
-- 



========================
hardymi@[EMAIL PROTECTED]

Auntie Em: Hate you, hate Kansas; took the dog - Dorothy

------------------------------

From: "Taavo Raykoff" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.apps
Subject: Re: XFree86 vs Windows
Date: Sat, 16 Sep 2000 20:56:16 -0400

Could be that your X driver, for whatever reason, is not using the
acceleration features that your card supports under the Win driver.  Why
don't you post to one of the XFree86 newsgroups, and give info on your CPU /
memory / card / driver version.

T.


"Steven Thurgood" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> In article <8o58ke$s80$[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
>
> > I'll try to explain what I mean.
> > Consider a graphics heavy app like say Star Office. Opening the app
> > takes up a lot of time and after it comes up , the motion of the app (
> > suppose I want to move the window or use the side bar to navigate) is
> > very jerky.
> > Consider even Netscape , if we use the sidebar to move up and down , we
> > see that the image changes in jerky. But in Windows ( though I hate to
> > admit it) the motion is perfect. Also any applications , take for
> > instance the Office suite, works perfectly , starts up fast etc.
> > Now the Linux kernel is superior to the Windows kernel , yet there is  a
> > problem with the graphics. Where is the problem????
>
> I've noticed something similar to this in that my X doesn't seem to
> buffer (if that's the irght word) the open apps, so that if an app is
> behaving slowly, and I drag something else over it, I see trails of the
> moving app where the underneath app hasn't redrawm itself. I've heard
> that there's an option somewhere to make X remeber what was there, and
> redraw it without the app in question getting involved, but I've no idea
> what it is..
> Is this true?
>
> Cheers
>
> -Steve



------------------------------

From: [EMAIL PROTECTED] (Alexander Viro)
Crossposted-To: comp.os.linux.development.system
Subject: Re: ext2 file size limit?
Date: 16 Sep 2000 21:04:11 -0400

In article <[EMAIL PROTECTED]>,
Christopher Browne <[EMAIL PROTECTED]> wrote:
>ext2fs has a file size limit of _2TB,_ I'm sorry, but the limit that
>is being hit is _not_ a filesystem limit, but rather a limitation in
>the interface between VFS and GLIBC on 32 bit platforms.

Yaaaaargh... OK, it seems to become a FAQ

Q: is it true that ext2 has 2Gb limit on file size?
A: BS

Q: so how comes that I can't create files larger than that?
A: because VM in Linux 2.2 and earlier can't cope with files larger than
2.2 on 32-bit architectures. Regardless of filesystem.

Q: will reiserfs help?
A: what part of "regardless of filesystem" is too hard to understand?

Q: OK, so what can I do, I'm stuck with 32-bit box?
A: use 2.4 _or_ 2.2 with LFS patches _or_ FreeBSD. All of them will handle
more than 2Gb on ext2.

Q: I've done that, and half of utilities doesn't work
A: That was a question?

Q: OK, _why_?
A: because if libc thinks that offsets are 32 bit it's not going to pass
anything larger to the kernel

Q: what should I do?
A: get sufficiently recent libc. And learn to use search engines, already -
all that stuff had been beaten to death _many_ times.

Q: why...
A: excuse me, what was your username, again?

Q: ... are you so... Hey, what's up with this NIC? It's sparAAAAAASSSHHH<thud>

-- 
Live phase 1    <-->    RJ45 pin 3      Neutral <-->    RJ45 pin 1
Live phase 2    <-->    RJ45 pin 6      GND     <-->    RJ45 pin 8
Live phase 3    <-->    RJ45 pin 2

------------------------------

From: -ljl- <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: SCSI tape drive problem w/ RH 6.1
Date: Sun, 17 Sep 2000 01:34:35 GMT

In article <[EMAIL PROTECTED]>,
  [EMAIL PROTECTED] (David C.) wrote:
> Harshal <[EMAIL PROTECTED]> writes:
> >
> > I installed an Adaptec 2940U2W card in a Red Hat 6.1 system and
> > attached a Quantum DLT drive to it. On bootup, SCSI card BIOS
detected
> > the drive fine but none of the backup commands worked. I always get
> > erorrs saying no such device at /dev/st0. /var/log/dmesg has nothing
> > to say about the Adaptec card. Does this mean that the system can't
> > see the card as well as the attached drive?
>
> This means that the card's device drivers have not loaded.
>
> > The card does not come with drivers for Linux but I was told that
'RH
> > 6.1 knows about the card'.
> >
> > Do I have to install any driver for the tape drive to work properly.
>
> Yes.  Add this line to /etc/conf.modules:
>
>         alias scsi_hostadapter aic7xxx
>
> and reboot.
>
> Be sure to regenerate your boot floppy (via mkbootdisk) afterwards, so
> it will be able to access any SCSI devices.
>
> If you plan on booting from a SCSI hard drive, be sure to also
generate
> an initrd file (via mkinitrd) after doing this, so that your ramdisk
> will have the SCSI driver in it - then update LILO before rebooting.
> (If you don't require any files on any SCSI drives at boot time, then
> this last step is optional.)

Also, you will need 'st' (SCSI Tape) support compiled in or as a module.
I suspect that you have "st.o" and it should be loaded automagically.

--
Louis-ljl-{ Louis J. LaBash, Jr. }


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: Thomas Dickey <[EMAIL PROTECTED]>
Subject: Re: vi
Date: 17 Sep 2000 01:58:51 GMT

L S <[EMAIL PROTECTED]> wrote:
> Hi,
>         Can someone tell me how to stop vi from restoring me screen
> when I exit vi?  This behavior is not how unix vi works and it drives
> me nuts (short trip).  Must be the same guy that demands you use
> "--help" instead of the traditional "-?".

that's xterm, not vi.

xterm implements an alternate-screen, which is activated in the
terminal initialization sequence (ti/te or smcup/rmcup, for termcap
and terminfo respectively).

-- 
Thomas E. Dickey <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com

------------------------------

From: [EMAIL PROTECTED] (Hartmann Schaffer)
Crossposted-To: alt.os.linux,comp.os.linux.advocacy
Subject: Re: End-User Alternative to Windows
Date: 16 Sep 2000 19:46:21 -0400

In article <[EMAIL PROTECTED]>,
 <[EMAIL PROTECTED]> wrote:
>
>Apple was (and is) available the entire time, regardless of lesser
>known (to the general public) alternatives.
>
>And the reason that most stores carried primarily MS based systems 
>is because that's where the demand was.  Sure, they could have
>carried Amiga's and such instead, but the demand wasn't there.

many people who needed a computer needed a pc (to be compatible with
the machine at work etc).  i was talking about alternate software for
pcs.  even in the dos / windows world there are numerous examples of
software that was superior to ms offerings that simply fell into
disuse because due to ms pricing practices it was more profitable for
software sellers to package the ms product.  the end user never had a
choice, esp if s/he was a first time buyer who had to rely on the
seller's advice

hs

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to