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


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


Aug 15 2011

Linux下为移动硬盘安装Puppy Linux和GRUB引导

Yuliang Jin

本文我们讨论如何在Linux下为移动硬盘安装Puppy Linux,并使用GRUB作为Puppy Linux的Boot Loader。...... Read more


Aug 4 2011

Setting up SSH Public Key Authentication to Login Without Password

Yuliang Jin

Compared to the traditional password authentication, it’s more convenient and more secure to setup public key authentication over SSH. Using this technique, we can perform an automatic login without entering any password. This is usually very useful when we want to call ssh within a shell script. In this article we show how to setup SSH public key authentication between two Linux hosts....... Read more