Changes between Version 9 and Version 10 of FreeBSDOnEmbeddedDevice
- Timestamp:
- Feb 2, 2012, 10:44:22 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FreeBSDOnEmbeddedDevice
v9 v10 94 94 == Package install == 95 95 96 === Package Install Pre-Req === 97 chroot# setenv FTP_PASSIVE_MODE yes 98 chroot# PACKAGEROOT=ftp://ftp.nl.FreeBSD.org 99 96 100 === dnsmasq === 97 101 98 102 dnsmasq used for local network dns and dhcp: 99 node# pkg_add -r dnsmasq 100 node# echo "dnsmasq_enable=YES" >> /etc/rc.conf 103 104 chroot# pkg_add -r dnsmasq 105 chroot# echo "dnsmasq_enable=YES" >> /etc/rc.conf 101 106 102 107 {{{ 103 108 #!sh 104 109 node# cat <<EOF > /usr/local/etc/dnsmasq.conf 105 interface= sis0110 interface=vr0 106 111 107 112 dhcp-range=192.168.42.100,192.168.42.200 … … 128 133 129 134 === Flash disk protection === 130 node# echo "update_motd=NO" >> /etc/rc.conf131 node# echo "tmpmfs=YES" >> /etc/rc.conf135 chroot# echo "update_motd=NO" >> /etc/rc.conf 136 chroot# echo "tmpmfs=YES" >> /etc/rc.conf 132 137 Tip: You could make /var completely read-only, but I hate the details like package management getting lost. Flash cards these days are cheap anyways, mine lived for 1 year after extensive use. Of course with read-only this will be _much_ longer. 133 node# echo "varmfs=YES" >> /etc/rc.conf138 chroot# echo "varmfs=YES" >> /etc/rc.conf 134 139 Tip: Having your flash living in read-only gives you added security and increases the live-time of your (older) Flash cards 135 node# sed '/1a/ s/rw/ro/' /etc/fstab > /etc/fstab.new; mv /etc/fstab.new /etc/fstab140 chroot# sed '/1a/ s/rw/ro/' /etc/fstab > /etc/fstab.new; mv /etc/fstab.new /etc/fstab 136 141 137 142 === various ===