2012年12月28日 星期五

MATLAB in Ubuntu:


http://www.mathworks.com/support/solutions/en/data/1-F68FSA/index.html?solution=1-F68FSA


Subject:
Why do I get a libc.so.6: not found error when launching MATLAB in Ubuntu?

Problem Description:
I get the following error when I run MATLAB in Ubuntu:


/usr/local/MATLAB/R2011a/bin/util/oscheck.sh: 605: /lib/libc.so.6: not found

Solution:

To resolve this problem, open a Terminal window and use the commands below depending on your OS architecture:

For 64-bit Ubuntu:




sudo ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6


For 32-bit Ubuntu:


sudo ln -s /lib/i386-linux-gnu/libc.so.6 /lib/libc.so.6

2012年12月22日 星期六

install oracle sun java on uvuntu 12.04

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
java -version
update-alternatives --config java
update-alternatives --config javac
java -version

2012年11月19日 星期一

IDE features: sans-serif Helvetica
program code: sans-serif Lucida

2012年6月19日 星期二

xdvi helvetica ubuntu download


Warning: Cannot convert string "-*-helvetica-medium-r-*-*-12-*-*-*-*-*-*" to type FontStruct
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*" to type FontStruct


apt-get install xfs xfstt
apt-get install t1-xfree86-nonfree ttf-xfree86-nonfree ttf-xfree86-nonfree-syriac xfonts-75dpi xfonts-100dp
xset +fp /usr/share/fonts/X11/75dpi/
xset +fp /usr/share/fonts/X11/100dpi/

2012年6月10日 星期日

OpenCV-2.3.1a.tar.bz2

wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2
tar xvjf OpenCV-2.3.1a.tar.bz2
cd OpenCV-2.3.1
ls
mkdir release; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..

 How do I set focus follows mouse?
 use gnome-tweak-tool

2012年3月22日 星期四

Failed to load AGL file

ftp://ftp.ccu.edu.tw/pub/tex/dviware/dvipdfmx/
1. Download latest dvipdfmx.tar.gz
2. Extract the two files glyphlist.txt pdfglyphlist.txt
3. Copy to /etc/texmf/dvipdfm

2012年2月25日 星期六

octave on debian



add the following packages:

epstool
octave-epstk
fig2dev

2012年2月11日 星期六

valgrind to check program

valgrind --tool=memcheck ./demo_matrix

2012年1月20日 星期五

update-alternatives --config java

update-alternatives --config java

2012年1月4日 星期三

ffmpeg

http://ubuntuforums.org/showthread.php?t=786095

Install OpenCV 2.3

54 sudo apt-get remove ffmpeg x264 libx264-dev
55 sudo apt-get update
56 sudo apt-get install build-essential checkinstall git 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 texi2html yasm zlib1g-dev
57 cd
58 git clone git://git.videolan.org/x264
59 cd x264
60 ./configure --enable-static
61 make
62 sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes --fstrans=no --default
63 sudo apt-get remove libvpx-dev
64 cd
65 git clone http://git.chromium.org/webm/libvpx.git
66 cd libvpx
67 ./configure
68 make
69 sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
70 cd
71 git clone --depth 1 git://source.ffmpeg.org/ffmpeg
72 cd ffmpeg
73 ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
74 make
75 sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default
76 hash x264 ffmpeg ffplay ffprobe
77 cd ~/ffmpeg
78 make tools/qt-faststart
79 sudo checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no --deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart
80 ffmpeg -i input -acodec libfaac -aq 100 -vcodec libx264 -preset slow -crf 22 output.mp4
81 cd /usr/local/src/
82 ls
83 cd OpenCV-2.3.1/
84 ls
85 cd release/
86 cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..
87 make
88 make install

2012年1月3日 星期二

OpenCV-2.3.1a.tar.bz2

wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2
tar xvjf OpenCV-2.3.1a.tar.bz2
cd OpenCV-2.3.1
ls
mkdir release; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON ..

Install OpenCV

apt-get install libgstreamer0.10-dev
apt-get install libgtkmm* libunicap*
apt-get install libtiff* libv4l-dev libdc1394-*
apt-get install python-dev ruby-dev
apt-get install python-dev cmake
apt-get install libavformat-dev
apt-get install libswscale-dev libxine-dev
ldconfig
cd /usr/local/src
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.0/OpenCV-2.0.0.tar.bz2
tar xvjf OpenCV-2.0.0.tar.bz2
cd OpenCV-2.0.0
mkdir release; cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
make
make install
pkg-config opencv --cflags --libs

If see the following
-I/usr/local/include/opencv -L/usr/local/lib -lcxcore -lcv -lhighgui -lcvaux -lml