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
- 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.
Revisión
01/29/2015 - 15:12
01/29/2015 - 23:36
03/19/2015 - 23:16
05/18/2016 - 05:36
09/20/2024 - 13:42