You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Copy the lines NVM asks you to run after running the install script.
40
40
- Run `nano /root/.bashrc` and comment out those lines by adding a `#` at the start.
41
-
- Run `nano /etc/profile` and paste those lines at the end of the file. Make sure to replace `$HOME` with `/root` on the first line.
41
+
- Run `nano /etc/profile` and paste those lines at the end of the file. Make sure to replace `$HOME` with `/root` on the first line.
42
42
- Now run `exit`
43
43
- Start Debian again `proot-distro login debian`
44
44
45
45
6. After following the instructions and setting up NVM you can now install the [required node version](https://coder.com/docs/code-server/latest/npm#nodejs-version) by running:
- Since Node and code-server are installed in the Debian PRoot distro, your `~/.ssh/` configuration, `~/.bashrc`, git, npm packages, etc. should be setup in PRoot as well.
158
160
- The terminal accessible in code-server will bring up the filesystem and `~/.bashrc` in the Debian PRoot distro.
159
161
160
162
Accessing files in the Debian PRoot Distro
163
+
161
164
- The `/data/data/com.termux/files/home` directory in PRoot accesses the termux home directory (`~`)
162
165
- The `/sdcard` directory in PRoot accesses the Android storage directory, though there are [known issues with git and files in the `/sdcard` path](#git-wont-work-in-sdcard)
163
166
164
167
Accessing the Debian PRoot distro/Starting code-server
168
+
165
169
- Run the following command to access the Debian PRoot distro, from the termux shell:
170
+
166
171
```bash
167
172
proot-distro login debian
168
173
```
174
+
169
175
- Run the following command to start code-server directly in the Debian PRoot distro, from the termux shell:
176
+
170
177
```bash
171
178
proot-distro login debian -- code-server
172
179
```
180
+
173
181
- If you [created a new user](#create-a-new-user), you'll need to insert the `--user <username>` option between `login` and `debian` in the commands above to run as the user instead of root in PRoot.
174
182
175
183
Additional information on PRoot and Termux
184
+
176
185
- Additional information on using your Debian PRoot Distro can be [found here](https://github.com/termux/proot-distro#functionality-overview).
0 commit comments