mitotic / graphterm

A Graphical Terminal Interface that extends xterm by adding GUI-like features and session sharing
http://code.mindmeldr.com/graphterm
Other
150 stars 16 forks source link

PATH required to execute graphterm scripts (gls etc) within browser session #1

Closed mjbright closed 12 years ago

mjbright commented 12 years ago

Installed graphterm (version 0.30) on a Raspberry Pi (ARM-based board running Raspbian - Debian "Wheezy"). Install was without problems.

Launched the graphterm server as gtermserver --host=192.168.0.41 --auth_code=none on the Raspi

Then connected from another machine (Ubuntu 12.04, Chrome 17) to http://192.168.0.41:8900/ Created a New session, enabled Icons (drop down selector at top of page).

I had to set PATH to have access to graphterm utilities, gls etc. export PATH=/usr/local/lib/python2.7/dist-packages/graphterm-0.30.1-py2.7.egg/graphterm/bin:$PATH

mitotic commented 12 years ago

This could be be a bug. graphterm figures out the path to gls and other executables by examining its file variable and prepends this path to the environment variable PATH before invoking the terminal bash shell, provided PATH is already defined. There are three possibilities:

  1. PATH is not defined in shell that invokes gtermserver (unlikely, but easy to check)
  2. PATH is overridden by the newly created shell for the terminal session (in one of the dot-files)
  3. PATH is prepended with the wrong directory (echoing PATH before you fix it should expose this problem) Please check if any of the above is the case
mitotic commented 12 years ago

Fixed in release 0.32.0. I just got a Raspberry Pi and was able to figure out what the problem was. GraphTerm was setting the PATH variable correctly, but the bash command was overwriting. Fixed by removing the "-l" option for bash.

GraphTerm now works out-of-the-box on Raspberry Pi. and can be used in the iPad to access the Pi.

mjbright commented 12 years ago

Hey !

Thanks very much ... I'm ashamed at not getting back to you! I'll have to try the latest version.

At my first Python conference www.pycon.fr this weekend ... I'm a Perl refugee ... I must take another look at graphterm.

Are you advancing on this alone or are others contributing code, test, docs, advice? Any particular needs for help ? That said I'm not sure I have the competences myself but we'll see.

Have a good one, Mike.

On 16 September 2012 02:07, R. Saravanan notifications@github.com wrote:

Fixed in release 0.32.0. I just got a Raspberry Pi and was able to figure out what the problem was. GraphTerm was setting the PATH variable correctly, but the bash command was overwriting. Fixed by removing the "-l" option for bash.

GraphTerm now works out-of-the-box on Raspberry Pi. and can be used in the iPad to access the Pi.

— Reply to this email directly or view it on GitHubhttps://github.com/mitotic/graphterm/issues/1#issuecomment-8590890.

mjbright commented 12 years ago

Actually, "maybe" I could even present GraphTerm here next year, but that depends on a lot of things. Just an idea. A+ Mike.

On 16 September 2012 11:29, Michael Bright mjbrightfr@gmail.com wrote:

Hey !

Thanks very much ... I'm ashamed at not getting back to you! I'll have to try the latest version.

At my first Python conference www.pycon.fr this weekend ... I'm a Perl refugee ... I must take another look at graphterm.

Are you advancing on this alone or are others contributing code, test, docs, advice? Any particular needs for help ? That said I'm not sure I have the competences myself but we'll see.

Have a good one, Mike.

On 16 September 2012 02:07, R. Saravanan notifications@github.com wrote:

Fixed in release 0.32.0. I just got a Raspberry Pi and was able to figure out what the problem was. GraphTerm was setting the PATH variable correctly, but the bash command was overwriting. Fixed by removing the "-l" option for bash.

GraphTerm now works out-of-the-box on Raspberry Pi. and can be used in the iPad to access the Pi.

— Reply to this email directly or view it on GitHubhttps://github.com/mitotic/graphterm/issues/1#issuecomment-8590890.

mitotic commented 12 years ago

No one else is helping out, but that's normal at this early stage. It may be difficult for people to jump into the code, but any contribution "in kind" can still be very useful, such as:

I have given a couple of presentations on graphterm now, at Texas Linux Fest and at PyTexas, with quite positive responses.

The strongest presentation would be if you could show how graphterm made you more productive, or enabled you perform tasks that you couldn't previously. The "cool" features can have a wow factor, but have no lasting impact!

Saravanan