Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install TermuxArch in Termux of Android (Samsung Galaxy Tab 10.1)
#################################################################
# How to install Arch in your Android (into the App TermuxArch)
# and be able to use your Android device like a personal computer
# even running a X server to have GUI
#################################################################
###############################
# Install Termux
###############################
# go to google playstore > Termux > install
###############################
# Install XServer XSDL
###############################
# go to google playstore > XServer XSDL > install
###############################
# Install TermuxArch via git clone
###############################
# create a github account for this
# for github account, gmail account is necessary
# create a gmail account before creating github account
# download TermuxArch
git clone https://github.com/sdrausty/TermuxArch
cd TermuxArch
bash setupTermuxArch.sh
# caveat:
# could not resolve host errors occured
# I exited Arch
exit # exit Arch
# and I googled over that problem:
# following: https://github.com/sdrausty/TermuxArch/issues/106
# I did:
bash setupTermuxArch.sh refresh
# and then it ran and the cannot result host errors disappeared
# how to start Arch from Termux:
# start the Termux app
# and fire
startarch
# have fun, from now on, you can isntall pacman packages on your Archlinux in Termux
# and use those programs on Android!
###############################
# how to get a GUI Desktop using TermuxArch
###############################
# IMPORTANT!:
# start app XServer XDSL first!!
# from playstore > open
# or from you Android XServer XDSL icon
# (because from inside Termunx the commands cannot open it automatically)
# enter TermuxArch
startarch
# following: https://github.com/sdrausty/TermuxArch/issues/73
# install x-server into TermuxArch
pacman -S xorg-server
# install lxde as a simple, lightweight graphical Desktop
pacman -S lxde
# since lxde-font might not work, the source suggests:
pacman -S ttf-dejavu
# do you have opened XServer XDSL on your device? If not, do!
# Ignore the instructions there!
# Switch back to Termux App:
# exit Arch because you have to type in Termux:
DISPLAY=:0 startlxde
# press Return
# and now switch back in your device to XServer XDSL!
# Voila! You LXDE should start and
# using a bluetooth mouse and bluetooth keyboard,
# it feels like to own a full OS with GUI!
# ########################
# # if you like fluxbox instead of lxde
# ########################
# # fluxbox had many errors
#
# pacman -S xterm
# pacman -S firefox
# pacman -S fluxbox
#
########################
# install stuff you like via pacman -S
########################
# to program lisp using emacs and sbcl, I installed:
pacman -S sbcl
pacman -S emacs
### I tried to install X11 on Termux, but this was too complicated
### I recommend rather to run X from inside TermuxArch in Termux!
# # install necessities
# # following: https://github.com/xeffyr/termux-extra-packages
#
# # exit arch and in Termux(!) do:
# pkg install dirmngr
# apt-key adv --keyserver pool.sks-keyservers.net --recv 9D6D488416B493F0
#
# # If you have a trouble with accessing key server, you can manually download public key and add it:
#
# curl -LO https://raw.githubusercontent.com/xeffyr/termux-extra-packages/master/pubkey.asc
# apt-key add pubkey.asc
#
# # I had to do $ pkg install curl
#
# # open sources list
# nano $PREFIX/etc/apt/sources.list
# # in Termux, the 'root' is at $PREFIX!!
#
#
# # add the two lines into sources.list file:
#
# # Xeffyr's Extra packages
# deb https://termux.xeffyr.ml/ extra main x11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.