Because many people had trouble following the instructions in our Alternative To The "200 Lines Kernel Patch That Does Wonders" Which You Can Use Right Away post, superpiwi @ Ubuntu Life created a script that does everything automatically for you.
The script was initially in Spanish, but I've translated it into English and I've also corrected 3 small errors which caused the script not to work.
To see that if you follow the exact instructions, everything works and you won't get any error when opening new terminals, I've recorded a video showing how I've ran the script on my netbook (using Ubuntu 10.04):
- To use this script, you must remove the changes you have made by following the instructions in the Alternative To The "200 Lines Kernel Patch That Does Wonders" Which You Can Use Right Away post (that involves removing the code you've added to ~/.bashrc, /etc/rc.local and completely remove the /usr/local/sbin/cgroup_clean file)! If you do not do this, the script will not work! You have been warned.
- The script has only been tested on Ubuntu (10.10 an 10.04)
- Even though I've tested the script, it may not work for everybody so use it as is. There are no guarantees it will work and I take no responsibility if it doesn't.
- Always check the code of a script you run on your computer. You can download the script from HERE.
Now that you've read the "disclaimer", you can go ahead and use the script. Open a terminal and copy/paste the following commands:
cd wget http://launchpadlibrarian.net/59511828/cgroup_patch chmod +x cgroup_patch sudo ./cgroup_patch
Now you can either restart your computer or simply run:
Credits and many thanks for the script: superpiwi @ Ubuntu Life.