<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.192.227.126</id>
	<title>Maemo Wiki Mirror - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://maemo.octonezd.me/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=94.192.227.126"/>
	<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php/Special:Contributions/94.192.227.126"/>
	<updated>2026-04-22T04:00:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://maemo.octonezd.me/index.php?title=Preenv/FAQ&amp;diff=32669</id>
		<title>Preenv/FAQ</title>
		<link rel="alternate" type="text/html" href="https://maemo.octonezd.me/index.php?title=Preenv/FAQ&amp;diff=32669"/>
		<updated>2010-11-27T17:58:17Z</updated>

		<summary type="html">&lt;p&gt;94.192.227.126: /* Save space (Transfer games to MyDocs folder) NOOB Version 1.0 */  symlink example was incorrect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==How to install Preenv?==&lt;br /&gt;
&lt;br /&gt;
Gain [[root access]] and use &amp;lt;code&amp;gt;apt-get&amp;lt;/code&amp;gt; in the [[terminal]]:&lt;br /&gt;
 $ root&lt;br /&gt;
 # apt-get install preenv&lt;br /&gt;
 # exit&lt;br /&gt;
&lt;br /&gt;
== What do I use to extract an ipk file? ==&lt;br /&gt;
&lt;br /&gt;
[http://7-zip.org 7-zip] or any other tool able to extract Debian packages (dpkg, file-roller, ...)&lt;br /&gt;
&lt;br /&gt;
Here is the Video guide on how to install WebOS games to the N900 http://www.youtube.com/watch?v=pGQwWZ_VriA&lt;br /&gt;
&lt;br /&gt;
Or you can follow the steps below...&lt;br /&gt;
&lt;br /&gt;
==How to install a game==&lt;br /&gt;
&lt;br /&gt;
use 7-zip to extract -&amp;gt; game-folder&lt;br /&gt;
&lt;br /&gt;
Copy the game folder to &amp;lt;code&amp;gt;/home/user/[webOS-games]&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
 $ sudo gainroot&lt;br /&gt;
 $ cd game-folder&lt;br /&gt;
 $ chmod a+x filename&lt;br /&gt;
&lt;br /&gt;
e.g. &amp;lt;code&amp;gt;filename&amp;lt;/code&amp;gt; = &amp;lt;code&amp;gt;nfsuc&amp;lt;/code&amp;gt; in need for speed case or sims in case of sims3&lt;br /&gt;
&lt;br /&gt;
 $ preenv&lt;br /&gt;
 $ ./filename&lt;br /&gt;
&lt;br /&gt;
Once you know that the file plays properly. you can add the menu button:&lt;br /&gt;
&lt;br /&gt;
 $ sudo gainroot&lt;br /&gt;
 # preenv&lt;br /&gt;
 # desktopgen game-folder/appinfo.json&lt;br /&gt;
 # exit&lt;br /&gt;
&lt;br /&gt;
== How to get games to save ==&lt;br /&gt;
&lt;br /&gt;
You will need, FileBox and Rootsh from Extras: &lt;br /&gt;
&lt;br /&gt;
Using Hero Of Sparta as an example, you need to chown -R user:users the game folder:&lt;br /&gt;
 chown -R user:users /home/user/webOS/com.gameloft.app.heroofsparta/HeroOfSparta&lt;br /&gt;
&lt;br /&gt;
HOWEVER! If your game was installed via a .deb file then you shall fide it in &lt;br /&gt;
 /home/opt/preenv/usr/palm/applications/com.gameloft.app.heroofsparta/HeroOfSparta&lt;br /&gt;
&lt;br /&gt;
SUMMARY! Just chown -R user:users the game folder and enjoy &lt;br /&gt;
&lt;br /&gt;
==How to delete a game==&lt;br /&gt;
&lt;br /&gt;
Enter preenv and cd into the game folder:&lt;br /&gt;
 $ preenv&lt;br /&gt;
 $ cd game-folder&lt;br /&gt;
&lt;br /&gt;
Become root and use desktopgen to delete game icons:&lt;br /&gt;
 $ root&lt;br /&gt;
 # preenv&lt;br /&gt;
 # desktopgen -r appinfo.json&lt;br /&gt;
 # exit&lt;br /&gt;
 # exit&lt;br /&gt;
&lt;br /&gt;
Now you can delete the game folder itself:&lt;br /&gt;
 $ cd ..&lt;br /&gt;
 $ rm -r game-folder&lt;br /&gt;
&lt;br /&gt;
=== Deleting games installed with old preenv 0.1 ===&lt;br /&gt;
&lt;br /&gt;
Become root and delete the folder:&lt;br /&gt;
 $ sudo gainroot&lt;br /&gt;
 $ rm -r game-folder&lt;br /&gt;
&lt;br /&gt;
To remove the icon, you need to delete three files:&lt;br /&gt;
 $ rm /usr/share/applications/hildon/filename.desktop&lt;br /&gt;
 $ rm /usr/share/dbus-1/services/filename.service&lt;br /&gt;
 $ rm /usr/share/icons/hicolor/scalable/hildon/filename.png&lt;br /&gt;
&lt;br /&gt;
Refresh your menu:&lt;br /&gt;
 $ killall hildon-desktop&lt;br /&gt;
&lt;br /&gt;
==How to get N.O.V.A working?==&lt;br /&gt;
&lt;br /&gt;
Install extra packages for N.O.V.A, then follow the regular install guide.&lt;br /&gt;
&lt;br /&gt;
 $ sudo gainroot&lt;br /&gt;
 $ apt-get update&lt;br /&gt;
 $ apt-get install libsdl-net1.2&lt;br /&gt;
&lt;br /&gt;
==How to get Monopoly Classic working with an icon?==&lt;br /&gt;
&lt;br /&gt;
After installation and creating an icon, lastly follow it with this step&lt;br /&gt;
&lt;br /&gt;
 $ cd *monopoly&lt;br /&gt;
 $ root&lt;br /&gt;
 # chmod -R 777 monopolyclassic/save&lt;br /&gt;
&lt;br /&gt;
==How to get Asphalt5 working?==&lt;br /&gt;
&lt;br /&gt;
Here is another video guide http://www.youtube.com/watch?v=8rDCbZ3gyYE&lt;br /&gt;
&lt;br /&gt;
How to make it run:&lt;br /&gt;
&lt;br /&gt;
 $ mkdir -p /home/user/webos/gamesave &lt;br /&gt;
 $ ln -s /home/user/webos/gamesave /media/internal&lt;br /&gt;
 $ chown -R user:root /home/user/webos/&lt;br /&gt;
 $ chmod -R 755 /home/user/webos/&lt;br /&gt;
 $ chown -R user:root /home/user/webos/gamesave&lt;br /&gt;
 $ chmod -R 755 /home/user/webos/gamesave&lt;br /&gt;
&lt;br /&gt;
== How to get NFSU Working? ==&lt;br /&gt;
&#039;&#039;&#039;Easy way:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
install [http://maemo.org/packages/view/nfsu-installer/ nfsu-installer] from extras-devel via Application Manager and run it. See [http://www.youtube.com/watch?v=-f-a-7yakkM youtube video] on how it works.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Manual way:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
get root&lt;br /&gt;
 root&lt;br /&gt;
install preenv and OpenGLES1 (need extras-devel)&lt;br /&gt;
 apt-get install libgles1 preenv&lt;br /&gt;
create main game dir on eMMC card&lt;br /&gt;
 mkdir -p /home/user/MyDocs/Games/nfs&lt;br /&gt;
go to that dir and copy dowloaded .ipk file from desktop (or download directly here)&lt;br /&gt;
 cd /home/user/MyDocs/Games/nfs&lt;br /&gt;
 scp user@COMPUTER:/path/to/game/com.ea.app.nfsuc_20.0.28_all.ipk /home/user/MyDocs/Games/nfs&lt;br /&gt;
create file for loopback mount&lt;br /&gt;
 dd if=/dev/zero of=/home/user/MyDocs/Games/nfs/nfsu.ext2 count=120 bs=1024k&lt;br /&gt;
create ext2 filesystem on it&lt;br /&gt;
 mkfs.ext2 /home/user/MyDocs/Games/nfs/nfsu.ext2&lt;br /&gt;
press &#039;y&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
make mountpoint&lt;br /&gt;
 mkdir /mnt/nfsu&lt;br /&gt;
save it to the fstab &lt;br /&gt;
 echo -e &amp;quot;/home/user/MyDocs/Games/nfs/nfsu.ext2\t/mnt/nfsu\text2\tloop,auto\t0\t0&amp;quot; &amp;gt;&amp;gt; /etc/fstab &lt;br /&gt;
finally, mount it&lt;br /&gt;
 mount  /mnt/nfsu/&lt;br /&gt;
create symlynk from /usr/palm (NFSU installs there)&lt;br /&gt;
 ln -s /mnt/nfsu/ /usr/palm&lt;br /&gt;
extrack .ipk file&lt;br /&gt;
 dpkg -X /home/user/MyDocs/Games/nfs/com.ea.app.nfsuc_20.0.28_all.ipk /mnt/nfsu/&lt;br /&gt;
make binary executable&lt;br /&gt;
 chmod +x /mnt/nfsu/applications/com.ea.app.nfsuc/nfsuc&lt;br /&gt;
create desktop launcher&lt;br /&gt;
 desktopgen /mnt/nfsu/applications/com.ea.app.nfsuc/appinfo.json&lt;br /&gt;
&lt;br /&gt;
== Unable to connect to USB after above method? ==&lt;br /&gt;
&lt;br /&gt;
If after following the following tutorial, you are unable to connect your N900 to your PC&#039;s USB, open xterm on your device:&lt;br /&gt;
&lt;br /&gt;
get root&lt;br /&gt;
 root&lt;br /&gt;
unmount the image file&lt;br /&gt;
 umount /mnt/nfsu&lt;br /&gt;
&lt;br /&gt;
Once you&#039;re done with USB you can remount the image&lt;br /&gt;
 mount /mnt/nfsu&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;br /&gt;
&lt;br /&gt;
==How to get Driver working==&lt;br /&gt;
&#039;&#039;&#039;Install libgles&#039;&#039;&#039;&lt;br /&gt;
* get root&lt;br /&gt;
 root&lt;br /&gt;
* install OpenGLES1 and OpenGLES2 (need extras-devel)&lt;br /&gt;
 apt-get install libgles1 libgles2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fix corrupted/black graphics problem&#039;&#039;&#039;&lt;br /&gt;
* Create file /etc/powervr.d/driver.ini containing these 2 lines:&lt;br /&gt;
&lt;br /&gt;
 [default]&lt;br /&gt;
 ForceExternalZBuffer=0&lt;br /&gt;
&lt;br /&gt;
see http://talk.maemo.org/showpost.php?p=862561&amp;amp;postcount=455&lt;br /&gt;
&lt;br /&gt;
==How to get Shrek Karting working==&lt;br /&gt;
&#039;&#039;&#039;Install libgles1&#039;&#039;&#039;&lt;br /&gt;
* get root&lt;br /&gt;
 root&lt;br /&gt;
* install OpenGLES1 and OpenGLES2 (need extras-devel)&lt;br /&gt;
 apt-get install libgles1 libgles2&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Improve corrupted/black graphics problem&#039;&#039;&#039;&lt;br /&gt;
* Create file /etc/powervr.d/ShrekKarting.ini containing these 2 lines:&lt;br /&gt;
&lt;br /&gt;
 [default]&lt;br /&gt;
 ForceExternalZBuffer=0&lt;br /&gt;
&lt;br /&gt;
Graphics are stil not perfect - lighting textures are still not good.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Save space (Transfer games to MyDocs folder) ==&lt;br /&gt;
&lt;br /&gt;
If running out of space in the /home/user/[webos] directory, part of the game that usually takes up the most space can be copied to /home/user/MyDocs. &#039;&#039;NOTE&#039;&#039;: You still need the game folders to be in the /home/user/[webos] directory, only some of the files are transferred to MyDocs.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example using NFSU&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The example assumes NFSU does not exist in /home/user/[webos]. &lt;br /&gt;
&lt;br /&gt;
Open xterm, create a folder in MyDocs:&lt;br /&gt;
 mkdir /home/user/MyDocs/preenv&lt;br /&gt;
 mkdir /home/user/MyDocs/preenv/nfsu&lt;br /&gt;
&lt;br /&gt;
Create NFSU folder in /home/user/[webos]:&lt;br /&gt;
 mkdir /home/user/[webos]/com.ea.app.nfsuc&lt;br /&gt;
&lt;br /&gt;
Copy &#039;&#039;only&#039;&#039; the files indicated as below from the NFSU source (location where ipk file has been extracted) to /home/user/[webos]&lt;br /&gt;
 cp [SOURCE]/com.ea.app.nfsuc/appinfo.json /home/user/[webos]/com.ea.app.nfsuc/&lt;br /&gt;
 cp [SOURCE]/com.ea.app.nfsuc/nfsuc /home/user/[webos]/com.ea.app.nfsuc/&lt;br /&gt;
&lt;br /&gt;
Copy res_nfusc folder from NFSU to MyDocs:&lt;br /&gt;
 cp -r [SOURCE]/com.ea.app.nfsuc/res_nfsuc /home/user/MyDocs/preenv/nfsu/&lt;br /&gt;
&lt;br /&gt;
Now create a symbolic link res_nfsuc in the [webos] nfsuc folder that points to the actual res_nfsuc folder in the MyDocs folder:&lt;br /&gt;
 ln -s /home/user/MyDocs/preenv/nfsu/res_nfsuc /home/user/[webos]/com.ea.app.nfsuc/res_nfsuc&lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to change the permission of the executable nfsu file in [webos]:&lt;br /&gt;
 sudo gainroot&lt;br /&gt;
 chmod +rwx /home/user/[webos]/com.ea.app.nfsuc/res_nfsuc/nfsuc&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Now you should still be able to play NFSU, having saved roughly 110MB on /home/user/[webos].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Example using BrainChallenge&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The example assumes BrainChallenge does not exist in /home/user/[webos]. &lt;br /&gt;
&lt;br /&gt;
Open xterm, create a folder in MyDocs:&lt;br /&gt;
 mkdir /home/user/MyDocs/preenv&lt;br /&gt;
 mkdir /home/user/MyDocs/preenv/brainchallenge&lt;br /&gt;
&lt;br /&gt;
Create BrainChallenge folder in /home/user/[webos]:&lt;br /&gt;
 mkdir /home/user/[webos]/com.gameloft.app.brainchallenge&lt;br /&gt;
&lt;br /&gt;
Copy &#039;&#039;only&#039;&#039; the files indicated as below from the BrainChallenge source (location where ipk file has been extracted) to /home/user/[webos]&lt;br /&gt;
 cp [SOURCE]/com.gameloft.app.brainchallenge/appinfo.json /home/user/[webos]/com.gameloft.app.brainchallenge/&lt;br /&gt;
 cp [SOURCE]/com.gameloft.app.brainchallenge/icon.png /home/user/[webos]/com.gameloft.app.brainchallenge/&lt;br /&gt;
&lt;br /&gt;
Copy files from the brainchallenge folder from BrainChallenge source to MyDocs:&lt;br /&gt;
 cp [SOURCE]/com.gameloft.app.brainchallenge/brainchallenge/*.* /home/user/MyDocs/preenv/brainchallenge/&lt;br /&gt;
&lt;br /&gt;
Also copy any subdirectories in the brainchallenge folder to MyDocs:&lt;br /&gt;
 cp -r [SOURCE]/com.gameloft.app.brainchallenge/brainchallenge/sounds /home/user/MyDocs/preenv/brainchallenge/&lt;br /&gt;
&lt;br /&gt;
Copy the following code and save it to a file with the name &#039;createln.sh&#039;. &#039;&#039;NOTE&#039;&#039;: Do not save this file using Windows Notepad; if using Windows, use software like TextPad to save the file in unix format.  Copy this file to any folder on your N900.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 &lt;br /&gt;
 cd $1&lt;br /&gt;
 files=&amp;quot;`ls -1 $1`&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 for file in $files&lt;br /&gt;
 do&lt;br /&gt;
     echo $file&lt;br /&gt;
     ln -s $1/$file $2/$file&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
Create folder brainchallenge in [webos] brainchallenge folder:&lt;br /&gt;
 mkdir /home/user/[webos]/com.gameloft.app.brainchallenge/brainchallenge&lt;br /&gt;
&lt;br /&gt;
Copy the brainchallenge executable file from Brainchallenge source location to the [webos] folder:&lt;br /&gt;
 cp [source]/com.gameloft.app.brainchallenge/brainchallenge/brainchallenge /home/user/[webos]/com.gameloft.app.brainchallenge/brainchallenge/&lt;br /&gt;
&lt;br /&gt;
Now create symbolic links in the [webos] nfsuc folder that point to the actual files in the brainchallenge folder located in MyDocs (using &#039;&#039;createln&#039;&#039;):&lt;br /&gt;
 sh [..]/createln /home/user/MyDocs/preenv/brainchallenge/brainchallenge/ /home/user/[webos]/com.gameloft.app.brainchallenge/brainchallenge&lt;br /&gt;
&lt;br /&gt;
Also create symbolic links to any folders inside the brainchallenge folder in MyDocs:&lt;br /&gt;
 ln -s /home/user/MyDocs/preenv/brainchallenge/brainchallenge/sounds /home/user/[webos]/com.gameloft.app.brainchallenge/brainchallenge/sounds&lt;br /&gt;
&lt;br /&gt;
Don&#039;t forget to change the permission of the executable brainchallege file in [webos]:&lt;br /&gt;
 sudo gainroot&lt;br /&gt;
 chmod +rwx /home/user/[webos]/com.gameloft.app.brainchallenge/brainchallenge/brainchallenge&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Now you should still be able to play BrainChallenge, having saved roughly 114MB on /home/user/[webos].&lt;br /&gt;
&lt;br /&gt;
The method used for the BrainChallenge game has also been tested and works with Asphalt 5, Blades of Fury, Oregon Trail and X-Plane Airliner.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Save space (Transfer games to MyDocs folder) NOOB Version 1.0 ==&lt;br /&gt;
Use this method if previous method is too tricky as it was for me.&lt;br /&gt;
You will need &#039;&#039;&#039;FileBox&#039;&#039;&#039;, &#039;&#039;&#039;Rootsh&#039;&#039;&#039;, and &#039;&#039;&#039;a basic understanding of X Terminal&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;&#039;Step 1:&#039;&#039;&#039; Locate your game folders. There are two possible locations.&lt;br /&gt;
&lt;br /&gt;
Either at /home/user/ or /home/opt/preenv/usr/palm/applications&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 2:&#039;&#039;&#039; Once found you need to distinguish which files are the largest and would be wise to move to save space. I suggest moving sound folders, music folders, and videos folders. Leave save files and executionable files. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NB&#039;&#039;&#039; Save folders usually are named &amp;quot;save&amp;quot; and are usually small in size (kb/b)&lt;br /&gt;
To locate executionable files for games use this command:&lt;br /&gt;
&lt;br /&gt;
Using &#039;&#039;&#039;Hero Of Sparta&#039;&#039;&#039; as an example:&lt;br /&gt;
 cd /home/user/webOS/com.gameloft.app.heroofsparta&lt;br /&gt;
 grep main appinfo.json&lt;br /&gt;
&lt;br /&gt;
This will give you the result:&lt;br /&gt;
 &amp;quot;main&amp;quot; : &amp;quot;HeroOfSparta/HeroOfSparta&amp;quot;&lt;br /&gt;
So you know not to move this file.&lt;br /&gt;
   &lt;br /&gt;
&#039;&#039;&#039;Step 3:&#039;&#039;&#039; Time to move! &lt;br /&gt;
Using FileBox&#039;s &amp;quot;Create new folder&amp;quot; feature {found after you tap the wrench icon} go to MyDocs and make a folder their called WebOSGames.&lt;br /&gt;
 &lt;br /&gt;
Now using the &#039;&#039;&#039;copy&#039;&#039;&#039; feature {which is accessed when a specific folder is &amp;quot;pressed&amp;quot; for about 2seconds then a menu pops up giving multiple options such as copy} copy the folders and files desired from the game folder to the &#039;&#039;&#039;WebOSGames&#039;&#039;&#039; folder in &#039;&#039;&#039;MyDocs&#039;&#039;&#039; &lt;br /&gt;
&#039;&#039;&#039;DELETE&#039;&#039;&#039; the originals from the game folder.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Step 4:&#039;&#039;&#039; Time to create some Symlinks! &lt;br /&gt;
Open up X Terminal and get rooted. &lt;br /&gt;
TIP: Have &#039;&#039;&#039;FileManager&#039;&#039;&#039; open in the WebOSGames folder to see what files and folders you need to link.&lt;br /&gt;
&lt;br /&gt;
The command to create symlinks is:&lt;br /&gt;
 ln -s {source} {link}&lt;br /&gt;
&lt;br /&gt;
Using NFSUC as an example:&lt;br /&gt;
 ln -s /home/user/MyDocs/WebOSGames/res_nfsuc /home/user/webOS/com.ea.app.nfsuc/res_nfsuc&lt;br /&gt;
&lt;br /&gt;
This will create a link from the NFSUC game folder to the folder containing the res_nfsuc folder&lt;br /&gt;
&lt;br /&gt;
Now your game will still run but you will have lots of space to add more games.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;TIP:&#039;&#039;&#039; You can also delete videos from game folders that are not necessary or that do not play. Asphalt 5 has videos not necessary for the game to run so they can be &#039;&#039;&#039;DELETED.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For some games you will need to create symlinks for multiple folders e.g. Driver and N.O.V.A. this is why I suggest having a separate filemanager open such as the one that comes with the N900, so that you can see which file/folder you have to link next.&lt;br /&gt;
&lt;br /&gt;
Enjoy :)&lt;/div&gt;</summary>
		<author><name>94.192.227.126</name></author>
	</entry>
</feed>