Part 1 Preparation
1.1 download an image
ISO image download: http://www.opensolaris.org/ OS /project/indiana/resources/getit/
1.2 burn and install a cd
In the Solaris System, the ISO command is:
# Cdrw-I/path/to/ISO/image/opensolaris. ISO
1.3 System Configuration Requirements
Platform: x86
Memory: Minimum 512 MB
Hard Disk: 10 Gb or above, minimum 3.0 GB
Supports Windows and Linux multi-system boot. Jumpstart installation is not supported, live update is not supported, and ZFS is only supported.
Part 2 opensolaris Installation
2.1 run and install the CD directlyOpensolaris
1. Modify the BIOS to boot the disc, insert the opensolaris disc, and restart the computer.
2. Select the first item "opensolaris 2008.05" from the gnu grub menu to go To the graphical installation interface.
3. Select the keyboard layout, "to select the keyboard layout, enter a number [Default 41]:", and press Enter.
4. select the desktop language, "to select the desktop language, enter a number [defuault 3]:", enter "1", select Simplified Chinese "Chinese-simplified", and press enter to enter the desktop.
Note: The default user name is Jack and the password is Jack. The default root password is opensolaris.
5. Read the Protocol "opensolaris license" and click "close. To detect hardware compatibility, click the device driver utility icon. To view the release notes, click the "opensolaris 2008.05 getting started" icon on the desktop.
6. Click the "Install opensolaris" icon on the desktop to go to the installation page.
7. Welcome. Click "Next" in the lower right corner.
8. Select the target partition and click "Next ".
Note: recommended size: 7 GB, minimum 3 GB.
9. Select the time zone, date, and time. Select "Asia" for the region, "China" for the location and time zone, and click "Next.
10. Select "Chinese (simplified)" as the language environment and "China" as the language environment.
11. Enter the superuser password, the username and password of the self-created account, and the computer name. Next step.
12. Check the installation configuration information, and click "Install" to start installation. After the installation is complete, click "reboot", restart the computer, and take out the installation disc.
2.2 install opensolaris in virtualbox
1. Prepare and install virtualbox
- Download virtualbox 1.5.6
Http://www.virtualbox.org/wiki/Downloads
2. Run virtualbox. Click "new" to view the welcome information and click "Next ".
3. Enter a "name", for example, "opensolaris ". Select "Solaris" from the "system type" drop-down menu and click "Next ".
4. allocate memory. We recommend that you allocate more than 768 MB. Click "Next ".
5. Click "new" to view the welcome information and click "Next ". Select "Dynamic Scaling image" for "image type ". Select "Save location" and define the size. We recommend that you set the size to 8.0 GB or above and click "Next ".
6. view the summary of the Virtual Computer, confirm the information, and click "finish ".
7. Run the virtual computer to install opensolaris.
2.3 install opensolaris on Vmware
1. Prepare and install Vmware
- Download vmware workstation 6.5 beta and obtain the trial serial number
Http://communities.vmware.com/community/beta/workstation6.5
2. Run VMware. Create a VMware VM: Select File> New> virtual machine ".
3. In new Virtual Machine wizard, select the typical configuration "typical" and click "Next ".
4. Select the source of the installation disc and click "Next ".
5. Select a guest operating system for the operating system type and select "Sun Solaris". Open the "version" drop-down menu, select "Solaris 10", and click "Next ".
6. Define the Virtual Machine name and file storage location, and click "Next ".
7. Define the disk space definition "specify disk capacity". The default value is 8.0 GB. Click "Next", click "finish", and click "close" to close the wizard.
8. insert the opensolaris installation CD, select the created virtual machine from the list on the left of the VMware interface, and click "start this virtual machine" to start the Virtual Machine. Ignore all prompts to start the opensolaris installation environment, for details, refer to"2.1 run and install the CD directlyOpensolaris ". The size of the virtual disk file after installation is about 2.5 GB.
Part 3 opensolaris uses 3.1 to access opensolaris
After the installation is successful, start the system and wait for a moment to enter the opensolaris login interface. Please log on with the username and password of your account.
Note: by default, you cannot use root to log on directly. To use the root permission, right-click the login and select "open terminal" in the blank area of the desktop to execute the command:
# Su
Enter the root password
3.2 use the image Packaging System to install the software package
IPS graphical interface
In the upper left corner of the desktop, choose system> System Management> Package Manager ".
Example: Install the disc burning component
Open Package Manager in the menu, enter cdrw in the search text box, and press Enter. Select "sunwcdrw" in the list below and click "Install/update" in the toolbar. The download prompt is displayed. Click "Next" to continue. The Light Disk Burning component is automatically installed in your operating system.
After installation, you can open the terminal and run the following command to burn the disc image:
$ Cdrw-I ***. ISO
IPS command line
When su switches to the root permission, the IPS command is as follows:
# PKG refresh
# PKG install [package name]
Example: Install the disc burning component
Run the following command:
# PKG refresh
# PKG install sunwcdrw
After installation, you can open the terminal and run the following command to burn the disc image:
$ Cdrw-I ***. ISO
Refer:
- Package list: http://pkg.opensolaris.org/
- Opensolaris software package management documentation: http://opensolaris.org/ OS /project/pkg/documents/
- IPS Getting Started: http://opensolaris.org/ OS /project/pkg/documents/pkgtasks/
3.3 install OpenOffice 2.4
IPS Mode
1. Choose system> System Management> Package Manager in the upper left corner ". In the Package Manager window, click "reload" in the toolbar to refresh the list.
2. Enter OpenOffice in the search text box below the toolbar and press Enter. Select the OpenOffice package in the list below and click "Install/update" in the toolbar.
3. the install/update confirmation Prompt window appears. view the package dependency and download information, click "Next" to download the file and install it automatically.
Traditional Mode
1. Download the OpenOffice for Solaris x86/x64 installation package: OOo_2.4.0_Solarisx86_install_wJRE_en-US.tar.gz
- Download Page: http://download.openoffice.org/other.html
- OpenOffice 2.4.0 for Solaris x86: http://openoffice.bouncer.osuosl.org /? Product = OpenOffice.org & OS = solarissparcwjre & lang = en-US & version = 2.4.0
2. decompress the installation package to the/tmp/directory. Double-click the compressed package file, click "decompress", and select the path.
3. Enter the decompressed directory, open "terminal", run # Switch Su to the root permission, and run:
# Java-jar javasetup. Jar
After the installation is complete, log out and log on again. In the "application" menu, you can find "Open Office ".
4. The OpenOffice directory is located in/opt/OpenOffice. org2.4/program. For example, start OpenOffice.org writer.
$ CD/opt/OpenOffice. org2.4/Program
$./Swriter
3.4 install JDK 1.6.0u6 and netbeans ide 6.1
IPS Mode
1. Choose system> System Management> Package Manager in the upper left corner ". In the Package Manager window, click "reload" in the toolbar to refresh the list.
2. Enter netbeans in the search text box below the toolbar and press Enter. Select the desired version of netbeans in the list below, and click "Install/update" in the toolbar.
3. the install/update confirmation Prompt window appears. view the package dependency and download information, click "Next" to download the file and install it automatically.
Traditional Mode
1. Download JDK 1.6.0u6 for Solaris x86/x64 installation package: jdk-6u6-solaris-i586.sh and netbeans for Solaris x86/x64 installation package: netbeans-6.1-solaris-x86.sh
- JDK download page: http://java.sun.com/javase/downloads? Intcmp = 1, 1281
- Netbeans ide 6.1 download page: http://dlc.sun.com.edgesuite.net/netbeans/6.1/final/
- Netbeans ide 6.0.1 Chinese Version domestic download: http://zh-cn.netbeans.org/download/6.0/ml/index.htm
2. Install JDK: Open "terminal", # Switch Su to the root permission, copy the installation file to the/usr/JDK/directory, and run the installation file:
# Cp jdk-6u6-solaris-i586.sh/usr/JDK/
#./Jdk-6u6-solaris-i586.sh
3. Install netbeans ide 6.1: Open "terminal", # Switch Su to root and run the Installation File
#./Netbeans-6.1-solaris-x86.sh
Follow the wizard prompts to install netbeans ide 6.1.
Note: select the JDK Directory:/usr/JDK/jdk1.6.0 _ 06/
4. log out of the current user and log on again to start netbeans ide 6.1 from the "application" menu.
3.5 install coolstack (Apache, MySQL, PHP)
1. Download The coolstack 1.2 environment installation package: cskruntime_1.2_x86.pkg.bz2 and the amp installation package: cskamp_1.2_x86.pkg.bz2
- Project page: http://cooltools.sunsource.net/coolstack/
- Download: https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_SMI-Site/en_US/-/USD/ViewProductDetail-Start? Productref = cooltst-1.2-SP-G-F @ CDS-CDS_SMI
2. After the two installation packages are decompressed, # Switch Su to the root permission and run the following command:
# Pkgadd-D cskruntime_1.2_x86.pkg
# Pkgadd-D cskamp_1.2_x86.pkg
If a prompt is displayed, select y or all or press Enter.
3. Configure MySQL
Modify Data Directory Permissions
# Chown-r MYSQL: MySQL/opt/coolstack/mysql_32bit/Data
Initialize a data table
#/Opt/coolstack/mysql_32bit/bin/mysql_install_db
Start MySQL
#/Opt/coolstack/mysql_32bit/bin/mysqld_safe &
Log on to the mysql client
#/Opt/coolstack/mysql_32bit/bin/MySQL-u root-P
The Default Root Password is null.
Change Root Password
#/Opt/coolstack/mysql_32bit/bin/mysqladmin-u Root Password 'new-password'
Disable MySQL
#/Opt/coolstack/mysql_32bit/bin/mysqladmin shut-P
Enter the new Root Password
After the MySQL configuration is successful, run the following command to start and close the MySQL service.
Start the MySQL service:
# Svcadm enable csk-mysql32
Close the MySQL service:
# Svcadm disable csk-mysql32
View the MySQL service status:
# SVCs-A | grep csk-mysql32
4. Start Apache
# Svcadm enable CSK-HTTP
Open your browser and enter http: // localhost in the address bar to test whether the browser is successful.
Modify Apache htdocs webpage publishing folder Permissions
# Cd/opt/coolstack/apache2
# Chmod-r 777 htdocs
5. Configure PHP Parameters
The PHP parameter file is located at/opt/coolstack/PhP5/lib/PHP. ini.
3.6 deploy WordPress
1. Download WordPress source package: WordPress.v2.5.1.incl.Simp.Chinese.pack.v1-wpcng.zip, version: 2.5.1 Simplified Chinese version, extract.
- Download Page: http://wordpress.org/download/
- Download: http://code.google.com/p/wpcn/downloads/list
2. Create a WordPress database. # Switch to the root user and run the following command:
#/Opt/coolstack/mysql_32bit/bin/MySQL-u root-P
Enter the MySQL Root Password
Mysql> Create Database WordPress;
3. Copy the decompressed WordPress source code folder to the/opt/coolstack/apache2/htdocs/directory, open the browser, and access: http: // localhost/WordPress
4. Follow the prompts on the page to enter the database configuration information and install Wordpress until the installation is successful.
Background Management: http: // localhost/WordPress/WP-admin/
Note: Please save the initialized admin account password.
3.7 configure the FTP service
1. Open the terminal, run # Su to switch to the root permission, and start the FTP service command:
# Svcadm enable/Network/ftp
2. view the FTP service status:
# SVCs-l Network/ftp
Note: by default, the root user cannot log on.
3. Configure the FTP user and edit the file/etc/ftpd/ftpusers.
3.8 configure the SSH service
1. SSH is enabled by default. Check the SSH service status:
# SVCs-l Network/ssh
2. the SSH configuration file is located in/etc/ssh/sshd_config.
3. To use the root permission, log on to the SSH client with a common user account, and run the su command to switch to the root permission.
4. Restart the SSH service command:
# Svcadm restart Network/ssh
3.9 ADSL Internet access
1. Save the network interface Name
# Echo pcn0>/etc/PPP/pppoe. If
2. Start the pppd Service
#/Etc/init. d/pppd start
3. Create the dialing configuration file/etc/PPP/peers/myisp
Sppptun
Plugin pppoe. So
Connect "/usr/lib/inet/pppoec pcn0" # pcn0 is the NIC connected to the modem
Persist # automatic Replay
User "ADSL user name"
Noauth
Noipdefault
Noccp
Novj
Noaccomp
Nopcomp
Defaultroute
Note: Non-root users need to copy the above content to the new/etc/PPP/options file for ADSL dialing.
4. Configure the ADSL user password file, and modify/etc/PPP/chap-secrets and/etc/PPP/PAP-secrets to append them to the last line respectively:
Username * Password
Note: fields in the uplink are separated by tab keys, rather than spaces.
5. Modify DNS Configuration
# Echo "nameserver 202.106.46.151">/etc/resolv. conf
Note: 202.106.46.151 is the DNS of Beijing Netcom ADSL.
Modify/etc/nsswitch. conf and add DNS after the hosts line
Hosts: Files DNS
6. ADSL dialing
#/Usr/bin/pppd call myisp
3.10 modify DNS settings
Sometimes you can ping an IP address and browse the webpage through the IP address, but you cannot access the webpage through the domain name. This is probably because the DNS settings are incorrect.
1. Open the terminal, enter the root permission, and run:
# Su
Enter the root password
2. Run:
# Gedit/etc/resolv. conf
Modify the DNS server address after the nameserver:
For example, nameserver 202.106.46.151
3. Restart your computer. Or run the following command to restart the NIC device (pcn0 is the name of the current Nic device, which can be queried through # ifconfig-):
# Ifconfig pcn0 down
# Ifconfig pcn0 up
# Ifconfig pcn0 DHCP
3.11 start 3D Desktop
Opensolaris supports 3D desktops by default. The actual effect depends on your computer's graphics card capabilities.
Open 3D desktop: Right-click the blank area on the desktop, select "desktop background" from the menu, select the "Visual Effects" tab, and select "normal ".
Set 3D desktop: click "system" in the upper left corner of the desktop and select "preference"-"compizconfig setting manager ".