[Looking for] Script execute on Widget - Android Q&A, Help & Troubleshooting

Hey guys!
Following thing I have been looking for:
An app, which executes custom shell/bash scripts with a tap on a custom widget.
I've tried several apps (including Script Kitty,..) but none fits my use-case:
I want to login into my network's vpn and then login via ssh to my pc and there execute simple commands (like "shutdown" etc.) just with a tap on a custom widget.
Is something there yet or do I have to build my own little app?
Thanks for suggestions

Related

[Q] Howto HTTP Post/Perl Command Line shortcut for Android.... please help

Hey all, I've had this issue for quite awhile and have looked around extensively on the internet before coming here. So if you don't wanna read what I've already found out, just skip to the last paragraph for a summary of my problem.
So I have a home automation system setup for my house and I'm loving everything about it. I already have an app on my Galaxy S that will let me control the devices. I took it a step farther and delved into how to send commands using the HTTP post commands. I've already created perl scripts that can activate and deactivate the devices, but as you know Android doesn't have perl inbuilt.
I want to be able to make a shortcut on my Android device to start the devices. The reason why I want to do this is simply because I want an alarm on my android device to trigger a shortcut which turns on everything I want in the morning without me having to actually touch my phone. I already have the Alarm app that can open the shortcut, but I need a script that will work.
I need a shortcut that would enable the devices. So my first thought would be a bash script (and make a shortcut using Gscript for the Alarm App). But there's the problem, because I don't know how to send a http command from the Android terminal. I know (and have tested) perl commands, but perl isn't available for Android. That was the only way I know how to do this. I know you can use java, but then you're creating other files and to me it seems too much of a hassle. I just need something that can access the http page without opening an internet browser or anything else.
Summary:
I need a shortcut on my android device that accesses an http page without opening an internet browser or any other program. The http page has a standard username/password prompt, but can be easily worked around.
What's the easiest way of going about this? If a shell script is needed, what would be the command to open the webpage without opening a browser?
Things to know:
- Weblink only needs to be opened (no interaction required) for the specific device to be turned on
- Website is password protected using standard http protocol (but can be worked around if there is a problem)
- In perl, all I would need to do is issue the following command to get the devices to turn on or off:
perl -u username : password h-t-t-p-whatever.com/device_3_on
Sorry for the drawn out post, but I really wanted to explain my situation as best as I could. I'm sure there is probably an easier way that I'm missing here, so I need help from any and all people that would know about these things. Any [helpful] advice is welcome

Configure VPNC 0,99 or VPNC Widget

Hello everyone,
I have a problem with the configuration of the two programs in question, in practice:
VPNC 0.99, but crashes
VPNC Widget, the form asks tun.ko
I have already made the root of my device, but have not been able to add the file tun.ko.
I managed to lend a hand.
thanks
Hello

[Q] SSH server and Android (SSHelper)

I've tried a couple different SSH apps but the only ones that work "out-of-the-box" are the closed source ones with ads. I've tried DigiSSHD and SSHelper, but can't get either to start a server. SSHelper gives me an error saying "Could not load host key" and "sshd: no hostkeys available". DigiSSHD doesn't seem to start the server either, there is a bar that just says "NO" at the top and the dropbear/openssh icons have hourglass icons on them as if something isn't quite right.
I'm using Android 4.4.2 on a Dell Venue 8. I saw that there's a support thread for SSHelper, but i don't have permission to post there.
Any ideas what i need to do? Do i need to create the host key myself? It seems like not all of the components were installed correctly for SSHelper (on the site it lists "OpenSSH, Busybox, Rsync and others") since i assume it would create the key for you the first time you run it.
I'd really appreciate any help. Thanks

Deleting data (SOLVED)

Hi, I tried remove some games and scopes but their are still in my phone. Do you know where are installed? I wanna delete with console but I don't know where are the files. Locate command doesn't works amb find command is not enough.
This is a pic, an image is better than a text from a non english XD
https://plus.google.com/photos/1105...6131618823196190386&oid=110575007060381651511
Solved,
User manual: Deleting (Uninstalling) Scopes and Apps
You can’t delete the main Scopes and apps that were on your phone when you took it out of the box. All the others – the ones you have downloaded and installed yourself – can be deleted (or uninstalled) by visiting the Ubuntu Store and searching for your app or Scope. In the preview screen for the Scope or app you want to delete, you will see options to either update or uninstall it. Tap ‘Uninstall’ and let Ubuntu do the rest. The quickest way to access the preview screen for an app is to give a long press on the icon in the Apps Scope.
When deleting an application, their data will still remain on your phone, even for user-installed apps.
Their data can be found in the following places:
Code:
~/.local/share/<APP ID>
~/.config/<APP ID>
Thanks Nikwen
CesarMR said:
Thanks Nikwen
Click to expand...
Click to collapse
You're welcome.

[Q] Is it possible to modify / change captive portal server in a ROM

Hi guys, I'm learning to customize ROMs and want to customize the captive portal server. Since I'm behind the Great Firewall in China, the default server, which is google.com , is blocked. I wonder if there's a way to modify the captive portal server so I can integrate the modified server into a custom ROM, rather than use adb commands after the system is all set up?
I guess if the server URL is written in a certain file and it can be modified on a file level? But so far in the forum I haven't seen another way except for command line .

Categories

Resources