on Mon, Oct 30, 2000 at 09:02:19PM -0500, David Rysdam ([EMAIL PROTECTED]) wrote: > On Mon, Oct 30, 2000 at 07:02:00PM -0500, Mike wrote: > > David Rysdam wrote: > > > > 1) When I boot and the login screen comes up, the screen isn't cleared > > > first...in fact, when I logout the screen isn't cleared either. This > > > is annoying at best and a security problem at worst (who knows what > > > you might have left on the screen when you logged out). How can I > > > correct this? > > > > To clear the screen when you logout, one way is to create the file > > ~/.bash_logout and put the command 'clear' into that file. The .bash_logout > > is a list of commands that get executed when you logout. This is assuming > > thatyou use bash as your shell. Other shells may well have something > > analogous, but I do not know. > > No good, it doesn't solve the main problem: how do I clear the screen > on boot up as well. In particular, I have the boot logo going (and I > can't possibly give up THAT important feature) so I need to do a > "reset" after I login to clear the screen AND the logo. A reset takes > a second or two and I'd rather not wait for it. I'm picky.
I'd strongly recommend you *don't* clear the screen on boot. If you do
end up with system problems affecting the boot process, it's a lot
easier to work out what's happend if you can scroll back and see a few
lines of context. Not everything is logged to dmesg and syslog. Given
that I reboot every couple of months, I can stand a bit of verbage when
I do.
Doing the following will, if you insist, add a "clear screen" to the
login screen prompt:
vi /etc/issue
:0r ! clear # issued from within vi
...or if that doesn't work (and you haven't deleted /etc/issue in the
process <g>):
$ clear > /tmp/clear
$ cat /etc/issue >> /tmp/clear
$ mv /etc/issue /etc/issue.bak
$ mv /tmp/clear /etc/issue
> > > 2) How can I figure out the "code name" for my distribution? I'm
> > > purposely not revealing what version number I have because I want to
> > > know how to *find out*--I don't want someone to just say "potato" or
> > > whatever.
> >
> > cat /etc/debian_version
>
> That gives me the version number but not the name. Do I have to just
> know what name that maps to?
See also /etc/issue and /etc/issue.net.
Generally, version is something you just kind of know.
--
Karsten M. Self <[email protected]> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
pgpXQTVMUPmIU.pgp
Description: PGP signature

