最近把自己的工作平台转移到ubuntu上,安装以后经过一番折腾总结了几个安装后的步骤。写下来以后备用。
更新源:
$ sudo vi /etc/apt/sources.list
源
地址:
deb lucid main restricted universe
multiverse
deb lucid-security main
restricted universe multiverse
deb
lucid-updates main restricted universe multiverse
deb
lucid-proposed main restricted universe
multiverse
deb lucid-backports main
restricted universe multiverse
deb-src
lucid main restricted universe multiverse
deb-src
lucid-security main restricted universe
multiverse
deb-src lucid-updates main
restricted universe multiverse
deb-src
lucid-proposed main restricted universe multiverse
deb-src
lucid-backports main restricted universe
multiverse
$ sudo apt-get update
安装中文输入
法:
$ sudo apt-get install scim scim-modules-socket
scim-modules-table scim-pinyin scim-tables-zh
$ sudo sh -c " echo
'export XMODIFIERS=@im=SCIM ; export GTK_IM_MODULE="scim" ; export
QT_IM_MODULE="scim" ; scim -d ' > /etc/X11/Xsession.d/95xinput "
$
sudo chmod 755 /etc/X11/Xsession.d/95xinput
安装
VIM:
$ sudo apt-get install vim -y
$ sudo cp
/usr/share/vim/vim71/vimrc_example.vim /etc/vim/vimrc
$ sudo vi
/etc/vim/vimrc
#在文件最后添加
set nobackup
set fdm=marker
安装SSH:
$ sudo apt-get install ssh -y
安装AMP:
$ sudo aptitude install apache2 php5
libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql
php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap
php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode
php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-dev -y
安装jdk:
$ sudo apt-get install sun-java6-jdk
$ sudo update-alternatives --config
java
执行之后会出现如下画面
There are 2 alternatives which provide `java'.
Selection
Alternative
-----------------------------------------------
1 /usr/bin/gij-4.2
+
2 /usr/lib/jvm/java-6-sun/jre/bin/java
Press
enter to keep the default[], or type selection number:
输入你现在正在新装的
java-6-sun的序号,如上,我的是2,回车。
如果sun jdk
安装失败可以使用open jdk
$ sudo apt-get install openjdk-6-jdk
安装eclipse:
$ sudo apt-get install eclipse
修
改工作目录所有权
$ sudo chown -R xxxxx /var/www
安装WTP地址:
$
sudo apt-get install libsvn-java
安装SVN地址:
/update_1.6.x
安装jseclipse地址:
/jseclipse/autoinstall/
安装phpeclipse地
址:
我主要的开发环境是php所以这些就完成了我的配置。
阅读(1019) | 评论(0) | 转发(0) |