4
1

More than 3 years have passed since last update.

Android(Termux)でプログラミング【code-server】

Last updated at Posted at 2021-08-19

Termuxを公式サイトからインストール

Google Play ストアのTermuxはバージョンが古いので、公式サイトからダウンロードしたapkを開いて、インストールしてください。

TermuxにUbuntuをインストール

起動用のシェルスクリプトを作成しておくと良いでしょう。

code-serverをインストール、起動

キーボードはCodeBoardがおすすめです。
https://play.google.com/store/apps/details?id=com.gazlaws.codeboard

端末でテザリングする、外部から接続する場合

テザリングする場合は、まずテザリングをオンにします。
テザリングせずWi-Fiに接続する場合は、Wi-Fiに接続してから、ip -4 aコマンドでローカルipを確認します。

次に、code-serverのconfigファイルのbind-addrをローカルipにします。(テザリングの場合: 192.168.43.1:port

次に、code-serverを起動します。たまに起動できない時があるので、何度か起動し直してください。

PCでテザリングや同じWi-Fiに接続し、ブラウザからconfigで指定したbind-addrにアクセスできます。

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