參考:
http://www.ntu.beautifulworldco.com/weblog/?p=385
首先去修改 /etc/ssh/sshd_config ,把 PermitRootLogin 後面的 no 改成 yes,然後重新起動 sshd 就行了.
在 Solaris 10 上重新起動 sshd 的方法是 svcadm disable ssh; svcadm enable ssh
參考:
http://www.ntu.beautifulworldco.com/weblog/?p=385
首先去修改 /etc/ssh/sshd_config ,把 PermitRootLogin 後面的 no 改成 yes,然後重新起動 sshd 就行了.
在 Solaris 10 上重新起動 sshd 的方法是 svcadm disable ssh; svcadm enable ssh
我目前的想法是:
在家裏的file server(使用opensolaris and ZFS) create a ZFS Volume as iSCSI Target
然後在另外一台電腦中執行VirtualBox, 因為VirtualBox 有支援iSCSI, as Vdi disk.
嘿嘿!! 那這個Virtual Machine的Image file 就可以享受ZFS 的保護啦!!
先參考這裡:
http://breden.org.uk/2008/03/12/home-fileserver-backups/
(1) Create a ZFS Volume, then set shareiscsi=on
#zfs create -V 30G fspool/iscsi_hdd
#zfs set shareiscsi=on fspool/iscsi_hdd
(2) Enable the Solaris iSCSI Target service
# svcadm enable system/iscsitgt
(3) 用下列指令看看有沒有做成功
# iscsitadm list target -v
我想, 對我而言, 學習opensolaris的最快方法, 就是看到什麼/想到什麼, 就趕快記下來.
所以剛剛看到一個指令:
beadm — utility for managing zfs boot environments
#man beadm
…..
只需下列兩行指令:
#pfexec pkg refresh
#pfexec pkg image-upgrade
然後
#reboot
參考此網站:
http://blogs.sun.com/natarajan/entry/setting_up_static_ip_and
基本上就是這句話:
- Disable Network AutoMagic(NWAM) service and enable traditional networking service
操作如下:
#svcadm enable physical:default
#svcadm disable physical:nwam
然後就可以用GUI的tool 去設定static IP address. 然後reboot
這樣可以了…….但是dns 好像還有問題.
所以就:
#cp /etc/nsswitch.dns /etc/nsswitch.conf
就OK啦!!
一次看不完此blog 的資料, 就把網址記在這裡吧:
http://breden.org.uk/2008/03/02/a-home-fileserver-using-zfs/
到 http://www.blastwave.org 去下載pkg-get 軟體.
指令如下:
# pkgadd -d http://blastwave.network.com/csw/pkg_get.pkg
pkg-get 會裝在\opt\csw 目錄中
然後將這個路徑/opt/csw/bin 加入到你的PATH 即可. (加在/etc/default/login 及/etc/default/su 這兩個檔案中)
然後就可以用下列方式來安裝軟體
# pkg-get -i 軟體名稱
可以用下列指令來update 軟體套件資料
# pkg-get -U