![]() I would love to use SailfishOS, but the community version comes without “alien dalvik” which is the Android emulator which allows to install and use Android apps on SailfishOS. Then I did a hard reset of the phone and tried primitive ftp and termux again, just to make sure I did not miss something and to be able to write this all down. But this tried to install some app called supersu or superuser and both failed to complete installation. (Actually, the later is only funnier because they were serious about it.) Which is the funniest instruction I got from an application since “Press start to shutdown”. ![]() Install it by executing:Īnd it replied: The program 'apt' is not installed. Which also failed: The program 'sshd' is not installed. I also tried to start sshd as root on the fp2. Which failed as expected: Cloning into 'Music'.Įrror: chmod on /tmp/fp2/Music/.git/config.lock failed: Permission denied Now I tried to clone the git-annex repo: cd /tmp/fp2/ Which was not very promising touch: setting times of ‘/tmp/fp2/test’: Permission denied Now I mounted the fp2’s internal storage: sshfs -o sshfs_debug,gid=1000,uid=1000,IdentityFile=/home/lars/.ssh/id_rsa.pub -p 8022 192.168.17.228:storage/shared/ /tmp/fp2/Īnd tested the permissions: touch /tmp/fp2/test To test connectivity, on my laptop I connected with the SSH client: ssh -p 8022 192.168.17.228 You have to know the IP address of the device. The server listens on port 8022, a user name is not necessary and to connect ssh directory: mkdir /data/data/com.termux/files/home/.sshĪnd placed my public key into a file called authorized_keys within this directory: cat /storage/sdcard1/id_rsa.pub /data/data/com.termux/files/home/.ssh/.ssh/authorized_key.pub Umounted the fp2’s sdcard from the laptop: umount /tmp/fp2 I copied the key onto fp2’s sdcard: cp ~/.ssh/id_rsa.pub /tmp/fp2/ …to ensure that permission to shared storage …to initialize the package database and upgrade all upgradable packages… termux-setup-storage I installed Termux launched it and ran… apt update & apt upgrade Next I tried the SSH server that comes with Termux. The repo cannot be cloned because of insufficient write access. ![]() Please make sure you have the correct access rights Now I tried to clone the git-annex repo git clone ~/Musik/ Music/Įrror: could not write config file /tmp/fp2/Music/.git/config: Operation not permittedįatal: 'origin' does not appear to be a git repositoryįatal: Could not read from remote repository. I started primitive ftpd and on my laptop tried to mount the internal storage: sshfs -o sshfs_debug,gid=1000,uid=1000,IdentityFile=/home/lars/.ssh/id_rsa.pub -p 1234 /tmp/fp2/ I launched primitive ftpd and opened its settings menu.Īnd placed my key into the directory where primitive ftpd expects it: cp /storage/sdcard1/id_rsa.pub /storage/emulated/0/.ssh/authorized_key.pub Next I tried to mount the fp2 storage using primitive ftpd. I changed into the mounting directory and cloned the git-annex repo: cd /tmp/fp2Įverything worked: Cloning into 'Music'. On my laptop I created a mountpoint: mkdir /tmp/fp2Īnd as root mounted the device: mount -o uid=1000,gid=1000 /dev/sdc1 /tmp/fp2 I found out it is importent to set uid and gid to the IDs of my user and its group respectively when mounting. But it seems impossible to do on an Android phone.įirst I tested mounting via USB with the fp2 attached as mass storage device. This was a trivial task on the N900 and the Jolla phone. Mounting the internal storage or at least the sdcard of the fp2 in my laptop with sshfs to sync my data over WiFi using git-annex. Now I am trying for several evenings to accomplish a very simple task: As my N900 broke and the Jolla phone is out of stock I bought an fairphone2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |