Sep 16 2012

Play only audio of movies with mplayer

Yuliang Jin

I have a piece of very good music in an MP4 video file and I’d like to listen over and over to it. With mplayer, I can single cycle this file with option -loop 0. Moreover, I want just play the audio but not the video, so I search the man page of mplayer and find this:...... Read more


Feb 5 2012

How to scp a file with colon in its name

Yuliang Jin

We know that scp is a command for secure copy. It copies file between hosts on a network. Normally, we follow the below two examples to copy a file from/to localhost to/from a remote machine:...... Read more


Dec 25 2011

Install CentOS via network without CD-ROM and without USB

Yuliang Jin

There is an extremely old machine in our lab and today I want to use it as a node in our Hadoop cluster. There was a Fedora 8 on it. But I’d like to change it to a new CentOS 5.7. The problem I met, was that our machine was too old, and that neither the CD-ROM nor the USB ports work well....... Read more


Dec 25 2011

无光驱、无USB,网络安装CentOS

Yuliang Jin

实验室有台非常老的机器,今天被我翻出来打算当作我们Hadoop集群中的一个节点。这台机器上原有一个Fedora 8可以用,不过我还是想给它安装一个全新的CentOS 5.7。不过有个问题,就是这台机器太老了,光驱和USB接口竟然全都坏掉了。...... Read more


Oct 19 2011

Spoofing MAC address in Archlinux

Yuliang Jin

The first issue I met, after I logged in to my newly installed Arch Linux, is that I have to change the MAC address to gain access to our campus network. I wrote a short essay about how to change the MAC address in Linux before (see this). In that article, I introduced how to change the MAC address temporarily using ifconfig and permanently editing the network configure file in Red Hat/CentOS/Fedora or Debian/ubuntu. But I found no ifconfig available in my new Arch Linux (I must had missed some essential package that contains ifconfig during the installation.). So I have to find another method, and fortunately, there is an “Arch Way”....... Read more


Oct 19 2011

Archlinux中伪装MAC地址

Yuliang Jin

装好Archlinux以后,我遇到的第一个麻烦就是如何修改MAC地址来接入校园网。之前我写过一篇短文,里面介绍Linux下如何修改MAC地址(在这里)。那篇文章介绍了如何使用ifconfig程序临时修改MAC地址,以及在Red Hat/CentOS/Fedora或Debian/ubuntu中如何修改网络配置文件来修改MAC地址。但是我发现我新装的Archlinux没有ifconfig程序(我安装系统时选择的包很少)。所以我得找个其他的方法,幸好,Arch有自己的Arch Way。...... Read more


Aug 15 2011

Installing GRUB and Puppy Linux to Portable Hard Drive from Linux

Yuliang Jin

In this post we talk about how to install Puppy Linux to portable hard drive from Linux, with GRUB as the Boot Loader....... Read more