View Full Version : change tty text and background colour?
lodore
May 8th, 2009, 07:13 PM
Hello,
whats the easiest way to change the white text and black background for tty 1-6?
I tryed this (http://www.linuxforums.org/forum/misc/144645-change-boot-tty-colors.html) reply 4 but then i got error message on boot saying id field to long 6 times and tty's didnt seem to work...
X started fine thou so i just put file back.
GlobalForce
May 10th, 2009, 10:33 AM
You get this sorted or how'd you have <code>your line setup?</code>
lodore
May 10th, 2009, 03:39 PM
Hello,
I modified this
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
to this
1:2345:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty1
2:23:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty2
3:23:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty3
4:23:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty4
5:23:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty5
6:23:respawn:/sbin/getty -I `setterm -clear all -foreground green -bold -store` 38400 tty6
on boot it said to much code for the id field i think.
the tty's didnt seem to work.
X started fine so I logged in and changed back to original and tty;s worked again.
iceni60
May 11th, 2009, 11:43 AM
maybe ttys use the .bashrc in the etc directory. try searching for this -
change tty text /etc/.bashrc
edit: i mean /etc/bash.bashrc
ok, i'll try and write something that makes sense. i don't know for sure, but the ttys probably use the default shell - 'echo $SHELL' you can change the way they look, if you're using bash like me, in ~/.bashrc for the user and for root in /root/.bashrc or maybe the etc one i mentioned before.
vBulletin® Copyright ©2000-2012, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2012, Wilders Security Forums