Slackware This Forum is for the discussion of Slackware Linux.
|
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.
|
 |
04-20-2006, 03:05 PM
|
#1
|
Member
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154
Rep:
|
Need a way for slack server automatically send various notifications
I have a slack server running on my network...it has no display or input devices, only cables are power and ethernet. I have it set up with ssh for remote admin, and vnc for remote x-windows access. It is sitting behind my wireless router with port forwarding set up for remote ftp and ssh access.
1st question: can someone suggest a way for my server to send some type of popup window to my windows machine after it boots, so that I know when it becomes available on the network? Just a simple text message would work.
2nd question: since I have dhcp supplying an IP to my router which changes every now and then, is there a way to check the IP every so often, and email myself the new IP whenever it renews?
Thanks in advance
|
|
|
04-20-2006, 03:48 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
1 - The offical way would be to use samba's smbclient command with the -M option, check the manpage for details.
2 - Yeah there are plenty of simple scripts you can run to inspect the output of ifconfig etc... search the forum and i'm sure you'll get plenty of examples.
|
|
|
04-20-2006, 04:39 PM
|
#3
|
Member
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154
Original Poster
Rep:
|
Thanks for the reply Chris. Regarding the smbclient -M command, it seems that this would use the windows "messenger" service if sent to a machine running XP...is this true? I remember turning this off a while back when spammers found that they could use it for exploiting windows users, now that I'm behind a firewall though it seems like a nice way to accomplish my goal.
|
|
|
04-20-2006, 05:48 PM
|
#4
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
Yeah, I would also suggest "smbclient -M" in rc.local.
You are correct that this would need the Windows Messenger service running on your Windows computer. You are also correct that since you now have an incoming packet firewall, there is no problem with running the Messenger service on the machine (beyond the system resource use, anyway).
For the second question, arpwatch should do what you want, email you when MAC->IP binding changes. That will email you when any IP changes though, so that might be more information then you want to deal with.
|
|
|
All times are GMT -5. The time now is 07:44 PM.
|
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
|
|