#contents
*** デジタル音源 [#l7cb6f67]
- [[e-onkyo music:http://music.e-onkyo.com/]]
*** ケーブル類 [#he67e68c]
- [[オヤイデ 自作ページ:http://www.oyaide.com/diy/index.html]]
*** [[(有)横浜ベイサイドネット 馬車道店:http://www.baysidenet.jp/]] [#f2b6e0b7]
- 所在地:神奈川県横浜市中区北仲通4-45 松島ビル2F
- TEL/045-212-3682 、FAX/045-212-3683
- アクセス:みなとみらい線馬車道駅「6番赤煉瓦倉庫出口」徒歩1分
--(左隣がカフェ「80*80」、ビルの1階がスペイン料理店「el secreto」)
*** cubox npd [#haaa136f]
- 現在稼働中のイメージ : みみず工房 梅雨入りバージョン (3.8-rt arch linux)
- インストール時の変更点
-- nfs のマウントポイントの設定

 [root@cubox ~]# cat /etc/fstab
 #
 # /etc/fstab: static file system information
 #
 # <file system> <dir>   <type>  <options>       <dump>  <pass>
 #//debian/public/CD /music cifs  username=xxx,password=xxx,sec=ntlm,uid=root,file_mode=0666,dir_mode=0766,iocharset=utf8,rsize=130048,wsize=0
 #/192.168.1.23/raid_vol/home/munakata/hifiaudio /music cifs username=munakata,password=freedman,sec=ntlm,uid=mpd,file_mode=0666,dir_mode=070
 #debian:/public/CD /music nfs rsize=130048,wsize=4096 0 0
 mythen.hmuna.com:/raid_vol/home/munakata/hifiaudio /music nfs rsize=130048,wsize=4096 0 0
 #mythen.hmuna.com:/raid_vol/home/munakata/hifiaudio /music nfs defaults 0 0

-- nfs マウントには cubox 側で rpcbind を動かす必要がある! ← ここが一番のハマりところ
 [root@cubox ~]# systemctl enable rpcbind.service


** CUBOX install procedure [#b667c855]
*** image download [#g4b6703c]
*** image extract by "7z" on ubuntu [#w2d6be62]
 munakata@mythen:~/Download$ 7z x cubox-audio-130608.img.7z 
 
 7-Zip [64] 9.20  Copyright (c) 1999-2010 Igor Pavlov  2010-11-18
 p7zip Version 9.20 (locale=ja_JP.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
 
 Processing archive: cubox-audio-130608.img.7z
 
 Extracting  cubox-audio-130608.img
 
 Everything is Ok
 
 Size:       3930062848
 Compressed: 467881232

*** SD image copy [#w883941e]
- fisdk でパーティション全削除 → 書き込み
- dd if=cubox-audio-130608.img of=/dev/(SD card)

*** boot & console connection [#fb6fa18b]
- minicom -s  で /dev/ttyUSB0 の ハードフロー制御を無効に

*** LAN 固定アドレスの設定 (/etc/network.d/ethernet-eth0) [#u962de80]
 
 [root@cubox ~]# cat /etc/network.d/ethernet-eth0 
 #CONNECTION='ethernet'
 #DESCRIPTION='A basic dhcp ethernet connection using iproute'
 #INTERFACE='eth0'
 #IP='dhcp'
 ## for DHCPv6
 #IP6='dhcp'
 ## for IPv6 autoconfiguration
 #IP6='stateless'
 
 
 ## Change for static
 CONNECTION='ethernet'
 DESCRIPTION='A basic static ethernet connection using iproute'
 INTERFACE='eth0'
 IP='static'
 ADDR='192.168.1.48'
 ##ROUTES=('192.168.0.0/24 via 192.168.1.2')
 GATEWAY='192.168.1.1'
 DNS=('192.168.1.1')
 
 ## For IPv6 autoconfiguration
 #IP6=stateless
 
 ## For IPv6 static address configuration
 #IP6='static'
 #ADDR6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
 #ROUTES6=('abcd::1234')
 #GATEWAY6='1234:0:123::abcd'

*** NFS v4 を使う準備 [#b6f2295d]
 mount.nfs: rpc.statd is not running but is required for remote locking.
 mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
 mount.nfs: an incorrect mount option was specified
- To fix this, you need to change the "NEED_STATD" value in /etc/conf.d/nfs-common.conf to YES.
- Remember to start all the required services (see NFS or NFSv3), not just the nfs service.
 
*** NFS マウントポイントの設定 (/etc/fstab) [#e09439e2]

 [root@cubox ~]# cat /etc/fstab 
 #
 # /etc/fstab: static file system information
 #
 # <file system> <dir>   <type>  <options>       <dump>  <pass>
 #//debian/public/CD /music cifs  username=xxx,password=xxx,sec=ntlm,uid=root,file_mode=0666,dir_mode=0766,iocharset=utf8,rsize=130048,wsize=4096 0 0
 #debian:/public/CD /music nfs rsize=130048,wsize=4096 0 0
 mythen.hmuna.com:/raid_vol/home/munakata/hifiaudio /music nfs rsize=130048,wsize=4096 0 0

*** mpd 用にリンクはる [#fd547bad]

 [root@cubox ~]# ln -s /music /var/lib/mpd/music
 [root@cubox ~]# ls -l /var/lib/mpd/music/music
 lrwxrwxrwx 1 root root 6 Jun 30 11:00 /var/lib/mpd/music/music -> /music

*** パッケージのインストール [#uf603ce1]
-  最初に全体を Update する (しないと vim が入らなかった) 
 [root@cubox ~]# pacman -Syu
- vim
 [root@cubox ~]# pacman -S vim
 Packages (3): gpm-1.20.7-2  vim-runtime-7.3.918-1  vim-7.3.918-1
- darkhttpd (ジャケ写用)
 [root@cubox ~]# pacman -S darkhttpd

*** ジャケ写 用サーバーの起動設定 [#la031bc3]

公開するディレクトリは起動時の引数で指定できるので、/etc/init.d/mpdset.confの mpd_start部分に darkhttpd /var/lib/mpd/music/

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS