Linux-Misc Digest #12, Volume #27 Sat, 3 Feb 01 16:13:02 EST
Contents:
Re: export variables to calling shell in a shell-script (Mark Post)
Re: modem on rh7 (Silviu Minut)
Re: Convert Word-DOC to PostScript (John Hasler)
How to measure system load? ("OpenMind")
Re: DHCP question ("JARRETT GRAHAM")
Re: Kernel NFS problems...help (Bob Sully)
Re: Modem works in RH6.2, not 7.0 (Silviu Minut)
Re: Using KVM switch with SuSE 6.4 ("John G. Sandell")
Problem restoring a tar of /dos (Joe Morris)
Re: Convert Word-DOC to PostScript (Frank Preut)
help, unlock file ([EMAIL PROTECTED])
Re: Macintosh disk images in Linux / win9x ? (Rod Smith)
Re: channel 0: istate 4 != open (Johan Ferner)
Re: Problem restoring a tar of /dos (Rod Smith)
help, unlock file ([EMAIL PROTECTED])
flash plugin (Danita Hartley)
Re: help, unlock file (David)
Re: Zip command (Mark Bratcher)
Re: default PATH for new user loaded from where? (Mark Bratcher)
----------------------------------------------------------------------------
From: [EMAIL PROTECTED] (Mark Post)
Subject: Re: export variables to calling shell in a shell-script
Date: Sat, 03 Feb 2001 19:13:22 GMT
On Sat, 03 Feb 2001 17:16:02 GMT, Holger Hartmann
<[EMAIL PROTECTED]> wrote:
>Hi!
>the (bash) shell-script
>-----
>#!/bin/sh
>export blubber=blabber
>
>-----
>should set the variable blubber to the value blabber in the shell, from
>where I call the script...but it DOESN'T...any suggestions?
Yes, invoke it differently. Do either
source scriptname
or
. scriptname
Either one will run the script in the current shell, and not a sub-shell.
Mark Post
Postmodern Consulting
Information Technology and Systems Management Consulting
To send me email, replace 'nospam' with 'home'.
------------------------------
From: Silviu Minut <[EMAIL PROTECTED]>
Subject: Re: modem on rh7
Date: Sat, 03 Feb 2001 14:16:04 -0500
Get the modem resources from Win2k (irq, i/o). Then in Linux, in /etc/isapnp.conf
uncomment the stanza corresponding to those resources, not whatever it crosses
your mind, otherwise most likely you would be using resources already assigned,
so you have conflicts. This is the hardware part. The modem will use those
resources when trying to "talk" to the kernel. Now the software part: use
setserial to tell the kernel what resources it should expect from the modem.
E.g., if the modem uses irq 11, then
setserial /dev/modem irq 11
Of course, /dev/modem must point to the appropriate /dev/ttyS?. If this works (I
guarantee it will, unless there's something weird with your modem), then put the
setserial command in some init script (e.g. at the end of /etc/rc.d/rc.local).
[EMAIL PROTECTED] wrote:
> Hello all,
> I am trying to set up my modem in rh7. I have a us robotics internal
> 56k isa modem. If I do a pnpdump to isapnp.conf it shows the modem. I
> have set the ioport to 3f8 and irq 4 in isapnp.conf. Looking at what is
> in the log files, it shows the modem also. I have tried to use
> setserial to autoconfig the modem. I have also tried use set serial to
> manually configure all of it, uart, irq. No matter what I do the modem
> doesnt respond in minicom.
> This is the same thing that I did in rh6.1/6.2. For some reason it is
> no longer working. Any Ideas?????
>
> Thanks in advance,
> Andrew Eaton
>
> Sent via Deja.com
> http://www.deja.com/
------------------------------
From: John Hasler <[EMAIL PROTECTED]>
Subject: Re: Convert Word-DOC to PostScript
Date: Sat, 3 Feb 2001 17:25:30 GMT
[EMAIL PROTECTED] writes:
> Even I'm looking out for a command line tool (unix/win) to convert word
> or ms-office files to PS format
You could feed the output of 'strings file.doc' to Ghostscript...
--
John Hasler
[EMAIL PROTECTED] (John Hasler)
Dancing Horse Hill
Elmwood, WI
------------------------------
From: "OpenMind" <**Mail Free America**>
Subject: How to measure system load?
Date: Sat, 3 Feb 2001 11:49:26 -0800
Using a cluster of computers, some of which will awakened as the computing
load on their partners reaches maximum. Looking for a good strategy to
measure load. Several commands seem to offer information.
The simplest I have found is 'uptime,' which advises "system load averages
for 1, 5, and 15 minutes."
Does anybody know what the programmer's idea of "load" entails? CPU
utilization?
Put simplistically, my idea of a 100% loaded system is one on which the
launching of new processes or tasks begins to slow down already-running
processes. I wonder if uptime's idea of load is a good measure of this.
Thanks
====== Posted via Newsfeeds.Com, Uncensored Usenet News ======
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
======= Over 80,000 Newsgroups = 16 Different Servers! ======
------------------------------
From: "JARRETT GRAHAM" <[EMAIL PROTECTED]>
Subject: Re: DHCP question
Crossposted-To: comp.os.linux.networking
Date: Sat, 03 Feb 2001 19:45:13 GMT
type as root at the console or in an xterm
"route add host 255.255.255.255 eth0" or " route add net 255.255.255.255
eth0" or whatever interface you are using
windows 9x clients need it to get a response from a true DHCP Server
------------------------------
From: Bob Sully <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux.networking,linux.dev.kernel
Subject: Re: Kernel NFS problems...help
Date: Sat, 03 Feb 2001 12:03:26 -0800
"Peter T. Breuer" wrote:
Peter - I will take a look at the patch code.
I'll be happy to notify Alan Cox, if you'll send me his e-mail address.
Thanks very much -- Bob
> > By the way (Peter), I tried a recent version of unfsd (2.2-47beta); no
> > luck under 2.4.1; it does work OK under 2.2.17.
>
> OK, so it must be a VFAT change .. if you wanted to locate the bug
> you would take the 2.2.17 msdos/vfat dir and plug it into 2.2.18
> to start pinning down where it is. Or just eyeball at the vfat patch
> slice from 2.2.17 to 2.2.18.
>
> You'd also want to try exporting a umsdos directory to see if that
> fixes it (mount the fs as umsdos instead of vfat).
>
> I'll see if I can verify it.
>
> Alan Cox needs to be notified about this one.
>
> Peter
------------------------------
From: Silviu Minut <[EMAIL PROTECTED]>
Subject: Re: Modem works in RH6.2, not 7.0
Date: Sat, 03 Feb 2001 15:02:29 -0500
As root, do a
/sbin/lsmod
to see what modules you have installed. If you have usb-uhci, then remove it
/sbin/modprobe -r usb-usci
and try the modem. You probably also have a line
alias usb-controller usb-uhci
in /etc/modules.conf. Comment that out (put a # in front of it). This is what
causes the usb module (or any other module for that matter) to be loaded at
boot.
Jess Canada wrote:
> I have an ActionTec Call Waiting 56k PCI modem that worked under Red Hat
> 6.2 for me very well. I have since installed RH7.0 (as a fresh install,
> not an upgrade) and cannot get the modem to work at all.
>
> This is how I set it up: I do "cat /proc/pci" and get the I/O port and the
> IRQ, and put those in the setserial command: "setserial /dev/modem uart
> 16550A port 0x1800 irq 9" and that worked fine in RH6.2. But now, with
> RH7.0, that same procedure doesn't work, although the port and irq are the
> same. I did notice that the USB driver that 7.0 has uses IRQ 9, like my
> modem, so I didn't know if that could cause a conflict, but they should be
> able to share. If not I'd be happy not to have the USB driver anyway, I
> don't need it.
>
> If anyone knows how I can fix this so I can use my modem, I would really
> appreciate it. Sorry, I'm a beginner. Also, email any responses to me at
> [EMAIL PROTECTED] if you can, since I might not be able to check the
> newsgroup. Thanks,
>
> Jess Canada
> [EMAIL PROTECTED]
------------------------------
From: "John G. Sandell" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.suse
Subject: Re: Using KVM switch with SuSE 6.4
Date: Sat, 03 Feb 2001 20:04:28 GMT
Bill Keck wrote:
>
> I am trying to use a KVM switch to share the keyboard, monitor, and mouse
> between my spare Win98 box and my SuSe 6.4 box. I can boot the SuSE box
> just fine, use the equipment properly, flip the switch to my Win98 box, and
> use the equipment properly. The problem occurs when I switch back to my
> SuSE box. The keyboard and mouse hang. I normally have to do a hard reset
> in order to use my SuSE box again. Does anyone know what setting I need to
> make so that my SuSE box doesn't freeze? Does SuSE just not like KVM
> switches? Any help is appreciated.
When I used CuSE 6.4, had no problem with a 4-port CompuCale KVM. Now at
SuSE 7.0, still no problem.
Could be you have to it the shift key or move the mouse to wake up power
saving features of the computer?
John Sandell
------------------------------
From: Joe Morris <[EMAIL PROTECTED]>
Subject: Problem restoring a tar of /dos
Date: Sat, 3 Feb 2001 20:09:24 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]
Ooops, I think I've got a problem with how I've been backing-up
my Windows95 partition. Under Mandrake, I had the equivalent of
mount -t msdos /dev/sda1 /dos
Then I would do a tar of it to 4mm tape. This had always worked
fine if I needed to restore a few files, etc.
Well, I needed to do a complete restore of /dos and I could get the
Windows partition to boot but all the "long" filenames were screwed up:
\progrm1~~ instead of \Program Files
So whatever the hack MS had written to fake long names was broken.
I tried doing the restore with "mount -t msdos" and "mount -t vfat"
both with the same result.
Is there any way to get this to work right? If not, is there some
script that could run thru the fs fixing common Windows' long names?
I'd hate to have to rebuild this thing from scratch.
Any ideas are welcome..... thanks!
--
Joe Morris, SysAdmin and Not Insane
Atlanta stories: http://www.olagrande.net/users/jolomo/atlanta.html
------------------------------
From: [EMAIL PROTECTED] (Frank Preut)
Subject: Re: Convert Word-DOC to PostScript
Date: 3 Feb 2001 21:20:00 +0100
Reply-To: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, Esteban Flocco wrote:
>On Wed, 31 Jan 2001 10:23:28 +0100, [BRDLocutus <[EMAIL PROTECTED]> wrote:
>>Hi,
>>can anyone here tell me where to find a Linux-Tool to convert Word Documents
>>to PS (PDF would be ok, too) ?
>>
>Hi
>
>You can do that in four steps:
>
>First, convert the doc file to html with wvHtml (though there are
>problems with some embedded images). Then, convert the html file to LaTeX
>with html2latex. After that, you have to run latex to produce a dvi
>file. Finally, you can convert the dvi file to ps with dvips or to pdf
>with dvipdf.
>
you could of course convert the html file directly into ps with
html2ps.. saves you two out of four steps.. ;-)
frank.
--
[EMAIL PROTECTED] // icq# 49188243
gpg public key: http://people.blinx.de/fpreut/pgpkey/gpg-public-key.asc
fingerprint: A00A 8808 928A 8EB9 E6C0 AADB FA5F D25D F3DD 0BC4
"..doch warum sollte nicht jeder einzelne aus seinem leben
ein kunstwerk machen koennen??"
michel foucault
------------------------------
From: [EMAIL PROTECTED]
Subject: help, unlock file
Date: Sat, 03 Feb 2001 20:39:50 GMT
i locked a conf file under redhat 7, to deny anyone from editing it..
but i forgot the command to unlock it...
<note>Hey, I found out that locking works</note>
mv, cp and rm -f does not work, since i cant unlink the file...
does anyone know how to unlock it?
Gerard
Sent via Deja.com
http://www.deja.com/
------------------------------
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Macintosh disk images in Linux / win9x ?
Crossposted-To: comp.os.linux.help
Date: Sat, 03 Feb 2001 20:49:53 GMT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] () writes:
> On Sun, 28 Jan 2001 16:52:40 +0100, Alexandros Sklavos
> <[EMAIL PROTECTED]> wrote:
>>Hello,
>>
>> does anybody know how mac diskette images can be created in Linux or
>>in Win95/98 ??
>
> 1) macintosh format disks can't be created w/ PC hardware, irregardless
> of the operating system. They're CLV where there are more sectors on
> the outer tracks.
That's only true of the old 400KB and 800KB floppies. The Mac 1.44MB
floppy low-level format is the same as that for PCs, although they use
a different filesystem (HFS).
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration
------------------------------
From: Johan Ferner <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake,alt.os.linux
Subject: Re: channel 0: istate 4 != open
Date: Sat, 03 Feb 2001 20:53:01 GMT
Mandrake messes with XAUTHORITY in their "standard" $HOME/.bashrc.
This breaks ssh that uses an X-cookie i /tmp somewhere.
Uncomment and try again.
// Johan
John Gotts wrote:
>
> On Fri, 26 Jan 2001 09:40:11 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> >I get this weird error when I try to start a graphical application on
> >the server after logging in with ssh:
>
> >channel 0: istate 4 != open
> >channel 0: ostate 64 != open
> >X connection to my.host.name:11.0 broken (explicit kill or server
> >shutdown).
>
> >I did enable XForwarding in sshd_config and I login with
> >ssh -X my.host.name
> >so XForwarding is supposed to work, but it doesn't. What can be wrong?
>
> Are you trying to run something as root?
>
> John
--
Johan Ferner http://www.lm.se/~johanf
Systemutvecklare, IT-enheten Systems developer, IT Department
Lantmateriverket National Land Survey of Sweden
801 82 Gavle S-801 82 Gavle, Sweden
------------------------------
Reply-To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Problem restoring a tar of /dos
Date: Sat, 03 Feb 2001 20:58:38 GMT
[Posted and mailed]
In article <95hohk$lgf$[EMAIL PROTECTED]>,
Joe Morris <[EMAIL PROTECTED]> writes:
> Ooops, I think I've got a problem with how I've been backing-up
> my Windows95 partition. Under Mandrake, I had the equivalent of
> mount -t msdos /dev/sda1 /dos
>
> Then I would do a tar of it to 4mm tape. This had always worked
> fine if I needed to restore a few files, etc.
>
> Well, I needed to do a complete restore of /dos and I could get the
> Windows partition to boot but all the "long" filenames were screwed up:
> \progrm1~~ instead of \Program Files
> So whatever the hack MS had written to fake long names was broken.
If you did the backup with the partition mounted with filesystem type
msdos, then you've lost the long filenames. Those are stored as part of
the filesystem, not in a separate file, so they're gone for good and
there's nothing you can do to restore them unless you happen to have
some sort of record of what the matching long filenames are for each
short filename. Some disk utilities may make such backups, but unless
you know you've installed and used such a tool, you're probably out of
luck.
In the future, mount Windows partitions with the vfat filesystem type.
This will preserve the long filenames, and you'll be able to back up and
restore in Linux. (A couple of caveats even then, though. First, you may
need to run SYS C: after restoring, and perhaps set the partition type
to be active in FDISK. Second, the Registry stores short filenames for
some files, and those can change when you back up and restore using
vfat. The result can be weird problems. You can reduce these by using
short directory names for critical files, such as storing programs in
C:\APPS rather than C:\Program Files. Still, there's some risk even with
this precaution.)
--
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration
------------------------------
From: [EMAIL PROTECTED]
Subject: help, unlock file
Date: Sat, 03 Feb 2001 20:49:35 GMT
i locked a conf file under redhat 7, to deny anyone from editing it..
but i forgot the command to unlock it...
<note>Hey, I found out that locking works</note>
mv, cp and rm -f does not work, since i cant unlink the file...
does anyone know how to unlock it?
Gerard
Sent via Deja.com
http://www.deja.com/
------------------------------
From: Danita Hartley <[EMAIL PROTECTED]>
Subject: flash plugin
Date: Sun, 04 Feb 2001 10:15:35 +1300
Hi,
My flash plugin works most of the time, but occasionally
Netscape (4.7) doesn't recognise it and I get asked to
download the plugin again. I don't know much about this
stuff but when this happens if I compare another user's
.netscape/plugin-list file (for which the plugin is
recognized) to my own I get the following output from
diff: (my file is the second arg)
:.netscape$ diff plugin-list /home/danita/.netscape/plugin-list
11,16c11,16
< /opt/netscape//plugins/libflashplayer.so 975720446
application/x-shockwave-flash: swf:Shockwave Flash;
application/futuresplash: spl:FutureSplash
Player;
< pluginName=Shockwave Flash
< pluginDescription=Shockwave Flash 4.0 r12
< /opt/netscape//plugins/libtclp2.0.so 942102602 application/x-tcl:
.tcl:Tcl Web Applets;
< pluginName=Tcl Plugin 2.0
< pluginDescription=Tcl Plugin 2.0 (2.0.200). Executes tclets found in
Web pages. See the <a href=http://sunscript.sun.com/plugin/>Tcl
Plugin</a> home page for more details.
---
> /opt/netscape//plugins/libflashplayer.so 975720446 audio/x-pn-realaudio-plugin:
>rpm:RealPlayer(tm) as Plug-in;
> pluginName=RealVideo Player plugin
> pluginDescription=This plugin handles Real Audio and Real Video streams.>
>/opt/netscape//plugins/libtclp2.0.so 942102602 audio/x-pn-realaudio-plugin:
>rpm:RealPlayer(tm) as Plug-in;
> pluginName=RealVideo Player plugin
> pluginDescription=This plugin handles Real Audio and Real Video streams.
If I replace my .netscape/plugin-list file with this
other one then all is ok again.
Does anyone know why or what causes this file to change?
Thanks,
Danita
------------------------------
From: David <[EMAIL PROTECTED]>
Subject: Re: help, unlock file
Date: Sat, 03 Feb 2001 21:07:02 GMT
[EMAIL PROTECTED] wrote:
>
> i locked a conf file under redhat 7, to deny anyone from editing it..
> but i forgot the command to unlock it...
>
> <note>Hey, I found out that locking works</note>
>
> mv, cp and rm -f does not work, since i cant unlink the file...
>
> does anyone know how to unlock it?
I don't know what you did to "lock" it but you might try
chattr -i filename
--
Confucius say: He who play in root, eventually kill tree.
Registered with the Linux Counter. http://counter.li.org
ID # 123538
Completed more W/U's than 99.039% of seti users. +/- 0.01%
------------------------------
From: [EMAIL PROTECTED] (Mark Bratcher)
Crossposted-To:
alt.os.linux,comp.os.linux.setup,de.comp.os.unix.linux.misc,comp.os.linux.help
Subject: Re: Zip command
Date: Sat, 03 Feb 2001 21:04:30 GMT
On Fri, 2 Feb 2001 19:13:32 -0000, Simon P <[EMAIL PROTECTED]> wrote:
>man gzip
>
>Simon
>
>Anna Gori <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> Hello,
>>
>> coult you tell me what packet I have to install on my linux 6.4 to get
>> the command zip?
>>
>> Or where can I find information about the find of the right packet for
>> the zip command?
>>
>> thanks
>> bye
>>
>>
>
Careful... gzip and zip are two different compressions.
--
Mark Bratcher
To reply, remove _UNSPAM from my email address
=========================================================
Escape from Microsoft's proprietary tentacles: use Linux!
------------------------------
From: [EMAIL PROTECTED] (Mark Bratcher)
Subject: Re: default PATH for new user loaded from where?
Date: Sat, 03 Feb 2001 21:06:15 GMT
On Sat, 03 Feb 2001 01:30:24 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>After I assigned a new user (default is /bin/csh), the user login, I do
>an
>env | grep PATH
>PATH=/usr/kerberos/bin:/usr/bin ....
>
>What file get loaded to set-up PATH for this new user?
>
>Thanks in advance,
>
>Hoang
>
Look at ~/.cshrc (in your home directory) and /etc/cshrc
--
Mark Bratcher
To reply, remove _UNSPAM from my email address
=========================================================
Escape from Microsoft's proprietary tentacles: use Linux!
------------------------------
** 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
******************************