Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Manager: Command line #566

Closed
iliajie opened this issue Oct 29, 2016 · 16 comments
Closed

File Manager: Command line #566

iliajie opened this issue Oct 29, 2016 · 16 comments

Comments

@iliajie
Copy link
Collaborator

iliajie commented Oct 29, 2016

It would be great to have command line interface in File Manager, just the same way it's done in Midnight Commander or Double Commander.

@iliajie
Copy link
Collaborator Author

iliajie commented Nov 15, 2016

It's no use having command line only in File Manager.

Version 18.30 will have drop-down console, like Guake Terminal.

It will port functionality from shell module. In case it's available it will work (having the same or a little enhanced functionality).

It will be callable by the hotkey (default is Alt+K) and dismissed by just hitting escape key or typing exit. History will also work by using up/down arrow keys. History will be able to be cleared by hitting while in shell Alt+L

The previously enrolled support for calling the command from the search bar by using !command will be passed to the new drop-down console and opened there instead of going to the module.

Here is the little teaser.

http://rostovtsev.ru/pub/src/authentic/18.30b/new_command_line_port.webm

Please share your thought before the release.

@iliajie
Copy link
Collaborator Author

iliajie commented Nov 18, 2016

Enrolled additional commands clear, reset, history and history -c. Hotkey Alt+L will clear console in case it's opened.

@iliajie
Copy link
Collaborator Author

iliajie commented Nov 18, 2016

Edit:

Hotkey Alt+K will clear console in case it's opened.

@iliajie
Copy link
Collaborator Author

iliajie commented Nov 18, 2016

Edit:

History will be extracted from the shell modules (either Webmin or CM/save_serv.cgi?id=xx&shell=1) and stored. It will provide support for usage with multiple servers.

@iliajie
Copy link
Collaborator Author

iliajie commented Nov 26, 2016

Finally default keys for bringing up the shell is:

Alt+K

and for clearing shell:

Alt+L

@neubreed
Copy link

neubreed commented Dec 8, 2016

This seems to give the user root access .. When I type whoami is get "root". Is there any configuration for this?

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

That wouldn't be possible. It's just a port of shell module.

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

Configuration in Command Line module.

@neubreed
Copy link

neubreed commented Dec 8, 2016

Take a look at this:

https://i.imgur.com/oiyIPG2.png

I'm root but logged in as ryan.

Do you mean command shell program?

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

What does it mean you are root but logined as ryan? Try running the same command under Command Line module. What is the output? It will be the same anyway.

@neubreed
Copy link

neubreed commented Dec 8, 2016

I've logged into webmin as normal user "ryan". When I use the command shell and type whoami I get root .. I can cd into /root/ and can delete files. Maybe this is not an issue for Authentic Theme. What do you get when you type whoami on your system?

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

When I get home, I'll let you know.

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

Hi,

I tried it under user account (in Usermin) and it returns the correct username.

I think you miss-configured your ACLs.

@neubreed
Copy link

neubreed commented Dec 8, 2016 via email

@7starsone
Copy link

7starsone commented Dec 8, 2016

Hello, may I know why CLI doesn't run something like htop and other?
eg. Error opening terminal: unknown. OR for top TERM environment variable not set.
? root on CentOS 7

@iliajie
Copy link
Collaborator Author

iliajie commented Dec 8, 2016

Yes, because it's not interactive terminal yet. I guess we need to switch to using sockets for webserver. Theme just extends the functionality of Command Line module and it's not yet interactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants