Linux-Setup Digest #358, Volume #21               Sat, 2 Jun 01 23:13:12 EDT

Contents:
  Re: Linux Mouse question ("Shinan")
  Re: Epson Stylus 777 (Dave Uhring)
  Re: Can't find a dependency file for Samba (AWK) (Dave Uhring)
  CD Burning/SCSI emulation with RH 7.1 (root)
  CRON won't run my executable (Mark Johnson)
  Re: mount: /dev/cdrom has wrong major or minor number (Vilmos Soti)
  Re: lp: no devices found... (Dave Uhring)
  Re: slooooooooooooooooooooowwwwwwwwwwwwwww!!!!!!!!!!! (Bob Martin)
  Re: mount: /dev/cdrom has wrong major or minor number (mason elmore)
  Re: HELP:  Boot failure after IDE drive reconfiguration (David Efflandt)

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

From: "Shinan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux,alt.os.linux.mandrake,alt.os.linux
Subject: Re: Linux Mouse question
Date: Sat, 02 Jun 2001 21:03:18 -0400
Reply-To: [EMAIL PROTECTED]

I dont have a laptop but this might help: I have two mice on my desktop.
One is USB the other is a PS/2....Basically you will need two Inputdevice
sections in your XF86Config-4 file. One for your stick and one external mouse. Then 
you need to add another
input device to your server layout section. Here is my XF86Config-4. I
hope it helps...just use it as a basic template. I don't know how much
you know about linux so if you need more info let me know. I hope this
helps.


# File generated by XFdrake.

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
# **********************************************************************

Section "Files"

    RgbPath     "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Mandrake 6.0 and later now use a font server independent of
# the X server to render fonts.

    FontPath   "unix/:-1"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

    # Uncomment this to cause a core dump at the spot where a signal is
    # received.  This may leave the console in an unusable state, but may
    # provide a better stack trace in the core dump to aid in debugging
    #NoTrapSignals

    # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
    # This allows clients to receive this key event.
    #DontZap

    # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
    # sequences.  This allows clients to receive these key events.
    #DontZoom

    # This  allows  the  server  to start up even if the
    # mouse device can't be opened/initialised.
    AllowMouseOpenFail

   Option "BlankTime" "10"
   Option "StandybyTime" "15"
   Option "SuspendTime" "15"
   Option "OffTime" "20"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Keyboard section
# **********************************************************************

Section "InputDevice"

    Identifier "Keyboard1"
    Driver      "Keyboard"
    Option "AutoRepeat"  "250 30"

    Option "XkbRules" "xfree86"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"

EndSection

# **********************************************************************
# Pointer section
# **********************************************************************

Section "InputDevice"

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/mouse"
    Option "ZAxisMapping" "4 5"
# Option "ChordMiddle"

EndSection

Section "InputDevice"
    Identifier "Mouse2"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
    Option "Resolution" "1400"
#    Option "Emulate3Buttons"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection



Section "Module"

# This loads the DBE extension module.

    Load        "dbe"
    Load        "glx"


# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.

    SubSection  "extmod"
        #Option "omit xfree86-dga"
    EndSubSection

# This loads the Type1 and FreeType font modules

    Load        "type1"
    Load        "freetype"
EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier "monitor1"
    VendorName "Unknown"
    ModelName  "Unknown"


# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
    HorizSync  30-107


# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
    VertRefresh 48-120


EndSection



# **********************************************************************
# Graphics device section
# **********************************************************************

Section "Device"
    Identifier "Generic VGA"
    Driver     "vga"
EndSection

Section "Device"
    Identifier  "NVIDIA GeForce 256 (generic)"
    VendorName  "Unknown"
    BoardName   "Unknown"
    Driver      "nvidia"
#    VideoRam    4096
    # Clock lines


    # Uncomment following option if you see a big white block        
    # instead of the cursor!                                          
    #    Option      "sw_cursor"

    Option      "DPMS"
EndSection



# **********************************************************************
# Screen sections
# **********************************************************************


Section "Screen"
    Identifier "screen1"
    Device      "NVIDIA GeForce 256 (generic)"
    Monitor     "monitor1"
    DefaultColorDepth 16
    Subsection "Display"
        Depth       8
        Modes       "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       15
        Modes       "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1600x1200" "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       32
        Modes       "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection


Section "ServerLayout"
    Identifier "layout1"
    Screen     "screen1"

    InputDevice "Mouse1" "CorePointer"
    InputDevice "Mouse2" "SendCoreEvents"

    InputDevice "Keyboard1" "CoreKeyboard"
EndSection



In article <[EMAIL PROTECTED]>, "Mike
Hoover" <[EMAIL PROTECTED]> wrote:

> I just installed Linux Mandrake 8.0 on my laptop.  My laptop has one of
> those pointer sticks for mouse control.  However, I also sometimes use
> an external PS/2 mouse.  Linux will only let me use one of the them at a
> time.  If no mouse is plugged in, the stick works.  If the external
> mouse is plugged in then the stick doesn't work.  Is there a way I can
> make both of them work simultaneously?
> 
> Note: I believe, though I'm not sure, that the pointer stick is detected
> as a PS/2 mouse.  Can both of these mice occupy the same port?

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

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Epson Stylus 777
Date: Sat, 2 Jun 2001 20:12:50 -0500

Philip Neves wrote:

> Dave Uhring wrote:
> 
>> Philip Neves wrote:
>> 
>>> Has anyone got the Epson Stylus 777 to print in linux. I've been trying
>>> to get my new printer to work but none of the ghostscript drivers that
>>> are advertised to work seem to work at all. If anyone has fixed this
>>> same problem please let me tell me how you did it. I've even gone as far
>>> as to recompile ghostscript with the gimp-print drivers to fix the
>>> problem and no dice. I'm completely stumped. I've tried to use the
>>> apsfilter on http://www.apsfilter.org which I've had success with other
>>> printers in the past. But this one doesn't seem to work.
>>> 
>> 
>> The Linux Documentation Project has all kinds of good information.
>> 
>> http://www.linuxprinting.org/show_printer.cgi?recnum=464242
>> 
>> 
> 
> 
> Hasn't help me much. What I need is someone who got the thing working to
> let me know what drivers they used because there are a few different
> projects. The ones I've used haven't worked.
> 
> 

OK, you have rebuilt ghostscript.  What is the output of "gs -h"?  In other 
words, what does ghostscript show as printers supported?  Is one of those 
drivers listed?  If so, apsfilter will possibly not show the particular 
driver and must be fudged to make it work.  cd into /etc/apsfilter/lp and 
edit apsfilterrc/PRINTER='name_of_your_driver'.


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

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: Can't find a dependency file for Samba (AWK)
Date: Sat, 2 Jun 2001 20:31:22 -0500

Michael Heiming wrote:

> Roberto Mason wrote:
>> 
>> Your right, I have it, and it is installed, the version is:
>> 
>> Yet when I go to install samba 2.2 with all the dependencies, one of
>> which is pam 0.74.1-1, it tells me that "pam 0.74.1-1 requires awk".
>> Because of this, I assumed erroneously that awk was not installed. What
>> is it trying to tell me. Is it that I have the wrong version of awk?
>> 
>> Thanks
>> "Peter T. Breuer" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]...
>> > Roberto Mason <[EMAIL PROTECTED]> wrote:
>> > >  I've decided to upgrade to Samba 2.2.0, and all their dependencies,
>> > >  but
>> > > one. When I go upgrade it tell me that I need AWK. I do have GAWK,
>> > > and
>> have
>> >
>> > Gawk is awk. You have it. Look again at what it is telling you.
>> >
>> > Peter
> 
> Perhaps, there are just some symlinks missing?
> 
> which awk
> /usr/bin/awk
> 
> ls -al /usr/bin/*awk
> lrwxrwxrwx   1 root     root           13 Mar 16 01:37 /usr/bin/awk ->
> ../../bin/awk
> lrwxrwxrwx   1 root     root           14 Mar 16 01:37 /usr/bin/gawk
> ->../../bin/gawk
> -rwxr-xr-x   1 root     root         2990 Jul 29  2000 /usr/bin/igawk
> 
> ls -al /bin/*awk
> lrwxrwxrwx   1 root     root            4 Mar 16 01:37 /bin/awk -> gawk
> -rwxr-xr-x   1 root     root       132044 Jul 29  2000 /bin/gawk
> 
> Michael Heiming
> 

Unfortunately, the rpm package system does not look at what actually is 
installed but rather at its own database.  If pam is installed on RH-7.1, 
you already have pam-0.74-22 and have no further need to downgrade your pam 
installation.

It appears that the --nodeps option is going to have to be invoked to get 
that package installed.  If it later bitches about libraries, then you can 
get busy with symlinks.

It also appears that you have got the rpm package from www.samba.org.  That 
package is constructed for RH=7.0, not 7.1.  Moreover, there don't seem to 
be any samba-2.2.X packages for RH-7.1.  You might want to go to 
rpmfind.net and get the package for Mandrake Cooker - essentially the same 
basic system as RH-7.1 at this point in time.

http://rpmfind.net/linux/RPM/cooker//cooker/i586/Mandrake/RPMS//samba-2.2.1-7mdk.i586.html

Or try to build the binaries from the source package.  That way you are 
assured of having your dependencies satisfied.


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

Date: Sat, 02 Jun 2001 20:45:28 -0500
From: root <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,comp.os.linux.misc
Subject: CD Burning/SCSI emulation with RH 7.1

Hello,

I used to have RH 7.0 running the 2.2 kernel, and then I upgraded to 7.1

with the 2.4 kernel.  Both of my CD drives (IDEs) were working under
/dev/scd0 (the reader 0,0,0) and /dev/scd1 (the burner 0,1,0).  After
the upgrade, kudzu found my CD-ROM drive for some reason and added it to

/etc/hosts even though it was already set under /dev/scd0.  It is no
longer recognized as being SCSI.  My CD burner was left at /dev/scd1 and

is still recognized as a SCSI device, but is now at 0,0,0.  cdrecord's
scanbus option no longer can detect my reader so I can't make disc
copies as easily as I could before.  What should I do?

Adios,
            Pablo

--
=========================
http://www.pablojones.com
=========================




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

Subject: CRON won't run my executable
From: [EMAIL PROTECTED] (Mark Johnson)
Date: Sun, 03 Jun 2001 01:28:27 GMT

I created the following bash script:

#!/bin/bash
SRC_FILE=/home/mjohnson/stuff/something.txt
DST_FILE=`/usr/bin/timestamp -f /Archives/archive-%H:%M:%S.tar`
LOG=/home/mjohnson/archive.log
echo "creating archive: $DST_FILE" >> $LOG
cp $SRC_FILE $DST_FILE

I wrote the utility 'timestamp' which simply parses the command line and 
applies the strftime() formatters and prints the results to the screen.  I 
use it to create timestamps for use with filenames.  

When I run this script as root, it works perfect, but if I run in from CRON 
the DST_FILE is always empty.

I tried setting the group for this utility to 'bin' but that didn't seem to 
make a difference.  I don't understand way CRON can run this utitility.  Do 
i  have to call some special API in 'timestamp' in order for it to run 
properly?

thanks for your help...

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

Subject: Re: mount: /dev/cdrom has wrong major or minor number
From: Vilmos Soti <[EMAIL PROTECTED]>
Date: Sun, 03 Jun 2001 01:46:56 GMT

[EMAIL PROTECTED] (mason elmore) writes:

> Ever sence i have recompiled my 2.4.4 kernel it has been saying that.
> [masone@mason masone]$ ls -l /dev/cdrom
> lrwxrwxrwx    1 root     root            4 May 20 15:28 /dev/cdrom -> scd0
> 
> and that is pointing to the right place, and i am guessing that
> it has something to do with /etc/fstab, and i dont know what the
> major and minor numbers are. so

It has nothing to do with /etc/fstab. Did you compile scsi cdrom support
and your scsi interface's support into the kernel?

Check /proc/devices if scd or sr (I think) is there.

Vilmos

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

From: Dave Uhring <[EMAIL PROTECTED]>
Subject: Re: lp: no devices found...
Date: Sat, 2 Jun 2001 20:48:52 -0500

Laurent  Bloch wrote:

> Dave Uhring <[EMAIL PROTECTED]> wrote:
>> Laurent  Bloch wrote:
> 
>>> All is in the subject. The kernel has been compiled
>>> with the parallel port and parallel port printer
>>> options. MAKEDEV lp has been made. The printcap
>>> entry is:
>>> 
>>> lp|otero:\
>>>         :lp=/dev/lp0:\
>>>         :sh:pw#80:pl#72:px#1440:mx#0:\
>>>         :sd=/var/spool/lpd/lp:\
>>>         :af=/var/log/lp-acct:\
>>>         :lf=/var/log/lp-errs:
>>> 
>>> lpq says:
>>> 
>>> Status: cannot open '/dev/lp0' - 'No such device', attempt 1, sleeping
>>> 10...
>>> 
>>> The printer is a Lexmark Optra E312, the motherboard an
>>> ASUS S97- V.
> 
>> What is the ownership/group of /dev/lp0 and what are its permissions?
> 
>> If you are running RedHat-7 or 7.1, the owner/group should be root/lp or
>> lp/lp with 660 permission.
> 
> It' OK
> 
>> BTW, you do not have an input filter configured in /etc/printcap and
>> unless your printer already knows to add a CR after a LF, you are going
>> to have stair-step printing.
> 
> It is a PostScript printer, so I believe it doesn't need
> a filter.
> 
> I thougt it was maybe a hardware problem, so I've connected
> the printer to the Windows 2000 computer of my son : it works
> perfectly. It's a shame...
> 
> Laurent
> 
> 

On my system, ls -l /dev/lp0:

crw-rw----    1 root     lp         6,   0 Mar 23 22:37 lp0

Have you run "checkpc -f"?
Is your parallel port enabled in BIOS?  And, presuming you are using the 
installed kernel, is the parallel port module loaded?  Is this line in 
/etc/modules.conf

alias parport_lowlevel parport_pc


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

From: Bob Martin <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc
Subject: Re: slooooooooooooooooooooowwwwwwwwwwwwwww!!!!!!!!!!!
Date: Sat, 02 Jun 2001 20:58:58 -0500

Liverpool_fc wrote:
> 
> thank you for responding.
> which of these two names is a good example of a domain name.
> Linux
> or Linux.localdomain
> I have 128mb of memory. 250 mb swap. Pentium 3 - 700mh cpu.
> correction even telnet is extremely slow getting in.
> how do I check if the box sees all memory and swap.
> thank you again.
> 

localhost.localdomain for example. You can also set this in the sendmail config
file; however most people don't need sendmail running anyway since they use
their ISPs pop3 connection so you could just disable sendmail.

top/free are commands to check memory. If the swap shows then it's enabled, a
distro a while back had a bug in their setup that failed to enable swap. A slow
telnet connection could be a routing problem.
-- 

Bob Martin

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

From: [EMAIL PROTECTED] (mason elmore)
Subject: Re: mount: /dev/cdrom has wrong major or minor number
Date: 2 Jun 2001 19:05:01 -0700

Michael Heiming <[EMAIL PROTECTED]> wrote in message 
news:<[EMAIL PROTECTED]>...
> mason elmore wrote:
> > 
> > Ever sence i have recompiled my 2.4.4 kernel it has been saying that.
> > [masone@mason masone]$ ls -l /dev/cdrom
> > lrwxrwxrwx    1 root     root            4 May 20 15:28 /dev/cdrom -> scd0
> > 
> > and that is pointing to the right place, and i am guessing that it has something
> > to do with /etc/fstab, and i dont know what the major and minor numbers are. so
> > i just want some help with any further instructions.
> 
> /usr/src/linux/Documentation/devices.txt
> Contains the settings, you can rm the device
> and recreate it with mknod. "man mknod" for more info.
> You don't need to change your fstab, again rtfm...
> 
> Good luck
> 
> Michael Heiming

What you told me to do made no sence to me.  all it did was get me more confused

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

From: [EMAIL PROTECTED] (David Efflandt)
Crossposted-To: comp.os.linux.help,comp.os.linux.misc
Subject: Re: HELP:  Boot failure after IDE drive reconfiguration
Date: Sun, 3 Jun 2001 03:09:15 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Sat, 02 Jun 2001 16:27:42 GMT, sdrumm3 <[EMAIL PROTECTED]> wrote:
> This should be an interesting one....The short version is that I went from 3
> hard disks and a DVD-ROM drive to 2 hard disks, a DVD, and a CD-Burner and
> now LILO fails to load RedHat Linux v7.0
> 
> Original Configuration:
> hda : 12.9GB w/ System Commander 2000 v5.01 and Windows-98 (FAT-32)
> hdb : 2.4GB (FAT-32)
> hdc : 19.5GB RedHat Linux v7.0 (ext2) w/ LILO loaded on the root superblock
> (not the MBR)
> hdd : DVD-ROM drive
> 
> Synopsis:
> I pulled the 2.4GB drive (hdb) and installed a Phillips PCRW800 CD-Burner in
> it's place.  System Commander, after some tinkering, recognized the 12.9GB
> as Drive 0 and the 19.5GB as Drive 1; however, all attempts to boot Linux
> fail w/o any error messages.  It looks like System Commander is performing
> the handoff correctly (I re-installed it and checked the partition table
> configuration) but LILO isn't working.

"Tinkering" sounds like you were trying to get it to do something it did
not want to do (maybe for good reason).

Does your CMOS setup show the CD-burner and still show the 19.5 as your
3rd drive?  I noticed a phantom drive in Linux once when I removed one in
the middle because BIOS moved them down to fill the gap, but LILO on the
first drive had no trouble booting past that to the real drive.  If System
Commander sees the 19.5 as Drive 1, that might be such a phantom drive,
and it may be trying to boot hdb.  That may be why you do not get a peep 
from LILO.
 
> Where I am Now:
> Running Win-98 (ugh!) and w/o access to any of the partitions on the 19.5GB
> ext2 drive (did I mention I don't have Linux rescue disks - sigh).  I'm
> considering the following options:
> 
> 1.  Restore the original drive configuration, get Linux back up, and make
> some rescue disks so I can go back in later.

Probably a good idea, so even if you find you have to move it down to hdb, 
you can go in and fix lilo.conf and fstab to point to the proper drive.

> 2.  Re-Install LILO from the RedHat installation CD.

Can you access the CD-burner or DVD drive in current configuration?

> Suggestions?  Would the hda, hdc, and hdd designations under Linux be
> altered as a result of the CD-Burner installation?  I didn't think so,
> but....

But, your BIOS and/or System Commander might see them differently if 
they do not see the CD-burner sandwich.

-- 
David Efflandt  (Reply-To is valid)  http://www.de-srv.com/
http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

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


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

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

Reply via email to