Last active
August 29, 2015 14:11
-
-
Save bitcloud/acf2f652efbb5f71058c to your computer and use it in GitHub Desktop.
Add default logging Console to Ubuntu Guest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# run as root | |
apt-get install mingetty | |
cat << EOF > /etc/init/ttyProxmox.conf | |
# ttyProxmox - autologin mingetty | |
start on stopped rc RUNLEVEL=[2345] | |
stop on runlevel [!2345] | |
respawn | |
exec /sbin/mingetty --autologin root --noclear tty1 | |
EOF | |
echo "manual" >> /etc/init/tty1.override | |
stop tty1 | |
start ttyProxmox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment