Linux - NewbieThis 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.
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.
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.
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
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:
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.