Giter Site home page Giter Site logo

Comments (13)

coderaiser avatar coderaiser commented on May 18, 2024 1

Added support of a terminal in v6.7.0.

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

Unfortunately no, Console uses jq-consle. You can hack around. I think this is a useful feature, but I do not know how to implement it.
Maybe you will have some ideas.

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

hmm, I'm looking for a lightweight web file explorer and console with authentication. Where cloudcmd brightened my eyes. Unfortunately I have the limitation of use requirement of services like application consoles, screen, atop, vim..
I assume this isn't possible and looking for a library kinda failed. The only one I found which would go towards this direction is GateOne. I guess its optional implementation would be a hassle, wouldn't it?
(authentication bridge + button to start in a new window or in a lightbox from cloudcmd)

An alternative I thought about. Do you see way of tail -F a log while at the same time being able to send commands which get wrapped with the screen args? This could emulate screen attaching.

(screen -S <id> -X stuff '<command>'`echo -ne '\015'`)

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

Main problem with GetOne it is not designed for using as a node.js library or midleware, it's written on python, it's to large dependency for Cloud Commander.
butterfly works good, it also python based.
tty.js could be great but it is doesn't work on windows (and on unix has troubles) and doesn't maintained.
Any way you could use Cloud Commander as file manager and GateOne (or any other) as terminal in other tab.
If you find some terminal npm module that fits your needs, works stable (even on windows, and would be great if without c++ code) and maintained, let me know.

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

alright thanks. Would you recommend butterfly or tty.js on a unix system? Could I use cloud commanders auth system or should I use it as middleware and build a custom auth system?

offtopic: ever thought about pastebin, gist upload for text files?

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

A quick research let me came up with these. I will test them and see how well they work with highly used utils like screen, vim, htop. But if you know some of them and can say this one won't work.. This one doesn't work on windows.. you could save me a lot of testing time :) (I still hope we can find one that is worth being implanted directly into cloudcmd)

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024
offtopic: ever thought about pastebin, gist upload for text files?

No, I have not. But there is github gist uploader, you could try it.

I had problems with term.js it is not maintained. But maybe now situations is better, I think you definitely should test this things.

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

I don't think it is what you are looking for. Take a look at the last commits, they are purely pull req based since 2014 https://github.com/chjj/term.js/commits/master You might wanna give Runnable's fork a try if you like: https://github.com/Runnable/term.js But overall it is inactive. Edit: well he isn't doing much more than moving colors around :(

What about the other ones? wetty, terminal.js and webshell?

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

wetty uses pty.js that doesn't maintained and dosn't works on windows but works pretty good on linux.
terminal.js works not as good (have issues with mc).
webshell uses same unsupported fork of tty.js and depends on pm2.

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

I see. In my opinion the possibility to use vim, screen... is already a major step forward. But I haven't used mc for a long time, still there wouldn't be many features left cloudcmd offers which mc doesn't cover :P

About pty and windows, there is an up to date pull req: chjj/pty.js#111
JamesMGreene also picked it up under the new name of node-partty: https://github.com/JamesMGreene/node-partty it also includes windows compatibility JamesMGreene/node-partty@8bb1493 (I hope he only is on a break and continues)

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

You could try install cloudcmd v2.0.0 with:

Than do next things:

cd node_modules/cloudcmd
npm i partty

An change 12 line in lib/server/terminal.js (I tried to use pty.js but had a lot problems with it so I drop it):

tryRequire('pty.js') -> tryRequire('pty.js')

After that run:

node bin/cloudcmd

You could start terminal with shift + ~.

from cloudcmd.

Slind14 avatar Slind14 commented on May 18, 2024

thanks, I'll do that :)

from cloudcmd.

coderaiser avatar coderaiser commented on May 18, 2024

Closed until proper terminal library will be found.

from cloudcmd.

Related Issues (20)

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.