Giter VIP home page Giter VIP logo

cox-solution-finder-nuc's Introduction

cox-solution-finder-nuc

Simple Express app to serve Cox Solution Finder project in the showroom.

Update static, public files:

./script/update-public.sh dev

Sync records:

./script/sync.rb dev

Example nginx config

This nginx config shows how to run the static site and this app as a subdirectory.

server {
  listen 80;
  server_name html.csf.dev.nookwit.com;
  root /home/stonewit/source/cox-solution-finder/public/;

  location / {
    index index.html;
  }

  rewrite ^/showroomstatus$ /_status_/update redirect;
  rewrite ^/_status_/update\.html$ /_status_/update redirect;
  location /_status_/ {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://localhost:3001/_status_/;
  }

  location /stats/ {
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://localhost:3001/stats/;
  }

  location /socket.io/ {
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_pass http://localhost:3001/socket.io/;
  }
}

Showroom WiFi

  • SSID: cox-sfv2-showroom-dev, cox-sfv2-showroom, or cox-sfv2-showroom-mxm
  • Password: s01uTIon5
  • URL: http://showroom.mxm

NUC-Dev

  • Ethernet Interface: enp0s25 (MAC b8:ae:ed:72:a1:e9)
  • nuc.showroom.dev.sfv2.cox.mxmcloud.com
  • WiFi Interface: wlp2s0 (MAC 34:13:e8:1e:e3:67)
  • DHCP: 192.168.63.1/24
  • SSID: cox-showroom-dev

NUC-1

  • Ethernet Interface: enp0s25 (MAC b8:ae:ed:72:0c:84)
  • nuc1.showroom.sfv2.cox.mxmcloud.com
  • WiFi Interface: wlp2s0 (MAC 34:13:e8:0f:7f:58)
  • DHCP: 192.168.127.1/25
  • SSID: cox-showroom-1

NUC-2

  • Ethernet Interface: enp0s25 (MAC b8:ae:ed:72:94:f9)
  • nuc2.showroom.sfv2.cox.mxmcloud.com
  • WiFi Interface: wlp2s0 (MAC 34:13:e8:1d:fe:48)
  • DHCP: 192.168.127.129/25
  • SSID: cox-showroom-2

NUC-3

  • Ethernet Interface: enp0s25 (MAC b8:ae:ed:72:31:ed)
  • nuc3.showroom.sfv2.cox.mxmcloud.com
  • WiFi Interface: wlp2s0 (MAC 34:13:e8:1f:e2:8a)
  • DHCP: 192.168.126.1/25
  • SSID: cox-showroom-3

NUC-4

  • Ethernet Interface: enp0s25 (MAC b8:ae:ed:72:27:a5)
  • nuc4.showroom.sfv2.cox.mxmcloud.com
  • WiFi Interface: wlp2s0 (MAC 34:13:e8:10:65:03)
  • DHCP: 192.168.126.129/25
  • SSID: cox-showroom-4

NUC Configurations

Update Date/time & setup NTP

yum install -y ntp ntpdate

Set timezone to UTC

timedatectl set-timezone UTC

Add these servers to the /etc/ntp.conf:

server time.nist.gov
server nist1-macon.macon.ga.us

Update time & hardware clock:

ntpdate time.nist.gov
hwclock --systohc

Start ntpdate:

systemctl enable ntpdate.service
systemctl start ntpdate.service

Firewall rules

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --permanent --add-service=dhcp
firewall-cmd --permanent --add-service=dns
firewall-cmd --permanent --add-service=dhcpv6
firewall-cmd --reload

WiFi driver from backports

The Intel Wireless 7265 interface requires the backported iwlwifi driver from 3.14.22-1. The following packages are also requried:

yum install -y kernel-devel iw iwl7265-firmware autogen-libopts pciutils lshw

To install the backported drivers:

cd /usr/local/src
wget http://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.14.22/backports-3.14.22-1.tar.xz
tar -xJvf backports-3.14.22-1.tar.xz
rm -f backports-3.14.22-1.tar.xz
cd backports-3.14.22-1
make defconfig-iwlwifi
make -j3
make install

SELinux

Disable it... /etc/selinux/config set SELINUX=disabled

CloneZilla (possibility for imaging the NUCs)

http://clonezilla.org/livehd.php

cox-solution-finder-nuc's People

Contributors

tekwiz avatar jeremyciccone avatar

Watchers

Ken Orji avatar James Cloos avatar  avatar Tom Elrod avatar Gabriel Arronte avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.