Wednesday, 7 January 2015

Customize Login Screen in Ubuntu

Are you an Ubuntu Lover ? Then this is for you.

By default Ubuntu comes with unity login screen having password box to the left of screen and and some ugly colored background.

Here I am not going to guide you how to just change background and remove dots only. But I will take you beyond this and make your login screen more decorative and attractive.

In default unity login, it is not possible to change to login position from left to center, right or any other point on the screen.

To make our work ease you need to install lightdm. Don't worry It's safe and will not harm if followed instructions carefully.

Lets Begin the Journey...... 

1. Install lightdm

lightdm is a display manager used default in Xubuntu, Kubuntu, etc. but it's not included in Ubuntu
    
Open Terminal : 
ctrl+alt+T
Type these commands :

sudo add-apt-repository ppa:lightdm-gtk-greeter-team/stable
sudo apt-get update
sudo apt-get install lightdm-gtk-greeter

Thats it.... lightdm is installed

2. Install LightDM GTK+ Greeter Setting GUI 

This is a small program 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.

In terminal window type :
sudo add-apt-repository ppa:kalgasnik/ppa
sudo apt-get update
sudo apt-get install lightdm-gtk-greeter-settings
Now search for lightdm in unity and change Background color in the Appearance.
Please, don't forget to Press Reload Button on the Bottom-Left after Save.

Restart your PC to see the changes made. You will be introduced with a new login screen having a drop down menu which have your username, Guest and Others in the list to select.

3. Real game Begins now....

3.1 Changing Background Image

Lets do some more fun.
Open the LightDM GTK+ Greeter Setting from unity.
On Background select image and choose a picture from the directory on your computer.

[Note : It will be better to change image resolution to your PC's screen resolution in photoshop or any other photo editing software or online]

3.2 Moving position of Login box on screen 
 
Now move to Window position Tab.
Click on the dots in the center image where you want to place the login box.
You can also adjust position by changing Horizontal and Vertical padding.

Till now, we have decorated login screen.
Let's do some hacking part.

3.3 Disabling Guest-Login
 
In Ubuntu 14.04 the .conf file to be edited has been moved to /usr/share/lightdm/lightdm.conf.d from /etc/lightdm/

run these commands :

sudo gedit /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
add line :

allow-guest=false
3.4 Enable Manual login

since, in versions earlier than 14.04 .conf file is located in /etc/lightdm/ directory which has been moved to /usr/share/lightdm/lidhtdm.conf.d/ , we need to create a lightdm.conf file in /etc/lightdm directory

run this command :

sudo gedit /etc/lightdm/lightdm.conf
add lines :

[SeatDefaults]
greeter-show-manual-login=true
greeter-hide-users=true
You will get login box as :



4. Thats it.... Now, restart your pc and see the change.

Here is what I have done...


[Note : This works 100% fine in Ubuntu 14.04 LTS. I have not tested it on versions below 14.04. If it works for you or have any error please comment below]

0 comments:

Post a Comment

Powered by Blogger.