Re: startup / shutdown script (rc.d)

2007-06-06 Thread gmoniey

as my luck would have it...this didn't work...i used your script...test it by
running ./rtest start  ./rtest stop and everything worked fine (note: i
changed the name from rails to rtest as rails is an actual command)...

but when i rebooted nothing happened. I had the output dump to file and the
file was empty upon restart, which makes me believe it never actually ran..

Side Note: Jerry, the mongrel_rails command does spew some output, which is
why i dump it to file...

i even added the line rtest_enable=YES in my /etc/rc.conf file and
rebooted, but still no luck

thanks for your help fellas...i'll keep reading up as you suggested...


-- 
View this message in context: 
http://www.nabble.com/startup---shutdown-script-%28rc.d%29-tf3848895.html#a10982826
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]


Request for CTM assistance

2007-06-06 Thread jvk-list

   My mailer dropped cvs-cur.13428.gz 1/3.



   Could someone who uses CTM forward that e-mail to me at
   [EMAIL PROTECTED]



   Either that or could someone send an e-mail to that address with the
   whole file as an attachment?  I don't have FTP access from my location
   and it will be months before I'm somewhere I can download it myself.



   The file should be located at
   [2]ftp://ftp.FreeBSD.org/pub/FreeBSD/CTM/cvs-cur/cvs-cur.13428.gz



   Thanks to any who can help.

   Joe.

References

   1. mailto:[EMAIL PROTECTED]
   2. ftp://ftp.FreeBSD.org/pub/FreeBSD/CTM/cvs-cur/cvs-cur.13428.gz
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: not able to output anything to /dev/ttyv8?

2007-06-06 Thread Michael Hauber
On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote:
 Dear list

 On Gentoo Linux I used to redirect the output of a certain app
 to /dev/tty10 and switch to tty10 (by using Alt+F10)

 this is useful to keep watching the application.

 this doesn't work on FreeBSD. I can do
 # ehco hello  /dev/ttyv8
 # ehco hello  /dev/ttyv9
 # ehco hello  /dev/ttyva

 But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep

 Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in
 advance.

 Best regards

try 'man ttys' and edit your /etc/ttys.


pgp1UhyAIMLmF.pgp
Description: PGP signature


Re: Configure ipaddress and route entries in /etc/rc.conf file

2007-06-06 Thread Martin Alejandro Paredes Sanchez
El Lun 04 Jun 2007, bsenthil escribió:
 Yes, It working fine.. Thanks for your help..

 inetd_enable=YES
 hostname=test.abc.com
 ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0
 ifconfig_fxp1=inet 192.168.111.14  netmask 255.255.255.0
 hostname=test.abc.com
 static_routes=net1 net2

 route_net1=-net 10.1.1.1/24 *fxp0*  (Error ...)

 I am not configure any default router entries . But i want to redirect
 all 10.1.1.1/24 packets through  fxp0.

short answer:

route_net1=-net 10.1.1.0/24 192.168.110.1

Replace the ip 192.168.110.1 with the router in the LAN 192.168.110.0/24

Long answer:

so, you are connected to 2 LANs:

192.168.110.0/24
192.168.111.0/24

And there exist another LAN

10.1.1.0/24

when you configure the interface fxp0:

ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0

You are adding an entry in the routing table like this:

-net 192.168.110.0/24 192.168.110.14

Since you want to transmit all the trafic to the LAN 10.1.1.0/24 by the 
interface fxp0 (connected to the LAN 192.168.110.0/24), there should exist 
some connection betwen these 2 LANs (controled by a router), all you have to 
say is that the LAN 10.1.1.0/24 is reached by the router 192.168.110.X

route_net1=-net 10.1.1.0/24 192.168.110.X

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


Re: rdesktop: segmentation fault under xorg 7.2

2007-06-06 Thread Jan Henrik Sylvester

[EMAIL PROTECTED] wrote:

On Tue, 5 Jun 2007, Jan Henrik Sylvester wrote:


For me, rdesktop works -- I have all my ports upgraded...


ldd `which rdesktop` says?


/usr/local/bin/rdesktop:
libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a9000)
libX11.so.6 = /usr/local/lib/libX11.so.6 (0x2819c000)
libc.so.6 = /lib/libc.so.6 (0x28282000)
libXau.so.6 = /usr/local/lib/libXau.so.6 (0x28367000)
libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x2836a000)
librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x2836f000)

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


how secure is a VPN

2007-06-06 Thread Steven
I have setup various VPN links using a variety of routers and
configurations, and always been under the assumption that they are fairly
well secured if setup correctly.   Now I understand that the level of
security will differ depending on your particular setup.  However I guy I
know who runs a rather large ISP claims that under the current SA
infrastructure VPN's are simply not secure at all.

 

Does anybody have any thoughts on this, am I blissfully unaware, is there
some truth behind this?

 

Thanks

Steven

 

 

 

 

 

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


Re: Request for CTM assistance

2007-06-06 Thread Sam Lawrance


On 06/06/2007, at 4:23 PM, [EMAIL PROTECTED] wrote:



   My mailer dropped cvs-cur.13428.gz 1/3.



   Could someone who uses CTM forward that e-mail to me at
   [EMAIL PROTECTED]



   Either that or could someone send an e-mail to that address with  
the
   whole file as an attachment?  I don't have FTP access from my  
location
   and it will be months before I'm somewhere I can download it  
myself.


Done!


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


ipfw - limit other networks

2007-06-06 Thread Freminlins

Hi,

I am trying to limit the number of connections from foreign networks to a
server. I don't want to limit bandwidth, just the number of connections.
Let's say I have a network 192.168.1.0/24. I want to allow 192.168.2.0/24 to
have at most 50 connections. I want to allow 192.168.3.0/24 to have 20
connections. And so on. Is this even possible? Some applications can do this
but I would prefer to do this at the network level.

I can limit connections on a per IP basis easily, but that isn't what I am
looking for.


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


Re: ipfw - limit other networks

2007-06-06 Thread Abdullah Ibn Hamad Al-Marri

On 6/6/07, Freminlins [EMAIL PROTECTED] wrote:

Hi,

I am trying to limit the number of connections from foreign networks to a
server. I don't want to limit bandwidth, just the number of connections.
Let's say I have a network 192.168.1.0/24. I want to allow 192.168.2.0/24 to
have at most 50 connections. I want to allow 192.168.3.0/24 to have 20
connections. And so on. Is this even possible? Some applications can do this
but I would prefer to do this at the network level.

I can limit connections on a per IP basis easily, but that isn't what I am
looking for.


Cheers,
Frem.


Hello Frem,

You may need to check pf instead of ipfw.
--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD CURRENT 7.x

2007-06-06 Thread Outback Dingo

The past few days ive been getting errors and sluggishness on a system
with both sk and msk chips in it. Any idea how to track this down or whats
changed that has affected the performance of these cards ?? Noticed also its
two different errors. These cards we functioning fine. Help appreciated,
Thanks in advance

The application is lighttpd on port 80. kernel is pretty generic with pf
enabled

7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jun  6 03:50:46 PHT 2007

TCP: [xxx.xxx.xxx.xxx]:2400 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
(probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:12236 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
tcp_input: Listen socket: Spurious RST, segment rejected
TCP: [xxx.xxx.xxx.xxx]:3694 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
tcp_input: Listen socket: Spurious RST, segment rejected
TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags
0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
segment rejected (probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
(probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:15377 to [xxx,xxx.xxx.xxx]:80 tcpflags
0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
segment rejected (probably spoofed)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ipfw - limit other networks

2007-06-06 Thread Nikos Vassiliadis
On Wednesday 06 June 2007 13:15, Freminlins wrote:
 Hi,

 I am trying to limit the number of connections from foreign networks
 to a server. I don't want to limit bandwidth, just the number of
 connections. Let's say I have a network 192.168.1.0/24. I want to allow
 192.168.2.0/24 to have at most 50 connections. I want to allow
 192.168.3.0/24 to have 20 connections. And so on. Is this even possible?
 Some applications can do this but I would prefer to do this at the
 network level.

Yes, it is possible. The keyword is 'limit'. From the ipfw manual:

limit {src-addr | src-port | dst-addr | dst-port} N
  The firewall will only allow N connections with the same set of
  parameters as specified in the rule.  One or more of source and
  destination addresses and ports can be specified.  Currently,
  only IPv4 flows are supported.

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


Re: FreeBSD CURRENT 7.x

2007-06-06 Thread Abdullah Ibn Hamad Al-Marri

On 6/6/07, Outback Dingo [EMAIL PROTECTED] wrote:

The past few days ive been getting errors and sluggishness on a system
with both sk and msk chips in it.
7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jun  6 03:50:46 PHT 2007

TCP: [xxx.xxx.xxx.xxx]:2400 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
(probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:12236 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
tcp_input: Listen socket: Spurious RST, segment rejected
TCP: [xxx.xxx.xxx.xxx]:3694 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
tcp_input: Listen socket: Spurious RST, segment rejected
TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags
0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
segment rejected (probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
(probably spoofed)
TCP: [xxx.xxx.xxx.xxx]:15377 to [xxx,xxx.xxx.xxx]:80 tcpflags
0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
segment rejected (probably spoofed)


This has been fixed by the FreeBSD Commiter Attilio Rao.

Please csup and recompile your kernel.

--
Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to solve mysterious system lockups?

2007-06-06 Thread WorldLink Management
On Mon, 4 Jun 2007 19:46:30 -0700 (PDT)
N. Harrington [EMAIL PROTECTED] wrote:

 
 Hello
   I have several systems that are used as squid
 caching servers. I have some systems that use SCSI
 disks and some  that use SATA disks. They are
 identical in everyway except for the sata vs SCSI
 drives. 
 
  At random times, the sata based systems seem to be
 freezing. You can ping them and they respond, but you
 cannot log in. Nor are any logs processed during that
 time. 
 
  I figure it mist be something to do with the disks,
 but I am not sure how to solve it. There seems to be
 little rhyme or reason. It does not happen necessarily
 during busy times. It can happen in the middle of the
 night.
 
  Any pointers in how to track down the cause would be
 much appreciated.
 
  Tyan S2881 Motherboard - 4gigs mem
  Using 4 SATA (or scsi) drives
  FreeBSD amd64 6.2-STABLE.

Hi Nicole,

I was also having system lockup problems with my FreeBSD-6.x servers running 
Squid with SATA disks. I could ping it but could not login using SSH.

However, in my case, it was due to high mbufs usage.

What's your output of the following commands?

netstat -mb 
sysctl kern.ipc.nmbclusters   

Thanking you...

 
  Thanks!
 
   Nicole
 ___
 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: How to solve mysterious system lockups?

2007-06-06 Thread Tek Bahadur Limbu

Nicole Harrington wrote:

Hello
  I have several systems that are used as squid
caching servers. I have some systems that use SCSI
disks and some  that use SATA disks. They are
identical in everyway except for the sata vs SCSI
drives. 


 At random times, the sata based systems seem to be
freezing. You can ping them and they respond, but you
cannot log in. Nor are any logs processed during that
time. 


 I figure it mist be something to do with the disks,
but I am not sure how to solve it. There seems to be
little rhyme or reason. It does not happen necessarily
during busy times. It can happen in the middle of the
night.

 Any pointers in how to track down the cause would be
much appreciated.

 Tyan S2881 Motherboard - 4gigs mem
 Using 4 SATA (or scsi) drives
 FreeBSD 6.2-STABLE.


Hi Nicole,

I had once experienced the same problem of system lockups in my 
FreeBSD-6.x servers running Squid. Most of them used SATA disks.


I could ping the servers but could not SSH into them. It seemed as tcp 
connections had stopped in the servers.


However, my problem was caused by high mbufs usage. What do you get from 
the following commands?


netstat -mb
sysctl kern.ipc.nmbclusters

Try increasing your mbufs if in case they are too low.

But your problem might not be related to mbufs and sockets.

Thanking you...




 Thanks!

  Nicole


___
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]


problem with csup/cvsup

2007-06-06 Thread Robert Huff

Hello:
After the upgrade, I get:

huff@ cvsup -L 2 current-supfile
Parsing supfile current-supfile
Connecting to cvsup3.FreeBSD.org
Connected to cvsup3.FreeBSD.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
TreeList failed: Network write failure: Permission denied

and:

huff@ csup -L 2 current-supfile
Parsing supfile current-supfile
Connecting to cvsup3.FreeBSD.org
Connected to 128.31.0.28
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Sender: Permission denied

First time _that_ happened.  :-(
Anyone know what the probable issue is?
Respectfully,


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


GEOM/GELI Boot Disk Encryption

2007-06-06 Thread Eric F Crist

Hey folks,

I'm trying to take a system that already has a running freebsd system (or I
can start over), and make the entire system encrypted.  I've found
instructions (freebsd manual) for creating secondary disks, but not the boot
disk in particular.

Can anyone point me in the right direction?

TIA

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


Re: how secure is a VPN

2007-06-06 Thread Bill Moran
In response to Steven [EMAIL PROTECTED]:

 I have setup various VPN links using a variety of routers and
 configurations, and always been under the assumption that they are fairly
 well secured if setup correctly.   Now I understand that the level of
 security will differ depending on your particular setup.  However I guy I
 know who runs a rather large ISP claims that under the current SA
 infrastructure VPN's are simply not secure at all.

Just like all politicians are corrupt?

The security of a VPN is dependent on the VPN software using sufficiently
strong encryption and being free from bugs, in addition to proper setup by
the sysadmin.

I'd stop taking advice from this guy you know.  He doesn't seem very
knowledgeable.  Either that or you misunderstood his statement.

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


Re: Failed to load module pcidata

2007-06-06 Thread Ozan Enginoglu
On Tue, 2007-06-05 at 20:41 -0700, Arthur Barlow wrote:

 Make sure that if you have an xorg.conf file the paths for fonts  
 and modules is updated.  The module path should be /usr/local/lib/ 
 xorg/modules and the fonts path should be /usr/local/lib/X11/fonts.


Arthur is absolutely right... I had the same error message and i fixed
it with changing my old module path.

Hier is my xorg section part:

Section Files
RgbPath  /usr/local/share/X11/rgb
ModulePath   /usr/local/lib/xorg/modules
FontPath /usr/local/lib/X11/fonts/artwiz-fonts
FontPath /usr/local/lib/X11/fonts/misc/
FontPath /usr/local/lib/X11/fonts/TTF/
FontPath /usr/local/lib/X11/fonts/Type1/
FontPath /usr/local/lib/X11/fonts/OTF/
FontPath /usr/local/lib/X11/fonts/local/
#   FontPath /usr/local/lib/X11/fonts/CID/
FontPath /usr/local/lib/X11/fonts/75dpi/
FontPath /usr/local/lib/X11/fonts/100dpi/
EndSection



-- 
Ozan Enginoğlu
Mechanical Engineer

GPG / PGP Fingerprint:
247C EE12 7AF9 5181 B6E5  A70F 0D5C 77FB B350 D715


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


Re: how secure is a VPN

2007-06-06 Thread Jeffrey Goldberg

On Jun 6, 2007, at 4:06 AM, Steven wrote:


I have setup various VPN links using a variety of routers and
configurations, and always been under the assumption that they are  
fairly

well secured if setup correctly.   Now I understand that the level of
security will differ depending on your particular setup.  However I  
guy I

know who runs a rather large ISP claims that under the current SA
infrastructure VPN's are simply not secure at all.

Does anybody have any thoughts on this, am I blissfully unaware, is  
there

some truth behind this?


I think that people saying it is secure and people saying it isn't  
secure are talking about different things.


Most VPN set-ups do what they are supposed to do securely.  But  
often what they are supposed to do is insecure.   What I mean by  
the latter is that they  often allow unsecured home machines which  
may be compromised in many different ways join a secure remote  
internal network.


That is, people typically use VPNs to allow external machines (or  
networks) to join a local network.  That's what they do.  But  
allowing that can be very insecure.  Basically it is important to by  
distrustful of hosts on the VPN.


Again, I'm just guessing at what might be behind the seemingly  
contradictory claims that you've heard.


Cheers,

-j


--
Jeffrey Goldberghttp://www.goldmark.org/jeff/

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


Recommened U320 SCSI controller (pci-x)?

2007-06-06 Thread Nico -telmich- Schottelius
Hello!

Which scsi u320 controller on the pci-x bus would you recommened?

I read some drivers (amr,cis,mpt,iir), but I'm still not sure which
card would do best with freebsd.

Any hints fro me?

Sincerly

Nico

-- 
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/

PGP: BFE4 C736 ABE5 406F 8F42  F7CF B8BE F92A 9885 188C


signature.asc
Description: Digital signature


Re: not able to output anything to /dev/ttyv8?

2007-06-06 Thread Zhang Weiwu
On Wed, 2007-06-06 at 03:14 -0400, Michael Hauber wrote:
 On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote:
  Dear list
 
  On Gentoo Linux I used to redirect the output of a certain app
  to /dev/tty10 and switch to tty10 (by using Alt+F10)
 
  this is useful to keep watching the application.
 
  this doesn't work on FreeBSD. I can do
  # ehco hello  /dev/ttyv8
  # ehco hello  /dev/ttyv9
  # ehco hello  /dev/ttyva
 
  But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep
 
  Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in
  advance.
 
  Best regards
 
 try 'man ttys' and edit your /etc/ttys.

It doesn't make me nervous when I have to RTFM as I did many times and,
now I am RTFMing, but, I got a feeling I am entering a maze filled
with things I don't know: termcap, bound rate...

Anyway this is how I did it after RTFM, stupid but works:
1) go to /etc/gettytab and add this:

W|Wd|Wd console:\
:ht:np:al=root:sp#9600:

2) run /usr/libexec/getty Wd ttyv8

3) now you can run your application and redirect to ttyv8

# app  /dev/ttyv8

This is ugly, but it works. I'd very like to see better solutions.

If you don't add that line to /etc/gettytab, run 

/usr/libexec/getty Pc ttyv8

will get you a ttyv8 console that you can redirect output to, but that
console seems ignore carrier return / line feed, making the output
difficult to read.

P.S. I'd very much like the console ttyv8 can be at a speed of 9600, now
it output anything almost instantly, so sometimes I cannot watch the
output scroll with my eyes (by the special nature of the application I
am running, glance over the output of my application when I am free can
help me find a lot of useful information). The application produce less
then 20MB of data, so 9600 kbps is a good measure to control the pace of
output.

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


Re: not able to output anything to /dev/ttyv8?

2007-06-06 Thread Jonathan Horne



On 6/6/07 9:17 AM, Zhang Weiwu [EMAIL PROTECTED] wrote:

 On Wed, 2007-06-06 at 03:14 -0400, Michael Hauber wrote:
 On Tuesday 05 June 2007 11:23:04 pm Zhang Weiwu wrote:
 Dear list
 
 On Gentoo Linux I used to redirect the output of a certain app
 to /dev/tty10 and switch to tty10 (by using Alt+F10)
 
 this is useful to keep watching the application.
 
 this doesn't work on FreeBSD. I can do
 # ehco hello  /dev/ttyv8
 # ehco hello  /dev/ttyv9
 # ehco hello  /dev/ttyva
 
 But Alt+F9, Alt+F10, Alt+F11 only cause the machine to beep
 
 Possible to use /dev/ttyv9 for output device in FreeBSD? Thanks in
 advance.
 
 Best regards
 
 try 'man ttys' and edit your /etc/ttys.
 
 It doesn't make me nervous when I have to RTFM as I did many times and,
 now I am RTFMing, but, I got a feeling I am entering a maze filled
 with things I don't know: termcap, bound rate...
 
 Anyway this is how I did it after RTFM, stupid but works:
 1) go to /etc/gettytab and add this:
 
 W|Wd|Wd console:\
 :ht:np:al=root:sp#9600:
 
 2) run /usr/libexec/getty Wd ttyv8
 
 3) now you can run your application and redirect to ttyv8
 
 # app  /dev/ttyv8
 
 This is ugly, but it works. I'd very like to see better solutions.
 
 If you don't add that line to /etc/gettytab, run
 
 /usr/libexec/getty Pc ttyv8
 
 will get you a ttyv8 console that you can redirect output to, but that
 console seems ignore carrier return / line feed, making the output
 difficult to read.
 
 P.S. I'd very much like the console ttyv8 can be at a speed of 9600, now
 it output anything almost instantly, so sometimes I cannot watch the
 output scroll with my eyes (by the special nature of the application I
 am running, glance over the output of my application when I am free can
 help me find a lot of useful information). The application produce less
 then 20MB of data, so 9600 kbps is a good measure to control the pace of
 output.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Im not sure what your application may be, but my simple solution is just to
'tail -f /path/logfile'.  This way, I can see the output of my application
from anywhere I am via ssh (not just the local tty).
-- 
Jonathan Horne 
[EMAIL PROTECTED]
http://dfwlpiki.dfwlp.org



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


Re[2]: Failed to load module pcidata

2007-06-06 Thread Gerard
On Wednesday June 06, 2007 at 08:39:57 (AM) Ozan Enginoglu wrote:


  and modules is updated.  The module path should be /usr/local/lib/ 
  xorg/modules and the fonts path should be /usr/local/lib/X11/fonts.
 
 
 Arthur is absolutely right... I had the same error message and i fixed
 it with changing my old module path.

Actually, I went a different route. I moved /etc/X11/xorg.conf out of
the way, and then ran: Xorg --configure to build a new file. The
system did start up without any error messages or missing module
problems.

Now, I am experiencing a new problem. I use 'xfce4' for the windows
manager. It starts to load, then the system just crashes. I have the
Xorg.0.log file, etc. I am attempting to rebuild the entire 'xfce4'
meta port and retry starting the program. If it fails again, I will
start a new thread regarding this problem.

Thanks for your assistance.

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


Re: not able to output anything to /dev/ttyv8?

2007-06-06 Thread Zhang Weiwu
On Wed, 2007-06-06 at 09:31 -0500, Jonathan Horne wrote:
 Im not sure what your application may be, but my simple solution is
 just to
 'tail -f /path/logfile'.  This way, I can see the output of my
 application
 from anywhere I am via ssh (not just the local tty). 

Year, sure, right! I have been using your method for months! I start to
thinking of piping result to a tty because the box running this app is
not far away and I just think it's fun and looking nice to have it
poping up progress :) As you said, this is not very very necessary, it's
mostly for fun and a little bit easier for me

-- 
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112

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


share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Zhang Weiwu
Dear list

I'd like to highlight part of output of one application that matches a
regular expression. First I thought this is simple:

$ my_app | grep --color=auto 'regexp'

This method have a big problem that lines doesn't match regexp is not
displayed, in my case I want all output of my_app being displayed, only
the matching part highlighted.

First I thought grep might have a parameter to output everything it
receive, and it seems it doesn't. And I discovered I can use '-e'
parameter for this purpose:

$ my_app | grep --color=auto -e 'regexp' -e '$'

The second -e makes all line matched.

Maybe useful for some newbies.
-- 
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112

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


Re: Is it better to just rebuild Xorg 7.2

2007-06-06 Thread Robin Becker

Norberto Meijome wrote:

On Mon, 04 Jun 2007 19:45:48 +
Robin Becker [EMAIL PROTECTED] wrote:

I've just installed 6.2R and have just about got Xorg going. Is it 
better for me to just remove all my X related packages and try and build 
from the xorg-7.2 meta package or to go through the pain of trying to 
update?


I think it'll be the same. Upgrade was the only option for me
as I had a fully functionally X setup in my laptop - it went pretty smoothly
(for the amount of changes done to the system).

Make sure you follow the instructions in /usr/ports/UPDATING to the letter.


In either case I need to sync the ports tree etc.


well, if u dont upgrade your tree, you may be able to install xorg 6.9 from
packages (MUCH faster) ; get it working; then sync the ports after this and
upgrade. There is nothing particularly wrong with 6.9, specially if you have a
clean machine and you plan to do the whole upgrade path.

just dont go overkill with setting up KDE / Gnome and other things that depend
on X. twm would do for now ;)

...
I have Xorg from 6.2R working now, but I have already cvsup'd the ports so I 
guess I'll have to do the upgrade from the 6.2R version. I haven't yet got KDE 
etc going yet anyway.

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


Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Eric F Crist

That's great!  One question, how do I make it highlight the entire line,
rather than the searched-for text?

Thanks!

Eric Crist


On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote:


Dear list

I'd like to highlight part of output of one application that matches a
regular expression. First I thought this is simple:

$ my_app | grep --color=auto 'regexp'

This method have a big problem that lines doesn't match regexp is not
displayed, in my case I want all output of my_app being displayed, only
the matching part highlighted.

First I thought grep might have a parameter to output everything it
receive, and it seems it doesn't. And I discovered I can use '-e'
parameter for this purpose:

$ my_app | grep --color=auto -e 'regexp' -e '$'

The second -e makes all line matched.

Maybe useful for some newbies.
--
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112

___
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: fbsd 6.2 pf starts -- but not on boot

2007-06-06 Thread snowcrash+freebsd

hi,


Funny thing is, I doubt I'd have noticed it without your blank line!


heh. well, glad i could help! i live to serve ;-)

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


Re: not able to output anything to /dev/ttyv8?

2007-06-06 Thread Eric F Crist

Along those same lines, I'd like to output iftop to ttyv0 (main console)
with login across serial and/or another tty.  I get rate limit errors of
some sort when I edit /etc/ttys.

What method should I use to ouput an application such as iftop to a tty?

TIA

Eric Crist


On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote:


On Wed, 2007-06-06 at 09:31 -0500, Jonathan Horne wrote:
 Im not sure what your application may be, but my simple solution is
 just to
 'tail -f /path/logfile'.  This way, I can see the output of my
 application
 from anywhere I am via ssh (not just the local tty).

Year, sure, right! I have been using your method for months! I start to
thinking of piping result to a tty because the box running this app is
not far away and I just think it's fun and looking nice to have it
poping up progress :) As you said, this is not very very necessary, it's
mostly for fun and a little bit easier for me

--
Zhang Weiwu
Real Softservice
http://www.realss.com
+86 592 2091112

___
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: Loader can't read USB drive @ boot

2007-06-06 Thread Fred Davidson
--- Jerry McAllister [EMAIL PROTECTED] wrote:

 On Tue, Jun 05, 2007 at 09:16:35AM -0700, Fred
 Davidson wrote:
 
  Well I was having this problem with GRUB which
 someone
  helped me with.  Now Grub will boot my USB key and
  load loader.  The problem?  loader hangs, and
  eventually says it can't find the kernel.  when I
  lsdev it always gives the right description of my
 hard
  disk partitions on the hard drive, but prints
 nothing
  for the USB disk. So...
 
 When the FreeBSD loader can't find the kernel, it
 often means
 that it is looking in the wrong place.  Is your Grub
 MBR pointing
 it to the right place?   What is actually on that
 stick?
 Is there aDDsNa partition for it to boot from? 
 DD being device
 and N being a slice number, 1..4.
 
 jerry


Thanks for the reply Jerry, sorry my last post wasn't
very descriptive, but my prior post was overly
descriptive and didn't get much of a response, however
it did describe the issue well:

http://www.freebsd.org/cgi/getmsg.cgi?fetch=2379736+2387238+/usr/local/www/db/text/2007/freebsd-questions/20070603.freebsd-questions

Andrey pointed out in a later post that I was making
the mistake of creating UFS2 filesystems in slices and
not partitions (e.g. s1 vs. s1a).  Once I corrected
that I had no problem using grub 0.97 to boot into my
ufs2 partitions.  So I reboot...

Grub boots right into the partition on the USB stick
(say da0s1a).  After choosing the menu selection the
system appears to load loader, and then hangs.  I
posted a very detailed description of this, but got
your response before the posting occurred.  I still
can't find the posting online, but it's message 22 in:

freebsd-questions Digest, Vol 181, Issue 6

Basically loader seems to begin, and ends right before
the line that reads:

loading /boot/defaults/loader

Then it hangs, and if I wait a while I'll get can't
load kernel.  if I lsdev I won't get any indication
that there is a filesystem present where the USB
device is.  This is true whether I boot from the USB
device or the hard disk.  Basically I'm just trying to
get GELI to work from some kind of removable medium.  

Right now I'm kind of blaming this on a cheap (but
new) laptop with a BIOS that doesn't let me choose CHS
or LBA, or make any such selections.  I thought I
would try and see if changing what the BIOS thinks in
fdisk would do anything, but I have no idea how to
find the chs info for my USB stick (no included with
stick, and manufacturer gives no info).  Does anyone
have an inkling what's going on here?

Also I just wanted to mention that when booting the
freebsd cd if I escape to the loader prompt and lsdev
I get 

cd0: Device 0x1

I would guess this would mean that freebsd would be
able to load the kernel off of the cd device?  If
anyone believes this could be viable I'll happily
start another thread to try this, thankyou.

-Fred





   

Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

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


Seeking recommendation for anti-spam software

2007-06-06 Thread Richard Coleman
I am running a mail server using Postfix and Dovecot.  I would like to 
hear people's recommendation for which port to use to add server side 
anti-spam.  The problem these days is a richness of choices, so it's 
hard to know port which to try.


And call it a quirk of mine, but I really dislike (server) software with 
a large number of dependencies.  That rules out Spam Assassin.  But I am 
fairly conversant with mail and Postfix/Dovecot in general, so I don't 
mind any integration work.


I apologize if this has been discussed before, but I just joined the 
list (I am already on so many FreeBSD lists already).  I appreciate any 
insight that people can offer.


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


Xorg crashes while loading XFCE4

2007-06-06 Thread Gerard Seibert
FreeBSD-6.2
Xorg-7.2

I had 'xfce4' working perfectly under Xorg-6.9; however, after
updating to version 7.2, I cannot get the windows manager loaded.

I moved the /etc/X11/xorg.conf file and build a new one using Xorg
--configure. I was then able to at least begin loading the program
before it crashed. I reinstalled the entire 'xorg' meta port as well
as the 'xfce4' meta port. I used an updated ports tree for this task.
Unfortunately, I still cannot get this to load.

I have posted a copy of the '/var/log/Xorg.0.log' file at:

   http://seibercom.net/logs/Xorg-log.txt

I also have a copy of the script I created when typing in 'startx'
available at:

   http://seibercom.net/logs/startx.txt

There is one interesting point however. I noticed this error message:


** (xfce-mcs-manager:82803): WARNING **: display_plugin: Unable to configure 
display resolution
Failed to run gnome-keyring-daemon: Failed to execute child process 
gnome-keyring-daemon (No such file or directory)

** (xfwm4:82807): WARNING **: The display does not support the XComposite 
extension.

** (xfwm4:82807): WARNING **: Compositing manager disabled.

(xfwm4:82807): Gdk-WARNING **: shmget failed: error 12 (Cannot allocate memory)

Fatal server error:
Caught signal 10.  Server aborting

xinit:  connection to X server lost.
The application 'xfwm4' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed
the application.


I cannot find out what the 'gnome-keyring-daemon' is or how to get it
installed. I am not even sure if that is the problem.


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


Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Zhang Weiwu
于 Wed, 6 Jun 2007 11:16:17 -0500
Eric F Crist [EMAIL PROTECTED] 写道:

 That's great!  One question, how do I make it highlight the entire
 line, rather than the searched-for text?

Guess would be:
$ my_app | grep --color=auto -e '.*regexp.*' -e '$'

Add '.*' before and after your regular expression

 
 Thanks!
 
 Eric Crist
 
 
 On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote:
 
  Dear list
 
  I'd like to highlight part of output of one application that
  matches a regular expression. First I thought this is simple:
 
  $ my_app | grep --color=auto 'regexp'
 
  This method have a big problem that lines doesn't match regexp is
  not displayed, in my case I want all output of my_app being
  displayed, only the matching part highlighted.
 
  First I thought grep might have a parameter to output everything it
  receive, and it seems it doesn't. And I discovered I can use '-e'
  parameter for this purpose:
 
  $ my_app | grep --color=auto -e 'regexp' -e '$'
 
  The second -e makes all line matched.
 
  Maybe useful for some newbies.
  --
  Zhang Weiwu
  Real Softservice
  http://www.realss.com
  +86 592 2091112
 
  ___
  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]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Exercising ATA disks in hopes of revealing errors

2007-06-06 Thread Francisco Reyes

Bill Moran writes:


Check with the vendors, though.  Many drive manufacturers have utilities
you can download specifically to check their drives.


If the drives are somewhat recent you can try using SMART to check them.
In particular you can use the smartmontools port.
You may need to enable SMART on the motherboard.

SMART = Self-Monitoring, Analysis, and Reporting Technology (S.M.A.R.T.)
http://en.wikipedia.org/wiki/Self-Monitoring%2C_Analysis%2C_and_Reporting_Te 
chnology


Syntax is
smartctl -t short /dev/ad0[1]
smartctl -t long /dev/ad0[2]
smartctl -l selftest /dev/ad0[3]

[1] If the short fails you know there are problems. Still no guarantee. 
Still worth to do quick tests first.


[2] If it fails, there is a good chance the drive has some sort of problems.

[3] Use that to check the result. 
___

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Eric

Richard Coleman wrote:
I am running a mail server using Postfix and Dovecot.  I would like to 
hear people's recommendation for which port to use to add server side 
anti-spam.  The problem these days is a richness of choices, so it's 
hard to know port which to try.


And call it a quirk of mine, but I really dislike (server) software with 
a large number of dependencies.  That rules out Spam Assassin.  But I am 
fairly conversant with mail and Postfix/Dovecot in general, so I don't 
mind any integration work.


I apologize if this has been discussed before, but I just joined the 
list (I am already on so many FreeBSD lists already).  I appreciate any 
insight that people can offer.


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


I use the same 2 programs as you for mail and postgrey works great. I 
use it with amavisd/SA/clamav and it all works very well.


integrate postgrey and see how your numbers drop. it works very well.

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


How to mount USB key

2007-06-06 Thread Oscar Chavarria

I want to copy files to it. I introduced the key and was recognized as da0.

I did ls dev/da0 == dev/da0

Then

mount /dev/da0 /home == incorrect super block.

Thank you in advance for any help.

--



Regards

Oscar Chavarria
Mobile:  +506 814-0247

--- The more I know people the more I love my FreeBSD ---

--- In a world without boundaries, we don't need Windows or Gates ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GEOM/GELI Boot Disk Encryption

2007-06-06 Thread Roland Smith
On Wed, Jun 06, 2007 at 07:28:48AM -0500, Eric F Crist wrote:
  Hey folks,
 
  I'm trying to take a system that already has a running freebsd system (or I
  can start over), and make the entire system encrypted.  I've found
  instructions (freebsd manual) for creating secondary disks, but not the boot
  disk in particular.
 
  Can anyone point me in the right direction?

The /boot directory must not be encrypted, so you need to put that on a
separate slice.

As for the rest, maybe the following thread will help you;
http://lists.freebsd.org/pipermail/freebsd-geom/2006-July/001401.html

The thing is that sysinstall doesn't support creating encrypted disks,
so during install, you'd have to initialize and mount the encrypted
slices manually, and then resume sysinstall.

Personally, I wouldn't bother encrypting anything but your own data,
i.e. /home. And for backup purposes it's better to make a seperate slice
for that anyway. Disk encryption is only usefull when your disk is
stolen; as long as the disk is mounted, the data is readable (if
permissions allow) anyway.

If your /home is already a separate slice, back up your data, unmount
/home and encrypt it according to geli(8). Mount your encrypted drive
and restore your backup.

A good idea might be to create a virtual machine with e.g. qemu, and
practice on that before you screw up anything important. :-)

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)


pgptLRn8K4Q7P.pgp
Description: PGP signature


Re: Failed to load module pcidata

2007-06-06 Thread Karsten Rothemund
On Wed, Jun 06, 2007 at 10:38:10AM -0400, Gerard wrote:

 Actually, I went a different route. I moved /etc/X11/xorg.conf out of
 the way, and then ran: Xorg --configure to build a new file. The
 system did start up without any error messages or missing module
 problems.

Went the same way.

 Now, I am experiencing a new problem. I use 'xfce4' for the windows
 manager. It starts to load, then the system just crashes. I have the
 Xorg.0.log file, etc. I am attempting to rebuild the entire 'xfce4'
 meta port and retry starting the program. If it fails again, I will
 start a new thread regarding this problem.

Same here. And I ended by installing the whole xorg meta port. Some
important packages seemed to be missing after the portupgrade from
xorg 6.9. 

Now xfce4 starts again, but I have a lot of packages here :-/ (Maybe,
I try to deinstall some of them later)

Ciao,

Karsten

-- 

Karsten Rothemund [EMAIL PROTECTED] /\
PGP-Key: 0x7019CAA5   \ /
Fingerprint: E752 C759 B9B2 2057 E42F  \  ASCII Ribbon Campaign
 50EE 47AC A7CE 7019 CAA5 / \ Against HTML Mail and News
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


bsdsar Interface Errors

2007-06-06 Thread Y Sidhu

I have 2 interfaces on the machine and only one is showing these errors.
BTW, that interface is in promiscuous mode, the other is not.
bsdsar -i shows In Errors on the order of 0.05%
bsdsar -I shows In Errs/s on the order of 0.05%

I am on:
FreeBSD 6.2-PRERELEASE
bsdsar v1.10 - Eric Anderson

Questions:
-  Are these interface errors or errors the interface is seeing on the wire?

-  regardless of where the errors are generated, do I need to worry about
them since they are only 0.05% of the incoming packets?
-  Why is there NO information about this utility on the net?

--
Yudhvir Singh Sidhu
408 375 3134 cell
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg crashes while loading XFCE4

2007-06-06 Thread Derek Ragona

At 11:32 AM 6/6/2007, Gerard Seibert wrote:

FreeBSD-6.2
Xorg-7.2

I had 'xfce4' working perfectly under Xorg-6.9; however, after
updating to version 7.2, I cannot get the windows manager loaded.

I moved the /etc/X11/xorg.conf file and build a new one using Xorg
--configure. I was then able to at least begin loading the program
before it crashed. I reinstalled the entire 'xorg' meta port as well
as the 'xfce4' meta port. I used an updated ports tree for this task.
Unfortunately, I still cannot get this to load.

I have posted a copy of the '/var/log/Xorg.0.log' file at:

   http://seibercom.net/logs/Xorg-log.txt

I also have a copy of the script I created when typing in 'startx'
available at:

   http://seibercom.net/logs/startx.txt

There is one interesting point however. I noticed this error message:


** (xfce-mcs-manager:82803): WARNING **: display_plugin: Unable to 
configure display resolution
Failed to run gnome-keyring-daemon: Failed to execute child process 
gnome-keyring-daemon (No such file or directory)


** (xfwm4:82807): WARNING **: The display does not support the XComposite 
extension.


** (xfwm4:82807): WARNING **: Compositing manager disabled.

(xfwm4:82807): Gdk-WARNING **: shmget failed: error 12 (Cannot allocate 
memory)


Looks like the above is the fatal error.  I suspect you rebuilt xfwm4 for 
shared memory, shmget.  You need to add this to your kernel, or rebuild 
xfwm4 not to use it, if that's possible.


-Derek

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

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


Re: How to mount USB key

2007-06-06 Thread Jonathan Horne

On 6/6/07 11:57 AM, Oscar Chavarria [EMAIL PROTECTED] wrote:

 I want to copy files to it. I introduced the key and was recognized as da0.
 
 I did ls dev/da0 == dev/da0
 
 Then
 
 mount /dev/da0 /home == incorrect super block.
 
 Thank you in advance for any help.

try:

Mount_msdosfs /dev/da0 /mountpoint

You might not want to mount it to /home, as home is a link to /usr/home.

Cheers,
-- 
Jonathan Horne 
[EMAIL PROTECTED]
http://dfwlpiki.dfwlp.org



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


Re: Synaptics trackpad problem

2007-06-06 Thread Robin Becker

Paul Fraser wrote:

On 6/3/07, Robin Becker [EMAIL PROTECTED] wrote:

Any help appreciated


Hi Robin,

I know this isn't going to be much of a comfort - but I've had great
difficulty trying to get Xorg to work nicely with - surprise - the
Synaptics touchpad on my Acer notebook as well. I posted to the list
almost a week ago reporting that while Xorg worked brilliantly one day
- suddenly it stopped working.

I did blow the installation away and started again (unrelated issue)
the other day and the touchpad is working much as it was before. I
don't have my specific Xorg config in front of me as the missus has
stolen the laptop today unfortunately, however I've flagged this
thread so I'll attach it and send it over to you tonight.


Thanks I appreciate it. With my machine I can get the 1280x800 mode using 
915resolution hack and I do have a mouse if I drop the touchpad entirely (from 
loader.conf and xorg.conf) and use moused_enable=YES in rc.conf. For whatever 
reason the synaptics stuff is a bit flaky on my machine as I have had a couple 
of forced reboots with hw.psm.synaptics_support=1.


If all else fails I will try and do the new 7.2 Xorg build from scratch.

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Roland Smith
On Wed, Jun 06, 2007 at 12:00:59PM -0400, Richard Coleman wrote:
  I am running a mail server using Postfix and Dovecot.  I would like to hear 
  people's recommendation for which port to use to add server side anti-spam.  
  The problem these days is a richness of choices, so it's hard to know port 
  which to try.
 
  And call it a quirk of mine, but I really dislike (server) software with a 
  large number of dependencies.  That rules out Spam Assassin.  But I am 
  fairly conversant with mail and Postfix/Dovecot in general, so I don't mind 
  any integration work.

Bogofilter works very well, after you've trained it with some spam 
ham. You can get a head start by starting from someone else's wordlist.

But I'm running it from procmail on my mail only.  I've never bothered
to integrate it into postfix.

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)


pgprTTKB3GExr.pgp
Description: PGP signature


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Gabor Kovesdan

Richard Coleman escribió:
I am running a mail server using Postfix and Dovecot.  I would like to 
hear people's recommendation for which port to use to add server side 
anti-spam.  The problem these days is a richness of choices, so it's 
hard to know port which to try.


And call it a quirk of mine, but I really dislike (server) software 
with a large number of dependencies.  That rules out Spam Assassin.  
But I am fairly conversant with mail and Postfix/Dovecot in general, 
so I don't mind any integration work.


I apologize if this has been discussed before, but I just joined the 
list (I am already on so many FreeBSD lists already).  I appreciate 
any insight that people can offer.



Hello Richard,

I think the most common (and thus more mature) solution for this are 
amavisd-new + SpamAssassin + clamav, they have a lot of dependencies, 
though. Clamav catches all the viruses, just the spams had caused 
problems with this configuration, before I started to use postgrey.


I see your concerns about dependencies, but I think sometimes we have to 
make sacrifices for the most appropriate choice. This also applies to 
the next solution I recommend you and this is greylisting with postgrey. 
It does not have too much dependency, but it works in a way, that you 
can loose important mails as well.


The concept of greylisting is that the server responds to the sender 
with an error code meaning a temporary failure and places the sender to 
a list called greylist when a mail is being sent. After some minutes (5 
or so), well-configured STMP servers resend the mail, when your server 
notices, that the given server was greylisted, and now it can be 
trusted. Spam bots don't usually resend mails, they are too primitive 
for this atm. It can change in the future, but for now, the method 
works, it's been very well for me. The only problem is that there are 
STMP server that are configured in a weird way and they don't send out 
mails later again. Postgrey offers a solution, though. You can place 
such servers to a whitelist and they will be excluded from the greylisting.


I have heard good experiences about dspam as well, but haven't used it, 
thus I can't form any opinion.


Regards,

--
Gabor Kovesdan
FreeBSD Volunteer

EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED]
WEB:   http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org

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


Re: How to mount USB key

2007-06-06 Thread Mike Jeays
On Wednesday 06 June 2007 12:57, Oscar Chavarria wrote:
 I want to copy files to it. I introduced the key and was recognized as da0.

 I did ls dev/da0 == dev/da0

 Then

 mount /dev/da0 /home == incorrect super block.

 Thank you in advance for any help.

If it is a DOS-format device, you need to say
mount -t mdsos /dev/da0 /mnt
or maybe
mount -t msdos /dev/da0s1 /mnt


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


Re: How to mount USB key

2007-06-06 Thread Roland Smith
On Wed, Jun 06, 2007 at 10:57:57AM -0600, Oscar Chavarria wrote:
  I want to copy files to it. I introduced the key and was recognized as da0.
 
  I did ls dev/da0 == dev/da0
 
  Then
 
  mount /dev/da0 /home == incorrect super block.

You're trying to mount the drive as a UFS filesystem; this is the
default for mount.

Are there no other devices starting with da0? Because usually USB
keydrives are partitioned and then the first partition is formatted as
FAT32. So you probably want /dev/da0s1, or sometimes /dev/da0s4 if it exists.

It is also not a good idea to mount on /home, because it will mask your
home directory.

If you want to mount a disk as a normal user instead of root, there are
some things that need to be set up correctly, see below.

It's better to use something like:

mount_msdosfs -m 644 -M 755 -o noatime,noexec,nosuid,sync /dev/da0s1 /mnt/mydir

I've written a small shell script to do this for me;


#!/bin/sh
# Mount a thumbdrive with a MSDOS filesystem
DIR=/mnt/$USER
DEV=/dev/da0s1

# It is assumed that $DIR exists, and is owned by $USER.

# Check if $DIR is already used.
if mount|grep $DIR /dev/null; then
echo $DIR is already mounted!
exit 1;
fi

# Check if $DEV is available.
if ! ls $DEV /dev/null 21; then
echo $DEV does not exist!
exit 1;
fi

# Everything OK, try to mount.
mount_msdosfs -m 644 -M 755 -o noatime,noexec,nosuid,sync $DEV $DIR


N.B.:
- /mnt/$USER should be an existing directory, and that you should be
  it's owner. 
- the script will fail if there is already an USB disk attached. 
  (it should use da1s1 in that case)
- the sysctl vfs.usermount should be set to 1 to allow normal users to
  mount filesystems
- the permissions on the /dev/da0 device whould be set such as to allow
  you access. See http://www.xs4all.nl/~rsmith/freebsd/index.html#devfs

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)


pgpNOKFvItepo.pgp
Description: PGP signature


Re[2]: problem compiling xorg 7.2

2007-06-06 Thread Ghirai
Hello Garrett,

Wednesday, June 6, 2007, 5:04:22 AM, you wrote:

 Norberto Meijome wrote:
 On Tue, 5 Jun 2007 10:57:53 -0300
 Anton Galitch [EMAIL PROTECTED] wrote:

   
 I had xorg 6.9 installed, after trying to upgrade it with portupgrade I
 deinstalled it and now want to install it from scratch.
 My portmanager program works strange thats why I cant install it usin
 /usr/ports/UPDATING.
 Do you know any other way of installing it using another tools??
 

 no, use portupgrade as per the UPDATING doc, even if it is,effectively, a 
 'new' install 

 _
 {Beto|Norberto|Numard} Meijome

 Produce great people, the rest will follow.
   Elbert Hubbard

 I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
 Reading disclaimers makes you go blind. Writing them is worse. You have
 been Warned.
   
 If it's a clean install of X11 / complete system, you can get away
 with doing the standard make install in the ports directories you want.
 The only thing that you need to do is export / setenv XORG_UPGRADE=yes
 like UPDATING states.
 For upgrades, yeah stick with a supported tool (currently only 
 portupgrade-devel and portmaster I believe).
 -Garrett

As a side note, i used portupgrade, not portupgrade-devel.
I got a few ports reported as failed, but it turned out they were ok.

They only thing i needed to do was to change the path of the modules
in xorg.conf, to reflect the new location.

-- 
Best regards,
Ghirai.

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


Re: Security Run Output Setuid Differences

2007-06-06 Thread Roland Smith
On Tue, Jun 05, 2007 at 04:11:24PM -0700, Peter Pluta wrote:
 mail.***.net setuid diffs:
 --- /var/log/setuid.today Mon May 21 03:02:30 2007
 +++ /tmp/security.wq6BsVcrSun Jun  3 03:01:48 2007
 @@ -20,7 +20,7 @@
  377398 -r-sr-xr-x  2 root  wheel  5828 Jul 30 16:19:57 2006
 /usr/bin/yppasswd
  71112 -rwsr-xr-x  1 root  wheel 285580 May 20 18:23:48 2007
 /usr/local/bin/screen
  70971 -rwxr-sr-x  1 root  kmem  112708 May 20 18:23:03 2007
 /usr/local/sbin/lsof
 -73170 -rwxr-sr-x  1 root  maildrop  142559 May 17 14:41:47 2007
 /usr/local/sbin/postdrop
 -73204 -rwxr-sr-x  1 root  maildrop  152477 May 17 14:41:47 2007
 /usr/local/sbin/postqueue
 +71432 -rwxr-sr-x  1 root  maildrop  142559 Jun  2 15:47:54 2007
 /usr/local/sbin/postdrop
 +71433 -rwxr-sr-x  1 root  maildrop  152477 Jun  2 15:47:54 2007
 /usr/local/sbin/postqueue
  923168 -rwxr-sr-x  1 root  smmsp   5236 Jul 30 16:20:07 2006
 /usr/sbin/mailwrapper
  923264 -r-sr-x---  1 root  network11636 Jul 30 16:20:07 2006
 /usr/sbin/sliplogin
 
 I have some more, I'm starting to understand it a bit better. Basically the
 user:group id number has changed and the security run is letting me know.
 Good deal, but im still confused as to what the @@ -20,7 + 20,7 @@ and + -
 mean. Can anyone explain those? I'm curious, also why would yppasswd change
 to userid 2? I changed roots name yesterday, could that be the cause of it?

Those are a normal part of the output of the diff(1) program that generates
this.

Basically, the script /etc/periodic/security/100.chksetuid makes a list
of all setiud or setgid binaries. This list is compared with the
previous list by the diff(1) program, which shows the differences.

If you have a text file lying around, make a copy of it and change a
couple of lines in the copy. Then do 'diff -u originalfile newfile' and
you'll see how it works.

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)


pgpaXqXRVHsG6.pgp
Description: PGP signature


Re: share my experience: highlight parts of a text file that matches a regular expression

2007-06-06 Thread Eric F Crist

that worked great! thanks!

On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote:


于 Wed, 6 Jun 2007 11:16:17 -0500
Eric F Crist [EMAIL PROTECTED] 写道:

 That's great!  One question, how do I make it highlight the entire
 line, rather than the searched-for text?

Guess would be:
$ my_app | grep --color=auto -e '.*regexp.*' -e '$'

Add '.*' before and after your regular expression


 Thanks!

 Eric Crist


 On 6/6/07, Zhang Weiwu [EMAIL PROTECTED] wrote:
 
  Dear list
 
  I'd like to highlight part of output of one application that
  matches a regular expression. First I thought this is simple:
 
  $ my_app | grep --color=auto 'regexp'
 
  This method have a big problem that lines doesn't match regexp is
  not displayed, in my case I want all output of my_app being
  displayed, only the matching part highlighted.
 
  First I thought grep might have a parameter to output everything it
  receive, and it seems it doesn't. And I discovered I can use '-e'
  parameter for this purpose:
 
  $ my_app | grep --color=auto -e 'regexp' -e '$'
 
  The second -e makes all line matched.
 
  Maybe useful for some newbies.
  --
  Zhang Weiwu
  Real Softservice
  http://www.realss.com
  +86 592 2091112
 
  ___
  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]


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


Re: rdesktop: segmentation fault under xorg 7.2

2007-06-06 Thread Laszlo Nagy

Jan Henrik Sylvester wrote:

[EMAIL PROTECTED] wrote:

On Tue, 5 Jun 2007, Jan Henrik Sylvester wrote:


For me, rdesktop works -- I have all my ports upgraded...


ldd `which rdesktop` says?


/usr/local/bin/rdesktop:
libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a9000)
libX11.so.6 = /usr/local/lib/libX11.so.6 (0x2819c000)
libc.so.6 = /lib/libc.so.6 (0x28282000)
libXau.so.6 = /usr/local/lib/libXau.so.6 (0x28367000)
libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x2836a000)
librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x2836f000)

Jan Henrik

For me, this is a bit different:

%ldd `which rdesktop`
/usr/local/bin/rdesktop:
   libcrypto.so.4 = /lib/libcrypto.so.4 (0x280a)
   libX11.so.6 = /usr/local/lib/libX11.so.6 (0x28193000)
   libc.so.6 = /lib/libc.so.6 (0x28279000)
   libXau.so.6 = /usr/local/lib/libXau.so.6 (0x2835e000)
   libXdmcp.so.6 = /usr/local/lib/libXdmcp.so.6 (0x28361000)
   librpcsvc.so.3 = /usr/lib/librpcsvc.so.3 (0x28366000)

Although the file names are the same. Is this a problem?

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread David Kelly
On Wed, Jun 06, 2007 at 07:15:09PM +0200, Roland Smith wrote:
 On Wed, Jun 06, 2007 at 12:00:59PM -0400, Richard Coleman wrote:
   I am running a mail server using Postfix and Dovecot.  I would like to 
  hear 
   people's recommendation for which port to use to add server side 
  anti-spam.  
   The problem these days is a richness of choices, so it's hard to know port 
   which to try.
  
   And call it a quirk of mine, but I really dislike (server) software
   with a large number of dependencies.  That rules out Spam Assassin.
   But I am fairly conversant with mail and Postfix/Dovecot in
   general, so I don't mind any integration work.
 
 Bogofilter works very well, after you've trained it with some spam 
 ham. You can get a head start by starting from someone else's wordlist.

Yes, works very well for me too. Am running it in parallel with other
spam filters and find if I was to have only one spam filter it would be
bogofilter. Found SpamAssassin to be very resource intensive and its
processing (lookup time) slow.

Bogofilter is lean and effective. Only negative is that it needs to be
trained.

 But I'm running it from procmail on my mail only.  I've never bothered
 to integrate it into postfix.

Would be very handy if someone were to make a port of scripts with
something like ADD_SPAM, NOT_SPAM, and SPAM folders under IMAP to drive
bogofilter remotely from an email client. Train as spam messages placed
in ADD_SPAM and then move them into something like ADDED_SPAM. Have
bogofilter place found spam in SPAM, user puts falses in NOT_SPAM.
Scripts train bogofilter on contents of NOT_SPAM and put in something
like NOT_SPAMMED. Users may clean out SPAM, ADDED_SPAM, and NOT_SPAMMED
as they fill. The point is to never throw anything away with the
scripts.

Then on top of that one ought to have some means of global spam filter
database in addition to per-user databases.

This is such a good idea am sure somebody has done it already, I just
don't know where.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Rob

Richard Coleman wrote:
hear people's recommendation for which port to use to add server side 
anti-spam.  The problem these days is a richness of choices, so it's 


I outsourced ours to AppRiver http://www.appriver.com/  It's not in the unix roll 
your own spirit, but:
* it works very well
* is more cost-effective than messing with it myself
* also intercepts viruses and some email mal-ware
* Has nice email  web interfaces for administration and end users, further 
reducing in-house labor to deal with the crap.

You just change your MX records to point to their servers, they filter your stuff and 
forward it to you.  Also keeps the junk from cutting into your bandwidth.  With the 
pay the whole year in advance discount, I think we paid around $480 for up to 
50 users (min they offer).  We only use a small fraction of that, but it's still worth it.

 -RW

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


unscribe

2007-06-06 Thread Sherry Zhang

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Philip Hallstrom
I am running a mail server using Postfix and Dovecot.  I would like to hear 
people's recommendation for which port to use to add server side anti-spam. 
The problem these days is a richness of choices, so it's hard to know port 
which to try.


And call it a quirk of mine, but I really dislike (server) software with a 
large number of dependencies.  That rules out Spam Assassin.  But I am fairly 
conversant with mail and Postfix/Dovecot in general, so I don't mind any 
integration work.


I apologize if this has been discussed before, but I just joined the list (I 
am already on so many FreeBSD lists already).  I appreciate any insight that 
people can offer.


I like the policyd-weight postfix filter... it sums up a score based on 
several conditions that you can set (dnsbl, bad smtp protocol, etc.) 
caches, results for those that hit you constantly, etc.  I probably get 
2-3 spam a day max.  Used to get 30-40.  And it does it all before 
accepting the message body which is nice.


You can also tell it just to put in a x-header with a score and pass it 
along untouched so users can do what they want using that info.


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


Re[2]: Xorg crashes while loading XFCE4

2007-06-06 Thread Gerard
On Wednesday June 06, 2007 at 01:03:21 (PM) Derek Ragona wrote:

[snip]

 Looks like the above is the fatal error.  I suspect you rebuilt xfwm4 for 
 shared memory, shmget.  You need to add this to your kernel, or rebuild 
 xfwm4 not to use it, if that's possible.

OK, how do I get 'shmget' activated in the kernel. I cannot find any
reference to it in the 'GENERIC' kernel file. Where else could I look
for information on it? I tried Googling, but got nowhere.


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


Re: FreeBSD CURRENT 7.x

2007-06-06 Thread Kris Kennaway
On Wed, Jun 06, 2007 at 10:24:59AM +, Outback Dingo wrote:
 The past few days ive been getting errors and sluggishness on a system
 with both sk and msk chips in it. Any idea how to track this down or whats
 changed that has affected the performance of these cards ?? Noticed also its
 two different errors. These cards we functioning fine. Help appreciated,
 Thanks in advance

Did you remember to turn off the debugging features (witness, etc)?

 The application is lighttpd on port 80. kernel is pretty generic with pf
 enabled
 
 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jun  6 03:50:46 PHT 2007
 
 TCP: [xxx.xxx.xxx.xxx]:2400 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
 syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
 (probably spoofed)
 TCP: [xxx.xxx.xxx.xxx]:12236 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
 tcp_input: Listen socket: Spurious RST, segment rejected

These are indications of bugs in TCP in 7.0, hopefully they will be
fixed soon.  If the debugging is not your problem this might cause
poor TCP performance on those particular connections.

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


Re: FreeBSD CURRENT 7.x

2007-06-06 Thread Kris Kennaway
On Wed, Jun 06, 2007 at 02:06:13PM +0300, Abdullah Ibn Hamad Al-Marri wrote:
 On 6/6/07, Outback Dingo [EMAIL PROTECTED] wrote:
 The past few days ive been getting errors and sluggishness on a system
 with both sk and msk chips in it.
 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Jun  6 03:50:46 PHT 2007
 
 TCP: [xxx.xxx.xxx.xxx]:2400 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x11FIN,ACK;
 syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
 (probably spoofed)
 TCP: [xxx.xxx.xxx.xxx]:12236 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
 tcp_input: Listen socket: Spurious RST, segment rejected
 TCP: [xxx.xxx.xxx.xxx]:3694 to [xxx.xxx.xxx.xxx]:80 tcpflags 0x4RST;
 tcp_input: Listen socket: Spurious RST, segment rejected
 TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags
 0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
 segment rejected (probably spoofed)
 TCP: [xxx.xxx.xxx.xxx]:10376 to [xxx.xxx.xxx.xxx]:80 tcpflags 
 0x11FIN,ACK;
 syncache_expand: Segment failed SYNCOOKIE authentication, segment rejected
 (probably spoofed)
 TCP: [xxx.xxx.xxx.xxx]:15377 to [xxx,xxx.xxx.xxx]:80 tcpflags
 0x18PUSH,ACK; syncache_expand: Segment failed SYNCOOKIE authentication,
 segment rejected (probably spoofed)
 
 This has been fixed by the FreeBSD Commiter Attilio Rao.

I think you are mistaken.

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


Re[2]: Xorg crashes while loading XFCE4

2007-06-06 Thread Derek Ragona

At 02:40 PM 6/6/2007, Gerard wrote:

On Wednesday June 06, 2007 at 01:03:21 (PM) Derek Ragona wrote:

[snip]

 Looks like the above is the fatal error.  I suspect you rebuilt xfwm4 for
 shared memory, shmget.  You need to add this to your kernel, or rebuild
 xfwm4 not to use it, if that's possible.

OK, how do I get 'shmget' activated in the kernel. I cannot find any
reference to it in the 'GENERIC' kernel file. Where else could I look
for information on it? I tried Googling, but got nowhere.


Add to your kernel config file:
options SYSVSHM #SYSV-style shared memory
options SYSVMSG #SYSV-style message queues
options SYSVSEM #SYSV-style semaphores

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


Re[3]: Xorg crashes while loading XFCE4

2007-06-06 Thread Gerard
On Wednesday June 06, 2007 at 03:57:00 (PM) Derek Ragona wrote:

[snip]

 Add to your kernel config file:
 options SYSVSHM #SYSV-style shared memory
 options SYSVMSG #SYSV-style message queues
 options SYSVSEM #SYSV-style semaphores

That is what I thought. They are present in the file. I am on version
P5 right now. I will try rebuilding the kernel again later tonight.
Perhaps the update to Xorg-7.2 caused something to break, although I
have no idea how.

Thanks!

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Thanos Rizoulis

O/H Philip Hallstrom έγραψε:
I am running a mail server using Postfix and Dovecot.  I would like 
to hear people's recommendation for which port to use to add server 
side anti-spam. The problem these days is a richness of choices, so 
it's hard to know port which to try.
How you looked into assp? It looks like a good all-arround solution. I 
say looks like because I have only installed it.


Port:   assp-1.2.6
Path:   /usr/ports/mail/assp
Info:   Anti-Spam SMTP Proxy
Maint:  [EMAIL PROTECTED]

WWW:http://assp.sourceforge.net/




--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user

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


Re[3]: Xorg crashes while loading XFCE4

2007-06-06 Thread Derek Ragona

At 03:03 PM 6/6/2007, Gerard wrote:

On Wednesday June 06, 2007 at 03:57:00 (PM) Derek Ragona wrote:

[snip]

 Add to your kernel config file:
 options SYSVSHM #SYSV-style shared memory
 options SYSVMSG #SYSV-style message queues
 options SYSVSEM #SYSV-style semaphores

That is what I thought. They are present in the file. I am on version
P5 right now. I will try rebuilding the kernel again later tonight.
Perhaps the update to Xorg-7.2 caused something to break, although I
have no idea how.


I had to do the update, per /usr/ports/UPDATING then reinstalled all of the 
xorg meta port.  I had library problems where some of the X bits were built 
with the wrong libaries.


-Derek

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Roland Smith
On Wed, Jun 06, 2007 at 01:21:58PM -0500, David Kelly wrote:
  Bogofilter works very well, after you've trained it with some spam 
  ham. You can get a head start by starting from someone else's wordlist.

BTW, I'd be happy to share my wordlist. At ≈12MB it's kinda large though.

 Yes, works very well for me too. Am running it in parallel with other
 spam filters and find if I was to have only one spam filter it would be
 bogofilter. Found SpamAssassin to be very resource intensive and its
 processing (lookup time) slow.
 
 Bogofilter is lean and effective. Only negative is that it needs to be
 trained.
 
  But I'm running it from procmail on my mail only.  I've never bothered
  to integrate it into postfix.
 
 Would be very handy if someone were to make a port of scripts with
 something like ADD_SPAM, NOT_SPAM, and SPAM folders under IMAP to drive
 bogofilter remotely from an email client. Train as spam messages placed
 in ADD_SPAM and then move them into something like ADDED_SPAM. Have
 bogofilter place found spam in SPAM, user puts falses in NOT_SPAM.
 Scripts train bogofilter on contents of NOT_SPAM and put in something
 like NOT_SPAMMED. Users may clean out SPAM, ADDED_SPAM, and NOT_SPAMMED
 as they fill. The point is to never throw anything away with the
 scripts.

I've defined two macros in Mutt; for training bogofilter to see a
message as Ham or Spam;

macro index S enter-commandunset wait_key\n\
pipe-entrybogofilter -Ns\n\
enter-commandset wait_key\n\
delete-message requalify and delete message as spam

macro index H enter-commandunset wait_key\n\
pipe-entrybogofilter -Sn\n\
enter-commandset wait_key\n requalify message as non-spam

This is for my personal database, of course. 

But if users can send spam to a special mailbox, it should not be too hard to
run that through bogofilter as training material in a cron-job.

 Then on top of that one ought to have some means of global spam filter
 database in addition to per-user databases.

That is possible. Look at the bogofilter FAQ.

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)


pgpwDFFuikIRh.pgp
Description: PGP signature


Re: startup / shutdown script (rc.d)

2007-06-06 Thread Jerry McAllister
On Tue, Jun 05, 2007 at 11:00:07PM -0700, gmoniey wrote:


 as my luck would have it...this didn't work...i used your script...test it by
 running ./rtest start  ./rtest stop and everything worked fine (note: i
 changed the name from rails to rtest as rails is an actual command)...

 but when i rebooted nothing happened. I had the output dump to file and the
 file was empty upon restart, which makes me believe it never actually ran..

You didn't even see the output from the echo command?
Try sticking one in before the case statement so it would always run
regardless of start or stop.


 Side Note: Jerry, the mongrel_rails command does spew some output, which is
 why i dump it to file...

OK.   But do you know whether it writes that output to STDOUT
or maybe to STDERR.If it is STDERR you will need a little
different syntax than  ''  Something like   '21 ' filename

 i even added the line rtest_enable=YES in my /etc/rc.conf file and
 rebooted, but still no luck

 thanks for your help fellas...i'll keep reading up as you suggested...


Just as a test, I made the following sample script and named it   chkrc.sh
and put it in /usr/local/etc/rc.d  with execute permission.
It works just fine running from command line or as part of boot
or shutdown.You might try it as proof of concept and go from
there.Don't include the lines of dashes I put to deliminate it.
Start with the #!/bin/sh line and end with the blank echo line.

jerry


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
#!/bin/sh

echo  Entering chkrc -- at: `date`   /tmp/chkrc.log

case $1 in
start) 
  echo   + running chkrc.sh with a start argument  /tmp/chkrc.log 
  ;;
stop) 
  echo   - Running chkrc.sh with a stop argument  /tmp/chkrc.log 
  ;;
*)  
  echo Calling args for chkrc.sh are start and stop  /tmp/chkrc.log 
;;
esac

echo  Leaving chkrc -- at `date`  /tmp/chkrc.log
echo/tmp/chkrc.log
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  


 ___
 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]


Virtualization of FreeBSD

2007-06-06 Thread Sean Murphy
Is anyone running virtualization of FreeBSD servers on VMware or other 
virtualization software?  What experiences have you had, good or bad?

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


Re: Virtualization of FreeBSD

2007-06-06 Thread Maxim Khitrov

On 6/6/07, Sean Murphy [EMAIL PROTECTED] wrote:

Is anyone running virtualization of FreeBSD servers on VMware or other
virtualization software?  What experiences have you had, good or bad?


At home I run have several FreeBSD installs running on Windows 2003
VMWare Server. The only reason I'm doing this is because FreeBSD
doesn't support my raid controller, so I'm stuck with windows.

Overall it works fine. However, you do have terrible disk (and to a
lesser extent network) performance. I use these installs mostly for
developing and testing software, so it's not a big deal for me. Here
are a few tips for getting the most out of a FreeBSD server on VMWare
(this is for Windows only):

- If you have enough memory, add prefvmx.minVmMemPct = 100 and
prefvmx.useRecommendedLockedMemSize = TRUE to VMWare config.ini (App
Data under All Users). That will keep all the VM memory in ram instead
of swapping it to the disk. The rest of the settings go into your
FreeBSD.vmx file.

- Disable named memory file: mainMem.useNamedFile = FALSE

- Disable page sharing: sched.mem.pshare.enable = FALSE

- Disable memory trimming: MemTrimRate = 0

- Be sure to use Intel gigabit network adapter: ethernet0.virtualDev = e1000

In previous versions of VMWare Server you had to configure your
kern.hz sysctl to be 100. Otherwise your clock would run very slow. I
think they fixed it in the latest version, but just keep that in mind.

Disk performance is quite bad. For example, doing a full extract of
the ports tree takes my server around 16 minutes. On my old laptop
with a crappy hard drive it takes only 8 or so minutes. So that's
something to keep in mind, you're not going to be able to use VMs as a
file server. For most other uses it works fine.

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


problems installing 6.2 on Dell Dimension 4100

2007-06-06 Thread S Parrish

Hello,

I am new to FreeBSD and am trying to install 6.2 on a Dell Dimension 4100.

After I get to the Welcome to FreeBSD! screen and press enter, I see the 
following:


/boot/kernel/acpi.ko text=0x43698 data=0x23c0+0x10f0 
syms=[0x4+0x7ba0+0x4+0xa828]

\

The second line is the position of the twirling baton when the system 
hangs.  There is also a white bar after the baton that extends to the right 
hand side of my display.  I am not using any hardware that I would consider 
to be unusual.


1GHz Pentium III processor
512 MB RAM
2) 80GB Western Digital IDE hard drives
3.5 inch floppy drive
Sony IDE DVD-ROM drive
(not sure of brand, came with the Dell) IDE CD-RW drive
Nvidia Ge-Force III video adapter with 128 MB ram (AGP)
D-Link 10/100 Ethernet card (PCI)
D-Link WiFi card (PCI)
Creative Soundblaster Live sound card (PCI)
3-port Firewire card
USB 1.1 built into MB
PS/2 keyboard
USB mouse

I have tried disabling everything possible in the BIOS as well as removing 
every card, with the exception of the video card.  I still get the same 
results.  I've tried every possible combination of primary/slave for both 
hard drives and CD/DVD drives.  Still no luck.


I have tried disabling ACPI to no avail.

I have also tried FreeBSD 5.5 and PC-BSD 1.3.01 and get the same 
resultssystem hangs.  Note that I have been able to successfully install 
a number of Linux distros (including Mandrake, Fedora, Suse, Ubuntu, and 
Debian) on this box previously with no problems.
Note that I *can* get to the loader prompt by selecting option 6 in the 
welcome screen menu.  However, every other option in the menu results in a 
system hang.


Has anyone ever run across anything like this?  I've been working on this 
for 3 days and am at wit's end.  Any help is greatly appreciated!


Thanks,

-W

_
Don’t miss your chance to WIN $10,000 and other great prizes from Microsoft 
Office Live http://clk.atdmt.com/MRT/go/aub0540003042mrt/direct/01/


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


RE: GEOM/GELI Boot Disk Encryption

2007-06-06 Thread Bob
What is this virtual machine created with  qemu you talk about?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Roland Smith
Sent: Wednesday, June 06, 2007 1:01 PM
To: Eric F Crist
Cc: freebsd-questions@freebsd.org
Subject: Re: GEOM/GELI Boot Disk Encryption

On Wed, Jun 06, 2007 at 07:28:48AM -0500, Eric F Crist wrote:
  Hey folks,

  I'm trying to take a system that already has a running freebsd system (or
I
  can start over), and make the entire system encrypted.  I've found
  instructions (freebsd manual) for creating secondary disks, but not the
boot
  disk in particular.

  Can anyone point me in the right direction?

The /boot directory must not be encrypted, so you need to put that on a
separate slice.

As for the rest, maybe the following thread will help you;
http://lists.freebsd.org/pipermail/freebsd-geom/2006-July/001401.html

The thing is that sysinstall doesn't support creating encrypted disks,
so during install, you'd have to initialize and mount the encrypted
slices manually, and then resume sysinstall.

Personally, I wouldn't bother encrypting anything but your own data,
i.e. /home. And for backup purposes it's better to make a seperate slice
for that anyway. Disk encryption is only usefull when your disk is
stolen; as long as the disk is mounted, the data is readable (if
permissions allow) anyway.

If your /home is already a separate slice, back up your data, unmount
/home and encrypt it according to geli(8). Mount your encrypted drive
and restore your backup.

A good idea might be to create a virtual machine with e.g. qemu, and
practice on that before you screw up anything important. :-)

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)

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


Re: problems installing 6.2 on Dell Dimension 4100

2007-06-06 Thread Modulok

On 6/6/07, S Parrish [EMAIL PROTECTED] wrote:


I am new to FreeBSD and am trying to install 6.2 on a Dell Dimension 4100.

After I get to the Welcome to FreeBSD! screen and press enter, I see the
following:

/boot/kernel/acpi.ko text=0x43698 data=0x23c0+0x10f0
syms=[0x4+0x7ba0+0x4+0xa828]
\

The second line is the position of the twirling baton when the system
hangs

1GHz Pentium III processor
512 MB RAM
2) 80GB Western Digital IDE hard drives
3.5 inch floppy drive
Sony IDE DVD-ROM drive
(not sure of brand, came with the Dell) IDE CD-RW drive
Nvidia Ge-Force III video adapter with 128 MB ram (AGP)
D-Link 10/100 Ethernet card (PCI)
D-Link WiFi card (PCI)
Creative Soundblaster Live sound card (PCI)
3-port Firewire card
USB 1.1 built into MB
PS/2 keyboard
USB mouse

I have tried disabling everything possible in the BIOS as well as removing
every card, with the exception of the video card.  I still get the same
results.  I've tried every possible combination of primary/slave for both
hard drives and CD/DVD drives.  Still no luck.

I have tried disabling ACPI to no avail.

I have also tried FreeBSD 5.5 and PC-BSD 1.3.01 and get the same
resultssystem hangs.  Note that I have been able to successfully install
a number of Linux distros (including Mandrake, Fedora, Suse, Ubuntu, and
Debian) on this box previously with no problems.
Note that I *can* get to the loader prompt by selecting option 6 in the
welcome screen menu.  However, every other option in the menu results in a
system hang.

Has anyone ever run across anything like this?  I've been working on this
for 3 days and am at wit's end.  Any help is greatly appreciated!

Thanks,



On the up side, yes. I have a toshiba laptop (I forget the model
number, and it's not with me at the moment) and it does the same
thing. The only thing I didn't try, is to attempt an install with a
stripped custom kernel.

On the down side, I haven't gotten back to that project (among
others), so I have yet to get it to work. In the mean time I installed
Debian Sarge (though I still use FreeBSD on my main workstation). So,
ummyou're not alone...if that helps?

Sorry. Maybe someone else has some sage-like advice?
-Modulok-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Virtualization of FreeBSD

2007-06-06 Thread Jonathan Horne
On Wednesday 06 June 2007 19:11:16 Maxim Khitrov wrote:
 On 6/6/07, Sean Murphy [EMAIL PROTECTED] wrote:
  Is anyone running virtualization of FreeBSD servers on VMware or other
  virtualization software?  What experiences have you had, good or bad?

 At home I run have several FreeBSD installs running on Windows 2003
 VMWare Server. The only reason I'm doing this is because FreeBSD
 doesn't support my raid controller, so I'm stuck with windows.

 Overall it works fine. However, you do have terrible disk (and to a
 lesser extent network) performance. I use these installs mostly for
 developing and testing software, so it's not a big deal for me. Here
 are a few tips for getting the most out of a FreeBSD server on VMWare
 (this is for Windows only):

 - If you have enough memory, add prefvmx.minVmMemPct = 100 and
 prefvmx.useRecommendedLockedMemSize = TRUE to VMWare config.ini (App
 Data under All Users). That will keep all the VM memory in ram instead
 of swapping it to the disk. The rest of the settings go into your
 FreeBSD.vmx file.

 - Disable named memory file: mainMem.useNamedFile = FALSE

 - Disable page sharing: sched.mem.pshare.enable = FALSE

 - Disable memory trimming: MemTrimRate = 0

 - Be sure to use Intel gigabit network adapter: ethernet0.virtualDev =
 e1000

 In previous versions of VMWare Server you had to configure your
 kern.hz sysctl to be 100. Otherwise your clock would run very slow. I
 think they fixed it in the latest version, but just keep that in mind.

 Disk performance is quite bad. For example, doing a full extract of
 the ports tree takes my server around 16 minutes. On my old laptop
 with a crappy hard drive it takes only 8 or so minutes. So that's
 something to keep in mind, you're not going to be able to use VMs as a
 file server. For most other uses it works fine.

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

i too used to run 4 FreeBSDs in VMware server, they ran great for me, i ran 2 
DNS servers, an apache server, and a sendmail server.  performance was 
acceptable.  my VMware host was suse 10.1.

sean, you might also take a look at jails for freebsd.  conceptually, its a 
lot like virtualization, altho it does have its differences.  once you get 
your jails up and running, you really wouldnt know the difference, and 
performance is basically as fast as the host computer can go.

cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
[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: Virtualization of FreeBSD

2007-06-06 Thread Maxim Khitrov

On 6/6/07, Mikel King [EMAIL PROTECTED] wrote:

 On 6/6/07, Sean Murphy [EMAIL PROTECTED] wrote:
 Is anyone running virtualization of FreeBSD servers on VMware or
 other
 virtualization software?  What experiences have you had, good or bad?

 At home I run have several FreeBSD installs running on Windows 2003
 VMWare Server. The only reason I'm doing this is because FreeBSD
 doesn't support my raid controller, so I'm stuck with windows.

 Overall it works fine. However, you do have terrible disk (and to a
 lesser extent network) performance. I use these installs mostly for
 developing and testing software, so it's not a big deal for me. Here
 are a few tips for getting the most out of a FreeBSD server on VMWare
 (this is for Windows only):

 - If you have enough memory, add prefvmx.minVmMemPct = 100 and
 prefvmx.useRecommendedLockedMemSize = TRUE to VMWare config.ini (App
 Data under All Users). That will keep all the VM memory in ram instead
 of swapping it to the disk. The rest of the settings go into your
 FreeBSD.vmx file.

 - Disable named memory file: mainMem.useNamedFile = FALSE

 - Disable page sharing: sched.mem.pshare.enable = FALSE

 - Disable memory trimming: MemTrimRate = 0

 - Be sure to use Intel gigabit network adapter:
 ethernet0.virtualDev = e1000

 In previous versions of VMWare Server you had to configure your
 kern.hz sysctl to be 100. Otherwise your clock would run very slow. I
 think they fixed it in the latest version, but just keep that in mind.

 Disk performance is quite bad. For example, doing a full extract of
 the ports tree takes my server around 16 minutes. On my old laptop
 with a crappy hard drive it takes only 8 or so minutes. So that's
 something to keep in mind, you're not going to be able to use VMs as a
 file server. For most other uses it works fine.

 - Max

Maxim,

Thanks for this useful info. Where ever did you come across this?

Ever observe any oddities in the Windows SysLogs regarding LAN
adapter errors?

Cheers,
Mikel


You mean the info in general, or the e1000 part? I never had any
errors in my Windows sys log. However, if you use the default network
adapter you will have problems. I don't remember what the exact error
is, but I remember that when downloading the ports tree, for example,
it will periodically interrupt the transfer. Something about dropped
packets, or something else like that. Never had problems with e1000,
but the network only seems to perform at about 1/2 of what the host OS
can handle.

Most of those configuration options I just gathered over time of
reading the VMWare forums, people's blogs, and other places. The disk
problem is the only one I couldn't find a decent solution to. I tried
using IDE and SCSI disks, but the results are the same. If you read
the release notes for VMWare Server, you'll notice that they actually
don't claim FreeBSD 6.2 or 6.1 support, only 6.0. I never tested 6.0,
but I get the feeling that FreeBSD is in general not very high on
VMWare's to-support list. Maybe in the future they'll improve things.

Oh one more thing I forgot to mention. After you install FreeBSD,
install perl5.8 and then the VMWare tools. That will let you do a
clean shutdown of the system by using the off button on VMWare console
(more useful when the host OS is going down). However, the script that
comes by default with VMWare tools doesn't actually power down the
machine. Instead it does shutdown -h, so the thing keeps running. To
fix this, open /usr/local/etc/rc.d/vmware-tools.sh, do a search for
'--background' and on the next line add
'--halt-command /sbin/shutdown -p now'. That will allow the VM to
properly shutdown. Keep in mind that because VMWare tools depend on
the /proc system to know when it is running, doing things like
`vmware-tools.sh status` will not give you accurate information.
Instead use `top` to make sure 'vmware-guestd' is in there.

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


HP1320 PCL6

2007-06-06 Thread Alexander K. Beros

I am using lpd for printing.  I have no problems with text and PS files, but
when I try to use the hpdf filter, I get the following message (modulo the
numbers in the filename, of course)

dvilj2p: FATAL--dvilj2p: can't find DVI file dfhp2417.dvi

If you have some hint what I am overlooking I would be most grateful.

Best,
Alex Beros




http://www.154cm.com



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


Re: HP1320 PCL6

2007-06-06 Thread Nikola Lecic
Hello Alexander,

On Wed, 6 Jun 2007 18:22:23 -0700
Alexander K. Beros [EMAIL PROTECTED] wrote:

 I am using lpd for printing.  I have no problems with text and PS
 files, but when I try to use the hpdf filter, I get the following
 message (modulo the numbers in the filename, of course)
 
 dvilj2p: FATAL--dvilj2p: can't find DVI file dfhp2417.dvi
 
 If you have some hint what I am overlooking I would be most grateful.

What is the contents of your /etc/printcap?

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


Portupgrade error with multiple distinfo files

2007-06-06 Thread Warren Liddell
Quite a lrge portion of my packages are failing in portupgrade due to 
either the ports distinfo file apparently being out of date OR the 
pckage is spelt incorectly, when i had only just finished running a 
CVS to update it all... Below is a snippet of an error with 1 of the ports.


===


==  Vulnerability check disabled, database not found
= libXext-1.0.3.tar.gz is not in /usr/ports/x11/libXext/distinfo.
= Either /usr/ports/x11/libXext/distinfo is out of date, or
= libXext-1.0.3.tar.gz is spelled incorrectly.
*** Error code 1

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread doug

On Wed, 6 Jun 2007, Richard Coleman wrote:

I am running a mail server using Postfix and Dovecot.  I would like to hear 
people's recommendation for which port to use to add server side anti-spam. 
The problem these days is a richness of choices, so it's hard to know port 
which to try.


And call it a quirk of mine, but I really dislike (server) software with a 
large number of dependencies.  That rules out Spam Assassin.  But I am fairly 
conversant with mail and Postfix/Dovecot in general, so I don't mind any 
integration work.


I apologize if this has been discussed before, but I just joined the list (I 
am already on so many FreeBSD lists already).  I appreciate any insight that 
people can offer.


Richard Coleman
[EMAIL PROTECTED]


We use bogofilter both for our customers and internally. Initially we used 
bogofilter with SpamAssassin to try and alleviate the initial training required 
with bogofilter. On the hosting side we will probably drop SpamAssassin mostly 
because we have defined an initial filter for bogofilter that works acceptably 
well. Resource usage by SpamAssassin is not a problem for us.


For myself I use bogofilter with about 6-7 common sense procmail rules. Before 
adding greylisting I was getting about 600 spams/day to the various public email 
addresses I read. My procmail/bogofilter combination is much greater than 98% 
accurate. Greylisting reduced the spams presented to 100-200/day. It does not 
seem (in theory) it should do that well. I would have never tried greylisting 
except one of the FreeBSD developers told me the mailing lists were using it 
with good results.


As mentioned earlier, the biggest problem with bogofilter is training it.


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


Re: How to mount USB key

2007-06-06 Thread ajm
On Wed, Jun 06, 2007 at 01:21:56PM -0400, Mike Jeays wrote:
 On Wednesday 06 June 2007 12:57, Oscar Chavarria wrote:
  I want to copy files to it. I introduced the key and was recognized as da0.
 
  I did ls dev/da0 == dev/da0
 
  Then
 
  mount /dev/da0 /home == incorrect super block.
 
  Thank you in advance for any help.
 
 If it is a DOS-format device, you need to say
 mount -t mdsos /dev/da0 /mnt
 or maybe
 mount -t msdos /dev/da0s1 /mnt
 
 

In my /etc/sysctl.conf file I have the following:

---
# user mounts devices
vfs.usermount=1
---

In my /usr/local/etc/sudoers file I have the following:

---
# Defaults specification
Defaults env_reset
Defaults timestamp_timeout=0
Defaults tty_tickets
Defaults requiretty
Defaults passwd_timeout=1

# User privilege specification
alex  ALL=/sbin/umount,\
/sbin/mount_msdosfs
---

I have added user alex to the wheel group

To mount the device as regular user (alex), I created a sub-directory in
my home directory.  

In this example, my home directory is   alexand the 
sub-directory is mnt_drive

Execute the following to mount the drive...considering that /dev/da0 is 
the drive to mount.

sudo mount_msdosfs /dev/da0 /usr/home/alex/mnt_drive

Execute the following to un-mount the drive

sudo umount /usr/home/alex/mnt_drive

Hope it helps...

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


vmware3 cann't start up after upgrade xorg7.2

2007-06-06 Thread Pei Pjf
Hello list:
  I had a successful upgrade to xorg7.2, All works fine.
  but vmware3 can not startup,

  $ vmware
  Setting TMPDIR=/var/tmp.
  Unable to fix standard file descriptors.

  Before upgrade to xorg7.2, Vmware3 works well.
  I reinstall vmware3 from ports, but the problem is still
  there. I have googled, no value info find.

  Thanks in advice.

Pei

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


Re: Portupgrade error with multiple distinfo files

2007-06-06 Thread Kris Kennaway
On Thu, Jun 07, 2007 at 09:51:18AM +1000, Warren Liddell wrote:
 Quite a lrge portion of my packages are failing in portupgrade due to 
 either the ports distinfo file apparently being out of date OR the 
 pckage is spelt incorectly, when i had only just finished running a 
 CVS to update it all... Below is a snippet of an error with 1 of the ports.
 
 ===
 
 
 ==  Vulnerability check disabled, database not found
 = libXext-1.0.3.tar.gz is not in /usr/ports/x11/libXext/distinfo.
 = Either /usr/ports/x11/libXext/distinfo is out of date, or
 = libXext-1.0.3.tar.gz is spelled incorrectly.
 *** Error code 1

You have an incomplete ports tree or some kind of local changes in
e.g. /etc/make.conf.

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


Re: Seeking recommendation for anti-spam software

2007-06-06 Thread Olivier Nicole
 And call it a quirk of mine, but I really dislike (server) software with 
 a large number of dependencies.  That rules out Spam Assassin.  But I am 

I am not sure what you call dependencies.

SA is written in Perl, using some Perl libraries, so of course you
need these, but on the other hand they install smealessly with the
port.

Others like Razor, are plugin that you may choose to install or not.

Bests,

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


Re: Portupgrade error with multiple distinfo files

2007-06-06 Thread Warren Liddell



 ==  Vulnerability check disabled, database not found
 = libXext-1.0.3.tar.gz is not in /usr/ports/x11/libXext/distinfo.
 = Either /usr/ports/x11/libXext/distinfo is out of date, or
 = libXext-1.0.3.tar.gz is spelled incorrectly.
 *** Error code 1

You have an incomplete ports tree or some kind of local changes in
e.g. /etc/make.conf.

Kris



I havent changed anythng an i del my entire ports dir and re-cvsuped 
it ... re-run portupgrade to have the same error. 


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


Re: Portupgrade error with multiple distinfo files

2007-06-06 Thread Kris Kennaway
On Thu, Jun 07, 2007 at 12:55:20PM +1000, Warren Liddell wrote:
 
  ==  Vulnerability check disabled, database not found
  = libXext-1.0.3.tar.gz is not in /usr/ports/x11/libXext/distinfo.
  = Either /usr/ports/x11/libXext/distinfo is out of date, or
  = libXext-1.0.3.tar.gz is spelled incorrectly.
  *** Error code 1
 
 You have an incomplete ports tree or some kind of local changes in
 e.g. /etc/make.conf.
 
 Kris
 
 
 I havent changed anythng an i del my entire ports dir and re-cvsuped 
 it ... re-run portupgrade to have the same error. 

rot13# cvs -Rq update -PdA
rot13# make checksum
===  Vulnerability check disabled, database not found
= MD5 Checksum OK for xorg/lib/libXext-1.0.3.tar.bz2.
= SHA256 Checksum OK for xorg/lib/libXext-1.0.3.tar.bz2.
rot13# cat distinfo
MD5 (xorg/lib/libXext-1.0.3.tar.bz2) = 1bf6fa1c26f9957d7cc0bd90b038dfa6
SHA256 (xorg/lib/libXext-1.0.3.tar.bz2) = 
2d706baf206d1cb422c8e0ceb6c5a8546bc3f0587cf090eba51e75a295d9c3f0
SIZE (xorg/lib/libXext-1.0.3.tar.bz2) = 262116

I can only repeat my suggestion that you look closer to home for the
source of your problem.

Kris

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


Re: Virtualization of FreeBSD

2007-06-06 Thread r17fbsd

At 07:45 PM 6/6/2007, Sean Murphy wrote:
Is anyone running virtualization of FreeBSD servers on VMware or 
other virtualization software?  What experiences have you had, good or bad?


Been wanting to ask the same...  I've heard of virt' software for 
some time but didn't realize what it could really do.  Then on a tip, 
I started playing with micros$$ts Virtual PC a couple weeks 
ago.  Wow!  It runs windoze 2000 and FreeBSD apparently fine on a 
windoze 2000 host.  In the last couple weeks I've been doing a lot of 
experimentation with FreeBSD and Samba and windoze that I've been 
procrastinating about for lack of a spare box to run things on.  Very 
impressive for free stuff from the evil empire :)


But from what I've heard, VMware has better performance.  And there 
are some things in ports (qemu?) also.  For my purposes Billy's 
product is working well, but I'd like to hear of better things, esp 
those that run on windoze, which I'm stuck with for my desktop boxen.


  -RW

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


Re: Virtualization of FreeBSD

2007-06-06 Thread Garrett Cooper

[EMAIL PROTECTED] wrote:

At 07:45 PM 6/6/2007, Sean Murphy wrote:
Is anyone running virtualization of FreeBSD servers on VMware or 
other virtualization software?  What experiences have you had, good 
or bad?


Been wanting to ask the same...  I've heard of virt' software for some 
time but didn't realize what it could really do.  Then on a tip, I 
started playing with micros$$ts Virtual PC a couple weeks ago.  Wow!  
It runs windoze 2000 and FreeBSD apparently fine on a windoze 2000 
host.  In the last couple weeks I've been doing a lot of 
experimentation with FreeBSD and Samba and windoze that I've been 
procrastinating about for lack of a spare box to run things on.  Very 
impressive for free stuff from the evil empire :)


But from what I've heard, VMware has better performance.  And there 
are some things in ports (qemu?) also.  For my purposes Billy's 
product is working well, but I'd like to hear of better things, esp 
those that run on windoze, which I'm stuck with for my desktop boxen.


  -RW

The pecking order works like so IMHO under Windows:
1. VMWare.
2. M$ VPC.
3. Qemu.

-Vmware has the best performance overall from what I've seen, and has 
64-bit support on 64-bit processors, so it wins hands down.
-M$ VPC has better performance than Qemu from what I've seen, but only 
has 32-bit support, so that's out.
-Getting Qemu started on Windows (at least for me), was a pain in the 
a$$. I eventually gave up because it was so slow and the hardware 
virtualization wasn't that great.


I run CURRENT and 6.2-RELEASE on my desktop under Windows because 
hardware support for all my devices isn't quite there yet, and for 
development. It's ok, except when I do CPU intensive tasks, where the 
virtual CPU clock per VM skews a lot/slows down, and this screws up 
shutting down the VMs (they get stuck before FS syncing's started). 
Solution is to run ntpdate before shutdown, to update the VM time.


I'm running VMware server on XP x64 with 4GB of RAM and a Core 2 Duo 
6700 CPU.


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