I was wondering if there is a way to make Cinnamon 1.4 the default environment upon logging in to Ubuntu 12.04. I can install Cinnamon 1.4 without any problems, but I am trying to run XRDP to log in from a Windows machine and would like it to start "Cinnamon session" instead of a Unity session by default.
The question is, How can I tell XRDP to use Cinnamon instead of Unity upon logging in?
XRDP seems to work much better than any VNC based servers.
Found this on the net, on this url: http://sigkillit.com/tag/xrdp
Customize Desktop Environment for xRDP Session
If you do not want to use the default desktop environment, you can customize it by creating a .Xclients file (X is capital!!!) in your home directory to launch the desktop environment you want and making it executable. In order to do this, open a terminal and run one of the following commands
Gnome 3:
Gnome Fallback:
KDE:
MATE:
Cinnamon:
Xfce4:
You can start the environment you want only for xrdp (not for local login) in
/etc/xrdp/startwm.sh
For example, to start xfce, I use:
Commented out, you can see the commands to start unity (ubuntu session) and unity 2d. You only need to comment out xfce command and add the command to start Cinnamon (I didn't give it because I don't know how to start it manually).
Obs: I agree with you xrdp works better than others remote desktop viewers I tried and it works very well with xfce. I use it from other linux machines too with Remmina client. To use it with xfce, you need to install xubuntu-desktop (
sudo apt-get install xubuntu-desktop
)If you're using Lubuntu Desktop (tested on 12.04 LTS)
For lx syntax discovery:
Implementing lx syntax:
First you should have cinnamon on your system :)
Second issue the commands
OR if you like to do it hard:) do the following:
Edit the file
/etc/xrdp/startwm.sh
At the end of the file you will find the following lines:
These are calls to functions above. So in order to make cinnamon the default just put
#
beforewm_start
to comment it (to stop calling the function which searches for the sessions)Add the following line in front of the above three lines
gnome-session --session=cinnamon
restart xrdp
sudo service xrdp restart
For LXDE:
Install lxde-common:
Make changes in
/etc/xrdp/startwm.sh
like this:On Kubuntu 20.04 the following worked for me:
I assume similar will work for another desktops, just need to put proper launcher name, as described above.
The
systemctl
command is specific to Fedora. For Ubuntu, the command should be:This is all too confusing. All you have to do is put the text in a file called
.Xclients
in your home directory that will specify the default desktop. To see what's installed on your system and find out what they are called do:You will see files with an extension
.desktop
, for examplemate.desktop
To make mate your default desktop you can then edit
~/.Xclients
in your home folder, if you have such a file, or create one with nothing in it except your chosen desktop type (without the .desktop extension) with a -session appended:should do this just fine. You can then log off and log back in, or if you are connected using xrdp you can restart xrdp, which will log you off and then you can log back in, (just log off and log back in, its stupid to get confused by restarting xrdp etc...)
Forget switchdesk - its broken in Fedora 23.
Forget most of what's on the web for prior Fedora versions, Ubuntu etc... None of it works.
Here is an update As
systemd
is used by almost all Linux distributionssystemctl
command works with ubuntu versions like 18,19,20 and 21.To use xfce4 Desktop, the commands below can be used:
sesman.ini
should be updated accordingly if you intend to have multi-user access.Policy=UBDC
will enable and start the
xrdp
service.