Giter Site home page Giter Site logo

termuxarch / termuxarch Goto Github PK

View Code? Open in Web Editor NEW
875.0 34.0 51.0 140.68 MB

Experience the pleasure of the Linux command prompt in Android, Chromebook, Fire OS and Windows on smartphone, smartTV, tablet and wearable https://termuxarch.github.io/TermuxArch/

Home Page: https://termuxarch.github.io/TermuxArch/

License: Other

Shell 100.00%
termux termux-hacking termux-environment termux-tools cli terminal shell bash arch-linux termux-proot

termuxarch's Introduction

-r--r--r-- setupTermuxArch

-rwxrwxrwx setupTermuxArch

This BASH setup shell script will attempt to set Arch Linux up in a Termux PRoot environment with or without QEMU support. Emulated computer architectures armeabi-v7a, x86 and x86-64 are supported on arm64-v8a architecture smartphones. Emulated computer architecture x86 is supported on armeabi-v7a architecture smartphones. The command setupTermuxArch h[elp] has more information. This product is being designed for both the sighted, and also the visually impaired; Comments are welcome at discussions and issues webportals.

Please see install for options how to run setupTermuxArch on device, or simply run bash setupTermuxArch once this BASH script is downloaded to install Arch Linux in Termux. When successfully completed, the pleasure of experiencing the Linux command prompt in Arch Linux Termux PRoot QEMU in Android, Chromebook, Fire OS and Windows on smartphone, tablet, wearable and similar will be in power your hand.

Where can I find Termux app in order to use TermuxArch?

You can find Termux app at this https://github.com/termux/termux-app/releases webpage.

Screenshot from an Android smartphone 2018

screenshot_20180413-172406

Thank you for making this project work better and please contribute 🔆  Contributors and Notice to Contributors have more information about this project.

Screenshot of Arch On Termux

PRoot has more information about Linux on device with Termux.

Please share https://wiki.termux.com/wiki/Development everwhere🌎🌍🌏🌐!

Install Arch Linux into a Termux PRoot QEMU container with curl -OL https://TermuxArch.github.io/TermuxArch/setupTermuxArch && bash setupTermuxArch. After succesfull installation start the container with startarch.

Please see https://TermuxArch.github.io/TermuxArch/docs/install for options how to run setupTermuxArch on device.

Please see https://TermuxArch.github.io/docsTermuxArch/startingArch for options how to start the Arch Linux container startarch on device. If you find any errors, then please feel free open both a pull request, and an accompanying issue referencing it in the appropriate repository.

This repository uses submodules. To get all the pieces of this repository you can run the following code after cloning in the root directory of this repository:

pullTermuxArchMods.bash

FACTS ABOUT THIS PROJECT:

The core dataset can be viewed and tooled to your wish and desire with command setupTermuxArch bloom which should download all the components of TermuxArch into directory HOME/TermuxArchBloom in the Termux HOME directory. The command setupTermuxArch bloom is much like the command setupTermuxArch manual; The bloom option is more expansive than setupTermuxArch manual which is primarily used for mirror selection, and can be used to tune the PRoot init statement. Bloom is a much more verbose option in that it provides the CLI user the entire code dataset. Please feel free to use the commands setupTermuxArch h[e[lp]] for additional information how to use setupTermuxArch.

Files setupTermuxArch.{bash,sh} are held for backward compatibility; Please reference file setupTermuxArch as the chosen install file if aid and assistance be through sharing insight about this Arch Linux in a Termux PRoot QEMU container project which can be used on a smartphone, smartTV, tablet, wearable and more. File setupTermuxArch is earmarked as the install file name for this project.

File setupTermuxArch downloads as files setupTermuxArch.[bin,\ \(1\),\ \(2\),etc...]' through Internet browsers into Android Downloads on smartphone and Arch Linux in Termux PRoot QEMU can be installed directly from this file in Android with this command bash ~/storage/downloads/setupTermuxArch and similar which may also check whether there is a newer version automatically since the time it was downloaded. If there is a newer version, this file will self update. If this updating process went smoothly, this file will restart the process that was initially initiated by the user.

These files setupTermuxArch[.{bash,sh}] will NOT selfupdate to the most recent version published if they are used inside their git repository; You can use commands git pull && git submodule update --init --remote --recursive and pullTermuxArchMods.bash to update to the newest version published.

Very many hardy thank yous to contributors who are helping and have worked very hard to make this open source resource better! Please accept a wholehearted THANK YOU for using our open source product!

termuxarch's People

Contributors

sdrausty 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  avatar  avatar  avatar  avatar  avatar

termuxarch's Issues

chronic fakeroot issue with makepkg

Every time I try to install any tool e.g. "fakeroot-tcp"
I became depressed because of this 😢

It gives me this even after updating termuxarch and trying many solutions:

Entering fakeroot environment...
fakeroot, while creating message channels: Function not implemented
This may be due to a lack of SYSV IPC support.
fakeroot: error while starting the `faked' daemon.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Is there any solution yet?

Libzim package request

Hello
This package (libzim) is very important for me.
Could you guide me how to install it in your amazing system, or make it available for archlinuxaarch64, please?

Thanks in advance

root user login starts up arch proot without switching to /root directory

First of all being very new to this project , i wish i had found it earlier . Thanks to everyone who have contributed to this awesome project

  1. i have added a user , if i login as that user startarch login user it rightly takes me to the home directory ie /home/user
    but in its default root user login , it should use /root directory as its startup working directory ( echo $HOME rightly returns /root ) but it doesn't seem to work as intended . On startup after startarch is ran, it simply logs into arch proot being in the existing directory ie termux home . It should ideally switch to /root directory as its the default home dir .

  2. Also can you please change the default location of bin folder and that systemctl file from home directory to somewhere else .It is better to have clean and only user generated files in home directory ( /root or /home/user ) . Maybe add it somwhere in the rootfs directory but not in home directory .That way those files would also be more safe and avoid getting deleted mistakenly while general usage.

  3. If i copy any folder from my device's sdcard to arch home directory using termux , i can access it properly
    cp -a /sdcard/Download /home/user
    But if i copy-paste the same folder using my device's file manager and try to cd to that directory in termux - it says operation not permitted .i tried changing folder permissions to 0755 but to no avail
    If i wondering if there could a workaround to overcome this restriction , pasting content through file manager is definitely lot easier so would be good to have it working

  4. Lastly can you please specify how to update the TermuxArch properly . i have the https://github.com/TermuxArch/TermuxArch/blob/master/updateTermuxArch.bash script but when should i execute it ? In termux natively or inside arch proot ?

spacemacs with latest TermuxArch

Unfortunately upgrading TermuxArch to get the termux-* scripts has left me with a broken primary use case, namely. I can no longer run emacs/spacemacs (Update: This is probably due to my transition from mixed Termux+TermuxArch to pure TermuxArch in fact).

The fix has already been discussed here:
nix-community/nix-on-droid#12

But alas AFAICT this regression hasn't yet been fixed in proot.

WARNING: Could not connect to systemd: Failed to connect to socket /run/dbus/system_bus_socket: directory or file not exist

Very probably, many of us ave seen this error when run some app by using Termux. To avoid those errors. I AM afraid, that complete Linux kernel would had to be used.
Next complex science fiction related possibility.
What if somebody would compile ArchLinux kernel which would only contain system Bus support module and code and nothing else. And what if so little kernel would be executed by using Qemu from running ArchLinux by using Proot? But there would be more complex technique. Recode Proot so every related system bus code would be directed to some communication pipe between Qemu and running little kernel with only system bus support and running app.
This spec ial technique if it could be implemented may be a big revolution on future.

Seamonkey is very probably compiled without dictionaries support

Dear specialists,

I AM strongly afraid, that severe programmers issue have forced The Seamonkey AArch64 Bit packager to compile Seamonkey without dictionary support. As A result, even if user install Seamonkey dictionary addon correctly when using Mozilla official WeB site, Seamonkey do not support dictionaryes.

Please does somebody of us have A contact with professional, who is responsible for Seamonkey packaging for AArch64 Bit platform?
If yes. Could this kind man or team of people try to debate with Seamonkey developers to find some solution how to compile and build Seamonkey with support for dictionaryes?

If The problem is not caused by The fact, that Seamonkey compilation process excludes dictionaryes support, who of us would try to debug The real cause of this issue?
I Am ready to debug if somebody will be so kind and would write Me some instructions how to find The cause, why dictionaryes are not supported.

how to backup my termux arch installation?

I need to migrate my termux arch installation to other
a device. Is there any way to backup & restore termux & termux arch installation, I checked au it seems like it only backups packages not the configuration files.

TeXworks not saving conf in proot, migrated from Termux issues

Using Arch Linux ARM in proot, device not rooted. Android 9, Samsung Galaxy Tab A (WiFi, no phone). LXDE GUI. Works very well.

TeXworks functions correctly, with exception: It can read, but not write or modify, its configuration file at ~/.config/TUG/TeXworks.conf

Possibly also applies to other things in .config.

I contacted the TeXworks developer. No problem seen on ordinary Linux. Also tried building source code in Arch proot. It builds and works, but with same exception.

No error messages anywhere.

GUESS: May have something to do with interaction beteen proot and qt5. The .conf file uses qt5 methods for write. Unfortunately, I am not enough of a programmer to know.

If due to proot qt5, then the issue may affect other programs using qt5.

perl and its components broken

This is exclusive to this repository. I installed a fresh copy twice and tested it on both repos (this one and the /SDRausty/TermuxArch). Perl and many packages that depend on it like po4a and cpan are broken (binaries missing).
On the other repo, it works perfectly fine, but on this repo it is failing. I'm not sure of the cause. Steps to reproduce :

  • clone this repo and install TermuxArch
  • install po4a and perl (perl is optional since it's installed by default)
  • try executing po4a or cpan and it returns error bash: cpan: command not found

Note that I already tried this with the stable repo too and these work normally. What commit do you think caused this regression?

How to build Gradio without yay by using existing preconfigured aarch64 repositories

Even though Gradio search station engine do not work, because radio-browser.info WEB portal have been changed, so Vala code is helpless to work with changed WEB site to provide search results, Gradio would be perfect and fully accessible solution for visually impaired user and if somebody advanced Vala expert could take some time and if this expert could adapt Gradio source to reflect todays and also future radio-browser.info WEB domain updates,, this radio player could be interesting alternative. to other players available.
Vala knowledge even would allow somebody to implement recording capabilities. It is possible to legally clone original Gradio repo to someones Github account and Gradio development can continue, MR Haecker will very probably not be engry because of it, because we are living in The world of full opensource freedom.

So how to install and build Gradio?
First of all
pacman -S desktop-file-utils gobject-introspection gst-plugins-bad gst-plugins-base gst-plugins-good gst-plugins-ugly gstreamer json-glib libgee libsoup sqlite3 appstream-glib gettext yelp-tools gst-libav vala
Then install git and clone The repo by using The following command.

git clone https://github.com/haecker-felix/Gradio.git
meson --prefix=/usr build

ninja -C build

ninja -C build install
Gradio could be normally executable and usable.
Try to search for AN station. YOu will very probably not get any results. If you will use mate-terminal gnome-terminal or if you will simply watch output generated by Vala by using normal Termux window, you will see The error. The .vala file source name and The line number. So Vala expert could even try to recode The corresponding source file to reflect latest
radio-browser.info
WEB page changes so build in search engine could work.
It is not dangerous system driver or kernel module modiffication so there are safe ways to debug and experiment. It is normal user app and Vala has reach run-time error engine and including C libraryes too.
I will inform you about my fight with Shortwave. Thanks to Rust community, which are very kind and helpfull, I had A chance to build and compile to binary form. But it was not been enough. I had experienced issues with Libhandy library.

Does it build successfully? Does the po4a binary exist?

  • Refresh from the latest commit. Run keys as root. Restart termux and log in as user. Do sudo pacman -Syu
  • Run sudo pacman -Rncs fakeroot-tcp if it exists (It used to build directly with fakeroot and patched makepkg but I wanted to retest building fakeroot-tcp using fakeroot which used to work earlier)
  • Optionally run sudo pacman -S fakeroot cd ~ git clone https://aur.archlinux.org/yay.git cd yay && makepkg -si. Check if it builds with fakeroot
  • Run cd ~ && git clone https://aur.archlinux.org/fakeroot-tcp.git && cd fakeroot-tcp && makepkg -si --noprepare.
    Does it build successfully? Does the po4a binary exist? I'm not sure if an update caused this or a regression due to a commit.

Originally posted by @petkar in SDRausty/TermuxArch#205 (comment)

Libreoffice

Libreoffice isn't working

When run on terminal it shows this error

ERROR: /proc not mounted - LibreOffice is unlikely to work well if at all

Audio output device with sox not detected

sox works on Termux by default but not on arch. Is there a way to fix that?

Installation:

> pacman -S sox

Test:

> play testmp3.mp3
play FAIL sox: Sorry, there is no default audio device configured

Can not use sftp-server, Exit status 255 connection closed

I successfully installed Tomcat9 and jdk11 in arch, but I want to deploy remote tomcat with idea on the computer, so I need to use SFTP, I can login by ssh but can not login by sftp

1. sshd_config as follow


[root20:54~]$ cat /etc/ssh/sshd_config 
#	$OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

Port 9922
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

#PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile	.ssh/authorized_keys

#AuthorizedPrincipalsFile none

#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# Change to no to disable s/key passwords
ChallengeResponseAuthentication no

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no # pam does that
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# override default of no subsystems
Subsystem	sftp	/usr/lib/ssh/sftp-server

# Example of overriding settings on a per-user basis
#Match User anoncvs
#	X11Forwarding no
#	AllowTcpForwarding no
#	PermitTTY no
#	ForceCommand cvs server

PermitRootLogin yes

2. start sshd sevice

[root20:53~]$ netstat -anp | grep sshd
tcp        0      0 0.0.0.0:8022            0.0.0.0:*               LISTEN      9472/sshd           
tcp        0      0 0.0.0.0:9922            0.0.0.0:*               LISTEN      9205/sshd           
tcp        0      0 192.168.2.116:8022      192.168.2.180:60587     ESTABLISHED 9513/sshd           
tcp        0      0 192.168.2.116:9922      192.168.2.178:55951     ESTABLISHED 9207/sshd: root@pts 
tcp        0      0 192.168.2.116:8022      192.168.2.180:54077     ESTABLISHED 9502/sshd           
tcp        0      0 192.168.2.116:8022      192.168.2.180:61115     ESTABLISHED 9531/sshd           
tcp6       0      0 :::8022                 :::*                    LISTEN      9472/sshd           
tcp6       0      0 :::9922                 :::*                    LISTEN      9205/sshd           
unix  2      [ ]         STREAM     CONNECTED     2408414  9207/sshd: root@pts  
[root20:57~]$ 

3. try sftp login and ssh login

  • ssh login success
PS C:\Users\lili> ssh -p 9922 [email protected]
[email protected]'s password:
printf "\n\e[1;34mWelcome to Arch Linux in Termux!\nInstall a package: \e[0;34mpacman -S package\n\e[1;34mMore  information: \e[0;34mpacman -[D|F|Q|R|S|T|U]h\n\e[1;34mSearch   packages: \e[0;34mpacman -Ss query\n\e[1;34mUpgrade  packages: \e[0;34mpacman -Syu\n\n\e[1;34mChat: \e[0mwiki.termux.com/wiki/Community\n\e[1;34mHelp: \e[0;34minfo query \e[1;34mand \e[0;34mman query\n\e[1;34mIRC:  \e[0mwiki.archlinux.org/index.php/IRC_channel\n\n\e[0m"
Last login: Mon Feb 17 20:24:44 2020 from 192.168.2.180

Welcome to Arch Linux in Termux!
Install a package: pacman -S package
More  information: pacman -[D|F|Q|R|S|T|U]h
Search   packages: pacman -Ss query
Upgrade  packages: pacman -Syu

Chat: wiki.termux.com/wiki/Community
Help: info query and man query
IRC:  wiki.archlinux.org/index.php/IRC_channel

[root21:24~]$
sftp -P 9922 [email protected]
[email protected]'s password:
Connection closed

4.debug sftp login info : Exit code 255

ssh -vvv -P 9922 [email protected]

debug3: spawning "C:\\Windows\\System32\\OpenSSH\\ssh.exe" "-oForwardX11 no" "-oForwardAgent no" "-oPermitLocalCommand no" "-oClearAllForwardings yes" "-v" "-v" "-v" "-oPort 9922" "-oProtocol 2" "-s" "--" "[email protected]" "sftp"
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug3: Failed to open file:C:/Users/lili/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname 192.168.2.116 is address
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.2.116 [192.168.2.116] port 9922.
debug1: Connection established.
debug1: identity file C:\\Users\\lili/.ssh/id_rsa type 0
debug3: Failed to open file:C:/Users/lili/.ssh/id_rsa-cert error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_rsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_rsa-cert type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_dsa error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_dsa.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_dsa type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_dsa-cert error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_dsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_dsa-cert type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_ecdsa error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_ecdsa.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_ecdsa type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_ecdsa-cert error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_ecdsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_ecdsa-cert type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_ed25519 error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_ed25519.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_ed25519 type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_ed25519-cert error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_ed25519-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_ed25519-cert type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_xmss error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_xmss.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_xmss type -1
debug3: Failed to open file:C:/Users/lili/.ssh/id_xmss-cert error:2
debug3: Failed to open file:C:/Users/lili/.ssh/id_xmss-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\lili/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.1
debug1: match: OpenSSH_8.1 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.2.116:9922 as 'root'
debug3: put_host_port: [192.168.2.116]:9922
debug3: hostkeys_foreach: reading file "C:\\Users\\lili/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\lili/.ssh/known_hosts:14
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/lili/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa,[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ssh-rsa SHA256:96mV1Tq0UhSO6V5KJAo/PdGGaW7RaQrb/aejrrfqles
debug3: put_host_port: [192.168.2.116]:9922
debug3: put_host_port: [192.168.2.116]:9922
debug3: hostkeys_foreach: reading file "C:\\Users\\lili/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\lili/.ssh/known_hosts:14
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/lili/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: hostkeys_foreach: reading file "C:\\Users\\lili/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\lili/.ssh/known_hosts:14
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/lili/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug1: Host '[192.168.2.116]:9922' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\lili/.ssh/known_hosts:14
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug3: unable to connect to pipe \\\\.\\pipe\\openssh-ssh-agent, error: 2
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug2: key: C:\\Users\\lili/.ssh/id_rsa (000001C32C496FF0)
debug2: key: C:\\Users\\lili/.ssh/id_dsa (0000000000000000)
debug2: key: C:\\Users\\lili/.ssh/id_ecdsa (0000000000000000)
debug2: key: C:\\Users\\lili/.ssh/id_ed25519 (0000000000000000)
debug2: key: C:\\Users\\lili/.ssh/id_xmss (0000000000000000)
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:cRAQobWZ+frHcTy52Uu5g3pDflJ1ecx3x5HehrFsO+U C:\\Users\\lili/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: C:\\Users\\lili/.ssh/id_dsa
debug3: no such identity: C:\\Users\\lili/.ssh/id_dsa: No such file or directory
debug1: Trying private key: C:\\Users\\lili/.ssh/id_ecdsa
debug3: no such identity: C:\\Users\\lili/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: C:\\Users\\lili/.ssh/id_ed25519
debug3: no such identity: C:\\Users\\lili/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: C:\\Users\\lili/.ssh/id_xmss
debug3: no such identity: C:\\Users\\lili/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug3: failed to open file:C:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to 192.168.2.116 ([192.168.2.116]:9922).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug3: send packet: type 1
debug3: fd 0 is not O_NONBLOCK
debug3: fd 1 is not O_NONBLOCK
Transferred: sent 2088, received 2836 bytes, in 0.2 seconds
Bytes per second: sent 9230.5, received 12537.2
debug1: Exit status 255
Connection closed

5. Other attempts

1. replace sftp-server

Termux can open SFTP server, I successfully logged in, I doubt whether it is the problem of sftp-server in arch, so I copied the sftp-server of Termux to the root directory of arch, and made a replacement, but only the wrong number became 127, so I think it is not the problem of sftp-server

2. add user sftp

  • give the permisson 755 to ChrootDirectory,
  • change sshd_configuration
  • chang the sftp password
[root21:11~]$ tail -n 1 /etc/passwd
sftp:x:1001:1001::/home/sftp:/bin/bash

[root16:21~]$ ls -la /home/sftp
total 28
drwxr-xr-x 3 root root 4096 Feb 18 16:22 .
drwxr-xr-x 5 root root 4096 Feb 18 16:10 ..
-rw------- 1 root root   28 Feb 18 16:23 .bash_history
-rw-r--r-- 1 root root   21 Nov 19 11:09 .bash_logout
-rw-r--r-- 1 root root   57 Nov 19 11:09 .bash_profile
-rw-r--r-- 1 root root  141 Nov 19 11:09 .bashrc
drwxr-xr-x 2 root root 4096 Feb 16 19:38 upload
[root21:11~]$ 

/etc/ssh/sshd_config in arch

PermitRootLogin yes

Match user sftp
ChrootDirectory /home/sftp
ForceCommand internal-sftp
PasswordAuthentication yes
AllowTcpForwarding no
X11Forwarding no

restart sshd

[root21:11~]$ killall sshd
[root21:11~]$ /usr/sbin/sshd
[root16:26~]$ netstat -anp | grep 9922
tcp        0      0 0.0.0.0:9922            0.0.0.0:*               LISTEN      28449/sshd: /usr/sb 
tcp6       0      0 :::9922                 :::*                    LISTEN      28449/sshd: /usr/sb 

Try login but get the same error Exit code 255, connection closed

PS C:\Users\lili> sftp -P 9922 [email protected]
[email protected]'s password:
Connection closed
PS C:\Users\junli> sftp -vvv -P 9922 [email protected]
debug3: spawning "C:\\Windows\\System32\\OpenSSH\\ssh.exe" "-oForwardX11 no" "-oForwardAgent no" "-oPermitLocalCommand no" "-oClearAllForwardings yes" "-v" "-v" "-v" "-oPort 9922" "-oProtocol 2" "-s" "--" "[email protected]" "sftp"
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
debug3: Failed to open file:C:/Users/junli/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname 192.168.2.116 is address
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.2.116 [192.168.2.116] port 9922.
debug1: Connection established.
debug1: identity file C:\\Users\\junli/.ssh/id_rsa type 0
debug3: Failed to open file:C:/Users/junli/.ssh/id_rsa-cert error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_rsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_rsa-cert type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_dsa error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_dsa.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_dsa type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_dsa-cert error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_dsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_dsa-cert type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_ecdsa error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_ecdsa.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_ecdsa type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_ecdsa-cert error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_ecdsa-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_ecdsa-cert type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_ed25519 error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_ed25519.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_ed25519 type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_ed25519-cert error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_ed25519-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_ed25519-cert type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_xmss error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_xmss.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_xmss type -1
debug3: Failed to open file:C:/Users/junli/.ssh/id_xmss-cert error:2
debug3: Failed to open file:C:/Users/junli/.ssh/id_xmss-cert.pub error:2
debug1: key_load_public: No such file or directory
debug1: identity file C:\\Users\\junli/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.2
debug1: match: OpenSSH_8.2 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.2.116:9922 as 'sftp'
debug3: put_host_port: [192.168.2.116]:9922
debug3: hostkeys_foreach: reading file "C:\\Users\\junli/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\junli/.ssh/known_hosts:6
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/junli/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa,[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none
debug2: compression stoc: none
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: rsa-sha2-512
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ssh-rsa SHA256:96mV1Tq0UhSO6V5KJAo/PdGGaW7RaQrb/aejrrfqles
debug3: put_host_port: [192.168.2.116]:9922
debug3: put_host_port: [192.168.2.116]:9922
debug3: hostkeys_foreach: reading file "C:\\Users\\junli/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\junli/.ssh/known_hosts:6
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/junli/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: hostkeys_foreach: reading file "C:\\Users\\junli/.ssh/known_hosts"
debug3: record_hostkey: found key type RSA in file C:\\Users\\junli/.ssh/known_hosts:6
debug3: load_hostkeys: loaded 1 keys from [192.168.2.116]:9922
debug3: Failed to open file:C:/Users/junli/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug1: Host '[192.168.2.116]:9922' is known and matches the RSA host key.
debug1: Found key in C:\\Users\\junli/.ssh/known_hosts:6
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug3: unable to connect to pipe \\\\.\\pipe\\openssh-ssh-agent, error: 2
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
debug2: key: C:\\Users\\junli/.ssh/id_rsa (0000016E1747FAF0)
debug2: key: C:\\Users\\junli/.ssh/id_dsa (0000000000000000)
debug2: key: C:\\Users\\junli/.ssh/id_ecdsa (0000000000000000)
debug2: key: C:\\Users\\junli/.ssh/id_ed25519 (0000000000000000)
debug2: key: C:\\Users\\junli/.ssh/id_xmss (0000000000000000)
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected]>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: RSA SHA256:E+xEuqjV7SDPyydXTBceKUi+oUi4EBWj9UySulmAgAo C:\\Users\\junli/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: C:\\Users\\junli/.ssh/id_dsa
debug3: no such identity: C:\\Users\\junli/.ssh/id_dsa: No such file or directory
debug1: Trying private key: C:\\Users\\junli/.ssh/id_ecdsa
debug3: no such identity: C:\\Users\\junli/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: C:\\Users\\junli/.ssh/id_ed25519
debug3: no such identity: C:\\Users\\junli/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: C:\\Users\\junli/.ssh/id_xmss
debug3: no such identity: C:\\Users\\junli/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
debug3: failed to open file:C:/dev/tty error:3
debug1: read_passphrase: can't open /dev/tty: No such file or directory
[email protected]'s password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
debug1: Authentication succeeded (password).
Authenticated to 192.168.2.116 ([192.168.2.116]:9922).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: channel_input_open_confirmation: channel 0: callback start
debug2: fd 3 setting TCP_NODELAY
debug2: client_session2_setup: id 0
debug1: Sending subsystem: sftp
debug2: channel 0: request subsystem confirm 1
debug3: send packet: type 98
debug2: channel_input_open_confirmation: channel 0: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: subsystem request accepted on channel 0
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug3: send packet: type 1
debug3: fd 0 is not O_NONBLOCK
debug3: fd 1 is not O_NONBLOCK
Transferred: sent 2088, received 2868 bytes, in 0.2 seconds
Bytes per second: sent 8568.0, received 11768.7
debug1: Exit status 255
Connection closed

6. In the end

I sincerely hope that the author can help me to solve this problem, otherwise I have no choice but to use Termux's own SFTP instead

Can PRoot be used to access a Linux distribution from external storage such as an SD card?

@JanuszChmiel created an issue at termux/proot#50 Can Proot be used to access Linux distribution from external storage such as SD card #50

Answer; It is possible to deposit a substantial portion of the system to external micro sdcard. However, it is probably not worth the effort for a number of reasons including the fact that the overall saving in space is not that great. Also, the system that is partially installed in the external sdcard is almost impossible to update.

install doc links to SDRausty repo

this is confusing. and i think it's not intended. this is similar to what i saw in BuildAPKs.

TermuxArch/TermuxArch links to an install doc that says to clone SDRausty/TermuxArch

i notice, as of right now, this repo was updated 9 days ago, but the SDRausty/TermuArch repo was updated 25 days ago.

i think it would be best to make the doc link to the same repo, not across repos.

i also think it would help to clarify, somewhere, what the difference between repos is. like, is one a dev repo and one a stable repo? or is one just lagging?

Implementing QEMU

EDIT: This command setupTermuxArch q[emu] [customdir] supersedes the struck out notes below. The command setupTermuxArch h[elp] provides help information.

QEMU has along with other features been implemented for years. Unfortunately, it is still under documented and still awaiting full implementation. There are two implied references to QEMU in the help; setupTermuxArch h:

>[./path/systemimage.tar.gz [customdir]] Install directory argument is optional. Network install can be substituted by copying systemimage.tar.gz and systemimage.tar.gz.md5 files with 'setupTermuxArch ./[path/]systemimage.tar.gz' and 'setupTermuxArch /absolutepath/systemimage.tar.gz'.
> [systemimage.tar.gz [customdir]] Install directory argument is optional. Network install can be substituted by copying systemimage.tar.gz and systemimage.tar.gz.md5 files with 'setupTermuxArch systemimage.tar.gz'.`

The next steps should be obvious:
1) find system image of desired architecture,
2) download image,
3) use one of the copy image commands.

These next steps might not be so obvious to all.
Especially the newcomer,
what is QEMU?

QEMU is a generic and open source machine emulator and virtualizer.

What does that mean might be a question? Don't worry read on. The answer is obvious. Install QEMU in Termux to activate this feature:

[u0_a9112:01TermuxArch]$ pkg list-available |f qemu                                                                                                         
WARNING: apt does not have a stable CLI interface. 
Use with caution in scripts.                                                                                                                                                           
933:qemu-common/stable 1:4.2.1 arm                                            
934:qemu-system-aarch64-headless/stable 1:4.2.1 arm
935:qemu-system-arm-headless/stable 1:4.2.1 arm
936:qemu-system-i386-headless/stable 1:4.2.1 arm                              
937:qemu-system-riscv32-headless/stable 1:4.2.1 arm
938:qemu-system-riscv64-headless/stable 1:4.2.1 arm                           
939:qemu-system-x86_64-headless/stable 1:4.2.1 arm                            
940:qemu-user-aarch64/stable 1:4.2.1 arm                                      
941:qemu-user-arm/stable 1:4.2.1 arm
942:qemu-user-i386/stable 1:4.2.1 arm                                        
943:qemu-user-riscv32/stable 1:4.2.1 arm                                      
944:qemu-user-riscv64/stable 1:4.2.1 arm                                      
945:qemu-user-x86_64/stable 1:4.2.1 arm
946:qemu-utils/stable 1:4.2.1 arm

You can also attempt to build these qemu packages with the yay command. The last step might seem confusing. I think it is because the step is overly simple.

$ wc -l ~/arch/var/binds/fbindexample.prs
11
$ cat ~/arch/var/binds/fbindexample.prs

So I will not waste space here other than to say that using command setupTermuxArch re after reading file (wc -w 128) fbindexample.prs should open up any architecture you choose to install in your smartphone, smatTV, tablet and wearable. Once this issue is resolved the TermuxArch end user will not even know about this step, unless they chose to explore the TermuxArch code.

I would also like to add that command setupTermuxArch b can help with more than just with this issue here:

j=0 ; for i in $(wc -l ~/TermuxArchBloom/*|cut -d"/" -f 1|head -n 11);do j="$(($i + $j))" ; done ; echo $j ; unset i j
5330
j=0;for i in $(wc -w ~/TermuxArchBloom/*|cut -d"/" -f 1|head -n 11);do j="$(($i + $j))";done;echo $j ;unset i j
31341

This is the entire data set presented for your review. One tap QEMU is still a couple of steps away as of today. Comments regarding the data set are welcome here, especially how to implement one tap option QEMU easily. The goal of the data set is more robustness with fewer lines if possible. Human legibility of the code is paramount, along with execution speed and the end user experience.

pc gradle - error: target not found

i'm trying to install gradle, but it's not working.

[root19:06/]$ pc gradle
==> Running TermuxArch command pc gradle v2.0.1086...
error: target not found: gradle

 TermuxArch WARNING:  Generated script signal 1 near or at line number 83 by '$SUDOCONF'!

TermuxArch pc gradle 2.0.1086: DONE 📱 🏁

[root19:23/]$

i tried that according to the suggestion here:

BuildAPKs/buildAPKs#13 (comment)

Expanding setupTermuxArch so visually impaired users can install Orca screen reader (assistive technology) and have VNC support added easily.

Let's expand setupTermuxArch so users can install Orca screen reader (assistive technology) and also have VNC support added easily.

_Originally posted by @JanuszChmiel in issue SDRausty/termux-archlinux#66:

Because ArchLinux is very matured Linux distro with many many modern up to date packages,it is time to extend yours script to directly support visually impaired users. And because I have been overloaded you about shared memory, it is time to show, that I can also participate by adding some important commands to you.
The option for setuptermuxarch would be Orca
When visually impaired user would start yours script with Orca word, The needed Bash script code should do The following thinks
From Termux side, no from ArchLinux Guest perspective
apt update
apt upgradeapt install pulseaudio sox
apt clean
Then The script should do The following: add those lines to The termux profile script
pulseaudio --start --exit-idle-time=-1
pacmd load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1

Script should start Pulseaudio immediately after The code have been added to The script. It is important to determine, if it is possible to add those two lines one by one or if is it necessary to add some other command to ensure, that Pulseaudio will work.

From The perspective of Arch Linux guest system setup script will finish The upgrading process The code should install The following packages.
tigervnc
mate
mate-extra
orca
pulseaudio-alsa
espeak-ng
The script should add The following lines to /etc/profile
export DISPLAY=:0
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export PULSE_SERVER=127.0.0.1

The /usr/bin/mate
script should contain The following routine.

vncserver -kill :0
vncserver -extension MIT-SHM -localhost -geometry 1024x768 -depth 24 -name remote-desktop :0 -SecurityTypes=None

Then I do not know how to auto start mate-session automatically. How to detect, that tigervnc have allready finish its initialisation job.
Mate-session contain extension which is older than 1 month which do not allow to run it by typing mate-session &

If C code detect that & have been used, mate/session suspend all its sub processes. This unsoft feature have not been presented in March or April.
Problems to resolve.

  1. when all packages related to Orca support will be installed, script would had to enable assistive technologyes support and add some setting to gconf so Orca would had to run automatically when Mate-session will be loaded to RAM.
    Because Mate have been designed mainly for desktop computers, so he crucial hot keys such as ALT+F1 or ALT+F2 are not usable from Android. Scan codes differs. And visually impaired user can not use those important hot keys from Mate desktop to run Orca.
    The solution is to run mate-control-center and use hot keys settings to change The crucial keys.
    The very well accessible Android VNC client is BVNC Pro or free.
    I have bought BVNC Pro since author have prepared fully accessible GUI even with accessible keyboard and app is very fast and support hot keys combination including CAPSLOCk or others and it is very important for Orca screen readers users.

Pulseaudio-alsa is needed to enable mate sound effects. SOund effects will not work without this extension. Espeak package also depend on pulseaudio-alsa. If this feature is not presented, speech-dispatcher 0.9.1 will refuse to work with Espeak. Espeak is currently Theonlyone reliable international engine for producing speech with Orca. Because work reliably also on The speeds higher than 75 when setting it with Orca preferences.

Tigervnc support as A onlyone XVNC solution for Linux reliably combinations such as SHIFT+TAB or TAB.
My real goal is to use ARchLinux in combination with Termux to prepare fully automated solution which will allow visually impaired Android Linux users to run Mate and Orca.
Mate-power-manager must be removed.
It has issues with chroot environments and some C library display errors with long Hexadecimal number list and it is not welcomed.
FOrtunately, pacman allow us to remove this
pacman -R mate-power-manager
Seamonkey is perfectly accessible and support WEB browsing, HTML editor, E-mail client and IRC chat and address book in one process.
Many mate apps are working including archive manager, Caja. There are some issues with Mate, since mate-session communicates with system bus, as A result, console coutput contain many error because of it, but those errors are not fatal and Mate run reliably.

The automated solution would be derivated from Termux Alpine or from No root Debian.
No root debian contain Xserver XSDL and thanks to unsoft AOSP modules in Android newer than 6, ckeyboards ahe very unsupported.
This is The reason why I have started to use vnc protocol instead.

sdkmanager "emulator" missing from TermuxArch but is available on normal Arch Linux installs

Steps to reproduce

TermuxArch

Install TermuxArch on Termux.

Inside /root/ of Arch or Inside /data/data/com.termux/files/home:

Create and enter android_sdk

Download cmdline-tools

wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip

unzip it.

Find the sdkmanager inside cmdline-tools/tools/bin
(Note: Create tools directory inside cmdline-tools that we unzipped and copy all contents to tools)

On termux:

Run sh sdkmanager --list : You will not find any emulator listed.
Similarly, do sh sdkmanager emulator : You will not be able to download emulator as its not listed.

For normal Arch Linux on Laptop

Download cmdline-tools as above and do run the same steps as above. You will see we are able to see emulator listed and able to downloaded with sdkmanager.

Additional Notes

Why is it working differently and is there a way to make sdkmanager work normally on TermuxArch? That is it should have all packages listed of sdkmanager that are seen on normal Arch Linux

Termuxarch installation always failing in manual mode

I just tried the latest Termuxarch script and attempted a manual mode installation . The script is always failing and returns an error. Here's the whole output


Setting mode to manual.
�]2;bash setupTermuxArch manual 📲�
�[0;34m 🕛 > 🕛 �[1;34mTermuxArch 2.0.793 will attempt to install Linux in �[0;32m/data/data/com.termux/files/home/arch�[1;34m.  Arch Linux in Termux PRoot will be available upon successful completion.  To run this BASH script again, use '!!'.  Ensure background data is not restricted.  Check the wireless connection if you do not see one o'clock 🕐 below.  �[0;34m�[1;34mChecking prerequisites...
�[1;32m
Found download tool 'curl': Continuing...

Using curl to manage downloads.

�[0;34m 🕛 > 🕧 �[1;34mPrerequisites: �[1;32mOK  �[1;34mDownloading TermuxArch...

�[0;32m
[1/2]: https://raw.githubusercontent.com/TermuxArch/TermuxArch/master/setupTermuxArch.sha512 --> setupTermuxArch.sha512
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   153  100   153    0     0    189      0 --:--:-- --:--:-- --:--:--   189

[2/2]: https://raw.githubusercontent.com/TermuxArch/TermuxArch/master/setupTermuxArch.tar.gz --> setupTermuxArch.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0 68151    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 68151  100 68151    0     0   108k      0 --:--:-- --:--:-- --:--:--  107k
--_curl_--https://raw.githubusercontent.com/TermuxArch/TermuxArch/master/setupTermuxArch.sha512
--_curl_--https://raw.githubusercontent.com/TermuxArch/TermuxArch/master/setupTermuxArch.tar.gz

�[1;32m�[0;34m 🕛 > 🕐 �[1;34mTermuxArch download: �[1;32mOK


�[0;34m 🕛 > 🕜 �[1;34mTermuxArch 2.0.793 integrity: �[1;32mOK�[0m
knownconfigurations.bash: line 82: [[: 7.1.2: syntax error: invalid arithmetic operator (error token is ".1.2")
�]2; bash setupTermuxArch manual 📲 �setupTermuxArch: line 346: /data/data/com.termux/files/home/arch/setupTermuxArchConfigs.bash: Permission denied
�[?25h
�[1;48;5;138m TermuxArch WARNING:  Generated script signal 126 near or at line number 346 by '$USEREDIT "${WDIR}setupTermuxArchConfigs.bash"'!�[0m
�[1;32mPlease run 'bash setupTermuxArch manual' again or use 'bash setupTermuxArch refresh'.
�[1;32m
�[0m�[1;32mThe command 'bash setupTermuxArch help' has information how to use 'setupTermuxArch' effectively.

�[0;32msetupTermuxArch manual �[0m2.0.793�[1;34m: �[0;32m[Exit Signal 201] DONE 🏁 �[0m

�]2; setupTermuxArch manual: [Exit Signal 201] DONE 🏁  ��[?25h�[0m

makeyay does not work correctly via wifi

I just did a fresh install of Termuxarch latest v2.0.568 , created a user . After logging in as user , i am trying to run makeyay but it always exits installer with some errors. Here's the full output

❯ ./makeyay
Building and installing 'yay':
When this message:
libtool: warning: remember to run 'libtool --finish /usr/lib/libfakeroot'
When this message is displayed on the screen 'makeyay' will deal with it a little bit later in the build proccess, and there will be a short pause when this message is displayed:
"Libraries have been installed in:"
A difficult part of any build process can be choosing the correct answers.  Here are the correct answers:
:: fakeroot-tcp and fakeroot are in conflict. Remove fakeroot? [y/N] y
Tap the 'y' key first, then enter.  For the first question, the 'y' key must be tapped first, then enter.  Yes will be chosen when enter is tapped in all of the questions after the first question:
:: Proceed with installation? [Y/n]
Tap enter once more as this build proccess continues.  If everything goes well, you will see these messages:
Libraries have been installed in:
The message above will be displayed for a short time with more information.  Then setupTermuxArch will go on, and there will be one more tap enter yo touch before script setupTermuxArch is done;  SLEEPING SIX SECONDS...
sleep 6
makefakeroottcp  2.0.476: DONE 🏁
Then this pocess will go on to try to make 'yay' which is much simpler for the user;  There is no tapping yes enter needed to be done whatsoever.
./makeyay: line 75: patchmakepkg: command not found
./makeyay: line 16: patchmakepkg: command not found

 TermuxArch WARNING:  Generated script signal 127 near or at line number 75 by !

makeyay  2.0.568 [Exit Signal 201]: DONE  🏁

Android 10 , arm64-v8 ( aarch64)

Torture Testing the new `--sysvipc` PRoot option with QEMU.

Torture Testing the new --sysvipc PRoot option with QEMU.

Thank you all for keeping the Termux project on course over the years! After years of using Termux on Android, I still have difficulty comprehending my new work environment: no desktop needed! The newly implemented --sysvipc PRoot option is amazing:

I have very very positive experience with newly shared memory implementation which work directly in Proot binary module. Screen reader Orca work much more stable and I can for example. Switch to The desktop by pressing CTRL}}+ALT+d much more faster even if mate-terminal display many lines when some app is being compiled. I can also interrupt speech very often while building some app without issues at all. When Proot shared memory function have not been implemented, it have caused issues. Orca have frozen.

Originally posted by @JanuszChmiel in TermuxArch/TermuxArch#34 (comment)

Termux sometimes crashes completely when working with this new command: the makeaurhelpers command. At times, this command crashes Termux when using PRoot with QEMU to build Arch Linux packages on device.

Steps to reproduce a crash:

  1. Install Arch Linux in Termux PRoot with QEMU emulation; The command setupTermuxArch v will automatically choose the optimal architecture to emulate with QEMU for arm smartphones. For x86_64 smartphones the command setupTermuxArch q can be used.
  2. Once installed, run the command makeaurhelpers in multiple Termux sessions (at least four). This is a very labor intensive command as it downloads source code, parses it and attempts to build Arch Linux aur packages.

Steps how to find out more information about how this crash develops are welcome. I am not sure how to collect the crash data as Termux stops functioning.

fakeroot version 24 is no longer available

the makefakeroot script (and associated package) tries to pull version 24.1 from the debian repository, however, that version is no longer available. There is a version 25 available, however, that version no longer needs the silence-dlerror.patch file since it's already included.

Today's up to date tigervnc can not be started on aarch64 architecture

When I have performed ArchLinux upgrade by typing
pacman -Syu as root user
I have got tigervnc update.
Unfortunately, I can not run tigervnc at all.
Because I Am getting The following error.

vncserver: Couldn't find suitable Xsession

I do not know, if is it new revolutionar new approach from Tigervnc developers, which will allow only specific Xsessions? Or if there is An bug from developers or some hydden problem.
If is it new revolutionar version which will not allow us to run Tigervnc it will be necessary to downgrade to The previously functioning version. If yes, how to find it and I will have to build it.
I have even opened bug on Tigervnc Github page to get An assistance what has happened with Tigervnc when this new version have been released.

How's the GPU support?

Do apps running in the proot have GPU access? F.e., if I run Chromium, will WebGL be accelerated?

securing sshd with 2FA from google-authenticator-libpam fails unless the 'no_strict_owner' option is used

I was only able to get the libpam-google-authenticator package working for 2fa ssh only after I added the following line of code to /etc/pam.d/sshd:

auth required pam_google_authenticator.so no_strict_owner.

I tried different combinations of the PAM module options listed here and only got it working with no_strict_owner. I'm opening and closing this issue here because I don't believe it's a bug with Termux, PRoot, Arch Linux ARM, or even the PAM module. It's probably something to do with PRoot and file ownership/permissions. Closing the issue as there's a workaround and the goal here was to guide users of libpam-google-authenticator in a PRoot toward a working config.

public apologisation addressed to MR Rausty

Dear MR Rausty,
I would like to publicly apologize you that I have overloaded you with many opened issues and I Am aware, that I have made many errors including. I have opened several issues for A same topics. I have overloaded you with making more and more desktop environments to work from chroot environment. And I have overloaded you. I Am offering you a more nice approach from you for a following days and months.
I will finally stop opening accessibility related issues, I will always try to solve them with The corresponding packages authors. Because I know, that you can not solve 1000thinks at The same time.
If you will need help to test something, please let Me know on A corresponding issue which you will open. Or in A corresponding commit.
I Am ery sorry again and I Am also publicly apologizing all available users and members here for my wrong behaviour and approach to MRS Rausty complex work.

How to get more optimization?

I'm using termux arch with xfce4, performance has been low, especially that of browsers, there is some way to have more performance?, for example, disable the proot clipboard with the host, or things done,?

cannot build heroku-cli package with pikaur and yay

I was trying to install this heroku-cli package from yay - https://aur.archlinux.org/packages/heroku-cli

yay -S heroku-cli

During the installation at the end , i got the following error and the yay installer aborted

chown: changing ownership of '/home/xd003/.cache/yay/heroku-cli/pkg/heroku-cli/usr/lib/node_modules/heroku/node_modules/treeify/examples/eukaryotes.js': Operation not permitted          
chown: changing ownership of '/home/xd003/.cache/yay/heroku-cli/pkg/heroku-cli/usr/lib/node_modules/heroku/node_modules/treeify/examples/fs_tree.js': Operation not permitted             
chown: changing ownership of '/home/xd003/.cache/yay/heroku-cli/pkg/heroku-cli/usr/lib/node_modules/heroku/node_modules/treeify/examples': Operation not permitted                       
chown: changing ownership of '/home/xd003/.cache/yay/heroku-cli/pkg/heroku-cli/usr/lib/node_modules/heroku/node_modules/treeify/treeify.js': Operation not permitted                      
chown: changing ownership of '/home/xd003/.cache/yay/heroku-cli/pkg/heroku-cli/usr/lib/node_modules/heroku/node_modules/treeify/test/tree-test.js': Operation not permitted 

NOTE - There were many more such lines ( in 100's tbh , i am not posting all but this should be enough

==> ERROR: A failure occurred in package().                       Aborting...

yay version -10.0.4-1

I tried installing same package on my laptop running on arch linux system but i didn't got any error , its very less likely that this is actually a upstream or heroku-cli package issue

setupTermuxArch incorrectly fetches mirrorlist

I ran setupTermuxArch in Termux on Android-x86 8.1 (using android-x86_64-8.1-r5.iso) under VirtualBox.

TermuxArch WARNING:  Generated script signal 201 near or at line number 159 by 'CHSENMIR="$(grep'!
Please run 'bash setupTermuxArch' again or use 'bash setupTermuxArch refresh'.

The command 'bash setupTermuxArch help' has information how to use 'setupTermuxArch' effectively.
The command 'bash setupTermuxArch help' has information how to use 'setupTermuxArch' effectively.

setupTermuxArch  2.0.996: [Exit Signal 201] DONE

$ cd /data/data/com.termux/files/home/arch/etc/pacman.d/

$ ll
total 1M
-rw-r--r-- 1 u0_a76 u0_a76 162 2020-12-26 20:56 mirrorlist
-rw-r--r-- 1 u0_a76 u0_a76 162 2020-12-26 20:56 mirrorlist.9960.termuxarchnew

$ cat mirrorlist
<html>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

A temporary workaround:

$ rm -f mirrorlist
$ wget -O mirrorlist https://archlinux.org/mirrorlist/all/
$ bash setupTermuxArch refresh

Thanks.

Gnome desktop environment does not run in ArchLinux and Termux

GNome desktop environment is very popular among many Linux users. It is attractive, contain many special Gnome applications, it even contain development environments. Unfortunately, Gnome-session refuses to run on Termux, Proot and no matter which Linux distro you would use. My goal is to make Gnome-session to run. Somebody who is very advanced have incorporated special Opengl extension for TIgervnc. So may be, that it would help. Unfortunately, simply running gnome-session without 3D acceleration check do not help. Do you think, that GNome programmers would have A good will to recode GNome-session and dependent components of Gnome, so it would support VNC protocol?
Since I AM getting some bug that this kind of session is not supported when running gnome-session in combination with tigervnc. I have also tested it with XVFB and X11-vnc. But with no results.

Any help would be very welcomed. Since Gnome is very popular desktop environment. And fortunately, experts who are concentrated around ArchLinux have precompiled many GNome packages for AARCH64 architecture.
Gnome is official desktop environment for Orca screen reader.
We allready have very professionally functioning shared memory support thanks to MR Rausty and others. /dev/shm emulation support many shared memory operations. Including The shared memory operations, which is being used by Xvnc Tigervnc app.

QEMU

Hello! Thanks for this amazing project. However I was wondering if there is any way to get more performance out of qemu? Via more cores or something?

sudoers file is apparently absent in the latest TermuxArch v2.0.519

I just updated TermuxArch an hour ago to latest TermuxArch v2.0.519 ( at the time of opening this issue )
After installation got completed , i tried to add my user but it returned an error saying /etc/sudoers file is absent.
I checked it using file manager too and indeed it was absent . This issue didn't existed 2 days back , i think something changed very recently could have caused it . Probably you can fix this thing pretty quickly as its a minor issue.

Here's the whole error

[root20:05bin]$ ./addauser xd003                             
Adding Arch Linux in Termux PRoot user 'xd003' and creating Arch Linux in Termux PRoot user xd003's home directory in /home/xd003...
sed: can't read /etc/sudoers: No such file or directory
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
      --debug
                 annotate program execution
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.

 TermuxArch WARNING:  Generated script signal 2 near or at line number 63 by !

addauser  2.0.519 [Exit Signal 201]: DONE  🏁

Real root

For users with rooted phones, why not use actual root instead of proot? Wouldn't it be better to avoid the weaknesses of proot?

Refresh failing

The recent commits caused this regression

Setting locales to: Language >> en_IN << Region
==> mv -f root/.bash_profile root/.bash_profile.bkp
==> mv -f root/.bashrc root/.bashrc.bkp
==> mv -f root/.profile root/.profile.bkp
Adjusting ownership and permissions...

 🕛 > 🕒 Activating termux-wake-lock: DONE


==> Running setupTermuxArch.sh refresh...

To generate locales in a preferred language use Settings > Language & Keyboard > Language in Android; Then run setupTermuxArch.sh refresh for a full system refresh including locale generation; For quick refresh you can use setupTermuxArch.sh r.  For a refresh with user directories setupTermuxArch.sh re can be used.
==> Generating locales...
  en_IN.UTF-8... done
Generation complete.

:: Processing system for Android arm64-v8a and removing redundant packages for Termux PRoot installation…
:: Synchronizing package databases...
error: failed retrieving file 'core.db' from de.mirror.archlinuxarm.org : Connection timed out after 10000 milliseconds
error: failed retrieving file 'core.db' from sg.mirror.archlinuxarm.org : Failed to connect to sg.mirror.archlinuxarm.org port 80: Connection timed out
error: failed retrieving file 'core.db' from fl.us.mirror.archlinuxarm.org : Connection timed out after 10000 milliseconds
error: failed retrieving file 'core.db' from nj.us.mirror.archlinuxarm.org : Connection timed out after 10000 milliseconds
error: failed to update core (download library error)
error: failed retrieving file 'extra.db' from de.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds
error: failed retrieving file 'extra.db' from sg.mirror.archlinuxarm.org : Failed to connect to sg.mirror.archlinuxarm.org port 80: Connection timed out
error: failed retrieving file 'extra.db' from fl.us.mirror.archlinuxarm.org : Connection timed out after 10000 milliseconds
error: failed retrieving file 'extra.db' from nj.us.mirror.archlinuxarm.org : Connection timed out after 10000 milliseconds
error: failed to update extra (download library error)
error: failed retrieving file 'community.db' from de.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds
error: failed retrieving file 'community.db' from sg.mirror.archlinuxarm.org : Failed to connect to sg.mirror.archlinuxarm.org port 80: Connection timed out
error: failed retrieving file 'community.db' from fl.us.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds
error: failed retrieving file 'community.db' from nj.us.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds
error: failed to update community (download library error)
error: failed retrieving file 'alarm.db' from de.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds
error: failed retrieving file 'alarm.db' from sg.mirror.archlinuxarm.org : Failed to connect to sg.mirror.archlinuxarm.org port 80: Connection timed out
error: failed retrieving file 'alarm.db' from fl.us.mirror.archlinuxarm.org : Connection timed out after 10001 milliseconds

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.