Last active
April 17, 2017 09:41
-
-
Save tarlepp/e791d9210a285d7ac480420d62a92b59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Development environment installation guide (PHP, Node, etc.), purpose of this guide is to | |
complish "working" development environment where you have common Open Source tools at your | |
use without any hahshle. | |
BASIC INSTALLATION: | |
1) Donwloand and install VirtualBox / VMWare | |
- Use which you want, guide is based to VirtualBox | |
- Difference between these two should not be so huge after all | |
2) Downloadn latest Ubuntu LTS version | |
- In this time it was 16.04 | |
- You could use newer (or old) one if you like | |
3) Create new VM to VirtualBox | |
- Set harddrive size minimum of 40GB - you'll need all of this on long period of time... | |
- VirtualBox VM settings | |
* System => Motherboard | |
- Memory 4GB | |
* System => Processor | |
- Give as much you can... | |
- Check PAE/NX (if your machine supports these) | |
* System => Acceleration | |
- Check that all settings are correct | |
- These depends on your machine | |
* Display | |
- Set display memory to 128MB | |
- Set "3D accelaration" to on | |
* Storage | |
- If you're using SSD, check that it's enabled | |
- This will affect greatly to performance | |
- Atttach downloaded ubuntu image to VMs CD/USB drive | |
- Start VM and install ubuntu | |
4) Install "guest additions", so that VM will run smoothier | |
- In VirtualBox use "Devices" => "Insert Guest Additions Image" | |
- Follow the instructions... | |
- Reboot VM | |
5) Update currently installed packages | |
- Open terminal | |
- sudo apt update | apt upgrade | |
6) Let's make Ubuntu desktop faster | |
- Open terminal | |
- sudo apt install gnome-session-flashback | |
- Logout | |
- Click Ubuntu logo on the right top side of the login screen and select "GNOME Flashback (Metacity)" and login | |
7) Installation of the "basic" development packages | |
- Open terminal | |
- So with this we're going to install "basic stuff" (PHP, MariaDB, PhpMyAdmin, etc.) | |
- sudo apt install php mariadb-server mariadb-client apache2 libapache2-mod-php phpmyadmin php-mbstring php-gettext php-curl php-intl php-json php-dev php-dev ruby openjdk-9-jre build-essential libssl-dev git subversion phpunit nodejs npm ssh php-xdebug python-dev | |
8) Installation of the Node | |
- Open terminal | |
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash | |
- Close terminal and open it again | |
- Run following commands: | |
- nvm install 7 | |
- nvm install 6 | |
- At this point you should have default node as in 7.x.x, and you can easily change that just using eg. command "nvm use 6" in your terminal | |
9) Installation of the composer | |
- Open terminal | |
- sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
10) Installation of the another packages | |
- These packages are for development | |
- Open terminal | |
- npm install -g bower gulp npm-check-updates mversion typings yarn | |
- sudo gem install scss_lint | |
- sudo a2enmod rewrite | |
11) .NET Core (check changes from https://www.microsoft.com/net/core#ubuntu) | |
- Open terminal | |
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list' | |
- sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893 | |
- sudo apt-get update | |
- sudo apt-get install dotnet-dev-1.0.0-preview2.1-003155 | |
12) MariaDB root user accesss to PhpMyAdmiin | |
- Open terminal | |
- sudo mysql_secure_installation | |
- sudo mysql -u root -p | |
- use mysql; | |
- update user set plugin='' where User='root'; | |
- flush privileges; | |
- \q | |
All done - happy hacking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment