maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Noki.NET run web portal off your IT (https://talk.maemo.org/showthread.php?t=19521)

pipeline 2008-04-25 01:32

Noki.NET run web portal off your IT
 
5 Attachment(s)
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 to device, then from xterm navigate to directory and run xsp.

Quote:

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
- 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 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 2008-04-25 04:03

Re: Noki.NET run web portal off your IT
 
pipeline, that is very cool.

Munk 2008-04-25 04:39

Re: Noki.NET run web portal off your IT
 
Oh now this is just awesome.

sleepkyng 2008-04-25 09:34

Re: Noki.NET run web portal off your IT
 
ok, hang on this is - access Tablet FROM laptop, right?

Can you do the reverse with this program?

Red 2008-04-25 09:43

Re: Noki.NET run web portal off your IT
 
Oh now that is very well done. Thanks Pipeline!

pipeline 2008-04-25 11:36

Re: Noki.NET run web portal off your IT
 
Quote:

Originally Posted by sleepkyng (Post 174494)
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 2008-04-25 15:26

Re: Noki.NET run web portal off your IT
 
that sounds awesome!

i'm assuming it's pretty secure?

what's the speed like?

Benson 2008-04-25 15:42

Re: Noki.NET run web portal off your IT
 
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 2008-04-25 18:05

Re: Noki.NET run web portal off your IT
 
It has zero security so you probably won't want to expose it outside your LAN/router.

xsp does support ssl/tls... 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 2008-05-09 02:48

Re: Noki.NET run web portal off your IT
 
Any chance this could be put into a .deb?

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


All times are GMT. The time now is 22:27.

vBulletin® Version 3.8.8