Git Product home page Git Product logo

termuxalpine's Introduction

TermuxAlpine

powered by

powered by Alpine

Optional Text

This Termux bash setup shell script will attempt to set Alpine Linux up in your Termux environment.

Steps For Installation

  1. First go to home directory cd $HOME
  2. Get the script curl -LO https://raw.githubusercontent.com/Hax4us/TermuxAlpine/master/TermuxAlpine.sh
  3. Execute the script bash TermuxAlpine.sh
  4. Start Alpine startalpine
  5. For exit just execute exit

Steps For First Time Use (Recommended)

  1. Update Alpine apk update
  2. Now you can install any package by apk add package_name

Size Comparision

Size   Alpine   Arch Ubuntu
before installation Around 1 MB 😱  Around 400 MB Around 35 MB
after installation Around 80 MB Around 2000 MB Around 1200 MB

Comments are welcome at https://github.com/Hax4us/TermuxAlpine/issues

Pull requests are welcome at https://github.com/Hax4us/TermuxAlpine/pulls

termuxalpine's People

Contributors

hax4us avatar ki65 avatar laughingbiscuit avatar monoidic avatar sisiravijaym avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

termuxalpine's Issues

TermuxAlpine ,Its Posible to GUI

Yesterday,
I ve try install xfce4 xorg xrdp...
I want make termuxalpine gui run.
Xfce4 n xrdp succes install but xorg is missing....

Its posible run termuxalpine gui,sir..

Thanks,maybe you can help me {+_+}

proot error: '.../TermuxAlpine/bin/busybox' is a 64-bit program whereas this version of proot handles 32-bit programs only

Steps to reproduce

$ startalpine
proot error: '/data/data/com.termux/files/usr/share/TermuxAlpine/bin/busybox' is a 64-bit program whereas this version of proot handles 32-bit programs only
proot info: vpid 1: terminated with signal 4

image

Information

ABI: arm64-v8a
android kernel: 4.14.113-22145712
Termux version: 0.117 (fdroid)

I have a similar issue with the official termux proot package using neofetch

proot version: 5.107.48 arm

Output

# neofetch
OS: Debian GNU/Linux 11 (bullseye) armv8l
proot error: '/system/bin/toolbox' is a 64-bit program whereas this version of proot handles 32-bit programs only
proot error: '/system/bin/toolbox' is a 64-bit program whereas this version of proot handles 32-bit programs only
Kernel: 5.4.0-faked
Uptime: 3 days, 7 hours, 4 mins
Packages: 165 (dpkg), 1 (pkg)
Shell: bash 5.1.4
Terminal: proot
CPU: ARMv8 rev 2 (v8l) (8) @ 1.742GHz
proot error: '/system/bin/toybox' is a 64-bit program whereas this version of proot handles 32-bit programs only
Memory: 2381MiB / 3570MiB

image

Unable to install

Bro, it is not working on my kernal architectur.My kernal architecture is i686.plz add this and fix this issue.

need help for ta-lib installation on alpine

Hi guys, i am unable to install ta-lib

when i try to make its report there is no rules to make
and then i try sudo make install and again its report No rule to make target 'install'. Stop.

so what is the proper solution? please help

Help

Screenshot_٢٠٢٢٠٩١٣-٢٠٢٢٣٨

I want to install Linux system in my phone how is the way

Change the download URL and Repos

Many thanks to make it possible to run alpine on termux :)

Could you change the download link to latest-stable instead of hard-coded version number

Like this:

ARCH=$(uname -m)
ALPINE_VER=$(curl -s http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/$ARCH/latest-releases.yaml | grep -m 1 -o version.* | sed 's/[^0-9.]*//g')
ALPINE_URL="http://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/$ARCH/alpine-minirootfs-$ALPINE_VER-$ARCH.tar.gz"

wget $ALPINE_URL

Also update the repo file:

echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/"       > $HOME/TermuxAlpine/etc/apk/repositories; \
echo "http://dl-cdn.alpinelinux.org/alpine/latest-stable/community/" >> $HOME/TermuxAlpine/etc/apk/repositories; \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/"            >> $HOME/TermuxAlpine/etc/apk/repositories

The reason I don't send PR is because I don't really write bash code, so it will be a mess :p

Is it possible to install a GUI in TermuxAlpine?

I have been trying the instructions on Alpine's WIKI trying to get a working GUI but can't seem to find the magic. Xorg, X11VNC and my preferred.. xRDP are not able to be started correctly. The simplest X11 export DISPLAY=0 or any variation commands fail. xRDP launches and logs in but can't reach a desktop (MATE) or gui app directly.
It seems since rc-service is not started due to proot config some functions just won't start or nest correctly.
There are 2 other details I ran into with the package.

  1. I had to change TMPDIR to use the rootfs/tmp directory.. Openjdk8 was having heartburn with the termux env path. <-under the current proot config, I don't think it can reach it..
  2. To use xRDP you have to add a user. That process works fine but login fails after being successful due to bash config from termux env. responds with bad shell and kicks you back to root account bash config..
    I would love to use this for the few linux apps there are not android ports for. I don't really care about a full linux desktop on Android x86_64. (Running PrimeOS)For now , I have Android Studio, Serviio Media Server running fine on Proot Ubuntu.. AQEMU qemu front end running well on termux directly..VirtualBox is the only other target left I don't have a good android port for already..
    i really like the footprint (size) of Alpine if the x11 support was just a little more do-able..
    Thanks!!

how to run alpine in qemu with multi-core

I found that alpine in qemu is too slow; what's i use top in termux, i find only one core works. so how to run alpine in qemu with multi-core. I test qemu-system-x86_64 -hda virt-alpine.img -boot c -m 1024 -smp 6,sockets=6, but it does not work
image

how I can run docker in it?

[root@localhost home]# apk add docker                                         OK: 255 MiB in 26 packages                                                    [root@localhost home]# docker run nginx
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.                                                  See 'docker run --help'.                                                      [root@localhost home]#

How could I execute dropbear after alpine linux started

I have installed Openrc and dropbear.And then put shellfile into /etc/local.d/dropbear.start. Run the command rc-update add dropbear.It means execute shell when alpine linux started
When I try to restart termux app,It doesn's work.How shall I do.
Thank you in advance for your selfless help.

dropbear.start look like this
dropbear -p 2222

Error

(28) Failed to connect to raw.githubusercontent.com port 443 after 32018 ms: Couldn't connect to server

Illegal instruction

Device :

Key Value
OS Android 7.1.1 armv7l
Host samsung SM-J510FN
Kernel 3.10.49-12476963
Shell bash 5.1.8
CPU Qualcomm MSM8916 (4) @ 1.190GHz
Memory 1386MiB / 1891MiB
Termux F-Droid 0.117

Issue :

Today i follow instruction from Readme in this repo, installation success without any error. But after issued command startalpine i will try to install nodejs. What's wrong with my installation, can somebody tell me how to make it work ?

Step to reproduce :

$ apk update && apk upgrade
$ apk add ca-certificates git
$ apk add nodejs npm
$ which node
/usr/bin/node
$ node -v
Illegal instruction
$ which npm
/usr/bin/npm
$ npm -v
Illegal instruction

please could you help Me compile The speech-dispatcher speech server

Dear advanced author of this script to install Alpine.
I Am visually impaired with no sight at all. And I have The possibility to use Xwayland protocol. I can use Mate desktop environment and Orca screen reader, which is packaged in Alpine Linux repository.
Unfortunately for Me, Orca screen reader packager have forgotten to add very important Orca screen dependency.
Speech-dispatcher.
This speech server is The crucial part of Orca. It can not speak without this C complex app.

Please could you help Me to build This speech server on Alpine Linux AArch64 architecture?
I have used your Bash script to install Alpine.

There are complex issues while building Speech-dispatcher.
Here is Speech-dispatcher github repository address.
https://github.com/brailcom/speechd
Sure I have followed The documentation.
But I Am getting errors.

I Am sad, because Alpine uses Mate without depend on Systemd so no errors are displaied, Alpine eve support start Linux services in Chroot mode even if Linux kernel is not presented, so it would be more than ideal distribution for visually impaired Orca users.

May be, that you will help Me.

?? THE BEST IS ??

hello the best android emulator is termux simply? termuxalpine? termuxkalinethunter?termuxarch? or a new terminal? for pentest in android smartphone.
my phone is rooted aarch64 oreo8 sony xperia g3221 xa1 .thanks for your help(sorry for my bad english)

Support for Termux API

Include script to install termux-api in the alpine environment.

One way to do this is supply an optional script, install-termux-api:

#!/bin/sh
set -eu
apk info 2>/dev/null > apk-before.txt

apk -q add git gcc make libc-dev
ln -sfn /bin/sh /usr/bin/sh
git clone -q --depth 1 https://github.com/termux/termux-api-package.git
cd termux-api-package
sed -i 's/arc4random/rand/g' termux-api.c
sed -i 's|PREFIX ?= .*$|PREFIX = /usr|' Makefile
make --silent install
cd ..

# Clean up.   Remove repo and packages that weren't previously installed.
apk info | grep -vxf apk-before.txt | xargs -r apk -q del
apk cache --purge || true
rm -rf termux-api-package apk-before.txt

This builds on Alpine x86, but is untested in TermuxAlpine.

On Oreo /etc/resolv.conf is empty

On Oreo /etc/resolv.conf is empty because getprop gives a different value than Nougat, etc. I've tested it on 8.1 on LG Stylo 4 and Nexus 6p on 8.0. Need to check the size of the file and use default values if it's empty.

Cannot setup gui.

I was following intructions on your blog , but thats is not working, displaying some error/warning seem like "Cannot read display :1"

armhf vs armv7

Hi, thanks for this great project!

I see you're using armhf version of alpine. Is it possible to use armv7 also? That arch seems to have more packages.

Cannot git clone any repository

When I try to git clone any repository, I get the following error.

~ # git clone https://github.com/Hax4us/TermuxAlpine.git
Cloning into 'TermuxAlpine'...
fatal: Invalid path '/root/TermuxAlpine/.git': Operation not permitted

Errors during "Configuring Alpine for you..." Stage

Hi there

I've reinstalled termux but I'm still getting these errors:

[*] Configuring Alpine For You .../data/data/com.termux/files/usr/share/TermuxAlpine/finaltouchup.sh: line 4: /data/data/com.termux/files/usr/share/TermuxAlpine/etc/profile: No such file or directory
/data/data/com.termux/files/usr/share/TermuxAlpine/finaltouchup.sh: line 43: /data/data/com.termux/files/usr/share/TermuxAlpine/etc/resolv.conf: No such file or directory
cp: cannot stat '/data/data/com.termux/files/usr/share/TermuxAlpine/etc/apk/repositories': No such file or directory
/data/data/com.termux/files/usr/share/TermuxAlpine/finaltouchup.sh: line 34: /data/data/com.termux/files/usr/share/TermuxAlpine/etc/apk/repositories: No such file or directory

Any ideas how I resolve them so I can run Alpine?

I'm running Lineage 16 (Android 9) on my Kindle HDX 7".

Thanks

Can the desktop environment be more optimized?

Hello, I have successfully set up VNC server with your help. But as we all know, VNC is inefficient, and there are some stuns on my device. Do you have any way to use XServer XSDL to run the desktop environment. I use i3wm, if you can give detailed steps for this WM, it will be better.Thank you.

Filesystem errors after install

I was able to successfully get alpine installed in termux proot on my chromebook. When I run startalpine' I get the following error message: proot warning: can't sanitize binding "/sys/": No such file or directory`. This doesn't seem to affect things as far as I can tell so far, but wanted to be sure.

My main reason for installing alpine was to get terraform working. When I run terraform init I get the following error: Couldn't setup logging tempfile: open /data/data/com.termux/files/usr/tmp/terraform-log605266379: no such file or directory. I can confirm that directory exists. Is there a step I'm missing that would allow alpine to write to the tmp directory? Thanks.

Proot Crashed when I installing openjdk

When I install openjdk8, the proot crashed

Executing busybox-1.31.1-r9.trigger
Executing ca-certificates-20191127-r1.trigger
Executing java-common-0.2-r0.trigger
proot warning: signal 11 received from process 24

proot warning: can't chdir("/home/.")

Hi Hax4us
I'm install your package TermuxAlpine, and have some problem with path,
also me interested to know what is the difference between your distribution and proot-distro alpine
thnx.

~ $ termux-setup-storage
~ $ startalpine
proot warning: can't chdir("/home/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/usr/share/TermuxAlpine, cwd = /, $PATH=(null))
fatal error: see `proot --help`.
~ $

Some binaries segfault?

armeabi-v7a

On legacy Termux, two packages (Kakoune, kak and Chezmoi, chezmoi) segfault on armhf and armv7 Alpine.

Happens on two devices.

Other programs run fine.

Can anyone explain why?

busybox error

Executing busybox-1.27.2-r8.trigger
ERROR: busybox-1.27.2-r8.trigger: script exited with error 127
3 errors; 101 MiB in 32 packages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.