开始工作的的小小程序员们需要搭建的开发环境

以下是自己在Ubuntu开发环境开始工作需要的做的准备!

-----------------------------------------------
使用 apt-get为 Ubuntu安装 AMP
1.MYSQL
sudo apt-get install mysql-server
sudo apt-get install mysql-client
2.APACHE
sudo apt-get install  apache2
3.PHP
sudo apt-get install php5
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql

停止Apache:sudo /etc/init.d/apache2 stop
啟用Apache:sudo /etc/init.d/apache2 start
重啟Apache:sudo /etc/init.d/apache2 restart
--------------------------------------
FTP:sudo apt-get install filezilla
-----------------------------------
SVN:

sudo apt-get install subversion
签出代码:svn co svn://192.168.1.246/shop/trunk cyjyshop
更新代码:svn up svn://192.168.1.246/shop/trunk cyjyshop

---------------------

修改文件、目录权限和用户组

chown username file
chown username:group somefile
chown username somedircd /etc

chgrp usergroup somefile
chgrp -Rv usergroup somedir
--------------------------
修改新签出工程cyjyshop文件权限
sudo chmod -type xxxowner xxxgroup xxxother
0 [000] 无任何权限
4 [100] 只读权限
6 [110] 读写权限
7 [111] 读写执行权限
root@ubuntu:/var/www# chmod -R 777 cyjyshop/images
root@ubuntu:/var/www# chmod -R 777 cyjyshop/data
root@ubuntu:/var/www# chmod -R 777 cyjyshop/temp
--------------------------------------------------

Ubuntu 修改hosts
1、修改hosts
sudo gedit /etc/hosts
2、添加解析记录( . )
完整案例:127.0.0.1 localhost.localdomain localhost
简洁记录:127.0.0.1 localhost
3、保存后重启网络
sudo /etc/init.d/networking restart

-----------------------------------

安装php开发编辑工具gphpedit
sudo apt-get install gphpedit php5-cli

------------------------------------------

IBus安装拼音:
http://wiki.ubuntu.org.cn/IBus
用PPA的第三方源将IBus升级的方法:
sudo add-apt-repository ppa:shawn-p-huang/ppa
sudo apt-get update
sudo apt-get install ibus-gtk ibus-qt4 ibus-pinyin ibus-pinyin-db-open-phrase
安装常用的拼音输入法ibus-pinyin:
sudo apt-get install ibus-pinyin ibus-pinyin-db-android

-------------------------------------

webqq手动安装flash plugin
解压flash-plugin-10.3.183.11-release.i386.rpm
sudo root
cp libflashplayer.so /usr/lib/mozilla/plugins

posted @ 2012-01-19 11:11  zendwang  阅读(329)  评论(0编辑  收藏  举报