A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:50
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/usage:pyhoca-cli?rev=1363006175
New Revision: http://wiki.x2go.org/doku.php/usage:pyhoca-cli
Edit Summary:
User : sunweaver
@@ -1,5 +1,9 @@
====== Using PyHoca-CLI ======
+
+ The name PyHoca is a word play combining two powerful entities: Python and Phoca (mascot of X2go, Latin species name for seals).
+
+ PyHoca-CLI is a client implementation for X2Go using [[wiki:libs:python-x2go|the project's Python API]] (Python module). PyHoca-CLI can be operated completely from the command line and the goal is to reflect the full functionality spectrum of [[wiki:libs:python-x2go]].
===== PyHoca-CLI Command Line Arguments =====
PyHoca-CLI has a man page.
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:49
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: ---
New Revision: http://wiki.x2go.org/doku.php/usage:pyhoca-cli
Edit Summary: created
User : sunweaver
====== Using PyHoca-CLI ======
===== PyHoca-CLI Command Line Arguments =====
PyHoca-CLI has a man page.
On your GNU/Linux system execute
$ man pyhoca-cli
An always up-to-date html version of the pyhoca-cli man page can be be retrieved from the X2go Git repository: [[http://code.x2go.org/doc/pyhoca-cli/man/man1/pyhoca-cli.1.html|man pyhoca-cli]].
//Security notice:// amongst many options PyHoca-CLI offers a ''--password'' option. You should never use this password option from the command line, directly (as it will probably appear in the command history of your terminal shell).
However, it might be handy for some of you to use this option when calling ''pyhoca-cli'' from within your own scripts.
The ''--password'' value (i.e. the actual password passed to PyHoca-CLI) will also be obfuscated in the process list of your system (*nix operating systems only).
Note: On Windows systems the ''--password'' option is disabled, and so not available.
===== Starting PyHoca-CLI =====
To start an X2go session for remote user ''foo'' on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following command:
<code>
$ pyhoca-cli --server myserver.local -N -c GNOME --user //foo// --add-to-known-hosts
</code>
If you have a valid X2go session profile configuration ($HOME/.x2goclient/sessions file) you can also use the ''--session-profile'' option. For a session profile in x2goclient's ''sessions'' file named //MyProfile// use this command:
<code>
$ pyhoca-cli --session-profile MyProfile
</code>
===== Desktop Sharing with PyHoca-CLI
=====
To share an already running local or remote X2go desktop session of user //foo// on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following commands:
<code>
$ pyhoca-cli --server myserver.local --list-desktops --user foo --add-to-known-hosts
</code>
Now a list of available/sharable desktop sessions will be shown (your///foo//'s own desktops are always sharable), e.g. ''foo@:0'' (local desktop on the server):
<code>
someone@client:~$ pyhoca-cli --server myserver.local --list-desktops
pyhoca-cli[20238] NOTICE: preparing requested X2go session
pyhoca-cli[20238] (PyHocaCLI) NOTICE: preparing requested X2go session
pyhoca-cli[20238] (x2gosessregistry-pylib) NOTICE: registering X2go session Pyhoca-Client_Session...
pyhoca-cli[20238] (x2goclient-pylib) NOTICE: initializing X2go session...
pyhoca-cli[20238] (x2gocontrolsession-pylib) NOTICE: connecting to myserver.local
X2go desktops available for
sharing
===================================
Host: myserver.local - [<ip-address>]:<port>
Username: foo
foo@:0
foo@:51
bar@:52
</code>
To view //foo//'s local desktop session ''foo@:0'' use this command line:
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --user foo --add-to-known-hosts
</code>
The next change in the command line (''--share-mode 1'') will enable you to access //foo//'s local desktop in full (read-write) access mode...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --share-mode 1 --user foo --add-to-known-hosts
</code>
If //foo// is logged in via X2go on desktop ''foo@:51'', you could connect to that desktop as well...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:51 --share-mode 1 --user foo --add-to-known-hosts
</code>
And if another user //bar// on your X2go server has enabled desktop sharing (more info [[:wiki:components:desktop-sharing|here]]), then
you could use this command to let user //foo// view user //bar//'s desktop session...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop bar@:52 --user foo --add-to-known-hosts
</code>
====== Further Readings ======
For further readings, please the README and TODO documentation files in the PyHoca-CLI source tree on the [[http://code.x2go.org/gitweb?p=pyhoca-cli.git;a=tree|X2Go Git site]].
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:49
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/wiki:usage:pyhoca-cli?rev=1363005995
New Revision: http://wiki.x2go.org/doku.php/wiki:usage:pyhoca-cli
Edit Summary: removed
User : sunweaver
@@ -1,89 +1 @@
- ====== Using PyHoca-CLI ======
- ===== PyHoca-CLI Command Line Arguments =====
-
- PyHoca-CLI has a man page.
-
- On your GNU/Linux system execute
-
- $ man pyhoca-cli
-
- An always up-to-date html version of the pyhoca-cli man page can be be retrieved from the X2go Git repository: [[http://code.x2go.org/doc/pyhoca-cli/man/man1/pyhoca-cli.1.html|man pyhoca-cli]].
-
- //Security notice:// amongst many options PyHoca-CLI offers a ''--password'' option. You should never use this password option
from the command line, directly (as it will probably appear in the command history of your terminal shell). However, it might be handy for some of you to use this option when calling ''pyhoca-cli'' from within your own scripts.
-
- The ''--password'' value (i.e. the actual password passed to PyHoca-CLI) will also be obfuscated in the process list of your system (*nix operating systems only).
-
- Note: On Windows systems the ''--password'' option is disabled, and so not available.
-
- ===== Starting PyHoca-CLI =====
-
- To start an X2go session for remote user ''foo'' on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following command:
-
- <code>
- $ pyhoca-cli --server myserver.local -N -c GNOME --user //foo// --add-to-known-hosts
- </code>
-
- If you have a valid X2go session profile configuration ($HOME/.x2goclient/sessions file) you can also use the ''--session-profile'' option. For a session profile in x2goclient's ''sessions'' file
named //MyProfile// use this command:
-
- <code>
- $ pyhoca-cli --session-profile MyProfile
- </code>
-
- ===== Desktop Sharing with PyHoca-CLI =====
-
- To share an already running local or remote X2go desktop session of user //foo// on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following commands:
-
- <code>
- $ pyhoca-cli --server myserver.local --list-desktops --user foo --add-to-known-hosts
- </code>
-
- Now a list of available/sharable desktop sessions will be shown (your///foo//'s own desktops are always sharable), e.g. ''foo@:0'' (local desktop on the server):
-
- <code>
- someone@client:~$ pyhoca-cli --server myserver.local --list-desktops
- pyhoca-cli[20238] NOTICE: preparing requested X2go session
- pyhoca-cli[20238] (PyHocaCLI) NOTICE: preparing requested X2go session
- pyhoca-cli[20238] (x2gosessregistry-pylib) NOTICE: registering X2go session Pyhoca-Client_Session...
- pyhoca-cli[20238] (x2goclient-pylib) NOTICE:
initializing X2go session...
- pyhoca-cli[20238] (x2gocontrolsession-pylib) NOTICE: connecting to myserver.local
-
- X2go desktops available for sharing
- ===================================
- Host: myserver.local - [<ip-address>]:<port>
- Username: foo
-
- foo@:0
- foo@:51
- bar@:52
- </code>
-
- To view //foo//'s local desktop session ''foo@:0'' use this command line:
-
- <code>
- someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --user foo --add-to-known-hosts
- </code>
-
- The next change in the command line (''--share-mode 1'') will enable you to access //foo//'s local desktop in full (read-write) access mode...
-
- <code>
- someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --share-mode 1 --user foo --add-to-known-hosts
- </code>
-
- If //foo// is logged in via X2go on desktop ''foo@:51'', you could connect to that desktop as well...
-
- <code>
- someone@client:~$ pyhoca-cli --server myserver.local --share-desktop
foo@:51 --share-mode 1 --user foo --add-to-known-hosts
- </code>
-
- And if another user //bar// on your X2go server has enabled desktop sharing (more info [[:wiki:components:desktop-sharing|here]]), then you could use this command to let user //foo// view user //bar//'s desktop session...
-
- <code>
- someone@client:~$ pyhoca-cli --server myserver.local --share-desktop bar@:52 --user foo --add-to-known-hosts
- </code>
-
-
- ====== Further Readings ======
-
- For further readings, please the README and TODO documentation files in the PyHoca-CLI source tree on the [[http://code.x2go.org/gitweb?p=pyhoca-cli.git;a=tree|X2Go Git site]].
-
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:48
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: ---
New Revision: http://wiki.x2go.org/doku.php/usage:pyhoca-gui
Edit Summary: created
User : sunweaver
====== PyHoca-GUI ======
The name PyHoca is a word play combining two powerful entities: Python and Phoca (mascot of X2go, Latin species name for seals).
PyHoca-GUI is a client implementation for X2Go using [[wiki:libs:python-x2go|the project's Python X2Go client API]] (a Python module). PyHoca-GUI uses wxPython for rendering graphical desktop elements (menus, dialog boxes etc.).
PyHoca-GUI is designed as a very minimal GUI that behaves very similar to GNOME's network manager applet (nm-applet). It appears as a small Phoca icon (a little seal) that docks to your systray panel (also
called notification area) and allows you to manage multiple X2go sessions simultaneously.
===== Command Line Arguments =====
PyHoca-GUI has a man page. Considering that it actually is a GUI there are quite some command line options to choose from.
On your GNU/Linux system execute
$ man pyhoca-gui
An always up-to-date html version of the pyhoca-gui man page can be be retrieved from the X2go Git repository: [[http://code.x2go.org/doc/pyhoca-gui/man/man1/pyhoca-gui.1.html|man pyhoca-gui]].
===== Launching PyHoca-GUI =====
You can launch PyHoca-GUI by typing ''pyhoca-gui'' on the command line (from a terminal) or by starting it from your desktop's application menu (topic: Internet).
PyHoca-GUI will appear on your desktop as a small icon that docks into your systray (as the GNOME applet for Network Manager does). Find this icon---it looks like a little white seal on grey background.
Note that on Ubuntu 12.04 or later, the Unity interface does not allow PyHoca-gui to
create the systray icon. To enable this, we need to edit the gsettings. To allow all applications in the systray, type this in the terminal.
<code>
$ gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
</code>
If you would rather whitelist a set of applications, use this command instead, where YOUR_APPLICATION is 'pyhoca-gui'
<code>
$ gsettings set com.canonical.Unity.Panel systray-whitelist \
"['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'YOUR_APPLICATION']"
</code>
==== Profile Manager ====
PyHoca-GUI on Linux uses the same configuration files as X2Go Client. (The Windows version of X2Go Client writes its session profiles into HKCU of the Windows registry).
Thus PyHoca-GUI should work out of the box for most setups and user profiles on a (Linux) system with a working X2Go Client configuration.
If you are new to X2Go and try PyHoca-GUI for the first time, then you have to add a session profile for your (first) X2Go server by
right-clicking on the PyHoca-GUI systray icon.
If you //right-click// on the PyHoca-GUI icon you are offered a sub-menu called //Profile Manager//. From there, you can create new X2Go session profiles and access all your already defined X2Go session profiles, as well.
==== Starting Sessions ====
The usage logic of PyHoca-GUI is a little bit different from that of X2Go Client. In PyHoca-GUI you //first// authenticate to an X2Go Server and //then// you start/resume sessions. It takes a little time to get used to that different concept, but you will soon get to like the advantages of this two-step session startup logic.
To start a PyHoca-GUI session //left-click// on the PyHoca icon and then choose **Authenticate X2go Server** to be presented with a list of existing session profiles.
After you have authenticated against one of your configured server session profiles, you can access the authenticated session profile by //left-clicking// the PyHoca-GUI icon. Navigate through the
GUI's menu from there, most of it should be self-explanatory.
===== Further Readings =====
For further readings, please also consult the README and TODO documentation files in the PyHoca-GUI source tree on the [[http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=tree|X2Go upstream Git site]].
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:48
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/doc:usage:start?rev=1363005894
New Revision: http://wiki.x2go.org/doku.php/doc:usage:start
Edit Summary: [Users]
User : sunweaver
@@ -3,7 +3,7 @@
* [[wiki:components:x2goclient|X2Go Client]], the Qt client
- * [[wiki:usage:pyhoca-gui|PyHoca-GUI]], the wxPython based client
- * [[wiki:usage:pyhoca-cli|PyHoca-CLI]], the Python based command line client
+ * [[usage:pyhoca-gui|PyHoca-GUI]], the wxPython based client
+ * [[usage:pyhoca-cli|PyHoca-CLI]], the Python based command line client
* [[wiki:components:multi-display|Multi display support features]]
* [[wiki:components:desktop-sharing|X2Go Desktop Sharing]]
===== Admins
=====
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:48
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/wiki:components:pyhoca-gui?rev=1363003589
New Revision: http://wiki.x2go.org/doku.php/wiki:components:pyhoca-gui
Edit Summary: removed
User : sunweaver
@@ -1,64 +1 @@
- ====== PyHoca-GUI ======
-
- The name PyHoca is a word play combining two powerful entities: Python and Phoca (mascot of X2go, Latin species name for seals).
-
- PyHoca-GUI is a client implementation for X2Go using [[wiki:libs:python-x2go|the project's Python X2Go client API]] (a Python module). PyHoca-GUI uses wxPython for rendering graphical desktop elements (menus, dialog boxes etc.).
-
- PyHoca-GUI is designed as a very minimal GUI that behaves very similar to GNOME's network manager
applet (nm-applet). It appears as a small Phoca icon (a little seal) that docks to your systray panel (also called notification area) and allows you to manage multiple X2go sessions simultaneously.
-
- ===== Usage =====
-
- ==== Command Line Arguments ====
-
- PyHoca-GUI has a man page. Considering that it actually is a GUI there are quite some command line options to choose from.
-
- On your GNU/Linux system execute
-
- $ man pyhoca-gui
-
- An always up-to-date html version of the pyhoca-gui man page can be be retrieved from the X2go Git repository: [[http://code.x2go.org/doc/pyhoca-gui/man/man1/pyhoca-gui.1.html|man pyhoca-gui]].
-
-
- ==== Launching PyHoca-GUI ====
-
- You can launch PyHoca-GUI by typing ''pyhoca-gui'' on the command line (from a terminal) or by starting it from your desktop's application menu (topic: Internet).
-
- PyHoca-GUI will appear on your desktop as a small icon that docks into your systray (as the GNOME applet for Network Manager does).
Find this icon---it looks like a little white seal on grey background.
-
- Note that on Ubuntu 12.04 or later, the Unity interface does not allow PyHoca-gui to create the systray icon. To enable this, we need to edit the gsettings. To allow all applications in the systray, type this in the terminal.
- <code>
- $ gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"
- </code>
-
- If you would rather whitelist a set of applications, use this command instead, where YOUR_APPLICATION is 'pyhoca-gui'
-
- <code>
- $ gsettings set com.canonical.Unity.Panel systray-whitelist \
- "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'YOUR_APPLICATION']"
- </code>
-
-
- ==== Profile Manager ====
-
- PyHoca-GUI on Linux uses the same configuration files as X2Go Client. (The Windows version of X2Go Client writes its session profiles into HKCU of the Windows registry).
- Thus PyHoca-GUI should work out of the box for most setups and user profiles on a (Linux)
system with a working X2Go Client configuration.
-
- If you are new to X2Go and try PyHoca-GUI for the first time, then you have to add a session profile for your (first) X2Go server by right-clicking on the PyHoca-GUI systray icon.
-
- If you //right-click// on the PyHoca-GUI icon you are offered a sub-menu called //Profile Manager//. From there, you can create new X2Go session profiles and access all your already defined X2Go session profiles, as well.
-
-
- ==== Starting Sessions ====
-
- The usage logic of PyHoca-GUI is a little bit different from that of X2Go Client. In PyHoca-GUI you //first// authenticate to an X2Go Server and //then// you start/resume sessions. It takes a little time to get used to that different concept, but you will soon get to like the advantages of this two-step session startup logic.
-
- To start a PyHoca-GUI session //left-click// on the PyHoca icon and then choose **Authenticate X2go Server** to be presented with a list of existing session
profiles.
-
- After you have authenticated against one of your configured server session profiles, you can access the authenticated session profile by //left-clicking// the PyHoca-GUI icon. Navigate through the GUI's menu from there, most of it should be self-explanatory.
-
- ===== Further Readings =====
-
- For further readings, please also consult the README and TODO documentation files in the PyHoca-GUI source tree on the [[http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=tree|X2Go upstream Git site]].
-
-
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:46
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/wiki:usage:pyhoca-cli?rev=1363005915
New Revision: http://wiki.x2go.org/doku.php/wiki:usage:pyhoca-cli
Edit Summary:
User : sunweaver
@@ -1,7 +1,7 @@
===== Using PyHoca-CLI =====
- ==== PyHoca-CLI Command Line Arguments ====
+ ===== PyHoca-CLI Command Line Arguments =====
PyHoca-CLI has a man page.
On your GNU/Linux system execute
@@ -15,9 +15,9 @@
The ''--password'' value (i.e. the actual password passed to PyHoca-CLI) will also be obfuscated in the process list of your system (*nix operating systems only).
Note: On Windows systems the ''--password'' option is disabled, and so not available.
- ==== Starting PyHoca-CLI ====
+ =====
Starting PyHoca-CLI =====
To start an X2go session for remote user ''foo'' on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following command:
<code>
@@ -29,9 +29,9 @@
<code>
$ pyhoca-cli --session-profile MyProfile
</code>
- ==== Desktop Sharing with PyHoca-CLI ====
+ ===== Desktop Sharing with PyHoca-CLI =====
To share an already running local or remote X2go desktop session of user //foo// on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following commands:
<code>
@@ -82,9 +82,8 @@
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop bar@:52 --user foo --add-to-known-hosts
</code>
- ===== Further Readings =====
+ ====== Further Readings ======
- Please also consult further README and TODO documentation in the PyHoca-CLI Git project (X2go upstream site):
- http://code.x2go.org/gitweb?p=pyhoca-cli.git;a=tree
+ For further readings, please the
README and TODO documentation files in the PyHoca-CLI source tree on the [[http://code.x2go.org/gitweb?p=pyhoca-cli.git;a=tree|X2Go Git site]].
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:45
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: ---
New Revision: http://wiki.x2go.org/doku.php/wiki:usage:pyhoca-cli
Edit Summary: created
User : sunweaver
===== Using PyHoca-CLI =====
==== PyHoca-CLI Command Line Arguments ====
PyHoca-CLI has a man page.
On your GNU/Linux system execute
$ man pyhoca-cli
An always up-to-date html version of the pyhoca-cli man page can be be retrieved from the X2go Git repository: [[http://code.x2go.org/doc/pyhoca-cli/man/man1/pyhoca-cli.1.html|man pyhoca-cli]].
//Security notice:// amongst many options PyHoca-CLI offers a ''--password'' option. You should never use this password option from the command line, directly (as it will probably appear in the command history of your terminal shell).
However, it might be handy for some of you to use this option when calling ''pyhoca-cli'' from within your own scripts.
The ''--password'' value (i.e. the actual password passed to PyHoca-CLI) will also be obfuscated in the process list of your system (*nix operating systems only).
Note: On Windows systems the ''--password'' option is disabled, and so not available.
==== Starting PyHoca-CLI ====
To start an X2go session for remote user ''foo'' on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following command:
<code>
$ pyhoca-cli --server myserver.local -N -c GNOME --user //foo// --add-to-known-hosts
</code>
If you have a valid X2go session profile configuration ($HOME/.x2goclient/sessions file) you can also use the ''--session-profile'' option. For a session profile in x2goclient's ''sessions'' file named //MyProfile// use this command:
<code>
$ pyhoca-cli --session-profile MyProfile
</code>
==== Desktop Sharing with PyHoca-CLI
====
To share an already running local or remote X2go desktop session of user //foo// on X2go server ''myserver.local'' with PyHoca-CLI open a terminal window and execute the following commands:
<code>
$ pyhoca-cli --server myserver.local --list-desktops --user foo --add-to-known-hosts
</code>
Now a list of available/sharable desktop sessions will be shown (your///foo//'s own desktops are always sharable), e.g. ''foo@:0'' (local desktop on the server):
<code>
someone@client:~$ pyhoca-cli --server myserver.local --list-desktops
pyhoca-cli[20238] NOTICE: preparing requested X2go session
pyhoca-cli[20238] (PyHocaCLI) NOTICE: preparing requested X2go session
pyhoca-cli[20238] (x2gosessregistry-pylib) NOTICE: registering X2go session Pyhoca-Client_Session...
pyhoca-cli[20238] (x2goclient-pylib) NOTICE: initializing X2go session...
pyhoca-cli[20238] (x2gocontrolsession-pylib) NOTICE: connecting to myserver.local
X2go desktops available for
sharing
===================================
Host: myserver.local - [<ip-address>]:<port>
Username: foo
foo@:0
foo@:51
bar@:52
</code>
To view //foo//'s local desktop session ''foo@:0'' use this command line:
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --user foo --add-to-known-hosts
</code>
The next change in the command line (''--share-mode 1'') will enable you to access //foo//'s local desktop in full (read-write) access mode...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:0 --share-mode 1 --user foo --add-to-known-hosts
</code>
If //foo// is logged in via X2go on desktop ''foo@:51'', you could connect to that desktop as well...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop foo@:51 --share-mode 1 --user foo --add-to-known-hosts
</code>
And if another user //bar// on your X2go server has enabled desktop sharing (more info [[:wiki:components:desktop-sharing|here]]), then
you could use this command to let user //foo// view user //bar//'s desktop session...
<code>
someone@client:~$ pyhoca-cli --server myserver.local --share-desktop bar@:52 --user foo --add-to-known-hosts
</code>
===== Further Readings =====
Please also consult further README and TODO documentation in the PyHoca-CLI Git project (X2go upstream site):
http://code.x2go.org/gitweb?p=pyhoca-cli.git;a=tree
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/
A page in your DokuWiki was added or changed. Here are the details:
Date : 2013/03/11 12:44
Browser : Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Iceweasel/18.0.1
IP-Address : 46.142.155.137
Hostname : 137-155-142-46.pool.kielnet.net
Old Revision: http://wiki.x2go.org/doku.php/doc:usage:start?rev=1362936376
New Revision: http://wiki.x2go.org/doku.php/doc:usage:start
Edit Summary: [Users]
User : sunweaver
@@ -3,7 +3,7 @@
* [[wiki:components:x2goclient|X2Go Client]], the Qt client
- * [[wiki:components:pyhoca-gui#Usage|PyHoca-GUI]], the Python based client
- * [[wiki:components:pyhoca-cli|PyHoca-CLI]], the Pyhton based command line client
+ * [[wiki:usage:pyhoca-gui|PyHoca-GUI]], the wxPython based client
+ * [[wiki:usage:pyhoca-cli|PyHoca-CLI]], the Python based command line client
* [[wiki:components:multi-display|Multi display support features]]
* [[wiki:components:desktop-sharing|X2Go Desktop Sharing]]
===== Admins =====
--
This mail was generated by DokuWiki at
http://wiki.x2go.org/