FANDOM


How to set up development environment (Desktop Linux Fedora18 x64)Edit

enable sudo to your account Edit

shell> su
shell> chmod +w /etc/sudoers
shell> echo '${username} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
shell> chmod -w /etc/sudoers
shell> exit

disable SELINUX Edit

sudo vi /etc/selinux/config
SELINUX=disabled

set yum proxy Edit

shell> sudo vi /etc/yum.conf
#add correct proxy for your env
proxy=http://10.90.7.56:3130/

install synergy Edit

  1. use synergy share your keyboard, and mouse between machine
shell>sudo yum install synergy
shell>mkdir ~/synergy
##put synergy.conf and synergy server and client shell under this folder
##you may need synergy official site to write the shell and conf
  1. you may need stop firewall to use synergy, you can add below to your ~/.bash_profile
sudo systemctl stop firewalld.service

install m4 Edit

shell>sudo yum install m4

install subversion Edit

shell>sudo yum install subversion

install git Edit

shell>sudo yum install git
  • Todo: add config git proxy

ssh keygen Edit

[iphone@bjsit1iphonedev01 .ssh]$ssh-keygen -t rsa

install memcached Edit

shell>sudo yum install memcached
  • start memcached
shell>sudo systemctl start memcached.service


install eclipse Edit

shell>mkdir -p ~/dev
#put eclipse to ~/dev/, such as ~/dev/eclipse-kepler

You probably want to increase the min/max memory for eclipse, I use "-Xms768m" and "-Xmx1024m"

$ vi ~/eclipse/eclipse.ini

Config eclipse proxy 10.90.7.56:3130
Preferences --> General --> Network Connect

Install subclipse from Eclipse Marketplace
Help --> Eclipse Marketplace , then search your plugin and install

install maven Edit

maven install on

/usr/local/maven-2.2.1
/usr/local/maven-3.0.5

and create softlink

[yufei@localhost bin]$ sudo ln -s /usr/local/maven-2.2.1/bin/mvn mvn
[yufei@localhost bin]$ sudo ln -s /usr/local/maven-3.0.5/bin/mvn mvn3

add custon alias Edit

  • add custom alias to fe18, add shell file to /etc/profile.d/ , such as : yufei_alias.sh
[yufei@localhost profile.d]$ pwd
/etc/profile.d
[yufei@localhost profile.d]$ cat yufei_alias.sh 
alias jumprcom='ssh jump@10.90.7.23'
alias jumpagency='ssh appdev@10.90.7.23'