Upgrade and downgrade RubyGems

Upgrade and downgrade RubyGems

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 [...]
Password-Only Login for SSH and SCP

Password-Only Login for SSH and SCP

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)) [...]
MongoDB init script on Ubuntu

MongoDB init script on Ubuntu

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 [...]
Scrollback in GNU Screen

Scrollback in GNU Screen

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); [...]
Generate random Chinese character in Python

Generate random Chinese character in Python

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"; [...]
Send mails with attachments from command-line

Send mails with attachments from command-line

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 [...]
What’s new in RHEL 6

What’s new in RHEL 6

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 [...]
Update hp-snmp-agents to latest version on RHEL/CentOS

Update hp-snmp-agents to latest version on RHEL/CentOS

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]; [...]
Shell script: Terminate an Amazon EC2 instance

Shell script: Terminate an Amazon EC2 instance

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, [...]
Understanding IOZone Tests

Understanding IOZone Tests

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 [...]
© 2006-2011 Admon Home. All rights reserved.