May 28, 2012

Solaris 10 Static IP Network configuration guide

This is pretty simple task. Although some find it difficult because it is different from other Linux distributions.

To configure Solaris 10 network interface in Local files mode, you must first remove the file /etc/dhcp.interface (for ex. /etc/dhcp.e1000g0), then you have to configure six files.

/etc/nodename
/etc/hostname.interface
/etc/inet/hosts
/etc/inet/ipnodes
/etc/defaultdomain
/etc/defaultrouter

In /etc/nodename, you must specify your name of the server/host.
Ex.

#cat /etc/nodename
solarisbox1

The interface names in solaris include ce, hme, bge, e1000g etc. So, if you have an interface called e1000g0 there should be a file named /etc/hostname.e1000g0 In this file, you must specify network configuration information such as IP address, netmask etc.
Ex.

#cat /etc/hostname.e1000g0
10.91.10.5 netmask 255.255.255.0
#cat /etc/hostname.qfe0
192.168.0.88 netmask 255.255.255.0

The /etc/inet/hosts file serves as local file name resolver. It resolves hostnames, log hosts etc. You can specify any number of hosts associted with IP addresses in it. You must specify hostname of you system in it.
Ex.

#cat /etc/inet/hosts
#
# Internet host table
#
::1          localhost
127.0.0.1    localhost loghost solarisbox1
10.91.10.5   solarisbox1
192.168.0.88 solarisbox1
10.91.10.6   solarisbox2

For Solaris 10 11/06 and earlier releases, you must keep /etc/inet/ipnodes updated.
Ex.

# vi /etc/inet/ipnodes
10.0.0.14 myhost

The /etc/defaultdomain file specifies nothing other than FQDN (Fully Qualified Domain Name) of the System.
Ex.

#cat /etc/defaultdomain
solarisbox1.solarisstudy.com

The /etc/defaultrouter file specifies your default router (or gateway) details.
Ex.

#touch /etc/defaultrouter
#echo 10.91.10.1 >> /etc/defaultrouter

This will help you progress towards basic interface configuration in Solaris 10.
This article refers Oracle Documentation and is made in simple format to help newbies to configure network interface quickly.
For more information see:
http://docs.oracle.com/cd/E19253-01/816-4554/ipconfig-1/index.html
Solaris 10 System Administration Guide: IP Services

Labels:

May 27, 2012

Installing 64 bit drivers on Windows 7 for Nexus S

Download Android SDK.

Using SDK manager, download Google USB Drivers. Take help from www.android.com for "How to do that?".

Right Click Computer -> Manage -> Device Manager -> Right click your Nexus -> Update Driver -> "Browse my Computer for Driver Software" -> Browse path "C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver" also tick "Include sub folders"

Install drivers.

You're good to go.

JDK Not Found android SDK installer...

This might seem a basic issue, indeed it is.
But I did not find solution easily.

I got error while running Android SDK Installer on my Win7 x64 System claiming JDK was not found.

After trying many solutions like registry fixes and everything, I came across one working simple solution.

Add following to your PATH system variable.

C:\Program Files\Java\jdk1.7.0_04\bin

Use appropriate path for appropriate version.

That's it!

May 13, 2012

Enabling Remote root login Solaris 10.

It is neither recommended nor suggested to allow remote root logins for security reasons.
For Test servers, Non-production servers or other servers, you may want to allow remote root login via SSH.

Usually you get "Access denied" errors when accessing a Solaris server as root when logging on remotely.

You just have to edit two entries in two files.

First:
/etc/default/login

Comment the following line in /etc/default/login by putting a # sign before the line.

 CONSOLE=/dev/console  

This will enable remote root logins to the system.

Second:
/etc/ssh/sshd_config

Comment the following line in /etc/ssh/sshd_config by putting a # sign before the line.

 PermitRootLogin no  

Then add the following line just below the above line.

 PermitRootLogin yes  

This will enable remote SSH and SCP Logins to the system.

Labels: , , , , ,