LoginSignup
1
1

More than 5 years have passed since last update.

Raspbian に Visual Studio Code を インストールする

Last updated at Posted at 2019-04-05

はじめに

ここにあるインストールで上手く行かなかったが、少々の修正で上手く行ったので記しておく。

シェルスクリプトの修正が必要

Raspbian では次のコマンドを実行しろとある。

$ sudo -s
# . <( wget -O - https://code.headmelted.com/installers/apt.sh )

実行すると、「--allow-unauthenticated」スイッチが無いとか、どうとか言うエラーがでた。
(コピペするのを忘れた)

そこで、「apt.sh」をダウンロードしてエディタで見てみた。
すると、49、50行目が次のようになっていた。

apt-get install -t ${repo_name} -y ${code_executable_name};
#apt-get install -t ${repo_name} -y --allow-unauthenticated ${code_executable_name};

これを、

#apt-get install -t ${repo_name} -y ${code_executable_name};
apt-get install -t ${repo_name} -y --allow-unauthenticated ${code_executable_name};

こう編集して、

$ bash ./apt.sh

とすれば正常にインストールできる。
コマンドプロンプトで、

$ code-oss

で実行できる。
スタートメニューのプログラムにもアイコンが追加されている。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1