Wednesday, March 10, 2010

.bash_profile vs .bashrc

bash will execute .bashrc when you log with a interactive non-login shell, eg. open a new terminal window with gnome or execute /bin/bash.

.bash_profile is executed for login shells, eg. when you log in from console or through ssh.

Wednesday, March 3, 2010

Have more memory by compressing it!

Let's suppose you want to have more memory without buying new modules. Ok, then read on!

In today's computers the CPU is fast but the memory never enough, so why don't compress memory then?

There is a project called compcache, what makes special devices, can be used as swap, and it's content's are compressed and stored in memory. So it gives you more space in RAM.

It is easily installable (oh ok, you have to compile it by yourself, but it isn't that scary), and does the job.

By the way Ubuntu ships an ancient version of it so you would better compile it yourself.