Line 48: Line 48:
shell>sudo systemctl start memcached.service
shell>sudo systemctl start memcached.service
====install chrome ====
====install eclipse ====
====install eclipse ====
Line 80: Line 78:
alias jumprcom='ssh jump@'
alias jumprcom='ssh jump@'
alias jumpagency='ssh appdev@'
alias jumpagency='ssh appdev@'
====2) Set environment variables====
$ sudo touch /etc/profile.d/
$ sudo chmod 755 /etc/profile.d/
$ sudo su -
# echo "export BASE_RT_DIR=/rt" >> /etc/profile.d/
# echo "export JAVA_HOME=/usr/java/jdk" >> /etc/profile.d/
# echo "export proxy_http=" >> /etc/profile.d/
$ exit
$ echo "export PATH=$PATH:/sbin:/usr/sbin:$JAVA_HOME/bin" >> ~/.bash_profile
Then logout and login to make the new env var take effect,
or source it (you need to source it in every terminal, so you'd better logout, login)
$ source /etc/profile.d/
$ source ~/.bash_profile

Latest revision as of 12:55, October 19, 2017

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

set yum proxy Edit

shell> sudo vi /etc/yum.conf
#add correct proxy for your env

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
Preferences --> General --> Network Connect

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

install maven Edit

maven install on


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@localhost profile.d]$ pwd
[yufei@localhost profile.d]$ cat 
alias jumprcom='ssh jump@'
alias jumpagency='ssh appdev@'
Community content is available under CC-BY-SA unless otherwise noted.