This commit is contained in:
dickreckard 2014-05-28 20:48:45 +02:00
commit 33a1e3f863
2 changed files with 61 additions and 2 deletions

View File

@ -274,7 +274,38 @@ Restart dnsmasq to apply the changes:
`$ /etc/init.d/dnsmasq restart` `$ /etc/init.d/dnsmasq restart`
Now all http requests will be directed to Meshenger! Now all http requests will be directed to Meshenger! If it doesn't work, check your DNS settings of the client your're using (aka your computer, phone, fapfapfaplet). Make sure google's 8.8.8.8 is not there and set 192.168.2.1 as the dns server.
### Run meshenger on boot
Create a file in `$ /etc/init.d/` called meshenger and paste the script below:
```
#!/bin/sh /etc/rc.common
#meshenger startup script
START=10
STOP=15
start() {
echo starting Meshenger
python ~/meshenger/main.py &
}
stop() {
killall python
}
```
Make the file executable
`$ chmod a+x /etc/init.d/meshenger`
Now you can start/stop meshenger as a service, to enable the meshenger as srevice on boot run
`$ /etc/init.d/meshenger enable`
To start/stop/disable replace 'enable' with start, stop or disable.

View File

@ -7,12 +7,40 @@
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" /> <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" /> <meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, user-scalable=no"> <meta name="viewport" content="width=device-width, user-scalable=no">
<style>
body{font-family:Helvetica, Arial, sans-seriff; }
textarea{
-webkit-appearance: none; -moz-appearance: none;
display: block;
margin: 0;
width: 100%; height: 50px;
line-height: 40px; font-size: 17px;
border: 1px solid #bbb;
}
button {
-webkit-appearance: none; -moz-appearance: none;
display: block;
margin: 1.5em 0;
font-size: 1em; line-height: 2.5em;
color: #333;
font-weight: bold;
height: 2.5em; width: 100%;
background: #fdfdfd; background: -moz-linear-gradient(top, #fdfdfd 0%, #bebebe 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#bebebe)); background: -webkit-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -o-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: -ms-linear-gradient(top, #fdfdfd 0%,#bebebe 100%); background: linear-gradient(to bottom, #fdfdfd 0%,#bebebe 100%);
border: 1px solid #bbb;
-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}
</style>
<title>meshed up</title> <title>meshed up</title>
</head> </head>
<body> <body>
<h2>message</h2> <h2>message</h2>
<textarea id="message" rows="3" style="width:100%"></textarea> <textarea id="message" rows="3" style="width:100%" placeholder="Enter your message"></textarea>
<button style="width:100%" id="send">Send</button> <button style="width:100%" id="send">Send</button>
<h2>outbox</h2> <h2>outbox</h2>
<ul id="outbox"></ul> <ul id="outbox"></ul>