Monday, March 14, 2016

Setup/Ubuntu Environment Setup

Setup/Ubuntu Environment Setup

Jump to: navigation, search

Contents

Changing Shell from tcsh to bash

  • The Linux PC may use "tcsh" by default. To change to bash, just open a terminal and execute
  • >chsh
  • After inputing your password, type "bash" as your new shell. The change should take ~90 minutes to take effect.

Obtain Samba configurations

sudo /pkg/sysadmin/bin/duty add asw.build.desktop
  • This will update /etc/samba/smb.conf and allow sharing of Linux workspace with Windows PC, i.e. \\\workspace will be viewable from a Windows machine

samba

Loading on target from a lab machine requires access to the workstation's build tree using samba.
To use samba you must be a member of the l4linux.samba users group. A list of users is available by searching for l4linux.samba in photoph
If you are not a member sign-up
Your workstation must be configured to start samba at boot time
sudo update-rc.d samba

Setup local bash_profile and bashrc

  • The .bash_profile is executed for login shells (login via console) while .bashrc is executed for interactive non-login shells (terminals launched after login)
    • By sourcing .bashrc within .bash_profile, all shell configurations can be added to .bashrc only and be executed for both cases
  • Create a local bash_profile file at ~/.bash_profile and add the following to the file:
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi
  • Create a local bashrc file at ~/.bashrc and add whatever configurations necessary. Some examples are:
cd /local/mnt/workspace         <~ This will start every terminal at /local/mnt/workspace directory
alias ls='ls --color'           <~ This will use color to distinguish file types when using ls
export PATH=~/bin:$PATH         <~ This will set the directories to be added to PATH

Install qtools

Qtools is a list of tools that would help improve productivity by helping you do things faster. More info on qtools could be found at http://go/qtools and a list of tools that can be installed and updated via brew are are added to this link https://github.qualcomm.com/linuxprod/homebrew-qtools/tree/master/Formula
  $ curl -L https://github.qualcomm.com/linuxprod/homebrew-qtools/raw/master/install.sh | bash
  $ brew install qtools-all
Then, to stay up-to-date with the latest qtools development you can always do:
   $ brew update
   $ brew upgrade

Setup Pidgin

See the QuIC IRC page for setup and the b2g IRC page for etiquette.

Setup gvim

sudo apt-get install vim-gtk
  • To create customized settings, create/update the following files:
    • ~/.vimrc
    • ~/.gvimrc
  • To update syntax highlighting, copy files to:
    • ~/.vim/syntax
  • To highlight lines greater than 80 characters, modify ~/.vimrc:
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
  • Make sure to convert all files to UNIX conversion by using dos2unix

Setup Emacs

See Emacs.

Setup Eclipse

See these suggestions. In particular note the steps on increasing memory limits.

Android setup

  • To install package to build Android
sudo apt-get update
sudo apt-get install qandroid  
  • If the above step to install qandroid fails with a dependency indicating gitk, run 'sudo apt-get remove git-man'
  • Install package openjdk-7-jdk (Package can be found found on 12.04.)
sudo apt-get install openjdk-7-jdk 
  • Set default to Java 7
sudo update-alternatives --config java
sudo update-alternatives --config javac

Chrome setup

  • To install package to build Chrome
sudo apt-get update
sudo apt-get install qchromium

OpenEmbedded setup

  • To install package to build with OpenEmbedded
sudo apt-get update
sudo apt-get install qoe

No comments: