Meego Wiki
Views

SDK/Installing openssh in MeeGo

From MeeGo wiki
< SDK(Difference between revisions)
Jump to: navigation, search
(Installing openssh in MeeGo benefits developers using the SDK!)
(categorise, wikify section headings and list)
 
(2 intermediate revisions not shown)
Line 1: Line 1:
-
Tutorial: Installing openssh in MeeGo
+
By David Medawar
-
ByDavid Medawar
+
<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: this tutorial may be extended to configurations not mentioned below, such as different hardware, etc.
+
==Why openssh?==
-
Note: all of the tutorial steps below were neededSome unverified configurations may require more or less steps.
+
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:
 +
* 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
-
VMPlayer latest version as of this document date
+
==Steps==
-
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 dateYou may get an error on one of the debug repos. This is OK
+
Here are the steps that were needed to install openssh for MeeGo.
 +
<ol>
 +
<li>Become root in the MeeGo terminal:<pre>$ sudo su</pre></li>
 +
<li>If behind a firewall, ensure your proxy settings are correct:<pre># export http_proxy=http://<Proxy_address>:<Port_number></pre></li>
 +
<li>Add the MeeGo SDK repository with the following command:<pre># zypper addrepo –f http://repo.meego.com/MeeGo/sdk/host/repos/meego/1.1/meego-sdk.repo</pre></li>
 +
<li>Ensure all of your repo packages are up to date:<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)</li>
 +
<li>Try:<pre>zypper install –t patch 1.1-Core-Updates</pre>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.</li>
 +
<li>After reboot, enter terminal again, become root, and set proxy again, if necessary</li>
 +
<li>
 +
Edit the file <code>/etc/zypp/repos.d/core.repo</code> and set the following values:
 +
<pre>
 +
Enabled: 1
 +
Type: rpm-md
 +
</pre>
 +
</li>
 +
<li>Make sure the repos are up to date:<pre># zypper ref</pre>You may get an error on one of the debug repos. This is OK.</li>
 +
<li>Now install open ssh:<pre># zypper install openssh-server</pre>ssh is now ready to be used</li>
 +
</ol>
-
9) Now install open ssh: "zypper install openssh-server".  This step finally works.
+
[[Category:SDK]]
 +
[[Category:Tutorial]]

Latest revision as of 12:43, 14 April 2011

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