Monthly Archives: August 2011

Quick steps to configure stunnel4 for client mode

It is really simple to add POP3 SSL support to your existing e-mail client which does not support it, or whatever SSL support you want using stunnel. I just cannot remember all the steps to set up clean system. So I have created this small guide which will help me in future and may be will help somebody else too.

  1. Install stunnel if you don’t have it installed already: sudo apt-get install stunnel
  2. Allow stunnel to autostart by editing stunnel defaults file: sudo gedit /etc/default/stunnel4
  3. Finally perform the following task on the /etc/stunnel/stunnel.conf file:
    1. Comment the following line, so that we want have to generate certificate, because we don’t need it in client mode: ;cert = /etc/ssl/certs/stunnel.pem
    2. Change sslVersion to all if you need support for all SSL types
    3. Uncomment the following line: client = yes
    4. Add definition for client vs. server ports. In my case I was redirecting to FastMail:
      [pop3]
      accept = 1109
      connect = mail.messagingengine.com:995

Make suspend to RAM working on Joli OS

I am trying to find operating system which best suits to my Lenovo S10-3 netbook. It comes preinstalled with Windows Starter which is a lil bit unusable for the purpose netbooks has been created for. The lack of ability to logoff currently logged user when two or more people are using it is very frustrating. I don’t won’t to spend money by upgrading Windows to “better” edition, so I am looking for some Linux distribution which will just work and look nice.
So far I have tried Ubuntu and OpenSUSE with KDE or Gnome. But on both there were some missing functionality like non working fn keys or problem to restore netbook from suspend when netbook is closed and then opened again.
These days I have installed Joli OS version 1.2 which has been created especially for netbooks. It is based on Ubuntu Netbook Remix edition, but looks much more pretty. But still it has problems with suspend. Fortunately on the kernel version which is used by Joli OS it can be easily fixed by using additional boot option.
Press Alt+F1 and write down the following into the terminal

sudo gedit /etc/default/grub

Locate line with the following or similar text:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”

and change it to this:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash intel_idle.max_cstate=0″

Finally run the following command and restart the computer:

sudo update-grub