Metapackage : osso-xterm

April 27, 2006 on 12:32 pm | In maemo, nokia770, packaging |

First - A metapackage is a aggregated package that contains the contents of several other packages.

Metapackages are useful if you find yourself re-installing the same packages, in the same manner often. One that screams out to be packaged for me is a osso-xterm metapackage. The quandary with all metapackages is to be both complete as possible within a given context, and yet contain nothing extra. And of course have the widest possible appeal. I selected:

  • osso-xterm
  • tiny-vim
  • slocate
  • openSSH
  • usbnet.sh

In addition, i split my fixup scripts into three pieces, and rewrote them with full restore functions.

Firstly - If you are planning on installing this metapackage, remove any of the packages identified above. My package will overwrite them and (pkg management) confusion will result if you try to remove them afterwards.

The three scripts are:

  • setup-meta-xterm-2006.04.27.sh - creates symbolic links, configures vim, openssh and allows for a complete restore (if needed).
  • automount-mmc.sh - patches the OS for automounting of a second rs-mmc partition. also includes a full restore.
  • filemgr-fixup.sh - maps the root filesystem and /MMC into the filemanager. also includes a full restore.

After an install, these scripts are located in /var/lib/install/usr/opt.

Installation

  1. remove any packages this metapackage may overwrite
  2. install the xterm-metapackage
  3. open xterm
  4. enter ’sudo gainroot’
  5. enter ’su -’
  6. (optional) passwd setup - if you haven’t set it up already
    1. enter ‘passwd -l root’
    2. enter ‘passwd root’ (and set the root password)
    3. enter ‘passwd user’ (and set the user password)
  7. enter ‘cd /var/lib/install/usr/opt’
  8. enter ‘./setup-meta-xterm-2006-04-27.sh’ this will take a few minutes
  9. (optional) enter ‘automount-mmc.sh’ to automount a 2nd rs-mmc partition.
  10. (optional) enter ‘filemgr-fixup.sh’ to provide file manager access to your root filesystem.

I have tested the script for both installation and restoral several times on my 770, but that is not a validation that they will run correctly in all scenarios.

The package is at

ubergEEk

PS - Like everything else on this blog, use at your own risk. Just because it worked for me, does not mean I assume responsibility for anything you do.

3 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Just wanted to point out that in your directions you list the script name as setup-meta-xterm-2006-04-27.sh when the actual name of the file is setup-xterm-2006.04.27.sh
    Thanks for your work though it makes things easier for me.

    Comment by hoosfoos — May 2, 2006 #

  2. am i correct in assuming that there is step previous to the osso-xterm installation which when taken makes it possible to become root after the installation of osso-xterm?

    Comment by jdr93 — May 26, 2006 #

  3. yes - you need to enable the Research & Development mode (R&D or RD mode) on the 770, which enables you to execute sudo gainroot to get a root shell.

    http://maemo.org/maemowiki/HowDoiBecomeRoot

    ubergEEk

    Comment by admin — May 29, 2006 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^