Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Premal Mishra
Hi,

Am tryin to compile a C program which uses 3rd party library.

I get the following error during linking:

undefined reference to __ctype_b and this error comes up for many more names.

Whats may be the problem ?

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


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-10 Thread Kris Kennaway
On Sun, Apr 09, 2006 at 09:04:01PM -0700, Peter Thoenen wrote:

  About all I can think of is to try to reproduce the problem with
  enough logging enabled (e.g. running the binary under ktrace), with
  sync-mounted filesystem, and hope that the last few entries give the
  software developer enough of a clue what the process was doing at the
  time of shutdown (the operation itself probably will not be logged)
  that he can focus the investigation further.
 
 Want to walk me through this and will do.  As I said, reproducible.

What help do you need to implement the above?

Kris


pgpun06RSgcs8.pgp
Description: PGP signature


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Kris Kennaway
On Mon, Apr 10, 2006 at 11:33:25AM +0530, Premal Mishra wrote:
 Hi,
 
 Am tryin to compile a C program which uses 3rd party library.
 
 I get the following error during linking:
 
 undefined reference to __ctype_b and this error comes up for many more 
 names.
 
 Whats may be the problem ?

It's looking for a symbol that doesn't exist in the libraries with
which you are linking.  Perhaps it needs another library, or it's
expecting to find symbols that do not exist in FreeBSD system
libraries.

Kris


pgpHqhWEQENEK.pgp
Description: PGP signature


Re: UFS extended attributes

2006-04-10 Thread Robert Watson


On Sun, 9 Apr 2006, Duane Whitty wrote:

Started doing a little reading on the UFS and UFS2 file systems.  I'm just 
wondering if all types of files have extended attribute blocks available 
including named pipes, sockets, and device files?


Is it still the case that there are three unused extended attribute blocks 
available?


Extended attribute storage is available for all objects in UFS, including 
files, directories, named pipes, UNIX domain sockets, and device nodes.  I'm 
probably not th eright person to answer questions about the layout itself.


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


Re: /etc/fstab FS-specific parameters

2006-04-10 Thread Björn König

Andrey V. Semyonov schrieb:

Hi there!

How do you use FS-specific parameters in /etc/fstab (like -E for 
mount_msdosfs, or -I for mount_smbfs, etc...) ?


As far as I know this is not possible. I had a similar problem when I 
wanted to mount NFS with -L using fstab. In my case there was a 
solution, because if you specify -o nolockd then it has the same effect 
as -L. I just wrote nolockd into the options column of /etc/fstab. I 
guess this won't help you much, because mount_smbfs seems to don't make 
use of the -o parameter.


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


spelling error on your site.

2006-04-10 Thread Dan Moses
There is a spelling error in the word Fantastico in our listing on your ISP
page.  Can you please correct it?
 
Integrity  http://www.integrityhost.com/ Host
Integrity Host provides shared hosting, VPS (Virtual Private Servers), and
fully managed dedicated servers that run on multiple versions of FreeBSD.
cPanel and Fnastastico are available and bandwidth allocation is generous.
 
should say
 
Integrity  http://www.integrityhost.com/ Host
Integrity Host provides shared hosting, VPS (Virtual Private Servers), and
fully managed dedicated servers that run on multiple versions of FreeBSD.
cPanel and Fanstastico are available and bandwidth allocation is generous.
24x7 live support for single sites and resellers.
 
 
Please confirm when the correction is made.  
 
Thanks,
 
Dan Moses
Integrity Host
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Mikko Työläjärvi

On Mon, 10 Apr 2006, Premal Mishra wrote:


Hi,

Am tryin to compile a C program which uses 3rd party library.

I get the following error during linking:

undefined reference to __ctype_b and this error comes up for many more names.

Whats may be the problem ?



Without additional information, I'd say you are trying to link against
a linux library.  You are presumably running FreeBSD, so that is not
likely to work.

But, as that particular symbol can cause problems on linux if you have
a library built against an older version of glibc, pehaps you are
actually running Linux?  If so, this is the wrong mailing list.

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


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Premal Mishra
Hi,

Ya, am trying to link against a linux library on FreeBSD.

Is it not possible to use it?

Regards
Premal.

On 4/10/06, Mikko Työläjärvi [EMAIL PROTECTED] wrote:
 On Mon, 10 Apr 2006, Premal Mishra wrote:

  Hi,
 
  Am tryin to compile a C program which uses 3rd party library.
 
  I get the following error during linking:
 
  undefined reference to __ctype_b and this error comes up for many more 
  names.
 
  Whats may be the problem ?
 

 Without additional information, I'd say you are trying to link against
 a linux library.  You are presumably running FreeBSD, so that is not
 likely to work.

 But, as that particular symbol can cause problems on linux if you have
 a library built against an older version of glibc, pehaps you are
 actually running Linux?  If so, this is the wrong mailing list.

   $.02,
   /Mikko

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


Re: Shell scripting question [newby]

2006-04-10 Thread Jan Grant
On Mon, 10 Apr 2006, Malcolm Fitzgerald wrote:

 
 On 10/04/2006, at 12:39 AM, Jan Grant wrote:
 
  On Sun, 9 Apr 2006, Malcolm Fitzgerald wrote:
  
   I'm trying to follow the instructions at
   http://www.daemonology.net/freebsd-upgrade-5.4-to-6.0/

 Your advice got me to step 7 where the need to pass a control structure to the
 loop stopped me again.
 
 I got a bash shell and I write:
 
 for dist in base dict doc games info manpages ports; do
 cat /mnt/6.0-RELEASE/${dist}/${dist}.??  /usr/${dist}.tgz
 done
 
 I put it onto three lines by typing \ at the end of each line to achieve the
 layout and I get the prompt . When I get to the end, ie, done I press
 Enter and get another prompt.
 
 How can I get the multi-line command executed?

What you're doing is roughly this: (note, I supplied a separate done, 
you'll see why)

[[[
$ for i in one two three; do \
 echo $i \
 done
 done
one done
two done
three done
$
]]]

the first done is counted as part of the echo argument list.

If you terminate a line with a \ character, then the intervening 
newline is treated as just whitespace. Consequently, were you to use 
this syntax, you'd need to punctuate your script properly:

for i in one two three; do \
echo $i; \
done


Having said that, you don't need the \ marks, because bash (and sh) 
are smart enough to parse as you go and keep prompting until the command 
is complete. Thus you can just type:

for i in one two three; do
echo $i
done

and it'll do what you're asking.

Cheers,
jan


-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Strive to live every day as though it was last Wednesday.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: UFS extended attributes

2006-04-10 Thread Jan Grant
On Mon, 10 Apr 2006, Robert Watson wrote:

 
 On Sun, 9 Apr 2006, Duane Whitty wrote:
 
  Started doing a little reading on the UFS and UFS2 file systems.  I'm just
  wondering if all types of files have extended attribute blocks available
  including named pipes, sockets, and device files?
  
  Is it still the case that there are three unused extended attribute blocks
  available?
 
 Extended attribute storage is available for all objects in UFS, including
 files, directories, named pipes, UNIX domain sockets, and device nodes.  I'm
 probably not th eright person to answer questions about the layout itself.

Looks like it is: see /usr/include/ufs/ufs/dinode.h

-- 
jan grant, ISYS, University of Bristol. http://www.bris.ac.uk/
Tel +44 (0)117 3317661   http://ioctl.org/jan/
Theoremhood is positively decidable.
It just takes time at least exponential in the length of the proof.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Text files appearing as data (using file)

2006-04-10 Thread Kyrre Nygard


Hello,

I'm used to file(1) determining proper filetypes. However when text 
files have two cases of carriage returns on each line, file(1) 
identifies the text files as data.


Is there any way to avoid this?

Thank you,
Kyrre

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


Re: a few questions and concepts

2006-04-10 Thread Giorgos Keramidas
On 2006-04-07 19:11, Jonathan Horne [EMAIL PROTECTED] wrote:
 On Friday 07 April 2006 16:34, Giorgos Keramidas wrote:
   so, the past couple of days, i have learned to cvsup my /usr/src
   directories.  ive just been using the standard copy of the
   stable-supfile. i have learned that if i perform the sendmail recompile
   after the cvsup, that it sendmail seems to proclaim 8.13.6 in the banner.
on top of that, i have learned that if i recompile the kernel after
   cvsup, that it no longer says FreeBSD 6.0-RELEASE, but FreeBSD
   6.1-PRERELEASE.
 
  You are running RELENG_6 now, which is much more recent than
  RELENG_6_0_RELEASE.

 [...]
 ill grasp the method of the madness eventually.  i guess what confuses me, is
 that i read about those, and then try to find them on the ftp sites.  i
 assume, that only release is made into a .iso file?  and to move to a higher
 version (either the security RELENG_6_0 or stable RELENG_6), you do this thru
 the cvsup tool.

 so, by your descriptions and reply to my previous comments, my system that is
 running what says 6.1-PRERELEASE is really RELENG_6 (stable) ?

100% correct.

This is exactly what stable-supfile fetches for you :)

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


Re: spelling error on your site.

2006-04-10 Thread Glenn Dawson

At 09:19 PM 4/9/2006, Dan Moses wrote:

There is a spelling error in the word Fantastico in our listing on your ISP
page.  Can you please correct it?


The correct list to post this to would be [EMAIL PROTECTED]



Integrity  http://www.integrityhost.com/ Host
Integrity Host provides shared hosting, VPS (Virtual Private Servers), and
fully managed dedicated servers that run on multiple versions of FreeBSD.
cPanel and Fnastastico are available and bandwidth allocation is generous.

should say

Integrity  http://www.integrityhost.com/ Host
Integrity Host provides shared hosting, VPS (Virtual Private Servers), and
fully managed dedicated servers that run on multiple versions of FreeBSD.
cPanel and Fanstastico are available and bandwidth allocation is generous.
24x7 live support for single sites and resellers.


Are you sure you want to trade one typo for another?

-Glenn




Please confirm when the correction is made.

Thanks,

Dan Moses
Integrity Host
___
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: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-10 Thread Bill Moran
Peter Thoenen [EMAIL PROTECTED] wrote:

 --- Kris Kennaway [EMAIL PROTECTED] wrote:
  On Sun, Apr 02, 2006 at 04:09:30PM -0400, Anish Mistry wrote:
It's not clear what he means by hard crash, but he also says
power off, which is the part that is most confusing to me.
   Hmmm...I missed that part.  Yeah, if it powers off then I'm not
  sure what you can do to debug it.
 
 By hard crash I mean the box just instantly powers off.  No shutdown
 syncs, no error, panic's, or dump generated, nothing logged in syslog,
 and I have a serial cable hooked up to another another dumb terminal
 hoping to maybe catch a panic or some debug message dumped out over
 serial as it goes down but nothing there also.  It just stops. 
 
 Also note that this didn't happen on 5.x.  And when not running those
 particular ports the box stays up just fine for weeks on end.  Just
 tried again with 6.1 PRERELEASE and same issue.
 
  About all I can think of is to try to reproduce the problem with
  enough logging enabled (e.g. running the binary under ktrace), with
  sync-mounted filesystem, and hope that the last few entries give the
  software developer enough of a clue what the process was doing at the
  time of shutdown (the operation itself probably will not be logged)
  that he can focus the investigation further.
 
 Want to walk me through this and will do.  As I said, reproducible.

You could also install the setup under Bochs and enable full logging.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie help!

2006-04-10 Thread offbyone

infernus - Bluelight wrote:


Sorry for bothering this mailing list, but I realy need some help..
I find awsome screenshots from FreeBSD on various sites on the net, but 
on my comp,

the only thing I see is a black screen with some white text on it, and:

$|


What you are looking at is called a prompt. It indicates that your 
system is ready for input from you, through an interactive program 
called a shell, also called a command interpreter. The cursor is on 
the command line. The number and variety of commands that you might 
want to type onto the command line is immense, but you have to know what 
 each commands is that you might want you use, depending on what you 
want your computer to do with it. Learning how to use the shell and 
which of those commands are useful to you, is the essence of learning 
how to use any unix/bsd computer system. It is an older and more 
powerful way of feeding information to the system and getting 
information back, than the GUI screen-shots you mentioned.
Other responses to your OT have encouraged you in the direction of 
getting a the pretty face that you want on your computer. That's fine. 
But I would encourage you too, try to learn at least some of what you 
can do--some of the vast amount of work that FreeBSD can handle for 
you--starting right where you are, at that $| prompt on the command 
line. It is very exciting, once you do, and you don't have to install 
anything more than you already have.






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


Bge Kernel Compile Issues

2006-04-10 Thread Wil Hatfield
Trying to upgrade a Dell Poweredge 1750 with Broadcom BCM5704C Dual Gigabit
Ethernet. However my buildkernel is erroring out with the following.

cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extens
ions -std=c99 -g -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/al
tq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/
contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contri
b/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu
de opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param
arge-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundar
y=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror
/usr/src/sys/dev/bge/if_bge.c
/usr/src/sys/dev/bge/if_bge.c: In function `bge_newbuf_jumbo':
/usr/src/sys/sys/mbuf.h:513: warning: 'zone' might be used uninitialized in
this function
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTOM-KERNEL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

I have tried disabling and enabling various options but can't seem to find a
conflict anywhere. Since bge is a pretty common driver hopefully someone can
shed some light on this.

# uname -a
FreeBSD athena.somewhere.com 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3
09:36:13 UTC 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
i386

CVSed to the latest source of 6.1-PRERELEASE #4

#vi /usr/src/sys/i386/conf/CUSTOM-KERNEL

# --snip
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.7 2006/04/04 17:03:44 emax
Exp $

machine i386
cpu I486_CPU
cpu I586_CPU
cpu I686_CPU
ident   CUSTOM-KERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for
devices.

makeoptions DEBUG=-g# Build kernel with gdb(1) debug
symbols

options QUOTA
options NMBCLUSTERS=8192
options PMAP_SHPGPERPROC=601
options TCP_DROP_SYNFIN
options SMP
options IPFILTER
options IPFILTER_LOG
options IPFILTER_DEFAULT_BLOCK
options IPFIREWALL
options IPFIREWALL_VERBOSE
options DUMMYNET
options IPSTEALTH
options HZ=2000

options RESTARTABLE_PANICS
options PANIC_REBOOT_WAIT_TIME=30

#optionsSCHED_ULE   # ULE scheduler
options SCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big
directories
options MD_ROOT # MD is a potential root device
options NFSCLIENT   # Network Filesystem Client
options NFSSERVER   # Network Filesystem Server
options NFS_ROOT# NFS usable as /, requires
NFSCLIENT
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires
PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP
THIS!]
options COMPAT_FREEBSD4 # Compatible with FreeBSD4
options COMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

device  apic# I/O APIC

# Bus support.
device  eisa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device

Jail function 6.x

2006-04-10 Thread Matthew Whittaker-Williams

Dear FreeBSD users,

I`ve been using jails in FreeBSD for some time now and its a good 
solution for my purposes.
Now for the question, is there some patch available that can provide the 
ability to set multiple ip` for a single jail?
I know there was some patch for 4.x which did this, so I was wondering 
if some one got around to patch the jail function for 5.x.
Not sure on how big a security risk this might be to the jail or either 
the master server.


Thanks in advance.

With kind regards

Matthew Whittaker-Williams

--
Unix system  Network Engineer
Internet Unie Services B.V.
Postbus 23667
1100 ED  AMSTERDAM
Tel: +31(0)20 463 0506
Fax: +31(0)20 463 2146
Email: [EMAIL PROTECTED]
URL: http://iu.nl
PGP: 0x08A909D0
Ripe nic-handle: MW2861-RIPE


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


DL320 G3 Adaptec or Intel RAID?

2006-04-10 Thread [EMAIL PROTECTED]@mgEDV.net

hi,

we've got an hp proliant dl320 g3 with an embedded SATA-150
raid controller. loading 6.1B4 shows ad4 and ad6 as normal
disks but the RAID controller or the configured array is not
shown at all.

during POST the raid bios announces as:
Adaptec Embedded SATA HostRAID BIOS V3.0-1 1255

the embedded controller shows as:
Controller #00: ICH6R HostRAID at PCI Bus: 00, Dev: 1F, Func: 02

the configured array drive is shown something like:
Array 0 - RAID 1: 76GB optimal

can anyone tell if this adaptec/intel combination is supported
by freebsd in any way? the ICH6R is listed in the hw-section,
but the os doesn't find this special one.

br  cu

ps: just reply to the list, please.

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


Re: Newbie help!

2006-04-10 Thread Jim Stapleton
I appologize is this stuff is too basic for you, but it sounds as if
you need a crash course in Unix basics, not just FreeBSD. This will
tell you how to do the basics. My suggestion is to go to the library
and pick up some books on  Unix use/administration and/or FreeBSD.
O'Reily makes some nice stuff.

Notation: Any time you see something inside square brackets, it's
optional. i.e. you might see:
command [optional stuff]

Next, when I put somthing between underscore, that means it's
_italicised_, which means you have to replace what I wrote, with what
the word describes.

First off, some basic Unix comands

$ cd _directory_
  change your current directory to a new direcotry. If _directory_
starts with a /, then the new directory will be relative to the root
of the file systme, otherwise it will be relative to your current
directory

$ ls [_directory_]
  lists the contents of the current directory, unless _directory_ is
specified, and then it lists the contents of _directory_

$ pwd
  Display present working directory, or the directory you are in.

$ man _command_
  a rough outline of comman info, not the easiest to read initially,
but it's a good quick reference. It's the manual.

$ info _command_
  another form of documentation, like man.

$ which _command_
  this tells you if a command is installed, and where it is located.

$ less _file_
  This outputs a file to the screen, you can navigate the file using
the arrow keys.

$ ee _file_
$ emacs _file_
$ xemacs _file
$ vi _file_
$ vim _file_
  These are three basic (and not so basic) text editors you can find
on FreeBSD, ee and vi/vim are usually installed, you may have to
install emacs on your own. Each has several advantages and drawbacks,
and this topic is not the place to ressurect *that* holy war.


Some important directories
/
  The base directory off which everything can be found.

/bin/
/usr/bin/
/usr/local/bin/
  The location of most executable files.

/sbin/
/usr/sbin/
/usr/local/sbin/
  various server/administrative executable files are located in these
directories

/dev/
  This directory gives file-like access to hardware devices, and is
one of those things you'll need to learn over time.

/etc/
/usr/local/etc/
  All of the text files that configure the OS are here

/home/
  The directory containing each users information, with the user name
as the sub directory with the information for each individual user.

/usr/
  This directory contains various shared pieces of data used
throughout the operating system. It's a bit more complex than the
rest, so I won't go into a lot of detail.

/usr/local
  This is like /usr/, and / except it has the test or add-on files only.



now to try getting you to a point where you can reference the
handbook, which is an excellent source of documentation.

First, see which web browser you have installed for text viewing:
$ which links
$ which lynx

if either of these returns something (such as /usr/local/bin/links ),
you can skip to the == read the handbook == section, otherwise
continuw with the == ports crash course == section.

== ports crash course ==

first you want to get to the directory of a web browser, I'm slightly
more comfortable with lynx than links, so I'll show you how to get
ther:

change your directory to the lynx port: all ports are under
/usr/ports, then there are several sub-directories in there which hold
various programs, related to the group name. Example: www has web
related programs.
$ cd /usr/ports/www/lynx/

now you want to install your web browser, running make install in a
program directory within ports will download, install and compile the
program (provided there are no errors).
$ make install
now clean up the work since you don't need it anymore
$ make clean
verify you have lynx installed, I noticed sometiems in earlier
installs, I had to log out and log back in before this would work (or
start a new shell, log out and back in will be easier for a newbie):
$ which lynx


== read the handbook ==
Open the handbook in your web browser, I believe this is the correct
directory to the handbook, but I'm not currently on a BSD machine, so
I can't verify easily. Replace en with the appropriate directory for
your language if you aren't using english:
$ lynx /usr/doc/en/books/handbook/index.html.

Now, you can navigate with the page-up and page-down keys, and use the
arrow keys to select links. Enter will follow the selected link, and
backspace will bring you to a page that has a bunch of links that list
recently viewed pages.

You'll want to read about setting up X windows, as well as the use of
ports and cvsup. The handbook describes these well, and is even more
user friendly than the Hitchiker's Guide to the Galaxy, for all the
lack of a Don't Panic moniker on the front.

If you are like most Windows converts, you'll want to setup xorg,
firefox, and either KDE or Gnome quickly. If you are more into diving
in, you might like to install/try xfce (mentioned by another user),
ion, and/or window 

Re: Partitioning on existing system

2006-04-10 Thread Giorgos Keramidas
On 2006-04-09 18:56, Wil Hatfield [EMAIL PROTECTED] wrote:
  tmpmfs=YES
  tmpsize=100m
  tmpmfs_flags=-S -M -o noexec,nosuid
 
  Is there something wrong with this because it isn't creating a
  /tmp at all.
 
  Copyright (c) 1992-2006 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
  The Regents of the University of California. All rights reserved.
  FreeBSD 6.1-PRERELEASE #4: Mon Apr  3 22:25:51 PDT 2006

 Ok, I am going to solve my own problem just for search engine food.

 Aside from adding the rc.conf variables there has to also be a /tmp folder
 in the first place. I don't know why.

Because that's the mount point where the memory disk is attached.
As usual, you need a directory to hook new mount entries onto :)

 I would figure that if needed that
 that would be part of the boot scripts. But it isn't, so for us tmpmfs
 newbies:

 Create an empty /tmp folder

 Add the following to rc.conf:
 tmpmfs=YES
 tmpsize=50m
 tmpmfs_flags=-S -M -o noexec,nosuid
 clear_tmp_enable=YES

 reboot

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


Re: DL320 G3 Adaptec or Intel RAID?

2006-04-10 Thread Emil Thelin

On Mon, 10 Apr 2006, [EMAIL PROTECTED]@mgEDV.net wrote:


we've got an hp proliant dl320 g3 with an embedded SATA-150
raid controller. loading 6.1B4 shows ad4 and ad6 as normal
disks but the RAID controller or the configured array is not
shown at all.

during POST the raid bios announces as:
Adaptec Embedded SATA HostRAID BIOS V3.0-1 1255

the embedded controller shows as:
Controller #00: ICH6R HostRAID at PCI Bus: 00, Dev: 1F, Func: 02

the configured array drive is shown something like:
Array 0 - RAID 1: 76GB optimal

can anyone tell if this adaptec/intel combination is supported
by freebsd in any way? the ICH6R is listed in the hw-section,
but the os doesn't find this special one.


Feel free to correct me if I'm wrong here, the ICH6R is a software raid 
controller and its not supported in FreeBSD. Atleast not in 5.X.


However, if you can live without its raid-function the card itself works 
fine in FreeBSD.


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


Re: Bge Kernel Compile Issues

2006-04-10 Thread Lowell Gilbert
Wil Hatfield [EMAIL PROTECTED] writes:

 Trying to upgrade a Dell Poweredge 1750 with Broadcom BCM5704C Dual Gigabit
 Ethernet. However my buildkernel is erroring out with the following.

Let us start with the usual questions:
 Did you do a buildworld first?
 Can you build a GENERIC kernel?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: DL320 G3 Adaptec or Intel RAID?

2006-04-10 Thread [EMAIL PROTECTED]@mgEDV.net

 Feel free to correct me if I'm wrong here, the ICH6R is a software raid 
 controller and its not supported in FreeBSD. Atleast not in 5.X.

anyone working on a port/driver here or know something about it?
i've found a patch to ata-mk3 from Søren Schmidt (sos@) but i'm not sure,
what the state of this thing is and if it's the right stuff for me ;-(
also, i'd really appreciate loading modules instead of having custom
kernels on any of the machines (complicates upgrade-process)
br  cu

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


Drive errors on boot

2006-04-10 Thread Bryan Curl
My apologies if this is a repost. It seems either I
had a gmail problem or list never posted the question.
I have subscribed with another address to monitor
problem.

Anyway, here is my quesion again.

I get the following errors from dmesg on one of my ide
drives on boot.
Other similar drives dont error and are setup the same
in bios (except cylinder  block config of course)
System and this drive seem to work fine otherwise. I
re-fdisk this one but it still does this error.

FreeBSD 6.0-RELEASE-p6 #0: Tue Apr  4 09:43:53 MDT
2006

ad1: 1916MB Maxtor 72004 AP 2A3C0B31 at ata0-slave
WDMA2
ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
error=10NID_NOT_FOUND LBA=3924359
ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
error=10NID_NOT_FOUND LBA=3924343
ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
error=10NID_NOT_FOUND LBA=3924356
ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
error=10NID_NOT_FOUND LBA=3924359

I  dont know what causes these errors either.

dc0: failed to force tx and rx to idle state
dc0: failed to force tx and rx to idle state

Any ideas / suggsted reading somewhere on this?
Thank You.




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SIGCHLD and sockets HELP!

2006-04-10 Thread Keith Bottner
I am having a problem with SIGCHLD signals and their interaction with
sockets.

I have an application that forks modules in separate processes and use UNIX
domain sockets for communication. The main application handles the SIGCHLD
signal so that it can detect when/if a module crashes and if so restart that
specific module. The problem arises when the module crashes and before the
main application is notified with the SIGCHLD signal the socket will
continue to allow writes. I expected that there would be occasions when the
SIGCHLD signal would occur after my attempt to write into the socket, but I
also expected the socket to return an error at which point I could then mark
the module for restart as well.

My question is, has anybody else had this problem? Does anybody know exactly
what is going on an why? And most importantly, does anybody have a solution?

Thanks in advance for your time, it is quite an interesting problem so I am
hoping to get some insightful answers.

Keith


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


/etc/resolv.conf with 3 nameservers

2006-04-10 Thread guru

Hi,

The man page of resolv.conf claims:

 The different configuration options are:

 nameserver  Internet address (in dot notation) of a name server that the
 resolver should query.  Up to MAXNS (currently 3) name
 servers may be listed, one per keyword

I've three DNS server in my /etc/resolv.conf in 6.0-REL:

$ cat /etc/resolv.conf
domain Sisis.de
nameserver 10.0.1.201
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

But only the 1st one (10.0.1.201) is contacted to make the name lookup
(I've checked this with trussing a 'ping whatever.domain.com') and if
it does not know the addr, while the second one would know it, it does
not resolve.

Do I miss something?
Thx

matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Drive errors on boot

2006-04-10 Thread Lowell Gilbert
Bryan Curl [EMAIL PROTECTED] writes:

 My apologies if this is a repost. It seems either I
 had a gmail problem or list never posted the question.
 I have subscribed with another address to monitor
 problem.
 
 Anyway, here is my quesion again.
 
 I get the following errors from dmesg on one of my ide
 drives on boot.
 Other similar drives dont error and are setup the same
 in bios (except cylinder  block config of course)
 System and this drive seem to work fine otherwise. I
 re-fdisk this one but it still does this error.
 
 FreeBSD 6.0-RELEASE-p6 #0: Tue Apr  4 09:43:53 MDT
 2006
 
 ad1: 1916MB Maxtor 72004 AP 2A3C0B31 at ata0-slave
 WDMA2
 ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
 error=10NID_NOT_FOUND LBA=3924359
 ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
 error=10NID_NOT_FOUND LBA=3924343
 ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
 error=10NID_NOT_FOUND LBA=3924356
 ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
 error=10NID_NOT_FOUND LBA=3924359

This is probably a hardware problem.  My first guess would be
cabling.  Try swapping the cable.  And make sure there is a master on
the bus if this one is probing as a slave.

 I  dont know what causes these errors either.
 
 dc0: failed to force tx and rx to idle state
 dc0: failed to force tx and rx to idle state


The driver tried to force the transmitter and receiver to be idle
temporarily, and failed.  There are a number of different cases where
the driver tries to do this, so it's hard to guess exactly what's
happening this time.  Some of the relevant variables are: whether this
happens at boot time, whether it happens after an underrun or overrun,
and which real controller chip you have.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


serendipity and security

2006-04-10 Thread dick hoogendijk
I read a lot about hacking attemps on weblog software. My former
packages were not hacked but attacked quite often.

My question to you is: how's serendipity blogging software on Freebsd? I
noticed the port installed the directories quite like the docs say it
should be, but maybe you have other suggestions as well.

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 6.1 ++ The Power to Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: seeking help on adding a disk

2006-04-10 Thread Jerry McAllister
 
 Hi everyone.  I am having trouble adding a IDE 300 GB Maxtor to my 6.0
 system.  It is recognized as ad2.  Here is dmesg:
 
 ad0: 39205MB Maxtor 6K040L0 NAR61HA0 at ata0-master UDMA133
 ad1: 190782MB Seagate ST3200826A 3.03 at ata0-slave UDMA100
 ad2: 286188MB Maxtor 6L300R0 BAJ41G20 at ata1-master UDMA133
 
 I want to devote the entire disk to FreeBSD and use a single slice and
 partition and mount it on directory /images.
 
 This is what happened:
 
 # dd if=/dev/zero of=/dev/ad2 bs=1k count=64
 64+0 records in
 64+0 records out
 65536 bytes transferred in 0.005377 secs (12188086 bytes/sec)
 
 # fdisk -B -I /dev/ad2
 *** Working on device /dev/ad2 ***
 fdisk: invalid fdisk partition table found
 fdisk: Geom not found
 
 # bsdlabel -w -B /dev/ad2s1
 
 # fdisk ad2
 *** Working on device /dev/ad2 ***
 parameters extracted from in-core disklabel are:
 cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 63, size 586114641 (286188 Meg), flag 80 (active)
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 854/ head 15/ sector 63
 The data for partition 2 is:
 UNUSED
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 
 # bsdlabel ad2s1
 # /dev/ad2s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a: 586114625   16unused0 0   
   c: 5861146410unused0 0 # raw part,
 don't edit
 
 
 Now shouldn't I have some values in the first (a:) row?
 
 Anyway, when I try to create a filesystem with newfs I get an error:
 
 # newfs /dev/ad2s1a
 ..., 450493504, 450869856, 451246208,newfs: wtfs: 65536 bytes at sector
 451622560: Input/output error
 
 Now please let me know if my method is sound.  I feel the drive size is
 not being properly recognized and that
 the last command is trying to write past the edge of the disk.  I would
 also like to not be using s1a but s1e instead.
 
 Furthermore, the docs [1] for this drive say that an 80-wire cable is
 required.  I didn't have one handy so I had to
 use a 40-wire cable.  Could this be causing the trouble?
 
 Thanks for any insights (I have a hell of a time working with disks on
 FreeBSD).

It looks like things worked up to the bsdlabel which didn't do anything. 
Namely, after doing the fdisk, even though you saw some errors,
you seem to have gotten a single slice with everything in it just
as you wanted.  

   The data for partition 1 is:
   sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
   start 63, size 586114641 (286188 Meg), flag 80 (active)
   beg: cyl 0/ head 1/ sector 1;
   end: cyl 854/ head 15/ sector 63
   The data for partition 2 is:

I usually do fdisk -BI -v -b /boot/mbr ad2 
but, I believe the -b /boot/mbr is default with you use -B
and I think it will take /dev/ad2 as well as just ad2.   Actually I
am usually working on SCSI drives so it is da2, etc, but that shouldn't
be any different.

To answer your question on that, It looks like the data in the bsdlabel 
read you did is probably correct.  It shows values for size and offset
although the offset seems weird.   I would expect it to be 0.   Maybe
that is because you didn't do the first bsdlabel step.

For the disklabel you need two steps - noting that you were writing
the label to make it bootable, you need:

  bsdlabel -w -B ad2s1 auto
and then
  bsdlabel -e ad2s1

The first step (which you appear to have skipped) makes the base label
on the slice and the second edits it to be the way you want.

For the second bsdlabel it will come up in an edit session with what you 
saw before or maybe even more reasonable values.   The editor will be 
whatever you have set as your editor of choice in your EDITOR environment 
variable - probably vi, but you can set it however pleases you.

   8 partitions:
   #size   offsetfstype[fsize bsize bps/cpg]
 a: 586114625   16unused0 0   
 c: 5861146410unused0 0 # raw part,

Then, just edit the first line to be as follows

 e: 586114625   04.2BSD   2048 1638489   

or do it this way

 e:*   * 4.2BSD   2048 1638489   

You may actually want bigger fsize, bsize and some different bps/cpg
I sometimes set bps/cpg to 64 on larger disks and 16 on smaller, but
I usually let it do whatever bps/cpg that it wants, but often specify
the fsize and bsize.  bsize should be 8X fsize.

By changing the a: to e: in that first column, you will change the
identifier it uses.   If you put in '*' for size and offset, bsdlabel
will figure it for you and 

Re: Drive errors on boot

2006-04-10 Thread Bryan Curl


--- Lowell Gilbert
[EMAIL PROTECTED] wrote:

 Bryan Curl [EMAIL PROTECTED] writes:
 
  My apologies if this is a repost. It seems either
 I
  had a gmail problem or list never posted the
 question.
  I have subscribed with another address to monitor
  problem.
  
  Anyway, here is my question again.
  
  I get the following errors from dmesg on one of my
 ide
  drives on boot.
  Other similar drives dont error and are setup the
 same
  in bios (except cylinder  block config of course)
  System and this drive seem to work fine otherwise.
 I
  re-fdisk this one but it still does this error.
  
  FreeBSD 6.0-RELEASE-p6 #0: Tue Apr  4 09:43:53 MDT
  2006
  
  ad1: 1916MB Maxtor 72004 AP 2A3C0B31 at
 ata0-slave
  WDMA2
  ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
  error=10NID_NOT_FOUND LBA=3924359
  ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
  error=10NID_NOT_FOUND LBA=3924343
  ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
  error=10NID_NOT_FOUND LBA=3924356
  ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
  error=10NID_NOT_FOUND LBA=3924359
 
 This is probably a hardware problem.  My first guess
 would be
 cabling.  Try swapping the cable.  And make sure
 there is a master on
 the bus if this one is probing as a slave.

This is the primary slave drive. Primary master is the
boot drive where OS lives. The master is cabled on the
end connector and the slave is connected to the middle
connector on the cable.

The supplied documentation on the drive jumpers is
vague at best. It only makes mention of one jumper
(master or slave positions) There are 3 other jumpers
on the drive that are not mentioned.

Looks to me like DMA feature isn't working but I dont
know if this is activated by a jumper or by firmware
somehow.

 
  I  dont know what causes these errors either.
  
  dc0: failed to force tx and rx to idle state
  dc0: failed to force tx and rx to idle state
 
 
 The driver tried to force the transmitter and
 receiver to be idle
 temporarily, and failed.  There are a number of
 different cases where
 the driver tries to do this, so it's hard to guess
 exactly what's
 happening this time.  Some of the relevant variables
 are: whether this
 happens at boot time, whether it happens after an
 underrun or overrun,
 and which real controller chip you have.


I have seen this error on every FreeBSD installation I
have ever had. To my knowledge, it never seemed to
bother anything. I just hate watching errors scroll by.



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Newbie help!

2006-04-10 Thread Jim Stapleton
rehash? Cool, thanks, that'll be useful if I have to reinstall in the
future. At some point does this automatically get run after ports are
built? I knotice things get rehashed automatically after my first few
port builds, it's only the first few that cause the problem. (I
usually do bash, links/lynx, porgupgrade, and a couple others, in
semi-random order at first).

On 4/10/06, Andy Greenwood [EMAIL PROTECTED] wrote:



 On 4/10/06, Jim Stapleton [EMAIL PROTECTED] wrote:
  I appologize is this stuff is too basic for you, but it sounds as if
  you need a crash course in Unix basics, not just FreeBSD. This will
  tell you how to do the basics. My suggestion is to go to the library
  and pick up some books on  Unix use/administration and/or FreeBSD.
  O'Reily makes some nice stuff.
 
  Notation: Any time you see something inside square brackets, it's
  optional. i.e. you might see:
  command [optional stuff]
 
  Next, when I put somthing between underscore, that means it's
  _italicised_, which means you have to replace what I wrote, with what
  the word describes.
 
  First off, some basic Unix comands
 
  $ cd _directory_
change your current directory to a new direcotry. If _directory_
  starts with a /, then the new directory will be relative to the root
  of the file systme, otherwise it will be relative to your current
  directory
 
  $ ls [_directory_]
lists the contents of the current directory, unless _directory_ is
  specified, and then it lists the contents of _directory_
 
  $ pwd
Display present working directory, or the directory you are in.
 
  $ man _command_
a rough outline of comman info, not the easiest to read initially,
  but it's a good quick reference. It's the manual.
 
  $ info _command_
another form of documentation, like man.
 
  $ which _command_
this tells you if a command is installed, and where it is located.
 
  $ less _file_
This outputs a file to the screen, you can navigate the file using
  the arrow keys.
 
  $ ee _file_
  $ emacs _file_
  $ xemacs _file
  $ vi _file_
  $ vim _file_
These are three basic (and not so basic) text editors you can find
  on FreeBSD, ee and vi/vim are usually installed, you may have to
  install emacs on your own. Each has several advantages and drawbacks,
  and this topic is not the place to ressurect *that* holy war.
 
 
  Some important directories
  /
The base directory off which everything can be found.
 
  /bin/
  /usr/bin/
  /usr/local/bin/
The location of most executable files.
 
  /sbin/
  /usr/sbin/
  /usr/local/sbin/
various server/administrative executable files are located in these
  directories
 
  /dev/
This directory gives file-like access to hardware devices, and is
  one of those things you'll need to learn over time.
 
  /etc/
  /usr/local/etc/
All of the text files that configure the OS are here
 
  /home/
The directory containing each users information, with the user name
  as the sub directory with the information for each individual user.
 
  /usr/
This directory contains various shared pieces of data used
  throughout the operating system. It's a bit more complex than the
  rest, so I won't go into a lot of detail.
 
  /usr/local
This is like /usr/, and / except it has the test or add-on files
 only.
 
 
 
  now to try getting you to a point where you can reference the
  handbook, which is an excellent source of documentation.
 
  First, see which web browser you have installed for text viewing:
  $ which links
  $ which lynx
 
  if either of these returns something (such as /usr/local/bin/links ),
  you can skip to the == read the handbook == section, otherwise
  continuw with the == ports crash course == section.
 
  == ports crash course ==
 
  first you want to get to the directory of a web browser, I'm slightly
  more comfortable with lynx than links, so I'll show you how to get
  ther:
 
  change your directory to the lynx port: all ports are under
  /usr/ports, then there are several sub-directories in there which hold
  various programs, related to the group name. Example: www has web
  related programs.
  $ cd /usr/ports/www/lynx/
 
  now you want to install your web browser, running make install in a
  program directory within ports will download, install and compile the
  program (provided there are no errors).
  $ make install
  now clean up the work since you don't need it anymore
  $ make clean
  verify you have lynx installed, I noticed sometiems in earlier
  installs, I had to log out and log back in before this would work (or
  start a new shell, log out and back in will be easier for a newbie):



 Your shell most likely is keeping a hash of what commands it knows about.
 When you install a new one, the hash isn't updated automaticall, so if you
 log out and back in, it will get updated and you'll see the new command. The
 quickest way to update this is to execute
 $ rehash

 
 $ which lynx


 == read the handbook ==
 Open the handbook in 

newbie question on upgrading GCC

2006-04-10 Thread Jim Stapleton
I did a make install clean in the lang/gcc40/ directory to get a
newer version of GCC, and it seems happy, so the next thing I did was
I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
links to the /usr/local/bin/gcc-freebsd-4.0,
/usr/local/bin/g++-freebsd-4.0, etc. binaries.

Now when I try to make things, I get a lot of errors and most compilation fails.

I backed up the original binaries (gcc - gcc-original), and things
seem to be fixed, and compiles work. What should I do?

Also, the ports install does not make a cc-freebsd-4.0 binary, so
I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
biary, although when I run cc --version, it tells me that it is gcc
3.4.x, which is the default gcc install.


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


Re: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread Ken Stevenson

[EMAIL PROTECTED] wrote:

Hi,

The man page of resolv.conf claims:

 The different configuration options are:

 nameserver  Internet address (in dot notation) of a name server that the
 resolver should query.  Up to MAXNS (currently 3) name
 servers may be listed, one per keyword

I've three DNS server in my /etc/resolv.conf in 6.0-REL:

$ cat /etc/resolv.conf
domain Sisis.de
nameserver 10.0.1.201
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

But only the 1st one (10.0.1.201) is contacted to make the name lookup
(I've checked this with trussing a 'ping whatever.domain.com') and if
it does not know the addr, while the second one would know it, it does
not resolve.

Do I miss something?
Thx

matthias

I think the problem is that once your first server responds with a 
domain not found, that's considered an answer to your query. It 
doesn't try another DNS server just to see if it gets a different 
answer. If you were to disable the DNS server on 10.0.1.201, then it 
would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.


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


Re: newbie question on upgrading GCC

2006-04-10 Thread Erik Trulsson
On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
 I did a make install clean in the lang/gcc40/ directory to get a
 newer version of GCC, and it seems happy, so the next thing I did was
 I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
 links to the /usr/local/bin/gcc-freebsd-4.0,
 /usr/local/bin/g++-freebsd-4.0, etc. binaries.

That sounds like a bad idea.

 
 Now when I try to make things, I get a lot of errors and most compilation 
 fails.

Yes, a bad idea indeed.  Do not try to change the base compiler unless you
really know what you are doing.

 
 I backed up the original binaries (gcc - gcc-original), and things
 seem to be fixed, and compiles work. What should I do?

You should leave the standard compiler alone.  If you wish to use the
newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
FreeBSD itself.


 
 Also, the ports install does not make a cc-freebsd-4.0 binary, so
 I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
 biary, although when I run cc --version, it tells me that it is gcc
 3.4.x, which is the default gcc install.



-- 
Insert your favourite quote here.
Erik Trulsson
[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: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread guru
El día Monday, April 10, 2006 a las 10:44:52AM -0400, Ken Stevenson escribió:

 I think the problem is that once your first server responds with a 
 domain not found, that's considered an answer to your query. It 
 doesn't try another DNS server just to see if it gets a different 
 answer. If you were to disable the DNS server on 10.0.1.201, then it 
 would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.

Yes, you're right. It is said in (...) that the fall down only works
on timeout. I did not read carefully enough, stupid as I am. :-(

matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread Jim Stapleton
how do I setup make.conf to automatically use the new compiler?

Is there any way to set this new compiler as the default (such as
building the OS), without causing issues? Or would that be just a
royal pain in the posterior that is not worth the effort?

On 4/10/06, Erik Trulsson [EMAIL PROTECTED] wrote:
 On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
  I did a make install clean in the lang/gcc40/ directory to get a
  newer version of GCC, and it seems happy, so the next thing I did was
  I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
  links to the /usr/local/bin/gcc-freebsd-4.0,
  /usr/local/bin/g++-freebsd-4.0, etc. binaries.

 That sounds like a bad idea.

 
  Now when I try to make things, I get a lot of errors and most compilation 
  fails.

 Yes, a bad idea indeed.  Do not try to change the base compiler unless you
 really know what you are doing.

 
  I backed up the original binaries (gcc - gcc-original), and things
  seem to be fixed, and compiles work. What should I do?

 You should leave the standard compiler alone.  If you wish to use the
 newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
 FreeBSD itself.


 
  Also, the ports install does not make a cc-freebsd-4.0 binary, so
  I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
  biary, although when I run cc --version, it tells me that it is gcc
  3.4.x, which is the default gcc install.



 --
 Insert your favourite quote here.
 Erik Trulsson
 [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: a few questions and concepts

2006-04-10 Thread RW
On Saturday 08 April 2006 05:16, Kevin Kinsey wrote:

 Leading source code committers are typically always working on the
 Next Big Thing(tm), which is known as -HEAD in CVS, and often called
 (and officially, even, called) -CURRENT in FreeBSD.  Most users, though,
 are using the Last Big Thing(tm), known as -STABLE.

That sounds a bit unlikely, I would have thought most people would use a 
security branch like  RELENG_6_0. Nothing else is rcommended for production 
use.



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


Re: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread Alex Zbyslaw

[EMAIL PROTECTED] wrote:


El día Monday, April 10, 2006 a las 10:44:52AM -0400, Ken Stevenson escribió:

 

I think the problem is that once your first server responds with a 
domain not found, that's considered an answer to your query. It 
doesn't try another DNS server just to see if it gets a different 
answer. If you were to disable the DNS server on 10.0.1.201, then it 
would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.
   



Yes, you're right. It is said in (...) that the fall down only works
on timeout. I did not read carefully enough, stupid as I am. :-(
 

There's nothing to stop you configuring that local nameserver to use 
your two backups for names that it cannot resolve.


You could then leave the two backups in /etc/resolv.conf but if your 
local nameserver is authoritative for your local domain, then you 
probably want to know if it goes away, and those backups won't be able 
to look up names in your local domain.


I'm making some assumptions about why you set things up this way in the 
first place, and I may be wrong, but there's too little info in your 
post to give definitive suggestions.


--Alex



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


Re: Drive errors on boot

2006-04-10 Thread David J Brooks
On Monday 10 April 2006 09:26, Bryan Curl wrote:
 --- Lowell Gilbert

 [EMAIL PROTECTED] wrote:
  Bryan Curl [EMAIL PROTECTED] writes:
   My apologies if this is a repost. It seems either
 
  I
 
   had a gmail problem or list never posted the
 
  question.
 
   I have subscribed with another address to monitor
   problem.
  
   Anyway, here is my question again.
  
   I get the following errors from dmesg on one of my
 
  ide
 
   drives on boot.
   Other similar drives dont error and are setup the
 
  same
 
   in bios (except cylinder  block config of course)
   System and this drive seem to work fine otherwise.
 
  I
 
   re-fdisk this one but it still does this error.
  
   FreeBSD 6.0-RELEASE-p6 #0: Tue Apr  4 09:43:53 MDT
   2006
  
   ad1: 1916MB Maxtor 72004 AP 2A3C0B31 at
 
  ata0-slave
 
   WDMA2
   ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
   error=10NID_NOT_FOUND LBA=3924359
   ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
   error=10NID_NOT_FOUND LBA=3924343
   ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
   error=10NID_NOT_FOUND LBA=3924356
   ad1: FAILURE - READ_DMA status=51READY,DSC,ERROR
   error=10NID_NOT_FOUND LBA=3924359
 
  This is probably a hardware problem.  My first guess
  would be
  cabling.  Try swapping the cable.  And make sure
  there is a master on
  the bus if this one is probing as a slave.

 This is the primary slave drive. Primary master is the
 boot drive where OS lives. The master is cabled on the
 end connector and the slave is connected to the middle
 connector on the cable.

 The supplied documentation on the drive jumpers is
 vague at best. It only makes mention of one jumper
 (master or slave positions) There are 3 other jumpers
 on the drive that are not mentioned.

 Looks to me like DMA feature isn't working but I dont
 know if this is activated by a jumper or by firmware
 somehow.

   I  dont know what causes these errors either.
  
   dc0: failed to force tx and rx to idle state
   dc0: failed to force tx and rx to idle state
 
  The driver tried to force the transmitter and
  receiver to be idle
  temporarily, and failed.  There are a number of
  different cases where
  the driver tries to do this, so it's hard to guess
  exactly what's
  happening this time.  Some of the relevant variables
  are: whether this
  happens at boot time, whether it happens after an
  underrun or overrun,
  and which real controller chip you have.

 I have seen this error on every FreeBSD installation I
 have ever had. To my knowledge, it never seemed to
 bother anything. I just hate watching errors scroll by.

I solved this same error on my machine by adding
sysctl hw.ata.ata_dma=0
to /boot/loader.conf

That slows down drive access something fierce, but it worked for me. Once the 
machine has booted you may be able to turn DMA access back on with 
atacontrol(8).

The problem was ultimately solved for me by upgrading to 6.1-PRERELEASE.

HTH,
David
-- 
Sure God created the world in only six days,
but He didn't have an established user-base.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread Erik Trulsson
On Mon, Apr 10, 2006 at 11:01:21AM -0400, Jim Stapleton wrote:
 how do I setup make.conf to automatically use the new compiler?

Don't.  But if you insist on doing that you could try putting

CC=/usr/local/bin/gcc40
CXX=/usr/local/bin/g++40

into /etc/make.conf.  Just be aware that it will probably not work very
well.


 
 Is there any way to set this new compiler as the default (such as
 building the OS), without causing issues?

Not without causing issues, no.

 Or would that be just a
 royal pain in the posterior that is not worth the effort?

That does sound like a fairly accurate description.


When it comes to changing the default compiler a good rule of thumb is
that if you need to ask how to do it, then you should not do it.


 
 On 4/10/06, Erik Trulsson [EMAIL PROTECTED] wrote:
  On Mon, Apr 10, 2006 at 10:43:51AM -0400, Jim Stapleton wrote:
   I did a make install clean in the lang/gcc40/ directory to get a
   newer version of GCC, and it seems happy, so the next thing I did was
   I replaced my /usr/bin/gcc, /usr/bin/g++, etc. binaries with hard
   links to the /usr/local/bin/gcc-freebsd-4.0,
   /usr/local/bin/g++-freebsd-4.0, etc. binaries.
 
  That sounds like a bad idea.
 
  
   Now when I try to make things, I get a lot of errors and most compilation 
   fails.
 
  Yes, a bad idea indeed.  Do not try to change the base compiler unless you
  really know what you are doing.
 
  
   I backed up the original binaries (gcc - gcc-original), and things
   seem to be fixed, and compiles work. What should I do?
 
  You should leave the standard compiler alone.  If you wish to use the
  newer compiler invoke it as gcc40 (IIRC), but don't try use it to rebuild
  FreeBSD itself.
 
 
  
   Also, the ports install does not make a cc-freebsd-4.0 binary, so
   I'm leary of replacing it with a hard link to the gcc-freebsd-4.0
   biary, although when I run cc --version, it tells me that it is gcc
   3.4.x, which is the default gcc install.
 
 
 
  --
  Insert your favourite quote here.
  Erik Trulsson
  [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Insert your favourite quote here.
Erik Trulsson
[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: seeking help on adding a disk

2006-04-10 Thread Peter

--- Jerry McAllister [EMAIL PROTECTED] wrote:

  
  Hi everyone.  I am having trouble adding a IDE 300 GB Maxtor to my
 6.0
  system.  It is recognized as ad2.  Here is dmesg:
  
  ad0: 39205MB Maxtor 6K040L0 NAR61HA0 at ata0-master UDMA133
  ad1: 190782MB Seagate ST3200826A 3.03 at ata0-slave UDMA100
  ad2: 286188MB Maxtor 6L300R0 BAJ41G20 at ata1-master UDMA133
  
  I want to devote the entire disk to FreeBSD and use a single slice
 and
  partition and mount it on directory /images.
  
  This is what happened:
  
  # dd if=/dev/zero of=/dev/ad2 bs=1k count=64
  64+0 records in
  64+0 records out
  65536 bytes transferred in 0.005377 secs (12188086 bytes/sec)
  
  # fdisk -B -I /dev/ad2
  *** Working on device /dev/ad2 ***
  fdisk: invalid fdisk partition table found
  fdisk: Geom not found
  
  # bsdlabel -w -B /dev/ad2s1
  
  # fdisk ad2
  *** Working on device /dev/ad2 ***
  parameters extracted from in-core disklabel are:
  cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl)
  
  Figures below won't work with BIOS for partitions not in cyl 1
  parameters to be used for BIOS calculations are:
  cylinders=581463 heads=16 sectors/track=63 (1008 blks/cyl)
  
  Media sector size is 512
  Warning: BIOS sector numbering starts with sector 1
  Information from DOS bootblock is:
  The data for partition 1 is:
  sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  start 63, size 586114641 (286188 Meg), flag 80 (active)
  beg: cyl 0/ head 1/ sector 1;
  end: cyl 854/ head 15/ sector 63
  The data for partition 2 is:
  UNUSED
  The data for partition 3 is:
  UNUSED
  The data for partition 4 is:
  UNUSED
  
  # bsdlabel ad2s1
  # /dev/ad2s1:
  8 partitions:
  #size   offsetfstype   [fsize bsize bps/cpg]
a: 586114625   16unused0 0   
c: 5861146410unused0 0 # raw
 part,
  don't edit
  
  
  Now shouldn't I have some values in the first (a:) row?
  
  Anyway, when I try to create a filesystem with newfs I get an
 error:
  
  # newfs /dev/ad2s1a
  ..., 450493504, 450869856, 451246208,newfs: wtfs: 65536 bytes at
 sector
  451622560: Input/output error
  
  Now please let me know if my method is sound.  I feel the drive
 size is
  not being properly recognized and that
  the last command is trying to write past the edge of the disk.  I
 would
  also like to not be using s1a but s1e instead.
  
  Furthermore, the docs [1] for this drive say that an 80-wire cable
 is
  required.  I didn't have one handy so I had to
  use a 40-wire cable.  Could this be causing the trouble?
  
  Thanks for any insights (I have a hell of a time working with disks
 on
  FreeBSD).
 
 It looks like things worked up to the bsdlabel which didn't do
 anything. 
 Namely, after doing the fdisk, even though you saw some errors,
 you seem to have gotten a single slice with everything in it just
 as you wanted.  
 
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 586114641 (286188 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 854/ head 15/ sector 63
The data for partition 2 is:
 
 I usually do fdisk -BI -v -b /boot/mbr ad2 
 but, I believe the -b /boot/mbr is default with you use -B
 and I think it will take /dev/ad2 as well as just ad2.   Actually I
 am usually working on SCSI drives so it is da2, etc, but that
 shouldn't
 be any different.
 
 To answer your question on that, It looks like the data in the
 bsdlabel read you did is probably correct.  It shows values for size
and
 offset although the offset seems weird.   I would expect it to be 0. 
 Maybe
 that is because you didn't do the first bsdlabel step.


Which first step?


 For the disklabel you need two steps - noting that you were writing
 the label to make it bootable, you need:
 
   bsdlabel -w -B ad2s1 auto
 and then
   bsdlabel -e ad2s1
 
 The first step (which you appear to have skipped) makes the base
 label on the slice and the second edits it to be the way you want.


I cannot find the 'auto' option in the bsdlabel man page.

Also, I do not need the drive to be bootable.  I redid the procedure
like this:

# dd if=/dev/zero of=/dev/ad2 bs=1k count=64
# fdisk -I ad2  { same error msg as before }
# bsdlabel -w ad2s1
# bsdlabel -e ad2s1



# /dev/ad2s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  e: 586114625   16unused2048 16384 89
  c: 5861146410unused0 0 # raw part,
don't edit



# newfs -U /dev/ad2s1e


  e:*   * 4.2BSD   2048 1638489   
 
 You may actually want bigger fsize, bsize and some different bps/cpg
 I sometimes set bps/cpg to 64 on larger disks and 16 on smaller, but
 I usually let it do whatever bps/cpg that it wants, but often specify
 the fsize and bsize.  bsize should be 8X fsize.


How do you explain this 

Re: newbie question on upgrading GCC

2006-04-10 Thread Jim Stapleton

 When it comes to changing the default compiler a good rule of thumb is
 that if you need to ask how to do it, then you should not do it.



That seems to be a general *nix world rule of thumb for just about everything...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread guru
El día Monday, April 10, 2006 a las 04:07:34PM +0100, Alex Zbyslaw escribió:

 [EMAIL PROTECTED] wrote:
 
 El día Monday, April 10, 2006 a las 10:44:52AM -0400, Ken Stevenson 
 escribió:
 
  
 
 I think the problem is that once your first server responds with a 
 domain not found, that's considered an answer to your query. It 
 doesn't try another DNS server just to see if it gets a different 
 answer. If you were to disable the DNS server on 10.0.1.201, then it 
 would use xxx.xxx.xxx.xxx or yyy.yyy.yyy.yyy to resolve the query.

 
 
 Yes, you're right. It is said in (...) that the fall down only works
 on timeout. I did not read carefully enough, stupid as I am. :-(
  
 
 There's nothing to stop you configuring that local nameserver to use 
 your two backups for names that it cannot resolve.
 
 You could then leave the two backups in /etc/resolv.conf but if your 
 local nameserver is authoritative for your local domain, then you 
 probably want to know if it goes away, and those backups won't be able 
 to look up names in your local domain.
 
 I'm making some assumptions about why you set things up this way in the 
 first place, and I may be wrong, but there's too little info in your 
 post to give definitive suggestions.

The anderlying problem is that we are three companies, now connected
through VPN tunnels. Each company runs it's own DNS server internaly and
without publicating all its names to Internet. The three DNS are
10.0.1.201 (mine one), xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy. 

Any idea? Yes, in the future we will unify the whole zone, but this is
not a short term option...

matthias
-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/~guru/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: newbie question on upgrading GCC

2006-04-10 Thread RW
On Monday 10 April 2006 16:01, Jim Stapleton wrote:
 how do I setup make.conf to automatically use the new compiler?

 Is there any way to set this new compiler as the default (such as
 building the OS), without causing issues? Or would that be just a
 royal pain in the posterior that is not worth the effort?

IIRC make buildworld  doesn't even use the default compiler directly. It just 
uses it to bootstrap the build of its own new compiler.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Kris Kennaway
On Mon, Apr 10, 2006 at 12:28:26PM +0530, Premal Mishra wrote:
 Hi,
 
 Ya, am trying to link against a linux library on FreeBSD.
 
 Is it not possible to use it?

You cannot mix and match FreeBSD and Linux libraries.  You can however
*run* your pre-compiled Linux binary, and it is possible to also
compile a Linux binary on FreeBSD (install the linux_devtools port and
then chroot to /compat/linux, then compile it as normal; you may
need to add additional RPM packages.)

Kris


pgpVdziRbFY7N.pgp
Description: PGP signature


Re: Newbie help!

2006-04-10 Thread RW
On Sunday 09 April 2006 20:38, infernus - Bluelight wrote:

 I was thinking about setting up a FTP and Apache server +mail maybe..
 But now when I see this black screen and don't have a clue on what to
 do, or how to do enything..
 I feel the hope is dripping into the sink!

Several people have suggested installing x-windows, kde, gnome etc, but there 
is really not much advantage there if you are intending to use it as a 
server. FreeBSD has no significant GUI support for configuring its server 
software, so it wouldn't give you much more than the ability to run xterms 
(terminal windows).

I presume that you have another computer that you use as a desktop machine. 
I'd recommend that you install putty, or a similar ssh client, on  that 
machine and access your server using ssh. You will still be using the command 
line, but you will have the support of a familiar gui. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread Alex Zbyslaw

[EMAIL PROTECTED] wrote:


El día Monday, April 10, 2006 a las 04:07:34PM +0100, Alex Zbyslaw escribió:
 

There's nothing to stop you configuring that local nameserver to use 
your two backups for names that it cannot resolve.


You could then leave the two backups in /etc/resolv.conf but if your 
local nameserver is authoritative for your local domain, then you 
probably want to know if it goes away, and those backups won't be able 
to look up names in your local domain.


I'm making some assumptions about why you set things up this way in the 
first place, and I may be wrong, but there's too little info in your 
post to give definitive suggestions.
   



The anderlying problem is that we are three companies, now connected
through VPN tunnels. Each company runs it's own DNS server internaly and
without publicating all its names to Internet. The three DNS are
10.0.1.201 (mine one), xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy. 


Any idea? Yes, in the future we will unify the whole zone, but this is
not a short term option...
 

Presumably all three ranges have distinct domain names  E.g. company1.de 
company2.de company3.de


I am no expert of DNS, but isn't all you need for each company to run 
nameservers which are slaves (secondaries) for the other 2 as well as 
master of their own?  So the nameserver at company1 is master for 
company1.de and is a slave for company2.de and company3.de etc.


Of course, you might want some redundancy in that scenario, with each 
company running DNS on another server as well, and that one being a 
slave for all 3 domains.


If you don't know enough to do that, I strongly recommend getting the 
latest edition of O'Reilly DNS and BIND; and you should find BIND doc 
on your FreeBSD system starting in /usr/share/doc/bind9/arm/Bv9ARM.html.


Best,

--Alex



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


Re: Numerous ftp timeouts - why?

2006-04-10 Thread RW
On Sunday 09 April 2006 19:59, Michael D. Norwick wrote:
 New to FreeBSD not new to *nix.  Have the docs/handbook/faq, etc.  Using
 freebsd 6.0 RELEASE on Compaq Proliant 2500R.
 Why when trying to install various apps from ports do the ftp sessions
 frequently timeout?  If I manually fetch packages from
 sites the download goes ok, but this means I have to copy files to
 /usr/ports/distfiles manually.  did 'man fetch' but still no clue
 as to why this happens.


Try adding 

MASTER_SORT_REGEX?= ^file:  ^https?:

to make.conf.  This tells the ports system  to prefer http where availible. If 
things don't improve  then you have ruled-out its being ftp specific.

I've never made any specific firewall provision for ftp, and fetch claims to 
default to active mode. As it works for me I guess it must be honouring the 
FTP_PASSIVE_MODE=YES  that's in the default environment.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Timescale for 6.1-RELEASE...

2006-04-10 Thread martinko
Harrison Peter CSA BIRKENHEAD wrote:
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: 02 April 2006 20:29
To: Harrison Peter CSA BIRKENHEAD
Cc: freebsd-questions@freebsd.org
Subject: Re: Timescale for 6.1-RELEASE...


On 30/03/06, Harrison Peter CSA BIRKENHEAD
[EMAIL PROTECTED] wrote:

I realise the answer to this question is when it's ready, 

but does anyone have a rough idea how close to being ready 6.1 is?

Thanks,

Peter Harrison





I think the closest way of knowing is checking the todo page and when
they mostly say resolved it may be close to been ready.

Chris
 
 
 Thanks for this Chris - I'll keep an eye on the todo page, and I've bitten 
 the bullet and upgraded to 6-STABLE (6.1-PRERELEASE) in the meantime.
 
 
 Peter
 


i'm afraid todo page is not updated very often. at least this was the
case when i was watching it during previous releases. so one was/is left
to search through mailing lists for occasional background info.. :-(

btw, there used to be a great site publishing summaries of current
development -- http://www.xl0.org/FreeBSD/ -- it's been dead for more
than 1 yr though :(

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


Re: Incorrect inline documentation in /usr/local/etc/pkgtools.conf

2006-04-10 Thread martinko
Alex Zbyslaw wrote:
 Spil Oss wrote:
 
 Thanks a lot, that makes it very clear for me.

 Would it be a good idea to make that specific in the pkgtools.conf
 file? There must be more FreeBSD newbies that can run into the same
 trouble.
  

 It seems like a good idea to me but you'd want to get the idea to the
 author of portupgrade et al.
 
 --Alex
 

and note that portupgrade also handles differently ports depending on
whether they're being installed directly or indirectly (because of
dependency, eg via metaport), and when a package is being installed for
the first time or it's being upgraded. :(
this behaviour is rather inconsistent and confuses a lot and makes it
difficult to easily manage your compilation process and options
management, imho. :-(

m.

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


Re: /etc/resolv.conf with 3 nameservers

2006-04-10 Thread Charles Swiger

On Apr 10, 2006, at 9:54 AM, [EMAIL PROTECTED] wrote:

$ cat /etc/resolv.conf
domain Sisis.de
nameserver 10.0.1.201
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

But only the 1st one (10.0.1.201) is contacted to make the name lookup
(I've checked this with trussing a 'ping whatever.domain.com') and if
it does not know the addr, while the second one would know it, it does
not resolve.

Do I miss something?


If your nameserver at 10.whatever is returning NXDOMAIN, the resolver  
has gotten an answer and never asks for a second opinion from other  
nameservers.  Fix your 10.whatever nameserver...


--
-Chuck

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


Re: seeking help on adding a disk

2006-04-10 Thread Jerry McAllister
 
 
 --- Jerry McAllister [EMAIL PROTECTED] wrote:
 
   Anyway, when I try to create a filesystem with newfs I get an
  error:
   
   # newfs /dev/ad2s1a
   ..., 450493504, 450869856, 451246208,newfs: wtfs: 65536 bytes at
  sector
   451622560: Input/output error
   
   Now please let me know if my method is sound.  I feel the drive
  size is
   not being properly recognized and that
   the last command is trying to write past the edge of the disk.  I
  would
   also like to not be using s1a but s1e instead.
   
   Furthermore, the docs [1] for this drive say that an 80-wire cable
  is
   required.  I didn't have one handy so I had to
   use a 40-wire cable.  Could this be causing the trouble?
   
   Thanks for any insights (I have a hell of a time working with disks
  on
   FreeBSD).
  
  It looks like things worked up to the bsdlabel which didn't do
  anything. 
  Namely, after doing the fdisk, even though you saw some errors,
  you seem to have gotten a single slice with everything in it just
  as you wanted.  
  
 The data for partition 1 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 63, size 586114641 (286188 Meg), flag 80 (active)
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 854/ head 15/ sector 63
 The data for partition 2 is:
  
  I usually do fdisk -BI -v -b /boot/mbr ad2 
  but, I believe the -b /boot/mbr is default with you use -B
  and I think it will take /dev/ad2 as well as just ad2.   Actually I
  am usually working on SCSI drives so it is da2, etc, but that
  shouldn't
  be any different.
  
  To answer your question on that, It looks like the data in the
  bsdlabel read you did is probably correct.  It shows values for size
 and
  offset although the offset seems weird.   I would expect it to be 0. 
  Maybe
  that is because you didn't do the first bsdlabel step.
 
 
 Which first step?

The first of the two bsdlabel steps - eg:
   bsdlabel -w   

 
  For the disklabel you need two steps - noting that you were writing
  the label to make it bootable, you need:
  
bsdlabel -w -B ad2s1 auto
  and then
bsdlabel -e ad2s1
  
  The first step (which you appear to have skipped) makes the base
  label on the slice and the second edits it to be the way you want.
 
 
 I cannot find the 'auto' option in the bsdlabel man page.

Yes, looks like it has disappeared now.   It used to be there in disklabel.
So, don't worry about the auto, but do use the -w
 
 Also, I do not need the drive to be bootable.  I redid the procedure
 like this:
 
 # dd if=/dev/zero of=/dev/ad2 bs=1k count=64
 # fdisk -I ad2  { same error msg as before }
 # bsdlabel -w ad2s1
 # bsdlabel -e ad2s1

OK.  If you don't want it to be bootable, then leave out those parameters.
You had used them in your earlier post so I continued them.

fdisk complains about geometry, but then it does things the way it
wants so I generally just ignore it.   Some people get all worked
up, but on modern disks, disk geometry  from the external point of
view is virtual (fiction).   

 
 
 # /dev/ad2s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   e: 586114625   16unused2048 16384 89
   c: 5861146410unused0 0 # raw part,
 don't edit
 
 
 
 # newfs -U /dev/ad2s1e

Newfs used to require the raw device name, as in

   newfs -U /dev/rad2s1e

but I see the man page doesn't show that in its example now, so
maybe it no long does.   Try it once and see.   It can't hurt as long
as it is a new disk and you haven't used it for anything yet.

 
   e:*   * 4.2BSD   2048 1638489   
  
  You may actually want bigger fsize, bsize and some different bps/cpg
  I sometimes set bps/cpg to 64 on larger disks and 16 on smaller, but
  I usually let it do whatever bps/cpg that it wants, but often specify
  the fsize and bsize.  bsize should be 8X fsize.
 
 How do you explain this on another (5.4) system of mine:

Explain what?   It looks reasonably normal.
Unless you mean the 0-s in fsize, bsize and bps/cpg.  I think that may
mean it is doing its own thing - using defaults.
But, I don't know.   Those fields have something in them on the machines I 
have handy to look at.   But, then, I probably put something there when I 
bsdlabeled them.

 # bsdlabel ad0s3
 
 # /dev/ad0s3:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:   52428804.2BSD 0 0 0 
   b:  4142736   524288  swap 
   c: 249007500unused 0 0   # raw part, don't edit
   d:   524288  46670244.2BSD 0 0 0 
   e:   524288  51913124.2BSD 0 0 0 
   f: 19185150  57156004.2BSD 0 0 0
 
  The newfs should then work after the bsdlabel is fixed up.
 
 Nope.  Same error.  Retries of newfs causes crashes at random sectors. 
 I am guessing that the 40-wire cable is causing poor 

RE: Bge Kernel Compile Issues

2006-04-10 Thread Wil Hatfield
 Let us start with the usual questions:
  Did you do a buildworld first?
  Can you build a GENERIC kernel?

Yes I ran a buildworld first.
No I can't build the GENERIC config as it has ALOT more problems than just
the bge drivers.

--
Wil Hatfield



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


Re: How to handle 'local' ports/packages?

2006-04-10 Thread martinko
Alex Zbyslaw wrote:
 [EMAIL PROTECTED] wrote:
 
 Ok, that's fine, but how can I have a port on my system that isn't in the
 ports tree available to the world? I mean, won't anything I add to my
 local
 tree be deleted by cvsup'ing?
  

 cvsup won't delete things you add, but I believe portsnap does.
 
 I have a whole new port, and local patches for another in my /usr/ports
 tree and they just stay there.
 
 hth,
 
 --Alex
 

i'm not so sure about portsnap -- i've got my new port in
/usr/ports/sysutils and portsnap does not touch it when updating.

m.

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


sendmail - local delivery path

2006-04-10 Thread Efren Bravo
Hi,

I want to change the local user delivery path on
sendmail from default in /var/mail/[users] to
/usr/zmail/[users]  
  
I've tried with: 
define(`confFORWARD_PATH', `/usr/zmail/$u') 
but sendmail ignore the new path and store the
incoming mail on /var/mail/[users]

Do I miss something?

Thanks...

Efren Bravo.
-
Fight back spam! Download the Blue Frog.
http://www.bluesecurity.com/register/s?user=ZWZyZW5iYQ%3D%3D



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hard crash on 6.x -- reproducible, multiple people affected

2006-04-10 Thread Peter Thoenen
 What help do you need to implement the above?

Not a coder or software debugger sort of guy so pretty much all :) (as
I ain't going to understand the logging / bachs / ktrace output
anyways).

What does somebody who might understand what is going on need me to
provide them.  What exactly do I run through ktrace and for that
matter, what is ktrace.  Same deal with *full logging* with bachs. 
Think of me a debug stupid ... just a port maintainer not a kernel /
code guy :)

I can google bachs and ktrace but guessing you all have specific ideas
/ syntax already in mind.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: [freebsd-questions] ndis setup

2006-04-10 Thread hernan
Thanks Fabian, that helped me move forward.  My next question is how
to interpret the segfault I get when loading the new kernel module I
created with ndisgen.  The error happens when I do the 'kldload' on
the new module, my machine dies and reboots.

Does this mean I'm out of luck with using NDIsulator?  Let me know if
you have any hints.

thanks...
hernan

On 4/9/06, Fabian Keil [EMAIL PROTECTED] wrote:
 hernan [EMAIL PROTECTED] wrote:

  Hey folks.  I'm setting up FreeBSD 6.0-RELEASE and I'm having a little
  trouble getting my wireless NIC recognized.  The card is a Linksys
  WMP64G and I'm trying to set things up to run with the FreeBSD
  NDISulator as described in the FreeBSD handbook
  (http://www.freebsd.org/doc/handbook/network-wireless.html).

 This chapter is outdated.

  Here's what I'm doing (as root):
 
  1) Verifying with 'pciconf -lv' that the PCI card is there.  Also, I
  know the card works, it was running fine on Windows.
 
  2) Building ndis itself:

  3) Building the if_ndis module:

  4) Loading the ndis and if_ndis modules:
kldload ndis
I verify at this point using kldstat that both ndis and if_ndis are
  in fact loaded.
 
  I see nothing in dmesg or in my console during the kldload.  Also, it
  doesn't appear that the driver found the card, there's no signs of
  life.  I've tried using ndisgen, and have had the same results (with
  much less typing).  In either case, I get nothing in dmesg and no
  usable enabled NIC.

 After you run ndisgen you should have a third kernel module with
 a name similar to the name of your sys file. If you load
 this module you should at least get an error message.

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


Marvell Yukon chip in FreeBSD 5.4

2006-04-10 Thread Leonid Baryudin
I'm trying to load Marvell if_myk.ko kernel module. In FreeBSD 5.4 vanilla
  it works fine, creates device node, etc...
  
  In my distribution (based on the same 5.4, but with some changes) driver
  gets loaded (kldstat shows that), but device node is not created.
  
  What should I look for? Some kernel option, disabling/enabling node creation?
  
  Thanks,
  
  Leonid.
  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail - local delivery path

2006-04-10 Thread Giorgos Keramidas
On 2006-04-10 20:38, Efren Bravo [EMAIL PROTECTED] wrote:
 Hi,

 I want to change the local user delivery path on
 sendmail from default in /var/mail/[users] to
 /usr/zmail/[users]

This is pointed to /var/mail/USER by the default value of the $MAIL
variable.  You can change it globally by editing /etc/login.conf and
then running cap_mkdb(1) on it.

Look near line 29 for:

# [...]
# default:\
# :passwd_format=md5:\
# :copyright=/etc/COPYRIGHT:\
# :welcome=/etc/motd:\
=  # :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\
# :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin 
/usr/local/bin /usr/X11R6/bin ~/bin:\
# :nologin=/var/run/nologin:\
# [...]

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


tomcat start/stop

2006-04-10 Thread eoghan

Hi
When I use tomcat_enable in my rc.conf, how do I start and stop my tmcat 
server so I can test my jsp pages?

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


RE: Bge Kernel Compile Issues

2006-04-10 Thread Wil Hatfield

 Yes I ran a buildworld first.
 No I can't build the GENERIC config as it has ALOT more problems than just
 the bge drivers.

What I am saying about the GENERIC is that it chokes when trying to install
alot of the GENERIC drivers that aren't needed. For instance the aic and
aha. Once I disable those the compile gets alot farther and eventually gets
to the bge issue. Which I have yet to get resolved.

I am going to try the GENERIC again without changing anything at all. Even
the firewall and SMP. Just right out of the box GENERIC. If it makes it to
6.1-PRE then I will try the custom kernel. Perhaps the sequence of events is
the issue. Or maybe the firewall and SMP. We shall see.

--
Wil Hatfield


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


Re: Bge Kernel Compile Issues

2006-04-10 Thread Garrett Cooper

Wil Hatfield wrote:


Yes I ran a buildworld first.
No I can't build the GENERIC config as it has ALOT more problems than just
the bge drivers.
   



What I am saying about the GENERIC is that it chokes when trying to install
alot of the GENERIC drivers that aren't needed. For instance the aic and
aha. Once I disable those the compile gets alot farther and eventually gets
to the bge issue. Which I have yet to get resolved.

I am going to try the GENERIC again without changing anything at all. Even
the firewall and SMP. Just right out of the box GENERIC. If it makes it to
6.1-PRE then I will try the custom kernel. Perhaps the sequence of events is
the issue. Or maybe the firewall and SMP. We shall see.

--
Wil Hatfield
 

Check your RAM lately? Kernel and world compiles usually make RAM issues 
evident.

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


RE: Bge Kernel Compile Issues

2006-04-10 Thread Wil Hatfield
 Check your RAM lately? Kernel and world compiles usually make RAM issues
 evident.

/usr/src/sys/dev/bge/if_bge.c
/usr/src/sys/dev/bge/if_bge.c: In function `bge_newbuf_jumbo':
/usr/src/sys/sys/mbuf.h:513: warning: 'zone' might be used uninitialized in
this function

I haven't ever seen errors like that caused by RAM but heck I will put it on
the tester. What can I lose.

Though I would think running the buildworld with a -j4 would have found a
ram issue before building the kernel would have.

--
Wil Hatfield




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


Hosed my MBR?

2006-04-10 Thread Doug Poland
Hello,

I'm in a bit of a mess here.  I've got an Asus P4C800-E Deluxe
motherboard with two on-board SATA RAID controllers, an Intel MatrixRAID
(ICH5R) and Promise Fasttrak (PDC20378).  My BIOS allows me to boot
from either the Promise or the Intel controller.

The PDC20378 runs two drives in a RAID0 configuration booting FreeBSD
6.0-STABLE.  The entire drive (ar0) is dedicated to FreeBSD and I have
the boot-manager installed.   The ICH5R also runs two drives in a
RAID0 for Windows XP.  I allocated roughly 25% of the drive (ar1) to
Windows NTFS (ar1s1) and left the remaining disk open. 

Now that 6.x supports the ICH5R I decided to use the leftover disk (ar1)
for a FreeBSD slice.  I used sysinstall's fdisk to create the slice in
the unused portion of the disk.  I successfully committed the changes.  I
then used # newfs /dev/ar1s2 to create a file-system and it went fine.

The problem is, now, when I attempt to boot off the Intel controller, I
get a FreeBSD boot load failure:

---

Invalid Partition
Invalid Partition

No /boot/loader

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:

Invalid partition
No /boot/kernel/kernel

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:

---

So it would seem I hosed my MBR.  The question is, how did I do it and
how do I fix it?  I would think that when I choose to leave the MBR
untouched in sysinstall, that it would do just that.  

I cannot use the old DOS boot floppy trick of:  fdisk /MBR as DOS will
not recognize my Intel controller.  Windows installation media is
equally clueless.  I want to be very careful here so as not to render my
entire system useless.  A thought occurred to me that I might be able to
get a MBR from another Windows box 

   freesbie# dd if=/dev/ad0 of=/mnt/nfs/tmp/XP.mbr bs=512 count=79
   hosedbox# dd if=/mnt/nfs/tmp/XP.mbr of=/dev/ar1 bs=512 count=79

and write that over my bad MBR.  Does that make sense?  Is there a
better way?


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


Re: Hosed my MBR?

2006-04-10 Thread Huy Ton That
Boot off the WinXP disc  enter the repair utility (console).

You can type 'help' for all the commands.

There's a command called fixmbr; I think this is what you are looking for.

On 4/10/06, Doug Poland [EMAIL PROTECTED] wrote:

 Hello,

 I'm in a bit of a mess here.  I've got an Asus P4C800-E Deluxe
 motherboard with two on-board SATA RAID controllers, an Intel MatrixRAID
 (ICH5R) and Promise Fasttrak (PDC20378).  My BIOS allows me to boot
 from either the Promise or the Intel controller.

 The PDC20378 runs two drives in a RAID0 configuration booting FreeBSD
 6.0-STABLE.  The entire drive (ar0) is dedicated to FreeBSD and I have
 the boot-manager installed.   The ICH5R also runs two drives in a
 RAID0 for Windows XP.  I allocated roughly 25% of the drive (ar1) to
 Windows NTFS (ar1s1) and left the remaining disk open.

 Now that 6.x supports the ICH5R I decided to use the leftover disk (ar1)
 for a FreeBSD slice.  I used sysinstall's fdisk to create the slice in
 the unused portion of the disk.  I successfully committed the changes.  I
 then used # newfs /dev/ar1s2 to create a file-system and it went fine.

 The problem is, now, when I attempt to boot off the Intel controller, I
 get a FreeBSD boot load failure:

 ---

 Invalid Partition
 Invalid Partition

 No /boot/loader

 FreeBSD/i386 boot
 Default: 0:ad(0,a)/boot/kernel/kernel
 boot:

 Invalid partition
 No /boot/kernel/kernel

 FreeBSD/i386 boot
 Default: 0:ad(0,a)/boot/kernel/kernel
 boot:

 ---

 So it would seem I hosed my MBR.  The question is, how did I do it and
 how do I fix it?  I would think that when I choose to leave the MBR
 untouched in sysinstall, that it would do just that.

 I cannot use the old DOS boot floppy trick of:  fdisk /MBR as DOS will
 not recognize my Intel controller.  Windows installation media is
 equally clueless.  I want to be very careful here so as not to render my
 entire system useless.  A thought occurred to me that I might be able to
 get a MBR from another Windows box

freesbie# dd if=/dev/ad0 of=/mnt/nfs/tmp/XP.mbr bs=512 count=79
hosedbox# dd if=/mnt/nfs/tmp/XP.mbr of=/dev/ar1 bs=512 count=79

 and write that over my bad MBR.  Does that make sense?  Is there a
 better way?


 --
 Regards,
 Doug
 ___
 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]


You have received a postcard !

2006-04-10 Thread postcard . com

   Hello friend !
   You have just received a postcard from someone who cares about you!
   This is a part of the message:
   Hy there! It has been a long time since I haven't heared about you!
   I've just found out about this service from Claire, a friend of mine
   who also told me that...
   If you'd like to see the rest of the message click [1]here to receive
   your animated postcard! 
   ===
   Thank you for using www.yourpostcard.com 's services !!!
   Please take this opportunity to let your friends hear about us by
   sending them a postcard from our collection !
   ==

References

   1. http://www.felicitacards.xhost.ro/postcard.gif.exe
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hosed my MBR?

2006-04-10 Thread Doug Poland
On Mon, Apr 10, 2006 at 08:06:11PM -0400, Huy Ton That wrote:
 On 4/10/06, Doug Poland [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm in a bit of a mess here.  I've got an Asus P4C800-E Deluxe
  motherboard with two on-board SATA RAID controllers, an Intel MatrixRAID
  (ICH5R) and Promise Fasttrak (PDC20378).  My BIOS allows me to boot
  from either the Promise or the Intel controller.
 
  ...
  
  The problem is, now, when I attempt to boot off the Intel controller, I
  get a FreeBSD boot load failure:
 
  Invalid Partition
  Invalid Partition
 
  So it would seem I hosed my MBR.  The question is, how did I do it and
  how do I fix it?  I would think that when I choose to leave the MBR
  untouched in sysinstall, that it would do just that.
 
  I cannot use the old DOS boot floppy trick of:  fdisk /MBR as DOS will
  not recognize my Intel controller.  Windows installation media is
  equally clueless.  I want to be very careful here so as not to render my
  entire system useless.  A thought occurred to me that I might be able to
  get a MBR from another Windows box
 
 freesbie# dd if=/dev/ad0 of=/mnt/nfs/tmp/XP.mbr bs=512 count=79
 hosedbox# dd if=/mnt/nfs/tmp/XP.mbr of=/dev/ar1 bs=512 count=79
 
  and write that over my bad MBR.  Does that make sense?  Is there a
  better way?
 

 Boot off the WinXP disc  enter the repair utility (console).
 
 You can type 'help' for all the commands.
 
 There's a command called fixmbr; I think this is what you are looking for.
 
Now this is getting OT, but recovery console doesn't show my drive.  How
do I know that it will fix the correct MBR?  Don't I have two MBR's?
one on each controller?

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


Re: seeking help on adding a disk

2006-04-10 Thread Peter

--- Jerry McAllister [EMAIL PROTECTED] wrote:

[snip]

  # newfs -U /dev/ad2s1e
 
 Newfs used to require the raw device name, as in
 
newfs -U /dev/rad2s1e
 
 but I see the man page doesn't show that in its example now, so
 maybe it no long does.   Try it once and see.

   The newfs should then work after the bsdlabel is fixed up.
  
  Nope.  Same error.  Retries of newfs causes crashes at random
 sectors. 
  I am guessing that the 40-wire cable is causing poor signaling.  I
 also
  tried changing the offset of 'e' to 0 and modifying the 'size' so
 that
  it matches 'c'.
 
 Could be.  If using rad2s1e doesn't help, then maybe that is your
 problem.


This is all I have:

$ ls -lh /dev/r*
crw-rw-rw-  1 root  wheel0,  10 Apr  9 15:55 /dev/random

No raw devices.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(no subject)

2006-04-10 Thread alex
Hello freebsd-questions,

  Everything was perfect with my system for about 2 years but about 4
  days ago I started having a problem. Every 24 hours i got the
  error message error reading usb urb and modem completely goes off
  (all lights are going off)
  System is FreeBSD 5.2.1, USB modem ADSL Alcatel Speedtouch 330.
  What can it be?
  

-- 
Best regards,
Alex  mailto:[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: (no subject)

2006-04-10 Thread Chris Hill

On Tue, 11 Apr 2006, [EMAIL PROTECTED] wrote:


 Everything was perfect with my system for about 2 years but about 4
 days ago I started having a problem. Every 24 hours i got the
 error message error reading usb urb and modem completely goes off
 (all lights are going off)


Sounds like a USB problem. (Sorry, master-of-the-obvious here.) Since 
this was working before and the problems are new, maybe there is a 
hardware failure beginning to happen.



 System is FreeBSD 5.2.1, USB modem ADSL Alcatel Speedtouch 330.


Then again a quick google to
http://www.google.com/search?hl=enq=%22error+reading+usb+urb%22btnG=Google+Search 
shows lots of folks having issues with the Alcatel Speedtouch 330. Maybe 
read some of those articles. (My mailer may wrap the url, sorry.)


Also, you may want to consider upgrading to 6.0 (6.1 is due to be 
released very soon), or at least to the latest 5.x. 5.2.1 is kind of 
long in the tooth by now.



 What can it be?


Look in /var/log, and browse through the file called messages. There may 
be some clues there.


HTH.

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re:USB modem ADSL Alcatel Speedtouch 330 was: (no subject)

2006-04-10 Thread Chris Coleman
Every 24 hours i got the error message error reading usb urb and
modem completely goes off  (all lights are going off)

I've not worked with USB much. You might try killing and restarting
usbd. There might also be a kernel module (kldstat) that you can
unload and reload.  The other thing that always shows up in weird ways
is a full filesystem.  However, if neither of those help, since
nothing has changed, I'd look at a hardware failure.

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


Re: DVD-Slideshow

2006-04-10 Thread Chris Maness

[EMAIL PROTECTED] wrote:

Chris,

  

or you could symlink to: ( if you have linux compat enabled )

/usr/compat/linux/usr/bin/seq




will you let me know if this helped you?

will you relay the seq-patches to the portmaintainer?

regards,

usleep

  

I am back from my honeymoon (lots of pics to try out with the script).

What version did you want me to try?  Did you have 1.7.5 patched for 
wc?  I could try that.


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


sysinstall won't write fs to new disk, bad magic number

2006-04-10 Thread Oliver Iberien
There was a thread about this a while ago, but it did not seem to end in a 
solution... In any case, I have a 160GB Seagate drive that I was trying to 
mount a partition on as /disk2. I went through the instructions in the 
Handbook under Formatting Media for Use With FreeBSD. No formatting seemed 
to be happening, though. When I added it to fstab, something in KDE found it 
and then failed to open it. mount shows that it has not been mounted, and if 
I try to mount it:

bsd# mount -u /dev/ad1s2c /disk2
mount: /dev/ad1s2c on /disk2: specified device does not match mounted device
bsd# mount /dev/ad1s2c /disk2
mount: /dev/ad1s2c: Input/output error

I looked at the previous thread and then tried:

bsd# newfs /dev/ad1s2c
/dev/ad1s2c: 52627.0MB (107780084 sectors) block size 16384, fragment size 
2048
using 287 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976,
 ...
 107260480, 107636832
cg 0: bad magic number

I had two partitions on it, one to be used for linux later on. I tried 
swapping them out, but no difference. 

This drive worked under linux. Any ideas?

Oliver

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


Faking multiple physical adapters for DHCPDISCOVER

2006-04-10 Thread Terrence Koeman
Hi,

I'm trying to 'fake' multiple phisical adapters in my FreeBSD 6.1-PRERELEASE
system, but I'm not getting anywhere.

-There are two 3Com 905C cards in the system (xl0 and xl1).
-xl1 is assigned a static private IP address and xl0 aquires an address from
my provider using DHCP.
-The system does NAT for several clients having private addresses.

I need to 'clone' the xl1 adapter to appear as three adapters, each with a
distinct MAC address. This because my provider has assigned me three
semi-static addresses of which I want to use 1 for outbound NAT-traffic and
two for static NAT.

These addresses are semi-static because they are basically MAC-based
reservations on the providers DHCP server, and it happens to be that I'm
required to aquire a DHCP lease for all three addresses for routing to work
properly. If I configure the addresses statically the connectivity
'disappears' after a while.

I tried using netgraph as suggested here:
http://ezine.daemonnews.org/200406/netgraph.html

ifconfig xl1 delete
ngctl mkpeer . eiface hook ether
ifconfig ngeth0 up
ngctl mkpeer ngeth0: bridge lower link0
ngctl name ngeth0:lower mybridge
ngctl connect xl1: mybridge: lower link1
ngctl connect xl1: mybridge: upper link2
ngctl connect ngeth0: mybridge: upper link3
ngctl msg xl1: setautosrc 0
ngctl msg xl1: setpromisc 1
ifconfig ngeth0 link 00:50:04:32:8a:6b

At this point everything seems OK, the MAC-address is correctly set and xl1
is in promiscous mode. However, when I try 'dhclient ngeth0' the adapter does
not get any response/lease.

I also tried using a vlan interface as following:

ifconfig vlan create
ngctl msg xl1: setautosrc 0
ifconfig vlan0 vlan 0 vlandev xl1 
ifconfig vlan0 link 00:50:04:32:8a:6b

The same here, 'dhclient vlan0' fails.

I also thought that it'd be much simpler to have a dhcp client that I could
instruct to spoof the MAC-addresses so that it would aquire leases for 3
distinct mac-addresses, and run as a daemon so that it renews them when they
expire. I could then just configure the addresses statically and don't have
to clone any adapters. However, I haven't found any client that could do
this...

At the moment I'm out of ideas and I was hoping that someone here could point
me in the right direction with this problem.

-- 
Regards,
Terrence Koeman

MediaMonks B.V. (www.mediamonks.com)
Please quote all replies in correspondence.




smime.p7s
Description: S/MIME cryptographic signature


Need /bin/sh script help

2006-04-10 Thread Garrett Cooper

Hello again all,
   Just making a series of sh scripts to help automate updating and 
whatnot of my fileserver (since I am trying to avoid having mistakes 
occur with my system, and maybe help the community out a bit by 
providing some decent means of updating their own machines), and I was 
wondering if anyone could help me out with the following script I've 
developing (the grep if statements are incorrect..):


#!/bin/sh
#

KC=;

cd /usr/src;

if [ -n `grep -e s/KERNCONF=/ /etc/make.conf` ] # want to look for 
KERNCONF in /etc/make.conf

then
   echo enter in the kernel conf file full pathname:;
   read KERNCONF;
   KC=KERNCONF=$KERNCONF;
fi

if [ -n `grep -e s/NO_CLEAN=*yes*/ /etc/make.conf` ] // want to look for 
NO_CLEAN in /etc/make.conf -- is this really necessary?

then
   cd sys;
   echo cleaning sources
   make clean;
   make cleandir;
   cd ..;
fi

echo building kernel;
make buildkernel $KC;

echo installing kernel;
make installkernel $KC;

echo kernel compile complete. reboot to try new kernel;

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


Re: Marvell Yukon chip in FreeBSD 5.4

2006-04-10 Thread Hugo Silva

Leonid Baryudin wrote:

I'm trying to load Marvell if_myk.ko kernel module. In FreeBSD 5.4 vanilla
  it works fine, creates device node, etc...
  
  In my distribution (based on the same 5.4, but with some changes) driver

  gets loaded (kldstat shows that), but device node is not created.
  
  What should I look for? Some kernel option, disabling/enabling node creation?
  
  Thanks,
  
  Leonid.
  
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
I had a similar problem (altough on 6.0), which was solved by building 
the module libmpool:



61 0xc0ccf000 3211cif_myk.ko
72 0xc0d02000 2518 libmbpool.ko


myk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=2bRXCSUM,TXCSUM,VLAN_MTU,JUMBO_MTU


Again, this was on 6.0. I'd suggest you upgrade to 6.X if you still have 
troubles. I have been running this driver for about 20 days now, without 
any problem whatsoever.



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


RE: Bge Kernel Compile Issues

2006-04-10 Thread Wil Hatfield
  Check your RAM lately? Kernel and world compiles usually make RAM issues
  evident.

RAM checked out fine.

 /usr/src/sys/dev/bge/if_bge.c
 /usr/src/sys/dev/bge/if_bge.c: In function `bge_newbuf_jumbo':
 /usr/src/sys/sys/mbuf.h:513: warning: 'zone' might be used
 uninitialized in
 this function

The problems with GENERIC build, the BGE 'zone' issue, and half a dozen
other similar uninitialized variable errors were all caused by this:

options RESTARTABLE_PANICS

Turning it off made it all build just fine on multiple machines. Always
something right in front of your face isn't it?

Now my question is with the RESTARTABLE_PANICS turned off are my machines
going to hang at kernel panics? What is the deal with that? Still waiting
for an answer on that one.

--
Wil Hatfield


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