Uncategorised
- Details
- Written by Sonny Yu
opkg update opkg install luci-app-wol
nano /etc/config/etherwake
#option 'pathes' '/usr/bin/etherwake /usr/bin/ether-wake' option 'pathes' '/usr/bin/etherwake' ... #option 'name' 'example' #option 'mac' '11:22:33:44:55:66' #option 'password' 'AABBCCDDEEFF'
cd /usr/lib/lua/luci/model/cbi/ mv wol.lua wol.lua.bk wget https://raw.githubusercontent.com/openwrt/luci/luci-0.11/applications/luci-wol/luasrc/model/cbi/wol.lua --no-check-certificate
At lines 56-58 of wol.lua:
nano wol.lua
--sys.net.mac_hints(function(mac, name) -- host:value(mac, "%s (%s)" %{ mac, name }) host:value("00:1d:09:2e:36:93", "Dell T105") --end)
reboot
Starting WoL utility(via eth1):
/usr/bin/etherwake -D -i "eth1" "00:1d:09:2e:36:93" The target station address is 0:1d:9:2e:36:93. Packet is 00 1d 09 2e 36 93 00 1d 09 2e 36 93 08 42 ff ff ff ff ff ff 00 1d 09 2e 36 93 00 1d 09 2e... Sendto worked ! 116.
Starting WoL utility(via wlan0):
/usr/bin/etherwake -D -i "wlan0" "00:1d:09:2e:36:93" The target station address is 0:1d:9:2e:36:93. Packet is 00 1d 09 2e 36 93 00 1d 09 2e 36 93 08 42 ff ff ff ff ff ff 00 1d 09 2e 36 93 00 1d 09 2e... Sendto worked ! 116.Write comment (0 Comments)
- Details
- Written by Sonny Yu
Wake-on-LAN (WoL) is an Ethernet or Token ring computer networking standard that allows a computer to be turned on or awakened by a network message.
https://en.wikipedia.org/wiki/Wake-on-LAN
Dell for example, Dell T100 and T105 work just fine with wol. The key is that on bootup, when prompted, you have to do a Cntrl S to go into the bcom configuration screen,
then set the WOL option to "Enabled". Also, you must allow the system to boot into the OS (windows in my case) and then perform a proper shut down.
if you you just hold the power button down and kill the system or pull the power plug wol would not work
find out NIC mac address by:
ipconfig /all #windows
or
ifconfig #linux
At Arduino Yun/compatible:
opkg update opkg install etherwake
etherwake -i eth1 00:1d:09:2e:36:93
"00:1d:09:2e:36:93" is NIC mac address
Write comment (0 Comments)- Details
- Written by Sonny Yu
Web server:
- apache - 2.2.15-3 - The Apache Web Server is a powerful and flexible HTTP/1.1 compliant web server.
- axhttpd - 1.4.3-1 - A small embedded web server using the axTLS library
- hiawatha - 7.8.2-3 - Hiawatha is an open source webserver with a focus on security.
- lighttpd - 1.4.30-2 - A flexible and lightweight web server
- mini-httpd - 1.19-1 - mini_httpd is a small HTTP server.
- mini-httpd-matrixssl - 1.19-1 - mini_httpd is a small HTTP server.
- mini-httpd-openssl - 1.19-1 - mini_httpd is a small HTTP server.
- nginx - 1.2.2-1 - nginx is an HTTP and reverse proxy server, as well as a mail proxy server.
- uhttpd - 2012-10-30-e57bf6d8bfa465a50eea2c30269acdfe751a46fd - uHTTPd is a tiny single threaded HTTP server with TLS, CGI and Lua support.
Ftp server:
- proftpd - 1.3.4b-1 - ProFTPD FTP server
- pure-ftpd - 1.0.32-3 - Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server.
- vsftpd - 3.0.2-1 - A fast and secure FTP server.
- Details
- Written by Sonny Yu
find /etc -maxdepth 2 -type f
/etc/LININO_CONTRIBUTORS.TXT /etc/arduino/Caterina-Yun.hex /etc/arduino/gpg_gen_key_batch /etc/arduino/openwrt-yun-release /etc/arduino/wifi_error_reasons.csv.gz /etc/arduino/wifi_error_statuses.csv.gz /etc/arduino/wifi_timezones.csv.gz /etc/arduino/arduino_gpg.asc /etc/arduino/arduino_gpg.pub /etc/arduino/arduino_gpg.sec /etc/avahi/avahi-daemon.conf /etc/avahi/avahi-dnsconfd.action /etc/avrdude.conf /etc/banner ...
ATmega32u4 Code:
#include <Process.h> void setup() { Bridge.begin(); // Initialize the Bridge Serial.begin(9600); // Initialize the Serial while (!Serial); // Wait until a Serial Monitor is connected. countfiles(); } void loop() { } void countfiles() { Process p; p.runShellCommand("find /etc -maxdepth 2 -type f"); while (p.running()); while (p.available()) { char c = p.read(); Serial.print(c); } }
Write comment (0 Comments)
Page 8 of 16