version 14, including all changes.
.
Rev |
Author |
# |
Line |
8 |
DrewBroadley |
1 |
!![PXE]/[NFS] Install of [FreeBSD] 5.x |
|
|
2 |
|
|
|
3 |
See [PXE] for more information about [PXE] |
|
|
4 |
|
|
|
5 |
__IMPORTANT__: None of the follow applies any security what so ever. You should use a FireWall and every other tool at your disposal to secure these services. [TFTP] has NO built-in security and [NFS] sucks just about as much. |
|
|
6 |
|
|
|
7 |
You will need [DHCP] (isc-dhcpd 3 or above) setup and working on a server. |
|
|
8 |
On your server machine, add the following lines to your [DHCP] configuraton: |
|
|
9 |
|
|
|
10 |
next-server 10.x.y.z; |
|
|
11 |
|
|
|
12 |
Where 10.x.y.z is the [IP] of your server. In your subnet declaration add |
|
|
13 |
|
|
|
14 |
option root-path "/usr/local/export/freebsd"; # This is where you have your install data located |
|
|
15 |
filename "pxeboot" |
|
|
16 |
|
|
|
17 |
Restart dhcpd. Then copy the contents of your [FreeBSD] 5.2.1 ISO or CD-Rom to /usr/local/export/freebsd. |
|
|
18 |
|
|
|
19 |
Add to your /etc/exports file (man exports) |
|
|
20 |
|
|
|
21 |
/usr -alldirs -maproot=root -ro |
|
|
22 |
|
|
|
23 |
And make sure your [NFS] server is functioning correctly, you might need to add: |
|
|
24 |
|
|
|
25 |
nfs_server_enable="YES" |
|
|
26 |
nfs_client_enable="YES" |
|
|
27 |
rpcbind_enable="YES" |
|
|
28 |
mountd_enable="YES" |
|
|
29 |
|
|
|
30 |
To your /etc/rc.conf and run /etc/rc.d/nfsd start or similar. To check that it's working properly you can use |
|
|
31 |
|
|
|
32 |
showmount -e |
|
|
33 |
|
|
|
34 |
To list your available [NFS] exports and don't forget to check /var/log/messages. |
|
|
35 |
|
|
|
36 |
Now you need to setup a [TFTP] server. First enable it in inetd by uncommenting |
|
|
37 |
|
|
|
38 |
tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot |
|
|
39 |
|
|
|
40 |
In /etc/inetd.conf and then (re)start inetd. Make the directory /tftpboot and copy /usr/local/export/freebsd/boot/pxeboot into that directory. |
|
|
41 |
|
|
|
42 |
Now all you need to do is turn on the target machine, watch the [PXE] Bios acquire an [IP] address and you should soon see the [FreeBSD] [BootLoader]. From now on the installer is just like a normal CD install. However, when it asks you for the location of your install media choose NFS and give the location: |
|
|
43 |
|
|
|
44 |
10.x.y.z:/usr/local/export/freebsd |
|
|
45 |
|
|
|
46 |
Happy installing. |
|
|
47 |
|
|
|
48 |
---- |
|
|
49 |
|
|
|
50 |
[PCMCIA] cards not being recognised when plugged in ? |
|
|
51 |
|
|
|
52 |
Try putting this into /boot/loader.conf: |
|
|
53 |
|
|
|
54 |
hw.pci.allow_unsupported_io_range=1 |
|
|
55 |
|
|
|
56 |
- DrewBroadley |
|
|
57 |
|
|
|
58 |
---- |
|
|
59 |
|
9 |
JohnMcPherson |
60 |
[GNOME] not showing up your battery status properly and/or giving you an 'APM not loaded error' when ACPI is enabled? |
8 |
DrewBroadley |
61 |
|
|
|
62 |
Adding to /etc/rc.conf the following: |
|
|
63 |
|
|
|
64 |
apmd_enable="yes" |
|
|
65 |
|
|
|
66 |
This will give you an error in dmesg going "/etc/rc: WARNING: /dev/apmctl not found; kernel is missing apm(4)" but this will get rid of that nagging error in Gnome. |
|
|
67 |
|
|
|
68 |
- DrewBroadley |
10 |
PhilMurray |
69 |
|
|
|
70 |
---- |
11 |
CraigBox |
71 |
|
14 |
DanielLawson |
72 |
!!Delete, Home and End key don't work in [FreeBSD] (using [PuTTY] and bash) |
11 |
CraigBox |
73 |
|
|
|
74 |
Add the following to ~/.inputrc: |
|
|
75 |
|
12 |
CraigBox |
76 |
<verbatim> |
11 |
CraigBox |
77 |
"\e[3~": delete-char |
|
|
78 |
"\e[1~": beginning-of-line |
|
|
79 |
"\e[4~": end-of-line |
12 |
CraigBox |
80 |
</verbatim> |
11 |
CraigBox |
81 |
|
14 |
DanielLawson |
82 |
---- |
|
|
83 |
!! Where did 'seq' go? |
10 |
PhilMurray |
84 |
FreeBSD does not have GNU 'seq' by default installed, it has 'jot' instead and is more functional than 'seq'. See the [man page|http://www.freebsd.org/cgi/man.cgi?query=jot&apropos=0&sektion=0&manpath=FreeBSD+5.3-RELEASE+and+Ports&format=html]. |