Abhishek Gupta

The Sun won’t set at NIT Durgapur !

Archive for the ‘sun’ Category

At Sun IEC , Bangalore

Posted by abhiitechie on May 20, 2009

Sun’s India Engineering Center (IEC) occupies most of the Divya Shree Chambers building off Langford Road in Bangalore. I kept on telling everybody that is near M.G Road but in reality it is nothing like that

3316002336_d2c5157ec5_o

3316002746_94295b70e0_o

3316001660_e79dc6a0e8_o

Lunch (always a major preoccupation with me) is provided at the 5th-floor canteen, which gets very crowded around 12:45,hence sometimes we need to book the conference room to have our lunch . There’s a buffet of both Vegetarian and its non counterpart for a reasonable sum of Rs 35 /- (Very very cheap as per Bangalore standards but just a bit expensive as per Kolkata standards.)

3315174305_65773309d6_o

 

3315174149_f8813881a2_o

For a change we can order fresh fruits , as I saw for some ladies who prefered them for the dieting routine.

IMG_3622

The Sun break rooms have a great selection of teas, including elaichi (cardamom), masala (what Americans call chai spice), and ginger. Plus a selection of other hot drinks – cocoa, instant coffee, and flavored mixes that I haven’t quite understood yet.

tea

There’s a machine dispensing hot water and hot milk to mix these with. There is also brewed coffee, chocolate powder,tomato soup mix and powdered,badam milk and many more .

12-05-09_0900

Now coming to the important part that is WORK . The very first day I got my Badge ready for which there was a photo session sort of arrangement at the ground floor near the data-center . For the first time in my life I felt very important .

For those of you who don’t know what a Badge is , I will like to tell that it is card like thing with my photo and other details and chip and a magnetic strip .It comes to use at the security gates where we need to show it a sensor and only then the door opens .Besides this is used when we need to use a Sun Ray machine ( Runs on Solaris 10 and has a SPARC architecture) , it is inserted into a slot inside the machine.

11-05-09_1802

Its is a really nice environment around to work with caring and loving seniours and and lots of respect for every employee . The working time is flexible ,by flexible I mean there is no fixed working schedule and timing or anything like that . When you are done with your work you can can go home and sleep and if its like you prefer to work nights then you can work in the office during the nights. 

So I am kind of enjoying the experience as a Sun Intern and another news I have just heard that Sun IEC Bangalore will be celebrating its 10th birthday by throwing a huge party at a hotel called OTERRA at Electronic city and we are invited . So my next post will be on IEC 10 years of Engineering Excellence.

11-05-09_1820

Posted in Personal, sun | Tagged: , , , , , , , , , , , , , , | 11 Comments »

JavaOne Coming to the OSUM Community

Posted by abhiitechie on May 18, 2009

As it is very difficult for everyone  to make the trip to San Francisco to attend JavaOne. That’s why special arrangements has been made to bring JavaOne to the Open Source University Meetup (OSUM) Community.  OSUM has scheduled a series of webinars which are previews of hands-on labs that will be conducted at JavaOne.

Check the OSUM events calendar for the complete schedule and RSVP today.

Posted in sun | Tagged: , , , , , , , , | Leave a Comment »

Roumen Strobls Leaving Sun Microsystems Inc.

Posted by abhiitechie on May 18, 2009

He is the man behind all those brilliant screen casts and blog posts and loads of tutorials for both Netbeans and OpenSolaris. Finally he has decided to leave Sun but he will still stick on to Java and work for JavaOne

Here is what he writes in his blog http://blogs.sun.com/roumen/entry/leaving_sun)

“I have decided to quit Sun Microsystems. I spent amazing 5 years at Sun and I am very grateful for all I’ve learned with the company. Working on both NetBeans and OpenSolaris adoption was real fun so I leave with very mixed feelings.

I am going back to Java developer business and will be going to Java One with my new employer, so you will find me in the Java One pavilion area if you want to say hi. I wish my Sun colleagues good luck with their new adventures!

P.S. Thanks for all the beans.

Wish you all the best Sir . Keep enlightening us with your screencasts.

Posted in sun | Tagged: , , , , , , , | Leave a Comment »

OpenSolaris 2008.11 Mini-Book

Posted by abhiitechie on May 17, 2009

The Getting Started with OpenSOlaris 2008.11 mini-books were recentlyOpenSolaris released. They are available in English, Brazilian Portuguese, Spanish, Italian, German, Traditional Chinese, Simplified Chinese, Korean and Japanese.

You might notice that there is a difference between the content of these books. They are composed by three different documents, and only the ones in English, Simplified Chinese and Japanese have them all. All other languages have only one document.

The books have a pretty basic approach, so they are aimed at people who doesn’t have much experience with the OS. This makes them perfect to be indicated during basic courses and presentations.

It seems that the 2008.11 version of these mini-books will be available only in the digital format.

Download:

OpenSOlaris 2008.11 mini-book (English)

Posted in sun | Tagged: , , , , , , , , , , , , , | 1 Comment »

Finally some success porting OpenVPN

Posted by abhiitechie on May 15, 2009

Today has been quite  eventfull and productive for me . I finally found some success with my project . I am trying to port a software called OpenVPN .OpenVPN is a full-featured open source SSL VPN solution that accommodates a wide range of configurations, including remote access, site-to-site VPNs, Wi-Fi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-control.

When I tried to build it from source I faced some difficulties getting the configure run. After a bit of research I got that working with the –disable lzo option . So this was the first dependency resolved for me . Then on doing make there was error compiling a file called tun.c . Researched again and found that for a 64 bit platform like open solaris I need to have the tun kernel module to compile the file tun.c and that to I had to make some changes inside the Makefile.in of the tun source adding the option -m64 for the 64 bit open solaris

Then I faced the error gcc not found while building the package tun 1.1 . As we kno gcc is not present by default in a Solaris system and is taken care of by Sun Studio compilers but the package in hand was hellbent on a gcc . So what I did is I again edited the file Makefile.in and replaced the CC entry with cc instead of gcc . Then it showed -Wall is an illegal option with cc so without thinking much I just removed it and crossed my fingers while making it and finally the tunnel driver was successfully installed and with the tunnel driver in the environment the dependencies of OpenVPN was also resolved .

Now it was the time for me making the Spec file from scratch for the OpenVPN source package. The preamble section was done easily without much trouble . Then I wrote the %prep section and kept it simple . Then there was the tough task of writing the %build section and I included all the dependency option of configure and with the help of someone in the mailing list I was able to write the %build section

%install was straight forward without any complicacies .

%file was the best . After lots of asking , mailing , head-scratching and research even that was done .

I kept my fingers crossed and executed pkgtool on the spec I wrote and guess what it passed .

Submitted my passed to the Source juicer site for the final test . It is still waiting to get validated may be by tommorow I will be able to see the results .

One important thing to be noted is that before submitting the spec to the juicer the license , vendor and copyright directives must be included as it is checked for also the .copyright file need to be uploaded along with the .spec file to the juicer . So the syntax check was done and it said OK .

Here is the spec I wrote :#OpenVPN (TM) — An Open Source VPN daemon

#Copyright (C) 2002-2008 OpenVPN Technologies, Inc.

%include Solaris.inc

Name:                openvpn
Summary:             OpenVPN is a full-featured open source SSL VPN solution.
Version:             2.0.9
License:             GPL license version 2
Group:               SSL VPN
Vendor:             OpenVPN
URL:                 http://openvpn.net/
Source:              http://openvpn.net/release/openvpn-2.0.9.tar.gz

SUNW_BaseDir:        %{_basedir}
SUNW_Copyright:      %{name}.copyright
BuildRoot:           %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc

%package root
Summary:                 %{summary} – / filesystem
SUNW_BaseDir:            /
%include default-depend.inc
Requires: tun

# OpenSolaris IPS Manifest Fields
Meta(info.porter):  Abhishek Gupta < A.Gupta@sun.com >

%description
OpenVPN is a full-featured open source SSL VPN solution that accommodates a wide range of configurations, including remote access, site-to-site VPNs, Wi-Fi security, and enterprise-scale remote access solutions with load balancing, failover, and fine-grained access-controls. Starting with the fundamental premise that complexity is the enemy of security, OpenVPN offers a cost-effective, lightweight alternative to other VPN technologies that is well-targeted for the SME and enterprise markets.

%prep
%setup -q -n openvpn-%version

%build

export CFLAGS=”%optflags”
export LDFLAGS=”%{_ldflags}”

./configure –prefix=%{_prefix} \
–disable-lzo  \
–disable-crypto \
–disable-ssl

make

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
/usr/man/man8/openvpn.8
/usr/sbin/openvpn

%changelog
* Friday 15 May , 2009 – A.Gupta@sun.com
– initial version

Posted in sun | Tagged: , , , , , , , , , , , , , , , , , | 2 Comments »

4 Days with IPS

Posted by abhiitechie on May 14, 2009

Its been four days for me with IPS and I am proud to say that now I am able to write a post dedicated to the very topic of Image Packaging System and porting packages to OpenSolaris . Engineers from the Solaris team have  been working to create IPS packages for OpenSolaris for most of the existing popular open source softwares which are still not existing as binaries to be directly installed to OpenSolaris and needs to be build from source and along with which lies the tedious task of resolving dependencies which some times becomes almost killing and dis-heartening.

Generating IPS package is similar to RPMs which is popular in GNU/Linux and it also uses a file called a Spec file . So IPS specs are similar to RPM specs with some minor differences.

Need for a Spec file:        

 Typical OSS package builds the code using ./configure ; make ;  make install .  Writing a pkginfo file with package metainfo, like name, version,description etc.  Writing a prototype file with list of files and attributes and not to forget the dependency file. All these requires lots of typing and is error prone to . Because of the tediousness people tend to avoid packaging binary tarballs and even  worse build from source.

So we follow the new approach of buillding and packaging in the same step using Spec files . A typical spec file consists of a simple text metainfo mixed with some perl syntax variables and small shell sripts.Metainfo may consist of name, version, description, etc. of the software .It also applies the code changes called patches to the original source while building. Build instructions are tiny shell scriptlets . Package contents are also specified called globs.

Whats inside a spec file ?

  •  Source code availability (URL)
  •  Local code changes (unified or context diffs)
  •  Build instructions
  •  Lists of files to package up (globs)                
  • Package scripts 
  • Metainfo
  • Build-time and package dependencies
  • Changelog          

What we can do as developers ?

 

● Write a spec file for your favourite app

● Build existing spec files
● Report bugs
● Update packages to the latest version availableBuild the code any way you want
> typical OSS package: ./configure; make;
make install
• Write a pkginfo file:
> package metainfo, like name, version,
description
• Write a prototype file:
> list of files and attributes
• Write a dependency file
  •  Write a spec file for our favourite app
  •  Build existing spec files
  •  Report bugs
  •  Update packages to the latest version available

 

More information in the following URLs

 

Posted in sun | Tagged: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a Comment »

Why Oracle Won’t Kill MySQL

Posted by abhiitechie on April 27, 2009

http://www.forbes.com/2009/04/20/mysql-marten-mickos-technology-enterprise-tech-mysql.html

Posted in sun | Leave a Comment »

Talk on Glassfish and J2EE

Posted by abhiitechie on April 25, 2009

For a long time I was due for a Technical Session in my college . The month of February was jam-packed with helluva lots of fests and events and that was the sole reason that I did’nt wanted to squeeze my demo in between all the different fests and events . Web being my expertise , so a Talk on Glassfish and J2EE was looking the most feasible option for me as I did not had much time to prepare for the talk. 

Further trouble came when I found that the  date later went on to clash with the Mukti treat . When I publicised about the talk on the mailing lists and groups people told me that I was a block (dumb) as I scheduled the talk on the same evening as the Mukti treat . But I went on through my initial plans as I felt that work always comes above and over anything  and everything in life.

It was class test times for most of the students so the gathering was as expected limited with just about 25 people sitting I went on to start the talk . The talk was attended by students of Computer Science and  IT  1st, 2nd and 3rd year. It’s great to see a diverse audience, shows you really are reaching out to everyone, and for me the success of this talk meant a lot of confidence to do future talks in this semester. I wanted everything to be perfect. From the past week, I had been observing some of our faculty lecturers carefully, trying to understand the art of holding the interest of your audience throughout the lecture, how some lectures turn out to be boring, while others keep you glued to the teacher. We all know we hate slide reading, we hate too much theory, bookish language.. but there’s a lot more to it. Body language, being friendly and casual, relating your audience and yourself with the topic, visualization of ideas, giving examples, case studies and most importantly, involving your audience, making it interactive and not just one-way traffic. 

My audience for the first time in the college properly understood what the term Web Server really means and also got the abtract concept of Web 2.0 and Semantic Web technology . 

I had already made up my mind that this particular session will witness a much better demonstration as compared to the last demo which was somewhat very uninteresting . So I demonstrated them about how to make a real world bloger application using the popular JRuby-on-Rails and that too using Netbeans IDE which which made the whole thing very very easy and fast .

I also showed them use of Servlets and JavaBeans with respect to Http Session States.It was not a long session unlike the last one as I had to attend the Mukti treat and also my audience had some tests the following week . So I wrapped up the Session in an hour . A pretty nice experience again . Now I really consider myself really grateful to GOD for making me do all these things . Now I really feel more confident presenting knowledge and information in front of public.

 

ogaaaaotcpe-ihtnjncjws05mwmlbmvx_6yqoulm-3uclegd-lxl2ytl8sqjicffests3z9rz7t_yi9rigbi-zzqkvqam1t1ujy_v8k7mswpz6zxam2uofn4n7oz

Posted in sun | Tagged: , , , , , , , , , , , , , , , , , | Leave a Comment »