I have a been playing with a bash script for a day now, it isn't my script (
credits Jeremy Wininger) but i have modified/deleted many things, updated it, improved it, and sharing it after i was happy with end results. So, I personally consider the script my own, but the idea is not mine. Please link back to this Ubuntu thread if you want to share the script with your friends.
** Post back your thoughts and recommendations so i can update/modify the script.
**
Script Last modified: Wednesday Nov 18, 2009
Steps
1) Install Ubuntu 9.10
the current stable version, released in October 2009, codenamed Karmic Koala.2) After you have successfully installed Ubuntu, do not tweak it just yet. Since i assume you will be using this new installation for arcade gaming on a pc inside a cabinet and not for personal or business use, you need to first see if you can follow these few simple steps.
3) Download the bash script and TAKE a look inside it. Make sure everything you need is in place. You need basic understand of the coding, i am sure everyone using Linux have basic coding understandings
a) Download the attachment and edit line 5 if needed or uncomment line 4 and delete line 5
4) Start a new terminal (gnome-terminal) and in the terminal type what you see in section 'b' below (step 4a), change the path to where you saved the 'cabsetup.sh' script (cabsetup.tar.gz). Type the root password. This will begin the arcade installation process by displaying a few options in front you. Keep the terminal on top of all your windows (right-click on the title bar and select 'Always On Top')
a) Applications / Accessories / Terminal
b) sudo sh /home/arcade/Downloads/cabsetup.sh
5) The first thing you want to do obviously is to uninstall packages you do not need and to update and upgrade your system. This will slim down the system but it will keep essentials packages for system maintenance in case something goes wrong, we do not want to reinstall Ubuntu, just follow the numbers in the terminal. If you need so, write down the location the script will give you at the end of step 'c', it's important but not necessary !
a) Uninstall packages you do not need
b) Install packages and update the system
c) Setup SDLMAME directory structure
d) Remove all arcade packages and files
6) After you've completed step 5, you can quit the script.
7) Next we need to install the best recommended video driver for your system. Regardless if you have an ATI or NVIDIA graphic card, the installation is the same. Please refer to the proper Ubuntu Forum section for help if you have issues with this step, as this Ubuntu Forum section is only for Gaming & Leisure, you can always post a link in this thread after you added your issue in the proper Ubuntu Forum section.
a) System / Administration / Hardware Drivers
b) activate the recommended driver and when done, close it
c) reboot (bookmark this page for later references)
8) After your system reboots, you need to start copying all your games to the location you saved earlier in step 5 section 'c', where it said to upload all your games to a specific location. You only want to do this to avoid repeating the step of generating the XML game list, you need to do this each time you add/remove games. If you have your games saved on another device and need help mounting devices with normal user permissions like cds/dvds/usbs/usb hard drives/ etc... Please search the Ubuntu Forums first and refer to previous solutions found by other Ubuntu satisfied users (just like me) remember this section is only for Gaming & Leisure.
9) After you have uploaded your games, we move on to configure wah!cade. It should be mostly all configured already, thanks to our default settings we did in step 5 section 'c'. If you need further analysis on configuring wah!cade, you can refer to the official wah!cade guide on the official website.
a) official Wah!Cade guide
b) Applications / Games / Wah!Cade Setup Editor
c) go to Keys tab:
- review, keep or change following keys;
- UP_1_GAME #move up one game in list
- DOWN_1_GAME #move down one game in list
- UP_1_PAGE #move up 1 page in list
- DOWN_1_PAGE #move down 1 page in list
- UP_1_LETTER #move back one letter (e.g. from game Dxxxx to Cxxxx)
- DOWN_1_LETTER #move forward one letter (e.g. from game Dxxxx to Exxxx)
- EXIT_TO_WINDOWS #exit Wah!Cade (back to desktop)
d) go to Wah!Cade tab:
- biggest Layout offered in this guide is 1024x768
- check mark 'Play Music From' option and enter a path where you have your music
- do the same for Movies..
- leave the rest as default
e) go to Emulators tab:
- Leave all as default, except if you want to add more Emulators and Artwork
f) go to M.A.M.E. Only tab:
- find XML / Data File, at the end there is a button to generate the XML file, click it.
g) Important, before you close, save the configure file! in
File /
Save or Crtl + S
10) At this point we are almost done, you can start testing your games by running the wah!cade package. Fire it up and check it out if you want to, there's no rush yet. Your games should be listed, ready to be selected and play one of them, if not, go back to step 9 and make sure you have wah!cade properly configured. 90% of all errors are corrected in wah!cade setup editor. The wah!cade default controls below are for reference only,
click here to see a complete list of the default keys. I use the X-Arcade Dual Joystick ONLY, i have not yet properly configured the keys 100%, please do not ask me.
- game selection down one - down key (player one joystick down)
- game selection next letter - right key (player one joystick right)
- game selection up one - up key (player one joystick up)
- game selection previous letter - left key (player one joystick left)
- game start - 1 key (player one button #1)
- menu - esc key (player one and two buttons at the same time)
- menu selection - 1 key (player one button #1)
- menu exit - esc key (player one and two buttons at the same time)
11) After you are happy with your wah!cade configuration, it's time to configure gnome to launch it at boot time. Since, normally, arcade cabinets run 24/7 and linux is so stable, you can leave it running without any doubts. The problem here will be the electricity bill, this is another subject. While you have the Startup Applications Preferences window open, you can take the time to review the list and disable packages you do not need. If you are unsure about an application, do not disable, remove or edit it!. After you are done adding wah!cade to the Startup Applications Preferences you can close the window.
a) System / Preferences / Startup Applications
b) click Add button
c) type the name: Wah!Cade
d) type the command: wahcade -f
e) type the comment: Arcade Gaming
esac
Done!.
Before you reboot, i assume you want to enable auto-login of your account, because next time you reboot, Wah!Cade will start automatically in full screen mode.
- - You have completed all the steps.
- - Successfully added your games.
- - Tested your joystick(s).
- - Tested wah!cade
You can now go work in building your own professional cabinet. Please feel free to share your own story, thoughts, suggestions, code snippets (or complete rewrites) and your pictures.
References
Good Luck,
Futher Updates see post below
Bookmarks