Linux-Misc Digest #781, Volume #25               Sun, 17 Sep 00 01:13:04 EDT

Contents:
  Re: umounting depending on login (Bob Hauck)
  Re: First (Attempted) RH Installation Woes (Michael Figg)
  Re: lot of error on network.. (Andrew Boyce-Lewis)
  Re: 2 drives, windowsnt with linux....how? ("cryptopo")
  Re: Newer versions of CDRECORD no longer work... (MH)
  Console Display Columns & Rows - Where Are the Docs? (Felix Miata)
  Re: Newer versions of CDRECORD no longer work... (Dances With Crows)
  What's the largest machine in the world that uses Linux ? ("Yeung Ming")
  Re: What's the largest machine in the world that uses Linux ? (Hal Burgiss)
  any one want an anolog modem pool management prog?
  Re: 2 webservers behind firewall? HOW ("D. Abuan")
  Re: colors in login console (Zed C. Pobre)
  Good MPEG player for Linux? (MH)
  Re: gnome or kde? (Christopher Browne)

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

From: [EMAIL PROTECTED] (Bob Hauck)
Subject: Re: umounting depending on login
Reply-To: bobh{at}haucks{dot}org
Date: Sun, 17 Sep 2000 00:15:38 GMT

On Sun, 17 Sep 2000 00:43:08 GMT, mike <[EMAIL PROTECTED]> wrote:

>I also use the machine as non-root but the machine is used one person at a
>time.  These are a couple of disks with code and the like that I don't
>want someone else messing with (accidentally or on purpose).  If I change
>the permissions (being something of a neophyte using groups, etc.) then
>the disks are not accessible to me either as non-root.

You're *way* better off learning how to use permissions than kludging
up some sort of disk-unmounting scheme.  Permissions are there to
solve the very problem you are trying to solve.  It makes no sense in
the long run to avoid learning how to use them.  Also, in the long run
you need to get used to logging in as a regular user rather than as
root anyway.  Use "su -" to become root when needed.

The way permissions work is that every file has an owner and a group. 
Permissions are based on the owner, the group, and everyone else having
some combination of read, write and execute permissions on the file. 
All multi-user systems have some kind of permission mechanism.  If you
have never used such a system before, you might want to pick up a book
on Linux basics to get you started.

Anyway, you need to log in as root and change the ownership and
permissions of the files you want to protect:

chown your-user-name some-file
chmod go-rwx some-file

You can do a whole directory with:

chown -R your-user-name some-directory
chown -R go-rwx some-directory

The '-R' stands for "recursive".  Take a look at the man pages for
chown and chmod to learn more about what they can do.  

Now, log in as you.  See what your umask is.  This determines the
permissions for new files you create:

umask

If you set it to mode 700, then files you create will only be usable by
you:

umask 700

You can put this in your .bashrc file to make it the default when you
log in.

If you use a GUI like KDE or Gnome, there is usually a file manager
type of thing that will let you change the premissions on files without
having to type commands.


>My thinking is that it would be easier if there was a way to umount the
>disks if someone other than myself logs in.  

That's not going to be good if you ever want to have more than one
person logged in at once.  And you aren't doing yourself any favors by
avoiding permissions.  They really do work.

To answer your other question, yes, sudo will work in scripts if you
set it up to not ask for a password.

-- 
 -| Bob Hauck
 -| To Whom You Are Speaking
 -| http://www.haucks.org/

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

Date: Sat, 16 Sep 2000 23:20:26 -0400
From: Michael Figg <[EMAIL PROTECTED]>
Subject: Re: First (Attempted) RH Installation Woes

This sounds reasonable, but one thing I forgot to mention
is that when i try and boot I do get the Compaq logo displayed
as is normal, then a BIOS looking screen saving configuration.
I get this saving configuration when powering down.

I would think if I get this then the display might be alright, correct?

Thanks,
Michael

MH wrote:

> Michael Figg wrote:
> >
> > Hi,
> >
> > Tried to install Red Hat 6.2 commercial boxed version on a
> > Compaq Notebook. It seemed to boot from the CD giving me
> > an installation choices screen (graphical, text, etc). I choose
> > graphical and that's the last I saw of my computer. The screen
> > quickly turned bright white and then slowly faded to a dark
> > screen. I now cannot boot from floppy, HD or CD. THe display
> > adapter is a Trident CyberBlade i7 which I found later was not
> > on a list of supported diplays.
> >
> > Have I fried the BIOS or the display, or possibly both? I had
> > (hopefully still have?) Win98 and Boot Magic installed, hoping
> > to have a dual boot environment.
> >
> > Any advice would be very welcome?
> >
> > Thanks,
> > Michael Figg
>
> Sounds like you fried your display--though that seems a rather extreme
> result given the point at which it occurred during the installation
> process.  Your BIOS and HDD should be OK, but that's little consolation
> if your display is fried.  Given the cost of screen replacement, you may
> be in the market for a new laptop.  Given my own experience with
> (several) COMPAQ laptops, I'd look for another brand.
>
> --
> Don't waste your vote.  Vote Green, or don't vote at all.


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

From: Andrew Boyce-Lewis <[EMAIL PROTECTED]>
Crossposted-To: 
comp.unix.admin,comp.os.linux.networking,comp.os.linux.admin,comp.os.linux
Subject: Re: lot of error on network..
Date: Sat, 16 Sep 2000 23:26:13 -0400

this has nothing to do with your problem but you may want to update to slack 7.1 ... 
it is a
lot better than 3.6

>


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

From: "cryptopo" <[EMAIL PROTECTED]>
Subject: Re: 2 drives, windowsnt with linux....how?
Date: Sat, 16 Sep 2000 23:28:11 -0400

just in my opinion,  it's better if you don't install lilo.  Just use make a
bootup disk.  It's probably only about 10 seconds slower.

I screw up my computer often and most likely have to reformat now and then.
And in my case, if lilo is installed, I had problem running the windows nt
setup.



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

From: MH <[EMAIL PROTECTED]>
Subject: Re: Newer versions of CDRECORD no longer work...
Date: Sat, 16 Sep 2000 20:35:18 -0700
Reply-To: [EMAIL PROTECTED]

Dances With Crows wrote:
> 
> On Fri, 15 Sep 2000 20:34:27 -0700, MH wrote:
> >I used CDRECORD once some 6 months ago to burn a CD and it worked
> >perfectly.  Since then, I've reinstalled my system a number of times and
> >managed to lose the original RPM.  I downloaded and installed two
> >different, but recent versions, but get an error for some unknown
> >reason. Input/output following:
> >
> ># cdrecord -v speed=4 dev=6,0 redhat-6.2-i386.iso
> >
> >Cdrecord release 1.6.1 Copyright (C) 1995-1998 J�rg Schilling
> >TOC Type: 1 = CD-ROM
> >scsidev: '6,0'
> >scsibus: 0 target: 6 lun: 0
> >cdrecord: No such file or directory. Cannot open '/dev/pg6'.
> >
> >I got the same error with version 1.9.1(?)  Anyway, what is "/dev/pg6"
> >and why is it trying to access this device?  Why am I getting "No such
> >file..." when the file DOES exist?
> 
> Is cdrecord SUID root?  ( # chmod 4755 `which cdrecord` )
> Which device are you trying to access?  ( cdrecord -scanbus will tell
> you a lot about the available SCSI or IDE-SCSI devices attached )
> Are you sure you want dev=6,0?  The preferred syntax is something like
> dev=0,6,0 meaning "SCSI controller 0, device 6, LUN 0".  If you have 2
> SCSI controllers (or 2 virtual SCSI controllers, like the virtual SCSI
> system designed for parport ZIP drives and the virtual SCSI system
> designed for IDE-SCSI devices) then you may need to use dev=1,6,0.
> Check the output of cdrecord -scanbus --it will tell you where all the
> SCSI devices are....

I ran cdrecord as root, and I tried various "dev=xxxxx" options
according to man pages.  And, yes, I do understand SCSI
terminology/settings.  According to man pages, cdrecord will default to
SCSI controller ID "0"--not that it made any difference actually
specifying the controller ID.

-- 
Don't waste your vote.  Vote Green, or don't vote at all.

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

From: Felix Miata <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.setup
Subject: Console Display Columns & Rows - Where Are the Docs?
Reply-To: Felix Miata <[EMAIL PROTECTED]>
Date: Sat, 16 Sep 2000 23:57:24 -0400

Corel documents that there is a bug for Tseng ET6x00 cards that
duplicates the second column character in the first column in console
mode, saying that there is no fix. I can't understand why that should
be, as the display works fine through a large portion of the boot. Only
after boot is well along does the problem become evident.

I've always hated the monochrome 80 X 25 default PC screen, so I've been
looking for a way out. In DOS, various apps are capable of using the
SVGA text modes. Tseng provided a utility to change the mode for the
screen prompt as well.

After finding nothing on the subject on the Corel web site, I spent
several hours looking through the howto's that come on the CLOS CD, and
also in a 928 page book "Mastering Linux", copyright 1999 by Sybex,
which focuses on Redhat 5.1. Other than minor mention of termcap and
terminfo, neither of which seem to exist on my CLOS 1.1 system, the book
mentions nothing about setting console column & rows to something other
than the default. The index omits such subjects as console, display,
video, columns, rows, & graphics adapter.

The Keyboard-and-Console HOWTO mentions in part 16 SVGATextMode and
resizecons. "Command not found" results from attempting to use
SVGATextMode. Resizecons results in "cannot find videomode file
[132x28]", or whatever is chosen as an alternative to 80x25.

The howto does mention that lilo.conf can be changed from vga=normal to
vga=ask to be prompted to select an alternate video mode, but it doesn't
give any guidance on how to make the preference the default behavior. If
I substitute the mode listed in the bootup options menu in lilo.conf, I
get an error message and the menu for modes comes up just as if the
setting in lilo.conf remained vga=ask. As long as vga=ask is set, every
console boot requires an active selection to use anything other than the
unwanted default.

Not only must I select on each boot with vga=ask, the selection behaves
much like the standard boot. Upon selection of the mode I want, the
chosen mode works fine through a large part of the boot, after which it
switches to the defective 80x25 mode with the second column duplicated
in the first column.

Can someone tell me where the docs I need are hiding, or better yet,
exactly how to do what I want (make 132 x 28 rows the default console
boot setting)?
-- 
A man of knowledge uses words with restraint . . . .
                Proverbs 17:27 NKJV

Felix Miata  ***  http://mrmazda.members.atlantic.net

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

From: [EMAIL PROTECTED] (Dances With Crows)
Subject: Re: Newer versions of CDRECORD no longer work...
Date: 17 Sep 2000 04:11:19 GMT
Reply-To: [EMAIL PROTECTED]

On Sat, 16 Sep 2000 20:35:18 -0700, MH wrote:
>I ran cdrecord as root, and I tried various "dev=xxxxx" options
>according to man pages.  And, yes, I do understand SCSI
>terminology/settings.  According to man pages, cdrecord will default to
>SCSI controller ID "0"--not that it made any difference actually
>specifying the controller ID.

OK, great... but:  What type of CD-RW are you trying to access
(IDE/ATAPI, external parport, SCSI) and what did "cdrecord -scanbus"
tell you?  If cdrecord -scanbus doesn't show your CD-RW as being listed,
then there's no chance that cdrecord will work.  /dev/pg6 is the 6th
device on the virtual SCSI bus used for parport-connected devices, and
it's extremely unlikely that you have 6 devices connected to your
parallel port.  If you have something like a ZIP drive stuck to your
parallel port, and an internal IDE CD-RW, there's an excellent chance
that your ZIP is on SCSI controller 0 and your CD-RW is on SCSI
controller 1.

If this is an IDE device, then you'll most likely need to boot the
system with the command line "hdX=ide-scsi" at the LILO: prompt.  You
can use 'append="hdX=ide-scsi" ' in /etc/lilo.conf to have this done
automagically upon system boot.  The ide-scsi, scsi_mod, sr_mod, and sg
modules must be loaded or compiled into the kernel--this should be done
automatically when cdrecord starts up, but check anyway.

BTW, since you do actually understand SCSI terminology/settings, do you
reccommend black or white goats for use in consecrating HVD equipment?
:-]

-- 
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: "Yeung Ming" <[EMAIL PROTECTED]>
Subject: What's the largest machine in the world that uses Linux ?
Date: Sun, 17 Sep 2000 11:34:39 +0800

do anyone know the ans or where i can find it by myself?



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

From: [EMAIL PROTECTED] (Hal Burgiss)
Subject: Re: What's the largest machine in the world that uses Linux ?
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: Sun, 17 Sep 2000 04:35:31 GMT

On Sun, 17 Sep 2000 11:34:39 +0800, Yeung Ming <[EMAIL PROTECTED]> wrote:
>do anyone know the ans or where i can find it by myself?

Meaning computer? Single computer, or cluster? Check IBM's website. They
ran some ridiculous number of simulataneous Linux sessions on one 'box'.

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

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

From: <test>
Subject: any one want an anolog modem pool management prog?
Date: Sat, 16 Sep 2000 21:46:39 -0700

I've written a set of perl scripts that track and fix potential problems in
analog modem pools ( I'm using cisco 2500 series terminal server). I was
wondering if anyone would find this useful. If so I'll bundle them in an rpm
or tarball...


ET




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

From: "D. Abuan" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.networking
Subject: Re: 2 webservers behind firewall? HOW
Date: Sun, 17 Sep 2000 04:53:18 GMT

Thanks there Chris,


But how would you tell a persons browser on the net to point to that port
8000 when a web
browser's default request port  is 80?  Any work around here??

--


"Chris J/#6" <[EMAIL PROTECTED]> wrote in message
news:8q09iq$4gm$[EMAIL PROTECTED]...
> D. Abuan <[EMAIL PROTECTED]> wrote:
> >I have two webservers behind a Redhat 6.2 PC running IP Masquerading.  I
> >know how to port forward one webserver
> >if there is a request to my external PC's IP address at port 80.  But I
want
> >to set up another one....running NT (for
> >my room mate who wants to run IIS) how can I set this up????
>
> You could use ipchains with port forwarding, so any http requests coming
> into (say) port 8000 get forwarded to port 80 on your roomie's IIS box.
>
> Chris...
>
>
>
> --
> @}-,'--------------------------------------------------  Chris
Johnson --'-{@
>     / "(it is) crucial that we learn the difference / [EMAIL PROTECTED]
\
>    / between Sex and Gender. Therein lies the key  /
\
>   / to our freedom" -- LB                         /
www.nccnet.co.uk/~sixie \



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

From: [EMAIL PROTECTED] (Zed C. Pobre)
Subject: Re: colors in login console
Reply-To: [EMAIL PROTECTED]
Date: Sun, 17 Sep 2000 05:01:15 GMT

Bill Unruh <[EMAIL PROTECTED]> wrote:
>In <[EMAIL PROTECTED]> Garry Knight <[EMAIL PROTECTED]> 
>writes:
>
>]On Thu, 14 Sep 2000, Ray Yang wrote:
>]>Hi:
>]>     I just installed Redhat 6.2, and whenever I log in, I get lots of colors
>]>on my screen when I type ls. However, when I add a .cshrc and a .login
>]>file to my home directory, I don't get the colors anymore! How do I get
>]>the colors back while still having a .cshrc and .login file?
>
>And here is someone who LIKES the colours? I find that they severely
>detract from my actually being able to read what is being said.

    I can't comment on colors specific to Redhat, but on my Debian
system, ls --color simply puts directories in blue and files with
execute permission in green, which I find quite handy.  You find this
distracting, or did Redhat severely overcolorize everything?

    In any case, something in the .cshrc or .login is probably
overriding /etc/csh.cshrc or such, probably by creating a new ls alias
that doesn't have a --color flag, or by setting the TERM variable to
something that doesn't display colors.  My advice is to try comparing
the csh files in $HOME to the ones in /etc to see what the differences
are.

-- 
Zed Pobre <[EMAIL PROTECTED]> a.k.a. Zed Pobre <[EMAIL PROTECTED]>
PGP key and fingerprint available on finger; encrypted mail welcomed.

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

From: MH <[EMAIL PROTECTED]>
Subject: Good MPEG player for Linux?
Date: Sat, 16 Sep 2000 21:59:47 -0700
Reply-To: [EMAIL PROTECTED]

Anyone know of a good MPEG player for Linux?  Would be nice if it also
played AVI files.

-- 
Don't waste your vote.  Vote Green, or don't vote at all.

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

From: [EMAIL PROTECTED] (Christopher Browne)
Subject: Re: gnome or kde?
Reply-To: [EMAIL PROTECTED]
Date: Sun, 17 Sep 2000 05:07:41 GMT

Centuries ago, Nostradamus foresaw a time when Garry Knight would say:
>On Sat, 16 Sep 2000, Patton Echols wrote:
>> If I understand correctly, the Gnome/KDE
>>programs will run if the correct libraries are installed, regardless of
>>the window manager.  (QUERY: will they run without ANY window manager?) 
>
>No. Gnome and KDE-compliant programs run in windows so they need a window
>manager present.

Actually, that's not _quite_ right; if you happen not to have a wm
running, the applications may still run, it's just that they will
remain unmanaged.

I just tried this; ran eeyes quite successfully without there being
_any_ window manager running.

That is not to say that this was a very _constructive_ situation;
performance SUCKED as windows popped up wherever they willed, and I
had little ability to modify locations of stuff.

But that holds true for other X apps that relate not at all to Gnome
or KDE.

>>If I want the programs to interact with the window manager, then the
>>manager must be Gnome aware, or KDE aware, or both.
>
>KDE comes with its own window manager, kwm, although you can use it with some
>degree of success with other window managers. If the window manager isn't
>Gnome or KDE aware then you're likely to lose some functionality depending on
>the window manager.

The amount of functionality that comes out of this doesn't seem to be
_massively_ crucial; I can't actually identify that lost functionality.

It seems to me that the claim of "loss of functionality" by using an
"inappropriate" window manager represents some closer to a (perhaps
inadvertant) inducement of Fear, Uncertainty, and Doubt (FUD) than
it does anything really critical.

Your milage may vary; those that feel they lose crucial things as
a result of not being "Gnome-aware" or "KDE-aware" can feel free to
enumerate those crucial things.  [Feel free to read that as:
"I am skeptical that people are generally able to identify what they
might lose, and seriously doubt that it _truly_ matters."]
-- 
[EMAIL PROTECTED] - <http://www.hex.net/~cbbrowne/xdesktop.html>
Evil Overlords tend to get overthrown due to making some downright
stupid mistakes.  Follow the "Rules of the Evil Overlord," and you
need not fear heroic opposition, whether that hero be James Bond,
Flash Gordon, or a little hobbit named Frodo.

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


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