daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest Jul 16th, 2016 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Run services necessary for booting Porteus Kiosk over the network.
  3. # Path to folder where Kiosk ISO is unpacked/mounted:
  4. PXEDATA=/home/guest/kiosk-pxe
  5. # HTTP server IP address:
  6. IP=192.168.1.34
  7. # Port on which the HTTP daemon is listening:
  8. PORT=8090
  9. # Start the DHCP server and the TFTP server:
  10. killall dnsmasq 2>/dev/null
  11. dnsmasq --enable-tftp --tftp-root=$PXEDATA/boot --dhcp-boot=pxelinux.0,"$IP",$IP --dhcp-range=$(echo $IP | cut -d. -f1-3).50,$(echo $IP | cut -d. -f1-3).250,infinite --log-dhcp
  12. # Start the HTTP daemon:
  13. killall webfsd 2>/dev/null
  14. webfsd -i $IP -p $PORT -r $PXEDATA -u nobody -g nogroup >/dev/null
  15. # Enable packet forwarding so pxe clients can connect to the internet:
  16. echo 1 > /proc/sys/net/ipv4/ip_forward
  17. echo "PXE services for Porteus Kiosk should be started now."
RAW Paste Data
Top