コンテンツ
bash on Windows10を使用できるようにする方法と注意事項は、以下の記事にまとめてあります!正式名称は「bash on Ubuntu on Windows10」です。
Windows10をUbuntuのコマンドで操作する! 1.使えるように準備をする(開発者モードを有効にする)!
64ビット版 Windows10のインストール「bash on Windows10」と呼ばれている機能です。2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません
Windows10をUbuntuのコマンドで操作する! 2.「bash on Windows10」を有効にする!
「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま
Windows10をUbuntuのコマンドで操作する! 3.「bash on Windows10」のインストール!
「bash on Windows10」のインストール2016年5月現在、ベータ版です。Windows10インサイダー プレビュー版が必要です。通常のWindows10では利用できません。また、64ビット版Windows10でないと使用できま
Windows10をUbuntuのコマンドで操作する! 4.bash on Windows10(ばっしゅ おん うぃんどうずてん)を起動する!
前回までの記事この記事はbash on Windows10を使えるようにするまでの記事の4番目です。1-3番目の記事は以下をどうぞ!bash on Windows10の起動bash on Windows10を起動するには以下のようにします。
「bash on Windows10」で高速で有名なWEBサーバをインストールするには、以下のコマンドを実行します
sudo apt-get install nginx
それでは実行してみましょう。
t@DESKTOP-1QGFR8O:~$ sudo apt-get install nginx Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap os-prober php5-cli php5-readline ssl-cert Use 'apt-get autoremove' to remove them. The following extra packages will be installed: fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5 libvpx1 libxpm4 libxslt1.1 nginx-common nginx-core Suggested packages: libgd-tools fcgiwrap nginx-doc The following NEW packages will be installed: fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libtiff5 libvpx1 libxpm4 libxslt1.1 nginx nginx-common nginx-core 0 upgraded, 14 newly installed, 0 to remove and 25 not upgraded. Need to get 2,705 kB of archives. After this operation, 9,057 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.1 [47.4 kB] Get:3 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1 amd64 2.11.0-0ubuntu4.1 [123 kB] Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg-turbo8 amd64 1.3.0-0ubuntu2 [104 kB] Get:5 http://archive.ubuntu.com/ubuntu/ trusty/main libjpeg8 amd64 8c-2ubuntu8 [2,194 B] Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libjbig0 amd64 2.0-2ubuntu4.1 [26.1 kB] Get:7 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtiff5 amd64 4.0.3-7ubuntu0.4 [143 kB] Get:8 http://archive.ubuntu.com/ubuntu/ trusty/main libvpx1 amd64 1.3.0-2 [556 kB] Get:9 http://archive.ubuntu.com/ubuntu/ trusty/main libxpm4 amd64 1:3.5.10-1 [38.3 kB] Get:10 http://archive.ubuntu.com/ubuntu/ trusty/main libgd3 amd64 2.1.0-3 [147 kB] Get:11 http://archive.ubuntu.com/ubuntu/ trusty/main libxslt1.1 amd64 1.1.28-2build1 [145 kB] Get:12 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-common all 1.4.6-1ubuntu3.4 [18.3 kB] Get:13 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx-core amd64 1.4.6-1ubuntu3.4 [325 kB] Get:14 http://archive.ubuntu.com/ubuntu/ trusty-updates/main nginx all 1.4.6-1ubuntu3.4 [5,616 B] Fetched 2,705 kB in 9s (295 kB/s) E: Can not write log (Is /dev/pts mounted?) - openpty (2: No such file or directory) Selecting previously unselected package fonts-dejavu-core. (Reading database ... 27341 files and directories currently installed.) Preparing to unpack .../fonts-dejavu-core_2.34-1ubuntu1_all.deb ... Unpacking fonts-dejavu-core (2.34-1ubuntu1) ... Selecting previously unselected package fontconfig-config. Preparing to unpack .../fontconfig-config_2.11.0-0ubuntu4.1_all.deb ... Unpacking fontconfig-config (2.11.0-0ubuntu4.1) ... Selecting previously unselected package libfontconfig1:amd64. Preparing to unpack .../libfontconfig1_2.11.0-0ubuntu4.1_amd64.deb ... Unpacking libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ... Selecting previously unselected package libjpeg-turbo8:amd64. Preparing to unpack .../libjpeg-turbo8_1.3.0-0ubuntu2_amd64.deb ... Unpacking libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ... Selecting previously unselected package libjpeg8:amd64. Preparing to unpack .../libjpeg8_8c-2ubuntu8_amd64.deb ... Unpacking libjpeg8:amd64 (8c-2ubuntu8) ... Selecting previously unselected package libjbig0:amd64. Preparing to unpack .../libjbig0_2.0-2ubuntu4.1_amd64.deb ... Unpacking libjbig0:amd64 (2.0-2ubuntu4.1) ... Selecting previously unselected package libtiff5:amd64. Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.4_amd64.deb ... Unpacking libtiff5:amd64 (4.0.3-7ubuntu0.4) ... Selecting previously unselected package libvpx1:amd64. Preparing to unpack .../libvpx1_1.3.0-2_amd64.deb ... Unpacking libvpx1:amd64 (1.3.0-2) ... Selecting previously unselected package libxpm4:amd64. Preparing to unpack .../libxpm4_1%3a3.5.10-1_amd64.deb ... Unpacking libxpm4:amd64 (1:3.5.10-1) ... Selecting previously unselected package libgd3:amd64. Preparing to unpack .../libgd3_2.1.0-3_amd64.deb ... Unpacking libgd3:amd64 (2.1.0-3) ... Selecting previously unselected package libxslt1.1:amd64. Preparing to unpack .../libxslt1.1_1.1.28-2build1_amd64.deb ... Unpacking libxslt1.1:amd64 (1.1.28-2build1) ... Selecting previously unselected package nginx-common. Preparing to unpack .../nginx-common_1.4.6-1ubuntu3.4_all.deb ... Unpacking nginx-common (1.4.6-1ubuntu3.4) ... Selecting previously unselected package nginx-core. Preparing to unpack .../nginx-core_1.4.6-1ubuntu3.4_amd64.deb ... Unpacking nginx-core (1.4.6-1ubuntu3.4) ... Selecting previously unselected package nginx. Preparing to unpack .../nginx_1.4.6-1ubuntu3.4_all.deb ... Unpacking nginx (1.4.6-1ubuntu3.4) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... WARN: / is group writable! Setting up fonts-dejavu-core (2.34-1ubuntu1) ... Setting up fontconfig-config (2.11.0-0ubuntu4.1) ... Setting up libfontconfig1:amd64 (2.11.0-0ubuntu4.1) ... Setting up libjpeg-turbo8:amd64 (1.3.0-0ubuntu2) ... Setting up libjpeg8:amd64 (8c-2ubuntu8) ... Setting up libjbig0:amd64 (2.0-2ubuntu4.1) ... Setting up libtiff5:amd64 (4.0.3-7ubuntu0.4) ... Setting up libvpx1:amd64 (1.3.0-2) ... Setting up libxpm4:amd64 (1:3.5.10-1) ... Setting up libgd3:amd64 (2.1.0-3) ... Setting up libxslt1.1:amd64 (1.1.28-2build1) ... Setting up nginx-common (1.4.6-1ubuntu3.4) ... Processing triggers for ureadahead (0.100.0-16) ... Processing triggers for ufw (0.34~rc-0ubuntu2) ... WARN: / is group writable! Setting up nginx-core (1.4.6-1ubuntu3.4) ... runlevel:/var/run/utmp: No such file or directory invoke-rc.d: policy-rc.d denied execution of start. Setting up nginx (1.4.6-1ubuntu3.4) ... Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
バージョンを確認してみます
t@DESKTOP-1QGFR8O:~$ nginx -v nginx version: nginx/1.4.6 (Ubuntu)
バージョン1.4.6のようです。