[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Newbie (to Debian)



David Rysdam 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.

Perhaps throw in a boot-time script that does a screen clear as the very
last script to get run?  I've heard about the boot time logo (framebuffer?)
but having never implemented it here I don't know if anything different must
be done.  Does the command 'clear' do the job for you, what with the logo
and all?  Perhaps something like (this is untested):

----- begin /etc/init.d/screen_clear -----
#!/bin/sh
clear
----- end /etc/init.d/screen_clear -----

then do:
update-rc.d screen_clear start 98 2 3 4 5 .

If the clear command doesn't work due to that logo thingy, then perhaps
replacing clear with reset would work?

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

Really?  Odd.  It gives me a release name here.  I'm running woody here. 
Perhaps you are running some other release and things have changed between
releases regarding that file?

>  Do I have to just know what name that maps to?

Ah.  Slight misunderstanding on my part.  Once you have the name / number of
the release, you should be able to map it over to a version number / name
at: http://www.debian.org/releases/
-- 
Mike Werner  KA8YSD   | He that is slow to believe anything and
                      | everything is of great understanding,
'91 GS500E            | for belief in one false principle is the
Morgantown WV         | beginning of all unwisdom.

Attachment: pgpfiQK2SsQ3h.pgp
Description: PGP signature


Reply to: