Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

In some circumstances it would be valuable for me to be presented with a short, text notification prior to logging in, so that I have the option to decide not to log in after seeing the message.

Is there a way to display a notification message on the graphical login screen?

share|improve this question
Do you want the message to appear before you log in? Or immediately once you've entered your username and password? –  Eliah Kagan Feb 6 '13 at 17:19
What kind of notifications? I mean, before you're logged in, no applications like IM client are running yet. I can only think of battery stateus (mobile PC) and system-level Network Manager profiles connecting. And in what context is this? Pure user or developing an application? –  gertvdijk Feb 6 '13 at 17:22
I'm interested in a general answer; I have no specific requirements for message timing or tools used to generate the message. –  ændrük Feb 6 '13 at 17:34
you mean something like , login screen then your message. No need of any sign-in ? –  Raja Feb 6 '13 at 18:02
@snow "prior to logging in" <-- –  gertvdijk Feb 6 '13 at 18:09

2 Answers 2

It may not be possible to display the message on the login screen directly. But you can send a message prior to logging in. Add to your /etc/lightdm/lightdm.conf:

greeter-setup-script=xmessage -button ok -default ok -center "Hello world"

Be cautious as wrong option in this file can break your boot procedure.
Mouse will be unavailable on this stage, but you will be able to close the message with Enter. xmessage can read the message text from the file or can have custom timeout. Check its manpage for additional options.
You may check https://wiki.ubuntu.com/LightDM for additional information about lightdm.conf and greeter customization.

share|improve this answer

You can modify the login banner to show the warning you want to show. For more details, you can have a look at the below mentioned link:-


share|improve this answer
I think the OP meant the graphical login screen. –  zwets Mar 14 '13 at 9:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.