After reading many different forum posts (including ones on these forums), I've decided to write this guide to quickly get a unity-greeter welcome screen running on Mint (regardless of whether you're using the MATE or Cinnamon install), theme it so it seems "mintier" rather than "ubuntish", and making sure that the switch user functionality works on both DE's.
Screenshots in the second post.
Step 1: Install lightdm and unity-greeter.
- Code: Select all
sudo apt-get install lightdm unity-greeter
When it asks you what session manager you want to use, select lightdm.
Step 2: Modify the conf file to use unity-greeter.
Normally, this step is done for you, but let's just make sure it's all configured correctly. So we open the configuration file:
- Code: Select all
sudo nano /etc/lightdm/lightdm.conf
If you want Cinnamon as your default DE, it should look like this - this seems to be setup correctly if you use the Cinnamon edition of Mint 13.
- Code: Select all
greeter-session=unity-greeter
user-session=cinnamon
If you want MATE, then your file should be modified to look like this:
- Code: Select all
greeter-session=unity-greeter
user-session=mate
Step 3: Download custom images.
Here, we download theme icons for Cinnamon and MATE, and replace the Ubuntu logo with one for Linux Mint. Start up a terminal session as root:
- Code: Select all
sudo -i
And then paste the following instructions in:
- Code: Select all
cd /tmp/
mkdir greeter_images
cd greeter_images
wget "http://forums.linuxmint.com/download/file.php?id=10992" -O custom_cinnamon_badge.png
wget "http://forums.linuxmint.com/download/file.php?id=10993" -O custom_mate_badge.png
wget "http://forums.linuxmint.com/download/file.php?id=10994" -O logo.png
chmod 644 *
chown root *
chgrp root *
sudo cp *.png /usr/share/unity-greeter/
cd ..
rm -rf /tmp/greeter_images
exit
Step 4: Theme unity-greeter to look like Linux Mint
Now let's use Mint icons and the default wallpaper, as well as the logo we've just downloaded. Log in as the lightdm user:
- Code: Select all
sudo xhost +SI:localuser:lightdm
sudo su lightdm -s /bin/bash
And then theme it - we use the default wallpaper, turn off the grid, use Mint themes for windows and icons, and set the default background colour to a similar colour to the wallpaper. If we don't do this, then you might see a flash of purple when the greeter first loads up before the wallpaper then shows.
- Code: Select all
gsettings set com.canonical.unity-greeter background /usr/share/backgrounds/linuxmint-maya/gelsan_green.png
gsettings set com.canonical.unity-greeter background-color '#CBCBCB'
gsettings set com.canonical.unity-greeter draw-grid false
gsettings set com.canonical.unity-greeter icon-theme-name Mint-X
gsettings set com.canonical.unity-greeter theme-name Mint-Z
exit
Step 5: Get switch user functionality working
Depending on what version of Mint you're using, and what DE's you intend to use, and maybe even what order you install the DE's and the greeter, some of this will be configured automatically. But I've found that you sometimes need to intervene manually to get the "switch user" button to work (or even to appear in the first place).
To make sure, log in as root:
- Code: Select all
sudo -i
So, to fix switch user functionality for Cinnamon (ignore "file does not exist" errors on the second step):
- Code: Select all
cd /usr/bin
mv gdmflexiserver gdmflexiserver.real
ln -s /usr/lib/lightdm/lightdm/gdmflexiserver gdmflexiserver
And for MATE (again, ignore "file does not exist" errors):
- Code: Select all
cd /usr/bin
mv mdmflexiserver mdmflexiserver.real
ln -s /usr/lib/lightdm/lightdm/gdmflexiserver mdmflexiserver
And that's it. Of course, I didn't do all this by myself, and so thanks to:
* bigj231 for the Cinnamon and Mint logos
* Rowen on the MATE forums for the MATE icon
* And those who contributed to other forum posts.

