LoginSignup
0
1

More than 1 year has passed since last update.

chromebook (lenovo duet) linux 設定 code-server編

Last updated at Posted at 2021-10-13

Java のインストール
Java Runtime Environment
sudo apt-get install default-jre -y
確認
$ java --version

Java Development Kit
sudo apt-get install default-jdk -y
確認
$ javac --version

Graphviz のインストール
sudo apt install graphviz

code-server のインストール
curl -fsSL https://code-server.dev/install.sh | sh
パスワードの確認/変更
vim ~/.config/code-server/config.yaml
右側で指定されたユーザーとして、code-serverは動作
sudo systemctl start code-server@ユーザー名
code-serverを再起動します。
sudo systemctl restart code-server@ユーザー名

nginxをインストールしたうえで、次の設定をNginxに適用

server {
    listen 80;
    listen [::]:80;
    listen 443 ssl;
    listen [::]:443 ssl;
    server_name VSCodeを動かすサイトのFQDN;

    ssl_certificate     SSL証明書のパス;
    ssl_certificate_key SSL証明書のキー;

    location / {
      proxy_pass http://localhost:8080/;
      proxy_set_header Host $host;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection upgrade;
      proxy_set_header Accept-Encoding gzip;
    }
}

設定を入れ込んだらnginxを再起動
sudo nginx -t
sudo systemctl restart nginx

0
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
0
1