Showing posts with label lightdm. Show all posts
Showing posts with label lightdm. Show all posts

Tuesday, October 27, 2015

LightDM: How To Disable The User List Or Guest Session

Quick tips for Ubuntu / LightDM users: if you want to hide the LightDM login screen user list and / or the Guest Session for security concerns, because there are too many users or whatever other reason, here's how to do it.

Ubuntu LightDM Unity Greeter
Default LightDM login screen (Unity Greeter) with user list and Guest Session enabled

1. To disable the LightDM login screen user list and / or Guest Session, firstly create the /etc/lightdm/lightdm.conf.d/ folder in case it doesn't exist, by using the following command:
sudo mkdir -p /etc/lightdm/lightdm.conf.d

2. Next, you need to create a file called 50-my-custom-config.conf under /etc/lightdm/lightdm.conf.d/ To open/create this file using Gedit (as root), use the following command:
gksu gedit /etc/lightdm/lightdm.conf.d/50-my-custom-config.conf

3.a. To hide the LightDM login screen user list (which means you'll have to manually enter your username), paste the following in this file (50-my-custom-config.conf):
[SeatDefaults]
greeter-hide-users=true
greeter-show-manual-login=true
Then save the file.

Here's how LightDM (with Unity Greeter) will look after this change:

Ubuntu LightDM disabled user list

3.b. To disable the LightDM Guest Session, paste the following lines in the /etc/lightdm/lightdm.conf.d/50-my-custom-config.conf file:
[SeatDefaults]
allow-guest=false
Then save the file.

Here's a screenshot with the Guest Session disabled in LightDM (with Unity Greeter):

Ubuntu LightDM disabled guest session

3.c. Of course, you can combine the two. So if you want to hide the LightDM login screen user list and also disable the Guest Session, paste this in the /etc/lightdm/lightdm.conf.d/50-my-custom-config.conf file:
[SeatDefaults]
greeter-hide-users=true
greeter-show-manual-login=true
allow-guest=false
Then save the file.

Here's a screenshot with LightDM (Unity Greeter) in which the user list was hidden and the Guest Session was disabled:

Ubuntu LightDM disabled user list guest session

4. And finally, you need to restart LightDM (a logout is not enough). To do this, press ALT + F2 and copy/paste the following command:
gksu service lightdm restart
Then press ENTER.

You can also simply restart your system.

Why not use "sudo service lightdm restart" in a terminal? Well, for some reason LightDM can't be restarted from a terminal with 'sudo'. However, you can also restart LightDM by switching to a tty (to switch to tty1 press CTRL + ALT + F1; to switch back, use CTRL + ALT + F7) and then using the "sudo service lightdm restart" command.


How to revert the changes


To revert the changes made by following the instructions above, all you need to do is remove the /etc/lightdm/lightdm.conf.d/50-my-custom-config.conf file, by using the following command:
sudo rm /etc/lightdm/lightdm.conf.d/50-my-custom-config.conf

Then, restart LightDM as explained under step 4 or reboot your computer.
Read more »

Tuesday, October 6, 2015

LightDM GTK+ Greeter Settings GUI

LightDM GTK+ Greeter is the default Xubuntu (screenshot below) and Lubuntu LightDM greeter (login screen UI). For how to switch to it in Ubuntu (w/ Unity), etc., see THIS Ubuntu wiki article.

Xubuntu 14.04 LightDM GTK greeter
Default Xubuntu 14.04 LightDM GTK+ Greeter

LightDM GTK+ Greeter Settings is a small GUI written in Python which lets you modify various LightDM GTK+ Greeter settings, such as the theme, font, background, window position and more, settings which otherwise can only be set by modifying the greeter configuration files.

The tool was supposed to be added by default in Xubuntu 14.10 Utopic Unicorn but it was postponed, most probably because LightDM GTK+ Greeter Settings is not yet available in the official Ubuntu repositories (though a bug for this was submitted back in March, 2014). Hopefully, it will make it in Xubuntu with the release after Utopic - 15.04.

LightDM GTK+ Greeter Settings gives users access to the following settings:
  • Appearance: change LightDM GTK+ Greeter theme, icons, font (with DPI/antialias/subpixel rendering and hinting settings), change the background image or set it to a color, enable user wallpaper if available or change the default user image;
  • Panel: change the clock format and redefine indicators (enable/disable indicators or reorder them);
  • Window position: change the login dialog window position
  • Misc: enable/disable onscreen keyboard, set the timeout until the screen blanks.

Here are a some LightDM GTK+ Greeter Settings screenshots:


LightDM GTK+ Greeter Settings

LightDM GTK+ Greeter Settings

LightDM GTK+ Greeter Settings

LightDM GTK+ Greeter Settings


Install LightDM GTK+ Greeter Settings In (X,L)Ubuntu


Xubuntu and Lubuntu use LightDM GTK+ Greeter by default but of course, you can use this tool with any Ubuntu or Linux Mint flavor, if you've switched to LightDM GTK+ Greeter. To add the PPA and install the tool in (X,L)Ubuntu 14.04, 14.10 or 15.04, use the commands below:
sudo add-apt-repository ppa:kalgasnik/ppa
sudo apt-get update
sudo apt-get install lightdm-gtk-greeter-settings

Arch Linux users can install LightDM GTK+ Greeter Settings via AUR: stable | bzr.

To grab the source code, report bugs, etc. see the LightDM GTK+ Greeter Settings Launchpad page.
Read more »