Re: [Emc-users] Run Keystick Without X

2008-11-06 Thread Carl Helquist

On Nov 5, 2008, at 7:43 PM, Jeff Epler wrote:
>  the "sleep 2" makes it
> almost always become ready second, at an expense of adding two seconds
> to the startup time.

Thanks for the answer. Finally something simple enough for me to  
understand!

Carl Helquist

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-05 Thread Jeff Epler
On Wed, Nov 05, 2008 at 03:56:59PM -0700, Carl Helquist wrote:
> With the help of the responses so far I have keystick running in a  
> bash shell. For now I haven't applied all of Jon's changes to the emc  
> start script. Well, actually a copy called emcnox so I don't mess up  
> my currently running set-up. I just commented out the line that  
> started xterm and replaced it with sleep 2; and $EMC2_BIN_DIR/keystick  
> -ini $INIFILE. Can anyone tell me why the sleep 2; is required? I was  
> stuck until I added that line.

emc is made up of several smaller programs.  there's no guarantee which
one will become ready first.  in emc 2.2, keystick fails if it becomes
ready before the part known as "milltask".  the "sleep 2" makes it
almost always become ready second, at an expense of adding two seconds
to the startup time.

Jeff

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-05 Thread Carl Helquist

On Nov 5, 2008, at 7:26 AM, Jeff Epler wrote:

> Also, you'll have to specify the inifile directly on the commandline;
> the configuration chooser is graphical only.
>


With the help of the responses so far I have keystick running in a  
bash shell. For now I haven't applied all of Jon's changes to the emc  
start script. Well, actually a copy called emcnox so I don't mess up  
my currently running set-up. I just commented out the line that  
started xterm and replaced it with sleep 2; and $EMC2_BIN_DIR/keystick  
-ini $INIFILE. Can anyone tell me why the sleep 2; is required? I was  
stuck until I added that line.

Carl Helquist


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-05 Thread Jeff Epler
Also, you'll have to specify the inifile directly on the commandline;
the configuration chooser is graphical only.

Jeff

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-05 Thread Jeff Epler
In emc 2.2.x, the emc script always tries to create a terminal to run
keystick inside.

In the development version, this has been changed.  keystick will start
with DISPLAY unset (I just tested this with configs/sim/keystick.ini).
Here's the main change that made this possible:
http://cvs.linuxcnc.org/cvs/emc2/scripts/emc.in.diff?r1=1.81;r2=1.82

I don't know for sure if that will apply to 2.2, and I chose not to
apply the change in 2.2 because I did not want to risk breaking the run
scripts for any users for whom it was currently working.

You may also need this change

http://cvs.linuxcnc.org/cgi-bin/cvsweb.cgi/emc2/src/emc/usr_intf/keystick.cc.diff?r1=1.9;r2=1.10
which I believe fixes an error in keystick at startup due to a kind of
race condition.  I'm pretty sure I didn't apply this to 2.2 either.

Jeff

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-04 Thread Alex Joni


> That's what the question was about: keystick - one of the terminal based
> user interfaces ;)
>
> Experimentation is good :)  Hopefully keystick has kept up with the
> changes.  Not many people use it, so it may have bitrotted some.

Last I tried it it ran pretty ok (as ok as it can run after that many years, 
and lots of emc2 redesign).
It only supports 3 axes iirc, so anything beyond that won't work.

Another gotcha you need to take care is that in the emc runscript 
(/usr/bin/emc) there is a switch statement based on the GUI used.
For keystick it used to run xterm and keystick inside it (it causes some 
font/display issues if we run it in one of the other X terminals that are 
installed by default on debian and Ubuntu).
You might want to change the reference to xterm (running no X won't allow 
you to run xterm :D).

Regards,
Alex


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-04 Thread Jon Elson
Carl Helquist wrote:
> I would like to run keystick without starting an X display  
> environment. Is this possible? I have searched the documentation, and  
> looked at the contents of some of the scripts that start up EMC2 in a  
> graphical environment. But so far I am not doing very well. I may very  
> well be overlooking something very obvious.
>
>   
keystick should work any way you can manage to have a terminal session.  
One quick check is to hit Ctrl/F3 or one of those function keys between 
F1 and F7, these all bring up glass TTY screens without X services.  As 
long as it responds to the basic cursor control sequences to move to 
specified rows and columns (which these screens do) then the curses 
package should handle the screen display.
> Why would I want to do this? I don't know, I was just playing around  
> with the machine and got the idea that it would be an interesting  
> goal. Some of the recent messages on this board re: minimal  
> installations of EMC2 were probably the primary inspiration.
>   
But, keystick is something like 8 years obsolete, and I'd be VERY 
surprised if it still worked correctly.

Jon

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-04 Thread Stephen Wille Padnos
Jack Coats wrote:

>If you had another machine somewhere with a graphics display, even a 
>Winders box running an
>X server, the X client (on the EMC) machine could display there.
>
>I think what you are asking is can you run without X at all?  Someone 
>else will have to answer that
>definitively, but I think it currently needs AXIS running somewhere.
>
Nope.  AXIS is just one of several user interfaces available.  It's 
probably the most actively maintained, and I happen to like it the most, 
but it's not required.  (in fact, you don't have to use a computer UI at 
all, apparently halui can function as the DISPLAY program)

>  It 
>would be nice if there was
>a character (CURSES?) based version without the nice 'display' of the 
>real time motion.  And possibly
>there is, I just don't know about it.
>  
>
That's what the question was about: keystick - one of the terminal based 
user interfaces ;)

>Or were you wanting to run 'headless', without Axis or equivalent at 
>all? (I think of something
>like the CarveWright, that you can't do much more than stop/start it, 
>everything else is pre-canned
>on another machine!)
>
>Carl Helquist wrote:
>  
>
>>I would like to run keystick without starting an X display  
>>environment. Is this possible? I have searched the documentation, and  
>>looked at the contents of some of the scripts that start up EMC2 in a  
>>graphical environment. But so far I am not doing very well. I may very  
>>well be overlooking something very obvious.
>>
>>
You may want to set up a more standard set of init scripts.  Ubuntu and 
other Debian-based systems use both runlevels 2 and 3 as "multi-user, 
graphical" levels.  "Standard" UNIX usually uses runlevel 2 as 
"networked, non-graphical".  To prevent X from running, you can disable 
GDM from running by renaming the file S##gdm to K##gdm (I don't know 
what the ## will be, but it's a 2-digit number)  I don't recall how much 
more you need to remove, that may be all.

You should probably change the DISPLAY to "keystick" in some config and 
try it in a gnome terminal before fiddling with your system configuration.

If you're in a console login and don't want X to load when you run EMC2, 
you need to specify the path to the ini file on the command line.  (I 
don't know the specific syntax, I never do this ;) )  If you last ran a 
keystick-using config (even in a gnome terminal), you can also type "emc 
-l" (no quotes) to run the last used configuration.  I believe (but I'm 
not positive) that this will bypass the graphical config chooser.

>>Why would I want to do this? I don't know, I was just playing around  
>>with the machine and got the idea that it would be an interesting  
>>goal. Some of the recent messages on this board re: minimal  
>>installations of EMC2 were probably the primary inspiration.
>>
>>
Experimentation is good :)  Hopefully keystick has kept up with the 
changes.  Not many people use it, so it may have bitrotted some.

- Steve


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Run Keystick Without X

2008-11-04 Thread Jack Coats
If you had another machine somewhere with a graphics display, even a 
Winders box running an
X server, the X client (on the EMC) machine could display there.

I think what you are asking is can you run without X at all?  Someone 
else will have to answer that
definitively, but I think it currently needs AXIS running somewhere.  It 
would be nice if there was
a character (CURSES?) based version without the nice 'display' of the 
real time motion.  And possibly
there is, I just don't know about it.

Or were you wanting to run 'headless', without Axis or equivalent at 
all? (I think of something
like the CarveWright, that you can't do much more than stop/start it, 
everything else is pre-canned
on another machine!)

Carl Helquist wrote:
> I would like to run keystick without starting an X display  
> environment. Is this possible? I have searched the documentation, and  
> looked at the contents of some of the scripts that start up EMC2 in a  
> graphical environment. But so far I am not doing very well. I may very  
> well be overlooking something very obvious.
>
> Why would I want to do this? I don't know, I was just playing around  
> with the machine and got the idea that it would be an interesting  
> goal. Some of the recent messages on this board re: minimal  
> installations of EMC2 were probably the primary inspiration.
>
> Carl Helquist
>
> -
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>   

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users