Active Topics

 



Notices


Reply
Thread Tools
flotron's Avatar
Posts: 418 | Thanked: 506 times | Joined on Jan 2012 @ Argentina
#21
You must publish this to Ovi Store.
It looks very useful
 
Posts: 103 | Thanked: 150 times | Joined on Jun 2010 @ Fortaleza @ Brazil
#22
Now i would like to know if someone here can help me in design of application, logos and if the interface was well built.
 
Posts: 103 | Thanked: 150 times | Joined on Jun 2010 @ Fortaleza @ Brazil
#23
I am thinking about the application submission to Ovi Store but i don't know how to do this and i want to test the application in different cellphones instead testing only in N900. The software can be available in Nokia N9 with few changes and i already tested the software in Android using PAW Runtime and it's possible to port the application to these systems and theorically it's possible to port the application to iPhone, since the cellphone was originated from UNIX like Maemo, Android, Meego, BlackBerry OS 10 and WebOS.
 
Posts: 5,795 | Thanked: 3,151 times | Joined on Feb 2007 @ Agoura Hills Calif
#24
Well, my N9 is waiting for you.
__________________
All I want is 40 acres, a mule, and Xterm.
 

The Following User Says Thank You to geneven For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#25
I am not succeeding in connecting to the server. I am getting '404 -Not found'. Also localhost on the N900 and 127.0.0.1 on the N900 give the 404 error. This is also what nmap reports after a scan of the N900
Code:
nmap -A -T4 192.168.49.202

Starting Nmap 6.00 ( http://nmap.org ) at 2012-08-12 22:23 CEST
Nmap scan report for 192.168.49.202
Host is up (0.0050s latency).
Not shown: 998 closed ports
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 5.1p1 Debian 6.maemo5 (protocol 2.0)
| ssh-hostkey: 1024 some key (DSA)
|_2048some key (RSA)
1234/tcp open  http    lighttpd 1.4.26
|_http-title: 404 - Not Found
MAC Address: C0:38:F9:EE:EF:96 (Nokia Danmark A/S)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:kernel:2.6
OS details: Linux 2.6.9 - 2.6.31
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:kernel

TRACEROUTE
HOP RTT     ADDRESS
1   5.05 ms 192.168.49.202

OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 15.08 seconds
Server is running and smartcontrol started through menu,
Code:
Nokia-N900:~# ps -A | grep lightt
 2232 root      2600 S    lighttpd -f lighttpd.conf
10088 root      2464 S    /usr/sbin/lighttpd -f /etc/lighttpd.conf
12283 root      2644 S    grep lightt
Nokia-N900:~# ps -A | grep smart
10103 user      2640 S    /bin/sh /opt/smartcontrol/bin/start_smartcontrol.sh
13457 root      2644 S    grep smart
the information popup points me tp IP::1234, but only IP:1234 is accepted by the browser to show 404.

Please try to point me to the point, where the setup fails on my device.
 
Posts: 103 | Thanked: 150 times | Joined on Jun 2010 @ Fortaleza @ Brazil
#26
Originally Posted by michaaa62 View Post
I am not succeeding in connecting to the server. I am getting '404 -Not found'. Also localhost on the N900 and 127.0.0.1 on the N900 give the 404 error. This is also what nmap reports after a scan of the N900
Code:
nmap -A -T4 192.168.49.202

Starting Nmap 6.00 ( http://nmap.org ) at 2012-08-12 22:23 CEST
Nmap scan report for 192.168.49.202
Host is up (0.0050s latency).
Not shown: 998 closed ports
PORT     STATE SERVICE VERSION
22/tcp   open  ssh     OpenSSH 5.1p1 Debian 6.maemo5 (protocol 2.0)
| ssh-hostkey: 1024 some key (DSA)
|_2048some key (RSA)
1234/tcp open  http    lighttpd 1.4.26
|_http-title: 404 - Not Found
MAC Address: C0:38:F9:EE:EF:96 (Nokia Danmark A/S)
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:kernel:2.6
OS details: Linux 2.6.9 - 2.6.31
Network Distance: 1 hop
Service Info: OS: Linux; CPE: cpe:/o:linux:kernel

TRACEROUTE
HOP RTT     ADDRESS
1   5.05 ms 192.168.49.202

OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 15.08 seconds
Server is running and smartcontrol started through menu,
Code:
Nokia-N900:~# ps -A | grep lightt
 2232 root      2600 S    lighttpd -f lighttpd.conf
10088 root      2464 S    /usr/sbin/lighttpd -f /etc/lighttpd.conf
12283 root      2644 S    grep lightt
Nokia-N900:~# ps -A | grep smart
10103 user      2640 S    /bin/sh /opt/smartcontrol/bin/start_smartcontrol.sh
13457 root      2644 S    grep smart
the information popup points me tp IP::1234, but only IP:1234 is accepted by the browser to show 404.

Please try to point me to the point, where the setup fails on my device.
To access the webpage, just type IP:1234 and if everything is working properly, you can use the application, else, you will need to be sure if the setup was done sucessfully and if wasn't, just talk to me and we will get a better solution to build a better package to solve these installation problems.
 

The Following User Says Thank You to guisoliver For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#27
Thanks for the quick response, and the application !

Not much experience here with databases and web-servers, but i think the nmap scanning output of the port in question indicates some problems of the lighttpd
1234/tcp open http lighttpd 1.4.26
|_http-title: 404 - Not Found
I tried restarting lighttpd, tried also a reboot and looked quickly into the config file, but did not get a clue what is missing.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#28
Some progress here, nevertheless...
Is this just me???

First: I needed to install phone-control manually, you might want to add it to the dependencies of smartcontrol1 to get it fetched by apt-get install -f to finalize the install.

Second: I had to change the line to fetch the address of the N900 to
Code:
addr=$(sudo ifconfig wlan0 | grep 'inet addr' | cut -d":" -f2 |  tr -s " " ";" | cut -d ";" -f1 )
to get the proper zenity message for IP and password.

I still seem to struggle to connect to lighthttpd though:

opens a new browser window, but 404 - Not Found. Obviously /modules/informer/local_informer.php is not found.
A search does not provide anything in the file system
Code:
find: informer: No such file or directory
find: local_informer.php: No such file or directory

Last edited by michaaa62; 2012-08-13 at 15:51.
 
Posts: 103 | Thanked: 150 times | Joined on Jun 2010 @ Fortaleza @ Brazil
#29
Just see the instructions below in shell interpreter (you can do this with the OpenSSH Server).

1 - See the folder structure to see if were something wrong: ls /opt/smartcontrol/conf/
2 - See the port that the server will be listening: cat /opt/smartcontrol/conf/lighttpd.conf | grep port
This should return: server.port = 1234

3 - Start the server typing command: lighttpd -f /opt/smartcontrol/conf/lighttpd.conf
2012-08-14 13:53:16: (log.c.166) server started

4 - Show for me what is your IP in your Wireless LAN typing the command: ifconfig

wlan0 Link encap:Ethernet Endereço de HW 00:1b:11:bb:3d:02
inet end.: 192.168.1.5 Bcast:192.168.1.255 Masc:255.255.255.0
endereço inet6: fe80::21b:11ff:febb:3d02/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:45181 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:37342 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:1000
RX bytes:43992163 (43.9 MB) TX bytes:7240002 (7.2 MB)


5 - Using the grabbed ip: 192.168.1.5, access your webbrowser and type the following IP: http://192.168.1.5:1234/modules/main/page_test.php

Just do this test and post here in Maemo-Talk, if do you have some issue with process. If do you have so much issues, keep informing to me.
 

The Following User Says Thank You to guisoliver For This Useful Post:
Posts: 2,102 | Thanked: 1,937 times | Joined on Sep 2008 @ Berlin, Germany
#30
Thanks for your quick response!

1)
Code:
Nokia-N900:~# ls /opt/smartcontrol/conf/
lighttpd.conf  login.php
2)
Code:
Nokia-N900:~# cat /opt/smartcontrol/conf/lighttpd.conf | grep port
server.port = 1234
3)
Code:
Nokia-N900:~# lighttpd -f /opt/smartcontrol/conf/lighttpd.conf
Nokia-N900:~# 2012-08-14 19:18:41: (log.c.166) server started
4) There seems to be a difference relating to language, that's why your commands did not work on my device. Therefore the line in my previous post worked for me to get the correct notification of password and IP.
Code:
Nokia-N900:~# ifconfig | grep inet
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          inet addr:192.168.49.202  Bcast:192.168.49.255  Mask:255.255.255.0
          inet6 addr: fe80::c238:f9ff:feee:ef96/64 Scope:Link
5)Although step1 to 4 seem to work now, i still get "404 - Not Found" error, when accessing http://192.168.49.202:1234/modules/main/page_test.php

Edit: This is what i find in a 'Netbeans' folder in the server's root folder:
Code:
Nokia-N900:~# ls -al /opt/smartcontrol/www/Netbeans/
drwxrwxr-x    8 1000     1000          4096 Aug 12 21:47 .
drwxrwxr-x    3 1000     1000          4096 Aug 12 21:47 ..
drwxrwxr-x    2 1000     1000          4096 Aug 12 21:47 classes
drwxrwxr-x    5 1000     1000          4096 Aug 12 21:47 container
drwxrwxr-x    4 1000     1000          4096 Aug 12 21:47 design
drwxrwxr-x    2 1000     1000          4096 Aug 12 21:47 images
drwxrwxr-x   15 1000     1000          4096 Aug 12 21:47 modules
drwxrwxr-x    4 1000     1000          4096 Aug 12 21:47 nbproject
Edit2: SUCCESS!!! i changed the conf file to use the above directory as lighttp root and the page is loading fine
I only have to add to my non-existing Brazilian
Thanks a lot for pointing me in the right directions.

Last edited by michaaa62; 2012-08-14 at 18:06.
 

The Following User Says Thank You to michaaa62 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:18.