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

Wednesday, 4 March 2015

7 Top Information Technology and Technician Exams For Certifications

If you happen to be a professional working in the Information Technology (IT) industry, you would be aware of the intensely competitive nature of the industry and the constant need it imposes on an IT professional to upgrade skill sets as technology evolves. You may have felt the need to conquer a new technology or upgrade your existing skill set or just to see where you stand among your peers. If this is the case, it is time to explore the advantages that acquiring an IT certification can provide.
Many vendors and third party bodies offer IT certification. Choosing the right IT certification would depend on what your current line of work is. Whether you plan to build on your existing skills or strike out a radically different course professionally, you have to make a decision on the type of certifications. You may opt for a certification provided by vendors like Microsoft, Oracle or Cisco or go in for certification by professional bodies like CompTIA.
Here are seven most sought-after IT certifications in no particular order:
- CompTIA Security+ - This is a certification for IT professionals with at least two-years of industry experience. It is not vendor-specific and is a test of the professional's knowledge of the fundamentals of security.
-Cisco CCIE/CCNA - This is a certification provided by Cisco Systems for networking professionals. The CCIE is a comprehensive certification for experts, and the CCNA is meant to improve the skills of those with some experience.
-CompTIA A+ - This is tailored for validating the expertise in hardware and can be a valuable certification for computer-related maintenance and support professionals.
-Microsoft MCITP - MCITP stands for Microsoft Certified IT Professional and is a prestigious one meant for professionals in database, enterprise and server administration. This new certification offered by Microsoft assesses an individual's capability in meeting the demands of common job roles in the IT industry.
-Microsoft MCSE/MCSA - MCSE (Microsoft Certified Systems Engineer) and MCSA (Microsoft Certified Systems Administrator) are two of the earliest certifications offered by Microsoft that still command respect in the industry. Both certifications demand a certain level of experience and involve a number of grueling examinations.
-Microsoft MCA - MCA (Microsoft Certified Architect) is a certification open to professionals who have a minimum of three years of experience on advanced IT architecture. This is a peer-evaluated certification and is awarded to very few of the aspirants. Obtaining this is considered an achievement in itself and is rated highly in the industry.
-RHCE/RHCA - With the proliferation of Linux based systems, there is a great demand for certified Linux professionals and RHCE (Red Hat Certified Engineer) and RHCA (Red Hat Certified Administrator) are two certifications awarded by Red Hat Inc.; one of the prominent distributors of Linux Operating Systems.

Tuesday, 24 February 2015

Evolution of Red Hat Courses and Exams with Red Hat Enterprise Linux 7

Red Hat Enterprise Linux 7 represents an exciting next step in the continued evolution of the product family and is perhaps the most comprehensive update in the 11 years I’ve been with the company. New tools such as systemd, firewalld, OpenLMI and others changes the paradigm for enterprise Linux administration by providing greater centralization and automation for the administrator. Other enhancements improve performance, security and scalability. Red Hat Training has substantially updated the RHCE level curriculum to integrate these improvements. The technical changes in the new release are such that even veteran, practicing Linux administrators should consider taking additional training.

In addition to incorporating new technical features from Red Hat Enterprise Linux 7, major releases provide an opportunity for Red Hat Training to make structural changes to improve our curriculum. Over the past two years we’ve surveyed our customers, partners and instructors and have been looking forward to the opportunity to make these changes. There are four enhancements I’d like to call out specifically.

1) Red Hat System Administration I (RH124) is the entry point to the Linux curriculum and is the first 5 days of the nine day curriculum leading to RHCSA certification. Based on customer feedback, we have substantially increased the command line administration approaches in the new course, diving right in on day one. In turn we will be retiring the Red Hat Command Line Administration (RH190) course.

2) Following feedback from our certified professionals community, the Red Hat System Administration III course (RH255) has been revised to include several chapters on shell scripting. The course continues to cover key network services such as Apache, DNS, iSCSI and also provides a tech preview of the new container features in Docker.

3) Perhaps the change I’m most excited about is the new Red Hat Certification Lab course (RH300) which replaces the flagship RHCE Rapid Track Course which first ran 15 years ago. The reality is that as Linux has become a true enterprise platform, the requirements to be a Red Hat Certified Engineer have grown commensurately. Red Hat’s courses are dense and its simply not possible to cover the thirteen days of content in Red Hat System Administration I, II and III in four days.

The new Red Hat Certification Lab course seeks to meet the very specific needs of students who have completed their training and desire practice before taking the RHCE exam. Students will spend 80-90% of their time “in labs”, complimented by a handful of lectures by an instructor on key new functionality like systemd, firewalld and the new boot process. Labs will be self-paced, with the instructor serving more as a teaching assistant as students require assistance. Students will have access to the full set of labs for both the RHCSA Rapid Track course (RH200) and the Red Hat System Administration III (RH255), providing comprehensive coverage for the competencies which are presented in the RHCSA and RHCE exams.

4) Over the past four years live virtual training (VT) and self-paced training have become primary delivery methods for our customers. To address those needs, the updated course materials and labs were redesigned to be completely inter-operable between different modalities, ensuring our customers get the same learning experience. Our self-paced training platform, Red Hat Online Learning (ROLE), is ready to deliver the System Administation I & II courses and the RHCSA Rapid Track globally via six Amazon EC2 data centers. The System Administration III course and the RHCE Certification Lab will be available in coming weeks as will translations of all five courses into eight other languages.

If anyone want to learn any Newest Technology like Bigdata hadoop, Cloud Computing, Openstack, Linux, Cisco and many more Technology  in Summer Internship than Visit - LinuxWorld Informatics Pvt. Ltd. Jaipur

Tuesday, 6 January 2015

Some Amazing tips for networking with nmcli

When team interface is up you can check that how many interface is connected :
[root@localhost ~]# teamdctl  team0 state
setup:
runner: activebackup
ports:
ens6
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
ens7
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
runner:
active port: ens6
[root@localhost ~]#
Note: Here two different ports are connected ens6 , ens7
To disconnect any ports :
=======================
[root@localhost ~]# nmcli  device  disconnect ens6
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# teamdctl  team0 state
setup:
runner: activebackup
ports:
ens7
link watches:
link summary: up
instance[link_watch_0]:
name: ethtool
link: up
runner:
active port: ens7

Article Source - http://www.rhce.co.in/amazing-tips-networking-nmcli/

Thursday, 11 December 2014

Tips For Restoring Permissions and ownership of Files in Redhat 6/7

Problem:
=======
Permissions and Ownership on critical system files (in /etc/) directory modified. This may cause the system to not boot, lots of errors and Kernel Panic.
cause:
=====
Someone accidentally typed chmod -R 777 /etc
Solution:
=========
The RPM package manager maintains a database for all files that it installs onto the system. This includes information such as the filename, installation path, owning package and the file system ownership and permissions (including SELinux file context information). In the event that ownership or permissions are inadvertently changed, for example, through accidental misuse of the chown or chmod commands, it is possible to revert these to their values as stored in the database.
1. To re-set ownership and permissions for all packages on the system:
root@ubuntu12:~# rpm –setperms -a
root@ubuntu12:~# rpm –setugids -a
2. To re-set ownership and permissions for a specific package on the system
root@ubuntu12:~# rpm –setperms <package name>
root@ubuntu12:~# rpm –setugids <package name>
……………….OR …………..
1) To reset uids and gids on files and directories :
root@ubuntu~:# for u in $(rpm -qa); do rpm –setugids $u; done
2) To permissions on files and directories
root@ubuntu12:~# for p in $(rpm -qa); do rpm –setperms $p; done

Article Source - http://www.rhce.co.in/tips-for-restoring-permissions-and-ownership-of-files-in-redhat-67/