Bash on Windows: WSL上でArchLinuxを動かす


Table of Contents

1 alwsl.batのダウンロード

alwslのページからalwsl.batをダウンロードします。現状は一度Ubuntuをインストールした後、Ubuntu上でArchLinuxにルートファイルシステムを変更する処理になっています。

2 alwsl.batの実行

cmd.exeでalwsl.bat installを実行します。

> alwsl.bat install<snip>Do you want to start bash now? [Y,N]? Y

ArchLinuxのロゴが表示された後、rootユーザでbashが立ち上がります。再度cmd.exeでbashを実行すれば、rootユーザでbashが立ち上がります。

0001_alwsl.png

pacmanでリポジトリを更新します。

# pacman -Syu

sudo環境を整えます。

# pacman -S –noconfirm sudo# pacman -S –noconfirm emacs# EDITOR=emacs visudo # Remove ‘#’ before %wheel

ユーザを追加します。

# useradd -m hiroom2# passwd hiroom2# gpasswd -a hiroom2 wheel# su – hiroom2

systemdの動かし方がよくわかりませんでしたが、現在Ubuntu 16.04も対応されているので、Ubuntu 16.04でsystemdが動くようになれば、ArchLinuxでも動くようになるでしょう。

Android | Linux | SDL - Narrow Escape