## means comment and $ means command
-- means side note



##download pbis open (power broker identity services ) upgraded from likewiseopen
link download : https://statusdeck.sharepoint.com/:u:/s/ZavasiKB/Ee82KcUOQIhBm9qVjf_yOpkBfU255Ge8rCez055MtMXpVg?e=qsVhMQ
Video :
https://statusdeck.sharepoint.com/:v:/s/ZavasiKB/Ea7NCFtPxUhOjMUax0gA7vwBzM7Ltrwbwy6FV43cHJoQjw?e=DSBBt1



$ sudo apt-get install ssh
$ sudo apt-get remove avahi-daemon

$ cd Downloads/
$ sudo chmod +x pbis-open-...         --( the downloaded file full name)
$ sudo ./pbis-open-...                --(the downloaded file name )

##after installation we will join the current linux system to ad
$ sudo domainjoin-cli join domain-name 
##replace domain name with your domain-name 

## your computer will get added to AD domain
## now we need to make few changes
$ sudo bash
$ echo 'greeter-show-manual-login=true' >> /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf 

## now you need to take out an user which you want to login with to your linux system , for example test123 and provide it root or sudo permission 
$ sudo echo 'DOMAIN-NAME\\user-name ALL=(ALL) ALL' >> /etc/sudoers        --(remember , here we need to take care of capital and small letters ) and --(remember to replace domain and computer-name with yours)
 
## to provide root or sudo permission to a group
$ sudo echo '%DOMAIN-NAME\\group-name ALL=(ALL) ALL' >> /etc/sudoers                --(remember to replace domain and computer-name with yours)

## Reboot your system
## To login to your ad user , on the login screen select 'Login' and then write there your username like this 'user-name@domain-name' and after that it will prompt for a password and you are done , Congrats