履歴: 電気回路/z-turn/Linuxの設定
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 14 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2017/2/14 9:54:21 | 電気回路/z-turn/Linuxの設定 最新版 | 10,224 | +1 | -1 | 表示 | 差分 | — |
| 2017/2/14 9:54:21 | 電気回路/z-turn/Linuxの設定 | 10,230 | +4 | -5 | 表示 | 表示中 | 選択 |
| 2017/2/14 0:54:21 | 電気回路/z-turn/Linuxの設定 | 10,246 | +9 | -0 | 表示 | 差分 | 選択 |
| 2017/2/14 0:54:21 | 電気回路/z-turn/Linuxの設定 | 10,175 | +25 | -39 | 表示 | 差分 | 選択 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 11,131 | +1 | -1 | 表示 | 差分 | 基準 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 11,128 | +11 | -0 | 表示 | 差分 | 選択 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 10,907 | +2 | -2 | 表示 | 差分 | 選択 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 10,913 | +27 | -2 | 表示 | 差分 | 選択 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 10,445 | +32 | -4 | 表示 | 差分 | 選択 |
| 2017/2/6 15:57:27 | 電気回路/z-turn/Linuxの設定 | 9,881 | +9 | -9 | 表示 | 差分 | 選択 |
| 2017/2/6 8:02:54 | 電気回路/z-turn/Linuxの設定 | 10,016 | +236 | -50 | 表示 | 差分 | 選択 |
| 2017/1/27 6:00:05 | 電気回路/z-turn/Linuxの設定 | 3,385 | +0 | -61 | 表示 | 差分 | 選択 |
| 2017/1/26 14:20:18 | 電気回路/z-turn/Linuxの設定 | 5,036 | +133 | -11 | 表示 | 差分 | 選択 |
| 2017/1/26 9:16:58 | 電気回路/z-turn/Linuxの設定 | 1,962 | — | — | 表示 | — | 選択 |
基準: 電気回路/z-turn/Linuxの設定 (2017/2/6 15:57:27) → 比較: 電気回路/z-turn/Linuxの設定 (2017/2/14 9:54:21)
@@ -94,74 +94,61 @@
$ sudo cp /usr/bin/qemu-arm-static $targetdir/usr/bin
$ sudo cp /etc/resolv.conf $targetdir/etc
$ sudo chroot $targetdir
+ $ bash --version
+ GNU bash, version 4.4.11(1)-release (arm-unknown-linux-gnueabihf)
+ Copyright (C) 2016 Free Software Foundation, Inc.
+ License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
+
+ This is free software; you are free to change and redistribute it.
+ There is NO WARRANTY, to the extent permitted by law.
-以降は ~/z-turn/rootfs をルートディレクトリとして実行されることになります。
+以降は ~/z-turn/rootfs をルートディレクトリとして,
+arm エミュレータ上で実行されることになります。
+** debootstrap の2段目を起動 [#i0357483]
-
-** debootstrap の2段目(arm エミュレータ)を起動 [#i0357483]
-
LANG:console
$ export distro=jessie
$ export LANG=C
$ /debootstrap/debootstrap --second-stage
- $ uname -a
- Linux debian8 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) armv7l GNU/Linux
- ^^^^^^
-以降は arm エミュレータ上で実行していることになります。
-
** apt の設定 [#o3545f51]
LANG:console
- $ cat <<EOT > /etc/apt/sources.list
+ $ cat > /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian $distro main contrib non-free
deb-src http://ftp.jp.debian.org/debian $distro main contrib non-free
deb http://ftp.debian.org/debian $distro-updates main contrib non-free
deb-src http://ftp.debian.org/debian $distro-updates main contrib non-free
deb http://security.debian.org/debian-security $distro/updates main contrib non-free
deb-src http://security.debian.org/debian-security $distro/updates main contrib non-free
- EOT
- $ cat << EOT > /etc/apt/apt.conf.d/71-no-recommends
+ ^D
+ $ cat > /etc/apt/apt.conf.d/71-no-recommends
APT::Install-Recommends "0";
APT::Install-Suggests "0";
- EOT
+ ^D
$ apt-get update
$ apt-get install locales dialog
$ dpkg-reconfigure locales
Generating locales (this might take a while)...
- en_US.ISO-8859-1... done
- en_US.ISO-8859-15... done
en_US.UTF-8... done
- ja_JP.EUC-JP... done
ja_JP.UTF-8... done
Generation complete.
+ $ apt-get install etckeeper # /etc 以下の更新履歴を取る
+
** 必要最低限のパッケージをインストール [#mbd4f937]
+- jed は普段使っている emacs ライクなエディタです
+- aptitude は何らかのパッケージがインストール済みかどうかを調べるのに便利なので
+
LANG:console
- $ apt-get install openssh-server ntpdate resolvconf sudo hwinfo ntp tcsh zsh jed
- The following extra packages will be installed:
- jed-common libbsd0 libedit2 libgpm2 libgssapi-krb5-2 libhd21 libk5crypto3 libkeyutils1
- libkrb5-3 libkrb5support0 libonig2 libopts25 libpng12-0 libslang2-modules libwrap0
- openssh-client openssh-sftp-server slsh zsh-common
- Suggested packages:
- gpm info info-browser krb5-doc krb5-user ntp-doc ssh-askpass libpam-ssh keychain
- monkeysphere rssh molly-guard ufw zsh-doc
- Recommended packages:
- krb5-locales tcpd perl lockfile-progs xauth ncurses-term
- The following NEW packages will be installed:
- hwinfo jed jed-common libbsd0 libedit2 libgpm2 libgssapi-krb5-2 libhd21 libk5crypto3
- libkeyutils1 libkrb5-3 libkrb5support0 libonig2 libopts25 libpng12-0 libslang2-modules
- libwrap0 ntp ntpdate openssh-client openssh-server openssh-sftp-server resolvconf slsh
- sudo tcsh zsh zsh-common
- 0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
- Need to get 8946 kB of archives.
- After this operation, 28.4 MB of additional disk space will be used.
- ...
- [ ok ] Starting NTP server: ntpd.
- ...
- [ ok ] Starting OpenBSD Secure Shell server: sshd.
+ $ apt-get install openssh-server ntpdate resolvconf sudo hwinfo ntp samba jed aptitude
+** 開発用ツールのインストール [#y84f349d]
+
+ LANG:console
+ $ apt-get install build-essential
+
** ネットワークとファイルシステムの設定 [#ldbd3b11]
- eth0 を DHCP でネットワーク接続
@@ -188,17 +175,16 @@
Adding user `osamu' to group `sudo' ...
Adding user osamu to group sudo
Done.
+ $ su osamu
+ $ groups
+ osamu sudo
+ $ exit
-** 開発環境のインストール [#y84f349d]
- LANG:console
- $ apt-get install build-essential
-
** 次回以降、ホスト PC のarm エミュレータ上で arm コンソールを起動するには [#icc733a5]
LANG:console
$ sudo chroot ~/z-turn/rootfs
- $ /usr/bin/qemu-arm-static /bin/bash
** ファイルシステムのコピー [#kac02ea1]
@@ -356,6 +342,14 @@
ロジック (*.bit) やデバイスツリー (*.dtb) を書き換えるのに
SD カードを抜き差ししなくてよくなるのでとても楽です。
+* ちょいメモ [#f293e538]
+
+手動でインストールしたパッケージを一覧する
+
+ $ apt-mark showmanual
+
+
+
* コメント・質問 [#x541d936]
#article_kcaptcha