Skip to content

Instantly share code, notes, and snippets.

@RebelLion420
Last active October 3, 2025 13:34
Show Gist options
  • Save RebelLion420/bd1c94e320c0c6c56e33a1dc75e5f4a2 to your computer and use it in GitHub Desktop.
Save RebelLion420/bd1c94e320c0c6c56e33a1dc75e5f4a2 to your computer and use it in GitHub Desktop.

Revisions

  1. RebelLion420 revised this gist Oct 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2024.md
    Original file line number Diff line number Diff line change
    @@ -53,6 +53,6 @@ This will take a long time to upgrade. You may have to keep your phone awake whi

    `cd ~/tools/termux-arch-setup`

    `sudo bash termux_arch_setup.sh`
    `sudo bash termux_build_env.sh`

    Enter your shell username when prompted and let the script process. After it finishes you should have your desired repos synced and ready to compile. I only used this environment to build Android kernels on my device, I cannot offer any advice for building ROMs on an Android device.
  2. RebelLion420 revised this gist Oct 13, 2024. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions TermuxArchSetup2024.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ Now that all the required packages are installed let's set up the Arch Linux env

    `bash termux_arch_setup.sh`

    You may get an error during the install saying "'bash': permission denied" but it is safe to ignore as far as I can tell. You are now ready to boot up Arch Linux, but it still needs to be configured
    You may get some errors during the install, but it is safe to ignore as long as it shows the green message block at the end. You are now ready to boot up Arch Linux, but it still needs to be configured.

    `startarch`

    @@ -47,10 +47,12 @@ Next we install the required packages inside the Linux environment and download

    `sudo pacman -Syu --needed --noconfirm base-devel wget git`

    This will take a long time to upgrade. You may have to keep your phone awake while it runs, acquiring a wakelock did not seem to work on my device.

    `cd ~ && git clone https://github.com/RebelLion420/build_tools.git tools`

    `cd ~/tools/termux-arch-setup`

    `sudo bash termux_arch_setup.sh`

    Enter your shell username when prompted and let the script process. After it finishes you should have your desired repos synced and ready to compile. I only used this environment to build Android kernels on my phone, as ROMs take a lot more processing power and time than a phone can likely handle. Then again, I have not tried.
    Enter your shell username when prompted and let the script process. After it finishes you should have your desired repos synced and ready to compile. I only used this environment to build Android kernels on my device, I cannot offer any advice for building ROMs on an Android device.
  3. RebelLion420 revised this gist Oct 13, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions TermuxArchSetup2024.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    NOTICE: This will take up about 3 GB of space on your device, before syncing any repos or projects.

    Install Termux from the Play Store and launch it

    Once it finishes unpacking:
  4. RebelLion420 revised this gist Oct 13, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2024.md
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ You should load into the root shell by default. We first have to set up the pack

    `pacman-key --populate`

    `pacman -Sy --noconfirm archlinuxarm-keyring`
    `pacman -Sy --noconfirm archlinuxarm-keyring glibc-locales`

    `pacman-key --populate archlinuxarm`

  5. RebelLion420 revised this gist Oct 13, 2024. 2 changed files with 54 additions and 38 deletions.
    38 changes: 0 additions & 38 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -1,38 +0,0 @@
    So, to get started you need to get the base OS installed using the instructions from the official docs .

    `$ pkg update`

    `$ pkg install bsdtar wget proot tergent tmux openssh`

    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux read [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    `$ termux-setup-storage`

    `$ wget https://raw.githubusercontent.com/SDRausty/termux-arch/master/setupTermuxArch.bash`

    `$ bash setupTermuxArch.bash`

    This should download and install the Arch system. The install itself will take around 10-30 minutes depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

    You will want to change the password and maybe even the username of your new Linux user. This can be done with 2 commands.

    To add your user:

    `$ useradd -mG root -s /bin/bash <newuser>`

    For the password:

    `$ passwd <newuser>`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. First download and run it with sudo to avoid repeating your password:

    `$ sudo pacman -Syyu wget`

    `$ wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh`

    `$ chmod +x fresharch.sh`

    `$ sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
    54 changes: 54 additions & 0 deletions TermuxArchSetup2024.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    Install Termux from the Play Store and launch it

    Once it finishes unpacking:

    `pkg update`

    `pkg upgrade -y`

    `pkg install wget -y`

    Now that all the required packages are installed let's set up the Arch Linux environment.

    `wget -nv https://raw.githubusercontent.com/RebelLion420/build_tools/refs/heads/master/termux-arch-setup/termux_arch_setup.sh`

    `bash termux_arch_setup.sh`

    You may get an error during the install saying "'bash': permission denied" but it is safe to ignore as far as I can tell. You are now ready to boot up Arch Linux, but it still needs to be configured

    `startarch`

    You should load into the root shell by default. We first have to set up the package manager to function properly and then add our user account.

    `pacman-key --init`

    `pacman-key --populate`

    `pacman -Sy --noconfirm archlinuxarm-keyring`

    `pacman-key --populate archlinuxarm`

    `addauser <newuser>`

    Let the command install and setup sudo for your new user, and when it's done set your password:

    `passwd <newuser>`

    `exit`

    Now we can login to our user account and finish the environment setup.
    Our new way of booting up our Linux environment is by using:

    `startarch login <newuser>`

    Next we install the required packages inside the Linux environment and download the scripts that will handle the rest

    `sudo pacman -Syu --needed --noconfirm base-devel wget git`

    `cd ~ && git clone https://github.com/RebelLion420/build_tools.git tools`

    `cd ~/tools/termux-arch-setup`

    `sudo bash termux_arch_setup.sh`

    Enter your shell username when prompted and let the script process. After it finishes you should have your desired repos synced and ready to compile. I only used this environment to build Android kernels on my phone, as ROMs take a lot more processing power and time than a phone can likely handle. Then again, I have not tried.
  6. RebelLion420 revised this gist Mar 23, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -17,13 +17,13 @@ This should download and install the Arch system. The install itself will take a

    You will want to change the password and maybe even the username of your new Linux user. This can be done with 2 commands.

    For the password:
    To add your user:

    `$ passwd user`
    `$ useradd -mG root -s /bin/bash <newuser>`

    To change the user:
    For the password:

    `$ sudo usermod -dm /home/<newuser> -l <newuser> -s /bin/bash user`
    `$ passwd <newuser>`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. First download and run it with sudo to avoid repeating your password:

  7. RebelLion420 revised this gist Dec 13, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ For more information on using tmux read [this article](https://www.google.com/ur

    `$ bash setupTermuxArch.bash`

    This should download and install the Arch system. The install itself will take around 10-30 minutes to extract depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.
    This should download and install the Arch system. The install itself will take around 10-30 minutes depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

    You will want to change the password and maybe even the username of your new Linux user. This can be done with 2 commands.

    @@ -25,7 +25,7 @@ To change the user:

    `$ sudo usermod -dm /home/<newuser> -l <newuser> -s /bin/bash user`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. First ownload and run it with sudo to avoid repeating your password:
    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. First download and run it with sudo to avoid repeating your password:

    `$ sudo pacman -Syyu wget`

  8. RebelLion420 revised this gist Dec 6, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,9 @@ To change the user:

    `$ sudo usermod -dm /home/<newuser> -l <newuser> -s /bin/bash user`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:
    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. First ownload and run it with sudo to avoid repeating your password:

    `$ sudo pacman -Syyu wget`

    `$ wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh`

  9. RebelLion420 revised this gist Dec 6, 2020. 1 changed file with 13 additions and 9 deletions.
    22 changes: 13 additions & 9 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -1,32 +1,36 @@
    So, to get started you need to get the base OS installed using the instructions from the official docs .

    `pkg update`
    `$ pkg update`

    `pkg install bsdtar wget proot tergent tmux openssh`
    `$ pkg install bsdtar wget proot tergent tmux openssh`

    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux read [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    `termux-setup-storage`
    `$ termux-setup-storage`

    `wget https://raw.githubusercontent.com/SDRausty/termux-arch/master/setupTermuxArch.bash`
    `$ wget https://raw.githubusercontent.com/SDRausty/termux-arch/master/setupTermuxArch.bash`

    `bash setupTermuxArch.bash`
    `$ bash setupTermuxArch.bash`

    This should download and install the Arch system. The install itself will take around 10-30 minutes to extract depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

    You will want to change the password and maybe even the username of your new Linux user. This can be done with 2 commands.

    For the password:

    `passwd user`
    `$ passwd user`

    For the user:
    To change the user:

    `sudo usermod -dm /home/<user> -l <user> -s /bin/bash user`
    `$ sudo usermod -dm /home/<newuser> -l <newuser> -s /bin/bash user`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh && chmod +x fresharch.sh && sudo bash fresharch.sh`
    `$ wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh`

    `$ chmod +x fresharch.sh`

    `$ sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  10. RebelLion420 revised this gist Dec 6, 2020. 1 changed file with 5 additions and 43 deletions.
    48 changes: 5 additions & 43 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -15,53 +15,15 @@ For more information on using tmux read [this article](https://www.google.com/ur

    This should download and install the Arch system. The install itself will take around 10-30 minutes to extract depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

    You'll need to install sudo first, and the needed packages for the install:
    You will want to change the password and maybe even the username of your new Linux user. This can be done with 2 commands.

    `pacman -Syyu sudo wget curl`
    For the password:

    If you encounter errors resolving hostnames, permissions may need to be reset for the resolv.conf
    `passwd user`

    `sudo chown root:root /etc/resolv.conf`
    For the user:

    `sudo chmod 644 /etc/resolv.conf`

    Set your root password

    `sudo passwd root`

    And then you can make your user account

    `addauser <user>`

    This will log you in, so we'll exit back to the root shell to finish up

    `exit`

    Then set your user password

    `sudo passwd <user>`

    Open the sudoers file for safe editing:

    `visudo`

    And add your user's privileges under root's in the "User privilege specification" section
    (`a` to begin editing after selection):

    `<user> ALL=(ALL) ALL`

    Save and close the file (`ESC + :wq + ENTER`)
    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to

    `nano /etc/sudo.conf`

    And add this line:

    `Set disable_coredump false`

    Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use your login

    `su - <user>`
    `sudo usermod -dm /home/<user> -l <user> -s /bin/bash user`

    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

  11. RebelLion420 revised this gist Aug 19, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -9,9 +9,9 @@ For more information on using tmux read [this article](https://www.google.com/ur

    `termux-setup-storage`

    `wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh`
    `wget https://raw.githubusercontent.com/SDRausty/termux-arch/master/setupTermuxArch.bash`

    `bash setupTermuxArch.sh`
    `bash setupTermuxArch.bash`

    This should download and install the Arch system. The install itself will take around 10-30 minutes to extract depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

  12. RebelLion420 revised this gist Jun 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ For more information on using tmux read [this article](https://www.google.com/ur

    `bash setupTermuxArch.sh`

    This should download fine using wget and start installing. The install itself will take around 15-30 minutes to extract the system and install everything. When the process finishes you'll be in a root shell in your new Arch distro! Of course, not everything will work out of the box.
    This should download and install the Arch system. The install itself will take around 10-30 minutes to extract depending on your device. When the process finishes you'll be in a root shell in your new Arch distro! Of course like any new Linux distro, not everything will work out of the box.

    You'll need to install sudo first, and the needed packages for the install:

  13. RebelLion420 revised this gist Jun 12, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@ So, to get started you need to get the base OS installed using the instructions

    `pkg update`

    `pkg install wget proot tergent tmux openssh`
    `pkg install bsdtar wget proot tergent tmux openssh`

    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux read [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.
  14. RebelLion420 revised this gist May 5, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2020.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ This should download fine using wget and start installing. The install itself wi

    You'll need to install sudo first, and the needed packages for the install:

    `pacman -Syyu sudo vi nano wget`
    `pacman -Syyu sudo wget curl`

    If you encounter errors resolving hostnames, permissions may need to be reset for the resolv.conf

  15. RebelLion420 renamed this gist Apr 10, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  16. RebelLion420 revised this gist Mar 25, 2020. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,8 @@ So, to get started you need to get the base OS installed using the instructions

    `pkg install wget proot tergent tmux openssh`

    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround
    is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.
    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux read [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    `termux-setup-storage`

  17. RebelLion420 revised this gist Mar 25, 2020. 1 changed file with 12 additions and 7 deletions.
    19 changes: 12 additions & 7 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,12 @@
    So, to get started you need to get the base OS installed using the instructions from the official docs . I chose option 3 since I only wanted the script
    So, to get started you need to get the base OS installed using the instructions from the official docs .

    `pkg update`

    `pkg install wget proot tergent openssh`
    `pkg install wget proot tergent tmux openssh`

    Tmux is a multiplexer that lets you run multiple persistent windows and sessions on a single terminal. I had trouble getting it working in the Arch proot, so a workaround
    is configuring tmux from your host Termux and then creating a tmux session and starting the chroot from there.
    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    `termux-setup-storage`

    @@ -12,11 +16,11 @@ So, to get started you need to get the base OS installed using the instructions

    This should download fine using wget and start installing. The install itself will take around 15-30 minutes to extract the system and install everything. When the process finishes you'll be in a root shell in your new Arch distro! Of course, not everything will work out of the box.

    You'll need to install sudo first, and the tmux multiplexer for easier multitasking:
    You'll need to install sudo first, and the needed packages for the install:

    `pacman -Syyu sudo tmux vi nano wget`
    `pacman -Syyu sudo vi nano wget`

    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.
    If you encounter errors resolving hostnames, permissions may need to be reset for the resolv.conf

    `sudo chown root:root /etc/resolv.conf`

    @@ -47,7 +51,8 @@ And add your user's privileges under root's in the "User privilege specification

    `<user> ALL=(ALL) ALL`

    Save and close the file (`ESC + :wq + ENTER`) If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to
    Save and close the file (`ESC + :wq + ENTER`)
    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to

    `nano /etc/sudo.conf`

    @@ -59,7 +64,7 @@ Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use you

    `su - <user>`

    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:
    Once you're user is set up, you can use a crash-tested script I made that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh && chmod +x fresharch.sh && sudo bash fresharch.sh`

  18. RebelLion420 revised this gist Mar 25, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ This should download fine using wget and start installing. The install itself wi

    You'll need to install sudo first, and the tmux multiplexer for easier multitasking:

    `pacman -Syu sudo tmux vi nano wget`
    `pacman -Syyu sudo tmux vi nano wget`

    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

  19. RebelLion420 revised this gist Mar 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,6 @@ Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use you

    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh && chmod +x fresharch.sh && sudo bash fresharch.sh`
    `wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh && chmod +x fresharch.sh && sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  20. RebelLion420 revised this gist Mar 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,6 @@ Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use you

    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget 'https://drive.google.com/file/d/107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW/view?usp=drivesdk' && chmod +x fresharch.sh && sudo bash fresharch.sh`
    wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW' -O fresharch.sh && chmod +x fresharch.sh && sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  21. RebelLion420 revised this gist Mar 24, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -61,6 +61,6 @@ Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use you

    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget 'https://drive.google.com/file/d/1-uSjHZ3qTh4lFRrr0wfZQMCzGzox9fPg/view?usp=drivesdk' && chmod +x fresharch.sh && sudo bash fresharch.sh`
    `wget 'https://drive.google.com/file/d/107Fh0l_p0ItVkUufOhP9to-OU_6KYhPW/view?usp=drivesdk' && chmod +x fresharch.sh && sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  22. RebelLion420 revised this gist Mar 24, 2020. 1 changed file with 7 additions and 6 deletions.
    13 changes: 7 additions & 6 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ This should download fine using wget and start installing. The install itself wi

    You'll need to install sudo first, and the tmux multiplexer for easier multitasking:

    `pacman -Syu sudo tmux`
    `pacman -Syu sudo tmux vi nano wget`

    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    @@ -40,26 +40,27 @@ Then set your user password

    Open the sudoers file for safe editing:

    `command -v vi &>/dev/null && visudo || yes ""|pacman -S vi && visudo`
    `visudo`

    And add your user's privileges under root's in the "User privilege specification" section:
    And add your user's privileges under root's in the "User privilege specification" section
    (`a` to begin editing after selection):

    `<user> ALL=(ALL) ALL`

    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to
    Save and close the file (`ESC + :wq + ENTER`) If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to

    `nano /etc/sudo.conf`

    And add this line:

    `Set disable_coredump false`

    Save and close it, and after this you're ready to use your login
    Save and close it (`CTRL-x + y + ENTER`), and after this you're ready to use your login

    `su - <user>`

    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget "" && chmod +x fresharch.sh && sudo bash fresharch.sh`
    `wget 'https://drive.google.com/file/d/1-uSjHZ3qTh4lFRrr0wfZQMCzGzox9fPg/view?usp=drivesdk' && chmod +x fresharch.sh && sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  23. RebelLion420 revised this gist Mar 22, 2020. 1 changed file with 8 additions and 4 deletions.
    12 changes: 8 additions & 4 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -30,9 +30,9 @@ And then you can make your user account

    `addauser <user>`

    Or, if that's not supported you can do
    This will log you in, so we'll exit back to the root shell to finish up

    `useradd -mrUG root -s /bin/bash <user>`
    `exit`

    Then set your user password

    @@ -46,11 +46,15 @@ And add your user's privileges under root's in the "User privilege specification

    `<user> ALL=(ALL) ALL`

    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to create an `/etc/sudo.conf` and add this line:
    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to

    `nano /etc/sudo.conf`

    And add this line:

    `Set disable_coredump false`

    After this you're ready to use your login
    Save and close it, and after this you're ready to use your login

    `su - <user>`

  24. RebelLion420 revised this gist Mar 22, 2020. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -22,6 +22,10 @@ For more information on using tmux try [this article](https://www.google.com/url

    `sudo chmod 644 /etc/resolv.conf`

    Set your root password

    `sudo passwd root`

    And then you can make your user account

    `addauser <user>`
    @@ -30,11 +34,9 @@ Or, if that's not supported you can do

    `useradd -mrUG root -s /bin/bash <user>`

    Then set passwords

    `sudo passwd root` # Password for root
    Then set your user password

    `sudo passwd <user>` # Password for your user
    `sudo passwd <user>`

    Open the sudoers file for safe editing:

  25. RebelLion420 revised this gist Jan 14, 2020. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,10 @@ You'll need to install sudo first, and the tmux multiplexer for easier multitask

    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    `sudo chown root:root /etc/resolv.conf`

    `sudo chmod 644 /etc/resolv.conf`

    And then you can make your user account

    `addauser <user>`
  26. RebelLion420 revised this gist Jan 7, 2020. 1 changed file with 19 additions and 11 deletions.
    30 changes: 19 additions & 11 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -2,45 +2,53 @@ So, to get started you need to get the base OS installed using the instructions

    `pkg update`

    `pkg install wget proot`
    `pkg install wget proot tergent openssh`

    `termux-setup-storage`

    `termux-chroot`

    `wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh`

    `bash setupTermuxArch.sh`

    This should download fine using wget and start installing. The install itself will take around 15-30 minutes to extract the system and install everything. When the process finishes you'll be in a root shell in your new Arch distro! Of course, not everything will work out of the box.

    You'll need to install sudo first:
    You'll need to install sudo first, and the tmux multiplexer for easier multitasking:

    `pacman -Syu sudo tmux`

    `pacman -S sudo`
    For more information on using tmux try [this article](https://www.google.com/url?q=https://medium.com/actualize-network/a-minimalist-guide-to-tmux-13675fb160fa&sa=U&ved=2ahUKEwiFh9vI-fHmAhUXITQIHZhVAXoQFjAGegQIBBAB&usg=AOvVaw0S9r9DcTfv72fVh4G-DTxk), and to learn how to customize the appearance and behaviors more try [this one](https://mamyn0va.github.io/2019/02/05/building-a-custom-ide-with-tmux) as well as looking at the tmux-plugins Github organization for community-built add-ons.

    and then you can make your user account
    And then you can make your user account

    `addauser user`
    `addauser <user>`

    Or, if that's not supported you can do

    `useradd -mrUG root -s /bin/bash user`
    `useradd -mrUG root -s /bin/bash <user>`

    Then set passwords

    `sudo passwd root` # Password for root

    `sudo passwd user` # Password for your user
    `sudo passwd <user>` # Password for your user

    Open the sudoers file for safe editing:

    `command -v vi &>/dev/null && visudo || yes ""|pacman -S vi && visudo`

    And add your user's privileges under root's in the "User privilege specification" section:

    `<user> ALL=(ALL) ALL`

    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to create an `/etc/sudo.conf` and add this line:

    `Set disable_coredump false`

    After this you're ready to use your login

    `su - user`
    `su - <user>`

    Once you're user is set up, I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:
    Once you're user is set up, you can configure your tmux so you can set up other aspects while the rest of the setup runs. I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    `wget "" && chmod +x fresharch.sh && sudo bash fresharch.sh`

  27. RebelLion420 revised this gist Jan 3, 2020. 1 changed file with 9 additions and 43 deletions.
    52 changes: 9 additions & 43 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -18,10 +18,16 @@ You'll need to install sudo first:

    `pacman -S sudo`

    and then you can make your user account and set your passwords
    and then you can make your user account

    `addauser user`

    Or, if that's not supported you can do

    `useradd -mrUG root -s /bin/bash user`

    Then set passwords

    `sudo passwd root` # Password for root

    `sudo passwd user` # Password for your user
    @@ -34,48 +40,8 @@ After this you're ready to use your login

    `su - user`

    If pacman complains about a 404 error when downloading wget you'll just need to edit the /etc/pacman.d/mirrorlist as root (<CODE>su</CODE>) and uncomment the server that's closest to your location. Then run <CODE>pacman -Syyuu</CODE> to refresh the repos and ensure all packages are up to date with the repos and try to install wget again.

    In order to download and build AUR packages, some more steps are required.

    One thing you'll have to do is replace fakeroot with its tcp version. There is a series of commands to do just this, however, if everything goes as planned it should take 2 exits to exit the terminal, once for the fakeroot if it is unstalled successfully. If you're terminal exits completely then something went wrong, rerun the commands without the exit to find out why. Make sure wget, make and tar are installed correctly and then run:

    `wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.24.orig.tar.gz`

    `tar xvf fakeroot_1.24.orig.tar.gz`

    `cd fakeroot_1.24/`

    `./bootstrap`

    `./configure --prefix=/opt/fakeroot \`

    ` --libdir=/opt/fakeroot/libs \`

    ` --disable-static \`

    ` --with-ipc=tcp`

    `make -j4`

    `sudo make install`

    `/opt/fakeroot/bin/fakeroot`

    `exit`

    Download [this zip](https://androidfilehost.com/?fid=4349826312261689061) and extract the makepkg to your users home directory. In your user's bin/ folder, backup your current makepkg binary by renaming it with `mv /usr/bin/makepkg /usr/bin/makepkg.bk`. Copy the new makepkg to the /usr/bin/ folder and you should now be able to make and install packages using yay.

    If the makepkg binary I patched does not work for your install, then remove it from your bin and copy the original makepkg to the patch directory without the .bk extension.

    `cp /usr/bin/makepkg.bk ./makepkg`

    Then run this command to generate a patched version of your makepkg:

    `patch makepkg < makepkg.patch`

    `cp makepkg /usr/bin/`
    Once you're user is set up, I made a handy crash-tested script that should run through and handle any exceptions. If not, it should at least make it easy enough to figure out what went wrong. Download and run it with sudo to avoid repeating your password:

    Now to install yay, I followed the simple instructions from the [github page](https://github.com/Jguer/yay).
    `wget "" && chmod +x fresharch.sh && sudo bash fresharch.sh`

    If all the instructions were followed correctly yay should install and you'll have a functional Arch Linux with AUR support on your Android device.
  28. RebelLion420 revised this gist Jan 1, 2020. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -26,6 +26,12 @@ and then you can make your user account and set your passwords

    `sudo passwd user` # Password for your user

    If you encounter an error using sudo regarding RLIMIT_CORE then you'll need to create an `/etc/sudo.conf` and add this line:

    `Set disable_coredump false`

    After this you're ready to use your login

    `su - user`

    If pacman complains about a 404 error when downloading wget you'll just need to edit the /etc/pacman.d/mirrorlist as root (<CODE>su</CODE>) and uncomment the server that's closest to your location. Then run <CODE>pacman -Syyuu</CODE> to refresh the repos and ensure all packages are up to date with the repos and try to install wget again.
  29. RebelLion420 revised this gist Dec 31, 2019. 1 changed file with 15 additions and 15 deletions.
    30 changes: 15 additions & 15 deletions TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -1,32 +1,32 @@
    So, to get started you need to get the base OS installed using the instructions from the official docs . I chose option 3 since I only wanted the script

    <CODE>pkg update</CODE>
    `pkg update`

    <CODE>pkg install wget proot</CODE>
    `pkg install wget proot`

    <CODE>termux-setup-storage</CODE>
    `termux-setup-storage`

    <CODE>termux-chroot</CODE>
    `termux-chroot`

    <CODE>wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh</CODE>
    `wget https://sdrausty.github.io/TermuxArch/setupTermuxArch.sh`

    <CODE>bash setupTermuxArch.sh</CODE>
    `bash setupTermuxArch.sh`

    This should download fine using wget and start installing. The install itself will take around 15-30 minutes to extract the system and install everything. When the process finishes you'll be in a root shell in your new Arch distro! Of course, not everything will work out of the box.

    You'll need to install sudo first:

    <CODE>pacman -S sudo</CODE>
    `pacman -S sudo`

    and then you can make your user account and set your passwords

    <CODE>addauser user</CODE>
    `addauser user`

    <CODE> sudo passwd root </CODE> # Password for root
    `sudo passwd root` # Password for root

    <CODE>sudo passwd user</CODE> # Password for your user
    `sudo passwd user` # Password for your user

    <CODE>su - user</CODE>
    `su - user`

    If pacman complains about a 404 error when downloading wget you'll just need to edit the /etc/pacman.d/mirrorlist as root (<CODE>su</CODE>) and uncomment the server that's closest to your location. Then run <CODE>pacman -Syyuu</CODE> to refresh the repos and ensure all packages are up to date with the repos and try to install wget again.

    @@ -58,17 +58,17 @@ One thing you'll have to do is replace fakeroot with its tcp version. There is a

    `exit`

    Download [this zip](https://androidfilehost.com/?fid=4349826312261689061) and extract the makepkg to your users home directory. In your user's bin/ folder, backup your current makepkg binary by renaming it with <CODE>mv /usr/bin/makepkg /usr/bin/makepkg.bk</CODE>. Copy the new makepkg to the /usr/bin/ folder and you should now be able to make and install packages using yay.
    Download [this zip](https://androidfilehost.com/?fid=4349826312261689061) and extract the makepkg to your users home directory. In your user's bin/ folder, backup your current makepkg binary by renaming it with `mv /usr/bin/makepkg /usr/bin/makepkg.bk`. Copy the new makepkg to the /usr/bin/ folder and you should now be able to make and install packages using yay.

    If the makepkg binary I patched does not work for your install, then remove it from your bin and copy the original makepkg to the patch directory without the .bk extension.

    <CODE>cp /usr/bin/makepkg.bk ./makepkg</CODE>
    `cp /usr/bin/makepkg.bk ./makepkg`

    Then run this command to generate a patched version of your makepkg:

    <CODE>patch makepkg < makepkg.patch</CODE>
    `patch makepkg < makepkg.patch`

    <CODE>cp makepkg /usr/bin/</CODE>
    `cp makepkg /usr/bin/`

    Now to install yay, I followed the simple instructions from the [github page](https://github.com/Jguer/yay).

  30. RebelLion420 revised this gist Dec 31, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion TermuxArchSetup2019.md
    Original file line number Diff line number Diff line change
    @@ -42,9 +42,12 @@ One thing you'll have to do is replace fakeroot with its tcp version. There is a

    `./bootstrap`

    `./configure --prefix=/opt/fakeroot \`\n
    `./configure --prefix=/opt/fakeroot \`

    ` --libdir=/opt/fakeroot/libs \`

    ` --disable-static \`

    ` --with-ipc=tcp`

    `make -j4`