LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-14-2005, 12:08 AM   #1
kponenation
Member
 
Registered: Jul 2004
Location: New Orleans, Louisiana
Distribution: Slackware 10.1
Posts: 142

Rep: Reputation: 15
Displaying a message when I start a new konsole.


I would like to display a message (some texts) when I or others start a new konsole. How do I do this? Thanks in advance.
 
Old 08-14-2005, 12:16 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Put the text in each user's .bashrc file, if you want the messages to be different. If you don't, put it in /etc/profile

i.e.
[me@localhost ~]$ cat .bashrc
export PATH=$PATH:/usr/sbin/:/home/me/OpenOffice.org1.1.0/program:/usr/gnat/bin:/usr/java/jdk1.3.1_07/bin/
export PYTHONPATH=/usr/local/lib/python2.2/site-packages/gtk-2.0/:/usr/local/lib/python2.2/site-packages/
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

#aliases
alias ls="ls --color"
alias ll="ls -l"
alias umount="sudo umount"
alias mount="sudo mount"
alias shutdown="sudo /sbin/shutdown"
alias zork="~/Download/jzip201g/jzip ~/zork/zork_x/ZORK1.DAT"

#Customize bash prompt to look human...
PS1="[\u@\h \w]\\$ "

#The last thing in the file
echo "What is your command, my mistress?"

Last edited by rose_bud4201; 08-14-2005 at 12:18 AM.
 
Old 08-14-2005, 12:21 AM   #3
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
Quote:
#The last thing in the file
echo "What is your command, my mistress?"
Now, of course, the question that's burning in everybody's mind is whether that's being said as Igor, faithful assistant to countless evil geniuses, or as a supplicant... o.O
 
Old 08-14-2005, 12:23 AM   #4
kponenation
Member
 
Registered: Jul 2004
Location: New Orleans, Louisiana
Distribution: Slackware 10.1
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks for your help rose_bud.
 
Old 08-14-2005, 12:40 AM   #5
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
Quote:
Originally posted by killerbob
Now, of course, the question that's burning in everybody's mind is whether that's being said as Igor, faithful assistant to countless evil geniuses, or as a supplicant... o.O
I guess you'll never know... ;-)

Incidentally, root's is
[me@localhost ~]$ su
Password:
Whoohoo, ultimate power!
[root@localhost /home/me]#

*grin*
 
Old 08-14-2005, 12:51 AM   #6
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Rep: Reputation: 15
another method would be to create a file /etc/motd and write your message in it. so when you login next time, /etc/motd would be read and the message be displayed. but that works when you want the same message to be displayed for everyone
 
Old 08-14-2005, 12:57 AM   #7
kponenation
Member
 
Registered: Jul 2004
Location: New Orleans, Louisiana
Distribution: Slackware 10.1
Posts: 142

Original Poster
Rep: Reputation: 15
i already use /etc/motd but this only works if i ssh to my box not when I start a konsole.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying message on FC1 roland_andrey Linux - Newbie 3 01-10-2005 07:50 PM
Displaying a message on terminal roland_andrey Linux - General 4 01-10-2005 05:53 PM
auto start of konsole digitalbrutus Linux - Software 3 12-13-2004 03:51 PM
displaying popuo message by daemon process running in runlevel 5 using xmessage kalpesh_rathod8 Programming 2 11-22-2004 04:19 AM
Error in Konsole when I start it tsalem Linux - Newbie 3 09-30-2004 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:47 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