Révision de How to install the Unity Desktop environment and create the session entry on Trisquel 7.0 du jeu, 01/29/2015 - 22:26

Les révisions vous permettent de suivre les différences entre plusieurs versions d’un message.

Trisquel 7.0 have unity on its repositories but, for some reason, the "unity-ubuntu" session won't be listed and therefore unable to be launched easily.

Installing unity

To install unity just open a terminal and do the following:

$ sudo aptitude install

Using the script to create the desktop entry

The easy way to create the entry is by using the following script. Just follow the instructions to do that:

  • Open a simple text editor like Emacs, Vim or Nano (for instance) and copy and paste this script:

#!/bin/bash

  1. This line check if you run with privileges.

if $EUID -ne 0; then

   echo "The script must be executed with the sudo command or as root user"
   exit 1
else
   
   # Declaring variables
   UBUNTU_DESKTOP="
[Desktop Entry]\n Name=Ubuntu\n Comment=This session logs you into Unity\n Exec=gnome-session --session=Ubunt\n TryExec=unity\n Icon=\n Type=Application\n X-LightDM-DesktopName=Ubuntu\n X-Ubuntu-Gettext-Domain=gnome-session-3.0\n"
   
   UBUNTU_SESSION="
[GNOME Session]\n Name=Ubuntu\n RequiredComponents=unity-settings-daemon;compiz;\n DesktopName=Unity\n"
   
   
   # Creating the file for the desktop entry
   touch /usr/share/xsessions/ubuntu.desktop
   echo -e $UBUNTU_DESKTOP > /usr/share/xsessions/ubuntu.desktop
   
   # Creating the file for the session entry
   touch /usr/share/gnome-session/sessions/ubuntu.session
   echo -e $UBUNTU_SESSION > /usr/share/gnome-session/sessions/ubuntu.session
   
fi exit 1

  • Now save it under the name of "unity.sh".
  • It's time to make the file executable:

$ chmod +x unity.sh

  • Run the script with sudo:

$ sudo ./unity.sh

  • Reboot your computer and "ubuntu" should be listed.
Pièce jointeTaille
unity.sh964 octets

Révisions

01/29/2015 - 15:12
a_slacker_here
01/29/2015 - 23:36
Trisquelian
03/19/2015 - 23:16
pizzaiolo
05/18/2016 - 05:36
lembas
09/20/2024 - 13:42
knife