"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 herong@192.168.1.100
herong@192.168.1.100'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 herong@192.168.1.100
herong@192.168.1.100'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

 About This Book

 Introduction to Linux Systems

Cockpit - Web Portal for Administrator

 What Is Cockpit

 Install and Configure Cockpit

"Web console" Login Welcome Message

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Software Package Manager on CentOS - DNF and YUM

 Running Apache Web Server (httpd) on Linux Systems

 Running PHP Scripts on Linux Systems

 Running MySQL Database Server on Linux Systems

 Running Python Scripts on Linux Systems

 vsftpd - Very Secure FTP Daemon

 Postfix - Mail Transport Agent (MTA)

 Dovecot - IMAP and POP3 Server

 Email Client Tools - Mail User Agents (MUA)

 LDAP (Lightweight Directory Access Protocol)

 GCC - C/C++ Compiler

 Graphics Environments on Linux

 Conda - Environment and Package Manager

 Tools and Utilities

 Administrative Tasks

 References

 Full Version in PDF/EPUB