Linux-Setup Digest #897, Volume #20              Fri, 23 Mar 01 22:13:07 EST

Contents:
  Re: I have similar problem with parallel port ([EMAIL PROTECTED])
  Re: Triple Boot Win95B, W2k, Linux (Rod Smith)
  Re: Linux <scream>Frustration!</scream> (Laura Goodwin)
  Re: Suse vs RH/Mandrake ? (or what's so great about 7.2) (Rod Smith)
  Re: Triple Boot Win95B, W2k, Linux ("Andrew E. Kinsey")
  Bash Prompt Configuration?? (Dodd)
  Re: Linux <scream>Frustration!</scream> (Michael Heiming)
  Re: setting up news (Kieron Dunbar)
  Modem ("Unforgiven")
  Modem Help please ("Unforgiven")
  Re: Suse vs RH/Mandrake ? (or what's so great about 7.2) (Peter 
=?ISO-8859-1?Q?K=F6hlmann?=)
  Re: Setting up identd ("Anthony")
  Re: IRQ revelation command (Dean Thompson)
  xvidtune ("James Smagala")
  Re: IRQ revelation command (H.Bruijn)
  Re: xvidtune (Stanislaw Flatto)
  Re: --'script' command problem-- (David Efflandt)
  Re: xvidtune (H.Bruijn)

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

From: [EMAIL PROTECTED]
Crossposted-To: comp.os.linux.hardware
Subject: Re: I have similar problem with parallel port
Date: 23 Mar 2001 23:54:26 GMT

In article <[EMAIL PROTECTED]>, Wayne Huang
<[EMAIL PROTECTED]> writes:
>I have a HP LaserJet II connecting to LPT1. Under
>Win98, printer works fine. But I could not print
>under RH 6.1.  It complains that /dev/lp0 (or lp1)
>does not exist.  Even #echo "hell0" > /dev/lp0
>returned an error.
>
>How do know if RH 6.1 see the LPT1: and install
>the port driver ?
>
>Thanks,
>
>Wayne
>A newbie on Linux
>
>David N. Haney wrote in message <[EMAIL PROTECTED]>...
>>Linux Gurus:
>>
>>I have purchased a new Compaq that included an IJ600 printer.  This
>>computer is for my son going off to college where Linux is critical.
>>I have installed Red Hat 6.2 and then Caldera Systems 2.4.  Neither
>>could get very far with this printer.  The printer works fine in
>>Windows98, and the computer parallel port works fine with an HP850,
>>thus it must be the Printer driver.  RH 6.2 recognizes the Compaq
>>printer as a Lexmark Inkjet 4103.
>>
>>The odd thing is that none of the printer drivers will do anything
>>to get the attention of the printer, even just sending ASCII text,
>>or using something like cat printcap > /dev/lp0.  The printer acts
>>dead, until you set it up in Windows98, all is fine.  RH has a couple
>>of Lexmark printer drivers, but neither do anything.  Caldera has
>>many more Lexmark printer drivers, but none of them work either.
>>
>>Any suggestions on how I might get this ?newer printer working?
>>Unfortunately, Compaq seems to have written LINUX off (maybe
>>they  like being abused by Microsoft).
>>
>>--
>

For the original problem --- make sure you don't have a"Win" printer which
depends on a special Windows program to work. That could also be the problem
in the second case as well. As I recall RedHat has some sort of graphical
printer control panel --- you could try that. 

If you have a "Win" printer just say goodbye. Not too bad inkjets that will
work are available for about $149. There are hardware compatiblity howto's
around, and source Forge has a decent printer and driver database for Linux.


John Culleton


 -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----
  http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups
   NewsOne.Net prohibits users from posting spam.  If this or other posts
made through NewsOne.Net violate posting guidelines, email [EMAIL PROTECTED]

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

From: [EMAIL PROTECTED] (Rod Smith)
Subject: Re: Triple Boot Win95B, W2k, Linux
Date: Sat, 24 Mar 2001 00:13:17 -0000
Reply-To: [EMAIL PROTECTED]

[Posted and mailed]

In article <[EMAIL PROTECTED]>,
        Thomas W Trout <[EMAIL PROTECTED]> writes:
> Has anybody successfully triple-booted with Win95 OSR2, Win2K, and Linux
> with a Fat32 partition for Win95B?

That and more. I've had as many as eight OSs installed on one system
(not counting OSs run in emulators), and that's far from a record.

> I installed Linux successfully but
> when I reboot the computer comes up in the Win2K boot loader with Win2K
> and Win95 as choices. LILO does not load at all before Win2K boot
> loader. Should I have configured Linux to write to MBR for LILO to work
> properly?

There's a HOWTO on getting Linux added to the WinNT boot loader (the
same procedure should work for WinNT). Unfortunately, you'll need to
get the first sector of the Linux boot partition (where I gather you've
installed LILO) to get this to work. The easiest way to do this is from
Linux:

dd if=/dev/hda6 of=/boot.lnx bs=512 count=1

Change /dev/hda6 to the partition device where LILO is installed. You
should then copy /boot.lnx to a Windows partition (you can use a floppy
as an intermediary, if you like) and create a BOOT.INI entry for it in
Windows.

> Do I need to have a Fat16 partition for this to work?

No.

-- 
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration

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

From: Laura Goodwin <[EMAIL PROTECTED]>
Crossposted-To: alt.comp.hardware.pc-homebuilt
Subject: Re: Linux <scream>Frustration!</scream>
Date: Fri, 23 Mar 2001 19:16:27 -0500

Michael Heiming wrote:

> > Speaking of recompiling, isn't there a groovy way to rerun the automatic
> > hardware detection that runs at first install, instead of having to muck
> > through all the hardware config by hand? If not, ding-dong it, there
> > should be!

> Or you do it somehow like I do, don't buy a complete machine, buy everything
> in parts, then put it together, you can be sure you know what's in the box...:-)

I built my own, and I've built or upgraded many others.  Just because I
know what's in my box doesn't mean I know how to choose all those things
in the config.

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

From: [EMAIL PROTECTED] (Rod Smith)
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.hardware
Subject: Re: Suse vs RH/Mandrake ? (or what's so great about 7.2)
Date: Sat, 24 Mar 2001 00:19:25 -0000
Reply-To: [EMAIL PROTECTED]

[Posted and mailed]

In article <[EMAIL PROTECTED]>,
        peter <[EMAIL PROTECTED]> writes:
> I've heard great things about the new Suse distro., but I was told by
> someone that I should use the same distro that I use at work.  At work
> we use Red Hat, at home I just setup Mandrake 7.1, but everyone says
> the new Suse distro is good and also Mandrake 7.2 is good. 
> 
> What are the differences of these distros and versions ?

See my Web page on distributions:

http://www.rodsbooks.com/distribs/

> Is there a different file structure or something different in each
> distro that will mess up my learning curve ?

Configuration files *ARE* different between distributions, although
there are certain commonalities. How much you'll be disturbed by the
differences depends on what you've learned and how different the
distributions are. Red Hat and Mandrake are pretty similar to each
other, but SuSE differs more from either of them than they do from each
other.

> Is the new software in mandrake 7.2 (or Suse) all that ?

That depends on your needs. You can get almost anything in Red Hat that
you can get in Mandrake or SuSE, though.

> Which is faster, I've got a few older machine I would like to install
> Linux on (P166/32 megs, etc) ?

Mandrake ships with Pentium optimizations on most or all of its
packages, so it may have a slight speed edge on Pentium and above
systems -- ASSUMING that no other factors negate that advantage. I doubt
if the difference would be very noticeable (I've not noticed it on my
Athlon 650 system, but I've also not done any careful benchmarks).

My advice: For casual or production use, use whatever's familiar to you,
unless you have a very specific and compelling reason to use something
else. If you want to learn about Linuxes in general or if you're
dissatisfied with what you've got now, go ahead and experiment, but not
on a production system.

-- 
Rod Smith, [EMAIL PROTECTED]
http://www.rodsbooks.com
Author of books on Linux & multi-OS configuration

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

From: "Andrew E. Kinsey" <[EMAIL PROTECTED]>
Subject: Re: Triple Boot Win95B, W2k, Linux
Date: Fri, 23 Mar 2001 19:31:21 -0500

Thomas W Trout wrote:

> Has anybody successfully triple-booted with Win95 OSR2, Win2K, and Linux
> with a Fat32 partition for Win95B? I installed Linux successfully but
> when I reboot the computer comes up in the Win2K boot loader with Win2K
> and Win95 as choices. LILO does not load at all before Win2K boot
> loader. Should I have configured Linux to write to MBR for LILO to work
> properly? Do I need to have a Fat16 partition for this to work? I can
> boot to Linux with a boot floppy but would like to avoid this route.
> This computer is used by several users some who would like to boot Linux
> but who are not technically minded enough to be trusted to boot from a
> floppy. :)
>
> Thanks,
> TW Trout

Thomas,
I am running Win98 (FAT32), W2K, and RedHat 7.0, all on the same machine. I
have LILO installed in the MBR of the first hard drive. If you have
multiple hard drives, or a very large hard drive, Linux must be installed
in the first 1024 cylinders of the drive it is to be installed on. You
MUST install the operating systems in the following order for this to work:

1. Win98
2. W2K
3. Linux

These are the reasons:
1. Win98 will overwrite the MBR of ANY operating system that was previously
installed, INCLUDING the W2K boot loader.
2. After installing Win98, install W2K, and set up the boot loader to boot
either Win98, or W2K.
3. When installing Linux, install LILO to the MBR of the first hard drive.

You can set up LILO to boot either to DOS (Win98) or Linux. You can set up
the W2K boot loader to boot to either Win98 or W2K by default. My machine
is set up to have LILO boot to DOS by default, and the W2K boot loader
boots to W2K by default; Therefore, with no intervention, the machine boots
to W2K (yeah, I know...).

A few hints:
1. MAKE A LILO BOOT DISK!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2. Running FDISK/MBR from a dos prompt will wipe BOTH the Win2K boot loader
and LILO.
If you screw up LILO or overwrite it, you can boot from the Linux floppy
and re-run LILO to fix it on the hard drive (you DID make the boot disk,
right?).
3. The W2K boot loader can be repaired by booting from the W2K CD and
selecting (R)epair from the choices.

Most of what I've described above was learned from trashing my own
machine...

Hope this helps.

Andy




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

From: [EMAIL PROTECTED] (Dodd)
Subject: Bash Prompt Configuration??
Date: Sat, 24 Mar 2001 00:46:38 GMT

I recently had to Reinstall RH6.2 after a failed attempt to upgrade to
7.0  As a result, my fs was completely screwed.  However, I was able
to put the HD in another computer and save my /etc directory.

I reinstalled RH and copied the old /etc directory back.  Since then,
my bash prompt has been nothing but 'bash$' or 'bash#.'  I am able to
change it by putting a line in the bash_profile script that says

    PS1="[\u@\h \W]$ "

I see that line in the bashrc file it has a bitwise AND comparing it
to something else.  However, I shouldn't have to define my prompt in
the bash_profile by hand. What should I check??

Also, even when I have my accounts with a good prompt (via the above
hack), if I su to the other account it goes back to just 'bash$'  I
assume that the bashrc script is called when you su to another user
(instead of that user's bash_profile being used).  This is really
annoying.  Any help you can give would be greatly appreciated!!!

Thanks,

Dodd
Remove BLAH from e-mail to reply.

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

Date: Sat, 24 Mar 2001 01:48:42 +0100
From: Michael Heiming <[EMAIL PROTECTED]>
Crossposted-To: alt.comp.hardware.pc-homebuilt
Subject: Re: Linux <scream>Frustration!</scream>

Laura Goodwin wrote:
> 
> Michael Heiming wrote:
> 
> > > Speaking of recompiling, isn't there a groovy way to rerun the automatic
> > > hardware detection that runs at first install, instead of having to muck
> > > through all the hardware config by hand? If not, ding-dong it, there
> > > should be!
> 
> > Or you do it somehow like I do, don't buy a complete machine, buy everything
> > in parts, then put it together, you can be sure you know what's in the box...:-)
> 
> I built my own, and I've built or upgraded many others.  Just because I
> know what's in my box doesn't mean I know how to choose all those things
> in the config.

Sure, you deleted my last sentence from my fromer post:

>> but the kernel configuration is not just about hw.

That's what the HELP is about in the kernel configuration (if it's available)
, you & everyone else & myself, we all have to read it, case we don't know about
it, if this is not enough info, searching google.com & groups.google.com are
mostly
able to give some insights, after reading tons of more or less well written
docs......

Some times ago I deleted my WIN xx partition, I needed the space, I had dual
booting
setup, but hadn't started win for month. Today, if I sit in front of some WIN box,
I think: Wow, this system is so poor, why does everyone use this, where is my
bash?

You may email me if you want, as I don't think this is really worth using this
bandwith.

Michael Heiming

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

From: Kieron Dunbar <[EMAIL PROTECTED]>
Subject: Re: setting up news
Date: Sat, 24 Mar 2001 00:47:57 +0000

Once upon a time, maik wrote thus:
> In article <[EMAIL PROTECTED]>, "Kieron Dunbar"
> <[EMAIL PROTECTED]> wrote:

>> and I've tried setting nntp-server to "news", "nntp" and
>> "/var/spool/news", all without any success. It's probably fairly
>> simple, but I can't see how to get it to work.  kwaheri, Kieron

> I used to use leafnode+netscape ... just tell netscape to use
> 'localhost' as your news server.  Then I dumped leafnode+netscape, moved

I thought it'd be something simple like that, I just couldn't find a
reference in any of the relevant documentation.

> to glitter, and now I adore Pan as my whole news solution.

I only chose that one because it sounded useful for my purposes. Glitter
doesn't seem to be in Debian's archive, which would probably increase
the chance of me doing something wrong trying to install it, and I don't
know if I'd have any difficulties if I decided I didn't like the
newsreader
part of Pan.

Now it's downloading news properly, I've got another question. I don't
receive all of my news directly via NNTP, some being in the form of text
files. If I chopped one of them up and stuck the pieces in
/var/spool/news/x/y/z, it would look quite a lot like the files that are
there, but how do I make the system treat them as a legitimate part of
the
news base?

kwaheri, Kieron

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

From: "Unforgiven" <[EMAIL PROTECTED]>
Crossposted-To: alt.uu.comp.os.linux.questions
Subject: Modem
Date: Sat, 24 Mar 2001 00:50:06 GMT

ok........ I need some help.  how can I get my modem to work?  It is on com3
and I tried linking /dev/ttyS2/ to /dev/modem

It says it's busy when I try and queue it.

In the system box I noticed that there is a conflict with my USB stuff......
what can I do?

Nick




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

From: "Unforgiven" <[EMAIL PROTECTED]>
Crossposted-To: alt.uu.comp.os.linux.questions
Subject: Modem Help please
Date: Sat, 24 Mar 2001 00:54:01 GMT

ok........ I need some help.  how can I get my modem to work?  It is on com3
and I tried linking /dev/ttyS2/ to /dev/modem

It says it's busy when I try and queue it in KDE.

In the system box I noticed that there is a conflict with my USB stuff......
what can I do?

Nick






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

From: Peter =?ISO-8859-1?Q?K=F6hlmann?= <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy,comp.os.linux.hardware
Subject: Re: Suse vs RH/Mandrake ? (or what's so great about 7.2)
Date: Sat, 24 Mar 2001 01:13:02 +0100

peter wrote:

> I've heard great things about the new Suse distro., but I was told by
> someone that I should use the same distro that I use at work.  At work
> we use Red Hat, at home I just setup Mandrake 7.1, but everyone says
> the new Suse distro is good and also Mandrake 7.2 is good.
> 
> What are the differences of these distros and versions ?
> 
> Is there a different file structure or something different in each
> distro that will mess up my learning curve ?
> 
> Is the new software in mandrake 7.2 (or Suse) all that ?
> 
> Which is faster, I've got a few older machine I would like to install
> Linux on (P166/32 megs, etc) ?
> 
> 
SuSE 7.1 is good.
But if you have to do anything at all with the setup at work, stay with
RedHat. The differences are quite small, though. Mainly in setup-tools.

Peter
 

-- 
The day Microsoft makes something that doesn't suck is probably 
the day they start making vacuum cleaners" - Ernst Jan Plugge


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

From: "Anthony" <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux.mandrake
Subject: Re: Setting up identd
Date: Sat, 24 Mar 2001 01:38:30 GMT

I've also found the following in the syslog:

in.identd[7525]: started
in.identd[7525]: fopen("/proc/net/tcp", "r"): Permission denied
in.identd[7525]: terminating

Is this because identd is running as nobody?

Any advice is welcome.

Anthony


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

From: Dean Thompson <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking,comp.os.linux.questions,linux.redhat
Subject: Re: IRQ revelation command
Date: Sat, 24 Mar 2001 12:56:27 +1100


Hi Alian,

> Is there a way to reveal which IRQ's are being used?

You can use commands like:

cat < /proc/interrupts   ---> Shows the interrupts being used
cat < /proc/devices      ---> Shows the devices which the kernel has detected
> 
> I am trying to install a second NIC by inserting a script at the end of
> lilo.conf so it will probe for the second card:
> 
> append="ether=11,0x6500,eth0 ether=17,0xccc0,eth1
> 
> where "ether=17" is the IRQ at address "0xccc0" assigning "eth1"
> 
> I found the settings for eth0 with the ifconfig command, and I am assuming
> that the "c's" in 0xccc0 are variables that will be replaced (or 
> something).

I personally would have throught that these were the starting memory address
for the card, but I normally have not had to specify this sort of information
as the linux kernel nomrally can find this stuff out for itself.

See ya

Dean Thompson

--
+____________________________+____________________________________________+
| Dean Thompson              | E-mail  - [EMAIL PROTECTED] |
| Bach. Computing (Hons)     | ICQ     - 45191180                         |
| PhD Student                | Office  - <Off-Campus>                     |
| School Comp.Sci & Soft.Eng | Phone   - +61 3 9903 2787 (Gen. Office)    |
| MONASH (Caulfield Campus)  | Fax     - +61 3 9903 1077                  |
| Melbourne, Australia       |                                            |
+----------------------------+--------------------------------------------+

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

From: "James Smagala" <[EMAIL PROTECTED]>
Subject: xvidtune
Date: Fri, 23 Mar 2001 19:13:45 -0700

Hey All

I am running a dual boot machine (Win 98/Debian 2.2) and have configured the
hard ware to display the screen size and location correctly for windows.
For linux, I use Afterstep on X.  At my initial command line when I first
boot into linux, the screen size an location are ok, but when I start an X
session, the screen is seriously off center.

I can fix this manually with xvidtune, but it gets to be a hassel.  The
documentation for this program is -very- unclear about invoking the program
non-interactively.  Any suggestions for scripting this sort of correction?

James



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

From: [EMAIL PROTECTED] (H.Bruijn)
Crossposted-To: comp.os.linux.networking,comp.os.linux.questions,linux.redhat
Subject: Re: IRQ revelation command
Date: 24 Mar 2001 02:40:17 GMT
Reply-To: [EMAIL PROTECTED]

On Sat, 24 Mar 2001 12:56:27 +1100, Dean Thompson allegedly wrote:
>
>Hi Alian,
>
>> Is there a way to reveal which IRQ's are being used?
>
>You can use commands like:
>
>cat < /proc/interrupts   ---> Shows the interrupts being used
>cat < /proc/devices      ---> Shows the devices which the kernel has detected

You don't need the input redirect < . Simply "cat filename" is enough. 

>> 
>> I am trying to install a second NIC by inserting a script at the end of
>> lilo.conf so it will probe for the second card:
>> 
>> append="ether=11,0x6500,eth0 ether=17,0xccc0,eth1
>> 
>> where "ether=17" is the IRQ at address "0xccc0" assigning "eth1"
>> 
>> I found the settings for eth0 with the ifconfig command, and I am assuming
>> that the "c's" in 0xccc0 are variables that will be replaced (or 
>> something).
>
>I personally would have throught that these were the starting memory address
>for the card, but I normally have not had to specify this sort of information
>as the linux kernel nomrally can find this stuff out for itself.


When you have two different NIC's simply add some lines to
/etc/modules.conf. In my case the first NIC is a 3Com 509 and the second
a NE2000 compatible pci card, which results in:
        #/etc/modules.conf
        ...
        alias 3c509 eth0
        alias ne2k-pci eth1

For these cards no IRQ's or addresses were needed. On debian you then
add the module names (3c509 and ne2k-pci) to the file /etc/modules so
that they will be loaded at boot, and that's it. No extra arguments in
lilo.conf required.
-- 
If a trainstation is the place where trains stop, what is a workstation?
========================================================================
Herman Bruijn                         website:   http://hermanbruijn.com
The Netherlands 

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

From: Stanislaw Flatto <[EMAIL PROTECTED]>
Subject: Re: xvidtune
Date: Sat, 24 Mar 2001 13:54:15 +1100

If it is of any help!
Had similar problem in Slackware so maybe some of the steps do not apply to
Debian.
Invoked xvdtune and corrected the display at this resolution.
>From the screen recorded (paper and pencil - are we on computer ng?????)
the clock frequency and the horizontal and vertical resulting numbers.
Exited X, invoked mc and opened /etc/XF86Config for editing (F4).
Browsed the zillion Modeline possibilities included in this file in Slackware
concentrating on those that descibe the relevant resolution and are close to the
noted clock frequency.
When such was found edited in it the horizontal and vertical numbers, saved the
file and tried X again.
Repeated for every resolution that needed it.

Have fun

Stanislaw.
Slack user from Ulladulla.


James Smagala wrote:

> Hey All
>
> I am running a dual boot machine (Win 98/Debian 2.2) and have configured the
> hard ware to display the screen size and location correctly for windows.
> For linux, I use Afterstep on X.  At my initial command line when I first
> boot into linux, the screen size an location are ok, but when I start an X
> session, the screen is seriously off center.
>
> I can fix this manually with xvidtune, but it gets to be a hassel.  The
> documentation for this program is -very- unclear about invoking the program
> non-interactively.  Any suggestions for scripting this sort of correction?
>
> James


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

From: [EMAIL PROTECTED] (David Efflandt)
Subject: Re: --'script' command problem--
Date: Sat, 24 Mar 2001 03:03:18 +0000 (UTC)
Reply-To: [EMAIL PROTECTED]

On Fri, 23 Mar 2001, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>Please Help!
>
>I'm trying to set up an account in such a manner that all user activities
>within terminal sessions launched from within that account are scripted to a
>log file with the command 'script'. On an NCR UNIX box, this works
>wonderfully for an account and I'm trying to set up the same procedure in
>Red Hat Linux release 6.2EE (red Hat Linux 6.2 Enterprise Edition) Kernel
>2.2.14-11.lfssmp on a 2-processor i686
>
>Here's what happens:
>
>In the user's .bash_profile for a user 'oper1',  I added the following line
>at the bottom of the file /home/oper1/.bash_profile:
>
>script -a /log/operlog
>
>It seems that if the same line is added to the /home/oper1/.bashrc file, it
>blows up spectacularly.

Because it tries to do the script thing for each bash command.

>1)I can log in and go to the GNOME desktop as user 'oper1' with the 'script'
>command line inserted at the bottom of the .bash_profile
>
>2)Nothing seems to happen (in terms of 'script started' when I launch a
>Gnome Terminal or a regular Xterm) once I'm in the desktop environment.

An xterm is not a login shell unless you use the -ls switch (see 'man
xterm').

>3)However, when I sat at my WinNT client and used telnet to get into the Red
>Hat server as 'oper1', the script command ran and displayed the following:
>  Last login: Wed Mar 21 14:09:28 on :0
>Script started, file is /log/operlog
>[oper1@redhat oper1]$
>
>4)If I exit the telnet session on my NT client, then go back and sit at the
>Red Hat server and log on as 'oper1', I can verify that /log/operlog does
>indeed have the output of the script command, but the only info that was
>logged with the script to /log/operlog was what I had done with the previous
>telnet session...when that session terminated, my log stopped getting data.

So it didn't occur to you to try 'telnet localhost' from the Linux box?

>5)But, if I open a terminal session while already logged in as 'oper1' at
>the server (in GNOME) itself, nothing special happens...no 'Script started'
>message at all, and nothing is sent to /log/operlog.

Because you are not in a login shell.

>6)Is there somewhere else I also need to add that 'script' command line to
>so that once I'm logged into a GNOME session as 'oper1', that terminal
>sessions fired off from within the desktop environment are logging to
>/log/operlog as well?

You could set up an icon that launches an xterm running that script.  Or
you could simply log into a vt instead of xterm.

One question is, what happens to that script log if more than one instance
of it runs or what precautions does it take to avoid that?

-- 
David Efflandt  [EMAIL PROTECTED]  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/

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

From: [EMAIL PROTECTED] (H.Bruijn)
Subject: Re: xvidtune
Date: 24 Mar 2001 03:08:49 GMT
Reply-To: [EMAIL PROTECTED]

On Fri, 23 Mar 2001 19:13:45 -0700, James Smagala allegedly wrote:
>Hey All
>
>I am running a dual boot machine (Win 98/Debian 2.2) and have configured the
>hard ware to display the screen size and location correctly for windows.
>For linux, I use Afterstep on X.  At my initial command line when I first
>boot into linux, the screen size an location are ok, but when I start an X
>session, the screen is seriously off center.
>
>I can fix this manually with xvidtune, but it gets to be a hassel.  The
>documentation for this program is -very- unclear about invoking the program
>non-interactively.  Any suggestions for scripting this sort of correction?

On most modern monitors the settings are digital, and multiple settings
can be stored (automagically). 
Simply start X and use your monitors controls to set the screen size
and position. Then exit X and now the commandline should still have it's
previous settings, and windows should also still have the correct settings.

Now when you have the older controls with rotating knobs, then you need to
use xvidtune, start a xterm, and start xvidtune from that xterm. 
Start by getting your current settings by pressing the button "show" 
(second button on the bottom row). In the xterm you will get a string of
numbers, which is your current Modeline. The use the controls to get the 
proper placement of the screen, just like you did before. Once everything 
is to your liking press the button "show" again. In the xterm you will get a 
second string of numbers. That is your new modeline. It will look something 
like I have (-hsync -vsync may or may not appear):
"1024x768" 75.00 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
The number sequence denote the resolution, refresh rate, and everything
else which uniquely specifies your display. 
Now you can close xvidtune. Open a second xterm and use an editor to 
open the file /etc/X11/Xf86Config, in that file find the line which 
corresponds to your old Modeline, and replace it with the new one you
just generated with xvidtune. Next time you run X those settings will be
used, and your screen will be placed correctly.

-- 
If a trainstation is the place where trains stop, what is a workstation?
========================================================================
Herman Bruijn                         website:   http://hermanbruijn.com
The Netherlands 

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


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