Customizing things

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.

Customizing things

Postby Master of Reality » Thu Oct 02, 2003 1:34 pm

I dont think this is distro specific so i posted here (in the lounge).

What do i have to edit to change the text that appears before "login:" on a text login.

What i want to do is, creat a couple users... named Doom, Doom2, DoomL. And then depending on which user is logged in it will automatically start that type of doom. And i want to put what the users are in the text.


Or..... i could have some sort of text (curses) based menu after logging in, and then one chooses which option (for the various dooms installed). Where would i find information on doing this? I could probably rig something up in C++, but would that be the best idea... or perhaps a shell script?


In case you didnt get it.. i'm trying to make a crappy laptop a doom only linux laptop.... a doomtop.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Re: Customizing things

Postby Void Main » Thu Oct 02, 2003 3:04 pm

Master of Reality wrote:What do i have to edit to change the text that appears before "login:" on a text login.


See man issue

What i want to do is, creat a couple users... named Doom, Doom2, DoomL. And then depending on which user is logged in it will automatically start that type of doom. And i want to put what the users are in the text.


I assume this is separate from your first question since you don't know who is logged on until they actually log on. See man bash, specifically for "~/.bash_login". This script gets executed when the user first logs in. You could have the commands in there to run your programs. Put appropriate commands in appropriate user's .bash_login file.

Or..... i could have some sort of text (curses) based menu after logging in, and then one chooses which option (for the various dooms installed). Where would i find information on doing this? I could probably rig something up in C++, but would that be the best idea... or perhaps a shell script?


Again, you can run anything like this from .bash_login.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA


Return to The Lounge

Who is online

Users browsing this forum: No registered users and 0 guests

cron