Monthly Archives: June 2012

Step by step installation of Solaris 10

Insert the Solaris DVD and select the “Solaris” from “Grub Menu” and press Enter:

Select the “1”  and press Enter:

Select Language:

Press Enter within 30 seconds:

Again press Enter:

Press 0 in order to select English as the system language:

Click “Next:

Select the “Networked” and click “Next“:

Decide here, that you want to use DHCP or manual ip address, I am going to use manual ip address:

Enter the hostname and click “Next“:

Enter the Ip address:

Enter “Netmask“:

Select “Yes” if you want to enable IPv6 but I will not use it:

Select “Default Route”:

Enter the default route information (Ip address):

I will select “No” for Kerberos Security, if you want to use it then select “Yes”:

Select your “Name Service” option, mine is “None“:

Select “NFSv4 Domain Name“:

Select “Time Zone“:

Select your country:

Confirm “Date & Time” and click “Next“:

Enter password for “root” user and click “Next“:

Select “Yes” and click “Next“:

Confirm the “Summary” by clicking on “Confirm“:

Click “Next” to proceed for the next installation tasks:

Accept the default setting by clicking “Next” then press “OK” to continue:

Specify Media:

It will show you the initialization screen:

Accept the “License“:

Select “Type of Install“:

Click “Install Now to begin the installation:

Installation will begin:

Installation will take sometime or a lot of time to finish, after reboot, it will ask for username and password:

Select your desired Desktop Environment:

After selection, it will present you with your desired desktop environment:

Now we will configure the internet access on our Solaris 10:

I am using googleDNS, you can use your local or other public dns:

Edit the “nsswitch.conf” file for name service configuration:

Edit this line like this:

Finally, Internet connectivity test:

Hope this will help you!

Please Remember me in your prayers!

Enjoy 🙂

OSPF routing between Cisco,Ubuntu,CentOS and Mikrotik Router!

Scenario:

  • Routers: 1 Ubuntu Linux with 3 nics, 1 Centos Linux with 3 nics, 1 Cisco 3640 Router with 3 FastEthernet interfaces and 1 Mikrotik Router with 2 interfaces.
  • Clients: 3 Windows Xp with 1 nic.
IP Details

All the Routers in this scenario have a default password of “zebra“.

Cisco Router:

  • fe0/0: 10.10.10.1/24
  • fe1/0:10.10.50.1 /24
  • fe2/0: Getting through DHCP

UbuntuRouter:

  • eth0: 10.10.10.2/24
  • eth1: 172.16.10.1/24
  • eth2: 10.10.100.1/24

CentOSRouter:

  • eth0: 172.16.10.2/24
  • eth1: 192.168.10.1/24
  • eth2: 10.10.150.1/24

Mikrotik Router:

  • ether1: 192.168.10.2/24
  • ether2: 10.10.200.1/24

Clients:

  • Ubuntu-Desktop: 10.10.50.50/24
  • WinXP-1: 10.10.100.50/24
  • WinXP-2: 10.10.150.50/24
  • WinXP-3: 10.10.200.50/24

Cisco Router Configuration:

UbuntuRouter Configuration:

Restart the Router!!!

CentOSRouter Configuration:

Restart the Router!!!

Mikrotik Router Configuration:

Neighbor verification from Routers:

Route verification from Routers:

Test from Clients:

Make a simple test from Ubuntu-Desktop.

Make a simple test from WinXP-1.

Make a simple test from WinXP-2.

Make a simple test from WinXP-3.

Configure NAT on Cisco Router:

This is just a bonus section, in which we will configure the NAT on Cisco router and also propagate the default route in OSPF. I connect my Cisco Router to DSL Modem and configure it so that it will take IP address through DHCP, as well as configure the inside and outside interface for NAT.

Lazy man access -list for NAT (This is not the perfect access list):

NAT Overload:

Originate the default route in OSPF:

Verify the last resort information on Cisco Router:

Check default route information on all routers 🙂

Hope this will help you!

Please Remember me in your prayers!

Enjoy 🙂

Time synchronization on CentOS 6.2 using NTP

To install the ntp, just enter this command at the terminal:

sudo yum install ntp

To make the ntpd start at boot time, use this commands:

sudo chkconfig ntpd on

After installation, edit the default ntp configuration:

sudo nano  /etc/ntp.conf

Commented out/remove the default CentOS servers,you can add your own time-servers here to synchronize with, http://www.pool.ntp.org/zone/europe or http://www.pool.ntp.org/zone/north-america lists:

After you are done with the configuration, just start the ntp service:

sudo service ntpd start

To check if the NTP service is synchronizing:

sudo ntpq -pn

To check the synchronization log:

sudo tail -f /var/log/messages

Geeky Comparison with Windows clock after synchronization:

Hope this will help you!

Please Remember me in your prayers!

Python 2.7 on CentOS 6.2 with Setuptools

First check the python version that is currently install on CentOS 6.2:

python

Before installing the python, please install these packages:

sudo yum install gccgcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 
zlib*.x86_64 wget make setuptool

Now download the Python 2.7 (In my case, I will download it in tmp directory):

cd /tmp/
wget http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2

Switch to the super user (root):

su 

Extract the downloaded Python 2.7 package:

tar -xvjf Python-2.7.tar.bz2

Move to the Python 2.7 directory and configure the package:

cd  Python-2.7
./configure

It’s time to actually build the binary from the source code:

make

Now it’s finally time to install the program:

make install

Edit the user .bash_profile file:

nano ~/.bash_profile

replace PATH=$PATH:$HOME/bin
with PATH=$PATH:$HOME/bin:/opt/python27/bin

Reload the .bash_profile:

source ~/.bash_profile
echo "/opt/python27/lib" > /etc/ld.so.conf.d/python27.conf
ldconfig

Check the Python version now 🙂

python

Now, we will install the setuptool and for this we need to fetch the setuptools from the website:

cd ..
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg

Run the setuptools using this command:

sh setuptools-0.6c11-py2.7.egg

Next, we will install the gevent:

yum install libevent.x86_64 libevent-devel.x86_64

easy_install-2.7greenlet


wget http://pypi.python.org/packages/source/g/gevent/gevent-0.13.0.tar.gz

tar -xvzf gevent-0.13.0.tar.gz

cd gevent-0.13.0

python2.7 setup.py install

Logout from root user and check the python version for user arbab:

exit
python

Hope this will help you!

Please Remember me in your prayers!

Access Control in SVN with authz_svn

In this post I will show you, how to control access in SVN using builtin moudle called authz_svn.It allows you to control the access in such a way that who can access the repository and what they can do on the repository (read or read-write), it even allows you to make groups and define access permission for groups. Above than that, you don’t need to change the underlay structure of your svn server.

Note: If you want to install the SVN Server then, please refer this post:

These are the same usernames that we created in previous tutorial, using this command:

sudo htpasswd -m /etc/apache2/dav_svn.passwd arbab

For this post, we will use these repositories :

cd /svn
ls -l

Read more of this post

%d bloggers like this: