[WEBTOP] GenTop2-20120509 (Beta) - Next Generation Gentoo Webtop Replacement

Automatisator

Member
Aug 5, 2012
6
0
0
Need to delete some stuff off your webtop partition.
I have also been made, it is always at 100%....

see without libreoffice:
Code:
/dev/block/mmcblk0p13  [B][COLOR="Red"]756M    729M[/COLOR][/B]     0  100% /osh
?

fsck can not run, I have to unmount the internal memory,,, Linux also does not ....? via adb shell it (fsck) can not find /etc/fstab.... ?

I tried to format through CWM osh (ext3)., .. without success, it remains at 100% is not fully ...?
 

ravilov

Senior Member
Jan 26, 2010
2,219
1,344
0
localhost
OK, that's just weird. Somethings fishy is going on here.

Are you rooted? Have proper (full) busybox/toolbox installed? If so, try running this in adb shell (preferrably by copypasting commands, to avoid possible typos and mistakes).
Code:
umount /dev/block/mmcblk0p13 || mount -oremount,ro /dev/block/mmcblk0p13
e2fsck /dev/block/mmcblk0p13
mount -oremount,rw /osh || mount /dev/block/mmcblk0p13 /osh
And then copypaste exactly what it says.
 

Automatisator

Member
Aug 5, 2012
6
0
0
Are you rooted?
yes

ok:


adb shell
cd /osh/
mv etc etcx
reboot

then:

umount /dev/block/mmcblk0p13
e2fsck /dev/block/mmcblk0p13

Code:
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p13 has been mounted 102 times without being checked, check fo
rced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/block/mmcblk0p13: 36530/49152 files (0.2% non-contiguous), 182368/196608 bl
ocks
reboot

no change ... df say 100% :(
 

Lokifish Marz

Inactive Recognized Developer
Mar 13, 2011
3,848
3,748
0
Olympus Mons, Mars
martian-imperium.com
df command is not accurate, especially in adb, as it rounds up the usage percentage. This rounding up will cause issues once you get to that false 100% and try pushing files via adb. It also tends to hose adb format attempts as well. I ran into this when I started my project for the Atrix and the only easy way I found that worked to format /osh was from CWM. I now build on the Photon, tar.gz /osh, then untar to the Atrix. This is not an ideal solution for most people but in my case, it's the only solution.

My suggestion is format /osh via CWM and start over, avoiding adb when possible.
 
  • Like
Reactions: Frankzor

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
I've posted a few hosts back how to use a partition on the external sdcard for /osh/usr which eliminates all the hassle with storage running out (since most stuff in a gentoo installation is saved undesirable /osh/usr). As to say so it's very simple to set up, once you know the fact that the partition needs to be mounted to /osh/usr through init.rc on bootup. I myself have not seen any performance decrease due to this-some do, but my sdcard is a class 10 with read/write in the 20 do 10mb/storage ranges.
 
  • Like
Reactions: Frankzor

Automatisator

Member
Aug 5, 2012
6
0
0
I've posted a few hosts back how to use a partition on the external sdcard for /osh/usr which eliminates all the hassle with storage running out (since most stuff in a gentoo installation is saved undesirable /osh/usr). As to say so it's very simple to set up, once you know the fact that the partition needs to be mounted to /osh/usr through init.rc on bootup. I myself have not seen any performance decrease due to this-some do, but my sdcard is a class 10 with read/write in the 20 do 10mb/storage ranges.
:good:
Thanks!

too many icons was the problem ... I have the /usr/share/icons/* moved into /preinstall/icons/
ls -la /preinstall/icons/
Code:
drwxr-xr-x  6 root    root    1024 23. Sep 04:52 .
drwxr-xr-x  5 portage portage 1024 23. Sep 04:47 ..
drwxr-xr-x 12 root    root    1024 23. Sep 03:41 Tango
drwxr-xr-x 10 root    root    1024 23. Sep 03:40 gnome
drwxr-xr-x 15 root    root    1024 23. Sep 05:03 hicolor
drwxr-xr-x  4 root    root    1024 23. Sep 03:40 locolor
ls -la /usr/share/icons
Code:
lrwxrwxrwx   1 root root   23 23. Sep 04:51 Tango -> /preinstall/icons/Tango
lrwxrwxrwx   1 root root   23 23. Sep 04:48 gnome -> /preinstall/icons/gnome
lrwxrwxrwx   1 root root   25 23. Sep 04:50 hicolor -> /preinstall/icons/hicolor
lrwxrwxrwx   1 root root   25 23. Sep 04:52 locolor -> /preinstall/icons/locolor
drwxr-xr-x   4 root root 4096 23. Sep 03:40 webtopicons
df -h
Code:
Dateisystem            Größe Benutzt Verf. Verw% Eingehängt auf
tmpfs                   408M     44K  408M    1% /dev
tmpfs                   408M       0  408M    0% /mnt/asec
tmpfs                   408M       0  408M    0% /mnt/obb
/dev/block/mmcblk0p12   310M    280M   31M   91% /system
/dev/block/mmcblk0p16   2,0G    823M  1,2G   41% /data
/dev/block/mmcblk0p15   630M     17M  614M    3% /cache
/dev/block/mmcblk0p3    2,0M    1,1M  920K   54% /pds
/dev/block/mmcblk0p13   [B]756M    672M   46M   94% /osh[/B]
/dev/block/mmcblk0p17   324M    197M  128M   61% /preinstall
/dev/block/mmcblk1p2    4,0G    1,8G  2,0G   47% /mnt/gentoo
/dev/block/mmcblk0p17   324M    197M  128M   61% /preinstall/var
rc-svcdir               1,0M     60K  964K    6% /osh/lib/rc/init.d
cgroup_root              10M       0   10M    0% /sys/fs/cgroup
shm                     408M       0  408M    0% /dev/shm
/dev/block/vold/179:33   11G    1,7G  9,2G   16% /mnt/sdcard-ext
:)

how I can update from xfce 4.8 to 4.10?
 

dopamine5ht

Member
Oct 1, 2012
17
0
0
Milwaukee
on80.com
XPCOM error with firefox

I saw some package is updated in overlay server (see OP), then I made an emerge --update. but I found there are 2 Mozilla package (Firefox 13 & Thunderbird 13) can not running after installed successfully. they have similar message,
XPCOMGlueLoad error for file /mnt/gentoo/osh/usr/lib/firefox/libxpcom.so:
libxul.so: cannot open shared object file: No such file or directory
Couldn't load XPCOM.


I search for this issue and got lots hit over different build of firefox or OS. but I got no solid answer for my case. then I re-install Gentop2 but no luck again. only working method is roll back to version 12 for both package.

anyone have same issue?
I did until I remembered my solaris years.


It turns out I looked into the directory and my case libxul.so and libxpcom.so
were sitting there in /usr/lib/firefox and then it hit me. I need LD_LIBRARY_PATH or something.

So I added the following:

echo /usr/lib/firefox > /etc/ld.so.conf.d/06firefox.conf
ldconfig

I was missing one more library libffi and emerged that:
emerge libffi

firefox launched. I am so happy.
 

dopamine5ht

Member
Oct 1, 2012
17
0
0
Milwaukee
on80.com
gentop2 dns

wifi and data is not working because your resolv.conf is empty. fix it.

not only that, after some detective work. I noticed it has to be setup as chown root.1000 /etc/resolv.conf so the phone system settings can write to the file. Not sure it has to be two lines for sure, but it does work.

-rw-rw-r-- 1 root 1000 35 Oct 1 16:36 resolv.conf
atrix etc # more resolv.conf
nameserver 192.168.2.1
nameserver

system and settings uses user 1000

1000 3901 0.1 3.0 111212 25744 ? Sl 16:31 0:02 com.android.settings
 

Frankzor

Senior Member
May 8, 2009
50
12
0
Ok, i see you got it working. I only use the command line, so i dont know how it works with file managers. Basically i did this:
You have to do all of this as root/superuser (do sudo su in ubuntu)
1. unpacked the tarball into a work directory on my linux pc - > it unpacks osh and data/osh into that directory
2. i opened up a second terminal and went into the data/usr directory and made ls -l in each of its subdirectories, so that i saw which files are there
3. in the first terminal i went into osh/usr and its directories and deleted the symlinks that were there to the files in data/usr and its subdirectories, but leave the symlink for usr/portage which goes to the /mnt/gentoo part (as gendol has it)
4. i went back to the work directory and wrote "rsync -a osh/usr/* data/osh/usr"
5. it copied all over without an error
6. i mounted the partiton of my sdcard that i wanted /usr to reside on to mnt/usb
7. from teh work dir i did "rsync -a data/osh/usr /mnt/usb"
8. it finished without an error
9. so now we have the following partitions on the sdcard when looking at it on the PHONE (on the pc its different name):
1. a fat32 /dev/block/mmcblk1p1 for android lets say,
2. an ext4 ( i use ext4) as /dev/block/mmcblk1p2 mounted to /mnt/gentoo and with the symlinks to it for /usr/portage (you must have the portage tarball extracted on this partition),
3. an ext4 formatted partition for /usr thats mounted like /dev/block/mmcblk1p3 on /osh/usr
4. a spare ext4 partition as /dev/block/mmcblk1p4 that i mount into my /home/adas/sd directory so that i have more space on my home dir.
10. you actually do NOT need the second and fourth partition, instead of the second partition just make the third one the second, make it bigger, remove the symlink in /usr for /usr/portage->/mnt/gentoo, extract the portage tarball to the "/usr" partition, remove the mount command in ubuntu.sh, for mounting the second partition to /mnt/gentoo and instead make it to mount to /osh/usr . As for teh 4th partition its just for my convenience, if you dont need more space for downloads for instance, you dont need to make it.

As another note, i have to check /preinstall, if it could be used this way, im not sure how big it is though, so depending on its size it might or might not be useful =/ if its lets say around 1GB, than one could use it for /usr instead (speed improvement) edit, just checked, its "only" 334MB, i dont see much use for it as such right now.
Btw after you test it that it works with /usr ont eh external card, you can turn off the phone, take out the sdcard, delete the /osh/usr dir (that way you get some space on /osh back), than turn off again and turn on again and it should be working fine from the sdcard.
meh, i think i need a 32GB card, 16 just seems poor now =/
btw anyone got distcc to start? :)
I'm still in the process of installing gentop2 20120428 (and not the 20120509 one that takes forever to setup in external sdcard) as instructed above (with the init.rc editing part as well). Sorry if I didn't give any feedback for so long. Since my only linux OS is ubuntop on my atrix (lol), progress is a bit slower than usual. Also, I had too much trouble extracting tarballs for the last 2 weeks until I realised that I got a defective sdcard -_- (which hopefully wasn't the external microSDHC on the phone but the one plugged with a usb card reader)

Now I'm extracting the 2 tarballs with xarchiver (not with command lines) without issue. I have 2 questions though:

1) In /osh/usr and subdirectories, should I deleted ALL the symlinks, or only the broken symlinks (excluding the one that goes to /mnt/gentoo) ?

2) When I'll download the binary packages like firefox/aurora, libreoffice and others for installation, in which file directory and on which partition (in portage or in osh) should I put them before force emerging? (I couldn't find the answer by reading older posts.)
 

tamuin

Senior Member
Nov 23, 2011
79
20
0
Trash can / recycle bin

I was wondering what (if anything) you guys are using for a trash can / recycle bin?

I am interested in what others are doing with regards to this and I figured asking in the forums would be a bit easier than trying out all of the different android - linux solutions (there are only so many hours in a day).

I am using systemR89's webtopmod to run debian in chrooted jail (http://forum.xda-developers.com/showthread.php?t=1093790) and use my phone as a phone and as a functional computer on a daily basis; mainly I am using firefox and libre office.

One thing that i think is needed is a trash can / recycle bin and it would be nice if it were worked for both the phone mode and the computer mode. I think libtrash will do this, and I posted some thoughts about libtrash in this thread: http://forum.xda-developers.com/showthread.php?t=1093790

One thing that I was particularly impressed with on the GenTop project was that you were compiling most everything on the phone. I tried to use synaptic to install the appropriate packages on my chroot'd debian, but several key files / libraries seemed to be missing from the repository (probably some mistake on my part).
 
Last edited:

crnkoj

Senior Member
Feb 16, 2011
1,833
397
103
1. Just the broken ones, but replace them with the actual directories
2. I haven't tried this, but i believe it doesn't matter much. Possibly putting it on the internal storage, it will install a bit faster. I'm not using gendols binary packages so I can't tell anything for sure.
I even haven't emerge synced in ages on the atrix and haven't emerged anything new as of late either, since I've seen it up as intended and now I don't wish to break it, the reasons for this are two: 1. Gentoo uses hardfloat as default now and we have softfloat and due to this softfloat isn't being maintained much I believe, especially gcc/glibc are broken on new emerges (at least last I tried they break and one has to manually restore some symlinks I do think remember which exactly though) 2. We are stuck on an old xserver due to the old gfx drivers, so several things don't work (new Firefox, chromium etc) on it.

Sent from my NookColor using Tapatalk 2
 
  • Like
Reactions: Frankzor

xdej

Senior Member
Oct 17, 2012
108
44
0
After

Code:
emerge --sync
and

Code:
emerge -ua world
I got this error message

Code:
sh: /lib/libc.so.6: version `GLIBC_2.15' not found (required by sh)
ideas?
The
Code:
emerge -ua world
was an error, it is reserved to those doing it regularily, at least a few time a year.
Code:
 emerge -av portage
should have been done first.

You have better to reinstall Gentop, unless you somehow suceed to restore enough libraries to make
Code:
emerge -av system
happy.

---------- Post added at 04:26 PM ---------- Previous post was at 04:14 PM ----------

I have also been made, it is always at 100%....
With libreoffice:
Code:
/dev/block/mmcblk0p13    774064  753844         0  100% /osh
see without libreoffice:
Code:
/dev/block/mmcblk0p13  [B][COLOR="Red"]756M    729M[/COLOR][/B]     0  100% /osh
?

fsck can not run, I have to unmount the internal memory,,, Linux also does not ....? via adb shell it (fsck) can not find /etc/fstab.... ?

I tried to format through CWM osh (ext3)., .. without success, it remains at 100% is not fully ...?
In linux filesystem (ext2, ext3, ext4), 110% (it may be 105%, tune2fs should give you that precision) means really full. 10% are reserved to root, and should not be used to avoid defragmentation of the partition.

But df displays 100% even if the usage is between 101% and 110%.

So you should make extra room, to get below 100% you need to use less than 774064/1.1=703694 blocs, which means less than 756M/1.1=687MB. 729MB is still greater than that.
 

lhstes

Member
Aug 7, 2006
7
3
23
Is there a way to use Gentop2 with atrICS or ICSRom? They seem pretty solid now and a true webtop would be the icing on that ice cream sandwich ;)
 

BigJeff

Senior Member
Jun 4, 2011
835
177
0
Stanwood
Is there a way to use Gentop2 with atrICS or ICSRom? They seem pretty solid now and a true webtop would be the icing on that ice cream sandwich ;)
No. Anyways, I just got my Atrix and Lapdock so I can't wait to try this! It's just too bad there's no more development for this cool project.
 

xdej

Senior Member
Oct 17, 2012
108
44
0
Is there a way to use Gentop2 with atrICS or ICSRom? They seem pretty solid now and a true webtop would be the icing on that ice cream sandwich ;)
If this happens, next step would be successful connection of any phone with ice cream sandwich, microUSB and microHDMI ports, to the Webtop.
 

Lokifish Marz

Inactive Recognized Developer
Mar 13, 2011
3,848
3,748
0
Olympus Mons, Mars
martian-imperium.com
If this happens, next step would be successful connection of any phone with ice cream sandwich, microUSB and microHDMI ports, to the Webtop.
Once I get back from the #bigandroidbbq and if things stay manageable with the campaign, I plan on trying to get the webtop devs together to make this happen. Will try to look into a couple different Linux flavors.

No promises or ETA's though.
 

snoer

Member
May 10, 2011
13
7
0
You were right, but i still get invalid argument whenever i try that command. If i keep going, i get the same error that you are getting with:

mount -t ext3 /dev/block/mmcblk0p17 /preinstall

"Invalid argument"

Any ideas?

Sent from my MB860 using XDA
i had the same problem but got it working now.
since i couldnt find any solution ill post how i did it:

1. install CWM Recovery
2. enter Recovery and go to "mounts and storage"
3. hit "format /preinstall"
4. follow the installation steps from post #1 but SKIP # mke2fs -m 0 -i 2048 -j /dev/block/mmcblk0p17

..now everything works as expected :)
have gentop up and running as expected, though i had to reboot my device and
open up webtop serveral times to get correct resolutions with lapdock

nice work!