# Start up export file with processing on raspberry pi 3

**URL:** <https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040>\
**Category:** Processing for Pi\
**Created:** [April 7, 2019, 3:36am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040 "2019-04-07T03:36:00Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 3:36am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/1 "2019-04-07T03:36:00Z")

</div>

I make an export application file from processing. I want to run start up this file on raspberry pi 3 with linux. Please guide me. Thanks

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 4:31am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/2 "2019-04-07T04:31:20Z")

</div>

if you mean autostart at boot ( of raspberry pi / RASPBIAN linux / ) pls see  
[3D terrain standalone display project](https://discourse.processing.org/t/3d-terrain-standalone-display-project/4162/5) ,

or is your question that you export your app but it does not run?

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 2:14pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/3 "2019-04-07T14:14:57Z")

</div>

I want to run automatically an application file. The export file runs well. I try 5 methods but I have not success

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 2:25pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/4 "2019-04-07T14:25:28Z")

</div>

> [@quydan](#):
>
> I want to run automatically an application file.

at boot to desktop of user ‘pi’  
yes, that is what i show you.  
did you try the 2 command files  
if not exist make sub dir  
mkdir /home/pi/.config/autostart/

nano /home/pi/.config/autostart/myautostart.desktop

nano /home/pi/.config/autostart/start\_processing  
chmod +x /home/pi/.config/autostart/start\_processing

do you have questions to that procedure?

> [@quydan](#):
>
> The export file runs well. .

very good

> [@quydan](#):
>
> I try 5 methods but I have not success

that is not a description we can help you on.

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 2:49pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/5 "2019-04-07T14:49:18Z")

</div>

How do I make a bash file, please guide me  
THANKS

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 2:56pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/6 "2019-04-07T14:56:12Z")

</div>

you know how to open a terminal  
you use what editor to make files?  
( in above command list i say ‘nano’ but up to you )  
so besides that, do you understand above 4 terminal commands?

* * *

now about the file content.  
is show you in the link  
but in the  
**start\_processing**  
bash file you must adjust path and file name to your export.  
so if you not show me where your app ended up from export i can not  
help you with the file content.

* * *

warning, play with autostart

- command files
- app content ( like fullscreen… )

can make your system unusable,  
and if you not know how to undo that changes ( like from remote SSH putty login )  
you might ending up burning a new system uSD.

* * *

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 3:08pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/7 "2019-04-07T15:08:02Z")

</div>

I just started with processing and linux two weeks ago. Now, I completed programming one program. Apter exporting, I worked fine. The address of file is /home/pi/Destop/application.linux-armv6hf. I want mya program run automatically when the raspberry pi finishing booting. Please help me step by step to do that because I am newer.  
Thank so much.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 3:24pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/8 "2019-04-07T15:24:40Z")

</div>

> [@quydan](#):
>
> The address of file is /home/pi/Destop/application.linux-armv6hf.

no, there is more to it.

where is your processing sketch  
( as processing usually creates a directory for the sketches… )  
and when you export, the application files are under that path??

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 3:32pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/9 "2019-04-07T15:32:51Z")

</div>

/home/pi/Desktop/application.linux-armv6hf/combine\_horizontal\_and\_vertical

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 3:36pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/10 "2019-04-07T15:36:12Z")

</div>

ok, now i know the filename.  
so you make your bash file

> nano /home/pi/.config/autostart/start\_processing

with this content:

```auto
#!/bin/bash
# /home/pi/.config/autostart/start_processing
# this will not do anything unless called by a .desktop file

echo '10s'
env sleep 5
echo '5s'
env sleep 5
#...

cd /home/pi/Desktop/application.linux-armv6hf/
bash combine_horizontal_and_vertical

# wait for operator to close window
read -p "press enter to close terminal window"

```

make it executable

```auto
chmod +x /home/pi/.config/autostart/start_processing

```

and test it

* * *

if the test works you can test the desktop file

> /home/pi/.config/autostart/myautostart.desktop

also with double click

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 7, 2019, 3:49pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/11 "2019-04-07T15:49:46Z")

</div>

Excuse me. Can I have a question? Now, when the linux starting, the window start\_processing display, but the program have not run. On the window there is line **Not a directory** … press Enter to close…

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 7, 2019, 3:57pm UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/12 "2019-04-07T15:57:10Z")

</div>

how can you start ( reboot )RPI without doing the 2 tests i told you?

i do it just here, only with my own code  
( as you not show us your sketch )  
test bash

 ![SNAG-0057](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d087e7ed09c4b4ead0ff74c4a8ae30c9ba803ad2.jpeg)  
test .desktop  
 ![SNAG-0058](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/41c891e52a7696facf680aaec39324273e930b6b.jpeg)  
reboot  
 ![SNAG-0059](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/45ffdc9522412d5872eb972c2a097ad6af89c809.jpeg)  
autostart on boot WORKS!  
 ![SNAG-0060](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d67ba3f7b3630744190da3273cda01c4a0762250.jpeg)

* * *

can you show me file content of  
/home/pi/.config/autostart/start\_processing

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 8, 2019, 1:49am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/13 "2019-04-08T01:49:59Z")

</div>

Thank you your supporting me.After following exactly your guide, my program run well now.  
Thank you so much.

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 11, 2019, 8:00am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/14 "2019-04-11T08:00:49Z")

</div>

Hello Kll  
Can I have question?  
Two days ago with your helping I did one program run start up. Today I follow the same procedure to make for another program but it have not worked

---

<div class="post-metadata">

**Author:** ![quydan](https://avatars.discourse-cdn.com/v4/letter/q/e9c0ed/32.png) [@quydan](https://discourse.processing.org/u/quydan)\
**Post date:** [April 11, 2019, 8:01am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/15 "2019-04-11T08:01:59Z")

</div>

after reboot the window display and given:  
/home/pi/.config/autostart/start\_processing: line 11: cd: too many arguments  
press enter to close terminal window  
the bash file like this:  
#!/bin/bash

# /home/pi/.config/autostart/start\_processing

# this will not do anything unless called by a .desktop file

echo ‘10s’  
env sleep 5  
echo ‘5s’  
env sleep 5  
#…

$-armv6hf/bash combine\_horizontal\_and\_vertical\_new

# wait for operator to close window

read -p “press enter to close terminal window”

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 11, 2019, 9:00am UTC](https://discourse.processing.org/t/start-up-export-file-with-processing-on-raspberry-pi-3/10040/16 "2019-04-11T09:00:15Z")

</div>

this was working!

```auto
cd /home/pi/Desktop/application.linux-armv6hf/ 
bash combine_horizontal_and_vertical

```

this is not working

```auto
$-armv6hf/bash combine_horizontal_and_vertical_new

```

edit and repair
