SolarisVM: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
(out of date. use opensolaris)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
==Introduction==
==Introduction==
This HOWTO document provides the details for the installation and configuration of the Solaris VM which is based on VMware. This VM consists of [http://developers.sun.com/sxde/ SXDE 2](Solaris Express Developer Edition).


==Requirement==
This document is out of date. Please see [[MDC:Solaris Build Prerequisites]] for information about building Firefox using OpenSolaris.
 
* VMware installed on the system.
* 768M spare memory is recommended.
* 10G hard disk(Need more if you want to make your own builds)
 
==Where to get==
 
The Solaris images can be found here. They will be updated based on SXDE's release schedule(Every 3~4 months).
 
* [http://releases.mozilla.com/sun/solaris-developer-express-s001.tar.bz2 solaris-developer-express-s001]([http://releases.mozilla.com/sun/solaris-developer-express-s001.tar.bz2.cksum cksum])
 
* [http://releases.mozilla.com/sun/solaris-developer-express-s002.tar.bz2 solaris-developer-express-s002]([http://releases.mozilla.com/sun/solaris-developer-express-s002.tar.bz2.cksum cksum])
 
* [http://releases.mozilla.com/sun/solaris-developer-express-s003.tar.bz2 solaris-developer-express-s003]([http://releases.mozilla.com/sun/solaris-developer-express-s003.tar.bz2.cksum cksum])
 
* [http://releases.mozilla.com/sun/solaris-developer-express-s004.tar.bz2 solaris-developer-express-s004]([http://releases.mozilla.com/sun/solaris-developer-express-s004.tar.bz2.cksum cksum])
 
Any problem about the images, please contact [mailto:alfred.peng@sun.com alfred].
 
==Installation and Usage Instructions==
 
: 1. Unzip/Uncompress the downloaded archives into a known directory (e.g. C:\VirtualMachines or /usr/vmware/virtualmachines/).
 
: 2. From the VMware menu, select to open an existing Virtual Machine. Choose File-->Open and navigate to the directory where the archive was unzipped/uncompressed (C:\VirtualMachines or /usr/vmware/virtualmachines/). Go to the appropriate virtual machine's directory and you should see a vmx file. Select this file to open the virtual machine.
 
: 3. Select "Create" in the dialog box that asks for creation of a new UUID.
 
: 4. Start the virtual machine by selecting the "Start the Virtual machine" command or by selecting the green "Power On" button.
 
: 5. The virtual machine should boot up in about 30 - 120 seconds. Please wait until the blue Solaris login screen appears before logging in as root. Password is "vmware".
 
: 6. The virtual machine uses NAT (Network Address Translation) for networking. This means it shares the network with the host OS.
 
: 7. Start using the virtual machine.
 
==Solaris Express Developer Edition==
 
The Solaris VM is configured with DHCP. To reconfigure the Solaris VM, including modifying the host name, and assigning a new domain name and IP address, you need to run the sys-unconfig command as root. After you run the sys-unconfig command, answer the prompts to assign a new host name, new IP address, set new date and time, and other configuration parameters specific to your proper environment. The system will reboot once you input all the changes. For more information, see the [http://docs.sun.com/app/docs/doc/816-5166/6mbb1kqj3?q=sys-unconfig&a=view sys-unconfig(1M)] man page.
 
The SXDE consists of the following components:
 
:1. Early release version of Solaris Express Community Edition build 64a.
:2. [http://developers.sun.com/sunstudio/documentation/ss12/index.html Sun Studio 12]: compilers, tools, and IDE for C, C++, and Fortran.
 
:*The recommended C compiler is cc [/opt/SUNWspro/bin/cc]
:*The recommended C++ compiler is cc [/opt/SUNWspro/bin/CC]
:*Also you can find gcc at [/usr/sfw/bin/gcc]
 
:3. [http://www.netbeans.org/index.html NetBeans IDE 5.5]: open source IDE for Java software developers.
:4. [http://www.netbeans.org/products/enterprise/ NetBeans IDE Enterprise Pack 5.5]: for developing service-oriented architecture (SOA) applications using XML, BPEL, and Java web services.
:5. [http://java.sun.com/javase/ Java Platform Standard Edition 6]: for developing and deploying Java applications.
:6. [http://www.sun.com/software/star/staroffice/index.jsp StarOffice 8]: OpenOffice-based productivity suite provides word processor, spreadsheet, presentation, and drawing capabilities.
:7. [http://www.opensolaris.org/os/community/dtrace/dtracetoolkit/ DtraceToolkit 0.96]: The DTraceToolkit is a collection of useful documented scripts. It's installed at /opt/DTT by default.
:8. Firefox 3.0 alpha5pre x86 binary build with DTrace. It's put at /opt/firefox and there is a symbol link on "root" user's desktop
:9. [http://www.opensolaris.org/os/project/jds/contributing/building/#jds-cbe JDS CBE 1.6]: The JDS Common Build Environment (CBE) is a set of build tools required to build GNOME, Firefox/Thunderbird and Evolution on Solaris.
 
It includes the following tools:
- GNU m4 1.4.5
- GNU automake 1.9.6 and 1.10
- GNU autoconf 2.61
- GNU libtool 1.5.22
- GNU gettext 0.14.1
- GNU fileutils 4.1
- GNU make 3.80
- GNU flex 2.5.33
- cvs 1.12.5
- GNU bison 2.3
- GNU diffutils 2.8.1
- pkgbuild 1.2.0
- subversion 1.3.2
- Apache ant 1.6.5
Optional package:
  - rsync 2.6.8
To set and change some environment variable, you may want to put the following in your profile, adjusting
to your shell of preference:
  JDS_CBE_ENV_QUIET=1 . /opt/jdsbld/bin/env.sh
It's already added to "root" user's profile [/.profile].
Once you add a user you may have to add this to $HOME/.profile or add it to /etc/profile for every users.
 
For more information about these components, including user and administration guides, please search the [http://docs.sun.com Sun Documentation repository].
 
==Links for documents==
* [http://www.opensolaris.org/os/project/mozilla-dtrace/JavaScript/ Javascript Probes from Brendan Gregg]
* [http://blogs.sun.com/roller/resources/ahl/dtrace_course.2005.8.18.pdf Adam Leventhal's DTrace boot camp slides]
* [http://docs.sun.com/app/docs/doc/817-6223 Solaris DTrace guide]
* [http://docs.sun.com/app/docs/doc/817-6223/6mlkidlms?a=view DTrace and Statically Defined Probes]
* [http://people.freedesktop.org/~alanc/dtrace/ XServer Probes from Alan Coopersmith]
* [http://developers.sun.com/solaris/articles/dtrace_cc.html Useful article on C++ and dtrace]
 
==Links for communities==
* [http://www.opensolaris.org/os/community/dtrace DTrace community]
* [http://www.opensolaris.org/os/project/mozilla-dtrace Mozilla DTrace community]

Latest revision as of 17:22, 24 November 2008

Introduction

This document is out of date. Please see MDC:Solaris Build Prerequisites for information about building Firefox using OpenSolaris.