LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2004, 12:13 PM   #1
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Rep: Reputation: 15
Cannot get LinPopup to receive messages


I have just installed LinPopup, but I cannot get it to receive messages. I have found one or two other threads in relation to this problem, but none of them have posited the solution, and many of them are very old. It has no problem sending messages to Windows XP machines on the network, it just cannot recieve them.

I have the following line in my smb.conf:

message command = /usr/bin/linpopup "%f" "%m" %s; rm %s

I have double-checked, and the path is correct. I downloaded the latest version of LinPopup (2.0.3) in the form of an RPM. Any help would be greatly appreciated.
 
Old 08-03-2004, 04:27 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,989

Rep: Reputation: 63
Some initial thoughts:

Is the samba daemon running?

Can you run the command from the command-line?

Now switch user to whoever samba is running as; does the command still work?

Does it work if you try a different command (e.g. “touch /tmp/lptestfile”, and see if /tmp/lptestfile gets created).

Do you have the port blocked by a firewall, or the samba user blocked from connecting to your X server?

Hope that's of some help,

— Robert J. Lee
 
Old 08-03-2004, 05:11 PM   #3
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by rjlee
[B]Some initial thoughts:

Is the samba daemon running?
The SMB service is running, if that's what you mean: I can connect to Windows shares on the Linux machine and Linux shares on my Windows machines.

Quote:
Can you run the command from the command-line?
What command?

Quote:
Now switch user to whoever samba is running as; does the command still work?
I've lost you here, I'm afraid. I don't have too much experience with Linux. Can you reccommend a good book?

Quote:
Does it work if you try a different command (e.g. “touch /tmp/lptestfile”, and see if /tmp/lptestfile gets created).
Again, lost.

Quote:
Do you have the port blocked by a firewall, or the samba user blocked from connecting to your X server?
The firewall isn't setup on the Linux machine. There's one running on the Windows machine, but it has no problems sending things to RealPopup users on other Windows machines running RealPopup. And, yes, I have set it to send WinPopup compatible messages to the Linux machine.

Quote:
Hope that's of some help,
Thank you very much for your help :-)
 
Old 08-03-2004, 05:39 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,989

Rep: Reputation: 63
Sorry; I rather rushed that reply.

Open up a console. Type
Code:
/usr/bin/linpopup
What happens?

Now, let's find out who smb is running as. First get the process ID (PID) number with
Code:
pidof smb
Let's say that was 1234. Now find out who's running 1234:
Code:
ls -ld /proc/1234
You should see some data, including a username followed by a group name. Let's say the user name is samba. Now become root
Code:
su
(You will need to type your root password here) Now become the samba user (or whoever was running smb)
Code:
su samba
And try the command again.
Code:
DISPLAY=:0.0 /usr/bin/linpopup
(the DISPLAY=:0.0 means “use the first X-Windows display”)

Another seperate test you can do is to change the smb.conf entry to:
Code:
message command = touch /tmp/lptestfile
then restart Samba. Sending a popup message to the Linux machine should now cause the file /tmp/lptestfile to be created (instead of displaying the message). So send a test message and see if it is. This test tells us if the Linux box is actually receiving the WinPopup messages or not.

— Robert J. Lee
 
Old 08-03-2004, 05:54 PM   #5
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by rjlee
[B]Sorry; I rather rushed that reply.
Thank you for your reply :-) You are most kind.

Quote:
Open up a console. Type
Code:
/usr/bin/linpopup
What happens?
LinPopup opens as an ordinary GUI window.

Quote:
Now, let's find out who smb is running as. First get the process ID (PID) number with
Code:
pidof smb
That's funny - when I do that (as root), I just get a blank line. Running it as non-root gives me "command not found".

Quote:
Let's say that was 1234. Now find out who's running 1234:
Code:
ls -ld /proc/1234
You should see some data, including a username followed by a group name. Let's say the user name is samba. Now become root
Code:
su
(You will need to type your root password here) Now become the samba user (or whoever was running smb)
Code:
su samba
And try the command again.
Code:
DISPLAY=:0.0 /usr/bin/linpopup
(the DISPLAY=:0.0 means “use the first X-Windows display”)
Hmm, this rather assumes success at the previous step, doesn't it?

Quote:
Another seperate test you can do is to change the smb.conf entry to:
Code:
message command = touch /tmp/lptestfile
then restart Samba. Sending a popup message to the Linux machine should now cause the file /tmp/lptestfile to be created (instead of displaying the message). So send a test message and see if it is. This test tells us if the Linux box is actually receiving the WinPopup messages or not.
I tried that - no lptestfile was created in /tmp.

Again, thank you very much for your help :-)

 
Old 08-04-2004, 03:59 AM   #6
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,989

Rep: Reputation: 63
Quote:
LinPopup opens as an ordinary GUI window.
Okay; that means that you don't have a problem with the LinPopup executable.

Quote:
That's funny - when I do that (as root), I just get a blank line. Running it as non-root gives me "command not found".
The pidof command is a important command, and so it resides in /sbin/; normally users don't need to use commands in /sbin/ so it's often left off the path. As a normal user you can run /sbin/pidof.

The fact that you are getting a blank line means that no process called smb is running. I think I meant smbd (but it could also be started by nmbd; check each of these).


Quote:
I tried that - no lptestfile was created in /tmp.
In this case, your system isn't receiving Winpopup messages, or isn't handing them over to smbd/nmdb, or smbd/nmbd isn't processing them. Check that you have the necessary daemons (smbd, nmbd) running.
 
Old 08-04-2004, 05:51 AM   #7
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by rjlee
Okay; that means that you don't have a problem with the LinPopup executable.


That's reassuring :-)

Quote:
The pidof command is a important command, and so it resides in /sbin/; normally users don't need to use commands in /sbin/ so it's often left off the path. As a normal user you can run /sbin/pidof.
That makes sense :-)

Quote:
The fact that you are getting a blank line means that no process called smb is running. I think I meant smbd (but it could also be started by nmbd; check each of these).
"pidof smbd" returned: 5662 2498

Quote:
In this case, your system isn't receiving Winpopup messages, or isn't handing them over to smbd/nmdb, or smbd/nmbd isn't processing them. Check that you have the necessary daemons (smbd, nmbd) running.
I should assume that, if I can see shares on Windows machines, they're running, yes? I checked: I can see the shares. "Service SMB status" confirms that SMB and NMB are both running.
 
Old 08-04-2004, 05:55 AM   #8
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
Let me try some of your original suggestions, substituting "smbd" for "smb".

Quote:
Originally posted by rjlee
Now, let's find out who smb is running as. First get the process ID (PID) number with
Code:
pidof smbd
Let's say that was 1234. Now find out who's running 1234:
Code:
ls -ld /proc/1234
It seems that the process is owned by root (both user and group).

Quote:
You should see some data, including a username followed by a group name. Let's say the user name is samba. Now become root
Code:
su
(You will need to type your root password here) Now become the samba user (or whoever was running smb)
Code:
su samba
And try the command again.
Code:
DISPLAY=:0.0 /usr/bin/linpopup
(the DISPLAY=:0.0 means “use the first X-Windows display”)
But, wait a minute: does this apply if I can get LinPopup to start without doing all of this?
 
Old 08-04-2004, 12:20 PM   #9
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
UPDATE: I had installed it via RPMs, so, thinking that this might be the problem, I uninstalled it, and installed it using a source tarball instead. It installed fine, but I have exactly the same problem (and, yes, I did put back the original line in smb.conf and restart the smb service afterwards)...
 
Old 08-05-2004, 04:07 AM   #10
jamespetts
Member
 
Registered: Sep 2002
Location: UK
Distribution: Ubuntu 11.10
Posts: 113

Original Poster
Rep: Reputation: 15
UPDATE no. 2: I tried installing KPopup, and had exactly the same symptoms: it would send, but not receive. I did change the line in smb.conf to the one suggested in the KPopup documentation, and restart the SMB service after changing it and before testing it. I am at a loss on this issue; can anybody help?
 
Old 02-01-2006, 06:10 AM   #11
Cristian77
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
this works for me:

on windows client insert the destination user into WINPOPUP grup:
Options-->Users and Groups--> select WINPOPUP group.
Add destination user to this group.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to send and receive "Net Send" messages in Linux? Avatar Linux - Networking 16 07-11-2010 09:42 PM
Problem compiling LinPopup jamespetts Linux - Software 1 08-04-2004 12:19 PM
linpopup not starting amit_rawat Linux - Newbie 0 02-23-2004 06:14 PM
LinPopUp cannot receive! tthai01 Linux - Networking 4 12-08-2003 02:40 PM
Linpopup problem jamespetts Linux - Networking 4 12-08-2003 02:20 PM


All times are GMT -5. The time now is 05:01 AM.

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
Open Source Consulting | Domain Registration