Sep
16
2012
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
3 comments | tags: Command Line Interface, Linux | posted in Linux
Feb
5
2012
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
2 comments | tags: Command Line Interface, Linux, SSH | posted in Linux
Oct
19
2011
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
no comments | tags: Archlinux, Command Line Interface, Linux, Network | posted in Linux
Oct
19
2011
Yuliang Jin
装好Archlinux以后,我遇到的第一个麻烦就是如何修改MAC地址来接入校园网。之前我写过一篇短文,里面介绍Linux下如何修改MAC地址(在这里)。那篇文章介绍了如何使用ifconfig程序临时修改MAC地址,以及在Red Hat/CentOS/Fedora或Debian/ubuntu中如何修改网络配置文件来修改MAC地址。但是我发现我新装的Archlinux没有ifconfig程序(我安装系统时选择的包很少)。所以我得找个其他的方法,幸好,Arch有自己的Arch Way。...... Read more
no comments | tags: Archlinux, Command Line Interface, Linux, Network | posted in Linux
Aug
15
2011
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
3 comments | tags: Command Line Interface, GNU GRUB, Linux, Portable, Puppy Linux | posted in Linux
Aug
4
2011
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
1 comment | tags: Command Line Interface, Linux, Public Key Infrastructure, SSH | posted in Linux