Linux-Misc Digest #861, Volume #26 Fri, 19 Jan 01 20:13:03 EST
Contents:
Re: Why do I get auto-logged-out of my telnet session? (Tom Allender)
Re: Running imapd from rc script (Robert Lynch)
Re: How do I change cd-rom from d: to e: (Michael Heiming)
Re: woody, reiserfs, and kernel compilation (Jeff Strunk)
Help, Urgent! Partition Table screwed up, Want bruteforce recovery
([EMAIL PROTECTED])
Installing 2.4.0 kernel.. (Ish Rattan)
Re: How do I change cd-rom from d: to e: (Ryan H.)
Can I use RAID 0 for HPT370? ("Jason Ng")
Re: gcc environment question (Jerry Heyman)
Re: Help, Urgent! Partition Table screwed up, Want bruteforce recovery
([EMAIL PROTECTED])
Re: can't login to KDE, users seem gone ("Jeff Susanj")
X no longer works after Glibc update ([EMAIL PROTECTED])
Re: virtual screen (Andrew Purugganan)
Re: HP Laserjet 4ML prints too large (Hartmann Schaffer)
Re: $/.bashrc aliases que (Mike Mcclain)
Re: Metakey in .inputrc (Mike Mcclain)
----------------------------------------------------------------------------
From: Tom Allender <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup,linux.redhat,alt.linux
Subject: Re: Why do I get auto-logged-out of my telnet session?
Date: Fri, 19 Jan 2001 23:09:02 +0000
[EMAIL PROTECTED] wrote:
>
> I'm running RedHat 6.2 on a PIII-700. Whenever I telnet OR ssh into
> that box, then leave the sessions idle for some amount of time (maybe
> 1.5 - 2 hours), I get auto-logged-out.
If you are telneting/ssh-ing from a windows box then check out PuTTY.
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You can set it to send null packets at minute or more intervals in order
to keep a connection alive.
Tom.
------------------------------
From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: Running imapd from rc script
Date: Fri, 19 Jan 2001 23:15:36 GMT
[EMAIL PROTECTED] wrote:
>
> Linux gurus,
> I am trying to have my linux box run imapd in "standalone" mode, rather
> than using xinetd to spawn it. I can't find any information on this
> anywhere. I've tried adding the line /usr/sbin/imapd in rc.local, and
> it doesn't work. I figured it wouldn't, because I know there's got to
> be more to it than that. Can somebody either point me in the right
> direction or shed some light on this please?
>
> Running RedHat 7.0, IMAP4rev1 v12.264
>
> Thanks for your help!
>
> rz
>
> *if I had a profound quote, it would go here*
>
> Sent via Deja.com
> http://www.deja.com/
My wife bought the new O'Reilly "Managing IMAP" book, Amazon
link:
http://www.amazon.com/exec/obidos/ASIN/059600012X/qid=979945898/sr=1-1/ref=sc_b_1/104-1302844-9774322
and I quickly skimmed it one night. If I am not mistaken, the
book analyzes the advantages and disadvantages of "standalone"
and says it is not worth it, don't do it. I can't check my
recall in the book, since she keeps it at work. You might want
to look at it in a bookstore.
Looking at the table of contents on Amazon, the analysis is in
the section:
"Running imapd: inetd Versus Standalone"
(I think.)
HTH. Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
------------------------------
Date: Sat, 20 Jan 2001 00:10:39 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Subject: Re: How do I change cd-rom from d: to e:
Paul Lew wrote:
> On Fri, 19 Jan 2001, J. Brock Angelo <[EMAIL PROTECTED]> wrote:
> >I've got Win95 and have just installed a very minimal version of Red
> >Hat 7 to try it out. I'm running a dual-boot. Win95 runs off my C:,
> >while Linux runs off a second hard drive (not just a second partition)
> >D:. The problem? When I go into Windows, it is not seeing the D-drive
> >and is calling the CD-Rom "D".
> >
> >I wouldn't think that calling the CDRom D when in Win95 should cause
> >any problem, since Win95 is completely separate, but it does. When I
> >put CDs in the drive, it will read the folders but none of the files in
> >the folders, then it crashes Win95. I've run the boot disk with the CD
> >drivers on it, and each time it reassigns the CD-Rom as D. It seems
> >that since it is a Linux partition, Win95 thinks that there isn't a
> >drive there at all and so uses D.
> >
> >Nothing seems to be working.
> >Any help?
>
> A windows question.....
> Check your windows manual/doc/help and/or control panel/"my computer";
> somewhere there is a menu/dialoge to allow assignment of the "drive letter"
> for the cdrom.
Hello,
AFAIK if your linux hd is ext2, Win95 can't see/read it, if I remember right
there is small
free/sharware? sw available called somehow ?explore2fs? that you could use to
read (write was
experimental, but it's long ago I used it) your ext2.
I had a somehow equal setup, Win95 couldn't see the my second hd and called
the CD-ROM D:.
It crashed of course sometimes, but what would you expect since you're using
Windows?
Good luck
Michael Heiming
--
Alas, the Penguin just can't deliver the goods when it comes to really
demanding services like BSOD.
------------------------------
From: Jeff Strunk <[EMAIL PROTECTED]>
Subject: Re: woody, reiserfs, and kernel compilation
Date: Fri, 19 Jan 2001 17:49:39 +0000
It ended up being that the gcc version in the testing distribution of
debian i too new to reliably compile kernels. So, I downgraded to gcc
2.95.2 and got a new kernel.
that saves me some cash.
thanks all,
jeff
On Fri, 19 Jan 2001 00:53:06 +0000
Jeff Strunk <[EMAIL PROTECTED]> wrote:
> hi everybody,
> I am having a lot of trouble compiling a custom kernel. I just
completely
> redid my
> system yesterday, with reiserfs and woody. So, I have all of the
necesarry
> versions of what is required to compile 2.4.0. I patched the kernel
source
> that i got from kernel.org to support reiserfs. Then i did the usual
make
> menuconfig, dep , etc. During make bzImage, there seem to be errors that
> stop compilation in random places(I never get the same error). sometimes
> there where assembler errors. After many tries of downloading patching
and
> compiling, I decided I'd try plain 386 instead of k6-2, k6-3. it still
> didn't work. I tried 2.2.18 and applied the proper reiserfs patch and
had
> the same problems. Has anybody else had these problems or seen something
similar?
>
> Thanks,
> Jeff
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: linux.redhat.install,linux.redhat.misc
Subject: Help, Urgent! Partition Table screwed up, Want bruteforce recovery
Date: Fri, 19 Jan 2001 23:37:35 GMT
Hi,
I'm in a terrible situation now. I lost my entire linux partition. All
my work is buried in there. I just can't lost it.
The only thing I can think of is to bruteforce recover it. Because the
partition I lost is in the 2nd HD (hdb), it get similar partition as the
first one (hda).
The disarster started like this. I installed Mandrake on my first HD,
not touching anything on my 2nd HD. But still being a newbie to linux
configuration, I couldn't start my RH6 on my 2nd HD, which has Lilo
written in the boot sector. So I had to turned to windows for help.
But my windows98 almost freeze up but a new unkown E: drive. So, I was
folish enough to use dos format trying to format it but after failed
doing so, I used fdisk to delete the E: drive. After I found that I lost
my linux partition, I told my friend about it. He said he has met
similar situation -- after installing Mandrake, all his Linux partion
started showing up as dos drives in he windows2000. He was lucky that
those extra drives didn't freeze up the windows, just move his drive
mapping around. Then I realize that I've made a terrible mistake.
Now my /dev/hdb5 is gone, and I have no other troices but to recover it.
My estimation of the situation is that (from easy to recover to
difficult to recover)
- the partition has been changed by dos fdisk. I hope I can use fdisk
under linux to change it back to what it originally is, based on the
info from my hda, plus bruteforce trying. My first questions are:
* how to back up the MBR and the disk partition (under linux)
* is there a quick way for linux (RH6.2) to notice the change of the
partition without rebooting?
- The first several sectors of my /dev/hdb5 might be damaged by dos
fdisk. what are those first sectors? Can I duplicate from my hda5 to my
hdb5, just for a quick-n-dirty hack to get it going? How should I back
it up first and do the duplication?
Please, Please help me, it will still save my time if I do the
bruteforce recover for 3 days than rebuilding everything that I had. I
really hope you reach out your warm hands to help this poor fellow.
Thanks a thousand to share your comments, suggestions, considerations,
etc.
FYI, here is the info of my hda, and my hdb is partitioned exactly like
it, with the sector number might be little different.
Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 64 514048+ 93 Amoeba
/dev/hda2 65 319 2048287+ 93 Amoeba
/dev/hda3 320 1057 5927985 1c Hidden Win95 FAT32
(LBA)
/dev/hda4 1058 2491 11518605 f Win95 Ext'd (LBA)
/dev/hda5 1058 2030 7815591 83 Linux
/dev/hda6 2031 2491 3702951 c Win95 FAT32
(LBA)
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Ish Rattan <[EMAIL PROTECTED]>
Subject: Installing 2.4.0 kernel..
Date: 19 Jan 2001 18:50:36 -0500
Hello,
I have a strange problem. I am running RedHat-6.2 with 2.2.16-3 kernel.
I down loaded the 2.4.0 kernel. It compiles (make bzlilo), the modules
compile (make modules; make modules_install). The new kernel boots the
machine correctly but modules are not accessible!!?
Questions:
1. Is it possible to compile and run 2.4.0 kernel under RedHat-6.2?
2. If yes what are the correct steps to compile and install it?
This is the first time I have tried 2.4.0 kernel (others have worked..).
Any pointers will be appreciated (outside wisecracks). The modprobe
version is 2.3-pre1?
- ishwar
------------------------------
From: Ryan H. <[EMAIL PROTECTED]>
Subject: Re: How do I change cd-rom from d: to e:
Date: Fri, 19 Jan 2001 16:57:18 -0700
With most CD-ROM's, there's a command line in your config.sys file
that loads the CD-ROM drivers (looks something like:
DEVICEHIGH=C:\CDROM\GSCDROM.SYS /D:MSCD000 /v), and there should be
some type of switch you can include to specify the drive letter (like
/L:F or something like that). Check the manual for your CD-ROM for
the right syntax, then edit the config.sys file, and it should work
the next time you reboot.
BTW, I have the same setup on my computer (only I'm using Win98 and
Mandrake 6.0), and it works just fine. Win98 ignores my second hard
drive and calls my Zip drive D, and nothing bad has ever come of it.
On Fri, 19 Jan 2001 22:37:33 GMT, J. Brock Angelo
<[EMAIL PROTECTED]> wrote:
>I've got Win95 and have just installed a very minimal version of Red
>Hat 7 to try it out. I'm running a dual-boot. Win95 runs off my C:,
>while Linux runs off a second hard drive (not just a second partition)
>D:. The problem? When I go into Windows, it is not seeing the D-drive
>and is calling the CD-Rom "D".
>
>I wouldn't think that calling the CDRom D when in Win95 should cause
>any problem, since Win95 is completely separate, but it does. When I
>put CDs in the drive, it will read the folders but none of the files in
>the folders, then it crashes Win95. I've run the boot disk with the CD
>drivers on it, and each time it reassigns the CD-Rom as D. It seems
>that since it is a Linux partition, Win95 thinks that there isn't a
>drive there at all and so uses D.
>
>Nothing seems to be working.
>Any help?
>
>
>Sent via Deja.com
>http://www.deja.com/
------------------------------
From: "Jason Ng" <[EMAIL PROTECTED]>
Crossposted-To:
alt.os.linux,comp.os.linux.hardware,comp.os.linux.setup,linux.redhat.install
Subject: Can I use RAID 0 for HPT370?
Date: Sat, 20 Jan 2001 08:02:10 +0800
Hi,
I would like to know if I can use RAID 0 for my machine in Linux.
My controller is HPT370. When I boot Linux Mandrake 7.2 from CD ROM, it does
detect my chipset but it fails to detect my Windows 2000 partition which is
using RAID 0.
Can anyone kindly help me solve the problem?
Thanks.
Regards,
Jason
------------------------------
From: [EMAIL PROTECTED] (Jerry Heyman)
Crossposted-To: alt.os.linux,gnu.gcc.help,linux.redhat
Subject: Re: gcc environment question
Date: 19 Jan 2001 22:02:57 GMT
Reply-To: [EMAIL PROTECTED]
In article <949vaa$ps0$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] writes:
>In article <cqW96.124$[EMAIL PROTECTED]>,
> "Dave Korn" <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote in message <948r3u$r78$[EMAIL PROTECTED]>...
>>>Hi,
>>>
>>>After being forced to build gcc-2.95.2 from source (to replace
>>>Redhat's buggy gcc-2.96), I can only get it to run if I add
>>>
>>>-L/usr/lib/gcc-lib/i386-redhat-linux/2.96/
>>>and
>>>-I/usr/include/g++-3/
>>
>>>I tried adding
>>
>>LD_LIBRARY_PATH=/usr/lib/gcc-lib/i386-redhat-linux/2.96:$(LD_LIBRARY_PATH)
>>>export LD_LIBRARY_PATH
>>>
>>>to ~/.bashrc and `re-sourcing` to get rid of the first option. Doesn't
>>>help. As to the second option (include files directory), I'm completely
>>>clueless.
>>>
>>>What can I do?
>>
>> Telling us *why* it doesn't run otherwise would be a start...
>>
>> DaveK
>
>It can't find libs (such as stdc++ and g2c) or include files (such as
>iostream)
I'm very confused here. Why, after building gcc 2.95.2 are you
linking with 2.96?? During the compilation of gcc 2.95.2 you built
all the libraries that you need to link with - and when you did the
'make install', the installation put them where gcc 2.95.2 expects
during the link.
Are you sure you installed the compiler correctly and that you are
using gcc 2.95.2 when you compile?
$ gcc -v filename.c
will tell you LOTS about what gcc is doing.
jerry
=====
Jerry Heyman 919.224.1442 | Tivoli Systems |"Software is the
Build Infrastructure Architect | 3901 S Miami Blvd | difference between
[EMAIL PROTECTED] | RTP, NC 27709 | hardware and reality"
http://www.acm.org/~heymanj
------------------------------
From: [EMAIL PROTECTED]
Crossposted-To: linux.redhat.install,linux.redhat.misc
Subject: Re: Help, Urgent! Partition Table screwed up, Want bruteforce recovery
Date: Sat, 20 Jan 2001 00:10:09 GMT
In article <94aj3v$cs5$[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> Hi,
>
> I'm in a terrible situation now. I lost my entire linux partition. All
> my work is buried in there. I just can't lost it.
>
> The only thing I can think of is to bruteforce recover it.
[...]
> FYI, here is the info of my hda, and my hdb is partitioned exactly
like
> it, with the sector number might be little different.
More reading on this issure brougt me more insite into the problem:
# sfdisk -Vl /dev/hda
Disk /dev/hda: 2491 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from
0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 63 64- 514048+ 93 Amoeba
/dev/hda2 64 318 255 2048287+ 93 Amoeba
/dev/hda3 319 1056 738 5927985 1c Hidden Win95 FAT32
(LBA)
/dev/hda4 1057 2490 1434 11518605 f Win95 Ext'd (LBA)
/dev/hda5 1057+ 2029 973- 7815591 83 Linux
/dev/hda6 2030+ 2490 461- 3702951 c Win95 FAT32
(LBA)
# sfdisk -Vl /dev/hdb
Disk /dev/hdb: 2494 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from
0
Device Boot Start End #cyls #blocks Id System
/dev/hdb1 0+ 63 64- 514048+ 93 Amoeba
/dev/hdb2 64 318 255 2048287+ 93 Amoeba
/dev/hdb3 319 1056 738 5927985 1c Hidden Win95 FAT32
(LBA)
/dev/hdb4 1057 2493 1437 11542702+ f Win95 Ext'd (LBA)
start: (c,h,s) expected (1023,254,63) found (1023,0,1)
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
partition 4: start: (c,h,s) expected (1023,254,63) found (1023,0,1)
/dev/hdb:
OK
The above is produced from my Mandrake. I think it is the same as what
is produced in RH6.2. (just the fdisk in RH can list my hdb, showing
where the error is, but the fdisk from Mandrake will loop on printing
"omitting empty partition (5)" forever.
So what I can see is that the entry of /dev/hdb5 is not listed by
sfdisk. But I think the entry is actualy there. Is this because of the
error is hdb4?
What's your suggestion for my next move, based on what the above info
that I have.
PS. Question, does the ending sector number matter too much? My
partition is only half full. I just hope that if I can't get the ending
sector number right, I can still mount/access it...
Thanks!!!
Sent via Deja.com
http://www.deja.com/
------------------------------
From: "Jeff Susanj" <[EMAIL PROTECTED]>
Subject: Re: can't login to KDE, users seem gone
Date: Fri, 19 Jan 2001 23:50:46 GMT
Jason Bond wrote in message ...
>Hello. I've been upgrading a bunch. One rpm requires another, which
>requires another, etc. ad infinitum. I have a KDE 2.1 system, on a RH 5.2
>(but almost every package upgraded). Anyway, so many upgraded packages,
now
>when I try and login in the kdm login screen, the users are not there (the
>little pictures of the users are gone) and when I login with root or my
>usual user account, it says login failed...I can login using the console
>(vertual terminal 1 I guess) so I'm sort of out of ideas. any suggestions
>of where to start looking? Thanks much,
>
> Jason
>
>
>
This sounds familiar. I was adding new users and they all could log in via
a console but not with KDE. I found that the new users had disk quotas of
zero. When logging in on a console everything was OK but with KDE it was
trying to write something out to the disk and the login would fail. Did any
of your upgrades involving adding disk quotas?
Jeff S.
------------------------------
From: [EMAIL PROTECTED]
Subject: X no longer works after Glibc update
Date: Sat, 20 Jan 2001 00:26:15 +0000
My redhat 7 system has been fine until I updated to latest
glibc-2.2-12. When I try to run starx I now get the following:
"xauth:error while loading shared libraries: libXmu.so.6: cannot load
shared object file: no such file or directory" error followed by
similar xinit error and X will not start. File libXmu.so.6 exists in
/usr/X11R6/lib as a symbolic link to libXmu.so.6.1. Somehow I must
have cocked up the rpm upgrade but don't know how. Has anyone any
suggestions??
------------------------------
From: [EMAIL PROTECTED] (Andrew Purugganan)
Subject: Re: virtual screen
Date: 20 Jan 2001 00:25:01 GMT
Sudhakar R. ([EMAIL PROTECTED]) wrote:
[ everytime i boot up in Rh 7.0 I have to do ctrl+alt+- to get the vitrual
[ screen to fit in the monitor screen.
[ How do I get this to work by default.
edit your xf86config file (some have it in /etc/X11/)
and eliminate all references to desktops that are larger than your
preferred resolution e.g. if you prefer 800x600 then i'd get rid of all
references to 1024x768 or whatever
you might want to make a backup copy first
--
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??
------------------------------
From: [EMAIL PROTECTED] (Hartmann Schaffer)
Subject: Re: HP Laserjet 4ML prints too large
Date: 19 Jan 2001 19:42:30 -0500
In article <[EMAIL PROTECTED]>, Lars Oeschey wrote:
>Hi,
>
>I have a HP Laserjet 4ML attached to a Linux box running RH 6.2. I
>configured the printer using printtool, setting resolution to 600x600
>(the printer has that resolution) printing text with the "fast text"
>option enabled is ok, but everything else (including text with "fast
>text" not enabled) is too large, i.e. only the upper left of the page
>is printed, and everything is way too big. If I set resolution of the
>printer to 300x300 it's ok, but of course I want to use what the
>printer is able to ;) (And I'd like to use the "Laserjet 4 - dithered"
>driver, since graphics look much better then).
it looks like you have to send a special control code to force the printer
into 600x600 mode. check your printer documentation
hs
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: $/.bashrc aliases que
Date: Sat, 20 Jan 2001 01:00:20 GMT
Howdy,
If env | grep INPUTRC shows you anything,
grep -r INPUTRC /etc/* will probably show you where it's set.
If INPUTRC is set in the environment, ~/.inputrc is not read.
Later,
Mike
-=> [EMAIL PROTECTED] wrote to ALL <=-
>> I have copied my bashrc file over to my Home dir and made it a
>> dot file, but I *still* can't get my aliases recognised. What am I
>> missing? I've played with permissions and so on. Odd.
>> I'm using Mdk 7.2. Is there something unusual about this distro
>> that I don't know about???
>> tia...
--- MultiMail/Linux v0.31
------------------------------
From: [EMAIL PROTECTED] (Mike Mcclain)
Subject: Re: Metakey in .inputrc
Date: Sat, 20 Jan 2001 01:00:20 GMT
Howdy Alex,
You don't give us much to go on.
Do you see problems on the CL, in X or both?
Did you loose both Alt keys or just one?
In slak7.0 the default keymap seems to be the one in
the kernel sources, installing a new kernel may have
changed your default keymap.
If INPUTRC is set in the environment, ~/.inputrc is
not read.
Later,
Mike
--- MultiMail/Linux v0.31
------------------------------
** 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
******************************