Linux Tutorials - Herong's Tutorial Examples - v5.37, by Dr. Herong Yang
"Web console" Login Welcome Message
Provides a tutorial example on how to remove the 'Web console' Cockpit message displayed after logging in to a CentOS 8 system.
When logging in to a CentOS 8 system, you will get "Web console" message as part of the welcome message. This is because CentOS 8 has included Cockpit, the Web Console, as part of the system installation.
By default, Cockpit is installed and disabled on the system. So when logging in, you will see the "Activate the web console with ..." message. It is to remind you that Cockpit Web console is not activated yet.
herong>ssh email@example.com firstname.lastname@example.org's password: TopSecret Activate the web console with: systemctl enable --now cockpit.socket
After you have enabled and started "cockpit" and "cockpit.socket" services, you will see the "Web console <url>..." message. It is to remind you that Cockpit Web console can be accessed with a Web browser at those URLs.
herong>ssh email@example.com firstname.lastname@example.org's password: TopSecret Web console: https://localhost:9090/ or https://192.168.1.100:9090/
Since this "Web console" welcome message is displayed for all users on your CentOS 8 system, it could cause confusions to regular users, who are not encouraged to use Cockpit.
If you want to hide this "Web console" welcome message, you can do the following to replace Cockpit MOTD (Message Of The Day) file with an empty file.
herong$ sudo ls -l /etc/motd.d lrwxrwxrwx. 1 root root 17 cockpit -> /run/cockpit/motd herong]$ sudo ls -l /run/cockpit -rw-r--r--. 1 root root 69 active.motd lrwxrwxrwx. 1 root root 11 motd -> active.motd herong$ sudo more /run/cockpit/active.motd Web console: https://localhost:9090/ or https://192.168.1.100:9090/ herong$ sudo mv /run/cockpit/motd /run/cockpit/motd-bck herong$ sudo touch /run/cockpit/motd
Table of Contents