New Life Games LLC

Arcade Games, Pinball, Crane Games, Redemption Games and Other Stuff => Pinball Games => Topic started by: Harvs on January 03, 2016, 03:51:32 PM

Title: Any Ubuntu Gurus out there?? Help! Pinbox / Nucore autostart
Post by: Harvs on January 03, 2016, 03:51:32 PM
So, I am running Nucore/Pinbox to run my Star Wars Episode 1 pinball machine while my factory CPU is being repaired. All works fine except having to type in 'restart' in the LXterminal after the failed autostart of the game. This is a well known issue on pinball forums, but the fix a few people have mentioned is doubling up a command in the autostart.sh file, and the explanation on code to type is not there .. So my question..

Is there a simple way to make a command to 'restart' the program for me so I don't have a mouse and keyboard hanging off my pinball machine.., OR, can someone explain how to view, edit and save in the autorun.sh file?

Running Ubuntu 10.04 btw.

Link to the fix here:
https://pinside.com/pinball/forum/topic/linuxubuntu-gurus-please-help-me

Willing to pay 1,000,000 for the answer to this.  :cool_thumb_up:


Title: Re: Any Ubuntu Gurus out there?? Help!
Post by: rickhunter on January 03, 2016, 07:30:41 PM
From what I read the autostart.sh file is created when you install pinbox and it is located in the path /root/pinbox/scripts.  So to edit this file, if you don't have a GUI shell at the linux shell:


cd /root/pinbox/scripts
vi ./autostart.sh


This will load the file into a VERY primitive text editor, but all linux releases have it, so it's the one I use all the time.  so if you want to add stuff to the file, then navigate to the last line and the last character on the line and hit "Shift-A" and it will append to the end of the file.  Hit return and type your new line.  Then hit "ESC" type ":wq!" this will write and quit the editor.  If you want to view your new file, then type more ./autostart.sh


You can google "linux vi" and it will tell you all the commands for the editor.  Hope this helps.


It is best to be in elevated root user when editing these files, unless the default users has r/w permissions.
Title: Re: Any Ubuntu Gurus out there?? Help!
Post by: Harvs on January 03, 2016, 08:07:54 PM
THANK YOU RICK! I have been messing with this (googling nonstop etc) to figure out how to put that into the autostart.sh file..

You must have a gigantic head.., what don't you know...and in detail.., damn. - Again, thank you, owe ya!!



So, for google searches from other dumbos like myself...

From ROOT (logged into pinbox):

Type        cd /root/pinbox/scripts    (press enter)

Type        vi .autostart.sh               (press enter, then SHIFT   A)   

Type        ./run pinbox -bpp 16 -fullscreen    insert that right below the existing ./run pinbox -bpp 16 -fullscreen seen and press ESC.


Type        :wq!       

So, the doubling does work as stated on Pinside, here's just the caveman explanation of how to (which I needed, badly   :cool_thumb_up:)
Title: Re: Any Ubuntu Gurus out there?? Help! Pinbox / Nucore autostart
Post by: rickhunter on January 03, 2016, 10:19:40 PM
Glad it worked out!!!  :applause: :applause: :applause:



SimplePortal 2.3.5 © 2008-2012, SimplePortal