Skip to content

Instantly share code, notes, and snippets.

@fbrnc
Last active March 5, 2017 01:53
Show Gist options
  • Save fbrnc/4f340da7b543b7326851 to your computer and use it in GitHub Desktop.
Save fbrnc/4f340da7b543b7326851 to your computer and use it in GitHub Desktop.
X2GO PHPStorm Demo
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y install software-properties-common
# X2Go
add-apt-repository -y ppa:x2go/stable && apt-get update
apt-get -y install x2goserver
# Download PHPStorm
mkdir /opt/phpstorm
curl -sL https://download.jetbrains.com/webide/PhpStorm-10.0.2.tar.gz | tar zx -C /opt/phpstorm --strip-components 1
ln -s /opt/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm
# Install Firefox
apt-get -y install firefox
# Basic LAMP stack
apt-get -y install git lamp-server^ php5 php5-mhash php5-mcrypt php5-curl php5-cli php5-mysql php5-gd php5-intl php5-xsl
php5enmod mcrypt
# File permissions
usermod -a -G www-data ubuntu
chmod -R ug+rw /var/www; chown -R ubuntu:www-data /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment