How To Install TuxOnIce 1.1 On Ubuntu 14.04, Ubuntu 13.10 And Ubuntu 12.04

Hello Linux Geeksters. As you may know, TuxOnIce is a hibernation application, similar with the one from Windows Systems. It is better than the default hibernation option, because it can be customized, for example to restore the computer from hibernation when pressed a certain key, cancel the hibernation and resume it, via the Escape key.

It works quite well with the default configuration, so no additional tweaks need to be done. If your computer supports hibernation (if sudo pm-hibernate works) and your swap partition is not encrypted, TuxOnIce should run smoothly.

In this article I will show you how to install TuxOnIce 1.1 on Ubuntu 14.04 Trusty Tahr, Ubuntu 13.10 Saucy Salamander, Ubuntu 12.04 Precise Pangolin, in all the existing flavors.

Because it is available via PPA, installing TuxOnIce 1.1 on all the supported Ubuntu systems is easy. All you have to do is add the ppa to your system, update the local repository index and install tuxonice. Like this:

$ sudo add-apt-repository ppa:tuxonice/ppa
$ sudo apt-get update
$ sudo apt-get install tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice
$ sudo ln -s /usr/lib/tuxonice-userui/tuxoniceui /usr/local/sbin/tuxoniceui_text

Next, you have to enable hibernation, because it is disabled by default on Ubuntu systems. In order to do that, you have to create the /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla file:

$ cd /etc/polkit-1/localauthority/50-local.d/
$ sudo touch com.ubuntu.enable-hibernate.pkla

And use the below oneliner, to enable hibernation on your system:

$ sudo sh -c 'cat > com.ubuntu.enable-hibernate.pkla <<EOF
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
EOF'

Share and Enjoy

  • Twitter
  • Facebook
  • Google Plus
  • Email
  • RSS
Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

Your email address will not be published. Required fields are marked *

*