Meego Wiki
Views

SDK/Installing openssh in MeeGo

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
(Installing openssh on a virtual MeeGo software stack reduces developer overhead!)
Line 1: Line 1:
-
Tutorial: Installing openssh in MeeGo
+
<h2>Tutorial: Installing openssh in MeeGo</h2>
-
 
+
By David Medawar
By David Medawar
-
Note: this tutorial may be extended to configurations not mentioned below, such as different hardware, etc.
+
<b>Note: this tutorial may be extended to configurations not mentioned below, such as different hardware, etc.</b><br>
 +
<b>Note: all of the tutorial steps below were needed.  Some unverified configurations may require more or less steps.</b>
-
Note: all of the tutorial steps below were neededSome unverified configurations may require more or less steps.
+
<h3>Why openssh?</h3>
 +
There is overhead in manually copying over, installing, and running an RPM on a MeeGo target device every time source code is rebuiltSSH, 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.
-
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, 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.
-
 
+
-
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:
This document was verified using the following configuration:
 +
<ul>
 +
<li>VMPlayer latest version as of this document date</li>
 +
<li>Windows 7 64 bit development desktop</li>
 +
<li>Meego netbook 1.1 ia32 image (from Oct 2010, official)</li>
 +
<li>Note:  There have been known issues virtualizing MeeGo with some of the other MeeGo versions such as 1.1 Tablet and 1.1 UX</li>
 +
</ul>
-
VMPlayer latest version as of this document date
+
<h3>Steps</h3>
-
Windows 7 64 bit development desktop
+
Here are the steps that were needed to install openssh for MeeGo.  
-
Meego netbook 1.1 ia32 image (from Oct 2010, official)
+
<ol>
-
NOTE!  There have been known issues virtualizing MeeGo with some of the other MeeGo versions such as 1.1 Tablet and 1.1 UX
+
<li>Become root in the MeeGo terminal:
-
 
+
  <pre>$ sudo su</pre>
-
STEPS: Here are the steps that were needed to install openssh for MeeGo.  
+
</li>
-
 
+
  <li>If behind a firewall, ensure your proxy settings are correct:
-
1) Become root in the MeeGo terminal (ie: "sudo su" command)
+
<pre># export http_proxy=http://<Proxy_address>:<Port_number></pre>
-
 
+
</li>
-
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:
+
<li>Add the MeeGo SDK repository with the following command:<br>
-
export http_proxy=http://<Proxy_address>:<Port_number>  
+
  <pre># zypper addrepo –f http://repo.meego.com/MeeGo/sdk/host/repos/meego/1.1/meego-sdk.repo</pre>
-
 
+
  </li>
-
3) Add the MeeGo sdk repo with the following command
+
  <li>Ensure all of your repo packages are up to date:
-
zypper addrepo –f http://repo.meego.com/MeeGo/sdk/host/repos/meego/1.1/meego-sdk.repo
+
    <pre># zypper update</pre>
-
 
+
(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)
-
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
+
  </li>
-
 
+
  <li>Try "zypper install –t patch 1.1-Core-Updates".  This is recommended here: https://bugs.meego.com/show_bug.cgi?id=10113I chose "solution 1" when asked to uninstall previous packagesReboot the virtual machine when prompted to do so
-
5) Try "zypper install –t patch 1.1-Core-Updates".  This is recommended here:
+
  </li>
-
https://bugs.meego.com/show_bug.cgi?id=10113
+
  <li>After reboot, enter terminal again, become root, and set proxy again, if necessary</li>
-
I chose "solution 1" when asked to uninstall previous packages
+
  <li>Edit the file /etc/zypp/repos.d/core.repo and set the following values:
-
Reboot the virtual machine when prompted to do so
+
    <pre>Enabled: 1
-
 
+
Type: rpm-md</pre>
-
6) After reboot, enter terminal again, become root, and apply the above proxy export command if needed
+
  </li>
-
 
+
  <li>Make sure the repos are up to date:
-
7) edit the file /etc/zypp/repos.d/core.repo and make following changes:
+
    <pre># zypper ref</pre>
-
Enabled: 0-->1
+
  You may get an error on one of the debug repos.  This is OK.</li>
-
Type: NONE-->rpm-md
+
  <li>Now install open ssh:
-
 
+
    <pre># zypper install openssh-server</pre>
-
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
+
  ssh is now ready to be used</li>
-
 
+
</ol>
-
9) Now install open ssh: "zypper install openssh-server".  This step finally works.
+

Revision as of 23:27, 13 April 2011

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 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