MacOS SierraのISOイメージ作成

[VirtualBox]仮想環境で macOS Sierra を導入(isoイメージ作成)[Sierra] - Qiita

VirtualBoxMacOSの夢を見たいので

上記を参考にISOを作ります。

 

まず、App Storeから、MacOS Sierraをダウンロードしました。

※ コピペしやすいように、行頭の $ 外しておいた版

no_prompt
cp -a "/Applications/Install macOS Sierra.app/Contents/SharedSupport/InstallESD.dmg" .
hdiutil attach ./InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/esd
hdiutil create -o Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/iso
asr restore -source /Volumes/esd/BaseSystem.dmg -target /Volumes/iso -noprompt -noverify -erase
rm /Volumes/OS\ X\ Base\ System/System/Installation/Packages
cp -rp /Volumes/esd/Packages /Volumes/OS\ X\ Base\ System/System/Installation
cp -rp /Volumes/esd/BaseSystem.chunklist /Volumes/OS\ X\ Base\ System/
cp -rp /Volumes/esd/BaseSystem.dmg /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/esd
hdiutil detach /Volumes/OS\ X\ Base\ System
hdiutil convert Sierra.cdr.dmg -format UDTO -o Sierra.iso
mv Sierra.iso.cdr Sierra.iso 
rm Sierra.cdr.dmg

これを、シェルスクリプト(make_iso.sh)として保存して、

実行権限を付与(chmod +x)して実行します。

 

 

以下、ログです。

nao@tomori: make_iso$ chmod +x ./make_iso.sh
nao@tomori: make_iso$ sudo ./make_iso.sh
Password:
/dev/disk3              GUID_partition_scheme
/dev/disk3s1            EFI
/dev/disk3s2            Apple_HFS                          /Volumes/esd
...............................................................................
created: /Users/nao/MacOS_Sierra_ISO/Sierra.cdr.dmg
/dev/disk4              Apple_partition_scheme
/dev/disk4s1            Apple_partition_map
/dev/disk4s2            Apple_HFS                          /Volumes/iso
    Validating target...done
    Validating source...done
    Retrieving scan information...done
    Validating sizes...done
    Restoring  ....10....20....30....40....50....60....70....80....90....100
    Remounting target volume...done
"disk3" unmounted.
"disk3" ejected.
"disk4" unmounted.
"disk4" ejected.
Reading Driver Descriptor Map (DDM : 0)…
Reading Apple (Apple_partition_map : 1)…
Reading disk image (Apple_HFS : 2)…
...............................................................................
Elapsed Time: 39.336s
Speed: 186.0Mbytes/sec
Savings: 0.0%
created: /Users/nao/MacOS_Sierra_ISO/Sierra.iso.cdr

GNU Radioインストールログ(20170723)

参考:

Ubuntu 16.04 で build gnuradio - 石川高専 山田洋士研究室 Digital Filter Design Services

 

環境:

Ubuntu 16.04.2 LTS (on Oracle VM Virtual Box 5.1.24, Windows 10 Home 1703)

 

sbracを使用。

現在の最新版のGNU Radio 3.7.11.1がインストールされる。

4回ほど、Yes/Noの選択が出る。

3回yを押して、最後はどっちでも良い。

 

$ wget http://www.sbrac.org/files/build-gnuradio

$ chmod a+x build-gnuradio

$ ./build-gnuradio

 

以下、ログ。

kiyomasa@kiyomasa:~$ wget http://www.sbrac.org/files/build-gnuradio
--2017-07-23 13:36:38--  http://www.sbrac.org/files/build-gnuradio
Resolving www.sbrac.org (www.sbrac.org)... 67.212.80.242
Connecting to www.sbrac.org (www.sbrac.org)|67.212.80.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 41520 (41K) [text/plain]
Saving to: ‘build-gnuradio’

build-gnuradio               100%[==============================================>]  40.55K  78.1KB/s    in 0.5s

2017-07-23 13:36:40 (78.1 KB/s) - ‘build-gnuradio’ saved [41520/41520]

kiyomasa@kiyomasa:~$ chmod a+x build-gnuradio

kiyomasa@kiyomasa:~/gnuradio-1$ ./build-gnuradio
This script will install Gnu Radio from current GIT sources
You will require Internet access from the computer on which this
script runs. You will also require SUDO access. You will require
approximately 500MB of free disk space to perform the build.

This script will, as a side-effect, remove any existing Gnu Radio
installation that was installed from your Linux distribution packages.
It must do this to prevent problems due to interference between
a linux-distribution-installed Gnu Radio/UHD and one installed from GIT source.

The whole process may take up to two hours to complete, depending on the
capabilities of your system.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
NOTE: if you run into problems while running this script, you can re-run it with
the --verbose option to produce lots of diagnostic output to help debug problems.
This script has been written to anticipate some of the more common problems one might
encounter building ANY large, complex software package. But it is not pefect, and
there are certainly some situations it could encounter that it cannot deal with
gracefully. Altering the system configuration from something reasonably standard,
removing parts of the filesystem, moving system libraries around arbitrarily, etc,
it likely cannot cope with. It is just a script. It isn't intuitive or artificially
intelligent. It tries to make life a little easier for you, but at the end of the day
if it runs into trouble, a certain amount of knowledge on your part about
system configuration and idiosyncrasies will inevitably be necessary.


Proceed?y
Starting all functions at: 2017年 7月 23日 日曜日 14:08:43 JST
SUDO privileges are required
Do you have SUDO privileges?y
Continuing with script
Installing prerequisites.
====> THIS MAY TAKE QUITE SOME TIME <=====
Checking for package libqwt6
Checking for package libfontconfig1-dev
Checking for package libxrender-dev
Checking for package libpulse-dev
Checking for package swig
Checking for package g++
Checking for package automake
Checking for package autoconf
Checking for package libtool
Checking for package python-dev
Checking for package libfftw3-dev
Checking for package libcppunit-dev
Checking for package libboost-all-dev
Checking for package libusb-dev
Checking for package libusb-1.0-0-dev
Checking for package fort77
Checking for package libsdl1.2-dev
Checking for package python-wxgtk2.8
Failed to find package 'python-wxgtk2.8' in known package repositories
SOME THINGS MAY NOT BUILD AS A RESULT
Checking for package git-core
Checking for package libqt4-dev
Checking for package python-numpy
Checking for package ccache
Checking for package python-opengl
Checking for package libgsl0-dev
Checking for package python-cheetah
Checking for package python-mako
Checking for package python-lxml
Checking for package doxygen
Checking for package qt4-default
Checking for package qt4-dev-tools
Checking for package libusb-1.0-0-dev
Checking for package libqwt5-qt4-dev
Checking for package libqwtplot3d-qt4-dev
Checking for package pyqt4-dev-tools
Checking for package python-qwt5-qt4
Checking for package cmake
Checking for package git-core
Checking for package wget
Checking for package libxi-dev
Checking for package python-docutils
Checking for package gtk2-engines-pixbuf
Checking for package r-base-dev
Checking for package python-tk
Checking for package liborc-0.4-0
Checking for package liborc-0.4-dev
Checking for package libasound2-dev
Checking for package python-gtk2
Checking for package libzmq
Checking for package libzmq-dev
Checking for package libzmq1
Checking for package libzmq1-dev
Failed to find package 'libzmq1-dev' in known package repositories
SOME THINGS MAY NOT BUILD AS A RESULT
Checking for package python-requests
Checking for package python-sphinx
Checking for package comedi-dev
Checking for package python-zmq
Checking for package libncurses5
Checking for package libncurses5-dev
Checking for package python-wxgtk3.0
Done checking packages
Checking for library libusb ...Found library libusb
Checking for library libboost ...Found library libboost
Checking for library libcppunit ...Found library libcppunit
Checking for library libfftw ...Found library libfftw
Checking for library libgsl ...Found library libgsl
Done
This script will fetch Gnu Radio version 3.7/maint from the repositories, along with compatible
extras.
Is this OK?y
Fetching various packages (Gnu Radio, UHD, gr-osmosdr, gr-iqbal, etc)
via the Internet
=======> THIS MAY TAKE QUITE SOME TIME <=========
Fetching Gnu Radio via GIT...Done
Fetching UHD via GIT...Fetching rtl-sdr (rtl-sdr, gr-osmosdr, gr-iqbal, hackrf, bladeRF and airspy) via GIT
Done
Starting function uhd_build at: 2017年 7月 23日 日曜日 14:18:31 JST
Building UHD...
=============> THIS WILL TAKE SOME TIME <=============

Done building/installing UHD
Done function uhd_build at: 2017年 7月 23日 日曜日 14:35:11 JST
Starting function firmware at: 2017年 7月 23日 日曜日 14:35:11 JST
Images destination:      /usr/local/share/uhd/images
Downloading images from: http://files.ettus.com/binaries/images/uhd-images_003.010.002.000-rc1.zip
Downloading images to:   /tmp/tmp1aFhs6/uhd-images_003.010.002.000-rc1.zip
57477 kB / 57477 kB (100%)

Images successfully installed to: /usr/local/share/uhd/images
Done function firmware at: 2017年 7月 23日 日曜日 14:37:38 JST
Starting function gnuradio_build at: 2017年 7月 23日 日曜日 14:37:38 JST
/usr/local/lib already in ld.so.conf.d
Doing ldconfig...
Building Gnu Radio...
=========> THIS WILL TAKE QUITE A WHILE <=============

...Doing cmake
...Cmaking
...Building
...Installing
Done building and installing Gnu Radio
GRC freedesktop icons install ...Done
Done function gnuradio_build at: 2017年 7月 23日 日曜日 15:37:28 JST
Starting function rtl_build at: 2017年 7月 23日 日曜日 15:37:28 JST
Building rtl-sdr...Done building rtl-sdr
Building hackrf...Done building hackrf
Building gr-iqbal...Done building gr-iqbal
Building bladeRF...Done building bladeRF
Done building airspy
Building gr-osmosdr...Done building gr-osmosdr
Done building/installing rtl-sdr/gr-osmosdr
Done function rtl_build at: 2017年 7月 23日 日曜日 15:39:50 JST
Starting function mod_groups at: 2017年 7月 23日 日曜日 15:39:50 JST
********************************************************************************
This script has just modified /etc/group to place your userid '('$USER')' into group 'usrp'
In order for this change to take effect, you will need to log-out and log back
in again.  You will not be able to access your USRP1 device until you do this.

If you wish to allow others on your system to use the USRP1 device, you will need to use:

  sudo usermod -a -G usrp userid

For each userid you wish to allow access to the usrp

********************************************************************************

Further
Done function mod_groups at: 2017年 7月 23日 日曜日 15:39:50 JST
Starting function mod_udev at: 2017年 7月 23日 日曜日 15:39:50 JST
udevd: no process found
Done function mod_udev at: 2017年 7月 23日 日曜日 15:39:50 JST
Starting function mod_sysctl at: 2017年 7月 23日 日曜日 15:39:50 JST
Applying updates to /etc/sysctl.conf
Group 'usrp' now has real-time scheduling privileges
You will need to log-out and back in again for this to
take effect
Done function mod_sysctl at: 2017年 7月 23日 日曜日 15:39:51 JST
Starting function pythonpath at: 2017年 7月 23日 日曜日 15:39:51 JST


************************************************************
You should probably set your PYTHONPATH to:

     /usr/local/lib/python2.7/dist-packages

Using:

export PYTHONPATH=/usr/local/lib/python2.7/dist-packages

in your .bashrc or equivalent file prior to attempting to run
any Gnu Radio applications or Gnu Radio Companion.
*************************************************************
Done function pythonpath at: 2017年 7月 23日 日曜日 15:39:51 JST
Starting function extras at: 2017年 7月 23日 日曜日 15:39:51 JST
Done function extras at: 2017年 7月 23日 日曜日 15:39:51 JST
Done all functions at: 2017年 7月 23日 日曜日 15:39:51 JST
All Done

=======================================================================
If you have found this script useful and time-saving, consider a
donation to help me keep build-gnuradio, simple_ra, SIDsuite,
meteor_detector, simple_fm_rcv, and multimode maintained and up to date.
A simple paypal transfer to mleech@ripnet.com is all you need to do.
======================================================================
Send success/fail info to sbrac.org?y
Thanks

windows10上にvirtualboxを使ってubuntuをインストールした

Virtual Boxのダウンロード

Downloads – Oracle VM VirtualBox

Ubuntuのイメージディスクのダウンロード

Download Ubuntu Desktop | Download | Ubuntu

Ubuntu 16.04.2 LTSを選択した。

 Virtual Boxをインストールし、新規からUbuntuをインストールしようとしたが、

Ubuntu(32bit)など32bitしかない。

 

VirtualBoxの仮想マシンの作成で32bitしか表示されない

- BIOSの仮想化支援機機能の有効化

- Hyper-Vの削除

が必要らしい。

HP Spectre x360のBIOSだが、F10を押しながら再起動してもBIOS画面にならなかった。

HP Spectre X360でHyper-Vを使えるようにセットアップ - Living Absurd World

設定の「PCの起動をカスタマイズする」を選ぶ
→再起動されるとオプションが表示されるので「トラブルシューティング」、「詳細オプション」、「UEFIファームウェアセッティング」とたどって進んでいく。
→再起動されたらBios設定を選択
→System ConfigurationのVirtualization TechonologyをOnに
Biosから抜けてデスクトップへ進み、プログラムの一覧(アンインストールしたいアプリがあるときに開く画面で、左のメニューにある「Windowsの機能のOn」を開いてHyper-VをOnにする。
→あとはPCの自動処理に任せればOk

設定> PCの起動オプションを変更する>PCの起動をカスタマイズする

から「今すぐ再起動する」  ボタンを押す。

f:id:takuwz:20170722153441j:plain

「今すぐ再起動する」ボタンを押した後の画面。f:id:takuwz:20170722152130j:image

トラブルシューティングを選択した後。

f:id:takuwz:20170722152135j:image

詳細オプションを選択した後。「UEFIファームウェアの設定」を選択する。

f:id:takuwz:20170722152850j:image

 やっと見慣れたBIOS画面が出てきた。f:id:takuwz:20170722152149j:image

System Configurationタブの

Virtualization Technology項目があったのでこれをEnableにする。

f:id:takuwz:20170722152156j:image

Hyper-Vについては、私の環境ではWindows10 Homeなので項目がなかった。

 

この作業後、Virtual Boxの新規にUbuntu(64bit)の項目が表示されるようになった。

 あとはUbuntuのダイアログに従ってインストールした。

f:id:takuwz:20170722160123p:plain

パソコン新調しました

マックブクがweb巡回でプチフリするので。

メモリを、人権をくれーという感じで。

Spectre x360 13-ac000 パフォーマンスモデルを買いました。

2017年5月現在では、性能と価格のコスパ最高だと思う。

他、比較したのでめぼしいのはsurface book proとthinkpad yoga x1で、あとdellのとMacBookぐらい。

これで2年以上は戦いたい。

 

梱包がわりときれい。

f:id:takuwz:20170625124757j:image

梱包2。

f:id:takuwz:20170625124830j:image

内容物。

f:id:takuwz:20170625124902j:image

上面。

f:id:takuwz:20170625124914j:image

下面。

f:id:takuwz:20170625125026j:image

左側面。USB2.0あって助かる。

 f:id:takuwz:20170625125043j:image

右側面。充電兼用USB3.0

f:id:takuwz:20170625125234j:image

4K の解像度は13inchでは細かすぎて、普段使いはしなそう。

f:id:takuwz:20170625125304j:image

タッチペン便利。

タッチパネルのユーザエクスペリエンスのためにWin機した理由の一つ。

たのしー

f:id:takuwz:20170625125328j:image

 

深センに行った話(2016年冬、3日目)

■3日目。
台湾式の料理店が良かったので朝も行く。少し安くなる。

f:id:takuwz:20161212080827j:plain

ココナッツ?の熱めの甘い飲み物が不思議な味だった。

f:id:takuwz:20161212091205j:plain


高額紙幣用の切符券売機。ないわけじゃないっぽい。

f:id:takuwz:20161212082627j:plain


自販機もスマホ決済。

f:id:takuwz:20161212082641j:plain

 

香港空港へ戻る。
福田口岸、落馬洲 (Lok Ma Chau)側から出ることにした。

f:id:takuwz:20161212085025j:plain

 

九龍城跡の公園。

f:id:takuwz:20161212104626j:plain

 

 

f:id:takuwz:20161212103539j:plain

f:id:takuwz:20161212104139j:plain

f:id:takuwz:20161212104435j:plain

f:id:takuwz:20161212104638j:plain

f:id:takuwz:20161212104849j:plain

f:id:takuwz:20161212104858j:plain

f:id:takuwz:20161212105034j:plain


サンドイッチを食べて帰国。

f:id:takuwz:20161212131401j:plain

深センに行った話(2016年冬、2日目)

■2日目
なんかよくわからん中国のアニメ。

f:id:takuwz:20161211084545j:plain


華強北に向かう。めっちゃ工事してる。

f:id:takuwz:20161211093025j:plain


パン屋。かぼちゃパン。2元。
話しかけられたけど中国語わからないので答えられなかった。

中国語、勉強したい。

f:id:takuwz:20161211093359j:plain

 

華強北電子世界ビル。

f:id:takuwz:20161211094407j:plain

f:id:takuwz:20161211103651j:plain

f:id:takuwz:20161211103429j:plain

f:id:takuwz:20161211103335j:plain


めっちゃ工事してる。

f:id:takuwz:20161211094411j:plain


Wi-Fi使える。

f:id:takuwz:20161211095523j:plain


中国人的好寿司。

f:id:takuwz:20161211113210j:plain

f:id:takuwz:20161211113158j:plain


通天地通称市場。

f:id:takuwz:20161211114538j:plain


マクドナルドのタッチパネル注文。
チキンカツ丼。

f:id:takuwz:20161211115007j:plain

f:id:takuwz:20161211115355j:plain


makersホテル。

f:id:takuwz:20161211123451j:plain


華強北電子世界ビルの中。電子部品が大量。
ラジ館が4個ぐらい10階建てビルである。
それと別にスマホの部品ビルがある。

f:id:takuwz:20161211125429j:plain


しゅうまい、うまい。3元。読み方がわからないので書いて注文した。

f:id:takuwz:20161211134753j:plain


バランスホイール、何人か乗ってた。
クラクションがうるさい。

f:id:takuwz:20161211174618j:plain


台湾式のこの店がとても良かった。

f:id:takuwz:20161211183116j:plain

f:id:takuwz:20161211184649j:plain