以下整理 Solaris 常見的實用技巧,涵蓋登入、顯示、救援與網路設定。
telnet 時若 Backspace 異常,可用 stty erase ^H。若要把遠端圖形顯示回本機,需設定 DISPLAY 與 xhost。
可用 Solaris 光盤啟動,掛載原系統,再修改 /etc/shadow 中的 root 密碼欄位,重新開機後即可登入。
# mkfile 200m swap1.file # swap -a /export/home/swap/swap1.file
若要開機自動生效,可把 swap -a 寫入啟動腳本。
在 vi 中可用 1,$s/^M//g 移除 ^M。
可建立 /etc/hosts、/etc/hostname.hme0、/etc/netmasks 與 /etc/defaultrouter。若要關閉路由轉發,可建立 /etc/notrouter。