Advertisement
Guest User

Raspberry Pi 4でVSCodeの100%オープンソース版のVSCodiumを使う

a guest
Jul 9th, 2020
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. Raspberry Pi 4でVSCodeの100%オープンソース版のVSCodiumを使う
  2.  
  3.  
  4. VSCodeはARM、ARM64版のLinux用のバイナリが配布されてません
  5. VSCodeの100%オープンソース版のVSCodiumであれば
  6. ARM、ARM64版のバイナリパッケージがダウンロードできます
  7.  
  8. 32bitのRaspberry Pi OSとARM64版Ubuntu Server 20.04に入れてみました
  9. ARM64版Ubuntu Server 20.04ではaptでも入れられるようですが
  10. 今回は最新版をダウンロードして入れたいと思います
  11.  
  12.  
  13. VSCodiumのダウンロード
  14.  
  15. このサイトからビルド済みのパッケージをダウンロードできます
  16. https://github.com/VSCodium/vscodium/releases
  17.  
  18. 今現在最新バージョンは1.46.1です
  19.  
  20. 32bitのRaspberry Pi OSならこれ
  21.   codium_1.46.1-1592564097_armhf.deb
  22.  
  23. $ wget https://github.com/VSCodium/vscodium/releases/download/1.46.1/codium_1.46.1-1592564097_armhf.deb
  24.  
  25.  
  26. ARM64版Ubuntu Server 20.04ならこれ
  27.   codium_1.46.1-1592564137_arm64.deb
  28.  
  29. $ wget https://github.com/VSCodium/vscodium/releases/download/1.46.1/codium_1.46.1-1592564137_arm64.deb
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. ダウンロードしたらdpkgでインストールします。
  37.  
  38. 32bitのRaspberry Pi OSの場合
  39. $ sudo apt install -y libnotify4 libgtk-3-0 libxss1
  40. $ sudo dpkg -i codium_1.46.1-1592564097_armhf.deb
  41.  
  42. ARM64版のUbuntu Server 20.04の場合
  43. $ sudo apt install -y libnotify4 libgtk-3-0 libxss1
  44. $ sudo dpkg -i codium_1.46.1-1592564137_arm64.deb
  45.  
  46.  
  47.  
  48. VSCodiumの起動コマンドは
  49. $ codium
  50.  
  51.  
  52.  
  53. この状態ではExtensionsが使えないので一度codiumを終了します
  54.  
  55. Extensionsを使えるようにproduct.jsonに追記
  56. sudo vi /usr/share/codium/resources/app/product.json
  57.  
  58. 下記内容で追記します
  59.  
  60.  
  61. "extensionsGallery": {
  62. "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  63. "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
  64. "itemUrl": "https://marketplace.visualstudio.com/items"
  65. }
  66.  
  67.  
  68.  
  69.  
  70. product.jsonの最後の方はこうなってますが
  71.  
  72. "vs/workbench/services/extensions/node/extensionHostProcess.js": "Vusg7Bd8N5lXRknvu505rQ",
  73. "vs/code/electron-browser/workbench/workbench.html": "i/WaDBGK9wKw7OoxW3clDA",
  74. "vs/code/electron-browser/workbench/workbench.js": "3pzwXoT8oPDypXKY2daS2g"
  75. }
  76. }
  77.  
  78.  
  79.  
  80. product.jsonへの追記は下記のように最後の項目の一番最後にカンマ","を入れて区切ってから挿入します
  81.  
  82. "vs/workbench/services/extensions/node/extensionHostProcess.js": "Vusg7Bd8N5lXRknvu505rQ",
  83. "vs/code/electron-browser/workbench/workbench.html": "i/WaDBGK9wKw7OoxW3clDA",
  84. "vs/code/electron-browser/workbench/workbench.js": "3pzwXoT8oPDypXKY2daS2g"
  85. },
  86. "extensionsGallery": {
  87. "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  88. "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
  89. "itemUrl": "https://marketplace.visualstudio.com/items"
  90. }
  91. }
  92.  
  93.  
  94.  
  95.  
  96. VSCodiumの日本語化
  97.  
  98. VSCodiumを立ち上げ
  99. 画面左端の上から5番上のアイコンのExtentionsをクリック
  100. Japanese
  101. と入力
  102. Japanese Language Pack for Visual Studio for Japanese
  103. を選択
  104. Installを押します
  105. 終わったらvscodeを再起動
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement