Archive for June, 2012

git basic commands

Saturday, June 23rd, 2012

(1) Set the Identity

$ git config --global "John Doe"
$ git config --global

(2) Set Editor

git config --global core.editor nano

(3) Check Your settings

git config --list

(4) Initializing a Repository in an Existing Directory

git init

(5) Add Files into Existing repository

git add testfile.txt
git commit -m "Initial Commit"
(6) Clone existing repository
<pre lang="GNU">
git clone git://

How to install spacewalk in Server and client

Sunday, June 17th, 2012

Installing Spacewalk in Server:

Installing Spacewalk in client(Registering client with spacewalk server):

(1) Install the bellow repo

# rpm -Uvh
# BASEARCH=$(uname -i)
# rpm -Uvh$BASEARCH/epel-release-5-4.noarch.rpm

(2) Install bellow rpm

yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin

(3) Register the client with server

rhnreg_ks --serverUrl= --activationkey=<key-with-fedora-custom-channel>

Invalid command ‘WSGIScriptAliasMatch’, perhaps misspelled \ or defined by a module not included in the server configuration(Spacewalk)

Friday, June 15th, 2012

You can enable this module by editing /etc/httpd/conf.d/wsgi.conf and un-commenting the “LoadModule wsgi_module modules/” line.

Turn off FSCK at booting time

Friday, June 15th, 2012
$sudo tune2fs -c -1 `mount | awk '$3 == "/" {print $1}'`
$sudo tune2fs -c -1 /dev/yourhdd

set the last field of /etc/fstab to 0:
/dev/sda1 / ext4 defaults 1 0

Github and Git commands

Wednesday, June 6th, 2012

1)How to clone a git repo into a new computer

git clone

2) push code from cloned repo

git push origin master


windows miscellaneous commands

Wednesday, June 6th, 2012

1. See which accounts are disabled

C:\Users\Administrator>dsquery user OU=_IT,OU=_Departments,OU=_BedFord,DC=aac-domain,DC=lan -disabled