Preenv/FAQ

(libgles1 is no longer needed since preenv 0.1.1, so this is redundant now)
(What do I use to extract an ipk file?: 7-zip is no the only solution)
Line 5: Line 5:
  apt-get install preenv
  apt-get install preenv
-
==What do I use to extract an ipk file?==
+
== What do I use to extract an ipk file? ==
-
7-Zip  
+
7-Zip or any other tool able to extract Debian packages (dpkg, file-roller, ...)
==How to install a game==
==How to install a game==

Revision as of 13:19, 27 October 2010

Contents

How to install Preenv?

Gain root access and use apt-get in the terminal:

root
apt-get install preenv

What do I use to extract an ipk file?

7-Zip or any other tool able to extract Debian packages (dpkg, file-roller, ...)

How to install a game

$ sudo gainroot
# apt-get install preenv libgles1

use 7-zip to extract -> game-folder

Copy the game folder to /home/user/[webOS-games]:

$ cd game-folder
$ chmod a+x filename

e.g. filename = nfsuc in need for speed case or sims in case of sims3

$ preenv
$ ./filename

Once you know that the file plays properly. you can add the menu button:

$ cd game-folder
$ root
# preenv
# desktopgen appinfo.json

How to delete a game

Enter preenv and cd into the game folder:

$ preenv
$ cd game-folder

Become root and use desktopgen to delete game icons:

$ root
# desktopgen -r appinfo.json

Now you can delete the game folder itself:

# cd ..
# rm -r game-folder

Deleting games installed with old preenv 0.1

Become root and delete the folder:

$ sudo gainroot
$ rm -r game-folder

To remove the icon, you need to delete three files:

$ rm /usr/share/applications/hildon/filename.desktop
$ rm /usr/share/dbus-1/services/filename.service
$ rm /usr/share/icons/hicolor/scalable/hildon/filename.png

Refresh your menu:

$ killall hildon-desktop

How to get N.O.V.A working?

Install extra packages for N.O.V.A, then follow the regular install guide.

$ sudo gainroot
$ apt-get update
$ apt-get install libsdl-net1.2


How to get NFPU Working?

get root

root

install preenv and OpenGLES1 (need extras-devel)

apt-get install libgles1 preenv

create main game dir on eMMC card

mkdir -p /home/user/MyDocs/Games/nfs

go to that dir and copy dowloaded .ipk file from desktop (or download directly here)

cd /home/user/MyDocs/Games/nfs
scp user@COMPUTER:/path/to/game/com.ea.app.nfsuc_20.0.28_all.ipk /home/user/MyDocs/Games/nfs

create file for loopback mount

dd if=/dev/zero of=/home/user/MyDocs/Games/nfs/nfsu.ext2 count=120 bs=1024k

create ext2 filesystem on it

mkfs.ext2 /home/user/MyDocs/Games/nfs/nfsu.ext2

press 'y'
make mountpoint

mkdir /mnt/nfsu

save it to the fstab

echo -e "/home/user/MyDocs/Games/nfs/nfsu.ext2\t/mnt/nfsu\text2\tloop,auto\t0\t0" >> /etc/fstab 

finally, mount it

mount  /mnt/nfsu/

create symlynk from /usr/palm (NFSU installs there)

ln -s /mnt/nfsu/ /usr/palm

extrack .ipk file

dpkg -X /home/user/MyDocs/Games/nfs/com.ea.app.nfsuc_20.0.28_all.ipk /mnt/nfsu/

make binary executable

chmod +x /mnt/nfsu/applications/com.ea.app.nfsuc/nfsuc

create desktop launcher

desktopgen /mnt/nfsu/applications/com.ea.app.nfsuc/appinfo.json