您的位置:首页 > 其它

ubuntu12.04 web开发环境配置

2013-05-16 00:00 316 查看
摘要: node.js web开发环境配置 @ ubuntu12.04

1. 系统配置

1.1. 源文件

<!-- lang: shell -->
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo gedit /etc/apt/sources.list

# 填写下列信息
deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

# 更新
sudo apt-get update

1.2. 输入法

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

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

...

2. 软件安装

2.1. 多视图终端 Terminator

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

2.2. Node.js

<!-- lang: shell -->
sudo apt-get install g++
wget http://nodejs.org/dist/v0.10.6/node-v0.10.6.tar.gz tar -xzf node-v0.10.6.tar.gz
cd node-v0.10.6
./configure
make
sudo make install
sudo npm i -g grunt-cli

2.3. google chrome

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

2.4. openssh server

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

2.5. sublime text 2

访问 http://www.sublimetext.com/2,安装对应版本。

假设解压缩于 ~/apps/sublime-text2,把sublimetext加入系统

<!-- lang: shell -->
sudo gedit /usr/share/applications/sublime_text.desktop

# 填写下列信息
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=~/apps/sublime-text2/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=~/apps/sublime-text2/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=~/apps/sublime-text2/sublime_text --command new_file
OnlyShowIn=Unity;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息