Archive for June, 2012

git basic commands

Saturday, June 23rd, 2012

(1) Set the Identity

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

(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://github.com/schacon/grit.git

How to install spacewalk in Server and client

Sunday, June 17th, 2012

Installing Spacewalk in Server:
Ref: https://fedorahosted.org/spacewalk/wiki/HowToInstall

Installing Spacewalk in client(Registering client with spacewalk server):
Ref: https://fedorahosted.org/spacewalk/wiki/RegisteringClients

(1) Install the bellow repo

# rpm -Uvh http://spacewalk.redhat.com/yum/1.7/RHEL/5/i386/spacewalk-client-repo-1.7-5.el5.noarch.rpm
also
 
# BASEARCH=$(uname -i)
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/$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=http://YourSpacewalk.example.org/XMLRPC --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/mod_wsgi.so” line.

Turn off FSCK at booting time

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

or
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
Ref:https://help.github.com/articles/fork-a-repo

git clone git@github.com:username/Spoon-Knife.git

2) push code from cloned repo

git push origin master

3)

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