source: clfs-embedded/BOOK/beyond-net/common/dropbear.xml@ f14d2fe

Last change on this file since f14d2fe was 659afd8, checked in by William Harrington <kb0iic@…>, 12 years ago

Add/edit dropbear installation bootscripts section/command.

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[3bb8e6a]1<?xml version="1.0" encoding="ISO-8859-1"?>
[bd48e48]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3bb8e6a]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[64a2454]8<sect1 id="ch-beyond-net-dropbear" role="wrap">
[3bb8e6a]9 <?dbhtml filename="dropbear.html"?>
10
11 <title>Dropbear-&dropbear-version;</title>
12
[64a2454]13 <indexterm zone="ch-beyond-net-dropbear">
[3bb8e6a]14 <primary sortas="a-Dropbear">Dropbear</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>Dropbear is a relatively small SSH 2 server and client. Dropbear has a small
21 memory footprint suitable for memory-constrained environments, while still having
22 the same features as OpenSSH. It does not depend on OpenSSL and it has a MIT
23 style license. Optionally it can even be made smaller.
24 </para>
25
26 </sect2>
27
28 <sect2 role="installation">
29 <title>Installation of Dropbear</title>
30
[489ddbd]31 <para os="s1">Dropbear incorrectly calls ld instead of gcc for linking, so fix it:</para>
[4fc3670]32
[489ddbd]33 <screen os="s2"><userinput>cp Makefile.in{,.orig}
[36929b7]34sed -e s/@LD@/@CC@/ Makefile.in.orig > Makefile.in</userinput></screen>
[4fc3670]35
[3bb8e6a]36 <para os="a">Configure dropbear:</para>
37
[efb31cd]38<screen os="b"><userinput>CC="${CC} -Os" ./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen>
[3bb8e6a]39
[8520e58]40 <para os="c">Now we will utilize /dev/urandom instead of /dev/random. To allow
[83ea4ad]41 this to be utilized we use the following sed:</para>
[8520e58]42
43<screen os="d"><userinput>cp -v options.h options.h.backup
44sed -e "s@/dev/random@/dev/urandom@" options.h.backup > options.h</userinput></screen>
45
46 <note os="e">
[3bb8e6a]47 <para>We are just telling dropbear to use the default configuration.
48 For those for more adventureous, edit options.h to further configure dropbear.</para>
49 </note>
50
[8520e58]51 <para os="f">Compile the package:</para>
[3bb8e6a]52
[8520e58]53<screen os="g"><userinput>make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"</userinput></screen>
[3bb8e6a]54
[8520e58]55 <para os="h">Install the package:</para>
[3bb8e6a]56
[3ca2208]57<screen os="i"><userinput>make MULTI=1 PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" \
58 install DESTDIR=${CLFS}
[c07530e]59ln -svf /usr/bin/dropbearmulti ${CLFS}/usr/sbin/dropbear
60ln -svf /usr/bin/dropbearmulti ${CLFS}/usr/bin/dbclient
61ln -svf /usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearkey
62ln -svf /usr/bin/dropbearmulti ${CLFS}/usr/bin/dropbearconvert
63ln -svf /usr/bin/dropbearmulti ${CLFS}/usr/bin/scp</userinput></screen>
[3bb8e6a]64
[cff0bb4]65 <para os="j">Create the directory for the dropbear key files:</para>
66
[ba47a78]67<screen os="k"><userinput>install -dv ${CLFS}/etc/dropbear</userinput></screen>
[cff0bb4]68
[659afd8]69 </sect2>
70
71 <sect2 role="bootscripts">
72 <title>Installation of Dropbear Bootscripts</title>
73
74 <para os="l">From the clfs-bootscripts package, install the Dropbear
75 bootscripts:</para>
[884672b]76
[659afd8]77<screen os="m"><userinput>make install-dropbear DESTDIR=${CLFS}</userinput></screen>
[884672b]78
79
[3bb8e6a]80 </sect2>
81
82 <sect2 id="contents-dropbear" role="content">
83 <title>Contents of Dropbear</title>
84
85 <segmentedlist>
86 <segtitle>Installed programs</segtitle>
87
88 <seglistitem>
89 <seg>To be Written</seg>
90 </seglistitem>
91 </segmentedlist>
92
93 </sect2>
94
95</sect1>
Note: See TracBrowser for help on using the repository browser.