Tips for Hard Reboot Linux from Remote SSH

For example you only have remote SSH access to a Linux, but running "reboot" command doesn't work, what can you do?

Run following command for hard reboot:

echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger

Or running this for hard shutdown:

echo 1 > /proc/sys/kernel/sysrq
echo o > /proc/sysrq-trigger

NOTE: By running above command no service shutdown script will be execute, not even any disk I/O write back, so only use it for critical issue.

Openstack Folsom Deploy by Puppet on Ubuntu 12.04 HOWTO

This HOWTO will guide you though a multi-node Openstack Folsom deployment with Puppet on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install Openstack for a new host, as it will modify a lot of default settings; from the other point of view, don't install Openstack on top of an online production that already well configured ;-)

[DEBUG] puppetlabs-openstack

cd /etc/puppet/modules
git clone --branch folsom git://github.com/puppetlabs/puppetlabs-openstack.git openstack
cd openstack
rake modules:clone
cd /etc/puppet/modules/glance
git remote rename origin puppetlabs
git remote add origin git@github.com:hswong3i/puppetlabs-glance.git
git fetch origin
git branch --set-upstream master origin/master
git checkout -b folsom origin/folsom

cd /etc/puppet/modules/horizon
git remote rename origin puppetlabs
git remote add origin git@github.com:hswong3i/puppetlabs-horizon.git
git fetch origin
git branch --set-upstream master origin/master

Apache 2.4 + PHP 5.4 + PDO_IBM on Ubuntu 12.04 HOWTO

This simple HOWTO will guide you about how to setup Apache2.4 + PHP5.4 + PDO_IBM from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci/pdo_ibm within single installation.

Before start, I will assume you have Ubuntu 12.04 and DB2 Express-C 10.1 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

DB2 Express-C 10.1 on Ubuntu 12.04 HOWTO

This HOWTO will guide you though installation of DB2 Express-C 10.1 on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install on a new host, as it will modify a lot of default settings ;-)

Openstack Essex Deploy by Puppet on Ubuntu 12.04 HOWTO

This HOWTO will guide you though a multi-node Openstack Essex deployment with Puppet on Ubuntu 12.04.

Before start I will assume you have a clean Ubuntu Server 12.04 installed with minimal packages requirement. It is strongly recommend to install Openstack for a new host, as it will modify a lot of default settings; from the other point of view, don't install Openstack on top of an online production that already well configured ;-)

Pngcrush a Directory Recursively

By default pngcrush (http://pmt.sourceforge.net/pngcrush/) only able to optimize single PNG file. The following script make it works with a folder recursively:

Update all GIT managed document folders

My team use GIT to manage all project related documents, including quotation, sales order, invoice, SOW, module, theme, features, etc... So how to update all local GIT clone as update with other team members become a nightmare...

This script simply solve this problem:

devstack - localrc

#!/bin/bash

#RECLONE=yes
#OFFLINE=0
#LIBVIRT_TYPE=qemu

# Use the eth0 IP unless an explicit is set by ``HOST_IP`` environment variable
HOST_IP=172.24.0.11

# Specify which services to launch.
ENABLED_SERVICES="$ENABLED_SERVICES,swift"
#ENABLED_SERVICES=n-cpu,n-net,n-api,n-vol

# Allow the use of an alternate hostname (such as localhost/127.0.0.1) for service endpoints.
SERVICE_HOST=172.24.0.11
SERVICE_PASSWORD=openstack
SERVICE_TOKEN=bdbb8df712625fa7d1e0ff1e049e8aab

# Configure services to use syslog instead of writing to individual log files
SYSLOG=1
SYSLOG_HOST=$SERVICE_HOST

Pages

Subscribe to edin.no-ip.com RSS