Welcome Vivek's Weblog

Tuesday May 20, 2008

 

Zone Creation in Solaris 10 is very fast, simple and easy. Following is an example on creating a zone (Virtual OS) on your Solaris 10. This example shows the creation of 'testzone':



# zonecfg -z testzone

testzone: No such zone configured

Use 'create' to begin configuring a new zone.

zonecfg:testzone> create

zonecfg:testzone> set autoboot=true

zonecfg:testzone> set zonepath=/test/zones/testzone
zonecfg:testzone> add inherit-pkg-dir

zonecfg:testzone:inherit-pkg-dir> set dir=/opt

zonecfg:testzone:inherit-pkg-dir> end

zonecfg:testzone> info

zonename: testzone

zonepath: /test/zones/testzone

brand: native

autoboot: true

bootargs:

pool:

limitpriv:

scheduling-class:

ip-type: shared

inherit-pkg-dir:

        dir: /lib

inherit-pkg-dir:

        dir: /platform

inherit-pkg-dir:

        dir: /sbin

inherit-pkg-dir:

        dir: /usr

inherit-pkg-dir:

        dir: /opt

zonecfg:testzone> add net

zonecfg:testzone:net> set address=10.1.1.1

zonecfg:testzone:net> set physical=bge0

zonecfg:testzone:net> end

zonecfg:testzone> verify

zonecfg:testzone> commit

zonecfg:testzone> exit


 

We have added "/opt" directory as well, so that it will not be replicated for zones. This will make zone installation faster.

Now, List the zones:



# zoneadm list -cv

  ID NAME             STATUS         PATH                         

   0 global           running        /                            

   - testzone           configured     /test/zones/testzone

 

The newly created zone is now listed, and is in configured state. The configuration information is stored in an XML file within /etc/zones. The zone can’t be used, until it is “installed.”

Here is the step to install my testzone:



bash-3.00#  zoneadm -z testzone install

Preparing to install zone <testzone>.

Creating list of files to copy from the global zone.

Copying <2383> files to the zone.

Initializing zone product registry.

Determining zone package initialization order.

Preparing to initialize <1032> packages on the zone.

Initialized <1032> packages on zone.

Zone <testzone> is initialized.

Installation of <1> packages was skipped.

The file </test/zones/testzone/root/var/sadm/system/logs/install_log> contains a log of the zone installation.

 

It took less than 5 mins to install the testzone on my system. List the zones now:

 

bash-3.00# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   - testzone         installed  /test/zones/testzone           native   shared

 

You can see that zone status is installed. After installing zone, you have to boot it for the first time setup, and also answer boot-time questions. For this, log into the zone console from another terminal:

 

 zlogin -C testzone

 

This will let you into the zone console (no password req)

Now from the main terminal, boot the zone:

 

zoneadm -z testzone boot

 

On the console, the installation will ask set-up related questions. Answer them appropriately.

Check the Zone status:

 

bash-3.00# zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   2 testzone         running    /test/zones/testzone           native   shared

 

The Zone is now started running, and is ready to use.

 

Thursday Apr 05, 2007

NetBeans 6.0 Milestone 8 Available with New Features:
http://www.netbeans.info/downloads/dev.php

 

You can find NetBeans 6.0 Milestones Calendar here:
http://wiki.netbeans.org/wiki/view/NB6Milestones

Following link contains information about planning and design of Java EE features in NetBeans 6.0.
http://wiki.netbeans.org/wiki/view/JavaEEPlanning#section-JavaEEPlanning-NetBeans6.0 

Monday Feb 26, 2007

Yes, Its possible to get schema based code completion for your xml files in netbeans 5.5.1 editor.

Soon I will be writing "HOW"... 

Saturday Feb 03, 2007


Do you administer a group of Solaris 10 servers?  Would you like some free stuff from Sun Microsystems?  Read on through following link...  

http://blogs.sun.com/stevewilson/entry/free_swag_for_solaris_administrators 

Friday Jan 12, 2007


Last year was the 50^th anniversary of the hard drive. If the auto
industry had kept the same pace as disk drives, a car today would cost
less than $25, hold 160,000 people, weigh half a pound and travel up to
940 mph.

Great Revolution: Hard-driving Valley Began 50 Years Ago," By Dan Fost
URL:

http://www.sfgate.com/cgi-bin/article.cgi?f=/c/a/2006/09/11/BUGH3L23T01.DTL

Monday Dec 18, 2006


The Wall Street Journal, Michael Totty; September 11, 2006

http://online.wsj.com/public/article/SB115755300770755096-R2Ct41cQ4ZIPMwk4_xh0xU_HnQI_20061011.html?mod=tff_main_tff_top

Sun’s DTrace software is named the Gold winner in The Wall Street Journal's 2006 Technology Innovation Awards. According to the piece, “Bryan Cantrill and a team of engineers at Sun have devised a way to diagnose misbehaving software quickly and while it's still doing its work. While traditional trouble-shooting programs can take several days of testing to locate a problem, the new technology, called DTrace, is able to track down problems quickly and relatively easily, even if the cause is buried deep in a complex computer system … Mr. Cantrill came up with the general idea for DTrace in 1996, while he was a computer-science student at Brown University, but didn't get to start work on it until late 2001. It took nearly three years for him and his team -- Michael Shapiro, a Sun distinguished engineer, and Adam Leventhal, a staff engineer -- to make it work; a final version shipped early last year as part of Sun's Solaris 10 OS.”

Friday Dec 08, 2006

Do you know the patent office granted a patent on the peanut butter and
jelly sandwich? (Recently voided on appeal)

http://www.msnbc.msn.com/id/7432980/

Or a patent on moving a playground swing by pulling sideways on the
chains? This one was granted to a five year old kid whose patent
attorney father was using it as an illustration of what daddy did for a
living, and never expected it would be granted.

http://www.freepatentsonline.com/4296923.html

Here's an article on bad patents

http://www.spectrum.ieee.org/careers/careerstemplate.jsp?ArticleId=i080502

Here's the best reform proposal I've seen

http://www.spectrum.ieee.org/careers/careerstemplate.jsp?ArticleId=i120204

 

Thursday Nov 30, 2006

(This essay is derived from a talk at Oscon.)

Lately companies have been paying more attention to open source.
Ten years ago there seemed a real danger Microsoft would extend its
monopoly to servers. It seems safe to say now that open source has
prevented that. A recent survey found 52% of companies are replacing
Windows servers with Linux servers.

More significant, I think, is which 52% they are. At this point,
anyone proposing to run Windows on servers should be prepared to
explain what they know about servers that Google, Yahoo, and Amazon
don't.

But the biggest thing business has to learn from open source is not
about Linux or Firefox, but about the forces that produced them.
Ultimately these will affect a lot more than what software you use.

We may be able to get a fix on these underlying forces by triangulating
from open source and blogging. As you've probably noticed, they
have a lot in common.

Like open source, blogging is something people do themselves, for
free, because they enjoy it. Like open source hackers, bloggers
compete with people working for money, and often win. The method
of ensuring quality is also the same: Darwinian. Companies ensure
quality through rules to prevent employees from screwing up. But
you don't need that when the audience can communicate with one
another. People just produce whatever they want; the good stuff
spreads, and the bad gets ignored. And in both cases, feedback
from the audience improves the best work.

Another thing blogging and open source have in common is the Web.
People have always been willing to do great work
for free, but before the Web it was harder to reach an audience
or collaborate on projects.

 

Monday Nov 13, 2006

Sun Releases Its Java Technology As Open-Source Software Project for Free on the Internet

The announcement represents one of the largest additions of computer
code to the open-source community -- and it marks a major shift for a
company that had once fiercely protected the source code used in 3.8
billion cell phones, supercomputers, medical devices and other gadgets.

Wednesday Nov 08, 2006

If you are a University looking to build up a strong industry relationship.
If you are a student who would like to learn the latest technologies and be ahead of the rest in the job market.
If you are a student who just loves technology, which is affecting the world today.

Go here and request Sun to come to your campus and teach you how to broden your tech horizon.

I am so happy to tell all you folks  about University initiative at Sun. Whats more, I am part of it.


powered by performancing firefox



powered by performancing firefox

Tuesday Oct 31, 2006

Sun has released the Java EE 5 SDK Update 1 with NetBeans 5.5 today. Here is the download link .

Saturday Sep 30, 2006

Why are Eclipse users moving to Netbeans?


Charles Ditzel has an interesting blog entry on this issue. One
of the reasons I find it interesting is because he uses content from
posters on Javalobby to support most of his arguments. I would be very
interested in hearing the comments of the people who wrote the posts
that he uses to support his arguments.


So what are some of his reasons why Eclipse users are going to
Netbeans? One is the speed issue which has been discussed here.
Netbeans has been getting faster since version 3.5, whereas Eclipse
seems to keep getting slower. Another reason is that Eclipse does not
support platforms other than Windows very well, primarily because of
SWT. Ditzel cites one post on Javalobby about how the GTK binding for
SWT is so slow, it is practically unusable.


The URL to the blog entry is here so that you can see if your posts are among the ones he used:


http://cld.blog-city.com/read/1126337.htm

Friday Sep 29, 2006

Creating NetBeans Modules (Plug-ins) to Extend the NetBeans IDE became so easy now.

Do you want to extend the NetBeans IDE functionality with new features?
Do you have a cool new technology and want to make it available to the
users of the NetBeans IDE?
Write a NetBeans plug-in module!

NetBeans approved collateral and graphical resources.



You can find more wallpapers here: Desktop Wallpapers



HTTrack Website Copier - Offline Browser


HTTrack website Copier is a mirroring application which can mirror any kind of websites and its too easy to use.

It allows you to download a World
Wide Web site from the Internet to a local directory, building recursively all directories, getting HTML,
images, and other files from the server to your computer. HTTrack arranges the original site's relative
link-structure. Simply open a page of the "mirrored" website in your browser, and you can browse the site
from link to link, as if you were viewing it online. HTTrack can also update an existing mirrored site,
and resume interrupted downloads. HTTrack is fully configurable, and has an integrated help system.



WinHTTrack is the Windows 9x/NT/2000/XP release of HTTrack, and WebHTTrack the Linux/Unix/BSD release. See the download page.