LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-20-2006, 03:05 PM   #1
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Rep: Reputation: 30
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
 
Old 04-20-2006, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 04-20-2006, 04:39 PM   #3
cav
Member
 
Registered: Feb 2003
Location: Chicago
Distribution: Slackware 10.2
Posts: 154

Original Poster
Rep: Reputation: 30
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.
 
Old 04-20-2006, 05:48 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
  


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
automatically send an email to new users....? oru Slackware 2 09-14-2007 02:56 AM
My cd drive doesn't mount automatically in Slack thorney Linux - Newbie 3 08-03-2005 07:14 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
slack doesnt shutdown automatically?? yenonn Slackware 6 01-02-2004 09:38 AM
LICQ: send through server OR send directly mikeshn Linux - Software 0 06-09-2003 06:14 PM

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

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