--Xorg 02:55, 29 November 2009 (UTC)
Have this working from Terminal app using nohup, but no key mappings...
Create a script /usr/local/bin/nes
ROM=$1 # path/filename to NES rom
nohup nes2 $1 &
Create a script /usr/local/bin/nes2
/sbin/initctl stop LunaSysMgr
fceux --keepratio 1 --sound 0 --bpp 8 $ROM
/sbin/initctl start LunaSysMgr
Run 'nes' with path to NES ROM from Terminal app. The nohup will keep nes2 script alive when the Terminal app is killed since Luna is stopped. When you quit the game, Luna will restart.
But you can't setup key mappings from the Terminal app. Is there a way to load key mappings through a config file or hard code keys for webOS? I'm not too familiar with fceux.