顯示具有 Linux 標籤的文章。 顯示所有文章
顯示具有 Linux 標籤的文章。 顯示所有文章

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年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月3日 星期二

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

2011年8月7日 星期日

2011年4月21日 星期四

[HOWTO] Install NVIDIA drivers manually on Lynx

Copy from
http://ubuntuforums.org/showthread.php?t=1467074

[HOWTO] Install NVIDIA drivers manually on Lynx

--------------------------------------------------------------------------------

Well, i am one of those users who never install Nvidia drivers from repository, but manually - by downloading from Nvidia`s website. It was never a pain in the rear on previous Linux distros (including Karmic), but i failed to do so on Lynx. Whenever i tried to install it, i got an error:
Code:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.I read somewhere that they changed the way nvidia drivers get installed on Lynx (correct me if i`m wrong), so it took me some time to figure out how to do that. So, here is the guide:


1) Download Newest Nvidia drivers from their website
2) Open module blacklist as admin: (i use gedit for text file editing)
Code:
sudo gedit /etc/modprobe.d/blacklist.conf3) Add these lines and save:

Code:
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv4) Uninstall any previously installed Nvidia drivers:

Code:
sudo apt-get --purge remove nvidia-*5) Reboot your computer
6) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)
7) Login and cd to the directory where you saved your file
Install drivers
Code:
sudo sh NVIDIA-Linux-x86_64-195.36.24-pkg2.run9) Start GDM
Code:
sudo service gdm startEnjoy

P.S. if you are having trouble with my method, there is an updated one, posted by trespuntos - maybe it will solve your problem.

--------------------------------------------------------------------------------
Last edited by AndyBoy_LV; May 3rd, 2010 at 08:41 AM..

2011年3月5日 星期六

imagej on ubuntu

/usr/lib/jvm/java-6-sun/jre/bin/java -Xmx512m -jar /usr/local/src/ImageJ/ij.jar -ijpath /usr/local/src/ImageJ

2010年6月14日 星期一

install java runtime on ubuntu 10.04

1. Install the following packages:
sun-java6-jre
sun-java6-fonts
sun-java6-bin

2. Install imagej

3. Install jabref

The above two packages are subject to some font problems of chinese characters.

ps. Do not install this one ia32-sun-java6-bin or other java distribution. To my own case, these packages just mess up with chinese font.

2009年11月13日 星期五

清除emacs開始畫面

1. 建立 .eamcs 檔案

2. 加入下列兩行
;; Remove splash screen
(setq inhibit-splash-screen t)