Running Linuxcnc-dev from a script

More
15 Jun 2013 13:05 #35666 by mariusl
Hi All,
I need to run linuxcnc-dev from a script at start-up of the machine. How do I go about that please? Any examples will help as well :)

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 14:49 #35669 by ArcEye
Hi

See askubuntu.com/questions/98433/run-a-scri...gin-using-bash-login

Then call a script containing something like
# !/bin/bash
cd /usr/src/emc2-dev
. ./scripts/rip-environment
linuxcnc /root/emc2/configs/sim/axis_mm.ini


regards

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 15:10 #35671 by mariusl
Thanks Dave that works well.
Another question while I have a clever dude on the line. Is there a way to load linuxcnc without showing the desktop?

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 17:22 #35674 by ArcEye
You seem to be going towards a single-use computer for your clients.

This contains a way to start Axis maximised, which is the easiest way, covering the desktop.
www.linuxcnc.org/index.php/english/forum/21-axis/320-faq

I use icewm and don't have a desktop, well no icons anyway, just a plain blue screen
If you edited it with iceconf, icepref or whatever the editor is called you could remove all the icons from the taskbar

Then if you changed the menu so that it only contained say the Logout command on the menu, you would pretty much have what you wanted.
No terminal for clever operators to get creative in and no access to other applications

regards

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 18:56 - 15 Jun 2013 18:58 #35676 by mariusl

No terminal for clever operators to get creative in and no access to other applications


Exactly my point. The more you give them to fiddle with the more they do. I am busy with my controller which will consist of the following.

Touch screen 15"
PSU
Atom 525 MB
slots for Mesa cards
Contained in an industrial panel mounted unit and pre configured.

I have it running nicely with Gmoccapy and the touch works very well.

EDIT: Oh and I use devilspie already. Very nice tool.

Regards
Marius


www.bluearccnc.com

Last edit: 15 Jun 2013 18:58 by mariusl.

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 19:39 #35677 by ArcEye
I have just played a bit with icepref2, the configuration app for icewm.

You can specify no taskbar at all, so just Ctrl Alt Delete to exit, no menus, no nothing

The only drawback to that would be if you are solely touch screen with no keyboard

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 22:28 #35682 by mariusl
I have only a touch screen but I have set the power button to shutdown when pressed. So my user will switch on, push the power button and wait. Once he is done, he will simply push the power button and wait for things to end and then switch off the main power.

Or is that power button function an X function?

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 22:42 #35683 by ArcEye

Or is that power button function an X function?


If you mean the physical power off / on button, it is all governed by the acpi settings and you can set it to suspend or switch off 60 seconds after it is pressed.

I have never used it, partly because one of the first things I remove from a real time kernel is all the acpi and power management stuff.

These cover it, albeit sometimes people are talking about the physical button and other times the button icon

ubuntuforums.org/showthread.php?t=2020630
askubuntu.com/questions/190879/lubuntu-p...-immediately-anymore

Please Log in or Create an account to join the conversation.

More
15 Jun 2013 23:27 #35684 by mariusl
Yes the power button. Ubuntu allows you to shut down orderly when it is pressed. I have it working like that now and it is good for me. I even causes my paramsaver to save parameters when it is pressed. All in all a good function, I think and I would like to keep it.

I will go down the icewm road once the unit is built up and working.

Regards
Marius


www.bluearccnc.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.133 seconds
Powered by Kunena Forum