5

I tried to install zRam using the following commands in the terminal:

sudo add-apt-repository ppa:shnatsel/zram
sudo apt-get update
sudo apt-get install zramswap-enabler

But it throws the following error message which says that the package is not available:

E: Couldn't find package zramswap-enabler

I tried to download and install the zramswap-enabler_0.2.1-0~12~oneiric1_all.deb package, but after the second reboot it stops working.

2 Answers 2

13

To install zRAM, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install zram-config

Once the installation is done go ahead and reboot your machine.

To check whether it works:

cat /proc/swaps

You can download it here.

And to install

sudo dpkg -i zram-config_0.5_all.deb

Or use Gdebi

8
  • 1
    Just to clarify... you don't need to install zramswap-enabler or the ppa, the zram-config package is a meta-package containing the upstart job for it. If you want to verify that it is working, type mount at the command prompt and you'll see more fuse mounted partitions than before. May 31, 2013 at 15:16
  • 2
    User above claims that you don't need to restart, can you confirm?
    – Braiam
    Nov 25, 2013 at 3:31
  • 1
    That's right you don't, but it won't hurt that you do, I do it out of habit.
    – Mitch
    Nov 25, 2013 at 4:19
  • 1
    You do not need to reboot the machine, it's just a waste of time. Nice to see a moderator delete what I have already said and repeat it so that he can get all the credit.
    – Ken Sharp
    Jan 5, 2014 at 7:02
  • 1
    Also works in 13.10. To configure the size of the swap (which defaults to half the memory) you can edit /etc/init/zram-config.conf.
    – otus
    Apr 6, 2014 at 6:42
0

zramswap-enabler hasn't been released for 13.04 yet. Unless you can make an updated version yourself, you'll have to wait for Shnatsel to release one (this is according to https://launchpad.net/~shnatsel/+archive/zram, which only lists packages up to Quantal).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .