当前位置:   article > 正文

ubuntu12.04 web开发环境配置

ubuntu12 web

1. 系统配置

1.1. 源文件

  1. <!-- lang: shell -->
  2. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
  3. sudo gedit /etc/apt/sources.list
  4. # 填写下列信息
  5. deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
  6. deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
  7. deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
  8. deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
  9. deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  10. deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
  11. deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
  12. deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
  13. deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
  14. deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
  15. # 更新
  16. sudo apt-get update

1.2. 输入法

浏览器里建议使用QQ/Sogou云输入法。

  1. <!-- lang: shell -->
  2. sudo apt-get install ibus-googlepinyin

...

2. 软件安装

2.1. 多视图终端 Terminator

  1. <!-- lang: shell -->
  2. sudo apt-get install terminator

2.2. Node.js

  1. <!-- lang: shell -->
  2. sudo apt-get install g++
  3. wget http://nodejs.org/dist/v0.10.6/node-v0.10.6.tar.gz
  4. tar -xzf node-v0.10.6.tar.gz
  5. cd node-v0.10.6
  6. ./configure
  7. make
  8. sudo make install
  9. sudo npm i -g grunt-cli

2.3. google chrome

访问 https://www.google.com/intl/zh-CN/chrome/browser/,安装对应版本。

2.4. openssh server

  1. <!-- lang: shell -->
  2. sudo apt-get install openssh-server

2.5. sublime text 2

访问 http://www.sublimetext.com/2,安装对应版本。
假设解压缩于 ~/apps/sublime-text2,把sublimetext加入系统

  1. <!-- lang: shell -->
  2. sudo gedit /usr/share/applications/sublime_text.desktop
  3. # 填写下列信息
  4. [Desktop Entry]
  5. Version=1.0
  6. Type=Application
  7. Name=Sublime Text
  8. GenericName=Text Editor
  9. Comment=Sophisticated text editor for code, markup and prose
  10. Exec=~/apps/sublime-text2/sublime_text %F
  11. Terminal=false
  12. MimeType=text/plain;
  13. Icon=sublime-text
  14. Categories=TextEditor;Development;
  15. StartupNotify=true
  16. Actions=Window;Document;
  17. [Desktop Action Window]
  18. Name=New Window
  19. Exec=~/apps/sublime-text2/sublime_text -n
  20. OnlyShowIn=Unity;
  21. [Desktop Action Document]
  22. Name=New File
  23. Exec=~/apps/sublime-text2/sublime_text --command new_file
  24. OnlyShowIn=Unity;

转载于:https://my.oschina.net/u/857391/blog/131357

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/186144
推荐阅读
相关标签
  

闽ICP备14008679号