best way to make dvd appear to me a .iso file to the FS

2013-09-30 Thread Aryeh Friedman
bhyveload(8) only let's you use .ISO's for install media and I want to make
it so I can just insert a DVD (/dev/cd0) and bhyve can read it as if it was
a just a normal file and not a device... short of copying it to the hard
drive is there any other solution anyone can think of?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: best way to make dvd appear to me a .iso file to the FS

2013-09-30 Thread Aryeh Friedman
That solution works only for a FreeBSD install disk.  I am looking for a
more general solution, for an install CD/DVD for any x86-compatible OS.
(Currently bhyve cannot handle other OS's besides FreeBSD, but they are
planning to add support for other OS's.)

(I am one of the developers of PetiteCloud, a forthcoming front end for
bhyve.  See the virtualization list for details.)


On Mon, Sep 30, 2013 at 9:55 PM, Kurt Lidl l...@pix.net wrote:

 On 9/30/13 9:46 PM, Aryeh Friedman wrote:

 bhyveload(8) only let's you use .ISO's for install media and I want to
 make
 it so I can just insert a DVD (/dev/cd0) and bhyve can read it as if it
 was
 a just a normal file and not a device... short of copying it to the hard
 drive is there any other solution anyone can think of?


 Well, you can create a zvol to hold the bootable UFS filesystem,
 and just mount the cd-image, and extract the /usr/freebsd-dist/*
 tarfiles directly into the freshly created filesystem...

 -Kurt



___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


proper svn prefix for 10-alpha2

2013-09-21 Thread Aryeh Friedman
What is the SVN prefix for 10-ALPHA2?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: proper svn prefix for 10-alpha2

2013-09-21 Thread Aryeh Friedman
is it for example either base/head and/or base/releng/ALPHA_2_0 or
something else?


On Sat, Sep 21, 2013 at 4:55 AM, Glen Barber g...@freebsd.org wrote:

 On Sat, Sep 21, 2013 at 04:51:47AM -0400, Aryeh Friedman wrote:
  What is the SVN prefix for 10-ALPHA2?

 What do you mean?

 Glen


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Fwd: how to make a etc/rc.d start at boot time

2013-08-11 Thread Aryeh Friedman
-- Forwarded message --
From: Aryeh Friedman aryeh.fried...@gmail.com
Date: Sun, Aug 11, 2013 at 2:07 AM
Subject: Re: how to make a etc/rc.d start at boot time
To: Rui Paulo rpa...@freebsd.org


#!/bin/sh
#
# Start/stop XXX at boot time
#
# Copyright (C) 2013 XXX

. /etc/rc.subr

name=XXX
start_cmd=${name}_start
stop_cmd=:

XXX_start() {
echo $name started.
/usr/local/openjdk6/bin/java -cp \
   /usr/local/share/XXX/XXX.jar \
   XXX.yyy \
   /usr/local/etc/XXX/YYY
}

load_rc_config $name

run_rc_command $1


On Sun, Aug 11, 2013 at 1:37 AM, Rui Paulo rpa...@freebsd.org wrote:
 On 10 Aug 2013, at 22:31, Aryeh Friedman aryeh.fried...@gmail.com wrote:

 I am creating a port for something that needs to start a daemon at
 boot time I have it so I can call onestart on it but XXX_enable=YES
 in /etc/rc.conf fails to load it i.e.


 /usr/local/etc/rc.d/XXX onestart -- works
 XXX_enable=YES -- fails

 Please post your script.

 --
 Rui Paulo



___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


min. sys. requirements

2013-08-11 Thread Aryeh Friedman
Where would I find documentation on the minimum system requirements
for 9.2 (not 9.1) and 10-CURRENT?  I also need to know the
requirements for the ports I am installing the top level ones are:

devel/aegis
devel/cook
devel/fhist
devel/tardy
devel/thistest (forth coming as me as the maintainer)
editors/vim
emulator/XXX (forth coming as me as the maintainer -- name withheld
til trademarks are applied for)
java/openjdk6
secuirty/sudo
www/tomcat7

Reason for asking is I am making a VM image for bhyve(4) and want to
know how much ram, cpu and disk to allocate for the VM
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


how to make a etc/rc.d start at boot time

2013-08-10 Thread Aryeh Friedman
I am creating a port for something that needs to start a daemon at
boot time I have it so I can call onestart on it but XXX_enable=YES
in /etc/rc.conf fails to load it i.e.


/usr/local/etc/rc.d/XXX onestart -- works
XXX_enable=YES -- fails
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


writing a rc.d script

2013-07-07 Thread Aryeh Friedman
I have a program I am making a port for that also requires a
/usr/local/etc/rc.d script is there anywhere I can find documentation
on how write one and/or a template file to follow?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


svn broken

2013-06-22 Thread Aryeh Friedman
SVN can not find the FreeBSD svn repositories despite networking being
set up right:

root@vcloud:/root # svn checkout
https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
svn: E65: Unable to connect to a repository at URL
'https://svn0.us-west.freebsd.org/ports/head'
svn: E65: Error running context: No route to host
root@vcloud:/root # fetch https://svn0.us-west.FreeBSD.org/ports/head
head  100% of 3378  B   32 MBps
root@vcloud:/root # fetch https://svn0.us-east.FreeBSD.org/ports/head
head  100% of 3378  B   32 MBps
root@vcloud:/root # svn checkout
https://svn0.us-east.FreeBSD.org/ports/head /usr/ports
svn: E65: Unable to connect to a repository at URL
'https://svn0.us-east.freebsd.org/ports/head'
svn: E65: Error running context: No route to host

any ideas?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: svn broken

2013-06-22 Thread Aryeh Friedman
Update replacing https:// with svn:// (not http://) does work

On Sat, Jun 22, 2013 at 6:28 PM, Aryeh Friedman
aryeh.fried...@gmail.com wrote:
 SVN can not find the FreeBSD svn repositories despite networking being
 set up right:

 root@vcloud:/root # svn checkout
 https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-west.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host
 root@vcloud:/root # fetch https://svn0.us-west.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # fetch https://svn0.us-east.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # svn checkout
 https://svn0.us-east.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-east.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host

 any ideas?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: svn broken

2013-06-22 Thread Aryeh Friedman
aryeh@vcloud:/home/aryeh % svn --version
svn, version 1.8.0 (r1490375)
   compiled Jun 22 2013, 22:12:30 on amd64-portbld-freebsd9.1

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme


On Sat, Jun 22, 2013 at 6:34 PM, David Wolfskill da...@catwhisker.org wrote:
 On Sat, Jun 22, 2013 at 06:28:39PM -0400, Aryeh Friedman wrote:
 SVN can not find the FreeBSD svn repositories despite networking being
 set up right:

 root@vcloud:/root # svn checkout
 https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-west.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host
 root@vcloud:/root # fetch https://svn0.us-west.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # fetch https://svn0.us-east.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # svn checkout
 https://svn0.us-east.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-east.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host

 any ideas?
 

 Check output of svn --version -- does it mention

 ...

 * ra_serf : Module for accessing a repository via WebDAV protocol using serf.
   - handles 'http' scheme
   - handles 'https' scheme
 ...

 or

 ...
 * ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
   - handles 'http' scheme
   - handles 'https' scheme
 ...

 ?

 The former is OK; the latter is not, as of svn 1.8.x.  Ref.
 ports/UPDATING entry 20130619:

 ...
   If you want to upgrade, and use http/https access to repositories,
   please check, that the SERF option is enabled, as NEON support
   is gone.
 ...

 Peace,
 david
 --
 David H. Wolfskill  da...@catwhisker.org
 Taliban: Evil men with guns afraid of truth from a 14-year old girl.

 See http://www.catwhisker.org/~david/publickey.gpg for my public key.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: svn broken

2013-06-22 Thread Aryeh Friedman
No go see my updated post

On Sat, Jun 22, 2013 at 6:38 PM, Jason Hellenthal
jhellent...@dataix.net wrote:
 Switch URL to svn.freebsd.org

 --
  Jason Hellenthal
  Inbox: jhellent...@dataix.net
  Voice: +1 (616) 953-0176
  JJH48-ARIN


 On Jun 22, 2013, at 18:28, Aryeh Friedman aryeh.fried...@gmail.com wrote:

 SVN can not find the FreeBSD svn repositories despite networking being
 set up right:

 root@vcloud:/root # svn checkout
 https://svn0.us-west.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-west.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host
 root@vcloud:/root # fetch https://svn0.us-west.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # fetch https://svn0.us-east.FreeBSD.org/ports/head
 head  100% of 3378  B   32 MBps
 root@vcloud:/root # svn checkout
 https://svn0.us-east.FreeBSD.org/ports/head /usr/ports
 svn: E65: Unable to connect to a repository at URL
 'https://svn0.us-east.freebsd.org/ports/head'
 svn: E65: Error running context: No route to host

 any ideas?
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


openstack under virtualbox

2013-06-07 Thread Aryeh Friedman
I have been banging my head for almost 3 weeks now to get openstack
(nova and glance only or what ever the min is), I have tried essex and
currdntly attempting grizzly, it gets all way the point of making
instances but the instances are unreachable (by tcp/ip but the console
works fine)... using devstack it does work... I am just wondering if
there is anything weird people have encountered here... note the vbox
host (I will be moving it to real hardware once vb works) is:

FreeBSD scoobySnax3 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Thu May
23 01:01:35 EDT 2013 root@scoobySnax3:/usr/obj/usr/src/sys/GENERIC
 amd64

and the first image I want to install once it working is the rackspace
freebsd image
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


how to force all packets to be ipv4 not v6

2013-03-30 Thread Aryeh Friedman
I have a host that for ISP reasons must have a ipv6 addr as well as the
ipv4 but the ISP does not offer external ipv6 routing but all the commanes
(ssh, ftp, etc.) default to ipv6 and need special options to use 4 is there
anyway to force them to always use 4?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: how to force all packets to be ipv4 not v6

2013-03-30 Thread Aryeh Friedman
On Sun, Mar 31, 2013 at 1:37 AM, Glen Barber g...@freebsd.org wrote:

 freebsd-net@ might have been a better choice, but...

 On Sun, Mar 31, 2013 at 01:20:17AM -0400, Aryeh Friedman wrote:
  I have a host that for ISP reasons must have a ipv6 addr as well as the
  ipv4 but the ISP does not offer external ipv6 routing but all the
 commanes
  (ssh, ftp, etc.) default to ipv6 and need special options to use 4 is
 there
  anyway to force them to always use 4?

 Which version of FreeBSD?


9.1



 See rc.conf(5) for 'ip6addrctl_policy'; I think this is what you're
 looking for.

 Glen


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


OT: getting named to answer differently based on requester's IP

2013-01-02 Thread Aryeh Friedman
I have a local machine (say foo.example.com) that is behind a very
dumb firewall (it will not honor dmz/port forwarding if the connection
originates from inside the firewall [192.168.2.X]) specifically if
I connect to the public IP from *OUTSIDE* of the lan it works but not
from inside... I have a number of web services that depend on a
specific DNS being set (specifically www/tomcat7 and the alike)...
i.e. if I am at home I need to use localhost (changing it in
/etc/hosts has no effect) if I am away I need to use
ack.example.com)... what I want to do is make it so I can use
ack.example.com for all references... this means I need to make it
so local requests to ack.example.com answer 192.168.2.2 and remote
ones answer the public IP.. how do I configure named to do this (I
have full control of all the nameservers in question)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-10 Thread Aryeh Friedman
Forgot to mention this project vary well turn into my PhD thesis
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-10 Thread Aryeh Friedman
The reason for Java has nothing to do with VM's per se but with some
of the networking features I have in mind.  Also from a theoretical
point of view any turning complete vm would do (the actual HW
differences are fairly easy to abstract in the model I have in mind
and polymorphism is a must for various other reasons that would take
far to long to explain so that means either C++ or Java... from a pure
CS point of view C++ is the wrong choice (in my mind the only arg for
it is it has ptr
's which in reality often are too easy to misuse anyways and that's
the reason for wrapping them in Java like I described in the OP).
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-10 Thread Aryeh Friedman
 Note that this pretty much makes java pretty much worthless.  I say
 that carefully as the seemingly good thing that makes the extra
 effort in java worth it is the guarantee against the halting problem
 that makes the security madness possible.  If your vm is i386, you
 can't offer that guarantee.  The JVM is very specially crafted for
 this purpose.

On the halting problem unless my basic theory of computation is very
out of date it is not possible for any turing complete machine to
guerntee against the halting problem btw I think the AI crowd
would love to hear that Java is a oracle (pun intended) which is
likely more then any human can do (as far I know the current thinking
is humans are somewhere between UTM's and oracles)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-10 Thread Aryeh Friedman
On Mon, Dec 10, 2012 at 3:44 AM, Erich Dollansky
erichsfreebsdl...@alogt.com wrote:
 Hi,

 On Mon, 10 Dec 2012 03:08:11 -0500
 Aryeh Friedman aryeh.fried...@gmail.com wrote:

 Forgot to mention this project vary well turn into my PhD thesis

 I would then extremely careful with Java.

 There are many reasons why assembler and C are still the languages used
 for OS programming.


Thats why I have spent almost 5 years doing pencil and paper designs
to make sure it fits into the Java computational model but still has
full HW access
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-10 Thread Aryeh Friedman
 P.S.  Just for general interest, what university?

CUNY grad center (under a special arrangement that allows me to skip
the course work part of grad school) [I have not formally started yet]

As to your complexity issues I do not plan to do the whole OS just the
stuff up to mid-level I/O (for FreeBSD this is also known as user land
I/O)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


using FreeBSD to create a completely new OS

2012-12-09 Thread Aryeh Friedman
For personal hobby reasons I want to write an OS completely from
scratch (due to some aspects of the design no existing OS is a
suitable starting place)... what I mean is I want to start with the
MBR (boot0) and go on from there... I only have one *REAL* machine to
work with which means I need to work with something like
emulators/virtualbox-ose... I also want to do as many automated tests
as possible (for example seeing if the installer copied the MBR [and
later other stuff] correctly to the virtual HDD) for this reason I
have a few questions on vb (or perhaps QEMU if not possible in vb):

1. Can it be scripted?
2. Is there any documentation on the various virtual HDD formats and
such (that way I can check the physical drive and not by indirect
query)?

Also can people give me some idea of a good general
development/testing framework the one I have in mind so far is:

1. Write enough of the OS in FreeBSD to boot and give a command prompt
and then develop using it (assume that there is a working compilor
[note I am doing it completely in Java (note 1) and will be using
either gjava (gcc) or writing my own compiler])

Notes:

1. Due to OS's needing to address physical RAM directly (DMA mapped
I/O) I will be introducing some form of ptr's into java with the
compiler or native ASM
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: using FreeBSD to create a completely new OS

2012-12-09 Thread Aryeh Friedman
On Mon, Dec 10, 2012 at 2:38 AM, Zaphod Beeblebrox zbee...@gmail.com wrote:
 On Sun, Dec 9, 2012 at 11:48 PM, Aryeh Friedman
 aryeh.fried...@gmail.com wrote:
 For personal hobby reasons I want to write an OS completely from
 scratch (due to some aspects of the design no existing OS is a
 suitable starting place)... what I mean is I want to start with the
 MBR (boot0) and go on from there... I only have one *REAL* machine to

 Well... most would say that the interesting part of an OS has very
 little to do with the loader, but who am I to judge: maybe a loader is
 interesting for you.  There are quite a few things that can be loaded
 and useful from an MBR.  Pretty much any machine will provide you with
 a boot environment that has lived longer than any other.  It's pretty
 much DOS without a filesystem, tho.  In freebsd, you want to look at
 /boot/mbr and maybe (later) /boot/loader (or one of it's variants).

I was asking how to extract it from the virtual HDD made by vbox


 work with which means I need to work with something like
 emulators/virtualbox-ose... I also want to do as many automated tests
 as possible (for example seeing if the installer copied the MBR [and
 later other stuff] correctly to the virtual HDD) for this reason I
 have a few questions on vb (or perhaps QEMU if not possible in vb):

 1. Can it be scripted?
 2. Is there any documentation on the various virtual HDD formats and
 such (that way I can check the physical drive and not by indirect
 query)?

 The format of an MBR (master boot record) is documented everywhere.
 I'm pretty sure wikipedia has a good article on it.  This mailing list
 is not google, BTW.

I know (about the list not being google) and have seen the formats for
MBR's (even wrote a few by hand) the question was how to extract it
from the virtual HDD (see above) namely is I have a prototype MBR
that should be made I want to check if it was actually written to the
virtual HDD correctly


 Also can people give me some idea of a good general
 development/testing framework the one I have in mind so far is:

 1. Write enough of the OS in FreeBSD to boot and give a command prompt
 and then develop using it (assume that there is a working compilor
 [note I am doing it completely in Java (note 1) and will be using
 either gjava (gcc) or writing my own compiler])

 Notes:

 1. Due to OS's needing to address physical RAM directly (DMA mapped
 I/O) I will be introducing some form of ptr's into java with the
 compiler or native

 My first thought was the humor of getting java to deal with segment
 registers.  It's hard enough in C.

 But in all seriousness, most systems go from the firmware to something
 like a bootblock (often called a stage one boot) to a smarter
 bootloader (stage two boot) to activating the OS.  In a PC-ish world
 for FreeBSD, that's BIOS-/boot/mbr-/boot/loader-kernel.
 Specifically locore.s (note: assembly language file).  locore.s is one
 of a few regions of kernels that are generally _not_ written in high
 level languages.  Other's include the very lowest level of the
 scheduler and the virtual memory manager.  In locore's case, you can't
 express the special instructions (for a PC) to exit real mode and
 enter virtual mode (or some such transformation --- I really haven't
 been there in awhile).  Note that FreeBSD boots on a number of things
 and that each boot process is a little bit different.

The idea is not replicate *ANY* existing OS but write a completely new
one (completely new architecture for an OS even).   For that reason
starting with the MBR is the right thing to do for reasons that would
take several pages to explain.

From my initial research there is almost nothing that depends on
actual ASM except for a very small number of things that create the
environment needed to run the equiv of the JVM (no garbage collection
at this level) natively on an x86.   My guess the total amount of ASM
needed is less then a thousand instructions (99% are macro's mostly
for performance reasons).   The other 1% is just to get the protected
mode and the native JVM loaded and started.

Note when I say JVM I actually mean a collection of VM's that model
real HW (not some abstract HW like the sun JVM does) and if the VM
just happens to be identical to the native HW then it skips the
emulation part of the VM (i.e. direct execution on the actual HW).
The first such VM I am planning is x86 (64-bit).  Namely if your
running on a PC then it runs natively but on anything else it runs on
a VM identical to a PC.


 If you're going to write an OS from scratch, you might start with
 something _way_ simpler than FreeBSD.  Minix would be a good choice.
 I think it still comes as a book you buy with bootable code.  If you
 haven't done OS work before, the book part might get you going faster
 than diving into the FreeBSD codebase.

I have done some trivial OS stuff before like getting to the point
where I can type the equiv of ls and cd on a trivial virtual FS

Re: how to turn my computer into a TV

2012-06-17 Thread Aryeh Friedman
Just a small notes on requirements we *DO NOT* have cable or any other
non-broadcast service (we are using a broadcast signal only [current
US {NYC} standards])

On Sun, Jun 17, 2012 at 1:02 PM, Juergen Lock n...@jelal.kn-bremen.de wrote:
 In article 
 cakyr3zwqqyihzcomyuobobou-svqylmgk36qdnebvcvgbhj...@mail.gmail.com you 
 write:
On Sun, Jun 17, 2012 at 9:38 AM, Niclas Zeising zeis...@daemonic.se wrote:
 On 06/17/12 04:14, Aryeh Friedman wrote:

 I just moved into a very cramped apartment and we only have room for
 one monitor so it is the computer then I heard it is possible to make
 it so you can watch TV on your computer I know about some this for
 windows but I am dedicated FreeBSD person... how do I go about doing
 all the research I need to make sure that the following is true:

 1. FreeBSD supports all hardware (and the needed functionality) to
 watch full screen tv on my computer (extra points of a remote can be
 used)... NOTE: This hardware must be currently fairly mass market
 2. What ports to install (right now my desktop is x11-wm/xfce4) make this
 happen
 3. Any tips on making it optimal


 This is perhaps not the solution you are looking for, but many modern TV
 screens has a VGA and a DVI input connector, as well as many fairly modern
 computers has HDMI output. DVI is also compatible with HDMI, at least to an
 extent. Perhaps you can find a monitor and use it as a dual-purpose monitor
 instead?
 Regards!
 --
 Niclas Zeising

I think hes maybe looking for a tv tuner card to plug into his
computer so he can watch TV on the PC also...
Haupauge makes a few and are compatible with FreeBSD. See  Setting Up TV Cards
and a good list is freebsd-multimedia
http://www.freebsd.org/doc/handbook/tvcard.html

 That handbook chapter only mentions analog bktr(4) tuner cards so
 it's a bit outdated.  Nowadays you can also use cx88-based analog
 and dvb-t/atsc(?) pci(e) tuner cards driven by the multimedia/cx88
 port, as well as a greater variety of usb tuners supported by
 multimedia/webcamd which runs the Linux v4l/dvb driver code in
 FreeBSD userland.  See

        http://wiki.freebsd.org/WebcamCompat

 for some tuners people have reported as working.  Another usb
 atsc tuner that has good chances of working is this one:

        http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-950Q

 (at least it seems pretty popular on Linux.)

  And about tv apps that you can control using a remote (usually via
 comms/lirc), the most popular ones are multimedia/mythtv and
 multimedia/vdr, see these pages:

        http://wiki.freebsd.org/HTPC

        http://wiki.freebsd.org/MythTV

 and

        http://wiki.freebsd.org/VDR

 as well as multimedia/xbmc-pvr that you can use with vdr as backend
 as also described in the above vdr wiki page.

  HTH, :)
        Juergen
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


how to turn my computer into a TV

2012-06-16 Thread Aryeh Friedman
I just moved into a very cramped apartment and we only have room for
one monitor so it is the computer then I heard it is possible to make
it so you can watch TV on your computer I know about some this for
windows but I am dedicated FreeBSD person... how do I go about doing
all the research I need to make sure that the following is true:

1. FreeBSD supports all hardware (and the needed functionality) to
watch full screen tv on my computer (extra points of a remote can be
used)... NOTE: This hardware must be currently fairly mass market
2. What ports to install (right now my desktop is x11-wm/xfce4) make this happen
3. Any tips on making it optimal
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


diagonising a overheating problem

2012-05-14 Thread Aryeh Friedman
I have a HP Pavilion g7-1365dx laptop that is constantly freezing up
(doesn't respond to any key/mouse actions except the power switch) at
random times the most reasonable explination I can think of is
overheating and thus I have gotten one of those laptop mats that has a
fan in it but to no avail (makes it less likely but now that stuff is
heating up in late spring [I have no AC]) it is happening again... I
use the machine for totally routine desktop stuff (surfing the web,
watching flash movies and some lite java development) my guess is
that for some reason the FreeBSD CPU/bus speed controls and such are
not working based on the following item I found in my dmesg's:

acpi_tz0: _CRT value is absurd, ignored (-273.2C)

I have no other clues so far
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: diagonising a overheating problem

2012-05-14 Thread Aryeh Friedman
On Mon, May 14, 2012 at 6:37 PM, Bartosz Fabianowski free...@chillt.de wrote:
 Try sysctl dev.cpu.0.temperature. I have a notoriously overheating Dell
 laptop and for me, this sysctl always reports the temperature.

 - Bartosz

~/Desktop aryeh@localhost% sysctl dev.cpu.0.temperature
sysctl: unknown oid 'dev.cpu.0.temperature'
~/Desktop aryeh@localhost% sysctl dev.cpu.0
dev.cpu.0.%desc: ACPI CPU
dev.cpu.0.%driver: cpu
dev.cpu.0.%location: handle=\_PR_.C000
dev.cpu.0.%pnpinfo: _HID=none _UID=0
dev.cpu.0.%parent: acpi0
dev.cpu.0.freq: 1500
dev.cpu.0.freq_levels: 1500/7260 1400/6056 1225/5299 1200/5125
1100/4500 1000/4095 900/3753 800/3468 700/3034 600/2601 500/2167
400/1734 300/1300 200/867 100/433
dev.cpu.0.cx_supported: C1/0 C2/100
dev.cpu.0.cx_lowest: C1
dev.cpu.0.cx_usage: 100.00% 0.00% last 233us
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: diagonising a overheating problem

2012-05-14 Thread Aryeh Friedman
On Mon, May 14, 2012 at 7:02 PM, Anton Shterenlikht me...@bristol.ac.uk wrote:
 On Mon, May 14, 2012 at 06:56:47PM -0400, Aryeh Friedman wrote:
 On Mon, May 14, 2012 at 6:37 PM, Bartosz Fabianowski free...@chillt.de 
 wrote:
  Try sysctl dev.cpu.0.temperature. I have a notoriously overheating Dell
  laptop and for me, this sysctl always reports the temperature.
 
  - Bartosz

 ~/Desktop aryeh@localhost% sysctl dev.cpu.0.temperature
 sysctl: unknown oid 'dev.cpu.0.temperature'
 ~/Desktop aryeh@localhost% sysctl dev.cpu.0
 dev.cpu.0.%desc: ACPI CPU
 dev.cpu.0.%driver: cpu
 dev.cpu.0.%location: handle=\_PR_.C000
 dev.cpu.0.%pnpinfo: _HID=none _UID=0
 dev.cpu.0.%parent: acpi0
 dev.cpu.0.freq: 1500
 dev.cpu.0.freq_levels: 1500/7260 1400/6056 1225/5299 1200/5125
 1100/4500 1000/4095 900/3753 800/3468 700/3034 600/2601 500/2167
 400/1734 300/1300 200/867 100/433
 dev.cpu.0.cx_supported: C1/0 C2/100
 dev.cpu.0.cx_lowest: C1
 dev.cpu.0.cx_usage: 100.00% 0.00% last 233us
 ___

 GEN8 sysctl hw.acpi.thermal
 hw.acpi.thermal.min_runtime: 0
 hw.acpi.thermal.polling_rate: 10
 hw.acpi.thermal.user_override: 0
 hw.acpi.thermal.tz0.temperature: 61.0C
 hw.acpi.thermal.tz0.active: 2
 hw.acpi.thermal.tz0.passive_cooling: 1
 hw.acpi.thermal.tz0.thermal_flags: 0
 hw.acpi.thermal.tz0._PSV: 95.0C
 hw.acpi.thermal.tz0._HOT: -1
 hw.acpi.thermal.tz0._CRT: 105.0C
 hw.acpi.thermal.tz0._ACx: 75.0C 65.0C 50.0C 40.0C -1 -1 -1 -1 -1 -1
 hw.acpi.thermal.tz0._TC1: 1
 hw.acpi.thermal.tz0._TC2: 2
 hw.acpi.thermal.tz0._TSP: 100
 GEN8

 See acpi_thermal(4)


hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 10
hw.acpi.thermal.user_override: 0
hw.acpi.thermal.tz0.temperature: 94.0C
hw.acpi.thermal.tz0.active: -1
hw.acpi.thermal.tz0.passive_cooling: 1
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: 95.0C
hw.acpi.thermal.tz0._HOT: 105.0C
hw.acpi.thermal.tz0._CRT: -1
hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.thermal.tz0._TC1: 2
hw.acpi.thermal.tz0._TC2: 3
hw.acpi.thermal.tz0._TSP: 30
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: diagonising a overheating problem

2012-05-14 Thread Aryeh Friedman

 dev.cpu.0.temperature is provided by the coretemp(4) driver, maybe you
 need to kldload it?

 -- Ian



Added coretemp and still no sysctl of that name
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


best way to get distfiles added to ports.tgz during make release

2011-08-27 Thread Aryeh Friedman
I have made a custom install USB drive from R/cdrom/dvd1 and pkg_add works
fine for everything but xorg/nvidia-driver so part of the post install
script I made is portmaster xorg/nvidia-driver the only problem is it then
needs to fetch the distfiles (the target install machine{s) will not have
nic's attached)... so my questoin is whats the best way to make it so when
sysinstall unpacks ./8.2-NHK_KIOSK/ports/ports.tgz that the distfiles are
also unpacked?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


make release question

2011-07-21 Thread Aryeh Friedman
Where does make release place the disk images (iso's) by default
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


speech reconition

2011-06-22 Thread Aryeh Friedman
After seeing one to many ads for Dragon I have decided to see what can
done on my main (and only) machine which runs FB exclusively
please note I have a speech impairment but when I tried a very early
version of Dragon in I think 1989 or 1990 it got 90% of what I said
with no training (and my speech has improved since then and I am sure
it has also)... I will be using this mostly for command line input
(tcsh) but the main purpose of that is to be a java developer who
hates IDE's additionally I will be using it for OpenOffice and perhaps
browser address bar and forms (I will move the mouse thank you ;-))...
I see three possible routes which is best:

1. Use something from ports (it is ok if I have to write a few glue scripts)
2. Use wine but I have never gotten anything to work correctly on it
3. Install virtual box and then install windows 7 and hope that the
sound card mic works with it and buy Dragon and then use PuTTY to get
to the command line of the host OS

My preference is in the same order if possible
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Aryeh Friedman
On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky hsela...@c2i.net wrote:
 On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote:
 if_cdce kernel,

 if_cdce kernel module

 --HPS


flosoft-stable# kldload if_cdce
kldload: can't load if_cdce: File exists
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Aryeh Friedman
On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky hsela...@c2i.net wrote:
 On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote:
 On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky hsela...@c2i.net
 wrote:
  On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote:
  if_cdce kernel,
 
  if_cdce kernel module
 
  --HPS

 flosoft-stable# kldload if_cdce
 kldload: can't load if_cdce: File exists

 Any ueX network interfaces?

None


 Also:

 usbconfig -d X.Y dump_device_desc

flosoft-stable# usbconfig -d 5.2 dump_device_desc
ugen5.2: Android Phone HTC at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0102
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0bb4
  idProduct = 0x0c02
  bcdDevice = 0x0100
  iManufacturer = 0x0003  HTC
  iProduct = 0x0002  Android Phone
  iSerialNumber = 0x0001  HT96KLV04735
  bNumConfigurations = 0x0001
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Aryeh Friedman
On Sun, Jan 16, 2011 at 7:27 AM, Hans Petter Selasky hsela...@c2i.net wrote:
 On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote:
 On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky hsela...@c2i.net
 wrote:
  On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote:
  On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky hsela...@c2i.net
 
  wrote:
   On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote:
   if_cdce kernel,
  
   if_cdce kernel module
  
   --HPS
 
  flosoft-stable# kldload if_cdce
  kldload: can't load if_cdce: File exists
 
  Any ueX network interfaces?

 None

  Also:
 

 And what about:

 usbconfig -d X.Y dump_curr_config_desc

flosoft-stable# usbconfig -d 5.2 dump_curr_config_desc
ugen5.2: Android Phone HTC at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON


 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0037
bNumInterfaces = 0x0002
bConfigurationValue = 0x0001
iConfiguration = 0x  no string
bmAttributes = 0x0080
bMaxPower = 0x0080

Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x0008
  bInterfaceSubClass = 0x0006
  bInterfaceProtocol = 0x0050
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x


Interface 1
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x0001
  bAlternateSetting = 0x
  bNumEndpoints = 0x0002
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x0042
  bInterfaceProtocol = 0x0001
  iInterface = 0x  no string

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0082  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x





 --HPS

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-16 Thread Aryeh Friedman
Are you talking about BSDoid or FreeDroid?

On Sun, Jan 16, 2011 at 8:17 AM, Kostik Belousov kostik...@gmail.com wrote:
 On Sun, Jan 16, 2011 at 01:58:26PM +0100, Hans Petter Selasky wrote:
 On Sunday 16 January 2011 13:30:33 Aryeh Friedman wrote:
  On Sun, Jan 16, 2011 at 7:27 AM, Hans Petter Selasky hsela...@c2i.net
 wrote:
   On Sunday 16 January 2011 13:20:39 Aryeh Friedman wrote:
   On Sun, Jan 16, 2011 at 7:07 AM, Hans Petter Selasky hsela...@c2i.net
  
   wrote:
On Sunday 16 January 2011 12:59:17 Aryeh Friedman wrote:
On Sun, Jan 16, 2011 at 6:48 AM, Hans Petter Selasky
hsela...@c2i.net
   
wrote:
 On Sunday 16 January 2011 11:49:28 Hans Petter Selasky wrote:
 if_cdce kernel,

 if_cdce kernel module

 --HPS
   
flosoft-stable# kldload if_cdce
kldload: can't load if_cdce: File exists
   
Any ueX network interfaces?
  
   None
  
Also:
   And what about:
  
   usbconfig -d X.Y dump_curr_config_desc
 
  flosoft-stable# usbconfig -d 5.2 dump_curr_config_desc
  ugen5.2: Android Phone HTC at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps)
  pwr=ON
 
 
   Configuration index 0
 
      bLength = 0x0009
      bDescriptorType = 0x0002
      wTotalLength = 0x0037
      bNumInterfaces = 0x0002
      bConfigurationValue = 0x0001
      iConfiguration = 0x  no string
      bmAttributes = 0x0080
      bMaxPower = 0x0080
 
      Interface 0
        bLength = 0x0009
        bDescriptorType = 0x0004
        bInterfaceNumber = 0x
        bAlternateSetting = 0x
        bNumEndpoints = 0x0002
        bInterfaceClass = 0x0008
        bInterfaceSubClass = 0x0006
        bInterfaceProtocol = 0x0050
        iInterface = 0x  no string
 
       Endpoint 0
          bLength = 0x0007
          bDescriptorType = 0x0005
          bEndpointAddress = 0x0001  OUT
          bmAttributes = 0x0002  BULK
          wMaxPacketSize = 0x0200
          bInterval = 0x
          bRefresh = 0x
          bSynchAddress = 0x
 
       Endpoint 1
          bLength = 0x0007
          bDescriptorType = 0x0005
          bEndpointAddress = 0x0081  IN
          bmAttributes = 0x0002  BULK
          wMaxPacketSize = 0x0200
          bInterval = 0x
          bRefresh = 0x
          bSynchAddress = 0x
 
 
      Interface 1
        bLength = 0x0009
        bDescriptorType = 0x0004
        bInterfaceNumber = 0x0001
        bAlternateSetting = 0x
        bNumEndpoints = 0x0002
        bInterfaceClass = 0x00ff
        bInterfaceSubClass = 0x0042
        bInterfaceProtocol = 0x0001
        iInterface = 0x  no string
 
       Endpoint 0
          bLength = 0x0007
          bDescriptorType = 0x0005
          bEndpointAddress = 0x0002  OUT
          bmAttributes = 0x0002  BULK
          wMaxPacketSize = 0x0200
          bInterval = 0x
          bRefresh = 0x
          bSynchAddress = 0x
 
       Endpoint 1
          bLength = 0x0007
          bDescriptorType = 0x0005
          bEndpointAddress = 0x0082  IN
          bmAttributes = 0x0002  BULK
          wMaxPacketSize = 0x0200
          bInterval = 0x
          bRefresh = 0x
          bSynchAddress = 0x

 Looks like interface 1 is the ADB one (vendor specific). If the ADB client is
 not using LibUSB then you might get it working by adding the vendor ID and
 product ID to sys/dev/usb/serial/u3g.c as listed by dump_device_desc . A
 /dev/cuaU0 will then be created which you can use to transfer data.

 FWIW, I successfully used adb from freebsd port of android SDK to
 connect to Samsung Galaxy S. For sure, it only worked on i386, but
 this is a known issue with libusb.

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Android development (was Re: best way to run -RELEASE and -CURRENT on the same machine)

2011-01-15 Thread Aryeh Friedman
I am brand new to the whole android development thing... All I know is
the phone some how makes it self look like a Linux machine to the
outside world (how and such I have no clue)... when I connected it to
USB I got:

ugen5.2: HTC at usbus5
umass0: HTC Android Phone, class 0/0, rev 1.02/1.00, addr 2 on usbus5
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:0:0:-1: Attached to scbus0
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power
on, reset, or bus device reset occurred)
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: HTC Android Phone 0100 Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present

My mother board has a built in NIC so I think no WiFi there but I go
through a NetGear 54g router so if you can tell me the default IP or
anything else that would be helpful (the phone is completely set to
factory defaults has no SIM card or service)


On Sat, Jan 15, 2011 at 4:48 PM, Mark Felder f...@feld.me wrote:
 I saw you mention android development -- is adb over usb working on -CURRENT
 or something? I've been forced to use adb over wifi since I can't get access
 to my android phones over USB :(


 Regards,


 Mark

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


best way to run -RELEASE and -CURRENT on the same machine

2011-01-14 Thread Aryeh Friedman
My normal work doesn't require -CURRENT but the stuff I need to do
Android development only works on -CURRENT the problem I only have one
machine and want to make it so I can run 8.2-RC1 for most everyday
things but can switch to -CURRENT when I do Android work Obviously
I would like to make it so my ports are also build for both machines
everytime I run portmaster (or the equiv)... dual boot or jail or
what? note that -CURRENT currently is unusable due to active
refactoring of the interrupt handling and my NIC (ale(4)) causing a
panic when it goes from down to up
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
What is the correct procedure for loading two versions of FB onto
the same disk and making both of them bootable?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote:
 I know I spent all morning attempting to actual get it to work and
 can't... I can't seem to make the second partion bootable

 On 1/14/11, David Wolfskill da...@catwhisker.org wrote:
 On Fri, Jan 14, 2011 at 12:22:46PM -0500, Aryeh Friedman wrote:
 What is the correct procedure for loading two versions of FB onto
 the same disk and making both of them bootable?

 I already responded to your earlier query on the same topic.

 There's more than one correct way to do it.

 Peace,
 david
 --
 David H. Wolfskill   da...@catwhisker.org
 Depriving a girl or boy of an opportunity for education is evil.

 See http://www.catwhisker.org/~david/publickey.gpg for my public key.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: dual booting two versions of FB

2011-01-14 Thread Aryeh Friedman
On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote:
 On 1/14/11, Aryeh Friedman aryeh.fried...@gmail.com wrote:
 I know I spent all morning attempting to actual get it to work and
 can't... I can't seem to make the second partion bootable

 On 1/14/11, David Wolfskill da...@catwhisker.org wrote:
 On Fri, Jan 14, 2011 at 12:22:46PM -0500, Aryeh Friedman wrote:
 What is the correct procedure for loading two versions of FB onto
 the same disk and making both of them bootable?

 I already responded to your earlier query on the same topic.

 There's more than one correct way to do it.

 Peace,
 david
 --
 David H. Wolfskill  da...@catwhisker.org
 Depriving a girl or boy of an opportunity for education is evil.

 See http://www.catwhisker.org/~david/publickey.gpg for my public key.




Finally got disklabel to do th etrick...
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


csup or svn

2010-09-26 Thread Aryeh Friedman
I currently use:

csup -h cvsup9.us.freebsd.org /usr/share/examples/cvsup/cvs-supfile

and when I just ran it I got:

 Append to CVSROOT-src/access
 Edit CVSROOT-src/access,v
Segmentation fault (core dumped)


(8.1-STABLE #0)

Should I be using SVN instead and if so what is the repo URL I need to use?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: csup or svn

2010-09-26 Thread Aryeh Friedman
Isn't that a step backwards?

On Sun, Sep 26, 2010 at 11:55 PM, Greg Lewis gle...@eyesbeyond.com wrote:
 On Sun, Sep 26, 2010 at 11:34:34PM -0400, jhell wrote:
 On 09/26/2010 22:47, Aryeh Friedman wrote:
  I currently use:
 
  csup -h cvsup9.us.freebsd.org /usr/share/examples/cvsup/cvs-supfile
 
  and when I just ran it I got:
 
   Append to CVSROOT-src/access
   Edit CVSROOT-src/access,v
  Segmentation fault (core dumped)
 
 
  (8.1-STABLE #0)
 
  Should I be using SVN instead and if so what is the repo URL I need to use?

 You can safely remove that file and continue to do what you do... or

 Yes you can use SVN ports/devel/subversion-freebsd

 Or you can use cvsup (it doesn't segfault on that file).

 --
 Greg Lewis                          Email   : gle...@eyesbeyond.com
 Eyes Beyond                         Web     : http://www.eyesbeyond.com
 Information Technology              FreeBSD : gle...@freebsd.org

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-11 Thread Aryeh Friedman

 Firstly this just sounds like a case where the admin needs to provide a
 equally sound and safe way of making sure everything is cleaned up on
 logout and is offering a global way of doing it so the developer will
 not forget.

In this case the admin and developer are the same person... namely at
the clients request I am the only person allowed to work on the
project and I just want to make it so I can't accidently do something
like control-d or something like that and leave a plain text version
of a project that has a very strict NDA laying around (liquidated
damages of $250k)... the scenrio is we a are a team (each one of us is
in diff city) of freelance CS people and all use the same server for
all our development to make cooperation possible when needed (not in
this case) have centralized backups, etc. and as mentioned on this one
project the client has forced me to sign a NDA saying I can't even
show the code to the other team members without the client's
permission and thus am storing the repo using security/fuse-encfs, but
since the version control system (devel/aegis) requires creating a
development directory that is not encrypted I want to force/remind
myself to checkin what ever I was working into the encrypted repo when
I go home (it is a home office ;-)) at night or out to lunch
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-11 Thread Aryeh Friedman
On Sat, Sep 11, 2010 at 7:07 AM, Aryeh Friedman
aryeh.fried...@gmail.com wrote:

 Firstly this just sounds like a case where the admin needs to provide a
 equally sound and safe way of making sure everything is cleaned up on
 logout and is offering a global way of doing it so the developer will
 not forget.

 In this case the admin and developer are the same person... namely at
 the clients request I am the only person allowed to work on the
 project and I just want to make it so I can't accidently do something
 like control-d or something like that and leave a plain text version
 of a project that has a very strict NDA laying around (liquidated
 damages of $250k)... the scenrio is we a are a team (each one of us is
 in diff city) of freelance CS people and all use the same server for
 all our development to make cooperation possible when needed (not in
 this case) have centralized backups, etc. and as mentioned on this one
 project the client has forced me to sign a NDA saying I can't even
 show the code to the other team members without the client's
 permission and thus am storing the repo using security/fuse-encfs, but
 since the version control system (devel/aegis) requires creating a
 development directory that is not encrypted I want to force/remind
 myself to checkin what ever I was working into the encrypted repo when
 I go home (it is a home office ;-)) at night or out to lunch


Forgot to mention all these percautions are to make the client
comfortable with letting me take advanatage of the server's
development enviroment instead of spending almost a week configuring
the same env on my desktop machine... namely I trust the other team
members to not look at the code even if it was not encrypted.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-11 Thread Aryeh Friedman
I would prefer to have the plain text around after a power failure
because it could be several days of work and as I said the only reason
for all this is to make the client comfortable and not that I do not
trust the team (I do trust them)

On Sat, Sep 11, 2010 at 11:10 AM, Oliver Fromme o...@lurza.secnetix.de wrote:
 Aryeh Friedman wrote:
   In this case the admin and developer are the same person... namely at
   the clients request I am the only person allowed to work on the
   project and I just want to make it so I can't accidently do something
   like control-d or something like that and leave a plain text version
   of a project that has a very strict NDA laying around (liquidated
   damages of $250k)... the scenrio is we a are a team (each one of us is
   in diff city) of freelance CS people and all use the same server for
   all our development to make cooperation possible when needed (not in
   this case) have centralized backups, etc. and as mentioned on this one
   project the client has forced me to sign a NDA saying I can't even
   show the code to the other team members without the client's
   permission and thus am storing the repo using security/fuse-encfs, but
   since the version control system (devel/aegis) requires creating a
   development directory that is not encrypted I want to force/remind
   myself to checkin what ever I was working into the encrypted repo when
   I go home (it is a home office ;-)) at night or out to lunch

 If it's just a reminder to yourself, then I would simply
 remove the keybinding for ^D (or bind it to something else;
 the details depend on your login shell) and alias exit
 and logout to a script that checks the working directory
 of your version control system.  If things have been checked
 in correctly, it logs you out, otherwise it prints a message
 and terminates, throwing you back to the shell prompt.

 Additionally, you could put the checked-out files on a
 geli-encrypted device and/or on a memory file system.  That
 will make sure that there ist no unencrypted stuff left
 behind after a power-failure or crash.

 Best regards
   Oliver

 --
 Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
 Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
 secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
 chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

 FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

 Python is an experiment in how much freedom programmers need.
 Too much freedom and nobody can read another's code; too little
 and expressiveness is endangered.
        -- Guido van Rossum

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-11 Thread Aryeh Friedman
For reasons explained in an earlier reply this is a very *BAD* idea
due to how devel/aegis is structured

On Sat, Sep 11, 2010 at 12:32 PM, Joshua Isom jri...@gmail.com wrote:
 On 9/11/2010 10:18 AM, Aryeh Friedman wrote:

 ys of work and as I said the only reason
 for all this is to make the client comfortable and not that I do not
 trust the team (I do trust them)

 Write a script that gets executed in the background once you log in that
 will periodically check to make sure you're still logged in and if not,
 commit and delete.  If you have a power failure, the script won't be running
 until you log in(unlike using cron), and when you log in after a power
 failure it should still all be there.
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-11 Thread Aryeh Friedman
Since we have been using aegis for years and know it like the back of
our hand I don't want to learn a new tool... but I think your right I
am going to forward/cross post this entire thread to the aegis mailing
list.

On Sat, Sep 11, 2010 at 7:11 PM,  per...@pluto.rain.com wrote:
 Aryeh Friedman aryeh.fried...@gmail.com wrote:

 I would prefer to have the plain text around after a power failure
 because it could be several days of work ...

 Ideally there should be _some_ mechanism for committing unfinished
 work to a (probably encrypted) repository on, at least, a daily
 basis.

 The more I see of this thread, the more it seems that the problem
 is largely the fault of the particular VCS being used.  A VCS that
 demands a review step before anything can be checked in, even on a
 work in progress branch as opposed to the mainline, seems a poor
 fit for a project in which developers are not permitted to see one
 anothers code.

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: How to disallow logout

2010-09-10 Thread Aryeh Friedman
The problem with that is our version control system (devel/aegis)
purposely does not allow arbitary checkins... there is a whole
procedure of you have to prove it compiles and passes at least one new
test and then an other person needs to review the change and then and
only then can it be checked in (and even here you need to repeat the
proof of build and one new test [same as the ones above] to ensure
that passing the test was not a fluke of your local environment)...
this project is setup so I play all 3 roles on it but all three phases
have to be formally done to check it in... btw the whole goal here
(unlike non-atomic VCS's like SVN [git does it to some extent] the
goal here is to make sure that nothing breaks the baseline [the fully
tested and reviewed repo]).

On Fri, Sep 10, 2010 at 1:03 PM, Garrett Cooper gcoo...@freebsd.org wrote:
 On Thu, Sep 9, 2010 at 8:27 PM, Aryeh Friedman aryeh.fried...@gmail.com 
 wrote:
 I have a directory that must not exist on logout and rm -rf is not
 sufficent to do it because the contents need to be processed by our
 version control system.   The real life scenario is our version
 control system stores the repo for a given project encrypted but for
 techinical reasons it needs to keep the checkouted files in plain text
 (they are all in the same dir) and I want to *NEVER* have the plain
 text checkouted files in my dir when I logout, *BUT* instead of just
 deleting it I need to check them in...  so how do I make my .logout so
 if the file exists it will not exit and give a error saying that dir
 is still there? (minor but unimportant side effect of the version
 control system is the dir will have a different name everytime it is
 made but always the same prefix)

    This is probably a silly suggestion, but as I see it there is
 another option: a periodic script which goes and commits the files if
 the sessions go away (via crontab, or whatever). In particular, this
 would solve the problem if one of the sessions you had quit, but you
 had more than one session open to the machine.
    Of course if you didn't care about the contents of the files you
 could take a different approach and employ something similar in
 .login, but it doesn't sound like that's what you want to do either,
 and that wouldn't solve the multi-session problem...
 Cheers,
 -Garrett

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


How to disallow logout

2010-09-09 Thread Aryeh Friedman
I have a directory that must not exist on logout and rm -rf is not
sufficent to do it because the contents need to be processed by our
version control system.   The real life scenario is our version
control system stores the repo for a given project encrypted but for
techinical reasons it needs to keep the checkouted files in plain text
(they are all in the same dir) and I want to *NEVER* have the plain
text checkouted files in my dir when I logout, *BUT* instead of just
deleting it I need to check them in...  so how do I make my .logout so
if the file exists it will not exit and give a error saying that dir
is still there? (minor but unimportant side effect of the version
control system is the dir will have a different name everytime it is
made but always the same prefix)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: disassembler

2010-08-27 Thread Aryeh Friedman
No the issue is a drive that has roughly 10 years of work on it died
and I was asked to see if it is readable/reviable... I already know
the format of the MBR but I need to also read the code to see if
something is wakey (I have written MBR's {with inline assemble in GCC)
for an OS I am working on but never disambled one)

On Fri, Aug 27, 2010 at 2:50 AM, Jim Bryant kc5vdj.free...@gmail.com wrote:
 umm, dude

 you writing a boot sector virus or something?

 funny though

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/boot-boot0.html

 given your skill and goals are questionable, you can find it in the source
 tree yourself.

 Aryeh Friedman wrote:

 On Thu, Aug 26, 2010 at 11:36 PM, Aryeh Friedman
 aryeh.fried...@gmail.com wrote:


 On Thu, Aug 26, 2010 at 10:46 PM, Dirk Engling erdge...@erdgeist.org
 wrote:


 On 27.08.10 04:17, Aryeh Friedman wrote:



 Is there a disassembler in the base system if not what is a good
 option from ports?


 Try objdump -d,

  erdgeist



 flosoft# objdump -d /dev/da0
 objdump: Warning: '/dev/da0' is not an ordinary file



 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org



___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: disassembler

2010-08-27 Thread Aryeh Friedman
I should of said USB drive I just think of all USB drives as flash
drives... it is a Lacie external drive

On Fri, Aug 27, 2010 at 4:27 AM, Jim Bryant kc5vdj.free...@gmail.com wrote:
 ah, ok.

 if it's a flash drive, the data may be toast.  depends on how many dead
 cells there are.

 best of luck to you.

 Aryeh Friedman wrote:

 No the issue is a drive that has roughly 10 years of work on it died
 and I was asked to see if it is readable/reviable... I already know
 the format of the MBR but I need to also read the code to see if
 something is wakey (I have written MBR's {with inline assemble in GCC)
 for an OS I am working on but never disambled one)

 On Fri, Aug 27, 2010 at 2:50 AM, Jim Bryant kc5vdj.free...@gmail.com
 wrote:


 umm, dude

 you writing a boot sector virus or something?

 funny though


 http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/boot-boot0.html

 given your skill and goals are questionable, you can find it in the
 source
 tree yourself.

 Aryeh Friedman wrote:


 On Thu, Aug 26, 2010 at 11:36 PM, Aryeh Friedman
 aryeh.fried...@gmail.com wrote:



 On Thu, Aug 26, 2010 at 10:46 PM, Dirk Engling erdge...@erdgeist.org
 wrote:



 On 27.08.10 04:17, Aryeh Friedman wrote:




 Is there a disassembler in the base system if not what is a good
 option from ports?



 Try objdump -d,

  erdgeist




 flosoft# objdump -d /dev/da0
 objdump: Warning: '/dev/da0' is not an ordinary file




 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to
 freebsd-hackers-unsubscr...@freebsd.org






___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


disassembler

2010-08-26 Thread Aryeh Friedman
Is there a disassembler in the base system if not what is a good
option from ports?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: disassembler

2010-08-26 Thread Aryeh Friedman
On Thu, Aug 26, 2010 at 11:36 PM, Aryeh Friedman
aryeh.fried...@gmail.com wrote:
 On Thu, Aug 26, 2010 at 10:46 PM, Dirk Engling erdge...@erdgeist.org wrote:
 On 27.08.10 04:17, Aryeh Friedman wrote:

 Is there a disassembler in the base system if not what is a good
 option from ports?

 Try objdump -d,

  erdgeist


 flosoft# objdump -d /dev/da0
 objdump: Warning: '/dev/da0' is not an ordinary file

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: disassembler

2010-08-26 Thread Aryeh Friedman
On Fri, Aug 27, 2010 at 12:37 AM, Aryeh Friedman
aryeh.fried...@gmail.com wrote:
 Not really I need to look at the MBR for a flash drive (both the
 partiion table and the boot code)

 On Fri, Aug 27, 2010 at 12:32 AM, Rodrigo Mizobe m1z...@gmail.com wrote:
 hexdump could help you? what is your need?


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


unable to offline a failing drive in a zfs RAIDZ

2010-03-01 Thread Aryeh Friedman
I have a raidz setup as per the handbook but when I attempt to
offline a failing drive it will not let me:

kate# zpool status -c
invalid option 'c'
usage:
status [-vx] [pool] ...
kate# zpool status -v
  pool: storage
 state: ONLINE
 scrub: resilver completed with 0 errors on Mon Mar  1 17:36:48 2010
config:

NAMESTATE READ WRITE CKSUM
storage ONLINE   0 0 0
  raidz1ONLINE   0 0 0
ad7 ONLINE   0 0 0
ad8 ONLINE   0 0 0
ad9 ONLINE   0 0 0
ad10ONLINE   0 0 0
ad12ONLINE   0 0 0

errors: No known data errors
kate# zpool offline storage ad12
cannot offline ad12: no valid replicas
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


unit testing automated password assignment

2009-11-17 Thread Aryeh Friedman
I have a script that automatically creates a user and sets their password:

echo $3 | sudo pw useradd $1 -m -c $2 -s tcsh -h0

and by my employer's policy I need to unit test... my question is
how... the checking for user existence and such is easy but how do I
test that the password is correct?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


figuring out my subnet

2009-04-21 Thread Aryeh Friedman
My boss ordered a new subnet from our ISP and wrote down the subnet
incorrectly is there anyway to deduce what it is?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


What is difference between /etc/rc called programs and ones called after login prompt shows up

2008-08-23 Thread Aryeh Friedman
What is difference between /etc/rc.d called programs and ones called
after login prompt shows up?

The reason for asking is sysutils/fusefs-kmod gives an error if any
mounts are attempted in /etc/rc but if the exactly the same command is
issued by a user's .login/.xsession/etc. it works without problem
(assuming proper permissions of course).

a) Can anyone think of a reason why this would happen (the maintainer
is non-responive)
b) Is it possible to force something to run after /etc/rc exits but
before init calls getty?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is difference between /etc/rc called programs and ones called after login prompt shows up

2008-08-23 Thread Aryeh Friedman
On Sat, Aug 23, 2008 at 8:27 AM, Garrett Cooper [EMAIL PROTECTED] wrote:
 On Sat, Aug 23, 2008 at 3:34 AM, Aryeh Friedman
 [EMAIL PROTECTED] wrote:
 What is difference between /etc/rc.d called programs and ones called
 after login prompt shows up?

 The reason for asking is sysutils/fusefs-kmod gives an error if any
 mounts are attempted in /etc/rc but if the exactly the same command is
 issued by a user's .login/.xsession/etc. it works without problem
 (assuming proper permissions of course).

 a) Can anyone think of a reason why this would happen (the maintainer
 is non-responive)
 b) Is it possible to force something to run after /etc/rc exits but
 before init calls getty?

 a) Bad credentials? Dependencies not started (yet)?
 b) You can enforce ordering, if that's what you want. See:
 http://www.freebsd.org/doc/en/articles/rc-scripting/

a) I use a custom /etc/rc thus I can place the mount command anywhere
I want.  No matter where I place I get the same error it is *ONLY*
after /etc/rc terminates I am

b) I load fuse.ko in /boot/loader.con (copied it from
/usr/local/modules to /boot/modules) here is dmesg proof it is loaded:

 dmesg|grep fuse
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
fuse4bsd: compiled against kernel config /usr/obj/usr/src/sys/MONSTER


c) See a additionally to prove all the above here is my /etc/rc (the
last 2 lines where added just to prove the point):

#!/bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

swapon -a
fsck -p
mount -rw /
mount -a
hostname flosoft.no-ip.biz
ifconfig re0 192.168.2.2
ifconfig lo0 127.0.0.1
route add default 192.168.2.1
named
cupsd
noip2
ntpdate pool.ntp.org
sendmail -bd -q1m
apachectl start
moused -t auto -p /dev/ums0
vidcontrol -m on
mount /mnt/win_c
mount /mnt/win_d

Here is /etc/fstab (set up as recommended in the docs for
sysutils/fusefs-ntfs [which I am the co-maintainer of]):

# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad8s2b noneswapsw  0   0
/dev/ad8s2a /   ufs rw  1   1
/dev/ad8s2e /tmpufs rw  2   2
/dev/ad8s2f /usrufs rw  2   2
/dev/ad8s2d /varufs rw  2   2
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0
proc/proc   procfs  rw 0 0
linproc /compat/linux/proc  linprocfs   rw 0 0
/dev/ad8s1  /mnt/win_cntfs-3g rw,late 0   0
/dev/da0s1  /mnt/win_dntfs-3g rw,late 0   0

The patch to mount recommended in the fusefs-ntfs docs has been
applied.   In order to show that the mount commands work post call to
getty but not before:

When the above /etc/rc is run:

swapon: adding /dev/ad8s2b as swap device
/dev/ad8s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad8s2a: clean, 164555 free (3603 frags, 20119 blocks, 1.4% fragmentation)
/dev/ad8s2e: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad8s2e: clean, 253254 free (54 frags, 31650 blocks, 0.0% fragmentation)
/dev/ad8s2f: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad8s2f: clean, 210848941 free (53253 frags, 26349461 blocks, 0.0% fragmenta
tion)
/dev/ad8s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ad8s2d: clean, 1970559 free (551 frags, 246251 blocks, 0.0% fragmentation)
re0: link state changed to DOWN
add net default: gateway 192.168.2.1
re0: link state changed to UP
23 Aug 09:02:00 ntpdate[48]: step time server 216.184.20.83 offset 0.794898 sec
pid 54 (limits), uid 0: exited on signal 11 (core dumped)
[Sat Aug 23 09:02:01 2008] [warn] (2)No such file or directory: Failed to enable
 the 'httpready' Accept Filter
fuse: failed to exec mount program: No such file or directory
fuse: failed to mount file system: Unknown error: 0
fuse: failed to exec mount program: No such file or directory
fuse: failed to mount file system: Unknown error: 0

FreeBSD/i386 (flosoft.no-ip.biz) (ttyv0)

login:

Here is the .login for root and the .xsession for my main user account
(I use xdm):

 more ~root/.login
# $FreeBSD: src/etc/root/dot.login,v 1.22 2000/07/15 03:25:14 rwatson Exp $
#
# .login - csh login script, read by login shell, after `.cshrc' at login.
#
# see also csh(1), environ(7).
#

# Uncomment to display a random cookie each login:
# [ -x /usr/games/fortune ]  /usr/games/fortune -s

echo Mounting C:
mount /mnt/win_c
echo Mounting D:
mount /mnt/win_d

 more ~aryeh/.xsession
sudo mount /mnt/win_c
sudo mount /mnt/win_d
mixer 100
mixer pcm 100
xfce4-session

Sudo is configured to allow 'aryeh' to no password access.   And
finally proof that the two methods do in fact work:

 df -k
Filesystem  1024-blocks Used Avail Capacity  Mounted on
/dev/ad8s2a  507630   17852028850038%/
devfs 11 0   100%/dev
/dev/ad8s2e  507630 1124465896 0%/tmp
/dev/ad8s2f

Re: What is difference between /etc/rc called programs and ones called after login prompt shows up

2008-08-23 Thread Aryeh Friedman
On Sat, Aug 23, 2008 at 7:39 PM, RW [EMAIL PROTECTED] wrote:
 On Sat, 23 Aug 2008 23:13:49 +0100
 RW [EMAIL PROTECTED] wrote:

 On Sat, 23 Aug 2008 16:38:13 -0400
 Aryeh Friedman [EMAIL PROTECTED] wrote:


  c) See a additionally to prove all the above here is my /etc/rc (the
  last 2 lines where added just to prove the point):
 
  #!/bin/sh
 
  PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
 
  swapon -a
  fsck -p
  ...
  fuse: failed to exec mount program: No such file or directory
 
  Thus it is clear that the *ONLY* difference between the /etc/rc
  calls and the post getty calls is when they are made.

 There's another difference: your /etc/rc script doesn't export PATH.

 That does seem to be the answer.

 I was curious as to why it only fails on ntfs, so I had a look
 at the source. It seems that mount and fsck find mount_* and fsck_*
 through a hard-coded path of /rescue:/sbin:/usr/sbin, but
 mount_ntfs-3g then additionally has to find mount_fusefs through the
 environment path.

 Perhaps sysutils/fusefs-libs should be patched to make the whole thing
 more self-consistent.
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]


Thanks that did it... but you're incorrect in saying it is only ntfs
it is all fuse based fs's I had a the same error when doing a fuse-ssh
mount to my machine at work
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: What is difference between /etc/rc called programs and ones called after login prompt shows up

2008-08-23 Thread Aryeh Friedman
On Sat, Aug 23, 2008 at 9:06 PM, Ivan Voras [EMAIL PROTECTED] wrote:
 RW wrote:

 There's another difference: your /etc/rc script doesn't export PATH.

 And TERM.



Since I never set TERM why export it?
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


a strange/stupid question

2007-11-23 Thread Aryeh Friedman
Where do I find the main() [and/or other entery point] for the
kernel I tend to understand stuff better if I follow the flow of
exec from the start
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: a strange/stupid question

2007-11-23 Thread Aryeh Friedman
On 11/24/07, Attilio Rao [EMAIL PROTECTED] wrote:
 2007/11/24, Aryeh Friedman [EMAIL PROTECTED]:
  Where do I find the main() [and/or other entery point] for the
  kernel I tend to understand stuff better if I follow the flow of
  exec from the start

 It is highly MD.
 For IA32 it is in i386/i386/locore.s::btext

For AMD64 I assume something close to that...

I just relized that I actually want to understand everything from POST
on (actually from power on but I know that is very mobo dependant) so
I guess the question is where do I find the first executed statement
for BTX (I know how to disamble the MBR so that part is not an issue)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]