Forum: Ruby ruby for the nokia 770 internet tablet

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
25dd6a98957c0f2773e79f433ed38b52?d=identicon&s=25 unknown (Guest)
on 2006-02-02 00:29
(Received via mailing list)
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
23a464dc98e538418225987228bf2a8b?d=identicon&s=25 MaF (Guest)
on 2006-02-02 00:35
(Received via mailing list)
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 - )

-


----
Marc Foret
25dd6a98957c0f2773e79f433ed38b52?d=identicon&s=25 unknown (Guest)
on 2006-02-02 00:38
(Received via mailing list)
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
25dd6a98957c0f2773e79f433ed38b52?d=identicon&s=25 mmolhoek (Guest)
on 2006-02-02 00:50
(Received via mailing list)
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
5ecfb4046c8d8333bdd13464b3d123c0?d=identicon&s=25 Kenosis (Guest)
on 2006-02-13 21:03
(Received via mailing list)
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
ruby770@gmail.com
23a464dc98e538418225987228bf2a8b?d=identicon&s=25 MaF (Guest)
on 2006-02-13 21:19
(Received via mailing list)
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
430ea1cba106cc65b7687d66e9df4f06?d=identicon&s=25 David Vallner (Guest)
on 2006-02-14 21:23
(Received via mailing list)
DÅ?a Pondelok 13 Február 2006 21:03 Kenosis napísal:
> 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
root account or password. Try using sudo, entering your own password for
administrative tasks?

David Vallner
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-02-14 21:38
(Received via mailing list)
On Feb 14, 2006, at 3:22 PM, David Vallner wrote:

> no proper
> root account or password. Try using sudo, entering your own
> password for
> administrative tasks?
>
> David Vallner
>

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.
430ea1cba106cc65b7687d66e9df4f06?d=identicon&s=25 David Vallner (Guest)
on 2006-02-14 22:32
(Received via mailing list)
DÅ?a Utorok 14 Február 2006 21:36 Logan Capaldo napísal:
> 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,
another
piece of trivia into the box.

Apologies to all horribly disinformed.

David Vallner
Ea9037f12dee625cc50ab92b9b7b7102?d=identicon&s=25 tsuraan (Guest)
on 2006-02-14 22:44
(Received via mailing list)
> 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.
This topic is locked and can not be replied to.