LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 06-18-2006, 09:30 AM   #1
rui
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Rep: Reputation: 0
Unhappy Problem with Netbios


I want to share my linux printer with a windows pc.
I've got samba runing and I get this message on /var/log/samba:
"Samba name server ALPC is now a local master browser for workgroup HOME on subnet 192.168.2.139" so all seems to be ok.
The problem is that my router doesn't shows the linux computer name.
What should I do?
 
Old 06-19-2006, 06:08 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi, What is your topology? Have you seen this?

http://www.linux.org/docs/ldp/howto/...h_windows.html

Good luck.
 
Old 06-20-2006, 08:54 AM   #3
rui
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Original Poster
Rep: Reputation: 0
topology

My topology? It' simple, there are 2 computers, both connected to a wireless router that shares the internet.
But the problem is that when my dual boot linux/win pc uses windows the router shows a name, when uses linux it shows no name.
 
Old 06-20-2006, 06:24 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
What does your smb.conf file look like? Do you have the
Code:
workgroup = yourgroup
netbios name = yournetbiosname
options?
Good luck.
 
Old 06-21-2006, 03:17 PM   #5
rui
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Original Poster
Rep: Reputation: 0
smb.conf

Yes, I have that two lines.
One thing that I noticed. I have the samba service to start at boot but when I see the status, it says it's dead. I start it manualy and it runs ok. Can this be related with the netbios problem?
 
Old 06-21-2006, 05:22 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Yes, could you post your smb.conf? What method are you using to start smbd and nmbd? What distro are you running?
Good luck.
 
Old 06-22-2006, 08:58 AM   #7
rui
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Original Poster
Rep: Reputation: 0
smb.conf

I use "/etc/init.d/smb start" to start samba and I'm using Fedora 5.

Here is my smb.conf:

[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = Home
netbios name = alpc
dns proxy = no

# server string is the equivalent of the NT Description field
server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
; hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
printcap name = /etc/printcap
load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
; printing = cups
printing = bsd

# This option tells cups that the data has already been rasterized
cups options = raw

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
; guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
# log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user
*passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
; username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[homes]
comment = Home Directories
browseable = no
writable = yes

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
security = server
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = yes
writable = no
printable = yes
create mode = 0700

# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /tmp
; read only = no
; public = yes
public = yes

[ljet]
security = server
path = /var/spoll/samba
printer name = lp
writable = yes
public = yes
printable = yes
print command = lpr -r -h -P %p %s
 
Old 06-22-2006, 05:37 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Try these two lines if your using /etc/inet.d.

Code:
netbios-ssn    stream  tcp     nowait  root    /usr/sbin/smbd  smbd
netbios-ns     dgram   udp     wait    root    /usr/sbin/nmbd  nmbd
You may also want to change this.

Code:
[homes]
comment = Home Directories
browseable = no
writable = yes
To this


Code:
[homes]
comment = Home Directories
browseable = yes
writable = yes
And/Or change this.

Code:
[printers]
security = server
comment = All Printers
path = /var/spool/samba
browseable = no
To this

Code:
[printers]
security = server
comment = All Printers
path = /var/spool/samba
browseable = yes
Good luck.
 
  


Reply



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
Samba Netbios Name Resoluion Problem humbletech99 Linux - Networking 16 06-07-2005 05:40 AM
samba netbios problem zsoltrenyi Linux - Software 1 02-18-2005 01:55 AM
Firewall Problem with Netbios ports soonerira Linux - Security 2 04-08-2004 05:58 AM
netbios routing problem groovin Linux - Networking 9 08-15-2003 05:59 PM
samba NetBIOS names problem dkodegwc Linux - Networking 10 12-10-2002 12:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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