I have a laptop which is dual boot with Windows XP and Ubuntu 10.10. On Windows it always logs into the domain and I am able to connect to over ethernet since it is based on the domain.

However on my Ubuntu I use hostname as ubuntu which is default. How do I ensure that it uses the same hostname and domain as in Windows.

Is there a way to migrate the settings from Windows?

Thanks Madhava

  • 2
    "since it is based on the domain" Does this mean Active Directory machine account? – user8290 Feb 1 '11 at 14:12
  • What domain? Are you at home, work, school? – belacqua Mar 31 '11 at 3:30

There's a tool in the Ubuntu repositories called likewise-open that allows you to join an Ubuntu machine to a domain hosted by Active Directory. Once you join your machine to the domain, you can log in to Ubuntu using your domain account (although I have had to type in my full user name, DOMAIN/user, to get it to work properly).

You will need to have special "Domain Admin" privileges to join your computer, however; you may have to ask someone from your IT department to use their domain account if you don't have these.

  • Let me try this and see if it works. – Madhava Feb 1 '11 at 17:49
  • This also didn't work :( – Madhava Feb 3 '11 at 5:18

To change the hostname:

gksudo gedit /etc/hostname

Replace 'ubuntu' with the new hostname. Save. Reboot. And for the domain name...

gksudo gedit /etc/hosts

which might look something like this: localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 your-host.your-domain.com your-host
  • Tried it didn't work, I want to ensure that the domain name is set properly so that I am able to connect to my Corporate network over Ethernet. – Madhava Feb 1 '11 at 14:04
  • I added changing the domain name. – user8290 Feb 1 '11 at 14:10
  • Somehow the domainname is not getting updated at all. – Madhava Feb 3 '11 at 5:18
  • Any solutions? I still haven't been able to get to domainname to set properly at all. – Madhava Feb 4 '11 at 17:20
  • 1
    Does the machine need to join with Active Directory? Or is that line of thinking totally out? – user8290 Feb 4 '11 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.