Archive

Archive for March, 2006

mplayer on breezy

March 16th, 2006

mplayer 编译指南

一 安装编译环境:

$ sudo apt-get install manpages-dev
$ sudo apt-get install autoconf
$ sudo apt-get install automake
$ sudo apt-get install libtool
$ sudo apt-get install flex
$ sudo apt-get install bison
$ sudo apt-get install gcc-doc
$ sudo apt-get install g++
$ sudo apt-get install x-window-system-dev
$ sudo apt-get install libgtk1.2-dev
$ sudo apt-get install libpng-dev

二 建立安装目录:

$ mkdir /usr/local/bin/mplayer_install
$ cd /usr/local/bin/mplayer_install

三 下载最新的源代码:

$ wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2
$ wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20050412.tar.bz2
$ wget http://www1.mplayerhq.hu/MPlayer/Skin/Blue-1.4.tar.bz2

四 解压缩源代码,编译并安装:

$ tar -xjf essential-20050412.tar.bz2
$ sudo mkdir -p /usr/local/lib/codecs
$ sudo cp essential-20050412/* /usr/local/lib/codecs/
$ tar -xjf MPlayer-1.0pre7try2.tar.bz2
$ cd MPlayer-1.0pre7try2
$ ./configure –enable-gui
$ make
$ sudo make install
$ tar -xjf Blue-1.4.tar.bz2
$ sudo mkdir -p /usr/local/share/mplayer/Skin/default
$ sudo cp -r Blue/* /usr/local/share/mplayer/Skin/default/
$ sudo cp MPlayer-1.0pre7try2/etc/* /usr/local/etc/mplayer/

五 建立默认的配置文件:

$ vim ~/.mplayer/config

文件内容如下:

## Audio drivers
## Ubuntu uses esd by default.
## These are only mentioned for the sake of completion.

ao=esd
#ao=oss
#ao=alsa
#ao=arts

######

现在就可以使用 mplayer ime_na_file.avi -sub subtitri.srt 来播放了。

Administrator i.t.

How to use apt-get behind proxy server (Ubuntu/Debian)

March 13th, 2006

If you are a Debian-based GNU/Linux user, then you’re probably familiar
with synaptic and apt-get to install application from software
repositories. This post focussed on how to use apt-get/synaptic behind
proxy server/firewall which under normal circumstances, you’re unable to
use apt-get.

If you’re using Synaptic

Open up your Synaptic package manager (usually as root), go to
Settings-> Preference -> Network. Enter your proxy server details
like : username:password@proxyserver.net, and put the proxy server port
(usually 8080).

If you’re using command-line apt-get

Edit your /etc/bash.bashrc file as root.

Put these line at the end of your /etc/bash.bashrc file :

export http_proxy=http://username:password@proxyserver.net:port/
export ftp_proxy=http://username:password@proxyserver.netport/

You can omit the username:password, if your proxy server has no
password. That’s all for today! Happy apt-get-ing!

Administrator i.t.

test from ubuntu + firefox + performancing + mobilephone

March 2nd, 2006

it sounds great, aha.

webflier essays