+ Post New Thread
Results 1 to 15 of 15
*nix Thread, Set Server name & make visible on windows network in Technical; How do I reset an Ubuntu 6.10 LAMP server name and how do I make it visible to the windows ...
  1. #1
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Set Server name & make visible on windows network

    How do I reset an Ubuntu 6.10 LAMP server name and how do I make it visible to the windows network using the command line?

  2. #2

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    You need to install and configure, Kerberos, Samba and Winbind. Here's a howto.

    https://help.ubuntu.com/community/Ac...ryWinbindHowto

  3. #3
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    Ta!

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    Now, with that said I would like to expand on what that guide says. It's not 'wrong', you will end up with a working system if you follow it to the letter. However I think there's a few points where there is a better way to do things(tm).

    1. It tells you to edit your hosts file.

    I don't think this is necessary. Either setup DNS records (reservation or static ip + manual records) in your windows DNS server or configure dhclient to register the correct dns hostnames in DNS. (read the comments in /etc/dhcp3/dhclient.conf)

    2. It tells you to sync your clock with ntpdate.

    This is correct, however I'd go further than this. I'd also install ntpd and setup that to sync with your DCs (all windows DCs run NTP). Otherwise machines with long up times will drift out of sync and lose their kerberos authentication.

    3. It tells you to configure /etc/krb5.conf

    This step is unnecessary. You can delete the file entirely and MIT Kerberos will use the settings embedded in the Windows DNS system instead.

    6. It gives you a complete smb.conf

    Which is fine and will work, however I'd like to point out that if you set the 'template shell' to '/bin/false' you can prevent AD users from logging in (via SSH for example). This is quite handy on a server where you've gone and configured PAM for winbind authentication.

    5. It tells you to edit nsswitch.conf.

    Which is fine, but it neglects to tell you to include the 'wins' option on the hosts line.

  5. #5
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    I can't get winbind - couldn't find package - i've enabled the universe repository

  6. #6
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    I don't want to authenticate against it just now Geoff - just be able to get to it on the network by computer name rather than IP - which is all i'm able to do just now

    ...and then change the computer name

  7. #7
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    changed computer name

  8. #8

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    Quote Originally Posted by mark
    I can't get winbind - couldn't find package - i've enabled the universe repository
    er...but it exists..

    http://packages.ubuntu.com/edgy/net/winbind

    just be able to get to it on the network by computer name rather than IP - which is all I'm able to do just now
    If it's using DHCP either set a reservation up or tell dhclient to send the machines hostname (uncomment and edit the relevant line in /etc/dhcp3/dhclient.conf).

    If it's set to use a static IP, add the A and PTR records to your DNS server manually.

    ...and then change the computer name
    The computer name is set in /etc/hostname

  9. #9
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    k fixed it - i'd messed up my sources list - all better now

  10. #10
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    The computer name is set in /etc/hostname
    and /etc/hosts ...I think you need to set it in both? - to make it permanent - hostname <name> sets it temporarily *'scuse me while I make notes lol

  11. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    depends on your dns setup.

  12. #12
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    How would I know?

  13. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    Is there an A and PTR record in DNS for the machine (tip, try using dig or nslookup to test this).

  14. #14
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,987
    Thank Post
    275
    Thanked 52 Times in 46 Posts
    Blog Entries
    2
    Rep Power
    48

    Re: Set Server name & make visible on windows network

    I manually created one Geoff

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,850
    Thank Post
    110
    Thanked 598 Times in 514 Posts
    Blog Entries
    1
    Rep Power
    227

    Re: Set Server name & make visible on windows network

    ok that should be fine. Leave the /etc/hosts alone.



SHARE:
+ Post New Thread

Similar Threads

  1. GPO's to make a school Network
    By nicholab in forum Network and Classroom Management
    Replies: 25
    Last Post: 15th December 2010, 04:42 PM
  2. Outlook web access contacts not visible
    By Dos_Box in forum Windows
    Replies: 5
    Last Post: 13th May 2008, 12:46 PM
  3. Leaning network manager + windows server 2008
    By nicholab in forum Learning Network Manager
    Replies: 0
    Last Post: 18th July 2007, 09:35 AM
  4. Make IIS use a proxy server
    By fooby in forum Web Development
    Replies: 6
    Last Post: 13th February 2006, 04:30 PM
  5. Replies: 13
    Last Post: 7th November 2005, 11:05 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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