Tip
With Emacs, I feel happy. I love the rich functions of Emacs, such as compiling, quickly jumping to the lines with compilation error and debugging with gdb, and more. I ... read more »
I frequently create new user accounts and change or set password for these accounts on a batch of Linux boxes. The create new user can be done by one command ... read more »
My .vimrc .emacc files can be downloaded from here:
http://github.com/zma/config_files
My text editors are especially configured for source code such as C/C++/shell editing. I prefer to use spaces instead of tab. And ... read more »
1. Close IPV6 support
# echo "alias net-pf-10 off" >> /etc/modprobe.conf
# echo "alias ipv6 off" >> /etc/modprobe.conf
Type “about:config” into the address line and enter.
Set “network.dns.disableIPv6″ to “true”
2. Some other tweaks
Type “about:config” ... read more »
The firmware version can be easily checked out in Linux by dmidecode, a tool to locate the computer’s Desktop Management Interface (DMI) table and dump the content to human-readable content. ... read more »
‘ffmpeg’ can do the work of capturing Linux desktop video very well. ffmpeg is a very fast video and audio converter that can also grab from a live audio/video source. ... read more »
Vim is my favourite text editor and I also prefer to use Vim to compose Email. I ever used Vim as Thunderbird’s External editor with the help of plugin. I ... read more »
We may drop the file system caches on Linux to free up memory for applications. Kernels 2.6.16 and newer provide [url=http://linux-mm.org/Drop_Caches]a mechanism[/url] via the /proc/ to make the kernel drop ... read more »
I experienced very slow WiFi network on Linux, while my iPhone seems surf the Internet quit fast. I pinged a site and the RTT is more than 1000ms! There must ... read more »
Copying some text to a new file is a common operation on Linux. I usually do this by opening the file with ‘vim’, pasting the text in ‘vim’, and then ... read more »
I don’t use xdm, gdm or kdm… I prefer my Linux booting to init 3. I like logging in to the command-prompt and starting X manually with startx. In my ... read more »
Twitter’s API is easy to use:
curl -u username:password -d status="Tweeting msg" http://twitter.com/statuses/update.xml
or
curl -u username -d status="Tweeting msg" http://twitter.com/statuses/update.xml
Then type in password.
I have written a script twitter:
#!/bin/bash
username=USERNAME
password=PASSWORD
curl -u $username:$password -d status="$*" ... read more »
How to query installed files from a package and query which package one installed file is in will be introduced.
Query installed files from a package
$ rpm -ql package_name
Query which package ... read more »
Firefox can be much faster on Linux! Let’s speed up Firefox on Linux system. Part 1 and 2 only config firefox, so it can also be used on other platform ... read more »
We may not want to update kernel on a stable server while updating the application in the system. If we use “yum update”, we may install the new kernel. In ... read more »
mplayer/mencoder are powerful tools. This is a list of useful mplayer/mencoder commands.
Extract the audio, convert it to PCM and write the resulting wave file to audio.wav:
mplayer -vo null -hardframedrop -ao ... read more »
We need more loop devices on Linux than the default number (most commonly 8) some time, such as we are building 12 or more virtual machines on top of xen ... read more »
When I get my new Compaq Presario CQ35-240TX, of course, the first thing is to install Fedora ;)
But unfortunately, after installation there is no sound! It seems there is something ... read more »
MPlayer has a fully configurable, command-driven control layer which allows you to control MPlayer using keyboard. Below is a list of mostly used MPlayer keyboard control. They comes from the ... read more »