diff --git a/builder/assets/index.html b/builder/assets/index.html new file mode 100644 index 00000000..9c3074ca --- /dev/null +++ b/builder/assets/index.html @@ -0,0 +1,13 @@ +

CLEVER Drone Kit Tools

+ + + + diff --git a/builder/assets/monkey-clever b/builder/assets/monkey-clever new file mode 100644 index 00000000..9856650a --- /dev/null +++ b/builder/assets/monkey-clever @@ -0,0 +1,57 @@ +# Default Host - Configuration +# ============================ +# Here the variable principals of the program are defined in respect +# to the configuration of the different types of directives. + +[HOST] + # ServerName: + # ----------- + # Allow you to set a host and domain name (e.g monkey.linuxchile.cl). If + # you are working in a local network just set your IP address or if you + # are working like localhost set your loopback address (127.0.0.1). + + ServerName 0.0.0.0 + + # DocumentRoot: + # ------------- + # This variable corresponds to the location of the main server directory + # of the web pages, where the files of your site are located. + # + # Example: + # DocumentRoot /home/krypton/htdocs + + DocumentRoot /root/monkey-static + + # Redirect: + # --------- + # Under specific conditions, you may want the server performs a HTTP + # redirect when this Virtual Host is reach. If that is the case, append + # to the Redirect key the value of the address where to redirect the + # HTTP client. + # + # Redirect http://monkey-project.com + +[LOGGER] + # AccessLog: + # ---------- + # Registration file of correct request. + + AccessLog /var/log/monkey-clever/access.log + + # ErrorLog: + # --------- + # Registration file of incorrect request. + + ErrorLog /var/log/monkey-clever/error.log + +[ERROR_PAGES] + 404 404.html + +[HANDLERS] + # FastCGI + # ======= + # Match /.*\.php fastcgi + + # CGI + # === + # Match /cgi-bin/.*\.cgi cgi diff --git a/builder/image-build.sh b/builder/image-build.sh index 25486c2d..3bf37175 100755 --- a/builder/image-build.sh +++ b/builder/image-build.sh @@ -83,6 +83,11 @@ ${BUILDER_DIR}/image-resize.sh ${IMAGE_PATH} max '7G' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/init_rpi.sh' '/root/' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/hardware_setup.sh' '/root/' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} exec ${SCRIPTS_DIR}'/image-init.sh' ${IMAGE_VERSION} ${SOURCE_IMAGE} + +# Monkey +${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/monkey-clever' '/root/' +${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/index.html' '/root/monkey-static/' + # Butterfly ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/butterfly.service' '/root/' ${BUILDER_DIR}/image-chroot.sh ${IMAGE_PATH} copy ${SCRIPTS_DIR}'/assets/butterfly.socket' '/root/static' diff --git a/builder/image-software.sh b/builder/image-software.sh index 8bbb59e9..763afeea 100755 --- a/builder/image-software.sh +++ b/builder/image-software.sh @@ -79,6 +79,7 @@ python-wstool=0.1.17-1 \ python-rosinstall=0.7.8-1 \ build-essential=12.3 \ libffi-dev \ +monkey=1.6.9-1 \ > /dev/null \ && echo_stamp "Everything was installed!" "SUCCESS" \ || (echo_stamp "Some packages wasn't installed!" "ERROR"; exit 1) @@ -94,6 +95,9 @@ ln -s /root/butterfly.service /lib/systemd/system/ ln -s /root/butterfly.socket /lib/systemd/system/ systemctl enable butterfly.socket +echo_stamp "Setup Monkey" +ln -s /root/monkey-clever /etc/monkey/sites/clever + echo_stamp "Add .vimrc" cat << EOF > /home/pi/.vimrc set mouse-=a