View Single Post
Posts: 172 | Thanked: 27 times | Joined on Oct 2009 @ San Francisco, CA
#264
Originally Posted by ukki View Post
http://wiki.maemo.org/Knots2#3G_streaming_with_N900

That should get your client to connect to the server with SSL and auth enabled. To connect from outside, you need to forward those ports to your computer and then know your computers public address. Then you should be able to connect to it from outside using the ip and by checking the "Server uses SSL" checkbox. But this requires up-to-date server and client.

I'm considering adding some sort of dyndns type of support to server so that you can register you server to a database and then connect with just that name without having to deal with ip changes etc. No promises though, use dyndns or similar service for now.

Auth and SSL slower the client down a lot. If you are going to use it with 3G, consider using some bandwith saving measures like switching to list view to prevent downloading screenshots/album art, playing video only fullscreen so that it won't update the progress from server and going away from the player page or switching the display off when playing music so that it won't have to update the progress.
Well, this completely hosed my N900. I ran this twice, answering the question at the bottom of the following "yes" the first time, which REALLY hosed everything:

The following packages will be REMOVED:
decoders-support gstreamer0.10-flv
gstreamer0.10-plugins-camera gstreamer0.10-plugins-good
gstreamer0.10-plugins-good-extra gvfs-backends knots2
libgssdp-1.0-1 libgstfarsight0.10-0 libgupnp-1.0-2
libgupnp-av-1.0-1 libgupnp-igd-1.0-2 libmafw-shared0
libmafw0 libnice-gstreamer0.10 libnice0 libsoup2.4-1
libtelepathy-farsight0 mafw-dbus-daemon
mafw-gst-renderer mafw-iradio-source
mafw-playlist-daemon mafw-tracker-source
mafw-upnp-source mediaplayer mediaplayer-restore
mediaplayerhomeapplet mp-fremantle-002-pr
skyhost-vengine telepathy-gabble telepathy-spirit
telepathy-stream-engine tunewiki-applet
0 upgraded, 0 newly installed, 33 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 8819kB disk space will be freed.
Do you want to continue [Y/n]?


I guess I kind of deserved it as it did warn me. I then had to reflash the N900. I thought I'd risk it and try to set up the SSL again and answer "No" to the question above. Well, it didn't delete anything (other than wget, which I told it to) like the first time, but, also like the first go around, I am unable to add any new apps. I now get the following on the N900 when trying to add any new app:

Unable to install <app name>. Some application packages required for the installation are missing.

I'm now going to have to re-flash it. And to top it off, I can't get into the server anymore. Your (Ukki) earlier suggestion is no longer working either:

stop the server
./scripts/user delete user
./scripts/user add username password admin
start the server

You should be able to login then. If not, delete all users, restart server, use the browser to go to settings -> users and add a user there. Click on the username that appears on the list, switch the role to admin, set its password (it's random by default) and then press change. Then fully reload the page to authenticate as that user.


Just to refresh your memory, the server is a MacMini running 10.6.2, the client is an N900 running Knots 2 0.2.6-5, and I had run git pull and create_osx_app just before.

Here's the full log of the terminal on the server from the second go around:

BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~# apt-get install wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version.
wget set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Nokia-N900-42-11:~# wget "http://nakkiboso.com/libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb"
--20:51:34-- http://nakkiboso.com/libsoup2.4-1_2....+0m5_armel.deb
=> `libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb'
Resolving nakkiboso.com... 64.16.214.14
Connecting to nakkiboso.com|64.16.214.14|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180,100 (176K) [text/plain]

100%[================>] 180,100 63.63K/s

20:51:38 (63.49 KB/s) - `libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb' saved [180100/180100]

Nokia-N900-42-11:~# dpkg -i libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb
(Reading database ... 24875 files and directories currently installed.)
Preparing to replace libsoup2.4-1 2.24.3-2maemo2+0m5 (using libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb) ...
Unpacking replacement libsoup2.4-1 ...
dpkg: dependency problems prevent configuration of libsoup2.4-1:
libsoup2.4-1 depends on libgcrypt11 (>= 1.4.0); however:
Package libgcrypt11 is not installed.
libsoup2.4-1 depends on libgnutls26 (>= 2.4.0-0); however:
Package libgnutls26 is not installed.
dpkg: error processing libsoup2.4-1 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libsoup2.4-1
Nokia-N900-42-11:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
mplayer libspeex1 gstreamer0.10-ffmpeg libxinerama1
tracker-distutils
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
decoders-support gstreamer0.10-flv
gstreamer0.10-plugins-camera gstreamer0.10-plugins-good
gstreamer0.10-plugins-good-extra gvfs-backends knots2
libgssdp-1.0-1 libgstfarsight0.10-0 libgupnp-1.0-2
libgupnp-av-1.0-1 libgupnp-igd-1.0-2 libmafw-shared0
libmafw0 libnice-gstreamer0.10 libnice0 libsoup2.4-1
libtelepathy-farsight0 mafw-dbus-daemon
mafw-gst-renderer mafw-iradio-source
mafw-playlist-daemon mafw-tracker-source
mafw-upnp-source mediaplayer mediaplayer-restore
mediaplayerhomeapplet mp-fremantle-002-pr
skyhost-vengine telepathy-gabble telepathy-spirit
telepathy-stream-engine tunewiki-applet
0 upgraded, 0 newly installed, 33 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 8819kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
Nokia-N900-42-11:~# rm libsoup2.4-1_2.24.3-2maemo2+0m5_armel.deb
Nokia-N900-42-11:~# apt-get remove wget
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libliqbase1: Depends: wget but it is not going to be installed
libsoup2.4-1: Depends: libgcrypt11 (>= 1.4.0) but it is not installable
Depends: libgnutls26 (>= 2.4.0-0) but it is not installable
E: Unmet dependencies.


While I'd love to be able to use this app to stream over the internet as I saw the potential over my LAN, I actually need this phone/tablet/N900 to do my job and am having a hard time justifying the time I've been investing into this one app.

I'm open to suggestions. Thanks.
 

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