Direkt zum Hauptbereich

install lighthttp on asus 500

# ipkg update
# ipkg upgrade
# ipkg install lighttpd


Create certificate - selfsigned is easy:
# mkdir /etc/lighttpd/ssl/domain.com -p
# cd /etc/lighttpd/ssl/domain.com
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes


Add to /opt/etc/lighttp/lighttp.conf:

server.event-handler = "poll" # (http://www.wl500g.info/showthread.php?t=20306)

And at the end:
$SERVER["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile =
"/path/to/example.org.pem"
server.document-root = "..."
}


Add firewallrule:
iptables -I INPUT -m tcp -p tcp --dport 443 -j ACCEPT

and finally
flashfs save&& flashfs commit&& flashfs enable&& reboot


installing webdav:
:( there is no lighttp-mod-webdav in the repository and i have no time to build one.

Kommentare

Beliebte Posts aus diesem Blog

favourite geek&poke comics

http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013485e5e37b970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486458e35970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f32a0f25970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f3716c17970b-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013486997ef7970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef013487146609970c-pi http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0133f4227ee4970b-pi

ffmpeg wrapper for .net and java

Ok. I built a custom ffmpeg wrapper but it was just a dirty hack. it was not encapsulated clean.... it worked but it was just tooo ugly to develop some extension... wrapping looked something like this: THIS DOES NOT WORK it is refactored to death:    class MencoderSharp     {         public static bool mencoder(System.Uri infovdrpath, string ratio, System.Uri destinationpath, BackgroundWorker worker, bool deleteConverted,string audioparameter, string videoparamter, bool testRun, DoWorkEventArgs e)         {             int returncode = 0;             foreach (string sourcepath in Directory.GetFiles(infovdrpath.ToString().Substring(0, infovdrpath.ToString().Length - 9), "0*.vdr"))             {                 Process p = new Process();                 //p.StartInfo.WorkingDirectory = @"C:\whatever";                 p.StartInfo.FileName = @"mencoder.exe";                 // http://msdn.microsoft.com/de-de/library/system.diagnostics.processstar...
Kodi keeps crashing when it is started without connected displays. Sometimes I want to startup my kodi setup for some other reasen and start using kodi later.... then kodi was already closed with some crash log file... :( This script works arround by waiting to start kodi until some hdmi port is connected (modify the grep query to adapt to some other port name). #!/bin/bash # Some programs have issues when run without connected display. E.g. Kodi likes to crash when started without any display connected on my system. # This script starts after some hdmi port is connected. # Depends on xrandr. WARNINGTIMEOUTINSECONDS=840 TIMEOUTINSECONDS=900 POLLINGDURATIONINSECONDS=5 LOGFILE= " $HOME /waitTillHdmiConnected.log" #set start conditions SECONDS=0 triggerTimeoutActions (){      echo   ...