0
0

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 3 years have passed since last update.

VirtualBoxにSECCON版のTsurugi Linuxをインストールする

Last updated at Posted at 2021-07-15

Tsurugi Linuxはカッコいいだけじゃない

Tsurugi Linux Your DFIR Linux distribution
image0.png

SECCON版のTsurugi Linuxをダウンロードする

SECCON版ISO

VirtualBoxに空の仮想マシンを用意する

仮想マシン-新規で空の仮想マシンを作る
image1.png
ストレージは(とりあえず)80GBに設定
image2.png *画像は仮想マシン作成後のもの
メモリは(とりあえず)4GBに設定
image3.png *画像は仮想マシン作成後のもの

仮想マシンを起動する

起動する
image4.png
デバイス-光学ドライブからisoファイルを選択

ターミナルでエラーが表示されたらデバイス-光学ドライブでダウンロードしたisoファイル(tsurugi_seccon_2019.iso)を選択する
起動しない場合は仮想マシン-リセットで再起動する
起動した ↓
image5.png
*画像はインストール後のもの

インストールする

デスクトップにあるInstall TSURUGI 2019.1からインストーラーを起動してインストール

VirtualBox Guest Additionsをインストールする

VirtualBox Guest Additionsをダウンロード

VirtualBox Guest Additions
image6.png
*画像は2021/7/15現在最新版のもの

クリップボードとドラッグ&ドロップは双方向に設定
image6.png
共有フォルダーは自動マウント、永続化で設定
image7.png
Guest Additionsをインストールする

Guest Additionsイメージの挿入でマウントする
image8.png

インストーラー起動でインストール後共有フォルダー用のユーザーに追加する

bash
sudo /media/(user)/VBox_GAs_6.1.22/autorun.sh
sudo adduser (user) vboxsf
日本語環境をインストールする
bash
sudo apt update
sudo apt purge locales
sudo apt purge language-pack-ja
sudo apt install locales
sudo apt install language-pack-ja
sudo locale-gen
echo "export LANG=ja_JP.UTF-8" >> .bashrc

再起動後日本語入力(半/全で切り替え)とコピペとD&Dと共有フォルダーなどひととおり使えるようになる(はず、いろいろとあってできないこともある)。

おまけ

ターミナルのフォントはLiberation Mono Bold 10が快適だった

image.png

radare2を最新にする

インストール後のradare2のバージョン

$ radare2 -v
radare2 4.1.0-git 24455 @ linux-x86-64 git.4.0.0-235-g982be50
commit: 982be504999364c966d339c4c29f20da80128e14 build: 2019-12-17__10:29:05

アップデートしてみる(失敗、下がった)

$ sudo apt update
$ sudo apt install radare2
$ radare2 -v
radare2 0.9.6 @ linux-little-x86-64 git.0.9.6
commit: 1: build: 2014-04-10

これも失敗

$ pip install r2env
Collecting r2env
  Downloading https://files.pythonhosted.org/packages/4d/26/b881c957004c87ed53799d1703d134f9910e2176964c2de9fc0649ad66ee/r2env-0.3.5.tar.gz
    ERROR: Command errored out with exit status 1:
…

gitでやる、なんとか成功

$ sudo git clone https://github.com/radareorg/radare2

# sudoでは実行ファイル生成でエラーになったのでrootになってインストール
$ su -

# ダウンロードした最新版のinstall.shを起動
# radare2/sys/install.sh

# radare2 -v
radare2 5.4.0-git 26457 @ linux-x86-64 git.5.4.0-git
commit: e5fcf4a51822d17006885ae3f8a54157c833b32b build: 2021-07-16__11:10:29
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?