-
Notifications
You must be signed in to change notification settings - Fork 12
EZ Desktop feature in SubutaiTray [PLAN]
Narmamatov Kadyrbek edited this page Nov 29, 2017
·
6 revisions
Four major changes are required to enable the SubutaiTray with this new feature:
- It MUST package and install the x2goclient package.
- The E2E plugin Web Socket API needs a command message added to send the tray instructions to launch the EZ-Desktop client from web interfaces: the Subutai Hub and the Subutai Console UI.
- The Hub and Console UI's MUST detect desktop containers and enable the EZ-Desktop button (
Desktop
label) - We need additional REST API's to be provided by the Hub - WHAT ARE THEY ? DEFINE THEM PLEASE
- Whether a container is launchable via EZ-Desktop.
- The Hub already provides APIs for Container object, so we can embed one more bool parameter
(ex: is_desktop())
which will show if the current container has desktop with x2goserver.
- When users select
Desktop
instead ofssh
, (by clicking tray button or clicking button from hub and the console):- The SubutaiTray should execute the x2goclient with the proper parameters to establish a desktop session
- The SubutaiTray should pop up a dialog with parameters and instructions for users to use x2goclient session (parameters are given from hub) WHY? CAN'T IT JUST GO IN - keep it simple stupid for users as much as possible.
- It is better to keep EZ-Desktop feature as simple as possible, so that user can enter container by clicking only one button. But we found out that
x2goclient
doesn't provide commands to create a new session. https://code.x2go.org/doc/x2goclient/man/man1/x2goclient.1.html -
pyhoca-cli
can be used as cli to create and run x2goclient sessions. But has following disadvantages:- It is not supported on Mac OS and Windows
- Need to be installed as one complete program, which means new dependencies.
Installed in this way:
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:x2go/stable
sudo aptitude update
sudo aptitude install pyhoca-cli
- Have a very small user community
- Maybe we can use
pyhoca-cli
as optinal for linux.
Make most common cases require the least input or configuration. Don't confuse users. Special functions that are least used should only require configuration.