How can I change the Login screen theme? Is there a graphical way or no?
Ubuntu – How to change the login screen theme in GDM
gdmlogin-screenthemes
Related Solutions
Gaurav has the right solution for Ubuntu 10.10 (use "Make Default" in System > Preferences > Monitors), however this requires a bit more work in Ubuntu 10.04 LTS. It also means your GDM will have the same resolution as your desktop's.
First find out which resolution your display can take and what its name is. In the following example my laptop display is LVDS-1 and its rated resolution is 1280x800:
$ xrandr -q
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 4096 x 4096
LVDS-1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 60.1 +
1024x768 59.9*
800x600 59.9
640x480 59.4
720x400 59.6
640x400 60.0
640x350 59.8
VGA-1 connected (normal left inverted right x axis y axis)
1024x768 60.0
800x600 60.3 56.2
848x480 60.0
640x480 59.9
TV-1 connected (normal left inverted right x axis y axis)
720x576 50.0 +
1024x768 50.0
800x600 50.0
720x480 50.0
640x480 50.0
400x300 100.0
320x240 100.0
320x200 100.0
Note in the above output the resolution currently used is marked by an asterisk (*). Next you want to test if such resolution works and find the right command to set it up:
xrandr --output LVDS-1 --mode 800x600x32
In the above command you can change the depth (32 bit) for 24.
Next you want to add such command to the /etc/gdm/Init/Default file before /sbin/initctl ... [1]. The beginning of such file will look like this:
#!/bin/sh
# Stolen from the debian kdm setup, aren't I sneaky
# Plus a lot of fun stuff added
# -George
PATH="/usr/bin:$PATH"
OLD_IFS=$IFS
#if [ -x '/usr/bin/xsplash' ];
#then
# /usr/bin/xsplash --gdm-session --daemon
#fi
xrandr --output LVDS-1 --mode 800x600x32
/sbin/initctl -q emit login-session-start DISPLAY_MANAGER=gdm
Once you've done this you can logout to see the results. I tested this in a VM environment only but it should work on a standard install ("bare metal").
Disclaimer: playing with gdm3 files is very dangerous, small mistakes will stop access to gnome desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully applied User Shell Theme to Login Screen & Lock Screen. Do this on your own risk.
I am going to apply User Shell
Theme Adapta-Nokto
to Login Screen and Lock Screen
for Ubuntu 18.04 only
files or folders to know:
1./etc/alternatives/gdm3.css
2./usr/share/gnome-shell/theme/ubuntu.css
3./usr/share/themes/Adapta-Nokto
take backups (mandatory):
1. /usr/share/gnome-shell/theme/ubuntu.css
file. (say ubuntu.css backup)
2. /usr/share/gnome-shell/theme
folder. (say theme backup)
https://we.tl/t-iDLEPaXoI0 5MB .gif file showing default lock screen theme.
Concept:
nothing below i wrote is official, based on several trail and errors i found this. proceed with your own risk.
*after several trails i found that /etc/alternatives/gdm3.css
is playing a very big role. this file is controlling the log in screen beauty and not lock screen.
*/usr/share/gnome-shell/theme/ubuntu.css
is controlling the lock screen beauty.
by default, the content in /etc/alternatives/gdm3.css
file and /usr/share/gnome-shell/theme/ubuntu.css
file are same because /etc/alternatives/gdm3.css
file is a linked file to /usr/share/gnome-shell/theme/ubuntu.css
we need to break this link. and create a link to our User Shell
Theme.
to break the link and tell log in screen to use User Shell
theme,
run the below command:
sudo rm /etc/alternatives/gdm3.css && sudo ln -s /usr/share/themes/Adapta-Nokto/gnome-shell/gnome-shell.css /etc/alternatives/gdm3.css
Example:
pratap@i7-4770:~$ sudo rm /etc/alternatives/gdm3.css && sudo ln -s /usr/share/themes/Adapta-Nokto/gnome-shell/gnome-shell.css /etc/alternatives/gdm3.css
[sudo] password for pratap:
pratap@i7-4770:~$
we need to copy the assets
folder and some more image files from /usr/share/themes/Adapta-Nokto/gnome-shell/
folder to /usr/share/gnome-shell/theme/
now log in screen will use this theme. to test it, shutdown the system. fresh start.
https://we.tl/t-uVLyw8mVga 5MB .mp4 file showing log in screen changed.
https://we.tl/t-jFZINc18q7 5MB .gif file showing lock screen unchanged.
note that, lock screen will not use this theme. as of now we changed only log in screen theme.
to change the lock screen theme, copy paste all the content from /usr/share/themes/Adapta-Nokto/gnome-shell/gnome-shell.css
to /usr/share/gnome-shell/theme/ubuntu.css
file replacing the data in ubuntu.css file.
reboot to see the change.
https://we.tl/t-8oi9JRTRpM 5MB .gif file showing lock screen changed.
want to go back to default?
copy paste all the content from backed up (say ubuntu.css backup) file into /usr/share/gnome-shell/theme/ubuntu.css
file replacing the data in ubuntu.css file.
run the below command:
sudo rm /etc/alternatives/gdm3.css && sudo ln -s /usr/share/gnome-shell/theme/ubuntu.css /etc/alternatives/gdm3.css
copy the images from backed up folder (say theme backup) and make the folder look like this
Reboot to see default look.
Best Answer
Use this command in the terminal:
Logout, and you will be prompted with the Appearance window. change the theme as you change it for the desktop, and login back, and type this command:
That's it.