change tty text and background colour?

Discussion in 'all things UNIX' started by lodore, May 8, 2009.

Thread Status:
Not open for further replies.
  1. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,038
    Hello,
    whats the easiest way to change the white text and black background for tty 1-6?

    I tryed this 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.
     
  2. GlobalForce

    GlobalForce Regular Poster

    Joined:
    Jun 30, 2004
    Posts:
    3,581
    Location:
    Garden State, USA
    You get this sorted or how'd you have <code>your line setup?</code>
     
  3. lodore

    lodore Registered Member

    Joined:
    Jun 22, 2006
    Posts:
    9,038
    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.
     
  4. iceni60

    iceni60 ( ^o^)

    Joined:
    Jun 29, 2004
    Posts:
    5,116
    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.
     
    Last edited: May 11, 2009
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.