Slide 1

Slide 1 text

Web. Dev. Environment Basic setup UBUNTU 13.04 BASED (2013.10)

Slide 2

Slide 2 text

Why? Just mine habits… UBUNTU Python PHP NodeJS Java WINDOWS Python PHP NodeJS Java C#

Slide 3

Slide 3 text

Windows steps Actually pretty obvious, please share your configuration steps

Slide 4

Slide 4 text

Ubuntu Developer needed Git Lamp Stack NodeJS stack Development IDEs Helpful RabbitVCS Xclip (console to keyboard) Doxygen Small Nautilus extensions Color picker

Slide 5

Slide 5 text

IMPORTANT For software that targets specific Ubuntu version: If you are using Ubuntu 12.10 apt repositories names usually end with precise main If you are using Ubuntu 13.10 apt repositories names end with raring main

Slide 6

Slide 6 text

Development needed… CONFIGURE ENVIRONMENT

Slide 7

Slide 7 text

Git sudo apt-get install git git config --global user.name "FIRST_NAME LAST_NAME" git config --global user.email "[email protected]"

Slide 8

Slide 8 text

Lamp stack (my choice) #? apt-get install python-software-properties sudo add-apt-repository ppa:ondrej/php5 sudo apt-get update sudo apt-get install php5 libapache2-mod-php5 php --version

Slide 9

Slide 9 text

NodeJS Stack SIMPLE sudo apt-get install nodejs node -v CUSTOM VERSION sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update # @@ If you need specific version @@ sudo apt-get install nodejs=0.10.18-1chl1~precise1 node -v

Slide 10

Slide 10 text

MySQL / MARIADB MYSQL MARIA DB sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://ftp.osuosl. org/pub/mariadb/repo/5.5/ubuntu raring main' sudo apt-get update sudo apt-get install mariadb-server sudo apt-get install mysql-server-5.5

Slide 11

Slide 11 text

Development IDEs

Slide 12

Slide 12 text

JETBRAINS – CROSSPLATFORM TOOLS PHP – PHPSTORM HTML/JS – WEBSTORM/PHPSTORM NODEJS – PHPSTORM + NODEJS PLUGIN PYTHON – PYCHARM (COMMUNITY OR PRO EDITIONS) RUBY – RUBYMINE JAVA – IntelliJ IDEA ANDROID – IntelliJ IDEA ObjectiveC – APP Code

Slide 13

Slide 13 text

JETBRAINS – WORKS BEST ON ORA JDK # For Jetbrains products # Optionally, Remove openjdk if it is installed sudo apt-get purge openjdk* #Make sure additional apt packages are up: sudo apt-get install software-properties-common #PPA sudo add-apt-repository ppa:webupd8team/java sudo apt-get update #Install java 6 sudo apt-get install oracle-java6-installer #or 7 # sudo apt-get install oracle-java7-installer #or 8 # sudo apt-get install oracle-java8-installer

Slide 14

Slide 14 text

RabbitVCS (kind of TortoiseGit) sudo add-apt-repository ppa:rabbitvcs/ppa sudo apt-get update sudo apt-get install rabbitvcs-nautilus3 rabbitvcs-cli

Slide 15

Slide 15 text

RabbitVCS-13.04-post fix Use, if there are no RabbitVCS menu in Nautilus after install and lightdm restart sudo ln -sf /usr/lib/i386-linux-gnu/libpython2.7.so.1 /usr/lib/libpython2.7.so.1 sudo ln -sf /usr/lib/libpython2.7.so.1 /usr/lib/libpython2.7.so.1.0 Replace /usr/share/nautilus-python/extensions/RabbitVCS.py with RabbitVCS.py, downloaded from http://rabbitvcs.googlecode.com/svn/trunk/clients/nautilus-3.0/RabbitVCS.py

Slide 16

Slide 16 text

Utilities and tools

Slide 17

Slide 17 text

Google chrome ☺ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list sudo apt-get update sudo apt-get install google-chrome-stable

Slide 18

Slide 18 text

xclip sudo apt-get install xclip # xclip -sel clip < ~/.ssh/id_rsa.pub # Copies the contents of the id_rsa.pub file to your clipboard

Slide 19

Slide 19 text

Doxygen – cross platform doc. tool # powerful enough alternative code documentation generation tool # supports number of languages, cross platform sudo apt-get install doxygen doxygen-gui auctex xindy graphviz #doxywizard #Note: installation is really big in size. Makes sense for main #development box

Slide 20

Slide 20 text

Nautilus extensions # ’open directory in terminal’ action in files explorer sudo apt-get install nautilus-open-terminal

Slide 21

Slide 21 text

Teamviewer (not secure) #Neither download from http://www.teamviewer.com/ #OR #32 bit wget http://download.teamviewer.com/download/teamviewer_linux.deb #64bit #wget http://download.teamviewer.com/download/teamviewer_linux_x64.deb sudo dpkg -i teamviewer_linu*.deb

Slide 22

Slide 22 text

Color picker sudo apt-get install gpick

Slide 23

Slide 23 text

Repository Identities GITHUB, BITBUCKET, PRIVATE REPOSITORIES…

Slide 24

Slide 24 text

CHECK FOR EXISTING KEYS… cd ~/.ssh ls #if none, generate new ssh-keygen -t rsa -C "[email protected]" ssh-add id_rsa

Slide 25

Slide 25 text

STORE KEYS IN SAVE PLACE You will to save a copy of your private key (id_rsa) public key (id_rsa.pub) Windows users: create private key in putty format (ppk) from private key, so you can connect from windows box using putty or winscp.

Slide 26

Slide 26 text

Add key to Github / Bitbucket clip < ~/.ssh/id_rsa.pub Github Bitbucket

Slide 27

Slide 27 text

Server control TOOLS THAT SPEEDUP YOUR SERVER TASKS

Slide 28

Slide 28 text

EMPHASIZE: IMPORTANT For software that targets specific Ubuntu version: If you are using Ubuntu 12.10 apt repositories names usually end with precise main If you are using Ubuntu 13.10 apt repositories names end with raring main

Slide 29

Slide 29 text

MySQL / MARIADB – PHPMYADMIN DEP. MYSQL MARIA DB sudo apt-get install software-properties-common sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://ftp.osuosl. org/pub/mariadb/repo/5.5/ubuntu raring main' sudo apt-get update sudo apt-get install mariadb-server sudo apt-get install mysql-server-5.5

Slide 30

Slide 30 text

PHPMYADMIN sudo apt-get install phpmyadmin

Slide 31

Slide 31 text

WEBMIN sudo add-apt-repository 'deb http:////download.webmin.com/download/repository sarge contrib'' sudo add-apt-repository 'deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib' apt-get update apt-get install webmin

Slide 32

Slide 32 text

You are almost ready To start your coding ☺

Slide 33

Slide 33 text

SLIDES IN ACTION https://github. com/Voronenko/developer_bootstrap

Slide 34

Slide 34 text

Thanks! Vyacheslav Voronenko