2015年03月22日一覧

GIGABYTE BRIX で Voyage MPD part2

ハードウェアのセットアップが完了したらVoyage MPDをインストールする。

インストール手順は、こことかここに解りやすく載っているので詳細は参照されたし。

ここでは簡単な流れだけ。

BRIX本体に、USBキーボード、HDMI接続のディスプレイ、ルーターに繋がっているLANケーブルを接続。

Voyage MPDのホームページより、Live CD(現時点での最新:0.9.5)をダウンロードしUSBメモリへ書き込み、USBメモリより起動する。

Voyage MPDが起動したら、

voyage login: root
Password: voyage

でログインする。あとは、

root@voyage:~# ifconfig

でルーター(DHCP)より割り当てられたIPアドレスを確認する。

ここからは同じLAN上の他のPCから、TeraTermPuTTYなどのターミナルソフトでVoyage MPDに接続する。

先ほど確認したIPアドレスにSSHで接続し、root/voyageでログインする。

インストール用のディレクトリを作成する。

root@voyage:~# mkdir /tmp/root /tmp/cf
root@voyage:~# mount -o loop /lib/live/mount/medium/live/filesystem.squashfs /tmp/root
root@voyage:~# cd /tmp/root

fdisk -lで接続されているディスクの構成を確認。

root@voyage:/tmp/root# fdisk -l

Disk /dev/sda: 128.0 GB, 128035676160 bytes  #内蔵SSD
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 1025 MB, 1025024000 bytes     #インストールイメージが入ったUSBメモリ
255 heads, 63 sectors/track, 124 cylinders, total 2002000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x005f8f51

 Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 2001999 999976 c W95 FAT32 (LBA)

インストールするSSD(/dev/sda)にパーティションを作成、フォーマットする。

root@voyage:/tmp/root# /usr/local/sbin/format-cf.sh /dev/sda

パーティションが作成されたか確認。

root@voyage:/tmp/root# fdisk -l

Disk /dev/sda: 128.0 GB, 128035676160 bytes  #内蔵SSD
30 heads, 63 sectors/track, 132312 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2575bf49

 Device Boot Start End Blocks Id System
/dev/sda1 2048 250069679 125033816 83 Linux  #パーティションが作成された

Disk /dev/sdb: 1025 MB, 1025024000 bytes     #インストールイメージが入ったUSBメモリ
255 heads, 63 sectors/track, 124 cylinders, total 2002000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x005f8f51

 Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 2001999 999976 c W95 FAT32 (LBA)

インストールの開始。

root@voyage:/tmp/root# /usr/local/sbin/voyage.update
What would you like to do?
 1 - Create new Voyage Linux disk
 2 - Update existing Voyage configuration
 3 - Exit
 (default=1 [Create new Voyage Linux disk]):≪Enter≫
some mandatory options are unset, please enter them interactively
Where is the Voyage Linux distribution directory?
 (default=/tmp/root):≪Enter≫
What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=2 [Select Target Profile - this overwrites current settings]):≪Enter≫
Please select Voyage profile:
 1 - Keep existing settings
 2 - 4501
 3 - 4511/4521 4 - 4801
 5 - 5501
 6 - 6501
 7 - ALIX
 8 - APU
 9 - Generic PC
 10 - Notebook (pcmcia)
 11 - WRAP
 (default=7 [ALIX]): 9            #普通のパソコンなので9を選択

What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=3 [Select Target Disk]):≪Enter≫

Partitions information
major minor #blocks name

 8 0 125034840 sda
 8 1 125033816 sda1
 8 16 1001000 sdb
 8 17 999976 sdb1
 7 0 77700 loop0
 7 1 77700 loop1

Which device accesses the target disk [/dev/hde]? /dev/sda

Which partition should I use on /dev/sda for the Voyage system [1]?≪Enter≫

Device information for /dev/sda1
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/sda1 ext2 (not mounted) d00f5160-af4e-469d-a7c2-d3af2a97977e

Where can I mount the target disk [/tmp/cf]? ≪Enter≫

What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=4 [Select Target Bootstrap Loader]):≪Enter≫

Which loader do you want (grub or lilo) [grub]?≪Enter≫

Which partition is used for bootstrap [1]?≪Enter≫

What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=5 [Configure Target Console]):≪Enter≫

Select terminal type:
 1 - Serial Terminal
 2 - Console Interface
 (default=2 [Console Interface]):≪Enter≫

What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=6 [Partition and Create Filesystem]):≪Enter≫

What shall I do with your Flash Media?
 1 - Partition Flash Media and Create Filesystem
 2 - Use Flash Media as-is
 (default=1 [Partition Flash Media and Create Filesystem]): 2

What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=7 [Copy Distribution to Target]):≪Enter≫


Configuration details:
----------------------

Distribution directory: /tmp/root

Disk/Flash Device: /dev/sda
Installation Partition: /dev/sda1
Bootstrap Partition: /dev/sda1

Will be mounted on: /tmp/cf

Target system profile: Generic PC
Target console: standard

Bootstrap installer: grub
Bootstrap partition: /dev/sda1

OK to continue (y/n)? y

Ready to go ....
Copying files .... done

Removing pcmcia from update-rc.d
update-rc.d: using dependency based boot sequencing
Removing dnsmasq.pxe.conf in /etc/dnsmasq.more.conf
Reconfiguring resolvconf
Updating /etc/hosts
Installing grub
Copy grub files from /tmp/cf to /tmp/cf/boot/grub
Setting up grub under chroot /tmp/cf
copyfiles.sh script completed
What would you like to do?
 1 - Specify Distribution Directory
 2 - Select Target Profile - this overwrites current settings
 3 - Select Target Disk
 4 - Select Target Bootstrap Loader
 5 - Configure Target Console
 6 - Partition and Create Filesystem
 (default=8 [Exit]):≪Enter≫

USBメモリを取り外し再起動する。

root@voyage:/tmp/root# reboot

Broadcast message from root@voyage (pts/0) (Sun Jan 18 06:17:28 2015):

The system is going down for reboot NOW!

次はVoyage MPDの設定を行う。
part3へ


スポンサーリンク