Posted by joseph on February 25, 2011 ·
RubyGems is a package management framework for Ruby. You need to have an installation of RubyGems before applying the following changes to your system. To make sure whether you have installed RubyGems or not, run this command:
joseph@admon:~$ gem -v
1.5.2
See Gem for information on RubyGems (or ‘ri [...]
Posted by joseph on February 23, 2011 ·
Public key authentication is very common way when we have to access remote Linux/UNIX servers. Normally, we add the public keys to the authentication agent on local side (e.g. by ssh-add), to simply the login process.
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) [...]
Posted by joseph on January 21, 2011 ·
By default, MongoDB does not supply any auto start/stop scripts for instance management. Here we’ll share a smart script to do so. It’s tested OK on ubuntu servers, and should work on Debian too. All you need to do are two steps:
1, Create a configuration file for MongDB, which is located [...]
Posted by joseph on December 26, 2010 ·
A quick note: How to scrollback in GNU Screen. In GNU Screen press Ctrl + a + [ to enter Copy Mode, then scroll up/down using keys j or k. Below are some other navigation keys:
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); [...]
Posted by joseph on December 5, 2010 ·
This is a python script that can be used to generate random Chinese characters. Funny script!
#!/usr/bin/python
import random
def rand_ch_ch():
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=450505674975932";
[...]
Posted by joseph on November 20, 2010 ·
Here we’ll shows you how to send e-mails with file attachments from shell prompt. We’ll list two different ways, using uuencode and Mutt.
Generally with the help of mail command, it’s easy to send mails in shell scripts, and we can easily specify some of key parameters like subject [...]
Posted by joseph on November 18, 2010 ·
Red Hat on Wednesday (10, Nov. 2010) released version 6 of its Red Hat Enterprise Linux (RHEL) distribution.
RHEL 6 has more than 2,000 packages, and an 85 percent increase in the amount of code from the previous version, said Jim Totton, vice president of Red Hat’s platform business unit. The [...]
Posted by joseph on November 14, 2010 ·
HP-snmp-agents contains the SNMP server, storage, and nic agents for all HP Proliant systems with ASM, ILO, & ILO2 embedded management asics. If you’re using SNMP to monitor your HP server running status, this package is needed.
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
[...]
Posted by joseph on November 7, 2010 ·
How can we terminate a specified Amazon EC2 step by step with the help of Amazon commandline tools?
It’s not difficult.
Typically, you might have been attached at least one EBS volume to your instance, which means you need to detach and delete them when terminating the instance.
(function(d, [...]
Posted by joseph on October 28, 2010 ·
Note: This is a copied version from IOZone official document IOzone_msword_98.pdf.
Definitions of the tests
Write: This test measures the performance of writing a new file. When a new file is written not only does the data need to be stored but also the overhead information for keeping track of where [...]