Re: freebsd 6.1 locale problems (SOLVED)

2006-08-18 Thread Tofig Suleymanov
 On Mon, 10 Jul 2006 19:51:37 +0500 Tofik Suleymanov wrote:

 after upgrading to 6.1-RELEASE from 5.3-RELEASE i get errors related

 You may consider rebuilding all your ports (I'd recommend that) or
 install misc/compat5x.

 to my locale setup.For example, while doing 'man ls' i get:
 ctype locale: Invalid argument
 (actual man-page goes here)

 Also, i can not  see russian KOI8-R texts in any of my X consoles,
 while all needed fonts are installed properly.

 my .login_conf contains following configuration:
 me:Russian localization:\
:charset=KOI8-R:\
:lang=ru_RU.KOI8-R:

 xorg.conf snippet with needed fonts:
 FontPath /usr/X11R6/lib/X11/fonts/cyrillic/

 Any advice ?


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



I've recompiled world using default /etc/make.conf and problem has gone.
It seems that my past /etc/make.conf had locales related data disabled.

Sincerely,
Tofig Suleymanov

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


Re: /var/crash handling

2006-08-18 Thread Nikos Vassiliadis
On Sunday 06 August 2006 22:09, Anthony Agelastos wrote:
 In doing some poking around on my server, I noticed that I am using
 926 MB in my /var folder (the partition is at 75% capacity). So, I
 dug a little deeper and a huge majority of this is in the /var/crash
 folder; I have two vmcore files (vmcore.0 and vmcore.1) that are each
 ~402MB and were created back in February. Are these safe for
 deletion?

Yes, these are useful only for debugging purposes. They are saved there
by the savecore utility which reads the dump from your dump(swap) device.
Read savecore manual or the relevant section from developers' handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html

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


Re: Needing a guide/tutorial please

2006-08-18 Thread bsd
  Looking for a guide online somewhere that will walk me through
 setting up a mail server with the following items on it.

 SpamAssassin
 Postfix (pop3 and smtp setup)
 MySQL (for database driven mail user administration)
 MyPHPAdmin (to visually admin the database)
 Squirrelmail (for webmail)
 Apache (for squirrelmail)
 Dovecot Imap (for squirrelmail)
 Postfix Admin - this is the reason for the need to have a mysql driven
 mail user database.  It's apparently required for this to work.  Plus
 database driven user management tends to be easier.  Of course, if you
 know
 of a better way to graphically admin mail users without using a database,
 I'm all ears.  :)
 And lastly, some kind of web based server admin page that's similar to
 webmin, but more secure.

  I want to setup a mail server with all these elements, have
 postfix, squirrelmail and dovecot be database driven and somehow create a
 mailbox tree for the webmail users for saved, spam, sent and trashcan
 folders.  Also, lastly, which format for mail is better?  Maildir or
 Mbox?  I'm partial to Mbox, but I've heard some others say Maildir is
 better.  The server is only going to host about 30-40 users for a realty
 company, so security is priority, plus it needs to have ease of
 administration because the guy who's going to admin this in the end (I'm
 just building it, he's maintaining it) isn't unix savy.  I've already done
 a lot of google diving, but with little luck.  Hence why I'm asking
 here.  If someone knows of a good guide or series of guides that'll help
 me
 through all this, it'd be greatly appreciated.  I'm used to doing this the
 hard way with sendmail and the regular freebsd users through the
 console.  So I'm really new to postfix, but I'm using it because it's
 supposedly more secure.  I'd have the guy who's admining it do the same,
 but he's too green in the console to risk it.  ;)

  Many thanks in advance for any help you can provide.  :)


 Steven Lake
 Owner/Technical Writer
 Raiden's Realm
 www.raiden.net
 A friendly web community


Steve,

Youve asked at lot of questions in one here.

For 30 to 40 users what you are proposing is way over the top, I would
stay away from mysql etc.

I am using qmail + courier(pop3  imap) + calamav + squirrelmail etc base
on the installation from http://www.qmailrocks.org/ with some tweeks from
Bill Olson's site http://www.goodcleanemail.com/ for spamassassin rules
and learning etc. Bill's site is useful as he uses FreeBsd. I also used
the Chkuser patch (rejecting mails during smtp for non existing users)
from John Simpson's site http://www.jms1.net/ + block lists. The setup
uses web based qmailadmin for managing mail boxes.

It has been running for nearly 2 years now and the only maintanence has
been updating clamav and tweeking the spamassassin rules.

BTW qmailrocks has an updated script for a freebsd installation using most
of the latest sw from ports. Although this is Beta3 it works - just used
it for a small business, there is also an active mailing list where Bill
and John are posting.

Hope this helps and guys please no postfix is better etc.

Rob

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


ath0: link state changed to DOWN

2006-08-18 Thread Helge Preuss
Hello everybody,

after a kernel recompile (completely unrelated to WLAN or network
drivers) my Atheros WLAN card acts funny. I have in the meantime
reinstalled the previous, working kernel, but it does not work any more.

The card goes down and up again every few seconds. dmesg contains only
repeated messages of
ath0: link state changed to DOWN
ath0: link state changed to UP
ath0: link state changed to DOWN
ath0: link state changed to UP

/var/log/messages is a little more verbose:
Aug 17 19:00:15 triton kernel: ath0: link state changed to DOWN
Aug 17 19:00:17 triton kernel: ath0: link state changed to UP
Aug 17 19:00:22 triton dhclient: New IP Address (ath0): 192.168.3.14
Aug 17 19:00:22 triton dhclient: New Subnet Mask (ath0): 255.255.255.0
Aug 17 19:00:22 triton dhclient: New Broadcast Address (ath0): 192.168.3.255
Aug 17 19:00:22 triton dhclient: New Routers (ath0): 192.168.3.66
Aug 17 19:00:23 triton dhclient: New IP Address (ath0): 192.168.3.14
Aug 17 19:00:23 triton dhclient: New Subnet Mask (ath0): 255.255.255.0
Aug 17 19:00:23 triton dhclient: New Broadcast Address (ath0): 192.168.3.255
Aug 17 19:00:23 triton dhclient: New Routers (ath0): 192.168.3.66
Aug 17 19:00:28 triton kernel: ath0: link state changed to DOWN
Aug 17 19:00:31 triton kernel: ath0: link state changed to UP
Aug 17 19:00:36 triton dhclient: New IP Address (ath0): 192.168.3.14
Aug 17 19:00:36 triton dhclient: New Subnet Mask (ath0): 255.255.255.0
Aug 17 19:00:36 triton dhclient: New Broadcast Address (ath0): 192.168.3.255
Aug 17 19:00:36 triton dhclient: New Routers (ath0): 192.168.3.66
Aug 17 19:00:38 triton dhclient: New IP Address (ath0): 192.168.3.14
Aug 17 19:00:38 triton dhclient: New Subnet Mask (ath0): 255.255.255.0
Aug 17 19:00:38 triton dhclient: New Broadcast Address (ath0): 192.168.3.255
Aug 17 19:00:38 triton dhclient: New Routers (ath0): 192.168.3.66

It seems the link goes down every 13 seconds, with a few aberrations.

I am not the first to have this problem, but none of the solutions I
found on the web worked for me. In particular, this is independent of
where I am in relation to the AP.

Again, before I recompiled the kernel WLAN worked for me. It works with
Linux on the same laptop as well.

Has anyone here encountered and actually solved this problem?

Here is the relevant part of my kernel config:
device  wlan# 802.11 support
device  ath
device  ath_hal
device  ath_rate_onoe
device  wlan_acl
device  wlan_tkip
device  wlan_wep
device  wlan_xauth
device  wlan_ccmp

The relevant line of /etc/rc.conf:
ifconfig_ath0=WPA DHCP

And the output of sysctl net.wlan:
net.wlan.debug: 0
net.wlan.0.%parent: ath0
net.wlan.0.debug: 0
net.wlan.0.inact_run: 300
net.wlan.0.inact_probe: 30
net.wlan.0.inact_auth: 180
net.wlan.0.inact_init: 30
net.wlan.0.driver_caps: 126086415
net.wlan.0.bmiss_max: 2

I suppose I could give even more info, but to limit the
signal-to-noise-ratio I shall stop here. If you need anything specific,
just ask.

Thanks,

Helge

PS: Okay, one more info: FreeBSD 6.1-STABLE

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


Re: Needing a guide/tutorial please

2006-08-18 Thread Helge Preuss
  Looking for a guide online somewhere that will walk me through
 setting up a mail server with the following items on it.

 SpamAssassin
 Postfix (pop3 and smtp setup)
 MySQL (for database driven mail user administration)
 MyPHPAdmin (to visually admin the database)
 Squirrelmail (for webmail)
 Apache (for squirrelmail)
 Dovecot Imap (for squirrelmail)
 Postfix Admin - this is the reason for the need to have a mysql driven
 mail user database.  It's apparently required for this to work.  Plus
 database driven user management tends to be easier.  Of course, if you
 know
 of a better way to graphically admin mail users without using a database,
 I'm all ears.  :)
 And lastly, some kind of web based server admin page that's similar to
 webmin, but more secure.


Here is a guide for Gentoo Linux that addresses most, if not all of your
requirements:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

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


Setting up proxy

2006-08-18 Thread Viswas Nair

I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
DHCP server. However, to connect to the internet I need to use a proxy. How
do I configure the system to connect via the proxy?

I cannot use a browser in to do the same because I am presently trying to
install the window manager and other applications via ports.

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


Repost -Help Re: Sata/IDE drive recognition problem

2006-08-18 Thread Vizion


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Vizion
 Sent: Thursday, August 17, 2006 10:05 AM
 To: freebsd-questions@freebsd.org
 Subject: Re: Sata/IDE drive recognition problem
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Vizion
  Sent: Thursday, August 17, 2006 4:33 AM
  To: freebsd-questions@freebsd.org
  Subject: Sata/IDE drive recognition problem
  
  
  Hi
  
  While preparing to move a system from i386 to amd 
  architecture The existing system is dual booting i386 for 5.4 
  stable and 6.0. My plan is to remove both systems, preserve 
  my data and reinstall 6.1 amd from cd.
  
  The motherboard is a FA-K8N51GMF-9 with 3 hard drives 
  installed. 2xSata and 1xIDE.
  
  Freebsd 5.4 
  #df sees 
  /dev/ad4s1a 
  devfs, 
  /dev/ad4s1e
  /dev/ad4s1f
  /dev/ad6s1d
  /dev/ad6s1e
  linprocfs
  
  Freebsd 6.0
  #df sees
  /dev/ad0s1a
  devfs
  /dev/ad0s1e
  /dev/ad01f
  /dev/ad0s1d
  /dev/ad4s1a
  /dev/ad4s1f
  /dev/ad6s1d
  devfs
  
  The CD installer select drives interface for 6.1 RELEASE 
  amd64 recognizes
  ad0 and
  ad4 
  but not ad6.
  
  For installing 6.1 amd I will need the installer to see all 
  physical devices and existing partitions. 
  
  The Bios CMOS features show 
  IDE Channel 0 Master WDC WD2000JB
  IDE Channel 0 Slave Lite-on CD-RW
  IDE Channel 2 Master ST3160827AS
  IDE Channel 3 Master WDC WD2000JD
  The Advanced Bios features show
  First boot device CDROM
  Second Boot Device Hard Disk
  Third boot Device Hard Disk
  
  The Hard disk boot priority sequence options show:
  Ch0
  Ch2
  Ch3 
  root
  shutdown -r
  
  /var/log/messages shows
  ad0 WDC WD2000JB at ata0-master UDMA33
  acd0 Lite-on at ata0-slave USMA33
  ad4 ST3160827AS at ata2-master UDMA33
  ad6 WDC WD2000JD at ata3-master UDMA33
  
  How do I get the installer select drives interface to recognize ad6?
  
  Thanks in advance
  
  david
  
 Following my previous posting I have now suvvessfully built 
 amd64 on /dev/ad0 but not yet mounted ad4 or ad6. While ad4 
 is seen according to /var/log/messages the new build does 
 not see ad6 .. does anyone have any ideas how to fix this?
 
 Somer help would be apprecaited
 
 Thanks
 
I have almost finished the rebuild and binary compilations and need to be able 
to mount the as yet unrecognized ad6 - some help at this point would be really 
apprecaited.

thanks


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


Re: Needing a guide/tutorial please

2006-08-18 Thread Ivan Levchenko

This might be overkill, but take a look at these things. i'm sure that
you can find what you need there:

http://www.tnpi.biz/internet/mail/toaster.shtml
http://www.screamingelectron.org/forum/printthread.php?t=725

On 8/18/06, Helge Preuss [EMAIL PROTECTED] wrote:

  Looking for a guide online somewhere that will walk me through
 setting up a mail server with the following items on it.

 SpamAssassin
 Postfix (pop3 and smtp setup)
 MySQL (for database driven mail user administration)
 MyPHPAdmin (to visually admin the database)
 Squirrelmail (for webmail)
 Apache (for squirrelmail)
 Dovecot Imap (for squirrelmail)
 Postfix Admin - this is the reason for the need to have a mysql driven
 mail user database.  It's apparently required for this to work.  Plus
 database driven user management tends to be easier.  Of course, if you
 know
 of a better way to graphically admin mail users without using a database,
 I'm all ears.  :)
 And lastly, some kind of web based server admin page that's similar to
 webmin, but more secure.


Here is a guide for Gentoo Linux that addresses most, if not all of your
requirements:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

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




--
Best Regards,

Ivan Levchenko
[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: Setting up proxy

2006-08-18 Thread Joao Barros

On 8/18/06, Viswas Nair [EMAIL PROTECTED] wrote:

I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
DHCP server. However, to connect to the internet I need to use a proxy. How
do I configure the system to connect via the proxy?

I cannot use a browser in to do the same because I am presently trying to
install the window manager and other applications via ports.


Set this in your shell:
export HTTP_PROXY=http://user:[EMAIL PROTECTED]:3128

or

setenv HTTP_PROXY http://user:[EMAIL PROTECTED]:3128

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


FreeBSD 6.1 source upgrade: Error code 1

2006-08-18 Thread Mischa Peters
After a new cvsup today, make buildworld now exists with the  
following message:


cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj/usr/src/tmp  INSTALL=sh /usr/ 
src/tools/i
nstall.sh  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/ 
src/tmp/legac
y/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/ 
usr/bin  W
ORLDTMP=/usr/obj/usr/src/tmp  MAKEFLAGS=-m /usr/src/tools/build/mk  - 
m /usr/src
/share/mk /usr/obj/usr/src/make.i386/make -f Makefile.inc1   
DESTDIR=  BOOTSTRAP
PING=  -DNO_HTML -DNO_INFO -DNO_LINT -DNO_MAN -DNO_NLS -DNO_PIC  - 
DNO_PROFILE -D

NO_SHARED -DNO_CPU_CFLAGS -DNO_WARNS legacy
awk: syntax error at source line 1
context is
/^#define[[:space:]]*__FreeBSD_version/   { 
Makefile.inc1, line 101: warning: awk '/^#define[[:space:]] 
*__FreeBSD_version

/ { print $3 }'  /usr/include/osreldate.h returned non-zero status
ERROR: Source upgrades from versions prior to 5.3 not supported.
*** Error code 1

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

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

Stop in /usr/src.


This is a source upgrade of FreeBSD 6.1 and not a prior version to 5.3.

Any ideas?

Mischa

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


Re: Needing a guide/tutorial please

2006-08-18 Thread Derrick Edwards
On Friday 18 August 2006 05:59, Helge Preuss wrote:
   Looking for a guide online somewhere that will walk me through
  setting up a mail server with the following items on it.
 
  SpamAssassin
  Postfix (pop3 and smtp setup)
  MySQL (for database driven mail user administration)
  MyPHPAdmin (to visually admin the database)
  Squirrelmail (for webmail)
  Apache (for squirrelmail)
  Dovecot Imap (for squirrelmail)
  Postfix Admin - this is the reason for the need to have a mysql driven
  mail user database.  It's apparently required for this to work.  Plus
  database driven user management tends to be easier.  Of course, if you
  know
  of a better way to graphically admin mail users without using a database,
  I'm all ears.  :)
  And lastly, some kind of web based server admin page that's similar to
  webmin, but more secure.

 Here is a guide for Gentoo Linux that addresses most, if not all of your
 requirements:
 http://www.gentoo.org/doc/en/virt-mail-howto.xml

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

Hi, 
I dont think what you propose is over the top at all. I have all these 
elements running now. Using (http://www.postfix.org/docs.html), you can 
pretty much get everything running from there. In addition to the programs 
you already stated I would recommend using amavisd-new 
(http://www.ijs.si/software/amavisd). With that you get SpamAssassin and 
Primary/Secondary antivirus protection. Also, make sure you use TLS to secure 
your webmail traffic. If you have any questions let me know. Really, it is 
quite easy to get this stuff and running. I never used webmin, but apache 
maintenace should be minimal.
r/
Derrick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD 6.1 source upgrade: Error code 1

2006-08-18 Thread Daniel Gerzo
Hello Mischa,

Friday, August 18, 2006, 1:07:03 PM, you wrote:

 This is a source upgrade of FreeBSD 6.1 and not a prior version to 5.3.

What version of FreeBSD are you upgrading from?

If you are upgrading from FreeBSD  5.3. It is not possible to upgrade
to 6.x until you are running at least FreeBSD 5.3.

 Any ideas?

 Mischa

-- 
Best regards,
 Danielmailto:[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: Setting up proxy

2006-08-18 Thread Ivan Levchenko

sorry, forgot to reply to all:

the first one is for bash, sh and others of the same family, the
second is for csh and others.

You can do the same thing for ftp:

export FTP_PROXY=http://user:[EMAIL PROTECTED]:3128 # for bash, sh

setenv FTP_PROXY http://user:[EMAIL PROTECTED]:3128  # For csh, ...

On 8/18/06, Joao Barros [EMAIL PROTECTED] wrote:

On 8/18/06, Viswas Nair [EMAIL PROTECTED] wrote:
 I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
 DHCP server. However, to connect to the internet I need to use a proxy. How
 do I configure the system to connect via the proxy?

 I cannot use a browser in to do the same because I am presently trying to
 install the window manager and other applications via ports.

Set this in your shell:
export HTTP_PROXY=http://user:[EMAIL PROTECTED]:3128

or

setenv HTTP_PROXY http://user:[EMAIL PROTECTED]:3128

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




--
Best Regards,

Ivan Levchenko
[EMAIL PROTECTED]


--
Best Regards,

Ivan Levchenko
[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: FreeBSD 6.1 source upgrade: Error code 1

2006-08-18 Thread Mischa Peters

Friday, August 18, 2006, 1:07:03 PM, you wrote:

This is a source upgrade of FreeBSD 6.1 and not a prior version to  
5.3.


What version of FreeBSD are you upgrading from?

If you are upgrading from FreeBSD  5.3. It is not possible to upgrade
to 6.x until you are running at least FreeBSD 5.3.


Upgrading from FreeBSD 6.1 to 6.1-STABLE.

Mischa

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


Re: new 6.1 install will not boot

2006-08-18 Thread Greg Barniskis

Perry Hutchison wrote:

The BIOS clears the screen and loads the boot sector, then nothing.
I'm not sure exactly what the problem is, but I can say I've 
installed FreeBSD x.y on just about every flavor of Dell hardware 
without much trouble, so it should work for you. Disclaimer: the 
Dimension line is highly variable re: component types, chip versions 
and overall quality, so all bets are off there, even though all the 
pieces are generally mainstream hardware.


It's an Optiplex GX1, with 192MB/10GB.

Did you install using the default/suggested disk geometry and slice 
arrangement, or did  you try to tune things as the installer went along?


I didn't try to mess with the geometry, but I didn't give FreeBSD the
whole disk -- I intend for it to coexist with Linux and a FAT32 OS.
I also adjusted the subpartitioning (and this seems to be necessary
-- see below).

Try this: Reinstall, and if prompted about disk geometry problems 
just let the installer do what it wants to. When prompted to choose 
a disk location to install to, choose A for Use Entire Disk, and 
when prompted to slice up that disk area, choose A again for Auto 
Defaults. When prompted for a boot manager, choose to install the 
FreeBSD MBR.


It worked better this time.  I suspect the important difference was
that I let it install the FreeBSD MBR (with considerable misgivings,
given the onscreen caution about PC-DOS -- but the FreeBSD boot
manager does seem to boot Windoze without problems).

Unfortunately, it looks as if I'll have to do it *again* because
the default /usr size was quite a bit too small -- even though
sysinstall had over 3GB to start with.

Using the default allocation of that 3GB, and selecting a Developer
configuration (including ports), the install stopped with

  Couldn't create directory /usr/compat: No space left on device.

df confirms that /usr is full (and the considerably larger /var
is nearly empty):

  Filesystem  1K-blocksUsed   Avail Capacity  Mounted on
  /dev/ad0s3a507630   35212  431808 8%/
  devfs   1   1   0   100%/dev
  /dev/ad0s3e507630  12  467008 0%/tmp
  /dev/ad0s3f832504  811572  -45668   106%/usr
  /dev/ad0s3d   1190350 248 1094874 0%/var

In case it matters, uname -a reports:

  FreeBSD gx1 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006  
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

Evidently I need to make /, /tmp, and /var quite a bit smaller,
so as to enlarge /usr.


... if you still have problems describe to the list
the end result you're trying to achieve by your tuning.


The first goal is to finish the install without running out of
space :)  I'd prefer to also arrange for FreeBSD to share the
Linux swap space -- thus freeing up more space for /usr or /home
by eliminating ad0s3b -- rather than leaving the Linux swap
unused when FreeBSD is running.  I've found some mentions of
Linux swap partitions in the FreeBSD source code, so I suspect
that this might be possible, but I didn't find any mention in
the docs of how to do it.

The drive currently has three primary partitions (Linux /boot,
FAT32, FreeBSD) and an extended partition containing Linux swap
and Linux root.  Partition Commander (commercial) shows the disk
layout as

Ptn   size   - type -  1st sector  # of sectors
P1  7M   Linux ext2 0x83  63   16002
P0   2.44G   FAT32  0x08   16128 5124672
P2   3.34G   Unix   0xA5 5140800 7020405
P3   3.73G   Extended   0x0F12161205 7823655
 L0392M   Linux swap 0x8212161268  803187
 L1   3.34G   Linux ext2 0x8312964518 7020342

To answer one forseeable question before it is asked :) I have
quite a bit of Un*x experience, but have not done much system
setup or administration since SunOS 4.1.


Well, it sounds like you're getting closer. You'll need a rubber 
mallet, a chisel, a shoehorn and plenty of WD-40 to get all you want 
out of 10GB total disk space, but it /could/ be made to work. It 
also sounds like you've got enough sense to work it out. Optiplex 
should be no problem at all.


re: applying the FreeBSD MBR, I really suggested it only because 
that would make one less unknown. Now that you know FreeBSD can 
boot, you can use any loader you like. For your kind of setup I 
might go with GAG.


Automated log rotation usually keeps /var bloat in check, so it 
doesn't really need to be very large, whereas /usr will tend to grow 
fast if you do a lot of /usr/local  /usr/ports work. I don't know 
anything about sharing a Linux swap space.


Personally, if this was just a learning/POC box and there was no 
other way but to cram all you want into 10 GB, I might be tempted to 
just give FreeBSD a swap partition (shared or otherwise) and / the 
rest of whatever space you have for it. That would be truly unholy 
for a production system and would mean you couldn't do certain file 
system 

:::. P4 HTT and DUMP: Corrupted MAC on input.

2006-08-18 Thread Mikhail Goriachev
Hi,

I've got the following problem. A few servers, periodically dump(8)
through ssh to a central server. That central server comes with a P4 HTT
(single core - no frills) processor. A few weeks ago I decided to
activate hyperthreading and add SMP capabilities to it. Just for the
sake of it.

Before those modifications, all servers were dumping without any
problems for months, literally. However, now I get random disconnects.
It may disconnect after 4%, 95% or not at all. But eventually, some dump
processes get randomly disconnected. This is the sample error I get:

[...]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 4.60% done, finished in 1:44 at Fri Aug 18 08:45:04 2006
Received disconnect from 192.168.0.1: 2: Corrupted MAC on input.
  DUMP: Broken pipe
  DUMP: The ENTIRE dump is aborted.
[...]

After several days of googling and pulling my hair out, for some reason
I decided to get rid off HTT and SMP... and to my amusement, everything
is back to normal. I put back SMP+HTT and the disconnects are back
again. So in conclusion, in this case, SMP+HTT causes random problems in
ssh.

Any thoughts on why this is happening? I really would like to know. What
about real SMP machines, are they affected as well?

Thanks in advance.

Cheers,
Mikhail.


PS: All servers are 6.1-RELEASE-p3 without go-fast-pc flags or whatever.

-- 
Mikhail Goriachev
Webanoide

Telephone: +61 (0)3 62252501
Mobile Phone: +61 (0)4 38255158
E-Mail: [EMAIL PROTECTED]
Web: http://www.webanoide.org

PGP Key ID: 0x4E148A3B
PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: error : Missing operating system

2006-08-18 Thread Lowell Gilbert
Peter [EMAIL PROTECTED] writes:

 On a test system I have 3 SATA drives.  On the 1st drive I installed
 FBSD 6.0, updated sources/ports, build and install world/kernel. 
 Rebooted.  All is well.

 I set up RAID0 on the other 2 drives using my (Tyan) mobo's controller
 (NVRAID).  This array shows up as /dev/ar0.

 I proceeded to set up a filesystem on ar0:

 # fdisk -I /dev/ar0
 # bsdlabel -w /dev/ar0s1
 # bsdlabel -e /dev/ar0s1

 e: * * 4.2BSD

 # newfs /dev/ar0s1e
 # mkdir /vol1
 # mount /dev/ar0s1e /vol1

 Everything worked fine.  df shows ar0s1e as 300 GB.

 I edit /etc/fstab:

 /dev/ar0s1e   /vol1   ufs   rw   2   2

 I reboot:

 # reboot

 Missing operating system

 Where did I go wrong and what should I do now?

You haven't touched the original boot drive as far as I can see, so
the first thing to try is to adjust the BIOS to try booting that drive
before the RAID array.  

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Rebuild Problem

2006-08-18 Thread beno -
Hi;
I upgraded my box  on the other side of the planet and things went pretty well. 
I can ssh in and the Web sites serve. However, qmail is down and I tried to 
nmap and both gave me the same errors from having deleted the old libraries (as 
someone suggested I do). Here are at least some of the libraries I need to 
rebuild:

libpcap.so.3
ld-elf.so.1
libc.so.5

How do I do this?
TIA,
beno3

-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


managing gems, ports or gem update?

2006-08-18 Thread Michael P. Soulier
For those managing ruby gems on FreeBSD, are you using ports, or just using
gems outside of ports?

Currently, Rails has a security vulnerability, but the port hasn't been
updated. I could just run gem update and upgrade all my gems, but it
wouldn't be tracked by the ports system, right?

Suggestions welcome.

Mike

-- 
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction. --Albert Einstein


pgpNqEDYE1tBm.pgp
Description: PGP signature


Disable s2s on ejabberd?

2006-08-18 Thread Kirk Strauser
I know, I know - this isn't the ejabberd mailing list.  But I'm running it 
on FreeBSD, and they host their website on FreeBSD, so let's hope that's 
enough to make it on-topic.

Is there a way to disable server-to-server traffic with ejabberd, short of 
blocking that TCP port?  I'm trying to build a private server without s2s 
functionality and can't find any documention on how to do it.
-- 
Kirk Strauser


pgpB94TPPkldL.pgp
Description: PGP signature


Re: Setting up proxy

2006-08-18 Thread Oliver Fromme
Viswas Nair [EMAIL PROTECTED] wrote:
  I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
  DHCP server. However, to connect to the internet I need to use a proxy. How
  do I configure the system to connect via the proxy?
  
  I cannot use a browser in to do the same because I am presently trying to
  install the window manager and other applications via ports.

The ports collection uses the fetch(1) tool for retrieving
distfiles (i.e. source code) from the internet via HTTP or
FTP protocols.  If you need to use a proxy, add a line like
this to your file /etc/make.conf (create it if it doesn't
exist yet):

FETCH_ENV=  HTTP_PROXY=http://your.proxy.name:port/

You have to use the right hostname and port number of the
proxy, of course, for example:

FETCH_ENV=  HTTP_PROXY=http://proxy.internal.net:3128/

You must use URL syntax for the proxy.  3128 is the default
port if omitted.  The HTTP_PROXY will also be used for FTP,
unless FTP_PROXY is also set.  So, if you need different
proxies (or different ports) for FTP and HTTP, you need two
lines, for example:

FETCH_ENV=  HTTP_PROXY=http://http-proxy.internal.net:3128/
FETCH_ENV+= FTP_PROXY=http://ftp-proxy.internal.net:3129/

(Note the += on the second line.)

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

And believe me, as a C++ programmer, I don't hesitate to question
the decisions of language designers.  After a decent amount of C++
exposure, Python's flaws seem ridiculously small. -- Ville Vainio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Web server mailing list?

2006-08-18 Thread Chris

Any recomondations for a apache/php/mysql mailing list?  Anything as
awsome as this list?

Chris


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


Re: Setting up proxy

2006-08-18 Thread Ivan Levchenko

fetch will also use the default proxy that is set by the HTTP_PROXY
and FTP_PROXY enviroment variables.

On 8/18/06, Oliver Fromme [EMAIL PROTECTED] wrote:

Viswas Nair [EMAIL PROTECTED] wrote:
  I am trying to setup a FBSD 6.1 machine at work. I have an IP addressed by a
  DHCP server. However, to connect to the internet I need to use a proxy. How
  do I configure the system to connect via the proxy?
 
  I cannot use a browser in to do the same because I am presently trying to
  install the window manager and other applications via ports.

The ports collection uses the fetch(1) tool for retrieving
distfiles (i.e. source code) from the internet via HTTP or
FTP protocols.  If you need to use a proxy, add a line like
this to your file /etc/make.conf (create it if it doesn't
exist yet):

FETCH_ENV=  HTTP_PROXY=http://your.proxy.name:port/

You have to use the right hostname and port number of the
proxy, of course, for example:

FETCH_ENV=  HTTP_PROXY=http://proxy.internal.net:3128/

You must use URL syntax for the proxy.  3128 is the default
port if omitted.  The HTTP_PROXY will also be used for FTP,
unless FTP_PROXY is also set.  So, if you need different
proxies (or different ports) for FTP and HTTP, you need two
lines, for example:

FETCH_ENV=  HTTP_PROXY=http://http-proxy.internal.net:3128/
FETCH_ENV+= FTP_PROXY=http://ftp-proxy.internal.net:3129/

(Note the += on the second line.)

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

And believe me, as a C++ programmer, I don't hesitate to question
the decisions of language designers.  After a decent amount of C++
exposure, Python's flaws seem ridiculously small. -- Ville Vainio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




--
Best Regards,

Ivan Levchenko
[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: Rebuild Problem

2006-08-18 Thread Kris Kennaway
On Fri, Aug 18, 2006 at 06:33:10AM -0700, beno - wrote:
 Hi;
 I upgraded my box  on the other side of the planet and things went pretty 
 well. I can ssh in and the Web sites serve. However, qmail is down and I 
 tried to nmap and both gave me the same errors from having deleted the old 
 libraries (as someone suggested I do). Here are at least some of the 
 libraries I need to rebuild:
 
 libpcap.so.3
 ld-elf.so.1
 libc.so.5
 
 How do I do this?

You can install the compat5x port for now, but beyond the short term
you should rebuild those ports so they are 6.x native binaries; after
updating to a new major release of FreeBSD you have to rebuild *all*
ports to avoid certain problems from a mixed 5.x/6.x system

Kris


pgpHKdLcQR9nU.pgp
Description: PGP signature


FreeBSD 6.1 amd64bit vs i386

2006-08-18 Thread Ralph Ellis
I am currently running FreeBSD 6.1 i386 on my main desktop machine which is an 
AMD64 3200 and it is rock solid and stable. I am about to put FreeBSD on my 
laptop - a Gateway 7422 with an AMD64 3200 as well. The laptop is a bit 
fussier about operating system settings. Am I better off to go with the i386 
or the amd64 versions of FreeBSD 6.1? Is there a difference in terms of 
overall stability or major features?
Thanks
Ralph Ellis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Web server mailing list?

2006-08-18 Thread Chris Telting
Any recomondations for a apache/php/mysql mailing list?  Anything as 
awsome as this list?


Chris

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


Re: Web server mailing list?

2006-08-18 Thread albi
Chris Telting wrote:

 Any recomondations for a apache/php/mysql mailing list?  

excuse me, imho this part of your question is a little unclear, i don't
get the php/mysql idea

 Anything as awsome as this list?

that's mailman : http://www.list.org

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


Routing intp private subnet

2006-08-18 Thread Andreas Herrmann

Hi there,

I want to setup a gateway / firewall solution with current FreeBSD. The 
network has following structure:


Several host (host[1,...,x].domain.net) are defined within the DNS and 
all of them have the same A-Record with the IP 1.2.3.4
The gateway is listening on its external network interface with the IP 
1.2.3.4 and has an internal interface with a private subnet 
(192.168.0.0/24). The hosts (host[1,...,x].) are addressed in this subnet.


How can it be solved, that the gateway opens a tunnel to the special 
host in the private subnet (let.s say 192.168.0.3) if there is a query 
for host3.domain.net?


In my opinion this cannot be done because the client queries the DNS and 
simply opens the connection to the IP 1.2.3.4 and the gateway has now 
hints how to decide to which internal host the tunnel should be opened.


But this setup is possible because Microsoft ISA Server exactly does 
this job?


I have have no idea how to solve this. First idea was a kernel bridge 
between the interfaces.


Do you have any hints for me?

Thanks a lot!

Andreas

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


Re: Laser Scanners: Do you know what Kyeboard Wedge is ?

2006-08-18 Thread Warren Block

On Fri, 18 Aug 2006, Henry Lenzi wrote:


I need to purchase a handheld laser scanner (for a market) and I
would like it to work with FreeBSD, as that is the OS I plan on
installing there (preferably, if I can - I want to avoid Linux, if
possible).

I found this, that claims to work out of the box. Apparently, there
is this interface called Keyboard Wedge.

Keyboard Wedge is the simplest and best way to connect the scanner to
a regular desk top computer. There is no software to install, just
connect in the keyboard circuit and start scanning. Works with ALL
applications and ALL Operating Systems running on industry standard
architecture PCs- Windows, DOS, Linux, FreeBSD, Unix etc.


The scanner plugs in as a keyboard, and the system sees scanned data as 
if it was typed by the user.  No software to install.  The scanner has a 
Y-cable so both it and the keyboard are attached at the same time.


I've used the Intermec 1802 LED scanners with FreeBSD and other systems 
with excellent results.


The Intermec 1802 is good for a couple of feet with large barcodes.  The 
tradeoff with laser scanners for longer range is that they have moving 
parts (a wiggling mirror to move the laser back and forth) and are not 
as tough as LED scanners, and much more expensive.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


GCC - Optimal Optimization

2006-08-18 Thread Sean M.
With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000
MHz? By best I mean creating the fastest programs that exploit fully
all of the architecture's features, without creating a noticible
increase in size. To date I've been using
CFLAGS=-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe
-ffast-math


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


rsync on Freebsd 5.3

2006-08-18 Thread Lisa Casey

Hi,

I am trying to transfer all files in /var/mail from one Freebsd 5.3 machine 
(oldfreebsd.com) to another (newfreebsd.com). I decided to use rsync for 
this since it would preserve ownership, permissions, etc. I made sure rsync 
was installed on both machines. Neither machine had an /etc/rsyncd.conf or 
/etc/rsyncd.motd file. On newfreebsd.com I created /etc/rsyncd.conf thusly:


motd file = /etc/rsyncd.motd
max connections = 1
hosts allow = 208.44.xx.xx

(The IP address is that of oldfreebsd.com)

On newfreebsd.com, I created rsyncd.motd with the words Authorized Users 
Only in it.


as a test, I'm just trying to rsync /var/mail/lisa from oldfreebsd.com to 
newfreebsd.com. When that works I'll do all of /var/mail/


on oldfreebsd.com I cd /var/mail, then  type:  rsync lisa 
newfreebsd.com:/var/mail/


and get this:

connect to host newfreebsd.com port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(348)

Anyone know what might be wrong? Or can anyone suggest a better way of 
moving these mail boxes?


Thanks,

Lisa Casey


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


JDK 1.5 in a Jail

2006-08-18 Thread Bret J Esquivel
Hi,

I am trying to install the JDK 1.5.0 port inside of a FreeBSD 6.1 Jail.
(/usr/ports/java/jdk15) I have linux compat configured on the main host on
the box, along with the linprocfs enabled. Chad Shire had posted about this
same issue before, stating that he posted the answer earlier in the
archives; however, I can not find it.


Current pertinent mounts:

linprocfs   4   40   100%
/usr/compat/linux/proc
/usr/compat  66769520 6185766 5524219410%
/usr/jails/ox1.immense.net/compat
linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?

Thank you



Bret J. Esquivel
[EMAIL PROTECTED]
Immense Networks LLC
http://www.immense.net



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


Re: rsync on Freebsd 5.3

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 10:40 AM, Lisa Casey wrote:



Anyone know what might be wrong? Or can anyone suggest a better way  
of moving these mail boxes?


I don't know what might be wrong with rsync but can't you just tar up  
the mail, move the tar file, and untar at the new place?  Simple fast  
etc.


That is how I do these sorts of things

Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: JDK 1.5 in a Jail

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?


Did you try what it says above (in the master)?  (mounting a  
linprocfs inside the jail while in the master)?


Chad




Thank you


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


RE: JDK 1.5 in a Jail

2006-08-18 Thread Bret J Esquivel
Hi Chad,

Yeah I've tried below inside the master:

mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/linux/proc

with df containing:

linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc

Still no joy.


Thanks,


Bret J. Esquivel
[EMAIL PROTECTED]
Immense Networks LLC
http://www.immense.net


-Original Message-
From: Chad Leigh -- Shire.Net LLC [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 18, 2006 11:54 AM
To: Bret J Esquivel
Cc: freebsd-questions@FreeBSD.org
Subject: Re: JDK 1.5 in a Jail


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:

 ox1# make install
 ===  Building for jdk-1.5.0p3_3
 ERROR: You must have LINPROCFS mounted before
 starting to build the native JDK 1.5.0.

 You may do it with the following commands:

 # kldload linprocfs

 and

 # mount -t linprocfs linprocfs /compat/linux/proc

 *** Error code 1


 Any insight?

Did you try what it says above (in the master)?  (mounting a  
linprocfs inside the jail while in the master)?

Chad



 Thank you

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net




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


Re: rsync on Freebsd 5.3

2006-08-18 Thread Kevin Sanders

I've never needed to do any rsync specific configuration, just install
from ports on both machines.  This sounds more like a ssh
configuration issue (connect to host newfreebsd.com port 22:
Connection refused) on newfreebsd.com.  Or maybe you're not allowing
ssh connections thru the firewall on newfreebsd.com?

Kevin

On 8/18/06, Lisa Casey [EMAIL PROTECTED] wrote:

Hi,

I am trying to transfer all files in /var/mail from one Freebsd 5.3 machine
(oldfreebsd.com) to another (newfreebsd.com). I decided to use rsync for
this since it would preserve ownership, permissions, etc. I made sure rsync
was installed on both machines. Neither machine had an /etc/rsyncd.conf or
/etc/rsyncd.motd file. On newfreebsd.com I created /etc/rsyncd.conf thusly:

motd file = /etc/rsyncd.motd
max connections = 1
hosts allow = 208.44.xx.xx

(The IP address is that of oldfreebsd.com)

On newfreebsd.com, I created rsyncd.motd with the words Authorized Users
Only in it.

as a test, I'm just trying to rsync /var/mail/lisa from oldfreebsd.com to
newfreebsd.com. When that works I'll do all of /var/mail/

on oldfreebsd.com I cd /var/mail, then  type:  rsync lisa
newfreebsd.com:/var/mail/

and get this:

connect to host newfreebsd.com port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(348)

Anyone know what might be wrong? Or can anyone suggest a better way of
moving these mail boxes?

Thanks,

Lisa Casey


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


How to get best results from FreeBSD-questions

2006-08-18 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

The Complete FreeBSD: errata and addenda

2006-08-18 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: GCC - Optimal Optimization

2006-08-18 Thread Dan Nelson
In the last episode (Aug 18), Sean M. said:
 With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000
 MHz? By best I mean creating the fastest programs that exploit fully
 all of the architecture's features, without creating a noticible
 increase in size. To date I've been using
 CFLAGS=-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe
 -ffast-math

There is no magic set of flags, else they would already be the default
:)  Each program will have its own best set of flags.  See
http://www.coyotegulch.com/products/acovea/index.html for some analyses
of options in gcc 3.4 and 4.0.

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


Re: JDK 1.5 in a Jail

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 10:54 AM, Bret J Esquivel wrote:


Hi Chad,

Yeah I've tried below inside the master:

mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/ 
linux/proc


with df containing:

linprocfs   4   40   100%
/usr/jails/ox1.immense.net/compat/linux/proc

Still no joy.



Hmm.  I have not done 1.5 but I did build 1.4 inside a jail and it  
had the same message and my remembrance was that I had done what you  
did above and it worked.  But it was over a year ago so I don't  
remember any details or gotchas.  Sorry


Chad



-Original Message-
From: Chad Leigh -- Shire.Net LLC [mailto:[EMAIL PROTECTED]
Sent: Friday, August 18, 2006 11:54 AM
To: Bret J Esquivel
Cc: freebsd-questions@FreeBSD.org
Subject: Re: JDK 1.5 in a Jail


On Aug 18, 2006, at 10:45 AM, Bret J Esquivel wrote:


ox1# make install
===  Building for jdk-1.5.0p3_3
ERROR: You must have LINPROCFS mounted before
starting to build the native JDK 1.5.0.

You may do it with the following commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1


Any insight?


Did you try what it says above (in the master)?  (mounting a
linprocfs inside the jail while in the master)?

Chad




Thank you


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net






---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


AMD 64 3000

2006-08-18 Thread Robin Becker
Anybody have any strong opinions on this for a freebsd 6.1 web server? We are 
currently using a 2.40GHz celeron which is fairly slow. I'm hesitant to switch 
to 64 bits, are there any gotchas for freeBSD?

--
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: AMD 64 3000

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 11:09 AM, Robin Becker wrote:

Anybody have any strong opinions on this for a freebsd 6.1 web  
server? We are currently using a 2.40GHz celeron which is fairly  
slow. I'm hesitant to switch to 64 bits, are there any gotchas for  
freeBSD?


You can always run the 32bit FreeBSD on this if it makes you more  
comfortable.  That is what I do with all my Opteron machines.


What sort of webserving are you doing that the Celeron is slow?

Chad


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: AMD 64 3000

2006-08-18 Thread Paul Schmehl

Robin Becker wrote:
Anybody have any strong opinions on this for a freebsd 6.1 web server? 
We are currently using a 2.40GHz celeron which is fairly slow. I'm 
hesitant to switch to 64 bits, are there any gotchas for freeBSD?


We're running 6.0 RELEASE on amd64 dual processors with apache 1.3.x, 
and we haven't encountered any problems.


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


smime.p7s
Description: S/MIME Cryptographic Signature


Re: GCC - Optimal Optimization

2006-08-18 Thread Kris Kennaway
On Fri, Aug 18, 2006 at 09:10:57AM -0700, Sean M. wrote:
 With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000
 MHz? By best I mean creating the fastest programs that exploit fully
 all of the architecture's features, without creating a noticible
 increase in size. To date I've been using
 CFLAGS=-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe
 -ffast-math

Don't use random options (e.g. -ffast-math) unless you know what
you're doing (yes, it says fast, but that doesn't necessarily mean
it will make your application faster).  The best options to use are
the default ones (you can also set CPUTYPE according to the make.conf
documentation) unless you like debugging your system when applications
suddenly do not operate correctly.

Using nonstandard options like the above might make your system feel
sexier, but it's really not a good idea to compile your whole system
that way :-)

Kris


pgpguDEu4MeKU.pgp
Description: PGP signature


Re: AMD 64 3000

2006-08-18 Thread Jerry McAllister
 
 Anybody have any strong opinions on this for a freebsd 6.1 web server? We 
 are currently using a 2.40GHz celeron which is fairly slow. I'm hesitant 
 to switch to 64 bits, are there any gotchas for freeBSD?

What are you doing that would make that seem slow?
Are you sure it is the processor and not some other
part that is the bottleneck, such as disk or NIC or 
your pipe to the outside world (ISP)?

Unless you are doing some awful major crunching such as
combining a major size database with heavy calculation on 
stuff that your server puts up, you could run a pretty major 
web site on 1/4 that CPU.   Just feeding web pages, even with
pretty good size forms shouldn't be a problem.   

So, yes, 64 bits should be OK, but I wonder if it would 
solve your speed problem - if some other part of the
process is what is really holding things up.

jerry

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


How do I access external USB fat32 160 GB drive?

2006-08-18 Thread Bobby Knight
Hello
   
  When I try to mount the drive with mount_msdos it tells me the filsystem is 
to big. The drive consists av a single fat32 partition.
   
  Windows can access it so it must be possible in FreeBSD too. I read about 
recompiling the kernel with option MSDOSFS_LARGE. But that option seems to be 
gone i GENERIC now.
   
  Thanks
   
   
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up proxy

2006-08-18 Thread Oliver Fromme
Ivan Levchenko [EMAIL PROTECTED] wrote:
  fetch will also use the default proxy that is set by the HTTP_PROXY
  and FTP_PROXY enviroment variables.

Yes.  That's essentially what I wrote.  :-)
If you want to set them system-wide (not just for the ports
collection), add them to /etc/login.conf.  Refer to the
manual page for details.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

Life is short (You need Python)
-- Bruce Eckel, ANSI C++ Comitee member, author
   of Thinking in C++ and Thinking in Java
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rsync on Freebsd 5.3

2006-08-18 Thread Greg Barniskis

Lisa Casey wrote:

Hi,

I am trying to transfer all files in /var/mail from one Freebsd 5.3 
machine (oldfreebsd.com) to another (newfreebsd.com). I decided to use 
rsync for this since it would preserve ownership, permissions, etc. I 
made sure rsync was installed on both machines. Neither machine had an 
/etc/rsyncd.conf or /etc/rsyncd.motd file. On newfreebsd.com I created 
/etc/rsyncd.conf thusly:


motd file = /etc/rsyncd.motd
max connections = 1
hosts allow = 208.44.xx.xx

(The IP address is that of oldfreebsd.com)

On newfreebsd.com, I created rsyncd.motd with the words Authorized Users 
Only in it.


as a test, I'm just trying to rsync /var/mail/lisa from oldfreebsd.com 
to newfreebsd.com. When that works I'll do all of /var/mail/


on oldfreebsd.com I cd /var/mail, then  type:  rsync lisa 
newfreebsd.com:/var/mail/


and get this:

connect to host newfreebsd.com port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(348)

Anyone know what might be wrong? Or can anyone suggest a better way of 
moving these mail boxes?


man rsync

Modern rsync wants to use SSH transport, not rsyncd. That's why 
it's trying for a connect to port 22 of the remote host, and the 
connection refusal is due to either an intermediate firewall block, 
TCP wrappers, etc. or else sshd is simply not running.


In this case, newfreebsd.com must be running sshd on accessible on 
port 22. Otherwise, you'll need to actually get rsyncd running and 
alter your invocation to use it (on port 873). Simplest, most secure 
fix is to make sure that newfreebsd.com is running sshd, and that 
should do it.


Put sshd_enable=YES in /etc/rc.conf, tune /etc/ssh/sshd_config as 
needed, then start sshd by reboot or manually invoking its startup 
script.



--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
gregb at scls.lib.wi.us, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GCC - Optimal Optimization

2006-08-18 Thread Oliver Fromme
Sean M. [EMAIL PROTECTED] wrote:
  With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000
  MHz? By best I mean creating the fastest programs that exploit fully
  all of the architecture's features, without creating a noticible
  increase in size. To date I've been using
  CFLAGS=-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe
  -ffast-math

I recommend staying with the default, i.e. not overriding
CFLAGS at all, unless you know exactly what you're doing,
for each single option.  From your options above I notice
that you don't know what you're doing.  :-)

The default is -O2 -fno-strict-aliasing -pipe.  If you
specify any optimization level greater than -O (i.e. -O2
or -O3), you _must_ also include -fno-strict-aliasing,
otherwise you will get broken code for certain programs.

By the way, -funroll-loops can make programs slower,
because the central parts might not fit into the CPU
cache anymore.  In many cases, the loop overhead is
less significant than the overhead of having to access
main memory.  It depends on the program, of course --
there is no one size fits all.  Different programs
will benefit from different optimizer flags.

In general, the differences are small enough that it's
not worth spending much time and efforts for benchmarking.
That's another reason to recommend to just go with the
default settings.

You said you don't want an increase in size.  But that's
exactly what -O3 (via inlining) and -funroll-loops do.
If you want not to increase size, use the default flags.
You could even use -Os, which instructs the compiler to
optimize for small size (it's somewhere between -O and
-O2).

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

We, the unwilling, led by the unknowing,
are doing the impossible for the ungrateful.
We have done so much, for so long, with so little,
we are now qualified to do anything with nothing.
        -- Mother Teresa
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I access external USB fat32 160 GB drive?

2006-08-18 Thread Jonathan Horne
 Hello

   When I try to mount the drive with mount_msdos it tells me the filsystem
 is to big. The drive consists av a single fat32 partition.

   Windows can access it so it must be possible in FreeBSD too. I read
 about recompiling the kernel with option MSDOSFS_LARGE. But that option
 seems to be gone i GENERIC now.

   Thanks



you have to change the MSDOSFS to MSDOSFS_LARGE. i did it on one of my
systems, and it works fine (however, ive heard hearsay that its not
enabled by default due to stability issues when it has too may files in
the filesystem).

hth,
jonathan

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


Intel Core 2 Duo E6600 cpu

2006-08-18 Thread Johan Johansen

I want to buy a pc from deltatronic.de with Intel Core 2 Duo E6600 cpu
and mainbord Asus P5W. My boss says ok, if I can run FreeBSD on it.

Can I? 

mvh

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


SCSI disks spinning down

2006-08-18 Thread FreeBSD Questions

I have a server, running FBSD 5.4, that has six SCSI disks in it.
It's primarily a fileserver for IT, and it's not access frequently,
but it does get some use.  Most of the time--any time it's been
sitting for a while and not accessed recently--reading from the drive
takes a few seconds.  I presume this is because the drive has spun
down due to it's idleness and the delay is because the drive is
spinning up again when I access it.  Is there a way to disable this?
The drives are IBM Deskstar drives (DPSS-318350M), and I don't know if
this feature is a feature in the SCSI subsystem somewhere on FBSD or a
jumper setting on the drive or what.  I'm not even sure I can turn it
off so the drives don't spin down.

Any ideas, anyone?

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


Re: How do I access external USB fat32 160 GB drive?

2006-08-18 Thread John Nielsen
On Friday 18 August 2006 13:40, Bobby Knight wrote:
   When I try to mount the drive with mount_msdos it tells me the filsystem
 is to big. The drive consists av a single fat32 partition.

   Windows can access it so it must be possible in FreeBSD too. I read about
 recompiling the kernel with option MSDOSFS_LARGE. But that option seems to
 be gone i GENERIC now.

Hence the need to compile your own kernel. Refer to /usr/src/sys/conf/NOTES 
for details on _why_ you may or may not want to use this. Refer to the 
handbook for information on how to compile your own kernel (it's easy).

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


Re: GCC - Optimal Optimization

2006-08-18 Thread Nikolas Britton

On 8/18/06, Sean M. [EMAIL PROTECTED] wrote:

With GCC 3.4.4, what are the best CFLAGS to use for an AMD Duron ~1000
MHz? By best I mean creating the fastest programs that exploit fully
all of the architecture's features, without creating a noticible
increase in size. To date I've been using
CFLAGS=-O3 -march=athlon-xp -mfp-math=sse -funroll-loops -pipe
-ffast-math




Here: 
http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

IIRC the Duron should be set to athlon or athlon-tbird. The athlon-4,
athlon-xp, athlon-mp knobs should only be used on Athlons with a
Palomino core or better, your Duron is to slow to be based off
Palomino. Also -mfp-math=sse does nothing for you because your chip
doesn't have full SSE support.

If you want to increase performance buy a new parts, $200 bucks will
get you a new Athlon64 AM2 CPU, AM2 socket motherboard, and 512MB of
DDR2-800 ram. Or you could go with new old stock:

AMD Sempron 64 2800+ Socket 754: $54
BIOSTAR TForce6100 Socket 754: $66
CORSAIR ValueSelect 256MB DDR400: $28
Total: $148


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


Re: rsync on Freebsd 5.3

2006-08-18 Thread Lars Kristiansen

Lisa Casey skrev:

Hi,

I am trying to transfer all files in /var/mail from one Freebsd 5.3 
machine (oldfreebsd.com) to another (newfreebsd.com). I decided to use 
rsync for this since it would preserve ownership, permissions, etc. I 
made sure rsync was installed on both machines. Neither machine had an 
/etc/rsyncd.conf or /etc/rsyncd.motd file. On newfreebsd.com I created 
/etc/rsyncd.conf thusly:


motd file = /etc/rsyncd.motd
max connections = 1
hosts allow = 208.44.xx.xx

(The IP address is that of oldfreebsd.com)

On newfreebsd.com, I created rsyncd.motd with the words Authorized Users 
Only in it.


as a test, I'm just trying to rsync /var/mail/lisa from oldfreebsd.com 
to newfreebsd.com. When that works I'll do all of /var/mail/


on oldfreebsd.com I cd /var/mail, then  type:  rsync lisa 
newfreebsd.com:/var/mail/


and get this:

connect to host newfreebsd.com port 22: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(348)

Anyone know what might be wrong? Or can anyone suggest a better way of 
moving these mail boxes?


Hi!
About rsync:

1.
Are you trying to do rsync over ssh as root?
Freebsd default is to refuse root to login over ssh.

2.
Your command syntax is for rsync over ssh.
No need for server. You only need rsync installed in path on both sides.
You may want to consider some options like -navP, see man rsync.

3.
The configuration files are for setting up rsync as server.
That uses port 873. And may provide anonymous login.
To connect to see what modules are shared from a server:
rsync example.com::


--
Regard from Lars



Thanks,

Lisa Casey


___
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: SCSI disks spinning down

2006-08-18 Thread Derek Ragona
There is a utility from the manufacturer to set the drives not to spin 
down.  They are spinning down to be quieter and make less heat.


-Derek


At 01:13 PM 8/18/2006, FreeBSD Questions wrote:

I have a server, running FBSD 5.4, that has six SCSI disks in it.
It's primarily a fileserver for IT, and it's not access frequently,
but it does get some use.  Most of the time--any time it's been
sitting for a while and not accessed recently--reading from the drive
takes a few seconds.  I presume this is because the drive has spun
down due to it's idleness and the delay is because the drive is
spinning up again when I access it.  Is there a way to disable this?
The drives are IBM Deskstar drives (DPSS-318350M), and I don't know if
this feature is a feature in the SCSI subsystem somewhere on FBSD or a
jumper setting on the drive or what.  I'm not even sure I can turn it
off so the drives don't spin down.

Any ideas, anyone?

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

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



--
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: Intel Core 2 Duo E6600 cpu

2006-08-18 Thread Girish Venkatachalam


--- Johan Johansen [EMAIL PROTECTED] wrote:

 
 I want to buy a pc from deltatronic.de with Intel
 Core 2 Duo E6600 cpu
 and mainbord Asus P5W. My boss says ok, if I can run
 FreeBSD on it.
 
 Can I? 
You have a good boss.:-)

My boss used to make fun of me, What on earth are you
running? Why don't you run linux like everybody else?

Anyway FreeBSD would certainly run. Go ahead and buy
it!

regards,
Girish
 
 mvh
 
 ___
 freebsd-questions@freebsd.org mailing list

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


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


Is Portmaster In an Infinite Loop?

2006-08-18 Thread beno -
Hi;
I upgraded yesterday from 5.3 to 6.1 and things went smoothly. I didn't upgrade 
the ports, but this morning at around 10:00 I started that process. It is now 
past 3:30 and the darn thing is still going. I've also noticed that it prints 
bind stuff and perl stuff over and over again. Maybe all of this is normal. 
Maybe this process takes days to update. But maybe there's a problem I should 
know about. Please advise.
beno3

-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AMD 64 3000

2006-08-18 Thread Nikolas Britton

On 8/18/06, Jerry McAllister [EMAIL PROTECTED] wrote:


 Anybody have any strong opinions on this for a freebsd 6.1 web server? We
 are currently using a 2.40GHz celeron which is fairly slow. I'm hesitant
 to switch to 64 bits, are there any gotchas for freeBSD?

What are you doing that would make that seem slow?
Are you sure it is the processor and not some other
part that is the bottleneck, such as disk or NIC or
your pipe to the outside world (ISP)?



He's probably running a big PHP web app... If so try eaccelerator
first, it's in ports under www/eaccelerator. It's an opcode cache for
PHP... should give you a major speed boost.


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


Re: Disable s2s on ejabberd?

2006-08-18 Thread Eric Schuele

On 08/18/2006 09:01, Kirk Strauser wrote:
I know, I know - this isn't the ejabberd mailing list.  But I'm running it 
on FreeBSD, and they host their website on FreeBSD, so let's hope that's 
enough to make it on-topic.


Is there a way to disable server-to-server traffic with ejabberd, short of 
blocking that TCP port?  I'm trying to build a private server without s2s 
functionality and can't find any documention on how to do it.


Not sure if this will actually help or not.
  http://www.vanemery.com/Linux/Jabber/jabberd.html


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


Re: Disable s2s on ejabberd?

2006-08-18 Thread Kirk Strauser
On Friday 18 August 2006 3:03 pm, Eric Schuele wrote:

 Not sure if this will actually help or not.
http://www.vanemery.com/Linux/Jabber/jabberd.html

That's for jabberd, not to be confused with ejabberd or jabber.  :-/
-- 
Kirk Strauser


pgpn12u0oEXvx.pgp
Description: PGP signature


Re: JDK 1.5 in a Jail

2006-08-18 Thread Christian Hiris
On Friday, 18. August 2006 18:54, Bret J Esquivel wrote:
 Hi Chad,

 Yeah I've tried below inside the master:

 mount -t linprocfs linprocfs /usr/jails/ox1.immense.net/compat/linux/proc

 with df containing:

 linprocfs   4   40   100%
 /usr/jails/ox1.immense.net/compat/linux/proc

 Still no joy.

The security.jail.enforce_statfs MIB entry defaults to 2, while /sbin/mount 
(as used in the Makefile) requires value 1 (or 0) to produce the expected 
result.

You can try the command sysctl security.jail.enforce_statfs=1 outside the 
jail. The MIB entry is documented in man 8 jail.

Cheers, 
ch
 
-- 
Christian Hiris [EMAIL PROTECTED] | OpenPGP KeyID 0x466A7521
OpenPGP-Key at hkp://wwwkeys.eu.pgp.net and http://pgp.mit.edu


pgpeM0HaZwCDH.pgp
Description: PGP signature


Re: Disable s2s on ejabberd?

2006-08-18 Thread Eric Schuele

On 08/18/2006 15:16, Kirk Strauser wrote:

On Friday 18 August 2006 3:03 pm, Eric Schuele wrote:


Not sure if this will actually help or not.
   http://www.vanemery.com/Linux/Jabber/jabberd.html


That's for jabberd, not to be confused with ejabberd or jabber.  :-/


Ah... yes.  Sorry.

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


gmirror on different sized disks

2006-08-18 Thread Doug Poland
Hello,

Until just a few moments ago, I thought I had identical sized drives
(arrays, really) on my i386 6.1-STABLE box.

I was trying to create a gmirror on ar1 from ar0 when gmirror reported
to me:  Provider ar1 too small.

my dmesg reports:
ar0: 152638MB Promise Fasttrak RAID0 (stripe 128 KB) status: READY
ar1: 152637MB Intel MatrixRAID RAID0 (stripe 128 KB) status: READY

So it would seem I'm 1MB away from being able to create a whole disk
mirror of ar0 on ar1.

Is my only recourse to mirror individual slices, as described in
http://people.freebsd.org/~rse/mirror/ ??

Thanks for any help/pointers/suggestions.

-- 
Regards,
Doug

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


(no subject)

2006-08-18 Thread Allen
Just curious, does is there any way to make the tun(4) device behave 
like gif(4) does with net.link.tun.parallel_tunnels=1 set, or is a 
patch to do this easy to produce?


Having a problem with ppp creating tun(4) devices where one side of the 
tunnel is the same, and I don't see a way to make ppp use gif(4) 
devices rather than tun(4) which would seem to be the other options.


Thanks.

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


VueScan

2006-08-18 Thread Chris Maness

Has anyone been able to get Vuescan working under FreeBSD?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Skype?

2006-08-18 Thread Boris Samorodov
On Wed, 16 Aug 2006 19:16:31 +0300 Luchezar Petkov wrote:

 I've installed Skype via ports in the normal way, but it now says this:

What did you mean by normal way?

 $skype_bin
 skype_bin: error while loading shared libraries:
 /usr/local/lib/libdrm.so.2: ELF file OS ABI invalid

 Its the same when I run skype instead of skype_bin.

 Any ideas?

What OS version do you run?
Are your ports up to date?
Did you read /usr/ports/UPDATING (20060616: AFFECTS users of
emulation/linux_base-*)?


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


Re: Flash Upgrade

2006-08-18 Thread Danny Pansters
On Friday 18 August 2006 01:45, Garrett Cooper wrote:
 Danny Pansters wrote:
  On Thursday 17 August 2006 12:52, Gerard Seibert wrote:
  chris wrote:
  I didn't see any such notices in fresh ports.
 
  Port:   linux-flashplugin-7.0r63_1
  Path:   /usr/ports/www/linux-flashplugin7
  Info:   Adobe Flash Player NPAPI Plugin
  Maint:  [EMAIL PROTECTED]
  B-deps:
  R-deps: linux_base-fc-4_7
  WWW:http://www.adobe.com/
 
  Is this what you are referring to?
 
  I almost don't dare asking, but :)
 
  does anyone have this working with konqueror?
 
  Dan

 If it works with Mozilla 1.2+, it will work with Konqueror. See the
 installation prereqs from the adobe site.

No. It works in FF but not in konq, if I point nsplugin finder to the right 
place it doesnt recognize it as a plugin. Something with relying on a .xpt 
file which is ignored by konq's idea of a nsplugin. At least to me that seems 
to be the problem.

Thats why I asked if anyone else had it working.

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


Re: GCC - Optimal Optimization

2006-08-18 Thread Sean M.
--- Oliver Fromme [EMAIL PROTECTED] wrote:
 The default is -O2 -fno-strict-aliasing -pipe.

info gcc --index optimize options says the default is '-O0'.

 You said you don't want an increase in size.  But that's
 exactly what -O3 (via inlining) and -funroll-loops do.
 If you want not to increase size, use the default flags.
 You could even use -Os, which instructs the compiler to
 optimize for small size (it's somewhere between -O and
 -O2).

-O3 was a typo, I meant -O2. And I'm not against an absolute
increase in size, just a significant one (10% is about where I'd start
to care)

--- Nikolas Britton [EMAIL PROTECTED] wrote:
 IIRC the Duron should be set to athlon or athlon-tbird. The athlon-4,
 athlon-xp, athlon-mp knobs should only be used on Athlons with a
 Palomino core or better, your Duron is to slow to be based off
 Palomino. Also -mfp-math=sse does nothing for you because your chip
 doesn't have full SSE support.

No, athlon-xp is valid:
The second-generation Duron, the Morgan core, was sold in speed
grades between 900 and 1300 MHz, and was based on the 180 nm Palomino
Athlon XP core. [wikipedia.org]

And -mfp-math=sse actually does nothing because there's not supposed to
be a hyphen between fp and math.

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


Re: AMD 64 3000

2006-08-18 Thread Chad Leigh -- Shire.Net LLC


On Aug 18, 2006, at 2:00 PM, Nikolas Britton wrote:


On 8/18/06, Jerry McAllister [EMAIL PROTECTED] wrote:


 Anybody have any strong opinions on this for a freebsd 6.1 web  
server? We
 are currently using a 2.40GHz celeron which is fairly slow. I'm  
hesitant

 to switch to 64 bits, are there any gotchas for freeBSD?

What are you doing that would make that seem slow?
Are you sure it is the processor and not some other
part that is the bottleneck, such as disk or NIC or
your pipe to the outside world (ISP)?



He's probably running a big PHP web app... If so try eaccelerator
first, it's in ports under www/eaccelerator. It's an opcode cache for
PHP... should give you a major speed boost.


Yes, I have this running.  Made a HUGE difference.  If it is indeed a  
PHP thing.


Chad

---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad at shire.net



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


Re: joining a windows 2000 network

2006-08-18 Thread Atom Powers

On 8/17/06, Clinton Gibson [EMAIL PROTECTED] wrote:

hello i having some major trouble getting this freebsd server to work with
my windows 2000 network.   i have one machine with the freebsd, two windows
2000 client computers tring to email each other threw the freebsd machine
using outlook and a windows 2000 server with AD and DNS on it.  i was asked
to get the outlooks to talk to each other and i have finally just come to
the conclusion that im am lost.  is there any help that may be able to give
me or at least guide me in the right direction where i might be able to
start figuring this out.


First thing you need to do is find out what you were asked to do. Do
they want to send email back and forth? Do they want to share
calendars? contact? notes? journal? All of the above?

If you just need to send email back and forth all you need is a mail
service. I imagine you already have one since you were able to post
your question.

If you need to share calendars, contacts, etc. in MS Outlook I'm
afraid you are (almost completely) out of luck. There are a few
applications under development target at that functionality
(OpenExchange for one); but if you are stuck with MS Outlook you are
pretty much stuck with MS Exchange. Hope you have a large expense
account...

--
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


buildworld screws awk

2006-08-18 Thread Mischa Peters

Hi All,

Trying to do a source upgrade from FreeBSD 6.1 to 6.1-STABLE.
And it seems that during the build process awk gets changed.

I needed to copy a working awk from a different machine.

[EMAIL PROTECTED]:/usr/src # ls -alF /usr/bin/awk
-r-xr-xr-x  2 root  wheel  119164 Aug 19 01:03 /usr/bin/awk*
[EMAIL PROTECTED]:/usr/src # md5 /usr/bin/awk
MD5 (/usr/bin/awk) = e589c3cadd8e16fc6d824ebc4685d305
[EMAIL PROTECTED]:/usr/src # make buildworld
[snip build process]
=== lib/libncurses (obj,build-tools)
sh /usr/src/lib/libncurses/../../contrib/ncurses/include/ 
MKhashsize.sh /usr/src/lib/libncurses/../../contrib/ncurses/include/ 
Caps  hashsize.h
AWK=awk sh /usr/src/lib/libncurses/../../contrib/ncurses/include/ 
MKncurses_def.sh  /usr/src/lib/libncurses/../../contrib/ncurses/ 
include/ncurses_defs  ncurses_def.h

awk: syntax error at source line 3
context is
if ( NF   == 
awk: illegal statement at source line 3
*** Error code 139

Stop in /usr/src/lib/libncurses.
*** Error code 1
[EMAIL PROTECTED]:/usr/src # ls -alF /usr/bin/awk
-r-xr-xr-x  2 root  wheel  119164 Aug 19 01:03 /usr/bin/awk*
[EMAIL PROTECTED]:/usr/src # md5 /usr/bin/awk
MD5 (/usr/bin/awk) = b91651fcb21b3345c31f76ab3a7f98e1

As you can see the md5 for awk is now different... ?!

What is going on?

Mischa

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


preserving metadata on filesystems that don't

2006-08-18 Thread David King
I would like to create monthly backups of large chunks of data that  
make full use of the unix file system features (that is, regular  
permissions, symlinks, hardlinks, support of certain special  
characters, etc). I would like to back this data up to a (remote)  
filesystem that doesn't support some of these features.


My question is, how can I back up this metadata when the target  
filesystem doesn't support it? It seems like it wouldn't take much  
ruby/perl/younameit to create a small berkelydb or something of all  
of the original data (like permissions and where symlinks live) and  
a map from original filename to the target filename (in the case of  
unsupported characters).


Since this is relatively simple, and I imagine that the incidence of  
people wanting to back up their data to things like USB keys that  
they can access from other operating systems (in this particular  
instance, I am using a Xythos server www.xythos.com with a WebDAV  
remote filesystem), I imagine that this code has already been  
written, but maybe I'm just using the wrong search terms. I'd also  
like to not reinvent rsync if I can avoid it.


Since the target is webdav, I guess that I could use webdav  
properties to store this information (any ideas on how to automate  
that?), but I have to imagine that this has already been done for  
target filesystems like FAT32

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


Re: BSDstats v3.0 - The Security Rewrite

2006-08-18 Thread Marc G. Fournier


Thanks for your comments and suggestions ... I am currently in the middle 
of a campground working on a laptop (missing my desktop dearly, since this 
laptop is my wife's Windows box) ... when I get back online properly 
beginning of Sept, I will work on the suggestions though ... thx ...



On Thu, 17 Aug 2006, Oliver Fromme wrote:


Marc G. Fournier wrote:
 Over the past few days, I've been working with Paul Schmehl and Matthew
 Seaman to come up with a more security sensitive version of BSDstats ...
 one that reduces the amount of sensitive information stored in the
 database down to ... zero.  No IPs, no hostnames ...
 [...]
 From now forward, the stats will be viewable from:

   http://www.bsdstats.org

That's very cool.  I've installed it on some of my machines.
Unfortunately, I haven't been able to use it on all of them,
for reasons outlined below.

I've got a few suggestions and ideas ...

(1)  When run for the first time, you get an error message:
: not found
That's because a few bogus spaces after the backslash in
the line containing the chmod command.  Those trailing
spaces should be removed.  I suppose I don't need to send
a PR for that.  :-)

(2)  Some people aborted the inital sleep 900 (because
of the above-mentioned error message, or other reasons),
then restarted the script.  In this case there is no sleep,
and the submission _seems_ to be successful (no negative
feedback), but it isn't.

One way to improve the situation would be to check the
mtime on the /var/db/bsdstats file.  If it's younger than
900 seconds, a sleep is required.  For example, something
like this piece of shell code (untested):

FILETIME=$( stat -f %m $id_token_file )
NOW=$( date +%s )
if [ $(( $NOW - 900 )) -le $FILETIME ]; then
   SLEEPTIME=$(( 900 - ($NOW - $FILETIME) ))
   echo Token key is younger than 15 minutes!
   echo Sleeping $SLEEPTIME seconds, please wait.
   sleep $SLEEPTIME
fi

(3)  Some sites require the use of a proxy for HTTP access.
Such sites usually have an entry in /etc/make.conf, so the
ports can fetch their distfiles:

FETCH_ENV=  FTP_PROXY=http://proxy.my.site:3128 \
   HTTP_PROXY=http://proxy.my.site:3128

The bsdstats script could easily pick up that entry and set
the environment variables appropriatly.  This line at the
beginning of the script should be sufficient:

export $( make -V FETCH_ENV 2/dev/null )

(4)  Some sites have a proxy that requires authentication.
It is possible to include the password in the FETCH_ENV
entry in /etc/make.conf, but it's usually not a good idea
to do that, because you shouldn't write passwords to files
that are world-readable.

That problem could be solved in different ways.  One way
would be a periodic.conf setting that instructs the script
not to try to submit the data, but instead just print a
reminder to the admin that he should run the monthly script
manually (or print that reminder automatically when the
submission fails because the proxy denies access).
When the admin runs the script manually (which could be
detected by test -t 0, i.e. stdin is a terminal), it
could ask for the HTTP proxy password and then set the
HTTP_PROXY_AUTH variable appropriately (see fetch(3)).

(5)  Some machines might not be able to access the web at
all.  For example, I'm right now working on a farm of 35
machines which don't have internet access, not even via
a proxy.  I can connect to them via ssh/scp (port 22) from
a management machine, and that management machine only has
web access via a proxy.

It would be nice to be able to request token keys on behalf
of those 35 servers from the management machine, transfer
them to the servers, run the data gathering script on the
servers (putting it into a file instead of submitting it
directyl), copy the results to the management machine and
finally submit them from there.  That's pretty complicated,
but I'm afraid I haven't gotten a better idea so far.  :-(

(6)  All of the statistics on the web page are sorted by
percentages.  It would be nice to be able to click on a
column header and have the table sorted by that value.
That would be especially useful for the release statistics
and the country statistics.

(If the PHP sources and a database export were publicly
available, I would have taken a shot at implementing it.)

(7)  In order to make the bsdstats project really useful,
it is very important to have as many FreeBSD people as
possible install it.  Currently, only very few people will
notice the port and bother to install it.  Therefore I
suggest to put bsdstats into the base system (it's only a
small script after all, no bloat), and add a small switch
to sysinstall which asks users whether they want to enable
it, creating appropriate periodic.conf entry for them, and
maybe even automatically running it when booting the newly
installed system for the first time.

Maybe it should be proposed and discussed in the arch@
mailing list.

Best regards
  Oliver

--
Oliver Fromme,  secnetix GmbH  Co. 

Xorg / Monitor questions

2006-08-18 Thread doug
I installed a ATI Radeon R100 QD card on a Desktop. My setup is:

  System: Dell PE 300
  Monitor: Dell 1702FP
  Graphics Card: ATI Radeon R100 QD

To get this to work at all I turned off 'dri', manually set the HorizSync and
VertRefresh and put a Modes line in the Depth 16 display section. I have it
working with KDE but running when Xorg -config xorg.conf, the background grid
waves around. Under KDE it works fine. Does any one know if this is a problem
for the monitor? Second I would like to fix the default background problem as I
like to use twm to upgrade.

The changed parts of xorg.conf:

Section Module
Load  dbe
#   Load  dri--
Load  extmod
Load  glx
 :
### Comment all HorizSync and VertSync values to use DDC:
HorizSync30.0 - 80.0   --
VertRefresh  75.0  --
Option  DPMS
 :
Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
#   DefaultDepth 16- get selected by default
  :
SubSection Display
Viewport   0 0
Depth 16
Modes 1280x1024  - required
EndSubSection
  :

Thanks for any ideas.

_
Douglas Denault
http://www.safeport.com
[EMAIL PROTECTED]
Voice: 301-469-8766
  Fax: 301-469-0601
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Web server mailing list?

2006-08-18 Thread Chris

Kirk Strauser wrote:


On Friday 18 August 2006 9:42 am, albi wrote:

 


excuse me, imho this part of your question is a little unclear, i don't
get the php/mysql idea
   



He wants to subscribe to mailing lists for Apache, PHP, and MySQL that are 
as good as this list is for FreeBSD.
 

Yes, sorry about that every.  Didn't realize I was vague, I kind of 
typed off the question as I ran out the door this morning.  I'm just 
wondering if there is a good list for apache, php, and mysql, i.e. that 
aren't too strict about posts being for just a single one of those 
topics and have the quality of this list for knowledgeable responses.


Chris

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


problem installing one port

2006-08-18 Thread Idelfonso Hernandez
Too many hot in the tropic!

Hi, I have a newbie problem.

#uname -a
FreeBSD unixman.home.cu 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Jan  1 13:42:07
CST 1996 [EMAIL PROTECTED]:/usr/src/sys/compile/UNIXMAN  i386

my system download the port curl-7.16.4  from http://www.freebsd.org/ports
and fail on patch. why?

#cd /usr/ports/ftp/curl
#make install clean
===  Extracting for curl-7.15.4
 Checksum OK for curl-7.15.4.tar.bz2.
===   curl-7.15.4 depends on executable: bzip2 - found
===  Patching for curl-7.15.4
===  Applying FreeBSD patches for curl-7.15.4
-e: not found
*** Error code 127

Stop in /usr/ports/ftp/curl.
*** Error code 1

Stop in /usr/ports/ftp/curl.
*** Error code 1

---
[EMAIL PROTECTED]
Informático  silvestre
web: http://freebsd.snap.cu
---

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


Did not use port_upgrade

2006-08-18 Thread David Daugherty

I did not use port_upgrade to upgrade my mysql-server, php and apache.
I just ran the make and make install and clean. I've got mysql to run
the latest version but my older apache is still at 2.0 (should be at
2.2) and my php is still running at 4.x (should be at 5.1).

Do I need to make deinstall all of these ports and start all over?

--
Doc

[EMAIL PROTECTED]

Strive to be the greatest man in your country, and you may be
disappointed.  Strive to be the best and you may succeed

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


Re: GCC - Optimal Optimization

2006-08-18 Thread Nikolas Britton

On 8/18/06, Sean M. [EMAIL PROTECTED] wrote:

--- Oliver Fromme [EMAIL PROTECTED] wrote:
 The default is -O2 -fno-strict-aliasing -pipe.

info gcc --index optimize options says the default is '-O0'.



That's true for stock GCC but FreeBSD (6.x) CFLAGS, COPTFLAGS, and
CXXFLAGS defaults to -O2 -fno-strict-aliasing -pipe. Try compiling a
port without setting CFLAGS in /etc/make.conf and you will see what we
mean.


 You said you don't want an increase in size.  But that's
 exactly what -O3 (via inlining) and -funroll-loops do.
 If you want not to increase size, use the default flags.
 You could even use -Os, which instructs the compiler to
 optimize for small size (it's somewhere between -O and
 -O2).

-O3 was a typo, I meant -O2. And I'm not against an absolute
increase in size, just a significant one (10% is about where I'd start
to care)



-O2 is the default in FreeBSD 6.x maybe even in 5.5 too. Here's my
make.conf, I run FreeBSD 6.1/i386 on an Athlon64 3200+:

CPUTYPE?=athlon-xp
CFLAGS+= -mtune=athlon64
COPTFLAGS+= -mtune=athlon64

.if ${.CURDIR:M*/devel/sdl1*}
CFLAGS+= -O3
.endif

Note that I don't have -O2 -march=athlon-xp -mfpmath=sse
-funroll-loops -pipe -ffast-math etc. etc. in my conf file. The
reason I don't have it in there is it breaks things! A better way to
do this is on a port by port basis, that's what the .if block is for.
Also note that I don't set CXXFLAGS. Why? because CXXFLAGS is set to
whatever CFLAGS is set to. Also note the use of += and ?=, and the
creative use of -mtune= to optimize the parts of the kernel, world,
and ports that ignore CPUTYPE... BTW never put -march= in CFLAGS
because it WILL break your system... Use CPUTYPE?= to set -march.



--- Nikolas Britton [EMAIL PROTECTED] wrote:
 IIRC the Duron should be set to athlon or athlon-tbird. The athlon-4,
 athlon-xp, athlon-mp knobs should only be used on Athlons with a
 Palomino core or better, your Duron is to slow to be based off
 Palomino. Also -mfp-math=sse does nothing for you because your chip
 doesn't have full SSE support.

No, athlon-xp is valid:
The second-generation Duron, the Morgan core, was sold in speed
grades between 900 and 1300 MHz, and was based on the 180 nm Palomino
Athlon XP core. [wikipedia.org]



My bad.


And -mfp-math=sse actually does nothing because there's not supposed to
be a hyphen between fp and math.



You will break your system if you use that unconditionally. Use the
.if .endif block I showed you if you really feel like using it...
and... you better benchmark before and after because you may actually
be slowing down the app.

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


Re: Mounting a snapshot of a file system

2006-08-18 Thread Malcolm Kay
On Fri, 18 Aug 2006 01:21 am, Odhiambo Washington wrote:
 Hi all,

 I believe that this might be possible..

 I have created a snapshot of a filesystem and moved it to a
 remote host:

 dump -L0af - / | ssh remote_host 'gzip  snapshot.gz'

 Now I have the file snapshot.gz on the remote host.

 Two questions:

 1. How can I mount this snapshot and access its contents?

# zcat snapshot.gz | restore -i -f -
See the restore(8) man page.

 2. How can I use this snapshot to create another system (a
 clone)?
This question leaves me wondering whether you realise that dump 
only backsup a single partition. From your dump you can only 
clone the root partition which usually is quite small and does 
not on its own lead to a useful system.

Anyway to restore this you need to create a suitable partition,
initialise it with newfs, mount the partition, cd into the 
partition and then run restore -r. Again look at the restore(8) 
man page.

Malcolm  

 Thank you for today ;)



 -Wash


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


Re: Setting up proxy

2006-08-18 Thread Viswas Nair

thanks all. i got that working.

On 8/18/06, Oliver Fromme [EMAIL PROTECTED] wrote:


Ivan Levchenko [EMAIL PROTECTED] wrote:
 fetch will also use the default proxy that is set by the HTTP_PROXY
 and FTP_PROXY enviroment variables.

Yes.  That's essentially what I wrote.  :-)
If you want to set them system-wide (not just for the ports
collection), add them to /etc/login.conf.  Refer to the
manual page for details.

Best regards
   Oliver

--
Oliver Fromme,  secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

Life is short (You need Python)
-- Bruce Eckel, ANSI C++ Comitee member, author
   of Thinking in C++ and Thinking in Java
___
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]


accessing machine at work via vpn

2006-08-18 Thread Viswas Nair

I have 2 machines at work:
Machine 1: Windows OS running on Network 1
Machine 2: FreeBSD running on Network 2 (recently setup)

I have 1 machine at home:
Single machine with Windows XP and FreeBSD (recently installed)

Before I had BSD installed at home and office , I used to access my Windows
PC at work using the Cisco VPN client and Remote destop from windows at
home.
But now, I want to be able to access Machines 1  2 at work using BSD at
home (no more Windows XP unless desperate)

I spoke to the IT admin and got a Cisco VPN client for linux. They didnt
have one for BSD. There was one for Solaris and Mac OSX though. Now I need
to setup vpn to connect to my windows box at work as well as the BSD box
that runs on the second network from my FBSD OS at home.

I have no clue how to get this done. If you can suggest any ideas, it will
be greatly appreciated.

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


Re: Disable s2s on ejabberd?

2006-08-18 Thread ke han
Seriously!!!  You mean the nice erlang developers on the ejabberd  
maillist don't have an answer for you?  Having looked at the ejabberd  
code before, I would guess that such an option, could be set within  
the code if its not exposed through its config.
I think you should give the process-one/ejabberd folks another chance  
to answer this question as the vast majority of users on this list  
don't know what ejabberd is...although your question is good  
advertising ;-)...

ke han


On Aug 19, 2006, at 4:16 AM, Kirk Strauser wrote:


On Friday 18 August 2006 3:03 pm, Eric Schuele wrote:


Not sure if this will actually help or not.
   http://www.vanemery.com/Linux/Jabber/jabberd.html


That's for jabberd, not to be confused with ejabberd or  
jabber.  :-/

--
Kirk Strauser


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


Re: problem installing one port

2006-08-18 Thread Andrey Slusar
Fri, 18 Aug 2006 22:35:35 -0400, Idelfonso Hernandez wrote:

 #uname -a FreeBSD unixman.home.cu 4.2-RELEASE FreeBSD 4.2-RELEASE #0:
 Mon Jan 1 13:42:07 CST 1996
 [EMAIL PROTECTED]:/usr/src/sys/compile/UNIXMAN i386

 my system download the port curl-7.16.4 from
 http://www.freebsd.org/ports and fail on patch. why?

 #cd /usr/ports/ftp/curl #make install clean === Extracting for
 curl-7.15.4  Checksum OK for curl-7.15.4.tar.bz2.  === curl-7.15.4
 depends on executable: bzip2 - found === Patching for curl-7.15.4
 === Applying FreeBSD patches for curl-7.15.4 -e: not found *** Error
 code 127

  You Mk/* in ports tree is outdated. Update this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]