Linux-Misc Digest #812, Volume #25               Wed, 20 Sep 00 00:13:02 EDT

Contents:
  Re: Batch for Linux (Vilmos Soti)
  Re: Red Hat 6.2 Monitor problem (Glitch)
  Re: Red Hat 6.2 Monitor problem (E J)
  Re: fsck help (Glitch)
  Re: Accidently replaced a very important directory with a symlink (Glitch)
  Re: cdrecord with ATAPI/IDE problem (E J)
  How do i screengrab (David)
  Re: "su" dumps core !? HELP! (Dances With Crows)
  console permissions ("Chakravarthy Sannedhi")
  startx problem with the normal user ("Chakravarthy Sannedhi")
  HoW to install Xprog.tgz? ("Yong Chiew Ning")
  Where are ipchains logs stored? (Daisuke Kanzaki)
  Re: Where are ipchains logs stored? (Hal Burgiss)
  Re: How do i screengrab ([EMAIL PROTECTED])
  Re: X-windows newbie question (MaryP)
  Re: Where is loadkeys.*.tar.gz ([EMAIL PROTECTED])
  Re: HoW to install Xprog.tgz? ([EMAIL PROTECTED])
  Re: How do i screengrab ("Andrew N. McGuire ")

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

Subject: Re: Batch for Linux
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Wed, 20 Sep 2000 02:26:49 GMT

[EMAIL PROTECTED] (William W.) writes:

] Cut large text which explained that extension is part of the filename.

> Yes, you are correct. But does this really matter from the user's point
> of view? As far as this user is concerned, a suffix and an extension
> appear to mean pretty much the same thing.  The poster was asking a

In many cases yes, but there are cases where it is different. Just try
to do something like a

mv *.txt *.doc

It won't work. This is specifically due to that the extension is not
a separate entity. However, on the bright side, a file can have
multiple extensions like hello.tar.gz

Vilmos

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

Date: Tue, 19 Sep 2000 22:35:21 -0400
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Red Hat 6.2 Monitor problem

run Xconfigurator and choose other resolutions

[EMAIL PROTECTED] wrote:
> 
> I just installed Red Hat Linux 6.2, but the resolution is 640x480.
> Everything is too big.  Is there anyway to change the resolution while
> in Linux, or do I have to re-install and make sure I pick a different
> monitor and resolution?  Thanks.
> 
> -gsr_100
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

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

From: E J <[EMAIL PROTECTED]>
Subject: Re: Red Hat 6.2 Monitor problem
Date: Tue, 19 Sep 2000 19:28:41 -0700

$ su -
password: <secret>
# # just in case you mess up the Xconfiguration
# cp /etc/X11/XF86Config /etc/X11/XF86Config.bak
#  # Now select the right resolution
# Xconfigurator

[EMAIL PROTECTED] wrote:

> I just installed Red Hat Linux 6.2, but the resolution is 640x480.
> Everything is too big.  Is there anyway to change the resolution while
> in Linux, or do I have to re-install and make sure I pick a different
> monitor and resolution?  Thanks.
>
> -gsr_100
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.


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

Date: Tue, 19 Sep 2000 22:44:03 -0400
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: fsck help



D G wrote:
> 
> I had my first crash resulting in file system corruption today.  After
> running fsck, the /home/lost+found directory contains a file "#20422".
> I looked at the file and found out that it was my netscape bookmarks
> file.  I looked at my netscape bookmarks file and found out it had some
> other data in it.  So naturally, I copied the file "#20422" over my
> bookmarks file and everything works fine (at least everything I've
> checked so far).  Now I can't delete the file "#20422" out of the
> lost+found directory.  Is there something special I need to do?

what are the permissions and what userid are u using to delete them? who
are they owned by?

> 
> Also, occasionally fsck complains about dtimes on inodes or something
> like that and fixes them automatically.  Is this something to worry
> about? 

possibly, I forget what the dtime is for an inode but someone else
should be able to help you on this situation.

> (I was going to cut-n-paste the messages, but apparently they
> aren't making it into the logs.)
> --
> DG
> e-mail is: [EMAIL PROTECTED]
> (remove the Z's--they're what I do when I read SPAM!)

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

Date: Tue, 19 Sep 2000 22:49:47 -0400
From: Glitch <[EMAIL PROTECTED]>
Subject: Re: Accidently replaced a very important directory with a symlink

create a temp directory, move all files that are under teh symlink to
the temp directory, remove the symlink, create another directory in
place of the symlink, move all files from the temp directory back into
the original directory

Otto Wyss wrote:
> 
> Now it happend to me, I accidently replaced a very important directory
> with a symlink. Since any file below should be okay it should be
> possible to restore this directory. Does anybody know how?
> 
> O. Wyss

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

From: E J <[EMAIL PROTECTED]>
Crossposted-To: comp.publish.cdrom.software
Subject: Re: cdrecord with ATAPI/IDE problem
Date: Tue, 19 Sep 2000 19:38:55 -0700

I gave up putting IDE-SCSI emulation into my kernel:

I got my redhat 6.2 to use my CD-Writer and it worked with my SCSI Jaz Drive until I 
had to remove the SCSI card.
. 
$ su -
password: <scret>
# cp /etc/conf.modules /etc/conf.modules.bak
# vi /etc/conf.modules

Modify conf.modules for your CDROM writer, my CDROM is located at /dev/hdc

Here is my conf.modules

alias scd0 sr_mod
alias scsi_hostadapter ide-scsi
options ide-cd ignore=hdc

# cp /etc/rc.d/rc.local  /etc/rc.d/rc.local.bak
# vi  /etc/rc.d/rc.local

Put this at the end of the rc.local
# load ide-scsi module
insmod ide-scsi

# cp /etc/lilo.conf /etc/lilo.conf.bak
# vi /etc/lilo.conf

put the append statement for /etc/lilo.conf your cdrom
'append="hdX=ide-scsi"' and run lilo.
Here is /etc/lilo.conf, my CDROM is located at /dev/hdc

boot=/dev/fd0
timeout=100
message=/boot/message
prompt
image=/boot/vmlinuz-2.2.14-6.1.1
        label=linux
        root=/dev/hda4
        append="hdc=ide-scsi"
        read-only

# /sbin/lilo

Now relink the /dev/cdrom to your scsi emulation of your cdwriter

# mv /dev/cdrom /dev/cdrom.bak
# ln -s /dev/scd0 /dev/cdrom

Reboot.  (I don't know how to restart with new conf.modules and rc.local
in linux :( )

Run dmesg to see if your scsi emulation is working after the reboot

# dmesg
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
scsi : 1 host.
  Vendor: HP        Model: CD-Writer+ 8100   Rev: 1.0g
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CDROM driver Revision: 2.56


Run cdrecord to see if you scsi emulation is working also.

# cdrecord -scanbus
Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 J�rg Schilling
Using libscg version 'schily-0.1'
scsibus0:
        0,0,0     0) 'HP      ' 'CD-Writer+ 8100 ' '1.0g' Removable CD-ROM

        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

I hope it works for you, it works for me

Roger Davis wrote:

>
>
>   ------------------------------------------------------------------------
> I'd like to use cdrecord with an ATAPI/IDE recorder on my Dell I7500 laptop
> running RedHat Linux 6.2 (kernel 2.2.14) but am not having any success in
> getting the IDE SCSI emulation to work. The situation hasn't been made
> clearer by the various HOWTOs, etc., some of which state that I *must*
> enable IDE/ATAPI CD-ROM support and others which say that I should do the
> opposite. (Jorg Schilling's README.ATAPI on his cdrecord pages says both! ;-< )
> Which is it?
>
> My kernel is currently configured as follows:
>
>         Y       Enhanced IDE/MFM/RLL...
>         Y       Include IDE/ATAPI CDROM
>         M       SCSI emulation
>         M       Loopback device support
>
>         Y       SCSI support
>         Y       SCSI CD-ROM suppport
>         Y       Enable vendor-specific CD-ROM extensions
>         Y       SCSI generic support
>
>         Y       ISO-9660 CDROM filesystem support
>         Y       Microsoft Joliet CDROM extensions
>
> This is pretty much in accordance with the CD-Writing HOWTO. My lilo.conf entry
> reads
>
>         image=/boot/vmlinuz-2.2.14-5.0rbd
>                 label=cdr
>                 read-only
>                 root=/dev/hda5
>                 append="hdc=ide-scsi"
>
> When I boot I see the following in /var/log/messages:
>
>         ...
>         Sep 18 04:50:46 ctrobot kernel: ide_setup: hdc=ide-scsi
>         ...
>         Sep 18 04:50:46 ctrobot kernel: PIIX4: IDE controller on PCI bus 00 dev 39
>         Sep 18 04:50:46 ctrobot kernel: PIIX4: not 100% native mode: will probe irqs 
>later
>         Sep 18 04:50:46 ctrobot kernel:     ide0: BM-DMA at 0x1050-0x1057, BIOS 
>settings: hda:DMA, hdb:pio
>         Sep 18 04:50:46 ctrobot kernel:     ide1: BM-DMA at 0x1058-0x105f, BIOS 
>settings: hdc:DMA, hdd:pio
>         Sep 18 04:50:46 ctrobot kernel: hda: IBM-DARA-225000, ATA DISK drive
>         Sep 18 04:50:46 ctrobot kernel: hdc: UJDA310, ATAPI CDROM drive
>         Sep 18 04:50:46 ctrobot kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>         Sep 18 04:50:46 ctrobot kernel: ide1 at 0x170-0x177,0x376 on irq 15
>         Sep 18 04:50:46 ctrobot kernel: hda: IBM-DARA-225000, 24207MB w/418kB Cache, 
>CHS=3278/240/63
>         ...
>         Sep 18 04:51:19 ctrobot modprobe: modprobe: Can't locate module ide-cd
>         Sep 18 04:51:19 ctrobot kernel: hdc: driver not present
>         Sep 18 04:51:33 ctrobot modprobe: modprobe: Can't locate module char-major-97
>
> Not only is the CD-RW not visible as a SCSI device, it no longer works as
> an ATAPI/IDE either when I load it with an ISO-9660 CD:
>
>         # mount -t iso9660 /dev/hdc /mnt/cdrom
>         mount: /dev/hdc is not a valid block device
>
> One potential complication with my system is that it does have a real SCSI
> bus (via an Adaptec SlimSCSI 1480 card) but my ATAPI/IDE CD-RW is obviously
> not on that bus:
>
>         # cdrecord --scanbus
>         Cdrecord 1.8 (i686-pc-linux-gnu) Copyright (C) 1995-2000 J�rg Schilling
>         Using libscg version 'schily-0.1'
>         scsibus0:
>                 0,0,0     0) *
>                 0,1,0     1) *
>                 0,2,0     2) *
>                 0,3,0     3) *
>                 0,4,0     4) *
>                 0,5,0     5) *
>                 0,6,0     6) 'EXABYTE ' 'EXB-85058HE-0000' '0112' Removable Tape
>                 0,7,0     7) *
>
> Here's some more info on my real SCSI bus:
>
>         Sep 18 06:00:28 ctrobot cardmgr[500]: executing: 'modprobe apa1480_cb'
>         Sep 18 06:00:28 ctrobot kernel: cs: cb_config(bus 35)
>         Sep 18 06:00:28 ctrobot kernel:   fn 0 bar 1: io 0xa00-0xaff
>         Sep 18 06:00:28 ctrobot kernel:   fn 0 bar 2: mem 0x60050000-0x60050fff
>         Sep 18 06:00:28 ctrobot kernel:   fn 0 rom: mem 0x60040000-0x6004ffff
>         Sep 18 06:00:28 ctrobot kernel:   irq 11
>         Sep 18 06:00:28 ctrobot kernel: apa1480_attach(device 23:00.0)
>         Sep 18 06:00:28 ctrobot kernel: aic7xxx: <Adaptec PCMCIA SCSI controller> at 
>PCI 35/0/0
>         Sep 18 06:00:28 ctrobot kernel: aic7xxx: MMAPed I/O failed, reverting to 
>Programmed I/O.
>         Sep 18 06:00:28 ctrobot kernel: (scsi0) <Adaptec PCMCIA SCSI controller> 
>found at PCI 35/0/0
>         Sep 18 06:00:28 ctrobot kernel: (scsi0) Narrow Channel, SCSI ID=7, 3/255 SCBs
>         Sep 18 06:00:28 ctrobot kernel: (scsi0) Downloading sequencer code... 423 
>instructions downloaded
>         Sep 18 06:00:28 ctrobot kernel: scsi0 : Adaptec AHA274x/284x/294x 
>(EISA/VLB/PCI-Fast SCSI) 5.1.28/3.2.4
>         Sep 18 06:00:28 ctrobot kernel:        <Adaptec PCMCIA SCSI controller>
>         Sep 18 06:00:28 ctrobot kernel: scsi : 1 host.
>         ...
>         Sep 18 06:00:33 ctrobot kernel: (scsi0:0:6:0) Synchronous at 5.0 Mbyte/sec, 
>offset 15.
>         Sep 18 06:00:33 ctrobot kernel:   Vendor: EXABYTE   Model: EXB-85058HE-0000  
>Rev: 0112
>         Sep 18 06:00:33 ctrobot kernel:   Type:   Sequential-Access                  
>ANSI SCSI revision: 02
>         Sep 18 06:00:33 ctrobot kernel: Detected scsi tape st0 at scsi0, channel 0, 
>id 6, lun 0
>         Sep 18 06:00:33 ctrobot cardmgr[500]: executing: './scsi start st0'
>
> What's wrong with this picture? Do I need to make certain static modules in
> the kernel loadable and/or vice-versa? Should I get rid of IDE CD-ROM support?
> Does ide_scsi not work when there's a real SCSI bus on the machine?
> Any other ideas?
>
> Thanks in advance for any help that anyone can provide.
> -----------
> Roger Davis
> University of Hawaii/SOEST
> [EMAIL PROTECTED]


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

From: David <[EMAIL PROTECTED]>
Subject: How do i screengrab
Date: Wed, 20 Sep 2000 14:52:46 +1200

How do i screengrab with red hat 6.2

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: "su" dumps core !? HELP!
Date: 20 Sep 2000 03:04:17 GMT
Reply-To: [EMAIL PROTECTED]

On Tue, 19 Sep 2000 10:49:10 -0700, Alex Khomenko wrote:
>Has anyone seen this happen? Any suggestions? I'm lost...
>mybox:~> su
>Password:
>Segmentation fault

This is a bad sign.  Try this:  As root, do something like
  strace su USERNAME
and see where it's falling over.  When something as well-tested and
important as su decides to start dying, it might be that you're having
hardware problems... does anything else die unexpectedly at odd moments,
like vi?

-- 
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: "Chakravarthy Sannedhi" <[EMAIL PROTECTED]>
Subject: console permissions
Date: Tue, 19 Sep 2000 22:08:41 -0500

We at UAB are using Redhat linux for a particular project on VoIP. We got a
problem with the console permissions. X is working only with the root and
when i try to run with my user name it is displaying
*Perhaps you do not have console ownership?*,
and it is prompting for some command!
I tried the following 3 things to get around this problem.
1. Added the following line in the /etc/pam.d/xserver
*account required /lib/security/pam_permit.so* to the existing lines.
2. chmod go+w /dev/console
3. rpm --freshen *.rpm

still not happy. I mean startx runs fine as root, just not as any other
normal user!
what else could be done.

thanks
Chakravarthy K Sannedhi







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

From: "Chakravarthy Sannedhi" <[EMAIL PROTECTED]>
Subject: startx problem with the normal user
Date: Tue, 19 Sep 2000 22:17:35 -0500

We at UAB are using Redhat linux for a particular project on VoIP. We got a
problem with the console permissions. X is working only with the root and
when i try to run with my user name it is displaying
*Perhaps you do not have console ownership?*,
and it is prompting for some command!
I tried the following 3 things to get around this problem.
1. Added the following line in the /etc/pam.d/xserver
*account required /lib/security/pam_permit.so* to the existing lines.
2. chmod go+w /dev/console
3. rpm --freshen *.rpm

still not happy. I mean startx runs fine as root, just not as any other
normal user!
what else could be done.

thanks
Chakravarthy K Sannedhi



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

From: "Yong Chiew Ning" <[EMAIL PROTECTED]>
Subject: HoW to install Xprog.tgz?
Crossposted-To: alt.os.linux,redhat.general
Date: Wed, 20 Sep 2000 14:23:44 +1100

I have upgraded to XFree4.0.1 and everything is working fine, now I need
to compile other packages which requires XFree86 headers (ie Xprog.tgz).

Question is, how do I go round installing the Xprog.tgz alone. Can I just
extract the package and move to appropriate directories. Further to that,
which directories should it reside under?

Please help, thanks in advance, appreciate all replies.

Best regards,
CN

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

From: Daisuke Kanzaki <[EMAIL PROTECTED]>
Subject: Where are ipchains logs stored?
Date: Wed, 20 Sep 2000 12:29:10 +0900

Hello,

I am using ipchains as a firewall when estabilishing dial-up.
                                                 (ppp connection)

For example, in case of rejecting smtp port from the outside,
"ipchains-mini-howto" says that 
ipchains -A input -i ppp0 -p tcp -s 0/0 -d $localip smtp -j REJECT 

In addition to that, appending -l or --log option, I can understand
that ipchains logging is available from man ipchains.

But I don't know where the ipchains logs are stored.
I saw /var/log and /proc/net/ip_masq. But I could not find the
related things.

Does anybody know where they are stored? Please advise to me.


Daisuke Kanzaki

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

From: [EMAIL PROTECTED] (Hal Burgiss)
Subject: Re: Where are ipchains logs stored?
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: Wed, 20 Sep 2000 03:34:40 GMT

On Wed, 20 Sep 2000 12:29:10 +0900, Daisuke Kanzaki <[EMAIL PROTECTED]>
wrote:
>But I don't know where the ipchains logs are stored.
>I saw /var/log and /proc/net/ip_masq. But I could not find the
>related things.

Look in /var/log/messages. If not there, check some of the other files
in that dir.

-- 
Hal B
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
--

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

From: [EMAIL PROTECTED]
Subject: Re: How do i screengrab
Date: Wed, 20 Sep 2000 03:32:48 GMT

In article <[EMAIL PROTECTED]>,
  David <[EMAIL PROTECTED]> wrote:

> How do i screengrab with red hat 6.2

/usr/bin/ksnapshot


-   tony



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

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

From: [EMAIL PROTECTED] (MaryP)
Subject: Re: X-windows newbie question
Date: 20 Sep 2000 03:46:31 GMT

In article <[EMAIL PROTECTED]>, Patton Echols
<[EMAIL PROTECTED]> wrote:


> I'm using RH 6.1.  I managed to find WindowMaker on the CD and RPM'd
> it.  Managed to get it to run as well.  (By creating a .xinitrc for
> individual user, if I can get it looking like I want i'll make it
> system  wide) Frankly it is butt ugly . . . 

LOL 
I told you where to find it, but I don't use it! Try icewm if you want
something small and fast. I found icewm on a CDROM that came with a
magazine but I am sure it's online someplace. Also I have seen Blackbox
recommended but have not used it. 

I also do not hate fvwm though configuring it is a bitch. You can get it
set up quite nicely if you take the time. 

All I know is what one person likes the next person hates, so good luck. 

Mary P.

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

From: [EMAIL PROTECTED]
Subject: Re: Where is loadkeys.*.tar.gz
Date: Wed, 20 Sep 2000 03:48:00 GMT

In article <0pPx5.1186$[EMAIL PROTECTED]>,
  "Phlip" <[EMAIL PROTECTED]> wrote:

> Newsgroupies:
> I apologize for taking such a lame question to humans, but Google
> returns nothing but lists-of-lists pages describing this instead of
> providing it.
> Where's the tarball for 'loadkeys'??
...

In the kbd package ftp://ftp.win.tue.nl/pub/linux/utils/kbd/ among
others.

-   tony


-




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

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

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux,redhat.general
Subject: Re: HoW to install Xprog.tgz?
Date: Wed, 20 Sep 2000 03:53:57 GMT

In article <[EMAIL PROTECTED]>,
  "Yong Chiew Ning" <[EMAIL PROTECTED]> wrote:

> I have upgraded to XFree4.0.1 and everything is working fine, now I
> need to compile other packages which requires XFree86 headers (ie
> Xprog.tgz).
> Question is, how do I go round installing the Xprog.tgz alone. Can I
> just extract the package and move to appropriate directories. Further
> to that, which directories should it reside under?
...

There are several methods, take your pick:

gunzip Xprog.tgz; tar xvf Xprog.tar

or

gunzip < Xprog.tgz | tar xvf -

or

tar xzvf Xprog.tgz

In each case read the README and/or INSTALL files to learn what needs to
be done.


-   tony



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

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

From: "Andrew N. McGuire " <[EMAIL PROTECTED]>
Subject: Re: How do i screengrab
Date: Tue, 19 Sep 2000 23:02:41 -0500

On Wed, 20 Sep 2000, David quoth:

D> How do i screengrab with red hat 6.2

Well, there are many ways, perhaps:

   import -window root somejpeg.jpg

anm
-- 
<|-|> ;undef $/; foreach our $" ( map chr() => split m~[\D+ <|-|>
<|-|> ]~ => <DATA> ) { print "@{ [ '' => '' ] }" }  __END__ <|-|>
<|-|>   74 117 115 116 32  97 110 111 116 104 101 114 32    <|-|>
<|-|>      80 101 114 108 32 72 97 99 107 101 114 10        <|-|>


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


** 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