Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt-get install openjdk-7-jdk tomcat6 tomcat6-admin
- # edit tomcat user permissions
- 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
- apt-get install dnsmasq hostapd dnsutils
- # Domain name
- echo "192.168.0.1 domain" >> /etc/hosts
- # range of IP addresses
- 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
- # wifi
- echo 'ssid=WifiName
- wpa_passphrase=mypwd' >> /etc/hostapd/hostapd.conf
- perl -0777 -i -pe 's/^interface/interface lon#interface/igm' /etc/hostapd/udhcpd-for-hostapd.conf
- echo "auto lo
- iface lo inet loopback
- iface usb0 inet static
- address 192.168.2.15
- netmask 255.255.255.0
- auto wlan0
- iface wlan0 inet static
- post-up service hostapd restart
- address 192.168.0.1
- netmask 255.255.255.0" > /etc/network/interfaces
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement