how to install gd2 extension in a ssh hosted workspace ?
These forums really are not the spot for this type of question. C9 is not for hosting and each of your different hosting providers might be a bit different. In general though on Ubuntu youd do the following:
sudo apt-get install php5-gd
sudo /etc/init.d/apache2 restart