Linux-Setup Digest #360, Volume #21 Sun, 3 Jun 01 06:13:10 EDT
Contents:
Re: CRON won't run my executable (Mark Johnson)
Re: slooooooooooooooooooooowwwwwwwwwwwwwww!!!!!!!!!!! ("news1.sympatico.ca")
Re: Install of SuSE 7.1 hangs in reboot (N. Yeamans)
Re: Apache question (J Sloan)
Re: help with color and $PS1 (David. E. Goble)
Re: help with color and $PS1 (David. E. Goble)
Can't fix resolver (Mike Diehl)
Re: Linux Mouse question (BMK)
Re: Epson Stylus 777 (Achim Linder)
Re: UDMA drives and linux DMA support ("Jan Oberlaender")
----------------------------------------------------------------------------
Subject: Re: CRON won't run my executable
From: [EMAIL PROTECTED] (Mark Johnson)
Date: Sun, 03 Jun 2001 05:10:57 GMT
[posted and mailed]
[EMAIL PROTECTED] (David Efflandt) wrote in
<[EMAIL PROTECTED]>:
>On Sun, 03 Jun 2001 01:28:27 GMT, Mark Johnson <[EMAIL PROTECTED]>
>wrote:
>> 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.
>
>Assuming that you are getting a log entry, try the following to also log
>stdout or stderr from the copy process:
>
>cp $SRC_FILE $DST_FILE >> $LOG 2>&1
>
>> 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?
>
>What are permissions of 'timestamp', /Archives dir and this script?
>Are you setting cron with 'crontab -e' as user mjohnson (or if it needs
>root access with 'crontab -e' as root?
>
Well the problem isn't with the cp line, it's with setting the variable.
DST_FILE=`/usr/bin/timestamp -f /Archives/archive-%H:%M:%S.tar`
this var is set properly if I run the script as root but not when it's
running by cron. The variable is empty.
I did crontab -e as root...
(ps: ignore the .tar part of it, I was cutting down the script and made
some typos when posting. The problem is DST_FILE='/usr/bin/myutil' doesn't
seem to work running as a cron job...)
------------------------------
Reply-To: "news1.sympatico.ca" <[EMAIL PROTECTED]>
From: "news1.sympatico.ca" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc
Subject: Re: slooooooooooooooooooooowwwwwwwwwwwwwww!!!!!!!!!!!
Date: Sun, 3 Jun 2001 01:36:51 -0400
top:
the "mem" line : what's the first number? it should be the amount of memory
in your machine in kilo bytes.
I have 256mb which shows up as 261000 bytes or something.
"Liverpool_fc" <[EMAIL PROTECTED]> wrote in message
news:9f6kpo$r3e$[EMAIL PROTECTED]...
> hello,
> i got a rh6.2 box that boots and runs extremely slow at the console.
> if i telnet into the box from a win98 client, it runs ok.
>
> but netscape, control panel or any gui app launched through gnome takes
> 30 -60 minutes to start. on boot half way through it stops and freezes at
> startting sendmail. well it appears to freeze. but if a few hours go by it
> will eventually come up. i am able to ping it while it boots.
>
> i tried "top". this does not tell me much.
> thank you for any input.
>
>
>
>
------------------------------
From: [EMAIL PROTECTED] (N. Yeamans)
Subject: Re: Install of SuSE 7.1 hangs in reboot
Date: Sun, 03 Jun 2001 06:09:04 GMT
Upon the 02 of Jun in the hour of 15 MDT, the great oz1dcv did decree:
> On Sat, 02 Jun 2001 00:57:30 GMT, [EMAIL PROTECTED] (N. Yeamans) wrote:
>>...could the kernel be compiled for an incompatible processor?
> Well, it is a Pentium 100 MHz, and the kernel seems to be for 386i, so
> it should be all right.
Sounds good. I believe the Pentiums are fully backwards compatable with
386.
>>about this. Some drivers will cause problems with some other device while
>>probing for the device it was made for.
>
> sounds very reasonable, but I am not sure how to check this.
I don't think there is a way to tell...you just have to recompile your kernel
with only the drivers you need (and try making them built-in). Crashing after
starting syslogd may not seem like an indicater of this, however maybe your
startup scripts are loading modules at this point... If this is the case,
just putting the new kernel in won't help because it will still try to load
the modules. You may want to try commenting out any lines with modprobe,
depmod, or insmod in your startup scripts. (just make backups of the scripts
for when you want to restore the system)
> Its installed as libc.so.6
Yes, but this is probably a symbolic link, right? At this point, it should be
correct anyway, because you say below that ldd gives no errors.
>>Try running 'ldconfig -r /mnt' where /mnt
> this command returned in a couple of seconds with no messages
That's all the output it gives, it just updates the /etc/ld.so.cache file
>>Try using ldd on the programs that are used in boot up
> No errors
Sounds good.
> The echo command shows that the syslog script completes; and after
> that I have disk activity for a couple of seconds before the screen
> goes blank and everything stops. My problem is that I haven't found
> out where the syslog script is started from, and I cannot find out
> what is supposed to be the next script i.e. the one that faults.
> I have been through all the files in etc/init.d and etc
That just gave me an idea, since it dies just after syslogd starts, maybe
the reason is listed in your log files. Try looking in /var/log to see
what the messages,syslog,debug,warnings files say. They could have other
names, so if you don't find them, try looking in the /etc/syslog.conf file to
see what they are.
/etc/inittab will list which scripts are run on bootup. The ones you are
interested will have wait, bootwait, or once in the 3rd field of the
line. The 4th field is the name of the script/program (may be called rc.S
and rc.M). If you can't find it, then send a listing of your inittab file and
I'll be able to help. BTW 'man inittab' and 'man init' will tell you more
about this.
One other thing you can try is changing the scripts to use the '-v' option.
This will print every line of the script as it is run. The first line should
say #!/bin/sh Change it to #!/bin/sh -v If it says csh or bash, that is
okay too.
> Thank you, and thank you for your suggestions, I can sure need it.
Happy to help. I just hope you're not getting too frustrated by now. :)
--
Norman Yeamans - [EMAIL PROTECTED]
------------------------------
From: J Sloan <[EMAIL PROTECTED]>
Crossposted-To:
linux.redhat.misc,redhat.config,redhat.networking.general,comp.os.linux.admin,comp.os.linux.help,comp.os.linux.misc,comp.os.linux.questions
Subject: Re: Apache question
Date: Sun, 03 Jun 2001 06:33:41 GMT
Lamar Thomas wrote:
> I am running RH 7.1 and I have FTP and Apache web servers working.
> However, after rebooting my Linux box no one can connect to my Apache
> web server until I issue the following command: # "service httpd
> restart".
In my experience with Linux, reboots are for hardware
upgrades, so we're talking about a once in a blue
moon thing here to start with -
> Anyone know how I can make Apache auto start after a reboot? Thanks for
> any and all help.
Any of the elementary Linux runlevel editors will do.
ntsysv, tksysv, or even the command-line
utility, "chkconfig", e.g. "chkconfig --list httpd"
cu
jjs
------------------------------
From: goble@gtech (David. E. Goble)
Crossposted-To: alt.linux,aus.computers.linux,comp.os.linux.development.apps
Subject: Re: help with color and $PS1
Date: Sun, 03 Jun 2001 06:49:51 GMT
Reply-To: goble@gtech
On Fri, 1 Jun 2001 08:59:57 -0400, Guillaume
<[EMAIL PROTECTED]> wrote:
>
>Did you tried :
>
>PS1="\n\[\033[1;35m\]IBM 686/pr120+ Linux RedHat 6.2
>\[\033[0;36m\]\$(date)\n\[\u@\h \W]\\$ \[\033[0m\]"
>
Hi G;
Yep, tried that. No change.
The other replies suggestions have one thing in common. The double
quote is replaced with a single quote.
However they did not work either.
------------------------------
From: goble@gtech (David. E. Goble)
Subject: Re: help with color and $PS1
Date: Sun, 03 Jun 2001 06:51:23 GMT
Reply-To: goble@gtech
On Fri, 01 Jun 2001 04:34:26 GMT, [EMAIL PROTECTED] (N. Yeamans) wrote:
>
>See if this helps: '\[\033[37;40;0;10m\]' I think it resets all colors and
>highlightings. I tested it in my virtual term, rxvt, and xterm. Appears to
>work, but I just pulled it out of code I wrote a year ago...don't remember how
>it works.
>
Hi Norman;
It did not seem to do anything.
------------------------------
From: Mike Diehl <[EMAIL PROTECTED]>
Subject: Can't fix resolver
Date: Sun, 03 Jun 2001 02:52:36 -0600
This is a multi-part message in MIME format.
==============B52C1C68DD0CD1D4B13745B8
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi all.
I have a linux box and a new DSL link. I am able to ping internet hosts
by IP address. I can ping them if I have an entry for them in
/etc/hosts.
I have turned off my local DNS server for now.
However, I can't resolve names. I've tried ping, nslookup and dig.
The queries are getting out to the server; and replies are coming back,
according to tcpdump. But dig reports that the connection timed out.
Any help would be much appreciated.
Mike Diehl.
==============B52C1C68DD0CD1D4B13745B8
Content-Type: text/x-vcard; charset=us-ascii;
name="automoton.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Mike Diehl
Content-Disposition: attachment;
filename="automoton.vcf"
begin:vcard
n:Diehl;Mike
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
fn:Mike Diehl
end:vcard
==============B52C1C68DD0CD1D4B13745B8==
------------------------------
From: BMK <[EMAIL PROTECTED]>
Subject: Re: Linux Mouse question
Crossposted-To: comp.os.linux,alt.os.linux.mandrake,alt.os.linux
Date: Sun, 03 Jun 2001 09:21:56 GMT
Shinan wrote:
> 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?
>
With my laptop, if a mouse os connected before booting then the trackpoint
is disabled and the mouse works.
There might be a BIOS setting which decides whether one or both pointing
devices work.
Brian
------------------------------
From: [EMAIL PROTECTED] (Achim Linder)
Subject: Re: Epson Stylus 777
Date: Sun, 3 Jun 2001 11:25:56 +0200
On Sat, 02 Jun 2001 21:07:50 GMT, 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.
Depends on the distribution. Check with /sbin/lsmod for parport_pc lp
and parport and try to print a PS file to /dev/lp0 with gs
(as described in the Printing Howto) to make sure it's not a spooler
or filter issue.
>I've even gone as far as to recompile ghostscript with the gimp-print
>drivers to fix the problem and no dice.
Which compiler did you use?
Achim
------------------------------
From: "Jan Oberlaender" <[EMAIL PROTECTED]>
Subject: Re: UDMA drives and linux DMA support
Date: Sun, 03 Jun 2001 11:48:24 +0200
In article <[EMAIL PROTECTED]>, "Dave Uhring"
<[EMAIL PROTECTED]> wrote:
> When it tells you that DMA is disabled, DMA is disabled. When you
> configured your kernel, you needed to select yes in 2 places to use DMA
> on your HDC. Also, you must select the chipset you use. Did you do all
> of that?
I can't specifically select the piix4 in the kernel config. But I
activated these:
- Generic PCI IDE chipset support
- Generic PCI Bus-Master DMA support
- Use DMA by default when available
That should be enough; on bootup linux recognizes my piix4, but it
doesn't use DMA. Anything missing?
Thanks
Jan
------------------------------
** 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
******************************