Skip to content

Commit fcfec9e

Browse files
committed
fixup: formatting
1 parent fb8097a commit fcfec9e

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

docs/termux.md

-36
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
- [Create a new user](#create-a-new-user)
1313
- [Install Go](#install-go)
1414
- [Install Python](#install-python)
15-
- [Working with PRoot](#working-with-proot)
1615

1716
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1817
<!-- prettier-ignore-end -->
@@ -24,9 +23,6 @@
2423
3. Run `pkg install code-server`
2524
4. You can now start code server by simply running `code-server`.
2625

27-
> Consider using a new user instead of root, read [here](https://www.howtogeek.com/124950/htg-explains-why-you-shouldnt-log-into-your-linux-system-as-root/) why using root is not recommended.\
28-
> Learn how to add a user [here](#create-a-new-user).
29-
3026
## NPM Installation
3127

3228
1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**.
@@ -161,35 +157,3 @@ eval "$(pyenv virtualenv-init -)"
161157
7. Run `touch /root/.pyenv/version && echo "your_version_here" > /root/.pyenv/version`
162158
8. (You may have to start Debian again) Run `python3 -V` to verify if PATH works or not.
163159
> If `python3` doesn't work but pyenv says that the install was successful in step 6 then try running `$PYENV_ROOT/versions/your_version/bin/python3`.
164-
165-
### Working with PRoot
166-
167-
Debian PRoot Distro Dev Environment
168-
169-
- 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.
170-
- The terminal accessible in code-server will bring up the filesystem and `~/.bashrc` in the Debian PRoot distro.
171-
172-
Accessing files in the Debian PRoot Distro
173-
174-
- The `/data/data/com.termux/files/home` directory in PRoot accesses the termux home directory (`~`)
175-
- 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)
176-
177-
Accessing the Debian PRoot distro/Starting code-server
178-
179-
- Run the following command to access the Debian PRoot distro, from the termux shell:
180-
181-
```bash
182-
proot-distro login debian
183-
```
184-
185-
- Run the following command to start code-server directly in the Debian PRoot distro, from the termux shell:
186-
187-
```bash
188-
proot-distro login debian -- code-server
189-
```
190-
191-
- 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.
192-
193-
Additional information on PRoot and Termux
194-
195-
- 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)