Skip to content
Snippets Groups Projects
Verified Commit 077cc76f authored by David Beniamine's avatar David Beniamine
Browse files

Force tty and stop lightdm

parent 3997a01d
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/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 read -p "This script should be run on Primtux to synchronise ldap do you want to continue [y/N]" ans
if [ "$ans" != "y" ] if [ "$ans" != "y" ]
then then
exit 1 exit 1
fi fi
sudo dhclient eth0
sudo apt-get update 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 -y -q install libpam-ldap libnss-ldap nscd smbclient winbind cifs-utils libpam-mount ldap-utils kdm
sudo apt-get purge lightdm sudo apt-get purge lightdm
# remove local users # remove local users
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment