Is there something better than Samba for Ubuntu 12.04 lts to Win XP home network
Dell 610, Ubuntu 12.04 lts, cabled to router
Acer Aspire One, Windows XP Home Service Pack 3, wireless to router Dell Dimension 2350, Windows XP Home SP3, cabled to router Linksys WD54G wireless router XP network called LINUX works between both XP machines with several directories shared and printers shared working fine. After following Ubuntu tutorials for weeks finally achieved both wireless and cable connection to the router. Verified by Linksys local network table showing the Ubuntu machine connection. (Thanks to spambait9876 recommendation) Weeks into Samba with removals and reinstalls Ubuntu does not see the LINUX network nor do the XP machines see Ubuntu. Am I expecting too much that they wil "just connect" like the XP machines did? True I have learned a lot along the way,,,,but is there something out there that makes networking easier than Samba? Thanks |
Well it should just work. Double check you correctly setup netbios and workgroup names. Check you are running and have correctly configured samba with a wins server with udp port 137, 138 and tcp ports 139 and 445 open on the samba server.
From ubuntu make sure you have smbclient installed and it is integrated with the window manager. On my distro it does not get installed by default. Maybe ubuntu is the same. You can always use something like freenas, but seing it works with xp, i think the issue is likely missing libraries in ubuntu |
Thanks for the sanity check, you give me hope.
I have been using Ubuntu "quick setup" tutorials which do not get into ports. However I will do what you suggest as I figure it out. I found a Samba manual (http://www.samba.org/samba/docs/man/...ion/index.html) and am moving thru it performing all the linux and windows terminal commands mentioned. This is where I should have started. |
Yes the Netbios names and group names are correct. Verified by nbtstat -a (machine names)
from an XP machine which also sees the Ubuntu machine. |
On my system at home, I have one windows box acting as a server. In ubuntu 12.04, I had to use the "connect to server" feature of nautilus to connect the server box directly by ip address. Although the server was on, it never appears in the "browse network" feature, even though other systems without shares actually do.
|
Quote:
If anything, you are one persistant dude. I would have asked for help here on LQ.org long before "weeks into Samba..." |
Am I being stupid sticking with Ubuntu 12.04 lts? Most of the stuff I find related to 12.04 is years old and when I try to do it there is something not quite right. Should I move to the latest release 13...?
Over in the Mint forum I see a recent post saying not to use the GADMIN-SAMBA which I have been. So I just learned how to remove/purge all things samba. I will start from scratch. |
Hi. I've had this problem on occasion as well although have not used or connected to microcoughed in so long I have no help here, sorry. But, depending on what you want the connection to work with there's a decent UPnP AV media server named Rygel or SSH, etc? Best wishes and have fun. :)
|
Quote:
|
Nautilus, always tries to use a path of "network:///" not sure how this translate to searching for networks shares but changing it to "smb://servername" should do the trick. Then later just book mark that.
Using gadmin is something i don't have experience with, but you can always just check theactual samba.conf to check things look more or less ok. |
Thank You ericson9876,
I tried to clean out all of samba and start over. Loaded samba and tried to manually configure smb.conf with no luck, just too confusing, so reloaded the gadmin-samba. Somehow it found the old smb.conf file I thought I had removed. I cleared that out and reconfigured samba using gadmin-samba as best as I know how. Using network tools I can choose the active network services on the ubuntu machine and the check netstat button shows 6 each tcp ports listening at 127.0.0.1 (139, 5939, 53, 631, 445) but there is only one udp port listening #53. The ports you referenced udp 137, 138 have a blank status ie not listening and a 0.0.0.0 ip source. I have looked all over the samba doc's and see no way to configure samba with a wins server. Where should I be looking? I went to the xp machine and added UPnP service to the Windows Network services. I was looking for wins. That action caused my router to appear on the task bar. |
UDP 53 is used for DNS. You don't want that blocked.
To enable wins you will have to add the following to the samba.conf Code:
Before doing that though, double check to make sure that your nmbd server is running. nmbd uses the udp ports. Strictly you don't need that running, but without it or adding a DNS host entry, the only way to find the server would be by using nmbd. That is all strictly speaking though because mostly tcp 445 is used to connect. Anyway, the ports should be checked open on the SAMBA host, not the client and please double check that 127.0.0.1 assigned to samba ports. That will cause issues since only the local host will have access. In your samba.conf look for "bind interfaces only = yes" in the global section. If that is there it should look something like this Code:
bind interfaces only = yes |
SAMBA is used to share the Linux box with the Windows boxes. If all you want to do is mount the Windows shares on Linux, you can forget all of the SAMBA stuff and just mount the share with CIFS.
|
suicidaleggroll.. Sorry I did not state my goal: To share printers and files among 3 xp machines and 2 linux machines with various printers attached to and moved among the 5 machines, eventually move to all linux.
ericson007... Below is my smb.conf file so you don't have to guess. I just changed dns proxy from no to yes but have not tried a reboot yet. Don't know how but will find out if the nmbd is running. I think 127.0.0.1 is assigned to samba ports as per 6th line I think hosts allow might be messed up as per 5th line bind interfaces only is yes I dont see an interfaces = lo eth0 which in my case should be eth1 [global] netbios name = WA3SCM-HOME server string = Samba file and print server workgroup = LINUX security = user hosts allow = 127. 192.168.0. interfaces = 127.0.0.1/8 192.168.0.0/24 bind interfaces only = yes remote announce = 192.168.0.255 remote browse sync = 192.168.0.255 printcap name = cups load printers = yes cups options = raw printing = cups guest account = smbguest log file = /var/log/samba/samba.log max log size = 1000 null passwords = no username level = 6 password level = 6 encrypt passwords = yes unix password sync = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = no domain master = no preferred master = no domain logons = no os level = 33 logon drive = m: logon home = \\%L\homes\%u logon path = \\%L\profiles\%u logon script = %G.bat time server = no name resolve order = wins lmhosts bcast wins support = yes wins proxy = yes dns proxy = yes preserve case = yes short preserve case = yes client use spnego = no client signing = no client schannel = no server signing = no server schannel = no nt pipe support = yes nt status support = yes allow trusted domains = no obey pam restrictions = yes enable spoolss = yes client plaintext auth = no disable netbios = no follow symlinks = no update encrypted = yes pam password change = no passwd chat timeout = 120 hostname lookups = no username map = /etc/samba/smbusers passdb backend = tdbsam passwd program = /usr/bin/passwd '%u' passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u' add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u' add group script = /usr/sbin/groupadd '%g' delete user script = /usr/sbin/userdel '%u' delete user from group script = /usr/sbin/userdel '%u' '%g' delete group script = /usr/sbin/groupdel '%g' add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u' machine password timeout = 120 idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 template shell = /dev/null winbind use default domain = yes winbind separator = @ winbind cache time = 360 winbind trusted domains only = yes winbind nested groups = no winbind nss info = no winbind refresh tickets = no winbind offline logon = no [homes] comment = Home Directories path = /home valid users = %U read only = no available = yes browseable = yes writable = yes guest ok = no public = no printable = no locking = no strict locking = no [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon read only = no available = yes browseable = yes writable = no guest ok = no public = no printable = no locking = no strict locking = no [profiles] comment = User Profiles path = /var/lib/samba/profiles read only = no available = yes browseable = yes writable = yes guest ok = no public = no printable = no create mode = 0600 directory mask = 0700 locking = no strict locking = no [printers] comment = All Printers path = /var/spool/samba browseable = yes writable = no guest ok = no public = no printable = yes locking = no strict locking = no [pdf-documents] path = /var/lib/samba/pdf-documents comment = Converted PDF Documents admin users = %U available = yes browseable = yes writeable = yes guest ok = yes locking = no strict locking = no [pdf-printer] path = /tmp comment = PDF Printer Service printable = yes guest ok = yes use client driver = yes printing = bsd print command = /usr/bin/gadmin-samba-pdf %s %u lpq command = lprm command = |
you also might want to install win7 or 8 or something else
XP dies in a month Microsoft is ending all support next month |
All times are GMT -5. The time now is 09:33 AM. |