Learning Oracle Solaris 11 In Fast Truck

This article will show you following topics:

How To Install Oracle Solaris 11

Copying and Creating Oracle Solaris 11 Package Repositories

Exploring package repositories using IPS on Oracle Solaris 11

Setting up a Solaris 11 Local Package Repository

Adding and Updating Oracle Solaris 11 Software Packages

Setup Gnome Desktop Environment

Before you install,you must download following iso files from oracle websites:

i).Solaris 11 Installation iso file:sol-11-1111-text-x86.iso

ii).Oracle Solaris 11 11/11 Repository Image:

    sol-11-1111-repo-full-iso-a.zip

    sol-11-1111-repo-full-iso-b.zip

After Creating Oracle Solaris 11 Package Repositories then you can add or remove package.

Use following command-line instructions to create a full ISO image:

On Linux Or Unix:

image

On Windows:

image

Solaris 11 Installation:

1.Boot your machine from solaris 11 media:

image

2.Select the keyboard layout:

image

3.Select default system language:

image

4.Select “Install Oracle Solaris”:

image

5.Welcome page,enter “F2”to continue:

image

6.Discovery system present disks:

image

7.Create Partitions:

By default,solaris 11 use zfs filesystem,so select “Use the whole disk”.

image

8.Setup hostname Network:

image

image

9.Setup DNS Name Service:

image

image

image

image

10.Setup Time Zone:

image

11.Create a user account and Define root password:

If you don't create any nomal user,you won't login to the system.By default,system deny root user to login.In solaris 11,user's password must have 6 characters at least .

image

12.Installation Sumary:

image

Installing process:

image

image

After installation,enter “F8”to reboot your machine:

Grub interface:

image

System Console:

image

Copying and Creating Oracle Solaris 11 Package Repositories:

1.Create a destination to save package repositories:

image

2.Copy the Repository Files:

If you use the rsync command, be sure to specify /media/SOL11REPO_FULL/repo(with no trailing slash character) and not /media/SOL11REPO_FULL/repo/. if you want to copy the repo directory and not just the files and subdirectories in the repo directory.

image

Using the tar command as shown in the following example can be a much faster way to move the repository from the the lofi mounted file systemto a ZFS file system.

image

3.Build a Search Index:

image

Exploring package repositories using IPS on Oracle Solaris 11

Before you begin, you must download following Oracle Solaris 11 Support Certificate files from here.

image

Using pkg command to display Publisher Information:

image

1.Create a directory inside of /var/pkg to store the key and certificate:

image

image

image

2.Using following command to add the publisher:

image

3.To see the packages supplied by this publisher, try:

image

After that,using pkg command to display Publisher Information again:

image

Adding and Updating Solaris 11 Package:

By default,you can't use desktop session,so i'll install gnome package:

image

Shit,this process is too slow.

Setting up a Solaris 11 Local Package Repository

The /application/pkg/server is not enabled by default in a fresh Solaris 11 installation.You can use following command to display:

image

Change pkg/server properties“pkg/inst_root”value to your local copy of the repo folder and the port number to an unused port 9999:

image

Enable pkg/server:

image

To start using this repository, we will need to set the client up to point to this repository.

change default repository:

image

image

Now,you can use your local repository to install packages,it's very faster than you use oracle online repository:

image

Setup Gnome Desktop Environment

 

In a multiuser environment such as SunRay, a server provides the desktop environment to clients. The desktop environment provided to the clients can be optimized for better performance and usability. The optimizations for the desktop environment are available in the group/feature/multi-user-desktop image packaging system (IPS) package. You must install this IPS package to enable the optimizations for the desktop.

Install the group/feature/multi-user-desktop package:

image

After installation,you must reboot your machine,you'll see following view.But you can't use root user login directly.

image

image

That's all for this article!!!

For more information:

1.Oracle Solaris 11 Information Library

2.Setting up a Solaris 11 Express Local Package Repository

3.Creating a simple Solaris 11 IPS package

本文出自 “candon123” 博客,谢绝转载!

你可能感兴趣的:(oracle,style,package,article,following)