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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-25-2003, 11:51 AM
|
#16
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
gnome or kde?
|
|
|
05-25-2003, 11:54 AM
|
#17
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
got me there, how can i tell, but i think gnome
|
|
|
05-25-2003, 11:55 AM
|
#18
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
i do have a KDE menu on the start button
|
|
|
05-25-2003, 12:15 PM
|
#19
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
05-25-2003, 01:23 PM
|
#20
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
05-26-2003, 02:12 PM
|
#21
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
05-26-2003, 06:34 PM
|
#22
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
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.
|
|
|
05-28-2003, 09:10 PM
|
#23
|
LQ Newbie
Registered: May 2003
Posts: 20
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 03:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|