Skip to content

Fix : recreate the termux guide to adapt the recent changes #4472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Nov 12, 2021
Prev Previous commit
Next Next commit
Change from private gist to a section in Extra
  • Loading branch information
arHSM committed Nov 10, 2021
commit becdb3a886f070a15ef4322d1d585b2a0bd201e0
16 changes: 15 additions & 1 deletion docs/termux.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- [Known Issues](#known-issues)
- [Git won't work in `/sdcard`](#git-wont-work-in-sdcard)
- [Extra](#extra)
- [Create a new user](#create-a-new-user)
- [Install Go](#install-go)
- [Install Python](#install-python)

Expand Down Expand Up @@ -57,7 +58,7 @@ curl -fsSL https://code-server.dev/install.sh | sh
8. You can now start code server by simply running `code-server`.

> 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.\
> Learn how to add a user [here](https://gist.github.com/arHSM/62242c343efc2827861ddc38e485d7df).
> Learn how to add a user [here](#create-a-new-user).

## Upgrade

Expand All @@ -77,6 +78,19 @@ Potential Workaround :

## Extra

### Create a new user

To create a new user follow these simple steps -

1. Create a new user by running `useradd username -m`.
2. Change the password by running `passwd username`.
3. Give your new user sudo access by runnning `visudo`, scroll down to `User privilege specification` and add the following line after root `username ALL=(ALL:ALL) ALL`.
4. Now edit the `/etc/passwd` file with your commadline editor of choice and at the end of the line that specifies your user change `/bin/sh` to `/bin/bash`.
5. Now switch users, by running `su - username`

- Remember the `-` betweeen `su` and username is required to execute `/etc/profile`,\
since `/etc/profile` may have some necessary things to be executed you should always add a `-`.

### Install Go

> From https://golang.org/doc/install
Expand Down