Tasker and Rsync Public Key Location - Tasker Tips & Tricks

Hi.
I have been trying to backup a folder from my phone (Galaxy S9) to my my NAS using this plugin for Tasker:
https://nerdoftheherd.com/news/2022/06/25/rsync-for-tasker-0-7/
I am famailir with SSH and public keys as I already have this working on my PC by saving the public key to ~/.ssh
Where does the poublic key need to be saved in Android. I tried putting it in /data/ssh but I still get failed to validate key error.
Thanks

Related

Add CTRL key to treo 750

http://discussion.treocentral.com/showthread.php?p=1221514#post1221514
CTRL key is very important for all keyboard based devices, not just copy/paste/cut/select all. There is no CTRL key in treo 750, EVIL Palm, screwed us again.
Fortunately it is no so difficult to add the CTRL key.
Installation: Please download the attachment and install the cab file. Reset your device. After reboot, You will find an indicator (blue) in Start, which is CTRL key.
Clicking CTRL Key. It is easy, just click the option key three times. You will notice the indicator turns into RED, which means the CTRL Key is ON, you can then click A, which will be "ctrl + a" (select all).
Copy: Ctrl +C
Paste: Ctrl +v
Cut: Ctrl + x
Select ALL: Ctrl +A
The original program is written by GSH and called PQZII. I stripped it and repacked. You can find more information here: http://www.nicque.com/PQz/PQzII.htm
For advanced user, I encourage you go to download the full version, which has much more features, such as:
System: close, close all, restart, suspend (ctrl + some char you like)
Setting: all settings applet using ctrl + char
Programs: any programs using ctrl + char, now you can use your keyboard to launch programs
Power words: your most frequently used sentence can be saved and retrieved by ctrl + char
For Chinese/korean/Japanese users, this program can also switch your input method with one key combination.
Good luck.
New Ctrl Key Pro with more features
http://discussion.treocentral.com/showpost.php?p=1224511&postcount=110
this may be a lame-o question, but...
i tried expanding Ctrl Key Cab.zip, and StuffIt Expander (Mac) gave me an error message, saying: "An error occurred attempting to expand 'Cellneuron_GSH Ctrl Key.4.cab'. Format error. Error #17540"
Any suggestions?
Thanks!
atavacron said:
this may be a lame-o question, but...
i tried expanding Ctrl Key Cab.zip, and StuffIt Expander (Mac) gave me an error message, saying: "An error occurred attempting to expand 'Cellneuron_GSH Ctrl Key.4.cab'. Format error. Error #17540"
Any suggestions?
Thanks!
Click to expand...
Click to collapse
You need copy the cab to your ppc to install.
CRTL KEY did not work for my Xperia 1
ah.... I am still in need of a CRTL KEY on the physical keyboard ... heeeelp
bhardjono said:
ah.... I am still in need of a CRTL KEY on the physical keyboard ... heeeelp
Click to expand...
Click to collapse
for Xperia X1, you can use X1BC (X1 Button Controller)

[CM7] Custom Keyboard Layout for NC - attached kcm/kl files for bluetooth keyboards

EDIT: Attached is a zip of my current qwerty.kcm.bin and qwerty.kl files.
IMHO, my qwerty.kcm.bin should replace the current version in CM7 as it only affects external keyboards, not the soft keyboard, and every US keyboard I've ever seen has <> above ,.
Now that we have bluetooth keyboards and finally have more than 4 keys to play with, maybe it's time to address this!
/system/usr/keylayout is a directory with the key layout files. These are plaintext files.
A few things to know going in:
It is probably easiest to use adb to push the files. You need a working ADB. "adb push <local file> <remote path>" is the format.
If the keyboard layout has any unrecognized stuff in it (When I tried VOLUME_MUTE, and MUTE keycodes) it will stop loading at that point, disabling all keys after it in the keylayout file. I highly recommend adding your test stuff at the bottom of the screen unless you are using ADB to push the files.
adb shell <command> will let you launch commands remotely. If you don't put in a command, it gives you a remote shell which is both epic and awesomely useful.
To push a qwerty.kl file to the device, this may be a way for you to do it:
Code:
cd <directory with your custom keylayout>
adb shell mount -o rw,remount /system
adb push qwerty.kl /system/usr/keylayout
adb reboot
You have to remount /system to be read-write because it defaults to read only.
Here is a sample of some keylayout:
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 MENU
Here is the code I currently put in:
Code:
key 172 HOME WAKE
key 115 MENU
key 114 BACK
key 165 VOLUME_UP WAKE_DROPPED
key 164 MEDIA_PLAY_PAUSE WAKE_DROPPED
key 163 VOLUME_DOWN WAKE_DROPPED
Best I can figure, android documents a capslock state but doesn't natively support it? Maybe only in 3.0? I have no clue, but I can't get any capslocks working. The Motorola Xoom keyboard has a caps lock, but it may be a custom app. Trying to get thier keylayout files...
MORE TO COME:
links:
lots of KEYCODEs in here to play with: http://developer.android.com/reference/android/view/KeyEvent.html#constants
I think they correlate to our keycode names, but you don't use the KEYCODE_ prefix in the keylayout file.
If I sent you the needed files and an image of a keyboard with the codes on it, is there anyway you could edit the .kcm files for me. I currently am without a computer that I can do this on and it would be a big help. If you do decide to help I will be sure to credit you for the work in the OP on Evo Desktop PC thread.
Thanks
Lokifish Marz said:
If I sent you the needed files and an image of a keyboard with the codes on it, is there anyway you could edit the .kcm files for me. I currently am without a computer that I can do this on and it would be a big help. If you do decide to help I will be sure to credit you for the work in the OP on Evo Desktop PC thread.
Thanks
Click to expand...
Click to collapse
I would be happy to. This thread is depreciated in a sense. I've been using the dev thread in my signature.
PM me the info and I'll take a look at it.

SSH keys generator and help with a script

Hi guys I need to some help with trying to create a custom launcher for my Linux box.
I have a script that launches XBMC in fullscreen and locked to a specific display. What I want is to have a shortcut created on my android device to login via SSH and execute that XBMC script.
So I need 2 things:
1- an app or some way of creating ssh rsa keys on my android device (so I can login to ssh without password prompt)
2- help with creating the shortcut / command to login to my Linux box via ssh and excute the script (I think I can do this with Tasker > shortcuts)
Any help would be greatly appreciated
I shall reply to my own problem with a fix.
App called Remote Launcher. So damn good! Also ties in with Tasker for full automation
Sent from my Vega using XDA

Verfy a downloadfile from XDA using GPG - where can i get the (public?) key?

From the XDA Downloadmirror: dl-xda.xposed.info/framework/sdk22/arm/ i have downloaded this files:
xposed-v83-sdk22-arm.zip
xposed-v83-sdk22-arm.zip.asc
and
xposed-v84-sdk22-arm.zip
xposed-v84-sdk22-arm.zip.asc
sereral times, and with different desktop-pc's
every time with the same bad result:
As I use GPG in a Terminal on my Linux system to confirm verification zip.asc file with the associated .zip file,
GPG says: "...Can't check signature: No public key"
Maybe my entry not have been correct (I have previously never used GPG) or the files on the xda-Server are really corrupt?
Here i shows the syntax of my entry i my Linux Terminal:
$ gpg --verify xposed-v84-sdk22-arm.zip.asc xposed-v84-sdk22-arm.zip
Every time it gets the same bad result:
gpg: Signature made Tue 03 Mai 2016 22:58:30 CEST using RSA key ID 852109AA
gpg: Can't check signature: No public key
In my Opinion XDA must have a Public(?)Key (Server?) in addition to those used .asc files - like e.g. Torproject:
"The Tor Browser team signs the Tor Browsers. Import its key (0x4E2C6E8793298290) by starting cmd.exe and typing"
after this, the line with the syntax:
" gpg --verify C:\...torbrowser-install-5....exe.asc C:\...torbrowser-install-5....exe.asc"
Perhaps GPG need this Key first to work properly?
If it is so, then where hosts xda a key that i need to Import first? I search a long time on xda, and i can't find this!
I've moved your thread to the Xposed forum. Should get some good help here
Maybe you can get more info from here:
https://github.com/rovo89/Xposed/issues/89
I had mentioned the fingerprint when I announced that files are now signed, now I also added that information to the first post: http://forum.xda-developers.com/showthread.php?t=3034811
Hi There,
i cant belive that it is mee falling over this problem nearly one jear later. I am absolutely not able to find the key 852109AA.
This is the key the xposed-v87-sdk22-arm.zip is signed with. I only get No public key found message.
Help is apreciated.
Am I to stupid to find it? or is there anythig what i miss here.

sent curl command from tasker?

hi, im trying to setup tasker to send a curl command to my raspberry pi.
here is the command:
curl h t t p ://192.168.1.9/scripts/dash.py | python (not allowed to post links yet)
the dash.py is just a simple script to toggle my hue lights and mpd on/off,
it works when i send the command from my ubuntu terminal.
im dont use tasker much, but i found on google that i should use http get/post,
but i dont know how to set this up
hope someone can help me with this
Hi,
To my understanding, the pipe ('|') symbol in the command takes the output of the curl command and sends it as input to Python. So, when you execute the command on your Ubuntu terminal, it downloads the dash.py script from 192.168.1.9 (Raspberry Pi, I assume?) and executes it using Python on your Ubuntu terminal, as far as I know.
You can use Tasker's HTTP Get to download the dash.py script to your phone, and then you would need to use Scripting Layer for Android (SL4A) with Python for Android to execute the dash.py script on your phone. If the dash.py script has a lot of dependencies (Modules), this probably won't work. If the dash.py script doesn't change, you don't have to download it each time, so you can just keep the dash.py file on your phone.
However, this is not very elegant, as the script is executed on your phone each time. Alternatively, you could execute dash.py on your Raspberry Pi, possibly triggered from your phone using Tasker and AutoRemote (h t t p s://youtu.be/1F8XvdrrdIE), for example.
Anyway, here's how to download dash.py to your phone and execute it on your phone:
(This involves installing APKs from unknown sources, so that's your own risk. Make sure 'Unknown Sources' is enabled in your phone's settings.)
Keep in mind, if the dash.py script has a lot of dependencies (Modules), this probably won't work.
Download and install SL4A from h t t p s://github.com/kuri65536/sl4a/releases
Scroll to find the correct version of sl4a-r*-debug.apk for your phone (probably armv7 or arm).
If you're on Android 6.0+, revoke any permissions you don't need, but keep the Storage permission.
Download and install Python for Android from h t t p s://github.com/kuri65536/python-for-android/releases
Depending on whether dash.py is written for Python 2.* or Python 3.*, you would need PythonForAndroid-debug-r*.apk or Python3ForAndroid-debug-r*.apk, respectively.
Scroll to find it.
Launch Python for Android, and press 'Install'.
Launch SL4A. You should see a list of Python scripts. Tap one to check if it works (say_time.py for example).
Now for the Tasker part, create the following task:
Net --> HTTP Get (only necessary once if dash.py never changes)
Serverort: h t t p ://192.168.1.9
Path: /scripts/dash.py
Output File: sl4a/scripts/dash.py
Run it once, so dash.py is on your phone. (If dash.py never changes, you can disable this Action after you ran it once.)
To have the script be executed in the foreground, add this Action:
Plugin --> SL4A
Tap dash.py
To have the script be executed in the background instead, add this Action:
System --> Send Intent
(Make sure there are no spaces in any of the values.)
Action: com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT
Extra: com.googlecode.android_scripting.extra.SCRIPT_PATH:storage/emulated/0/sl4a/scripts/dash.py
Package: com.googlecode.android_scripting
Class: com.googlecode.android_scripting.activity.ScriptingLayerServiceLauncher
Target: Service (Activity also works)
That's it! The Tasker task isn't very extensive, only one Action (Either 'Plugin --> SL4A' or 'System --> Send Intent') if dash.py only needs to be downloaded once.
I hope this is useful to you!

Categories

Resources