|
12 | 12 | - [Create a new user](#create-a-new-user)
|
13 | 13 | - [Install Go](#install-go)
|
14 | 14 | - [Install Python](#install-python)
|
15 |
| - - [Working with PRoot](#working-with-proot) |
16 | 15 |
|
17 | 16 | <!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
18 | 17 | <!-- prettier-ignore-end -->
|
|
24 | 23 | 3. Run `pkg install code-server`
|
25 | 24 | 4. You can now start code server by simply running `code-server`.
|
26 | 25 |
|
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 |
| -
|
30 | 26 | ## NPM Installation
|
31 | 27 |
|
32 | 28 | 1. Get [Termux](https://f-droid.org/en/packages/com.termux/) from **F-Droid**.
|
@@ -161,35 +157,3 @@ eval "$(pyenv virtualenv-init -)"
|
161 | 157 | 7. Run `touch /root/.pyenv/version && echo "your_version_here" > /root/.pyenv/version`
|
162 | 158 | 8. (You may have to start Debian again) Run `python3 -V` to verify if PATH works or not.
|
163 | 159 | > 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