Re: FreeBSD 7.0 fdisk issue during installation

2008-11-22 Thread Jonatan Evald Buus
Thank you both for the very detailed description.
It's nice to get my suspicion about boot sequencing confirmed :-)

When I installed the system yesterday (I think I'll try a re-install today
based on your input) I observed however that all the slices I made appeared
to be bootable.
As originally mentioned I managed to get the system to boot when I only had
4 slices which resulted in the system only wanting to boot through the
FreeBSD Boot Manager. The Boot menu listed 4 menu items, each called
FreeBSD.
If I only used the MBR to boot however, then the machine would fail with
Invalid Partition Table during startup.

I'm quite confident that I had only specified a single slice (/) as being
bootable through fdisk in sysinstall but apparently all 4 of them were made
bootable anyway.
I took a picture of my fdisk screen which can be found at
http://demo.ois-inc.com/freebsd_fdisk.jpg
From the picture it appears (to me anyway) that only the first slice should
be bootable as indicated by the A flag?

Not sure what to make of this observation as you both indicate that I
wouldn't have had these problems if I only had made 1 slice bootable.
Does sysinstall make all slices bootable automatically?

Appreciate any input you may have to this observation.

/Jona

On Fri, Nov 21, 2008 at 11:58 PM, Jerry McAllister [EMAIL PROTECTED] wrote:

 On Fri, Nov 21, 2008 at 10:41:07PM +0100, Jonatan Evald Buus wrote:

  Hi Jerry,
  Thank you for the swift and very thorough response.
 
  If I understand you correctly, then I should only create 1 slice of the
  entire disk (seeing as FreeBSD will be the only OS) using fdisk and then
  partition the slice using bsdlabels from sysinstall?

 Yes.   Or you don't have to use sysinstall.  You can do it
 manually.   But, using sysinstall makes it easy.

 You don't absolutely have to slice or bsdlabel it.
 You can either just newfs the device /dev/da0 or you can create a slice
 and just newfs that /dev/da0s1.   Then you get that 'dangerously dedicated'
 disk which FreeBSD can use, but nothing else can including some non-FreeBSD
 boot managers.   Some people do that to save a couple thousand bytes of
 space, but on a multi-gigabyte drive, who cares about a couple thousand
 bytes.

  Previously I was aiming for 5 slices, each of which had a single
 partition
  as described below.

 Yup.   That won't work.

  From your explanation I take it that slices are what Windows refers to
 as
  Primary Partitions?
  If that's the case then I understand the behaviour I experienced.

 Yes.   There is that conflict of terminology.
 But, FreeBSD has called it slices from the beginning.

  Is it possible to make a slice non-bootable?

 Yes.   Just don't put in an MBR and don't mark it bootable in
 the fdisk stage.

  And would there be any benefits (less fragmentation, faster access time
  etc.) in using slices rather than partitions to layout the harddrive or
  should slices only be used to represent a physical harddrive?

 There is no advantage in making a slice non-bootable, except you might
 be able to save a few bytes of storage - storage that is not normally
 used anyway.   There is no advantage in speed or access time and
 fragmentation is only a MS worry.   It is not an issue in superior
 UNIX filesystems - at least in FreeBSD's.

 I don't understand the last line of that paragraph.
 Pretty much everything is virtual in disk drive addressing nowdays.
 It doesn't matter which level you refer to.

 The slice and its limit to 4 is a feature of standard BIOS basically.
 All the other things, partitions, extended partitions, etc are ways
 of getting around the limits.The only real reason nowdays to
 have more than one slice on a drive in FreeBSD is if you want to put
 more than one bootable system on the drive.   For example, the machine
 I am typing on has MS-XP and FreeBSD, plus a Dell diagnostic slice -
 so three slices are used.   I could squish those slices down and add
 one more, say for Linux or a different version of FreeBSD if I wanted,
 but I don't.

 Generally, when I make a machine intended only for FreeBSD, I put all
 the disk in one bootable slice.   Then I partition that slice to
 suit me.  My pattern is usually:
   a   /  (root)
   b   swap (125% of memory size)
   c   defines the slice - not a real partition
   d   /tmp (used as scratch space by many utilities)
   e   /usr
   f   /var (size depends on logging and databases which live here)
   g   /home(user home directories, plus I put some of the things
 that can grow unexpectedly such as /var/mail,
 /var/spool
 /usr/ports, /usr/local  here and make symlinks to them)

 Some people make just one big partition for root plus some for swap.
 I like the control I have over things my way a little better and I
 can get by with backing up and restoring more manageable chunks my way.

 If the machine is to be a dual boot as this one is,  I carve it up in
 to slices - one 

Re: broke pakage mysql50-client

2008-11-22 Thread Glen Barber
On Fri, Nov 21, 2008 at 10:21 PM,  [EMAIL PROTECTED] wrote:
 Hello group
 clean cd install of freebsd 7.0 release
 installing php5-extensions the mysql50-client is broke

 had to cd into /usr/ports/databases/mysql50-client 
 ftp get 
 ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/7.0-RELEASE/packages/databases/mysql-client-5.0.45_1.tbz
 then ran install mysql50-client

 then the php5-extensions package installed as needed

You never mentioned how you were installing these applications? Using
ports or pkg_add?

Did you csup/cvsup/portsnap the tree first?


-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: named and ntpd start order in rc.d

2008-11-22 Thread Mel
On Saturday 22 November 2008 01:47:50 Nerius Landys wrote:

 Trying to reproduce problem.  On a running system. I shut down named.  Then
 I restart ntpd, then I start named.  I can reproduce the problem that
 happens on bootup - ntpd has 2 processes and does not adjust the clock.
 Restarting ntpd while named is running fixes the problem

 I believe that the fix for this is to add a dependency to /etc/rc.d/ntpd
 script, adding named to REQUIRE section in comments.  In your opinion,
 is this a robust fix?  For example the line in my /etc/rc.d/ntpd script
 that looks like so:

 # REQUIRE: DAEMON ntpdate cleanvar devfs

 would be changed to this:

 # REQUIRE: DAEMON ntpdate cleanvar devfs named

Thanks! It seems that's what been going wrong ever since 6.3 or so on my 
machine as well.
You can report it using send-pr(1), however - you will have to test what 
happens if you comment out named_enable=YES in /etc/rc.conf, then 
update /etc/resolv.conf to use your ISP's DNS servers and reboot. If ntpd 
does not start at all then (because you told it it requires named), then 
it's not the proper fix.
However, I believe REQUIRE is only used for ordering the scripts, not actually 
disabling one if a service in the REQUIRE line isn't started.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: broke pakage mysql50-client

2008-11-22 Thread Mel
On Saturday 22 November 2008 04:21:47 [EMAIL PROTECTED] wrote:
 Hello group
 clean cd install of freebsd 7.0 release
 installing php5-extensions the mysql50-client is broke

How is it broke? What error message did you get?

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD in VMWare box

2008-11-22 Thread Pieter Donche

If one installs FreeBSD 7.0 in a VMWare box, the answer/choicde for
'install boot manager' is this: Standard MBR ?

The PC with WMware is connect to internet. Should one configure
Ethernet then. If yes, what static IP parameters must one enter??
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: broke pakage mysql50-client

2008-11-22 Thread Glen Barber
On Sat, Nov 22, 2008 at 6:31 AM,  [EMAIL PROTECTED] wrote:
 I used pkg_add  the ports, same thing happin.
 the MYSQL post only had a make file in it


Please reply to the list, not just to me.

The ports tree is only supposed to have the Makefile (and a few other files).

I suggest you read the ports manpage.

-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD in VMWare box

2008-11-22 Thread Glen Barber
On Sat, Nov 22, 2008 at 7:57 AM, Pieter Donche [EMAIL PROTECTED] wrote:
 If one installs FreeBSD 7.0 in a VMWare box, the answer/choicde for
 'install boot manager' is this: Standard MBR ?


The boot manager can be whichever you want.  If you are installing on
a VM, chances are you're not dual-booting it, so yes, Standard Boot
Manager would be a 'good' choice.

 The PC with WMware is connect to internet. Should one configure
 Ethernet then. If yes, what static IP parameters must one enter??

This would be contingent on how you have networking set up.  Do you
have NAT or Bridged only?  If NAT, use rc.conf with the inet address
of your choice and the netmask for your NAT.

-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD in VMWare box

2008-11-22 Thread Robert Joosten
Hi,

 If one installs FreeBSD 7.0 in a VMWare box, the answer/choicde for
 'install boot manager' is this: Standard MBR ?

Yes, or choos not to install a boot manager. Both worked with freebsd 6.x 
and ESX 2.5x

 Should one configure Ethernet then. If yes, what static IP parameters 
 must one enter??

The next that's available in your lan.

Hth.

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


Re: FreeBSD in VMWare box

2008-11-22 Thread Pieter Donche

On Sat, 22 Nov 2008, Glen Barber wrote:


The PC with WMware is connect to internet. Should one configure
Ethernet then. If yes, what static IP parameters must one enter??


This would be contingent on how you have networking set up.  Do you
have NAT or Bridged only?  If NAT, use rc.conf with the inet address
of your choice and the netmask for your NAT.


My PC is connected to Internet using an ADSL modem to connect to an ISP.
It uses IP 10.0.0.somevalue, netmask 255.255.255.0, no gateway specified
and two DNS server IP addresses which my ISP asked to use.

Is this 'NAT' or 'Bridged'.

Can I enter values and then what values, for host, domain, IPV4 
gateway, Name server, IPV4 address, netmask in the screen presented 
during FreeBSD install
or should i use Cancel in that screen and make changes in system 
files (and what changes in what system files)?




--
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
--Scott Adams


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


Re: IPFW Rule

2008-11-22 Thread Tom Marchand


On Nov 21, 2008, at 6:25 PM, Wojciech Puchar wrote:

I am trying to add a IPFW rule to forward traffic but I keep  
getting the message ipfw: getsockopt(IP_FW_ADD): Invalid  
argument.  The rule I am trying to add looks like this:


ipfw add 600 fwd 192.169.2.3, 6000 tcp from 192.169.2.3 to any 80

I do have IP Forwarding enabled.  Any ideas what I am doing wrong?


rule looks OK, but your message clearly suggest you DO NOT have IP  
forwarding enabled


Interesting sysctl reports that forwarding is enabled:

$ sysctl -a |grep forward
net.inet.ip.forwarding: 1

IP forwarding is enabled in GENERIC isn't it?  I am running 6.1- 
RELEASE FreeBSD 6.1-RELEASE #0. 
___

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


Re: FreeBSD in VMWare box

2008-11-22 Thread Glen Barber
On Sat, Nov 22, 2008 at 8:43 AM, Pieter Donche [EMAIL PROTECTED] wrote:
 On Sat, 22 Nov 2008, Glen Barber wrote:

 The PC with WMware is connect to internet. Should one configure
 Ethernet then. If yes, what static IP parameters must one enter??

 This would be contingent on how you have networking set up.  Do you
 have NAT or Bridged only?  If NAT, use rc.conf with the inet address
 of your choice and the netmask for your NAT.

 My PC is connected to Internet using an ADSL modem to connect to an ISP.
 It uses IP 10.0.0.somevalue, netmask 255.255.255.0, no gateway specified
 and two DNS server IP addresses which my ISP asked to use.

 Is this 'NAT' or 'Bridged'.


You'd have to tell me; it's your VM. Check the network settings in the
management interface.

 Can I enter values and then what values, for host, domain, IPV4 gateway,
 Name server, IPV4 address, netmask in the screen presented during FreeBSD
 install
 or should i use Cancel in that screen and make changes in system files (and
 what changes in what system files)?


Either will work.

-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW Rule

2008-11-22 Thread Chris Pratt


On Nov 22, 2008, at 5:43 AM, Tom Marchand wrote:



On Nov 21, 2008, at 6:25 PM, Wojciech Puchar wrote:

I am trying to add a IPFW rule to forward traffic but I keep  
getting the message ipfw: getsockopt(IP_FW_ADD): Invalid  
argument.  The rule I am trying to add looks like this:


ipfw add 600 fwd 192.169.2.3, 6000 tcp from 192.169.2.3 to any 80

I do have IP Forwarding enabled.  Any ideas what I am doing wrong?


rule looks OK, but your message clearly suggest you DO NOT have IP  
forwarding enabled


Interesting sysctl reports that forwarding is enabled:

$ sysctl -a |grep forward
net.inet.ip.forwarding: 1

IP forwarding is enabled in GENERIC isn't it?  I am running 6.1- 
RELEASE FreeBSD 6.1-RELEASE


I'm looking at a 6.2 box that does forwarding. The GENERIC
kernel does not have this line:

options IPFIREWALL_FORWARD

In my kernel, I am using that. Recollection is you need this
specified explicitly. I could be wrong.



#0.___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions- 
[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: IPFW Rule

2008-11-22 Thread Wojciech Puchar
rule looks OK, but your message clearly suggest you DO NOT have IP 
forwarding enabled


Interesting sysctl reports that forwarding is enabled:

$ sysctl -a |grep forward
net.inet.ip.forwarding: 1


it's not that. it's about routing, not ipfw forwarding

you need

IPFIREWALL_FORWARD

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


Re: FreeBSD in VMWare box

2008-11-22 Thread Pieter Donche

On Sat, 22 Nov 2008, Glen Barber wrote:


On Sat, Nov 22, 2008 at 8:43 AM, Pieter Donche [EMAIL PROTECTED] wrote:

On Sat, 22 Nov 2008, Glen Barber wrote:


The PC with WMware is connect to internet. Should one configure
Ethernet then. If yes, what static IP parameters must one enter??


This would be contingent on how you have networking set up.  Do you
have NAT or Bridged only?  If NAT, use rc.conf with the inet address
of your choice and the netmask for your NAT.


My PC is connected to Internet using an ADSL modem to connect to an ISP.
It uses IP 10.0.0.somevalue, netmask 255.255.255.0, no gateway specified
and two DNS server IP addresses which my ISP asked to use.

Is this 'NAT' or 'Bridged'.



You'd have to tell me; it's your VM. Check the network settings in the
management interface.


(I previously installed an openSUSE 10.3 VM, and needed not enter any
TCP/IP parameter, and could use netwerking afterwards)

The default settings of my VMware are 
(from Edit / Virtual Network Editor)


Summary
Virt. Network - Summary - Subnet - DHCP
VMnet0 (Bridged) - Bridged to an automatically choosen adapter - -
VMnet1 (Host-only) - A private nw shared with the host - 192.168.72.0 - Enabled
VMnet8 (NAT) - Used to share the host's IP address - 192.168.173.0 - Enabled

Automatic Bridging
CHECKED: AUtomatically choose an available physical netwerk adapter to
bridge to VMnet0

Host Virtual Netwerk Mapping
VMnet0  Brigded to an automatically chosen adapter
(here I can also select my physical network card)
VMnet1 VMware Network Adapter VMnet1 (only choice)
VMnet2 (and 3 to 7 and 9): Not bridged
(here I can also select my physical network card)
VMnet8 VMware Network Adapter VMnet8 (only choice)

Host Virtual Adapters
Network Adpater  Virt.Nw   Status
VMware Network Adapter VMnet1 VMnet1   Enabled
VMware Network Adapter VMnet8 VMnet8   Enabled

DHCP
Virtual Network Subnet  Netmask Description
VMnet1  192.168.72.0255.255.255.0  vmnet1
VMnet8  192.168.137.0   255.255.255.0  vmnet8

NAT
VMnet host:  VMnet8
Gateway IP address  : 192.168.137.2   [ grey ]
Netmask:  255.255.255.0   [ grey ]
Nat Service
 Service Status: Started
 Service request: [ empty ]


Can I enter values and then what values, for host, domain, IPV4 gateway,
Name server, IPV4 address, netmask in the screen presented during FreeBSD
install
or should i use Cancel in that screen and make changes in system files (and
what changes in what system files)?



Either will work.

--
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
--Scott Adams


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


Re: IPFW Rule

2008-11-22 Thread Tom Marchand


On Nov 22, 2008, at 10:37 AM, Wojciech Puchar wrote:

rule looks OK, but your message clearly suggest you DO NOT have IP  
forwarding enabled


Interesting sysctl reports that forwarding is enabled:

$ sysctl -a |grep forward
net.inet.ip.forwarding: 1


it's not that. it's about routing, not ipfw forwarding

you need

IPFIREWALL_FORWARD

option in kernel.


Thanks that was it. 
___

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


Re: FreeBSD in VMWare box

2008-11-22 Thread Derek Ragona

At 06:57 AM 11/22/2008, Pieter Donche wrote:

If one installs FreeBSD 7.0 in a VMWare box, the answer/choicde for
'install boot manager' is this: Standard MBR ?

The PC with WMware is connect to internet. Should one configure
Ethernet then. If yes, what static IP parameters must one enter??


You need to be more specific.  Are you using ESX server or workstation?

As for the boot manager you can use it, or not.  Both work.

You can have the FreeBSD just use DHCP to get network settings.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Kernel SMB performance

2008-11-22 Thread Derek Ragona

At 09:08 AM 11/21/2008, Ansar Mohammed wrote:

Hello all

We are considering using an application that uses FreeBSD web servers in
front of Windows file servers. How reliable/scalable is the kernel SMB
module?


You may want to use FreeNAS which is made for NAS using FreeBSD.

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: smbfs 2 GB file size limit

2008-11-22 Thread Derek Ragona

At 09:21 AM 11/20/2008, David Horn wrote:

On Thu, Nov 20, 2008 at 7:07 AM, Derek Ragona
[EMAIL PROTECTED] wrote:
 At 12:50 PM 11/18/2008, David Horn wrote:

 On Tue, Nov 18, 2008 at 7:06 AM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 At 12:23 AM 11/18/2008, David Horn wrote:

 On Mon, Nov 17, 2008 at 8:36 PM, Derek Ragona
 [EMAIL PROTECTED] wrote:
 I have FreeBSD 7.0 Release and if I mount_smbfs  a network NTFS share I
 have
 a 2 GB size limit on files.  I checked the handbook and list archives but
 have not found a solution.

 I just ran a quick test, and was not able to reproduce this issue with
 the mount_smbfs from FreeBSD 7.0.  I tried against a Windows 2003
 Server SP2, Windows XP SP3, and Samba 3.0 {on FreeBSD 7} with a 3.5GB
 file.

 Was your issue with reading from or writing to a SMB share ?

 It was writing to a smb share.


 What is the server software and OS version ?
 (if Microsoft Windows, please include Service Pack number as well, as
 it might make a difference)

 Windows 2003 server 32bit.

 How much disk space is left on your server volume ?

 Over a terabyte free

 Are there disk quotas enabled on the server ?

 None

 What error message are you getting from your FreeBSD client (if any) ?

 No error message, it just stopped writing at 1 Gb.  I was doing this using
 scp.

 Whoa, hopefully you just made a few typos here, or we are going down
 the wrong path of investigation.

 Did you really mean to say scp or cp ?
  scp(1)   - secure copy (remote file copy program)
  cp(1)- copy files

 If you really meant scp, then the problem is not mount_smbfs, but
 instead likely a buggy scp client or server (which does not use smb
 for transport, but ssh)

 What is the exact byte count that your write stops at ?  You
 originally stated 2GB, then 1GB.


 Can you check the smb server logs and see if you are getting any error
 messages there ?

 Well I'm just mounting the volume to FreeBSD from the Windows server so
 not
 sure I'll find much in the logs besides the system log, but I will look.

 You may want to get a Wireshark trace and see if you can capture the
 SMB error message/error code.

 I have heard of people running into similar problems when running
 against older server software (NT 4.0/old samba) when the SMB session
 did not negotiate large file/large write support (a function of the
 SMB server capabilities session negotiation)

 I saw posts to that effect and that you needed samba 3.x to support large
 files sizes, and the lfs option.  But the mount_smbfs doesn't offer any
 large file option.


 Only bother with this next bit if you are morbidly curious as to how
 things work rather than just want to solve your problem, as it gets
 into the nitty gritty details of smb:

 mount_smbfs will allow for lfs (CAP_LARGE_FILE) automatically by
 specifying it's dialect capabilities in the smb negotiation.

 If you umount your smb share, then start a tcpdump you can capture the
 smb negotiation Capabilities bitmask to see if CAP_LARGE_FILE is
 being negotiated - the server specifies this capability.  The client
 just sends the dialects of smb supported.For example:

 tcpdump -vvv -s 1500 -i em0 host server.example.com | grep Capabilities

 {  where em0 is the network interface in use on FreeBSD and
 server.example.com is the hostname/ip address of your smb server  }

 Then do a mount of the smb share (while tcpdump is running) and you
 should capture the Capabilities negotiated.

 For example:

 Capabilities=0x1F3FD

 If you decode the bitmask by using this reference :
 http://msdn.microsoft.com/en-us/library/aa302230.aspx {hint:  only
 look at the last four bytes of the Capabilities line (e.g. F3FD in my
 example)} Or if you have kernel source installed, you can look in
 /usr/src/sys/netsmb/smb.h for the details.

- Capabilities: 0x0001F3FD
   RawMode:(...1) Supports
 SMB_COM_READ_RAW and SMB_COM_WRITE_RAW (CAP_RAW_MODE)
   MpxMode:(..0.) No
 Support for SMB_COM_READ_MPX or SMB_COM_WRITE_MPX (CAP_MPX_MODE)
   Unicode:(.1..) Supports
 Unicode Strings (CAP_UNICODE)
   LargeFiles: (1...) Supports
 large files with 64-bit offsets (CAP_LARGE_FILES)
   NTSMBs: (...1) Supports
 SMB NTLM 0.12 dialect commands (implies CAP_NT_FIND) (CAP_NT_SMBS)
   RPCRemoteAPIs:  (..1.) Supports
 remote API requests using RPC over named pipe connections
 (CAP_RPC_REMOTE_APIS)
   NTStatus:   (.1..) Can
 respond with 32-bit NT status codes in Status (CAP_NT_STATUS)
   LevelIIOplocks: (1...) Supports
 Level II oplocks ( CAP_LEVEL_II_OPLOCKS)
   LockAndRead:(...1) Supports
 SMB_COM_LOCK_AND_READ and 

Segmentation fault (core dumped)

2008-11-22 Thread tethys ocean
Hi to all

The server is give this error whenever i want to start apache22.  why?
regards



-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Segmentation fault (core dumped)

2008-11-22 Thread Matthew Seaman

tethys ocean wrote:

Hi to all

The server is give this error whenever i want to start apache22.  why?
regards



Because something's wrong.

Cheers,

Matthew

What? Not enough of an answer?  It's all the answer anyone can give
considering the parcity of information you supply in your question.
To debug this properly could require any or all of:

  * your httpd.conf
  * the output of 


   ldd /usr/local/sbin/httpd

  * a traceback from httpd.core, although this won't be much use unless
you've compiled httpd with debug symbols.
  * the result of running:

   truss -f /usr/local/sbin/httpd {+ any other arguments you usually use}

  * If you're using mod_php, then the contents of 
/usr/local/etc/php/extensions.ini


--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: Segmentation fault (core dumped)

2008-11-22 Thread tethys ocean
I have no idea since any other people doing something but i dont know
exactly  according to their claim he doing some stuff with python  for web
and i suppose he want to restart apache

python perl etc all packet is installed.



On Sat, Nov 22, 2008 at 9:36 PM, Kevin Kinsey [EMAIL PROTECTED] wrote:

 tethys ocean wrote:

 Hi to all

 The server is give this error whenever i want to start apache22.  why?
 regards


 Well, there could be any number of reasons why this happens.
 In my experience, it's because you have Apache loading a
 broken or incompatible module.  Have you recently rebuilt
 Apache, or some other module (like Perl, PHP, Python) that
 is used by Apache?

 Kevin Kinsey
 --
 If it ain't baroque, don't fix it.
---P.D.Q. Bach




-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Segmentation fault (core dumped)

2008-11-22 Thread Kevin Kinsey

tethys ocean wrote:

Hi to all

The server is give this error whenever i want to start apache22.  why?
regards


Well, there could be any number of reasons why this happens.
In my experience, it's because you have Apache loading a
broken or incompatible module.  Have you recently rebuilt
Apache, or some other module (like Perl, PHP, Python) that
is used by Apache?

Kevin Kinsey
--
If it ain't baroque, don't fix it.
---P.D.Q. Bach
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Segmentation fault (core dumped)

2008-11-22 Thread tethys ocean
apache-2.2.9_5  =   up-to-date with port
autoconf-2.62   =   up-to-date with port
db41-4.1.25_4   =   up-to-date with port
gd-2.0.35,1 =   up-to-date with port
gdbm-1.8.3_3=   up-to-date with port
irc-2.11.2p1=   up-to-date with port
ircii-20060725_1=   up-to-date with port
nano-2.0.9  =   up-to-date with port
p5-HTML-Template-2.9_1  =   up-to-date with port
portupgrade-2.4.6,2 =   up-to-date with port
py25-MySQLdb-1.2.2  =   up-to-date with port
py25-bsddb-2.5.2_2  =   up-to-date with port
py25-django-1.0.1   =   up-to-date with port
py25-flup-1.0.1 =   up-to-date with port
py25-gdbm-2.5.2 =   up-to-date with port
python25-2.5.2_3=   up-to-date with port
rsync-3.0.4 =   up-to-date with port
ruby-1.8.6.287,1=   up-to-date with port
ruby18-bdb-0.6.4=   up-to-date with port
tcl-8.4.19,1=   up-to-date with port
unzip-5.52_5=   up-to-date with port
webalizer-2.20.1_2  =   up-to-date with port


On Sat, Nov 22, 2008 at 9:39 PM, Matthew Seaman 
[EMAIL PROTECTED] wrote:

 tethys ocean wrote:

 Hi to all

 The server is give this error whenever i want to start apache22.  why?
 regards


 Because something's wrong.

Cheers,

Matthew

 What? Not enough of an answer?  It's all the answer anyone can give
 considering the parcity of information you supply in your question.
 To debug this properly could require any or all of:

  * your httpd.conf
  * the output of
   ldd /usr/local/sbin/httpd


/usr/local/sbin/httpd:
libm.so.4 = /lib/libm.so.4 (0x280c7000)
libaprutil-1.so.3 = /usr/local/lib/libaprutil-1.so.3 (0x280dd000)
libdb41.so.1 = /usr/local/lib/libdb41.so.1 (0x280f7000)
libexpat.so.6 = /usr/local/lib/libexpat.so.6 (0x28194000)
libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x281b2000)
libapr-1.so.3 = /usr/local/lib/libapr-1.so.3 (0x2829f000)
libcrypt.so.3 = /lib/libcrypt.so.3 (0x282c1000)
libpthread.so.2 = /lib/libpthread.so.2 (0x282d9000)
libc.so.6 = /lib/libc.so.6 (0x282fe000)





  * a traceback from httpd.core, although this won't be much use unless
you've compiled httpd with debug symbols.


 locate httpd.core
/usr/local/etc/rc.d/httpd.core
/usr/ports/distfiles/tmp/lib/httpd.core





  * the result of running:

   truss -f /usr/local/sbin/httpd {+ any other arguments you usually
 use}


truss -f /usr/local/sbin/httpd
truss: cannot open /proc/curproc/mem: No such file or directory
truss: cannot open1 /proc/61323/mem: No such file or directory





  * If you're using mod_php, then the contents of
  /usr/local/etc/php/extensions.ini


extension=bcmath.so
extension=bz2.so
extension=calendar.so
extension=ctype.so
extension=curl.so
extension=pcre.so
extension=simplexml.so
extension=spl.so
extension=dom.so
extension=filter.so
extension=gd.so
extension=gettext.so
extension=hash.so
extension=iconv.so
extension=json.so
extension=mbstring.so
extension=mcrypt.so
extension=mysql.so
extension=pdo.so
extension=pdo_sqlite.so
extension=posix.so
extension=session.so
extension=sockets.so
extension=sqlite.so
extension=tokenizer.so
extension=xml.so
extension=xmlreader.so
extension=xmlwriter.so





 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW




-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Segmentation fault (core dumped)

2008-11-22 Thread Giorgos Keramidas
On Sat, 22 Nov 2008 21:53:02 +0200, tethys ocean [EMAIL PROTECTED] wrote:
 I have no idea since any other people doing something but i dont know
 exactly according to their claim he doing some stuff with python for
 web and i suppose he want to restart apache

Maybe it's a good idea to avoid messing up with this particular Apache
instance then.  If you don't know how it has been installed, and you
cannot find out, and you are only guessing that a restart should fix
things, then don't do that...  Geez :P


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


Re: Segmentation fault (core dumped)

2008-11-22 Thread tethys ocean
i found something from bash_hist. he deinstall all pkg. (apache php and
python) while he is upgrade.  i ve reinstall apache22 and port upgraded.
than now i will reinstall all deinstalled package and fix it



On Sat, Nov 22, 2008 at 10:12 PM, Giorgos Keramidas 
[EMAIL PROTECTED] wrote:

 On Sat, 22 Nov 2008 21:53:02 +0200, tethys ocean [EMAIL PROTECTED]
 wrote:
  I have no idea since any other people doing something but i dont know
  exactly according to their claim he doing some stuff with python for
  web and i suppose he want to restart apache

 Maybe it's a good idea to avoid messing up with this particular Apache
 instance then.  If you don't know how it has been installed, and you
 cannot find out, and you are only guessing that a restart should fix
 things, then don't do that...  Geez :P





-- 
Share now a pigeon's flight
Bluebound along the ancient skies,
Its women forever hair and mammal,
A Mediterranean town may arise
If you rip apart a pigeon's heart.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sockstat problem

2008-11-22 Thread x03ml

i update my kernel and userland like above:

# make buildkernel KERNCONF=TEST
#make installkernel KERNCONF=TEST
#make buildworld
#pwd
/usr/src
#reboot

#sockstat
sockstat: struct xtcpcb size mismatch
sockstat: struct xinpcb size mismatch
sockstat: struct xunpcb size mismatch
sockstat: struct xunpcb size mismatch
USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN 
ADDRESS   
#


is this a bug?

Paul B. Mahol wrote:

On 11/22/08, x03ml [EMAIL PROTECTED] wrote:
  

hello list!
i have this error running sockstat:

# sockstat
sockstat: struct xtcpcb size mismatch
sockstat: struct xinpcb size mismatch
sockstat: struct xunpcb size mismatch
sockstat: struct xunpcb size mismatch



Your kernel and world are not it sync.

  


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


Unix program that sends email directly using MX record

2008-11-22 Thread Kelly Jones
What Unix program sends email directly, using the MX record of the
recipient, instead of using sendmail or an installed MTA?

I realize I could tweak sendmail.cf/etc to do this, but that's not
working in my (fairly unusual) special situation.

I also realize that sending email directly is normally bad, but I'm
testing something.

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sockstat problem

2008-11-22 Thread Paul B. Mahol
On 11/22/08, x03ml [EMAIL PROTECTED] wrote:
 i update my kernel and userland like above:

 # make buildkernel KERNCONF=TEST
 #make installkernel KERNCONF=TEST
 #make buildworld
 #pwd
 /usr/src
 #reboot

boot -s {boot into single user mode}

# cd /usr/src
# megemaster -p
# make installworld
# mergmaster
# reboot

Read handbook, section 21.4.1 for explanation.


 #sockstat
 sockstat: struct xtcpcb size mismatch
 sockstat: struct xinpcb size mismatch
 sockstat: struct xunpcb size mismatch
 sockstat: struct xunpcb size mismatch
 USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN
 ADDRESS
 #

 is this a bug?

 Paul B. Mahol wrote:
 On 11/22/08, x03ml [EMAIL PROTECTED] wrote:

 hello list!
 i have this error running sockstat:

 # sockstat
 sockstat: struct xtcpcb size mismatch
 sockstat: struct xinpcb size mismatch
 sockstat: struct xunpcb size mismatch
 sockstat: struct xunpcb size mismatch


 Your kernel and world are not it sync.




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


Re: Unix program that sends email directly using MX record

2008-11-22 Thread Bill Moran
On Sat, 22 Nov 2008 14:16:56 -0700
Kelly Jones [EMAIL PROTECTED] wrote:

 What Unix program sends email directly, using the MX record of the
 recipient, instead of using sendmail or an installed MTA?
 
 I realize I could tweak sendmail.cf/etc to do this, but that's not
 working in my (fairly unusual) special situation.
 
 I also realize that sending email directly is normally bad, but I'm
 testing something.

See if ssmtp in ports does what you need.

If that's still not direct enough, there's always telnet.  SMTP conversations
aren't really that difficult to simulate.

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


Re: sockstat problem

2008-11-22 Thread Peter Boosten

Polytropon said the following on 11/22/2008 10:20 PM:

On Sat, 22 Nov 2008 20:43:21 +, x03ml[EMAIL PROTECTED]  wrote:
   

i update my kernel and userland like above:

# make buildkernel KERNCONF=TEST
#make installkernel KERNCONF=TEST
#make buildworld
#pwd
/usr/src
#reboot
 


According to the handbook, this is not completely correct.
First of all, I do miss the mergemaster calls. But if kernel
and world are of the same version, you should have both
synchronized in the way needed. This would not explain your
sockstat problem. But I'd recommend to read the section
about updating in the handbook and exactly following the
instructions - just in case.
   

The buildworld should proceed the buildkernel

make buildworld
make buildkernel
make installkernel
reboot
make installworld.

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


OO, text OR .odt to HTML?

2008-11-22 Thread Gary Kline

is there a push button way of turning an odt file or plain ascii file
into HTML using openoffice?

i've googled, but haven't found anything.  

tia,

gary



-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Polytropon
On Sat, 22 Nov 2008 13:43:14 -0800, Gary Kline [EMAIL PROTECTED] wrote:
   is there a push button way of turning an odt file or plain ascii file
   into HTML using openoffice?

I#ve got no OpenOffice here, but maybe File / Save as... and then
file format set to HTML? Or maybe File / Export? I think at least
StarOffice had such kind of functionality, so OpenOffice should
have, too.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Segmentation fault (core dumped)

2008-11-22 Thread Wojciech Puchar

The server is give this error whenever i want to start apache22.  why?
regards


no idea,but most probably you use PHP and added lots of it's modules, some 
of them crashes

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


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Tom Marchand


On Nov 22, 2008, at 4:43 PM, Gary Kline wrote:



is there a push button way of turning an odt file or plain ascii file
into HTML using openoffice?

i've googled, but haven't found anything.

tia,

gary



--  
Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public  
Service Unix

   http://jottings.thought.org   http://transfinite.thought.org





If all else fails, you can always cut  paste into vi.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Glyn Millington
Gary Kline [EMAIL PROTECTED] writes:

   is there a push button way of turning an odt file or plain ascii file
   into HTML using openoffice?

   i've googled, but haven't found anything.  

In OO 3

File-Export-File Format - html/xhtml



hth


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


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Roland Smith
On Sat, Nov 22, 2008 at 01:43:14PM -0800, Gary Kline wrote:
 
   is there a push button way of turning an odt file or plain ascii file
   into HTML using openoffice?

For converting plain text you could use this: http://txt2html.sourceforge.net/

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


pgpqs3I8H2ors.pgp
Description: PGP signature


RE: Segmentation fault (core dumped)

2008-11-22 Thread Marwan Sultan

Hi..
 
I think I know what you are talking about..
What is the output of the command php -v ?
any errors?
 
Marwan Date: Sat, 22 Nov 2008 21:23:24 +0200 From: [EMAIL PROTECTED] To: 
[EMAIL PROTECTED]; [EMAIL PROTECTED] CC:  Subject: Segmentation fault (core 
dumped)  Hi to all  The server is give this error whenever i want to start 
apache22. why? regards--  Share now a pigeon's flight Bluebound 
along the ancient skies, Its women forever hair and mammal, A Mediterranean 
town may arise If you rip apart a pigeon's heart. 
___ freebsd-questions@freebsd.org 
mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To 
unsubscribe, send any mail to [EMAIL PROTECTED]
_
Get more done, have more fun, and stay more connected with Windows MobileĀ®. 
http://clk.atdmt.com/MRT/go/119642556/direct/01/___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


trying to catch the triple '\0342', '\0200', '\0220' but cannot.

2008-11-22 Thread Gary Kline
can somebody help me catch the OOo ' (aposhtrophe)?  It's a triplet
of the hex chars, xe2, x80, x90, which should be seeable by getchar()
[[or *not*?]].  The octal are 0342, 0200, and 0220.

The first is, is a-circumflex.  Why doesn't 

if ((ch1 = getchar()) == '\0342') or, more simply,
if ((ch1 = getchar()) == '\342')
catch the first?  Is getchar limited to only 7 bytes??

tx,

gary



-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: trying to catch the triple '\0342', '\0200', '\0220' but cannot.

2008-11-22 Thread Gary Kline
On Sat, Nov 22, 2008 at 06:20:58PM -0500, Robert Huff wrote:
 
 Gary Kline writes:
 
  can somebody help me catch the OOo ' (aposhtrophe)?  It's a triplet
  of the hex chars, xe2, x80, x90, which should be seeable by getchar()
  [[or *not*?]].  The octal are 0342, 0200, and 0220.
   
  The first is, is a-circumflex.  Why doesn't 
   
  if ((ch1 = getchar()) == '\0342') or, more simply,
  if ((ch1 = getchar()) == '\342')
  catch the first?  Is getchar limited to only 7 bytes??
 
   Perhaps you want getwc()?


Are all these really 16-bit characters?  I'll try getwc, tx.


 
 
   Robert Huff
 

-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: RTL8168/8111 Not Being Assigned to Interface

2008-11-22 Thread Pieter de Goeje
On Friday 21 November 2008, hamtilla wrote:
 I'm running 7.0-RELEASE-i386 on Jetway's NC92-N230 mainboard. The board has
 one integrated RTL8168/8111 gigabit NIC as well as an expansion board with
 three RTL8168/8111 NICs.

 [EMAIL PROTECTED]:1:0:0:   class=0x02 card=0x816810ec chip=0x816810ec
 rev=0x02 hdr=0x00
 vendor = 'Realtek Semiconductor'
 device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC'
 class  = network
 subclass   = ethernet

This NIC requires FreeBSD 7-STABLE or -CURRENT. 

You can probably copy the if_re driver from -STABLE to your source tree and 
recompile the kernel, or simply update to 7-STABLE.

Hope this helps,

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


The FreeBSD Diary: 2008-11-02 - 2008-11-22

2008-11-22 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: trying to catch the triple '\0342', '\0200', '\0220' but cannot.

2008-11-22 Thread Gary Kline
On Sat, Nov 22, 2008 at 04:02:32PM -0800, Gary Kline wrote:
 On Sat, Nov 22, 2008 at 06:20:58PM -0500, Robert Huff wrote:
  
  Gary Kline writes:
  
 can somebody help me catch the OOo ' (aposhtrophe)?  It's a triplet
 of the hex chars, xe2, x80, x90, which should be seeable by getchar()
 [[or *not*?]].  The octal are 0342, 0200, and 0220.

 The first is, is a-circumflex.  Why doesn't 

 if ((ch1 = getchar()) == '\0342') or, more simply,
 if ((ch1 = getchar()) == '\342')
 catch the first?  Is getchar limited to only 7 bytes??
  
  Perhaps you want getwc()?
 
 
   Are all these really 16-bit characters?  I'll try getwc, tx.


well, the getwchar()/getwc(stdin) code following fails:
I get the 1st ch and it is echoed correctly with printf, 
but 
if ( ch == '\0342')

doesn't catch the bytes I'm looking for?  Ideas?

gary


 
 
  
  
  Robert Huff
  
 
 -- 
  Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
 http://jottings.thought.org   http://transfinite.thought.org
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Dual Boot FreeBSD/Windows 2003 Server

2008-11-22 Thread bsdnub
I am trying to setup a test server that will be able to boot either FreeBSD to 
Windows Server 2003 R2.  I have tried to use the BSD Boot manager and the 
Windows Boot manager.  In either case I have run into problems.  When using the 
BSD boot manager, it will cause the Windows server to crash at boot.  Windows 
manager will not boot to the BSD partition.

I have googled it and have not found much other than 3rd party boot manager.  
Is there a best practices I could follow on this?  Has anyone got this 
combination to work?

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


problem with IPCS on (FreeBSD 7.0-RELEASE-p5)

2008-11-22 Thread andrey artemyev

FreeBSD 7.0-RELEASE-p5 amd64

Programming C/C++.
The down Queues (msgid = msgget ) after message reception (msgrcv)

# ipcs
Message Queues:
T   ID  KEY MODEOWNERGROUP
q   327680 1174 --rw-rw-rw- rootwheel
.

Example:
msgserv.c
---
#include stdio.h
#include stdlib.h
#include sys/types.h
#include sys/ipc.h
#include sys/msg.h
#include string.h
#include sys/errno.h
#include msgtypes.h

int main(int argc, char * argv[])
{
  struct msg_t message;
  int msgid;
  char * response = Ok!;
  msgid = msgget(KEY, 0666 | IPC_CREAT);
  msgrcv(msgid, message, sizeof(message), 2, 0);
/*
  ATTENTION!!!
  After msgrcv(msgid, message, sizeof(message), 2, 0); -
Queues(msgid) DOWN

  Helps only to create anew msgid = msgget(KEY, 0666 | IPC_CREAT);
*/
  printf(Client (pid = %i) sent: %s, message.snd_pid, message.body);
  message.mtype = 1;
  message.snd_pid = getpid();
  strcpy(message.body, response);

  msgsnd(msgid, message, sizeof(message), 0);
// errno = 22 (bad msgid)
  msgrcv(msgid, message, sizeof(message), 2, 0);
  msgctl(msgid, IPC_RMID, 0);
  return EXIT_SUCCESS;
}
---

msgtypes.h
---
#ifndef MSG_TYPES
#define MSG_TYPES

#define KEY 1174
#define MAXLEN 512

struct msg_t
{
   long mtype;
   int snd_pid;
   char body[MAXLEN];
};

#endif
---

msgcli.c
---
#include stdio.h
#include stdlib.h
#include sys/types.h
#include sys/ipc.h
#include sys/msg.h
#include strings.h
#include msgtypes.h

int main(int argc, char * argv[])
{
  int msgid;
  int i;
  struct msg_t message;
  char buf[MAXLEN];
  msgid = msgget(KEY, 0666);
  if (msgid == -1)
  {
 printf(Server is not running!\n, msgid);
 return EXIT_FAILURE;
  }
  i = 0;
  while ( (i  (MAXLEN - 1))  ((message.body[i++] = getchar()) !=
'\n') );
  message.body[i] = '\0';
  message.mtype = 2;
  message.snd_pid = getpid ();
  msgsnd(msgid, message, sizeof(message), 0);
  msgrcv(msgid, message, sizeof(message), 1, 0);
  printf(Server (pid= %i) responded: %s\n, message.snd_pid,
message.body);
  message.mtype = 2;
  msgsnd(msgid, message, sizeof(message), 0);
  return EXIT_SUCCESS;
}
---


Tested on FreeBSD 6.2 i386 - All has passed remarkably, errors were not


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


Re: Dual Boot FreeBSD/Windows 2003 Server

2008-11-22 Thread Glen Barber
On Sat, Nov 22, 2008 at 7:42 PM,  [EMAIL PROTECTED] wrote:
 I am trying to setup a test server that will be able to boot either FreeBSD 
 to Windows Server 2003 R2.  I have tried to use the BSD Boot manager and the 
 Windows Boot manager.  In either case I have run into problems.  When using 
 the BSD boot manager, it will cause the Windows server to crash at boot.  
 Windows manager will not boot to the BSD partition.

 I have googled it and have not found much other than 3rd party boot manager.  
 Is there a best practices I could follow on this?  Has anyone got this 
 combination to work?

 Thanks for your help.

I am not aware of any bootloader changes between XP and Server 2003,
but ideally, you should install Server 2K3 first, and FreeBSD second,
using the FreeBSD Boot Manager at the boot manager selection.

I haven't tested this dual boot, but as I said, to my knowledge the
bootloader has not changed.

Could you provide us with specific details on the errors (preferably
from both instances).

-- 
Glen Barber


If you have any trouble sounding condescending, find a Unix user to
show you how it's done.
 --Scott Adams
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


meaning/import of WARNINGs

2008-11-22 Thread Robert Huff

Looking over logs recently, I noticed two messages I don't
remember seeing before:

WARNING: Expected rawoffest 0, found 63

and

WARING: use of network_interfaces other than AUTO is deprecated


A little research suggests the first is (mostly) harmless.  Can
anyone confirm or deny?
As for the second ... I know where this is from; has there been
discussion anywhere as to why this is happening?  (Don't remember
anything coming across current@ or [EMAIL PROTECTED])

Respectfully,


Robert Huff

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


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Gary Kline
On Sat, Nov 22, 2008 at 10:06:48PM +, Glyn Millington wrote:
 Gary Kline [EMAIL PROTECTED] writes:
 
  is there a push button way of turning an odt file or plain ascii file
  into HTML using openoffice?
 
  i've googled, but haven't found anything.  
 
 In OO 3
 
 File-Export-File Format - html/xhtml
 


when were you dfinally able to get 3 built??  i tried a month ago and
something snafu'd.  i'll give it a 2nd try; meanwhile will see if your
pointers works on my 2.4

gary

PS: YES!   [[ still will try to rebuilt OO3 ]]

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

-- 
 Gary Kline  [EMAIL PROTECTED]  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


auto-addm new tap device to existing bridge ...

2008-11-22 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Is this possible?

I'm using qemu, and when I start it up, it auto-create a tap device if one 
isn't available ... but, having that tap device not attached to the bridge that 
does exist doesn't help much ... if there some flag I can set, or sysctl value, 
that will have the new tap device attach itself to an existing bridge device?

thanks ...

- -- 
Marc G. FournierHub.Org Hosting Solutions S.A. (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkko6HoACgkQ4QvfyHIvDvNBngCg7ZiDOaRCDGUuE+hbaNCsjMd1
WV8An1os19WO7nQJeBvUIot/rtxYI0/M
=no2/
-END PGP SIGNATURE-

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


Re: OO, text OR .odt to HTML?

2008-11-22 Thread Glyn Millington
Gary Kline [EMAIL PROTECTED] writes:

 On Sat, Nov 22, 2008 at 10:06:48PM +, Glyn Millington wrote:
 Gary Kline [EMAIL PROTECTED] writes:
 
 is there a push button way of turning an odt file or plain ascii file
 into HTML using openoffice?
 
 i've googled, but haven't found anything.  
 
 In OO 3
 
 File-Export-File Format - html/xhtml
 
   when were you dfinally able to get 3 built??  i tried a month ago and
   something snafu'd.  

October 15th! If memory serves there were no problems here.


 i'll give it a 2nd try; meanwhile will see if your
   pointers works on my 2.4

   gary

   PS: YES!   [[ still will try to rebuilt OO3 ]]

Splendid :-)



atb

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


Re: Problem about ppp -nat

2008-11-22 Thread Pongthep Kulkrisada
Hi All,

Firstly, I'm sorry for late reply. For simplicity to your responses, I shall
ask question by question...

* Manolis Kiagias ([EMAIL PROTECTED]) wrote:

 There are at least two ways that I know of to achieve this. One uses the
 ipfw firewall, the other the pf firewall.
 For the ipfw solution, look at the FreeBSD Handbook:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html
1. I heard that ppp itself has capability of NAT. It can work with the
command ppp -nat and without running natd. Please tell me whether it is
right or wrong. ipfw is the same. If natd is not used, I can't add the rule
...

add divert natd ip from any to any via tun0

to /etc/ipfw.rules. I'm confused.

2. And if natd is still required, what -nat argument (ppp -nat) is for?

 This worked fine for me, although I prefer to use pf. Here is how I
 setup pf (Adjust for your interfaces as necessary)

 My Internet interface is rl0, setup in rc.conf as:

 ifconfig_rl0=inet 192.168.0.100 netmask 255.255.255.0

 My local interface is rl1, setup in rc.conf as:

 ifconfig_rl1=inet 192.168.1.100 netmask 255.255.255.0
3. I haven't mentioned that I can't use this configuration. I have 2
interfaces i.e. public and private LAN. But I have only one NIC card for
private LAN. I don't have NIC card for public. I'm using 56k modem to
connect the outside world. I think I can't add

ifconfig_tun0=inet 192.168.0.100 netmask 0xff00

to /etc/rc.conf. If I'm wrong, please tell me.
I did much googling. All sites always refer 2 NIC cards being used like your
example. I do have only one NIC card + 56k serial modem (/dev/cuad0).

 (I also have a defaultrouter setting which probably does not apply to you)

 I have nameserver entries in /etc/resolv.conf (or setup your own DNS
 server if you wish)
4. I also have nameserver entries. I tried setting DNS server on my WinXP
host to both gateway (FBSD host) and DNS servers of ISP. Both don't work.

 Use this settings in rc.conf for pf:

 pf_enable=YES
 pflog_logfile=/var/log/pflog
 pflog_flags=
 pf_rules=/etc/pf.conf
 pf_flags=
 gateway_enable=YES
5. I think I have equivalent setting of ipfw in /etc/rc.conf but don't work.
gateway_enable=YES
firewall_enable=YES
firewall_type=OPEN
firewall_quite=YES
firewall_script=/etc/ipfw.rules
firewall_logging=YES

 Run:
 # sysctl net.inet.ip.forwarding=1
 # /etc/rc.d/routing restart

 Add net.inet.ip.forwarding=1 to /etc/sysctl.conf so it persists reboots
6. I recompiled my kernel.
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=120
options IPDIVERT
I think it should be equivalent to sysctl setting.

 Add the following rule to /etc/pf.conf

 nat pass on rl0 from rl1:network to any - rl0

 AFAIR, if rl0 has a dynamic address, you will have to write it with
 parentheses, like:

 nat pass on rl0 from rl1:network to any - (rl0)
 (Note that in /etc/pf.conf translation rules like the above, are placed
 above filtering rules like pass or block etc)
 You may have to adjust /etc/pf.conf filtering rules, assuming you have
any.

 Restart some services

 # /etc/rc.d/netif restart
 # /etc/rc.d/routing restart
 # /etc/rc.d/pf restart

 or simply reboot, and you should be set.
7. I don't know about PF.

* Fbsd1 ([EMAIL PROTECTED]) wrote:
 You need to run dhcp so you can assign ip address on the LAN so the down
 stream xp box can gain access to the public internet through your
 gateway freebsd box.  There is a detailed step by step instructions in
 the install guide at www.a1poweruser.com
8. I read doc from the mentioned site. The doc does not mention anything
about sharing ppp dial-up to the other host. And I'm sorry dhcp is not the
point of my concern now. I only want to share internet access whether IP is
static or dynamic. BTW the doc is very good anyway. I shall keep it. :-)

* Polytropon ([EMAIL PROTECTED]) wrote:
 First of all, I made my kernel capable; significant parts:
 # Firewall, NAT
 ...blah
9. I compiled the kernel following your advice excepted NETGRAPH. I think
PPPoE is not the point of concern

 Configuration in /etc/rc.conf goes this way:
ifconfig_xl0=inet 192.168.0.1 netmask 0xff00
ifconfig_rl0=inet 192.168.1.1 netmask 0xff00 media 10baseT/UTP
10. As said earlier, my interface connecting to outside are 56k serial modem
(/dev/cuad0). I think I can't set /dev/cuad0 (or even tun0) in this way.

11. CONCLUSION: I did read much document. More I read, more I get confused.
I tried many possible things but still don't work. My RECENT configurations
are as followings.

/etc/rc.conf
gateway_enable=YES
firewall_enable=YES
firewall_type=OPEN
firewall_quite=YES
natd_enable=YES
natd_interface=tun0
natd_flags=-s -u -m

kernel options
options IPFIREWALL
options IPFIREWALL_FORWARD
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=120
options IPDIVERT

/etc/ipfw.rules
add divert natd ip from any to any via tun0


Re: Problem about ppp -nat

2008-11-22 Thread Manolis Kiagias
Pongthep Kulkrisada wrote:
 * Manolis Kiagias ([EMAIL PROTECTED]) wrote:
   
 This worked fine for me, although I prefer to use pf. Here is how I
 setup pf (Adjust for your interfaces as necessary)

 My Internet interface is rl0, setup in rc.conf as:

 ifconfig_rl0=inet 192.168.0.100 netmask 255.255.255.0

 My local interface is rl1, setup in rc.conf as:

 ifconfig_rl1=inet 192.168.1.100 netmask 255.255.255.0
 
 3. I haven't mentioned that I can't use this configuration. I have 2
 interfaces i.e. public and private LAN. But I have only one NIC card for
 private LAN. I don't have NIC card for public. I'm using 56k modem to
 connect the outside world. I think I can't add

 ifconfig_tun0=inet 192.168.0.100 netmask 0xff00
   

You won't of course put this in rc.conf. However  AFAIK tun0 is *still*
a network interface and can appear in firewall rules.
So the PF method I described should work, tun0 is considered the
external network interface, the rule would be:

nat pass on tun0 from rl1:network to any - (tun0)

where rl1 would be the internal interface. Needless to say, I have no
way of testing the above as I don't have a modem.
Since obviously you want to use ipfw, I still suggest you go by the
handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html

First, make sure Internet works normally on your FreeBSD host.  Then
apply the above instructions. The example in the handbook shows a line:

natd_interface=fxp0

which in your case would be:

natd_interface=tun0

It seems you already have these settings though, so I would review the
Handbook instructions and remove anything else from the configuration
which does not appear there. Once things are working, go back and add
firewall rules etc.  Handbook instructions worked for me (with two
ethernet cards though) out of the box.

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