Friday, 15 July 2011

Ubuntu - Setup new computer for Web Developer

How to setup new computer for Web Developer:

You need open Termial first, follow steps:
  • Type Ctrl + Alt + T
  • You can find it in Applications MenuApplications → Accessories → Terminal
When you typing command line, system will be request your password, just type it and Enter
  1. System Status Software
    • sudo apt-get install htop
  2. Document Editor in Terminal like vi software but had more advantage
    • sudo apt-get install vim
  3. Like Terminal software but had more advantage
    • sudo apt-get install yakuake
    • sudo apt-get install basket
  4. Addon more function needed
    • sudo apt-get install unrar
    • sudo apt-get -y install unrar p7zip p7zip-full
  5. Addon function type Vietnamese language IBus
    • sudo apt-get install ibus-unikey
  6. Setup Webserver using Apahce2:
    • sudo apt-get install tasksel
    • sudo tasksel install lamp-server
    • sudo apt-get install php5-curl
  7. Install V8js:
    • sudo apt-get install php5-dev php-pear libv8-dev build-essential
    • sudo pecl install v8js-0.1.3
    • sudo echo extension=v8js.so >>/etc/php5/cli/php.ini
    • sudo echo extension=v8js.so >>/etc/php5/apache2/php.ini
  8. Subvertion software and library
    • sudo apt-get install subversion subversion-tools
    • sudo apt-get install libapache2-svn
  9. Addon GD Image library
    • sudo apt-get install php5-gd
    • sudo apt-get install imagemagick
    • sudo apt-get install php5-imagick
  10. Addon PHPUnit & Xdebug library
    • http://shinphp.blogspot.com/2012/10/ubuntu-phpunit.html
  11. Setup Zend Framework library
    • sudo apt-get install zend-framework
    • sudo vim /etc/php5/conf.d/zend-framework.ini
    • uncomment: include_path=${include_path} ":/usr/share/php/libzend-framework-php"
    • Save file
    • Restart apache2
  12. Setup Phpmyadmin
    • sudo apt-get install phpmyadmin
  13. Setup SQLite Database
    • sudo apt-get install libmysqlclient15-dev
    • sudo apt-get install sqlite php5-sqlite
    • sudo apt-get install libsqlite3-0 libsqlite3-dev
    • sudo updatedb
    • sudo service apache2 restart
  14. Setup Java plugin
    • sudo apt-get install openjdk-7-jre
  15. Setup software using Ubuntu Software Center
    • Open Ubuntu Software Center follow step: Applications → Ubuntu Software Center
    • Search software needed: chrome, mysql,...
    • Search with keyword "chrome" and choose install Chromium Web Broswer
    • Do same thing for Mysql AdministratorGIMP
  16. Setup Zend Studio
    • Download Zend Studio:
      • http://www.zend.com/en/products/studio/downloads
      • http://www.zend.com/en/download/411
    • After you got the sources, we need to extract it and move ZendStudio folder to where you want (E.G.: /home/shin/ZendStudio):
      • Run ZendStudio sh file
      • In the first time, Zend Studio will noitice you about Zend Toolbar
      • Click Next to setup Zend Toolbar for Firefox
      • Finished
    • Configure Zend Toolbar:
      • Open Firefox Browser
      • Find Extra Stuff button in Zend Toolbar
      • Click Extra Stuff → Setting
      • Zend Studio Settings section, you need browse the link to ZendStudio sh file in your ZendStudio folder
    • Setup Zend Studio and Zend Toolbar successfully
  17. Setup VirtualBox 4.0
    • Download VirtualBox new version in here: http://www.virtualbox.org/wiki/Linux_Downloads
    • And you must follow their steps to install VirtualBox in Debian-based Linux distributions section
    • After install completed. You can check about your VirtualBox in Accessories → System Tools → VirtualBox
    • Done!

VirtualBox Trick:
  1. Change Network Adapters for Your Computer easy to connect VirtualBox
    • Open VirtualBox
    • Run VirtualBox
    • Devices Menu → Network Adapters → Adapter 1 Tab
    • Attached to: change to Bridged Adapter
    • Check in Terminal in VirtualBox: ifconfig
    • See in eth1 → inet addr
  2. Share Folder for Windows VirutalBox:
    • http://maketecheasier.com/share-files-in-virtualbox-between-vista-guest-ubuntu-host/2008/11/12
  3. Share Folder for Ubuntu VirtualBox:
  4. Create new folder to store all files you want to Share
    • Right click and choose Properties
    • Choose Share Tab
    • Tick:
      • Share this folder
      • Allow others to create and delete files in this folder
      • Guest access (for people without a user account)
      • Install new software if required
      • Click Modify Share
      • Done
    • After that, run Ubuntu VirtualBox:
      • Open Network folder
      • Choose computer name where you shared folder
      • And see your folder want to share


Good luck!

No comments:

Post a Comment