User:Armenzg:set my environment up
From MozillaWiki
These are the steps I will follow every time to set up my working environment:
Contents
Tools
MacOSX
- get Chicken of the VNC
- get Remote Desktop for Windows
- get iTerm
- get MacPorts
- sudo port install mercurial libidl autoconf213
- sudo port install wget
- get VMWare Fusion 2 (VMware-Fusion-2.0.6-196839)
- Most info extracted from this page: Mac OS X Build Prerequisites
Linux
NOTE: if you are doing this on a VM with VirtualBox make sure that you run this sudo apt-get install dkms and use this to recompile if needed: /etc/init.d/vboxadd setup
- Install the following packages:
- Konversation (for IRC conversations)
- Vim (better edition that comes by default)
- TODO: Read this article and extract useful stuff 1
- ssh client comes install by default but this package pulls the server as well
- cvs client
- OpenVpn
- Mercurial
- CVS tools for non-comitters specially
sudo apt-get install konversation sudo apt-get install vim sudo apt-get install ssh sudo apt-get install cvs sudo apt-get install openvpn sudo apt-get install python-setuptools python-dev build-essential sudo easy_install -U mercurial sudo apt-get install cvsutils touch ~/.cvspass
Configuration Files
.profile or .bash_profile
# Give colours to your bash export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad export PATH=$PATH:~/moz/scripts export PYTHONPATH=$PYTHONPATH:~/moz/repos/hghooks:~/moz/repos alias bb='buildbot' alias bbs='buildbot start' alias bbS='buildbot stop' alias bbr='buildbot reconfig' alias bbR='buildbot restart' alias bbc='buildbot checkconfig' alias cx='csshX' alias autoconf='autoconf-2.13' alias watch_for='cat ~/moz/notes/watch_for'
.hgrc
[ui] username = Armen Zambrano Gasparnian <armenzg@mozilla.com> merge = diff [diff] git = 1 [defaults] diff=-p -U 8 qdiff=-p -U 8 [web] config = /var/hg/hgweb.config [extensions] hgext.graphlog = hgext.mq = #qup = /Users/armenzg/moz/scripts/qup.py #qimportbz = /Users/armenzg/moz/repos/hgextensions/qimportbz #[qimportbz] #bugzilla = $BUGZILLA if set else bugzilla.mozilla.org #patch_format = bug-%%(bugnum)s #msg_format = Bug %%(bugnum)s - "%%(title)s" [%%(flags)s]
.vimrc
syn on set number set expandtab set sts=4 set sw=4 set et " Only do this part when compiled with support for autocommands if has("autocmd") " In text files, always limit the width of text to 78 characters autocmd BufRead *.txt set tw=78 " When editing a file, always jump to the last cursor position autocmd BufReadPost * \ if line("'\"") > 0 && line ("'\"") <= line("$") | \ exe "normal! g'\"" | \ endif endif