On a network appliance I am building, based on Ubuntu server I wish to perform the following customizations:
- Disable the VGA output so if one connect a screen nothing will appear. This however shall not affect the ability to connect to the machine with ssh and control it
- If that is not possible without re-compiling the kernel (action I wish to avoid as much as possible), I at least want that when machine boot completes, it will not show the login prompt, rather my own custom message.
How can I get either one of the above options
To disable textual login on virtual terminal tty1...tty6, you can modify
/etc/init/tty1.conf
(and the other fromtty2.conf
totty6.conf
), substituting the linewith something like the following:
where
/usr/local/bin/tty-replacement
can be a simple shell script like this:This should not prevent ssh login, that has nothing to do with ttys.
Remember to make the shell script executable with