文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== Visual Studio Code on Fedora ====== {{:linux:visual_studio_code_on_fedora_001.png?600|}}\\ 本家: [[https://code.visualstudio.com/docs/setup/linux#_rhel-fedora-and-centos-based-distributions|Running Visual Studio Code on Linux - RHEL, Fedora, and CentOS based distributions]]\\ ===== インストール ===== <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> rpm --import https://packages.microsoft.com/keys/microsoft.asc <b class=GRN>$</b> <b class=HIY>sudo</b> sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' <b class=GRN>$</b> <b class=HIY>dnf</b> check-update </pre></html></WRAP> <WRAP color_result_long><html><pre> Copr repo for PyCharm owned by phracek 2.8 kB/s | 3.6 kB 00:01 Copr repo for PyCharm owned by phracek 24 kB/s | 44 kB 00:01 Fedora 37 - x86_64 5.0 kB/s | 4.8 kB 00:00 Fedora 37 - x86_64 1.9 MB/s | 82 MB 00:42 Fedora 37 openh264 (From Cisco) - x86_64 346 B/s | 989 B 00:02 Fedora Modular 37 - x86_64 11 kB/s | 4.8 kB 00:00 Fedora Modular 37 - x86_64 601 kB/s | 3.8 MB 00:06 Fedora 37 - x86_64 - Updates 17 kB/s | 34 kB 00:01 Fedora 37 - x86_64 - Updates 1.0 MB/s | 6.9 MB 00:07 Fedora Modular 37 - x86_64 - Updates 6.9 kB/s | 4.3 kB 00:00 google-chrome 2.8 kB/s | 1.3 kB 00:00 google-chrome 3.6 kB/s | 3.5 kB 00:00 最速のミラーを確定しています (1 hosts).. done.=============================] 1.8 kB/s | 1.3 kB 00:00 ETA Remi's RPM repository - Fedora 37 - x86_64 149 B/s | 833 B 00:05 done.s RPM repository - Fedora 37 -100% [==================================] 1.0 kB/s | 1.3 kB 00:00 ETA Remi's RPM repository - Fedora 37 - x86_64 303 kB/s | 1.6 MB 00:05 Remi's Modular repository - Fedora 37 - x86_64 261 B/s | 833 B 00:03 Remi's Modular repository - Fedora 37 - x86_64 142 kB/s | 752 kB 00:05 RPM Fusion for Fedora 37 - Free - Updates 6.3 kB/s | 9.9 kB 00:01 RPM Fusion for Fedora 37 - Free - Updates 124 kB/s | 320 kB 00:02 RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver 12 kB/s | 14 kB 00:01 RPM Fusion for Fedora 37 - Nonfree - NVIDIA Driver 7.6 kB/s | 15 kB 00:01 RPM Fusion for Fedora 37 - Nonfree - Steam 7.6 kB/s | 14 kB 00:01 RPM Fusion for Fedora 37 - Nonfree - Updates 6.6 kB/s | 14 kB 00:02 RPM Fusion for Fedora 37 - Nonfree - Updates 38 kB/s | 72 kB 00:01 Visual Studio Code 1.8 MB/s | 32 MB 00:18 <b class=GRN>cifs-utils.x86_64</b> 7.0-1.fc37 updates <b class=GRN>cifs-utils-info.x86_64</b> 7.0-1.fc37 updates <b class=GRN>dbus-broker.x86_64</b> 33-1.fc37 updates <b class=GRN>exiv2.x86_64</b> 0.27.6-4.fc37 updates <b class=GRN>exiv2-libs.x86_64</b> 0.27.6-4.fc37 updates <b class=GRN>gdcm.x86_64</b> 3.0.21-2.fc37 updates <b class=GRN>javascriptcoregtk4.0.x86_64</b> 2.38.4-1.fc37 updates <b class=GRN>javascriptcoregtk4.1.x86_64</b> 2.38.4-1.fc37 updates <b class=GRN>javascriptcoregtk5.0.x86_64</b> 2.38.4-1.fc37 updates <b class=GRN>kernel.x86_64</b> 6.1.10-200.fc37 updates <b class=GRN>kernel-core.x86_64</b> 6.1.10-200.fc37 updates <b class=GRN>kernel-modules.x86_64</b> 6.1.10-200.fc37 updates <b class=GRN>kernel-modules-extra.x86_64</b> 6.1.10-200.fc37 updates <b class=GRN>libX11.i686</b> 1.8.4-1.fc37 updates <b class=GRN>libX11.x86_64</b> 1.8.4-1.fc37 updates <b class=GRN>libX11-common.noarch</b> 1.8.4-1.fc37 updates <b class=GRN>libX11-xcb.i686</b> 1.8.4-1.fc37 updates <b class=GRN>libX11-xcb.x86_64</b> 1.8.4-1.fc37 updates <b class=GRN>libffi.i686</b> 3.4.4-1.fc37 updates <b class=GRN>libffi.x86_64</b> 3.4.4-1.fc37 updates <b class=GRN>libgusb.x86_64</b> 0.4.5-1.fc37 updates <b class=GRN>libphonenumber.x86_64</b> 8.12.57-6.fc37 updates <b class=GRN>opusfile.x86_64</b> 0.12-9.fc37 updates <b class=GRN>python3-beautifulsoup4.noarch</b> 4.11.2-1.fc37 updates <b class=GRN>rpmautospec-rpm-macros.noarch</b> 0.3.2-1.fc37 updates <b class=GRN>tpm2-tss.x86_64</b> 3.2.2-1.fc37 updates <b class=GRN>webkit2gtk4.0.x86_64</b> 2.38.4-1.fc37 updates <b class=GRN>webkit2gtk4.1.x86_64</b> 2.38.4-1.fc37 updates <b class=GRN>webkit2gtk5.0.x86_64</b> 2.38.4-1.fc37 updates </pre></html></WRAP> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> dnf install code </pre></html></WRAP> <WRAP color_result_long><html><pre> Visual Studio Code 2.2 MB/s | 32 MB 00:14 メタデータの期限切れの最終確認: 0:00:24 時間前の 2023年02月10日 11時41分53秒 に実施しました。 依存関係が解決しました。 ============================================================================================================= パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================= インストール: <b class=GRN>code</b> x86_64 1.75.1-1675893486.el7 code 133 M トランザクションの概要 ============================================================================================================= インストール 1 パッケージ ダウンロードサイズの合計: 133 M インストール後のサイズ: 386 M これでよろしいですか? [y/N]: y パッケージのダウンロード: code-1.75.1-1675893486.el7.x86_64.rpm 3.1 MB/s | 133 MB 00:42 ------------------------------------------------------------------------------------------------------------- 合計 3.1 MB/s | 133 MB 00:42 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : code-1.75.1-1675893486.el7.x86_64 1/1 scriptletの実行中: code-1.75.1-1675893486.el7.x86_64 1/1 検証 : code-1.75.1-1675893486.el7.x86_64 1/1 インストール済み: code-1.75.1-1675893486.el7.x86_64 完了しました! </pre></html></WRAP> </WRAP> ===== 日本語化 ===== 初回起動時に日本語化を聞いてきます😊\\ [インストールして再起動]をクリックする。\\ {{:linux:visual_studio_code_on_fedora_002.png?400|}}\\ {{:linux:visual_studio_code_on_fedora_003.png?400|}} ===== Cloud Code for VS Code 拡張機能 ===== [[https://cloud.google.com/code/docs/vscode/install?hl=ja|Cloud Code for VS Code 拡張機能をインストールする | Google Cloud]]\\ [[https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.cloudcode&ssr=false#overview|Google Cloud Code - Visual Studio Marketplace]]\\ Ctrl + P を押して以下を貼り付けて Enter を押す。\\ <code> ext install GoogleCloudTools.cloudcode </code> **Firestore Security Rules and Indexes**\\ [[git>toba/vsfire|toba/vsfire: Visual Studio Code extension for syntax highlighting, hover help and code completions with Firestore security rules and index definition files]]\\ Ctrl + P を押して以下を貼り付けて Enter を押す。\\ <code> ext install toba.vsfire </code> ===== .NET SDK のインストール ===== 公式: [[https://learn.microsoft.com/ja-jp/dotnet/core/install/linux-fedora#install-net-7|Fedora に .NET をインストールする - .NET | Microsoft Learn]]\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>dnf</b> search dotnet-sdk </pre></html></WRAP> <WRAP color_result><html><pre> メタデータの期限切れの最終確認: 6 days, 23:11:56 時間前の 2023年07月17日 05時14分00秒 に実施しました。 =========================================== 名前 一致: dotnet-sdk ============================================ <b class=HIM>dotnet-sdk</b>-6.0.x86_64 : .NET 6.0 Software Development Kit <b class=HIM>dotnet-sdk</b>-6.0-source-built-artifacts.x86_64 : Internal package for building .NET 6.0 Software Development Kit <b class=HIM>dotnet-sdk</b>-7.0.x86_64 : .NET 7.0 Software Development Kit <b class=HIM>dotnet-sdk</b>-7.0-source-built-artifacts.x86_64 : Internal package for building .NET 7.0 Software Development Kit </pre></html></WRAP> </WRAP> .NET SDK 7 をインストールする。\\ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> dnf install dotnet-sdk-7.0 </pre></html></WRAP> <WRAP color_result_long><html><pre> [sudo] tomoyan のパスワード: メタデータの期限切れの最終確認: 0:58:13 時間前の 2023年07月24日 03時36分57秒 に実施しました。 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: <b class=GRN>dotnet-sdk-7.0 </b> x86_64 7.0.109-1.fc38 updates 85 M 依存関係のインストール: <b class=GRN>aspnetcore-runtime-7.0 </b> x86_64 7.0.9-1.fc38 updates 7.3 M <b class=GRN>aspnetcore-targeting-pack-7.0 </b> x86_64 7.0.9-1.fc38 updates 1.6 M <b class=GRN>dotnet-apphost-pack-7.0 </b> x86_64 7.0.9-1.fc38 updates 3.9 M <b class=GRN>dotnet-host </b> x86_64 7.0.9-1.fc38 updates 197 k <b class=GRN>dotnet-hostfxr-7.0 </b> x86_64 7.0.9-1.fc38 updates 166 k <b class=GRN>dotnet-runtime-7.0 </b> x86_64 7.0.9-1.fc38 updates 24 M <b class=GRN>dotnet-targeting-pack-7.0 </b> x86_64 7.0.9-1.fc38 updates 2.7 M <b class=GRN>dotnet-templates-7.0 </b> x86_64 7.0.109-1.fc38 updates 2.7 M <b class=GRN>netstandard-targeting-pack-2.1 </b> x86_64 7.0.109-1.fc38 updates 1.3 M トランザクションの概要 ============================================================================================================== インストール 10 パッケージ ダウンロードサイズの合計: 129 M インストール後のサイズ: 465 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/10): dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64.rpm 1.1 MB/s | 3.9 MB 00:03 (2/10): aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64.rpm 451 kB/s | 1.6 MB 00:03 (3/10): dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64.rpm 710 kB/s | 166 kB 00:00 (4/10): dotnet-host-7.0.9-1.fc38.x86_64.rpm 442 kB/s | 197 kB 00:00 (5/10): aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64.rpm 646 kB/s | 7.3 MB 00:11 (6/10): dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64.rpm 1.1 MB/s | 2.7 MB 00:02 (7/10): dotnet-templates-7.0-7.0.109-1.fc38.x86_64.rpm 948 kB/s | 2.7 MB 00:02 (8/10): netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64.rpm 1.1 MB/s | 1.3 MB 00:01 (9/10): dotnet-runtime-7.0-7.0.9-1.fc38.x86_64.rpm 1.2 MB/s | 24 MB 00:19 (10/10): dotnet-sdk-7.0-7.0.109-1.fc38.x86_64.rpm 1.9 MB/s | 85 MB 00:44 -------------------------------------------------------------------------------------------------------------- 合計 2.5 MB/s | 129 MB 00:50 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : dotnet-host-7.0.9-1.fc38.x86_64 1/10 インストール中 : aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64 2/10 インストール中 : dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64 3/10 インストール中 : dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64 4/10 インストール中 : dotnet-runtime-7.0-7.0.9-1.fc38.x86_64 5/10 インストール中 : aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64 6/10 インストール中 : dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64 7/10 インストール中 : dotnet-templates-7.0-7.0.109-1.fc38.x86_64 8/10 インストール中 : netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64 9/10 インストール中 : dotnet-sdk-7.0-7.0.109-1.fc38.x86_64 10/10 scriptletの実行中: dotnet-sdk-7.0-7.0.109-1.fc38.x86_64 10/10 検証 : aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64 1/10 検証 : aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64 2/10 検証 : dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64 3/10 検証 : dotnet-host-7.0.9-1.fc38.x86_64 4/10 検証 : dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64 5/10 検証 : dotnet-runtime-7.0-7.0.9-1.fc38.x86_64 6/10 検証 : dotnet-sdk-7.0-7.0.109-1.fc38.x86_64 7/10 検証 : dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64 8/10 検証 : dotnet-templates-7.0-7.0.109-1.fc38.x86_64 9/10 検証 : netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64 10/10 インストール済み: aspnetcore-runtime-7.0-7.0.9-1.fc38.x86_64 aspnetcore-targeting-pack-7.0-7.0.9-1.fc38.x86_64 dotnet-apphost-pack-7.0-7.0.9-1.fc38.x86_64 dotnet-host-7.0.9-1.fc38.x86_64 dotnet-hostfxr-7.0-7.0.9-1.fc38.x86_64 dotnet-runtime-7.0-7.0.9-1.fc38.x86_64 dotnet-sdk-7.0-7.0.109-1.fc38.x86_64 dotnet-targeting-pack-7.0-7.0.9-1.fc38.x86_64 dotnet-templates-7.0-7.0.109-1.fc38.x86_64 netstandard-targeting-pack-2.1-7.0.109-1.fc38.x86_64 完了しました! </pre></html></WRAP> </WRAP> linux/visual_studio_code.txt 最終更新: 2023/07/24 04:39by ともやん