Quick start ubuntu 12.04 - 64 bits: Difference between revisions

From RidgeRun Developer Wiki
(Adding info to get rid of Unity)
Line 19: Line 19:
RidgeRun developers often install:
RidgeRun developers often install:


  sudo apt-get install -y vim geany eclipse-cdt hamster-indicator pidgin gnome-panel meld terminator filezilla tree doxygen
  sudo apt-get install -y vim geany eclipse-cdt hamster-indicator pidgin meld terminator filezilla tree doxygen
 
To get rid of Unity and use a classic gnome environment:
 
sudo apt-get install -y gnome-panel
 
Then you will have the option to choose a ''Gnome Classic'' sessions in your login screen.


= Setup =
= Setup =

Revision as of 14:53, 13 December 2012

Packages to install

General utilities and RR SDK required packages

These are packages that are typically required to put your system in shape for general utilities, and also packages necessary to compile typical RR's SDKs.

sudo apt-get install -y build-essential fakeroot graphviz gdb openssh-server
sudo apt-get install -y zip subversion git-core nfs­-kernel­-server nfs­-common
sudo apt-get install -y portmap xinetd tftpd tftp curl libncurses5-dev texinfo
sudo apt-get install -y minicom quilt curl autoconf libcrypt-ssleay-perl quilt
sudo apt-get install -y libusb-dev libexpect-perl mono-devel libgtk2.0-dev bison flex

The next packages can also be convenient, but note that they will eventually require user-interaction during the installation process, for example to confirm a User License agreement.

sudo apt-get install -y ubuntu-restricted-extras 

Common packages used by RR Developers

RidgeRun developers often install:

sudo apt-get install -y vim geany eclipse-cdt hamster-indicator pidgin meld terminator filezilla tree doxygen

To get rid of Unity and use a classic gnome environment:

sudo apt-get install -y gnome-panel

Then you will have the option to choose a Gnome Classic sessions in your login screen.

Setup

sudo, my best friend

If you don't want sudo to ask you for the password all the time, run:

sudo sh -c "echo '%admin ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers"

After this change, you have to logout from your session for the changes to take effect.

Switch shell from dash to bash

sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

Tuning bash startup script

echo "alias h='history 100'" >> $HOME/.bashrc
echo "alias e='\`make env || echo ERROR: not in a top level development directory 1>&2\`'" >> $HOME/.bashrc
echo 'export PATH=$PATH:/sbin' >> $HOME/.bashrc

When you're ready you can source the file:

source $HOME/.bashrc

SDK downloads

The location /opt/ridgerun/downloads is conveniently used to hold all the packages and tarballs downloaded by the RR SDK, and is convenient because it can be re-used if you have more than one RR SDK installed in your machine.

sudo mkdir --parents /opt/ridgerun/downloads
sudo chmod ugo+rwx /opt/ridgerun/downloads

Building a RR SDK

After the steps above, you can try out building your RR SDK. See the SDK User Guides for reference.

Special steps when compiling the dvsdk

Since we are in a 64-bits version of Ubuntu, we need to run the installer as 32-bit:

sudo apt-get install ia32-libs

Then when you are running the dvsdk installer, use the --forcehost switch to enable the installation, for example:

./dvsdk_dm368-evm_4_02_00_06_setuplinux --forcehost

See also

Quick start ubuntu 11.10