Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

WebTopScripts - Fixing apt-get dependencies on WebTop

OP arvati

30th July 2011, 03:38 AM   |  #1  
arvati's Avatar
OP Member
Flag São Paulo
Thanks Meter: 87
 
70 posts
Join Date:Joined: Jan 2008
Donate to Me
More
After using webtop2sd app the next step on using my webtop on motorola atrix was to start using programs like aptitude, synaptic or command line apt-get to install much more useful programs to use offline on this motorola modified ubuntu jaunty distribution.
The first problem faced was that motorola had left a lot of broken dependencies that would break webtop system if someone just try to use any automatic solution.

To help on this task i developed a bash script that fix those broken dependencies using three different approaches:

1 - The first logical step is just install the missing packages from ubuntu jaunty, taking care to not overwrite any original packages developed from motorola

2 - Since some packages were made from motorola and were already installed on webtop, the second step was creating FAKE packages to just tell apt-get that the package is already installed leaving the original motorola installed package intacted.

3 - Somehow, there is one fake package that breaks the system if is installed. For this package, the idea was backup all files provided from the package developed from motorola and install ubuntu jaunty package overwriting motorola's files. After installation restore the original files on top of ubuntu jaunty files to maintain maximum motorola original system.

After fixing apt-get broken dependencies the use of apt-get could upgrade original motorola`s file. To avoid that there is another script that mark to HOLD version installed. Doing that, it is more difficult to normal users to upgrade packages that would overwrite motorola packages.

Now let's explain how to use WebTopScripts.

Requirements:
* Rooted Atrix.
* Working WebTop after webtop2sd modifications.
* webtop configurator running and preliminaries fix applied from this program (most of all corrections are related to sources.list).
* basic skills to run bash scripts and commands from terminal command line
* working lxterminal program on webtop

Install Script on your Atrix:
* Download file from this thread and save on your download folder (/mnt/sdcard/download)
* run these commands on lxterminal:

Until version 1.6:
Code:
cp /mnt/sdcard/download/webtopscripts-1.4.tar ~/
cd ~
sudo tar -xvf ~/webtopscripts-1.4.tar
sudo chmod -R 777 WebTopScripts
bash WebTopScripts/setup.sh
After version 1.7:
Code:
cp /mnt/sdcard/download/webtopscripts-1.7.tar ~/
cd ~
sudo tar -Pxvf ~/webtopscripts-1.7.tar
cd /osh/usr/share/
sudo chmod -R 777 WebTopScripts
bash WebTopScripts/setup.sh
Run Scripts to fix apt-get:

Until version 1.6:
Code:
cd ~
bash WebTopScripts/fix-apt-get.sh
After version 1.7 execute this command and choose options from menu:
Code:
webtopscripts
Just use this script with care, and at your own risk, because apt-get may break your system.
Using webtop2sd you may easily recover from original webtop but since your are on a rooted device all caution is needed.

Good luck and enjoy.

New repository for updated versions on: webtopscripts google code

Version 1.5 released 10/01/2012
Version 1.6 released 11/01/2012
Version 1.7 released 24/01/2012

Many thanks to donation made by:
amenditman
...

Please feel free to contribute on WebTopScripts Project on Google Code
Attached Files
File Type: tar webtopscripts-1.3.tar - [Click for QR Code] (266.4 KB, 1208 views)
File Type: tar webtopscripts-1.4.tar - [Click for QR Code] (267.6 KB, 3047 views)
Last edited by arvati; 24th January 2012 at 04:16 PM. Reason: added release 1.7 on google code project
The Following 54 Users Say Thank You to arvati For This Useful Post: [ View ]
30th July 2011, 04:05 AM   |  #2  
arvati's Avatar
OP Member
Flag São Paulo
Thanks Meter: 87
 
70 posts
Join Date:Joined: Jan 2008
Donate to Me
More
Install script to help use of dpkg -i xx.deb command
If you want to use some functions provided from WebTopScrips to install packages directly from deb files like command "sudo /usr/bin/dpkg -i --root=/osh <<package_deb_file.deb>>", you may run the code:

Code:
cd ~
bash WebTopScripts/scripts/install.sh <<package_name>>
Just need to make sure to write proper settings on file:
Code:
cd ~
leafpad WebTopScripts/scripts/config.txt
Example of config.txt (You just need to include dependencies that are not on webtop yet) :

Quote:

[gksu]
site="http://launchpadlibrarian.net/23917569/gksu_2.0.2-1ubuntu2_armel.deb"
file="gksu_2.0.2-1ubuntu2_armel.deb"
depends="libgksu2-0;gnome-keyring"

[libgksu2-0]
site="http://launchpadlibrarian.net/25028748/libgksu2-0_2.0.9-1ubuntu3_armel.deb"
file="libgksu2-0_2.0.9-1ubuntu3_armel.deb"
depends=""

[gnome-keyring]
site="http://launchpadlibrarian.net/25333836/gnome-keyring_2.26.1-0ubuntu1_armel.deb"
file="gnome-keyring_2.26.1-0ubuntu1_armel.deb"
depends="libgcr0;libgp11-0"

[libgcr0]
site="http://launchpadlibrarian.net/25333843/libgcr0_2.26.1-0ubuntu1_armel.deb"
file="libgcr0_2.26.1-0ubuntu1_armel.deb"
depends="libgp11-0"

[libgp11-0]
site="http://launchpadlibrarian.net/25333840/libgp11-0_2.26.1-0ubuntu1_armel.deb"
file="libgp11-0_2.26.1-0ubuntu1_armel.deb"
depends=""

To install gksu you just need to run:

Code:
cd ~
bash WebTopScripts/scripts/install.sh gksu
You may contribute with more config text for installing more packages on this thread to share with others users that do not want to use apt-get easy installation process.

Visit site bellow to find path for armel jaunty deb files on web:
https://launchpad.net/ubuntu/jaunty/armel/

Hope to have your contribution soon.
The Following 11 Users Say Thank You to arvati For This Useful Post: [ View ]
30th July 2011, 04:11 AM   |  #3  
arvati's Avatar
OP Member
Flag São Paulo
Thanks Meter: 87
 
70 posts
Join Date:Joined: Jan 2008
Donate to Me
More
Programs Installed after apt-get fix from WebTopScripts
I will list here all applications that were installed and how I did it after fixing apt-get.

=== Reserved ===
The Following 5 Users Say Thank You to arvati For This Useful Post: [ View ]
30th July 2011, 05:18 AM   |  #4  
dicksteele's Avatar
Senior Member
Flag California
Thanks Meter: 1,466
 
2,345 posts
Join Date:Joined: Sep 2010
More
You my friend, have to much time on your hands.

This is freaking wicked GOD like.

Thank you !
30th July 2011, 06:13 AM   |  #5  
PAulyhoffman's Avatar
Senior Member
Flag Brooklyn Park, MN
Thanks Meter: 148
 
480 posts
Join Date:Joined: Jul 2010
More
very nice I had been working on getting dependencies t work for days and kept breaking the webtop.
30th July 2011, 08:31 AM   |  #6  
_Alex_'s Avatar
Retired Senior Moderator
Flag San Jose, CA
Thanks Meter: 224
 
1,593 posts
Join Date:Joined: Aug 2005
Donate to Me
More
I've also been working on this for days and am happy to confirm it works beautifully!
30th July 2011, 08:39 AM   |  #7  
Senior Member
Flag Rio de Janeiro
Thanks Meter: 47
 
529 posts
Join Date:Joined: May 2011
More
May god carry your soul to heaven when you die.

I am now completely satisfied in replacing my netbook with the lapdock
30th July 2011, 11:01 AM   |  #8  
Senior Member
Thanks Meter: 96
 
605 posts
Join Date:Joined: Dec 2010
More
im installing gnome desktop now =D
youre the man
30th July 2011, 12:09 PM   |  #9  
Junior Member
Thanks Meter: 0
 
17 posts
Join Date:Joined: Mar 2009
More
I think I may have just died! Awesome job.
30th July 2011, 12:31 PM   |  #10  
Senior Member
Thanks Meter: 352
 
571 posts
Join Date:Joined: Mar 2011
You make my day

Sent from my MB860 using XDA App

Post Reply Subscribe to Thread

Tags
apt-get, motorola atrix, webtop, webtop2sd, webtopscripts
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes