---
title: "我安装Solaris的全过程。"
author: "RobertLeeJesus"
date: "2008-07-27T17:12:13Z"
tags: []
slug: "solaris"
draft: false
lastmod: "2008-07-27T17:12:13Z"
id: 220154
url: "https://hidefromall.iteye.com/blog/220154"
---

毕业四年，一直在windows下做开发，来到了这家公司工作，总被一些使用命令行的家伙笑话，他们号称是unix高手，所以，决定学习一下unix, 查了一下，公司用的unix是Sun Solaris. 决定在自己家的机器上安装一个Sun Solaris. 下面详细的叙述一下安装的步骤，

 

1\. 去网站下载安装文件，[http://www.sun.com/software/solaris/get.jsp，这里有CD版和DVD版，我的光驱是CD-ROM, 所以，我下载了CD版的，CD版共有5个ISO。](http://www.sun.com/software/solaris/get.jsp)

 

2\. 把这5个ISO分别刻录到5个CD盘上。安装盘准备好了，开始安装系统。

 

3\. 我的机器上原来安装有Windows XP，所以，我要安装双系统在我的机器上。在Solaris的安装过程，只能识别windows下的C盘（Primary Disk），其他所有逻辑盘和未用空间都被认为是一块可以安装Solaris的空闲区，所以，我只好把所有除了C盘以外所有的空间都备份。

 

3\. 开始安装Solaris. 重启机器，进入bios, 设置从光驱启动，重启。

 

4.进入安装程序，选择安装的界面语言和决定其他一些选项，然后，开始选择图形界面还是文本界面，建议选择图形界面，然后继续。

 

5.选择了图形界面就容易得多了，图形界面和安装Windows基本差不多。但是应该注意有一些选项。

 

    1). 在输入网络用户名的时候，一定不要有特殊字符，例如，-.

 

    2). 安装程序询问是1. Standard 2. Customize, 一定要选择2. Customize, 否则，标准安装将会跳过第3,4张盘， JDS就不会被默认安装。

 

    3). 选择哪些软件组被安装。请选择The whole group plus OEM. 类型选择Default和Customize, 最好选择Customize, 然后确认所有的程序都被选择。这个原因和第2）个是一样的。不知道是不是安装程序的一个Bug.

 

6\. 然后，重启机器，默认进入得图形界面JDS/CDE。

 

7\. 打开一个命令行终端，执行命令，ifconfig -a, 如果，只有lo0, 那说明网卡驱动没有安装。

 

8\. 然后，我找的我得网卡是BROADCOM 4401， 打开了Sun HCL: [http://www.sun.com/bigadmin/hcl/data/sol/components/views/networking\_all\_results.page1.html](http://www.sun.com/bigadmin/hcl/data/sol/components/views/networking_all_results.page1.html)， 其中有一项是

 

  42. Broadcom  

[BCM4401](http://www.sun.com/bigadmin/hcl/data/components/details/923.html) 

Networking: 10/100 Ethernet

On-Board

 

 这就是我的网卡，打开描述[http://www.sun.com/bigadmin/hcl/data/components/details/923.html](http://www.sun.com/bigadmin/hcl/data/components/details/923.html)，里面说明哪里去下载驱动，[http://homepage2.nifty.com/mrym3/taiyodo/eng/](http://homepage2.nifty.com/mrym3/taiyodo/eng/)，共两个文件，只下载第一个X86的驱动就行了。

 

9\. 下载后，解压，是驱动的源程序和make程序，里面有一个文件，Readme, 按照里面的步骤安装网卡驱动，然后，并按照其步骤配置。

 

10\. 重启机器，重启后，就可以上网了。

All of the configuration about net.

\# cat /etc/hostname.bfe0  
robert

\# cat /etc/resolv.conf  
nameserver 192.168.0.1

\# cat /etc/inet/hosts  
\#  
\# Internet host table  
\#  
192.168.0.101   localhost       loghost robert  # Added by DHCP

\# cat /etc/inet/netmasks  
128.32.0.0 255.255.255.0

\# cat /etc/nsswitch.conf  
\#  
\# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.  
\# Use is subject to license terms.  
\#

\#  
\# /etc/nsswitch.dns:  
\#  
\# An example file that could be copied over to /etc/nsswitch.conf; it uses  
\# DNS for hosts lookups, otherwise it does not use any other naming service.  
\#  
\# "hosts:" and "services:" in this file are used only if the  
\# /etc/netconfig file has a "-" for nametoaddr\_libs of "inet" transports.

\# DNS service expects that an instance of svc:/network/dns/client be  
\# enabled and online.

passwd:     files  
group:      files

\# You must also set up the /etc/resolv.conf file for DNS name  
\# server lookup.  See resolv.conf(4).  
hosts:      files dns

\# Note that IPv4 addresses are searched for in all of the ipnodes databases  
\# before searching the hosts databases.  
ipnodes:   files dns

networks:   files  
protocols:  files  
rpc:        files  
ethers:     files  
netmasks:   files  
bootparams: files  
publickey:  files  
\# At present there isn't a 'files' backend for netgroup;  the system will  
#   figure it out pretty quickly, and won't use netgroups at all.  
netgroup:   files  
automount:  files  
aliases:    files  
services:   files  
printers:       user files

auth\_attr:  files  
prof\_attr:  files  
project:    files

tnrhtp:     files  
tnrhdb:     files

\# cat /etc/dhcp.bfe0

可以参考的贴子和文章，

[http://topic.csdn.net/u/20080527/09/924711f6-f90a-4275-98bc-e1cebbfe947c.html](http://topic.csdn.net/u/20080527/09/924711f6-f90a-4275-98bc-e1cebbfe947c.html)

[http://topic.csdn.net/u/20080526/11/cbeec951-beef-4a45-977e-741250070f55.html](http://topic.csdn.net/u/20080526/11/cbeec951-beef-4a45-977e-741250070f55.html)

[http://topic.csdn.net/u/20080518/13/725deb59-7d60-48e3-8c1a-99ebbaaf96a5.html](http://topic.csdn.net/u/20080518/13/725deb59-7d60-48e3-8c1a-99ebbaaf96a5.html)

[http://blog.csdn.net/yayong/archive/2005/04/10/341755.aspx](http://blog.csdn.net/yayong/archive/2005/04/10/341755.aspx)

[http://www.chinaunix.net/jh/6/16562.html](http://www.chinaunix.net/jh/6/16562.html)

> 这里有一篇官方文档，
> 
> [http://www.sun.com/software/solaris/howtoguides/installationhowto.jsp#1](http://www.sun.com/software/solaris/howtoguides/installationhowto.jsp#1)
> 
> Please see the installation FAQ in Chinese,
> 
> [http://wiki.gceclub.sun.com.cn/index.php/OpenSolaris/Solaris%E4%B8%AD%E6%96%87FAQ#OpenSolaris.E5.92.8CSolaris.E7.9A.84.E5.8C.BA.E5.88.AB.3F](http://wiki.gceclub.sun.com.cn/index.php/OpenSolaris/Solaris%E4%B8%AD%E6%96%87FAQ#OpenSolaris.E5.92.8CSolaris.E7.9A.84.E5.8C.BA.E5.88.AB.3F)
> 
>    
> Please see the item about network adaptor not found.
> 
> [http://wiki.gceclub.sun.com.cn/index.php/%E5%AE%89%E8%A3%85Solaris\_X86%E4%B8%8D%E8%83%BD%E8%AF%86%E5%88%AB%E7%BD%91%E5%8D%A1%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F](http://wiki.gceclub.sun.com.cn/index.php/%E5%AE%89%E8%A3%85Solaris_X86%E4%B8%8D%E8%83%BD%E8%AF%86%E5%88%AB%E7%BD%91%E5%8D%A1%E6%80%8E%E4%B9%88%E5%8A%9E%EF%BC%9F)