...
- !* Choose and make note of the root password
- Create your user (remember the password)
- Update the software on the system
- System->Administration->Update System
- If you get the following error "Transaction error could not add package update for <distro info>". The work around is typing the following on the command line:
$su -
$yum update
- If you get the following error "Transaction error could not add package update for <distro info>". The work around is typing the following on the command line:
- System->Administration->Update System
- Convert your user to a "sudoer"
- Get a terminal window (Applications->System Tools->Terminal)
- Type '
su -
' (no quotes) - Enter root password
- Fedora, CentOS
- visudo
- add the following line toward the end of the file (assuming your user name was steve)
%steve ALL=(ALL) ALL
- Ubuntu
- Add user to "sudo" group in /etc/group in 12.04 LTS, or "admin" group in earlier versions, e.g.
sudo:x:27:steve
admin:x:25:steve
- Add user to "sudo" group in /etc/group in 12.04 LTS, or "admin" group in earlier versions, e.g.
- Install all the required Linux packages (CentOS, Fedora. See bottom for Ubuntu).
- cut and paste these to the terminal window:
- Fedora only
sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm - CentOS 6 only
sudo yum clean all
(remove "RPMDB altered outside of yum" warning, if necessary)Install necessary packages
Code Block sudo yum install gcc gcc-c++ make gettext patch bison flex liboil liboil-devel zlib zlib-devel libxml2 libxml2-devel doxygen libX11-devel libXext libXext-devel mesa-libGLU-devel atk atk-devel pango pango-devel cairo cairo-devel libjpeg libjpeg-devel libtiff libtiff-devel man-pages perl-Net-Telnet perl-Digest-SHA1 svn vlc mozilla-vlc
- Check the RI Code out to populate your machine
- Start in your home directory ('cd ')
mkdir CableLabsRI
cd CableLabsRI
svn co https://community.cablelabs.com/svn/OCAPRI/trunk
- Enter your credentials when prompted, then wait as it checks out the trunk. You now have the majority of the tree for Linux on your machine under /home/<user>/CableLabsRI/trunk
- Ensure SELinux is disabled (CentOS, Fedora. Ubuntu does not install and enable SELinux by default.)
- Activate menu by selecting System->Administration->SELinux Management
- Enter root password
- In Status Tab, set System Default Enforcing Mode to Disable
- For Fedora 15 and CentOS:
sudo vi /etc/sysconfig/selinux
change SELINUX=enforcing to SELINUX=disabled
:wq (save and quit).
You have to reboot the system for this to take effect.
- Install the Sun 1.6 Java Development Kit (Java SE JDK 6 Update XX)
- Note: Installation of Sun's JDK is not necessary - the Open JDK has already been installed (and works).
However, the Open JDK developer tools must be installed (i.e. the full JDK, not just the JRE):
For CentOS:yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel
For Ubuntu:
See full apt-get command at bottom. For Sun JDK:
- Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Select latest JDK 6 Download
- Select Platform: Linux Language: Multi-language, select checkbox accepting the License agreement
- Select jdk_6uxx-linux-rpm.bin, and "Save File" when prompted
- in ~/Download, do '
chmod +x jdk-6uxx-linux-i586-rpm.bin
' (no quotes) sudo ./jdk-6uxx-linux-i586-rpm.bin
- Accept the license, and watch the jdk get installed
- Ignore the registration
- Note: Installation of Sun's JDK is not necessary - the Open JDK has already been installed (and works).
- Get ant 1.8 or later
- ANT is already installed. However, DO NOT SET ANT_HOME
- Download http://ant.apache.org/bindownload.cgi
- in home directory do '
gtar -xvf Download/apache-ant-1.8.4-bin.tar.gz
'
- Edit your environment to get ready to build
- Edit .bashrc in your home directory
- Add the following lines to the end, replacing "steve" with your user name
...