私の続いている趣味の1つにビデオゲームがあります。
最近はGTAオンラインを始めとしたオープンワールドゲームを遊ぶことが多いのですが、今まで色んなジャンルを遊んできました。
ローグライクのゲームもトルネコやシレンと言った有名どころはプレイした事がありますが、元になったローグをふと見てみたくなったので遊んでみようと思います。
私の業務上Linuxを触る機会が多いのですが、UNIXやLinuxで遊ばれていたゲーム、特に昔のターミナルでプレイできるゲームに趣味も相まって興味を持ったというわけです。
オリジナルのローグはBSD UNIXで作られたクローズドソースの様なので結局ローグライクになってしまいますが。
debianのnon-freeリポジトリにあるらしい
ターミナルのローグライクといっても沢山パッケージが出て来ます。
何をプレイしましょう。
どこのサイトか忘れましたが、昔debianでrogueが遊べるよというのを見たのでdebianのパッケージをやってみます。
パッケージ名はbsdgames-nonfreeで、non-freeというセクションにあり、
利用や再配布に何らかの制限があるそうです。
これ以上詳しいことは書いていませんが、個人でやるだけなのでとりあえずやってみましょう。
環境
debianのリポジトリにあるのでとりあえずOSはdebianでやってみます。
debianを新規インストールまではやりたくないのでおなじみのubuntu LXD上にインスタンス立てます。
- ホスト機の環境
masashi@PC-ubuntu:~$ uname -a ; lxc --version Linux PC-ubuntu 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux 4.0.4
インスタンス作成
ローカルのLXDにはdebianのイメージが無かったのでイメージのリポジトリからインストールします。
バージョンは新しいbullseyeにしました。
- イメージのリポジトリはこちら
https://us.images.linuxcontainers.org/
remoteの部分を"images"で指定すればリポジトリを参照してくれます。
masashi@PC-ubuntu:~$ lxc launch Description: Create and start instances from images Usage: lxc launch [<remote>:]<image> [<remote>:][<name>] [flags]
masashi@PC-ubuntu:~$ lxc launch images:debian/bullseye debian Creating debian Starting debian masashi@PC-ubuntu:~$ lxc list +--------------+---------+---------------------+------+-----------+-----------+ | NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS | +--------------+---------+---------------------+------+-----------+-----------+ | cent7-wp | RUNNING | 10.94.47.121 (eth0) | | CONTAINER | 1 | +--------------+---------+---------------------+------+-----------+-----------+ | debian | RUNNING | 10.94.47.234 (eth0) | | CONTAINER | 0 | +--------------+---------+---------------------+------+-----------+-----------+ | firefly | RUNNING | 10.94.47.60 (eth0) | | CONTAINER | 0 | +--------------+---------+---------------------+------+-----------+-----------+ | lxdMosaic | RUNNING | 10.94.47.161 (eth0) | | CONTAINER | 0 | +--------------+---------+---------------------+------+-----------+-----------+ | transmission | STOPPED | | | CONTAINER | 0 | +--------------+---------+---------------------+------+-----------+-----------+ | ubuntu16 | RUNNING | 10.94.47.120 (eth0) | | CONTAINER | 2 | +--------------+---------+---------------------+------+-----------+-----------+ | ubuntu-pr | STOPPED | | | CONTAINER | 0 | +--------------+---------+---------------------+------+-----------+-----------+
masashi@PC-ubuntu:~$ lxc exec debian -- /bin/bash root@debian:~# uname -a Linux debian 5.4.0-58-generic #64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020 x86_64 GNU/Linux root@debian:~# cat /etc/debian_version bullseye/sid
launchコマンド一発でdebianインストール完了です。
コンテナは簡単でいいですねえ。
パッケージインストール
コンテナに入っての作業になります。
- リポジトリにnon-freeを追加
root@debian:~# cat /etc/apt/sources.list # Generated by distrobuilder deb http://deb.debian.org/debian bullseye main non-free
- リポジトリアップデート
root@debian:~# apt update Get:1 http://deb.debian.org/debian bullseye InRelease [123 kB] Get:2 http://deb.debian.org/debian bullseye/main amd64 Packages.diff/Index [27.9 kB] Get:3 http://deb.debian.org/debian bullseye/main Translation-en.diff/Index [27.9 kB] Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages 2020-12-13-0800.13.pdiff [9977 B] Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages 2020-12-13-0800.13.pdiff [9977 B] Get:5 http://deb.debian.org/debian bullseye/main Translation-en 2020-12-13-0800.13.pdiff [1903 B] Get:5 http://deb.debian.org/debian bullseye/main Translation-en 2020-12-13-0800.13.pdiff [1903 B] Get:6 http://deb.debian.org/debian bullseye/non-free amd64 Packages [95.4 kB] Get:7 http://deb.debian.org/debian bullseye/non-free Translation-en [90.9 kB] Fetched 377 kB in 3s (149 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date.
- 検索
root@debian:~# apt search bsdgames-nonfree
Sorting... Done
Full Text Search... Done
bsdgames-nonfree/testing 2.17-8 amd64
rogue, the classic dungeon exploration game
ちゃんとパッケージが出てきましたね。
roguelikeではなくrogueと説明に書いてますが、オリジナルなんですかね?
他のパッケージはroguelikeと説明があるので謎ですね。
実はオリジナルなのか、この謎は追ってみたい。
- インストール
root@debian:~# apt install bsdgames-nonfree
これで準備OK。
ファイルの場所
/usr/games配下にインストールされるようです。
ファイル名はrogueの様ですね。
root@debian:~# ls -l /usr/games/rogue -rwxr-sr-x 1 root games 145712 Mar 1 2019 /usr/games/rogue
と、長くなってしまったので実際のプレイは次回書きたいと思います。