Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Cannot see Ubuntu server on Network (Windows)

  1. #1
    Join Date
    Sep 2012
    Beans
    15

    Cannot see Ubuntu server on Network (Windows)

    I got myself two HP Microservers for NAS purposes. Both were the same. I installed Ubuntu server on the one without a glitch, and everything worked from scratch. It is currently doing service as the backup server in my office.

    The send one however have been giving trouble since day one. I think I reinstalled Ubuntu probably 7 times on that, everytime to try and sort out something else, most being the RAID system. I currently have it up and running with RAID operational, and I can copy files to it from another PC on the network. But! I need to search for the PC. I have to type in the IP address as it does not resolve the host name. The other server is called "backup-NAS" and situated at 192.168.0.210. The problem server is called "movie-NAS" and is at 192.168.0.211.

    I see backup-NAS on the network and can easily connect to it using either the host name or IP address.

    I cannot see movie-NAS on the network. I cannot connect to it using the host name, neither can I connect to webmin using https://movie-nas:10000/. I can type in \\192.168.0.211 to connect to it and then I can copy stuff to it and connect to webmin using https://192.168.0.211:10000/

    Clearly it is a broadcast thing but I have no idea how to solve this. Any help will really be appreciated. I mainly connect to it via a Windows machine(s).

  2. #2
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot see Ubuntu server on Network (Windows)

    Open the file /etc/samba/smb.conf:
    sudo gedit /etc/samba/smb.conf

    Uncomment the following line (remove the semicolon)
    ; name resolve order = lmhosts host wins bcast

    save and restart samba
    sudo /etc/init.d/samba restart

  3. #3
    Join Date
    Sep 2012
    Beans
    15

    Re: Cannot see Ubuntu server on Network (Windows)

    Thanks. I uncommented that line, yet, when I tried restarting SAMBA it told me command not found.

    Code:
    > sudo /etc/init.d/samba status
    sudo: /etc/init.d/samba: command not found
    I did try:
    Code:
    sudo apt-get install samba
    It just tells me samba is already the newest version ???

  4. #4
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,636
    Distro
    Ubuntu

    Re: Cannot see Ubuntu server on Network (Windows)

    Thread moved to Server Platforms.

  5. #5
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot see Ubuntu server on Network (Windows)

    sorry,

    sudo service smbd restart

  6. #6
    Join Date
    Sep 2012
    Beans
    15

    Re: Cannot see Ubuntu server on Network (Windows)

    Sigh. Still no luck.

  7. #7
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot see Ubuntu server on Network (Windows)

    Quote Originally Posted by MorneDJ View Post
    Sigh. Still no luck.
    Can you upload your samba configuration file?

  8. #8
    Join Date
    Dec 2007
    Beans
    416

    Re: Cannot see Ubuntu server on Network (Windows)

    Resolving IP address and hostnames is a DNS thing. Check your DNS server to see that movie-NAS is set up properly in DNS.

  9. #9
    Join Date
    Sep 2012
    Beans
    15

    Re: Cannot see Ubuntu server on Network (Windows)

    I have a small network and never had to use it. Everything used to resolved the host names. I thought that the switch that I use did that automatically.

    Here is the smb.conf file. I removed the uncommented stuff:

    Code:
    [global]
    	log file = /var/log/samba/log.%m
    	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    	obey pam restrictions = yes
    	map to guest = bad user
    	encrypt passwords = true
    	passwd program = /usr/bin/passwd %u
    	passdb backend = tdbsam
    	dns proxy = no
    	server string = %h server (Samba, Ubuntu)
    	unix password sync = yes
    	workgroup = WORKGROUP
    ;	os level = 20
    	syslog = 0
    	panic action = /usr/share/samba/panic-action %d
    	usershare allow guests = yes
    	max log size = 1000
    	pam password change = yes
    
    name resolve order = lmhosts host wins bcast
    
    
    
    [printers]
       comment = All Printers
       browseable = no
       path = /var/spool/samba
       printable = yes
       guest ok = no
       read only = yes
       create mask = 0700
    
     [print$]
       comment = Printer Drivers
       path = /var/lib/samba/printers
       browseable = yes
       read only = yes
       guest ok = no
    
    [Storage]
    	force user = root
    	writeable = yes
    	public = yes
    	path = /Storage

  10. #10
    Join Date
    Nov 2008
    Location
    Lleida, Spain
    Beans
    1,157
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot see Ubuntu server on Network (Windows)

    OK, I think I found the problem:

    add in [global] section

    netbios name = machine_name

    and restart

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •