{{WarningMessage|text=This application note was validated against specific versions of the kit only. It may not work with other versions. Supported versions are listed in the ''History'' section.}}
Here we give an example in how to configure the Apache webserver on a Ubuntu 14.04 LTS distribution to serve Yocto packages. We assume that you already configure the Ubuntu networking properly (e.g. setup public or local DNS) and that you already install Apache with its dependencies.
* Create a new virtualhost by entering the following text inside, for example, <code>/etc/apache2/sites-available/myyocto</code>
</pre>
* copy the feeds and packages from your build environment into the webserver directory, e.g. via ftp or scp
* <code>xelk-2.2.0-cortexa9hfcortexa9hf_vfp_neon</code> is the name of the channel* <code>http://myyocto.example.com/xelk-2.2.0/cortexa9hf_vfp_neon</code> is the URL of the webserver We assume that network interface has been already configured for Internet access. In any case, a simple network configuration can be done directly on serial console with the following commands: <pre class="board-terminal">root@imx6qxelk:~# ifconfig eth0 192.168.0.94root@imx6qxelk:~# route add default gw 192.168.0.254root@imx6qxelk:~# echo "nameserver 8.8.8.8" > /etc/resolv.conf</pre> For example:'''<pre class="board-terminal">root@imx6qxelk:~# smart channel --add cortexa9hf_neon type=rpm-md baseurl=http://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/ Alias: cortexa9hf_neonType: rpm-mdBase URL: http://yocto.dave.eu/xelk-3.0.0/cortexa9hf_neon/ Include this channel? (y/N): y</pre>
You can also add a ''local'' directory, for example mounted via NFS directly on target, with the following command:
After you configure the channel and/or update packages feed on server, you need to update smart database:
The package dependencies will be resolved automatically.
== Other useful SMART commands ==
A brief guide to SMART command line interface is [http://labix.org/smart/user-guide/Command%20Line%20Interface here]. In the next section we'll show some example of SMART usage.
=== Gathering statistics ===
To view some information on repositories use <code>smart stats</code>
Finally you === List installed packages === User can install see the list of installed packages (and all its dependencies) on the target with the following command:<code>smart query --installed</code>
E=== List available packages === To list the available packages into the current configured channels use <code>smart query</code> Please note that this will show all package, it's usually more useful to give it a pattern, e.g.: