Advertisement
Guest User

Untitled

a guest
Jan 17th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. apt-get install openjdk-7-jdk tomcat6 tomcat6-admin
  2.  
  3. # edit tomcat user permissions
  4. 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
  5.  
  6. apt-get install dnsmasq hostapd dnsutils
  7.  
  8. # Domain name
  9. echo "192.168.0.1 domain" >> /etc/hosts
  10.  
  11. # range of IP addresses
  12. 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
  13.  
  14. # wifi
  15. echo 'ssid=WifiName
  16. wpa_passphrase=mypwd' >> /etc/hostapd/hostapd.conf
  17.  
  18. perl -0777 -i -pe 's/^interface/interface lon#interface/igm' /etc/hostapd/udhcpd-for-hostapd.conf
  19.  
  20. echo "auto lo
  21. iface lo inet loopback
  22. iface usb0 inet static
  23. address 192.168.2.15
  24. netmask 255.255.255.0
  25. auto wlan0
  26. iface wlan0 inet static
  27. post-up service hostapd restart
  28. address 192.168.0.1
  29. netmask 255.255.255.0" > /etc/network/interfaces
  30.  
  31. reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement