Re: OpenBSD 4.4 Console Will Not Clear

2008-12-09 Thread Bret

Greets

Denny Thanks for pointing out I had not CC'ed the misc list.
So here is the full reply with the solution I found for 7.3 - How do I 
clear the console each time a user logs out?
problem. See the second to last post for my solution. The FAQ just needs 
to be updated.


Bret

Denny White wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

  

Denny White wrote:


On Mon, Dec 08, 2008 at 03:56:21PM -0700, Bret spoke thusly:
  
  

Greetings

   I have been running OpenBSD as a firewall/router since 2.5 and 
have  never had any problem with Clearing the console each time a 
user logs  out. I have just installed 4.4 on a system that was 
running 4.0. I did a  complete install from the install CD off the 
ftp site(s). I then edited  /etc/gettytab the same way I have done 
many times before, following the  FAQ instructions. The console will 
not clear after logging out. I have  even rebooted and the same 
results. I thought I might have screwed the  file up editing it so I 
even did another clean install and ONLY  installed pico to edit 
/etc/gettytab just in case I somehow messed it up  using vi... still 
no go. Looked out on the net and found no reference to  this. Any 
Ideas?


Bret




I'm assuming you're referring to

http://www.openbsd.org/faq/faq7.html#ConsoleClear

i.e.,

To do this you must add a line in /etc/gettytab(5). Change the current
section:

P|Pc|Pc console:\
:np:sp#9600:

adding the line :cl=\E[H\E[2J: at the end, so that it ends up looking
like this:

P|Pc|Pc console:\
:np:sp#9600:\
:cl=\E[H\E[2J:


Now try changing

default:\
:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:

to

default:\
:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:cl=\E[H\E[2J:



Denny White

  
  

On Mon, Dec 08, 2008 at 09:20:24PM -0700, Bret spoke thusly:
  

Greets

I found that the ttys file now has:
ttyC0 /usr/libexec/getty std,9600
where it used to be:
ttyC0 /usr/libexec/getty Pc

so I changed the the following in /etc/gettytab:

2|std.9600|9600-baud:\
   :sp#9600:

To:

2|std.9600|9600-baud:\
   :sp#9600:\
   :cl=\E[H\E[2J:

and the console now clears every time.

Bret




You're absolutely right. Never noticed that. I ran into the same
problem as you when upgrading to 4.4  used the way I sent you.
Nice to know another way  another way to look at it. Thanks.
You really ought to post that to [EMAIL PROTECTED] I noticed you didn't cc
the list. Be nice to have it in the archives for others. Thanks
again, Bret.


Denny White

- -- 


 /\ASCII Ribbon Campaign
 \ /Respect for low technology.
  X Keep e-mail messages readable by any computer system.
 / \Keep it ASCII.
===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (OpenBSD)

iEYEARECAAYFAkk+DIIACgkQy0Ty5RZE55q+3wCfVQ9ZCY/72ZMnvtrguyF9DiRm
2f8AoMf8rPSz5nzGRDWoSxDPbcLyNeaV
=xf5j
-END PGP SIGNATURE-




OpenBSD 4.4 Console Will Not Clear

2008-12-08 Thread Bret

Greetings

   I have been running OpenBSD as a firewall/router since 2.5 and have 
never had any problem with Clearing the console each time a user logs 
out. I have just installed 4.4 on a system that was running 4.0. I did a 
complete install from the install CD off the ftp site(s). I then edited 
/etc/gettytab the same way I have done many times before, following the 
FAQ instructions. The console will not clear after logging out. I have 
even rebooted and the same results. I thought I might have screwed the 
file up editing it so I even did another clean install and ONLY 
installed pico to edit /etc/gettytab just in case I somehow messed it up 
using vi... still no go. Looked out on the net and found no reference to 
this. Any Ideas?


Bret



Re: OpenBSD 4.4 Console Will Not Clear

2008-12-08 Thread Denny White
On Mon, Dec 08, 2008 at 03:56:21PM -0700, Bret spoke thusly:
 Greetings

I have been running OpenBSD as a firewall/router since 2.5 and have  
 never had any problem with Clearing the console each time a user logs  
 out. I have just installed 4.4 on a system that was running 4.0. I did a  
 complete install from the install CD off the ftp site(s). I then edited  
 /etc/gettytab the same way I have done many times before, following the  
 FAQ instructions. The console will not clear after logging out. I have  
 even rebooted and the same results. I thought I might have screwed the  
 file up editing it so I even did another clean install and ONLY  
 installed pico to edit /etc/gettytab just in case I somehow messed it up  
 using vi... still no go. Looked out on the net and found no reference to  
 this. Any Ideas?

 Bret


I'm assuming you're referring to

http://www.openbsd.org/faq/faq7.html#ConsoleClear

i.e.,

To do this you must add a line in /etc/gettytab(5). Change the current
section:

P|Pc|Pc console:\
:np:sp#9600:

adding the line :cl=\E[H\E[2J: at the end, so that it ends up looking
like this:

P|Pc|Pc console:\
:np:sp#9600:\
:cl=\E[H\E[2J:


Now try changing

default:\
:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:

to

default:\
:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:cl=\E[H\E[2J:



Denny White

-- 

 /\ASCII Ribbon Campaign
 \ /Respect for low technology.
  X Keep e-mail messages readable by any computer system.
 / \Keep it ASCII.
===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===



Re: OpenBSD 4.4 Console Will Not Clear

2008-12-08 Thread Bret

Greets:

   I have found where the FAQ was needed to be updated ;D

I looked in ttys and found that it was using the getty std,9600 instead 
of the getty Pc.


Sorry for the trouble,

Bret

Bret wrote:

Greetings

   I have been running OpenBSD as a firewall/router since 2.5 and have 
never had any problem with Clearing the console each time a user logs 
out. I have just installed 4.4 on a system that was running 4.0. I did 
a complete install from the install CD off the ftp site(s). I then 
edited /etc/gettytab the same way I have done many times before, 
following the FAQ instructions. The console will not clear after 
logging out. I have even rebooted and the same results. I thought I 
might have screwed the file up editing it so I even did another clean 
install and ONLY installed pico to edit /etc/gettytab just in case I 
somehow messed it up using vi... still no go. Looked out on the net 
and found no reference to this. Any Ideas?


Bret