[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby for the nokia 770 internet tablet

mischamolhoek

2/1/2006 11:18:00 AM

Hi all,

As a proud owner of the nokia 770 (http://www.nok...) 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

9 Answers

MaF

2/1/2006 1:00:00 PM

0

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

mischamolhoek

2/1/2006 2:06:00 PM

0

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

i also installed thttpd_2.21b-11.2_arm.deb from
http://ftp.debian.org/debian/... 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

mischamolhoek

2/1/2006 6:22:00 PM

0

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/ExtendedRoot...)

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

Kenosis

2/13/2006 8:00:00 PM

0

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

MaF

2/13/2006 8:14:00 PM

0

Hi,

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

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

David Vallner

2/14/2006 8:22:00 PM

0

Dna 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


David Vallner

2/14/2006 9:31:00 PM

0

Dna 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


tsuraan

2/14/2006 9:44:00 PM

0

> 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/HowDoi... . Lots of other good
stuff at the maemo wiki, too.


John Doe

7/13/2010 9:31:00 AM

0

On 13 Jul 2010 07:47:19 GMT, rfischer@sonic.net (Ray Fischer) wrote:

>NoBody <nobody@nowhere.com> wrote:
>> rfischer@sonic.net (Ray Fischer) wrote:
>>>NoBody <nobody@nowhere.com> wrote:
>>>> rfischer@sonic.net (Ray Fischer) wrote:
>>>>>Ray Fischer <rfischer@sonic.net> wrote:
>>>>>>NoBody <nobody@nowhere.com> wrote:
>>>>>>>On 08 Jul 2010 17:21:55 GMT, rfischer@sonic.net (Ray Fischer) wrote:
>>>>>>>
>>>>>>>>NoBody <nobody@nowhere.com> wrote:
>>>>>>>>> rfischer@sonic.net (Ray Fischer) wrote:
>>>>>>>>>>NoBody <nobody@nowhere.com> wrote:
>>>>>>>>>>> "5548 Dead, 681 since 1/20/09"
>>>>>>>>>>
>>>>>>>>>>>>That's because I understand the basic economic principle that you run
>>>>>>>>>>>>surpluses when times are good so you can run the deficits that are needed
>>>>>>>>>>>>to cope with when times are bad.
>>>>>>>>>>>
>>>>>>>>>>>Since we never saved when times were "good",
>>>>>>>>>>
>>>>>>>>>>And we all know why.
>>>>>>>>>
>>>>>>>>>Tell me any time in recent history when the government "saved".
>>>>>>>>
>>>>>>>>Clinton's last year in office.
>>>>>>>
>>>>>>>Show us where this "saved" money was placed.
>>>>>>
>>>>>>Why?
>>>>>
>>>>>Crickets chirping.
>>>>
>>>>If you can find a post from me made after your response but before
>>>
>>>The hypocritial asshole now whines when his own shit gets thrown back
>>>at him. Typical rightard whiner.
>>
>>Your inability to comprehend what I
>
>Spare us the self-serving bullshit, rightard. You play childish
>games, you lie, and you whine.

I-R-O-N-Y anyone????