Friday, 11 November 2011

A few things for configuration after install Ubuntu

1. install system

Nothing to say, just follow the steps, and install update, install additional driver.

2. set up dual monitor,  modify xorg.conf

This should be ATI-Graphic Card Specific problem, you need to modify your xorg.conf to set up your dual monitor.

First, type in the follow comments:
sudo aticonfig --initial
to initialize the xorg.conf, then add a new line:

Virtual 2680 1050  (you should set this number larger than the size required)

under the 'Display' Section.

Please refer to

for more detail.

3. connect to lab printer, smb//nusstu/nts27/

To connect nus soc network print, go Printing->Add-> Network Printer ->Windows Printer via SAMBA ,
then Add smb//[domain]/nts27/[printer], [domain] should be  nusstu or nusstf; [printer] is the printer name you want to connect, said, pst145-dx

4. Install Latex:

apt-get install texlive, or install all the package by apt-get install texlive-full

a few package and plugin recommend: apt-get install texlive-fonts-recommended latex-beamer texpower texlive-pictures texlive-latex-extra texpower-examples imagemagick
Please refer to this link for more detail:

for Gedit Latex Plugin, although the package is found by sources, however, seems apt-get install gedit-latex-plugin not working, better download the code from web and install follow the instruction manually.

5. Setting up Iphone Support

There will be an "Unhandled error locked down" problem while connecting iphone to ubuntu, here is the instruction to solve it:

  1. Open terminal, write it: sudo add-apt-repository ppa:pmcenery/ppa
  2. And that, write it: sudo apt-get update
  3. After that, write it: sudo apt-get upgrade
  4. Now, you need to install ifuse. Write it:  sudo apt-get install ifuse
  5. First tool, write it: sudo apt-get install libimobiledevice2
  6. Second tool, write it: sudo apt-get install libimobiledevice-utils
  7. The final step, write it: idevicepair unpair && idevicepair pair

More details can be found via:

6. Install OpenCV in Ubuntu 11.10

6.1 Install OpenCV2.3.1

This is the latest version of OpenCV, and many changes are made compared with eariler versions. It looks now more like the matlab style, the imread..things...

Please follow the instructions carefully from this blog:
and this:

You need to first remove X264, ffmpeg and
sudo apt-get remove ffmpeg x264 libx264-dev

Then install the libs that needed, in fact, in some cases, there are still some libs is not found during make, better locate it and apt-get install...
udo apt-get update
sudo apt-get install build-essential checkinstall git cmake libfaac-dev libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev

sudo apt-get install libgstreamer0.10-0 libgstreamer0.10-dev gstreamer0.10-tools gstreamer0.10-plugins-base libgstreamer-plugins-base0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-ffmpeg

Then download the latest version of x264, ffmpeg and configure,make,make install, if 64bit system are using, pls check some instructions in

then continue apt-get install some packages...
sudo apt-get install libgtk2.0-0 libgtk2.0-dev
sudo apt-get install libjpeg62 libjpeg62-dev

Then download the latest version v4l and install

Finally, download the OpenCV, and cmake, make, make install

Hopefully, Everything is OK

6.2 Install OpenCV 2.0

If an eariler version of OpenCV is wanted, please refer to

Please be careful of the following error:

(1) error: 'ptrdiff_t' does not name a type
The solution is very simple: to add an #include <stddef.h> to /usr/include/opencv/cxcore.hpp.

(2) undefined reference to `cvCreateCameraCapture_V4L(int)'
The solution is to disable WEBCAM Support

7. Install Matlab:

Please follow this guide:
To add Matlab Icon to Ubuntu Unity Launcher, please
Get an icon:
sudo wget -O /usr/share/icons/matlab.png

Get an launcher file:
sudo wget '' -O /usr/share/applications/matlab.desktop

Downlaod dconf.edit: sudo apt-get install dconf.edit

Open dconf.edit, go to desktop->unity->launcher->favorites, add 'matlab.desktop' to the list.

The only remain problem for matlab is the MEX support, currently the gcc version installed in my computer is too high, so matlab cannot support, but i cannot figure out how to link Matlab to a lower version gcc.

8. Install Juniper Network

In order to use juniper network, please follow this link:

9.  Install some useful applications, this weblink is quite useful, if you don't know what is the software you needed:

To Do List After installing Ubuntu 11.10 aka Oneiric Ocelot

10. To be continued

No comments:

Post a Comment