ruby for the nokia 770 internet tablet

M

mischamolhoek

Hi all,

As a proud owner of the nokia 770 (http://www.nokia770.com/) and a ruby
user I was curious if anyone has started porting ruby to 770's platform
(linux on arm, using maemo).

I would for sure like to try if no one started, but i could use some
guidance in that case :)

Greetings,

Mischa
 
M

MaF

Hi,


i plan also to use ruby on nokia770:

Yesterday, i have uploaded the debian package for arm and it is working
out of the box.


The only problem, as it is not a mameo package, you need to extracted
and copied as root (Application Installer refused to load it).

packages:
libruby1.8_1.8.4-1_arm.deb
ruby1.8_1.8.4-1_arm.deb

i plan to use ziprequire in order to have less files and use less
space.

Regards


Marc Foret

PS: i try to use webrick, it start correctly, but required online
connection, may be dns lookup ?


#extracted using the following commands:
dpkg -x libruby1.8_1.8.4-1_arm.deb /media/mmc1/tmp # extracted on the
memory card
dpkg -x ruby1.8_1.8.4-1_arm.deb /media/mmc1/tmp # extracted on the
memory card
cd /media/mmc1/tmp/usr
# look to the content and copy to usr
tar cf - .|(cd /usr; tar xf - )

-
 
M

mischamolhoek

Superb. it's working fine indeed....

i also installed thttpd_2.21b-11.2_arm.deb from
http://ftp.debian.org/debian/pool/main/ and am going to try building a
intranet :) cgi based ruby app....

ill keep you informed in this thread,

tanx for pointing me in the right direction, just what i needed..

mya,

mischa
 
M

mmolhoek

ok... got the thttpd server up and running :)

i installed it on my rs-mmc card (1GIG).
i have resized and put ext3 fs on it and mounted it on /Root as
described in (http://maemo.org/maemowiki/ExtendedRootFilesystem)

so in /Root/opt (where i put all my own stuff, that is not installed
with app-installer-tool) i installed thttpd

/Root/opt/ > dpkg -x thttpd_2.21b-11.2_arm.deb ./

changes i made in /Root/opt/etc/thttpd/thttpd.conf :

logfile=/Root/opt/var/log/thttpd.log
throttles=/Root/opt/etc/thttpd/throttle.conf
dir=/Root/opt/var/www

then, started it with:
/Root/opt/usr/sbin/thttpd -C /Root/opt/etc/thttpd/thttpd.conf -c
'/cgi-bin/*'

next i setup a test cgi script called test, which calls ruby to puts
'cgi hello world' on your brouwser screen.

vi /Root/opt/var/www/cgi-bin/test (yes, i installed vim too :))

#!/usr/bin/ruby
print "content-type: text/html\n\n"
puts "cgi hello world"


start your brouwser on your 770 and goto: 127.0.0.1:cgi-bin/test
and guess what....it works!!!!

do you smell the endless oppertunities now that this works.....i
do...:)

just have to make it start on bootup, but that should not be too hard,
since i don that for the ssh server also .... :)

have fun.

greeting, mischa
 
K

Kenosis

Hi Marc,

I was wondering where you got these packages? Did you build them
w/Maemo yourself or download them from somewhere. Also, how did you
get your root password for your 770? I'm assuming its the same for all
the devices so if you could share your's with me I'd be grateful as
I've been unable to hack/crack it thus far.

Thanks,

Ken Hilton
(e-mail address removed)
 
M

MaF

Hi,

In fact it is part of the standard Debian
distribution.(http://ftp.debian.org/debian/pool/main/)

As "arm" is supported by Debian, and Maemo is a Debian distribution.

The package is working asis on the Nokia.

But for GUI application it is another story.


BTW when i have times, i still want to build a stripdown version of
Ruby with Mongrel hhtp server.

regards


Marc
 
D

David Vallner

D=C5=88a Pondelok 13 Febru=C3=A1r 2006 21:03 Kenosis nap=C3=ADsal:
I was wondering where you got these packages? Did you build them
w/Maemo yourself or download them from somewhere. Also, how did you
get your root password for your 770? I'm assuming its the same for all
the devices so if you could share your's with me I'd be grateful as
I've been unable to hack/crack it thus far.

As the OS is supposed to be a Debian-based distribution, there is no proper=
=20
root account or password. Try using sudo, entering your own password for=20
administrative tasks?

David Vallner
 
D

David Vallner

D=C5=88a Utorok 14 Febru=C3=A1r 2006 21:36 Logan Capaldo nap=C3=ADsal:
Having no proper root account or password is an Ubuntu-ism (and a Mac
OS Xism), not a Debian-ism. I can assure you vanilla Debian does have
a root user.

Thought it went along with the use of sudo as opposed to su. Ah well, anoth=
er=20
piece of trivia into the box.

Apologies to all horribly disinformed.

David Vallner
 
T

tsuraan

I was wondering where you got these packages? Did you build them
w/Maemo yourself or download them from somewhere. Also, how did you
get your root password for your 770? I'm assuming its the same for all
the devices so if you could share your's with me I'd be grateful as
I've been unable to hack/crack it thus far.

I dont' think anyone's figured out the root password (if it's even
protected that way), but to gain root, just follow the directions at
https://maemo.org/maemowiki/HowDoiBecomeRoot . Lots of other good
stuff at the maemo wiki, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,663
Latest member
josh5959

Latest Threads

Top