Meego Wiki
Views

SDK/Docs/1.1/Setting up Netbook

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''Work in progress 2010-10-29'''
'''Work in progress 2010-10-29'''
-
This page explains how to prepare a netbook so it can act as a deployment target for MeeGo development.
+
This page explains how to prepare a netbook so it can be used as a [[SDK/Docs/1.1/Creating Hello World||deployment target for MeeGo development]].
-
Instructions for installing MeeGo on a netbook are [http://meego.com/devices/netbook/installing-meego-your-netbook available here].
+
If you don't have access to a netbook which can run MeeGo, you can use QEMU or Xephyr as a deployment target instead:
-
If you don't have access to a netbook which can run MeeGo, you can use QEMU or Xephyr as a deployment target instead.
+
* [[SDK/Docs/1.1/Configuring QEMU targets|Setting up QEMU targets]]
 +
* [[SDK/Docs/1.1/MeeGo SDK with Xephyr|Using Xephyr for development (Linux only)]]
-
???
+
== Preparing the netbook ==
 +
First you need to install MeeGo on the netbook. Instructions are [http://meego.com/devices/netbook/installing-meego-your-netbook available here].
 +
You will need a working network connection on the netbook, to make it accessible to the development host machine.
 +
Next, you need to add some extra packages and configuration so you can deploy to the netbook from Qt Creator. The following steps require a command line on the netbook; this is available from the ''Applications'' zone, under ''System Tools > Terminal''.
-
 
+
On the command line:
-
== Prepare the remote device ==
+
-
 
+
-
'''Note''': If you are using N900 for debugging, OpenSSH and gdbserver are included in the image. Thus, you do not have to install them separately.
+
-
 
+
-
Some devices require extra configuration and packages before you can deploy from Qt Creator to them. Install them from the command line as follows:
+
<ol>
<ol>
<li>
<li>
-
Deployment from Qt Creator to a real device uses SSH for file copying, so you need OpenSSH server on the device. If it's not already available, install it with:
+
Deployment from Qt Creator to a netbook uses SSH for file copying, so you need OpenSSH server on the device. If it's not already available, install it with:
<pre>sudo zypper install openssh-server</pre>
<pre>sudo zypper install openssh-server</pre>
To start the SSH server manually (you'll need to do this just after you've installed it, otherwise it won't be available until you reboot):
To start the SSH server manually (you'll need to do this just after you've installed it, otherwise it won't be available until you reboot):
Line 29: Line 28:
</li>
</li>
<li>
<li>
-
If you want to debug applications remotely, you need '''gdbserver''' on the remote device. If not available, install it with:
+
If you want to debug applications remotely, you need '''gdbserver''' on the netbook. If not available, install it with:
<pre>sudo zypper install gdb-gdbserver</pre>
<pre>sudo zypper install gdb-gdbserver</pre>
</li>
</li>
-
<li>The root user needs to be able to access the X server on the remote device. Configure this with:
+
<li>The root user needs to be able to access the X server on the netbook. Configure this with:
<pre>xhost +SI:localuser:root</pre>
<pre>xhost +SI:localuser:root</pre>
</li>
</li>
</ol>
</ol>

Revision as of 09:12, 29 October 2010

Work in progress 2010-10-29

This page explains how to prepare a netbook so it can be used as a |deployment target for MeeGo development.

If you don't have access to a netbook which can run MeeGo, you can use QEMU or Xephyr as a deployment target instead:

Preparing the netbook

First you need to install MeeGo on the netbook. Instructions are available here.

You will need a working network connection on the netbook, to make it accessible to the development host machine.

Next, you need to add some extra packages and configuration so you can deploy to the netbook from Qt Creator. The following steps require a command line on the netbook; this is available from the Applications zone, under System Tools > Terminal.

On the command line:

  1. Deployment from Qt Creator to a netbook uses SSH for file copying, so you need OpenSSH server on the device. If it's not already available, install it with:
    sudo zypper install openssh-server

    To start the SSH server manually (you'll need to do this just after you've installed it, otherwise it won't be available until you reboot):

    sudo /etc/init.d/sshd start

    To add it to the init sequence so it starts at boot time:

    sudo chkconfig --add sshd
  2. If you want to debug applications remotely, you need gdbserver on the netbook. If not available, install it with:
    sudo zypper install gdb-gdbserver
  3. The root user needs to be able to access the X server on the netbook. Configure this with:
    xhost +SI:localuser:root
Personal tools