Skip to content

Commit 5c7ec6a

Browse files
committed
Ran yarn fmt on docs
1 parent 8195343 commit 5c7ec6a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/termux.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ apt update && apt upgrade -y && apt-get install sudo vim git -y
3838

3939
- Copy the lines NVM asks you to run after running the install script.
4040
- 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.
4242
- Now run `exit`
4343
- Start Debian again `proot-distro login debian`
4444

4545
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:
46+
4647
```bash
4748
nvm install v<major_version_here>
4849
```
@@ -154,23 +155,31 @@ eval "$(pyenv virtualenv-init -)"
154155
### Working with PRoot
155156

156157
Debian PRoot Distro Dev Environment
158+
157159
- 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.
158160
- The terminal accessible in code-server will bring up the filesystem and `~/.bashrc` in the Debian PRoot distro.
159161

160162
Accessing files in the Debian PRoot Distro
163+
161164
- The `/data/data/com.termux/files/home` directory in PRoot accesses the termux home directory (`~`)
162165
- 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)
163166

164167
Accessing the Debian PRoot distro/Starting code-server
168+
165169
- Run the following command to access the Debian PRoot distro, from the termux shell:
170+
166171
```bash
167172
proot-distro login debian
168173
```
174+
169175
- Run the following command to start code-server directly in the Debian PRoot distro, from the termux shell:
176+
170177
```bash
171178
proot-distro login debian -- code-server
172179
```
180+
173181
- 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.
174182

175183
Additional information on PRoot and Termux
184+
176185
- Additional information on using your Debian PRoot Distro can be [found here](https://github.com/termux/proot-distro#functionality-overview).

0 commit comments

Comments
 (0)