Re: wine: notepad OK, others not

2008-04-23 Thread perryh
 If I were you I'd just try to install Visio under Wine and see how
 it goes. That is, mount the install cd, check with winecfg that
 Wine can see the mount point as a drive D: or something and then
 run wine d:\\setup.exe ...

It did not work at all.  This version of Visio is old enough that
it installs from floppies, rather than from CD :) and I've set it
up in .wine/dosdevices according to the manpage:

  $ ls -la .wine/dosdevices
  total 4
  drwxr-xr-x  2 perryh  staff  512 Apr 21 00:17 .
  drwxr-xr-x  4 perryh  staff  512 Apr 22 21:07 ..
  lrwxr-xr-x  1 perryh  staff8 Apr 21 00:17 a:: - /dev/fd0
  lrwxr-xr-x  1 perryh  staff   10 Apr 19 16:39 c: - ../drive_c
  lrwxr-xr-x  1 perryh  staff1 Apr 19 16:39 z: - /

mdir can read the disk, and it does contain a setup.exe, but
wine can't see it:

  $ wine a:setup.exe
  wine: cannot find 'a:setup.exe'
  $ wine 'a:\setup.exe'
  wine: cannot find 'a:\setup.exe'

There doesn't seem to be a manpage for winecfg:

  $ man winecfg
  No manual entry for winecfg

and when I tried to run it it was not at all obvious what to do.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pf traffic shaping and perfomance

2008-04-23 Thread Zbigniew Szalbot

Hello,

I would like to implement traffic shaping using pf. I know I need to
recompile kernel to be able to achieve this but I have a more general
question. I used to have pf with traffic shaping on a Pentium III 866
before and as soon as I activated it, the http response of the box was
noticably slower. Here are the defs I used then:

#altq on $ext_if cbq bandwidth 512Kb queue { def, smtp, udp, http, \
#ssh, icmp }
#queue def bandwidth 13% cbq(default borrow red)
#queue smtp bandwidth 25% cbq(borrow red) priority 7
#queue udp bandwidth 10% cbq(borrow red)
#queue http bandwidth 40% cbq(borrow red)
#queue ssh bandwidth 10% cbq(borrow red)
##{ ssh_interactive, ssh_bulk }
##queue ssh_interactive priority 7
#queue ssh_bulk priority 0
#queue icmp bandwidth 2% cbq

It is quite possible that I misconfigured the shaping (as seen above). What
would be suggested traffic shaping rules to allow smooth mail operation
(smtp taking up to 40% of allowed bandwidth) and http responses?

If that matters, uname -v
FreeBSD 7.0-RELEASE #0


Many thanks in advance!


Zbigniew Szalbot

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


Sony PRS-505 ebook reader with FreeBSD

2008-04-23 Thread Oleksandr Rudyk
Hi all,

I am trying to connect my sony to freebsd via usb cable and see three new
devices:
/dev/da0
/dev/da1
/dev/da2
First one for internal reader memory, other two for sony's sd and ms card
readers

I  type ls /dev/da0* and I see only three devices above, and didnt have
any of
/dev/da0s1 or similar.

When I am trying to access /dev/da0 I got error Device not configured.

I expected to deal with sony as ordinary usb drive but got this problem.

Any suggestions?

P.S Sony reader use MontaVista Linux as internal OS
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB Mouse not working

2008-04-23 Thread bataa

Hi , 

I got same problem the mouse is not working under Xwindows. 
I solved it anyway. 
I installed freebsd 6.2. 
Problem is only xorg.conf.  you should copy Xorg.config.new to xorg.conf in
X11 directory. 
Then it should be ok. 

Good luck



Fabio Pennati wrote:
 
 
I am a new FreeBSD user coming from Gentoo. I am not able to get
working an usb optical  wired mouse from Labtec that is working well
with many Linux distro's and WXP too.
I am using a FreeBSD 7.0 standard GENERIC kernel configuration with
all usb devices installed, thus:
 
  # USB support
  deviceuhci# UHCI PCI-USB interface
  deviceohci# OHCI PCI-USB interface
  deviceehci# EHCI PCI-USB interface (USB 2.0)
  deviceusb# USB Bus (required)
  #deviceudbp# USB Double Bulk Pipe devices
  deviceugen# Generic
  deviceuhid# Human Interface Devices
  deviceukbd# Keyboard
  deviceulpt# Printer
  deviceumass# Disks/Mass storage - Requires scbus
  and da
  deviceums# Mouse
 
Here is an extract from my rc.conf:
 
  usbd_enable=YES
  moused_enable=YES
  moused_type=auto
  moused_port=/dev/ums0
  moused_flags=
  usbd_flags=
  moused_nondefault_enable=YES
  moused_ums0_flags=
 
I tried also to take out from rc.conf any moused-stuff lines but
without no results.
And here is the messages from kernel during boot, probing ums device:
 
  ums0: vendor 0x1241 product 0x, class 0/0, rev 1.00/1.00, addr
  2 on uhub0
  ums0: 3 buttons and Z dir.
 
This is the xorg.conf, for the part interesting the mouse:
 
  Section InputDevice
  Identifier  Mouse0
  Driver  mouse
  OptionProtocol Auto
  OptionDevice /dev/sysmouse
  OptionZAxisMapping 4 5 6 7
  EndSection
 
Furthermore I installed the same mouse with an hw adapter to the
serial port of the PC and obviously it works, of course as pms device,
but very slowly and with no precision.
There is someone that has any idea ?
Thanks, Fabio
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 

-- 
View this message in context: 
http://www.nabble.com/USB-Mouse-not-working-tp16307942p16832739.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


squid hello write test failed

2008-04-23 Thread Tobias Ernst

Dear All

This is a amd64 box with FreeBSD 6.3. So far it is only acting as a 
firewall (with PF). Yesterday I installed squid via ports with a pretty 
vanilla configuration. I.e. no neighbour caches, just to be used as a 
standalone cache for users from the inside net. No interception caching 
(yet). Squid was not yet put under heavy load - in fact I am so far the 
only person using it.


Everything worked fine yesterday. However, squid died after
squid -k rotate was executed by cron over night. Here is what it came 
up with after (successful) log rotation:


2008/04/23 04:20:00| storeDirWriteCleanLogs: Starting...
2008/04/23 04:20:00|   Finished.  Wrote 1706 entries.
2008/04/23 04:20:00|   Took 0.0 seconds (1714572.9 entries/sec).
2008/04/23 04:20:00| aioSync: flushing pending I/O operations
2008/04/23 04:20:00| aioSync: done
2008/04/23 04:20:00| logfileRotate: /usr/local/squid/logs/access.log
2008/04/23 04:20:00| sendto FD 12: (1) Operation not permitted
2008/04/23 04:20:00| ipcCreate: CHILD: hello write test failed

Squid was running and accepting connections on port 3128, but they were 
not carried out any longer.


I then killed squid (actually I needed kill -9 to bring it down) and 
made sure no more squid processes are running. But now, every time I try 
to start squid - manually, or via rc.d - I get the same messages as 
above. The FD number varies, but everything else stays the same.


There were no other changes made on the machine in between that I am 
aware of.


What is going on here?

Regards
Tobias

FWIW, here is my config:

cache_log /usr/local/squid/logs/cache.log
cache_access_log /usr/local/squid/logs/access.log
cache_store_log none
connect_timeout 2 minutes
log_fqdn on
cache_effective_user squid
http_port 3128

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 80  # http
acl Safe_ports port 21  # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70  # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost

acl inside_net src xxx.xxx.xxx.0/24

http_access allow inside_net
http_access allow localhost
http_access deny all

cache_mgr [EMAIL PROTECTED]

maximum_object_size 32 MB

cache_replacement_policy heap LFUDA
cache_dir aufs /usr/local/squid/cache 32768 32 256

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


Xorg config

2008-04-23 Thread Da Rock
I could use some more detailed information on setting up Xorg- I have a
USB Shintaro wireless keyboard with integrated trackball, and a touch
screen which is not cooperating with my setup. I tried Xorg -configure,
and running xorgconfig, but it still can't seem to find the devices.

Another thing is I have disabled mouse for the console, but Xorg still
looks to /dev/sysmouse. I'm not sure if this is important or it can be
ignored in this case.

Cheers

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


Re: USB wireless AP?

2008-04-23 Thread Ivan Voras
2008/4/23 Martes G Wigglesworth [EMAIL PROTECTED]:

  Is there a particular reason that the USB adapter concept is needed for
  your application?

Yes - there are no other ports to extend the (small, embedded) computer with.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB wireless AP?

2008-04-23 Thread Sepherosa Ziehau
On Wed, Apr 23, 2008 at 4:18 AM, Ivan Voras [EMAIL PROTECTED] wrote:
 Boris Kochergin wrote:

  Do you know about http://ralink.rapla.net/? The RT2500-based cards listed
 there are supported by the ural(4) driver. There's a discouraging comment
 about using them for access points in the man page, though:
 
  CAVEATS
 The ural driver does not support automatic adaptation of the transmit
 speed in IBSS and HostAP operating modes.

In HOSTAP mode, you can have one roaming STA, or you can have several
STAs if they stay in almost same TX/RX condition.  This limitation is
primarily due to ural (same applies to rum) hardware does not have
per-packet (or at least per-peer) TX try/fail counters.  This can't be
fixd by driver.

Best Regards,
sephe

-- 
Live Free or Die
___
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-23 Thread Nejc Škoberne

Hey,


OK.. if it is running inside your jail it doesnt respond to WINS
broadcasts (request for NETBIOS Names.. oi, who is Machine on this
subnet???), if it is not running in your jail, it is.


I wouldn't say WINS broadcasts but NetBIOS broadcasts, yes. Machine
is jailed Samba 3 server - I want it to be accessible from Windows machines
via \\Machine. But it is not unless I put it out of jail (or turn on WINS in
smb.conf and enter the WINS server IP into Windows clients). Windows machines
don't have the WINS server set - I don't want to use WINS server capability
of Samba (nor of any other server on the network).


So, what are your settings for master (local, domain and wins)?


wins support = no
local master = yes
domain master = yes
preferred master = yes


can you do a ping to machine? Can it be resolved?


C:\Users\Nejko.DOMAINping freebsd
Ping request could not find host freebsd. Please check the name and try again.

C:\Users\Nejko.DOMAINping 192.168.15.201

Pinging 192.168.15.201 with 32 bytes of data:
Reply from 192.168.15.201: bytes=32 time1ms TTL=64


Can you connect smbclient //ipadres?


You mean \\192.168.15.201. Yes.


Do you see the smb client listening on the machines virtual ip?


You mean smb server - yes:

root smbd   1436  18 tcp4   192.168.15.201:445*:*
root smbd   1436  19 tcp4   192.168.15.201:139*:*
root nmbd   1430  6  udp4   192.168.15.201:137*:*
root nmbd   1430  7  udp4   192.168.15.201:138*:*
root nmbd   1430  8  udp4   192.168.15.201:137*:*
root nmbd   1430  9  udp4   192.168.15.201:138*:*


in case the above work for you it is all about name resolution.
# man smbclient
Read the first paragraph of servicename on servername resolution.


I know it is all about network resolution. But the question is how to
convince a jailed Samba to reply to NetBIOS broadcasts. I can't find this
in any manual.

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


kern.ipc.maxsockets and FIN_WAIT_2: No buffer space available

2008-04-23 Thread Matthias Kellermann

Hi list,

I've got some problems with full sockets on one FreeBSD 6.2 system 
acting as a loadbalancer for a webfarm.


Sometimes I get some errors like these from different daemons:

haproxy[46932]: Proxy my_proxy reached system memory limit at 83 
sockets. Please check system tunables.
stunnel: LOG3[45738:139512832]: remote socket: No buffer space available 
(55)


netstat -m looks fine:
491/874/1365 mbufs in use (current/cache/total)
450/618/1068/25600 mbuf clusters in use (current/cache/total/max)
450/490 mbuf+clusters out of packet secondary zone in use (current/cache)
0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max)
0/0/0/0 9k jumbo clusters in use (current/cache/total/max)
0/0/0/0 16k jumbo clusters in use (current/cache/total/max)
1022K/1454K/2477K bytes allocated to network (current/cache/total)
0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/0/0 requests for jumbo clusters denied (4k/9k/16k)
0/8/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
7696 calls to protocol drain routines

But this looks bad:
# sysctl kern.ipc.numopensockets
kern.ipc.numopensockets: 11301
# sysctl kern.ipc.maxsockets
kern.ipc.maxsockets: 12328

After raising kern.ipc.maxsockets up to 16384 the errors disappeared, 
for now.


Some further research gave me the following result:
# netstat -n | grep -c FIN_WAIT_2
11156

Hmm, strange. All the connections go to (Debian Linux)-HTTP-Nodes. But I 
don't know why the connections don't close. On the Debian Linux system 
there are lots of sockets in LAST_ACK state.


Any ideas what could cause these problems and how I could solve them? 
Can I set a timeout for the FIN_WAIT_2 state on the FreeBSD system, so 
the sockets won't fill up with unused connections waiting for termination?


I also looked at all tcp4 sockets in netstat -n output. The number of 
these sockets is higher than kern.ipc.numopensockets at the same time. I 
think the number should be lower than kern.ipc.numopensockets because 
all tcp4 sockets are only a part of all sockets, right?


Thanks,
Matthias
___
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-23 Thread Johan Hendriks

 OK.. if it is running inside your jail it doesnt respond to WINS
 broadcasts (request for NETBIOS Names.. oi, who is Machine on this
 subnet???), if it is not running in your jail, it is.

I wouldn't say WINS broadcasts but NetBIOS broadcasts, yes. Machine
is jailed Samba 3 server - I want it to be accessible from Windows machines
via \\Machine. But it is not unless I put it out of jail (or turn on WINS in
smb.conf and enter the WINS server IP into Windows clients). Windows machines
don't have the WINS server set - I don't want to use WINS server capability
of Samba (nor of any other server on the network).

 So, what are your settings for master (local, domain and wins)?

 wins support = no
 local master = yes
 domain master = yes
 preferred master = yes

 can you do a ping to machine? Can it be resolved?

C:\Users\Nejko.DOMAINping freebsd
Ping request could not find host freebsd. Please check the name and try again.

C:\Users\Nejko.DOMAINping 192.168.15.201



Pinging 192.168.15.201 with 32 bytes of data:
Reply from 192.168.15.201: bytes=32 time1ms TTL=64

 Can you connect smbclient //ipadres?

You mean \\192.168.15.201. Yes.

 Do you see the smb client listening on the machines virtual ip?

You mean smb server - yes:

root smbd   1436  18 tcp4   192.168.15.201:445*:*
root smbd   1436  19 tcp4   192.168.15.201:139*:*
root nmbd   1430  6  udp4   192.168.15.201:137*:*
root nmbd   1430  7  udp4   192.168.15.201:138*:*
root nmbd   1430  8  udp4   192.168.15.201:137*:*
root nmbd   1430  9  udp4   192.168.15.201:138*:*

 in case the above work for you it is all about name resolution.
 # man smbclient
 Read the first paragraph of servicename on servername resolution.

I know it is all about network resolution. But the question is how to
convince a jailed Samba to reply to NetBIOS broadcasts. I can't find this
in any manual.

Thanks,
Nejc

This is nota n issue with samba it is a name resolve issue.
If you add in c:\windows\system32\drivers\etc\hosts the following does all work 
then

ipadressMachine-name

where ipadress is the ipadres of the jailed samba server and machine-name is 
the netbios name of the jailed server.

If this works then you need to check your DNS server.

 
___
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-23 Thread Nejc Škoberne

Hi,


This is nota n issue with samba it is a name resolve issue.


Then why is Samba replying to NetBIOS broadcasts very nicely when I put
it outside jail (with the same configuration)? As far as I understand
Samba also provides resolving - NetBIOS resolving via its nmbd.


If you add in c:\windows\system32\drivers\etc\hosts the following does all work 
then

ipadressMachine-name

where ipadress is the ipadres of the jailed samba server and machine-name is 
the netbios name of the jailed server.

If this works then you need to check your DNS server.


Okay, let me clarify all this once again: I know that this will work for me.
I also know that if I add a mapping machine - IP address into my DNS it
will work for me. I also know that if I turn on WINS support in smb.conf and
then set up a WINS server on the Windows machine, it will work fine.

But as you probably know, there is also a third way of resolving names to
IP addresses - it is called NetBIOS broadcasts - from Wikipedia:

In order to connect to a computer running TCP/IP via its NetBIOS name, the
name must be resolved to a network address. Today this is usually an IP address
(the NetBIOS name-IP address resolution is often done by either broadcasts or
a WINS Server — NetBIOS Name Server).

So it says _either by broadcasts or a WINS Server_. I don't want to use WINS
server (or DNS server) for this, but NetBIOS broadcasts. And these broadcasts
work just fine when my Samba 3 server is not running in a FreeBSD jail. As soon
as I put it into the jail, for some reason, Samba 3 stops responding to NetBIOS
broadcasts.

And this is what I would like to understand - why Samba 3 stops responding to
these broadcasts when it is running in a 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: Sony PRS-505 ebook reader with FreeBSD

2008-04-23 Thread Boris Samorodov
On Wed, 23 Apr 2008 06:55:29 + Oleksandr Rudyk wrote:

 I am trying to connect my sony to freebsd via usb cable and see three new
 devices:
 /dev/da0
 /dev/da1
 /dev/da2
 First one for internal reader memory, other two for sony's sd and ms card
 readers

 I  type ls /dev/da0* and I see only three devices above, and didnt have
 any of
 /dev/da0s1 or similar.

 When I am trying to access /dev/da0 I got error Device not configured.

Did you try to mount it first?
# mount_msdodfs /dev/adX /mnt

BTW, some USB devices (and their slices) are showed after:
# true  /dev/adX

 I expected to deal with sony as ordinary usb drive but got this problem.

 Any suggestions?

 P.S Sony reader use MontaVista Linux as internal OS

I use a similar device: lBook eRreader v8. When I try to use it via
it's USB cable it also shows only /dev/adX devices. But if I take off
a card and use it alone I get /dev/adXs1 device.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 7.0 jail and Samba 3

2008-04-23 Thread Nejc Škoberne

Hi,

I'm not sending this message to the list as I've not been following the 
discussion; I just skimmed thru it.


I hope you don't mind that I sent it to the list too.

I would check too things, a) a firewall (sorry if this has been talked 
about, as I said I didn't read it all) or b) enable raw sockets in jails 
( security.jail.allow_raw_sockets=1 ).


Let me know if b) works, I plan to setup a samba server on ZFS inside a 
jail when I return home from my travels.


a) I have no firewall whatsoever running.
b) FreeBSDhost# sysctl -a | grep raw_sockets
   security.jail.allow_raw_sockets: 1

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: wine: notepad OK, others not

2008-04-23 Thread Robert Huff

[EMAIL PROTECTED] writes:

$ ls -la .wine/dosdevices
total 4
drwxr-xr-x  2 perryh  staff  512 Apr 21 00:17 .
drwxr-xr-x  4 perryh  staff  512 Apr 22 21:07 ..
lrwxr-xr-x  1 perryh  staff8 Apr 21 00:17 a:: - /dev/fd0

Is the second colon intentional


Robert Huff

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


Re: FreeBSD 7.0 jail and Samba 3

2008-04-23 Thread P S Clermont

Nejc Škoberne wrote:

Hi,

I'm not sending this message to the list as I've not been following 
the discussion; I just skimmed thru it.


I hope you don't mind that I sent it to the list too.

I would check too things, a) a firewall (sorry if this has been talked 
about, as I said I didn't read it all) or b) enable raw sockets in 
jails ( security.jail.allow_raw_sockets=1 ).


Let me know if b) works, I plan to setup a samba server on ZFS inside 
a jail when I return home from my travels.


a) I have no firewall whatsoever running.
b) FreeBSDhost# sysctl -a | grep raw_sockets
   security.jail.allow_raw_sockets: 1

Thanks,
Nejc
I have a samba3 jail serving files, and my sysctl 
security.jail.allow_raw_sockets=0


Raw sockets allow direct access to the network subsystem.From a security 
standpoint there's very little reason to allow this and many reasons not to.

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


Re: wine: notepad OK, others not

2008-04-23 Thread Tijl Coosemans
On Wednesday 23 April 2008 08:11:38 [EMAIL PROTECTED] wrote:
 If I were you I'd just try to install Visio under Wine and see how
 it goes. That is, mount the install cd, check with winecfg that
 Wine can see the mount point as a drive D: or something and then
 run wine d:\\setup.exe ...
 
 It did not work at all.  This version of Visio is old enough that
 it installs from floppies, rather than from CD :) and I've set it
 up in .wine/dosdevices according to the manpage:
 
   $ ls -la .wine/dosdevices
   total 4
   drwxr-xr-x  2 perryh  staff  512 Apr 21 00:17 .
   drwxr-xr-x  4 perryh  staff  512 Apr 22 21:07 ..
   lrwxr-xr-x  1 perryh  staff8 Apr 21 00:17 a:: - /dev/fd0
   lrwxr-xr-x  1 perryh  staff   10 Apr 19 16:39 c: - ../drive_c
   lrwxr-xr-x  1 perryh  staff1 Apr 19 16:39 z: - /

You have to mount the floppy and then link a: to the mount point.
So if you mount it under /mnt you'd need this:

mount -t msdosfs /dev/fd0 /mnt
ln -s /mnt ~/.wine/dosdevices/a:

 There doesn't seem to be a manpage for winecfg:
 
   $ man winecfg
   No manual entry for winecfg
 
 and when I tried to run it it was not at all obvious what to do.

Under the drives tab you can setup drive letters to point to (unix)
directories, like for instance the mount point of a cdrom or floppy
disk or your home directory.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Unable to open device file /dev/lpt0: Permission denied

2008-04-23 Thread David Reedy Jr

Christian Zachariasen wrote:
On Wed, Apr 23, 2008 at 4:53 AM, David Reedy Jr [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


On Tuesday 22 April 2008 10:40:25 am Roland Smith wrote:
 On Tue, Apr 22, 2008 at 10:08:37AM -0500, David Reedy Jr wrote:
   IICR, the print device should belong to the cups group. At
least,
   that's my working setup.
  
   I have the following in /etc/devfs.conf:
  
   # Give cups printer access
   own lpt0root:cups
   permlpt00660
 
  Thanks for the info. This didn't actually fix the problem, but I
  know it was needed since I read somewhere that everything that
  cupsd spawns runs as cups.
 
  What I ended up doing was resetting my cupsd.conf to default and
  redid my settings. I must have had a typo in there somewhere
before
  because as soon as I restarted cupsd after making the changes, the
  parallel and usb ports suddenly became available as devices
for the
  printer.

 It happens. :-)

  I had previously selected lpd and then manually specified the uri
  as parallel:/dev/lpt0.
 
  The laser on the parallel port is now working fine.

 Good.

  I also went ahead
  and setup my deskjet on usb:/dev/ulpt0. Print test pages get
marked
  as completed but nothing actually comes out of the printer. Still
  trying to figure that one out.

 Have a look at the cups logfiles in /var/log/cups. They should give
 you some pointers. You'll probably need to set the device
permissions
 for ulpt in devfs.rules, not devfs.conf!

I got the rules setup in devfs.rules, no problem. When I turn on the
printer it's detected...

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

and things get set right permission-wise...

crw-rw  1 root  cups0,  88 Apr 22 21:20 /dev/ulpt0

according to /var/log/cups/error_log it prints...

I [22/Apr/2008:21:20:03 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=756)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding start banner page
none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding job file of type
application/postscript.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Adding end banner page none.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Queued on inkjet by root.
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/pstops (PID 757)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/pstoraster (PID 758)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
filter /usr/local/libexec/cups/filter/rastertohp (PID 759)
I [22/Apr/2008:21:20:03 -0500] [Job 47] Started
backend /usr/local/libexec/cups/backend/usb (PID 760)
I [22/Apr/2008:21:20:06 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=761)
I [22/Apr/2008:21:20:06 -0500] [Job 47] Completed successfully.
I [22/Apr/2008:21:20:17 -0500]
Started /usr/local/libexec/cups/cgi-bin/printers.cgi (pid=762)

but the job disappears into some sort of black hole. Nothing prints.
Printer just sits there peacefully doing nothing.

From printers.conf for this printer...

Printer inkjet
Info HP DeskJet 3845
Location Bottom
DeviceURI usb:/dev/ulpt0
State Idle
StateTime 1208917161
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser root
AllowUser davidrjr
OpPolicy default
ErrorPolicy stop-printer
/Printer

If anybody has additional insight, I'd sure appreciate it.

Dave

 Roland


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


IIRC, you should be able to actually write

echo something  /dev/ulpt0

and it should print? Might be useful for testing and stuff.

Test goes to the same black hole. I think I've found the problem...

uhci0: Intel 82801BA/BAM (ICH2) USB controller USB-A port 
0xb400-0xb41f irq 3 at device 31.2 on pci0


Perhaps putting a USB 2.0 controller in this old machine might make a 
difference. :)


Anyway, after a quick bit of googling around for your problem (I've 
had CUPS problems many times in the past myself and I know how hard it 
can be) I found this:


Here is a workaround:

In printers.conf () you will probably find a line like this:

DeviceURI usb:/dev/ulpt0

change usb: to file:, so that it looks something like this:


DeviceURI file:/dev/ulpt0

Then restart cups. Cups will not read any status information from the
printer, but at least it can print. Be warned about unknown side effects. :)


openldap23-server ports, possible to enable syncprov?

2008-04-23 Thread brad davison

I see in the makefile that --disable-syncprov is listed in the Makefile.  I was 
wondering what the 'right' way to enable syncprov on openldap23-server ? 
CONFIGURE_ARGS+=   --disable-syncprov

I tried to change that to --enable-syncprov, but was still getting the same 
errors.  Is there a command-line argument I can add to the build?

Thanks.

_
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=en-US?ocid=TAG_APRIL___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Creating a DVD ISO.

2008-04-23 Thread P S Clermont
I have stumbled upon Dru Lavigne's article and created my own 
7.0-RELEASE amd64 dvd.
The question I ask myself is how could I integrate the livefs into it ? 
making it more of a complete medium to have in my arsenal of cds.


thanks,

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


SOLVED RE: openldap23-server ports, possible to enable syncprov?

2008-04-23 Thread brad davison


 
 I see in the makefile that --disable-syncprov is listed in the Makefile.  I 
 was wondering what the 'right' way to enable syncprov on openldap23-server ? 
 CONFIGURE_ARGS+=   --disable-syncprov
 
 I tried to change that to --enable-syncprov, but was still getting the same 
 errors.  Is there a command-line argument I can add to the build?
 
 Thanks.
 
 _


When running 'make config' I noticed that was an option in the checky-boxes (on 
page 2, and I guess I missed it).  I unchecked slurpd, and then checked 
SYNCPROV.  

Thanks.

_
Back to work after baby–how do you know when you’re ready?
http://lifestyle.msn.com/familyandparenting/articleNW.aspx?cp-documentid=5797498ocid=T067MSN40A0701A___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: clean for kernel build

2008-04-23 Thread Daniel Bye
On Tue, Apr 22, 2008 at 04:00:42PM -0600, Andrew Falanga wrote:
 On Tue, Apr 22, 2008 at 3:17 PM, Fraser Tweedale [EMAIL PROTECTED] wrote:
  `make buildkernel` in /usr/src does a clean before building.  You most
  likely are missing something in your kernel config (i.e. a device that is
  depended on by another device).
 
   frase
 
 
 
 
 Thanks.  What options are needed in conjunction with IPSEC?  I have
 this in my config file:
 
 options  IPSEC
 options  IPSEC_ESP # from the handbook
 
 The IPSec  VPN page in the handbook says to use these.  However, the
 IPSEC_ESP errors out of the build with unknown option.  What else is
 needed?  Also, if I'm not mistaken, the linker errors I'm seeing are
 dealing with the IPSEC implementation.  What kernel options are
 necessary for building a kernel with IPSec?

I'm not sure, as I don't user IPSEC, but this entry from /usr/src/UPDATING
might be of use:

20070704:
The new IPsec code is now compiled in using the IPSEC option.  The
IPSEC option now requires device crypto be defined in your kernel
configuration.  The FAST_IPSEC kernel option is now deprecated.


We have recently moved from the KAME Project's IPSEC to FAST_IPSEC.

Dan

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


pgpvzQrQ3wIeD.pgp
Description: PGP signature


Re: USB wireless AP?

2008-04-23 Thread Ivan Voras
I've found a perfect match for my needs: D-Link DWL-G122, with the rum 
driver. Not a single problem so far, everything works as documented. 
Truly a plug and play experience.


I'm just curious about one more thing: I wish to set up a b/g network, 
so both b and g devices can connect. Apparently this is set up via the 
mode argument to ifconfig, which accepts 11g and 11b but not the 
obvious 11bg. Any pointers on this?




signature.asc
Description: OpenPGP digital signature


RE: Sony PRS-505 ebook reader with FreeBSD

2008-04-23 Thread Oleksandr Rudyk
 Thx for reply.

When I am triying to mount reader internal memory
mount /dev/da0 /mnt/usb I got error: Device not configured

Also I can not take off card because it is not inside ebook, only
empty card reader present.

May be linux partisions should be mounted in different manner?


2008/4/23, Boris Samorodov [EMAIL PROTECTED]:

 On Wed, 23 Apr 2008 06:55:29 + Oleksandr Rudyk wrote:

  I am trying to connect my sony to freebsd via usb cable and see three
 new
  devices:
  /dev/da0
  /dev/da1
  /dev/da2
  First one for internal reader memory, other two for sony's sd and ms
 card
  readers

  I  type ls /dev/da0* and I see only three devices above, and didnt
 have
  any of
  /dev/da0s1 or similar.

  When I am trying to access /dev/da0 I got error Device not configured.

 Did you try to mount it first?
 # mount_msdodfs /dev/adX /mnt

 BTW, some USB devices (and their slices) are showed after:
 # true  /dev/adX

  I expected to deal with sony as ordinary usb drive but got this problem.

  Any suggestions?

  P.S Sony reader use MontaVista Linux as internal OS

 I use a similar device: lBook eRreader v8. When I try to use it via
 it's USB cable it also shows only /dev/adX devices. But if I take off
 a card and use it alone I get /dev/adXs1 device.


 WBR
 --
 Boris Samorodov (bsam)
 Research Engineer, http://www.ipt.ru Telephone  Internet SP
 FreeBSD committer, http://www.FreeBSD.org http://www.freebsd.org/ The
 Power To Serve

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


Re: USB wireless AP?

2008-04-23 Thread John Nielsen
On Wednesday 23 April 2008 11:57:28 am Ivan Voras wrote:
 I've found a perfect match for my needs: D-Link DWL-G122, with the
 rum driver. Not a single problem so far, everything works as
 documented. Truly a plug and play experience.

 I'm just curious about one more thing: I wish to set up a b/g
 network, so both b and g devices can connect. Apparently this is set up
 via the mode argument to ifconfig, which accepts 11g and 11b but
 not the obvious 11bg. Any pointers on this?

You can either omit the mode argument altogether and get both supported 
by default, or just specify 11g, which will also support both. I 
typically omit the mode unless I want to limit things to only 11b.

JN


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


dump never ending?

2008-04-23 Thread Brian McCann
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?

Thanks!
--Brian
-- 
_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_-=-_
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-23 Thread Brian McCann
Here's dmesg from my system...it's a Dell PowerEdge 2850

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.20-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0xf41  Stepping = 1
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x641dSSE3,RSVD2,MON,DS_CPL,CNXT-ID,CX16,xTPR
  AMD Features=0x20100800SYSCALL,NX,LM
  Logical CPUs per core: 2
usable memory = 4281946112 (4083 MB)
avail memory  = 4128460800 (3937 MB)
ACPI APIC Table: DELL   PE BKC  
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  6
 cpu3 (AP): APIC ID:  7
ioapic0: Changing APIC ID to 8
ioapic1: Changing APIC ID to 9
ioapic2: Changing APIC ID to 10
ioapic3: Changing APIC ID to 11
ioapic0 Version 2.0 irqs 0-23 on motherboard
ioapic1 Version 2.0 irqs 32-55 on motherboard
ioapic2 Version 2.0 irqs 64-87 on motherboard
ioapic3 Version 2.0 irqs 96-119 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 10:34:18)
acpi0: DELL PE BKC on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
p4tcc0: CPU Frequency Thermal Control on cpu0
cpu1: ACPI CPU on acpi0
p4tcc1: CPU Frequency Thermal Control on cpu1
cpu2: ACPI CPU on acpi0
p4tcc2: CPU Frequency Thermal Control on cpu2
cpu3: ACPI CPU on acpi0
p4tcc3: CPU Frequency Thermal Control on cpu3
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 2.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: ACPI PCI-PCI bridge at device 0.0 on pci1
pci2: ACPI PCI bus on pcib2
amr0: LSILogic MegaRAID 1.53 mem
0xf80f-0xf80f,0xfe9c-0xfe9f irq 46 at device 14.0 on
pci2
amr0: Using 64-bit DMA
amr0: [ITHREAD]
amr0: delete logical drives supported by controller
amr0: LSILogic PERC 4e/Di Firmware 5A2D, BIOS H433, 256MB RAM
pcib3: ACPI PCI-PCI bridge at device 0.2 on pci1
pci3: ACPI PCI bus on pcib3
pcib4: ACPI PCI-PCI bridge at device 4.0 on pci0
pci4: ACPI PCI bus on pcib4
pcib5: ACPI PCI-PCI bridge at device 5.0 on pci0
pci5: ACPI PCI bus on pcib5
pcib6: ACPI PCI-PCI bridge at device 0.0 on pci5
pci6: ACPI PCI bus on pcib6
em0: Intel(R) PRO/1000 Network Connection Version - 6.7.3 port
0xecc0-0xecff mem 0xfe6e-0xfe6f irq 64 at device 7.0 on pci6
em0: Ethernet address: 00:14:22:1d:dd:50
em0: [FILTER]
pcib7: ACPI PCI-PCI bridge at device 0.2 on pci5
pci7: ACPI PCI bus on pcib7
em1: Intel(R) PRO/1000 Network Connection Version - 6.7.3 port
0xdcc0-0xdcff mem 0xfe4e-0xfe4f irq 65 at device 8.0 on pci7
em1: Ethernet address: 00:14:22:1d:dd:51
em1: [FILTER]
pcib8: ACPI PCI-PCI bridge at device 6.0 on pci0
pci8: ACPI PCI bus on pcib8
pcib9: ACPI PCI-PCI bridge at device 0.0 on pci8
pci9: ACPI PCI bus on pcib9
pcib10: ACPI PCI-PCI bridge at device 0.2 on pci8
pci10: ACPI PCI bus on pcib10
uhci0: Intel 82801EB (ICH5) USB controller USB-A port 0xbce0-0xbcff
irq 16 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: Intel 82801EB (ICH5) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801EB (ICH5) USB controller USB-B port 0xbcc0-0xbcdf
irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: Intel 82801EB (ICH5) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801EB (ICH5) USB controller USB-C port 0xbca0-0xbcbf
irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: Intel 82801EB (ICH5) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: Intel 82801EB/R (ICH5) USB 2.0 controller mem
0xfeb0-0xfeb003ff irq 23 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: Intel 82801EB/R (ICH5) USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, 

Re: Japanese dictionary-software for FreeBSD?

2008-04-23 Thread Andrew Pantyukhin
On Mon, Apr 21, 2008 at 07:53:48PM +0200, Niels Kobschaetzki wrote:
 Hi!
 
 Anyone on the list that can tell me which software is usable under
 FreeBSD as an edict-client? I just do not get gjiten compiled and I
 don't know other useful ones…

textproc/dict
dict -h nihongobenkyo.org 水
___
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-23 Thread Kris Kennaway

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]


Re: wine: notepad OK, others not

2008-04-23 Thread perryh
 $ ls -la .wine/dosdevices
 total 4
 drwxr-xr-x  2 perryh  staff  512 Apr 21 00:17 .
 drwxr-xr-x  4 perryh  staff  512 Apr 22 21:07 ..
 lrwxr-xr-x  1 perryh  staff8 Apr 21 00:17 a:: - /dev/fd0

   Is the second colon intentional

Yes!  That is exactly what the manpage says to do, so as to have
wine use a *device* rather than a node in the Unix filesystem:

  $WINEPREFIX/dosdevices
Directory  containing the DOS device mappings. Each file in that
directory is a symlink to the Unix device  file  implementing  a
given  device.  For  instance,  if  COM1 is mapped to /dev/ttyS0
you'd have a symlink of the form $WINEPREFIX/dosdevices/com1  -
/dev/ttyS0.
DOS  drives  are  also  specified with symlinks; for instance if
drive D: corresponds to the CDROM mounted at  /mnt/cdrom,  you'd
have a symlink $WINEPREFIX/dosdevices/d: - /mnt/cdrom. The Unix
  device corresponding to a DOS drive can be  specified  the  same
  way,  except with '::' instead of ':'. So for the previous exam-
  ple, if the CDROM device is mounted from  /dev/hdc,  the  corre-
  sponding   symlink   would   be   $WINEPREFIX/dosdevices/d::  -
  /dev/hdc.

Presumably this method is provided so that wine can be given access
to a removable device without a particular disk having to be mounted.
It would be, at the least, inconvenient to have to mount and unmount
a sequence of 5 floppies to do this installation.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Can't upgrade lsof

2008-04-23 Thread Sam Fourman Jr.
I also have the same trouble, FreeBSD 7.0 using portupgrade -ar

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]


Re: pf traffic shaping and perfomance

2008-04-23 Thread Luke Dean



On Wed, 23 Apr 2008, Zbigniew Szalbot wrote:



Hello,

I would like to implement traffic shaping using pf. I know I need to
recompile kernel to be able to achieve this but I have a more general
question. I used to have pf with traffic shaping on a Pentium III 866
before and as soon as I activated it, the http response of the box was
noticably slower. Here are the defs I used then:

#altq on $ext_if cbq bandwidth 512Kb queue { def, smtp, udp, http, \
#ssh, icmp }
#queue def bandwidth 13% cbq(default borrow red)
#queue smtp bandwidth 25% cbq(borrow red) priority 7
#queue udp bandwidth 10% cbq(borrow red)
#queue http bandwidth 40% cbq(borrow red)
#queue ssh bandwidth 10% cbq(borrow red)
##{ ssh_interactive, ssh_bulk }
##queue ssh_interactive priority 7
#queue ssh_bulk priority 0
#queue icmp bandwidth 2% cbq

It is quite possible that I misconfigured the shaping (as seen above). What
would be suggested traffic shaping rules to allow smooth mail operation
(smtp taking up to 40% of allowed bandwidth) and http responses?

If that matters, uname -v
FreeBSD 7.0-RELEASE #0


Many thanks in advance!


I had the same problem with class-based queueing when I tried this.  I 
suspect that the 512Kb in your initial queue definition is the limiting 
factor.  I never did get it to work like I expected it to, however, so 
maybe I just don't understand it.


Eventually I realized that I didn't actually want to chop up my bandwidth 
like this.  What I really wanted to do was simply prioritize the traffic. 
The most important applications get first shot at the bandwidth, and the 
less important applications get choked when they need to be.  I switched 
to priority queueing and I've been very happy with it.


I'm sorry I can't help more with cbq, but unless you are able to make an 
accurate guess about how much bandwidth each class will really need to be 
using constantly, I think you'll find that you're reserving bandwidth 
unnecessarily.  If your goal really is to cut down on your bandwidth 
usage, then please disregard this opinion.

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


rum driver panic [ was: Re: USB wireless AP? ]

2008-04-23 Thread Ivan Voras

John Nielsen wrote:

On Wednesday 23 April 2008 11:57:28 am Ivan Voras wrote:

I've found a perfect match for my needs: D-Link DWL-G122, with the
rum driver. Not a single problem so far, everything works as
documented. Truly a plug and play experience.

I'm just curious about one more thing: I wish to set up a b/g
network, so both b and g devices can connect. Apparently this is set up
via the mode argument to ifconfig, which accepts 11g and 11b but
not the obvious 11bg. Any pointers on this?


You can either omit the mode argument altogether and get both supported 
by default, or just specify 11g, which will also support both. I 
typically omit the mode unless I want to limit things to only 11b.


Thanks, I'll try that tomorrow. For now, it looks like my fun won't last 
long:


Unread portion of the kernel message buffer:


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x12
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc053fd4a
stack pointer   = 0x28:0xcc218be8
frame pointer   = 0x28:0xcc218c00
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 25 (irq11: ohci0)
trap number = 12
panic: page fault
Uptime: 38m49s
Physical memory: 241 MB
Dumping 36 MB: 21 5

#0  doadump () at pcpu.h:195
195 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc05d0f53 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418
#2  0xc05d114f in panic (fmt=Variable fmt is not available.
) at /usr/src/sys/kern/kern_shutdown.c:572
#3  0xc07cf4fc in trap_fatal (frame=0xcc218ba8, eva=18) at 
/usr/src/sys/i386/i386/trap.c:899
#4  0xc07cf780 in trap_pfault (frame=0xcc218ba8, usermode=0, eva=18) at 
/usr/src/sys/i386/i386/trap.c:812
#5  0xc07d00d9 in trap (frame=0xcc218ba8) at 
/usr/src/sys/i386/i386/trap.c:490

#6  0xc07b926b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc053fd4a in rum_txeof (xfer=0xc1fcb000, priv=0xc20b7498, 
status=USBD_NORMAL_COMPLETION) at /usr/src/sys/dev/usb/if_rum.c:843
#8  0xc0559745 in usb_transfer_complete (xfer=0xc1fcb000) at 
/usr/src/sys/dev/usb/usbdi.c:977
#9  0xc0542d79 in ohci_softintr (v=0xc1d37000) at 
/usr/src/sys/dev/usb/ohci.c:1436
#10 0xc05552e2 in usb_schedsoftintr (bus=0xc1d37000) at 
/usr/src/sys/dev/usb/usb.c:844
#11 0xc0544698 in ohci_intr1 (sc=0xc1d37000) at 
/usr/src/sys/dev/usb/ohci.c:1194
#12 0xc0544e61 in ohci_intr (p=0xc1d37000) at 
/usr/src/sys/dev/usb/ohci.c:1123
#13 0xc05b300b in ithread_loop (arg=0xc1d39220) at 
/usr/src/sys/kern/kern_intr.c:1036
#14 0xc05afeb6 in fork_exit (callout=0xc05b2e60 ithread_loop, 
arg=0xc1d39220, frame=0xcc218d38) at /usr/src/sys/kern/kern_fork.c:783
#15 0xc07b92e0 in fork_trampoline () at 
/usr/src/sys/i386/i386/exception.s:205




signature.asc
Description: OpenPGP digital signature


Re: OpenBSD - FreeBSD migration

2008-04-23 Thread Andrew Hamilton-Wright


The results of my investigation so far are below:


Filesystem stuff:
 - it appears that FreeBSD and OpenBSD use the same partition
   table format.  Is this true?  If so, I can potentially avoid
   rebuilding an entire disk if I am right that ...
 - FreeBSD can mount and read OpenBSD's version of the 4.2 BSD
   filesystem implementation


Although I strongly suspect that the filesystem itself is probably
the same, it is not possible to read an OpenBSD mounted partition,
as far as I can tell.

After booting using FreeBSD, fdisk correctly reports the information
regarding the slice set up by OpenBSD (default 4, not 1, the FreeBSD
default), however bsdlabel under FreeBSD cannot interpret any of the
data found at the location reported in the table read by fdisk.  I
do find this somewhat surprising, as it is the same structures that
are being recorded.  Perhaps there is a magic number issue here
that causes bsdlabel to believe that it can't interpret the data
as the message returned is that there is no label present in the
indicated slice.

This makes the filesystem question moot, as without access to
the BSD partition results there is no clue as to where to begin
access of the filesystem.



 - even if the above isn't true, it appears that the format used
   by dump/restore is consistent.  I have tried dumping/restoring
   some small filesystems to test this, but if this is an unsupported
   way to go, I would like to know now.


This seems to work.  I was successfully able to dump filesystems
under OpenBSD and then restore them under FreeBSD, with general
success (albeit a complaint that the dump header is out of date).


Cheers,
Andrew.

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


Search for files in not installed ports

2008-04-23 Thread Anselm Strauss

Hi,

is there an easy way to find the port that will install me a specific  
file? So far, I only found the following:


# find /usr/ports -name pkg-plist | xargs -I {} grep -H 'bin/wish' {}
/usr/ports/chinese/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/devel/sourcenav/pkg-plist:bin/wish8.3
/usr/ports/japanese/tk80/pkg-plist:bin/wish8.0jp
/usr/ports/japanese/tkstep80/pkg-plist:bin/wishstep8.0jp
/usr/ports/x11-toolkits/tk80/pkg-plist:bin/wish8.0
/usr/ports/x11-toolkits/tk82/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk84/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk85/pkg-plist:bin/wish%%TK_VER%%
#

Is there a make target that lists all files installed by a port?

Cheers,
Anselm

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


question on Linux emulation and semget error

2008-04-23 Thread Per olof Ljungmark

Hi,

We have recently upgraded a machine that runs a Linux app from 4.11 to 
7-STABLE. Most things are just fine apart from the app can only be 
started once. If stopped and then restarted, we see

semget error
Server Stopped

Googling and reading led me to ipcs and ipcrm:
(after stopping the app)
#ipcs -c
TID  KEY MODEOWNERGROUPCREATOR  CGROUP

Shared Memory:
TID  KEY MODEOWNERGROUPCREATOR  CGROUP
m65536   1330791762 --rwarwarwa rootwheel rootwheel

Semaphores:
TID  KEY MODEOWNERGROUPCREATOR  CGROUP
s262144   1332897154 --rwarwarwa rootwheel rootwheel

# ipcrm -s 262144

and then the app will start without any problem. The info stored in 
memory is the license key apparently and it is not unloaded with the 
app, or rather, daemon.


How can I get rid of this? We did not see this on 4.11.

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


IPSec woes

2008-04-23 Thread Andrew Falanga
I'm going off of the handbook section for setting up IPsec but I'm
having some problems because I'm having to modify the instructions
some.  The handbook section covers a VPN secured by IPsec, but I'm
trying to setup a point-to-point between my host and another.

All seemed to be going well.  I've compiled it into my kernel.  I've
installed racoon from ports and the first time I tried to ping my peer
host, it paused for several seconds and then started up (as the
handbook mentions).  However, when I do setkey -D I get, no SAD
entries.  This makes me sad.  Sorry, I couldn't resist.

I have this in my /etc/ipsec.conf file (in the below 192.168.0.5 is my
IP, 192.168.0.6 is the remote host):

add 192.168.0.5 192.168.0.6 ipcomp 256 3des

I should make note that the other host is not a FreeBSD machine, it is
a printer.  I'm doing this as an exercise to learn setting this up.

As for the racoon setup file, I copied the file from
/usr/local/share/examples/ipsec-tools/racoon.conf to
/usr/local/etc/racoon and modified only this entry:

sainfo address 192.168.0.6 any address 192.168.0.5 any
{
pfs_group 2;
lifetime time 30 sec;
encryption_algorithm 3des;
authentication_algorithm hmac_md5;
compression_algorithm deflate;
}

Any help is greatly appreciated.  Thanks.  Oh, what makes me think
that it's not working is wireshark and tcpdump both didn't seem to
dump anything that would lead me to believe anything is being
encrypted.  What's odd, is that this printer I'm working against has
been set to disallow any traffic from my IP address without it's being
encrypted.

Thanks,
Andy

-- 
 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: Can't upgrade lsof

2008-04-23 Thread Pollywog
On Wednesday 23 April 2008 18:25:51 Sam Fourman Jr. wrote:
 I also have the same trouble, FreeBSD 7.0 using portupgrade -ar

 Sam Fourman Jr.

I had the same problem and had to remove lsof and one other package so that I 
could upgrade other packages/ports.

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


Build a single kernel module?

2008-04-23 Thread darren kirby
Hi all,

I recently built a custom kernel for my new FreeBSD 7.0-RELEASE system, and it 
is working well. Sadly, I had to purchase and swap out a nic on this machine 
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 
built custom kernel. The handbook mentions using MODULES_OVERRIDE: If you 
want to update a kernel faster or to build only custom modules, you should 
edit /etc/make.conf before starting to build the kernel

So as I understand it, if I add MODULES_OVERRIDE = sk to make.conf then it 
will build only the sk module? The page [0] is light on details so I am 
unsure hoe to proceed with this, ie: I just do a normal 'make installkernel' 
or some other way?

Also, I did look around, but if there are some docs that speak more clearly to 
this issue a pointer would be great.

Thanks for consideration,
-d

[0] 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
-- 
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: Hangup on USB mass device

2008-04-23 Thread Sébastien Morand

In the future, please don't reply on top, but on the bottom of the original.


No problem


The default location is /var/crash. Look for files named vmcore.N, where
N is a number.


Yes there is.


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
Apr 23 22:17:48 mellba kernel: umass2: OLYMPUS X100,D540Z,C310Z, class 0/0, rev
2.00/1.00, addr 2 on uhub0
Apr 23 22:19:53 mellba syslogd: kernel boot file is /boot/kernel/kernel
Apr 23 22:19:53 mellba kernel: Copyright (c) 1992-2008 The FreeBSD Project.
Apr 23 22:19:53 mellba kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989,
1991, 1992, 1993, 1994
Apr 23 22:19:53 mellba kernel: The Regents of the University of California. All
rights reserved.
Apr 23 22:19:53 mellba kernel: FreeBSD is a registered trademark of The FreeBSD
Foundation.
Apr 23 22:19:53 mellba kernel: FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 
2008

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


Apr 22 18:24:45 slackbox kernel: umass0: vendor 0x3538 USB Mass Storage Device, 
class 0/0, rev 2.00/1.00, addr 2 on uhub4
Apr 22 18:24:45 slackbox kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Apr 22 18:24:45 slackbox kernel: da0: Generic USB Flash Disk 0.00 Removable Direct Access SCSI-2 device 
Apr 22 18:24:45 slackbox kernel: da0: 40.000MB/s transfers

Apr 22 18:24:45 slackbox kernel: da0: 250MB (512000 512 byte sectors: 64H 32S/T 
250C)


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.

It's plugged at boot time.

I'm just thinking that I forget mention some stuff ...
I activated the hot plug using hald et dbus (using xfce4):

Here is my PolicyKit.conf I modified for my need:
$ more PolicyKit.conf
?xml version=1.0 encoding=UTF-8? !-- -*- XML -*- --

!DOCTYPE pkconfig PUBLIC -//freedesktop//DTD PolicyKit Configuration 1.0//EN
http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd;

!-- See the manual page PolicyKit.conf(5) for file format --

config version=0.1
match user=root
return result=yes/
/match
define_admin_auth group=wheel/
match action=org.freedesktop.hal.storage.mount-removable
match user=sebastien
return result=yes/
/match
/match
match action=org.freedesktop.hal.storage.mount-fixed
match user=sebastien
return result=yes/
/match
/match
/config

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).


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
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)
Makefile.inc1, line 1036: if-less elif
Makefile.inc1, line 1038: if-less elif
Makefile.inc1, line 1040: if-less endif
make: fatal errors encountered -- cannot continue


Post your question and the information that you've gathered to the
-stable mailing list. There are more people there who are 

What happened to NO_OPENSSH in make.conf with FreeBSD 7?

2008-04-23 Thread FreeBSD

Hello everyone,

With FreeBSD 6.2-Release, I added the option NO_OPENSSH=true in the 
make.conf I use to build jails. But, I just rebuilded a jail in FreeBSD 
7-Release and I realized at the mergemaster step of the update that 
there were a lot of files related to OpenSSH that needed to be 
installed. By checking the man and /usr/share/examples/etc/make.conf, I 
find no reference to this option anymore.


Can someone shed some light on this?

Thank you very much,

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


Re: What happened to NO_OPENSSH in make.conf with FreeBSD 7?

2008-04-23 Thread Dan Nelson
In the last episode (Apr 23), FreeBSD said:
 Hello everyone,
 
 With FreeBSD 6.2-Release, I added the option NO_OPENSSH=true in the 
 make.conf I use to build jails. But, I just rebuilded a jail in FreeBSD 
 7-Release and I realized at the mergemaster step of the update that there 
 were a lot of files related to OpenSSH that needed to be installed. By 
 checking the man and /usr/share/examples/etc/make.conf, I find no reference 
 to this option anymore.
 
 Can someone shed some light on this?

They have been converted to ports-style WITH/WITHOUT_* flags, and the
preferred location is /etc/src.conf (so as to not add unnecessary
defines to other programs that happen to use make).  See the src.conf
manpage for the full list.  I thought the NO_* flags were still
supported, though (according to the 20060317 /usr/src/UPDATING entry).

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


[solved] Re: Build a single kernel module?

2008-04-23 Thread darren kirby
quoth the darren kirby:

Please disregard. I have realized the module is called if_sk.ko, not sk.ko, so 
it is in fact built...

-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 7.0 jail and Samba 3

2008-04-23 Thread Gelsema, P (Patrick)
On Wed, April 23, 2008 18:16, Nejc Å koberne wrote:
 Hi,

 This is nota n issue with samba it is a name resolve issue.

 Then why is Samba replying to NetBIOS broadcasts very nicely when I put
 it outside jail (with the same configuration)? As far as I understand
 Samba also provides resolving - NetBIOS resolving via its nmbd.

 If you add in c:\windows\system32\drivers\etc\hosts the following does
 all work then

 ipadress Machine-name

 where ipadress is the ipadres of the jailed samba server and
 machine-name is the netbios name of the jailed server.

 If this works then you need to check your DNS server.

 Okay, let me clarify all this once again: I know that this will work for
 me.
 I also know that if I add a mapping machine - IP address into my DNS
 it
 will work for me. I also know that if I turn on WINS support in smb.conf
 and
 then set up a WINS server on the Windows machine, it will work fine.

 But as you probably know, there is also a third way of resolving names
 to
 IP addresses - it is called NetBIOS broadcasts - from Wikipedia:

 In order to connect to a computer running TCP/IP via its NetBIOS name,
 the
 name must be resolved to a network address. Today this is usually an IP
 address
 (the NetBIOS name-IP address resolution is often done by either broadcasts
 or
 a WINS Server — NetBIOS Name Server).

 So it says _either by broadcasts or a WINS Server_. I don't want to use
 WINS
 server (or DNS server) for this, but NetBIOS broadcasts. And these
 broadcasts
 work just fine when my Samba 3 server is not running in a FreeBSD jail. As
 soon
 as I put it into the jail, for some reason, Samba 3 stops responding to
 NetBIOS
 broadcasts.

 And this is what I would like to understand - why Samba 3 stops responding
 to
 these broadcasts when it is running in a jail.

If Samba is running in a jail it is linked to a Alias IP. AFAIK broadcasts
are only processed and responded to by the primary IP address.

This might be why. Ask on -net if they would know about how to get the
alias ip responding to netbios broadcasts.

Why it works for me: simple, all my servers are using DNS. All my DHCP
clients get automatically added to DNS.

Also, if I am not mistaken, Windows Vista wants to move away from Netbios.
In WIndows XP there is even a setting to disable Netbios on TCP. I believe
Samba is catered for that. Ports are 445 on windows if I am not mistaken.

Cheers

Patrick


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


Looking for Malaysia Distributor

2008-04-23 Thread asura alias
Hi,

I'm looking for FreeBSD Media Pack (Genuine Media Kit) - latest version
Please advice me, where can i found the distributor in Malaysia.

 Thanks,

 ASURA ALIAS / ZAINAL HJ. HASHIM
ALIFF LINK COMMUNICATION SDN BHD
No. 104-2, Jalan Puteri 5/5,
Bandar Puteri, Puchong,
47100, Selangor,
MALAYSIA.

Tel: 03-8062 7003
Fax : 03-8062 7037
H/phone : 012-654 6537 (Asura)
 : 019-3070373 (Zainal)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Search for files in not installed ports

2008-04-23 Thread Andrew Pantyukhin
On Wed, Apr 23, 2008 at 10:10:31PM +0200, Anselm Strauss wrote:
 Hi,
 
 is there an easy way to find the port that will install me a specific file? 
 So far, I only found the following:
 
 # find /usr/ports -name pkg-plist | xargs -I {} grep -H 'bin/wish' {}

That's the right way to do it, but have a look at portsearch from
ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


logout problem after running Compiz Fusion

2008-04-23 Thread Novembre
Hi all,

I have installed Compiz Fusion on my machine, which has Intel 965G chipset,
using packages. I am running it on Xfce 4.4.2 on X.org 7.3_1 on FreeBSD
7.0-RELEASE. Compiz starts fine and is working fine, but I have some
problems with it, as follows.

My xorg.conf is uploaded to http://pastebin.com/f649537ab and is configured
according to instructions found at
http://wiki.compiz-fusion.org/Intel%20with%20AiGLX

I run Compiz with these commands:
--
LIBGL_ALWAYS_INDIRECT=1; export LIBGL_ALWAYS_INDIRECT
INTEL_BATCH=1; export INTEL_BATCH
compiz --replace --sm-disable --ignore-desktop-hints ccp 
emerald --replace 
--
I found the first two lines in the above-mentioned wiki page, and the last
two are from FreeBSD's guide at
http://www.freebsd.org/doc/en/articles/compiz-fusion/index.html

First problem is that I cannot log out of X.org, since it seems that the
system locks up. The background image on the desktop stays on the screen,
and I don't get dropped to the console. However, I can restart the system by
pressing Ctrl-Alt-Del. Since I can't see anything other than my background
image, I don't know whether I can run other commands or not. Here's what
gets added to /var/log/Xorg.0.log.old after I try to log out of Xfce:
--
(II) intel(0): [drm] removed 1 reserved context for kernel
(II) intel(0): [drm] unmapping 8192 bytes of SAREA 0xc57de000 at 0x28805000
(II) intel(0): [drm] Closed DRM master.

Fatal server error:
Caught signal 11.  Server aborting
--

The second problem which happens occasionally (e.g. right now) is that it's
sometimes slow and sometimes with very good response. For example, when I am
typing this email now, I can feel that there's a lag or when I'm switching
windows or moving them around.

Any ideas on how to fix these (especially the first one)?

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


Re: pf traffic shaping and perfomance

2008-04-23 Thread Zbigniew Szalbot

Hi Luke,

On Wed, 23 Apr 2008 12:40:04 -0700 (PDT), Luke Dean [EMAIL PROTECTED]
wrote:
 
 
 On Wed, 23 Apr 2008, Zbigniew Szalbot wrote:
 

 Hello,

 I would like to implement traffic shaping using pf. I know I need to
 recompile kernel to be able to achieve this but I have a more general
 question. I used to have pf with traffic shaping on a Pentium III 866
 before and as soon as I activated it, the http response of the box was
 noticably slower. Here are the defs I used then:

 #altq on $ext_if cbq bandwidth 512Kb queue { def, smtp, udp, http, \
 #ssh, icmp }
 #queue def bandwidth 13% cbq(default borrow red)
 #queue smtp bandwidth 25% cbq(borrow red) priority 7
 #queue udp bandwidth 10% cbq(borrow red)
 #queue http bandwidth 40% cbq(borrow red)
 #queue ssh bandwidth 10% cbq(borrow red)
 ##{ ssh_interactive, ssh_bulk }
 ##queue ssh_interactive priority 7
 #queue ssh_bulk priority 0
 #queue icmp bandwidth 2% cbq

 It is quite possible that I misconfigured the shaping (as seen above).
 What
 would be suggested traffic shaping rules to allow smooth mail operation
 (smtp taking up to 40% of allowed bandwidth) and http responses?

 If that matters, uname -v
 FreeBSD 7.0-RELEASE #0


 Many thanks in advance!
 
 I had the same problem with class-based queueing when I tried this.  I
 suspect that the 512Kb in your initial queue definition is the limiting
 factor.  I never did get it to work like I expected it to, however, so
 maybe I just don't understand it.
 
 Eventually I realized that I didn't actually want to chop up my bandwidth
 like this.  What I really wanted to do was simply prioritize the traffic.
 The most important applications get first shot at the bandwidth, and the
 less important applications get choked when they need to be.  I switched
 to priority queueing and I've been very happy with it.

Thanks! That gives me a clue! Would you mind sharing your defs? I'll be
reading the man anyway.

Zbigniew Szalbot

___
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-23 Thread Andrew Pantyukhin
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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]