How to Install DHCPd and TFTD daemon on Ubuntu Desktop

Asked by Burt Kloppers

Hi, I am very very new to Linux, I have installed Ubuntu Desktop and would like to know how to install and configure the box with DHCPd and TFTD daemon.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tony Mugan (tmugan) said :
#1

So you want to use this machine as a DHCP Server and a FTP Server I presume?
If so, can you let us know what it is you wish to use it for? There may be another way to achieve it.

If it is what you want, you need to install the associated daemon packages first, then configure (using webmin, I would recommend)

Open a terminal window (applications menu, Accessories) and type...

sudo apt-get install dhcpd tftpd

You should consider why it is that you want to do this on a desktop though.
There are other ways to transfer files e.g. ssh, samba.

And generally your home router will act as a DHCP Server.

Revision history for this message
Burt Kloppers (burt-imagosa) said :
#2

Hi,

Thanks for the fast reply.

The box will be used to upgrade or flash IPTV STB’s with new software, I was handed this project and I don’t know a thing about Linux but is learning very slowly fast

I have a guide telling me how to configure the server to do this but I first need to install and configure the DHCPd daemon and the TFTP daemon.

Please find a cut of the document below, if you have e-mail address I am willing to mail the doc to you.

Software Installation Process

This document is intended to be a basic guide on how to install the Amino Multicast Upgrade Server. It is by no means intended to be a comprehensive document, and will not go into great detail. It will only cover the bare minimum required to get a multicast server up and running.

This document assumes that you have a tftd and dhcpd daemon installed and will be using the configuration supplied by Amino. If you plan on using a different configuration you should use the example configs as a guide when setting up your servers.

1. Log on to your linux server as root
2. Create the following directories:
* mkdir /usr/local/amino
* mkdir /usr/local/amino/images
* mkdir /usr/local/amino/keys
* mkdir /usr/local/amino/releases
* mkdir /usr/local/amino/releases/A103
* mkdir /usr/local/amino/releases/A110
3. Download the appropriate software for product i.e. A103.fresco.0.8.5.tgz (AmiNET103 0.8.5 Fresco release).
4. Move this file to the appropriate folder i.e. /usr/local/amino/releases/A103
* mv A103.fresco.0.8.5.tgz /usr/local/amino/releases/A103
5. Unpack the software image
* cd /usr/local/amino/releases/A103
* tar zxvf A103.fresco.0.8.5.tgz
6. You will now have a directory called "0.8.5" which will contain all the software components, change to this directory:
* cd 0.8.5
7. You will see the following directories:
bootsrap - contains the files needed for signing a bootstrap image
romupgrade - contains the files needed when doing a tftp to multicast rom conversion
server - contains files needed for the mcastbood server
upgradeimage - contains the files needed for signing a upgrade image
utils - contains the generic amino keys, STBremoteconf and misc binaries required for above processes.
8. Change to the utils directory and do the following:
* cd utils
* cd keys
* cd amino
* cp * /usr/local/amino/keys
* cd ../../
* cp * /usr/local/bin
( You will see a warning message about it skipping the keys directory - do not worry this is expected)
* cd ..
9. Change to the server directory and do the following:
(If you have a preconfigured dhcpd server you should skip step 3 - you will however need to ensure you have all the additional sections configured.)
* cd server
* cp mcastbootd /usr/local/bin
* cp mcastbootd.conf /etc
* cp dhcpd.conf /etc
* cd ..
10. Edit the mcastbootd config file:
* vi /etc/mcastbootd.conf
* In the server section add the line:
ImageDir=/usr/local/amino/images
* Edit the Multicast Address for the bootstrap i.e 225.50.50.50
* Edit the Multicast Port for the bootstrap 11111
* Edit the Multicast Address for the bootstrap i.e 225.50.50.51
* Edit the Multicast Port for the bootstrap 11111
(The values for these items can be any address and port of your choosing. However they must both use a unique multicast address. The important thing to keep in mind is these values must match what you have configured in your dhcpd server.)
11. Edit the dhcpd config file:
* vi /etc/dhcpd.conf
* Confirm that the Multicast Addresses & Ports match those in your mcastbood.conf
12. Prepare tftpd for tftp to multicast conversions if required:
* cd rompupgrade
* cd tftpboot
* cp * /tftpboot
* cd ..
* cd ..
13. Export customer key
* export CUSTOMER_KEY=/usr/local/amino/keys/KEY.private
14. Create and sign the bootstrap image
* cd bootstrap
* ./signbootstrap
* when prompted enter the passphrase "markskey"
* mv bootstrap.signed /usr/local/amino/images
* cd ..
15. Create and sign the upgrade image
* cd upgradeimage
* ./signupgrade 0
* when prompted enter the passphrase "markskey"
* mv mc2.mcfs /usr/local/amino/images
At this point your Amino Multicast Server is now fully installed and configured, you should restart dhcpd to make sure all changes have taken effect:
* /etc/init.d/dhcpd restart
To run mcastbood:
* mcastbootd
or to start it in debug mode
* mcastbootd -D

Revision history for this message
Tony Mugan (tmugan) said :
#3

The commands above should work to install both of the daemons you need

sudo apt-get install dhcpd tftpd

Revision history for this message
Burt Kloppers (burt-imagosa) said :
#4

Hi,

I dont know what I m doing wrong but this is what I get when I use te above comands. It is as if the software is not availible an I need to download it, but I don't know where.

burt@amino-Linux:~$ sudo apt-get install dhcpd
[sudo] password for burt:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package dhcpd

burt@amino-Linux:~$ sudo apt-get install tftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package tftpd
burt@amino-Linux:~$

Revision history for this message
Tony Mugan (tmugan) said :
#5

Try going to "Software sources" under syatsm menu, administration and choose the checkboxes for "universe" and "multiverse".
The try the command again.

Revision history for this message
Burt Kloppers (burt-imagosa) said :
#6

They are ticked and still nothing

Revision history for this message
Tony Mugan (tmugan) said :
#7

Ok, try just clicking on the "Download From" dropdown list and choose "Other", then select "Best Server".
This will choose another server for you based on the closest to your location.

Then try the command again.

Can you help with this problem?

Provide an answer of your own, or ask Burt Kloppers for more information if necessary.

To post a message you must log in.