Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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 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.
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.
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.
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.
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.
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.
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)...
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?
on windows client insert the destination user into WINPOPUP grup:
Options-->Users and Groups--> select WINPOPUP group.
Add destination user to this group.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.