pythonベースで。
仮想環境をつくる。
$ python3.6 -m venv ~/root/env/py/ranger/
仮想環境をアクティベートする。
$ . ~/root/env/py/ranger/bin/activate
仮想環境に、ranger
, Pygments
を用意する。
before
$ pip list pip (9.0.1) setuptools (28.8.0)
以下の状態になるのが目標。
after
$ pip list pip (9.0.1) Pygments (2.2.0) ranger (0.10) setuptools (28.8.0)
パッケージを入れる
ファイラであるranger。
$ pip install ranger
コード ハイライター。
$ pip install pygments
HTMLテキストブラウザ。
$ pip install lynx elinks Collecting lynx Using cached lynx-0.3.1.tar.gz Collecting elinks Could not find a version that satisfies the requirement elinks (from versions: ) No matching distribution found for elinks
圧縮書庫用。
$ sudo apt-get install atool unrar zip unzip パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 Package unrar is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'unrar' has no installation candidate
失敗。こちらによると自前でコンパイルする必要がありそう。面倒なので unrar は諦める。
$ sudo apt-get install atool zip unzip ... unzip はすでに最新版です。 提案パッケージ: arc arj lzop nomarch rpm unace unalz rar unrar lzip 以下のパッケージが新たにインストールされます: atool lbzip2 zip アップグレード: 0 個、新規インストール: 3 個、削除: 0 個、保留: 33 個。 452 kB のアーカイブを取得する必要があります。 この操作後に追加で 810 kB のディスク容量が消費されます。 ...
参考
開発環境
- Raspberry Pi 3 Model B