norman's blog

Notes of an amnesiac.
Never stop thinking.
Find an aesthetic description.

Sunday, May 3, 2009

SOME SOFTWARE I USED

TOTAL RECORDER: universal sound recording program. Capture sound being played by other sound players, either from a file or from the Internet. 三耳学习机

Labels:

Read more!

Monday, April 20, 2009

Clean install XP on T500

USEFUL WEBSITE

HOWTO: Multi Disk System Tuning

THINKPAD T500 Driver Website http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-70443#networking

Thinkpad T400/T500/W500完美安装Windows Xp驱动的最详细教程http://www.yayanb.com/thread-76370-1-2.html

Labels:

Read more!

Tuesday, January 6, 2009

xorg.conf

Labels:

Read more!

Tuesday, December 23, 2008

matlab

add this to .bashrc if [ -z "`echo $PATH | grep "/home/wangpeng/opt/"`" ]; then export PATH=$PATH:$HOME/bin:$HOME/opt:$HOME/opt/matwrap/bin:$HOME/opt/matwrap/share
export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$HOME/opt/lib:$HOME/matlab/mosek/5/tools/platform/linux32x86/bin:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib:/usr/X11R6/include fi then restart terminal install cvx cd /home/peng/program/cvx cvx_setup addpath /home/peng/program/cvx/builtins addpath /home/peng/program/cvx/commands addpath /home/peng/program/cvx/functions addpath /home/peng/program/cvx/lib addpath /home/peng/program/cvx/structures addpath /home/peng/program/cvx install stprtool cd /home/peng/program/stprtool compilemex stprpath

Labels:

Read more!

Flash plugin for firefox-3.0&ubuntu8.04

The "install-flash_player_10_linux.deb" does not work! I download the "install_flash_player_9_linux.tar.gz", but the install address I inputed always "invalid". Then I find a bug in #line129 of the script "flashplayer-installer", change "invalid" to "valid", everything will be OK!! 1. sudo ./flashplayer-installer 2. the install address is "/usr/lib/firefox-3.0" p.s. i am confused. My firefox-flash-plugin can not work only if I reinstall the plugin!! Then I install the "install-flash_player_10_linux.deb" and install the "install-flash_player_10_linux.tar.gz" which did not have the bug I mention the above, still not work. At last, I try the "install_flash_player_9_linux.tar.gz" without the "bug" modifying. everything is OK!! i think there is no bug in the "install_flash_player_9_linux.tar.gz". I can not understand now!!! waiting for tackle

Labels:

Read more!

Concerning mplayer in ubuntu8.04[quote]

install mplayer sudo apt-get install mplayer mplayerplug-in install codecs 1. Visit MPlayer binary codec download page. Download the codec package 2. Extract 3. Copy all extracted files to /usr/lib/codecs 4. sudo apt-get install libstdc++5 5. Launch MPLayer by selecting Applications -> Sound & Video -> MPlayer Movie Player. Right-click in the Mplayer - Video window and select Preferences from the menu. Select the Video tab and change the Available drivers: to x11 X11 (XImage/Shm). Select the Codecs & demuxer tab and change the Video codec family: to RealVideo decoder and the Audio codec family: to FFmpeg/libavcodec audio decoders. When you’re done, click OK and close down MPlayer. Screen scaling 1. sudo gedit /etc/mplayer/mplayer.conf 2. delete the '#' before 'zoom = yes' Firefox mplayer plugin(not sure) 1. sudo apt-get install mplayer mozilla-mplayer

2. Add two items ‘about:config’ in firefox:

Network.protocol-handler.app.mms string /usr/bin/mplayer

Network.protocal-handler.external.mms boolean True

Labels:

Read more!

Monday, December 22, 2008

my ubuntu software installation

Chinese input method 1. install scim-python_0.1.12_i386.deb 2. install fitx-0.5.1_i386.deb 3. system->administration->language support->Enable support to enter complex characters Build essential sudo apt-get install build-essential Dictionary sudo apt-get install stardict To install these tarball dictionaries, do this: tar -xjvf a.tar.bz2 sudo mv a /usr/share/stardict/dic Mplayer see another RAR Archives manager sudo apt-get install unrar LATEX sudo apt-get install texlive-full WINE sduo apt-get install wine Add the Medibuntu repository Add Medibuntu to your sources.list, as well as its GPG key to your keyring. Make sure to use the correct sources.list that corresponds to your current distribution. for 8.04 : sudo wget http://www.medibuntu.org/sources.list.d/hardy.list --output-document=/etc/apt/sources.list.d/medibuntu.list Then, add the GPG Key: sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update SSH sudo apt-get install openssh-client sudo apt-get install openssh-server

Labels:

Read more!

Ubuntu 8.04 设置笔记本电脑双显示器[转]

Ubuntu 8.04 设置笔记本电脑双显示器 正文: 1、设置显示分辨率及 xrandr 介绍 X Windows 中有一个显示分辨率的概念,在默认情况下,这个显示分辨率为 max*max ,max等于你的所有连接上的显示器中最大分辨率中的最大值。例如我的笔记本液晶屏最大分辨率为 1024*768,外接显示器最大分辨率为 1280*1024,则默认的显示分辨率为 1280*1280。如果我设置左右双屏且使用最大分辨率,那么总显示分辨率就会达到2304*1024,达到超出系统默认的大小。在这种情况下强行设置 双屏幕,就会导致 X 进入超低分辨率,结果不得不手工重设 xrog.conf 来恢复。 为了更好检测这个问题,我们需要用到 xrandr 这个软件,xrandr系统已经自带,如果没有请安装x11-xserver-utils:sudo apt-get install x11-xserver-utils 。 不带参数执行xrandr能够列出当前的显示设备和每个设备支持的模式。Screen代表了总显示区域,VGA代表显示器,LVDS代表笔记本液晶屏。 Screen 0: minimum 320 x 200, current 1280 x 768, maximum 1280 x 1280 VGA connected (normal left inverted right x axis y axis) 1280x1024 75.0 + 69.8 59.9 1024x768 75.1 70.1 60.0 800x600 72.2 75.0 60.3 640x480 75.0 72.8 65.4 60.0 720x400 70.1 LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 246mm x 184mm 1024x768 50.0*+ 60.0 40.0 800x600 60.3 640x480 60.0 59.9 系统默认显示分辨率为 1280x1280,而在左右扩展双屏情况下VGA和LVDS支持的最小分辨率加在一起都超过这个数字,当然会导致 X 进入超低分辨率了。如果感兴趣,可以用以下命令尝试把外接显示器打开并设置为右侧扩展屏幕(不用sudo)来验证一下: xrandr --output VGA --auto --right-of LVDS 系统会出错,提升说屏幕大小超出限制。 解决方法:手工修改xorg.conf,在Section "Screen"中添加一行 Virtual 2304 1024 Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" SubSection "Display" Virtual 2304 1024 EndSubSection EndSection 注意:Ubuntu 8.04中的xorg.conf已经非常精简,Subsection "Display" 可能要自己添加,别忘记 EndSubSection 我设置好以后的xrandr命令输入如下: $ xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2304 x 1024 VGA connected (normal left inverted right x axis y axis) .... LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 246mm x 184mm .... 现在应该没问题了,用刚才的命令打开双屏后, $ xrandr Screen 0: minimum 320 x 200, current 2304 x 1024, maximum 2304 x 1024 VGA connected 1280x1024+1024+0 (normal left inverted right x axis y axis) 340mm x 270mm ... LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 246mm x 184mm ... 其实这个显示分辨率完全可以设置高一些,比如我就设置成4000 x 2000,如果连接到最大分辨率为1920x1200的外接显示器,也不用重新设置 xorg.conf 了。 xrandr 命令行可以很方便地切换双屏,常用方式如下,其他的可以自己探索: xrandr --output VGA --same-as LVDS --auto 打开外接显示器(最高分辨率),与笔记本液晶屏幕显示同样内容(克隆) xrandr --output VGA --same-as LVDS --mode 1024x768 打开外接显示器(分辨率为1024x768),与笔记本液晶屏幕显示同样内容(克隆) xrandr --output VGA --right-of LVDS --auto 打开外接显示器(最高分辨率),设置为右侧扩展屏幕 xrandr --output VGA --off 关闭外接显示器 xrandr --output VGA --auto --output LVDS --off 打开外接显示器,同时关闭笔记本液晶屏幕(只用外接显示器工作) xrandr --output VGA --off --output LVDS --auto 关闭外接显示器,同时打开笔记本液晶屏幕 (只用笔记本液晶屏) (最后两种情况请小心操作,不要误把两个屏幕都关掉了。。。。) 2、GNOME下切换双屏的方法 用命令行毕竟不方便,幸好我们还有许多 X 下的工具可用: GNOME 中自带的“监视器屏幕分辨率设置”软件功能很强大(系统->首选项->屏幕分辨率), 打开和关闭第二个监视器的办法是调整它的分辨率,取消“克隆”就可以设置成扩展屏幕,还可以通过拖动图标位置调整双屏时两个屏幕的相对位置。 grandr,则是一个图形界面的xrandr前端,功能与前一个软件各有千秋。安装方法:sudo apt-get install grandr

Labels:

Read more!