Meego Wiki
Views

SDK/Installing openssh in MeeGo

From MeeGo wiki
< SDK
Revision as of 12:43, 14 April 2011 by Amigadave (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

By David Medawar

Note: this tutorial may be extended to configurations not mentioned below, such as different hardware, etc.
Note: all of the tutorial steps below were needed. Some unverified configurations may require more or less steps.

Why openssh?

There is overhead in manually copying over, installing, and running an RPM on a MeeGo target device every time source code is rebuilt. SSH, in conjunction with a virtualized MeeGo software stack on the same development system, streamlines the process of testing significantly with the click of the "Run" option in MeeGo SDK.

Here, these steps assume that the developer has setup a virtualized MeeGo software stack for quick app testing. This especially helps in the case where an actual MeeGo target isn't readily available for use. After building source code, the MeeGo SDK can connect to the virtualized MeeGo stack through the guest on the same system over ssh. This allows for immediately running a new build without delay.

This document was verified using the following configuration:

  • VMPlayer latest version as of this document date
  • Windows 7 64 bit development desktop
  • Meego netbook 1.1 ia32 image (from Oct 2010, official)
    • Note: There have been known issues virtualizing MeeGo with some of the other MeeGo versions such as 1.1 Tablet and 1.1 UX

Steps

Here are the steps that were needed to install openssh for MeeGo.

  1. Become root in the MeeGo terminal:
    $ sudo su
  2. If behind a firewall, ensure your proxy settings are correct:
    # export http_proxy=http://<Proxy_address>:<Port_number>
  3. Add the MeeGo SDK repository with the following command:
    # zypper addrepo –f http://repo.meego.com/MeeGo/sdk/host/repos/meego/1.1/meego-sdk.repo
  4. Ensure all of your repo packages are up to date:
    # zypper update
    (I got a bunch of errors and this step may not be necessary for the solution that we arrive at, but for the sake of reproducibility, give it a try)
  5. Try:
    zypper install –t patch 1.1-Core-Updates
    This is recommended here: https://bugs.meego.com/show_bug.cgi?id=10113. I chose "solution 1" when asked to uninstall previous packages. Reboot the virtual machine when prompted to do so.
  6. After reboot, enter terminal again, become root, and set proxy again, if necessary
  7. Edit the file /etc/zypp/repos.d/core.repo and set the following values:
    Enabled: 1
    Type: rpm-md
    
  8. Make sure the repos are up to date:
    # zypper ref
    You may get an error on one of the debug repos. This is OK.
  9. Now install open ssh:
    # zypper install openssh-server
    ssh is now ready to be used
Personal tools