LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2003, 12:53 PM   #1
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Rep: Reputation: 15
Question 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
 
Old 04-06-2003, 12:56 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 04-06-2003, 01:02 PM   #3
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-06-2003, 01:05 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the "message thingy"???
 
Old 04-06-2003, 01:07 PM   #5
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
lol yeah like have a message that shows the time and has some news.
 
Old 04-06-2003, 01:12 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-06-2003, 01:34 PM   #7
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
ok that worked. how could i make my computer run a command on startup
 
Old 04-06-2003, 01:41 PM   #8
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
For every user, in every run level? Specify...
 
Old 04-06-2003, 01:44 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 04-06-2003, 01:44 PM   #10
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
sure why not
 
Old 04-06-2003, 01:51 PM   #11
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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...

You dont just want to splash some lame '1 4M 1337' thing do you?
 
Old 04-06-2003, 01:59 PM   #12
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 04-06-2003, 02:01 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
 
Old 04-06-2003, 02:07 PM   #14
Wilson
Member
 
Registered: Apr 2003
Location: Georgia
Distribution: Red Hat 5.1 on a compaq
Posts: 31

Original Poster
Rep: Reputation: 15
Great that worked thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
Start up messages found where? pgte3 Linux - Newbie 14 09-09-2004 12:12 PM
Apache start fails... no error messages given esmiz Linux - Software 12 05-29-2004 08:07 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM
syslog and firestarter - log messages to another file than messages mule Linux - Newbie 0 08-07-2003 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration