木曜日 9 04, 2008
木曜日 9 04, 2008
MacBook AirにネイティブでOpenSolarisを動かすことができました。内蔵キーボード、オーディオ、ビデオは追加のセットアップをせずに動作します。内蔵WiFiやCompizは追加設定で動作します。(English)
Mac OS Xのdiskutilコマンドを使ってパーティションをリサイズ
MacBook Airはたった80GBのHDD(または60GBのSSD)しかないので、パーティションサイズを事前に十分に見積もっておく必要があります。私の場合は20GBをSolarisに、さらに20GBをVistaに割り当てました。Mac OS Xにもっと空き容量を増やしたい場合は、Mac OS X 10.5インストール時に、プリンタドライバ、追加フォント、不要な言語、バンドルアプリケーション(iWeb, GarageBand, iMovieなど)を選択解除すればよいでしょう。
$ diskutil resizeVolume /dev/disk0s2 34.1G "MS-DOS FAT32" Windows 20G "Journaled HFS+" Solaris 20G Started resizing on disk disk0s2 Mac OS X Verifying Resizing Volume Adjusting Partitions Formatting new partitions Formatting disk0s4 as Mac OS Extended (Journaled) with name Solaris Formatting disk0s3 as MS-DOS (FAT32) with name Windows [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] Finished resizing on disk disk0 /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *74.5 Gi disk0 1: EFI 200.0 Mi disk0s1 2: Apple_HFS Mac OS X 34.0 Gi disk0s2 3: Microsoft Basic Data WINDOWS 20.0 Gi disk0s3 4: Apple_HFS Solaris 20.1 Gi disk0s4
GPT (GUID Partition Table)からMBR (Master Boot Record)への変更
現在のところOpenSolarisはGPTハードディスクから起動することができません。手動でfdiskコマンドを使って変更する必要があります。MBRに変更すると、ディスクユーティリティGUIでパーティションマップを表示することができなくなりますのでご注意下さい。
$ sudo fdisk -e /dev/disk0
Password:
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> p
Disk: /dev/disk0 geometry: 9729/255/63 [156301488 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639]
2: AF 1023 254 63 - 1023 254 63 [ 409640 - 71250736] HFS+
3: 0B 1023 254 63 - 1023 254 63 [ 71922520 - 41943040] Win95 FAT-32
4: AF 1023 254 63 - 1023 254 63 [ 113865560 - 42173744] HFS+
fdisk: 1> setpid 1
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639]
Partition id ('0' to disable) [0 - FF]: [EE] (? for help) AF
fdisk:*1> q
Writing current MBR to disk.
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
マルチブートのためにrEFItブートローダをインストール
rEFIt Version 0.11ではMacBook Airをサポートします。rEFIt.mpkgアイコンをダブルクリックしてrEFItインストーラを起動します。次にターミナルを開いて、enable-always.shスクリプトを実行します。
$ sudo /efi/refit/enable-always.sh Password: + sudo bless --folder /efi/refit --file /efi/refit/refit.efi --labelfile /efi/refit/refit.vollabel --setBootrEFItは起動画面でOpenSolarisをLinuxアイコンで表示します。このアイコンは新しいアイコンで置き換えることができます。
os_linux.icnsと
os_linux.icns を/efi/refit/icons/ディレクトリにコピーして下さい。
Wireless LAN
ネットワーク接続は不安定ですが、内蔵wireless LAN (Broadcom BCM4328 802.11a/b/g/n)はndis-1.2を使って32-bitカーネルのみ動作します。64-bitドライバの場合はシステムがpanicします。
# add_drv -i '"pci14e4,4328"' bcmndis
ビデオ
ビデオはCompiz Fusion以外はそのままで快適に動作します。Compizはdefect 1334でハングアップするので、新しいmesa 7.0.3バイナリが必要です。
新しいmesa 7.0.3バイナリとインストールスクリプトをダウンロードします:
インストールスクリプトは/tmp/new-binariesにファイルがあることを前提にしているため、バイナリを/tmp/new-binariesに展開します。
$ mkdir /tmp/new-binaries $ cd /tmp/new-binaries $ tar xfz ~/new-binaries-32.tar.gz $ tar xfz ~/new-binaries-64.tar.gz
X11サーバを停止してからインストールスクリプトを実行します。
$ pfexec svcadm disable gdm console login: username Password: xxxxxxxx $ pfexec sh ~/install-bin.csh $ pfexec /usr/sbin/svcadm enable gdm; exit
Compizを有効にする
システム->設定->外観の設定->Visual Effectsを開き、"Normal", "Extra", "Custom"のいずれかを選択します。"Keep settings"ダイアログで"Keep Settings"ボタンをクリックします。
Compizをカスタマイズして白い帯を削除
デスクトップ画面の上下に白い帯が表示されると思います。この帯はCompizをカスタマイズすると削除できます。システム->設定->CompizConfig設定マネージャ->Effects->Window Decorationを開き、"Shadow Radius"の値を8.0000から8.5000(またはそれ以上)に変更します。
右マウスボタンのエミュレーション
システム->設定->キーボード->アクセシビリティを開き、「キーボードからアクセシビリティの機能をON/OFFできるようにする」チェックボックスをクリックします。次に「マウス・キー」タブをクリックし、「キーボードでポインタを制御できるようにする」チェックボックスをクリックします。最後に.xmodmaprcと.xprofileファイルを作り、右の"command"キーを右マウスボタンに割り当てます。
$ vi ~/.xmodmaprc keycode 116 = Pointer_Button3 $ xmodmap ~/.xmodmaprc $ vi ~/.xprofile xmodmap ~/.xmodmaprc
時間帯
GMTとの時間差を調整するため、/etc/rtc_configからzone_lagエントリを削除します。
# vi /etc/rtc_config zone_info=Japan zone_lag=-32400 <- この行を削除、またはコメントアウト
I succeeded to run native OpenSolaris on MacBook Air. The built-in keyboard, audio and video work fine without any additional setup. You can also use the built-in WiFi and Compiz with some configuration. (日本語)
Resize partition using diskutil command on Mac OS X
Since MacBook Air has only 80GB HDD (or 60GB SSD), you need to estimate partition size carefully in advance. I have assigned 20GB for Solaris and 20GB for Vista. If you need more free space for Mac OS X, you can deselect printer drivers, additional fonts, unnecessary languages, bundled applications (such as iWeb, GarageBand, iMovie) during Mac OS X 10.5 installation.
$ diskutil resizeVolume /dev/disk0s2 34.1G "MS-DOS FAT32" Windows 20G "Journaled HFS+" Solaris 20G Started resizing on disk disk0s2 Mac OS X Verifying Resizing Volume Adjusting Partitions Formatting new partitions Formatting disk0s4 as Mac OS Extended (Journaled) with name Solaris Formatting disk0s3 as MS-DOS (FAT32) with name Windows [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] Finished resizing on disk disk0 /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *74.5 Gi disk0 1: EFI 200.0 Mi disk0s1 2: Apple_HFS Mac OS X 34.0 Gi disk0s2 3: Microsoft Basic Data WINDOWS 20.0 Gi disk0s3 4: Apple_HFS Solaris 20.1 Gi disk0s4
Change GPT (GUID Partition Table) to MBR (Master Boot Record)
Currently OpenSolaris cannot boot from GPT hard disk. You need chage by hand using fdisk command. Please note that you will not be able to view partition map using "Disk Utility" GUI after changing to MBR.
$ sudo fdisk -e /dev/disk0
Password:
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> p
Disk: /dev/disk0 geometry: 9729/255/63 [156301488 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639]
2: AF 1023 254 63 - 1023 254 63 [ 409640 - 71250736] HFS+
3: 0B 1023 254 63 - 1023 254 63 [ 71922520 - 41943040] Win95 FAT-32
4: AF 1023 254 63 - 1023 254 63 [ 113865560 - 42173744] HFS+
fdisk: 1> setpid 1
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639]
Partition id ('0' to disable) [0 - FF]: [EE] (? for help) AF
fdisk:*1> q
Writing current MBR to disk.
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Install rEFIt bootloader for multiboot
rEFIt Version 0.11 supports MacBook Air. Double click rEFIt.mpkg icon to launch rEFIt Installer. Next open the terminal and execute enable-always.sh script.
$ sudo /efi/refit/enable-always.sh Password: + sudo bless --folder /efi/refit --file /efi/refit/refit.efi --labelfile /efi/refit/refit.vollabel --setBootrEFIt shows Linux icons for OpenSolaris at boot screen. You can replace them with new icons. Copy
os_linux.icns and
os_linux.icns to /efi/refit/icons/ directory.
Wireless LAN
Built-in wireless LAN (Broadcom BCM4328 802.11a/b/g/n) works only in 32-bit kernel with ndis-1.2, but the network connection is not stable. The 64-bit driver cause the system panic.
# add_drv -i '"pci14e4,4328"' bcmndis
Video
Video works fine by default except Compiz Fusion. Compiz hags due to defect 1334, so you need new mesa 7.0.3 binaries.
Download new mesa 7.0.3 binaries and install script:
Extract the binaries into /tmp/new-binaries because the install script expects the files to be.
$ mkdir /tmp/new-binaries $ cd /tmp/new-binaries $ tar xfz ~/new-binaries-32.tar.gz $ tar xfz ~/new-binaries-64.tar.gz
Run install script after stopping X11 server.
$ pfexec svcadm disable gdm console login: username Password: xxxxxxxx $ pfexec sh ~/install-bin.csh $ pfexec /usr/sbin/svcadm enable gdm; exit
Enable Compiz
Go to System->Preferences->Appearance->Visual Effects and choose "Normal" or "Extra" or "Custom". Click "Keep settings" button at "Keep Settings" dialog.
Cusomize Compiz to remove white boarder
You will see white boarders top and bottom of desktop window. You can delete the boarders by customizing Compiz. Choose System->Preferences->CompizConfig Settings Manager->Effects->Window Decoration, then change "Shadow Radius" value 8.0000 to 8.5000 (or above).
Right Mouse Button emulation
Go to System->Preferences->Keyboard->Accessibility and click the "Allow to turn accessibility features on and off from the keyboard" check box. Next click the "Mouse Keys" tab and click "Allow to control the pointer using the keyboard" check box. Then create .xmodmaprc and .xprofile files to assign right "command" key to right mouse button.
$ vi ~/.xmodmaprc keycode 116 = Pointer_Button3 $ xmodmap ~/.xmodmaprc $ vi ~/.xprofile xmodmap ~/.xmodmaprc
Time Zone
To adjust GMT lag, remove zone_lag entry from /etc/rtc_config.
# vi /etc/rtc_config zone_info=Japan zone_lag=-32400 <- remove or comment out this line
金曜日 7 18, 2008
StarSuite 9 Betaの公開は終了しました。
[もっと読む]
火曜日 6 10, 2008
StarSuite 8 Update 11がリリースされました(OpenOffice.org 2.4.1相当)。今回はバグ修正がメインです。ダウンロード手順はhttp://jp.sun.com/starsuite/8/update/をご覧下さい。
月曜日 4 28, 2008
StarSuite 8 Update 10がリリースされました。OpenOffice.org 2.4に相当します。主な新機能や変更点は下記の通りです。
Writer: 長方形テキスト領域選択
長方形の範囲でテキスト領域を選択できます(編集→選択モード→ブロック範囲)。
Calc: 編集作業時の使いやすさを改善
セル内のCSVデータを列に変換できます(データ→テキストから列へ)。また、行・列・セルの選択範囲をドラッグ&ドロップで移動できるようになりました。さらに、TABキーを使ったデータ入力時、Enterで1つ下の行に移りますが、入力を開始した列に戻ります。このほかにも直感的な作業ができるよう改善されています。
Base: Access 2007のインポート
Microsoft Access 2007の.accdbファイルをインポートできます。
PDF/A-1 (ISO 19005-1) のサポート
PDFエクスポート時にPDFの長期保存用形式であるPDF/A-1を選べます。
セキュリティ脆弱性への対応
Sun Alert 231601 (Quattro Proファイルのセキュリティ脆弱性)、Sun Alert 231661 (EMFファイルのセキュリティ脆弱性)への対策がされています。
アップデータのダウンロード手順はhttp://jp.sun.com/starsuite/8/update/をご覧下さい。
StarSuite 7向けにもセキュリティ脆弱性に対応したUpdate 12がリリースされています。
金曜日 12 14, 2007
StarSuite 8 Update 9がリリースされています。今回のアップデートはバグ修正のみで新機能はありません。Sun Alert 103141 (HSQLDBセキュリティ脆弱性)も対応済みです。OpenOffice.org 2.3.1に相当します。
Update 9のダウンロード手順はhttp://jp.sun.com/starsuite/8/update/をご参照下さい。
金曜日 11 02, 2007
Solaris Express, Community Edition(SXCE)ビルド75aにXen(Solaris xVM)が統合されたので、Sun Fire X2200 M2を借りてDom0(ホスト)にNevada 75a、DomU(ゲスト)にWindowsを入れて試してみました。
Nevadaビルド75aではxm(1M)、virt-install(1M)コマンドなどで管理できます。各コマンドのmanページはありますが、まだ公式ドキュメントがないので、OpenSolarisのXenプロジェクトが参考になります。今後virt-managerというGUI管理ツールが追加される予定です。
必要なもの
実際に試した手順は次の通りです。
まず、Dom0(ホスト)を起動
GRUBで新たにメニューに追加された「Solaris xVM」を選択します。
Solaris Express Community Edition snv_75a X86 Solaris xVM Solaris failsafe起動後、unameコマンドを確認したところ、プラットフォーム名がi86pcの代わりにi86xpvと表示されています。
# uname -a SunOS solaris 5.11 snv_75 i86pc i386 i86xpv
VNC のパスワードとアクセス制限を設定
# svccfg -s xend setprop config/vncpasswd = astring: \"root\" # svccfg -s xend setprop config/vnc-listen = astring: \"0.0.0.0\" # svcadm restart xendここではパスワードをrootに設定しています。
virt-install でインストール
virt-install がファイルを作成してくれるので、事前にファイルを用意する必要はありません。
# virt-install -n win2003 --hvm -r 256 --vnc \ -f /export/windows/win2003-disk.img -s 16 \ -c /export/windows/win2003-cd1.iso-n win2003はゲストOSの識別名(自由に付けてOK)、--hvmはHVMの指定、-r 256は割り当てるメモリ容量(MB)、--vncはVNC経由で表示、-f ファイル名はHDDイメージ、-s 16はHDDイメージサイズ(GB)、-c ファイル名はCDROMイメージです。
VNCのクライアントを起動
プロンプトが表示されたらVNCパスワードを入力します。
# vncviewer :0 &Windowsのセットアップ(青い画面)が開始します。途中、ライセンス同意でF8を入力すると"VNC Menu"がポップアップされますが、"Dismiss Menu"で閉じます。インストール関連ファイルがコピーされると、ゲストが自動的にshutdownされて、VNCのクライアントが終了します。
構成ファイル(win2003.hvm)を用意する
本当はこのままセットアップを継続したいのですが、Windows 2003 HVMでVNCマウスポインタがずれてしまうバグがあるので、回避策のusb=1,usbdevice="tablet"を追加するために構成ファイルを使用します。
name = "win2003"
memory = 256
disk = [ 'file:/export/windows/win2003-disk.img,hda:disk,w',
'file:/export/windows/win2003-cd1.iso,hdc:cdrom,r' ]
builder='hvm'
kernel = "/usr/lib/xen/boot/hvmloader"
device_model = '/usr/lib/xen/bin/qemu-dm'
vif = [ 'type=ioemu' ]
boot='c'
sdl=1
monitor=1
vnc=1
usb=1
usbdevice="tablet"
ゲスト構成を作り直す
いったんWindowsゲスト構成を削除してから、作成した構成ファイルで再度ゲストを作成します。
# xm delete win2003 # xm new win2003.hvm # xm start win2003 # vncviewer :0 &
Windows にログインする
Windowsのインストールが完了して再起動するとVNCクライアントが終了するので、またvncviewerを起動します。
# vncviewer :0 &ログインプロンプトを表示するためにCtrl-Alt-Delを入力しなくてはいけませんが、そのまま入力するとSolarisのプロセスマネージャが起動してしまうので、vncviewr上でF8キーを押すとメニューが表示されるので、"Send Ctrl-Alt-Del"を選びます。
ctrl-alt-2 (XVMXen) eject hdc (XVMXen) change hdc /export/windows/win2003-cd2.iso ctrl-alt-1うまくいかないことがあるようで、ejectとchangeを何回かトライしてもダメなら、構成ファイルのCDROMファイル名を変更して、xm delete→xm newで再構成して下さい。
木曜日 11 01, 2007
Solaris on x86のハードウェア互換性チェックをするHardware Certification Test Suite (HCTS)の新バージョンHCTS 4.0が公開されました。無償でダウンロード&実行できます。HCTSの結果を報告するとSolarisハードウェア互換リスト(HCL)の"Certified"カテゴリに登録されます。
HCTS 4.0では、10-Gigabitネットワークカード、iSCSI HBA、オーディオデバイス、CD/DVDデバイス、USBデバイスなどの認定や、仮想ディスクやZFS上のストレージをサポートします。新機能の詳細はRelase Notesをご覧下さい。
月曜日 10 01, 2007
StarSuite 8 Product Update 8がリリースされています。Product Update 3以降このブログでの報告を怠っていたので、これまでのアップデートに導入された主な新機能を紹介しておきます。
ほかにも、セキュリティ脆弱性(Sun Alert 102994, 102863, 102807, 102794)への対応に加え、アップデートの自動通知、パフォーマンス向上、MS Officeファイルの互換性向上など数多くの機能改善がされています。
Product Update 8のダウンロード手順はhttp://jp.sun.com/starsuite/8/update/をご参照下さい。
水曜日 9 19, 2007
このブログで公開しているPDF版の『Solaris 10 8/07インストール虎の巻』を元にした、HTML版の『Solarisインストール虎の巻』がSDC (Sun Developer Connection)で公開されました。
PDF版はもともとInstall Festaの説明資料として作ったスライドなので簡単な解説だけですが、HTML版では記事の形式になっていて補足情報がたくさん書かれてますし、希望に合わせたページ表示がされるように工夫されているので、非常にわかりやすいページに仕上がっています。トラブルシューティング情報も載っています。PDF版ではいまいちインストールに踏み切れなかった人も、HTML版の記事を見て是非インストールしてみて下さい!
水曜日 9 05, 2007
Solaris 10の最新アップデートリリース「Solaris 10 8/07」のダウンロードが開始されました。 ダウンロードページで「Solaris 10 Operating System」にチェックして「Get Downloads & Media」をクリックすると、CDかDVDのISOイメージがダウンロードできます。ダウンロード方法はDownload Centerご利用方法をご覧下さい。
待望の最新版ダウンロード開始を祝して、「インストール虎の巻」もSolaris 10 8/07用に更新しました。
月曜日 7 02, 2007
水曜日 3 28, 2007
月曜日 3 12, 2007
水曜日 6 14, 2006