5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[メモ] Raspbian: 最新イメージ作成

Last updated at Posted at 2016-09-01

概要

これは、ラズベリーパイ財団から公式のソースコードを使用して、https://github.com/ssfdre38/rpi-gen にあるssfdre38のrpi-genツールから作成されたRaspbianイメージのダウンロードへのアクセスです。
Raspbianは、オープンソースで、ラズベリーパイのために自由に使用、作成できます。
Rasbianはラズベリーパイ2/3のためのものであり、Raspbian-Liteは、ラズベリーパイ1/2/3/ゼロSBCのためのものです。(ぐーぐる翻訳改? 怪?)

環境

  • Ubuntu 16.04 x86_64

    18GBくらい使うよ。

mt08@u16:~$ sudo du -sh ~/rpi-gen/
18G /home/mt08/rpi-gen/
mt08@u16:~$


- Raspberry Pi 3 (動作確認用)

## 手順
- Raspbian(FULL)と Raspbian-lite両方できます。(Noobsのイメージもできてる?)

1. `sudo apt install quilt kpartx pxz`<br>とりあえず、エラーでてとまったやつで必要そうなもの..<br>素のUbuntuでなかったので、もっと必要なものがあるかも
2. スクリプト取得~作成

    ```bash:build.shを呼ぶ。
cd ~
git clone https://github.com/ssfdre38/rpi-gen.git
cd rpi-gen
sudo ./build.sh
  1. deployフォルダの下に zip, work/.../export-imageにイメージができる。

mt08@u16:~$ cd ~/rpi-gen/deploy
mt08@u16:~/rpi-gen/deploy$ ls -l
total 1660872
drwxr-xr-x 2 root root 4096 Aug 31 16:30 2016-08-31-raspbian
-rw-r--r-- 1 root root 306656881 Aug 31 16:04 2016-08-31-raspbian-lite.zip
-rw-r--r-- 1 root root 1394064888 Aug 31 16:15 2016-08-31-raspbian.zip
mt08@u16:~/rpi-gen/deploy$ cd ~/rpi-gen/work/2016-08-31-raspbian/export-image
mt08@u16:~/rpi-gen/work/2016-08-31-raspbian/export-image$ ls -l
total 4485524
drwxr-xr-x 3 root root 4096 Aug 31 16:07 00-pc
-rw-r--r-- 1 root root 4019191808 Aug 31 16:08 2016-08-31-raspbian.img
-rw-r--r-- 1 root root 1387266048 Aug 31 16:03 2016-08-31-raspbian-lite.img
drwxr-xr-x 2 root root 4096 Aug 31 16:04 rootfs
mt08@u16:~/rpi-gen/work/2016-08-31-raspbian/export-image$


4. 動作確認。
    1. `2016-08-31-raspbian.img`をmicroSDに焼いく
    2. 起動を確認
    3. apt-get updateとdist-upgrade => 、<font color='red'>出来立ては、更新するものなし!</font>

        ```shell-session
pi@raspberrypi:~ $ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages  
...
... 省略
...
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Reading package lists... Done
pi@raspberrypi:~ $ sudo apt-get dist-upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspberrypi:~ $ 

その他

  • パッケージ比較はしてないけど、minecraft-piとか wolfram-engineとか入ってるし...

pi@raspberrypi:~ $
pi@raspberrypi:~ $ dpkg -l | wc
1162 11604 162358
pi@raspberrypi:~ $ dpkg -l | grep minecraft
ii minecraft-pi 0.1.1-4 armhf Minecraft for the Raspberry Pi
ii python-minecraftpi 0.1.1-4 armhf Python API for Minecraft Pi
ii python3-minecraftpi 0.1.1-4 armhf Python 3 API for Minecraft Pi
pi@raspberrypi:~ $ dpkg -l | grep wolfram
ii wolfram-engine 10.3.1+2016012407 armhf Mathematica® and the Wolfram Language
pi@raspberrypi:~ $

5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?