User:Armenzg:set my environment up: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
These are the steps I will follow every time to set up my working environment:
These are the steps I will follow every time to set up my working environment:


== Tools ==
* http://cssh.sourceforge.net/
== MacOSX ==
* get Chicken of the VNC
* get Remote Desktop for Windows
* get iTerm
* get [http://www.macports.org/install.php MacPorts]
** sudo port install mercurial libidl autoconf213
** sudo port install wget
* get [http://downloads.vmware.com/d/info/desktop_downloads/vmware_fusion_for_the_mac/2_0 VMWare Fusion 2] (VMware-Fusion-2.0.6-196839)
* Most info extracted from this page: [https://developer.mozilla.org/en/Mac_OS_X_Build_Prerequisites 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''
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''


Line 6: Line 20:
** Konversation (for IRC conversations)
** Konversation (for IRC conversations)
** Vim (better edition that comes by default)
** Vim (better edition that comes by default)
*** TODO: Read this article and extract useful stuff [http://www.conan1412.os3.sg/conan/cblog/archives/307 1]
** ssh client comes install by default but this package pulls the server as well
** ssh client comes install by default but this package pulls the server as well
** cvs client
** cvs client
** OpenVpn
** Mercurial
** Mercurial
** CVS tools for non-comitters specially
<pre>
<pre>
sudo apt-get install konversation
sudo apt-get install konversation
Line 14: Line 31:
sudo apt-get install ssh
sudo apt-get install ssh
sudo apt-get install cvs
sudo apt-get install cvs
sudo apt-get install openvpn
sudo apt-get install python-setuptools python-dev build-essential
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install -U mercurial
sudo easy_install -U mercurial
sudo apt-get install cvsutils
touch ~/.cvspass
</pre>
</pre>
* [https://wiki.mozilla.org/User:Armenzg:scripts#Install_python.2C_zope_and_buildbot Install python, buildbot, twisted and zope interface]
* [https://wiki.mozilla.org/User:Armenzg:scripts#Install_python.2C_zope_and_buildbot Install python, buildbot, twisted and zope interface]
== 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

Latest revision as of 21:18, 29 January 2010

These are the steps I will follow every time to set up my working environment:

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