読者です 読者をやめる 読者になる 読者になる

orangepi pc2 に ubuntu 入れて起動した

ぞい

orangepi pc2 を買う

f:id:laughing:20161211223300j:plain

準備

イメージは公式のものを使う

http://www.orangepi.org/downloadresources/orangepipc2/2016-11-25/orangepipc2_1c39e232e661b841ae33ab79.html

展開

$ xz -d ~/Downloads/Ubuntu_Desktop_Xenial_xfce4_PC2_V1_0_0.img.xz

書き込み先確認

$ diskutil list
/dev/disk4 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *32.0 GB    disk4
   1:             Windows_FAT_32 NO NAME                 32.0 GB    disk4s1

書き込み

$ sudo diskutil umount /dev/disk4s1 # アンマウントしてから
Volume NO NAME on disk4s1 unmounted
$ sudo dd bs=1m if=Downloads/Ubuntu_Desktop_Xenial_xfce4_PC2_V1_0_0.img of=/dev/rdisk4 # 書き込む
3580+0 records in
3580+0 records out
3753902080 bytes transferred in 158.728002 secs (23649904 bytes/sec)

起動

f:id:laughing:20161211235522j:plain

fastText をコンパイルして example を叩いてみたぞい

github.com

  1. git clone して
  2. cd fastText して
  3. make
  4. wget がインストールされてなかったので brew install wget
  5. ./classification-example.sh を叩くぞい
$ time ./classification-example.sh
--2016-08-05 23:11:03--  https://googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k
Resolving googledrive.com... 2404:6800:400a:808::2001, 216.58.200.161
Connecting to googledrive.com|2404:6800:400a:808::2001|:443... failed: Connection refused.
Connecting to googledrive.com|216.58.200.161|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://8c47f35de2544a202d525720f08188d254682381.googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k [following]
--2016-08-05 23:11:03--  https://8c47f35de2544a202d525720f08188d254682381.googledrive.com/host/0Bz8a_Dbh9QhbQ2Vic1kxMmZZQ1k
Resolving 8c47f35de2544a202d525720f08188d254682381.googledrive.com... 2404:6800:4004:801::2001, 216.58.197.161
Connecting to 8c47f35de2544a202d525720f08188d254682381.googledrive.com|2404:6800:4004:801::2001|:443... failed: Connection refused.
Connecting to 8c47f35de2544a202d525720f08188d254682381.googledrive.com|216.58.197.161|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: 'data/dbpedia_csv.tar.gz'

data/dbpedia_csv.tar.gz                                [                              <=>                                                                                  ]  65.17M  10.9MB/s   in 6.0s

2016-08-05 23:11:10 (10.8 MB/s) - 'data/dbpedia_csv.tar.gz' saved [68341698]

x dbpedia_csv/
x dbpedia_csv/classes.txt
x dbpedia_csv/test.csv
x dbpedia_csv/train.csv
x dbpedia_csv/readme.txt
make: Nothing to be done for `all'.
Read 32M words
Progress: 100.0%  words/sec/thread: 2064701  lr: 0.000001  loss: 0.089004  eta: 0h0m
Train time: 24.000000 sec
P@1: 0.985
Number of examples: 70000
./classification-example.sh  185.58s user 5.97s system 216% cpu 1:28.33 total

早い(確信

packer と spot instance を使って AMI を作ろうとした話

price too low で作れないぞい f:id:laughing:20160615013110p:plain

参考

system.blog.uuum.jp

github.com