How To Add A Linux
How To Add A Linux
How To Add A Linux
I know about many enterprises, specially in the third world, that need to use Linux machines
because of the price of the software. I always thought that this kind of software is one of the best
options for developing countries to integrate into the international tech community. Of course,
there are some issues to correct when integrating Linux with other proprietary software, such as
Windows. So, I decided to show how to add a Linux machine to a Windows Domain.
Requirements:
1. Create an Active Directory Domain. You can follow the instructions here.
2. Download PowerBroker Open Edition. You can get it here. You'll have to fill a short form and
press "Get Started".
3. You'll receive a mail with the download link. Click it.
4. Download the file corresponding with the architecture of your Linux machine. Since I'm using
Lubuntu here, I'll select the version for 32 bits for Ubuntu.
5. Copy the file to your Linux machine in a place that you can access easily.
Go to the folder where you have the installer that you downloaded. In my case:
cd /home/jorge/powerbroker
chmod +x pbis-open-7.5.2.1527.linux.x86.deb.sh
Would you like to install package for legacy links? (i.e. /opt/likewise/bin/lw-find-user-by-name
-> /opt/pbis/bin/find-user-by-name) (yes/no)
Enter "no".
Enter "yes".
10. Open the IPv4 tab and set Method to Manual. Click on + Add and enter an IP address, a
netmask and a gateway. In DNS Servers enter the IP of the Domain Controller, and in Search
Domains enter the name of the domain. You could use the following image as an example. Then
press Save:
You'll have to enter your password, and then you can ping the Domain Controller just to see if
everything's OK.
11. By now, you should have a user already created in the Domain for the Linux machine. In my
case, I have "Jorge" created:
12. Remember the window that you minimized? Maximize it and enter the required data and then
click Join Domain.
13. Enter the credentials of the user you created in Active Directory and press OK. If everything
went well, you should see this:
15. Once you restarted the machine, log in with the domain credentials. In my case: test\jorge.
You can check the domain by opening a terminal and typing: dnsdomainname.
Or you can check if the computer was added in Active Directory:
And that's it!! I know it's not as easy as using only Windows machines, but believe me, there are
many reasons to use Linux in this kind of environments.
As a conclusion, there are many other configurations to do in the Linux machines to secure it in
the context of Active Directory, but I will write about it in the next article. Have fun!
Dominio: DONNIE.local
DC: SERVIDOR.DONNIE.local
IP: 192.168.100.2
Antes de comenzar mirad que la ip de vuestro equipo esté en el mismo rango que la ip del
servidor. Una vez confirmado esto (si no, configuradlo) comenzaremos.
1sudo ./pbis-open-8.0.1.2029.linux.x86_64.deb.sh
Tras esto nos unimos al dominio (cambia administrator y el nombre del domino por los que
procedan):
Y desde la consola configuramos más datos para el acceso, recordad cambiar el dominio y
el grupo de usuario por el que corresponda en vuestro caso:
1sudo vi /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
2
3#Añade las siguients líneas (sin la marca de comentario)
#allow-guest=false
4#greeter-show-manual-login=true
5
6##Nota, en Lubuntu 14.04 el archivo a cambiar será 60-lightdm-gtk-
7greeter.conf
Finalmente vamos a darle permisos de sudo al usuario del dominio (ojo, si procede)
editando el archivo correspondiente con un sudo vi /etc/sudoers y añadiendo los datos que
sean necearios siguiendo los ejemplos contenidos en el propio documento.
Tras esto, si reiniciamos el equipo, deberíamos ya poder hacer login con el usuario del
Active Directory de Windows.