diff --git a/deploy.sh b/deploy.sh
index 1ef59e2a2bb6b75f619462f6dca56636f39cea9f..8fa9fdc3d7fd4ff78ed240730fc212dd92dc8899 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,10 +1,18 @@
 #!/bin/bash
+if [ -z `tty | grep tty` ]
+then
+    echo "This script should be run from tty"
+    echo "To start TTY please type Ctrl+Alt+F1"
+    exit 1
+fi
 read -p "This script should be run on Primtux to synchronise ldap do you want to continue [y/N]" ans
 if [ "$ans" != "y" ]
 then
     exit 1
 fi
+sudo dhclient eth0
 sudo apt-get update
+sudo systemctl stop lightdm
 sudo apt-get -y -q install libpam-ldap libnss-ldap nscd smbclient winbind cifs-utils libpam-mount ldap-utils kdm
 sudo apt-get purge lightdm
 # remove local users