LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-25-2003, 11:51 AM   #16
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64

gnome or kde?
 
Old 05-25-2003, 11:54 AM   #17
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
got me there, how can i tell, but i think gnome
 
Old 05-25-2003, 11:55 AM   #18
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
i do have a KDE menu on the start button
 
Old 05-25-2003, 12:15 PM   #19
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
i know i'm a pain newbie, but i have lots of things to do like installing and configuring samba, ftp, and other stuff, but i have a good handle on that, just can't figure out this script. I guess i got lazy using windows for so long.
 
Old 05-25-2003, 01:23 PM   #20
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
ok, i did some more reading and checked weather i was usinf kde on gnome. I logged in with kde, and it looked totally different. I am logging in as default. I am using gnome

Last edited by jczr2; 05-25-2003 at 01:24 PM.
 
Old 05-26-2003, 02:12 PM   #21
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Sorry for taking so long to get back to you. My solution would be to create a script "/bin/welcome.sh" with the following
Code:
#!/bin/bash

# Print some blank lines and make it beep because we can
echo -e \\n\\n\\n\\a

# Print the message to the terminal
/bin/date +"     Welcome $USER. Today is %A %D, and it is now %R";

# Uncomment sleep to make the window auto close after N seconds OR
# Uncomment read to make the user to close the window or press <-'
#sleep N;
read;

exit;
Then ussing the session manager you can create an entry that runs this command when a the user logs in:
Code:
xterm -T "Welcome..." -geometry 75x10+250+250 -bg yellow -fg navy -e /bin/welcome.sh
This should open a nice xterm window with the message in it. I have left commens in the script to give you a choice of whether the windows disappears after a chosen time or whether the user should cancel it.
 
Old 05-26-2003, 06:34 PM   #22
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
ok, i got all that, but how do i get it to pop up every time someone loggs in. I don't quite understand how to get it to pop right up in the gui without going into the terminal window. Where do i save the second code to get it to run every time?
thanks alot

Last edited by jczr2; 05-26-2003 at 06:36 PM.
 
Old 05-28-2003, 09:10 PM   #23
jczr2
LQ Newbie
 
Registered: May 2003
Posts: 20

Original Poster
Rep: Reputation: 0
WOW, you guys are great. It worked perfect. This script was for a bonus 5 points i thought i needed for my case study, but I got 100% anyway, just added 5 to my lowest grade. Thanks alot, you really helped me alot.
jczr2
 
  


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
How to check in a script whether the shell is login or non login? frankie_DJ Programming 5 09-06-2005 06:01 AM
Exiting the Shell script with Error MEssage sumitarun Programming 5 04-14-2005 01:10 AM
Use a shell script to do login and other commands jpan Linux - General 15 01-12-2005 06:52 AM
how to produce pop-up message box / alert window from shell script peb Linux - Newbie 3 02-25-2004 03:14 AM
Shell script login command? chup Linux - General 3 08-24-2003 06:43 PM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration