Changes between Version 9 and Version 10 of FreeBSDOnEmbeddedDevice


Ignore:
Timestamp:
Feb 2, 2012, 10:44:22 AM (13 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSDOnEmbeddedDevice

    v9 v10  
    9494== Package install ==
    9595
     96=== Package Install Pre-Req ===
     97chroot# setenv FTP_PASSIVE_MODE yes
     98chroot# PACKAGEROOT=ftp://ftp.nl.FreeBSD.org
     99
    96100=== dnsmasq ===
    97101
    98102dnsmasq used for local network dns and dhcp:
    99 node# pkg_add -r dnsmasq
    100 node# echo "dnsmasq_enable=YES" >> /etc/rc.conf
     103
     104chroot# pkg_add -r dnsmasq
     105chroot# echo "dnsmasq_enable=YES" >> /etc/rc.conf
    101106
    102107{{{
    103108#!sh
    104109node# cat <<EOF > /usr/local/etc/dnsmasq.conf
    105 interface=sis0
     110interface=vr0
    106111
    107112dhcp-range=192.168.42.100,192.168.42.200
     
    128133
    129134=== Flash disk protection ===
    130 node# echo "update_motd=NO" >> /etc/rc.conf
    131 node# echo "tmpmfs=YES" >> /etc/rc.conf
     135chroot# echo "update_motd=NO" >> /etc/rc.conf
     136chroot# echo "tmpmfs=YES" >> /etc/rc.conf
    132137Tip: 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.conf
     138chroot# echo "varmfs=YES" >> /etc/rc.conf
    134139Tip: 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/fstab
     140chroot# sed '/1a/ s/rw/ro/' /etc/fstab > /etc/fstab.new; mv /etc/fstab.new /etc/fstab
    136141
    137142=== various ===