Re: transcode compilation error

2007-07-30 Thread [EMAIL PROTECTED]
On 30/07/07, Tsu-Fan Cheng <[EMAIL PROTECTED]> wrote:
> hi,
>   just updated the ports and found out about the thing about automake. So,
> do as told, and transcode is having problems:
>
> aud_aux.c: In function `audio_init_ffmpeg':
> aud_aux.c:364: error: `ac3_encoder' undeclared (first use in this function)
> aud_aux.c:364: error: (Each undeclared identifier is reported only once
> aud_aux.c:364: error: for each function it appears in.)
> aud_aux.c:365: error: `mp2_encoder' undeclared (first use in this function)
> gmake[2]: *** [aud_aux.lo] Error 1
>
> I do have liba52 installed, any idea??

multimedia/ffmpeg was recently updated, and portupgrade
is not always great about ordering dependencies well: per-
haps upgrade ffmpeg and then transcode?


NB: I do not have transcode installed and honestly don't
know what good it would do.

PS:  If that didn't work, I would try:
# portupgrade -rRf transcode
and if that didn't work I would throw something and work with
# portupgrade -Rrf
somewhere else in transcode's depandency tree and hope
that it got sucked in correctly (it usually does).

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread [EMAIL PROTECTED]
On 30/07/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote:
>
>
> On Mon, 30 Jul 2007, [EMAIL PROTECTED] wrote:
>
> > On 30/07/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote:
> >>
> >> On Sun, 29 Jul 2007, Terrence Wilson wrote:
> >>
> >>> I'm trying to install FreeBSD as part of a dual boot config on a hard
> >>> disk which already contains Windows XP. I have created a partition for
> >>> FreeBSD. My problem comes once I "commit" to the installation of
> >>> FreeBSD. I get the following message, after which installation aborts:
> >>> "Unable to find device node for /dev/ad4s2b in /dev! The creation of
> >>> filesystems will be aborted." What am I doing wrong?
> >>
> >> Are you trying to install FreeBSD in an extended partition? The
> >> /dev/ad*4*s2b makes me think so ...
> >
> > /dev/ad4 is probably his first SATA drive, the integer
> > following "s" is the slice number (partition in the magical
> > windows world) and if greater than 4 indicates an extended
> > slice.
>
> I thought /dev/ad4s2b meant the 5th disk (since its ad4; ad0-ad3 being 1st
> to 4th disks), 2nd slice (s2), and second partition in that slice (b). Do
> SATA drives too come up as "ad" devices? I don't have experience with SATA
> drives, so don't know ... I know my IDE drives come up as "ad" and so
> would assume SATA will come up with a different name.

I suppose we still haven't actually answered the original
question, as to why it would abort with:
"Unable to find device node for /dev/ad4s2b in /dev!"

The only thing I can think of is that sysinstall was
expecting a swap partition and wasn't given one,
although that sysinstall should be so brittle does not
agree with my general experience.

If the space to be installed in is greater than 6G
(or so) the defaults should work without a problem,
so assuming the defaults were used it should see
a /dev/ad4s2b as swap.  Of course we haven't asked
which version of FreeBSD or if there might be some
sort of buggish controller.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make install a port, but with a package?

2007-07-30 Thread Kris Kennaway
On Tue, Jul 31, 2007 at 08:32:58AM +0200, Heino Tiedemann wrote:
> Manolis Kiagias <[EMAIL PROTECTED]> wrote:
> 
> > Make install will always compile from source. You could however use:
> >
> > setenv PACKAGESITE 
> > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
> >
> > or
> >
> > export
> > PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
> >   
> > (if you use bash)
> >
> > and then do pkg_add, will get you latest packages build from the -STABLE
> > ports. You don't even have to worry about specific version numbers (i.e.
> > pkg_add -r bash instead of pkg_add -r bash-3.2.17_1) so this is a close
> > to a "port tree simulation" as possible. The package may still be
> > lagging a few versions behind the port however (or in some cases may not
> > even exist).
> 
> What about the variable PKG_SITES?
> 
> Once I found (in sime wiki or howto) this entry:
> 
> 
> export
> PACKAGESITE=ftp://ftp7.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
> export 
> PKG_SITES=ftp://ftp7.de.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/
> 
> 
> what about that variable PKG_SITES? what is it for?

See pkg_add(1)

kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread Rolf G Nielsen

Joel Hatton wrote:

On Mon, 30 Jul 2007 21:46:44 -0700, Garrett Cooper wrote:

Rakhesh is correct.

   SATA / PATA drives show up under ad[m]s[n][l], where m is the disk 
number (zero based), n is the slice, aka partition number in the non-BSD 
(/Solaris?) world, number (zero based), and l is the respective letter 
for the partition (it can vary depending on the purpose, a being root, b 
slice, c all of the disk, [d-j?], other values / relevances.
   SCSI / SAS is almost exactly the same. The only difference is 'ad' 
is replace with 'da'.


There is a difference between SATA and PATA in one respect (and I'm sure
I'll be corrected by a developer if my experience is unique). PATA drives
appear to be allocated ad0-3, SATA drives begin above that. So, ad4 can
(and may in this case) be the first and only fixed disk in the system.
This was certainly the case with my last SATA system.

cheers,
joel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"





If there are PATA channels on the motherboard (which there are on most 
motherboards, I believe) they're most likely the primary and secondary 
ATA channels, making the SATA channels the third and above. If you have 
the ATA_STATIC_ID option in the kernel, the SATA drives will then show 
up ad ad4 and above, whether or not there are any PATA drives connected. 
With the ATA_STATIC_ID option the primary master is ad0, primary slave 
is ad1 and so on, whether or not there are any drives connected. If you 
remove the ATA_STATIC_ID option, the ATA drives (PATA and SATA) will be 
assigned the lowest number not in use, so with no PATA drives connected, 
the first SATA drive will be ad0, the second one will be ad1 and so on.


This is my experience, but I'm not a developer, so there may be some 
twists that I've missed, and if so, I'm sure someone will correct me. :)



--

Vänligen / Sincerly,
Rolf Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Installation problem

2007-07-30 Thread Manolis Kiagias


Joel Hatton wrote:
> On Mon, 30 Jul 2007 21:46:44 -0700, Garrett Cooper wrote:
>   
>> Rakhesh is correct.
>>
>>SATA / PATA drives show up under ad[m]s[n][l], where m is the disk 
>> number (zero based), n is the slice, aka partition number in the non-BSD 
>> (/Solaris?) world, number (zero based), and l is the respective letter 
>> for the partition (it can vary depending on the purpose, a being root, b 
>> slice, c all of the disk, [d-j?], other values / relevances.
>>SCSI / SAS is almost exactly the same. The only difference is 'ad' 
>> is replace with 'da'.
>> 
>
> There is a difference between SATA and PATA in one respect (and I'm sure
> I'll be corrected by a developer if my experience is unique). PATA drives
> appear to be allocated ad0-3, SATA drives begin above that. So, ad4 can
> (and may in this case) be the first and only fixed disk in the system.
> This was certainly the case with my last SATA system.
>
> cheers,
> joel
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>
>   
It may have to do with how the SATA controller is setup in the bios. In
some cases there is something like an "emulation" mode where the SATA
controller actually replaces the PATA one rather than augmenting it. In
these case you may get an ad0 for the first SATA drive. If you are
running SATA in native mode, the first drive is ad4. I have two machines
with single SATA drives and they both show ad4 disk names.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: make install a port, but with a package?

2007-07-30 Thread Manolis Kiagias
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have a bad feeling that this has been asked already, and not that long
> ago, but I can't find it in my mailbox. Is there a variable I can set so
> that running 'make install' in a port directory will cause it to download
> the package, if available, and install that instead of building from
> source?  In other words, the equivalent of 'portupgrade -NPP'. I have
> looked at the .mk files and nothing in there seems to do that.
>
> This is for the situation where portupgrade isn't installed yet, and I'd
> like to install it quickly from packages so I don't have to wait for Ruby
> to build. Sure, I could do it with pkg_add or sysinstall but it would be
> neat to be able to do everything from the ports tree.
>
> thanks,
> joel
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
>
>   
Make install will always compile from source. You could however use:

setenv PACKAGESITE 
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/

or

export
PACKAGESITE=ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
  
(if you use bash)

and then do pkg_add, will get you latest packages build from the -STABLE
ports. You don't even have to worry about specific version numbers (i.e.
pkg_add -r bash instead of pkg_add -r bash-3.2.17_1) so this is a close
to a "port tree simulation" as possible. The package may still be
lagging a few versions behind the port however (or in some cases may not
even exist).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread Joel Hatton
On Mon, 30 Jul 2007 21:46:44 -0700, Garrett Cooper wrote:
>
>Rakhesh is correct.
>
>SATA / PATA drives show up under ad[m]s[n][l], where m is the disk 
>number (zero based), n is the slice, aka partition number in the non-BSD 
>(/Solaris?) world, number (zero based), and l is the respective letter 
>for the partition (it can vary depending on the purpose, a being root, b 
>slice, c all of the disk, [d-j?], other values / relevances.
>SCSI / SAS is almost exactly the same. The only difference is 'ad' 
>is replace with 'da'.

There is a difference between SATA and PATA in one respect (and I'm sure
I'll be corrected by a developer if my experience is unique). PATA drives
appear to be allocated ad0-3, SATA drives begin above that. So, ad4 can
(and may in this case) be the first and only fixed disk in the system.
This was certainly the case with my last SATA system.

cheers,
joel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread Garrett Cooper

Rakhesh Sasidharan wrote:

On Mon, 30 Jul 2007, [EMAIL PROTECTED] wrote:


On 30/07/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote:


On Sun, 29 Jul 2007, Terrence Wilson wrote:


I'm trying to install FreeBSD as part of a dual boot config on a hard
disk which already contains Windows XP. I have created a partition for
FreeBSD. My problem comes once I "commit" to the installation of
FreeBSD. I get the following message, after which installation aborts:
"Unable to find device node for /dev/ad4s2b in /dev! The creation of
filesystems will be aborted." What am I doing wrong?


Are you trying to install FreeBSD in an extended partition? The
/dev/ad*4*s2b makes me think so ...


/dev/ad4 is probably his first SATA drive, the integer
following "s" is the slice number (partition in the magical
windows world) and if greater than 4 indicates an extended
slice.


I thought /dev/ad4s2b meant the 5th disk (since its ad4; ad0-ad3 being 
1st to 4th disks), 2nd slice (s2), and second partition in that slice 
(b). Do SATA drives too come up as "ad" devices? I don't have 
experience with SATA drives, so don't know ... I know my IDE drives 
come up as "ad" and so would assume SATA will come up with a different 
name.


Regards,
Rakhesh


Rakhesh is correct.

   SATA / PATA drives show up under ad[m]s[n][l], where m is the disk 
number (zero based), n is the slice, aka partition number in the non-BSD 
(/Solaris?) world, number (zero based), and l is the respective letter 
for the partition (it can vary depending on the purpose, a being root, b 
slice, c all of the disk, [d-j?], other values / relevances.
   SCSI / SAS is almost exactly the same. The only difference is 'ad' 
is replace with 'da'.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread Rakhesh Sasidharan



On Mon, 30 Jul 2007, [EMAIL PROTECTED] wrote:


On 30/07/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote:


On Sun, 29 Jul 2007, Terrence Wilson wrote:


I'm trying to install FreeBSD as part of a dual boot config on a hard
disk which already contains Windows XP. I have created a partition for
FreeBSD. My problem comes once I "commit" to the installation of
FreeBSD. I get the following message, after which installation aborts:
"Unable to find device node for /dev/ad4s2b in /dev! The creation of
filesystems will be aborted." What am I doing wrong?


Are you trying to install FreeBSD in an extended partition? The
/dev/ad*4*s2b makes me think so ...


/dev/ad4 is probably his first SATA drive, the integer
following "s" is the slice number (partition in the magical
windows world) and if greater than 4 indicates an extended
slice.


I thought /dev/ad4s2b meant the 5th disk (since its ad4; ad0-ad3 being 1st 
to 4th disks), 2nd slice (s2), and second partition in that slice (b). Do 
SATA drives too come up as "ad" devices? I don't have experience with SATA 
drives, so don't know ... I know my IDE drives come up as "ad" and so 
would assume SATA will come up with a different name.


Regards,
Rakhesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Upgrade xorg 6.9 to 72

2007-07-30 Thread Martin Schweizer
Hello RW

I did find the problem. I'm upgrading this machine by ssh.  On the first 
screen I read UPDATING and definef the environment variables. On the second 
screen I did start portupgrade (but did not defined the variables...). Thank 
you for the hint.

Am Thu, Jul 26, 2007 at 08:38:17PM +0100 RW schrieb:
> On Thu, 26 Jul 2007 20:25:16 +0200
> Martin Schweizer <[EMAIL PROTECTED]> wrote:
> 
> > Hello RW
> > 
> > Am Mon, Jul 23, 2007 at 09:23:14PM +0100 RW schrieb:
> > 
> > > > > > I read UPDATING and did all the steps described there. 
> > > > > 
> > > > > No, you didn't because /usr/ports/x11/xorg-libraries/Makefile
> > > > > contains a little test to make sure you have read UPDATING.
> > > > 
> > > > No, it's not correct. I followed the steps from top to down.
> > > > Since I have no gstreamer ports (I did not find any) I used
> > > > portupgrade -a. After this I get the output as I send before.
> > > > Yes, I checked also the .../xorg-libraries/Makefile and saw the if
> > > > loop. I now too that after portupgrade -a went I need further
> > > > steps too (symlinks etc.). Since I'm not 100% shure that this
> > > > output is correct I wrote this mail. So if I do something wrong
> > > > please give me a hint where I did something wrong. Any hints are
> > > > welcome.
> > > 
> > > 
> > > You haven't mentioned setting XORG_UPGRADE.
> > 
> > I've checked of course the environment. I set both variables setenv
> > BATCH yes and setenv XORG_UPGRADE yes.
> > 
> > [snip]
> > ===>  Cleaning for xorg-libraries-7.2_1
> > Read /usr/ports/UPDATING for the procedure to upgrade or install xorg
> > 7.2. *** Error code 1
> > ...
> > The only one I saw is the above line but I have no idea what this
> > mean. Do you have any ideas?
> 
> Yes, the xorg-libraries Makefile tests that you have set XORG_UPGRADE
> and will abort if you haven't. If XORG_UPGRADE is set then it isn't
> possible for this error to be seen. 
> 
> The point of the test is make sure that no-one upgrades xorg without
> reading UPDATING.

-- 

Regards

Martin Schweizer
<[EMAIL PROTECTED]>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgpGF4OM6yqXQ.pgp
Description: PGP signature


Re: make install a port, but with a package?

2007-07-30 Thread Garrett Cooper

[EMAIL PROTECTED] wrote:

Hi,

I have a bad feeling that this has been asked already, and not that long
ago, but I can't find it in my mailbox. Is there a variable I can set so
that running 'make install' in a port directory will cause it to download
the package, if available, and install that instead of building from
source?  In other words, the equivalent of 'portupgrade -NPP'. I have
looked at the .mk files and nothing in there seems to do that.

This is for the situation where portupgrade isn't installed yet, and I'd
like to install it quickly from packages so I don't have to wait for Ruby
to build. Sure, I could do it with pkg_add or sysinstall but it would be
neat to be able to do everything from the ports tree.

thanks,
joel
Unfortunately none that I'm aware of. You can always install Ruby (and 
its dependencies) from packages though ;).

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


make install a port, but with a package?

2007-07-30 Thread freebsd-questions
Hi,

I have a bad feeling that this has been asked already, and not that long
ago, but I can't find it in my mailbox. Is there a variable I can set so
that running 'make install' in a port directory will cause it to download
the package, if available, and install that instead of building from
source?  In other words, the equivalent of 'portupgrade -NPP'. I have
looked at the .mk files and nothing in there seems to do that.

This is for the situation where portupgrade isn't installed yet, and I'd
like to install it quickly from packages so I don't have to wait for Ruby
to build. Sure, I could do it with pkg_add or sysinstall but it would be
neat to be able to do everything from the ports tree.

thanks,
joel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FQDN Hostnames, Sendmail and Spamassassin.

2007-07-30 Thread Eric Crist

On Jul 30, 2007, at 6:23 PMJul 30, 2007, RW wrote:

I have my hostname in rc.conf defined as a FQDN - ending in a dot.  
IIRC

it's needed to prevent sendmail waiting a long time for DNS if the
network is unavailable at boot-time.

I recently noticed that when I send myself email through sendmail I'm
hitting this spamassassin test at my email service:

2.3 FH_HELO_ENDS_DOT   Helo ends with a dot

It doesn't actually matter to me, because I don't use sendmail much,
but what are the rights and wrongs of this? I was under the impression
that any name used in an helo/ehlo should be a FQDN.



AFAIK, an FQDN does not need to end with a dot.  While they do, by  
definition, end with a dot, that nomenclature is typically only used  
in DNS zone files.


FWIW, I've never noticed a problem with slow boot when there's  
network problems.  If you do notice problems, simply make an entry in  
the /etc/hosts file to map the local hostname to it's corresponding  
IP address.


HTH.

Eric Crist
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: network/multithreaded programming on FreeBSD

2007-07-30 Thread Mike Meyer
On Tue, 31 Jul 2007 00:25:06 +0200 Karol Kwiatkowski <[EMAIL PROTECTED]> wrote:
> Michael S wrote:
> > Good day all,
> > 
> > I am not sure this is the correct list for my
> > question, I am still going to ask though. 
> > I am a 3rd year computer science student and in the
> > fall I am going to be taking courses in network and
> > system programming (with pthread). As a lot of
> > universities do, mine also teaches these courses on
> > Linux. I was wondering if there was a lot of
> > difference in socket and multi-threaded programming
> > between Linux and FreeBSD?
> > 
> > Thanks in advance,
> > Michael
> 
> Hi Michael,
> 
> I think @hackers might be better place to ask programming questions
> (added to CC).

It certainly liable to get a better answer, because it has a higher
density of programmers hanging out there. I'm not sure it's a better
place to ask programming questions, as it's meant for discussing the
development of FreeBSD, as opposed to development on FreeBSD. On the
other hand, there doesn't seem to be a list for the latter on the list
of freebsd mail lists.

The answer depends on what your goal is. If you want to write portable
code, both strive to be Posix systems, so if you follow the Posix
guidelines, you'll be ok. Since I develop on several different Unix
platforms including FreeBSD for clients running GNU/Linux (among other
things), that's what I do, and it generally works.

However, if you start straying outside Posix, you'll find
differences. My experience is that Linux tends to be missing features,
but more lenient about transgressions of the standard, than
FreeBSD. On the other hand, my sample set is sufficiently small that
this may not be a good indication of what it's like for others.

   http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


FQDN Hostnames, Sendmail and Spamassassin.

2007-07-30 Thread RW
I have my hostname in rc.conf defined as a FQDN - ending in a dot. IIRC
it's needed to prevent sendmail waiting a long time for DNS if the
network is unavailable at boot-time.

I recently noticed that when I send myself email through sendmail I'm
hitting this spamassassin test at my email service: 

2.3 FH_HELO_ENDS_DOT   Helo ends with a dot

It doesn't actually matter to me, because I don't use sendmail much,
but what are the rights and wrongs of this? I was under the impression
that any name used in an helo/ehlo should be a FQDN. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


transcode compilation error

2007-07-30 Thread Tsu-Fan Cheng
hi,
  just updated the ports and found out about the thing about automake. So,
do as told, and transcode is having problems:

aud_aux.c: In function `audio_init_ffmpeg':
aud_aux.c:364: error: `ac3_encoder' undeclared (first use in this function)
aud_aux.c:364: error: (Each undeclared identifier is reported only once
aud_aux.c:364: error: for each function it appears in.)
aud_aux.c:365: error: `mp2_encoder' undeclared (first use in this function)
gmake[2]: *** [aud_aux.lo] Error 1

I do have liba52 installed, any idea??

TFC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: network/multithreaded programming on FreeBSD

2007-07-30 Thread Karol Kwiatkowski
Michael S wrote:
> Good day all,
> 
> I am not sure this is the correct list for my
> question, I am still going to ask though. 
> I am a 3rd year computer science student and in the
> fall I am going to be taking courses in network and
> system programming (with pthread). As a lot of
> universities do, mine also teaches these courses on
> Linux. I was wondering if there was a lot of
> difference in socket and multi-threaded programming
> between Linux and FreeBSD?
> 
> Thanks in advance,
> Michael

Hi Michael,

I think @hackers might be better place to ask programming questions
(added to CC).

Cheers and good luck with your course!

Karol


-- 
Karol Kwiatkowski   
OpenPGP 0x06E09309



signature.asc
Description: OpenPGP digital signature


Re: network/multithreaded programming on FreeBSD

2007-07-30 Thread Pieter de Goeje
On Monday 30 July 2007, Michael S wrote:
> Good day all,
>
> I am not sure this is the correct list for my
> question, I am still going to ask though.
> I am a 3rd year computer science student and in the
> fall I am going to be taking courses in network and
> system programming (with pthread). As a lot of
> universities do, mine also teaches these courses on
> Linux. I was wondering if there was a lot of
> difference in socket and multi-threaded programming
> between Linux and FreeBSD?
Hello,

Pthreads is a standardized interface available on both Linux and FreeBSD, so 
there should not be any differences between them. Likewise for sockets. The 
only really minor difference I can think of right now is the sa_len member of 
struct sockaddr which is available on FreeBSD but not on Linux.

The cool thing about FreeBSD is that everything you need to program is already 
installed :)

Cheers,

Pieter de Goeje

>
> Thanks in advance,
> Michael


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


linux-flashplugin7 security issue

2007-07-30 Thread Anton Galitch
Good day.
Well I wanted to install linux-flashplugin7 but it says that it has a
critical vulnerability:

# make install clean
===>  linux-flashplugin-7.0r69 has known vulnerabilities:
=> linux-flashplugin -- critical vulnerabilities.
   Reference: <
http://www.FreeBSD.org/ports/portaudit/b42e8c32-34f6-11dc-9bc9-001921ab2fa4.html
>
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/www/linux-flashplugin7.

I updated the ports with portsnap fetch/extract/update but it still says the
same. I suppose there is no fixed version yet? or there is any way to
install the fixed version?
Thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


[panic]page fault while in kernel mode

2007-07-30 Thread ytriffy

Hello.
Trap 12 occured when I rebooted PC. Sending you backtrace.
My system: amd64 3200+ Venice, MB ECS nForce4 A939,Samsung 250GB and WD
250 GB, 2 memory banks 512MB each, videocard: Geforce 6600gt 128MB,
NIC on realtek chip, sound card cirrus logic cs4281. It's very unstable,
crashes happen every day, so I'm hoping you would say why(any hints what
hardware may cause it).
How to repeat it? I don't know. It happened once during reboot process.

[EMAIL PROTECTED] /var]# uname -a
FreeBSD freelanc.dubki.ru  6.2-STABLE-200706 
FreeBSD 6.2-STABLE-200706

#1: Mon Jul 23 13:34:27 MSD 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/DEBUGGER
KERN i386

[EMAIL PROTECTED] /usr/obj/usr/src/sys/DEBUGGERKERN]# kgdb kernel.debug
/var/crash/vmcore.3
kgdb: kvm_nlist(_stopped_cpus):
kgdb: kvm_nlist(_stoppcbs):
[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
<118>Jul 25 14:06:32 freelanc syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop...done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining...6 5 3 1 0 0 done
Waiting (max 60 seconds) for system process `bufdaemon' to stop...done
All buffers synced.


Fatal trap 12: page fault while in kernel mode
fault virtual address = 0x4
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc058a4e0
stack pointer = 0x28:0xe9455c48
frame pointer = 0x28:0xe9455c58
code segment = base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 44922 (reboot)
panic: from debugger
Uptime: 2h45m36s
Dumping 1022 MB (2 chunks)
chunk 0: 1MB (159 pages) ... ok
chunk 1: 1022MB (261600 pages) 1006 990 974 958 942 926 910 894 878 862
846 830 814 798 782 766 750 734 718 702 686 670 654 638 622 606 590 574
558 542 526 510 494 478 462 446 430 414 398 382 366 350 334 318 302 286
270 254 238 222 206 190 174 158 142 126 110 94 78 62 46 30 14

#0 doadump () at pcpu.h:165
165 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0 doadump () at pcpu.h:165
#1 0xc053d916 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2 0xc053dbdc in panic (fmt=0xc06f5278 "from debugger")
at /usr/src/sys/kern/kern_shutdown.c:565
#3 0xc045361d in db_panic (addr=-1067932448, have_addr=0, count=-1,
modif=0xe9455a74 "") at /usr/src/sys/ddb/db_command.c:438
#4 0xc04535b4 in db_command (last_cmdp=0xc0766784, cmd_table=0x0,
aux_cmd_tablep=0xc0728e90, aux_cmd_tablep_end=0xc0728e94)
at /usr/src/sys/ddb/db_command.c:350
#5 0xc045367c in db_command_loop () at /usr/src/sys/ddb/db_command.c:458
#6 0xc0455291 in db_trap (type=12, code=0) at
/usr/src/sys/ddb/db_main.c:222
#7 0xc0556a2b in kdb_trap (type=12, code=0, tf=0xe9455c08)
at /usr/src/sys/kern/subr_kdb.c:473
#8 0xc06cba6c in trap_fatal (frame=0xe9455c08, eva=4)
at /usr/src/sys/i386/i386/trap.c:828
#9 0xc06cb7d7 in trap_pfault (frame=0xe9455c08, usermode=0, eva=4)
at /usr/src/sys/i386/i386/trap.c:745
#10 0xc06cb3f1 in trap (frame=
{tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -381330360, tf_esi =
-993547624, tf_ebp = -381330344, tf_isp = -381330380, tf_ebx = 0, tf_edx
= -992513384, tf_ecx = 4, tf_eax = -950651024, tf_trapno = 12, tf_err =
0, tf_eip = -1067932448, tf_cs = 32, tf_eflags = 590338, tf_esp = 0,
tf_ss = -992305712})
at /usr/src/sys/i386/i386/trap.c:435
#11 0xc06b8b1a in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#12 0xc058a4e0 in cache_purgevfs (mp=0xc4d77298)
at /usr/src/sys/kern/vfs_cache.c:622
#13 0xc0591f29 in dounmount (mp=0xc4d77298, flags=524288, td=0xc62ce300)
at /usr/src/sys/kern/vfs_mount.c:1214
#14 0xc0597d0a in vfs_unmountall () at /usr/src/sys/kern/vfs_subr.c:2837
#15 0xc053d807 in boot (howto=0) at /usr/src/sys/kern/kern_shutdown.c:391
#16 0xc053d2a2 in reboot (td=0xc62ce300, uap=0xc7563770)
at /usr/src/sys/kern/kern_shutdown.c:169
#17 0xc06cbdbb in syscall (frame=
{tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 2, tf_esi = 18, tf_ebp =
-1077941304, tf_isp = -381330076, tf_ebx = 0, tf_edx = -1, tf_ecx =
672491264, tf_eax = 55, tf_trapno = 12, tf_err = 2, tf_eip = 671802263,
tf_cs = 51, tf_eflags = 662, tf_esp = -1077941380, tf_ss = 59}) at
/usr/src/sys/i386/i386/trap.c:983
#18 0xc06b8b6f in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:200
#19 0x0033 in ?? ()

Any info is appreciated.

with regards,
Slava Gonahchan.
___
freebsd-questions@freebsd.org mailing list
http://lists.f

network/multithreaded programming on FreeBSD

2007-07-30 Thread Michael S
Good day all,

I am not sure this is the correct list for my
question, I am still going to ask though. 
I am a 3rd year computer science student and in the
fall I am going to be taking courses in network and
system programming (with pthread). As a lot of
universities do, mine also teaches these courses on
Linux. I was wondering if there was a lot of
difference in socket and multi-threaded programming
between Linux and FreeBSD?

Thanks in advance,
Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Jasvinder S. Bahra
Chuck,

Oddly enough, after the system has finished starting up, running "dhclient
ed1" on the command line does work (though "sockstat -l4" still shows local
address as "*:68").  I could I have sworn that when I tried doing this the
first time I added the dhclient_flags line, it failed.

One thing I noticed as the system was starting up (after adding the
dhclient_flags entry into /etc/rc.conf), was that dhclient completed too
quickly.  Normally when dhclient runs, it usually takes several seconds to
do its thing (i.e... a noticeable delay between the "Starting dhclient"
message appearing and the message immediately after it), however there was
no delay between the appearance of the two messages - dhclient fails
instantly.

I doubt its relevant, but keep in mind this is a very old machine - an Intel
Pentium 120MHz, 48MB RAM equipped with two ISA network cards, running
FreeBSD 5.5.

I'm afraid I cant run the command you suggested on the DHCP server, as the
DHCP server in this case is built into the cable modem (to which I do not
have shell access, if it even provides such).  As for sticking a switch in
between and connecting an a third PC to monitor - i'd prefer to leave that
as a last resort for the time being as finding and setting up the additional
hardware will be a bit of a pain.

If you (or indeed anyone else) has any other suggestions, please do share.

Thanks,

Jazz

- Original Message - 
From: "Chuck Swiger" <[EMAIL PROTECTED]>
To: "Jasvinder S. Bahra" <[EMAIL PROTECTED]>
Cc: "FreeBSD-questions List" 
Sent: Monday, July 30, 2007 9:38 PM
Subject: Re: Binding dhclient to a particular network interface


> Jasvinder S. Bahra wrote:
> > Chuck,
> >
> > I gave this a shot, but this stopped the interface being assigned an IP
> > address at all (i.e... before the change, the interface had a valid IP
> > address assigned by the DHCP server in my cable modem, but after making
the
> > change and restarting, the "ifconfig" command shows the interface having
an
> > IP address of 0.0.0.0).
> >
> > I do agree though - the man page explicitly says that this should work.
>
> Does running "dhclient ed1" from the command line work?
> Is the DHCP server providing the right answer?
>
> Running "tcpdump -s 0 arp or port bootps" would give you insight into what
the
> network is seeing, at least.  Doing this from your DHCP server or a laptop
on
> a hub with the interface in question would be useful vantages, or a
"trunk" or
> "span" port on a smart switch, depending on what you might have handy.
>
> -- 
> -Chuck



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Cannot post because of spamassassin blocking my mail

2007-07-30 Thread ytriffy

Hi list.
Whenever I try to post I get something like this:

Your mail to 'freebsd-questions' with the subject

   [panic]page fault while in kernel mode 


Is being held until the list moderator can review it for approval.

The reason it is being held:

   SpamAssassin identified this message as possible spam

Although I'm subscribed user of mailing lists.
What should I do?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 7.0-CURRENT, firefox 2.0.x, and flash

2007-07-30 Thread Philip M. Gollucci
Philip M. Gollucci wrote:
> IMHO this should be a handbook section.  If someone wants to help me
> out, I'll write the section.
Using 7.0-current, linux_base-fc6 firefox 2.0.x from ports, and,
nspluginwrapper from ports, and linux-flashplayer7 from ports:

echo "OVERRIDE_LINUX_BASE_PORT=fc6" >> /etc/make.conf
echo "compat.linux.osrelease=2.6.16" >> /etc/sysctl.conf

sysctl compat.linux.osrelease=2.6.16

pkg_add -r firefox
cd /usr/ports/www/nspluginwrapper ; make install clean
cd /usr/ports/emulators/linux_base-fc6 ; make install clean
cd /usr/ports/www/linux-flashplugin7 ; make install clean

nspluginwrapper -a -v -i

Results:
-
nspluginwrapper -l
/home/pgollucci/.mozilla/plugins/npwrapper.libflashplayer.so
  Original plugin: /usr/local/lib/npapi/linux-flashplugin/libflashplayer.so
  Wrapper version string: 0.9.91.4

http://people.apache.org/~pgollucci/flash.png


Note, that
/usr/ports/www/flashplugin-mozilla

coredumps firefox



-- 

Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Senior System Admin - Riderway, Inc. http://riderway.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using a Hercules HWGUSB2-54-V2 wifi usb adapter

2007-07-30 Thread Roland Smith
On Mon, Jul 30, 2007 at 07:27:47PM +, beni wrote:

> Your explanation worked, thanks !
> 
> bsdaddict# dmesg -a | grep ural
> ural0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3
> ural0: MAC/BBP RT2570 (rev 0x00), RF unknown
> ural0: Ethernet address: 00:08:d3:08:31:fd
> ural0: if_start running deferred for Giant
> ural0: timeout waiting for BBP/RF to wakeup
> bsdaddict#  
> 
> BTW, the device id is 0x010 for this usb adapter.

Good!

Now the good thing to do would be to create diffs for both files, and
submit them for inclusion in 6-STABLE with send-pr. That way everyone
with the same hardware can enjoy them.

And you'd have your first contribution to FreeBSD under your belt. :-)

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpysVyiObSzx.pgp
Description: PGP signature


Re: gre tunnel with key

2007-07-30 Thread Mihai Tanasescu

Bazy wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi guys,


I'm trying to establish a gre tunnel between 2 offices in different
cities, my problem is that, at the other end, they use a Linux router.
And they specified at the gre tunnel a key, as in: ip tunnel add goofy
mode gre remote x.x.x.x key 294.

I used gre before, but I have no idea how to set a key on FreeBSD.
I've read
http://www.freebsd.org/cgi/man.cgi?query=gre&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html
and other man pages, googled around... but with no luck.

Can anyone help me on this?



Thank you!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGriRm7nEMcIvWOSIRAiJkAJ45/LOMGDdKCjnfURSi3/Bv+Y7p1ACfdj39

lqW3DeUYEfaaXTu+MZVRqpQ=
=U9jy
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  


Hello Bazi,

You could try the patch listed here and see if it works for you:

http://archive.netbsd.se/?ml=freebsd-net&a=2007-03&m=3388392


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: secondary hdd

2007-07-30 Thread Rolf G Nielsen

Cyrus wrote:

ok, i origainly had windows xp pro on my machine, i installed freebsd 6.2.
my machine has a 40gb seagate disk for o/s, and a 160 gb WD disk for
storage.

my question is, how do i go about formating the 160 gb, from ntfs to ufs for
use in freebsd?  and make it automount when system boots?

Thank you
Cyrus
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"





The simplest way if you're new to FreeBSD would be to use sysinstall. 
Just type sysinstall at the promt in the console. In the menu select 
Configure, then Fdisk. If you know the device name of the disk in 
question, you need only select that one in the list that shows up, 
otherwise select all. You will now see a screen with info about the each 
disk you selected, one at a time. For the disk(s) you do not want to 
change, just hit ESC and select None in the list that appears. When you 
come to the disk you want to use as secondary, select the slices one by 
one and press D for each one. When all slices have been deleted, just 
press A, then W.
When you're done, go back to the main menu and select Label. Then you 
will see a screen with all the slices you configured, and available 
space in each one. Select the one in the secondary disc and press C to 
create a partition. You'll be asked to enter the desired size of the new 
partition, and if you want just one partition on the entire disk, just 
press enter. If you want more than one partition, repeat this until 
you're satisfied, then make a note the device name(s) created (for 
instance ad1s1e) and press W. The partition(s) will be formated.
I don't think this will make the disk automount, so you'll have to edit 
your /etc/fstab file, which contains info on all the filesystems to be 
mounted on boot, one line per entry. This is what an fstab entry looks like


/dev/ad1s1e  /usr   ufsrw22

First is the file system's device node, then under what directory you 
want it to be mounted, third is the filesystem type (should be ufs for 
native FreeBSD partitions), fourth is options (rw means read/write, see 
man fstab for other options). The last two columns should be set to 2, 
except for the root filesystem (should be 1) and swap, procfs and other 
specialities (should be 0). Once you're done, save the file and reboot, 
and you're disc should be automatically mounted.


--

Vänligen / Sincerly,
Rolf Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

gre tunnel with key

2007-07-30 Thread Bazy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hi guys,

I'm trying to establish a gre tunnel between 2 offices in different
cities, my problem is that, at the other end, they use a Linux router.
And they specified at the gre tunnel a key, as in: ip tunnel add goofy
mode gre remote x.x.x.x key 294.

I used gre before, but I have no idea how to set a key on FreeBSD.
I've read
http://www.freebsd.org/cgi/man.cgi?query=gre&apropos=0&sektion=0&manpath=FreeBSD+6.2-RELEASE&format=html
and other man pages, googled around... but with no luck.

Can anyone help me on this?



Thank you!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGriRm7nEMcIvWOSIRAiJkAJ45/LOMGDdKCjnfURSi3/Bv+Y7p1ACfdj39
lqW3DeUYEfaaXTu+MZVRqpQ=
=U9jy
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: secondary hdd

2007-07-30 Thread Jerry McAllister
On Mon, Jul 30, 2007 at 01:20:31PM -0700, Cyrus wrote:

> ok, i origainly had windows xp pro on my machine, i installed freebsd 6.2.
> my machine has a 40gb seagate disk for o/s, and a 160 gb WD disk for
> storage.
> 
> my question is, how do i go about formating the 160 gb, from ntfs to ufs for
> use in freebsd?  and make it automount when system boots?

That is pretty well documented in the handbook, FAQs and online 
publications.

A brief rundown is:
  You don't have to literally "reformat" it.   That is a low level
  process done at the factory and normally not redone.   But, we
  know what you mean - you want to do whatever is necessary to use
  it in FreeBSD and don't care what the process is actually called.

NOTE:  If it is SCSI the name is da1:  if IDE/SATA it is probably ad1:

ALSO NOTE:  I am presuming you do not intend to make this disk bootable.
If you do, add a -B flag to the fdisk and to the first bsdlabel

NOTE too:  This all must be done as root.

  First:  use fdisk to create one slice (da1s1) of FreeBSD type on it that
occupies the whole disk.
  dd if=/dev/zero of=/dev/da1 bs=512 count=1024
  fdisk -I da1
the dd wipes out old stuff.  It might not be needed, but is easy
just to make sure.

  Second:  use bsdlabel to write the partitions in that slice.  Partition
layout Depends on how you want to use it.  For example, I will use
one chunk of extra swap and two mountable partitions d & e.
  bsdlabel -w da1s1  [this puts the base label there]

  bsdlabel -e da1s1  [this puts you in mode to edit partitions]
you will then see something like this:

  8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
c:3355443200  unused   0 0  # "raw" part, don't edit

Edit it to look something like:

  8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
b:  20971620swap
c:3355443200  unused   0 0  # "raw" part, don't edit
d: 33554432*  4.2BSD2048 16384 8
e:**  4.2BSD2048 16384 28552

This will give you a 1 GB swap partition, a 16 GB da1s1d partition
and a da1s1e partition that takes up all the rest of the disk.

NOTE:  The numbers under size and offset are in 512 byte blocks.
   You can use values like 16GB, but this was is consistent.
NOTE too:  When you use * for offset and the final size, bsdlabel
   calculates them for you - correctly.   But you can specify
   them yourself if you want - if you are doing something weird
   like leaving a hole in the middle or whatever.

  Third:  You must run newfs on the two mountable partitions
  newfs /dev/da1s1d
  newfs /dev/da1s1e
Nowdays the defaults are generally good for most usages, but there
may be times you need to adjust them to get more inodes if you
have a large filesystem with lots of vary small files.

NOTE:  newfs seems to want the full device name still, even though fdisk
   and bsdlabel now will fill in if you just give them da1  without /dev.

  Fourth:  You must create mount points for the mountable partitions.
   Say you want to mount them as /work and /scratch, then
 mkdir /work
 mkdir /scratch

  Fifth:  You must edit /etc/fstab to add lines for each of the three
  new partitions.  The swap should look like your existing swap
  line with the new device name, something like:
/dev/ad0s3b   none swapsw0   0
  The mountable partition should look about like one of the
  other mountable partition lines but with the new names:
/dev/da1s1d   /workufs rw2   2
/dev/da1s1e   /scratch ufs rw2   2

Thereafter, it should all work just fine and dandy.   Again, note,
these examples are for SCSI.  For IDE/SATA the device names would 
be ad  in place of da
  such as bsdlabel ad1s1  and  /dev/as1s1d  for mounts.

The documentation is quite complete on this.  You should do
some reading.

jerry

> 
> Thank you
> Cyrus
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Linux Compat and freebsd root

2007-07-30 Thread Ian Lord


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Lord
Sent: 30 juillet 2007 15:58
To: freebsd-questions@freebsd.org
Subject: Linux Compat and freebsd root

Hi,

 

When I start a deamon running under linux emulation, the root of the
filesystem '/' seems to be in fact '/usr/compat/linux'

 

Is there a way to mount something like "/freebsd" pointing to the real
filesystem ?

 

If so, where would I put the mount command so that it is loaded when the
deamon starts ?

 

Thanks

~~

Cancel my last, I did a symlink and it worked great.

Sorry to bother :)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Chuck Swiger

Jasvinder S. Bahra wrote:

Chuck,

I gave this a shot, but this stopped the interface being assigned an IP
address at all (i.e... before the change, the interface had a valid IP
address assigned by the DHCP server in my cable modem, but after making the
change and restarting, the "ifconfig" command shows the interface having an
IP address of 0.0.0.0).

I do agree though - the man page explicitly says that this should work.


Does running "dhclient ed1" from the command line work?
Is the DHCP server providing the right answer?

Running "tcpdump -s 0 arp or port bootps" would give you insight into what the 
network is seeing, at least.  Doing this from your DHCP server or a laptop on 
a hub with the interface in question would be useful vantages, or a "trunk" or 
"span" port on a smart switch, depending on what you might have handy.


--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


problem with nessus-gtk2-2.2.9_1 installation

2007-07-30 Thread Noah


Hi there,

I am having a bit of trouble with the nessus installation at the moment. 
 any clues how I can fully remove it and install it properly.



access1# pkg_info | grep nessus
pkg_info: show_file: can't open '+COMMENT' for reading
nessus-gtk2-2.2.9_1 ???
nessus-libnasl-2.2.9 Nessus Attack Scripting Language
nessus-libraries-2.2.9 Libraries for Nessus, the security scanner
access1# pkg_delete -f nessus
pkg_delete: package 'nessus-gtk2-2.2.9_1' doesn't have a prefix
access1#


Cheers,

Noah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


secondary hdd

2007-07-30 Thread Cyrus
ok, i origainly had windows xp pro on my machine, i installed freebsd 6.2.
my machine has a 40gb seagate disk for o/s, and a 160 gb WD disk for
storage.

my question is, how do i go about formating the 160 gb, from ntfs to ufs for
use in freebsd?  and make it automount when system boots?

Thank you
Cyrus
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Jasvinder S. Bahra
Chuck,

I gave this a shot, but this stopped the interface being assigned an IP
address at all (i.e... before the change, the interface had a valid IP
address assigned by the DHCP server in my cable modem, but after making the
change and restarting, the "ifconfig" command shows the interface having an
IP address of 0.0.0.0).

I do agree though - the man page explicitly says that this should work.

Oh, and i'm absolutely sure that the interface is configured to use DHCP.
i.e...

-- /etc/rc.conf snippet ---
network_interfaces="ed1 ed2 lo0"
ifconfig_ed1="DHCP"
ifconfig_ed2="inet 10.1.0.1  netmask 255.255.255.0"
ifconfig_lo0="inet 127.0.0.1"
--

I added the dhclient_flags line you suggested, after the ifconfig_lo0 line
shown above, though as far as I know the order does not matter.  Thanks for
the suggestion though.

Anyone have anymore ideas?

Regards,

Jazz

- Original Message - 
From: "Chuck Swiger" <[EMAIL PROTECTED]>
To: "Jasvinder S. Bahra" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 30, 2007 8:25 PM
Subject: Re: Binding dhclient to a particular network interface


> Jasvinder S. Bahra wrote:
> > Terry,
> >
> > I tried adding the interface line to the dhclient configuration file
(and
> > then rebooting), but it had no effect.  Entering the "sockstat -l4"
command
> > showed that local address was still "*:68".
>
> "man dhclient" suggests that the interface needs to be specified on the
> command line.  Try adding:
>
>dhclient_flags="ed1"
>
> ...to /etc/rc.conf, and double-check that you already have that interface
> configured to use DHCP while you're there.  :-)
>
> Regards,
> -- 
> -Chuck



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: 7-Current: turn off debugging (kqread?)

2007-07-30 Thread Kevin Kramer
yes. i got an answer on current. even though my host was not setup as a 
NIS client, it was trying to resolve UID/GID information. the only line 
in my rc.conf was NISDOMAIN=


--

Kevin Kramer
Sr. Systems Administrator
512.418.5725
Centaur Technology, Inc.
www.centtech.com



Kris Kennaway wrote the following on 07/27/07 15:12:

On Tue, Jul 03, 2007 at 11:12:36AM -0500, Kevin Kramer wrote:
  
thanks. I rebuild this morning with this and still no change. I can't 
even find any info on these flags...



Dunno if anyone ever gave you the real answer to your question, but if
not then here it is: your DNS is broken and taking ages to respond to
lookups (or more likely, not responding at all).  kqread means the
application is waiting to read more data from an I/O request.  It's
not a 7.0 optimization issue.

Kris
  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Linux Compat and freebsd root

2007-07-30 Thread Ian Lord
Hi,

 

When I start a deamon running under linux emulation, the root of the
filesystem '/' seems to be in fact '/usr/compat/linux'

 

Is there a way to mount something like "/freebsd" pointing to the real
filesystem ?

 

If so, where would I put the mount command so that it is loaded when the
deamon starts ?

 

Thanks

 

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using a Hercules HWGUSB2-54-V2 wifi usb adapter

2007-07-30 Thread beni
On Monday 30 July 2007 16:13:43 Roland Smith wrote:
> On Mon, Jul 30, 2007 at 03:31:48PM +, beni wrote:
> > Hi,
> >
> > System : 6.2-REL p4.
> >
> > I'm trying to use this usb wifi adapter. It is based on a Ralink RT2500
> > chipset and should thus be useable with the ural-device according to "man
> > ural" (actually it speaks of the Hercules HWGUSB2-54, without the "V2").
> >
> > The problem is that I only get a detection in dmesg like this :
> > ugen0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3
> > and that I don't get a "ural0" device.
> >
> > All the devices needed according to man ural are in the kernel too.
> >
> > How can I get this wifi adapter working ?
>
> Try adding a macro for the correct device ID to
> /usr/src/sys/dev/usb/usbdevs. In this file it is listed as GUILLEMOT
> instead of Hercules, though.
>
> You should be able to see the device-id with 'usbdevs -v'. You're
> looking for the first hexadecimal number (preceded by 0x). The second
> one is the vendor, and should be 0x06F8.
>
> Look for this in /usr/src/sys/dev/usb/usbdevs:
> product GUILLEMOT HWGUSB254 0xe000  HWGUSB2-54 WLAN
>
> Then add
>
> product GUILLEMOT HWGUSB254V2 0x  HWGUSB2-54-V2 WLAN
>
> Replace the  by the correct device ID. :-)
>
> Add it to the usb_devno ural_devs array in
> /usr/src/sys/dev/usb/if_ural.c, and rebuild your kernel.
>
> Look for this in /usr/src/sys/dev/usb/if_ural.c
> { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254 },
>
> Then add
> { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254V2
> },
>
> Rebuild and install your kernel, reboot and try again.
>
> Roland

Roland,

Your explanation worked, thanks !

bsdaddict# dmesg -a | grep ural
ural0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3
ural0: MAC/BBP RT2570 (rev 0x00), RF unknown
ural0: Ethernet address: 00:08:d3:08:31:fd
ural0: if_start running deferred for Giant
ural0: timeout waiting for BBP/RF to wakeup
bsdaddict#  

BTW, the device id is 0x010 for this usb adapter.

-- 
Beni.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Chuck Swiger

Jasvinder S. Bahra wrote:

Terry,

I tried adding the interface line to the dhclient configuration file (and
then rebooting), but it had no effect.  Entering the "sockstat -l4" command
showed that local address was still "*:68".


"man dhclient" suggests that the interface needs to be specified on the 
command line.  Try adding:


  dhclient_flags="ed1"

...to /etc/rc.conf, and double-check that you already have that interface 
configured to use DHCP while you're there.  :-)


Regards,
--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


sudo and env gotcha (or is it just me?)

2007-07-30 Thread [EMAIL PROTECTED]
After blithely upgrading everything else, I at-
tempted rebuilding jdk15 and, crumbs! my nfs
mounted /ports (4.7G) filled up and the build
barfed although I have WRKDIRPREFIX set in
/etc/csh.cshrc

Barbara Streisand! I thought, what could be the
prob-lem now?

% cd /ports/java/jdk15 && sudo make extract
puts the work/ directory right there in
/ports/java/jdk15/
Hooray(?)! well, it's not portupgrade's fault,
since make is also not using $WRKDIRPREFIX

And then it occured to me that I had upgraded
sudo.  Oh ho!
% sudo env
gave me quite a short list, which certainly didn't
include WRKDIRPREFIX.

A not very quick perusal of man 8 sudo and then
man 5 sudoers and I finally found the env_reset
flag and a host of others besides.  Boy, was that
ever a fun auuenture!

Lesson:  be observant when upgrading
important things.

or

It never hurts to read.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Heimdal/kerberos and DNS?

2007-07-30 Thread Reuben A. Popp
Good afternoon everyone,

I'm trying to setup a testbed here for a Kerberos server so that XP clients 
can authenticate.  I have been following the handbook for the server 
configuration and a few other sources for configuring XP as the client.  So 
far I have had good success as I can see the request for a ticket and can 
login just fine.  However, right after logging into the XP client, I see the 
following in the logfile for Kerberos (/var/heimdal/krb.log):

2007-07-30T12:51:12 Server not found in database: 
DNS/[EMAIL PROTECTED]: No such entry in the database

Can someone please explain this to me?  I can resolve the nameserver just 
fine, whether through nslookup or by consulting the hosts file.  Do I need to 
add an entry for the nameserver using kadmin as well?

Thanks in advance for any pointers.
Reuben A. Popp

-- 
Reuben A. Popp
Systems Administrator
Information Technology Department
East Central College
1+ 636 583 5195 x2480
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Jasvinder S. Bahra
Terry,

I tried adding the interface line to the dhclient configuration file (and
then rebooting), but it had no effect.  Entering the "sockstat -l4" command
showed that local address was still "*:68".

I had a look at the man pages for the configuration file, but other than
trying again with the word "interface" (as opposed to "Interface"), couldn't
think of any other approach.

Thanks for the suggestion though, and if you (or indeed, anyone else) has
any other ideas, please do share.

Regards,

Jazz

- Original Message - 
From: "Terry Sposato" <[EMAIL PROTECTED]>
To: "'Jasvinder S. Bahra'" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 30, 2007 1:16 AM
Subject: RE: Binding dhclient to a particular network interface


> Hi Jasvinder,
>
> I believe if you add the following to /etc/dhclient.conf your problem will
> be resolved.
>
> Interface "ed1";
>
> Then reboot or alternatively restart your network and you should finding
it
> only binding to that interface.
>
> Regards,
>
> Terry
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Jasvinder S.
Bahra
> Sent: Monday, 30 July 2007 9:27 AM
> To: freebsd-questions@freebsd.org
> Subject: Re: Binding dhclient to a particular network interface
>
> Adam,
>
> Thanks for responding, but I think theres been a misunderstanding here.
>
> The network setup on my machine is working correctly.  My switch-facing
> network card has a fixed IP address, while the cable-modem facing network
> card is assigned one by the DHCP server built into the cable modem.  This
is
> achieved by the following settings in /etc/rc.conf ...
>
> network_interfaces="ed1 ed2 lo0"
> ifconfig_ed1="DHCP"
> ifconfig_ed2="inet 10.1.0.1  netmask 255.255.255.0"
> ifconfig_lo0="inet 127.0.0.1"
>
> The DHCP reference for ed1 means dhclient is started (thereafter running
> continuously as a daemon), which sets ed1's IP address to that assigned by
> the cable modem.
>
> Note that dhclient generally runs as a daemon because it has to handle
lease
> renewals and/or expiration.  I have no issues with it running as a daemon.
>
> However, it is listening on all interfaces (which I do have an issue
with),
> i.e. running the command "sockstat -l4" on my system returns...
>
> USER:  root
> COMMAND:  dhclient
> PID:  267
> FD:  4
> PROTO:  udp4
> LOCAL ADDRESS:  *:68
> FOREIGN ADDRESS: *:*
>
> As you can see, local address is listed as "*:68", which means its
listening
> on port 68 on all interfaces.  I want to instruct dhclient to only listen
on
> my cable-modem facing network card.  If this were the case, issuing the
> "sockstat -l4" command would return as above, but with local address
saying
> "<>:68" (where
> <> is, unsurprisingly, the IP address
> assigned to the network card by the DHCP server in the cable modem).
>
> Thanks again,
>
> Jazz



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installation problem

2007-07-30 Thread [EMAIL PROTECTED]
On 30/07/07, Rakhesh Sasidharan <[EMAIL PROTECTED]> wrote:
>
> On Sun, 29 Jul 2007, Terrence Wilson wrote:
>
> > I'm trying to install FreeBSD as part of a dual boot config on a hard
> > disk which already contains Windows XP. I have created a partition for
> > FreeBSD. My problem comes once I "commit" to the installation of
> > FreeBSD. I get the following message, after which installation aborts:
> > "Unable to find device node for /dev/ad4s2b in /dev! The creation of
> > filesystems will be aborted." What am I doing wrong?
>
> Are you trying to install FreeBSD in an extended partition? The
> /dev/ad*4*s2b makes me think so ...

/dev/ad4 is probably his first SATA drive, the integer
following "s" is the slice number (partition in the magical
windows world) and if greater than 4 indicates an extended
slice.

-- 
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Binding dhclient to a particular network interface

2007-07-30 Thread Jasvinder S. Bahra
Adam,

No problem *smiles*.  I'm at the same limit myself after all, and I do
appreciate you stepping forward with your suggestions.

Thanks again,

Jazz

- Original Message - 
From: "Adam J Richardson" <[EMAIL PROTECTED]>
To: "Jasvinder S. Bahra" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, July 30, 2007 1:02 AM
Subject: Re: Binding dhclient to a particular network interface


> > The DHCP reference for ed1 means dhclient is started (thereafter running
> > continuously as a daemon), which sets ed1's IP address to that assigned
by
> > the cable modem.
> >
> > Note that dhclient generally runs as a daemon because it has to handle
lease
> > renewals and/or expiration.  I have no issues with it running as a
daemon.
>
> Oh, interesting. I had assumed the interface called dhclient itself if
> the lease expired, or something.
>
> > As you can see, local address is listed as "*:68", which means its
listening
> > on port 68 on all interfaces.  I want to instruct dhclient to only
listen on
> > my cable-modem facing network card.  If this were the case, issuing the
> > "sockstat -l4" command would return as above, but with local address
saying
> > "<>:68" (where
> > <> is, unsurprisingly, the IP address
> > assigned to the network card by the DHCP server in the cable modem).
>
> Is there a dhclient.conf somewhere in your /etc? That would surely hold
> the answer. Possibly editing /etc/rc.d/dhclient or /etc/netstart might
> help? I'm at the edge of my FreeBSD knowledge and in danger of falling
> off, so I'll stop with the suggestions now. :)
>
> Adam J Richardson



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using a Hercules HWGUSB2-54-V2 wifi usb adapter

2007-07-30 Thread Roland Smith
On Mon, Jul 30, 2007 at 03:31:48PM +, beni wrote:
> Hi,
> 
> System : 6.2-REL p4.
> 
> I'm trying to use this usb wifi adapter. It is based on a Ralink RT2500 
> chipset and should thus be useable with the ural-device according to "man 
> ural" (actually it speaks of the Hercules HWGUSB2-54, without the "V2").
> 
> The problem is that I only get a detection in dmesg like this :
> ugen0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3
> and that I don't get a "ural0" device.
> 
> All the devices needed according to man ural are in the kernel too.
> 
> How can I get this wifi adapter working ?

Try adding a macro for the correct device ID to
/usr/src/sys/dev/usb/usbdevs. In this file it is listed as GUILLEMOT
instead of Hercules, though.

You should be able to see the device-id with 'usbdevs -v'. You're
looking for the first hexadecimal number (preceded by 0x). The second
one is the vendor, and should be 0x06F8.

Look for this in /usr/src/sys/dev/usb/usbdevs: 
product GUILLEMOT HWGUSB254 0xe000  HWGUSB2-54 WLAN

Then add

product GUILLEMOT HWGUSB254V2 0x  HWGUSB2-54-V2 WLAN

Replace the  by the correct device ID. :-)

Add it to the usb_devno ural_devs array in
/usr/src/sys/dev/usb/if_ural.c, and rebuild your kernel.

Look for this in /usr/src/sys/dev/usb/if_ural.c
{ USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254 },

Then add
{ USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254V2 },

Rebuild and install your kernel, reboot and try again.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpgF5eQGXNvr.pgp
Description: PGP signature


Using a Hercules HWGUSB2-54-V2 wifi usb adapter

2007-07-30 Thread beni
Hi,

System : 6.2-REL p4.

I'm trying to use this usb wifi adapter. It is based on a Ralink RT2500 
chipset and should thus be useable with the ural-device according to "man 
ural" (actually it speaks of the Hercules HWGUSB2-54, without the "V2").

The problem is that I only get a detection in dmesg like this :
ugen0: Ralink 802.11 bg WLAN, rev 2.00/0.01, addr 3
and that I don't get a "ural0" device.

All the devices needed according to man ural are in the kernel too.

How can I get this wifi adapter working ?

Thanks for any hints/pointers.
-- 
Beni.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Downgrading from current

2007-07-30 Thread Bill Vermillion
At Sun, Jul 29, 2007 at 19:42 , our malformed and occasionally 
flatulent friend Ross Penner spewed forth this fount of brain juice:

> I recently upgraded my system from stable to current to try and take
> advantage of some of wireless features offered. Unfortunetly, things
> didn't work out as well as I'd like to and I want to downgrade.

> Reading online, it seems that downgrading isn't supported and it's
> probably best to just reinstall the system. This seems reasonable enough
> to me but I have a couple problems I need to address first.

> I have a lot of data on my /usr partition that I would rather not have to
> backup and then readd to the system. is there a way I can reinstall and
> leave parts of the file system intact? I assume that I can use the same
> partitions but I'm worried that reinstalling will clean the partitions.


One of the good things about the design of FreeBSD >>IF<< you
install with separate file-systems, is that the OS fully resides
in /, and /usr is for all non-OS default programs.

You should be able to change the OS by only installing the / 
system, and do NOT make a new filesystem on /usr

Too many seem to advocate the idea of using the whole disk
and not using separate filesystems, and if that is what you have
done you have to backup all your /usr and then redo the install.

So many who advocate only one filesystem seem to come
from the Linux and/or MS world.

Bill
-- 
Bill Vermillion - bv @ wjv . com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ELI passphrase on boot with USB keyboard

2007-07-30 Thread Rolf G Nielsen

Reid Linnemann wrote:

Written by Rolf G Nielsen on 07/27/07 16:37>>

Reid Linnemann wrote:

Written by Reid Linnemann on 07/27/07 15:49>>

Written by Rolf G Nielsen on 07/27/07 15:21>>

Hi,

I recently purchased a new USB keyboard, since my old PS/2 one has 
seen its best days. This has caused me annoying problems with my 
ELI disks, though.


I have four SATA harddrives, all of which are encrypted using ELI 
encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. 
The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've 
concatenated into a large device, cc0, on which I have several 
partitions. To get this working, I of course need to boot from a 
separate device, and for that I use an SD card, which holds a boot 
directory. With my old PS/2 keyboard, this worked like a charm, but 
it seems to me, the ukbd driver isnt activated until after the ELI 
encryption, which means I'm unable to enter the passphrases for the 
disks, thus I can't get the computer passed the first passphrase 
prompt.


Currently I have both the old keyboard and the new USB one 
connected. I use the PS/2 one to enter the passphrases, then I put 
it on the floor under my desk and use the USB keyboard. As you may 
very well understand, this is quite annoying. Is there a way to get 
the USB keyboard to work at the point where I enter the passphrases?


I've tried to change the keys for the disks to not use a 
passphrase, but only keyfiles and load them from loader.conf, just 
as described in the GELI man page (yes I did set the -P option), 
but that simply will not work (and to be honest, it's not a 
solution I'd favour); if I set the -b option (ask for passphrase on 
boot), it still asks for the passphrase, though there is none, and 
if I set the -B option (don't ask for passphrase on boot), the 
computer ends up at the "mountroot>" prompt.


I'd appreciate any help.

Sincerly,

Rolf Nielsen



Try setting hints.atkbd0.disabled to 1 in the loader, or in the 
device.hints file. Your usb keyboard may work in early stages with 
that device hint.


Erm, set the hint in the loader _first_, and then only put it in 
device.hints if it works!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"




Moreover, the usb keyboard works upto and including the boot menu (I 
guess the hardware is strictly under BIOS control then, and the kernel 
doesnt really know if the keboard is usb or ps/2). Then, as soon as 
the kernel starts probing devices, it stops working. It comes back 
when daemons have been started. Does usbd have to be running for a usb 
keyboard to work? If so, could it be worked around?





That I don't know. It seems to me that the USB keyboard operates in one 
of two modes - through the bios or through a device driver. When the 
system is yet to come up, the PC BIOS is able to talk with the USB 
keyboard, else you wouldn't be able to type commands in the loader. At 
some point, I guess the OS aborts talking to the USB keyboard through 
the BIOS until a driver is loaded. However, I'm not a kernel hacker, so 
this is only a guess and someone more knowledgeable should respond to 
the thread at this point.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"






Reid: No problem. Thanks a lot for your time anyway. :)

Anyone:
I read in the ukbd man page, the the USB keyboard will be detected after 
the console driver initializes itself. However, I also noted a macro 
named UPROTO_BOOT_KEYBOARD in the the /usr/src/sys/dev/usb/ukbd.c file. 
I'm not a kernel hacker either, and my C skills date back to the late 
90's, when I created various simple apps for Windoze, so I can't really 
see what the macro does (it's obviously a flag of some kind; it's 
defined as 1). Though its name suggests to me, that it might be possible 
to make it work when the ELI passphrase is supposed to be entered. If 
its not possible ( in that case, I hope it will be made possible in a 
near future release), I'd be willing, as a fallback, to accept a no 
passphrase solution, but as I also mentioned in my original post, I 
can't make that work. I did exactly what the geli man page says (I 
substituted the device names of course). Is the man page complete? 
Should there be some flags set, that tells the kernel not to ask for a 
passphrase, and only use the loaded keyfiles? I have ELI support 
compiled into the kernel, but I've also tried it with the geom_eli KLD, 
with the exact same result.


--

Vänligen / Sincerly,
Rolf Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Downgrading from current

2007-07-30 Thread John Nielsen
On Sunday 29 July 2007 09:42:01 pm Ross Penner wrote:
> I recently upgraded my system from stable to current to try and take
> advantage of some of wireless features offered. Unfortunetly, things
> didn't work out as well as I'd like to and I want to downgrade.
>
> Reading online, it seems that downgrading isn't supported and it's
> probably best to just reinstall the system. This seems reasonable enough
> to me but I have a couple problems I need to address first.
>
> I have a lot of data on my /usr partition that I would rather not have to
> backup and then readd to the system. is there a way I can reinstall and
> leave parts of the file system intact? I assume that I can use the same
> partitions but I'm worried that reinstalling will clean the partitions.

Obviously take good backups before you try anything.

I recently downgraded one of my machines using sysinstall's binary "upgrade" 
feature. Goes something like this:

Download the .iso image for the relase or snapshot you'd like to downgrade to. 
(Skip if you already have a CD.)

Use mdconfig to create a device entry for your .iso image. (Skip if you 
already have a CD.)

Mount the cd image to /cdrom or /mnt. (Skip if you already have a CD.)

Run /usr/sbin/sysinstall (from your running system, don't boot from a CD).

Go to the options screen and set the Release name to match the .iso image or 
CD you're using. e.g. 6.2-RELEASE or 6.2-STABLE-200706.

Go back to the main menu and choose the "Upgrade" option.

Follow the prompts. If you're using a CD then use the CD media option. If 
you're using a .iso image use the local directory option and give it the 
directory where you mounted the image. Be sure to install the src 
distribution.

Check that the sources in /usr/src match what just got installed and then run 
mergemaster to fix up /etc.

Reboot.

These instructions come with no warranty, your mileage may vary, not 
responsible for items left in vehicle or data loss, etc etc. Good luck 
though. :)

JN
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ELI passphrase on boot with USB keyboard

2007-07-30 Thread Reid Linnemann

Written by Rolf G Nielsen on 07/27/07 16:37>>

Reid Linnemann wrote:

Written by Reid Linnemann on 07/27/07 15:49>>

Written by Rolf G Nielsen on 07/27/07 15:21>>

Hi,

I recently purchased a new USB keyboard, since my old PS/2 one has 
seen its best days. This has caused me annoying problems with my ELI 
disks, though.


I have four SATA harddrives, all of which are encrypted using ELI 
encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The 
resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've 
concatenated into a large device, cc0, on which I have several 
partitions. To get this working, I of course need to boot from a 
separate device, and for that I use an SD card, which holds a boot 
directory. With my old PS/2 keyboard, this worked like a charm, but 
it seems to me, the ukbd driver isnt activated until after the ELI 
encryption, which means I'm unable to enter the passphrases for the 
disks, thus I can't get the computer passed the first passphrase 
prompt.


Currently I have both the old keyboard and the new USB one 
connected. I use the PS/2 one to enter the passphrases, then I put 
it on the floor under my desk and use the USB keyboard. As you may 
very well understand, this is quite annoying. Is there a way to get 
the USB keyboard to work at the point where I enter the passphrases?


I've tried to change the keys for the disks to not use a passphrase, 
but only keyfiles and load them from loader.conf, just as described 
in the GELI man page (yes I did set the -P option), but that simply 
will not work (and to be honest, it's not a solution I'd favour); if 
I set the -b option (ask for passphrase on boot), it still asks for 
the passphrase, though there is none, and if I set the -B option 
(don't ask for passphrase on boot), the computer ends up at the 
"mountroot>" prompt.


I'd appreciate any help.

Sincerly,

Rolf Nielsen



Try setting hints.atkbd0.disabled to 1 in the loader, or in the 
device.hints file. Your usb keyboard may work in early stages with 
that device hint.


Erm, set the hint in the loader _first_, and then only put it in 
device.hints if it works!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"




Moreover, the usb keyboard works upto and including the boot menu (I 
guess the hardware is strictly under BIOS control then, and the kernel 
doesnt really know if the keboard is usb or ps/2). Then, as soon as the 
kernel starts probing devices, it stops working. It comes back when 
daemons have been started. Does usbd have to be running for a usb 
keyboard to work? If so, could it be worked around?





That I don't know. It seems to me that the USB keyboard operates in one 
of two modes - through the bios or through a device driver. When the 
system is yet to come up, the PC BIOS is able to talk with the USB 
keyboard, else you wouldn't be able to type commands in the loader. At 
some point, I guess the OS aborts talking to the USB keyboard through 
the BIOS until a driver is loaded. However, I'm not a kernel hacker, so 
this is only a guess and someone more knowledgeable should respond to 
the thread at this point.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Root access loggin

2007-07-30 Thread Tom Evans
On Mon, 2007-07-30 at 08:11 -0500, Eric Crist wrote:
> On Jul 30, 2007, at 7:34 AMJul 30, 2007, Adam J Richardson wrote:
> 
> > Tom Evans wrote:
> >> This seems great in principle, but of course, you just gave them a  
> >> root
> >> shell, and so they can delete their log file easily enough...
> >
> > You could have cron email it to you every 5 minutes. Unlikely he'd  
> > check the crontab immediately, unless he was really bent on the  
> > system's destruction. Likely you'd have at least some evidence of  
> > his behaviour. Of course your email box would fill up quickly.
> >
> > Adam J Richardson
> >
> 
> Tom,
> 
> If you're really all that worried about this, don't give them root  
> access.  You could simply sit at the console with them while they  
> work.  IIRC, they're a contractor, not an employee.  Your presence  
> during such operations wouldn't be abnormal for a contractor.
> 
> HTH
> 
> Eric Crist

I'm not at all worried; the OP was. I was merely pointing out that most
auditing solutions have issues that can be worked around by a malicious
user; sometimes you just have to trust someone.


signature.asc
Description: This is a digitally signed message part


Re: ISC bind9 with dynamic DNS update (chroot problem)

2007-07-30 Thread Reid Linnemann

Written by Patrick Dung on 07/28/07 10:52>>

Thanks for reply.

Yes, your method works.
But I wonder why /var/named/etc/named/master directory permission
always reset to root at starting the daemon.

Regards
Patrick

--- Reid Linnemann <[EMAIL PROTECTED]> wrote:


Written by Patrick Dung on 07/27/07 08:19>>

Hi

I use FreeBSD 6.2 and the base bind9.
For dynamic DNS update, bind9 automatically generate the journal

file

(end in .jnl).
The default config is to use chroot and the running user as 'bind'.

The problem is that after named is started (/etc/init.d/named

start),

the default chroot directory /var/named/etc/named permission will

be

reset to own by root. So the named daemon (run as user 'bind')

cannot

create the journal file and complain:

Jul 27 21:06:54 fbsd62 named[2862]: general: localdomain.db.jnl:
create: permission denied

One temp fix is to use chroot and run as root, any suggestions?

Regards
Patrick



When I did ddns, I had my dynamic zone files in a subdirectory off of

the named chroot- i.e. /var/named/etc/namedb/dynamic - and chowned it
to 
bind, allowing the bind user to read/write anything inside.




I forgot to CC: questions@ on my original reply

This is because /etc/rc.d/named auto-updates the chroot to an expected 
state defined by the mtree at /etc/mtree/BIND.chroot.dist


P.S.
Please do not top post, so the conversation order progresses from oldest 
to newest.


-Reid

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Root access loggin

2007-07-30 Thread Ronald Klop

On Mon, 30 Jul 2007 15:11:06 +0200, Eric Crist <[EMAIL PROTECTED]> wrote:


On Jul 30, 2007, at 7:34 AMJul 30, 2007, Adam J Richardson wrote:


Tom Evans wrote:

This seems great in principle, but of course, you just gave them a root
shell, and so they can delete their log file easily enough...


You could have cron email it to you every 5 minutes. Unlikely he'd  
check the crontab immediately, unless he was really bent on the  
system's destruction. Likely you'd have at least some evidence of his  
behaviour. Of course your email box would fill up quickly.


Adam J Richardson



Tom,

If you're really all that worried about this, don't give them root  
access.  You could simply sit at the console with them while they work.   
IIRC, they're a contractor, not an employee.  Your presence during such  
operations wouldn't be abnormal for a contractor.


I don't have the original post of this, so I don't know the details, but  
this sounds like a good project for remote audit logging. Or is that only  
in FreeBSD 7?

Or use accounting: accton(8).

Is it possible to setup an accounting file as an named pipe, to log to a  
remote host?


Ronald.

--
 Ronald Klop
 Amsterdam, The Netherlands
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Root access loggin

2007-07-30 Thread Eric Crist

On Jul 30, 2007, at 7:34 AMJul 30, 2007, Adam J Richardson wrote:


Tom Evans wrote:
This seems great in principle, but of course, you just gave them a  
root

shell, and so they can delete their log file easily enough...


You could have cron email it to you every 5 minutes. Unlikely he'd  
check the crontab immediately, unless he was really bent on the  
system's destruction. Likely you'd have at least some evidence of  
his behaviour. Of course your email box would fill up quickly.


Adam J Richardson



Tom,

If you're really all that worried about this, don't give them root  
access.  You could simply sit at the console with them while they  
work.  IIRC, they're a contractor, not an employee.  Your presence  
during such operations wouldn't be abnormal for a contractor.


HTH

Eric Crist
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Root access loggin

2007-07-30 Thread Adam J Richardson

Tom Evans wrote:

This seems great in principle, but of course, you just gave them a root
shell, and so they can delete their log file easily enough...


You could have cron email it to you every 5 minutes. Unlikely he'd check 
the crontab immediately, unless he was really bent on the system's 
destruction. Likely you'd have at least some evidence of his behaviour. 
Of course your email box would fill up quickly.


Adam J Richardson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


what way to update named?

2007-07-30 Thread Zbigniew Szalbot

Hello,

I am using named version 9.3.3 which comes with FreeBSD system (i.e. was
not installed from ports). 

I know that in order to upgrade bind, I should cvsup sources and then go
through the entire procudure of updating the system, installing kernel,
etc. However, I tend not to use cvsup any more but I usually go for
freebsd-update tool. 

My question is: should I wait till freebsd-update tool includes an update
of bind to 9.3.4 or should I update the system from sources? I can wait but
I am just not sure what is the preferred method given that I use
freebsd-update on regular basis. This is FreeBSD 6.2-RELEASE-p5 #2

Thank you in advance!

Zbigniew Szalbot  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ldap install

2007-07-30 Thread Mohd Ghalib Akhtar
hi ,
how to configure ldap
 
Take care
Mohd.Ghalib Akhtar
(India.M)9899868681
(Africa.M) +255787896861 










- Original Message 
From: Garrett Cooper <[EMAIL PROTECTED]>
To: Lars Wittebrood <[EMAIL PROTECTED]>; FreeBSD Questions 

Sent: Monday, July 30, 2007 12:28:02 PM
Subject: Re: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced 
fromCOPY relocation in /bin/cp when installing sudo port SOLVED


Lars Wittebrood wrote:
> Hello list,
>
> This issue is solved. I have compiled the /bin/cp binary from source
> again and installed it. Still don't know what caused this though.
>
> Cheers,
> Lars.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of FreeBSD-Ports
> Posted At: Monday, July 30, 2007 8:37 AM
> Posted To: FreeBSD-Ports
> Conversation: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
> fromCOPY relocation in /bin/cp when installing sudo port
> Subject: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
> fromCOPY relocation in /bin/cp when installing sudo port
>
>
> Hello list,
>
> Anybody seen the message below and knows what it means? Couldn't find
> anything on Goolge. It's a 6.1-RELEASE-p10 system.
>
> [EMAIL PROTECTED] sudo # make
> ===>  WARNING: Vulnerability database out of date, checking anyway ===>
> Found saved configuration for sudo-1.6.9.1 ===>  Extracting for
> sudo-1.6.9.1 => MD5 Checksum OK for sudo-1.6.9p1.tar.gz.
> => SHA256 Checksum OK for sudo-1.6.9p1.tar.gz.
> ===>  Patching for sudo-1.6.9.1
> ===>  Configuring for sudo-1.6.9.1
> /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced from COPY
> relocation in /bin/cp
> *** Error code 1
>
> Stop in /usr/ports/security/sudo.
> *** Error code 1
>
> Stop in /usr/ports/security/sudo.
>
>
> With regards,
> Lars.
>   

ABI changes if you recompiled some sources (and not others) can 
cause this.
Always rebuild everything if you changed any important parts (libc, 
compiler versions, dependant libs, etc).
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Root access loggin

2007-07-30 Thread Tom Evans
On Tue, 2007-07-24 at 13:18 -0400, Ian Lord wrote:
> Hi,
> 
>  
> 
> A Zend technician asked me to have a root access on one of my box to
> troubleshoot something wrong in Zend Platform installation that doesn't work
> on Freebsd.
> 
>  
> 
> He will need root access naturally to install and debug remotely.
> 
>  
> 
> Is there a way to log all the commands he will type and send them in a
> logfile ?
> 
>  
> 
> Or is there a better solution than granting him root access from ssh ?
> 
>  
> 
> Thanks
> 
>  

sudosh (sudo shell) is an idea here. It gives them a root shell they can
do anything in, but everything is logged. It can even play back the logs
at any speed up you like (I like to watch.)

This seems great in principle, but of course, you just gave them a root
shell, and so they can delete their log file easily enough...


signature.asc
Description: This is a digitally signed message part


Re: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced fromCOPY relocation in /bin/cp when installing sudo port SOLVED

2007-07-30 Thread Garrett Cooper

Garrett Cooper wrote:

Lars Wittebrood wrote:

Hello list,

This issue is solved. I have compiled the /bin/cp binary from source
again and installed it. Still don't know what caused this though.

Cheers,
Lars.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of FreeBSD-Ports
Posted At: Monday, July 30, 2007 8:37 AM
Posted To: FreeBSD-Ports
Conversation: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
fromCOPY relocation in /bin/cp when installing sudo port
Subject: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
fromCOPY relocation in /bin/cp when installing sudo port


Hello list,

Anybody seen the message below and knows what it means? Couldn't find
anything on Goolge. It's a 6.1-RELEASE-p10 system.

[EMAIL PROTECTED] sudo # make
===>  WARNING: Vulnerability database out of date, checking anyway ===>
Found saved configuration for sudo-1.6.9.1 ===>  Extracting for
sudo-1.6.9.1 => MD5 Checksum OK for sudo-1.6.9p1.tar.gz.
=> SHA256 Checksum OK for sudo-1.6.9p1.tar.gz.
===>  Patching for sudo-1.6.9.1
===>  Configuring for sudo-1.6.9.1
/libexec/ld-elf.so.1: Undefined symbol "optifd" referenced from COPY
relocation in /bin/cp
*** Error code 1

Stop in /usr/ports/security/sudo.
*** Error code 1

Stop in /usr/ports/security/sudo.


With regards,
Lars.
  


   ABI changes if you recompiled some sources (and not others) can 
cause this.
   Always rebuild everything if you changed any important parts (libc, 
compiler versions, dependant libs, etc).

-Garrett


   Err... I meant to email [EMAIL PROTECTED]
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced fromCOPY relocation in /bin/cp when installing sudo port SOLVED

2007-07-30 Thread Garrett Cooper

Lars Wittebrood wrote:

Hello list,

This issue is solved. I have compiled the /bin/cp binary from source
again and installed it. Still don't know what caused this though.

Cheers,
Lars.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of FreeBSD-Ports
Posted At: Monday, July 30, 2007 8:37 AM
Posted To: FreeBSD-Ports
Conversation: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
fromCOPY relocation in /bin/cp when installing sudo port
Subject: /libexec/ld-elf.so.1: Undefined symbol "optifd" referenced
fromCOPY relocation in /bin/cp when installing sudo port


Hello list,

Anybody seen the message below and knows what it means? Couldn't find
anything on Goolge. It's a 6.1-RELEASE-p10 system.

[EMAIL PROTECTED] sudo # make
===>  WARNING: Vulnerability database out of date, checking anyway ===>
Found saved configuration for sudo-1.6.9.1 ===>  Extracting for
sudo-1.6.9.1 => MD5 Checksum OK for sudo-1.6.9p1.tar.gz.
=> SHA256 Checksum OK for sudo-1.6.9p1.tar.gz.
===>  Patching for sudo-1.6.9.1
===>  Configuring for sudo-1.6.9.1
/libexec/ld-elf.so.1: Undefined symbol "optifd" referenced from COPY
relocation in /bin/cp
*** Error code 1

Stop in /usr/ports/security/sudo.
*** Error code 1

Stop in /usr/ports/security/sudo.


With regards,
Lars.
  


   ABI changes if you recompiled some sources (and not others) can 
cause this.
   Always rebuild everything if you changed any important parts (libc, 
compiler versions, dependant libs, etc).

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem with automake upgrade

2007-07-30 Thread bsd

Hello,

I am trying to upgrade autoconf from 1.9.6_1 to 1.9.6_2 and I am  
facing a problem :



===>  Building for automake-1.9.6_2
Making all in .
rm -f automake automake.tmp
sed  -e 's,[EMAIL PROTECTED]@],1.9,g'  -e 's,[EMAIL PROTECTED] 
[EMAIL PROTECTED],automake,g'  -e 's,[EMAIL PROTECTED]@],:,g'  -e 's,[EMAIL PROTECTED]@],/ 
usr/bin/perl,g'  -e 's,[EMAIL PROTECTED]@],/bin/sh,g'  -e 's,[EMAIL PROTECTED]@], 
1.9.6,g'  -e 's,[EMAIL PROTECTED]@],Generated from automake.in;  
do not edit by hand.,g'  -e 's,[EMAIL PROTECTED]@],/usr/local/share,g' ./ 
automake.in >automake.tmp

chmod +x automake.tmp
chmod a-w automake.tmp
mv -f automake.tmp automake
rm -f aclocal aclocal.tmp
sed  -e 's,[EMAIL PROTECTED]@],1.9,g'  -e 's,[EMAIL PROTECTED] 
[EMAIL PROTECTED],automake,g'  -e 's,[EMAIL PROTECTED]@],:,g'  -e 's,[EMAIL PROTECTED]@],/ 
usr/bin/perl,g'  -e 's,[EMAIL PROTECTED]@],/bin/sh,g'  -e 's,[EMAIL PROTECTED]@], 
1.9.6,g'  -e 's,[EMAIL PROTECTED]@],Generated from aclocal.in; do  
not edit by hand.,g'  -e 's,[EMAIL PROTECTED]@],/usr/local/share,g' ./ 
aclocal.in >aclocal.tmp

chmod +x aclocal.tmp
chmod a-w aclocal.tmp
mv -f aclocal.tmp aclocal
Making all in doc
restore=: && backupdir=".am$$" &&  am__cwd=`pwd` && cd . &&  rm -rf  
$backupdir && mkdir $backupdir &&  if (makeinfo --no-split -- 
version) >/dev/null 2>&1; then  for f in ./automake-1.9.info ./ 
automake-1.9.info-[0-9] ./automake-1.9.info-[0-9][0-9] ./ 
automake-1.9.i[0-9] ./automake-1.9.i[0-9][0-9]; do  if test -f $f;  
then mv $f $backupdir; restore=mv; else :; fi;  done;  else :; fi  
&&  cd "$am__cwd";  if makeinfo --no-split   -I .  -o ./ 
automake-1.9.info ./automake-1.9.texi;  then  rc=0;  cd .;  else   
rc=$?;  cd . &&  $restore $backupdir/* `echo "././ 
automake-1.9.info" | sed 's|[^/]*$||'`;  fi;  rm -rf $backupdir;  
exit $rc

./automake-1.9.texi:9821: Unknown command `headitem'.
makeinfo: Removing output file `./automake-1.9.info' due to errors;  
use --force to preserve.

*** Error code 1

Stop in /usr/ports/devel/automake19/work/automake-1.9.6/doc.
*** Error code 1

Stop in /usr/ports/devel/automake19/work/automake-1.9.6.
*** Error code 1

Stop in /usr/ports/devel/automake19.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/ 
portupgrade.79700.7 env UPGRADE_TOOL=portupgrade  
UPGRADE_PORT=automake-1.9.6_1 UPGRADE_PORT_VER=1.9.6_1 make

** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! devel/automake19 (automake-1.9.6_1)   (texinfo error)
--->  Packages processed: 7 done, 0 ignored, 0 skipped and 1 failed


I have followed the indication provided in /usr/ports/UPDATING

Extensive reworking of the autotools ports has occurred, putting  
them in

the canonical locations, along with a suitable wrapper port to make
developing autotools-using code (as opposed to just building ports)
considerably easier.

Upgrade path is as follows for portupgrade, substitute the appropriate
commands if you are using portmaster:

   1.   portupgrade -f 'autoconf*' 'automake*'
   2.   cd /usr/ports/devel/autotools; make install
   3.   portupgrade -a


But as the first steps (portupgrade -f) gives the error reported before…
I don't know what to do…


Any help will be very apreciated.




Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz


P "Please consider your environmental responsibility before printing  
this e-mail"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mount_smbfs utf-8

2007-07-30 Thread Khairil Yusof
mount_smbfs -E UTF-8:UTF-8 //server/path /mnt/tmp

UTF-8 filenames do not show up at all on the FreeBSD 6.2-STABLE client.

They show up just fine using smbclient and mounted as nfs, files also
show up fine on Windows clients.

Is there a limitation with smbfs in handling UTF-8 samba mounts?

Or am I giving the wrong options to mount_smbfs?



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Best way to upgrade mysql-server?

2007-07-30 Thread Andreas Widerøe Andersen
Hi,
I recently upgraded from 3.23 to 4.027. My steps were:

1. Stopped the mysql server
2. make deinstall in mysql-server 3.23
3. make deinstall in mysql-client 3.23
4. make install clean in mysql-server 4.0.27
5. Ran the mysql_fix_privilege_tables
6. Started the mysql server again

(and ofcourse backups before step 1)

Things seem to be working fine.

In regards to the existing database files, are there more "correct" ways of
doing an upgrade on a production server?

Also, does anyone have some good advice on optimizing tables, correcting and
speeding up things after an upgrade?

Thanks and best regards,
Andreas
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"