【現在の私】
2021年12月、自宅からアパートに引っ越して、ガラリとネット環境が変わりました。
光回線はソフトバンク光からauひかりへ、VPNなどを利用していたAsusルーターを廃棄し、アパートで新たにUbuntuでWireguradサーバーを構築し、外から作業時、Wireguard通信上でやり取りしています。(SSH、Sambaやリモートデスクトップなど)。 現在の私のネット環境

(※)画像をクリックするとより大きい画像が出ます。

仕事やら何やらで忙しく、ホームページ更新がなかなかできず、悪しからずご了承下さい。。

(O) 本文へ行く | Windows | Linux | macOS | iPhone&iPad | Android |

[ Windows 10 Pro iMac ] [ Windows 10 Pro 中古PC ]

Windows 10 Pro iMac編

| 導入 | ネットワーク | Windows Subsystem for Linux | Dropbox |

導入 : Ubuntu : VcXsrvとXサーバ

インストール / 設定


本ページの趣旨 導Microsoft StoreアプリからUbuntuのインストールが成功したら、後はターミナル画面での操作になります。Linux初心者はここでコマンドをじっくり覚えて、慣れるまではちょうどいい勉強になると思います。

▼Windows Subsystem for Linux

2. Ubuntu

(2) 設定

ターミナル画面が立ち上がったら、このLinuxで使いたいユーザ名を登録します。(ここでは"bokura")。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura

続いて、このユーザ(bokura)のパスワードを登録します。(入力してもパスワードは表示されません。)

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:

もう1度、パスワードを入力して確定させます。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:
Retype new UNIX password:

下の画面のようにbashのプロントが出ます。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo 〈command〉".
See "man sudo_root" for details.

bokura@DESKTOP-W18Q8E2: ~$

ここからおまじないのように最初は「sudo apt update」コマンドを実行させます。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo 〈command〉".
See "man sudo_root" for details.

bokura@DESKTOP-W18Q8E2: ~$ sudo apt update

続いて、パスワードが求められますので、↑で登録したパスワードを入力して、Enterキーを押下。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo 〈command〉".
See "man sudo_root" for details.

bokura@DESKTOP-W18Q8E2: ~$ sudo apt update
[sudo] password for bokura:

しばらく時間がかかります。

【ターミナル画面】
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: bokura
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo 〈command〉".
See "man sudo_root" for details.

bokura@DESKTOP-W18Q8E2: ~$ sudo apt update
[sudo] password for bokura:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-securitu InRelease [88.7 KB]
0% [4 Packages 734 kBs/8570 kB 9%] [5 Inrelease 12.0 kB/88.7 kB 14%]   139 kB/s 1min 46s_

全て終わると、再びbashのプロントが出ますので、次に「sudo apt upgrade」コマンドを実行させます。

【ターミナル画面】
....
Fetched 16.3 MB in 1min 31s (179 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
157 packages can be upgraded. Run 'apt list --upgradable' to see them.
bokura@DESKTOP-W18Q8E2: ~$ sudo apt upgrade

実行して良いかと訊ねられたら、"Y"をを入力して、Enterキーを押下。

【ターミナル画面】
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
...
157 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 72.6 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y

全てシステムやパッケージの更新が終えると再びbashのプロントが出ますので、次に日本語化の設定を行います。「sudo apt install language-pack-ja」コマンドを実行します。

【ターミナル画面】
...
bokura@DESKTOP-W18Q8E2: ~$ sudo apt install language-pack-ja

続いて、パスワードが求められますので、↑で登録したパスワードを入力して、Enterキーを押下。

【ターミナル画面】
...
bokura@DESKTOP-W18Q8E2: ~$ sudo apt install language-pack-ja
[sudo] password for bokura:

実行して良いかと訊ねられたら、"Y"をを入力して、Enterキーを押下。

【ターミナル画面】
...
bokura@DESKTOP-W18Q8E2: ~$ sudo apt install language-pack-ja
[sudo] password for bokura:
...
Do you want to continue? [Y/n] y

全て終わると、再びbashのプロントが出ますので、次に「sudo apt install manpages-ja」コマンドを実行します。

【ターミナル画面】
...
bokura@DESKTOP-W18Q8E2: ~$ sudo apt install manpages-ja

全て終わると、再びbashのプロントが出ます。

【ターミナル画面】
...
bokura@DESKTOP-W18Q8E2: ~$

以上のコマンド一連でインストールができました。

念の為、真っ黒のターミナル画面で日本語が表示できるように、左上のUbuntuロゴを右クリック後、「プロパティ」を選択して「フォント」タブを開いて、フォントが「MS ゴシック」になっているか、確認しましょう!

Windows 10 Pro iMac (Windows Subsystem for Linux:Ubuntu-VcXsrvとXサーバ-)ページへ進む (N) |このページの先頭に戻る (Y)|Windows 10 Pro iMac (Windows Subsystem for Linux:導入)ページに戻る (B)

メインページに戻る (1)