Meego Wiki
Views

SDK/Installing openssh in MeeGo

From MeeGo wiki
< SDK
Revision as of 22:49, 13 April 2011 by Davidisflash (Talk | contribs)
Jump to: navigation, search

Tutorial: Installing openssh in MeeGo

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 install openssh for MeeGo? One big benefit is for MeeGo app developers as there is overhead in manually copying over, installing, and running a rpm build on a target MeeGo device every time a new source code build is performed. 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, MeeGo SDK can then 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 (ie: "sudo su" command)

2) IMPORTANT! When behind a firewall, we need to ensure proxy settings are correct. I had to do the following method to properly set the proxy address: export http_proxy=http://<Proxy_address>:<Port_number>

3) Add the MeeGo sdk repo with the following command zypper addrepo –f http://repo.meego.com/MeeGo/sdk/host/repos/meego/1.1/meego-sdk.repo

4) Now make sure all of your repo packages are up to date by executing the "zypper update" command. 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 apply the above proxy export command if needed

7) edit the file /etc/zypp/repos.d/core.repo and make following changes: Enabled: 0-->1 Type: NONE-->rpm-md

8) Now do a "zypper ref" command to make sure repos are up to date. You may get an error on one of the debug repos. This is OK

9) Now install open ssh: "zypper install openssh-server". This step finally works.

Personal tools