LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2014, 12:43 AM   #1
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Rep: Reputation: Disabled
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
 
Old 01-04-2014, 01:23 AM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
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

Last edited by ericson007; 01-04-2014 at 02:05 AM.
 
Old 01-04-2014, 01:01 PM   #3
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-04-2014, 01:41 PM   #4
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-04-2014, 03:39 PM   #5
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 342

Rep: Reputation: Disabled
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.
 
Old 01-04-2014, 04:15 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,207

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
Quote:
Originally Posted by WA3SCM View Post
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?
It should all just work. I haven't set up Samba for a while (my existing setup "just works" and I've had no need to change it). But I do remember it took me about 10 minutes to set it up initially - research included. But then, I'm an old guy with decades of Linux/Unix experience. I assume you might be newer to Linux.

If anything, you are one persistant dude. I would have asked for help here on LQ.org long before "weeks into Samba..."
 
Old 01-04-2014, 05:56 PM   #7
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-04-2014, 06:35 PM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,652
Blog Entries: 2

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

Last edited by jamison20000e; 01-04-2014 at 09:32 PM.
 
Old 01-04-2014, 08:21 PM   #9
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,207

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
Quote:
Originally Posted by WA3SCM View Post
Am I being stupid sticking with Ubuntu 12.04 lts?
Not in my opinion. I am using Mint 13, which is based on Ubuntu 12.04. Specifically because it IS an LTS release.
 
Old 01-05-2014, 12:05 AM   #10
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

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

Last edited by ericson007; 01-05-2014 at 12:07 AM.
 
Old 01-05-2014, 01:52 AM   #11
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-05-2014, 10:55 AM   #12
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
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:
[global]
	wins support = yes
global should already exist so just add the wins support directive.

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
interfaces = lo eth0
if it has only lo, you cannot connect from other computers.
 
Old 01-05-2014, 11:53 AM   #13
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
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.
 
1 members found this post helpful.
Old 01-05-2014, 12:47 PM   #14
WA3SCM
LQ Newbie
 
Registered: Dec 2013
Posts: 13

Original Poster
Rep: Reputation: Disabled
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 =
 
1 members found this post helpful.
Old 01-05-2014, 01:43 PM   #15
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520Reputation: 2520
you also might want to install win7 or 8 or something else
XP dies in a month

Microsoft is ending all support next month
 
  


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
Ubuntu 10.04.3 LTS - Locking user to own home directory? RML1992 Ubuntu 4 06-30-2012 03:12 AM
Samba issues - Fedora 10 - win xp home revlo Linux - Server 24 06-14-2009 10:51 PM
win xp home edition and samba home shares scheidel21 Linux - Software 8 10-09-2008 01:47 AM
dualbooting ubuntu 6.06 lts with win 2000 nielson Linux - Kernel 18 07-10-2006 02:09 PM
Samba & WIN XP Home pid79 Linux - Networking 1 03-18-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration