Skip to content

Instantly share code, notes, and snippets.

@bitcloud
Last active August 29, 2015 14:11
Show Gist options
  • Save bitcloud/acf2f652efbb5f71058c to your computer and use it in GitHub Desktop.
Save bitcloud/acf2f652efbb5f71058c to your computer and use it in GitHub Desktop.
Add default logging Console to Ubuntu Guest
#!/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