CS-WEB-0.1-0.1.GITFD196CD
This is something that Triode has been working on as a proof-of-concept,
potential light-weight LuaJIT replacement, for the current Java based
web-gui, using turbolua as the framework, web container. Only a couple
of pages at the moment, Home, Squeezelite config, Squeezeserver. It's a
proof-of-concept, not a finished article! It runs in parallel to the
current web-gui on port 8081. Tomcat is on port 8080. So, no conflict,
having them both running at the same time.
Install...
Code:
--------------------
sudo csos-cleanInstall-testing cs-web
--------------------
To access via a browser, http://<wanboard_ip_address>:8081
PACKAGING
What follows is possibly only of interest to Triode, and is an
explanation of packaging it....
Code:
--------------------
[clivem@nc10 SPECS]$ rpm -ql cs-web
/usr/lib/systemd/system/cs-web.service
/usr/share/cs-web
/usr/share/cs-web/static
/usr/share/cs-web/static/bg-nav-orig.png
/usr/share/cs-web/static/bg-nav.png
/usr/share/cs-web/static/bootstrap.css
/usr/share/cs-web/static/cs-logo-146x50.png
/usr/share/cs-web/static/cs-logo-541x288.png
/usr/share/cs-web/static/favicon.ico
/usr/share/cs-web/static/tooltip.gif
/usr/share/cs-web/templ
/usr/share/cs-web/templ/footer.html
/usr/share/cs-web/templ/header.html
/usr/share/cs-web/templ/index.html
/usr/share/cs-web/templ/squeezelite.html
/usr/share/cs-web/templ/squeezeserver.html
/usr/share/luajit-2.0.2
/usr/share/luajit-2.0.2/cs-web
/usr/share/luajit-2.0.2/cs-web.lua
/usr/share/luajit-2.0.2/cs-web/SqueezeliteConfig.lua
/usr/share/luajit-2.0.2/cs-web/Strings.lua
--------------------
Systemd service script, cs-web.service, runs '/usr/bin/luajit
/usr/share/luajit-2.0.2/cs-web.lua' as cs-web user.
Installing the package creates cs-web user, cs-web group from
scriptlets. (User also added to wheel group for sudo.)
cs-web.lua and 2 files in cs-web lua package installed to
/usr/share/luajit-2.0.2.
static and templ directories installed to /usr/share/cs-web.
Patch cs-web.lua to hardcode /usr/share/cs-web path. (Not suggesting you
take this back into git. It's just for packaging.)
Code:
--------------------
--- cs-web-0.1-fd196cd/cs-web.lua.orig 2014-01-15 01:02:42.484022648 +0000
+++ cs-web-0.1-fd196cd/cs-web.lua 2014-01-15 01:03:08.838767911 +0000
@@ -19,7 +19,7 @@
local PORT = 8081
-- paths to our templates and static content
-local path = "."
+local path = "/usr/share/cs-web"
local templ_path = path .. '/templ/'
local static_path = path .. '/static/'
--------------------
------------------------------------------------------------------------
JackOfAll's Profile: http://forums.slimdevices.com/member.php?userid=3069
View this thread: http://forums.slimdevices.com/showthread.php?t=99395
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix