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

Already on GitHub? Sign in to your account

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

Closed
mjbright opened this Issue Jul 30, 2012 · 5 comments

Comments

Projects
None yet
2 participants

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

@ghost ghost assigned mitotic Jul 31, 2012

Owner

mitotic commented Jul 31, 2012

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
Owner

mitotic commented Sep 16, 2012

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.

@mitotic mitotic closed this Sep 16, 2012

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.

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.

Owner

mitotic commented Sep 16, 2012

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:

  • improving documentation
  • testing graphterm
  • reporting bugs with enough context to reproduce them

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

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