
Ubuntu日本語フォーラム
ログインしていません。
Gutsyでココを参考にUbuntu Mobile and Embeddedで遊んでみました。Hardyな人は適宜読み替えて下さい。
通常環境:必要なパッケージのインストール
sudo apt-get update sudo apt-get install xserver-xephyr debootstrap
通常環境:Xephyrの起動
sudo Xephyr :1 -host-cursor -screen 800x480x16 -dpi 96 -ac
通常環境:chroot環境の構築
mkdir ubuntu-mobile sudo debootstrap --arch i386 gutsy ./ubuntu-mobile http://jp.archive.ubuntu.com/ubuntu/
通常環境:必要なファイルシステムのマウント
sudo mount --bind /tmp ubuntu-mobile/tmp sudo mount --bind /sys ubuntu-mobile/sys sudo mount -t proc none ubuntu-mobile/proc sudo mount -t devpts none ubuntu-mobile/dev/pts
通常環境:chroot環境への切り替え
sudo su - chroot /home/自分の名前/ubuntu-mobile
chroot環境:レポジトリの設定
echo "deb http://jp.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse" > /etc/apt/sources.list
chroot環境:必要なパッケージのインストール
apt-get update apt-get install ubuntu-mobile apt-get install ttf-kochi-mincho-naga10 ttf-kochi-gothic-naga10
(↑最後のは日本語表示用フォント。好みのものをどうぞ。)
chroot環境:UME用ユーザの追加
adduser ume
(Ubuntu Mobile and Embedded 梅?)
chroot環境:dbusの起動
/etc/init.d/dbus restart
chroot環境:hildon-desktopの起動
su - ume start-hildon
(好みに応じて /usr/bin/start-hildon は編集すると良いかも。)
これで先に起動していたXephyrのウィンドウ内にUMEが。梅。
※このchroot環境に remastersys を突っ込んで bootCD を作ってみましたが見事に起動しませんでした。色々足りなかったみたいです。linux-generic すら入ってなかったし……面倒くさいので不足の洗い出しは諦めました。
なお、moblin-image-creatorを使うとブート用フラッシュメモリが作れるそうです。
私の環境では依存でエラーが出たので、以下のレポジトリをコメントアウトする必要がありました。
/usr/share/pdk/platforms/mccaslin/sources/build.list
もしくは
/usr/share/pdk/platforms/menlow/sources/build.list
「usbメモリからブート可能なPC」などというハイカラなものは持ち合わせておりませんゆえ、出来たusbメモリ用イメージについて、PCでの動作に必要な改変点等は確認出来ませんでした。あしからず。
参考にしたサイト
http://www.ubuntu.com/products/mobile
https://wiki.ubuntu.com/MobileAndEmbedded
https://wiki.ubuntu.com/MobileAndEmbedded/CreatingAnImageForUMEDevice
https://wiki.ubuntu.com/MobileAndEmbedded/HildonDesktopManualProcedure
http://gihyo.jp/admin/serial/01/ubuntu-recipe/0002
http://gihyo.jp/admin/serial/01/ubuntu-recipe/0003
https://wiki.ubuntulinux.jp/UbuntuPackagingGuideJa/appendix-chroot
Have fun! ;)
最後の編集者: fueryuejing (2008-03-25 10:00:21)
オフライン
通常の環境(Gutsy)にubuntu-mobileをインストールした場合のTips
注意:ubuntu-mobileを入れるとシステムが不安定になるかもしれません。やめましょう。私はやってしまった……orz
/usr/share/xsessions/への登録
以下の内容を/usr/share/xsessions/ubuntu-mobile.desktopとして保存することでログイン画面から選択可能になります。
/usr/share/xsessions/ubuntu-mobile.desktop
[Desktop Entry] Name=ubuntu mobile Comment=This session logs you into Ubuntu Mobile and Embedded Exec=start-hildon Terminal=False Type=Application
起動スクリプトの編集例(テキトーです)
/usr/bin/start-hildonの編集例
/usr/bin/start-hildon
#!/bin/bash PREFIX=/usr THEME=${PREFIX}/share/themes/plankton if [ -d ${PREFIX}/share/themes/mobilebasic ]; then THEME=${PREFIX}/share/themes/mobilebasic fi # export DISPLAY=:1 # ↑Xephyrを使わない場合コメントアウト。 export GTK2_RC_FILES=${THEME}/gtk-2.0/gtkrc:${THEME}/gtk-2.0/gtkrc.maemo_af_desktop # export LANG=en_GB.UTF-8 # ↑↓日本語ロケールの設定 export LANG=ja_JP.UTF-8 export $(dbus-launch --exit-with-session) /usr/lib/libgconf2-4/gconfd-2 & ${PREFIX}/bin/matchbox-window-manager -display ${DISPLAY} \ -theme ${THEME}/matchbox/theme.xml \ -use_titlebar no \ -use_desktop_mode plain \ -use_lowlight no \ -use_cursor yes \ -use_super_modal yes & ${PREFIX}/lib/sapwood/sapwood-server & # ${PREFIX}/sbin/mas & # ↑/usr/sbin/masは無い。コメントアウト。 # ↓/etc/xdg/autostart以下のアプリ。好みでコメントアウト。 # exec bluetooth-applet & # exec /usr/lib/evolution/2.12/evolution-alarm-notify & exec gnome-power-manager & # exec gnome-volume-manager --sm-disable & exec nm-applet --sm-disable & exec /usr/bin/system-config-printer-applet & # exec restricted-manager --check & # exec trackerd & exec update-notifier & # exec xdg-user-dirs-gtk-update & exec ${PREFIX}/bin/hildon-desktop
デスクトップアイコンの編集例(テキトーです)
デスクトップアイコンはパッケージmobile-basic-flashに含まれています。
/usr/share/mobile-basic-flash/applications/40-control-panel.desktop
[Mobile Entry] Encoding=UTF-8 Name=Control Panel #Exec=/usr/bin/controlpanel Exec=/usr/bin/gnome-control-center Icon=controlpanel #X-Osso-Service=com.nokia.controlpanel
/usr/share/mobile-basic-flash/applications/41-notepad.desktop
[Mobile Entry] Encoding=UTF-8 Name=Notepad #Exec=notes Exec=/usr/bin/gedit Icon=notes #X-Osso-Service=org.moblin.notes
※私の環境ではcontrolpanelを起動しようとするとmatchboxごとコケました。
※notesってアプリはないみたいでした。
※terminalは初期状態では/usr/bin/uxtermを指定しているので、パッケージxtermが入っていないと起動しません。
タスクの切り替え
Alt+TabでO.K.
左上のボタンでデスクトップを表示。
右上のボタンでアプリの終了。
終了
端末を起動し
killall hildon-desktop
あるいは
Ctrl+Alt+BackSpace
※ちゃんとした終わらせ方がわからない(;_;)
雑
moblinやhildonといった単語でパッケージ検索をかけると関連したパッケージが引っかかります。
日本語入力もいけるようでした。matchbox-keyboardから、scim+anthyでローマ字入力での日本語入力が可能でした。タッチスクリーンのみのPCでも日本語入力が出来そうです。すごいかも。
モバイルサブノート用の環境としても面白いかもしれません。
GDMからのログインで、あるユーザーでUMEにログインした後別のユーザーでUMEにログインしようとすると何故かコケました。私の環境だけ?
ubuntu-mobileはmatchboxを使っているのでキーボードショートカットは/etc/matchbox/kbdconfig、あるいは~/.matchbox/kbdconfigで指定されるようです。
最後の編集者: fueryuejing (2008-03-26 12:24:40)
オフライン