srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/cheatsheets/termux.md
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2023-06-02 10:13:02 +0200
committersrdusr <[email protected]>2023-06-02 10:13:02 +0200
commit9ac70bc2f654d0953ebc227adc2a51001058c9c8 (patch)
tree5d2dcd31932aff34d117d133a1122d49954581d8 /cheatsheets/termux.md
parentb3d1dc91b1d3c1dc8e31099f0e8e014ac349e947 (diff)
downloadnotes-9ac70bc2f654d0953ebc227adc2a51001058c9c8.tar.gz
notes-9ac70bc2f654d0953ebc227adc2a51001058c9c8.zip
Add draft of basic setup for arch on termux
Diffstat (limited to 'cheatsheets/termux.md')
-rw-r--r--cheatsheets/termux.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/cheatsheets/termux.md b/cheatsheets/termux.md
index e69de29..db9ac83 100644
--- a/cheatsheets/termux.md
+++ b/cheatsheets/termux.md
@@ -0,0 +1,17 @@
+- Change password of root
+`# passwd`
+
+-
+`# pacman -S sudo vim visudo`
+
+-
+`# passwd <username>`
+
+- Add <username> to sudoers. Edit/etc/sudoers with vi, add following lines beneath "root ALL=(ALL) ALL":
+`<username> ALL=(ALL) ALL`
+
+- Login to the non-root user account by default,
+`# echo startarch login username > archlinux; chmod +x archlinux`
+
+- To login into account:
+`$ ./archlinux`