Skip to content

Commit becdb3a

Browse files
committed
Change from private gist to a section in Extra
1 parent 2f4d54a commit becdb3a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/termux.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [Known Issues](#known-issues)
88
- [Git won't work in `/sdcard`](#git-wont-work-in-sdcard)
99
- [Extra](#extra)
10+
- [Create a new user](#create-a-new-user)
1011
- [Install Go](#install-go)
1112
- [Install Python](#install-python)
1213

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

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

@@ -77,6 +78,19 @@ Potential Workaround :
7778

7879
## Extra
7980

81+
### Create a new user
82+
83+
To create a new user follow these simple steps -
84+
85+
1. Create a new user by running `useradd username -m`.
86+
2. Change the password by running `passwd username`.
87+
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`.
88+
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`.
89+
5. Now switch users, by running `su - username`
90+
91+
- Remember the `-` betweeen `su` and username is required to execute `/etc/profile`,\
92+
since `/etc/profile` may have some necessary things to be executed you should always add a `-`.
93+
8094
### Install Go
8195

8296
> From https://golang.org/doc/install

0 commit comments

Comments
 (0)