eRacks Forums

eRacks Open Source Systems forums for discussion, ideas, and support.

eRacks Forums » howto

Change BSD/Linux terminology @ login screen

(6 posts)

  1. Hello,

    I am wondering how to change the default screen in OpenBSD from:
    "OpenBSD/i386 (GENERIC) (computer.hostname) (tty0)"

    To something along the lines of:
    "Corporate System Console : OpenBSD/i386"

    (I'm being intentionally vague. Some of my work is sort of classified).

    The point is, where can I change things like that? Do I have to change it in the source and re-compile (ugh)?

    Posted 2 years ago #
  2. Hello there,
    Some one should be able to assist you shortly, thanks for stopping in.

    Posted 2 years ago #
  3. Dear sgammon10,

    It sounds like you're talking about the unix "Prompt".

    This is the string that's displayed by the system to let you know it's ready for input.

    The prompt is set as an environment variable - typically either the 'prompt' variable, or the 'PS1 variable, depending on your shell (csh, bash, etc).

    to learn more about this, man csh and search for 'prompt', or man bash and search for the 'PS1' definition.

    The commands to set your prompt are typically in your '.<shell>rc' file or '.profile' file, typically .cshrc or .bashrc, again depending on your shell.

    Remember, the man pages are your friend.

    Posted 2 years ago #
  4. Wait, I'm trying to change the text at the login prompt, to log in to OpenBSD. Is this the prompt variable, or is that the command prompt:
    "hostname$ you put commands here"?

    Also, it says that my shell was /bin/ksh, but there is no such file or directory. I changed it to /bin/rksh, which is a real file. Where is my configuration file for this? All I can find is .cshrc in /.

    Thanks in advanced for your help.

    Posted 2 years ago #
  5. The "hostname$" is what the computer prints, to tell you that it's ready for input.

    This can be set using environment variables - the exact environment variable depends on your shell. The most popular shell is "bash".

    "man environ" will tell you about environment variables.

    "man bash" or "man ksh" will tell you about these shells, including how to set the prompt.

    "man chsh" will tell you how to change shells - be careful, you can render your machine inaccessible with this command if you're not careful.

    Yes, it takes time to read them and find what you're looking for - this is expected when you use unix or one of its derivatives.

    If you're still lost, we recommend one of many good books on getting started with Unix/Linux/BSD and the commandline / shell.

    Our eRacks experts can also help do whatever you need to get done on a consulting basis for you if you prefer, or help educate you either remotely or onsite.

    Posted 2 years ago #
  6. Alan
    Member

    Try editing the /etc/gettytab file. I'm running FreeBSD, not OpenBSD but I suspect it's the same. If you can't figure out the gettytab file, you can run the command "man 5 gettytab".

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.