View Single Post
thel8elvis's Avatar
Posts: 14 | Thanked: 2 times | Joined on Aug 2007 @ Virginia
#32
UPDATE-

Got sidetracked with work and other things, not enough time to play with XFCE

I have a 2GB card, and am booting from the 1st partition, using the 2nd as 1GB storage.

1st - using losetup works fine to mount on /dev/loop for the 770 - just grab the binary and throw it in /usr/bin

2nd - my 770 kept crapping out trying to unzip/untar into xfce.img - I don't know if it is I/O, the fact that I am running the OS from the card on 1 partition and trying to write all that data to the second partition, or what.

My solution was to create the image on a linux box, and unzip/untar the files into it on there. No problem, 512 MB image created. Of course, when I tried to plug my card into my usb reader on my linux box, it completely crapped out trying to write the files to the card (reminding me of why linux annoys me so much :-) , so I simply plugged the 770 into my Mac and waited an hour while it copied the .img over.

The next issue was that there are some files that *don't* go into the image, but on the regular file system. I copied them to card (over usb again) and then cp them to the OS.

From my review of the shell script, the only real key was to make sure the .img was mounted on /usr/local before launching XFCE, so I modified it to use losetup to make sure the .img was mounted.

So, in theory, it's all good to go ... so I launch XFCE, and get a white screen...

770 is not dead, still working, but I seem to have screwed up one of the following :

1) file permissions on the files I copied to the OS (there were only a couple, some files for /usr/bin, libXdamage in /usr/lib, and the desktop files in /usr/share/applications/hildon, and files in /etc)

but they look ok ...

2) I did not copy all the files correctly

I see them all there.... permission problem with su/sudo executing properly ?

3) something wrong with my .img

but it mounts fine and looks fine...

4) I missed something else entirely :-)

Soooooo - whats the best way to debug X on this thing ?

Or what might be some suggestions for debugging why X/XFCE is not starting correctly ?

Thanks !

ps - after re-running swm4.sh from ssh, I get the following:
Nokia770-49:/usr/bin# ./swm4.sh
Stopping Keyboard
Stopping MAEMO AF Desktop
Stopping Matchbox window manager
/usr/local/bin/startxfce4: X server already running on display :0.0
/usr/local/bin/xfce4-session: error while loading shared libraries: libICE.so.6: cannot open shared object file: No such file or directory
(which I don't have minimo installed - so I guess I expect that one - is not having minimo installed killing a script somewhere else ???)