Installing latest nginx on lubuntu

I finally managed to install the latest nginx on my test lubuntu install after following this link and some of my own fumbling. The default repositories are several versions behind. Don’t expect this to work on your system, it’s more of an inspiration. I sudo’ed each command but a single su would have been quicker on hindsight.

sudo apt-get autoupdate
sudo aptitude install python-software-properties
sudo add-apt-repository ppa:nginx/stable
sudo aptitude update
sudo apt-get install nginx