LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Start up messages??? (https://www.linuxquestions.org/questions/linux-general-1/start-up-messages-53706/)

Wilson 04-06-2003 12:53 PM

Start up messages???
 
how would i go about setting up my computer to show the user a message??? plz be detailed as i be extremely new:confused:

MasterC 04-06-2003 12:56 PM

Do you mean right after they login, or during bootup or what? Also, do you mean to do this in X or in a console? X is the graphical environment in linux and console is the "dos like" screen (in case you weren't aware).

Cool

Wilson 04-06-2003 01:02 PM

id like to know how to do the message thingy in the console and it would be nice to know how to display the message during bootup and after login

acid_kewpie 04-06-2003 01:05 PM

the "message thingy"??? :rolleyes:

Wilson 04-06-2003 01:07 PM

lol yeah like have a message that shows the time and has some news.

acid_kewpie 04-06-2003 01:12 PM

ok i guess you mean an motd or issue file.

/etc/motd will be printed after you log into a shell, and /etc/issue will be printed before you login on a terminal. motd and issue should both have a manpage for you to check.

Wilson 04-06-2003 01:34 PM

ok that worked. how could i make my computer run a command on startup

Proud 04-06-2003 01:41 PM

For every user, in every run level? Specify...

MasterC 04-06-2003 01:44 PM

Usually by placing it in rc.local or a similar file that might be located in /etc/rc.d or just /etc/rc.local (which might be symlink elsewhere).

Cool

Wilson 04-06-2003 01:44 PM

sure why not

Proud 04-06-2003 01:51 PM

Well surely it depends on why you want such an app to run. If you dont have a gui loaded (runlevel 3 for ex.) then you wouldnt want something trying to show a gui... :rolleyes:

You dont just want to splash some lame '1 4M 1337' thing do you?

Wilson 04-06-2003 01:59 PM

i am trying to get my console foreground to become blue when any user logs on i believe the command is setterm -foreground blue, but no matter how i type it in S99local or rc.local it dosent work is there like a special syntax or something

acid_kewpie 04-06-2003 02:01 PM

rc.local is completed BEFORE anyone can log in to the system. seems like you actually want .bashrc or .profile in that users home directory, or /etc/profile and /etc/bashrc for everyone

Wilson 04-06-2003 02:07 PM

Great that worked thanks


All times are GMT -5. The time now is 04:39 PM.