Date: Wed, 7 Mar 2018 12:15:03 -0500 From: Mike <the.lists@mgm51.com> Cc: freebsd-arm@freebsd.org Subject: Re: Is maximum swap usage tunable? Message-ID: <90c0a76b-8682-1277-d0b5-297759e16b4f@mgm51.com> In-Reply-To: <20180306191359.GC51223@www.zefox.net> References: <CANCZdfq_MpxjUyVd-=%2BMiAQAER4TeDh9irhx_evdXwa3yt3h0g@mail.gmail.com> <20180303162605.GA41874@www.zefox.net> <20180304182831.GA44154@www.zefox.net> <CANCZdfpcccDuhJh4EF0C4KFz=dcN5mWvQ9aMiyF53kD=hMzy3Q@mail.gmail.com> <1520189171.38056.2.camel@freebsd.org> <20180304214003.GB44154@www.zefox.net> <20180305045723.GA47820@www.zefox.net> <637a406a-feba-23dc-be3c-d71d839503f7@mgm51.com> <20180305183331.GB47820@www.zefox.net> <1dabd314-28da-d8d6-b0f8-7269840eabb0@mgm51.com> <20180306191359.GC51223@www.zefox.net>
next in thread | previous in thread | raw e-mail | index | archive | help
fwiw... here is the script that I use to initialize the RPi3 after I install the image file. ===== #! /bin/sh # this script preps the Raspberry Pi for use # sequence is: # - find and load the image # - boot # - switch over to ssh, and upload this script # - log in, su to root, and run this script # echo " " echo "setting timezone" tzsetup # echo " " echo "removing freebsd account" cd /tmp pw userdel -n freebsd -r # echo " " User=test UserName="Test User" echo "adding ${User}" pw groupadd -n ${User} -g 1001 pw useradd -n ${User} -u 1001 -g 1001 -G wheel -c "${UserName}" \ -md /home/${User} -M 755 -w no -s /bin/tcsh # echo " " echo "setting password for root" /usr/bin/passwd root echo "setting password for ${User}" /usr/bin/passwd ${User} # echo " " echo "setting root's name to rpi3" pw usermod root -c rpi3 root # echo " " echo "setting up pkg" # needed for pkg because image was built against older userland ln -s /usr/lib/libarchive.so /usr/lib/libarchive.so.6 env ABI=FreeBSD:11:aarch64 pkg bootstrap test ! -d /usr/local/etc && mkdir -p /usr/local/etc echo 'ABI = "FreeBSD:11:aarch64";' >> /usr/local/etc/pkg.conf # # echo " " echo "creating swap space" SwapFile=/mnt/swap0 dd if=/dev/zero of=${SwapFile} bs=1m count=2048 chmod 0600 ${SwapFile} echo "md99 none swap sw,file=${SwapFile},late 0 0" >> /etc/fstab swapon -aL swapctl -l # df -h # echo " " # #=fini= ==========
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90c0a76b-8682-1277-d0b5-297759e16b4f>