LightDM - Ubuntu: Questions and Answers (2014)

Ubuntu: Questions and Answers (2014)

LightDM

Skip to questions, Wiki by user k.-hendrik

Features of LightDM:

· Low code complexity

· Easily themeable

· Support for 3D

To know more about lightdm and about how it helps the Ubuntu login please refer to this answer.


Questions

Q: How do I disable the drum beat sound on the login screen?

Tags: lightdm (Next Q)

I would have expected System Administration Login Screen Play login sound to control this, but unchecking it does not prevent the drum beat sound from playing.

Tags: lightdm (Next Q)

User: ændrük


Answer by andrejs-cainikovs

For 12.04 and 13.04 (LightDM)

unity-greeter versions prior to 0.2.8-0ubuntu1 has no way to disable the lightdm start-up sound. This has been addressed here.

For unity-greeter version 0.2.8-0ubuntu1 and up, start-up sound can be disabled via:

sudo sh -c "echo '[com.canonical.unity-greeter]' >> /usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override; echo 'play-ready-sound = false' >> /usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override"

sudo glib-compile-schemas /usr/share/glib-2.0/schemas/


Answer by luis-alvarado

For Ubuntu 12.04+

LightDM Way

Also known as the FluteFlute Slap, the LightDM Way involves having to logout and on the LightDM Login Screen you can change the volume or even mute the sound.

In the Login Greeter you can see the Volume on the top right. Adjusting the volume there does not affect the volume when the session starts, so you can MUTE the sound in the Greeter without muting the sound when your session starts:

enter image description here

Ubuntu Tweak Way

The Ubuntu Tweak way involves having to download the Ubuntu Tweak app and then disabling the sound from there. Do the following steps and you can do it this way:

sudo add-apt-repository ppa:tualatrix/ppa
sudo apt-get update
sudo apt-get install ubuntu-tweak

Open Ubuntu Tweak and on the Tweak Tab select "Login Settings" option, you should see the Play Login Sound option. Yo need to click on the Lock button above to be able to change this.

enter image description here

For Ubuntu 11.10 and Below

Go to System -> Preferences -> Startup Applications

Startup Applications

Disable the one called GNOME Login Sound

(uncheck the box and click close)

Disable the sound

you can also go to System -> Preferences -> Sound and disable the whole sound system (Like windows sounds, alerts, etc..)

In older version you could go to the Sound Preference part and select each sound and what you wanted to do. It was removed around 9.04 or 9.10. It would be good if it came back.


Answer by phoenix-stormcrow

12.04 & 13.04 (LightDM)

Here is what worked for me after I installed 12.04 last week.

The steps are these:

$ gksudo gedit /usr/share/glib-2.0/schemas/50_unity-greeter.gschema.override

Add these lines:

[com.canonical.unity-greeter]

play-ready-sound = false

Save, then run:

$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Reboot and enjoy. I apologize that I've misplaced the link to the page that provided this information; if I have time later I will try to find it and edit this answer.

Edit: Here is the link:

http://www.liberiangeek.net/2012/05/disable-the-ready-drum-sound-in-ubuntu-12-04-precise-pangolin/

Edit2: Tested under Ubuntu 13.04. Still works fine !


Tags: lightdm (Next Q)


Q: How do I disable the guest session?

Tags: lightdm (Next Q)

How do I disable the guest session in Ubuntu 11.10 or higher? I don't want people to be able to use my computer without using a password to log in!

Tags: lightdm (Next Q)

User: jeremy-bicha


Answer by jeremy-bicha

If you're using the default LightDM, edit /etc/lightdm/lightdm.conf so that it looks like this:

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

allow-guest=false

If you're using GDM (which was the default in previous Ubuntu releases), uninstall gdm-guest-session.


For Ubuntu 13.10 or higher, the file has moved to /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf


Answer by david6

For Ubuntu 11.10, 12.04 LTS, or 13.10

Simplest method.

Just run this (once) at terminal:

sudo /usr/lib/lightdm/lightdm-set-defaults -l false

You will no longer have 'Guest' as login option, on your next login.

· This simply appends allow-guest=false to /etc/lightdm/lightdm.conf.

· Confirm works on Ubuntu 12.04; should work for 11.10 and upwards (since those versions use LightDM as well).

To undo (restore Guest option):

sudo /usr/lib/lightdm/lightdm-set-defaults -l true


Update, for Ubuntu 14.04 LTS

Adapted from: Ubuntu Forums - lightdm config files location in 14.04

Just run this (once) at terminal:

sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'

You will no longer have 'Guest' as login option, on your next login.

· Confirm works on Ubuntu 14.04 LTS beta 2

To undo (restore Guest option), remove the file created:

sudo rm /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf

· Confirm works on Ubuntu 14.04 LTS beta 2


Answer by sarveshlad

Type this in the terminal

gksu gedit /etc/lightdm/lightdm.conf

You will see the following:

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

Add allow-guest=false to the end so your final result should look like:

[SeatDefaults]

greeter-session=unity-greeter

user-session=ubuntu

allow-guest=false

Save the document and quit the text editor.

Back in the Terminal, restart the display manager. (This will end the graphical login session, immediately quitting all programs running in it, so make sure your work--like any open documents--is saved first!)

sudo restart lightdm

With the graphical login session ended, you're returned to the login screen, where you'll notice that guest acount is disabled.

That's it--the guest account is no longer usable.


Tags: lightdm (Next Q)


Q: Ubuntu gets stuck in a Login Loop

Tags: lightdm

My problem: As you can guess my Ubuntu is stuck in a login loop when trying to enter my desktop. Means the screen gets black and soon after that the login screen comes back. I'm a Ubuntu Newbie so if there's any answer please explain in a simply understandable language.

I've already read that the problem might be caused by an error depending on the graphics, so I post my graphics to:

My graphics: ATI Radeon 7670M

Tags: lightdm

User: calvin-wahlers


Answer by siddharthart

Press Ctrl+Alt+F3 and login into the shell.

Now run ls -lah. If in the output the line

-rw------- 1 root root 53 Nov 29 10:19 .Xauthority

then you need to do chown username:username .Xauthority and try logging in.

Else, do ls -ld /tmp. Check for the first 10 letters in the left: they should read exactly so: drwxrwxrwt.

drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp

Else, you need to do sudo chmod a+wt /tmp and check again.

If not both, I'd recommend you either

1. dpkg-reconfigure lightdm

2. or uninstall, reinstall it.

Now press Alt+-> until you reach the login screen again, and restart.


Answer by dan-cundiff

I encountered this exact problem and non of the suggested fixes above worked for me. After almost giving up I looked at the .xsession-errors and noticed I had a typo in my .profile (I had an extra } in the file after I edited it earlier in the day).

That was causing the login loop. It might be another place to look if the other suggested fixes don't work for you.


Tags: lightdm


Q: How do I disable the drum beat sound on the login screen?


Q: How do I disable the guest session?


Q: How do I change the default session for when using auto-logins?


Q: What happens under the covers to log me in and start up Unity or another Graphical User Interface?


Q: Ubuntu gets stuck in a Login Loop