Linux-Misc Digest #673, Volume #26 Sun, 31 Dec 00 17:13:01 EST
Contents:
Re: Upgrading hard-drive (E J)
Re: Compiling ghostscript ("Peter T. Breuer")
Re: Upgrading hard-drive ("Peter T. Breuer")
Yahoo Messenger for Linux now gives a segmentation fault (E J)
Re: OT: It's 2001 & M$ refuses to 'see' Linux partitions (Michael Heiming)
Re: php + apache on redhat problem ("Londonboy")
Re: HP Laserjet weirdness (webqueen, queen of the web)
Re: How to make linux "sleep"? (Bryan Hoyt)
Won't read cdrom (Tim Seifert)
Please help using XAnim ,... (Arctic Storm)
lilo-- behaviour without an hda drive (Bill Unruh)
Re: OT: It's 2001 & M$ refuses to 'see' Linux partitions (Bill Unruh)
Re: Weird LILO problem (Bill Unruh)
Re: Upgrading hard-drive (Bill Unruh)
Re: Upgrading hard-drive (Robert Jones)
help burning CD ("Peter C. Giardina, Ph.D.")
Re: How to get CPU usage (Warren Bell)
----------------------------------------------------------------------------
From: E J <[EMAIL PROTECTED]>
Subject: Re: Upgrading hard-drive
Date: Sun, 31 Dec 2000 19:13:24 GMT
Who parted? :)
I used to use "cp -a" to transfer all the directory from the old to the
new hard disk.
The next time I would used parted. You can get parted from www.gnu.org.
Here is the man page.
parted(8) parted(8)
NAME
GNU Parted - a partition manipulation program
SYNOPSIS
parted [options] [device [command [options]]]
DESCRIPTION
This manual page documents briefly the parted command. Complete
documenta�
tion is distributed with the package.
parted is a disk partitioning and partition resizing program. It
allows you
to create, destroy, resize, move and copy ext2, FAT and FAT32
partitions.
This is useful for creating space for new operating systems,
reorganising
disk usage, and copying data to new hard disks.
Can you post/email your results if you use parted, because I am going to
use it on my next computer?
"[EMAIL PROTECTED]" wrote:
> I'm running out of space on my hard-drive. I was thinking of adding
> another drive and then transferring my existing GNU/Linux partition to
> it (I don't want to lose my existing data and configuration files).
> How do I do that?
>
> You can simply refer me to a HOWTO or similar document if it exists.
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Compiling ghostscript
Date: Sun, 31 Dec 2000 19:52:22 +0100
In comp.os.linux.misc Richard Kimber <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how to compile ghostscript on my pentium pro, gcc
> 2.95.3, Mandrake 7.2?
get sources, configure, make, install.
> After a mass of warnings, I get an error:
> /usr/bin/ld: cannot find -lXt
You don't have libXt. Fatal .. you really need X libraries! Or were
you planning on running ghostscript as a file/file filter, not as
a display engine? If so, go back and reconfigure your compilation.
> With gcc version 2.6.3 or later, you may encounter an incompatibility in
> object formats (a.out vs. ELF) with the XFree86 library. Typically, ld
Yeah, so don't. Gcc 2.6.3 was an intermediate version in use about 6
years ago. Nobody has seen it for that long. 2.9.5 is vaguely current.
Peter
------------------------------
From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Subject: Re: Upgrading hard-drive
Date: Sun, 31 Dec 2000 19:53:04 +0100
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm running out of space on my hard-drive. I was thinking of adding
> another drive and then transferring my existing GNU/Linux partition to
> it (I don't want to lose my existing data and configuration files).
> How do I do that?
> You can simply refer me to a HOWTO or similar document if it exists.
Read the Partition-HOWTO.
Peter
------------------------------
From: E J <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,linux.redhat.misc
Subject: Yahoo Messenger for Linux now gives a segmentation fault
Date: Sun, 31 Dec 2000 19:22:29 GMT
After months of faithful service, Yahoo Messenger now gives a
segmentation fault.
I removed all the yahoo messenger files and downloaded and reinstall
yahoo messenger.
When I input my yahoo id and password, Yahoo Messanger would come up
briefly with my
buddy list and their status and give a segmentation fault.
------------------------------
Date: Sun, 31 Dec 2000 20:22:30 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: OT: It's 2001 & M$ refuses to 'see' Linux partitions
Andrew Purugganan wrote:
> What's wrong with this picture?
>
> COREL Linux canshow me the windows partitions, and I'm even able to move
> or copy a file from my Windows C: dir into Linux in D: I get all my
> d/loads this way using my Win98SE free internet access.
>
> Now it's the year 2001 and there are lots of dual-boot PCs now. Why
> doesn't microsoft let Windows Explorer 'see' into my Linux partitions?
> Does it have somethig to do with the architecture of Windows, or is it
> just plain stubborn refusal to acknowledge the non-Redmond OS?
>
> --
> jazz
> Registered linux user no. 164098 +--+--+--+ Litestep user no. 386
> Doesn't it bother you, that we have to search for intelligent life
> --- OUT THERE??
Hello,
why should M$, more people would perhaps dual boot and some, like me, would
find out one day,
that they don't need this M$ crap on their system and could better create
ext2 on this free hd and mount
it....:-)
That would be one lost customer for M$ and not a few times, a very advanced
M$ user, who was
bored of those shitloads of booting and fideling around in this registry,
and this getting in "the .dll hell".
AFAIK there is a program explor(e)2fs if I remember the name right, for WIN
32 available.
You can read ext2 from Windows with it, I think write support was beta but
it's long time since I used it.
Good luck
Michael Heiming
------------------------------
From: "Londonboy" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.redhat,comp.os.linux.development,linux.redhat.misc
Subject: Re: php + apache on redhat problem
Date: Sun, 31 Dec 2000 19:39:13 GMT
Hi Derek,
Awesome!!! YOU ARE MY LIFESAVER!!!!!!!! THANKS A LOT. That makes my life so
much easier...
N.B.
"Derek Colley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Londonboy wrote:
>
> > I am running RedHat 7, and I installed the PHP 4.0.3 (rpm) but it seems
do
> > not come with the modules for Apache (I am running 1.3.16)? I only have
the
> > command line version I assume.
> >
> > Anyone know where can I download the PHP modules for Apache on RedHat? I
> > don't want to compile the source code. Anyone help? thanks a lot.
> >
> > NB
>
> You DON'T need to recompile Apache!
>
> You can get mod_php-4.0.3pl1-1.i386.rpm from http://www.rpmfind.net or use
the
> 'Web Find' in gnorpm to get it for you.
> Once you have installed this, amend your httpd.conf file as follows:
>
> <IfDefine HAVE_PHP4>
> LoadModule php4_module modules/libphp4.so
> </IfDefine>
>
> Change this to:
>
> #<IfDefine HAVE_PHP4>
> LoadModule php4_module modules/libphp4.so
> #</IfDefine>
>
> Restart httpd ... and the .php files get parsed by php - woo hoo!
>
> Test it with the following scrip in <wwwroot>:
>
> <---start of script
>
> <HTML>
> <HEADER>
> <TITLE> Test PHP script </TITLE>
> </HEADER>
> <BODY>
> <p> this is not php! </p>
> <?php
> echo "<p> this is php! </p> \n";
> ?>
> <p> this is not php! </p>
> </BODY>
> </HTML>
>
> <---end of script
>
> Regards,
> Derek
> http://www.netsimple.co.uk
>
------------------------------
From: webqueen, queen of the web <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware
Subject: Re: HP Laserjet weirdness
Date: Sun, 31 Dec 2000 19:38:41 GMT
It was a regular ole vi file.. However I just vi'ed another file as a
TEST and it printed OK.. SO ? I think you're right- now MANY of my old
ASCII files I could print in RH6.2 no longer print in RH7..
Just another *feature"
Thanks,
WQ
In article <[EMAIL PROTECTED]>,
Robert Kiesling <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> webqueenie, queen of the web <[EMAIL PROTECTED]> wrote:
>
> > I configured my HP laserjet4 with printtool, using the HP Laserjet
> > 4/5/6 drivers. When I print an ASCII file now I get:
> >
> > "No way to print this type of input file: fsav (linux) virus
(8293-117)"
> >
> > Then if I vi the file and add an empty line at the top & bottom, it
> > prints fine.
> >
> > Suggestions?
> >
> > HUG,
> > WQ
>
> What is the source of the ASCII file? It might be that the filter
> that printtool installed does not recognize the line endings or
> accented characters.... Keep in mind that Linux uses a Line Feed
> (^J, 11 ASCII) to end a line, Max use a Carraige Return (^M, 13
ASCII),
> and DOS/Windows machines (last I looked) use a CR/LF pair.
>
> --
> Robert Kiesling <[EMAIL PROTECTED]>
> Web Page : http://www.mainmatter.com/kiesling
> Linux FAQ:
> http://www.mainmatter.com/linux-faq/toc.html
http://www.mainmatter.com/
> ---
> Tired of spam? Please forward messages to [EMAIL PROTECTED]
>
--
WHEN THE CATS ARE HUNGRY...
RUN FOR YOUR LIVES!
Alone, only a harmless pet...
One Thousand Strong, They Become a Man-Eating Machine!
-- The Night of a Thousand Cats (1972)
Sent via Deja.com
http://www.deja.com/
------------------------------
From: [EMAIL PROTECTED] (Bryan Hoyt)
Crossposted-To: comp.os.linux.setup
Subject: Re: How to make linux "sleep"?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 31 Dec 2000 20:00:12 GMT
Who ever said [EMAIL PROTECTED] couldn't write what follows?:
>On newer keyboard, there are two buttons called "Sleep" and
>"Wake up" each. In M$Win environment, when I push "Sleep",
>the OS enters the "sleep" mode. (I don't know what the mode
>is, it turns off monitor, hd, all of the fans includes power
>supply.) It comes back immediately as soon as I push "Wake up".
>
>Are there any daemons or programs which could handle this task?
>From a previous thread, mapping those extra keys on your keyboard appears to
be quite a task. I can help you with the hard drive part, however. The
program "hdparm" can put IDE harddrives into standby mode. Have a look at
"hdparm -Y" and "hdparm -S <n>". For the monitor you could write a small
shell script to switch to the console and do something with the "setterm"
program.
Hope I've helped.
--
Bryan Hoyt
[EMAIL PROTECTED]
http://www.crosswinds.net/~artmusic
===================================
Humpty Dumpty was pushed.
------------------------------
From: Tim Seifert <[EMAIL PROTECTED]>
Subject: Won't read cdrom
Date: Sun, 31 Dec 2000 16:48:18 -0330
I have installed Madrake 7.2 and the interface is up and running.
However, it will not mount the cdreader or cdwriter. The problem may be
that the /mnt/cdrom directory is locked and the file permissions need to
be changed. However, /mnt/cdrom is locked, even to root and as root I
cannot change the permissions. As well, /mnt/floppy does not allow group
members to write to /mnt/floppy. Again, as root, I am have not been able
to change the permissions. Suggestions are appreciated. Thanks!
Tim Seifert
St. John's, NF
------------------------------
From: Arctic Storm <[EMAIL PROTECTED]>
Subject: Please help using XAnim ,...
Date: Sun, 31 Dec 2000 20:22:05 GMT
I'm trying to play an AVI movie, so I installed the XAnim rpm.
Now what? Issuing the command "xanim" gives an error.
I can't find the xanim.readme file.
I tried "man xanim", but it wasn't clear.
All I want to do is play a simple AVI movie, but I'm having a lot of
problems.
Can someone show me how to use xanim to play an AIV movie?
Thanks.
======
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: lilo-- behaviour without an hda drive
Date: 31 Dec 2000 20:27:53 GMT
I have been trying some experiments with my system, and have been
finding weird behaviour of lilo which perhaps someone can explain.
I have Linux on my hdb drive, and want to transfer my hda to another
machine. I set up lilo.conf to point only at the b drive (see below) so
no reference to a exists. I run lilo to place LILO onto a floppy, which
boots into the hdb drive fine. I now remove the hda drive, and try to
boot from the floppy. I get the dreaded
01 01 01 01 01 01 .....
I now plug that old a drive onto the master of the second ide ( ie make
it /dev/hdc). Now using the LILO on the floppy gives me
LI
and there sits.
Why?
The LILO on the floppy should not care if the master on the first IDE
bus exists, since it needs only the hdb drive. And in particular why in
the world does it care in hdc exists or not.
Now to finally ask the question which all of this was in aid of=-- Can
LILO boot from drive hdc or hdd (ie must the /boot partition be on hda
or hdb or can it be on hdc or hdd) Note that LILO will be on the MBR of
hda.
And, since it seems there must be an a drive, I will have to make my
current hdb into the master on the first IDE and make it hda. Is there
an easy way of making this transition? currently it is hdb and it would
seem that there is no way of installing a LILO into its MBR which will
point to the correct locations on itself to be able to boot after it is
hda.
Notation:
lilo= the program used to install the boot loader
LILO=the boot loader itself- either on MBR of hda or on the MBR of the
floppy.
lilo.conf
=========================================
boot=/dev/fd0
map=/boot/map
install=/boot/boot.b
vga=normal
default=linux
keytable=/boot/us.klt
lba32
prompt
timeout=50
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label=linux
root=/dev/hdb5
read-only
append="hdc=ide-scsi"
image=/boot/vmlinuz
label=failsafe
root=/dev/hdb5
append=" failsafe"
read-only
other=/dev/fd0
label=floppy
unsafe
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: OT: It's 2001 & M$ refuses to 'see' Linux partitions
Date: 31 Dec 2000 20:30:28 GMT
In <92m843$[EMAIL PROTECTED]> [EMAIL PROTECTED] (Andrew Purugganan) writes:
>Now it's the year 2001 and there are lots of dual-boot PCs now. Why
>doesn't microsoft let Windows Explorer 'see' into my Linux partitions?
>Does it have somethig to do with the architecture of Windows, or is it
>just plain stubborn refusal to acknowledge the non-Redmond OS?
Ask Microsoft not us. It would be easy for them to make ext2 file system
readers and writers( after all the open source is there for all, even
MS, to read). They do not.
There may be some third party stuff out there which does augment Win to
allow it to read and write ext2.
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: Weird LILO problem
Date: 31 Dec 2000 20:37:28 GMT
In <[EMAIL PROTECTED]> mike <[EMAIL PROTECTED]> writes:
]Hi,
] I have an old 486 DX2-66 generic compter with 32 megs
]of ram. Now I am using an IBM 1080 mb hard drive. It
]had Slackware 7.0 on it and it booted off the hard drive
]with lilo with no problems. I have also had a Debian 2.1
]on a Samsung 1.5 gb drive and I have also had
]a Fujitsu 528mb drive with Redhat 5.1 on it. All the
]hard drives booted with lilo.
] I just installed Redhat 6.1 on the sole 1080 IBM drive
]and can't get lilo to boot the drive. I get "LI" on the
]screen while it's booting and then the system hangs.
]I have tried the options in lilo, such as, "linear" and
]"compact" to no avail.
I suspect that you may have gotten the boot partition beyond where your
bios on that old machine can see it. Usually that is the 8GB limit,
although some old machines had a 500MB limit.
So, I would put in one small /boot partition ( 5MB is sufficient) right
at the beginning of the disk. Then your bios should be able to find it.
] I have even installed the new lilo 21.5 which does
This will not help . It only works with new BIOSs which can actually
find, in bios, disk cylinders beyone 1024. Older bioses (like on 486
machines) cannot, no matter how nicely they are asked, find anything
above 1023. They stored the number of cyl in 10 bits of memory and that
is it.
]not have the 1024 cylinder boundry, still, it won't
]boot from the hard disk, but it will boot from the
]floppy.
------------------------------
From: [EMAIL PROTECTED] (Bill Unruh)
Subject: Re: Upgrading hard-drive
Date: 31 Dec 2000 20:48:00 GMT
In <[EMAIL PROTECTED]>
[EMAIL PROTECTED] ([EMAIL PROTECTED]) writes:
>I'm running out of space on my hard-drive. I was thinking of adding
>another drive and then transferring my existing GNU/Linux partition to
>it (I don't want to lose my existing data and configuration files).
>How do I do that?
Are you willing to keep the old disk? If so, just partition the new
drive, and mount its partitions onto the old filesystem whereever you
need memory.
For example lets say it is your /home files which are getting too large.
Produce a partition on the new drive, mount it on /home-new
(mkdir /home-new
mount -t ext2 -o rw /dev/hdb5 /home-new
Now copy everything from /home to /home-new
cd /home
tar -cf - .|(cd /home-new; tar -xpf -)
Once everything is copied-- check to make sure it is-- you can now
unmount the new disk.
umount /home-new
Then edit /etc/fstab to include
/dev/hdb5 /home ext2 defaults 0 3
You now have to decide whether to erase the old /home directory
(rm -r /home/*)
or check first to make sure that everything you want is in the new one.
(mount -a)
will mount thenew one on top of the /home point. If you did not erase
what was on drive a in the /home directory, it will all now still
clutter up drive a but be inaccesible.
Note that the above assumes you made your new partition the first
logical partition on the new disk, ie /dev/hda5. Change the numbers
above to coincide with whatever it was you actually did.)
You can similarly copy any partition on the first drive over to the4
second drive.
>You can simply refer me to a HOWTO or similar document if it exists.
------------------------------
From: Robert Jones <[EMAIL PROTECTED]>
Subject: Re: Upgrading hard-drive
Date: Sun, 31 Dec 2000 14:37:46 -0600
"[EMAIL PROTECTED]" wrote:
> I'm running out of space on my hard-drive. I was thinking of adding
> another drive and then transferring my existing GNU/Linux partition to
> it (I don't want to lose my existing data and configuration files).
> How do I do that?
>
> You can simply refer me to a HOWTO or similar document if it exists.
The howto at /usr/doc/HOWTO/mini/Hard-Disk-Upgrade worked great for
me.
--
You will always find something in the last place you look.
2:33pm up 7 days, 18:51, 1 user, load average: 0.35, 0.16, 0.05
------------------------------
From: "Peter C. Giardina, Ph.D." <[EMAIL PROTECTED]>
Subject: help burning CD
Date: Sun, 31 Dec 2000 15:02:54 -0600
Hello all,
I down-loaded a Mandrake disk image to my Dell C: drive. My Sony CD-RW
software does not recognize the file as a disk image, howevewr.
I may have mistakenly transferred the file as ascii, but I'm not sure, and
I don't know how to determine this information. The file extension is
.ISO, which may be meaningless.
Any help would be appreciated, as I do not relish the thought of
down-loading the file again.
Thanks,
Peter
------------------------------
From: Warren Bell <[EMAIL PROTECTED]>
Subject: Re: How to get CPU usage
Date: Sun, 31 Dec 2000 13:41:24 -0800
Brad Bailey wrote:
>
> On Sat, 30 Dec 2000 14:39:39 -0800, Warren Bell <[EMAIL PROTECTED]> wrote:
> ->Michael Heiming wrote:
> ->I wasn't running it at superuser level. I'm pretty sure it's giving a
> ->false reading because for one, if it takes 100% CPU to run top then
> ->someone needs to take that program back to the drawing board.
>
> Some say "top" was named because it shows the top resource-consuming
> processes, others say it's called that because it *is* the top
> resource-consuming process. I say it's quite capable of being both. :-)
>
> -> And Two,
> ->if you run top to output twice then exit, one's completely different
> ->than the other.
>
> From the "NOTES" section of the top(1) manpage:
>
> [...]
> %CPU shows the cputime/realtime percentage in the period
> of time between updates. For the first update, a short
> delay is used, and top itself dominates the CPU usage.
> After that, top will drop back, and a more reliable esti�
> mate of CPU usage is available.
>
> You seemed to actually be getting a lower usage from the first report
> than subsequent ones, but the above should indicate that you are
> probably better off discarding the first report altogether anyway.
> Personally, I liked the approach of piping ps aux through awk to
> add up all the %CPU columns.
>
Do you know if that's accurate? I don't think the CPU percentage it
lists is based on 100% CPU. I'm using that now, and if I start X then
do a ps aux all the CPU listings add up to like 175%.
I just need to get an semi-accurate CPU usage reading with 0% being idle
and 100% being max. Top, 'procinfo -f' and 'ps aux' all give very
different readings. Is there any way to do this on a linux system?
> And if you ever deal with other command-line resource monitoring
> utilities, be aware that vmstat and iostat also give a different
> output on their first report.
>
> Regards
> --
> Brad Bailey __/) <[EMAIL PROTECTED]>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "You know, it's easy to be happy if your one concern in life is figuring
> out how much saliva to dribble." --Woody Allen
------------------------------
** 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 by posting to comp.os.linux.misc.
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
******************************