User:Plauchu Edwin: Difference between revisions

From Yocto Project
Jump to navigationJump to search
Line 45: Line 45:
Need to get 0 B/329 kB of archives. After unpacking 886 kB will be used.
Need to get 0 B/329 kB of archives. After unpacking 886 kB will be used.
Do you want to continue? [Y/n/?
Do you want to continue? [Y/n/?
</pre>
At the sametime we have set up a simple DNS server. To test it, use your favorite DNS lookup tool pointed at localhost
<pre>
nslookup debian.org localhost
</pre>
</pre>



Revision as of 16:52, 17 October 2016

Software developer over several open source languages

Setup harness server

Setup NFS

AFT applies Network file system to share /home/tester directory where images and other files used in flashing for PC-devices within AFT net can be found.

NFS is installed ?

To check if the NFS server is installed, we can do...

root@testing-harness:~# dpkg -l | grep nfs-kernel-server
How to install NFS ?

To install NFS these are the required packages...

root@testing-harness:~# aptitude install nfs-kernel-server
The following NEW packages will be installed:
  keyutils{a} libnfsidmap2{a} libtirpc1{a} nfs-common{a} nfs-kernel-server 
  rpcbind{a} 
0 packages upgraded, 6 newly installed, 0 to remove and 459 not upgraded.
Need to get 470 kB of archives. After unpacking 1 884 kB will be used.
Do you want to continue? [Y/n/?]
Sharing /home/tester directory
root@testing-harness:~# mkdir -p /home/tester
root@testing-harness:~# echo '/home/tester 192.168.1.0/24 (crossmnt,ro,root_squash,sync,no_subtree_check)' >> /etc/exports

Setup DNS cache and DHCP server for AFT net

DNSmasq provides two services, either of which can be used independently.

  1. DNS service
  2. DHCP service

A local DNS cache can speed up internet browsing because the user's applications will not need to access a domain name server when it looks up a domain name the computer has visited before.

How to install dnsmasq ?

To install dnsmasq these are the required packages...

root@testing-harness:~# aptitude  install dnsmasq
The following NEW packages will be installed:
  dns-root-data{a} dnsmasq dnsmasq-base{a} 
0 packages upgraded, 3 newly installed, 0 to remove and 459 not upgraded.
Need to get 0 B/329 kB of archives. After unpacking 886 kB will be used.
Do you want to continue? [Y/n/?

At the sametime we have set up a simple DNS server. To test it, use your favorite DNS lookup tool pointed at localhost

nslookup debian.org localhost
Configure DHCP server

To enable the DHCP server of AFT net, you will need to give it a range of IP addresses to hand out. The AFT net server would hand out 92 address starting at 192.168.1.2 and ending at 192.168.1.99.

echo 'dhcp-range=192.168.1.2,192.168.1.99,10m' >> /etc/dnsmasq.conf

To tell dnsmasq which ethernet interface it can and cannot listen on.

echo 'interface=eno1' >> /etc/dnsmasq.conf

During the creation of this document the interface eno1 is the unique one connected to AFT net.