上网:
NAT方式
NAT方式是一种相当简单的方式 仔细看了VM的帮助后我的理解是在VM下solaris是在内网下的,所以考虑用NAT模式 这样可以通过XP 将内网IP翻译为合法的IP。
具体操作:
1 将VM网卡设置为自动获取IP地址以启动DHCP
2 在solaris下启动DHCP服务
3 重起后发现DHCP自动加载了IP地址和defaultrouter 地址 但是没有创建/ect/netmasks文件自己根据IP地址创建(it's easy) 但是是发现hostname为UNKNOWN 说明DHCP没有分配给本机名 在/etc/nodename下写自己的本机名后
4重启后一切正常
若想自己动手体验,可以修改(如果没有,就创建)
/etc/defaultroute
192.168.152.2 #路由,VMWare网络设置中可以查到
/etc/hostname.pcn0
vmsolaris #客机名
/etc/hosts
127.0.0.1 localhost
192.168.152.100 vmsolaris loghost #客机地址
/etc/netmasks
192.168.152.0 255.255.255.0 #网络掩码
在hosts:files 后加dns以便与后面的DNS解析关联
nameserver 202.101.224.69 #真实DNS服务器
/inet/hosts
127.0.0.1 localhost
192.168.152.100 vmsolaris loghost
/inet/ipnodes
192.168.152.0 255.255.255.0
重启,OK
HOST-ONLY方式
host-only是另外一种网络方式 相当于这两台机器通过双绞线互连 solaris的TCP/IP配置信息都是由VMnet1(host-only)虚拟网络的DHCP服务器来动态分配的 但是此时solaris是作为内网机与其他机器相隔离的
1 把XP的网卡设置为共享给VM
2 在solaris下将网卡IP地址设置为192.168.0.2 defaultrouter设置为192.168.0.1
3 DNS设置为真实的地址
重启,OK
Bridge方式
ADSL+无线局域网
1 分配好地址(文件或者命令)
2 然后设置好Gateway
具体设置每一步可以参考OpenSolaris/Solaris中文FAQ
添加简体中文语言官方说明:
It is most likely the case that one or more required packages were not installed properly. On Solaris 10 please
refer to the localeadm utility. Otherwise refer to the locale package pages for Solaris 9, Solaris 8 and Solaris 7.
By the way using Chinese as the installation language is not enough to install all Chinese locales.Users still
need to select all of the locales they need from the GEO screen during the installation. Only zh or zh_TW locale
is installed by default when Simplified Chinese or Traditional Chinese is used as the installation langauge.
即solaris10用如下命令添加简体中文支持:
# localeadm -a zh_CN -d /net/sparc_images/export/pkgs
其他的语言有:zh_TW, zh_HK, hi_IN, th_TH, ko_KR, ja等, “/net/sparc_images/export/pkgs” 应该换成你的cd/dvd安装包位置
重置root密码:
插入 Solaris 10 的第一张 CD,然后按下 Stop+A,输入 boot cdrom -s 进入到 Solaris 10 安装的单用户模式,然后 mount /dev/dsk/c0t0d0s0 /a,然后把 /a/etc/shadow 中root 对应的那行中两个:之间的加密过的密码清除掉之后reboot,在初始化内存的时候再次按下Stop+A 之后输入 boot -s,然后启动完成后,root 不需要密码也可以在Console 登录,重新设置密码之后reboot。