yashsingh1/xdaforums huggingface dataset:
[Motorola Droid RAZR] gehrc:
All kinds of awesome errors happen when I try to load the gnome panel... and I have to reboot to fix it haha. Xterm throws the errors, there's tons of them and they're really long, or else I'd post them. The kill part works, the loading part doesn't.

---------- Post added at 02:15 PM ---------- Previous post was at 02:13 PM ----------

He has two pictures on the first post, no video yet. For the first release, it's definitely not bad. The UI gets a little glitchy when you run OpenOffice - the status bar flickers white, and the context menus don't have text to describe them, but when you click on them you can see the items. Still, I'm happy with this!

EDIT: Can't get apt-get to work... it won't find any package I'm looking for. Tried an apt-get update. What am I looking for in the resolv.conf? I have a nameserver in there...

*FIXED: Need to edit /etc/apt/sources.list and uncomment the all the repositories
[Motorola Droid RAZR] kholk:
I can see some warnings when executing gnome-panel but everything works perfectly on my device, apart the OpenOffice menubar like you said..anyway out should be easy to solve.
[Motorola Droid RAZR] gehrc:
Oh really? The terminal just kinda freaked out and nothing happened afterwards...

Error Messages:

GConf Error: Failed to contact configuration server: the most common cause is a missing or misconfigured D-Bus session bus daemon. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id: Failed to open file '/var/lib/dbus/machine-id': No such file or directory)

That appears about seven times. Also, there are two other messages:

** (gnome-panel:9471): WARNING **: Error getting value of '/app/panel/global/disable_force_quit':

The details after the colon are the same as the previous error message. Also, this error:

** (gnome-panel:9471): WARNING **: Failed to load default panel configuration. panel-default-setup.entries hasn't been installed using gconftool-2 --load ?

There are tons of others that appear, but I can't see them because the terminal cuts them off.

EDIT: I also get that same issue about D-Bus library appearing to be incorrectly set up whenever I run Firefox and Chromium from the command line... failing to read machine uuid?

FIXED: Run the following command to fix the error involving machine id's:

dbus-uuidgen > /var/lib/dbus/machine-id

This solved my gnome problems, along with the other issues I've had so far :)
[Motorola Droid RAZR] pajn:
I had the problem that the PATH variable was not initlized after doing chroot and export display.

I did:

bash-4.1# PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin

but it still don't work:

bash-4.1# xterm
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys

I guess there are more than the PATH variable that didn't get initlized.

Do anyone have any idea?

I did exactly as the script.

Uh, and some corrections on the first code block

adb push domain_policy.conf /tmp/
adb push sudoers /tmp/
adb shell
su
cd /tmp/
cp domain_policy.conf /etc/tomoyo/
cp sudoers /etc/
busybox chown root:root /etc/tomoyo/domain_policy.conf
busybox chown root:root /etc/sudoers
chmod 440 /etc/sudoers
reboot

I also have overscan issues, but that is a webtop problem. Do anyone know how to fix (I'm using a 16:10 monitor and the picture is 16:9. Normally the computer rescales the picture to fit if you are using 720p but not the phone. It would be nice if I at least could shrink the screen so it fits even though I get black bars in the top and bottom.
[Motorola Droid RAZR] gehrc:
I didn't ever get to that bash terminal. I did the following:

Put this section in a shell script called 'wth.sh':

mknod -m640 /dev/loop94 b 7 94
mkdir /tmp/wtm
mount -o loop /sdcard-ext/eternitywtm.img /tmp/wtm
mount -o bind /proc /tmp/wtm/proc
mount -o bind /dev /tmp/wtm/dev
mount -o bind /dev/pts /tmp/wtm/dev/pts
mount -o bind /dev/shm /tmp/wtm/dev/shm
mount -o bind /proc/bus/usb /tmp/wtm/proc/bus/usb
mount -o bind /sys /tmp/wtm/sys
mount -o bind /tmp /tmp/wtm/tmp
mount -o bind /var/tmp /tmp/wtm/var/tmp
mount -o bind /var/run/dbus/ /tmp/wtm/var/run/dbus
mount -o bind /var/lib/dbus/ /tmp/wtm/var/lib/dbus
mount -o bind /sdcard /tmp/wtm/sdcard
mount -o bind /sdcard-ext /tmp/wtm/sdcard-ext

Then, I typed the following commands:

su
/usr/bin/sudo -H -u adas bash
export DISPLAY=:0
xhost +
sudo sh wth.sh
sudo chroot /tmp/wtm /bin/bash
export DISPLAY=:0
xterm

After chroot, it'll change users back to root. Don't worry about this. Just follow these steps and it should be fine.

Actually, if you want, create a script with the contents of the gnome setup he posted on the original post. Do this after the second export DISPLAY command. Then instead of typing xterm, just do 'sh loadgnome.sh' or whatever you called the script. I'm trying to figure out how to fully automate these scripts so it's just a one-script solution.

---------- Post added at 04:20 PM ---------- Previous post was at 03:29 PM ----------

kholk... if we ever meet in person someday, I will be buying you so many drinks... haha the Gnome environment is so awesome!
[Motorola Droid RAZR] gehrc:
Is there any way we can extend the amount of space the installation uses?
[Motorola Droid RAZR] kholk:
Yup. Sure you can. You can even dedicate an SDCard partition to EternityProject WebTopMOD!

I'll say how to do that precisely on Monday cause I'll be away from home for the entire weekend.

In less words you can do that doing:

1. Partition the SDCard (containing one ext partition and a FAT partition)

2. Format it in EXT4: mkfs.ext4 (/dev partition)

3. mount -o loop eternitywtm.img /myfolder

4. mount (your EXT4 partition) /tmp/wtmsd

5. cp -rp /myfolder/* /tmp/wtmsd

And then instead of mounting eternitywtm.img for using EternityProject WebTopMOD, you'll mount your SDCard EXT4 partition, so you'll have a native (not loop) partition of the desired size.
[Motorola Droid RAZR] pajn:
You have to use multiple script but you should be able to load them automaticly.

If you supply a file after /bin/bash it will execute that.

Example:

sudo chroot /tmp/wtm /bin/bash /loadgnome.sh

Will chroot to /tmp/wtm and run the script loadgnome.sh which is located at /tmp/wtm/loadgnome.sh

(chroot changes /tmp/wtm to / so the script it will load have to be under /tmp/wtm)

EDIT:

@kholk & gehrc

And later, when we are able to get vold to mount EXT4 partitions we can use sd or internal storage as /home which will greatly boost usability.
[Motorola Droid RAZR] kholk:
Actually if you want to boost something, you can do a particular installation of EternityProject WebTopMOD: You can create an .img that will be put on the internal sdcard and mount it to the mount point you want so that the data will be r/w from two "discs".
[Motorola Droid RAZR] pajn:
Yes but then it would be a bit lake partitioning.

If we could use the whole SD as EXT we would be able to both use it as /home and use the full space and use it as sdcard in android with full space. And android would also be able to read/write from /home.

It would be very useful.
[Motorola Droid RAZR] gehrc:
I really wouldn't even care if it was still on the img file. I think that setup is best for backing up and installation purposes. Is it possible to make that file bigger, and possibly add a swap partition to it?

Additionally, I think there needs to be a way to manage the memory on the RAZR better... it usually has 60% of the memory wrapped up, leaving less for use on webtop.
[Motorola Droid RAZR] farms:
I have been working at this for over an hour lol! it seems awesome but i am still having issues. I know that you have put together a very basic how to but can you ellaborate for the simple minded folks like myself :) I would love to have this functionality but keep running into complications :(
[Motorola Droid RAZR] gehrc:
We can help, but you need to be more specific with your problem
[Motorola Droid RAZR] farms:
anyway to help through an irc chat room?

irc.freenode.net #moto-webtop
[Motorola Droid RAZR] kholk:
Oh, well, you can create an empty img file of the desired size with dd (best to do it on a Linux PC...)

dd if=/dev/zero of=partition.img bs=1MB count=0 seek=4096 (for a 4GB file. Multiply/divide or add by 1024 the seek value to create the desired file size)

mkfs.ext4 -F partition.img

...Then mount the original eternitywtm.img and the new partition.img into two separate folders (for example eternity/ and newpart/ folders) and...

cp -rp eternity/* newpart/

umount both and you've got much space on the second image file, containing exactly what the previous one contains.

@farms

I'll make this easier soon... :)
[Motorola Droid RAZR] gehrc:
Cool! What about swap space?
[Motorola Droid RAZR] pajn:
Instead of mkfs.ext4 -F partition.img use mkswap -c partition.img

and instead of mounting it do swapon partition.img (in ubuntu webtop)
[Motorola Droid RAZR] kholk:
Yeah, it works exactly like that but please note that using SWAP can considerably slow down the entire system.
[Motorola Droid RAZR] gehrc:
Really? I was reading about that hack for Bionic that created swap space for it, which sped it up a lot apparently... it's on an SD Card, so I feel like it would be kinda fast...

---------- Post added at 11:10 AM ---------- Previous post was at 10:25 AM ----------

Also, has anyone else noticed their phone running a little hotter after running this mod?
[Motorola Droid RAZR] kholk:
Umh, don't know why, anyway it's something logical: When you're executing WebTopMOD you're reading and writing from an SDCard.

Let's say for example your SDCard can read and write at 10MB/s MAX.

You're executing an application, 10MB of data has to be read, but your system is swapping, so 10MB will be written on a swapspace on the same card. So you aren't reading at 10MB/s anymore while your application is loading.

You can do this in a better way: setting a swapspace img on the internal memory.

Yeah. You're still taking CPU time and processing power for swapping.. and on ARM devices, CPU time and processing power are essential for performance.

And yeah, the device runs a little hotter while you run WebTopMOD and that's absolutely normal: Motorola WebTop contains really lightweight libraries and binaries (ex: AWN....) while WebTopMOD is using full GNOME and, you know, GNOME is HUGE by footprint and overall binaries/libs size.
[Motorola Droid RAZR] gehrc:
Okay, I've created the scripts that allow for easy access into the Gnome environment. You'd run these AFTER performing the initial steps in the original post of this thread.

Click here to download the files.

The zip contains four files: loadgnome.sh, mount.sh, startwtm.sh, and xhost.sh. You can just drag the 'eternity' folder to your SD card. Then type the following as root to activate it (in Mobile View of course, and after you've navigated to the folder you placed the files in):

sh startwtm.sh

On first run, gnome will not appear, as the script itself is not placed in the right location. HOWEVER, you will be able to issue 'xterm' once it finishes. I'd advise before doing anything else in xterm you run the following command:

dbus-uuidgen > /var/lib/dbus/machine-id

This generates a uuid for the ubuntu installation, and it fixes a lot of the issues I've had. Then, you need to copy the loadgnome.sh script from the folder into the root folder of the ubuntu partition. It should be as simple as:

cp /sdcard/eternity/loadgnome.sh /

But if that doesn't work for you, just enter the commands manually in xterm to load gnome, then drag the file over. Afterwards, you should be able to load gnome on your webtop fairly easily!

NOTES:

The scripts assume all these files are in the same folder

It also assumes that the image file it in the root of your external SD Card

DO NOT run this script if Mobile View is in fullscreen mode. It messes up the location of the Mobile View window when gnome loads
[Motorola Droid RAZR] kholk:
Oh, perfect. As I'm a bit unlucky today, I'm far from home and I've corrupted my SDCard so I haven't got my MOD anymore.

I'm redownloading it: I'll give a look to the scripts and if they're working (sure they are!) well as intended they'll be integrated in the official EternityProject WebTopMOD packages.

Thanks man!
[Motorola Droid RAZR] gehrc:
Didn't realize the card HAS to be formatted as FAT32 for the phone to like it, which is probably why I didn't realize at first why you wanted me to make a second file for the partition lol :(
[Motorola Droid RAZR] kholk:
Heh, I was thinking it was obvious!

Anyway, I think I'll partition mine, too.... :)

32GB, too much for me! xD
[Motorola Droid RAZR] gehrc:
It became obvious after trying to put an 8GB img file on the card, and only being able to get 4GB to copy lol.

It's taken a lot of playing to get the SD card to partition right, but it looks like you need to reboot the phone after you do it, and then it'll figure everything out. Any idea where the second partition on the SD card would be to mount it? /dev/sdb1 or something like that?
[Motorola Droid RAZR] kholk:
The SD is at /dev/block/mmcblk0 so if you've partitioned right with the EXT4 partition as first partition, it is /dev/blovk/mmcblk0p1.
[Motorola Droid RAZR] gehrc:
Awesome, have an 8GB Ubuntu partition now. Thank you!
[Motorola Droid RAZR] kholk:
Anyway, I said you how to make an 8GB img file because you've asked how to do that, I was thinking you knew that FAT32 allows for 4GB MAX, I absolutely didn't want you to lose time doing things that doesn't have any sense.

I thought you had some ideas, so.. :P

Anyway, I'm happy for your new partition! xD

I'm doing the same here, all from webtop itself... it's a pain to do these things without a Linux PC here!

I'm not crazy (well I am, but not that crazy)... I'm far from home for the weekend! :P
[Motorola Droid RAZR] gehrc:
One other question then... do processes happening on the ubuntu side of things keep working when you close the lapdock lid? Seeing what an upgrade to 11.04 does, and it's going to take a while lol

---------- Post added at 05:21 PM ---------- Previous post was at 05:20 PM ----------

Oh no, definitely appreciated that! I didn't realize that the phone only wanted the cards to be FAT32. Otherwise I wouldn't have bothered lol
[Motorola Droid RAZR] kholk:
11.04 may work, too.

The reason I've chosen Maverick is Webtop is based on Maverick too. That thing was done for better and sure compatibility.

I've promised a WebTopMOD in a day, so I went on sure things, but...

...I've promised myself to work on another WebTopMOD when this will be finished or near to the userfriendly completion.

If you've ever had an ATRIX you should already know the word "GenTop". I have never released a serious final version for the ATRIX because the dev (and some users, too) community there was really oppressing and they made my wanting to do and share to go really, really down.

The GenTop ATRIX version was 95% done when I've abandoned it and after playing on it now I know definitely more on that, so it will be really easier to make one (and better) for RAZR, too.

Closing the OT (yeah I'm boring and sometimes I don't know why I "talk" so much)

Yeah they should be running in background when you close the lapdock lid like other webtop processes.
[Motorola Droid RAZR] gehrc:
I hope nobody does that this time... lol I love what's been done so far. For just v0.1 it already seems pretty functional!
[Motorola Droid RAZR] kholk:
Sincerely I didn't expect it to be perfectly working at this state, but there's still a lot of work to do!

I have to make this to have better performance (even if the actual one isn't so bad, actually nearly the same of original webtop, and note that the mod is heavier than webtop) and to have an easy installation and "boot".

As for the easy boot part it seems you've already made the day :D
[Motorola Droid RAZR] gehrc:
11.04 is working with this mod after the upgrade. Granted, it took about three hours. And actually, somehow, it detected Mobile View as an application... very interesting. It shows it on the Unity dock. I'm trying to figure out how to revert to classic gnome as we speak lol

I just tried to update to 11.10 and it failed miserably. I might give it a shot later, but for now my install is messed up, so I'll be restoring. The only reason I'll be trying again is because I disconnected the phone from the lapdock while it was updating, and that could possibly have caused issues, but we'll see...
[Motorola Droid RAZR] pajn:
It should work, the only thing I can think of that could fail is the graphic drivers but if you were able to upgrade to 11.04 it should be ok.

Computers is much simpler when it comes to updates and using some older parts :p

---------- Post added at 12:07 PM ---------- Previous post was at 11:40 AM ----------

I can't get it to work. Not even when I'm using gehrc scripts.

When I have chrooted into /tmp/wtm i seems to have a pretty broken PATH so I have to do

PATH=$PATH:/bin:/usr/bin:/sbin:/usr/sbin

I also find it good to mount /system to /tmp/wtm/system.

But when I run xterm:

bash-4.1# xterm
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys

I also don't have dbus-uuidgen, not even after fixing PATH and mounting /system

bash-4.1# dbus-uuidgen > /var/lib/dbus/machine-id
bash: dbus-uuidgen: command not found

edit: what are your outputs of

ls /dev/pt*

and

ls /tmp/wtm/dev/pt*

?

mine are

app_160@umts_spyder:/$ ls /dev/pt*
/dev/ptmx
2
1
0
app_160@umts_spyder:/$ ls /tmp/wtm/dev/pt*
/tmp/wtm/dev/ptmx

even though I have binded them with mount?
[Motorola Droid RAZR] gehrc:
Like I said, I never get to the 'bash-4.1#' prompt, so something isn't working right... 'xterm' is run as the root user on the image file, which opens when the 'chroot' command is given. Are any other errors given during the actual process? Even when running the scripts?
[Motorola Droid RAZR] kholk:
!!!!BUG FOUND!!!!

When running EternityProject WebTopMOD, your CPU1 or CPU2 usage goes to 100%, slowing up the whole system: this is caused by the WebTop default xscreensaver.

The bug has been solved with a change in the GNOME initialization scripts in first post.

I've found my WebTopMOD now is definitely faster.
[Motorola Droid RAZR] gehrc:
Interesting.... I was just going to post that too hahaha. I was using the sysmon in 11.04 when I noticed at least one CPU was always spiking. I'll try the fix. Thanks!
[Motorola Droid RAZR] pajn:
No, no other errors at all. I get that promt when I chroot to the image file. Would you be kind to post exactly what you do. From plugging the hdmi to running gnome?

Sent from my awsome Motorola RAZR
[Motorola Droid RAZR] 9100_it:
ok!!!

good!

all ok!

now, how to install application?!

from ubuntu software center or from apt-get install nameofapplication ?

you have write you have find a bug and change the sript...but i have just apply the old sript, how to remplace it?!
[Motorola Droid RAZR] kholk:
I've ever used apt. Anyway the software center should work, too.

As for the fixes, simply fix your scripts and reboot your device.
[Motorola Droid RAZR] gehrc:
Everything I did is in my scripts...you mentioned you're using HDMI, is that instead of the lapdock? Could be part of your issue if that's not working properly.

I'll upload a new zip with the bug fix applied in a bit. I actually haven't been able to get the software center to work, so I've been using apt. I might look into the software center issue today though. You need to edit your /etc/apt/sources.list file to include all the repositories though.
[Motorola Droid RAZR] pajn:
Yes, I don't have any dock unfortunately.

@9100_it

Are you using a dock or just HDMI?

@kholk

Do you know some way to search for errors that could be because of I'm not using a dock?

Sent from my awsome Motorola RAZR
[Motorola Droid RAZR] 9100_it:
i have try only HDMI cable but in the old atrix when you connect the Hdmi cable, the atrix come a mouse and kayboard, in the razr no!

i use the laptop from atrix, i have unmout the 2 connector microUSB and microHDMI and i have inverted it!
[Motorola Droid RAZR] kholk:
It's nearly impossible that your problems are coming because you aren't using a LapDock. The HDMI hack makes every HDMI device to be recognized as lapdock/hd station.
[Motorola Droid RAZR] pajn:
But the program on Android, that one that should show touchpad/keybord isn't working so why couldn't it be some ther things as well?

Will reboot my device and try again. I will also write every step I take.

---------- Post added at 09:27 PM ---------- Previous post was at 09:12 PM ----------

1. Connect bluetooth mouse and keyboard

2. Plug HDMI

3. Select webtop

4. Start terminal emulator in mobile view

5. su

6. cd /sdcard/eternity

7. sh startwtm.sh

Oh, got errors here.

"host: unable to open display":0

: no such file or directory

chroot: cannot to execute sudo: no such file or directory
[Motorola Droid RAZR] kholk:
This script doesn't work on my phone, too.

Try the manual method.
[Motorola Droid RAZR] pajn:
Manual worked now :D

To bad the script wouldn't work :/

Can you please tell me why we need to log in to adas?

If we could skip that step we would be able to at least do all mounts inside android.
[Motorola Droid RAZR] gehrc:
I'm looking into this issue with the scripts... the ones in the zip are identical to the ones I've been using successfully, with the exception of the bugfix in loadgnome.sh, and the fact that I'm mounting from a partition now rather than an img file. What errors do you get kholk?
[Motorola Droid RAZR] kholk:
Because when you login to adas you can do "xhost +". It is only allowed for adas.

@gehrc

The same errors that pajn is experiencing. That's strange because the scripts are looking to be correctly written.
[Motorola Droid RAZR] gehrc:
Can you give me exact output please? It looks like it's got a syntax issue, but the syntax looks fine.
[Motorola Droid RAZR] kholk:
I can only quote pajn... it's really the exact output!

"host: unable to open display":0
: no such file or directory
chroot: cannot to execute sudo: no such file or directory
[Motorola Droid RAZR] gehrc:
Could this be an encoding issue with the file? I see absolutely nothing wrong. When I replace the uploaded scripts with the ones I was currently using, only changing the line where I mount my partition rather than the img file (which I basically just change the directory and add the partition type), it all executes smoothly.
[Motorola Droid RAZR] pajn:
@gehrc

When you are booting webtop is the only thing that you do

su

cd /sdcard/eternity

sh startwtm.sh

?

@kholk if so shouldn't we be able to do all mounts from android, as root?

Sent from my awsome Motorola RAZR
[Motorola Droid RAZR] 9100_it:
...mmmmh...

all work on!

i reboot my razr

i connect webtop

(i have created a script)

start the script.sh contenent:

su
/usr/bin/sudo -H -u adas bash
export DISPLAY=:0
xhost +
sudo -i
mknod -m640 /dev/loop94 b 7 94
mkdir /tmp/wtm
mount -o loop /sdcard-ext/eternitywtm.img /tmp/wtm
mount -o bind /proc /tmp/wtm/proc
mount -o bind /dev /tmp/wtm/dev
mount -o bind /dev/pts /tmp/wtm/dev/pts
mount -o bind /dev/shm /tmp/wtm/dev/shm
mount -o bind /proc/bus/usb /tmp/wtm/proc/bus/usb
mount -o bind /sys /tmp/wtm/sys
mount -o bind /tmp /tmp/wtm/tmp
mount -o bind /var/tmp /tmp/wtm/var/tmp
mount -o bind /var/run/dbus/ /tmp/wtm/var/run/dbus
mount -o bind /var/lib/dbus/ /tmp/wtm/var/lib/dbus
mount -o bind /sdcard /tmp/wtm/sdcard
mount -o bind /sdcard-ext /tmp/wtm/sdcard-ext
chroot /tmp/wtm /bin/bash
export DISPLAY=:0
xterm

But now the script not work and the xterminal dont start.

some help!?
[Motorola Droid RAZR] pajn:
You can't do it that way because several commands sends you to a different shell. gehrc scripts should work but it doesn't for me or kholk. I guess it's logging in to adas that is the problem. I shall test some ideas when I get home.

Sent from my awsome Motorola RAZR
[Motorola Droid RAZR] 9100_it:
i must imput all command one for one?!

all time!? :O
[Motorola Droid RAZR] pajn:
No, but you can't just copy and paste the commands. Look at gehrcs scripts.

Sent from my awsome Motorola RAZR
[Motorola Droid RAZR] gehrc:
Yep, that's it.