PDA

View Full Version : Noki.NET run web portal off your IT


pipeline
04-24-2008, 09:32 PM
Yes this is a mono/xsp (.net/ASP.NET) application.

It runs on device with Mono 1.9 which are still in test (repo info here).

Noki.NET lets you run a web server off your Nokia internet tablet. It has a gallery, files, music (files), documents, and a wysiwyg htm editor.

One of the cooler aspects is that the web component (mono xsp... an asp.net engine) is freely distributable so you can run this same portal on your XP, linux, or osx desktop if it has the .net framework or mono installed.

To run on your internet tablet, install mono 1.9 libraries and then extract this archive (http://wardenclyffetower.com/MaemoFiles/mono/noki.net/noki.net.tar.gz)to device, then from xterm navigate to directory and run xsp.

So if anyone wants to run the -test- 1.9 libs :
- Uninstall all packages except the pkgconfig and then change repo to :
(web address 'http://go-mono.com/maemo', dist 'chinook', components 'test')
- If you want web servers install my xsp maemo package (http://wardenclyffetower.com/MaemoFiles/mono/mono-xsp-1.9.0-rev10.all.deb)
- These libs are still 'test' so expect to have to reinstall all the many packages later.


You will likely need libgdiplus, libmono-corlib1.0-cil, libmono-security1.0-cil, libmono-system-runtime1.0-cil, libmono-system-web1.0-cil, libmono-system1.0-cil, libmono1.0-cil, mono-runtime, and my xsp package. Possibility exists you will need to install pkg-config in red pill mode since it JIT compiles.

On maemo, the first page load is slow (like 30 seconds) while it JIT compiles it. Subsequent loads are fine so in theory you would leave xterm running web server minimized rather than launching web server many times when needed.

To run on your desktop, grab this file (http://wardenclyffetower.com/MaemoFiles/mono/noki.net/noki.net-desktop.zip)and then navigate to that directory in command prompt or shell and run with 'xsp' or 'mono xsp'

Whether you install it on tablet or desktop, you can browse it from both. So you set up your portal with images, music, and documents and wherever you go via wifi you can browse your tablet from desktop.

(Not shown in screenshots is the documents webpage which is similar to files webpage except lets you view actual live htm files which the editor creates)

Texrat
04-25-2008, 12:03 AM
pipeline, that is very cool.

Munk
04-25-2008, 12:39 AM
Oh now this is just awesome.

sleepkyng
04-25-2008, 05:34 AM
ok, hang on this is - access Tablet FROM laptop, right?

Can you do the reverse with this program?

Red
04-25-2008, 05:43 AM
Oh now that is very well done. Thanks Pipeline!

pipeline
04-25-2008, 07:36 AM
ok, hang on this is - access Tablet FROM laptop, right?

Can you do the reverse with this program?

Yes, and yes. The only difference between them is that the desktop version contains the xsp web server binaries while the version for maemo you install xsp deb.

Actually the XSP web server is a mono/.net program itself so when you run this on desktop your running the exact same webserver .exe as maemo :) except on windows desktop xsp bytecode would be run by the official microsoft .net framework.

Running off your tablet you could go to a desktop and hit the device (if you know its ip), load the larger editor (scaled for desktop) and compose html documents referencing images on the tablet, and save them to tablet itself or download htm. Then you navigate to the documents screen and click on the document and you've basically made your own web page. You can also upload images/music/files to the tablet.

All that works the same on the desktop except in reverse so your IT can easily get access to whole directories of images, files, music, etc.

Running off your desktop it would work the same way, in reverse. This first version only currently supports single directories (not subdirectories) so dont go too crazy and copy your whole mp3 collection to music directory (unless it all fits in one directory). Perhaps future version will support subdirectories.

sleepkyng
04-25-2008, 11:26 AM
that sounds awesome!

i'm assuming it's pretty secure?

what's the speed like?

Benson
04-25-2008, 11:42 AM
Pretty secure how? It's not https, so any data you access is sent in the clear, at least.
(From one who has looked no further than screenshots.)

pipeline
04-25-2008, 02:05 PM
It has zero security so you probably won't want to expose it outside your LAN/router.

xsp does support ssl/tls (http://www.mono-project.com/UsingClientCertificatesWithXSP)... useful for avoiding man-in-middle snooping but it would also need a site password of som sort since anyone could establish their own private sessions otherwise. Future version i might distribute makecert utility needed for ssl.

Speed is good except for the first of each page loads... and the editor loads a bit slowly if maemo is serving to its own microb. Definately not a 24/7 solution but a good first version. It will eat up ram like one more application so it is probably best used in blocks of time.

All the pages can be easily edited too if you know asp.net/c# so it serves also as an example (of minimal effort portal) future versions might trade hackability too get a better architecture..

mrlanrat
05-08-2008, 10:48 PM
Any chance this could be put into a .deb?

This looks really nice but I would like the ability to uninstall it.