Jump to content
Ei8htbits

SSH Web Terminal Client Module

Recommended Posts

3 hours ago, Exmix said:

So this will be a very silly question, when you guys do get this working, how do I go about updating it so mine will work as well? Just re-do the steps listed on the GIthub site or is there a different way to update it?

I reckon the github will be updated when something changes. I forked it to my repository, so any changes i eventually do to the code can be found there. :)

Share this post


Link to post
Share on other sites

Let me know what the current issue is and i'll try to update it soon as I can. Work has me slaving away and don't think its going to get any slower any time. If you like to jump in and give me a hand, I'll post the source for the module. Its not anything complex. Its just a simple HTML. Most of the work comes from the Shellinabox which I believe Zylla is taking a look at.  

Share this post


Link to post
Share on other sites

I've been packed with work, but i've gotten it somewhat working.
Just tweaking stuff now. (The module it self).
Will push a commit to github when it's working on either the tetra or nano. :)

  • Like 1

Share this post


Link to post
Share on other sites

Zylla for the win! Thanks for the hard work chief. Its much appreciated :) Looking forward to the outcome. I'm currently working on new layout for the Nano interface while on lunch. Basically, only time I get to work on any my personal projects. 

Share this post


Link to post
Share on other sites
18 hours ago, Ei8htbits said:

Zylla for the win! Thanks for the hard work chief. Its much appreciated :) Looking forward to the outcome. I'm currently working on new layout for the Nano interface while on lunch. Basically, only time I get to work on any my personal projects. 

I feel ya man. I barely got time for anything between work and family, but somehow i manage to get something done ;)
I've pushed a commit to my GitHub fork: https://github.com/adde88/SSHWebClient

Currently tested and working on TETRA. Some issues are present, for example getting it to report the "correct" IP.
br-lan is not always the correct one to be used in iframe. But i got an idea how to fix it. Just need a bit more time :)

Haven't tested dependencies script within the Module, or my private install-script. But it should work. Please give some feedback if possible! :)
 

Screenshot from PC:

b0xAj5z.png

 

Screenshot from iPhone:  (The iframe scales quite nicely)

oj1KQsE.png

Edited by Zylla
  • Like 1

Share this post


Link to post
Share on other sites

I forgot, there's also a patch-file and a init file to be used.
I've compressed an archive containing the Makefiles and patches, etc.

Here you go: 

shellinabox.tar.gz

  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites

root@Pineapple:~# ./install.sh
Installing: SSHWebClient.
Downloading https://www.wifipineapple.com/nano/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
--2017-08-13 17:27:58-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk
Resolving github.com... 192.30.253.113, 192.30.253.112
Connecting to github.com|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following]
--2017-08-13 17:27:59-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93322 (91K) [application/octet-stream]
Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1'

shellinabox_2.10-1_ar71xx.ipk.1  100%[==========================================================>]  91.13K   272KB/s    in 0.3s

2017-08-13 17:28:00 (272 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322]

Package git (2.3.5-1) installed in sd is up to date.
Package git-http (2.3.5-1) installed in sd is up to date.
fatal: destination path 'SSHWebClient' already exists and is not an empty directory.
rm: can't remove '.' or '..'
rm: can't remove '.' or '..'
rm: '.jail' is a directory
rm: '.uci' is a directory
 

Share this post


Link to post
Share on other sites
12 minutes ago, Ei8htbits said:

root@Pineapple:~# ./install.sh
Installing: SSHWebClient.
Downloading https://www.wifipineapple.com/nano/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
--2017-08-13 17:27:58-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk
Resolving github.com... 192.30.253.113, 192.30.253.112
Connecting to github.com|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following]
--2017-08-13 17:27:59-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93322 (91K) [application/octet-stream]
Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1'

shellinabox_2.10-1_ar71xx.ipk.1  100%[==========================================================>]  91.13K   272KB/s    in 0.3s

2017-08-13 17:28:00 (272 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322]

Package git (2.3.5-1) installed in sd is up to date.
Package git-http (2.3.5-1) installed in sd is up to date.
fatal: destination path 'SSHWebClient' already exists and is not an empty directory.
rm: can't remove '.' or '..'
rm: can't remove '.' or '..'
rm: '.jail' is a directory
rm: '.uci' is a directory
 

You're getting an error message because the /pineapple/modules/SSHWebClient directory already exists.
I don't want to add a function removing the previous one. In case it removes something the user actually wants to keep.
So try removing or moving that folder to another location, and re-launch the script.
I have updated and tested the script on my tetra, and it's working :)

Edited by Zylla

Share this post


Link to post
Share on other sites

nope... I restored my device to factory settings, updated to current bin, and formatted my SD card. Restarted the device and proceeded with the installation.

But Let me do this again to double check. 

 

Edited by Ei8htbits

Share this post


Link to post
Share on other sites
2 minutes ago, Ei8htbits said:

nope... I restored my device to factory settings, updated to current bin, and formatted my SD card. Restarted the device and proceeded with the installation.

But Let me do this again to double check. 

module.png

Also noticed the dependencies.sh script had wrong chmod. So it won't install dependencies. I'll update it right away
EDIT: It's now updated.

Edited by Zylla

Share this post


Link to post
Share on other sites

just restored my device to factory bin and updated to current bin. I also formatted my sd card. Let me know when you have updated the scripts and I'll test it again. 

Share this post


Link to post
Share on other sites

Btw, you'll have to edit the html and specify the ip address within the iframe-src manually,  until i get the function that's supposed to get the correct one updated :)
The one specified there now is: 192.168.1.6
Change it to the one you're using on your nano/tetra.

Edited by Zylla

Share this post


Link to post
Share on other sites

I see  it installs the module into tmp and creates a shortcut to it in the /pineapple/modules directory. It doesn't list the module onto nano interface.  OR am I doing something wrong? 

 

Edited by Ei8htbits

Share this post


Link to post
Share on other sites

I'm testing a bit on the Tetra and the Nano right now.
i've also added a function that reports the br-lan IP to the code. But it's not always the correct IP. (In most situations it is correct, but it's not perfect)

The strange thing i'm experiencing at the moment is that it works flawlessly on my Tetra. Both the buttons and the iframe displays everything correctly.
Same code on the Nano has some issues. The buttons are working, but the iframe doesn't show anything. (Even though it is there when opened manually)

I have no idea why. As the shellinabox service is running, and it's working on the buttons. But i'll debug it some more and see what i can find. Just letting you guys know what's up :)

Edited by Zylla

Share this post


Link to post
Share on other sites

I'm looking at your script and I see you are using shellinabox 2.10 instead of the 2.20 that you update.

Share this post


Link to post
Share on other sites
Just now, Ei8htbits said:

I'm looking at your script and I see you are using shellinabox 2.10 instead of the 2.20 that you update.

It's simply because i haven't tested 2.20 yet. I just posted it to github the moment it was done compiling :)
I'll give it some testing soon.

Share this post


Link to post
Share on other sites
7 minutes ago, Ei8htbits said:

I see  it installs the module into tmp and creates a shortcut to it in the /pineapple/modules directory. It doesn't list the module onto nano interface.  OR am I doing something wrong? 

install.png

The module gets installed to /sd/modules/SSHWebClient  then a sym-link gets made towards /pineapple/modules/SSHWebClient
The tmp folder only stores the IPK file temporarily, and it gets deleted afterwards.

Share this post


Link to post
Share on other sites

I was getting this issue during install.

./install.sh: line 25: cd: /sd/modules: No such file or directory
 

I noticed that the sd card when formatted it doesn't have a modules folder. I made a little change to the script. I added mv /sd /sd/modules into your script and  installs with no issues. Dependencies also install just fine, but I can't get the terminal to work.  

Installing: SSHWebClient.
Downloading https://www.wifipineapple.com/nano/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_pineapple.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_base.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_packages.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_management.
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/chaos_calmer_routing.
--2017-08-13 19:38:07-- https://github.com/adde88/SSHWebClient/raw/master/shellinabox_2.10-1_ar71xx.ipk
Resolving github.com... 192.30.253.112, 192.30.253.113
Connecting to github.com|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk [following]
--2017-08-13 19:38:08-- https://raw.githubusercontent.com/adde88/SSHWebClient/master/shellinabox_2.10-1_ar71xx.ipk
Resolving raw.githubusercontent.com... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 93322 (91K) [application/octet-stream]
Saving to: 'shellinabox_2.10-1_ar71xx.ipk.1'

shellinabox_2.10-1_ar71xx.ipk.1  100%[==========================================================>]  91.13K   245KB/s    in 0.4s

2017-08-13 19:38:09 (245 KB/s) - 'shellinabox_2.10-1_ar71xx.ipk.1' saved [93322/93322]

Package git (2.3.5-1) installed in sd is up to date.
Package git-http (2.3.5-1) installed in sd is up to date.
mv: recursion detected, omitting directory '/sd/modules'
Cloning into 'SSHWebClient'...
warning: templates not found /usr/share/git-core/templates
remote: Counting objects: 50, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 50 (delta 14), reused 46 (delta 10), pack-reused 0
Receiving objects: 100% (50/50), 250.14 KiB | 263.00 KiB/s, done.
Resolving deltas: 100% (14/14), done.
Checking connectivity... done.
SSHWebClient Installation completed!
 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...