Friday, 29 May 2015

How to Setup GiThub account in ubuntu/Debian flavour

For beginner’s GITHUB is the treasure of centralized repository system which growing the speed of beyond the limitation of your thinking so lets start manager our source code using git hub created by linus torvalds
To setup on your local linux system
Step 1:- Install git software using below given command
=======
root@kali:sudo apt-get install git
Step 2: Create a directory where you want to keep your projects or code
======
root@kali: mkdir /myrepo
Step 3: change directory to recently created directory
=======
root@kali: cd   /myrepo
Step 4:- Do some basic setups and configuration like your username and email_id
=======
root@kali: git config –global user.name “redashu”
root@kali: git config –global user.email “myemail@gmail.com”

Step 5: Now its time to create your new repository
=======
root@kali: git init   redrepo
Note: here redrepo is simply your repository name which can be any name as per your convenience
it will also create a new directory of your repository name

Step 6: Go to that directory which is recently created that is redrepo
======
root@kali: cd /myrepo/redrepo
step 7: now you can write any code in any language for example i am writing in python language
======
root@kali:cat   >a.py
Print “this is what i want!! ”
Note: I have written my code using cat command you can write in your favourite editor
Step 8: Now add your code to repo
======
root@kali: git add a.py
Step 9: Now commit your code for persistence
root@kali: git commit -m “this is my first code in python at GIt hub “
Step 10: Now go to https://github.com/ and create an account of same name and address which you have created on your local system
Step 11: Now test your local system with real account using below method which is login to your account using Linux command
root@kali: git remote add origin https://github.com/redashu/redrepo.git
Note: Here redashu will your username which you have created before and redrepo will be your reponame
Step 12: Now you can push your local machine code into Real git world
root@kali: git push origin master
Note if in any case you received any error like push failed then use
root@kali: git push -f origin master
Now enjoy your Global and downloaded or pull the codes from anywhere!!

Tuesday, 12 May 2015

How to install Pip in Redhat 6

Note: PiP is a python module and library installer.
To install this command in RedHat Linux 6 first of turn on EPEL repo
STEP 1: Download the pip in Linux
======
root@kali: $ wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Step 2: Install it by using rpm command
root@kali $: rpm -ivh epel-release-5-4.noarch.rpm
OR you use a single step on spite of step 2 and step 3
root@kali $: rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Step 3: Now install pip
root@kali: $ yum -y install python-pip
One example of installing python module using pip:
=================================================
root@kali $: pip install netifaces
Note: netifaces is a networking module in python use to check network and ip information
root@kali:python
Python 2.7.3 (default, Mar 13 2014, 11:03:55)
[GCC 4.7.2] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import netifaces as neti
>>> neti.ifaddresses(‘wlan0′)
{17: [{‘broadcast': ‘ff:ff:ff:ff:ff:ff’, ‘addr': ’70:f3:95:af:ac:81′}], 2: [{‘broadcast': ‘192.168.0.255’, ‘netmask': ‘255.255.255.0’, ‘addr': ‘192.168.0.102’}], 10: [{‘netmask': ‘ffff:ffff:ffff:ffff::’, ‘addr': ‘fe80::72f3:95ff:feaf:ac81%wlan0′}]}
>>> neti.ifaddresses(‘wlan0′)[2][0][‘addr’]
‘192.168.0.102’
>>>
SO to check ip address we can use netifaces in python

Article Source - http://www.rhce.co.in/how-to-install-pip-in-redhat-6/

Friday, 1 May 2015

Get Red Hat Training to Become a Highly Sought After Linux Professional

Red Hat training classes getting even hotter this season
In today's arena, Linux has the biggest user base, similar to how Microsoft dominates on our desktops. It goes without saying that over the years, Linux has increased its dominance aggressively. Presently, there is a growing demand for Linux skilled professionals, who really enjoy better services, like higher pay packs, career boosts and value in the organization etc.
Linux, undoubtedly has much advantage over some of the other leading operating systems, when it comes to IT security sphere, it becomes more prominent. Because of these sharp and well tuned security features, among the other prominent features, many Government and Military agencies have jumped on the Linux and Red Hat technologies quite early.
Red Hat training has been growing tremendously over the years; many organizations are providing on-site training classes for groups. There are other options where individuals may also join these training classes. There are many learning methodologies.
Certain Red Hat certification courses in demand:
RHCSA certification - The recent survey and feedback analysis performed on IT professionals worldwide, shows that Red Hat Certified System Administrator is considered as a new addition to the Red Hat's list of performance based certifications. It equips IT professionals with best training and performance based assessments in the industry. This certification indicates and displays precise and thorough analysis of the knowledge and skills required for the contemporary system administrators.
RHCSA certification is the foundation level system administration certification. Developed lately, for professionals who wish to earn RHCE on RHEL 6 now, must attain this certification and write separate exam for RHCE. The current certification will still remain the pre-requisite; however RHCE is now upgraded as a higher level system administration certification from Red Hat.
RHCE certification - Being a globally recognized credential, RHCE, is well respected and valued across industry. The IT professionals having cleared this credential displays good level of knowledge in using and troubleshooting Red Hat Enterprise. Some of the topics included are advanced, like package management, kernel configuration, system services, network configuration, mail services and virtualization.
Who should attend
* System administrators who currently manage Linux servers, at the enterprise level
* Skilled Linux system administrators who want or require demonstrating their competencies
* Professionals who wanted to build their careers further, and planned to get RHCE being the prerequisite to the higher level certifications.
Linux here continues their practice of evaluating knowledge and skills through hands-on, lab- based exam. So, like other certification of Red Hat, this is also a performance based test where, students have to install, configure, implement and troubleshoot network and security networks on live systems.

Article Source: http://EzineArticles.com/6490130