Changes between Version 1 and Version 2 of misc/setup_for_ML


Ignore:
Timestamp:
05/10/23 09:41:36 (14 months ago)
Author:
obina
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • misc/setup_for_ML

    v1 v2  
    2222 
    2323== WSL2のインストール == 
     24最初に__管理者権限で__コマンドプロンプトを開く。wslコマンドで、インストール可能なディストリビューションを検索・確認する。 
     25(wslコマンドが無い場合は、適当にGoogleで検索してください) 
     26{{{ 
     27C:\>wsl --list --online 
     28インストールできる有効なディストリビューションの一覧を次に示します。 
     29'wsl --install -d <Distro>' を使用してインストールします。 
     30 
     31NAME                                   FRIENDLY NAME 
     32Ubuntu                                 Ubuntu 
     33Debian                                 Debian GNU/Linux 
     34kali-linux                             Kali Linux Rolling 
     35Ubuntu-18.04                           Ubuntu 18.04 LTS 
     36Ubuntu-20.04                           Ubuntu 20.04 LTS 
     37Ubuntu-22.04                           Ubuntu 22.04 LTS 
     38OracleLinux_7_9                        Oracle Linux 7.9 
     39OracleLinux_8_7                        Oracle Linux 8.7 
     40OracleLinux_9_1                        Oracle Linux 9.1 
     41SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4 
     42openSUSE-Leap-15.4                     openSUSE Leap 15.4 
     43openSUSE-Tumbleweed                    openSUSE Tumbleweed 
     44}}} 
     45 
     46 
     47ここではUbuntu22.04をインストールすることにする。 
     48{{{ 
     49C:\>wsl --install --d Ubuntu-22.04 
     50インストール中: Ubuntu 22.04 LTS 
     51Ubuntu 22.04 LTS はインストールされました。 
     52Ubuntu 22.04 LTS を起動しています... 
     53}}} 
     54 
     55自動的にUbuntuのターミナルが起動して、ユーザー名を入れるプロンプトが出るので、ユーザー名とパスワードを設定する。 
     56(最初は少し時間がかかるかもしれない) 
     57{{{ 
     58Installing, this may take a few minutes... 
     59Please create a default UNIX user account. The username does not need to match your Windows username. 
     60For more information visit: https://aka.ms/wslusers 
     61Enter new UNIX username: obina 
     62New password: 
     63Retype new password: 
     64passwd: password updated successfully 
     65Installation successful! 
     66To run a command as administrator (user "root"), use "sudo <command>". 
     67See "man sudo_root" for details. 
     68 
     69Welcome to Ubuntu 22.04.2 LTS (GNU/Linux 5.10.60.1-microsoft-standard-WSL2 x86_64) 
     70 
     71 * Documentation:  https://help.ubuntu.com 
     72 * Management:     https://landscape.canonical.com 
     73 * Support:        https://ubuntu.com/advantage 
     74 
     75This message is shown once a day. To disable it please create the 
     76/home/obina/.hushlogin file. 
     77obina@notepc:~$ 
     78}}} 
     79 
     80いちおう確認 
     81{{{ 
     82obina@notepc:~$ cat /etc/os-release 
     83PRETTY_NAME="Ubuntu 22.04.2 LTS" 
     84NAME="Ubuntu" 
     85VERSION_ID="22.04" 
     86VERSION="22.04.2 LTS (Jammy Jellyfish)" 
     87VERSION_CODENAME=jammy 
     88ID=ubuntu 
     89ID_LIKE=debian 
     90HOME_URL="https://www.ubuntu.com/" 
     91SUPPORT_URL="https://help.ubuntu.com/" 
     92BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" 
     93PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" 
     94UBUNTU_CODENAME=jammy 
     95obina@notepc:~$ uname -a 
     96Linux notepc 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 
     97}}} 
     98 
     99パッケージのアップデート。先ほど入力したパスワードを入れる 
     100{{{ 
     101obina@notepc:~$ sudo apt update 
     102Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease 
     103Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB] 
     104..... 
     105Fetched 26.5 MB in 6s (4327 kB/s) 
     106Reading package lists... Done 
     107Building dependency tree... Done 
     108Reading state information... Done 
     10919 packages can be upgraded. Run 'apt list --upgradable' to see them. 
     110}}} 
     111 
     112{{{ 
     113obina@notepc:~$ sudo apt upgrade 
     114Reading package lists... Done 
     115Building dependency tree... Done 
     116Reading state information... Done 
     117Calculating upgrade... Done 
     118The following packages will be upgraded: 
     119  apt apt-utils distro-info-data git git-man libapt-pkg6.0 libglib2.0-0 libglib2.0-bin libglib2.0-data libssl3 libxml2 
     120  openssl tzdata ubuntu-advantage-tools vim vim-common vim-runtime vim-tiny xxd 
     12119 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 
     12210 standard LTS security updates 
     123Need to get 21.9 MB of archives. 
     124After this operation, 348 kB of additional disk space will be used. 
     125Do you want to continue? [Y/n] Y 
     126.... 
     127obina@notepc:~$  
     128}}} 
     129とりあえずここまでで十分。 
     130 
     131 
    24132== python3インストール == 
    25133== venv 設定 ==