132 | | - When the cloning finished, start you new VM and do following to change the host name |
133 | | * Login to the vm. change to root user |
134 | | {{{ |
135 | | $sudo su |
136 | | }}} |
137 | | * Give your password |
138 | | * Edit /etc/hostname |
139 | | {{{ |
140 | | #nano /etc/hostname |
141 | | }}} |
142 | | * Change '''pc''' to '''www''' |
143 | | * Save and Exit |
144 | | - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 www."your domain".ws.ac.lk www |
145 | | |
146 | | You can follow the same steps and create the third VM to use as the ldap Server. Note the following changes. |
147 | | |
148 | | - Assign new name as '''ldap."your domain".ws.ac.lk''' |
149 | | - edit /etc/hostname file and change host name to web. You may use vi or nano editor. |
150 | | - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 ldap."your domain".ws.ac.lk |
| 132 | - You can follow the same steps and create the third VM to use as the ldap Server. Note the following changes. |
| 133 | * Assign new name as '''ldap."your domain".ws.ac.lk''' |