Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few questions about Arch Linux in Termux PRoot #59

Closed
Root-voidX opened this issue Mar 15, 2018 · 71 comments
Closed

A few questions about Arch Linux in Termux PRoot #59

Root-voidX opened this issue Mar 15, 2018 · 71 comments
Labels
A26+ Android 8 SDK 26+ enhancement makepkg question socket Socket parent issue with spoon children issues

Comments

@Root-voidX
Copy link

Hey @SDRausty I finally checked out Arch. I have used Mandrake on PC before so I like to think I know a bit or too about Linux. Anyway I have a few questions I hope you could answer:

  • I have installed LXDE but when I use XServer to export display the lxde font doesn't show up, only boxes
  • How do I get software rendering so I can run gui app?
  • How do I add AUR to pacman
  • Last question, does this work on 8.0? Its working on my s7e on 7.0 but I'm picking up my s9+ tonight and its running 8.0 out of the box

Thanks my dude!

@SDRausty
Copy link
Owner

@Root-voidX you are welcome. Thank you for using TermuxArch 🏹 and sharing interesting questions.

installed LXDE but when I use XServer

How to use Xorg in TermuxArch? #27 should have the answer that you are seeking. Share screenshots and instructions of your success thus far.

installed LXDE

Sharing will help us do more on device with Termux today. Many of our questions are solved, but the information has not been disseminated to everyone. Fortunately Termux has an FAQ, and this has freed up developer's time resources. Termux Packages is a good example today. It's easy to create packages, but how is not that easy to answer except for, "Documention is forthcoming, please contribute."

Here are some links where repeating the questions asked may be worth the effort and time.

Email : termux+subscribe@groups.io
Github : https://github.com/termux/
Gitter : https://gitter.im/termux/termux
Termux Community : https://plus.google.com/communities/101692629528551299417
Try Arch Linux https://github.com/archlinuxarm too. When you find answers, share them here for us all.

@SDRausty SDRausty changed the title A few questions about Arch? A few questions about Arch Linux in Termux PRoot Mar 17, 2018
@Root-voidX
Copy link
Author

For issue with the fonts, some things are missing from the lxde-font package. The fix is installing ttf-dejavu

...
[20:50 home ]$ pacman -S ttf-dejavu
resolving dependencies...
looking for conflicting packages...

Packages (4) xorg-fonts-encodings-1.0.4-4 xorg-mkfontdir-1.0.7-8
xorg-mkfontscale-1.1.3-1 ttf-dejavu-2.37-2

Total Download Size: 2.93 MiB
Total Installed Size: 10.56 MiB

...

@Root-voidX
Copy link
Author

I still haven't figured out how to add AUR, but I got octave working easily.

I dont know if P-Root is working on 8.0 yet. I'll keep you guys/girls posted.

@SDRausty
Copy link
Owner

@Root-voidX this is great news that Linux is running in your device. Linux on the go; Incredible. Can you share a brief tutorial how you got X up and running in Arch Linux in Termux PRoot. Add a screenshot or two if possible. The more guides there are, the easier it will be for new users, even really brief ones. Here is a discussion about building packages in Arch Linux, Succesfully Modified Stock 'makepkg'... #38.

@SDRausty
Copy link
Owner

@Root-voidX here is an IRC https://wiki.archlinux.org/index.php/IRC_channel link that will be useful for asking some of these questions upstream.

@SDRausty
Copy link
Owner

This f16c27d commit adds Arch Linux IRC channel upstream contact information to the TermuxArch motd and logout.

@Root-voidX
Copy link
Author

Hey @SDRausty thanks for the links. Its been a bit busy on my end, Hopefully this weekend I can spend some time to work on getting some things on arch done after i install it on my s9+.

In terms of getting X up and running, i followed this step:

pacman -S xorg-server

pacman -S lxde

*note that since there are multiple LXDE packages that pacman finds, I installed all (which is the default option)

then since lxde-font might not work, to fix install ttf-dejavu by typing:
pacman -S ttf-dejavu

After that I launch XSDL first and then switch back to termux. Inside arch I type in:
DISPLAY=:0 startlxde

and once I press enter I switch back to XSDL and it should start LXDE. 

Note: It is possible to get audio as well, to do so install pulseaudio and type in the local address shown in XSDL

@Root-voidX
Copy link
Author

@SDRausty

I tried installing termux-arch following option 2. Doesn't matter how many times I clear cache. Install goes okay but proot exits since It can't find /env.

@Root-voidX
Copy link
Author

This is for android 8 on s9+

@SDRausty
Copy link
Owner

SDRausty commented Mar 26, 2018

@Root-voidX is env where startarch points to in Android 8? Can you post complete output for Android 8 including setupTermuxArch.sh sysinfo?

Use setupTermuxArch.sh refresh to refresh the installation and the TermuxArch files. This will run the script from the point after downloading and unpacking the system image, and editing the Arch Linux configuration files by only updating Arch Linux and refreshing all the TermuxArch files to the newest version.

Thank you for sharing instructions about startlxde! Have you tried any of the other desktop environments?

@Root-voidX
Copy link
Author

Root-voidX commented Mar 28, 2018

@SDRausty

No I haven't but running xfce or twim should be possible following the same steps.

In terms of updates, this is the error I get running arch after installing it:

$ startarch
proot error: '/bin/env' not found (root = /data/data/com.termux/files/home/arch, cwd = /data/data/com.termux/files/home, $PATH=(null))
fatal error: see `proot --help`.
$

@SDRausty
Copy link
Owner

SDRausty commented Mar 29, 2018

@Root-voidX this 0cfde87 commit should resolve the Android 8 error. Can you confirm whether it does?

@aarmn
Copy link

aarmn commented Mar 29, 2018

I use android oreo
I do all steps and it show a empty file in nano mirrorlist and dont proot to arch with this error
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/arch, cwd = /data/data/com.termux/files/home, $PATH=(null))
fatal error: see proot --help.

@Root-voidX
Copy link
Author

Yes nano shows an empty file as well when I did install it before. @SDRausty should i manually replace the changes in the commit, or does the git clone or wget copy the commit changes ?

I'll try tonight =)

@SDRausty
Copy link
Owner

SDRausty commented Apr 4, 2018

@aarmn @Root-voidX

Topic 1)

Where is env? Does editing the exec proot statement in startarch help in any way for Android 8? To ask upstream about why it works on >8, but not on <=8 tap here.

Topic 2)

empty file

setupTermuxArch.sh sysinfo for these devices is requested; Can this be reproduced on Android >8?

@Root-voidX
Copy link
Author

The output @SDRausty is as followed for sysinfo:

bash setupTermuxArch.sh sysinfo

 🕛 > 🕛 setupTermuxArch v1.5 will create a system information file.  Ensure background data is not restricted.  Run bash setupTermuxArch.sh help for additional information.  Check the wireless connection if you do not see one o'clock 🕐 below.  Checking prerequisites…

 🕛 > 🕧 Prerequisites: OK  Downloading TermuxArch…

setupTermuxArc 100%     153  --.-KB/s    in 0s
setupTermuxArc 100%  18.77K  --.-KB/s    in 0.009s

 🕛 > 🕐 TermuxArch download: OK

 🕛 > 🕜 TermuxArch v1.5 integrity: OK

Begin setupTermuxArch debug information.

`termux-info` results:

Updatable packages:
binutils/stable 2.30-2 aarch64 [upgradable from: 2.30-1]
busybox/stable 1.28.2 aarch64 [upgradable from: 1.27.2-1]
git/stable 2.17.0 aarch64 [upgradable from: 2.16.2]
less/stable 530 aarch64 [upgradable from: 487]
libsqlite/stable 3.23.0 aarch64 [upgradable from: 3.22.0]
openssh/stable 7.7p1 aarch64 [upgradable from: 7.6p1]
openssl/stable 1.0.2o aarch64 [upgradable from: 1.0.2n]
python/stable 3.6.5-1 aarch64 [upgradable from: 3.6.4-1]
sed/stable 4.5 aarch64 [upgradable from: 4.4-1]
System information:
Linux localhost 4.9.65-13087505 #1 SMP PREEMPT Sun Feb 25 18:48:40 KST 2018 aarch64 Android
Termux-packages arch:
aarch64
Android version:
8.0.0
Device manufacturer:
samsung
Device model:
SM-G965W

Disk report 34518344 on /data Thu Apr  5 16:36:38 EDT 2018

BASH_VERSINFO[0] = 4
BASH_VERSINFO[1] = 4
BASH_VERSINFO[2] = 19
BASH_VERSINFO[3] = 1
BASH_VERSINFO[4] = release
BASH_VERSINFO[5] = aarch64-unknown-linux-android

cat /proc/cpuinfo results:

Processor       : AArch64 Processor rev 12 (aarch64)
processor       : 0
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x7
CPU part        : 0x803
CPU revision    : 12

processor       : 1
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x7
CPU part        : 0x803
CPU revision    : 12

processor       : 2
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x7
CPU part        : 0x803
CPU revision    : 12

processor       : 3
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x7
CPU part        : 0x803
CPU revision    : 12

processor       : 4
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x6
CPU part        : 0x802
CPU revision    : 13

processor       : 5
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x6

processor       : 6
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x6
CPU part        : 0x802
CPU revision    : 13

processor       : 7
BogoMIPS        : 38.40
Features        : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x51
CPU architecture: 8
CPU variant     : 0x6
CPU part        : 0x802
CPU revision    : 13

Hardware        : Qualcomm Technologies, Inc SDM845

dpkg --print-architecture result:

aarch64

getprop ro.product.cpu.abi result:

arm64-v8a

getprop ro.product.device result:

star2qltecs

Download directory information results.

/sdcard/Download exists
/storage/emulated/0/Download exists

du -hs /data/data/com.termux/files/home/arch results:

124.0K  /data/data/com.termux/files/home/arch

ls -al /data/data/com.termux/files/home/arch results:

total 40
drwx------    9 u0_a290  u0_a290       4096 Apr  5 16:32 .
drwx------    4 u0_a290  u0_a290       4096 Apr  5 16:36 ..
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 data
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 dev
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 proc
drwx------    3 u0_a290  u0_a290       4096 Apr  5 16:29 root
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 sdcard
-rwx------    1 u0_a290  u0_a290       3996 Apr  5 16:29 startarch
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 storage
d---------    2 u0_a290  u0_a290       4096 Apr  5 16:32 sys

uname -a results:

Linux localhost 4.9.65-13087505 #1 SMP PREEMPT Sun Feb 25 18:48:40 KST 2018 aarch64 Android

End `setupTermuxArchDebug0594.log` debug information.

Post this information along with information regarding your issue at https://github.com/sdrausty/TermuxArch/issues.  Include information about input and output.  This debugging information is found in /data/data/com.termux/files/home/setupTermuxArchDebug0594.log.  If you think screenshots will help in resolving this matter better, include them in your post as well.

Submit this information if you plan to open up an issue at https://github.com/sdrausty/TermuxArch/issues to improve this installation script along with a screenshot of your topic.  Include information about input and output.

Thank you for using setupTermuxArch.sh v1.5 🏁

@SDRausty
Copy link
Owner

SDRausty commented Apr 6, 2018

@Root-voidX 'ave you run pkg up? Upgrade the Termux packages.

@Root-voidX
Copy link
Author

Arch error https://imgur.com/a/b9cGw

This is what I get during install. @SDRausty

@SDRausty
Copy link
Owner

SDRausty commented Apr 8, 2018

@aarmn @Root-voidX This commit adds

you should be able to work around this with export PROOT_NO_SECCOMP=1

From termux/proot#13 (comment) Can you confirm whether this resolves Android 8 installation issues?

@Root-voidX
Copy link
Author

@SDRausty So should I just git clone again from scratch?

@SDRausty
Copy link
Owner

SDRausty commented Apr 8, 2018

@Root-voidX yes, that's an option; Any of the methods listed on this https://sdrausty.github.io/TermuxArch/docs/install page should work fine. Use setupTermuxArch.sh purge first to remove anything left over from the previous attempts.

@Root-voidX
Copy link
Author

@SDRausty okay so it extracts properly now but when I try to edit the mirrorlist, even if I type in a second # symbol to point out the mirror it fails to configure and errors pop up during pacman. So I have a feeling I am doing something wrong. Can you advise ?

@SDRausty
Copy link
Owner

SDRausty commented Aug 3, 2019 via email

@SDRausty SDRausty unpinned this issue Sep 9, 2020
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 4, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
SDRausty referenced this issue in TermuxArch/TermuxArch May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A26+ Android 8 SDK 26+ enhancement makepkg question socket Socket parent issue with spoon children issues
Projects
None yet
Development

No branches or pull requests

6 participants