Advertisement
Guest User

Untitled

a guest
Jan 16th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. # apt-get installs
  2. openjdk-7-jdk
  3. tomcat6
  4. tomcat6-admin
  5.  
  6. # edit tomcat user permissions
  7. perl -0777 -i -pe 's/</tomcat-users>/<role rolename="manager"/>n<role rolename="admin"/>n<user username="admin" password="admin" roles="admin,manager"/>n</tomcat-users>/igm' /etc/tomcat6/tomcat-users.xml
  8.  
  9. # apt-get installs
  10. dnsmasq
  11. hostapd
  12. dnsutils
  13.  
  14. # Domain name
  15. echo "192.168.0.1 domain" >> /etc/hosts
  16.  
  17. # set up the range of IP addresses offered by the Edison (uncomment line)
  18. perl -0777 -i -pe 's/^#dhcp-range=192.168.0.50,192.168.0.150,12h/dhcp-range=192.168.0.50,192.168.0.150,12h/igm' /etc/dnsmasq.conf
  19.  
  20. # setup wifi
  21. echo 'ssid=WifiName
  22. wpa_passphrase=mypwd' >> /etc/hostapd/hostapd.conf
  23.  
  24. # edit /etc/hostapd/udhcpd-for-hostapd.conf (comment line and add replacement above)
  25. perl -0777 -i -pe 's/^interface/interface lon#interface/igm' /etc/hostapd/udhcpd-for-hostapd.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement