歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> 初用 Solaris 10 的一些問題

初用 Solaris 10 的一些問題

日期:2017/2/28 11:12:07   编辑:關於Unix


上網:
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。
Copyright © Linux教程網 All Rights Reserved