Re: OT: Iphone with OpenBSD

2009-09-24 Thread Jonathan Schleifer

Am 24.09.2009 um 05:11 schrieb Alvaro Mantilla Gimenez:


After the upgrade to 3.0 I losted a lot of unix commands (top, for
example) which it seems to work only on 2.X firmwares.


Those were only removed from the base system, you can still install  
them via Cydia.


--
Jonathan



Re: OT: Iphone with OpenBSD

2009-09-24 Thread Mark Mathias
I remember reading somewhere that the jail broken OS is actually based
on OpenBSD.


-- 
Mark Mathias



Re: OT: Iphone with OpenBSD

2009-09-24 Thread Otto Moerbeek
On Thu, Sep 24, 2009 at 08:33:06AM -0400, Mark Mathias wrote:

 I remember reading somewhere that the jail broken OS is actually based
 on OpenBSD.

your memory is playing tricks or what you read wasn't true. 

-Otto



Re: OT: Iphone with OpenBSD

2009-09-24 Thread Jonathan Schleifer
Mark Mathias markdmath...@gmail.com wrote:

 I remember reading somewhere that the jail broken OS is actually based
 on OpenBSD.

No, if you jailbreak it, you just break out of the jail in which all
applications run. The OS running on the iPhone is almost the same as OS
X, which is based on Darwin and Darwin uses some parts of FreeBSD.

--
Jonathan

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: OT: Iphone with OpenBSD

2009-09-23 Thread Alvaro Mantilla Gimenez
David Vasek escribis:

 Hi,

 OSX has a system_profiler(8) command, which gives you a lot of
 information about the hardware:

 # system_profiler -detailLevel full

 It might help. But don't post the -detailLevel full output to misc@ as
 it is really huge, I think -detailLevel basic would be enough.

 As for the dmesg, isn't it written out somewhere by syslogd?

Uhmmmit seems there is no system_profiler command. Is there any
other command to get that information?

After the upgrade to 3.0 I losted a lot of unix commands (top, for
example) which it seems to work only on 2.X firmwares.

Anybody can run dmesg on iPhone/iPod Touch running 2.X?

Regards,

   Alvaro



Re: OT: Iphone with OpenBSD

2009-09-19 Thread David Vasek

On Fri, 18 Sep 2009, Alvaro Mantilla Gimenez wrote:


After I upgraded the Iphone to 3.01 I lost some of the Unix tools I had
installed.

dmesg just give me some partial information. Nothing valuable. I will
look for the unix tool missing and give you the dmesg output...


Hi,

OSX has a system_profiler(8) command, which gives you a lot of 
information about the hardware:


# system_profiler -detailLevel full

It might help. But don't post the -detailLevel full output to misc@ as 
it is really huge, I think -detailLevel basic would be enough.


As for the dmesg, isn't it written out somewhere by syslogd?

Regards,
David



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
I just found somebody port the netbsd man pages to the iphone (which is
nothing to me).

Brian W. escribis:
 Alvaro Mantilla Gimenez wrote:
 Totally offtopic:

 Reading the article posted on undeadly.org:
 http://www.informit.com/articles/article.aspx?p=1393496

 I was thinking it would be cool to have an Iphone running OpenBSD...

 Imagine that: the most secure phone in the planet :-P

 Regards,

   Alvaro

 The netbsd guys try to run in just about anything with a chip in it,
 have they done it yet?

 Brian



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
I just found this page:

http://linuxoniphone.blogspot.com/2008/06/why-iphone-linux.html

I don't have any idea about how/where to start. Maybe Theo can put some
light here...I think my developer skills are far to be good enough but,
hey...I would like to try !!

Regards,

Alvaro

beowuff escribis:
 Reading the article posted on undeadly.org:
 http://www.informit.com/articles/article.aspx?p=1393496

 I was thinking it would be cool to have an Iphone running OpenBSD...

 Imagine that: the most secure phone in the planet :-P


 Man, I have an old 1st gen iPhone just sitting there... I would so put
 OpenBSD on it. Unfortunately, I wouldn't know where to begin :(



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Jan Stary
On Sep 18 02:20:38, Alvaro Mantilla Gimenez wrote:
 I just found this page:
 
 http://linuxoniphone.blogspot.com/2008/06/why-iphone-linux.html
 
 I don't have any idea about how/where to start. Maybe Theo can put some
 light here...I think my developer skills are far to be good enough but,
 hey...I would like to try !!

 We will be trying to develop an entire suite of device
 drivers for undocumented hardware and then attempt to run
 a full-fledged operating system on it.

Just hack away! After reading
http://www.thebestpageintheuniverse.net/c.cgi?u=iphone
of course.



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Joachim Schipper
On Fri, Sep 18, 2009 at 05:10:49AM -0500, Jacob Yocom-Piatt wrote:
 Alvaro Mantilla Gimenez wrote:
 I just found this page:
 
 http://linuxoniphone.blogspot.com/2008/06/why-iphone-linux.html
 
 I don't have any idea about how/where to start. Maybe Theo can put some
 light here...I think my developer skills are far to be good enough but,
 hey...I would like to try !!
 
 
 
 getting openbsd working on an iphone would be a pretty serious
 undertaking and would require a lot of man hours that aren't
 currently available. you have to remember that the project is mostly
 driven by donated developer time.
 
 if you have 100K USD and are committed you might be able to make it
 happen. there would have to be a lot of reverse engineering on
 drivers and there is no reason to expect apple wouldn't change the
 chipsets across versions to make minute optimizations on cost.
 assuming you could get all this code written there are many man
 hours that go into keeping the arch working properly on an ongoing
 basis.
 
 there is no doubt this would be sweet but you have to be realistic
 when considering the amount of work it would take to make this
 happen. there are 10 mln iphones in circulation so there is no
 shortage of machines

Actually, I think that's a rather low estimate. A lot of what people
seem to like about the iPhone is the software: the hardware is neat and
all, but not *that* different from other smartphones. Apple has spent a
lot of money producing a really polished UI; duplicating that on OpenBSD
would be an unpleasantly large amount of work.

Of course, if you're happy with a basic (X) terminal, that's a lot
easier: but I don't really see the advantage of the iPhone over other
smartphones there.

Or am I missing something? I must admit to not being sufficiently
interested in this stuff to follow all the minutiae...

Joachim



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Gilles Chehade
hehe, following a link from a link from thelinuxoniphone blog, I ran
into this:

http://www.thebestpageintheuniverse.net/c.cgi?u=iphone

made my day ;-)

Gilles

On Fri, Sep 18, 2009 at 05:10:49AM -0500, Jacob Yocom-Piatt wrote:
 Alvaro Mantilla Gimenez wrote:
 I just found this page:
 
 http://linuxoniphone.blogspot.com/2008/06/why-iphone-linux.html
 
 I don't have any idea about how/where to start. Maybe Theo can put some
 light here...I think my developer skills are far to be good enough but,
 hey...I would like to try !!
 
   
 
 
 getting openbsd working on an iphone would be a pretty serious 
 undertaking and would require a lot of man hours that aren't currently 
 available. you have to remember that the project is mostly driven by 
 donated developer time.
 
 if you have 100K USD and are committed you might be able to make it 
 happen. there would have to be a lot of reverse engineering on drivers 
 and there is no reason to expect apple wouldn't change the chipsets 
 across versions to make minute optimizations on cost. assuming you could 
 get all this code written there are many man hours that go into keeping 
 the arch working properly on an ongoing basis.
 
 there is no doubt this would be sweet but you have to be realistic when 
 considering the amount of work it would take to make this happen. there 
 are 10 mln iphones in circulation so there is no shortage of machines
 
 
 Regards,
 
 Alvaro
 
 beowuff escribis:
   
 Reading the article posted on undeadly.org:
 http://www.informit.com/articles/article.aspx?p=1393496
 
 I was thinking it would be cool to have an Iphone running OpenBSD...
 
 Imagine that: the most secure phone in the planet :-P
   
 Man, I have an old 1st gen iPhone just sitting there... I would so put
 OpenBSD on it. Unfortunately, I wouldn't know where to begin :(
 

-- 
Gilles Chehade
freelance developer/sysadmin/consultant

   http://www.poolp.org



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Michal
That whole site as brilliant rants that remind me zero punctuation videos :)

-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
Gilles Chehade
Sent: 18 September 2009 12:22
To: Jacob Yocom-Piatt
Cc: misc@openbsd.org
Subject: Re: OT: Iphone with OpenBSD

hehe, following a link from a link from thelinuxoniphone blog, I ran
into this:

http://www.thebestpageintheuniverse.net/c.cgi?u=iphone

made my day ;-)

Gilles

On Fri, Sep 18, 2009 at 05:10:49AM -0500, Jacob Yocom-Piatt wrote:
 Alvaro Mantilla Gimenez wrote:
 I just found this page:
 
 http://linuxoniphone.blogspot.com/2008/06/why-iphone-linux.html
 
 I don't have any idea about how/where to start. Maybe Theo can put some
 light here...I think my developer skills are far to be good enough but,
 hey...I would like to try !!
 
 


 getting openbsd working on an iphone would be a pretty serious
 undertaking and would require a lot of man hours that aren't currently
 available. you have to remember that the project is mostly driven by
 donated developer time.

 if you have 100K USD and are committed you might be able to make it
 happen. there would have to be a lot of reverse engineering on drivers
 and there is no reason to expect apple wouldn't change the chipsets
 across versions to make minute optimizations on cost. assuming you could
 get all this code written there are many man hours that go into keeping
 the arch working properly on an ongoing basis.

 there is no doubt this would be sweet but you have to be realistic when
 considering the amount of work it would take to make this happen. there
 are 10 mln iphones in circulation so there is no shortage of machines


 Regards,
 
 Alvaro
 
 beowuff escribis:
 
 Reading the article posted on undeadly.org:
 http://www.informit.com/articles/article.aspx?p=1393496
 
 I was thinking it would be cool to have an Iphone running OpenBSD...
 
 Imagine that: the most secure phone in the planet :-P
 
 Man, I have an old 1st gen iPhone just sitting there... I would so put
 OpenBSD on it. Unfortunately, I wouldn't know where to begin :(


--
Gilles Chehade
freelance developer/sysadmin/consultant

   http://www.poolp.org



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Joachim Schipper escribis:


 Actually, I think that's a rather low estimate. A lot of what people
 seem to like about the iPhone is the software: the hardware is neat and
 all, but not *that* different from other smartphones. Apple has spent a
 lot of money producing a really polished UI; duplicating that on OpenBSD
 would be an unpleasantly large amount of work.

That is a very good point.


 Of course, if you're happy with a basic (X) terminal, that's a lot
 easier: but I don't really see the advantage of the iPhone over other
 smartphones there.

As a small server maybe it could have a little fluxbox screen just to
see the status of network, cpu load, etc...


 Or am I missing something? I must admit to not being sufficiently
 interested in this stuff to follow all the minutiae...

   Joachim



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Jan Stary escribis:

  We will be trying to develop an entire suite of device
  drivers for undocumented hardware and then attempt to run
  a full-fledged operating system on it.

 Just hack away! After reading
 http://www.thebestpageintheuniverse.net/c.cgi?u=iphone
 of course.


Compare the two phones is not the point here...this guy does not have
any clue about what the iPhone is and probably he is using his Nokia to
give pleasure himself through his ass.

The site describes a normal iPhone. A Jailbroken iPhone with cydia and
all the packages and cool stuff is a different beast. You can run perl,
php, python, ruby, apache, svn, cvs, etc...you can manage your servers
(the example that the guy is using against the iPhone) trough the
Terminal application and connect with openssh, rdp or vnc...whatever you
want.

The keyboard comment...it is just valid for an English speaker...if you
are from other language with more complex characters then you do less
work because is more easy to select that characters and guest what? you
do less taps and the end of the day.

You can actually said: Hey, here is your small server for your small
office...right here in my pocket !! You can use it as media server,
web server, backup server Take a look to cydia and the repositories.

It has support for MMS and Video recording (yes..cycorder), IM (too many
clients...you already have problems to choose one because of that), vlc,
mplayer, mxtube (In fact...I downloaded the slackathon conferences with
that), SIP, VoIP and a lot of other cool stuff. You can, from long time
ago, personalize your ringtones without iTunes...so...that site is just
the opinion from one guy that does not know wtf he is talking about.

The actual point of the post was to have an iPhone/iPod Touch running as
small SECURE server.

It is running a BSD OS already...but not secure. That's the point of all
this post.

Regards,


 Alvaro



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Michal
...you just kill-joyed that whole page. It's a stupid rant that's quite funny
if you like that humour and he is going on the first version of the iphone,
non-jailbreak, (you cant bring that into it by the way as he is taking both
phones as-is) So please donbt suck the humour out of everything



-Original Message-
From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
Alvaro Mantilla Gimenez
Sent: 18 September 2009 17:04
To: misc@openbsd.org
Subject: Re: OT: Iphone with OpenBSD

Jan Stary escribis:

  We will be trying to develop an entire suite of device
  drivers for undocumented hardware and then attempt to run
  a full-fledged operating system on it.

 Just hack away! After reading
 http://www.thebestpageintheuniverse.net/c.cgi?u=iphone
 of course.


Compare the two phones is not the point here...this guy does not have
any clue about what the iPhone is and probably he is using his Nokia to
give pleasure himself through his ass.

The site describes a normal iPhone. A Jailbroken iPhone with cydia and
all the packages and cool stuff is a different beast. You can run perl,
php, python, ruby, apache, svn, cvs, etc...you can manage your servers
(the example that the guy is using against the iPhone) trough the
Terminal application and connect with openssh, rdp or vnc...whatever you
want.

The keyboard comment...it is just valid for an English speaker...if you
are from other language with more complex characters then you do less
work because is more easy to select that characters and guest what? you
do less taps and the end of the day.

You can actually said: Hey, here is your small server for your small
office...right here in my pocket !! You can use it as media server,
web server, backup server Take a look to cydia and the repositories.

It has support for MMS and Video recording (yes..cycorder), IM (too many
clients...you already have problems to choose one because of that), vlc,
mplayer, mxtube (In fact...I downloaded the slackathon conferences with
that), SIP, VoIP and a lot of other cool stuff. You can, from long time
ago, personalize your ringtones without iTunes...so...that site is just
the opinion from one guy that does not know wtf he is talking about.

The actual point of the post was to have an iPhone/iPod Touch running as
small SECURE server.

It is running a BSD OS already...but not secure. That's the point of all
this post.

Regards,


 Alvaro



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Jacob Yocom-Piatt escribis:


 getting openbsd working on an iphone would be a pretty serious
 undertaking and would require a lot of man hours that aren't currently
 available. you have to remember that the project is mostly driven by
 donated developer time.

Yes, I know. The developers are doing an amazing work. I am very
grateful for this awesome OS.


 there is no doubt this would be sweet but you have to be realistic when
 considering the amount of work it would take to make this happen. there
 are 10 mln iphones in circulation so there is no shortage of machines

There is nothing it could be used from the ARM OpenBSD release? Maybe is
a start...

The iPhone is already using a BSD OS..so..is it possible that some of
the drivers required are already functional?

Check this:

$ ssh r...@iphone | tee iphone.txt
r...@iphone's password:

root# df -h
FilesystemSize  Used Avail Use% Mounted on
/dev/disk0s1  500M  420M   76M  85% /
devfs  25K   25K 0 100% /dev
/dev/disk0s2  7.1G  1.9G  5.3G  27% /private/var

KKroto:~ root# sysctl -a
kern.ostype = Darwin
kern.osrelease = 10.0.0d3
kern.osrevision = 199506
kern.version = Darwin Kernel Version 10.0.0d3: Wed May 13 22:11:58 PDT
2009; root:xnu-1357.2.89~4/RELEASE_ARM_S5L8900X
kern.maxvnodes = 800
kern.maxproc = 52
kern.maxfiles = 12288
kern.argmax = 262144
kern.securelevel = 0
kern.hostname = KKroto
kern.hostid = 0
kern.clockrate: hz = 100, tick = 1, profhz = 100, stathz = 100
kern.posix1version = 200112
kern.ngroups = 16
kern.job_control = 1
kern.saved_ids = 1
kern.boottime = Fri Sep 18 09:32:58 2009
kern.nisdomainname =
kern.maxfilesperproc = 10240
kern.maxprocperuid = 26
kern.dummy = 0
kern.dummy = 0
kern.usrstack = 805306368
kern.dummy = 0
kern.dummy = 0
kern.dummy = 0
kern.exec: unknown type returned
kern.aiomax = 10
kern.aioprocmax = 4
kern.aiothreads = 2
kern.corefile = /cores/core.%P
kern.delayterm = 0
kern.shreg_private = 0
kern.usrstack64 = 8247063986311266304
kern.procname =
kern.speculative_reads_disabled = 0
kern.osversion = 7A341
kern.safeboot = 0
kern.rage_vnode = 0
vfs.hfs has 2 mounted instances
hw.machine = iPhone1,1
hw.model = M68AP
hw.ncpu = 1
hw.byteorder = 1234
hw.physmem = 121634816
hw.usermem = 93564928
hw.pagesize = 4096
hw.epoch = 1
hw.vectorunit = 0
hw.busfrequency = 10300
hw.cpufrequency = 41200
hw.cachelinesize = 32
hw.l1icachesize = 16384
hw.l1dcachesize = 16384
hw.l2settings = 0
hw.l2cachesize = 0
hw.tbfrequency = 600
hw.memsize = 121634816
hw.availcpu = 1
user.cs_path = /usr/bin:/bin:/usr/sbin:/sbin
user.bc_base_max = 99
user.bc_dim_max = 2048
user.bc_scale_max = 99
user.bc_string_max = 1000
user.coll_weights_max = 2
user.expr_nest_max = 32
user.line_max = 2048
user.re_dup_max = 255
user.posix2_version = 200112
user.posix2_c_bind = 0
user.posix2_c_dev = 0
user.posix2_char_term = 0
user.posix2_fort_dev = 0
user.posix2_fort_run = 0
user.posix2_localedef = 0
user.posix2_sw_dev = 0
user.posix2_upe = 0
user.stream_max = 20
user.tzname_max = 255
kern.ostype: Darwin
kern.osrelease: 10.0.0d3
kern.osrevision: 199506
kern.version: Darwin Kernel Version 10.0.0d3: Wed May 13 22:11:58 PDT
2009; root:xnu-1357.2.89~4/RELEASE_ARM_S5L8900X
kern.maxvnodes: 800
kern.maxproc: 52
kern.maxfiles: 12288
kern.argmax: 262144
kern.securelevel: 0
kern.hostname: KKroto
kern.hostid: 0
kern.clockrate: { hz = 100, tick = 1, tickadj = -1072182583, profhz
= 100, stathz = 100 }
kern.posix1version: 200112
kern.ngroups: 16
kern.job_control: 1
kern.saved_ids: 1
kern.boottime: { sec = 1253287978, usec = 0 } Fri Sep 18 09:32:58 2009
kern.nisdomainname:
kern.maxfilesperproc: 10240
kern.maxprocperuid: 26
kern.ipc.maxsockbuf: 8388608
kern.ipc.sockbuf_waste_factor: 8
kern.ipc.somaxconn: 128
kern.ipc.nmbclusters: 3455
kern.ipc.soqlimitcompat: 1
kern.ipc.mb_normalized: 0
kern.ipc.sosendminchain: 16384
kern.ipc.sorecvmincopy: 16384
kern.ipc.sosendjcl: 1
kern.ipc.sosendjcl_ignore_capab: 0
kern.ipc.maxsockets: 128
kern.ipc.sbspace_factor: 8
kern.ipc.njcl: 0
kern.ipc.njclbytes: 0
kern.ipc.soqlencomp: 0
kern.dummy: 0
kern.usrstack: 805306368
kern.aiomax: 10
kern.aioprocmax: 4
kern.aiothreads: 2
kern.corefile: /cores/core.%P
kern.delayterm: 0
kern.shreg_private: 0
kern.posix.sem.max: 1
kern.usrstack64:
kern.tfp.policy: 2kern.procname:
kern.speculative_reads_disabled: 0
kern.osversion: 7A341
kern.safeboot: 0
kern.lctx.last: 1
kern.lctx.count: 0
kern.lctx.max: 8192
kern.rage_vnode: 0
kern.tty.ptmx_max: 127
kern.sleeptime: { sec = 0, usec = 0 } Wed Dec 31 18:00:00 1969
kern.waketime: { sec = 0, usec = 0 } Wed Dec 31 18:00:00 1969
kern.willshutdown: 0
kern.hibernatefile:
kern.bootsignature:
kern.hibernatemode: 0
kern.monotonicclock: 1253319276
kern.nbuf: 552
kern.maxnbuf: 552
kern.flush_cache_on_write: 0
kern.sugid_scripts: 0
kern.bootargs:
kern.num_files: 203
kern.num_vnodes: 800
kern.num_tasks: 512
kern.num_threads: 1024
kern.num_taskthreads: 1024
kern.preheat_pages_max: 256
kern.preheat_pages_min: 8

Re: OT: Iphone with OpenBSD

2009-09-18 Thread Lars Nooden
Alvaro Mantilla Gimenez wrote:
 Joachim Schipper escribis:
 
 Actually, I think that's a rather low estimate. A lot of what people
 seem to like about the iPhone is the software: the hardware is neat and
 all, but not *that* different from other smartphones. Apple has spent a
 lot of money producing a really polished UI; duplicating that on OpenBSD
 would be an unpleasantly large amount of work.
 
 That is a very good point.

Yet look at the FVWM-crystal theme to see how much *could* be done to
customize even a simple window manager.  FVWM-crystal is for the desktop
with more or less average screens.

Regards
-Lars



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Michal escribis:
 ...you just kill-joyed that whole page. It's a stupid rant that's quite
funny
 if you like that humour and he is going on the first version of the iphone,
 non-jailbreak, (you cant bring that into it by the way as he is taking both
 phones as-is) So please donbt suck the humour out of everything


HaHaHa...sorry...I wake up this morning without sense of humor



 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
 Alvaro Mantilla Gimenez
 Sent: 18 September 2009 17:04
 To: misc@openbsd.org
 Subject: Re: OT: Iphone with OpenBSD

 Jan Stary escribis:
  We will be trying to develop an entire suite of device
  drivers for undocumented hardware and then attempt to run
  a full-fledged operating system on it.

 Just hack away! After reading
 http://www.thebestpageintheuniverse.net/c.cgi?u=iphone
 of course.


 Compare the two phones is not the point here...this guy does not have
 any clue about what the iPhone is and probably he is using his Nokia to
 give pleasure himself through his ass.

 The site describes a normal iPhone. A Jailbroken iPhone with cydia and
 all the packages and cool stuff is a different beast. You can run perl,
 php, python, ruby, apache, svn, cvs, etc...you can manage your servers
 (the example that the guy is using against the iPhone) trough the
 Terminal application and connect with openssh, rdp or vnc...whatever you
 want.

 The keyboard comment...it is just valid for an English speaker...if you
 are from other language with more complex characters then you do less
 work because is more easy to select that characters and guest what? you
 do less taps and the end of the day.

 You can actually said: Hey, here is your small server for your small
 office...right here in my pocket !! You can use it as media server,
 web server, backup server Take a look to cydia and the repositories.

 It has support for MMS and Video recording (yes..cycorder), IM (too many
 clients...you already have problems to choose one because of that), vlc,
 mplayer, mxtube (In fact...I downloaded the slackathon conferences with
 that), SIP, VoIP and a lot of other cool stuff. You can, from long time
 ago, personalize your ringtones without iTunes...so...that site is just
 the opinion from one guy that does not know wtf he is talking about.

 The actual point of the post was to have an iPhone/iPod Touch running as
 small SECURE server.

 It is running a BSD OS already...but not secure. That's the point of all
 this post.

 Regards,


  Alvaro



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Lars Nooden escribis:
 Alvaro Mantilla Gimenez wrote:
 Joachim Schipper escribis:

 Actually, I think that's a rather low estimate. A lot of what people
 seem to like about the iPhone is the software: the hardware is neat and
 all, but not *that* different from other smartphones. Apple has spent a
 lot of money producing a really polished UI; duplicating that on OpenBSD
 would be an unpleasantly large amount of work.
 That is a very good point.

 Yet look at the FVWM-crystal theme to see how much *could* be done to
 customize even a simple window manager.  FVWM-crystal is for the desktop
 with more or less average screens.

 Regards
 -Lars

Very Nice: http://manualinux.my-place.us/imagenes/fvwm-crystal2.jpg



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Brynet
Hi,

Perhaps it's not an IPhone, but it may be possible to run OpenBSD on
it.. with potentially less hair pulling.

http://www.windowsfordevices.com/c/a/News/In-Technology-Group-XPPhone/

I humbly request dmesg pr0n, and that everyone hug Bob Beck when you see him.

-Brynet



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Miod Vallat
 The iPhone is already using a BSD OS..so..is it possible that some of
 the drivers required are already functional?
 
 Check this:
 
 $ ssh r...@iphone | tee iphone.txt
 r...@iphone's password:
[...]

What, no dmesg?

Miod



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Jan Stary
On Sep 18 10:04:11, Alvaro Mantilla Gimenez wrote:
 Jan Stary escribis:
 
   We will be trying to develop an entire suite of device
   drivers for undocumented hardware and then attempt to run
   a full-fledged operating system on it.
 
  Just hack away! After reading
  http://www.thebestpageintheuniverse.net/c.cgi?u=iphone
  of course.
 
 
 Compare the two phones is not the point here...this guy does not have
 any clue about what the iPhone is and probably he is using his Nokia to
 give pleasure himself through his ass.
 
 The site describes a normal iPhone. A Jailbroken iPhone with cydia and
 all the packages and cool stuff is a different beast. You can run perl,
 php, python, ruby, apache, svn, cvs, etc...you can manage your servers
 (the example that the guy is using against the iPhone) trough the
 Terminal application and connect with openssh, rdp or vnc...whatever you
 want.
 
 The keyboard comment...it is just valid for an English speaker...if you
 are from other language with more complex characters then you do less
 work because is more easy to select that characters and guest what? you
 do less taps and the end of the day.
 
 You can actually said: Hey, here is your small server for your small
 office...right here in my pocket !! You can use it as media server,
 web server, backup server Take a look to cydia and the repositories.
 
 It has support for MMS and Video recording (yes..cycorder), IM (too many
 clients...you already have problems to choose one because of that), vlc,
 mplayer, mxtube (In fact...I downloaded the slackathon conferences with
 that), SIP, VoIP and a lot of other cool stuff. You can, from long time
 ago, personalize your ringtones without iTunes...so...that site is just
 the opinion from one guy that does not know wtf he is talking about.
 
 The actual point of the post was to have an iPhone/iPod Touch running as
 small SECURE server.
 
 It is running a BSD OS already...but not secure. That's the point of all
 this post.

iLOL'd



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Alvaro Mantilla Gimenez
Miod Vallat escribis:
 The iPhone is already using a BSD OS..so..is it possible that some of
 the drivers required are already functional?

 Check this:

 $ ssh r...@iphone | tee iphone.txt
 r...@iphone's password:
 [...]

 What, no dmesg?

 Miod

After I upgraded the Iphone to 3.01 I lost some of the Unix tools I had
installed.

dmesg just give me some partial information. Nothing valuable. I will
look for the unix tool missing and give you the dmesg output...

= CIPHER_PMK, flags = 0x2
AppleMRVL868x Joined AP:@ 0xc3374800, BSSID = 00:90:XX:XX:XX:XX,
rssi = -63, rate = 54 (100%), channel = 11, encryption = 0x8, ap = 1,
hidden = 0, directed = 0, failures =   0, age = 11, ssid[ 9] = 
AirPort: Link Up on en0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_AES_CCM,
index = 0, flags = 0x4
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_AES_CCM,
index = 1, flags = 0x0
launchd[69] Builtin profile: apsd (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/zoneinfo/America/Costa_Rica 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/icu/icudt40l.dat 13 (seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/zoneinfo/America/Costa_Rica 13 (seatbelt)
apsd 69 FS_READ_DATA SBF /private/var/stash/share.APlLQm/zoneinfo/UTC 13
(seatbelt)
apsd 69 FS_READ_DATA SBF
/private/var/stash/share.APlLQm/zoneinfo/posixrules 13 (seatbelt)
launchd[103] Builtin profile: MobileSafari (seatbelt)
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_AES_CCM,
index = 2, flags = 0x0



Re: OT: Iphone with OpenBSD

2009-09-18 Thread Bruce Bauer
Here is dmesg from my 16G ipod touch:
Don't know if it is useful

Bruce's iPod:~ root# dmesg
2SPI: disabled power
AppleMBXDevice(0xc0b70c00)::changePowerStateGated(0)
AppleMRVL868x::setPOWER() [kernel_task]: 0
AppleMRVL868x Deauth'ed AP: BSSID = 00:21:29:97:2b:e4, rssi =  25, rate = 
18 ( 33%), channel =  6, encryption = 0x4, ap = 1, hidden = 0, directed = 0, 
failures =   0, age = 84, ssid = Garnet House
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setPOWER(): Flushing beacons!!
AppleMRVL868x::setPowerStateGated(): 1 - 0, 0xc0bf4800
AppleSynopsysOTG2::handleUSBCableDisconnect
 0 [Time 1253304525] [Message System Sleep
pmu wake events: exton1(buttons)
System Wake
+ AppleMPVDDriver[0xc0a5d600]::setPowerStateGated()

AppleMBXDevice(0xc0b70c00)::setPowerState(1)
AppleMBXDevice(0xc0b70c00)::changePowerStateGated(1)
AppleMRVL868x::setPowerStateGated(): 0 - 1, 0xc0bf4800
AppleMRVL868x::wakeupSequence()
AppleMRVL868x::setPOWER() [kernel_task]: 1
AppleMultitouchZ2SPI: enabled power, scheduled bootloading
AppleMultitouchSPIUserClient: Inhibited externally initiated reset
AppleMRVL868x::setASSOCIATE() [configd]: lowerAuth = AUTHTYPE_OPEN, upperAuth = 
AUTHTYPE_WPA_PSK, key = CIPHER_PMK, flags = 0x2
tlv_wmm_ie type=221, len=7 oui = 0x00 0x00 0x00  type= 0x00  subType = 0x00 
vers = 0x00 QoSInfo 0x00
AppleMRVL868x Joined AP:BSSID = 00:21:29:97:2b:e4, rssi =  22, rate = 
54 (100%), channel =  6, encryption = 0x4, ap = 1, hidden = 0, directed = 0, 
failures =   0, age = 1, ssid = Garnet House
AirPort: Link Up on en0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 0, 
flags = 0x4
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, 
flags = 0x0
+ AppleMPVDDriver[0xc0a5d600]::setPowerStateGated()

AppleMBXDevice(0xc0b70c00)::setPowerState(0)
AppleMultitouchZ2SPI: disabled power
AppleMBXDevice(0xc0b70c00)::changePowerStateGated(0)
AppleMRVL868x::setPOWER() [kernel_task]: 0
AppleMRVL868x Deauth'ed AP: BSSID = 00:21:29:97:2b:e4, rssi =  25, rate = 
36 ( 66%), channel =  6, encryption = 0x4, ap = 1, hidden = 0, directed = 0, 
failures =   0, age = 37, ssid = Garnet House
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setCIPHER_KEY(): WiFi not powered on (0x3)
AppleMRVL868x::setPOWER(): Flushing beacons!!
AppleMRVL868x::setPowerStateGated(): 1 - 0, 0xc0bf4800
AppleSynopsysOTG2::handleUSBCableDisconnect
 0 [Time 1253304640] [Message System Sleep
pmu wake events: exton1(buttons)
System Wake
+ AppleMPVDDriver[0xc0a5d600]::setPowerStateGated()

AppleMBXDevice(0xc0b70c00)::setPowerState(1)
AppleMBXDevice(0xc0b70c00)::changePowerStateGated(1)
AppleMRVL868x::setPowerStateGated(): 0 - 1, 0xc0bf4800
AppleMRVL868x::wakeupSequence()
AppleMRVL868x::setPOWER() [kernel_task]: 1
AppleMultitouchSPIUserClient: Inhibited externally initiated reset
AppleMultitouchZ2SPI: enabled power, scheduled bootloading
AppleMRVL868x::setASSOCIATE() [configd]: lowerAuth = AUTHTYPE_OPEN, upperAuth = 
AUTHTYPE_WPA_PSK, key = CIPHER_PMK, flags = 0x2
tlv_wmm_ie type=221, len=7 oui = 0x00 0x00 0x00  type= 0x00  subType = 0x00 
vers = 0x00 QoSInfo 0x00
AppleMRVL868x::handleCommandPacket(): Error, aborting scan! 
(fScanningForNetworks = 0, fScanMechanism = 0)
AppleMRVL868x Joined AP:BSSID = 00:21:29:97:2b:e4, rssi =  14, rate = 
54 (100%), channel =  6, encryption = 0x4, ap = 1, hidden = 0, directed = 0, 
failures =   0, age = 1, ssid = Garnet House
AirPort: Link Up on en0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 0, 
flags = 0x4
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, 
flags = 0x0
AppleMRVL868x::setCIPHER_KEY() [kernel_task]: type = CIPHER_TKIP, index = 2, 
flags = 0x0
Bruce's iPod:~ root# ifcong fig -a
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet 127.0.0.1 netmask 0xff00 
en0: flags=8863UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 192.168.1.102 netmask 0xff00 broadcast 192.168.1.255
ether 00:1d:4f:d7:36:31 
Bruce's iPod:~ root# uname -ap
Darwin Bruce's iPod 9.4.1 Darwin Kernel Version 9.4.1: Mon Dec  8 20:59:30 PST 
2008; root:xnu-1228.7.37~4/RELEASE_ARM_S5L8900X iPod1,1 arm N45AP Darwin
Bruce's iPod:~ root# exit
logout


--- h...@stare.cz wrote:

From: Jan Stary h...@stare.cz
To: misc@openbsd.org
Subject: Re: OT: Iphone with OpenBSD
Date: Fri, 18 Sep 2009 19:30:46 +0200

On Sep 18 10:04:11, Alvaro Mantilla Gimenez wrote:
 Jan Stary escribis:
 
   We will be trying to develop an entire

OT: Iphone with OpenBSD

2009-09-17 Thread Alvaro Mantilla Gimenez
Totally offtopic:

Reading the article posted on undeadly.org:
http://www.informit.com/articles/article.aspx?p=1393496

I was thinking it would be cool to have an Iphone running OpenBSD...

Imagine that: the most secure phone in the planet :-P

Regards,

  Alvaro



Re: OT: Iphone with OpenBSD

2009-09-17 Thread beowuff
 Reading the article posted on undeadly.org:
 http://www.informit.com/articles/article.aspx?p=1393496

 I was thinking it would be cool to have an Iphone running OpenBSD...

 Imagine that: the most secure phone in the planet :-P


Man, I have an old 1st gen iPhone just sitting there... I would so put
OpenBSD on it. Unfortunately, I wouldn't know where to begin :(