Re: undelete in FreeBSD?

2005-07-26 Thread Karel Miklav
Xu Qiang wrote:
 ... is the lack of a cyclin bin, from which you can restore anything
 you have mis-deleted before.
 
 Or, am I mis-informed on this issue?

I scratched my head about it too and finally wrote a simple script
which moves trashed items into auto made date-stamped directories. I
can send it later, if there's interest.

-- 

Regards,
Karel Miklav

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


Re: [OT Re: SPAM Problem]

2005-07-26 Thread Igor Robul

Greg Maruszeczka wrote:


It's probably blowback resulting from the activities of worm-infected
windows hosts. Someone you correspond with got infected and the worm
subsequently propagated itself by picking your name from their address
book and inserting it into the from: header of the message carrying the
worm. Then, badly configured MTAs send helpful NDRs to the sender
informing them that they're messages couldn't be delivered

Pretty routine, really.
 

In 2005.01 we have got 48605 bounce messages (instead of 4-10, our 
clients prefer to call phone) to our
help desk email and I was _forced_ to close this address with 
semi-helpful message after RCPT TO: command about new address.

Now I reopened address and we get normal number of spam messages at it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Need Help Installing FreeBSD with AMD x86

2005-07-26 Thread Corey Farwell
I have all the ISO's burned to a CD, but when I put the boot disk in to 
install, after I restart, it goes to the normal windows. I've already tried 
going to the BIOS settings, but nothing there helped me. What do I do now?
Corey Farwell

-- 
Get Firefox - 
http://www.spreadfirefox.com/?q=affiliatesamp;id=57179amp;t=78%22
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem creation problem during the installation process.

2005-07-26 Thread Dmitry Mityugov
On 7/25/05, Jesus Romero [EMAIL PROTECTED] wrote:
 Hi,
 
 I have the following issue:
 
 Once I've chosen in the sysinstall main menu:
 1- Standart Installation
 2- ad0 as selected drive.
 3- I've deleted the current partitions there and created a new one for
 Freebsd using Use Entire Disk. But I have to click S to define this
 slice as ACTIVE partition and that's it. Click Q.
 4- I use Fdisk Partition Using Entire Disk I click A as default
 partition. Click Q.
 5- I select Standar like Boot Manager for drive ad0.
 6- For Choose Distribution, I choose ALL.
 7- For Choose Media, I choose CD/DVD.
 8- And after I got the following warning:
 
  User Confirmation Requested
  Last Chance! Are you SURE you want to continue the installation?
  If you're running this on a disk with data you wish to save then WE
  STRONGLY ENCOURAGE YOU TO MAKE PROPER BACKUPS before proceeding!
  We can take no responsibility for lost disk contents!
  [ Yes ]No
 
 9- I chose, YES, and I've always gotten the following message.
 
 [ Unable to find device node for /dev/ad0s1b in /dev
   Creation of filesystem will be aborted ]
 
 10- I've tried a lot alternatives, but without luck!!

How big is the drive? What does happen if you create a smaller
partition for the OS at the beginning of the drive instead of using
the entire drive?

-- 
Dmitry Mityugov, St. Petersburg, Russia
I ignore all messages with confidentiality statements

We live less by imagination than despite it - Rockwell Kent, N by E
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: undelete in FreeBSD?

2005-07-26 Thread Peter

Hi,

this tip is taken from BSD hacks
book(http://www.amazon.com/exec/obidos/tg/detail/-/0596006799/002-3776521-4670458?v=glance)

Create a Trash Directory


Save deleted files until you're really ready to send them to the bit 
bucket.
One of the first things Unix users learn is that deleted files are 
really, really gone. This is
especially true at the command line where there isn't any Windows-style 
recycling bin to
rummage through should you have a change of heart regarding the fate of 
a removed file.

It's off to the backups! (You do have backups, don't you?)
Fortunately, it is very simple to hack a small script that will send 
removed files to a custom
trash directory. If you've never written a script before, this is an 
excellent exercise in how

easy and useful scripting can be.
Since a script is an executable file, you should place your scripts in a 
directory that is in
your path. Remember, your path is just a list of directories where the 
shell will look for

commands if you don't give them full pathnames. To see your path:
% echo $PATH
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/
local/bin:/usr/X11R6/bin:/home/dru/bin
In this output, the shell will look for executables in the bin 
subdirectory of dru's home
directory. However, it won't look for executables placed directly in my 
home directory, or

/home/dru. Since bin isn't created by default, I should do that first:
% cd
% mkdir bin
As I create scripts, I'll store them in /home/dru/bin, since I don't 
have permission to store
them anywhere else. Fortunately, no one else has permission to store 
them in my bin

directory, so it's a good match.
The scripts themselves contain at least three lines:
#!/bin/sh
# a comment explaining what the script does
the command to be executed
The first line indicates the type of script by specifying the program to 
use to execute the
script. I've chosen to use a Bourne script because that shell is 
available on all Unix systems.
Your script should also have comments, which start with the # character. 
It's surprising how
forgetful you can be six months down the road, especially if you create 
a lot of scripts. For
this reason, you should also give the script a name that reminds you of 
what it does.
The third and subsequent lines contain the meat of the script: the 
actual command(s) to
execute. This can range from a simple one-liner to a more complex set of 
commands,
variables, and conditions. Fortunately, we can make a trash script in a 
simple one-liner.


Let's start with this variant, which I found as the result of a Google 
search:

% more ~/bin/trash
#!/bin/sh
# script to send removed files to trash directory
mv $1 ~/.trash/
You should recognize the path to the Bourne shell, the comment, and the 
mv command.
Let's take a look at that $1. This is known as a positional parameter 
and specifically refers
to the first parameter of the trash command. Since the mv commands takes 
filenames as

parameters, the command:
mv $1 ~/.trash/
is really saying, mv the first filename, whatever it happens to be, to a 
directory called .trash
in the user's home directory (represented by the shell shortcut of ~). 
This move operation is

our custom recycle.
Before this script can do anything, it must be set as executable:
% chmod +x ~/bin/trash
And I must create that trash directory for it to use:
% mkdir ~/.trash
Note that I've chosen to create a hidden trash directory; any file or 
directory that begins
with the . character is hidden from normal listings. This really only 
reduces clutter, though,
as you can see these files by passing the -a switch to ls. If you also 
include the F switch,

directory names will end with a /:
% ls -aF ~
.cshrc .history .trash/
bin/ images/ myfile
Now comes the neat part of the hack. I want this script to kick in every 
time I use rm. Since
it is the shell that executes commands, I simply need to make my shell 
use the trash

command instead. I do that by adding this line to ~/.cshrc:
alias rm trash
That line basically says: when I type rm, execute trash instead. It 
doesn't matter which
directory I am in. As long as I stay in my shell, it will mv any files I 
try to rm to my hidden

trash directory.
Whenever you create a script, always test it first. I'll start by 
telling my shell to reread its

configuration file:
% source ~/.cshrc
Then, I'll make some test files to remove:
% cd
% mkdir test
% cd test
% touch test1
% rm test1
% ls ~/.trash
test1
Looks like the script is working. However, it has a flaw. Have you 
spotted it yet? If not, try

this:
% touch a aa aaa 
% rm a*
% ls ~/.trash
test1 a
% ls test
aa aaa 
What happened here? I passed the shell more than one parameter. The a* 
was expanded to
a, aa, aaa, and  before trash could execute. Those four parameters 
were then passed
on to the mv command in my script. However, trash passes only the first 
parameter to the
mv command, ignoring the remaining parameters. Fortunately, they weren't 

PAM debug

2005-07-26 Thread Valerio daelli
Hello
we are having problems with PAM authenticating users on LDAP.
We have FreeBSD 5.3.
We would like to switch debugging.
If we put this line in /etc/pam.d/login

authsufficient  pam_ldap.sodebug try_first_pass

nothing happens.
This is our nss_ldap.conf
--
uri  ldap://127.0.0.1/
base dc=ifom-ieo-campus,dc=it
binddn uid=MYID,dc=MYDOMAIN
bindpw MYPASSWD
pam_password SSHA
scope sub
logdir /var/log
debug 9
--
Thanks a lot

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


Re: Need Help Installing FreeBSD with AMD x86

2005-07-26 Thread Glenn Dawson

At 11:57 PM 7/25/2005, Corey Farwell wrote:

I have all the ISO's burned to a CD, but when I put the boot disk in to
install, after I restart, it goes to the normal windows.


More info about your hardware would help.  Are you unable to boot from the 
CD? or are you adding FreeBSD as a second operating system but are unable 
to boot into FreeBSD after the install completes?  What are the normal 
windows?


-Glenn


 I've already tried
going to the BIOS settings, but nothing there helped me. What do I do now?
Corey Farwell

--
Get Firefox -
http://www.spreadfirefox.com/?q=affiliatesamp;id=57179amp;t=78%22
___
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]


Samba without Cups ?

2005-07-26 Thread Graham Bentley
I just want file sharing, not printing.

pkg_add -r samba3 also pulls in cups then my smb log
complains ...

[2005/07/26 00:31:17, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused

(I havent enabled cups daemon)

but insists ;

Global parameter load printers found in service section!

even thought I have printers = no in my smb.conf ???

Anyone know how to stop Samba trying to pal up with cups ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Help Me Please!!!

2005-07-26 Thread Joseph Lynch
cd .  /usr/local/bin/bash
/usr/ports/textproc/intltool/work/intltool-0.34/missing --run
automake-1.9 --gnu
/usr/ports/textproc/intltool/work/intltool-0.34/missing: line 52:
automake-1.9: command not found
WARNING: `automake-1.9' is missing on your system.  You should only need it if
 you modified `Makefile.am', `acinclude.m4' or `configure.in'.
 You might want to install the `Automake' and `Perl' packages.
 Grab them from any GNU archive site.
cd .  /usr/local/bin/bash
/usr/ports/textproc/intltool/work/intltool-0.34/missing --run autoconf
/usr/ports/textproc/intltool/work/intltool-0.34/missing: line 52:
autoconf: command not found
WARNING: `autoconf' is missing on your system.  You should only need it if
 you modified `configure.in'.  You might want to install the
 `Autoconf' and `GNU m4' packages.  Grab them from any GNU
 archive site.
/usr/local/bin/bash ./config.status --recheck
running /usr/local/bin/bash ./configure  --libdir=/usr/local/libdata
--prefix=/usr/local --build=i386-portbld-freebsd4.11
build_alias=i386-portbld-freebsd4.11  --no-create --no-recursion


Hello, I keep getting this error while install application on freebsd.
I have freebsd 4.11 stable I just reformatted and reinstalled it
because I kept getting errors on the last install I did. I have
cvsup'ed ports nermous times and also I did a portupgrade upgrade..
Could anybody please help me with this problem?? Thankss

P.S.
   I have those packages installed already, I did rehash and make
install clean after install. Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Help Me Please!!!

2005-07-26 Thread Frank Staals

Joseph Lynch wrote:


cd .  /usr/local/bin/bash
/usr/ports/textproc/intltool/work/intltool-0.34/missing --run
automake-1.9 --gnu
/usr/ports/textproc/intltool/work/intltool-0.34/missing: line 52:
automake-1.9: command not found
WARNING: `automake-1.9' is missing on your system.  You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.in'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
cd .  /usr/local/bin/bash
/usr/ports/textproc/intltool/work/intltool-0.34/missing --run autoconf
/usr/ports/textproc/intltool/work/intltool-0.34/missing: line 52:
autoconf: command not found
WARNING: `autoconf' is missing on your system.  You should only need it if
you modified `configure.in'.  You might want to install the
`Autoconf' and `GNU m4' packages.  Grab them from any GNU
archive site.
/usr/local/bin/bash ./config.status --recheck
running /usr/local/bin/bash ./configure  --libdir=/usr/local/libdata
--prefix=/usr/local --build=i386-portbld-freebsd4.11
build_alias=i386-portbld-freebsd4.11  --no-create --no-recursion


Hello, I keep getting this error while install application on freebsd.
I have freebsd 4.11 stable I just reformatted and reinstalled it
because I kept getting errors on the last install I did. I have
cvsup'ed ports nermous times and also I did a portupgrade upgrade..
Could anybody please help me with this problem?? Thankss

P.S.
  I have those packages installed already, I did rehash and make
install clean after install. Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 

You just want to install intltool ? then why not just 'cd 
/usr/ports/textproc/intltool/  make install distclean' ?


good luck

--
-Frank Staals


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


Re: Samba without Cups ?

2005-07-26 Thread P.U.Kruppa

On Tue, 26 Jul 2005, Graham Bentley wrote:


I just want file sharing, not printing.

pkg_add -r samba3 also pulls in cups then my smb log
complains ...

[2005/07/26 00:31:17, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused

(I havent enabled cups daemon)

but insists ;

Global parameter load printers found in service section!

even thought I have printers = no in my smb.conf ???

Anyone know how to stop Samba trying to pal up with cups ?

I guess you should rebuild Samba without CUPS printing support.

Regards,

Uli.


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





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


Re: Samba without Cups ?

2005-07-26 Thread Joerg Pulz

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Tue, 26 Jul 2005, Graham Bentley wrote:


I just want file sharing, not printing.

pkg_add -r samba3 also pulls in cups then my smb log
complains ...

[2005/07/26 00:31:17, 0] printing/print_cups.c:cups_cache_reload(85)
Unable to connect to CUPS server localhost - Connection refused

(I havent enabled cups daemon)

but insists ;

Global parameter load printers found in service section!

even thought I have printers = no in my smb.conf ???

Anyone know how to stop Samba trying to pal up with cups ?


Hi,

tha package build defaults to build with cups printing support. so if you 
use the package, you will always get cups installed as a dependency.
if you want to entirely remove this dependency you have to build this port 
from source.and you need to run make config in the ports directory and 
should deslect the CUPS option.


setting load printers = no in smb.conf should prevent samba from 
acquiring any printers at all and you should not see the error message.

As far as i remember, there is NO printers = no option for smb.conf.
You should run testparm(1) to verify the options used in your smb.conf 
file.


Joerg

- -- 
The beginning is the most important part of the work.

-Plato
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC5fFoSPOsGF+KA+MRAsmmAJ4thkbwb7AKjgeXIlds+otzPmCDcgCcCQs1
t5RnGpxL5gRVGHXh2F5gmeE=
=G2bT
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: change mediaopt of NIC to full-duplex

2005-07-26 Thread Gavin McDougall


Thanks to all for the helpful replies and pointers, I thought it would 
have been more complicated than just editing a config file so I was 
looking in the wrong places.


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


Re: Samba without Cups ?

2005-07-26 Thread Alex Zbyslaw

Joerg Pulz wrote:

tha package build defaults to build with cups printing support. so if 
you use the package, you will always get cups installed as a dependency.
if you want to entirely remove this dependency you have to build this 
port from source.and you need to run make config in the ports 
directory and should deslect the CUPS option.


A little exploration of the Makefiles shows this to be false. :-(

In net/samba you have


.if !defined(WITHOUT_CUPS)
WITH_CUPS=  yes
.endif


and



.if defined(WITH_CUPS)
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=--disable-cups
.endif



and in net/samba3 you have:



OPTIONS+=   CUPSWith CUPS printing support on \


and



.if defined(WITH_CUPS)
LIB_DEPENDS+=   cups.2:${PORTSDIR}/print/cups-base
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib
.else
CONFIGURE_ARGS+=--disable-cups
.endif



So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with 
WITH_CUPS=0, either on the make line or through pkgtools.conf (portupgrade).


CUPS support is *not* required for samba to support Unix printing unless 
you need CUPS to support your printer for whatever reason.


--Alex

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


RE: Samba without Cups ?

2005-07-26 Thread Norbert Koch
 So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with 
 WITH_CUPS=0, either on the make line or through pkgtools.conf 
 (portupgrade).

I think that's not quite correct.
For samba 3 you should just 'make'.
WITH_CUPS=0 defines the symbol, and that's what
is checked for in the Makefile, not the value.

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


Re: undelete in FreeBSD?

2005-07-26 Thread Karel Miklav
Peter wrote:
 this tip is taken from BSD hacks

I do not believe this! This girl literally stole my script,
traveled back through time to cover the tracks and made an
article out of her shameless act :)

Anyway, here's the original version of 'the trash':

#! /bin/sh

# Move files in a trash folder.

trash_root=$HOME/.trash
trash_stamp=`date +%Y%m%d%H%M%S`
trash_dest=$trash_root/$trash_stamp

if [ ! -d $trash_root ]; then
   mkdir -p $trash_root
fi

if [ -e $trash_dest ]; then
   echo Ups, $trash_dest exists!
else
   mkdir $trash_dest
   mv $@ $trash_dest/
   echo Files trashed.
fi

-- 

Regards,
Karel Miklav

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


Where to put scripts ?

2005-07-26 Thread Graham Bentley
Hi All,

I have a short script for Flexbackup ;

#!/bin/sh
# Backup using Flexbackup
/bin/rm -f /data/IT/Backup_Log/data*
/usr/local/bin/flexbackup -newtape
/usr/local/bin/flexbackup -dir /data
/usr/bin/mt -f /dev/sa0 rewind
/usr/bin/mt -f /dev/sa0 offline

I put this in /usr/bin/ and made exec

In crontab I put ;

# Flexbackup Nightly Backup Job
0   2   *   *   1-5 root/usr/bin/backup

If I run the script manually at the prompt
it works perfectly and a new log is written
to /data/IT/Backup_Log/ - Great !

(From flexbackup.conf

$logdir = '/data/IT/Backup_Log';   # directory for log files)

If cron runs it, the old log is rm'ed but no new one is written ???

Is it something to do with paths / perms ?

Any help ?

-= Thanks =-













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


RE: Where to put scripts ?

2005-07-26 Thread Norbert Koch
 I have a short script for Flexbackup ;
 
 #!/bin/sh
 # Backup using Flexbackup
 /bin/rm -f /data/IT/Backup_Log/data*
 /usr/local/bin/flexbackup -newtape
 /usr/local/bin/flexbackup -dir /data
 /usr/bin/mt -f /dev/sa0 rewind
 /usr/bin/mt -f /dev/sa0 offline
 
 I put this in /usr/bin/ and made exec
 
 In crontab I put ;
 
 # Flexbackup Nightly Backup Job
 0 2   *   *   1-5 root/usr/bin/backup
 
 If I run the script manually at the prompt
 it works perfectly and a new log is written
 to /data/IT/Backup_Log/ - Great !
 
 (From flexbackup.conf
 
 $logdir = '/data/IT/Backup_Log';   # directory for log files)
 
 If cron runs it, the old log is rm'ed but no new one is written ???
 
 Is it something to do with paths / perms ?

Look into crontab(5). There is a section about the environment settings.
My idea is that flexbackup calls some program w/o full path.
Is flexbackup a shell/perl/* script?

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


questions Xorg

2005-07-26 Thread zick-1
Good day.

Tell how to adjust the display with the help xorgcfg?
And in what file to keep changes? Loading X of system
To be made from/etc/X11/xorg.conf. But I cannot keep
change in this file when I leave from xorgcfg.
Xorgcfg -textmode does adjustments and writes
down them in/etc/X11/xorg.conf but these adjustments do
not approach. The system is not started in general or
with works with too small frequency of the screen. When
I start xorgcfg, I choose the display with help VESA [EMAIL PROTECTED]
that all it becomes normal. To me to have each time to enter in X
with the help xorgcfg and anew to adjust necessary frequency of the screen.
How to make that these adjustments were at once after an
input in X?




-- 
Best regards,
Sergey mailto:[EMAIL PROTECTED]

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


sshd and pam

2005-07-26 Thread cartman_step1



Hello !
Just i have a question about ssh and pam .
Trying to login on a machine with freebsd 5.4 from a machine in where i run
fedora core 4 , i can't complete the operation . 
The error is sshd[449] pam authentication error . What does it mean?How i can 
set
pam to permit to login to freebsd and control the machine remotely?
I'm new to freebsd and i appreciate if anyone can help me to solve the problem 
. 
Thanks in advice
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba without Cups ?

2005-07-26 Thread Alex Zbyslaw

Norbert Koch wrote:

So for samba, you just need to make with WITHOUT_CUPS=1 and samba 3 with 
WITH_CUPS=0, either on the make line or through pkgtools.conf 
(portupgrade).
   



I think that's not quite correct.
For samba 3 you should just 'make'.
WITH_CUPS=0 defines the symbol, and that's what
is checked for in the Makefile, not the value.
 

You're quite right, WITH_CUPS=0 is wrong!  Shouldn't type in such a 
hurry :-)


In fact, WITHOUT_CUPS=1 should work for both samba and samba3.  
WITH_CUPS is just set based on WITHOUT_CUPS.


--Alex

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


Re: Where to put scripts ?

2005-07-26 Thread Alex Zbyslaw

Norbert Koch wrote:


I have a short script for Flexbackup ;

#!/bin/sh
# Backup using Flexbackup
/bin/rm -f /data/IT/Backup_Log/data*
/usr/local/bin/flexbackup -newtape
/usr/local/bin/flexbackup -dir /data
/usr/bin/mt -f /dev/sa0 rewind
/usr/bin/mt -f /dev/sa0 offline

I put this in /usr/bin/ and made exec

In crontab I put ;

# Flexbackup Nightly Backup Job
0   2   *   *   1-5 root/usr/bin/backup

If I run the script manually at the prompt
it works perfectly and a new log is written
to /data/IT/Backup_Log/ - Great !

(From flexbackup.conf

$logdir = '/data/IT/Backup_Log';   # directory for log files)

If cron runs it, the old log is rm'ed but no new one is written ???

Is it something to do with paths / perms ?
   



Look into crontab(5). There is a section about the environment settings.
My idea is that flexbackup calls some program w/o full path.
Is flexbackup a shell/perl/* script?
 

I would also ask, why are you putting it in /usr/bin?  Given that your 
script calls things in /usr/local/bin already, there is no advantage I 
can see to polluting /usr/bin.


To test Norbert's hypothesis, take everything except standard 
directories out of your path and then try running your script.


Does the user owning the cronjob receive any mail with suggestive errors?

--Alex

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


ETINC BW Manager. Watchdog failover not working

2005-07-26 Thread John Oxley
I have installed the ETINC BW Shaper software v3.24c and things aren't
working. The problem I am having is if I try and run watchdogd, I get
this:

[EMAIL PROTECTED]:/sys/conf# watchdogd failover -i 7 -d
IOCTL: Invalid argument
Checking every 2 seconds
enabling WDT
IOCTL: Invalid argument
enable_wdt:: Invalid argument

Below is a detailed explanation of what I have done.

I am using the ETINC BW Manager on a FreeBSD 4.11 system.  Here is my
uname -a
FreeBSD pluto 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #15: Tue Jul 26 
11:25:09 CAT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/Pluto  i386

The machine is a:
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2093.22-MHz 686-class CPU)
with SCSI hard drives, an onboard fxp and onboard em NICs, and I have
bought a 
http://www.etinc.com/product_info.php?products_id=32
for the actual shaping.

The BW software I am using is v3.24c.

I have followed the install docs, not quite to the letter, because I had
to modify the /sys/conf/files from what they said to get the kernel to
compile.  These are my modifications:

   #net/if_ethersubr.coptional ether
   net/if_etherbwmgr.coptional ether
   net/if_etherbwmgr.coptional bw

I am not meant to put the last line there, but if I don't the kernel
compile complains that it can't find the bw device.

I have built the kernel (with my modifications) and the module etbwmgr
loads successfully:
Jul 26 12:50:33 pluto /kernel: ET/BWMGR Driver v3.24c

If I try and load the et_bypass module (which I think is for the gigabit
failover card), i get (link_elf: symbol em_read_ctlext undefined).

I have put 
options  HW_WDOG
into my kernel.

If anyone can give me some pointers as to what to do, please let me
know.

Regards,

-John


smime.p7s
Description: S/MIME cryptographic signature


Re: PAM debug

2005-07-26 Thread Andrey Simonenko
On Tue, 26 Jul 2005 09:19:42 +0200 in lucky.freebsd.questions, Valerio daelli 
wrote:
 Hello
 we are having problems with PAM authenticating users on LDAP.
 We have FreeBSD 5.3.
 We would like to switch debugging.
 If we put this line in /etc/pam.d/login
 
 authsufficient  pam_ldap.sodebug try_first_pass
 
 nothing happens.

According to pam_ldap/nss manual page debug does not work with
pam_ldap/nss.  When I debugged my pam_ldap/nss installation I used
log file from OpenLDAP server and tcpdump.  For the first time my
connections were not TLS encrypted, so it was easy to read content
of packets.

In my environment I don't use bindpw and OpenLDAP sever does not
send passwords in any form to clients.  Instead everyone is able
to read all fields from user dn, except his/her password, when
a user tries to login pam_ldap sends password over TLS encrypted
channel to OpenLDAP server.

Does commands like id bill works on a system with ldap_nss?
Have you tried to use ldapsearch to query your LDAP server from
a client machine?  Create syslog-log file for LDAP server (slapd
in case of OpenLDAP) and check it.

By the way how are you going to share user home directories?
One way is to use NFS with quota on a server (on several servers).
I'm not very happy with this solution, because NFS will export
all fs to clients, if somebody break root, then he/she can
gain access to any user home directory.

There is pam_mount, with some modifications it can be build on
FreeBSD 5.x.  Has somebody tried it with Samba?  What are alternatives
for NFS + quota for systems which use pam_ldap?

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


failed installation of phpBB

2005-07-26 Thread Alain Fabry


  Hello,

  I'm trying to install phpBB on my system but I get the following error
  during installation (running Release 5.4). Which package is
  conflicting and causing this installation to fail?

  I have the following pkg installed which are related to php.

  ducati-748# pkg_info | grep php
  mod_php5-5.0.3_2,1  PHP Apache Module
  php5-gettext-5.0.3_2 The gettext shared extension for php
  php5-pcre-5.0.3_2   The pcre shared extension for php
  php5-session-5.0.3_2 The session shared extension for php
  ducati-748#

  Below is installation failure I get after make install clean

  ducati-748# make install clean
  ===  Installing for phpbb-2.0.17
  ===   phpbb-2.0.17 depends on file: /usr/local/share/pear/System.php
  - not found
  ===Verifying install for /usr/local/share/pear/System.php in
  /usr/ports/devel/pear-PEAR
  ===   pear-PEAR-1.3.5_1 depends on file:
  /usr/local/share/pear/Archive/Tar.php - not found
  ===Verifying install for /usr/local/share/pear/Archive/Tar.php in
  /usr/ports/archivers/pear-Archive_Tar
  ===  Installing for pear-Archive_Tar-1.3.1
  ===   pear-Archive_Tar-1.3.1 depends on executable: pear - not found
  ===Verifying install for pear in /usr/ports/devel/php5-pear
  This port requires the CLI or the CGI version of PHP, but you have
  already installed a conflicting PHP port without them.
  *** Error code 1

  Stop in /usr/ports/devel/php5-pear.
  *** Error code 1

  Stop in /usr/ports/archivers/pear-Archive_Tar.
  *** Error code 1

  Stop in /usr/ports/devel/pear-PEAR.
  *** Error code 1

  Stop in /usr/ports/www/phpbb.
  ducati-748#


  Alain Fabry
  Network Engineer
  Belgacom
  http://[1]www.belgacom.be

References

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


Re: cannot install ntop under freeBSD 5.5

2005-07-26 Thread PK

hi

I did what you suggested.  
I've deinstalled rrdtool completely, tried install ntop but now I get following 
horrible errors:


xmldumpPlugin.c:36:2: warning: #warning
xmldumpPlugin.c:37:2: warning: #warning 
===
xmldumpPlugin.c:38:2: warning: #warning
xmldumpPlugin.c:39:2: warning: #warning The include of gdome.h that follows 
will generate a lot of
xmldumpPlugin.c:40:2: warning: #warning compile warnings about 'shadows a 
global declaration'.
xmldumpPlugin.c:41:2: warning: #warning Unfortunately, it's the way this crud 
is coded and can't
xmldumpPlugin.c:42:2: warning: #warning be fixed. Just ignore them!
xmldumpPlugin.c:43:2: warning: #warning
In file included from /usr/local/include/glib-2.0/glib.h:69,
 from /usr/local/include/libgdome/gdome.h:27,
 from xmldumpPlugin.c:44:
/usr/local/include/glib-2.0/glib/gthreadpool.h:88: warning: declaration of 
'wait' shadows a global declaration
/usr/include/sys/wait.h:103: warning: shadowed declaration is here
In file included from xmldumpPlugin.c:44:
/usr/local/include/libgdome/gdome.h:264: warning: declaration of 'index' 
shadows a global declaration
/usr/include/strings.h:50: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:331: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:483: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:585: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:649: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:694: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:739: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:783: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:801: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:857: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:893: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:935: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:977: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:1013: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:1033: warning: declaration of 'index' 
shadows a global declaration
/usr/include/strings.h:50: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:1044: warning: declaration of 'index' 
shadows a global declaration
/usr/include/strings.h:50: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:1073: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
/usr/local/include/libgdome/gdome.h:1112: warning: declaration of 'version' 
shadows a global declaration
../globals-core.h:53: warning: shadowed declaration is here
xmldumpPlugin.c:45:2: warning: #warning
xmldumpPlugin.c:46:2: warning: #warning 
===
xmldumpPlugin.c:47:2: warning: #warning
In file included from xmldumpPlugin.c:1165:
xml_s_ntopinterface.inc: In function `newxml_ntopinterface':
xml_s_ntopinterface.inc:494: warning: nested extern declaration of 
`BufferTooShort'
xml_s_ntopinterface.inc:529: warning: nested extern declaration of 
`BufferTooShort'
xml_s_ntopinterface.inc:565: warning: nested extern declaration of 
`BufferTooShort'
In file included from xmldumpPlugin.c:1429:
xml_s_simpleprototrafficinfo.inc: In function `newxml_simpleprototrafficinfo':
xml_s_simpleprototrafficinfo.inc:46: error: structure has no member named 
`lastLocal'
xml_s_simpleprototrafficinfo.inc:46: error: structure has no member named 
`lastLocal'
xml_s_simpleprototrafficinfo.inc:52: error: structure has no member named 

RE: undelete in FreeBSD?

2005-07-26 Thread Xu Qiang
Ross Kendall Axe wrote:
 Yes.  MS-Windows doesn't have anything Unix doesn't in this regard.  I
 take it you're not familiar with the DOS/Windows 'del' command...

Hehe, this is a good analog I didn't think of. :)

 If he's worried about accidentally deleting files, he should use KDE
 or Gnome.  They both have a trash can/wastebasket/recycle bin.

Now I just have X Window in my machine. Not as good-looking as Gnome desktop.
Can I install gnome without using ports? I want to install everything manually. 

thanks, 

Regards,
Xu Qiang


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


RE: undelete in FreeBSD?

2005-07-26 Thread Glenn Dawson

At 10:48 PM 7/25/2005, Xu Qiang wrote:

Ross Kendall Axe wrote:
 Yes.  MS-Windows doesn't have anything Unix doesn't in this regard.  I
 take it you're not familiar with the DOS/Windows 'del' command...

Hehe, this is a good analog I didn't think of. :)

 If he's worried about accidentally deleting files, he should use KDE
 or Gnome.  They both have a trash can/wastebasket/recycle bin.

Now I just have X Window in my machine. Not as good-looking as Gnome desktop.
Can I install gnome without using ports? I want to install everything 
manually.


Are you a glutton for punishment?

You can install it manually, I did it once...never again.

Seriously though, there are so many dependencies that it takes forever to 
get everything set up manually.  With ports you just do a make install 
clean and come back in a few hours (or days depending on how fast your 
machine is)


-Glenn



thanks,

Regards,
Xu Qiang


---

We've checked and double checked, it keeps coming up the same thing.
The message is Mars needs women. 


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


Re: failed installation of phpBB

2005-07-26 Thread Jonathan Glaschke
On Tue, Jul 26, 2005 at 07:19:57AM -0500, Alain Fabry wrote:
 
   Hello,
 
   I'm trying to install phpBB on my system but I get the following error
   during installation (running Release 5.4). Which package is
   conflicting and causing this installation to fail?
 
   I have the following pkg installed which are related to php.
 
   ducati-748# pkg_info | grep php
   mod_php5-5.0.3_2,1  PHP Apache Module
   php5-gettext-5.0.3_2 The gettext shared extension for php
   php5-pcre-5.0.3_2   The pcre shared extension for php
   php5-session-5.0.3_2 The session shared extension for php
   ducati-748#
 
   Below is installation failure I get after make install clean
 
   ducati-748# make install clean
   ===  Installing for phpbb-2.0.17
   ===   phpbb-2.0.17 depends on file: /usr/local/share/pear/System.php
   - not found
   ===Verifying install for /usr/local/share/pear/System.php in
   /usr/ports/devel/pear-PEAR
   ===   pear-PEAR-1.3.5_1 depends on file:
   /usr/local/share/pear/Archive/Tar.php - not found
   ===Verifying install for /usr/local/share/pear/Archive/Tar.php in
   /usr/ports/archivers/pear-Archive_Tar
   ===  Installing for pear-Archive_Tar-1.3.1
   ===   pear-Archive_Tar-1.3.1 depends on executable: pear - not found
   ===Verifying install for pear in /usr/ports/devel/php5-pear
   This port requires the CLI or the CGI version of PHP, but you have
   already installed a conflicting PHP port without them.
   *** Error code 1
 
   Stop in /usr/ports/devel/php5-pear.
   *** Error code 1
 
   Stop in /usr/ports/archivers/pear-Archive_Tar.
   *** Error code 1
 
   Stop in /usr/ports/devel/pear-PEAR.
   *** Error code 1
 
   Stop in /usr/ports/www/phpbb.
   ducati-748#
 
 
   Alain Fabry
   Network Engineer
   Belgacom
   http://[1]www.belgacom.be
 
 References
 
   1. http://www.belgacom.be/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Hello,

install php5-cgi and configure apache for treating .php-files as cgi.

-Jonathan

-- 
 | /\   ASCII Ribbon   | Jonathan Glaschke - Lorenz-Görtz-Straße 71,
 | \ / Campaign Against | 41238 Mönchengladbach, Tel: 02166-265876
 |  XHTML In Mail   | Mobil: 0162-3390789, ICQ: 231021883
 | / \ And News | http://jonathan-glaschke.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need Help Installing FreeBSD with AMD x86

2005-07-26 Thread W. D.
At 01:57 7/26/2005, Corey Farwell, wrote:
I have all the ISO's burned to a CD, but when I put the boot disk in to 
install, after I restart, it goes to the normal windows. I've already tried 
going to the BIOS settings, but nothing there helped me. What do I do now?
Corey Farwell

Hey Corey,

In Windows, how many files are on the CD?  Do you see a short
list (# 1) or a long list (# 2)?

1.  Short List:
===
 Volume in drive N is FBSD5   Dsk
 Volume Serial Number is 2966-09C7
 Directory of N:\

54-REL~6 ISO   563,701,760  05-27-05  5:16p 5.4-RELEASE-i386-disc1.iso
CHECKS~8 TXT   207  05-27-05  4:46p CHECKSUM.MD5.txt
 2 file(s)563,701,967 bytes
 0 dir(s)   0 bytes free
===



2.  Long List:
===
 Volume in drive N is fbsd_miniin
 Volume Serial Number is 0537-007E
 Directory of N:\

5~6  3-R 0  11-05-04  4:59a 5.3-RELEASE
ERRATA   HTM 4,831  11-05-04  4:41a ERRATA.HTM
ERRATA   TXT 3,651  11-05-04  4:41a ERRATA.TXT
HARDWARE HTM   115,673  11-05-04  4:41a HARDWARE.HTM
HARDWARE TXT68,633  11-05-04  4:41a HARDWARE.TXT
INSTALL  HTM73,043  11-05-04  4:41a INSTALL.HTM
INSTALL  TXT54,724  11-05-04  4:41a INSTALL.TXT
MIGRATE5 HTM45,289  11-05-04  4:41a MIGRATE5.HTM
MIGRATE5 TXT30,571  11-05-04  4:41a MIGRATE5.TXT
README   HTM20,395  11-05-04  4:41a README.HTM
README   TXT14,921  11-05-04  4:41a README.TXT
RELNOTES HTM   133,496  11-05-04  4:41a RELNOTES.HTM
RELNOTES TXT64,363  11-05-04  4:41a RELNOTES.TXT
BASE   DIR11-05-04  4:34a base
BOOT   DIR11-05-04  4:41a boot
BOOT~36  CAT 2,048  11-05-04  5:00a boot.catalog
CATPAGES   DIR11-05-04  4:34a catpages
CDROMINF25  11-05-04  4:34a cdrom.inf
COMPAT1X   DIR11-05-04  4:34a compat1x
COMPAT20   DIR11-05-04  4:34a compat20
COMPAT21   DIR11-05-04  4:34a compat21
COMPAT22   DIR11-05-04  4:34a compat22
COMPAT3X   DIR11-05-04  4:34a compat3x
COMPAT4X   DIR11-05-04  4:34a compat4x
DICT   DIR11-05-04  4:34a dict
DOCDIR11-05-04  4:34a doc
DOCBOOK  CSS 2,971  11-05-04  4:41a docbook.css
FLOPPIES   DIR11-05-04  4:34a floppies
GAMES  DIR11-05-04  4:34a games
INFO   DIR11-05-04  4:34a info
MANPAGES   DIR11-05-04  4:34a manpages
PACKAGES   DIR10-29-04  7:30a packages
PORTS  DIR11-05-04  4:34a ports
PROFLIBS   DIR11-05-04  4:34a proflibs
SRCDIR11-05-04  4:34a src
TOOLS  DIR07-13-03  7:36a tools
16 file(s)634,634 bytes
20 dir(s)   0 bytes free
===

If you see a short list, instead of the long list then you still
have the OS in image format.  Use Nero or some other ISO
burning software to get the actual CD.

Once you have the CD as it is meant to be used, this might help:
http://www.US-Webmasters.com/FreeBSD/Install/

If you already see the long list, then you have burned the
ISO file correctly.  You need set the BIOS to boot from
the CD.  You might have dig around in there or Google for
better instructions.  Good luck!








Start Here to Find It Fast!™ - http://www.US-Webmasters.com/best-start-page/
$8.77 Domain Names - http://domains.us-webmasters.com/

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


Re: ETINC BW Manager. Watchdog failover not working

2005-07-26 Thread Glenn Dawson

At 04:10 AM 7/26/2005, John Oxley wrote:

I have installed the ETINC BW Shaper software v3.24c and things aren't
working. The problem I am having is if I try and run watchdogd, I get
this:

[EMAIL PROTECTED]:/sys/conf# watchdogd failover -i 7 -d
IOCTL: Invalid argument
Checking every 2 seconds
enabling WDT
IOCTL: Invalid argument
enable_wdt:: Invalid argument

Below is a detailed explanation of what I have done.

I am using the ETINC BW Manager on a FreeBSD 4.11 system.  Here is my
uname -a
FreeBSD pluto 4.11-RELEASE-p11 FreeBSD 4.11-RELEASE-p11 #15: Tue Jul 26 
11:25:09 CAT 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/Pluto  i386


The machine is a:
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2093.22-MHz 686-class CPU)
with SCSI hard drives, an onboard fxp and onboard em NICs, and I have
bought a
http://www.etinc.com/product_info.php?products_id=32
for the actual shaping.

The BW software I am using is v3.24c.

I have followed the install docs, not quite to the letter, because I had
to modify the /sys/conf/files from what they said to get the kernel to
compile.  These are my modifications:

   #net/if_ethersubr.coptional ether
   net/if_etherbwmgr.coptional ether
   net/if_etherbwmgr.coptional bw

I am not meant to put the last line there, but if I don't the kernel
compile complains that it can't find the bw device.


I downloaded their driver, and compiled a new kernel without error.

Here's what I did:

# cd ~glenn
# ftp ftp://ftp.etinc.com/pub/freebsd/freebsd411_bwmgr.tgz
# gzip -d freebsd411_bwmgr.tgz
# tar xf freebsd411_bwmgr.tar
# cd usr/hdlc/dev
# cp if_etherbwmgr.c /sys/net
# cd /sys/net
# emacs files
(added net/if_etherbwmgr.coptional ether)
(commented net/if_ethersubr.c
# cd /usr/src/sys/i386/conf
# GENERIC test
# emacs test
(added options HW_WDOG)
(added options PPP_DEFLATE)
# cd /usr/src
# make KERNCONF=test buildkernel

I don't have one of their cards, so I can't test it, but it did compile 
properly.


What were the errors you saw that prompted you to add the extra line to 
/sys/net/files ?




I have built the kernel (with my modifications) and the module etbwmgr
loads successfully:
Jul 26 12:50:33 pluto /kernel: ET/BWMGR Driver v3.24c


Neither module would load.  It fails with undefined symbols. (deflateInit_ 
for etbwmgr.ko and em_read_ctlext for etbypass.ko)


This looks like the module they supply isn't really compatible with 4.11.

-Glenn



If I try and load the et_bypass module (which I think is for the gigabit
failover card), i get (link_elf: symbol em_read_ctlext undefined).

I have put
options  HW_WDOG
into my kernel.

If anyone can give me some pointers as to what to do, please let me
know.

Regards,

-John


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


RE: ssh over a very bad http proxy :(

2005-07-26 Thread Petersen
Lei Sun [EMAIL PROTECTED] wrote:
 Hi
 
 I spent almost entire week, customizing my freebsd server at home, and
 I would like to access it from my work place.
 
 But it doesn't seems to be possible without making http tunnels
 through an authenticated proxy server.
 
 I tried to use http-tunnel, it doesn't support the
 authenticated feature.

If you're referring to www/httptunnel, then yes it does. I've personally
used it to push ssh sessions via an authenticated http firewall. It's a
little flakey when the http proxy does something it doesn't like (like
closing the connection - it generally just crashes the hts process), but
it does work. Works fine on cygwin too if you only have a windows
machine at one end. Checkout the -P option.

Petersen



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


re: ETINC BW Manager. Watchdog failover not working

2005-07-26 Thread Danial Thom
Neither module would load.  It fails with
undefined symbols. (deflateInit_ 
for etbwmgr.ko and em_read_ctlext for
etbypass.ko) 

This looks like the module they supply isn't
really compatible with 4.11. 


-Glenn 


deflateInit_ is clearly part of DEFLATE option,
so you likely didn't build your kernel properly.
You say you don't have their bypass card, so why
do you expect the bypass driver to load? Perhaps
you need patches that you get when you buy a
card?

More curiously, why don't you ask them rather
than us?

Danial



__
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: Need Help Installing FreeBSD with AMD x86

2005-07-26 Thread virgil huston
 At 01:57 7/26/2005, Corey Farwell, wrote:
 I have all the ISO's burned to a CD, but when I put the boot disk in to
 install, after I restart, it goes to the normal windows. I've already tried
 going to the BIOS settings, but nothing there helped me. What do I do now?
 Corey Farwell

Try hitting F12, F10, or F8 as the computer is booting up (with
FreeBSD disk in the CD drive). That will usually give you an option to
boot from CD, depending on what kind of computer you have. Or, go into
bios and set to boot from CD first.

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


Re: ETINC BW Manager. Watchdog failover not working

2005-07-26 Thread John Oxley
On Tue, Jul 26, 2005 at 06:57:37AM -0700, Danial Thom wrote:
 More curiously, why don't you ask them rather
 than us?

I have, about 3 days ago, but I have not received any response from
them.

-John


smime.p7s
Description: S/MIME cryptographic signature


Re: Need Help Installing FreeBSD with AMD x86

2005-07-26 Thread Gary W. Swearingen
Corey Farwell [EMAIL PROTECTED] writes:

 I have all the ISO's burned to a CD, but when I put the boot disk in to 
 install, after I restart, it goes to the normal windows. I've already tried 
 going to the BIOS settings, but nothing there helped me. What do I do now?

You can download two floppies (kern.flp  mfsroot.flp) from FTP site
where you got the ISOs, or get them off the CD if you can mount that.
Burn to floppies like this (as root):

 dd if=kern.flp of=/dev/fd0 bs=1440k
 dd if=mfsroot.flp of=/dev/fd0 bs=1440k

Boot kern.flop and follow instructions, eventually telling it to
get distributions from CD/DVD.

You probably ought to first try this to test your burning of the
CD a bit (use acd0 or cd0):

   mount -t cd9660 /dev/acd0 /mnt
   cd /mnt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ETINC BW Manager. Watchdog failover not working

2005-07-26 Thread Danial Thom


--- John Oxley [EMAIL PROTECTED] wrote:

 On Tue, Jul 26, 2005 at 06:57:37AM -0700,
 Danial Thom wrote:
  More curiously, why don't you ask them rather
  than us?
 
 I have, about 3 days ago, but I have not
 received any response from
 them.

Did you get a ticket#? They usually answer me
within 10 minutes during US business hours.

Danial




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


jail networking

2005-07-26 Thread Casper


 Hi,

 I have problem with setuping network to jail...
 I have #uname -a
FreeBSD gam.zuze.lv 5.4-RELEASE-p5 FreeBSD Wed Jul 20 19:52:44 EEST 2005
and installed jail on it...
sysctl:
net.inet.ip.forwarding: 1
security.jail.set_hostname_allowed: 1
security.jail.socket_unixiproute_only: 1
security.jail.sysvipc_allowed: 0
security.jail.getfsstatroot_only: 1
security.jail.allow_raw_sockets: 1
security.jail.chflags_allowed: 0
security.jail.jailed: 0

from host ping:
# ping www.google.lv
PING www.l.google.com (216.239.59.104): 56 data bytes
64 bytes from 216.239.59.104: icmp_seq=0 ttl=245 time=64.608 ms
64 bytes from 216.239.59.104: icmp_seq=1 ttl=245 time=65.198 ms
2 packets transmitted, 2 packets received, 0% packet loss

from jail:
jail# ping www.google.lv
PING www.l.google.com (216.239.59.99): 56 data bytes
^C
--- www.l.google.com ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

but traceroute from jail show every second packet:
4  latnet.to.lattelekom.lv (195.13.173.221)  4.324 ms *  4.810 ms
 5  * so-4-0-0-war1.lnt.cw.net (166.63.222.101)  54.223 ms *
 6  so-7-0-0-zcr2.lnt.cw.net (166.63.222.42)  72.205 ms *  54.778 ms
 7  * 195.66.226.125 (195.66.226.125)  90.496 ms *
 8  216.239.46.173 (216.239.46.173)  54.711 ms *  54.204 ms
 9  * 216.239.49.254 (216.239.49.254)  64.939 ms *
10  216.239.49.121 (216.239.49.121)  67.530 ms * 216.239.49.114 
(216.239.49.114)  68.128 ms

11  * 216.239.59.103 (216.239.59.103)  64.615 ms *

From jail I can ping router and local network ips...

My pf.conf:
ext_if=rl0
int_if=rl1
internal_net=172.22.1.0/24
external_addr=xx.xx.xx.xx
table foo { 10.0.0.0/8, 127.0.0.0/8, 172.22.0.0/24, 192.168.0.0/24 }
set loginterface $ext_if
set block-policy return
scrub in all
nat on $ext_if from $internal_net to any - ($ext_if)
pass in all
pass out all
pass  in  on $ext_if proto tcp from any to $ext_if port 22 keep state
pass  out on $ext_if proto { tcp, udp } all keep state
pass in on $ext_if proto { tcp, udp } from any to foo port 80 keep state
pass out on $ext_if from 192.168.0.0/24 to any keep state queue developers
pass out on $ext_if from 192.168.1.0/24 to any keep state queue marketing


There is some manual about jail networking?
I don`t understand why not working jail network if I can ping router 
from jail, routes ok and traceroute strange packets...


tnx,

Casper

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


Re: What OID for this? SNMP issue.

2005-07-26 Thread Alexander Shikoff
Hi, 

On Sat, Jul 09, 2005 at 04:36:44PM -0700, Sean Hafeez wrote:
 Target[merlot-cpusum]:ssCpuRawUser.0ssCpuRawUser.0:[EMAIL PROTECTED]  
 + ssCpuRawSystem.0ssCpuRawSystem.0:[EMAIL PROTECTED] + ssCpuRawNice. 
 0ssCpuRawNice.0:[EMAIL PROTECTED]
 MaxBytes[merlot-cpusum]: 100
 Title[merlot-cpusum]: merlot.beastproject.org - active cpu utilization
 PageTop[merlot-cpusum]: H1merlot.beastproject.org - active cpu  
 utilization/H1
 Unscaled[merlot-cpusum]: ymwd
^^^
...

For a long time I observe the strange issue. Marked string is commented out
if my MRTG-config file. And it is possible that values drawn on the graph
can be greater than 100%!

Can anybody explain how raw counters (ssCpuRawSystem, ssCpuRawUser etc.) are
calculated? And why graph even for one of them (not for sum) can grow over 100%?

Thanks.

-- 
Kind Regards,   Alexander Shikoff
[EMAIL PROTECTED]
Mob.: +380 67 946 31 49

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


sysctl deadmantimer

2005-07-26 Thread scuba
Hi all,

In the BSD/OS there is a kernel countdown counter that can be used
to reboot the machine in case of lock. It´s called deadmantimer.
I used to put a cron entry to preset this counter every 3 min, so
if it goes to zero the server is rebooted.
In the past it save me some times.

Is there anything like this in Freebsd?


- Marcelo


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


mplayer broke FreeBSD console

2005-07-26 Thread Eugene M. Minkovskii
Hello.

I'm using mplayer to play audio mp3 files in console WITHOUT X.
Console is in VESA_132x50 mode.

My mplayer broke console. It seems like symbol \r does not catch
properly. But in Rxvt or Xterm all correct. So, I forced to use
-quiet option when I use mplayer in console.

Versions:
MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 6)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0 
complied for i386 CPU with extensions MMX MMX2 SSE

FreeBSD 5.4-RELEASE-p1

FreeBSD kernel:
device sc
options SC_HISTORY_SIZE=1000
options SC_PIXEL_MODE


-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD-newbie!

2005-07-26 Thread lars.lindblad

Hi.

My name is Lars and lives in Sweden. I have finally bought
FreeBSD 5.2 and the handbook from the FreeBSD-mall. That's
great! I've wanted to leave the Windows-world and I have
been testing Linux for a few years.

But I have some problems with my FreeBSD-installation, and I
hope someone here can help me!

Facts: FreeBSD5.2 (feb 2004 version), IBM Thinkpad (laptop
with 300Mhz Intel II, 96Mb RAM and 20Gb HDD.

1. Since I have been used to KDE over the years, I have
decided to continue with that, but it locks up the entire
computer - sometimes when I start KDE, and mostly when I
shut it down.

2. In frustration over KDE-issues I tested Gnome. Quite
pretty Window Manager, but I never got any working keyboard
there. Ideas? And can I run KDE-applications in Gnome? I use
Kstars a lot.

3. In Sweden we have some exciting extra wovels... but the
keymaps never seem to find them. What do I do wrong? What
kind of a keyboard do I have on a Thinkpad anyway?! At some
configurations I've got the  and , but no ~, and of course
the opposite has also happened.

Um... I think that's all for now. Hope someone can help!
Thanks in advance!

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


FreeBSD-newbie!

2005-07-26 Thread lars.lindblad

Hi.

My name is Lars and lives in Sweden. I have finally bought
FreeBSD 5.2 and the handbook from the FreeBSD-mall. That's
great! I've wanted to leave the Windows-world and I have
been testing Linux for a few years.

But I have some problems with my FreeBSD-installation, and I
hope someone here can help me!

Facts: FreeBSD5.2 (feb 2004 version), IBM Thinkpad (laptop
with 300Mhz Intel II, 96Mb RAM and 20Gb HDD.

1. Since I have been used to KDE over the years, I have
decided to continue with that, but it locks up the entire
computer - sometimes when I start KDE, and mostly when I
shut it down.

2. In frustration over KDE-issues I tested Gnome. Quite
pretty Window Manager, but I never got any working keyboard
there. Ideas? And can I run KDE-applications in Gnome? I use
Kstars a lot.

3. In Sweden we have some exciting extra wovels... but the
keymaps never seem to find them. What do I do wrong? What
kind of a keyboard do I have on a Thinkpad anyway?! At some
configurations I've got the  and , but no ~, and of course
the opposite has also happened.

Um... I think that's all for now. Hope someone can help!
Thanks in advance!

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


Thank you for your submission!

2005-07-26 Thread myclass
http://www.myclassics.com

You e-mail is very important to us at MyClassics.com and we appreciate your 
taking time to e-mail us.

Due to the large amount of e-mail we receive, our staff will review your e-mail 
shortly.

Once again, Thank You!

MyClassics.com Staff

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


Strange bootloader problem

2005-07-26 Thread Jaap Boender

Hi all,

Well, here's one for the books. I've got a Dell Latitude D610, and yesterday
I upgraded the BIOS to its newest version (A04). This worked nicely, but after
the upgrade, the third stage bootloader won't boot the kernel anymore.

I can get to the boot loader from grub, but then it says 'can't find kernel'
and that's it. If I try a ls it says 'no such file or directory' -
incidentally, the file system itself is okay, if I boot from a fixit CD with
-a and use the hard disk as the root partition, it all works fine.

I've tried installing FreeBSD from scratch on another partition, with the same
result. The only thing that goes wrong is /boot/loader not being able to load
the kernel. Well, that and grub not being able to boot the kernel directly,
but that might very well just be Grub...

So now I'm stumped. Does anyone have any advice? I'm running 5.4-STABLE, just
cvsupped, built and installed an hour ago.

Thanks,

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


Re: FreeBSD-newbie!

2005-07-26 Thread Eugene M. Minkovskii
On Tue, Jul 26, 2005 at 04:38:01PM +0100, lars.lindblad wrote:
 
 Hi.
 
 My name is Lars and lives in Sweden. I have finally bought
 FreeBSD 5.2 and the handbook from the FreeBSD-mall. That's
 great! I've wanted to leave the Windows-world and I have
 been testing Linux for a few years.
 
 But I have some problems with my FreeBSD-installation, and I
 hope someone here can help me!
 
 Facts: FreeBSD5.2 (feb 2004 version), IBM Thinkpad (laptop
 with 300Mhz Intel II, 96Mb RAM and 20Gb HDD.

It seems to me, more wise is to use FreeBSD 5.4 in laptop,
because FreeBSD 5.2 was some problems in ACPI. thats problems was
fixed in latest releases.


 1. Since I have been used to KDE over the years, I have
 decided to continue with that, but it locks up the entire
 computer - sometimes when I start KDE, and mostly when I
 shut it down.

Perhaps you should turn off ACPI. First of all try to boot witout
ACPI (I don't remember, but it seems to me this is a second item
in boot menu), if this bring good resalt to you, go to the
/boot/device.hints and add to this file following line:

hint.acpi.0.disable=1


 2. In frustration over KDE-issues I tested Gnome. Quite
 pretty Window Manager, but I never got any working keyboard
 there. Ideas? And can I run KDE-applications in Gnome? I use
 Kstars a lot.
 
 3. In Sweden we have some exciting extra wovels... but the
 keymaps never seem to find them. What do I do wrong? What
 kind of a keyboard do I have on a Thinkpad anyway?! At some
 configurations I've got the  and , but no ~, and of course
 the opposite has also happened.

I think you don't configure your X properly. Perhaps you may copy
paste your language settings from Linux, which you tested for a
few years. I use WindowMaker and run many KDE and GNOMEs
progrums under it. Moreover, I'm a russian user. This is much
more hard language for localization, then sweden. We have more
then 3 different encodings, more then 2 different input-maps.


 Um... I think that's all for now. Hope someone can help!
 Thanks in advance!
 
 / Lars
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
Sensory  yours, Eugene  Minkovskii
Сенсорно ваш,   Евгений Миньковский
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


beta 6 usb keyboard issues

2005-07-26 Thread Dennis Olvany
I attempted to install 6 beta without success. As with earlier versions, the 
default installer does not recognize a usb keyboard. Earlier versions had the 
simple menu, Push 7 for usb keyboard. I don't want to know how to accomplish 
this in freebsd 6, I want it to be intuitive! Why not make it ultra-intuitive 
and support usb keyboards by default? This really needs to be ironed out by 
release time. There has got to be a better way. (Hint: The old way was better.) 
Any replies need to be directly addressed, I do not monitor the list.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


fastcgi port fixed but not updated?

2005-07-26 Thread Mike Friedman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've recently discovered a problem report for the mod_fastcgi (2.4.2) 
port:  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/79774. The report 
seems to indicate that the port was fixed shortly after the PR was sent 
(May 31), yet I just did a cvsup and the buggy port still shows up.


I have made the fix to my copy of the port and it does work, but why isn't 
the fixed version available via cvsup?  My cvsup log (run just this 
morning) shows that the fastcgi Makefile was checked out, yet its date is 
still early on May 31, apparently just before the fix was done, according 
to the PR.


Anyone know what might be going on?  Since the fastcgi port is called by 
the rt-3.4.2 port (which is my real interest), keeping my fixed version of 
the former around under a different name is not really a good option, in 
case I need to update RT.


Thanks.

Mike

_
Mike Friedman   System and Network Security
[EMAIL PROTECTED]  2484 Shattuck Avenue
1-510-642-1410  University of California at Berkeley
http://ack.Berkeley.EDU/~mikef  http://security.berkeley.edu
_

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBQuZ1jq0bf1iNr4mCEQIOfACgk8PCCvxZ63wS8fNRkVFo63RYUP8AoJZ1
pYE15oKcDbAnKtDVMKrcBzVi
=r/OJ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


(no subject)

2005-07-26 Thread scuba
Hi All,


I´m trying to enable the hardware monitoring with lmmon on an
Intel server board, based on ICH2 chipset, but when I put the following
line in the kernel config file:


device  ichsmb


I get this error messages:

In file included from /usr/src/sys/dev/ichsmb/ichsmb.c:64:
/usr/src/sys/dev/ichsmb/ichsmb_var.h:44:22: smbus_if.h: No such file or
directory
In file included from /usr/src/sys/dev/ichsmb/ichsmb_pci.c:66:
/usr/src/sys/dev/ichsmb/ichsmb_var.h:44:22: smbus_if.h: No such file or
directory
mkdep: compile failed
*** Error code 1


What is wrong?

FreeBSD 5.4


- Marcelo Souza

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


hardware monitor

2005-07-26 Thread scuba
Hi,

Just to put a subject...

On Tue, 26 Jul 2005 [EMAIL PROTECTED] wrote:

|Hi All,
|
|
|   I´m trying to enable the hardware monitoring with lmmon on an
|Intel server board, based on ICH2 chipset, but when I put the following
|line in the kernel config file:
|
|
|device  ichsmb
|
|
|I get this error messages:
|
|In file included from /usr/src/sys/dev/ichsmb/ichsmb.c:64:
|/usr/src/sys/dev/ichsmb/ichsmb_var.h:44:22: smbus_if.h: No such file or
|directory
|In file included from /usr/src/sys/dev/ichsmb/ichsmb_pci.c:66:
|/usr/src/sys/dev/ichsmb/ichsmb_var.h:44:22: smbus_if.h: No such file or
|directory
|mkdep: compile failed
|*** Error code 1
|
|
|What is wrong?
|
|FreeBSD 5.4
|
|
|- Marcelo Souza
|
|___
|freebsd-questions@freebsd.org mailing list
|http://lists.freebsd.org/mailman/listinfo/freebsd-questions
|To unsubscribe, send any mail to [EMAIL PROTECTED]
|


- Marcelo


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


Microsoft Wireless Intellimouse 1.0 not work?

2005-07-26 Thread dmwassman
Hello all,

I have googled to no avail. I have a Microsoft Wireless USB Intellimouse 1.0. I 
would like to use it on my FreeBSD 5.4 system. It recognizes the mouse but I 
can't get it to work. I have read that some people can get it to work, that 
there is a patch I need to apply to the kernel to get it to work, that the 
first byte sent by the mouse is unknown and that the usm driver is expecting a 
directional bit. Does anyone know if I can use this mouse with FreeBSD? Is 
anyone using this mouse with FreeBSD? And if so, how did you get it to work?

I have tried so far loading the intellimouse driver in sysinstall to no avail ( 
as I expected as it is used for a serial port mouse and moused will not load 
with nothing in the ps/2 port).

Thanks in advanced
David

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


Re: Strange bootloader problem

2005-07-26 Thread Gary W. Swearingen
Jaap Boender [EMAIL PROTECTED] writes:

 So now I'm stumped. Does anyone have any advice? I'm running 5.4-STABLE, just
 cvsupped, built and installed an hour ago.

Since you changed your BIOS, I'm suspecting something fishy with the
BIOS settings for disk geometry, like not LBA or something, but you've
probably already checked the BIOS setup...

Read the boot(8) manpage paragraph starting with However, which
says how to by-pass /boot/loader and maybe try that.

Also, loader(8) manpage has a boot_verbose variable that might help.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Serving passive ftp through ipfilter and ipnat

2005-07-26 Thread brian . barto
Hi all.
 
I have an freebsd ftp server behind a freebsd firewall. The firewall is
using ipfilter and ipnat. Everything works great except for my ftp service
(have http and smtp too). I am trying to set it up to be passive which i
understand is better for those who connect to my server. The way it stands
right now, users can connect and login, but can't get a directory listing.
They get an error that says Can't build the data connection: no route to
host.
 
I have adjusted the following sysctls to limit the data ports that ftpd
uses:
 
net.inet.ip.portrange.hifirst: 6
net.inet.ip.portrange.hilast: 65000
 
To accomidate this port range I have the following in my ipf.rules:
 
pass out proto tcp all keep state
pass in quick on fxp1 proto tcp from any to any port 6  65000 flags S
keep state
 
My ipnat.rules file contains the following entry to forward port 21 to my
ftp server (X.X.X.X = external ip):
 
rdr fxp1 X.X.X.X/32 port 21 - 192.168.1.2 port 21
 
That's basically all I have set up. I think I need to somehow redirect ports
6 - 65000 to my ftp server to get it to work but I don't know how
without putting in 5000 entries in my ipnat.rules. If that's not it, i'm
lost.
 
Any suggestions?
 
Thanks,
Brian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg 6.8.2 Big Problems....

2005-07-26 Thread perikillo
On 7/12/05, perikillo [EMAIL PROTECTED] wrote:
 On 7/12/05, Bernhard Fischer [EMAIL PROTECTED] wrote:
  Hy Perikillo!
 
  I still have the same problem, and also no solution.
  One time I thought I had one, but I was mistaken :-(((
 
  Regards,
  bh
 
 
Hi Fischer, i test with 5-stable and the same problem, right now
 iam goint to continue with 5.2.1, this one like i say before, really
 works for me and my keyboard, i already test with. Give a try Fischer.
 
I only test 5.4-Release to see the X system, i have running 4.11
 without any problems, but i want to test the 5 stuff.
 
But let see what happend, any information about i let you know
 Fischer see you.
 
   About this problem, yesterday a buy one new keyboard Genius with a
lot of keys on it,  i think 24, i really dont remember, but the case
is that i install again xorg 6.8.2 on a fresh new 5.4 release install,
without any buildworld or kernel, i think thats not really important
to test my X system.
  
   The think is that i let my system instaling xorg from ports,  on my
P2, and this morning went i wake up and the installation finish with
any errors. Them i setup my X system following the Handbook and went i
run the server...

   My keyboard was working with the Xterm, i am really happy, i dont
make to much test on it, because i have to work, but i dont see any
problems, all my keys where display on the X system, today after work,
i will install some Windows Manager and make the last test, if
everything goes great, i will make the buildworld process.

   Fisher after some weeks, i see light, maybe was my standard
   104 keyboard that dosent comunicate very well with the new driver
kbd on xorg 6.8.2, because i was running xorg  6.8.2 on freebsd
5.2.1, but the problem here is that this release is not good, a lot of
ports are broken, this way i invest on one new kbd and try this way,
and is working.
   
  Hope, you already have working xorg 6.8.2.

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


ipfw: deny traffic between interfaces

2005-07-26 Thread Eric Pretorious
I'm using FreeBSD 4.10 as a masquerading firewall for three private networks 
and want to restrict traffic between each interface (kind of like VLAN's).

The firewall's interfaces are configured as such:

  sis0  public
  rl0   192.168.1.1
  fxp0  192.168.2.1
  sis1  192.168.4.1

...and ipfw is configured as such:

  00050 134535198660535275  divert 8668 ip from any to any via sis0
  00100 490 81262   allow ip from any to any via lo0
  00200 0   0   deny ip from any to 
127.0.0.0/8
  00300 0   0   deny ip from 
127.0.0.0/8 to any
  65000 2695580217357286222 allow ip from any to any
  65535 0   0   deny ip from any to any

How can I accomplish this with ipfw? (I thought that something like `ipfw add 
400 deny ip from rl0 to not sis0` would do the job but it didn't.)

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


samba / hard drive issues

2005-07-26 Thread fci
this box is only going to be running ssh and samba.
I setup three drives, 1 for the OS and 1 for the primary samba share,
and the other to backup the primary nightly.
when I would copy files from the primary to the backup I would get an
error similar to this:
Warning - WRITE_DMA UDMA ICRC error (retry request)

so I did some googling and found disabling DMA might fix it (in
loader.conf I added hw.ata.ata_dma=0)

now I get this error about every 10mins:
inetd[473]: netbios-ns/udp: bind: Address already in use
inetd[473]: netbios-ssn/tcp: bind: Address already in use

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


FreeBSD 6

2005-07-26 Thread Nikolas Britton
Do I always need to run 'make cleandepend' when rebuilding a kernel,
normally I build my kernels the old school way?

Is it just me or is -O2 now the default for kernel builds? What about
-Os, safe to use?

The kernel build failed when it tired to compile the r128drm device.

Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
is commented out in the default kernel?

Is the new ATA RAID stuff, metadata something, going to be backported
to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
HostRAID but it looks like it's not supported in 5.x

--

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


Load much higher after upgrading to 5.4-STABLE

2005-07-26 Thread Benson Wong
Hi, 

I upgraded from 5.4-STABLE (about 5 months old) to 5.4-STABLE as of
last Sunday. Went through the standard procedure, buildkernel,
buildworld, install kernel, install world, mergemaster, etc.

The system functions normally except now load on the system hovers
around 2.4 average, where it used to be around 0.5. From what I can
tell nothing much has changed. The system works as an NFS server for
Maildirs. It is working normally, and I see no performance problems,
however the load seems to be much higher (graphed with MRTG ever 5
minutes).

Anybody else encounter this? Offer any insights? 

Thanks. 
Ben.

-- 
blog: http://www.mostlygeek.com
___
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

2005-07-26 Thread Nikolas Britton
On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
 Do I always need to run 'make cleandepend' when rebuilding a kernel,
 normally I build my kernels the old school way?
 
 Is it just me or is -O2 now the default for kernel builds? What about
 -Os, safe to use?
 
 The kernel build failed when it tired to compile the r128drm device.
 
 Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
 is commented out in the default kernel?
 
 Is the new ATA RAID stuff, metadata something, going to be backported
 to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
 HostRAID but it looks like it's not supported in 5.x
 
 --
 
 Feel free to add more questions to this thread.
 


One more thing... Will FreeBSD 5.4 kernel modules work under 6.x?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem with Opera Plug-ins

2005-07-26 Thread lars

Hi all,

I can't seem to get Opera to run the Realplayer plug-in on FreeBSD 5.4 Stable.

I have

open-motif-2.2.3_2
opera-8.01.20050615
linux-realplayer-10.0.5

installed.


Following the instructions on:
http://www.bbc.co.uk/radio/audiohelp_nix.shtml

In /usr/X11R6/share/opera/plugins I created following symlinks:

% sudo ln -s /usr/X11R6/lib/linux-mozilla/plugins/nphelix.so nphelix.so
% sudo ln -s /usr/X11R6/lib/linux-mozilla/plugins/nphelix.xpt nphelix.xpt

So I have this:

/usr/X11R6/share/opera/plugins% ls -la 


total 378
drwxr-xr-x   2 root  wheel512 Jul 26 22:04 .
drwxr-xr-x  11 root  wheel512 Jul 22 18:42 ..
-rwxr-xr-x   1 root  wheel  82228 Jul 22 18:42 libnpp.so
lrwxr-xr-x   1 root  wheel 47 Jul 26 22:04 nphelix.so - 
/usr/X11R6/lib/linux-mozilla/plugins/nphelix.so
lrwxr-xr-x   1 root  wheel 48 Jul 26 22:04 nphelix.xpt - 
/usr/X11R6/lib/linux-mozilla/plugins/nphelix.xpt

-rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-1
-rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-2
-rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-3
-rwxr-xr-x   1 root  wheel  33056 Jul 22 18:42 operaplugincleaner

unfortunately to no avail.




Apparently the line libXThrStub.so.6 = not found (0x0) in

% ldd /usr/X11R6/share/opera/plugins/operamotifwrapper-3
/usr/X11R6/share/opera/plugins/operamotifwrapper-3:
libXm.so.3 = /usr/X11R6/lib/libXm.so.3 (0x2808b000)
libXt.so.6 = /usr/X11R6/lib/libXt.so.6 (0x282bc000)
libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x2830a000)
libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x28317000)
libm.so.2 = /usr/lib/compat/libm.so.2 (0x283de000)
libc.so.4 = /usr/lib/compat/libc.so.4 (0x283f9000)
libXThrStub.so.6 = not found (0x0)
libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x28492000)
libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x2849b000)
libXp.so.6 = /usr/X11R6/lib/libXp.so.6 (0x284b3000)

is the problem.




Googling I found this message:
http://lists.freebsd.org/pipermail/freebsd-x11/2005-March/001810.html

[...]

I then did define BuildThreadStubLibrary in FreeBSD.cf and plugger/opera
work (mostly).

Ulrich Spörlein



Searching for FreeBSD.cf I get this:

% locate FreeBSD.cf
/usr/X11R6/lib/X11/config/FreeBSD.cf
/usr/ports/devel/imake-6/files/patch-FreeBSD.cf
/usr/ports/net/tightvnc/files/patch-Xvnc::config::cf::FreeBSD.cf
/usr/ports/net/vnc/files/FreeBSD.cf-patch
/usr/ports/x11/XFree86-4-libraries/files/patch-FreeBSD.cf
/usr/ports/x11-servers/XFree86-4-Server/files/patch-FreeBSD.cf
/usr/ports/x11-servers/xorg-server/files/patch-FreeBSD.cf
/usr/ports/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf

I'm a bit scared of messing up my system, so I'll ask first.
Do I have to rebuild xorg or world or what do I have to do?

Thanks in advance,
lars.
___
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

2005-07-26 Thread Kövesdán Gábor

Nikolas Britton wrote:


Do I always need to run 'make cleandepend' when rebuilding a kernel,
normally I build my kernels the old school way?

 

I suspect it is only needed, when You want to rebuild Your custom 
kernel, but haven't deleted
the /usr/src/sys/arch/compile/KERNCONF/ directory, so there is some old 
junk.



Is it just me or is -O2 now the default for kernel builds? What about
-Os, safe to use?

 

So is it for me. But if I specify some CFLAGS, for example -O3 
-march=athlon64, the
building fails, but CFLAGS mustn't affect the kernel compiling process 
afaik. There is
COPTFLAGS for that reason. I've also made a PR about this new, unwanted 
behaviour,

but haven't got any answers so yet.


The kernel build failed when it tired to compile the r128drm device.

Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
is commented out in the default kernel?

 

It's nice for me. I had a general protection fault, but I can't prove, 
that ULE made that,
I had similar with 4BSD. FreeBSD 6 is quite stable for me when I don't 
use my nve network

interface that has a poor driver.


Is the new ATA RAID stuff, metadata something, going to be backported
to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
HostRAID but it looks like it's not supported in 5.x

--

Feel free to add more questions to this thread.
___
 


___
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

2005-07-26 Thread Nikolas Britton
On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
 On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
  Do I always need to run 'make cleandepend' when rebuilding a kernel,
  normally I build my kernels the old school way?
 
  Is it just me or is -O2 now the default for kernel builds? What about
  -Os, safe to use?
 
  The kernel build failed when it tired to compile the r128drm device.
 
  Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
  is commented out in the default kernel?
 
  Is the new ATA RAID stuff, metadata something, going to be backported
  to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
  HostRAID but it looks like it's not supported in 5.x
 
  --
 
  Feel free to add more questions to this thread.
 
 
 
 One more thing... Will FreeBSD 5.4 kernel modules work under 6.x?
 

Sorry! a few more things:

At boot up I get these errors / warnings:
kenv: unable to get dumpdev

no such user: _dhcp, falling back to nobody

I left groups and master.passwd files to deal with later in
mergemaster and then I manually added the dhcp user to both of those
files but the system still can't find him.

Starting default moused: moused: unable to open /dev/ums0: Device busy

I don't know whats up with that but my mouse does work.
___
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

2005-07-26 Thread Lowell Gilbert
FreeBSD 6 (which hasn't been released yet, and will change a bit more
before it is) is still very cutting edge.  I would *strongly*
recommend that you follow the -CURRENT mailing list if you're going to
use it.

Nikolas Britton [EMAIL PROTECTED] writes:

 On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
  On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
   Do I always need to run 'make cleandepend' when rebuilding a kernel,
   normally I build my kernels the old school way?
  
   Is it just me or is -O2 now the default for kernel builds? What about
   -Os, safe to use?

Yes, and not sure.

   The kernel build failed when it tired to compile the r128drm device.

With a default kernel?  Try updating your sources again.

   Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
   is commented out in the default kernel?

See the -CURRENT list archives.  It's gotten fairly stable for a lot
of people, and performs better in a number of cases, but it still
causes trouble in some others.

   Is the new ATA RAID stuff, metadata something, going to be backported
   to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
   HostRAID but it looks like it's not supported in 5.x

Search for messages about that.  SOS@ has discussed it quite a bit, if
I recall correctly.

  One more thing... Will FreeBSD 5.4 kernel modules work under 6.x?

No.

 
 Sorry! a few more things:
 
 At boot up I get these errors / warnings:
 kenv: unable to get dumpdev

Try setting dumpdev?

 no such user: _dhcp, falling back to nobody
 
 I left groups and master.passwd files to deal with later in
 mergemaster and then I manually added the dhcp user to both of those
 files but the system still can't find him.

You rebuilt the password database, right?  You know you can't just
open up the password file and edit it?

 Starting default moused: moused: unable to open /dev/ums0: Device busy
 
 I don't know whats up with that but my mouse does work.

And if you disable moused?

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


Re: questions Xorg

2005-07-26 Thread Lowell Gilbert
zick-1 [EMAIL PROTECTED] writes:

 Good day.
 
 Tell how to adjust the display with the help xorgcfg?
 And in what file to keep changes? Loading X of system
 To be made from/etc/X11/xorg.conf. But I cannot keep
 change in this file when I leave from xorgcfg.
 Xorgcfg -textmode does adjustments and writes
 down them in/etc/X11/xorg.conf but these adjustments do
 not approach. The system is not started in general or
 with works with too small frequency of the screen. When
 I start xorgcfg, I choose the display with help VESA [EMAIL PROTECTED]
 that all it becomes normal. To me to have each time to enter in X
 with the help xorgcfg and anew to adjust necessary frequency of the screen.
 How to make that these adjustments were at once after an
 input in X?

Look over the X server log.  
When you look at what parameters it loads, you may get a clue as to
why it isn't using the parameters you expect.
It may even be loading a different configuration file than you think.

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


Restarting X server within KDE?

2005-07-26 Thread David Gerard

Many years ago, I ran fvwm2 under Solaris. It actually had a menu option
set up whereby you could restart the X server without all your X clients
dying.

I really wanted this the other week when KDE went weird on me and the mouse
pointer disappeared. (After only two months! With this sort of
unreliability, open source will never be ready for Joe Consumer.)

How does one restart the X server without it killing all the clients?


- d.


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


Re: fastcgi port fixed but not updated?

2005-07-26 Thread Lowell Gilbert
Mike Friedman [EMAIL PROTECTED] writes:

 I've recently discovered a problem report for the mod_fastcgi (2.4.2)
 port:  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/79774. The
 report seems to indicate that the port was fixed shortly after the PR
 was sent (May 31), yet I just did a cvsup and the buggy port still
 shows up.
 
 I have made the fix to my copy of the port and it does work, but why
 isn't the fixed version available via cvsup?  My cvsup log (run just
 this morning) shows that the fastcgi Makefile was checked out, yet its
 date is still early on May 31, apparently just before the fix was
 done, according to the PR.
 
 Anyone know what might be going on?  Since the fastcgi port is called
 by the rt-3.4.2 port (which is my real interest), keeping my fixed
 version of the former around under a different name is not really a
 good option, in case I need to update RT.

The bug report claims that the install fails.
It works fine for me with the Apache 1.3 port, so I suspect that a
more sophisticated fix would be needed; if the path were hardcoded as
you suggest, the port would *only* work with Apache2.


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


Re: Dell Powervault 120T / ADIC FastStor DLT D116

2005-07-26 Thread Brian A. Seklecki

On Mon, 25 Jul 2005, Brian A. Seklecki wrote:


For some reason, the tape changer is probing as pass(4) instead of ch(4).


Any ideas why?  SCSI devices have a device class designation, IIRC.


Nevermind, someone had removed device ch from the kernel config (as 
well as uk(4), which explains pass(4) attachment)


ch1 at ahc0 bus 0 target 0 lun 0
ch1: ADIC FastStor DLT D116 Removable Changer SCSI-2 device
ch1: 3.300MB/s transfers
ch1: 7 slots, 1 drive, 1 picker, 0 portals

sa0 at ahc0 bus 0 target 1 lun 0
sa0: QUANTUM DLT7000 2561 Removable Sequential Access SCSI-2 device
sa0: 20.000MB/s transfers (10.000MHz, offset 8, 16bit)

# amtapetype -f /dev/sa0
Writing 256 Mbyte   compresseable data:  25 sec
Writing 256 Mbyte uncompresseable data:  207 sec
WARNING: Tape drive has hardware compression enabled
Estimated time to write 2 * 1024 Mbyte: 1656 sec = 0 h 27 min
wrote 454530 32Kb blocks in 1390 files in 13494 seconds (short write)
[interrupt]

...more complete output amtapetype(1) to amanda-users@amanda.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


jail login and replication problems

2005-07-26 Thread Dan Rue
Greetings, 

I am setting up multiple jails on a machine.  The first jail, everything
works fine.  If I add a user, that user can log in.  If I tar cvzpf the
jail, tar xvzpf to create a new one, some people can log into the new
jail, and some can not.

The user that can log in to the new one was the first user created (me),
but any subsequent users can not log into new jails..  

The symptom is right after accepting the password via ssh, the
connection will just get dropped.  I could not find any good error
messages using ssh..  But if I enable telnet and try to telnet in, I
receive this error in /var/log/messages: 

Jul 26 16:11:46 jail3 login: _secure_path: cannot stat /home/user3/.login_conf: 
Permission denied
Jul 26 16:11:46 jail3 login: _secure_path: cannot stat /etc/login.conf: 
Permission denied
Jul 26 16:11:46 jail3 login: _secure_path: cannot stat /home/user3/.login_conf: 
Permission denied
Jul 26 16:11:46 jail3 login: _secure_path: cannot stat /etc/login.conf: 
Permission denied

The permissions on those files are fine.  

So what would cause that error in jails that have been replicated using
tar, but only to some users?  I'm stumped.. 

Here's my rc.conf exerpt: 

jail_enable=YES
jail_list=jail3
jail_socket_unixiproute_only=NO
jail_sysvipc_allow=YES  # allow shared mem on all jails

jail_jail3_rootdir=/jails/jail3
jail_jail3_hostname=jail3.example.com
jail_jail3_ip=10.0.0.203
jail_jail3_procfs_enable=YES
jail_jail3_devfs_enable=YES
jail_jail3_devfs_ruleset=devfsrules_jail

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


Re: Restarting X server within KDE?

2005-07-26 Thread Dan Nelson
In the last episode (Jul 26), David Gerard said:
 Many years ago, I ran fvwm2 under Solaris. It actually had a menu
 option set up whereby you could restart the X server without all your
 X clients dying.
 
 I really wanted this the other week when KDE went weird on me and the
 mouse pointer disappeared. (After only two months! With this sort of
 unreliability, open source will never be ready for Joe Consumer.)

 How does one restart the X server without it killing all the clients?

That's not possible.  More likely is that your fvwm2 menu option simply
restarted fvwm2 itself.  Many window managers have this option plus a
couple other launch twm/blackbox/olwm etc entries to shuffle between
different window managers.  Depending on how you launched KDE, you
might be able to just kill it and restart it.  If you exec it at the
bottom of your .xinitrc though, you would have to have kde reexec
itself (since exiting kde would also exit X).  I don't know if kde has
that option, though.

-- 
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: hardware monitor

2005-07-26 Thread Gary W. Swearingen
[EMAIL PROTECTED] writes:

 |device  ichsmb
 |
 |
 |I get this error messages:
 |
 |In file included from /usr/src/sys/dev/ichsmb/ichsmb.c:64:
 |/usr/src/sys/dev/ichsmb/ichsmb_var.h:44:22: smbus_if.h: No such file or

Looks like you forgot to read the ichsmb manpage or the conf/NOTES
file which says you need certain other device entries too.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Re: ipfw: deny traffic between interfaces

2005-07-26 Thread Eric Pretorious
On Tuesday 26 July 2005 12:19 pm, Eric Pretorious wrote:
I'm using FreeBSD 4.10 as a masquerading firewall for three private networks 
and want to restrict traffic between each interface (kind of like VLAN's).

FWIW: This construct *seems* to have the effect that I desire:

  ipfw add 500 deny all from any to any out recv rl0 xmit fxp0
  ipfw add 501 deny all from any to any out recv rl0 xmit sis1
  ipfw add 502 deny all from any to any out recv fxp0 xmit rl0
  ipfw add 503 deny all from any to any out recv fxp0 xmit sis1
  ipfw add 504 deny all from any to any out recv sis1 xmit rl0
  ipfw add 505 deny all from any to any out recv sis1 xmit fxp0

I'm not 100% certain of incoming/outgoing packets and the receive  transmit 
interfaces, though. (The man page doesn't elaborate on this rule option.)

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


Re: samba / hard drive issues

2005-07-26 Thread Charles Swiger

On Jul 26, 2005, at 3:50 PM, fci wrote:

now I get this error about every 10mins:
inetd[473]: netbios-ns/udp: bind: Address already in use
inetd[473]: netbios-ssn/tcp: bind: Address already in use


If you are starting smbd/nmbd via the rc.d mechanism, you should not  
turn them on in inetd as well.


--
-Chuck


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


Re: fastcgi port fixed but not updated?

2005-07-26 Thread Mike Friedman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 26 Jul 2005 at 17:10 (-0400), Lowell Gilbert wrote:


Mike Friedman [EMAIL PROTECTED] writes:

I've recently discovered a problem report for the mod_fastcgi (2.4.2) 
port:  http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/79774. The 
report seems to indicate that the port was fixed shortly after the PR 
was sent (May 31), yet I just did a cvsup and the buggy port still 
shows up.


...

Anyone know what might be going on?  Since the fastcgi port is called 
by the rt-3.4.2 port (which is my real interest), keeping my fixed 
version of the former around under a different name is not really a 
good option, in case I need to update RT.


The bug report claims that the install fails. It works fine for me with 
the Apache 1.3 port, so I suspect that a more sophisticated fix would be 
needed; if the path were hard-coded as you suggest, the port would *only* 
work with Apache2.


Lowell,

I can see your point about the content of the fix.  But the bug report 
does say the following (in the Audit-Trail):


   Port has been updated since this PR has been sent.
   It seems to install flawlessly.

As you say, the one line fix (in 'do-install') would not seem consistent 
with your experience installing fastcgi with Apache 1.3, where you don't 
have the problem.  (I'm installing RT with fastcgi and Apache 2). Just 
looking at the Makefile didn't reveal to me that the fix proposed in the 
bug report wouldn't be appropriate for Apache 1.3.


But my question was motivated by the apparent contradiction between the 
above-quoted statement in the report and the fact that the port wasn't 
actually updated (perhaps for the reason you give).


Meanwhile, I'm left with a mod_fastcgi port that will not install, as 
delivered, with Apache 2.  Yet the RT port depends on the fastcgi port.


Mike

_
Mike Friedman   System and Network Security
[EMAIL PROTECTED]  2484 Shattuck Avenue
1-510-642-1410  University of California at Berkeley
http://ack.Berkeley.EDU/~mikef  http://security.berkeley.edu
_

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA+AwUBQuasfa0bf1iNr4mCEQLGJACfSTNExlIQ8CYvOMjMq4+dcF9VX/oAmM1U
DcXvyBq9fcHeu83KKuEIDlc=
=43Zi
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: undelete in FreeBSD?

2005-07-26 Thread Ross Kendall Axe
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Glenn Dawson wrote:
 At 10:48 PM 7/25/2005, Xu Qiang wrote:
 
 Ross Kendall Axe wrote:
  Yes.  MS-Windows doesn't have anything Unix doesn't in this regard.  I
  take it you're not familiar with the DOS/Windows 'del' command...

 Hehe, this is a good analog I didn't think of. :)

  If he's worried about accidentally deleting files, he should use KDE
  or Gnome.  They both have a trash can/wastebasket/recycle bin.

 Now I just have X Window in my machine. Not as good-looking as Gnome
 desktop.
 Can I install gnome without using ports? I want to install everything
 manually.
 
 
 Are you a glutton for punishment?
 
 You can install it manually, I did it once...never again.
 
 Seriously though, there are so many dependencies that it takes forever
 to get everything set up manually.  With ports you just do a make
 install clean and come back in a few hours (or days depending on how
 fast your machine is)

Yes, indeed.  I've never tried it myself, but the fact that it's been
dropped from Slackware Linux for exactly this reason would seem to
suggest that this is *not* an exercise for the faint hearted.

Ross


 -Glenn
 
 
 thanks,

 Regards,
 Xu Qiang
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.7 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5q239bR4xmappRARAouvAKDctUkF4wkn9L6bm/GeB99arjuEmQCgoEoZ
qzqjmPM9uodBwBxUuTSC64o=
=OQGq
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with Opera Plug-ins

2005-07-26 Thread Jonathan Glaschke
On Tue, Jul 26, 2005 at 10:08:38PM +0200, lars wrote:
 Hi all,
 
 I can't seem to get Opera to run the Realplayer plug-in on FreeBSD 5.4 
 Stable.
 
 I have
 
 open-motif-2.2.3_2
 opera-8.01.20050615
 linux-realplayer-10.0.5
 
 installed.
 
 
 Following the instructions on:
 http://www.bbc.co.uk/radio/audiohelp_nix.shtml
 
 In /usr/X11R6/share/opera/plugins I created following symlinks:
 
 % sudo ln -s /usr/X11R6/lib/linux-mozilla/plugins/nphelix.so nphelix.so
 % sudo ln -s /usr/X11R6/lib/linux-mozilla/plugins/nphelix.xpt nphelix.xpt
 
 So I have this:
 
 /usr/X11R6/share/opera/plugins% ls -la 
 
 total 378
 drwxr-xr-x   2 root  wheel512 Jul 26 22:04 .
 drwxr-xr-x  11 root  wheel512 Jul 22 18:42 ..
 -rwxr-xr-x   1 root  wheel  82228 Jul 22 18:42 libnpp.so
 lrwxr-xr-x   1 root  wheel 47 Jul 26 22:04 nphelix.so - 
 /usr/X11R6/lib/linux-mozilla/plugins/nphelix.so
 lrwxr-xr-x   1 root  wheel 48 Jul 26 22:04 nphelix.xpt - 
 /usr/X11R6/lib/linux-mozilla/plugins/nphelix.xpt
 -rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-1
 -rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-2
 -rwxr-xr-x   1 root  wheel  87556 Jul 22 18:42 operamotifwrapper-3
 -rwxr-xr-x   1 root  wheel  33056 Jul 22 18:42 operaplugincleaner
 
 unfortunately to no avail.
 
 
 
 
 Apparently the line libXThrStub.so.6 = not found (0x0) in
 
 % ldd /usr/X11R6/share/opera/plugins/operamotifwrapper-3
 /usr/X11R6/share/opera/plugins/operamotifwrapper-3:
 libXm.so.3 = /usr/X11R6/lib/libXm.so.3 (0x2808b000)
 libXt.so.6 = /usr/X11R6/lib/libXt.so.6 (0x282bc000)
 libXext.so.6 = /usr/X11R6/lib/libXext.so.6 (0x2830a000)
 libX11.so.6 = /usr/X11R6/lib/libX11.so.6 (0x28317000)
 libm.so.2 = /usr/lib/compat/libm.so.2 (0x283de000)
 libc.so.4 = /usr/lib/compat/libc.so.4 (0x283f9000)
 libXThrStub.so.6 = not found (0x0)
 libSM.so.6 = /usr/X11R6/lib/libSM.so.6 (0x28492000)
 libICE.so.6 = /usr/X11R6/lib/libICE.so.6 (0x2849b000)
 libXp.so.6 = /usr/X11R6/lib/libXp.so.6 (0x284b3000)
 
 is the problem.
 
 
 
 
 Googling I found this message:
 http://lists.freebsd.org/pipermail/freebsd-x11/2005-March/001810.html
 
 [...]
 
 I then did define BuildThreadStubLibrary in FreeBSD.cf and plugger/opera
 work (mostly).
 
 Ulrich Spörlein
 
 
 
 Searching for FreeBSD.cf I get this:
 
 % locate FreeBSD.cf
 /usr/X11R6/lib/X11/config/FreeBSD.cf
 /usr/ports/devel/imake-6/files/patch-FreeBSD.cf
 /usr/ports/net/tightvnc/files/patch-Xvnc::config::cf::FreeBSD.cf
 /usr/ports/net/vnc/files/FreeBSD.cf-patch
 /usr/ports/x11/XFree86-4-libraries/files/patch-FreeBSD.cf
 /usr/ports/x11-servers/XFree86-4-Server/files/patch-FreeBSD.cf
 /usr/ports/x11-servers/xorg-server/files/patch-FreeBSD.cf
 /usr/ports/x11-servers/xorg-server-snap/files/patch-FreeBSD.cf
 
 I'm a bit scared of messing up my system, so I'll ask first.
 Do I have to rebuild xorg or world or what do I have to do?
 
 Thanks in advance,
 lars.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

I think you need linux-opera because this is a linux plugin.
-Jonathan

-- 
 | /\   ASCII Ribbon   | Jonathan Glaschke - Lorenz-Görtz-Straße 71,
 | \ / Campaign Against | 41238 Mönchengladbach, Tel: 02166-265876
 |  XHTML In Mail   | Mobil: 0162-3390789, ICQ: 231021883
 | / \ And News | http://jonathan-glaschke.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MAXPHYS and MAXBSIZE

2005-07-26 Thread Wojciech Puchar

what is the difference between this 2 compile time defines?


is it possible to set it up higher? (something like 0.5MB for modern disks 
make sense)

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


Re: jail networking

2005-07-26 Thread Casper


I played little more:

jail# ping www.google.lv
PING www.l.google.com (216.239.59.104): 56 data bytes
^C
--- www.l.google.com ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
jail# ping 216.239.59.104
PING 216.239.59.104 (216.239.59.104): 56 data bytes
64 bytes from 216.239.59.104: icmp_seq=0 ttl=245 time=64.629 ms
64 bytes from 216.239.59.104: icmp_seq=1 ttl=245 time=63.744 ms
^C
--- 216.239.59.104 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss

With host ping not working, and seems that dns is working ok, becouse it 
resolving ip and with ip network working... :)


Anybody can say what is the problem? :)

Casper

Casper wrote:


 Hi,

 I have problem with setuping network to jail...
 I have #uname -a
FreeBSD gam.zuze.lv 5.4-RELEASE-p5 FreeBSD Wed Jul 20 19:52:44 EEST 2005
and installed jail on it...
sysctl:
net.inet.ip.forwarding: 1
security.jail.set_hostname_allowed: 1
security.jail.socket_unixiproute_only: 1
security.jail.sysvipc_allowed: 0
security.jail.getfsstatroot_only: 1
security.jail.allow_raw_sockets: 1
security.jail.chflags_allowed: 0
security.jail.jailed: 0

from host ping:
# ping www.google.lv
PING www.l.google.com (216.239.59.104): 56 data bytes
64 bytes from 216.239.59.104: icmp_seq=0 ttl=245 time=64.608 ms
64 bytes from 216.239.59.104: icmp_seq=1 ttl=245 time=65.198 ms
2 packets transmitted, 2 packets received, 0% packet loss

from jail:
jail# ping www.google.lv
PING www.l.google.com (216.239.59.99): 56 data bytes
^C
--- www.l.google.com ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss

but traceroute from jail show every second packet:
4  latnet.to.lattelekom.lv (195.13.173.221)  4.324 ms *  4.810 ms
 5  * so-4-0-0-war1.lnt.cw.net (166.63.222.101)  54.223 ms *
 6  so-7-0-0-zcr2.lnt.cw.net (166.63.222.42)  72.205 ms *  54.778 ms
 7  * 195.66.226.125 (195.66.226.125)  90.496 ms *
 8  216.239.46.173 (216.239.46.173)  54.711 ms *  54.204 ms
 9  * 216.239.49.254 (216.239.49.254)  64.939 ms *
10  216.239.49.121 (216.239.49.121)  67.530 ms * 216.239.49.114 
(216.239.49.114)  68.128 ms

11  * 216.239.59.103 (216.239.59.103)  64.615 ms *

 From jail I can ping router and local network ips...

My pf.conf:
ext_if=rl0
int_if=rl1
internal_net=172.22.1.0/24
external_addr=xx.xx.xx.xx
table foo { 10.0.0.0/8, 127.0.0.0/8, 172.22.0.0/24, 192.168.0.0/24 }
set loginterface $ext_if
set block-policy return
scrub in all
nat on $ext_if from $internal_net to any - ($ext_if)
pass in all
pass out all
pass  in  on $ext_if proto tcp from any to $ext_if port 22 keep state
pass  out on $ext_if proto { tcp, udp } all keep state
pass in on $ext_if proto { tcp, udp } from any to foo port 80 keep state
pass out on $ext_if from 192.168.0.0/24 to any keep state queue developers
pass out on $ext_if from 192.168.1.0/24 to any keep state queue marketing


There is some manual about jail networking?
I don`t understand why not working jail network if I can ping router 
from jail, routes ok and traceroute strange packets...


tnx,

Casper

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


cat /dev/urandom

2005-07-26 Thread Matt Juszczak

Hi all,

Quick question.

shell# cat /dev/urandom

can that executed as root cause any harm to the system?  What if a random 
sequence of `rm *` was generated... would it be executed?


I tried that to fix my terminal and forgot it might cause damage as root, 
even if its just being cat'd to the screen.  I thought I saw some files 
fly by which would indicate an execution of `ls`


Just curious

Thanks,

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


Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
 Hi all,
 
 Quick question.
 
 shell# cat /dev/urandom
 
 can that executed as root cause any harm to the system?  What if a random
 sequence of `rm *` was generated... would it be executed?
 
 I tried that to fix my terminal and forgot it might cause damage as root,
 even if its just being cat'd to the screen.  I thought I saw some files
 fly by which would indicate an execution of `ls`
 
 Just curious
 

If you had a file with an rm * in it and you cat'd it would it execute?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Start wpa_supplicant on boot without dhclient

2005-07-26 Thread Ben Jencks
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

It looks like wpa_supplicant is the right way to configure wireless as
of FreeBSD 6. I'd like to start it on boot. However, I can't figure out
how to start it without dhclient also running on boot. Since I don't
always boot near an AP, this isn't appropriate.

If I use
network_interfaces=lo0 ath0
ifconfig_ath0=WPA DHCP
then it starts wpa_supplicant, and immediately starts dhclient as well.

If I take out DHCP
network_interfaces=lo0 ath0
ifconfig_ath0=WPA
then wpa_supplicant doesn't start dhclient when it gets a connection

I can get something close to the right behavior by setting
network_interfaces=lo0
ifconfig_ath0=WPA DHCP
This way, wpa_supplicant doesn't start on boot, but I can start it after
boot with /etc/rc.d/wpa_supplicant start ath0 and get the right
behavior. Is there a way to get wpa_supplicant to start on boot, and
only start dhclient as a result of the link-state event, not directly
during boot?
- -- 
Ben
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFC5rs1pt3yYclAKVsRAsTWAJ9VhP9RtwXd3a0q1TPePr66rpEwxgCeIeZ7
JXOqziWjhb9ldWGHgok1N7o=
=+2gW
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
 On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
  Hi all,
 
  Quick question.
 
  shell# cat /dev/urandom
 
  can that executed as root cause any harm to the system?  What if a random
  sequence of `rm *` was generated... would it be executed?
 
  I tried that to fix my terminal and forgot it might cause damage as root,
  even if its just being cat'd to the screen.  I thought I saw some files
  fly by which would indicate an execution of `ls`
 
  Just curious

 If you had a file with an rm * in it and you cat'd it would it execute?
 ___
That's a good answer, but what if the command was:

`cat /dev/urandom`

could /dev/urandom generate arbitrary and potentially executable code?

I'm curious, too

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


100Mbit network performance - again

2005-07-26 Thread Andrew P.
Hello all!

I remember being able to reach 11-12Mbytes/s between two Win95
workstations with NE2000 $10 NIC's installed, connected via BNC cable.
I am now able to reach 11-12Mbytes/s between all kinds of Windows
2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.

But I have never ever exceeded 8-9Mbytes/s between a Windows machine
and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
etc., - the speed always hovers around 7-8Mb/s. I know it's not
critical, I know I should've upgraded to Gigabit hardware long ago,
but is there something wrong?

I tried different linux distros, but they all seem to be even slower. Wazzup?..

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


Re: 100Mbit network performance - again

2005-07-26 Thread Sean Hafeez
I get 60+Mbytes between my FreeBSD 5.4 and Mac via NFS. I get  
40-60Mbytes between my FreeBSD 5.4 and Windows 2K box via Samba. Good  
NICs help. Intel 10/100 Pro.


Google for Samba tuning also.

-Sean



On Jul 26, 2005, at 4:00 PM, Andrew P. wrote:


Hello all!

I remember being able to reach 11-12Mbytes/s between two Win95
workstations with NE2000 $10 NIC's installed, connected via BNC cable.
I am now able to reach 11-12Mbytes/s between all kinds of Windows
2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.

But I have never ever exceeded 8-9Mbytes/s between a Windows machine
and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
etc., - the speed always hovers around 7-8Mb/s. I know it's not
critical, I know I should've upgraded to Gigabit hardware long ago,
but is there something wrong?

I tried different linux distros, but they all seem to be even  
slower. Wazzup?..


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




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


Re: 100Mbit network performance - again

2005-07-26 Thread Andrew P.
Erm, well 60+Mbytes is no wonder in a Gigabit environment (and it is
too much of a wonder in a FastEthernet one), but I'm interested in
getting 100Mbit hardware to work at full speed.

Thanks for your 2 cents anyway,
Andrew P.

On 7/27/05, Sean Hafeez [EMAIL PROTECTED] wrote:
 I get 60+Mbytes between my FreeBSD 5.4 and Mac via NFS. I get
 40-60Mbytes between my FreeBSD 5.4 and Windows 2K box via Samba. Good
 NICs help. Intel 10/100 Pro.
 
 Google for Samba tuning also.
 
 -Sean
 
 
 
 On Jul 26, 2005, at 4:00 PM, Andrew P. wrote:
 
  Hello all!
 
  I remember being able to reach 11-12Mbytes/s between two Win95
  workstations with NE2000 $10 NIC's installed, connected via BNC cable.
  I am now able to reach 11-12Mbytes/s between all kinds of Windows
  2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.
 
  But I have never ever exceeded 8-9Mbytes/s between a Windows machine
  and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
  different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
  etc., - the speed always hovers around 7-8Mb/s. I know it's not
  critical, I know I should've upgraded to Gigabit hardware long ago,
  but is there something wrong?
 
  I tried different linux distros, but they all seem to be even
  slower. Wazzup?..
 
  Thanks,
  Andrew P.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-
  [EMAIL PROTECTED]
 
 

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


Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
`cat /dev/urandom` will do just that... it's not also going to run
code from within that output.

On 7/26/05, Lane [EMAIL PROTECTED] wrote:
 On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
  On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
   Hi all,
  
   Quick question.
  
   shell# cat /dev/urandom
  
   can that executed as root cause any harm to the system?  What if a random
   sequence of `rm *` was generated... would it be executed?
  
   I tried that to fix my terminal and forgot it might cause damage as root,
   even if its just being cat'd to the screen.  I thought I saw some files
   fly by which would indicate an execution of `ls`
  
   Just curious
 
  If you had a file with an rm * in it and you cat'd it would it execute?
  ___
 That's a good answer, but what if the command was:
 
 `cat /dev/urandom`
 
 could /dev/urandom generate arbitrary and potentially executable code?
 
 I'm curious, too
 
 lane
 ___
 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: 100Mbit network performance - again

2005-07-26 Thread Sean Hafeez

Let me fix my typo here.

I get 60+Mbits out of 100Mbits on a 10/100 network.

The Max SUSTAINED thru-put you will ever see will be around 70Mbits.  
There is an overhead that means that you will only see .7 of the  
theoretical.


-Sean

On Jul 26, 2005, at 4:13 PM, Andrew P. wrote:


Erm, well 60+Mbytes is no wonder in a Gigabit environment (and it is
too much of a wonder in a FastEthernet one), but I'm interested in
getting 100Mbit hardware to work at full speed.

Thanks for your 2 cents anyway,
Andrew P.

On 7/27/05, Sean Hafeez [EMAIL PROTECTED] wrote:


I get 60+Mbytes between my FreeBSD 5.4 and Mac via NFS. I get
40-60Mbytes between my FreeBSD 5.4 and Windows 2K box via Samba. Good
NICs help. Intel 10/100 Pro.

Google for Samba tuning also.

-Sean



On Jul 26, 2005, at 4:00 PM, Andrew P. wrote:



Hello all!

I remember being able to reach 11-12Mbytes/s between two Win95
workstations with NE2000 $10 NIC's installed, connected via BNC  
cable.

I am now able to reach 11-12Mbytes/s between all kinds of Windows
2000/XP machines with all kinds of cheapest 100Mbit ethernet  
hardware.


But I have never ever exceeded 8-9Mbytes/s between a Windows machine
and a FreeBSD box - _never_. Be it Samba, different ftp/http  
servers,

different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
etc., - the speed always hovers around 7-8Mb/s. I know it's not
critical, I know I should've upgraded to Gigabit hardware long ago,
but is there something wrong?

I tried different linux distros, but they all seem to be even
slower. Wazzup?..

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







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




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


Re: 100Mbit network performance - again

2005-07-26 Thread Casey Scott
 Hello all!

 I remember being able to reach 11-12Mbytes/s between two Win95
 workstations with NE2000 $10 NIC's installed, connected via BNC cable.
 I am now able to reach 11-12Mbytes/s between all kinds of Windows
 2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.

 But I have never ever exceeded 8-9Mbytes/s between a Windows machine
 and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
 different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
 etc., - the speed always hovers around 7-8Mb/s. I know it's not
 critical, I know I should've upgraded to Gigabit hardware long ago,
 but is there something wrong?

 I tried different linux distros, but they all seem to be even slower.
 Wazzup?..

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



Keep in mind that the Windows TCP/IP window buffers are not optimized the
same way as FBSD or Linux.

Casey

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


Re: 100Mbit network performance - again

2005-07-26 Thread Andrew P.
You might be right in a sense, but like I said: Windows-to-Windows
file transfers can easily be sustained at 11-12Mbytes/s. That's up to
over 90% of 100Mbit bandwidth. In fact, if you review the theoretical
part of Ethernet and TCP/IP, you'd find that it's very possible.

On 7/27/05, Sean Hafeez [EMAIL PROTECTED] wrote:
 Let me fix my typo here.
 
 I get 60+Mbits out of 100Mbits on a 10/100 network.
 
 The Max SUSTAINED thru-put you will ever see will be around 70Mbits.
 There is an overhead that means that you will only see .7 of the
 theoretical.
 
 -Sean
 
 On Jul 26, 2005, at 4:13 PM, Andrew P. wrote:
 
  Erm, well 60+Mbytes is no wonder in a Gigabit environment (and it is
  too much of a wonder in a FastEthernet one), but I'm interested in
  getting 100Mbit hardware to work at full speed.
 
  Thanks for your 2 cents anyway,
  Andrew P.
 
  On 7/27/05, Sean Hafeez [EMAIL PROTECTED] wrote:
 
  I get 60+Mbytes between my FreeBSD 5.4 and Mac via NFS. I get
  40-60Mbytes between my FreeBSD 5.4 and Windows 2K box via Samba. Good
  NICs help. Intel 10/100 Pro.
 
  Google for Samba tuning also.
 
  -Sean
 
 
 
  On Jul 26, 2005, at 4:00 PM, Andrew P. wrote:
 
 
  Hello all!
 
  I remember being able to reach 11-12Mbytes/s between two Win95
  workstations with NE2000 $10 NIC's installed, connected via BNC
  cable.
  I am now able to reach 11-12Mbytes/s between all kinds of Windows
  2000/XP machines with all kinds of cheapest 100Mbit ethernet
  hardware.
 
  But I have never ever exceeded 8-9Mbytes/s between a Windows machine
  and a FreeBSD box - _never_. Be it Samba, different ftp/http
  servers,
  different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
  etc., - the speed always hovers around 7-8Mb/s. I know it's not
  critical, I know I should've upgraded to Gigabit hardware long ago,
  but is there something wrong?
 
  I tried different linux distros, but they all seem to be even
  slower. Wazzup?..
 
  Thanks,
  Andrew P.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-
  [EMAIL PROTECTED]
 
 
 
 
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-
  [EMAIL PROTECTED]
 
 

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


Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 18:18, Michael Beattie wrote:
 `cat /dev/urandom` will do just that... it's not also going to run
 code from within that output.

 On 7/26/05, Lane [EMAIL PROTECTED] wrote:
  On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
   On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
Hi all,
   
Quick question.
   
shell# cat /dev/urandom
   
can that executed as root cause any harm to the system?  What if a
random sequence of `rm *` was generated... would it be executed?
   
I tried that to fix my terminal and forgot it might cause damage as
root, even if its just being cat'd to the screen.  I thought I saw
some files fly by which would indicate an execution of `ls`
   
Just curious
  
   If you had a file with an rm * in it and you cat'd it would it execute?
   ___
 
  That's a good answer, but what if the command was:
 
  `cat /dev/urandom`
 
  could /dev/urandom generate arbitrary and potentially executable code?
 
  I'm curious, too
 
  lane
  ___
Hmmm interesting.

if I create a file, test, in the current directory like this:

echo -n ls -al test

Then type `cat test`

I get a directory listing.

Assuming that /dev/urandom generates something like ls -al followed by a 
newline, then it stands to reason that `cat /dev/urandom` will actually 
execute the command ls -al

Why is it that this does not hold true for `cat /dev/urandom` ?

Still curious

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

2005-07-26 Thread Nikolas Britton
On 26 Jul 2005 16:46:39 -0400, Lowell Gilbert
[EMAIL PROTECTED] wrote:
 FreeBSD 6 (which hasn't been released yet, and will change a bit more
 before it is) is still very cutting edge.  I would *strongly*
 recommend that you follow the -CURRENT mailing list if you're going to
 use it.
 
 Nikolas Britton [EMAIL PROTECTED] writes:
 
  On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
   On 7/26/05, Nikolas Britton [EMAIL PROTECTED] wrote:
Do I always need to run 'make cleandepend' when rebuilding a kernel,
normally I build my kernels the old school way?
   
Is it just me or is -O2 now the default for kernel builds? What about
-Os, safe to use?
 
 Yes, and not sure.
 
The kernel build failed when it tired to compile the r128drm device.
 
 With a default kernel?  Try updating your sources again.
 

I can try it again and post the error

Is it safe to run the ULE scheduler instead of the 4BSD scheduler, ULE
is commented out in the default kernel?
 
 See the -CURRENT list archives.  It's gotten fairly stable for a lot
 of people, and performs better in a number of cases, but it still
 causes trouble in some others.

What kind of troubles are we talking about? also I see that preemption
is now on by default. I have been running preemption on a 5.x box of a
long time now, no problems.
 
 
Is the new ATA RAID stuff, metadata something, going to be backported
to 5.x? I'm trying setup a RAID 1 mirror with Intel ICH5R / Adaptec
HostRAID but it looks like it's not supported in 5.x
 
 Search for messages about that.  SOS@ has discussed it quite a bit, if
 I recall correctly.
 
   One more thing... Will FreeBSD 5.4 kernel modules work under 6.x?
 

Yes I just found that out when I tried to load the Highpoint RAID
driver on FreeBSD 6, the system panics very early in the boot process.
This means that FreeBSD 6 is completely out of the question for this
system and I really did not want to run 6.x anyways, I'm migrating a
production 5.4 server to this new hardware.

What is [EMAIL PROTECTED] and where can I read the discussions about sata RAID
problems? I seem to have two options for this server:
(1) Get the ICH5R / Adaptec HostRAID working with 5.4 (as device ar0, ad4 + ad6)
(2) Find a (cheap) SATA RAID 1 card that is supported by the ar / ata
device in 5.4.

The problem with (2) is that I can't find any cheap (less then $60
USD) SATA RAID 1 cards that will work with device ar. I'm going to
post this problem to a new thread.

 
 
  Sorry! a few more things:
 
  At boot up I get these errors / warnings:
  kenv: unable to get dumpdev
 
 Try setting dumpdev?
 
  no such user: _dhcp, falling back to nobody
 
  I left groups and master.passwd files to deal with later in
  mergemaster and then I manually added the dhcp user to both of those
  files but the system still can't find him.
 
 You rebuilt the password database, right?  You know you can't just
 open up the password file and edit it?

No I did not, how do I regenerate the database? normally I use pw or
vipw when I change that stuff and I've never been asked by mergemaster
to change those files.

Also with mergemaster it seemed like 50% of the 100 or so files that
where changed where just changes to the cvs doc revision /
timestamp... wouldn't it be better to install those files by default
instead of asking the user?

 
  Starting default moused: moused: unable to open /dev/ums0: Device busy
 
  I don't know whats up with that but my mouse does work.
 
 And if you disable moused?

Not sure, I installed it on one of my home systems and I'm at work.

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


Re: 100Mbit network performance - again

2005-07-26 Thread Andrew P.
On 7/27/05, Casey Scott [EMAIL PROTECTED] wrote:
  Hello all!
 
  I remember being able to reach 11-12Mbytes/s between two Win95
  workstations with NE2000 $10 NIC's installed, connected via BNC cable.
  I am now able to reach 11-12Mbytes/s between all kinds of Windows
  2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.
 
  But I have never ever exceeded 8-9Mbytes/s between a Windows machine
  and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
  different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
  etc., - the speed always hovers around 7-8Mb/s. I know it's not
  critical, I know I should've upgraded to Gigabit hardware long ago,
  but is there something wrong?
 
  I tried different linux distros, but they all seem to be even slower.
  Wazzup?..
 
  Thanks,
  Andrew P.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
 
 Keep in mind that the Windows TCP/IP window buffers are not optimized the
 same way as FBSD or Linux.
 
 Casey
 
 
No doubt about that. Any thoughts about how to make them communicate
more effectively?

Personally, I don't think it's just window buffers. I think the whole
darn TCP/IP stack misconfiguration plus maybe not perfect NIC drivers
are the reason for underperformance. I know that most of the real
mistakes must be on the Windows side, but that's not an excuse for
FreeBSD/Linux to not be at least 99%-Windows-networking-compatible.

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


Re: cat /dev/urandom

2005-07-26 Thread Michael Beattie
On 7/26/05, Lane [EMAIL PROTECTED] wrote:
 On Tuesday 26 July 2005 18:18, Michael Beattie wrote:
  `cat /dev/urandom` will do just that... it's not also going to run
  code from within that output.
 
  On 7/26/05, Lane [EMAIL PROTECTED] wrote:
   On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
 Hi all,

 Quick question.

 shell# cat /dev/urandom

 can that executed as root cause any harm to the system?  What if a
 random sequence of `rm *` was generated... would it be executed?

 I tried that to fix my terminal and forgot it might cause damage as
 root, even if its just being cat'd to the screen.  I thought I saw
 some files fly by which would indicate an execution of `ls`

 Just curious
   
If you had a file with an rm * in it and you cat'd it would it execute?
___
  
   That's a good answer, but what if the command was:
  
   `cat /dev/urandom`
  
   could /dev/urandom generate arbitrary and potentially executable code?
  
   I'm curious, too
  
   lane
   ___
 Hmmm interesting.
 
 if I create a file, test, in the current directory like this:
 
 echo -n ls -al test
 
 Then type `cat test`
 
 I get a directory listing.
 
 Assuming that /dev/urandom generates something like ls -al followed by a
 newline, then it stands to reason that `cat /dev/urandom` will actually
 execute the command ls -al
 
 Why is it that this does not hold true for `cat /dev/urandom` ?
 
 Still curious
 

Huh.  Look at that.  I guess I was wrong.  I wonder why...

Maybe the `` makes it escape from the shell and so it cats the file
and then when it comes back to the shell it sees the ls -al and runs
it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 100Mbit network performance - again

2005-07-26 Thread Andrew P.
On 7/27/05, Michael C. Shultz [EMAIL PROTECTED] wrote:
 On Tuesday 26 July 2005 16:00, Andrew P. wrote:
  Hello all!
 
  I remember being able to reach 11-12Mbytes/s between two Win95
  workstations with NE2000 $10 NIC's installed, connected via BNC cable.
  I am now able to reach 11-12Mbytes/s between all kinds of Windows
  2000/XP machines with all kinds of cheapest 100Mbit ethernet hardware.
 
  But I have never ever exceeded 8-9Mbytes/s between a Windows machine
  and a FreeBSD box - _never_. Be it Samba, different ftp/http servers,
  different FreeBSD versions (4.x/5.x), with ipfw enabled or disabled,
  etc., - the speed always hovers around 7-8Mb/s. I know it's not
  critical, I know I should've upgraded to Gigabit hardware long ago,
  but is there something wrong?
 
  I tried different linux distros, but they all seem to be even slower.
  Wazzup?..
 
  Thanks,
  Andrew P.
 
 Here is the ifconfig output from a machine that has one nic set at
 10Mbit/half duplex and one at 100Mbit full duplex. how does it compare with
 your system?
 
 xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=1RXCSUM
 inet6 fe80::210:4bff:fe70:4fb0%xl0 prefixlen 64 scopeid 0x1
 inet 71.102.0.97 netmask 0xff00 broadcast 71.102.0.255
 ether 00:10:4b:70:4f:b0
 media: Ethernet autoselect (10baseT/UTP)
 status: active
 xl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 options=1RXCSUM
 inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
 inet6 fe80::210:4bff:fe0a:7cbc%xl1 prefixlen 64 scopeid 0x2
 ether 00:10:4b:0a:7c:bc
 media: Ethernet 100baseTX full-duplex
 status: active
 
Well, if that really matters to you:
(freebsd 5.4)
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet6 fe80::20f:3dff:feca:c494%vr0 prefixlen 64 scopeid 0x1
inet 192.168.17.217 netmask 0xff00 broadcast 192.168.17.255
ether 00:0f:3d:ca:c4:94
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.17.1 netmask 0xff00 broadcast 192.168.17.255
ether 00:40:f4:8d:a7:f8
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
ether 00:40:f4:8d:9c:af
media: Ethernet autoselect (100baseTX full-duplex)
status: active
(fedora core 4)
eth0  Link encap:Ethernet  HWaddr 00:E0:81:2F:04:3E
  inet addr:193.233.5.13  Bcast:193.233.5.63  Mask:255.255.255.192
  inet6 addr: fe80::2e0:81ff:fe2f:43e/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:123946466 errors:0 dropped:0 overruns:0 frame:0
  TX packets:176380358 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:42267471987 (39.3 GiB)  TX bytes:197116022761 (183.5 GiB)
  Interrupt:177

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


cat /dev/urandom

2005-07-26 Thread Bob Johnson
 
Tue, Jul 26, 2005 at 6:32 PM Matt Juszczak [EMAIL PROTECTED] 


 Hi all,
 
 Quick question.
 
 shell# cat /dev/urandom
 
 can that executed as root cause any harm to the system?  What if a random
 sequence of `rm *` was generated... would it be executed?
 

Not from a virtual terminal.  There may have been an old hardware smart 
terminals that would let you trick it into echoing stuff back through the 
keyboard buffer with the appropriate esc sequence, but emulators for those 
have such functions disabled by default these days, for the obvious reason.  
I'm willing to assume that includes whatever you are using for a terminal 
program.
 
 I tried that to fix my terminal and forgot it might cause damage as root,
 even if its just being cat'd to the screen.  I thought I saw some files
 fly by which would indicate an execution of `ls`

Highly unlikely, unless you are actually using an old hardware terminal, then 
it is still pretty unlikely.

For example:


$ cat test.txt
This is a test file.
test
test
`ls -l /`
test


cat just types the characters out on the screen.  The `ls -l` didn't get 
executed.

 
 Just curious
 

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


buildkernel failed

2005-07-26 Thread Wang FreeBSD
I'm a programmer on Windows but a newbie to FreeBSD.
I installed a new FreeBSD 5.2.1 and want to upgrade to 5-STABLE.
I had try 5.4 and meet the problem too.

When I buildworld meet some problem in libstdc++, can't found
unwind.h. I fixed it by modify the Makefile under libstdc++, set
CXXFLAGS has the same including path with CFLAGS, it's gone further. 
But failed in libgroff again, fixed by same way and make again. It's
report a function declare mkstemp in lib.h conflict with the declare
in stdlib.h.  I modify the lib.h  and a macro definition to
disable declare in stdlib.h.  The problem doesn't solved but becomes
biger and biger.
So I rename /usr/src to /usr/src_bak and get the 5-STABLE source file.
when I buildkernel, it raise error about config.
How can I do? Thank you very much!

alan# make buildkernel
 
--
 Kernel build for GENERIC started on Wed Jul 27 07:42:42 CST 2005
--
=== GENERIC
mkdir -p /usr/obj/usr/src/sys
 
--
 stage 1: configuring the kernel
--
cd /usr/src/sys/i386/conf; 
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
 config  -d /usr/obj/usr/src/sys/GENERIC 
/usr/src/sys/i386/conf/GENERIC
ERROR: version of config(8) does not match kernel!
config version = 500012, version required = 500013
 
Make sure that /usr/src/usr.sbin/config is in sync
with your /usr/src/sys and install a new config binary
before trying this again.
 
If running the new config fails check your config
file against the GENERIC or LINT config files for
changes in config syntax, or option/device naming
conventions
 
*** Error code 1
 
Stop in /usr/src.
*** Error code 1
 
Stop in /usr/src.


uname -a 
FreeBSD alan.jane.net 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Mon Feb
23 20:45:55 GMT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

/etc/make.conf

CPUTYPE=i686
CFLAGS= -O -pipe
CXXFLAGS= -O -pipe
#CXFLAGS+= -fmemoize-lookups -fsave-memoized
COPTFLAGS= -O -pipe
#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1

NO_FORTRAN= true
NO_I4B  =   true
NO_IPFILTER=true
NO_LPR  =   true
NO_OBJC =   true
NO_SENDMAIL=true
NOGAMES =   true
NO_MAILWRAPPER= true
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cat /dev/urandom

2005-07-26 Thread Lane
On Tuesday 26 July 2005 18:47, Michael Beattie wrote:
 On 7/26/05, Lane [EMAIL PROTECTED] wrote:
  On Tuesday 26 July 2005 18:18, Michael Beattie wrote:
   `cat /dev/urandom` will do just that... it's not also going to run
   code from within that output.
  
   On 7/26/05, Lane [EMAIL PROTECTED] wrote:
On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
 On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
  Hi all,
 
  Quick question.
 
  shell# cat /dev/urandom
 
  can that executed as root cause any harm to the system?  What if
  a random sequence of `rm *` was generated... would it be
  executed?
 
  I tried that to fix my terminal and forgot it might cause damage
  as root, even if its just being cat'd to the screen.  I thought I
  saw some files fly by which would indicate an execution of
  `ls`
 
  Just curious

 If you had a file with an rm * in it and you cat'd it would it
 execute? ___
   
That's a good answer, but what if the command was:
   
`cat /dev/urandom`
   
could /dev/urandom generate arbitrary and potentially executable
code?
   
I'm curious, too
   
lane
___
 
  Hmmm interesting.
 
  if I create a file, test, in the current directory like this:
 
  echo -n ls -al test
 
  Then type `cat test`
 
  I get a directory listing.
 
  Assuming that /dev/urandom generates something like ls -al followed by
  a newline, then it stands to reason that `cat /dev/urandom` will actually
  execute the command ls -al
 
  Why is it that this does not hold true for `cat /dev/urandom` ?
 
  Still curious

 Huh.  Look at that.  I guess I was wrong.  I wonder why...

 Maybe the `` makes it escape from the shell and so it cats the file
 and then when it comes back to the shell it sees the ls -al and runs
 it.
Yeah, backticks are good for that.

it seems like  /dev/urandom generates mostly ... random ... stuff.  But I 
wonder if there are any safeguards to prevent such a combination from being 
generated.

After reading man 4 random and /usr/src/sys/dev/random/randomdev.c, it seems 
that the output of /dev/urandom is truly random. 

So I guess the only thing that prevents such an occurrence is careful thought 
before you make such a call :)

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

2005-07-26 Thread Nikolas Britton
On 7/26/05, Kövesdán Gábor [EMAIL PROTECTED] wrote:
 Nikolas Britton wrote:
 
 Is it just me or is -O2 now the default for kernel builds? What about
 -Os, safe to use?
 
 
 
 So is it for me. But if I specify some CFLAGS, for example -O3
 -march=athlon64, the
 building fails, but CFLAGS mustn't affect the kernel compiling process
 afaik. There is
 COPTFLAGS for that reason. I've also made a PR about this new, unwanted
 behaviour,
 but haven't got any answers so yet.
 

You are right, COPTCLAGS is for the kernel only. -O3 is not officially
supported for CFLAGS or COPTFLAGS. If you use -O3 for CFLAGS it will
break some ports. Also from my experience using anything higher then
CPUTYPE=p2 will break ports (like gstreamer).

This is what I normally add to my make.conf file:
CPUTYPE=p2
CFLAGS= -Os -pipes
COPTFLAGS= -Os -pipes
#CXXFLAGS= don't remember what I set this too, don't use it a lot.

If I want a port to build with different settings I just tell it to
inline... make CPUTYPE=p4 install clean etc.

As far as -O2 as the default for the kernel... I thought it was more
important to have a small kernel then a faster but fatter one. The
smaller the kernel the more you can put in L1,2, and 3 cache and the
smaller the program the less it needs to hit ram, swap, and hard disk?
isn't this what apple does with their OS-X builds?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Squid. No not Squidward. and FreeBSD

2005-07-26 Thread Derrick MacPherson
Is there a document about setting up squid, optimization suggestions etc
available somewhere? I've started looking and not come back with much
that's new.

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


Re: cat /dev/urandom

2005-07-26 Thread Lowell Gilbert
Lane [EMAIL PROTECTED] writes:

 On Tuesday 26 July 2005 17:35, Michael Beattie wrote:
  On 7/26/05, Matt Juszczak [EMAIL PROTECTED] wrote:
   Hi all,
  
   Quick question.
  
   shell# cat /dev/urandom
  
   can that executed as root cause any harm to the system?  What if a random
   sequence of `rm *` was generated... would it be executed?
  
   I tried that to fix my terminal and forgot it might cause damage as root,
   even if its just being cat'd to the screen.  I thought I saw some files
   fly by which would indicate an execution of `ls`
  
   Just curious
 
  If you had a file with an rm * in it and you cat'd it would it execute?
  ___
 That's a good answer, but what if the command was:
 
 `cat /dev/urandom`
 
 could /dev/urandom generate arbitrary and potentially executable code?

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


Can someone clarify ipfw's in/out/recv/xmit/via concepts?

2005-07-26 Thread Gary W. Swearingen
I see in another msg that I'm not the only one scratching my head over
the ipfw manpage's explanation of in/out/recv/xmit/via concepts.  I've
spent many hours reading that manpage and working on my rc.firewall
(and it seems to work OK, based on the logging), but I can't figure
out what it's trying to tell me, even with that nice ASCII art.

(I hope your replies will help me get some clarifications into the
manpage.)

   ^ to upper layers   v
   |   |
   +--+
   ^   v
  [ip_input]  [ip_output]   net.inet.ip.fw.enable=1
   |   |
   ^   v
 [ether_demux][ether_output_frame]  net.link.ether.ipfw=1
   |   |
   +[bdg_forward]+net.link.ether.bridge_ipfw=1
   ^   v
   |  to devices   |
   +   +

FROM BOTH   TO BOTH
  NICS?  NICS?

Here's a pic of my firewall:

  +--+
  | +-+  |
  | |KERNEL   |  |
  | +-+  |
  || || ||
  |v ^v ^|
  || || ||
  |  +-++-+  |
  |  | NIC |FW  | NIC |  |
  |  +-++-+  |
  || || ||
  +--+
   | || |
   v ^v ^
   | || |

   WANLAN

The manpage says we have incoming and outgoing packets.
In and out of what? NIC or kernel or ipfw or computer?

The manpage describes:
 recv | xmit | via {ifX | if* | ipno | any}

Is my de0 an ifX or an if*?
(exact name or device name)

What would be an example of the other?

Does ipno mean an numerical Internet address?
(It's not mentioned elsewhere in the manpage.)

Does each of my NICs have both of the manpage's xmit and recv
interfaces, or is one an xmit and one a recv for any one packet rule?

If an incoming packet can be associated with an xmit interface, why
can't an outgoing packet be associated with a recv interface?

P.S.

It seems that some people do their blocking of packets
going from LAN to WAN on (so to speak) the LAN interface, some on
the WAN interface, and some on both.  It doesn't seem to make much
difference on a pure firewall, except for rule-writing convenience.
Right?

I suppose it would be best to put blocks everywhere possible
or at least where the packets enter the computer.  Right?

Help!!

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


  1   2   >