Re: Build a single kernel module?

2008-04-24 Thread Wojciech Puchar

today. The new card is a D-link DGE-530T which shall work with the 'sk'
driver. My custom kernel does not have this driver.

I wonder if I can build this single driver as a module to use with my already


cd /usr/src/sys/modules/whatyouwant
make

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


brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
Hi

I have a FreeBSD7 firewall and its working like a dream well so far. This
is my setup

rl0 - wan1
rl1 - wan2
re0 - lan
ath0 - wlan

I have a bridge set up on re0 and ath0 to get bridge0, here is my ifconfig

ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0
mtu 2290
ether 00:0b:6b:0b:62:c8
media: IEEE 802.11 Wireless Ethernet autoselect hostap
(autoselect hostap)
status: associated
ssid something channel 2 (2417 Mhz 11g) bssid 00:0b:6b:0b:62:c8
authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit TKIP 3:128-bit
txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:04:a7:09:81:80
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
options=8VLAN_MTU
ether 00:04:a7:09:81:7f
media: Ethernet autoselect (100baseTX full-duplex)
status: active
re0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0
mtu 1500
options=98VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
ether 00:04:a7:05:88:c0
media: Ethernet autoselect (1000baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu
1500
pflog0: flags=141UP,RUNNING,PROMISC metric 0 mtu 33204
pfsync0: flags=0 metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0xb
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
ether 92:52:90:af:3f:07
inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: re0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
member: ath0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
ng0: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1485
inet 111.222.333.444 -- 112.221.331.441 netmask 0x
ng1: flags=88d1UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST metric 0
mtu 1485
inet 22.333.444.555 -- 121.212.313.414 netmask 0x

The bridge is working in that both lan and wlan can access the internet
perfectly well but the problem lies with accessing each other.

I can't connect to any of the servers running in lan from wlan.

Any help would be appreciated

Regards
Reinhold

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Ivan Voras
Reinhold wrote:

 I have a bridge set up on re0 and ath0 to get bridge0, here is my ifconfig
 
 ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0
 mtu 2290

 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500

 The bridge is working in that both lan and wlan can access the internet
 perfectly well but the problem lies with accessing each other.

Depending on what your symptoms are, maybe you need to set the mtu of
all three interfaces to the same value (1500).




signature.asc
Description: OpenPGP digital signature


Re: Question regarding Broadcom BCM5906M support under FreeBSD7

2008-04-24 Thread . .
On 4/21/08, Gonzalo Nemmi [EMAIL PROTECTED] wrote:

 Probably the most accurate and downright _to_the_point_ answer that I've
 ever
 received.

 Thanks a _lot_ Mr Schmehl
 Your kind answer has been really hepfull and highly appreciated =)

 Blessings

 ---

 Gonzalo Nemmi


 On Monday 21 April 2008 13:32:52 Paul Schmehl wrote:
  Looking at the header file in HEAD, the highest number card supported is
  the 5787.  It doesn't look like there's support for that card yet.
 
  
 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?rev=1.73
 .2.1;content-type=text%2Fplain
 
  Paul Schmehl ([EMAIL PROTECTED])
  Senior Information Security Analyst
  The University of Texas at Dallas
  http://www.utdallas.edu/ir/security/


Actually bge(4) can support the BCM5906M chipset. There is an un-official
patch for both 6.3 et 7.0 here:

http://www.freebsd.org/cgi/query-pr.cgi?pr=118975
http://ture.saeab.se/bcm5906/

I have this card and thanks to this fix it works flawlessly under
7.0-RELEASE.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
On Thu, April 24, 2008 10:03, Ivan Voras wrote:
 Reinhold wrote:


 I have a bridge set up on re0 and ath0 to get bridge0, here is my
 ifconfig

 ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric
 0
 mtu 2290

 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500


 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0
 mtu 1500

 The bridge is working in that both lan and wlan can access the internet
  perfectly well but the problem lies with accessing each other.

 Depending on what your symptoms are, maybe you need to set the mtu of
 all three interfaces to the same value (1500).

Hi
Thanks for the quick reply.

The symptoms are as follows
When connected to the wlan I can ping the firewall but not one of our
servers, the server ip times out

This is a ping from one of the laptops connected to the wlan
ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64
Reply from 192.168.1.1: bytes=32 time1ms TTL=64

Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

ping 192.168.1.5

Pinging 192.168.1.5 with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 192.168.1.5:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

When I plug it in on the lan its works perfect with no time outs.

How come is the MTU so low on the ath0, but its working at full speed? The
wlan signal is stronger then any of our other wireless devices I've ever
used before

Regards

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


Re: QEMU networking quirkiness on 7.0

2008-04-24 Thread Jim Stapleton
On Thu, Apr 17, 2008 at 1:40 PM, Mario Lobo [EMAIL PROTECTED] wrote:
 On Thursday 17 April 2008, Jim Stapleton wrote:
   Sorry for the delayed reply, I didn't see this sent.
  
   On Thursday 10 April 2008 22:01:32 Mario Lobo wrote
  
I have a virtual Linux (Fedora 5) and winedows (XP) machines in QEMU and
they are both network functional. I use qemu-launch because it does
everything you need to create a virtual machine. Here are my pertinent
configs:
   

1) # rc.conf
   
ifconfig_re0=up polling   - no IP here !
autobridge_interfaces=bridge0
autobridge_bridge0=tap0 re0 - important even if tap0 does not
exist yet cloned_interfaces=bridge0
# the bridge gets the IP
ifconfig_bridge0=inet 10.10.10.2 netmask 255.255.255.0
  
   To verify, the 10.10.10.2 is the IP that everyone sees my host as on
   the network, correct? That's the IP that used to be set on re0?

  exactly !


  
2) tell QEMU launch to open a tap device
  
   Open a TUN/TAP interface in the network interface configuration

  yes


  
3) tap up script to run when invoking the machine(s).
   
# qemu-net
   
#!/usr/local/bin/bash
$1 = tap ifac created
/sbin/ifconfig $1 up
# test if tap is already added
TEST=`ifconfig -a | grep -A 6 bridge | grep $1`
if [ $TEST ==  ]; then
   /sbin/ifconfig bridge0 addm $1
fi
# add a route to the virtual machine
/sbin/route add -host 10.10.10.100 -iface bridge0
  
   This is the tun/tap configuration script, the IP on the last line is
   the IP I want the guest to look like to the network (i.e.
   192.168.1.85)?

  correct ! You will configure the guest's network interface with this IP.


  
  
   Thanks, I'll play with this more when I get home (I don't want to mess
   with my machine's network configuration while I've only got network
   access).
  

  This worked so fine fine for me that I left the bridge as my main interface
  for good. Even if QEMU is not up.  It works just as well as re0 itself.

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

  You're welcome !


OK, I finally got to test it last night. It almost worked. I ran it
from the console, and it spit out the command line. Something on the
command line looked obviously off to me (I think it was the iface=
part of the network section), anyway, I copied  pasted it, added the
tap0 reference, and it works perfectly.

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


Re: QEMU networking quirkiness on 7.0

2008-04-24 Thread Mario Lobo

 OK, I finally got to test it last night. It almost worked. I ran it
 from the console, and it spit out the command line. Something on the
 command line looked obviously off to me (I think it was the iface=
 part of the network section), anyway, I copied  pasted it, added the
 tap0 reference, and it works perfectly.

 Thanks again,
 -Jim Stapleton

All right, Jim !! Great ! if you use X, I think you could consider using 
qemu-launch. It is really handy. And it saves the configs for every 
particular guest you have and you can call any of them up at the tip of the 
mouse.

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


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


RE: FreeBSD 7.0 jail and Samba 3

2008-04-24 Thread Johan Hendriks
What does your ifconfig line read from /etc/rc.conf (the alias line)

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


Re: FreeBSD 7.0 jail and Samba 3

2008-04-24 Thread Nejc Škoberne

Hey,


What does your ifconfig line read from /etc/rc.conf (the alias line)


ifconfig_rl0=192.168.15.198 netmask 255.255.255.0
ifconfig_rl0_alias0=192.168.15.201 netmask 255.255.255.0
defaultrouter=192.168.15.1
jail_enable=YES
jail_sysvipc_allow=YES
jail_socket_unixiproute_only=NO

#= Jails ---=#
jail_list=samba
#=--=#
jail_samba_rootdir=/usr/jail/samba
jail_samba_hostname=samba.infrax.local
jail_samba_ip=192.168.15.201
jail_samba_devfs_enable=YES
jail_samba_procfs_enable=YES
jail_samba_devfs_ruleset=devfsrules_samba_jail
#=--=#

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


Re: FreeBSD 7.0 jail and Samba 3

2008-04-24 Thread Nejc Škoberne

Hey,


ifconfig_rl0_alias0=192.168.15.201 netmask 255.255.255.0

the mask of an alias ipadres needs to be 32 bits.
I do not now if this solves your problem but it needs to be 32 bits.

ifconfig_rl0_alias0=192.168.15.201 netmask 255.255.255.255


I tried with 24 bits - it doesn't work one way or the other.

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


huawei E220 HSDPA modem

2008-04-24 Thread Wojciech Puchar

i have it working with patched ubsa driver.

but i get
ucom0: ubsa_request: STALLED

every so often and it gets up to 40-50kB/s speed, should be near 300.

any clues where to seek a problem and try patching?

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


VMware-server-1.0.5 on Linux host console on FreeBSD

2008-04-24 Thread Matthias Apitz

Hello,

I've installed VMware-server-1.0.5 on some box running Linux (SuSE
Enterprise 8); this VMware-server brings a console which connects to
port 901 (default) and you can manage your virtual machines in the
server with some graphical tool; as usual the VMware-server is only
available for Windows and Linux, but I was hoping that the console is
just VNC and I could manage it with, for example, vncviewer from my
FreeBSD laptop -- no look, they use some other protocol;

the console on Linux is just some scripting which launches a GTK
application:

/usr/lib/vmware/lib/wrapper-gtk24.sh /usr/lib/vmware/lib 
/usr/lib/vmware/bin/vmware /usr/lib/vmware/libconf

and it could be that one could it make happy on FreeBSD too;
has someone tried this out? or is there some other way to get this
console running on BSD? thx in advance

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
Don't top-post, read RFC1855 http://www.faqs.org/rfcs/rfc1855.html
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on Usenet and in e-mail?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Question regarding Broadcom BCM5906M support under FreeBSD7

2008-04-24 Thread Gonzalo Nemmi
Thnak a lot for your answer!
Actually I knew about this one:
http://www.freebsd.org/cgi/query-pr.cgi?pr=118975
but i wanted to know if it was already merged/solved/taken as officical/ or 
so...
Basically, if it was approved or not in order to go witfbsd7 obsd4.3 (Dell 
vostros and inspirons both come packed with BCM5906M and I really don't have 
to duke it out with and ethernet card =P).

Again, thanks for your answer!
Blessings
---
Gonzalo Nemmi

On Thursday 24 April 2008 06:31:42 . . wrote:
 On 4/21/08, Gonzalo Nemmi [EMAIL PROTECTED] wrote:
  Probably the most accurate and downright _to_the_point_ answer that I've
  ever
  received.
 
  Thanks a _lot_ Mr Schmehl
  Your kind answer has been really hepfull and highly appreciated =)
 
  Blessings
 
  ---
 
  Gonzalo Nemmi
 
  On Monday 21 April 2008 13:32:52 Paul Schmehl wrote:
   Looking at the header file in HEAD, the highest number card supported
   is the 5787.  It doesn't look like there's support for that card yet.
  
   
 
  http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bgereg.h?rev=1.7
 3
 
  .2.1;content-type=text%2Fplain
  
   Paul Schmehl ([EMAIL PROTECTED])
   Senior Information Security Analyst
   The University of Texas at Dallas
   http://www.utdallas.edu/ir/security/

 Actually bge(4) can support the BCM5906M chipset. There is an un-official
 patch for both 6.3 et 7.0 here:

 http://www.freebsd.org/cgi/query-pr.cgi?pr=118975
 http://ture.saeab.se/bcm5906/

 I have this card and thanks to this fix it works flawlessly under
 7.0-RELEASE.


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


Re: dump never ending?

2008-04-24 Thread Brian McCann
Upgrading to 7-STABLE seems to have fixed the problem.  Thanks Kris!

--Brian

On Wed, Apr 23, 2008 at 1:51 PM, Kris Kennaway [EMAIL PROTECTED] wrote:
 Brian McCann wrote:


  On Wed, Apr 23, 2008 at 12:58 PM, Brian McCann [EMAIL PROTECTED] wrote:
 
   I've got an issue on a new 7.0 amd64 box (first one I've setup with
amd64).  When I dump tiny file systems (24M and 12K for example), dump
runs file.  When I dump something larger (202M and 2G for example), it
hangs and stops writing.  The command I'm running is:
  
dump -0uan -L -f /mnt/tiw.root.dump /
  
It hangs weather I put in -L or not, and if I try going to a local
file system or one over NFS.  I do see the following in ps:
  
dump: /dev/amrd0s1a: pass 4: 80.10% done, finished in 0:00 at Wed Apr
23 11:48:28 2008 (
  
along with 3 other dump processes.
  
There's no verbose option for dump...so I can't quite see what's
going on.  Does anyone have any ideas on this, or has anyone seen this
before?
  
 

  What is the wait channel in which the dump process is stuck (press ^T).  It
 sounds like a kernel bug that was recently fixed, so you could just try
 updating to 7.0-STABLE.  I believe it is scheduled for release as an errata
 patch against 7.0-RELEASE too.

  Kris





-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
Brian McCann

I don't have to take this abuse from you -- I've got hundreds of
people waiting to abuse me.
 -- Bill Murray, Ghostbusters
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump never ending?

2008-04-24 Thread Kris Kennaway

Brian McCann wrote:

Upgrading to 7-STABLE seems to have fixed the problem.  Thanks Kris!


Great!

Kris


--Brian

On Wed, Apr 23, 2008 at 1:51 PM, Kris Kennaway [EMAIL PROTECTED] wrote:

Brian McCann wrote:



On Wed, Apr 23, 2008 at 12:58 PM, Brian McCann [EMAIL PROTECTED] wrote:


I've got an issue on a new 7.0 amd64 box (first one I've setup with
 amd64).  When I dump tiny file systems (24M and 12K for example), dump
 runs file.  When I dump something larger (202M and 2G for example), it
 hangs and stops writing.  The command I'm running is:

 dump -0uan -L -f /mnt/tiw.root.dump /

 It hangs weather I put in -L or not, and if I try going to a local
 file system or one over NFS.  I do see the following in ps:

 dump: /dev/amrd0s1a: pass 4: 80.10% done, finished in 0:00 at Wed Apr
 23 11:48:28 2008 (

 along with 3 other dump processes.

 There's no verbose option for dump...so I can't quite see what's
 going on.  Does anyone have any ideas on this, or has anyone seen this
 before?


 What is the wait channel in which the dump process is stuck (press ^T).  It
sounds like a kernel bug that was recently fixed, so you could just try
updating to 7.0-STABLE.  I believe it is scheduled for release as an errata
patch against 7.0-RELEASE too.

 Kris








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


ntpd not starting at boot time

2008-04-24 Thread David Newman

I've installed ntp-4.2.4p4 from ports on a FreeBSD 6.3/i386 system.

The ntpd process does not start at boot time. These lines exists in 
/etc/rc.conf:


ntpd_enable=YES
ntpd_program=/usr/local/bin/ntpd
ntpd_flags=-c /etc/ntp.conf -p /var/run/ntpd.pid
ntpd_sync_on_start=YES

Manually running '/etc/rc.d/ntpd start' produces this error:

Starting ntpd.
ERROR:  only one configfile option allowed

I've pasted the contents of ntp.conf and /etc/rc.d/ntpd files below.

Thanks in advance for clues as to what's missing.

dn



##
# BEGIN /etc/ntp.conf
##

server 127.127.26.0
fudge  127.127.26.0 time1 -0.949
server t1.timegps.net
server t2.timegps.net

restrict 207.181.8.128 mask 255.255.255.192 nomodify notrap

driftfile /var/db/ntp.drift

##
# END /etc/ntp.conf
##



##
# BEGIN /etc/rc.d/ntpd
##


# PROVIDE: ntpd
# REQUIRE: DAEMON ntpdate cleanvar devfs
# BEFORE:  LOGIN
# KEYWORD: nojail

. /etc/rc.subr

name=ntpd
rcvar=`set_rcvar`
#command=/usr/sbin/${name}
command=/usr/local/bin/${name}
pidfile=/var/run/${name}.pid
start_precmd=ntpd_precmd

load_rc_config $name

required_files=${ntpd_config}

ntpd_precmd()
{
rc_flags=-c ${ntpd_config} ${ntpd_flags}

if checkyesno ntpd_sync_on_start; then
rc_flags=-g $rc_flags
fi

if [ -z $ntpd_chrootdir ]; then
return 0;
fi

# If running in a chroot cage, ensure that the appropriate files
# exist inside the cage, as well as helper symlinks into the cage
# from outside.
#
# As this is called after the is_running and required_dir checks
# are made in run_rc_command(), we can safely assume 
${ntpd_chrootdir}

# exists and ntpd isn't running at this point (unless forcestart
# is used).
#
if [ ! -c ${ntpd_chrootdir}/dev/clockctl ]; then
rm -f ${ntpd_chrootdir}/dev/clockctl
( cd /dev ; /bin/pax -rw -pe clockctl 
${ntpd_chrootdir}/dev )

fi
ln -fs ${ntpd_chrootdir}/var/db/ntp.drift /var/db/ntp.drift

#   Change run_rc_commands()'s internal copy of $ntpd_flags
#
rc_flags=-u ntpd:ntpd -i ${ntpd_chrootdir} $rc_flags
}

run_rc_command $1

##
# END /etc/rc.d/ntpd
##

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


RE: FreeBSD 7.0 jail and Samba 3

2008-04-24 Thread Johan Hendriks
 Hey,
 
 ifconfig_rl0_alias0=192.168.15.201 netmask 255.255.255.0

 the mask of an alias ipadres needs to be 32 bits.
 I do not now if this solves your problem but it needs to be 32 bits.

 ifconfig_rl0_alias0=192.168.15.201 netmask 255.255.255.255

Can you explain why it needs to be 32 bits?
I have both setups (24 and 32) and both seems to works fine.
(I am not running Samba)

 I tried with 24 bits - it doesn't work one way or the other.
 
 Thanks,
 Nejc

This is from the man page of ifconfig and there it is

alias   Establish an additional network address for this interface.
This
 is sometimes useful when changing network numbers, and one
wishes
 to accept packets addressed to the old interface.  If the
address
 is on the same subnet as the first network address for this
 interface, a non-conflicting netmask must be given.
Usually
 0x is most appropriate.

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


Re: ntpd not starting at boot time

2008-04-24 Thread Daniel Bye
On Thu, Apr 24, 2008 at 06:39:46AM -0700, David Newman wrote:
 I've installed ntp-4.2.4p4 from ports on a FreeBSD 6.3/i386 system.
 
 The ntpd process does not start at boot time. These lines exists in 
 /etc/rc.conf:
 
 ntpd_enable=YES
 ntpd_program=/usr/local/bin/ntpd
 ntpd_flags=-c /etc/ntp.conf -p /var/run/ntpd.pid
 ntpd_sync_on_start=YES
 
 Manually running '/etc/rc.d/ntpd start' produces this error:
 
 Starting ntpd.
 ERROR:  only one configfile option allowed
 
 I've pasted the contents of ntp.conf and /etc/rc.d/ntpd files below.
 
 Thanks in advance for clues as to what's missing.



 
 ##
 # BEGIN /etc/rc.d/ntpd
 ##
 
 
 # PROVIDE: ntpd
 # REQUIRE: DAEMON ntpdate cleanvar devfs
 # BEFORE:  LOGIN
 # KEYWORD: nojail
 
 . /etc/rc.subr
 
 name=ntpd
 rcvar=`set_rcvar`
 #command=/usr/sbin/${name}
 command=/usr/local/bin/${name}
 pidfile=/var/run/${name}.pid
 start_precmd=ntpd_precmd
 
 load_rc_config $name
 
 required_files=${ntpd_config}
 
 ntpd_precmd()
 {
 rc_flags=-c ${ntpd_config} ${ntpd_flags}

You need to set ntpd_config to the path to your config file - as it is
now, you are also setting it in ntpd_flags, which the above line then
expands to something like this:

rc_flags=-c /path/in/ntpd_config -c /etc/ntp.conf

So, remove it from your ntpd_flags definition and all should be well!

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpSvxDE420O7.pgp
Description: PGP signature


RE: is my eyesight THAT bad?!

2008-04-24 Thread Jim Stapleton
 People,

Cats!

 I've installed everything-abiword i canbut don't see the
 grammar-checker.  Can anybody clue me in?  (failing eyesight, but not
 that bad *hopefully*)

I couldn't find a button/menu to perform a grammar check of a document
either. However, after installing the abiword-plugins port (grammar
was not turned on by default), a 'check grammar as you type' showed up
in the edit-preferences window. I don't know to how check grammar,
had a green line under 'how' when I was done. That was the closest I
could find.

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


Re: ntpd not starting at boot time

2008-04-24 Thread David Newman

On 4/24/08 7:47 AM, Daniel Bye wrote:


{
rc_flags=-c ${ntpd_config} ${ntpd_flags}


You need to set ntpd_config to the path to your config file - as it is
now, you are also setting it in ntpd_flags, which the above line then
expands to something like this:

rc_flags=-c /path/in/ntpd_config -c /etc/ntp.conf

So, remove it from your ntpd_flags definition and all should be well!



Bingo. Thanks!

dn

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


mysql50-server port in 7.0

2008-04-24 Thread Shawn Badger
Hi, I'm new to FreeBSD and it has impressed me so far.  I came across a 
slight problem last night when trying to build mysql50 from ports - the 
build failed stating that C++ does not support the type 'long long'.  
The other ports I've tried have built fine, and I stripped my kernel 
without a hitch.  Is the port broken?  I could obviously go and hack the 
code into submission, but I refuse to believe that was the intended 
approach.


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


nfs firewall, hard vs soft mount

2008-04-24 Thread Colin Brace
Hi all,

I have a FreeBSD v7 box set up as gateway/mailserver/WAP. I leave my WAP
unencrypted, so my neighbors can use it, and use PF to allow just a few
specific services (dhcp dns, http, https).

I'd like to be able to mount a couple of NFS shares from a desktop box
running Fedora on a wireless client. I've opened  the sunrpc and nfs ports
in PF, but that doesn't seem to be enough. tcpdump indicates some high upd
ports in the 40k-50k range are used in the nfs negotiation, but I can't
figure out exactly what is going on. Does anyone know what additional ports
need to be opened for nfs? Will I need to use PF to redirect this udf
traffic to the fedora host or will it find the nfs server on its own?

Also, this page here: http://tldp.org/HOWTO/NFS-HOWTO/client.html mentions
hard vs soft mounts. Since wifi is ocassionally flaky, and since the
wireless client (a laptop) is not always within range, I'd prefer to not to
mount them via fstab, but via in a batch file with mount, but that command
doesn't appear to support soft mounts. In the past, I've noticed that
nautilus etc on the client has a fit when hard-mounted nfs shares disappear.
Can anyone recommend a robust way of mounting NFS shares?

I've also tried to mount remote file systems using sftp in gnome (ie,
sftp://host/dir), but the new gvfs subsystem (which apparently replaces
gnome-vfs) still seems flaky; it freezes up my laptop every few times.
Another drawback of sftp is that it appears to add some overhead which I
notice when watching AVI files -- the media player ocassionally stutters.

In any case, suggestions for alternative approaches to mounting remote file
systems via wireless would be most welcome.

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


FreeBSD on xen?

2008-04-24 Thread Roberto Nunnari

Hi!

Is anybody successfully running FreeBSD on xen?

xen docs doesn't talk about support for FreeBSD..
Only Linux and Windows! The doc says the Guest
operating system must be aware on running virtualized!
Does FreeBSD supports it?

What if the HW supports Intel's VT / AMD's AMD-V ?
Will this make it possible to have FreeBDS as a Guest OS?

Any comment welcome.
Thank you.

Best regards.

--
Robi

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


Re: Install port without man page

2008-04-24 Thread Ashant Chalasani
I've experimented with the isc-dhcp3-server port all 3 options -
NO_INSTALL_MANPAGES, NOPORTDOCS and MANPREFIX and in every case there
were manpages installed in /mnt/man/

[EMAIL PROTECTED] /mnt/man]# find . -name *dhcp*
./man5/dhcp-options.5
./man5/dhcp-eval.5
./man5/dhcpd.conf.5
./man5/dhcpd.leases.5
./man8/dhcpd.8

However, with
[EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean
MANPREFIX=/tmp/ PREFIX=/mnt/

we got...

===   Compressing manual pages for isc-dhcp3-server-3.0.5_2
gzip: can't stat: /tmp//man/man1/omshell.1: No such file or directory
gzip: can't stat: /tmp//man/man5/dhcpd.conf.5: No such file or directory
gzip: can't stat: /tmp//man/man5/dhcpd.leases.5: No such file or directory
gzip: can't stat: /tmp//man/man5/dhcp-eval.5: No such file or directory
gzip: can't stat: /tmp//man/man5/dhcp-options.5: No such file or directory
gzip: can't stat: /tmp//man/man8/dhcpd.8: No such file or directory

Thanks for all the advice.

Ashant



On Thu, Apr 24, 2008 at 7:53 AM, Andrew Pantyukhin
[EMAIL PROTECTED] wrote:
 On Tue, Apr 15, 2008 at 07:34:35PM +0200, Mel wrote:
   On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote:
  
Is there a way to install a port without the man-pages.  I'm trying to
install a dhcp server onto a Tinybsd image and end up buying myself a
bunch of files in /man, as seen at
http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the
linking is not minded).
  
   If the port controls installing the manpages, then you can set
   NO_INSTALL_MANPAGES in /etc/make.conf.

  NO_INSTALL_MANPAGES is traditionally just an imake-related hack,
  which is hardly respected, but rather used. At the moment there
  is no policy or knob to control manpage installation. However,
  many ports respect MANPREFIX/MANxPREFIX.




-- 
Ashant Chalasani
http://code.google.com/p/tinybsdap/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Build a single kernel module?

2008-04-24 Thread darren kirby
quoth the Wojciech Puchar:
  today. The new card is a D-link DGE-530T which shall work with the 'sk'
  driver. My custom kernel does not have this driver.
 
  I wonder if I can build this single driver as a module to use with my
  already

 cd /usr/src/sys/modules/whatyouwant
 make


Thanks, I will remember this for the future.
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD on xen?

2008-04-24 Thread Sébastien Morand
  xen docs doesn't talk about support for FreeBSD..
  Only Linux and Windows! The doc says the Guest
  operating system must be aware on running virtualized!
  Does FreeBSD supports it?

Have you looked at this:
http://wiki.freebsd.org/FreeBSD/Xen

Hope it helps,

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


Re: Install port without man page

2008-04-24 Thread Ashant Chalasani
Also part of the output of
[EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean
MANPREFIX=/tmp/ PREFIX=/mnt/

is..
.
install -c -m 444 dhcpd /mnt//sbin
chmod 755 /mnt//sbin/dhcpd
install -c  dhcpd.man8   /mnt//man/man8/dhcpd.8
install -c  dhcpd.conf.man5   /mnt//man/man5/dhcpd.conf.5
install -c  dhcpd.leases.man5   /mnt//man/man5/dhcpd.leases.5
=== Installing rc.d startup script(s)
..

ps:
[EMAIL PROTECTED] uname -a FreeBSD fbsd70.kwest.wapsol.de 7.0-RELEASE
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386



On Thu, Apr 24, 2008 at 6:22 PM, Ashant Chalasani [EMAIL PROTECTED] wrote:
 I've experimented with the isc-dhcp3-server port all 3 options -
  NO_INSTALL_MANPAGES, NOPORTDOCS and MANPREFIX and in every case there
  were manpages installed in /mnt/man/

  [EMAIL PROTECTED] /mnt/man]# find . -name *dhcp*
  ./man5/dhcp-options.5
  ./man5/dhcp-eval.5
  ./man5/dhcpd.conf.5
  ./man5/dhcpd.leases.5
  ./man8/dhcpd.8

  However, with
  [EMAIL PROTECTED] /usr/ports/net/isc-dhcp3-server]# make install clean
  MANPREFIX=/tmp/ PREFIX=/mnt/

  we got...

  ===   Compressing manual pages for isc-dhcp3-server-3.0.5_2
  gzip: can't stat: /tmp//man/man1/omshell.1: No such file or directory
  gzip: can't stat: /tmp//man/man5/dhcpd.conf.5: No such file or directory
  gzip: can't stat: /tmp//man/man5/dhcpd.leases.5: No such file or directory
  gzip: can't stat: /tmp//man/man5/dhcp-eval.5: No such file or directory
  gzip: can't stat: /tmp//man/man5/dhcp-options.5: No such file or directory
  gzip: can't stat: /tmp//man/man8/dhcpd.8: No such file or directory

  Thanks for all the advice.

  Ashant





  On Thu, Apr 24, 2008 at 7:53 AM, Andrew Pantyukhin
  [EMAIL PROTECTED] wrote:
   On Tue, Apr 15, 2008 at 07:34:35PM +0200, Mel wrote:
 On Tuesday 15 April 2008 18:07:42 Ashant Chalasani wrote:

  Is there a way to install a port without the man-pages.  I'm trying to
  install a dhcp server onto a Tinybsd image and end up buying myself a
  bunch of files in /man, as seen at
  http://code.google.com/p/tinybsdap/wiki/InstallingPorts (hope the
  linking is not minded).

 If the port controls installing the manpages, then you can set
 NO_INSTALL_MANPAGES in /etc/make.conf.
  
NO_INSTALL_MANPAGES is traditionally just an imake-related hack,
which is hardly respected, but rather used. At the moment there
is no policy or knob to control manpage installation. However,
many ports respect MANPREFIX/MANxPREFIX.
  



  --
  Ashant Chalasani


 http://code.google.com/p/tinybsdap/




-- 
Ashant Chalasani
http://code.google.com/p/tinybsdap/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD on xen?

2008-04-24 Thread Outback Dingo
Well ... depends on your needs
Yes you can install FreeBSD 7 as a DomU, Ive done so under Debian and Ubuntu
server
I have 10 FreeBSD 7/8 DomUs running under XEN 3.1.2
Usability is somewhat questionable, though Ive had recently some better
stability for light work
compiling world/kernel is still a bit iffy with GCC core dumps
adding ports is doable, light load is doable, networking bridged appears ok
booting a DomU can also sometimes hang ( frequest) when using the -c flag
useable, yes to a degree... heavy productions work... No, definatley not at
this time
rumour says XEN HVM Hypervisor and KVM ( linux) both show riunning freebsd
on virtualized
platforms to be more stable and usable


On Thu, Apr 24, 2008 at 11:26 PM, Sébastien Morand [EMAIL PROTECTED]
wrote:

   xen docs doesn't talk about support for FreeBSD..
   Only Linux and Windows! The doc says the Guest
   operating system must be aware on running virtualized!
   Does FreeBSD supports it?

 Have you looked at this:
 http://wiki.freebsd.org/FreeBSD/Xen

 Hope it helps,

 Sebastien
 ___
 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: Hangup on USB mass device

2008-04-24 Thread Roland Smith
On Wed, Apr 23, 2008 at 10:39:19PM +, Sébastien Morand wrote:

 What kind of USB chip do you have on the motherboard? Try 'dmesg | grep
 ^usb' and post the output.
 
 $ dmesg | grep usb
 usb0: OHCI version 1.0, legacy support
 usb0: SMM does not respond, resetting
 usb0: OHCI (generic) USB controller on ohci0
 usb0: USB revision 1.0
 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
 usb1: waiting for BIOS to give up control
 usb1: timed out waiting for BIOS
 usb1: EHCI version 1.0
 usb1: companion controller, 4 ports each: usb0
 usb1: NVIDIA nForce4 USB 2.0 controller on ehci0
 usb1: USB revision 2.0
 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb1
 
 It could be a hardware problem, or a bug.
 
 Hardware is fine under linux (same machine) or windows on my wife's laptop (no
 pb with the USB devices), so I don't think so.
 
 Does anything appear in the dmesg output when you try to plug in a USB
 device? look in /var/log/messages, at the correct time.
 E.g, the following appears when I plug in a USB flash drive;
 
 I get this:
 Apr 23 22:17:48 mellba root: Unknown USB device: vendor 0x07b4 product 0x0105
 bus uhub0

According to the file /usr/src/sys/dev/usb/usbdevs on my 7-STABLE
system, this is a C-700 camera, which should be recognized.

 Apr 23 22:17:48 mellba kernel: umass2: OLYMPUS X100,D540Z,C310Z, class 0/0, 
 rev
 2.00/1.00, addr 2 on uhub0

And it does not seem to be recognized properly.

 So My USB device has been seen and then nothing until the first message of the
 next boot

OK, so it goes wrong before the usb subsystem hands the camera off as a
da device. 

This is uhub0, so it's recognized as a USB 1.0 device. Is it USB 2.0 capable

 Actually it's quite funny because I have a hard disk on my da0 which
 is working fine:
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: WD 2500JB External 0108 Fixed Direct Access SCSI-0 device
 da0: 40.000MB/s transfers
 da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C)
 GEOM_LABEL: Label for provider da0s1 is msdosfs/My Book.

From the transfer rate I infer that this is a USB 2.0 device. It should
be connected to uhub1.

 User sebastien is a member if wheel, so hot plug should be working (and it 
 is with my usb key and my usb hard disk ... it's only my mp3 player and my 
 camera which make my pc hanging up).

Is the mp3 player a usb 1.0 device as well? In that case the trouble is
probably with the ohci driver, since the USB 2.0 devices seem to work well.

 I try do disable both these services and the result is the same.
 
 Seeing which of these lines appear or not makes it easier to track down
 the bug.
 
 Try to read the crashdump with the kernel debugger, as described in
 §10.2 of the FreeBSD Developers' Handbook. Obtain a so-called
 backtrace. (using the 'bt' command in the debugger).
 
 I can't do that. It required a built kernel, didn't it?
 The handbook said to launch:
 # cd /usr/obj/usr/src/sys/GENERIC
 # kgdb kernel.debug /var/crash/vmcore.0
 
 But ... I don't have this directory since I don't compile my kernel, so Itry 
 to

On 7.x you should have /boot/kernel/kernel.symbols, which is the
debugging kernel (/boot/kernel/kernel is the regular, stripped, kernel).

 compile the generic kernel:
 Here is what I read trying to build the generic kernel:
 === [23\04\2008 22:09:14] [EMAIL PROTECTED]:/usr/src
 # make buildkernel KERNCONF=GENERIC
 Makefile.inc1, line 1034: Malformed conditional (${MK_LIBTHR} != no
 ${MK_LIBKSE} != no)

There should be a space between no and . 

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)


pgpN8Q8jBfE0P.pgp
Description: PGP signature


RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Manolis Kiagias
I have just completed an article (mostly how-to) for implementing UFS 
journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html

It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.


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


Re: Change gateway

2008-04-24 Thread Reid Linnemann
Written by Aguiar Magalhaes on 04/24/08 11:42
 Hi list,
 
 I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've 
  received the answer: 
 
 # route flush
 # route add default 10.0.253.1
 
 route: writing to routing socket: Network is unreachable
 
 The gateway and the host are connected in the same switch
 
 How can I do it ?
 
 Aguiar

your mask on 10.0.253.161 specifies the interfaces network spans
addresses 10.0.253.160 - 10.0.253.167. 10.0.253.1 is not in that range.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Gabor Kovesdan

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing UFS 
journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.
Nice work like the other one! I won't have time till Monday, but I'd be 
more then happy to review and commit this article if you can send me the 
sources.


Regards,
Gábor Kövesdán
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Change gateway

2008-04-24 Thread Steve Bertrand
I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've  received the answer: 


# route flush
# route add default 10.0.253.1

route: writing to routing socket: Network is unreachable

The gateway and the host are connected in the same switch


Even though the physical connection is the same, the .1 address is in a 
different subnet entirely than .161, due to the /27 prefix length.


10.0.253.160/27 encompasses 161-190. It's a good thing FreeBSD breaks in 
this case ;)


You will need to change your prefix length to /24 on the host, or add a 
secondary IP from the 160/27 range to the gateway to make this work.


Regards,

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


Re: brindging ath0 with re0 working, kinda, almost

2008-04-24 Thread Reinhold
On Thu, April 24, 2008 11:23, Reinhold wrote:
 On Thu, April 24, 2008 10:03, Ivan Voras wrote:

 Reinhold wrote:



 I have a bridge set up on re0 and ath0 to get bridge0, here is my
 ifconfig

 ath0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST
 metric 0
 mtu 2290

 rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500



 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0
 mtu 1500

 The bridge is working in that both lan and wlan can access the
 internet perfectly well but the problem lies with accessing each
 other.

 Depending on what your symptoms are, maybe you need to set the mtu of
 all three interfaces to the same value (1500).

 Hi
 Thanks for the quick reply.


 The symptoms are as follows
 When connected to the wlan I can ping the firewall but not one of our
 servers, the server ip times out

 This is a ping from one of the laptops connected to the wlan

 ping 192.168.1.1

 Pinging 192.168.1.1 with 32 bytes of data:


 Reply from 192.168.1.1: bytes=32 time=1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64
 Reply from 192.168.1.1: bytes=32 time1ms TTL=64


 Ping statistics for 192.168.1.1:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
 Approximate round trip times in milli-seconds:
 Minimum = 0ms, Maximum = 1ms, Average = 0ms


 ping 192.168.1.5

 Pinging 192.168.1.5 with 32 bytes of data:


 Request timed out.
 Request timed out.
 Request timed out.
 Request timed out.


 Ping statistics for 192.168.1.5:
 Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


 When I plug it in on the lan its works perfect with no time outs.


 How come is the MTU so low on the ath0, but its working at full speed?
 The
 wlan signal is stronger then any of our other wireless devices I've ever
 used before

 Regards

Hi

I have changed the mtu on ath0 but it had no affect at all. I ran tcpdump
on it and this is what I'm seeing

# tcpdump -n -e -t -i ath0
00:19:db:04:86:9e  ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42:
arp who-has 192.168.1.5 tell 192.168.1.177
00:19:db:04:86:9e  ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42:
arp who-has 192.168.1.5 tell 192.168.1.177
00:11:09:3b:f7:f0  00:19:db:04:86:9e, ethertype ARP (0x0806), length 60:
arp reply 192.168.1.5 is-at 00:11:09:3b:f7:f0
00:19:db:04:86:9e  00:11:09:3b:f7:f0, ethertype IPv4 (0x0800), length 66:
192.168.1.177.1305  192.168.1.5.80: S 3158085845:3158085845(0) win 65535
mss 1460,nop,wscale 2,nop,nop,sackOK

Any help would be appreciated.

Regards



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


Change gateway

2008-04-24 Thread Aguiar Magalhaes
Hi list,

I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've  
received the answer: 

# route flush
# route add default 10.0.253.1

route: writing to routing socket: Network is unreachable

The gateway and the host are connected in the same switch

How can I do it ?

Aguiar


  Abra sua conta no Yahoo! Mail, o único sem limite de espaço para 
armazenamento!
http://br.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: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Manolis Kiagias

Gabor Kovesdan wrote:

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing UFS 
journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.
Nice work like the other one! I won't have time till Monday, but I'd 
be more then happy to review and commit this article if you can send 
me the sources.


Regards,
Gábor Kövesdán



Thanks Gabor, I will certainly send you the sources, probably on Monday.
I am still polishing the markup (and content) a bit, and I would also 
like to get some comments from people who are using / are familiar with 
journaling.


Thanks again
Manolis

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


Re: Change gateway

2008-04-24 Thread Reid Linnemann
Written by Reid Linnemann on 04/24/08 11:50
 Written by Aguiar Magalhaes on 04/24/08 11:42
 Hi list,

 I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but 
 i've  received the answer: 

 # route flush
 # route add default 10.0.253.1

 route: writing to routing socket: Network is unreachable

 The gateway and the host are connected in the same switch

 How can I do it ?

 Aguiar
 
 your mask on 10.0.253.161 specifies the interfaces network spans
 addresses 10.0.253.160 - 10.0.253.167. 10.0.253.1 is not in that range.

oops.

the network spans 10.0.253.160 - 10.0.253.191, 32 - 27 is 5 bits, not 3 =)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(Partially solved) cmucl and sbcl crash on FreeBSD 7.0

2008-04-24 Thread Xuebin Qiao
Today, I find the bug that made cmucl/sbcl crash. The problem was caused by
a hand tuning parameter kern.maxdsiz in loader.conf. In practice, some
programs need very large memory footprint. To make them happy, I increased
the max data segment size by hand. Sadly, this made cmucl/sbcl crash.

If I comment out the line in loader.conf, everything is ok now. The price is
I have to constantly tune the kernel knob back and forth when needed. :-( Is
there any good suggestion to overcome it?

Thanks for all those who has kindly lend me a hand.

best regards

qxb

-- 
... there have been two really clean,
consistent models of programming so far:
the C model and the Lisp model.
These two seem points of high ground,
with swampy lowlands between them.

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


simple network traffic query tool

2008-04-24 Thread Tobias Kirschstein
hi,

i'm looking for a small tool to query the current network traffic (kb
IN and OUT) per interface. is there any sysctl or tool which gives me a
similar output to systat -ifstat:

/0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
 Load Average    
 
  Interface   Traffic   PeakTotal
lo0  in  0.000 KB/s  0.000 KB/s  226.079 KB
 out 0.000 KB/s  0.000 KB/s  226.079 KB

   wpi0  in  0.000 KB/s  0.000 KB/s  164.577 MB
 out 0.000 KB/s  0.000 KB/s6.205 MB

the background:
unfortunately the network monitor build into superkaramba does not work
for freebsd, os i want to write a widget which uses sysctl or any other
tool if available got get this information. systat is not appropriate
to be used because it does not terminate on its own as i see.


-- 
ciao,
lev


pgpn8EMOVQZeM.pgp
Description: PGP signature


Re: Change gateway

2008-04-24 Thread Wojciech Puchar


I'm trying to set the gateway 10.0.253.1 to the host 10.0.253.161/27 but i've  
received the answer:






# route flush
# route add default 10.0.253.1

route: writing to routing socket: Network is unreachable

The gateway and the host are connected in the same switch
How can I do it ?


the netmask /27 is nonsense in that context
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: simple network traffic query tool

2008-04-24 Thread AngryWolf
Hi,

Perhaps try 'bmon'. It doesn't support displaying peak values though, but 
simple enough.

-- 
AngryWolf
[EMAIL PROTECTED]

On Thursday 24 April 2008 20.10.40 Tobias Kirschstein wrote:
 unfortunately the network monitor build into superkaramba does not work
 for freebsd, os i want to write a widget which uses sysctl or any other
 tool if available got get this information. systat is not appropriate
 to be used because it does not terminate on its own as i see.

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


Re: nfs firewall, hard vs soft mount

2008-04-24 Thread darren kirby
quoth the Colin Brace:
 Hi all,

 I have a FreeBSD v7 box set up as gateway/mailserver/WAP. I leave my WAP
 unencrypted, so my neighbors can use it, and use PF to allow just a few
 specific services (dhcp dns, http, https).

 I'd like to be able to mount a couple of NFS shares from a desktop box
 running Fedora on a wireless client. I've opened  the sunrpc and nfs ports
 in PF, but that doesn't seem to be enough. tcpdump indicates some high upd
 ports in the 40k-50k range are used in the nfs negotiation, but I can't
 figure out exactly what is going on. Does anyone know what additional ports
 need to be opened for nfs? Will I need to use PF to redirect this udf
 traffic to the fedora host or will it find the nfs server on its own?

'rpcinfo -p server' will show the ports/proto you need open. However, it 
should change some each time because rpc.mountd, rpc.statd, and lockd assign 
ports dynamically. You can set a few NFS options to lock these down:

Eg:
RPCMOUNTDOPTS=-p 4002
RPCSTATDOPTS=-p 4000

Sadly, I have only ever run an NFS server on Linux, so I do not know if there 
is a config to set these, or if you have to add the '-p n' to the startup 
scripts directly.

Also, On Linux you must set the lockd port at boot time. Perhaps there is a 
sysctl for this on FreeBSD?

HTH
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: simple network traffic query tool

2008-04-24 Thread Norman Maurer
2008/4/24 AngryWolf [EMAIL PROTECTED]:

 Hi,

 Perhaps try 'bmon'. It doesn't support displaying peak values though, but
 simple enough.

 --
 AngryWolf
 [EMAIL PROTECTED]

 On Thursday 24 April 2008 20.10.40 Tobias Kirschstein wrote:
  unfortunately the network monitor build into superkaramba does not work
  for freebsd, os i want to write a widget which uses sysctl or any other
  tool if available got get this information. systat is not appropriate
  to be used because it does not terminate on its own as i see.


nload should do the job ...

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


make buildworld error

2008-04-24 Thread meka
Basicly, I'm having problem with this:
http://www.freebsd.org/cgi/query-pr.cgi?pr=123052. It's csup'ed few
seconds before make buildworld was issued. Any suggestion?

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


Re: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Rolf G Nielsen

Gabor Kovesdan wrote:

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing UFS 
journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.
Nice work like the other one! I won't have time till Monday, but I'd be 
more then happy to review and commit this article if you can send me the 
sources.


Regards,
Gábor Kövesdán
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






The man page for gjournal does not say what unit to use when specifying 
the journal size with the -s option. Sectors? GB? Anything else? Or is 
there a default (say sectors) that can be changed by using a suffix, 
like -s 10G?


--

Sincerly,

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


Re: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Manolis Kiagias



Rolf G Nielsen wrote:

Gabor Kovesdan wrote:

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing 
UFS journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.
Nice work like the other one! I won't have time till Monday, but I'd 
be more then happy to review and commit this article if you can send 
me the sources.


Regards,
Gábor Kövesdán
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






The man page for gjournal does not say what unit to use when 
specifying the journal size with the -s option. Sectors? GB? Anything 
else? Or is there a default (say sectors) that can be changed by using 
a suffix, like -s 10G?

You are right, although it does say the default is 1Gb.
However the jsize option is only available when both data  journal are 
stored on the same provider, and the article does not deal with this, as 
it uses separate providers for data and journal.
I could give this a try on my virtual setup and see what kind of unit is 
used.

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


Re: simple network traffic query tool

2008-04-24 Thread Paul Schmehl
--On Thursday, April 24, 2008 20:10:40 +0200 Tobias Kirschstein [EMAIL PROTECTED] 
wrote:



hi,

i'm looking for a small tool to query the current network traffic (kb
IN and OUT) per interface. is there any sysctl or tool which gives me a
similar output to systat -ifstat:

/0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
 Load Average   

  Interface   Traffic   PeakTotal
lo0  in  0.000 KB/s  0.000 KB/s  226.079 KB
 out 0.000 KB/s  0.000 KB/s  226.079 KB

   wpi0  in  0.000 KB/s  0.000 KB/s  164.577 MB
 out 0.000 KB/s  0.000 KB/s6.205 MB

the background:
unfortunately the network monitor build into superkaramba does not work
for freebsd, os i want to write a widget which uses sysctl or any other
tool if available got get this information. systat is not appropriate
to be used because it does not terminate on its own as i see.


Perhaps net/ntop?

--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Manolis Kiagias



Manolis Kiagias wrote:



Rolf G Nielsen wrote:

Gabor Kovesdan wrote:

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing 
UFS journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions 
and corrections.
Nice work like the other one! I won't have time till Monday, but I'd 
be more then happy to review and commit this article if you can send 
me the sources.


Regards,
Gábor Kövesdán
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






The man page for gjournal does not say what unit to use when 
specifying the journal size with the -s option. Sectors? GB? Anything 
else? Or is there a default (say sectors) that can be changed by 
using a suffix, like -s 10G?

You are right, although it does say the default is 1Gb.
However the jsize option is only available when both data  journal are 
stored on the same provider, and the article does not deal with this, 
as it uses separate providers for data and journal.
I could give this a try on my virtual setup and see what kind of unit 
is used.


Just tested, and the size is in bytes. By the way, using the same 
provider for journal and data is only possible when done on empty space 
or on an unneeded filesystem (all data is erased). Maybe I should add(?) 
a small howto section for this condition as well.

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


Re: RFC: Article on implementing UFS journaling on desktop PCs

2008-04-24 Thread Rolf G Nielsen

Manolis Kiagias wrote:



Rolf G Nielsen wrote:

Gabor Kovesdan wrote:

Manolis Kiagias escribió:
I have just completed an article (mostly how-to) for implementing 
UFS journaling on a typical desktop PC:


http://store.itsyourftp.com/~sonic2000gr/freebsd/gjournal-desktop/article.html 



It focuses on detailing an easy to follow, repeatable procedure, to 
install FreeBSD on a typical PC and enable journaling on /usr and 
possibly /var.

I am using this same procedure on my systems.

I welcome all feedback, please send me any comments, suggestions and 
corrections.
Nice work like the other one! I won't have time till Monday, but I'd 
be more then happy to review and commit this article if you can send 
me the sources.


Regards,
Gábor Kövesdán
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]






The man page for gjournal does not say what unit to use when 
specifying the journal size with the -s option. Sectors? GB? Anything 
else? Or is there a default (say sectors) that can be changed by using 
a suffix, like -s 10G?

You are right, although it does say the default is 1Gb.
However the jsize option is only available when both data  journal are 
stored on the same provider, and the article does not deal with this, as 
it uses separate providers for data and journal.
I could give this a try on my virtual setup and see what kind of unit is 
used.

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






I'm considering using such a setup. And if I decide to give it a go, 
I'll have to backup, boot from a custom CD I made, make the changes to 
the disks and restore the backup. Considering that, trying out what unit 
is used, should only take a fraction of the total time, and it doesn't 
really scare me to try it. :) I realize my question went to the wrong 
person, but I simply replied to the mail. My apologies.


--

Sincerly,

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


Performance research

2008-04-24 Thread David Naylor
Hi,

(If you want to skip to the questions (since this is a questions mailing 
list :-) please see the 2nd last paragraph)

I am interested in the performance difference of using either -Os or -O2.  
From my preliminary research I have found that in most cases -Os 
outperforms -O2 (and produces smalled binaries).  

However this is only in a very isolated situation and does not make any case 
for a system wide change therefore I would like to run some experiments to 
measure the difference between the two flags.  

I plan to use a live CD (with a system using 3GB) and having both the source 
and object tree in memory (so as to avoid the harddrive influencing the 
times).  Since the CD is very small I am expecting caching to eliminate any 
influence of the slow CD read times of any of the files required to build 
world.  

The tests will be automated by scripts with two CD's, the first with -Os and 
the second with -O2 binaries for the kernel and world (both amd64).  I am 
running an Intel Core 2 Duo 2.2 and 3GB of ram (as mentioned before).  I am 
hoping that only the execution speed will be measured without any other 
factors influencing (such a lack of memory [and thus -Os having the 
advantage]) the results.  

Onto the questions:
1) Is there any other (better) tool I should use to measure the performance of 
building world (other than time)?
2) Since (I think) all of FreeBSD sources of aliassing safe (I have been 
running a system without -fno-strict-aliassing and optimised for a while 
without a problem) should I leave it out of the build flags (i.e. 
CFLAGS=-Os -pipe)
3) Any other suggestions on refining this experiment?
4) Should this experiment produce potential, or conclusive, results any other 
suggestions of experiments to run (perhaps a database or other flags?) 

I will be posting my results (possible wiki page, or a particular mailing 
list) after this weekend.  

Thank you for your time.  

David


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


Cron question

2008-04-24 Thread John Almberg
I have recently switched from Linux to FreeBSD for my web server.  
Absolutely love it, but am having one difficulty that is driving me  
bats...


I wouldn't think that cron would run differently on BSD than Linux,  
but it seemingly does. I have a user crontab that runs a PHP script  
once a day. This worked effortlessly on the old box.


If I am logged in as the user (gs), I can run the script without  
problem just by typing the command line ./script.php, or /full/path/ 
to/script.php


The trouble comes when I try to run this script with cron. I have  
something like this in the gs user crontab:


SHELL=/usr/local/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ 
local/bin:/usr/X11R6/bin:/home/gs/bin

HOME=/home/gs
0 15 * * * /home/gs/bin/script.php /home/gs/log/script.log

I can see from the cron log that cron runs script.php at the  
appointed hour:


	Apr 24 15:00:03 on /usr/sbin/cron[72414]: (gs) CMD (/home/gs/bin/ 
script.php /home/gs/log/script.log)


HOWEVER, absolutely nothing happens as a result. No error message in  
any /var/log file, and script.log is not even touched, even though  
the script is quite verbose and logs a bunch of stuff when it runs.


It is as if the script was never run. I have looked at this every  
which way, but it doesn't make any sense to me. There are other  
scripts in the same crontab that run without problem.


I have tried changing the crontab to:

0 15 * * * /usr/local/bin/php /home/gs/bin/script.php /home/gs/log/ 
script.log


But that has no effect.

So, the question is, how can a script that runs perfectly when  
executed by user gs from the command line, not work at all when run  
as user gs's crontab? Not even generate an error message or log  
entry? What is different in the user crontab runtime environment?


Any insight much appreciated.

Brgds: John

[EMAIL PROTECTED] ~]$ uname -a
FreeBSD on.identry.com 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Mon  
Dec  3 09:46:53 EST 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/ 
INET_ON  amd64


[EMAIL PROTECTED] ~]$ which php
/usr/local/bin/php


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


Re: Cron question

2008-04-24 Thread Chuck Swiger

On Apr 24, 2008, at 1:26 PM, John Almberg wrote:
The trouble comes when I try to run this script with cron. I have  
something like this in the gs user crontab:


SHELL=/usr/local/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ 
local/bin:/usr/X11R6/bin:/home/gs/bin

HOME=/home/gs
0 15 * * * /home/gs/bin/script.php /home/gs/log/script.log

I can see from the cron log that cron runs script.php at the  
appointed hour:


	Apr 24 15:00:03 on /usr/sbin/cron[72414]: (gs) CMD (/home/gs/bin/ 
script.php /home/gs/log/script.log)


I believe that you are going to be better off writing a trivial  
wrapper like:


-

#! /usr/local/bin/bash

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ 
local/bin:/usr/X11R6/bin:/home/gs/bin

# ...other env variables you need...

touch /home/gs/log/script.log
/home/gs/bin/script.php  /home/gs/log/script.log

-

...and invoking this wrapper from cron instead of trying to reset the  
shell and everything from within cron.  You can test things by doing  
an su gs -c /bin/sh from a root login and then trying to run your  
wrapper, which will give you a minimum environment closer to what cron  
executes under.


--
-Chuck

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


Re: Cron question

2008-04-24 Thread Wojciech Puchar
0 15 * * * /usr/local/bin/php /home/gs/bin/script.php 

/home/gs/log/script.log


looks right. check mail - cron sends mail if something is wrong
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Performance research

2008-04-24 Thread Kris Kennaway
On Thu, Apr 24, 2008 at 09:58:22PM +0200, David Naylor wrote:
 Hi,
 
 (If you want to skip to the questions (since this is a questions mailing 
 list :-) please see the 2nd last paragraph)
 
 I am interested in the performance difference of using either -Os or -O2.  
 From my preliminary research I have found that in most cases -Os 
 outperforms -O2 (and produces smalled binaries).  
 
 However this is only in a very isolated situation and does not make any case 
 for a system wide change therefore I would like to run some experiments to 
 measure the difference between the two flags.  
 
 I plan to use a live CD (with a system using 3GB) and having both the source 
 and object tree in memory (so as to avoid the harddrive influencing the 
 times).  Since the CD is very small I am expecting caching to eliminate any 
 influence of the slow CD read times of any of the files required to build 
 world.  
 
 The tests will be automated by scripts with two CD's, the first with -Os and 
 the second with -O2 binaries for the kernel and world (both amd64).  I am 
 running an Intel Core 2 Duo 2.2 and 3GB of ram (as mentioned before).  I am 
 hoping that only the execution speed will be measured without any other 
 factors influencing (such a lack of memory [and thus -Os having the 
 advantage]) the results.  
 
 Onto the questions:
 1) Is there any other (better) tool I should use to measure the performance 
 of 
 building world (other than time)?

Are you really interested in benchmarking how fast gcc is, i.e. is
your workload really compile lots of code?  You'll be mostly
measuring the speed of gcc when doing varying amounts of optimization
work, which will be orders of magnitude more of an effect than the
difference between -Os and -O2 in the gcc binary itself.  You will
have to be careful to avoid this, if it's not your intention.

 2) Since (I think) all of FreeBSD sources of aliassing safe (I have been 
 running a system without -fno-strict-aliassing and optimised for a while 
 without a problem) should I leave it out of the build flags (i.e. 
 CFLAGS=-Os -pipe)
 3) Any other suggestions on refining this experiment?
 4) Should this experiment produce potential, or conclusive, results any other 
 suggestions of experiments to run (perhaps a database or other flags?) 

Optimization levels only have a measurable effect when you are running
a highly CPU bound job, so choose a workload appropriately and measure
carefully (tip: use ministat to decide whether your numbers show any
significant effect).

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Kompozer crashes when Printing

2008-04-24 Thread Sam Fourman Jr.
hello,

I am wondering if someone can point me in the right direction, I am
running FreeBSD 7.0 with the gnome 2.22 desktop
I have cups installed, with a Brother 7820N Printer, I can Print fine
From Mozilla or Firefox, or even OpenOffice.

but if I try and Print From Kompozer it crashes instantly, when I
select print from File - Print ; it also crashes on File - Page
Setup
if you start a console and run kompozer it leaves no output at all, I
don't think it is a permission thing because it crashes from root as
well.

Thank you for any Help you can provide

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


Install problem to external usb hard drive

2008-04-24 Thread Steve P.
Greetings,

If this issue is resolved on another thread, pls direct me to it.

I am trying to install fbsd 7.0 on my laptop connected to a usb external
hard drive. My objective is to leave my internal hd Vista install alone,
booting the external install only. My laptop allows me to hit ESC on
bootup and choose the external drive.

My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2,
internal hd with Vista, dvd/cd, usb external hard drive(not flash) with
primary partition type 165.

My attempts so far:

1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd.
2. booted cd fine, install works great.
3. During install, on external usb drve, deleted existing partition and
created a new one type 165.
4. Sliced it up using defaults.
5. Installed the loader, standard to the external drive.
6. Choose minimum install.
7. Completed install.
8. Rebooted, used laptop ESC to boot external drive.
9. Attempt to book external drive results in a fast scrolling screen of
zeros.

Second attempt:
Lines 1-8 the same, except on 5, installed the boot manager.
9. Attempt to boot external drive results in identical fast scrolling
screen of zeros.

Questions:
1. How do you install fbsd to an external usb hard drive leaving internal
drive untouched? Is this possible?
2. Or if it is impossible, do I need to install the loader on the
internal normally booting hard drive?

Any tips or url's appreciated in advance.
Steve.

-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!

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


Re: Cron question

2008-04-24 Thread Matt
On Thu, Apr 24, 2008 at 3:26 PM, John Almberg [EMAIL PROTECTED] wrote:
  SHELL=/usr/local/bin/bash

Did you install bash from ports and does it run OK from outside of cron?


 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/gs/bin
  HOME=/home/gs
  0 15 * * * /home/gs/bin/script.php /home/gs/log/script.log

  I can see from the cron log that cron runs script.php at the appointed
 hour:

 Apr 24 15:00:03 on /usr/sbin/cron[72414]: (gs) CMD
 (/home/gs/bin/script.php /home/gs/log/script.log)

This entry in the cron log will still show up if the shell listed in
the crontab is not available.  However, as someone else already
mentioned, cron sends a mail when it goes to run and can't execute the
shell.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vpn + samba

2008-04-24 Thread Jon Theil Nielsen
Hi,

I use FreeBSD 7.0-Release and mpd4. The setup is rather uncomplicated. The
only problem is that I have had to create a mpd.secret file to authenticate
users instead of using the UNIX password or alternatively the Samba
password. I'm not quite sure, but it migth be solved by  also setting up a
Radius server.
My setup works for both Windows and Mac clients.

Regards,
Jon

2008/4/21 alexus [EMAIL PROTECTED]:

 no problem (yet) just trying to get a word from someone who has an
 experience in both to share their knowledge which one is better and
 why.

 so far i see that mpd has more recent release vs poptop

 On Sun, Apr 20, 2008 at 11:16 AM, Wojciech Puchar
 [EMAIL PROTECTED] wrote:
 
   hi
  
   i need to get vpn + samba working by vpn i mean a remote user being on
   the road can connect to box and use samba file sharing, most of our
   users use vista, some xp
  
  
   so do it. what a problem?
 



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


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


Re: Install problem to external usb hard drive

2008-04-24 Thread Gary Newcombe
On Thu, 24 Apr 2008 16:31:33 -0500, Steve P.
[EMAIL PROTECTED] wrote:

 Greetings,
 
 If this issue is resolved on another thread, pls direct me to it.

This is a known issue, refer to:

http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041112.html

 
 I am trying to install fbsd 7.0 on my laptop connected to a usb external
 hard drive. My objective is to leave my internal hd Vista install alone,
 booting the external install only. My laptop allows me to hit ESC on
 bootup and choose the external drive.
 
 My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2,
 internal hd with Vista, dvd/cd, usb external hard drive(not flash) with
 primary partition type 165.
 
 My attempts so far:
 
 1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd.
 2. booted cd fine, install works great.
 3. During install, on external usb drve, deleted existing partition and
 created a new one type 165.
 4. Sliced it up using defaults.
 5. Installed the loader, standard to the external drive.
 6. Choose minimum install.
 7. Completed install.
 8. Rebooted, used laptop ESC to boot external drive.
 9. Attempt to book external drive results in a fast scrolling screen of
 zeros.

If you want to use your existing installation, one route would be to
get hold of the BTXTEST livefs that Dimitry Andric created (see thread
above) as a useful tool until the bootloader code is fixed (I'm not
sure if it's fixed in stable yet, I don't think so).

Mount the cd and replace /boot/boot, /boot/boot2, and /boot/loader on
your external hard drive with the ones from the cd.

Then you could replace the mbr using fdisk and the bootblocks using
bsdlabel.

Boot from the livefs, go into fixit mode, then do something like:

fdisk -B /dev/da0
bsdlabel -B /dev/da0s1

I think that should do the trick.

 
 Second attempt:
 Lines 1-8 the same, except on 5, installed the boot manager.
 9. Attempt to boot external drive results in identical fast scrolling
 screen of zeros
 
 Questions:
 1. How do you install fbsd to an external usb hard drive leaving internal
 drive untouched? Is this possible?
 2. Or if it is impossible, do I need to install the loader on the
 internal normally booting hard drive?

I suppose you could just install from the BTXTEST disk too. That would
be easy.


 
 Any tips or url's appreciated in advance.
 Steve.
 
 -- 
 Want an e-mail address like mine?
 Get a free e-mail account today at www.mail.com!
 
 ___
 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: mysql50-server port in 7.0

2008-04-24 Thread Gary Newcombe
On Thu, 24 Apr 2008 09:02:35 -0600, Shawn Badger [EMAIL PROTECTED] wrote:

 Hi, I'm new to FreeBSD and it has impressed me so far.  I came across a 
 slight problem last night when trying to build mysql50 from ports - the 
 build failed stating that C++ does not support the type 'long long'.  
 The other ports I've tried have built fine, and I stripped my kernel 
 without a hitch.  Is the port broken?  I could obviously go and hack the 
 code into submission, but I refuse to believe that was the intended 
 approach.

I built this early this week on 7.0-RELEASE amd64 - no problems for me.

 
 Thanks,
 Shawn
 ___
 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]


Software RAID and Logical Volume in Linux versus FreeBSD

2008-04-24 Thread Matt Proud
Hi all,

I have used FreeBSD for a long time very casually but have never explored
any of its software RAID or volume management features---at least to a
degree to which I feel comfortable with them. What I would like to know with
this post is 1.) whether there exists the ability to setup an analogue of
this in FreeBSD; 2.) how this would be done if it is possible; 3.) whether
the capabilities of this in FreeBSD are sufficiently mature to manage it;
and 4.) how worst-case recovery scenarios would go on FreeBSD.

I have a four disk software RAID setup in Linux. Everything is in RAID with
the exception of swap. Here's an approximation of my setup:

/dev/sd{a,b,c}1 is in a RAID 1 array used as /boot.
/dev/sd{a,b,c}2 is in a RAID 1 array used a /root.
/dev/sd{a,b,c}3 is used as swap with each of equal priority.
/dev/sd{a,b,c}4 is in a RAID 5 array used as LVM.

/dev/sdd houses spare partitions for the compliment supra.

LVM is henceforth broke up according to proper Linux-FHS rules.

What are your thoughts on this?

Cheers,

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


Re: Install problem to external usb hard drive

2008-04-24 Thread Steve P.
 Gary,

If I may ask for a clarification...the link you offered regarded a usb
pen drive (flash?), while my problem involves a usb hard drive.

Would the problem with a flash drive be the same as my problem with a
hard drive?
Thanks.
Steve.





  - Original Message -
  From: Gary Newcombe
  To: Steve P.
  Subject: Re: Install problem to external usb hard drive
  Date: Fri, 25 Apr 2008 11:22:17 +1000


  On Thu, 24 Apr 2008 16:31:33 -0500, Steve P.
  wrote:

   Greetings,
  
   If this issue is resolved on another thread, pls direct me to it.

  This is a known issue, refer to:

  http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041112.html

  
   I am trying to install fbsd 7.0 on my laptop connected to a usb
  external
   hard drive. My objective is to leave my internal hd Vista install
  alone,
   booting the external install only. My laptop allows me to hit ESC
  on
   bootup and choose the external drive.
  
   My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2,
   internal hd with Vista, dvd/cd, usb external hard drive(not flash)
  with
   primary partition type 165.
  
   My attempts so far:
  
   1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd.
   2. booted cd fine, install works great.
   3. During install, on external usb drve, deleted existing partition
  and
   created a new one type 165.
   4. Sliced it up using defaults.
   5. Installed the loader, standard to the external drive.
   6. Choose minimum install.
   7. Completed install.
   8. Rebooted, used laptop ESC to boot external drive.
   9. Attempt to book external drive results in a fast scrolling
  screen of
   zeros.

  If you want to use your existing installation, one route would be to
  get hold of the BTXTEST livefs that Dimitry Andric created (see
  thread
  above) as a useful tool until the bootloader code is fixed (I'm not
  sure if it's fixed in stable yet, I don't think so).

  Mount the cd and replace /boot/boot, /boot/boot2, and /boot/loader on
  your external hard drive with the ones from the cd.

  Then you could replace the mbr using fdisk and the bootblocks using
  bsdlabel.

  Boot from the livefs, go into fixit mode, then do something like:

  fdisk -B /dev/da0
  bsdlabel -B /dev/da0s1

  I think that should do the trick.

  
   Second attempt:
   Lines 1-8 the same, except on 5, installed the boot manager.
   9. Attempt to boot external drive results in identical fast
  scrolling
   screen of zeros
  
   Questions:
   1. How do you install fbsd to an external usb hard drive leaving
  internal
   drive untouched? Is this possible?
   2. Or if it is impossible, do I need to install the loader on the
   internal normally booting hard drive?

  I suppose you could just install from the BTXTEST disk too. That
  would
  be easy.


  
   Any tips or url's appreciated in advance.
   Steve.
  
   -- Want an e-mail address like mine?
   Get a free e-mail account today at www.mail.com!
  
   ___
   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]

-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!

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


Re: Install problem to external usb hard drive

2008-04-24 Thread Gary Newcombe

On Thu, 24 Apr 2008 21:04:51 -0500, Steve P.
[EMAIL PROTECTED] wrote:

  Gary,
 
 If I may ask for a clarification...the link you offered regarded a usb
 pen drive (flash?), while my problem involves a usb hard drive.
 
 Would the problem with a flash drive be the same as my problem with a
 hard drive?

Yes, the same driver (umass) is involved in attaching either. If you
already have an installation, try my instructions. It sounds like it
might just be easier to install from the BTXTEST disk though.

 Thanks.
 Steve.
 
 
 
 
 
   - Original Message -
   From: Gary Newcombe
   To: Steve P.
   Subject: Re: Install problem to external usb hard drive
   Date: Fri, 25 Apr 2008 11:22:17 +1000
 
 
   On Thu, 24 Apr 2008 16:31:33 -0500, Steve P.
   wrote:
 
Greetings,
   
If this issue is resolved on another thread, pls direct me to it.
 
   This is a known issue, refer to:
 
   http://lists.freebsd.org/pipermail/freebsd-stable/2008-March/041112.html
 
   
I am trying to install fbsd 7.0 on my laptop connected to a usb
   external
hard drive. My objective is to leave my internal hd Vista install
   alone,
booting the external install only. My laptop allows me to hit ESC
   on
bootup and choose the external drive.
   
My hardware: pc: laptop hp pavilion dv2315nr, cpu: amd turion64 x2,
internal hd with Vista, dvd/cd, usb external hard drive(not flash)
   with
primary partition type 165.
   
My attempts so far:
   
1. download 7.0-RELEASE-amd64-disc1.iso and burned to cd.
2. booted cd fine, install works great.
3. During install, on external usb drve, deleted existing partition
   and
created a new one type 165.
4. Sliced it up using defaults.
5. Installed the loader, standard to the external drive.
6. Choose minimum install.
7. Completed install.
8. Rebooted, used laptop ESC to boot external drive.
9. Attempt to book external drive results in a fast scrolling
   screen of
zeros.
 
   If you want to use your existing installation, one route would be to
   get hold of the BTXTEST livefs that Dimitry Andric created (see
   thread
   above) as a useful tool until the bootloader code is fixed (I'm not
   sure if it's fixed in stable yet, I don't think so).
 
   Mount the cd and replace /boot/boot, /boot/boot2, and /boot/loader on
   your external hard drive with the ones from the cd.
 
   Then you could replace the mbr using fdisk and the bootblocks using
   bsdlabel.
 
   Boot from the livefs, go into fixit mode, then do something like:
 
   fdisk -B /dev/da0
   bsdlabel -B /dev/da0s1
 
   I think that should do the trick.
 
   
Second attempt:
Lines 1-8 the same, except on 5, installed the boot manager.
9. Attempt to boot external drive results in identical fast
   scrolling
screen of zeros
   
Questions:
1. How do you install fbsd to an external usb hard drive leaving
   internal
drive untouched? Is this possible?
2. Or if it is impossible, do I need to install the loader on the
internal normally booting hard drive?
 
   I suppose you could just install from the BTXTEST disk too. That
   would
   be easy.
 
 
   
Any tips or url's appreciated in advance.
Steve.
   
-- Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
   
___
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]
 
 -- 
 Want an e-mail address like mine?
 Get a free e-mail account today at www.mail.com!
 
 ___
 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]


USB / printer woes

2008-04-24 Thread David Reedy Jr
Small home network. Bottom line, trying to get a USB printer working 
with cups. Right now I'm thinking it's more of a usb problem.

USB related dmesg output...

uhci0: VIA 83C572 USB controller port 0xd400-0xd41f at device 11.0 on 
pci2
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: VIA 83C572 USB controller on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: VIA 83C572 USB controller port 0xd000-0xd01f at device 11.1 on 
pci2
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: VIA 83C572 USB controller on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
ehci0: VIA VT6202 USB 2.0 controller mem 0xf200-0xf2ff at 
device 11.2 on pci2
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb2: EHCI version 1.0
usb2: companion controllers, 2 ports each: usb0 usb1
usb2: VIA VT6202 USB 2.0 controller on ehci0
usb2: USB revision 2.0
uhub2: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb2
uhub2: 4 ports with 4 removable, self powered

when I turn on the printer I get...

ulpt0: HP Deskjet 3840, class 0/0, rev 2.00/1.00, addr 2 on uhub1
ulpt0: using bi-directional mode

Depending on the physical port connected to, it's either uhub0 or uhub1, 
connecting to usb0 / usb1 both of which are usb revision 1.0. All the 
information I have says this printer is usb 2.0. Why is it not 
attaching to ehci0/uhub2/usb2?

echo something  /dev/ulpt0 results in silence. So does printing a 
test page from the cups web interface. It's a black hole.

Can anybody tell me what's wrong? Would removing ohci/uhci from the 
kernel force it to connect to the usb 2.0 side of things?

tia,

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


Re: USB / printer woes

2008-04-24 Thread Wojciech Puchar

connecting to usb0 / usb1 both of which are usb revision 1.0. All the
information I have says this printer is usb 2.0. Why is it not


usb 2.0 doesn't mean USB high speed (480Mbps) but is common mistaken.
it's about protocol not speed.


attaching to ehci0/uhub2/usb2?

echo something  /dev/ulpt0 results in silence. So does printing a
test page from the cups web interface. It's a black hole.

Can anybody tell me what's wrong? Would removing ohci/uhci from the
kernel force it to connect to the usb 2.0 side of things?


it's not a problem here.


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


Problem mount Olympus FE-110 Camera

2008-04-24 Thread Barbara La Scala

I recently upgraded from 6.2-RELEASE-p9 to FreeBSD 6.3-RELEASE-p2 and
now I can't download pictures from my Olympus camera anymore.  I used
to be able to mount it as a USB device and just copy the files across.

Now I get the following error message

artemisia# mount -t msdosfs /dev/da0s1 /usb
mount_msdosfs: /dev/da0s1: Device not configured

I am running the GENERIC kernel and was also when I was using 6.2.

This is the output I get get from dmesg when I plug the camera in.

umass0: OLYMPUS FE110/X705, rev 1.10/0.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: OLYMPUS FE110/X705  Removable Direct Access SCSI-0 device 
da0: 1.000MB/s transfers
da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C)
umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 
0x0

Any suggestions about what the problem might be and how to fix it
would be greatly appreciated.

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