From 4703a46560ad453c365526cf056c7f69f7e16888 Mon Sep 17 00:00:00 2001 From: Mirek Jahoda Date: Tue, 10 Jul 2018 16:04:36 +0200 Subject: [PATCH] Displaying a user prompt on the GNOME login screen (akvitek) --- ...ing_user_prompt_on_gnome_login_screen.adoc | 3 + ...ing_user_prompt_on_gnome_login_screen.adoc | 70 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 en-US/displaying_user_prompt_on_gnome_login_screen.adoc create mode 100644 en-US/modules/proc_displaying_user_prompt_on_gnome_login_screen.adoc diff --git a/en-US/displaying_user_prompt_on_gnome_login_screen.adoc b/en-US/displaying_user_prompt_on_gnome_login_screen.adoc new file mode 100644 index 0000000..23290ad --- /dev/null +++ b/en-US/displaying_user_prompt_on_gnome_login_screen.adoc @@ -0,0 +1,3 @@ +:md: ./modules + +include::{md}/proc_displaying_user_prompt_on_gnome_login_screen.adoc[leveloffset=+1] diff --git a/en-US/modules/proc_displaying_user_prompt_on_gnome_login_screen.adoc b/en-US/modules/proc_displaying_user_prompt_on_gnome_login_screen.adoc new file mode 100644 index 0000000..debe0b9 --- /dev/null +++ b/en-US/modules/proc_displaying_user_prompt_on_gnome_login_screen.adoc @@ -0,0 +1,70 @@ +[id=displaying-user-prompt-instead-of-list-of-users-on-GNOME-login-screen] += Displaying a user prompt instead of a list of users on the GNOME login screen + +To show a user prompt on the GNOME login screen, open a terminal and perform the following steps: + +. Create a file for the GNOME Display Manager (GDM) configuration. ++ +---- +$ sudo mkdir /etc/dconf/db/gdm.d +---- ++ +---- +$ vim /etc/dconf/db/gdm.d/01-hide-users +---- + +. In a text editor of your choice, `vim` in this example, insert the following content to the `/etc/dconf/db/gdm.d/01-hide-users` file: ++ +---- +[org/gnome/login-screen] +banner-message-enable=true +banner-message-text='ENTER ANY MESSAGE YOU WANT HERE. FOR A NEW LINE USE \n.' +disable-restart-buttons=true +disable-user-list=true +---- ++ +[NOTE] +-- +To not display the banner message, do not include the first and second line. To enable the `Restart` button, do not include the fourth line. +-- ++ +Save the file and return to the terminal. + +. Create another file for GDM configuration. ++ +---- +$ sudo vim /etc/dconf/profile/gdm +---- ++ +Insert the following content in the `/etc/dconf/profile/gdm` file: ++ +---- +user-db:user +system-db:gdm +---- ++ +Save the file. + +. Enter the following command: ++ +---- +$ sudo dconf update +---- + +. Check if the command was executed correctly: ++ +---- +$ ls /etc/dconf/db +---- ++ +The output should contain the following: ++ +---- +gdm gdm.d ... [output truncated] +---- + +. Restart GDM for the changes to take effect. ++ +---- +$ sudo systemctl restart gdm +----