Re: Creating mp3

2004-02-12 Thread Quintin Riis
I don't use cdparanoia myself, but data can be written to stdout, yes? 
So... pipe it through oggenc :P

Rob wrote:

Quintin Riis wrote:

mp3 is outdated, use vorbis.

abcde is nice, as is cdparanoia


My apologies for hijacking this thread.

I'm new to this ripping music stuff on FreeBSD, so I
installed cdparanoia and read in its man pages:
  The data can be saved to a file or directed to standard
  output in WAV, AIFF, AIFF-C or raw format.
So where is your 'state-of-the-art' vorbis format?
Or does it need more tricks to get the music in vorbis format?
(Yes, meanwhile I also have installed libvorbis and vorbis-tools).

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



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


Firewall rules for ftp

2004-02-12 Thread Martin Schweizer
Hello

Until now I tested a lot regarding ftp and ipfw but with no 100% success. 
What are the correct ipfw rules for ftp (regarding dir and ls, passive etc.)?

System: FreeBSD 4.9, NAT, ipfw, LAN 192.168.1.0/24, WAN: dyn. WAN ip over ADSL

-- 

Regards

Martin Schweizer
<[EMAIL PROTECTED]>

PC-Service M. Schweizer; Gewerbehaus Schwarz; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc; 
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;



pgp0.pgp
Description: PGP signature


Re: Creating mp3

2004-02-12 Thread Rob
Quintin Riis wrote:
mp3 is outdated, use vorbis.

abcde is nice, as is cdparanoia
My apologies for hijacking this thread.

I'm new to this ripping music stuff on FreeBSD, so I
installed cdparanoia and read in its man pages:
  The data can be saved to a file or directed to standard
  output in WAV, AIFF, AIFF-C or raw format.
So where is your 'state-of-the-art' vorbis format?
Or does it need more tricks to get the music in vorbis format?
(Yes, meanwhile I also have installed libvorbis and vorbis-tools).

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


Re: /usr/local/etc/rc.d broke after 4.7 -> 4.9 upgrade

2004-02-12 Thread Per olof Ljungmark
Dan Rue wrote:
Hiya, 

I just upgraded a server from 4.7 to 4.9 stable.  Everything's fine,
except that for some reason my startup scripts in /usr/local/etc/rc.d
are not being executed at boot time anymore.  I must have hosed
something during mergemaster.  I checked rc.conf and defaults/rc.conf -
they correctly point to the correct startup directory.  

Also, if I manually start them they start fine.  

Has anyone seen this before?  Things to check?
man rc.subr ?

# Add the following lines to /etc/rc.conf to enable :
#
#_enable="YES"
Just my 2 öre's worth...
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Creating mp3

2004-02-12 Thread Quintin Riis
mp3 is outdated, use vorbis.

abcde is nice, as is cdparanoia

		Quintin

Earl wrote:
What is a good program to create mp3s with?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



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


UNIX category

2004-02-12 Thread Ian Lenzen

Hello,

We're creating a directory focused on web site credibility. We included:
http://www.bsd.net.au/ in the UNIX section of the All.info directory.

Descriptive information provided by you and our editors helps our users
choose sites. Our editors have already selected starter keyterms and a
category for your web site.

To review their work, add information and gain editorial control over
your site's record in our system, please update your information here:

http://all.info/s?a=l&z=1tv238w1fvbb40bycm7rb4

More information about All.info is available at: http://www.all.info

Thanks in advance.

Ian Lenzen Editor, All.info - the Directory of Topics


Note: If you are NOT the proper site contact or you would like to provide
a corrected site contact, please update it here:
http://all.info/s?a=nl&z=1tv238w1fvbb40bycm7rb4&x=questions%40freebsd.org

If you have other questions, please email: [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Upgrade 4.8-4.9 help!

2004-02-12 Thread Kevin D. Kinsey, DaleCo, S.P.
Bob Perry wrote:

Eric F Crist wrote:

On Wednesday 11 February 2004 06:25 pm, richard wrote:
 

Hi,

I'm trying to upgrade Freebsd 4.8 to 4.9 using sysinstall | upgrade 
off a
4.9 CD.  All seems fine until it gets to the point where it reports it
can't even extract the bin distribution and fails.

Does anyone know of a fool-proof way to get this upgrade through?
Preferably some idiot-proof instructions I can follow.
Cheers,
Richard
  


Richard,

If you have broadband, install cvsup, read the man page on that, and 
install new sources over FTP via cvsup.  Once you have a correct 
supfile, it's pretty brainless.  Most of us have some upgrading done 
via cron on a regular basis, completely unattended.
 

Would you care to summarize your upgrading procedure which you process 
on a "regular
basis, completely unattended."?  Details not necessary at this time, 
just very curious.

Thanks,
Bob Perry
HTH
 



Haven't done it, but I'm guessing it's:

X  Y  Z  Acvsup /path/to/my.supfile
Q  R  S  Tcd /usr/src && make buildworld > 
/my/homedir/buildworld.log
"make buildkernel etc., make installkernel, make installworld, etc.

I've been thinking of scripting this procedure and
then just calling "upgrade.php*" via cron.  Doubt that
it'd be too good for the 'mergemaster' step, though.
FWIW, the chapter in the handbook actually
makes the procedure pretty clear.
Kevin Kinsey

*Yeah, PHP for scripting, I know ... give a old
 dog new languages?  Not yet, please  ;-)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


touchpad mouse not working with freebsd

2004-02-12 Thread Peter Kurpis
I installed FreeBSD 4.7 on my Toshiba Satellite 1135 laptop, and 
I couldn't get the mouse working.  (Windows says it's an Alps 
Pointing Device, on interrupt 12, plugged into the PS/2 port.)

On further investigation, when I tried

moused -p /dev/psm0 -i all

the daemon aborted, saying it failed to open /dev/psm0 (which 
does exist and looks sane) and also

Device not configured

What does "Device not configured" mean?  I see psm listed in
the GENERIC kernel configuration file...  What gives?  What do 
I need to do to get it working?

P.S.  "Device not configured" was error 6 in errno, according to
truss.

P.P.S.  The same as above goes for the other two mouse devices
(mse0 and ums0) for what it's worth...


Please CC me on reply, as I am not a member of this group.
Thanks!

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


using the Future Domain TMC-18C30 Scsi Card

2004-02-12 Thread kenny
Hi i like to begin by talking about my hardware.
I have a Intel Pentium 200mmx computer with 64 megs of RAM. I am booting off of an ide 
drive(ad2s1a). The version is FreeBSD 4.9-production release. The problem i have is 
with a scsi card. It is a Future Domain TMC-18C30 with a boot bios ver. 3.3. I have a 
digital DSP3105 Hard drive ID4 hooked up to it. 

I have added the following to the Kernel and compiled it
device   stg0 at isa? port0x140 irq 11
device   scbus0 at stg0
device   da0 at scbus0 at target 4 unit 0

i have the scsi delay at 3 ms.

The kernel boots and recognize the stg0 card. It also seems it sees the hard drive. 
But after recognizing the cd drive, the scsi bus tries to probe the bus and couldn't 
do it. The bus timeout and it dispays the targets 0-9. on the 4th target the message 
is different. It seems there is a device there. The bus tries to reset. and the cycle 
goes on for 20 minutes until the 4th message is the same as the other ones(meaning the 
hard drive is tired of sending info). then it mounts / and goes into multi-user.

I couldn't get the dmesg because it doesn't contain everything except the bus reset.

Any help will be appreciated. Thanks


___
Check-out GO.com
GO get your free GO E-Mail account with expanded storage of 6 MB!
http://mail.go.com


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


Linux patch for reading ufs2

2004-02-12 Thread Niraj Kumar
Hi,

I am trying to create some Linux patches to be able to read ufs2.
Interested (those who are having both Linux and FreeBSD on same box) may 
try them .

The work-in-progress patches are available from

http://ufs-linux.sourceforge.net/ufs2/p1.txt
http://ufs-linux.sourceforge.net/ufs2/p2.txt
Currently , these provides the bare minimum  ufs2
support and that also for Read-Only .
It would be good if somebody tests them  and see the problems.

Niraj

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


Problem installing FreeBSD after Linux

2004-02-12 Thread Lee Hanxue


Hi, 


I have 1 primary partition, containing 4 extended partitions. Mandrake Linux 9.2 is 
installed over there. Using fdisk in FreeBSD installer, I created another primary 
partition and tried installing FreeBSD 5.2.1 there. 

Unfortunately, the installation process got hung while the installer was "Creating a 
root filesystem on ad10s3". I waited for more than 3 hours. I selected none when I was 
prompted to install a boot manager, since I wanted to boot using Grub which is already 
there when I install Linux.

This is the output from Linux's cfdisk:

Partition Table for /dev/hda

FirstLast
 # Type Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
-- ---  - -- - -- -
 1 Primary0  4016249  63  4016250  Linux (83) Boot (80)
 2 Primary  4016250 23760134   0 19743885  Extended (05)  None (00)
 5 Logical  4016250 20643524  63 16627275  Linux (83) None (00)
 6 Logical 20643525 23085404  63  2441880  Linux (83) None (00)
 7 Logical 23085405 23760134  63   674730  Linux swap (82)None (00)
 3 Primary 23760135 28659959   0  4899825  FreeBSD (A5)   None (00)
   Primary 28659960 78156224   0 49496265  Free Space None (00)

What did I do wrong?

Thank you in advance.



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


Re: Creating mp3

2004-02-12 Thread Trey Sizemore
On Thu, 2004-02-12 at 23:16, Earl wrote:
> What is a good program to create mp3s with?

I really like abcde...it can make .ogg files too.

-- 
Cheers,
Trey
---

At a given moment I open my eyes and exist.
And before that, during all eternity, what was there?
Nothing.
- Ugo Betti

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


Creating mp3

2004-02-12 Thread Earl
What is a good program to create mp3s with?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: need help on CFLAGS in /etc/make.conf please

2004-02-12 Thread Kris Kennaway
On Thu, Feb 12, 2004 at 09:56:08PM -0600, Paul Seniura wrote:
> 
> Hi Kris,
> 
> > On Thu, Feb 12, 2004 at 06:17:03PM -0600, Paul Seniura wrote:
> > > 
> > > Hi y'all,
> > > 
> > > I'm trying to find a way to do a CFLAGS+='-O' if and only if such a
> > > parm was not already provided before 'make' actually runs.
> > > 
> > > I had this coded with the single = sign, i.e. without ?= or +=, but
> > > the process still acts as if += was coded anyway, thus tacking on
> > > my -O *after* the port's own CFLAGS.
> > > 
> > > GCC33 docs say the _last_ -O# is the one that will be used.
> > > 
> > > I've seen other discussion on using -O2 but the point seems to be the
> > > ports that set -O2 explicitly are likely to work correctly.
> 
> On Thu 12 Feb 2004 17:13:25 -0800, Kris Kennaway replied:
> > That's not a good assumption; many ports simply add -O2 (or -O3, or
> > -O999) because the authors "want their code to run fast".  The set of
> > ports for which the authors have run full regression suites for all
> > supported versions of gcc and all supported OS and architecture
> > combinations is probably the null set.
> 
> Thank you for responding, but I'm *really* not wanting this to
> become another discussion on "how high my Oh-levels should be". ;)
> 
> My question for this discussion is specifically how to prevent
> overriding a port's own setting for that parm, and to provide a
> default setting -O[1] when the port does not set it at all?
> 
> (I'll save my l-o-n-g-e-r reply for later... believe me I have reasons ;)

There's no general way.  Some ports do ${CFLAGS} -O999, some do -O999
${CFLAGS}.  The ports collection policy is that any port that
specifies its own optimization flags by default and uses them in
preference to ${CFLAGS} is a bug and must be fixed.

Kris


pgp0.pgp
Description: PGP signature


Re: need help on CFLAGS in /etc/make.conf please

2004-02-12 Thread Paul Seniura

Hi Kris,

> On Thu, Feb 12, 2004 at 06:17:03PM -0600, Paul Seniura wrote:
> > 
> > Hi y'all,
> > 
> > I'm trying to find a way to do a CFLAGS+='-O' if and only if such a
> > parm was not already provided before 'make' actually runs.
> > 
> > I had this coded with the single = sign, i.e. without ?= or +=, but
> > the process still acts as if += was coded anyway, thus tacking on
> > my -O *after* the port's own CFLAGS.
> > 
> > GCC33 docs say the _last_ -O# is the one that will be used.
> > 
> > I've seen other discussion on using -O2 but the point seems to be the
> > ports that set -O2 explicitly are likely to work correctly.

On Thu 12 Feb 2004 17:13:25 -0800, Kris Kennaway replied:
> That's not a good assumption; many ports simply add -O2 (or -O3, or
> -O999) because the authors "want their code to run fast".  The set of
> ports for which the authors have run full regression suites for all
> supported versions of gcc and all supported OS and architecture
> combinations is probably the null set.

Thank you for responding, but I'm *really* not wanting this to
become another discussion on "how high my Oh-levels should be". ;)

My question for this discussion is specifically how to prevent
overriding a port's own setting for that parm, and to provide a
default setting -O[1] when the port does not set it at all?

(I'll save my l-o-n-g-e-r reply for later... believe me I have reasons ;)

> Kris

  --  thx, Paul Seniura (in OkC)

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


Re: Upgrade 4.8-4.9 help!

2004-02-12 Thread Bob Perry
Eric F Crist wrote:

On Wednesday 11 February 2004 06:25 pm, richard wrote:
 

Hi,

I'm trying to upgrade Freebsd 4.8 to 4.9 using sysinstall | upgrade off a
4.9 CD.  All seems fine until it gets to the point where it reports it
can't even extract the bin distribution and fails.
Does anyone know of a fool-proof way to get this upgrade through?
Preferably some idiot-proof instructions I can follow.
Cheers,
Richard
   

Richard,

If you have broadband, install cvsup, read the man page on that, and install 
new sources over FTP via cvsup.  Once you have a correct supfile, it's pretty 
brainless.  Most of us have some upgrading done via cron on a regular basis, 
completely unattended.
 

Would you care to summarize your upgrading procedure which you process 
on a "regular
basis, completely unattended."?  Details not necessary at this time, 
just very curious.

Thanks,
Bob Perry
HTH
 



--
FreeBSD 4.8-RELEASE-p13 0#
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with ssh

2004-02-12 Thread Dragoncrest
At 03:12 PM 2/12/04 -0500, Clint Gilders wrote:
Nathan Kinkade wrote:
 > Uncomment the following line /etc/ssh/sshd_config and HUP sshd:
#PasswordAuthentication yes
You also want to set that to 'no'

PasswordAuthentication no
Well, that's the kicker.  I've got that already in my sshd_config 
file and I've restarted SSHD and still no go.  Here's my current config 
file.  The weird part is this used to work.


# This is ssh server systemwide configuration file. See sshd(8)
# for more information
Port 22
Protocol 2
HostDsaKey /etc/ssh/ssh_host_dsa_key
ServerKeyBits 768
LoginGraceTime 120
KeyRegenerationInterval 3600
PermitRootLogin no
# After 3 unauthenticated connections, refuse 50% of the new ones, and
# refuse any more than 10 total.
MaxStartups 3:50:10
# Don't read ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
StrictModes yes
X11Forwarding no
X11DisplayOffset 10
PrintMotd yes
PrintLastLog yes
KeepAlive yes
# Logging
SyslogFacility AUTH
LogLevel VERBOSE
#obsoletes QuietMode and FascistLogging
RhostsAuthentication no
#
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
#
RSAAuthentication yes
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
PermitEmptyPasswords no
# Uncomment to disable s/key passwords
ChallengeResponseAuthentication no
# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no
# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes
CheckMail yes
#UseLogin no
Banner /etc/issue.net
#ReverseMappingCheck yes
Subsystemsftp   /usr/libexec/sftp-server

AllowUsers dragoncrest

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


Fsck complains during bootup but doesn't find anything to repair.

2004-02-12 Thread Mark Hessler
Hello,
  Given X not running, is there a way to interrupt/shutdown the system 
when it doesn't respond to ctrl^c?  My Intel system running a recent 
5.1-Release -> 5.2-Release upgrade hung when I typed 'xdm' for the first 
time.  (Normally I start x with 'startx'.)  I waited for a while, then 
powered down.
  Now the system boots with all four ad0sd1x partitions reporting 
Warning:  'NO WRITE' and 'UNEXPECTED INCONSISTENCY' during bootup.
  In single-user mode, I can remount them read/write, as I saw 
described in a mail thread:
  mount -u -o ro /dev/ad0sd1a  /   (example for /, also applies to 
/tmp, /var and /usr)... then run fsck:
  fsck /
  ... all mounts pass- fsck doesn't complain.  But each time it boots, 
fsck run manually reports the same errors as above for all the hard 
drive mounts.
  So, to summarize:
  Question 1:  is there a way to shutdown the system properly when it 
hangs on starting X?  I tried logging in remotely and couldn't- 
apparently sshd wasn't happy.
  Question 2:  what might I do to repair my filesystems or hard drive 
if either is broken, given that fsck run manually doesn't complain or 
fix anything once the filesystems have been remounted r/w?
  (Question 3:  why does fsck seem to contradict itself, reporting 
errors during bootup but not when run manually in single-user mode?)
  --Mark Hessler, excited new migrant from microsoft.

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


Arp, Arp, Arp, Arppity Arp!

2004-02-12 Thread Aaron D. Gifford
Imagine this:

[  To the Internet  ]
 aa.bb.cc.1/24
  |
 aa.bb.cc.2/24 (ethernet MAC 00:11:22:aa:bb:cc, interface dc0)
[ My FreeBSD Router ]
 10.50.0.1/24   (ethernet interface dc1)
  |
 10.50.0.22/24 (aa.bb.cc.3/32 is an alias address on this interface)
[  An Inside Host   ]
On the FreeBSD router has a static route for aa.bb.cc.3/32, telling it 
to forward traffic to that address to 10.50.0.22/24.  Now all I need is 
for the FreeBSD to proxy ARP on the aa.bb.cc.0/24 network on behalf of 
aa.bb.cc.2 so it can forward traffic for the inside host.

So this is what I try, having never done static ARP stuff before on FreeBSD:

  arp -s aa.bb.cc.2 00:11:22:aa:bb:cc pub

(Side question: What's the difference between this command and the same 
command adding the keyword 'only' at the end?  The man page isn't very 
clear to me on what the difference is between "published" and "published 
(proxy only)" as far as what FreeBSD does in response to ARP requests 
for the address/host.)

Here's what I see when I try running the above command:

  set: proxy entry exists for non 802 device

Huh?  What?

What's the deal?  If this were a Cisco, this would be easy:

  cisco(config)# arp aa.bb.cc.2 0011.22aa.bbcc arpa eth0

So what's up with FreeBSD?  What magic incantation do I need to know?

Thanks in advance for any/all help/suggestions.

Aaron out.

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


/usr/local/etc/rc.d broke after 4.7 -> 4.9 upgrade

2004-02-12 Thread Dan Rue
Hiya, 

I just upgraded a server from 4.7 to 4.9 stable.  Everything's fine,
except that for some reason my startup scripts in /usr/local/etc/rc.d
are not being executed at boot time anymore.  I must have hosed
something during mergemaster.  I checked rc.conf and defaults/rc.conf -
they correctly point to the correct startup directory.  

Also, if I manually start them they start fine.  

Has anyone seen this before?  Things to check?

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


Re: need help on CFLAGS in /etc/make.conf please

2004-02-12 Thread Kris Kennaway
On Thu, Feb 12, 2004 at 06:17:03PM -0600, Paul Seniura wrote:
> 
> Hi y'all,
> 
> I'm trying to find a way to do a CFLAGS+='-O' if and only if such a
> parm was not already provided before 'make' actually runs.
> 
> I had this coded with the single = sign, i.e. without ?= or +=, but
> the process still acts as if += was coded anyway, thus tacking on
> my -O *after* the port's own CFLAGS.
> 
> GCC33 docs say the _last_ -O# is the one that will be used.
> 
> I've seen other discussion on using -O2 but the point seems to be the
> ports that set -O2 explicitly are likely to work correctly.

That's not a good assumption; many ports simply add -O2 (or -O3, or
-O999) because the authors "want their code to run fast".  The set of
ports for which the authors have run full regression suites for all
supported versions of gcc and all supported OS and architecture
combinations is probably the null set.

Kris


pgp0.pgp
Description: PGP signature


Re: Hardware vs software firewall on FreeBSD

2004-02-12 Thread Vulpes Velox
On Thu, 12 Feb 2004 12:37:45 -0800
[EMAIL PROTECTED] wrote:

> I'm upgrading the hardware on my webserver.  It will run FreeBSD
> 4.9.
> 
> I need to decide whether to use a hardware firewall (Cisco) or use
> ipfw, ipf, pf, etc.
> 
> The hardware firewall will increase my monthly server rental bill by
> almost 30%.  So I'm wondering if the significant extra cost is worth
> it.
> 
> What kind of performance hit will result from using ipfw, ipf or pf?

AFAIK you will not get any noticeable performance hit from any of
those.
 
> I would like to avoid the extra expense of the hardware firewall.
> 
> Can anyone offer an opinion on this matter?  Any good reasons to use
> one over the other?

I personally don't trust hardware firewalls any more than I trust a
software firewall. Problems can occur in either and software is easier
to update and ect. I really don't see how it makes a dif if
something is written in Verilog or C or whatever. The only dif is one
is easier to back work than the other.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


need help on CFLAGS in /etc/make.conf please

2004-02-12 Thread Paul Seniura

Hi y'all,

I'm trying to find a way to do a CFLAGS+='-O' if and only if such a
parm was not already provided before 'make' actually runs.

I had this coded with the single = sign, i.e. without ?= or +=, but
the process still acts as if += was coded anyway, thus tacking on
my -O *after* the port's own CFLAGS.

GCC33 docs say the _last_ -O# is the one that will be used.

I've seen other discussion on using -O2 but the point seems to be the
ports that set -O2 explicitly are likely to work correctly.

And so, in many ports esp. KDE, it will add my -O *after* the port's
own -O2, and KDE et al will not be compiled with the intended
settings, which may be causing some of its slowness.

Since TPTB here could only find a spare [EMAIL PROTECTED] Pentium2 for this
project, I'm trying to optimize other ports with at least -O in an
automatic fashion.  That leaves out /etc/pkgtools.conf due to the
sheer manual labor it would take to code this up for each port.

The idea of having a test in /etc/make.conf struck me as the way to
go, since it is effectively 'sourced'-in and could contain some simple
shell logic operations.

I hope I'm explaining this correctly.  ;)

I'd love to hear feedback on this.
I'll continue working on it tomorrow.

Thank you,

  --  Paul Seniura
  System Specialist
  State of Okla. D.O.T.

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


using log_in_vain shows error message "Connection attempt to 127.0.0.1:113 from 127.0.0.1:4102"

2004-02-12 Thread Julie Russell
I'm trying to track down the cause of this error message, that starts to
show up when I enable log_in_vain in rc.conf - I'm running FreeBSD 4.9
Stable.  Any direction greatly appreciated.

Feb 12 15:00:00 server1 /kernel: Connection attempt to TCP 127.0.0.1:113
from 127.0.0.1:4102

TIA,
Julie


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


what is your favorite kernel patch revolving around networking.

2004-02-12 Thread matthew

Hello,

In the last few months I have used successfully two different
kernel patches that helped solved problems I had.

The first is the multiple ip jail patch by Pawel Dawidek.
His site is at garage.freebsd.pl.  He really saved the day for me
when my jailed stats machine needed to get data from a different
segment of the LAN. When my jailed nameserver had 3 ips. etc...

I used 4.9-REL and patched by hand for the learning exp.

The second kernel patch I used to solve a problem was the
Multipath route table ported to 4.8 by Ed Tanzer.
<[EMAIL PROTECTED]>.
http://www.dsm.fordham.edu/~tanzer/multipath/

The original author is <[EMAIL PROTECTED]>.

I had a FreeBSD machine with 5 nics. One nic was the uplink.
The other 4 went to NET2NET dsl boxes. Those 4 pairs went via telephone
pole to the local fire department/townhall. They went into their matching
NET2NET box into a Cabletron SSR with already could do routes with
multiple gateways.  If a NET2NET box failed, watch out for 25% packet
loss! This patch did not remove the gateway if it went down. Happened to
me once.

My question is, what kernel patches have you used to solve
networking problems on FreeBSD that the releases couldn't do?

I would be very interested in your opinion and a link to the
creator's site.

I would like to say thank you to the authors of the above patches
if you are reading this.

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


Re: Stack Backtraces -- disk related?

2004-02-12 Thread Greg 'groggy' Lehey
On Thursday,  5 February 2004 at 15:40:06 -0800, David Benfell wrote:
> Hello all,
>
> I've been getting these messages on my console and in my kernel log.
> I'm noticing stuff in there that looks like it has to do with the
> filesystem.  Both the disks on this system are IDE disks, so yes, this
> kind of gets my attention.

>> syscall(2f,2f,2f,bfbfee14,bfbfedc3) at syscall+0x217
>> Xint0x80_syscall() at Xint0x80_syscall+0x1d
>> --- syscall (95), eip = 0x280b8677, esp = 0xbfbfed9c, ebp = 0xbfbfedcc ---
>> Stack backtrace:
>> backtrace(c25d0f00,1,cda99c14,cda99c00,c0718580) at backtrace+0x12
>> getdirtybuf(cda99bf0,0,1,c45b52a8,1) at getdirtybuf+0x2c
>> flush_deplist(c2c27a4c,1,cda99c14) at flush_deplist+0x30
>> flush_inodedep_deps(c217b000,285eb,c087f118,cda99c60,c05fb1e0) at 
>> flush_inodedep_deps+0x82
>> softdep_sync_metadata(cda99cb0) at softdep_sync_metadata+0x72
>> ffs_fsync(cda99cb0) at ffs_fsync+0x336
>> fsync(c23f37e0,cda99d14,1,1,292) at fsync+0x10b
>> syscall(2f,2f,2f,bfbfee14,bfbfedc3) at syscall+0x217
>> Xint0x80_syscall() at Xint0x80_syscall+0x1d

> What does it mean?  I'm running 5.2-CURRENT on this system:

If you're running -CURRENT, you should be following the
FreeBSD-current list and be prepared to look for the problems
yourself.  -questions is the wrong mailing list for this.  Looking at
getdirtybuf(), we see:

if (bp->b_vp == NULL)
backtrace();

In other words, getdirtybuf() has been passed a corrupt buffer
header.  This is almost certainly a bug.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0.pgp
Description: PGP signature


Re: Vinum or HD error?

2004-02-12 Thread Greg 'groggy' Lehey
On Sunday,  1 February 2004 at 12:42:31 -0600, Hari Bhaskaran wrote:
> Hi,
>
> here is a transcript of vinum reporting an HD failure. I just
> want to confirm this is really a HD error before the throw
> the HD out the window
>
> vinum volume fs5 is really not mirrored (~ 29G of only 1 120g disk
> mapped as such via vinum).
> OS: 4.7-RELEASE-p24
>
> Feb  1 11:58:44 mach01 /kernel: ad1s1e: hard error reading fsbn 362562737 of 
> 177087033-177087048 (ad1s1 bn 362562737; cn 22568 tn 124 sn 5) trying PIO mode
> Feb  1 11:58:45 mach01 /kernel: ad1s1e: hard error reading fsbn 362562737 of 
> 177087033-177087048 (ad1s1 bn 362562737; cn 22568 tn 124 sn 5) status=59 error=40

Yes.  These errors come from the disk driver.  It's possible that
reformatting the drive might help, but I certainly wouldn't rely on
that drive again.

> Feb  1 11:58:45 mach01 /kernel: vinum: fs5.p0.s0 is crashed by force
> Feb  1 11:58:45 mach01 /kernel: vinum: fs5.p0 is faulty
> Feb  1 11:58:45 mach01 /kernel: vinum: fs5 is down
> Feb  1 11:58:45 mach01 /kernel: fatal:fs5.p0.s0 read error, block 177087033 for 8192 
> bytes
> Feb  1 11:58:45 mach01 /kernel: fs5.p0.s0: user buffer block 7217456 for 8192 bytes

These error messages come from Vinum.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgp0.pgp
Description: PGP signature


how to enable automatic acoustic management ?

2004-02-12 Thread Jean-Sebastien Roy
Hi !

I use FreeBSD 4.9, an on my computer, the CD-ROM seems to support
"automatic acoustic management" (see results of atacontrol cap below).

How can I enable this feature (which seems disabled by default ?) Is
there an utility to do it under FreeBSD ?

Thank you very much in advance,

Regards,

js

# atacontrol cap 1 0
ATA channel 1, Master, device acd0:

ATA/ATAPI revision0
device model  HL-DT-ST GCE-8483B
serial number 
firmware revision 1.04
cylinders 0
heads 0
sectors/track 0
lba supported 
lba48 not supported 
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheno   no
read ahead no   no
dma queued no   no  0/00
SMART  no   no
microcode download no   no
security   no   no
power management   no   no
advanced power management  no   no  0/00
automatic acoustic management  yes  no  254/FE  128/80
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Spimware infection

2004-02-12 Thread Bob Johnson
Wallace Aiken wrote:
Date: Thu, 12 Feb 2004 15:25:36 -0500
From: "Wallace Aiken" <[EMAIL PROTECTED]>
Subject: Spimware infection
Hi, I'm using two of your firewalls...they work great. But all of 
> a sudden they're showing signs of "Spimmware" infection, a kind of
> spyware.

I also can find no information about "Spimmware" or "Spimware".

I work for Kent State university and their network scan came up 
> with the IPs and host names of my firewalls, as well as some other
> hosts on my subnet that were not behind the firewall...can you give
> me any advice?
Are you using NAT to allow the systems behind a firewall to share the IP 
address of the firewall?  If so, it is most likely systems behind the 
firewalls that are infected, not the firewalls themselves.  If they are 
monitoring network traffic and seeing suspicious activity, NAT would 
cause it to have the IP number of your firewall and they would naturally 
assume that was the infected system.

If you literally mean "network scan" rather than "network monitoring" 
(i.e. they are actively probing systems for vulnerabilities, not just 
monitoring network traffic), then ask them which open ports (or other 
behavior) on the firewalls lead them to believe they are infected, and 
report that to the list.  We can probably explain it then.

- Bob

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


Re: Crontab question

2004-02-12 Thread Nathan Kinkade
On Thu, Feb 12, 2004 at 04:06:56PM -0600, Darryl Hoar wrote:
> Greetings,
> I am running 5.1-release.
> I have installed rsync from ports, and want to use it to archive.
> I want to add an entry to cron so it runs nightly.  I didn't quite
> understand the man page when it came to arguments to the 
> command you are running.
> 
> ie
> 0 0 1 * * *  /usr/local/bin/rsync -av /working/ /backup/working 
> 
> I also want the output of the rsync command to go to a named file.
> 
> Any help greatly appreciated.
> 
> -Darryl

Without consideration to the syntax of rsync, a line much like the one
you have should work.  For example:

0 1 * * *  /usr/local/bin/rsync -av /dir /backup/dir 2>&1 /root/rsync.log

This should run the specified command at 1AM every day of every week.

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


RE: hostname and dhcp

2004-02-12 Thread Evan Dower
I guess I just won't worry about it then. It only prevents me from using 
send-pr (and in fact, I think I still wouldn't be able to use it because I'm 
pretty sure my smtp server requires me to log in), and every once in a while 
I have to change it in order for sshd, freenet6, and httpd to start. That 
part is very odd, actually. I had hostname="lojak.washington.edu" but 
recently things decided they didn't like that, so I changed it to 
hostname="lojak" and then it worked, but when I rebooted a few days later, I 
had to change it back. Then again, my system seems to have a number of 
unusual and inexplicable quirks.
Thanks for all your help, (now if I could only get cdparanoia working 
again...)
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D




From: "JJB" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "Evan Dower" 
<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Subject: RE: hostname and dhcp
Date: Thu, 12 Feb 2004 14:20:55 -0500

If I understand you correctly, you are talking about your system
which is connected to the public internet, and you are using the
FBSD built in DHCP client to get an lease from your ISP. Now if you
are an commercial user with an officially registered domain name and
static ip address from your ISP,  Your ISP has you in their DHCP
server with your FQDN and it's being sent to your system when you
get an new lease. The FBSD built in DHCP client is not configured to
accept that info which will auto populate the hostname= environment
variable.  Install the DHCP package on you system and configure It's
client to accept that info.
If you are not an commercial user, then the host name the ISP uses
for you is meaningless to you. If you have officially registered
domain name then use that in your hostname=  statement, like this,
hostname="cyberbaby.com", then that FQDN will be what sendmail uses
for all the users on your LAN. Then use DHCP server to pass the
major FQDN to all LAN PC, and those systems will append to the front
their system names and tell your DHCP server their full name.
If you do not have LAN or officially registered domain name, then
all you need, is to meet the domain nameing convention,
something.com and you are all set go. IE:
hostname="home.FBSDyourLastName.com".
As far as reverse lookup goes, that is only on officially registered
domain names,  either yours, which really happens at the registry
hosting your domain name, or at the ISP if your using their email
servers.
On your system the value you use in hostname=  should also be in the
/etc/hosts file like this
#
::1 localhost localhost.my.domain
127.0.0.1   localhost home.FBSDyourLastName.com FBSDyourLastName.com
#
Hope this helps

Joe



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Evan Dower
Sent: Thursday, February 12, 2004 1:15 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: hostname and dhcp
Hmm... That is what I expected it to do, but when I tried it, I
ended up
with an empty hostname. Of course, I don't remember now if I
commented out
that line or just set it to empty. Actually, looking at
/etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf
it gets
set to the empty string in the default, so it shouldn't matter.
Anyway, like
I said, I tried that and just ended up with an empty hostname.
Perhaps that
indicates something is wrong with my configuration...
Thanks very much for the help (any other ideas?),
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D


>From: Lowell Gilbert <[EMAIL PROTECTED]>
>To: "Evan Dower" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: hostname and dhcp
>Date: 12 Feb 2004 13:04:38 -0500
>
>"Evan Dower" <[EMAIL PROTECTED]> writes:
>
> > I've actually been running FreeBSD for quite a while now, but
I've
> > never known exactly how to handle this. In rc.conf, one must
specify a
> > hostname. If you're using DHCP to set up your network though,
your
> > FQDN (fully qualified domain name) can change without notice. It
seems
> > like a Good Idea to have your hostname be your FQDN, since some
things
> > will do a reverse lookup on your IP to verify that it matches
the
> > hostname you supplied. In particular I'm thinking of SMTP
servers
> > here. (send-pr doesn't work for me because my mail gets
rejected.) So,
> > when you're autoconfiguring your network interfaces, what should
you
> > put in rc.conf's hostname variable? Is there something else I
can do
> > that would allow me to have something nicer looking, but still
send my
> > FQDN when asked?
>
>If you don't set your hostname in rc.conf, dhclient should change
it
>for you when it finds out what 

Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 14:37:39 -0800
Kent Stewart <[EMAIL PROTECTED]> wrote:

> On Thursday 12 February 2004 01:50 pm, gaf wrote:
> > Ion-Mihai Tetcu wrote:
> > >On Thu, 12 Feb 2004 22:04:53 +0100
> > >
> > >gaf <[EMAIL PROTECTED]> wrote:
> > >>I have read the handbook but have been following (It´s easier to
> > >> have a book in front of you when installing).  The Complete
> > >> FreeBSD  4th edition when installing, where Greg Lehey recommends

[..]

> > I have the book in front of me.sorry  but there are nothing said
> > about symlinks.
> > It says:
> > " Creating the file systems
> > With these considerations in mind, 

If you have time, I would like to find out what those considerations
where. Tnx

[..]

> > I can´t figure out any other way to decipher thisdo you???
> 
> At this point it doesn't matter, you have demonstrated that it doesn't 
> work for you. Now, you have to figure out what does work for you. 

Nice said :)



-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: CPU heat monitor

2004-02-12 Thread DeadZen
George Patterson wrote:

On Wed, 11 Feb 2004 22:04:57 -0500
Jud <[EMAIL PROTECTED]> wrote:
 

On Wed, 11 Feb 2004 20:48:55 -0600, Chris <[EMAIL PROTECTED]> wrote:

   

I'm looking for a small applet that monitors the CPU heat. I did a fast  
search
of the ports and really didn't find much based on descriptions - Is there
something like that that will run under X?
 

xmbmon

Jud
   

or gkrellm has a temperature/voltages plugin.

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

install healthd and access it with healthdc
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread Lauri Watts
On Thursday 12 February 2004 22.38, Lauri Watts wrote:

> With some judicious cleaning up of the cruft in /usr/ports/* (try
> portsclean, part of the portupgrade suited), possibly nuking /usr/obj
> (although you'll want space back for that if you build world again) and
> some investigation into maybe rolling over logs more often, and emptying
> out /tmp,  there's no pressing reason the OP should need to repartiiton and
> reinstall, especially not for the sake of either KDE or GNOME.

To clarify this, since I'm editing my silly typo below, personally, I think I 
would reinstall in the current situation.  I just meant it's probably not 
urgently in need of doing right this minute just to get KDE running.  There's 
probably a fair amount of cleanup, and the other posters symlinking 
suggestions, that will provide the immediate solution of 'get back up and 
running' for the present.  A reorganisation in the future, is not a bad idea 
though.

> I think for most people the installers auto defaults are not pretty

s/not/now/ I meant here, honest.

Regards,
-- 
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/


pgp0.pgp
Description: signature


Re: /tmp full (newbie)

2004-02-12 Thread Kent Stewart
On Thursday 12 February 2004 01:50 pm, gaf wrote:
> Ion-Mihai Tetcu wrote:
> >On Thu, 12 Feb 2004 22:04:53 +0100
> >
> >gaf <[EMAIL PROTECTED]> wrote:
> >>I have read the handbook but have been following (It´s easier to
> >> have a book in front of you when installing).  The Complete
> >> FreeBSD  4th edition when installing, where Greg Lehey recommends
> >> the partitioning that I have running right now so.
> >
> >HE DOES NOT.
> >
> > >/ 4G
> > >swap  800M
> > >/home   35G
> >
> >NOP. No way.
> >
> >What he says and you forgot to do is something about sym-linking
> > /tmp to /var/tmp, if memory serves. If you want to extent this to
> > have symlinks like this: /tmp --> /home/tmp
> >/usr --> /home/usr
> >/var --> /home/var
> >you can. But there is no reason to do so.
> >In fact the default setup is just the other way:
> >/home --> /usr/home
> >Please refer to hier(7) to see layout of FreeBSD.
> >
> >Grog's book was for a few years the only one available and it's my
> > personal favorite. Nevertheless the FreeBSD handbook is the
> > official reference.
> >
> >>as a newbie how should I know which one is the most accurate?  Now
> >> I know you ll say the handbook, so from now on I will follow the
> >> handbook.
> >
> >Read Grog's book, it makes a few times every cent you have spent on
> > it.
> >
> >>Thanks for answering
> >>gaf
>
> I have the book in front of me.sorry  but there are nothing said
> about symlinks.
> It says:
> " Creating the file systems
> With these considerations in mind, we´ll divide up the disk in the
> following manner:
> 4G for the root file system, which includes /usr and /var
> 512M swap space
> The rest of the disk for /home file system"
>
> Next is "Selecting distributions"
> I can´t figure out any other way to decipher thisdo you???

At this point it doesn't matter, you have demonstrated that it doesn't 
work for you. Now, you have to figure out what does work for you. 
My /usr/ports shows 2.5GB for a du -h. There are probably a number of 
other directories that you want to link to /home. I setup my systems 
such that /var and /tmp each have 1.5 GB. /usr/src and /usr/obj are 
current setup such that each have 1.5 GB and are located on different 
HDs and controllers from /usr. On one system, /usr/ports is mounted 
in /etc/fstab and has 10GB all for itself. You have to be flexible and 
figure out what works for you. Don't be afraid to symlink and then 
correct your configuration on your next setup.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: routing, 2 nics, and a default gateways

2004-02-12 Thread matthew


On Thu, 12 Feb 2004, SixthSense Server Admin wrote:

> Hi list,
>
> I need help on this problem:
>
> I have 2 nics. The first has about 30 ips assigned to it and working
> correctly. The other was a backup nic for the ISP backup network, but its
> now I was asked to assign ips and a default gateway specification to
> it,because we ran out of usable ips on the 1st nic, so we have a new
> netblock ready for assignment.

Ok, you have 30 ips assigned by your ISP on your external nic. Gotcha.
You have lets say one ?private IP? on your internal nic.

> The trouble is, I don't know how to this
> remotely without cutting the internet access from this server. I thought
> on adding the ips to the 2nd nic (about 60 of them), but I don't know how
> I can make the default route for this nic to work. As far as i know, as
> soon as I type route add default gateway-of-2nd-nick ,the internet
> connection will be dropped. I don't know, have never tried this kind of
> setup. Any help would be appreciated!
>

Are these new ips all public ips assigned from your ISP?

Will some of these public ips be used on machines behind
the internal backup nic?

Since you have 30 ips on one nic you are well aware of
ifconfig fxp0 alias 192.168.1.100 netmask 255.255.255.255
type of usage...

How about describing your goals better and maybe I can help.

m

>
>
>
> --
> http://www.6s-gaming.com - your online store!
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Using dhclient to update zoneedit with my dynamic IP address

2004-02-12 Thread JJB
The zonedeit FAQ says this command can be used in dhclient to
update my dynamic ip address at zoneedit when ever dhclient
gets an new IP lease from my ISP.

wget -O - --http-user=username --http-passwd=password
'http://dynamic.zoneedit.com/auth/dynamic.html?host=www.mydomain.com'

Anybody doing this, or know what to add to /etc/dhclient.conf to make this
happen
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Mounting to freebsd ufs under WinXP

2004-02-12 Thread Peter Leftwich
I researched this on the web but found nothing relevant or useful.

Can someone recommend software that lets you mount TO freebsd (ufs)
partition FROM WITHIN Windows XP Pro SP1 (transparently)?

Samba, which is open source and free, isn't a solution because it
requires a working [freebsd] operating system and running a daemon.

Thanks mucho diGiornio,

--
Peter Leftwich, President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039, USA
http://Www.Video2Video.Com



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


Re: /tmp full (newbie)

2004-02-12 Thread matthew


On Thu, 12 Feb 2004, matthew wrote:

>
> On Thu, 12 Feb 2004, Ion-Mihai Tetcu wrote:
>
> > On Thu, 12 Feb 2004 21:35:08 +0100
> > gaf <[EMAIL PROTECTED]> wrote:
> >
> > > JJB wrote:
> > >
> > > >Add this statement to /etc/rc.conf and reboot your system.
> > > >
> > > >
> > > >clear_tmp_enable="YES"  # clear /tmp directory on boot
> > > >
> > > >
> > > >-Original Message-
> > > >From: [EMAIL PROTECTED]
> > > >[mailto:[EMAIL PROTECTED] Behalf Of gaf
> > > >Sent: Thursday, February 12, 2004 2:26 PM
> > > >To: [EMAIL PROTECTED]
> > > >Subject: /tmp full (newbie)
> > > >
> > > >Hello.
> > > >Im a newbie to unix and FreeBSD. I have 5.2 installed. When
> > > >installing I
> > > >followed the advice in The Complete FreeBSD and made the following
> > > >partitions:
> > > >/ 4G
> > > >swap  800M
> > > >/home   35G
> > > > I have KDE 3.2  installed I have done cvsup on src and ports new
> > > >kernel
> > > >etc etc.
> > > >Today I tried to install a new browser and I got the information
> > > >that my
> > > >filesystem is full.  When I tried to start KDE I got the message
> > > >that
> > > >/tmp is full. I would really apprecite some help. What to do?? Can I
> > > >give you some other info and if so what and how???
> > > >Many thanks Gaf
> > > >___
> > > >[EMAIL PROTECTED] mailing list
> > > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > >To unsubscribe, send any mail to
> > > >"[EMAIL PROTECTED]"
> > > >
> > > >
> > > >
> > > >
> > > Hello again.
> > > I tried it and it emptied /tmp but I still can´t start KDE.
> > > It says:
> > > startkde: Could not start ksmserver check your installation
> > > Error: can´t contact kdeinit
> > > /:write failed, filesystem full can´t create /tmp/mcop-gaf (no space
> > > left on device)
> > > ..pid 627 (artsshell), uid 1002 inumber 211973 on /:
> > > filesystem full
> > > What to do??
> > > Hope you can give me some other clues.
> > > gaf
> >
> > Do your self a favor and read the handbook.
> >
> > Probably the easy way for you is to reinstall, dividing disk the right
> > way.
> >
> >
>
> rm -rf /tmp
>
> mkdir /home/tmp
>
> ln -s /home/tmp /tmp
>
> restart kde. then over time you will try windowmaker and never use kde
> again.
>
> m
>
>

If I am going to give such an ugly answer to his problem,
I might as well be "more correct".

After running those commands above run two more.

chmod 777 /home/tmp
chmod +t /home/tmp

now everyone can use it "safely".

m

>
>
> > --
> > IOnut
> > Unregistered ;) FreeBSD user
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> >
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


routing, 2 nics, and a default gateways

2004-02-12 Thread SixthSense Server Admin
Hi list,

I need help on this problem:

I have 2 nics. The first has about 30 ips assigned to it and working
correctly. The other was a backup nic for the ISP backup network, but its
now I was asked to assign ips and a default gateway specification to
it,because we ran out of usable ips on the 1st nic, so we have a new
netblock ready for assignment. The trouble is, I don't know how to this
remotely without cutting the internet access from this server. I thought
on adding the ips to the 2nd nic (about 60 of them), but I don't know how
I can make the default route for this nic to work. As far as i know, as
soon as I type route add default gateway-of-2nd-nick ,the internet
connection will be dropped. I don't know, have never tried this kind of
setup. Any help would be appreciated!




-- 
http://www.6s-gaming.com - your online store!

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


Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 23:04:39 +0100
burza <[EMAIL PROTECTED]> wrote:

> > Today I tried to install a new browser and I got the information
> > that my
> > filesystem is full.  When I tried to start KDE I got the message
> > that
> > /tmp is full.
> 
> Hello!
> there are some useful tools for changing size of partition.
> Look for "FIPS" and remember to backup your data.
> Tools that dynamically change partitions, can make some damage.

AFAIK, shrinkfs ain't in yet.

> Next time you'll be installing OS, remember to distribute some more
> disk space for dirs like /var /tmp /usr.

Agee :)

-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 22:50:50 +0100
gaf <[EMAIL PROTECTED]> wrote:

> Ion-Mihai Tetcu wrote:
> 
> >On Thu, 12 Feb 2004 22:04:53 +0100
> >gaf <[EMAIL PROTECTED]> wrote:
> >
> >  
> >
> >>I have read the handbook but have been following (It´s easier to have a 
> >>book in front of you when installing).  The Complete FreeBSD  4th 
> >>edition when installing, where Greg Lehey recommends the partitioning  
> >>that I have running right now so.
> >>
> >>
> >
> >HE DOES NOT.
> >
> > >/ 4G
> > >swap  800M
> > >/home   35G
> >
> >NOP. No way.
> >
> >What he says and you forgot to do is something about sym-linking /tmp to
> >/var/tmp, if memory serves. If you want to extent this to have symlinks like this:
> >/tmp --> /home/tmp
> >/usr --> /home/usr
> >/var --> /home/var
> >you can. But there is no reason to do so.
> >In fact the default setup is just the other way:
> >/home --> /usr/home
> >Please refer to hier(7) to see layout of FreeBSD.
> > 
> >Grog's book was for a few years the only one available and it's my personal
> >favorite. Nevertheless the FreeBSD handbook is the official reference.
> >
> >>as a newbie how should I know which one is the most accurate?  Now I 
> >>know you ll say the handbook, so from now on I will follow the handbook.
> >
> >Read Grog's book, it makes a few times every cent you have spent on it.
> >
> >>Thanks for answering
> >>gaf
> >  
> >
> I have the book in front of me.sorry  but there are nothing said 
> about symlinks.

Well, he must have change it in this version. Sorry.

> It says:
> " Creating the file systems
> With these considerations in mind, we´ll divide up the disk in the 
> following manner:
> 4G for the root file system, which includes /usr and /var
> 512M swap space
> The rest of the disk for /home file system"

Personally I don't agree with this kind of setup for many reasons. But
think about how *you* will be using the disk space before following
anyone's suggestion. And think about how large is your disk vs. the disk
in the examples you get.

> Next is "Selecting distributions"
> I can´t figure out any other way to decipher thisdo you???

For now just do what others suggested and symlink /tmp. eventually do
the same with /usr/ports/distfiles, if you have a lot of them. Mine is
like this (see my other post also):

[EMAIL PROTECTED]> /home/itetcu [0:11:34] 0
 # du -hs /home/ftp/pub/FreeBSD/distfiles/
 12G/home/ftp/pub/FreeBSD/distfiles/
[EMAIL PROTECTED]> /home/itetcu [0:11:39] 0 
# ll /usr/ports/distfiles
lrwxr-xr-x  1 root  wheel  32 Jan  9 00:46 /usr/ports/distfiles -> 
/home/ftp/pub/FreeBSD/distfiles/


-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: /tmp full (newbie)

2004-02-12 Thread burza
Today I tried to install a new browser and I got the information
that my
filesystem is full.  When I tried to start KDE I got the message
that
/tmp is full.
Hello!
there are some useful tools for changing size of partition. Look for 
"FIPS" and remember to backup your data.
Tools that dynamically change partitions, can make some damage.
Next time you'll be installing OS, remember to distribute some more disk 
space for dirs like /var /tmp /usr.

__
There are 10 kinds of people
those who understand binary
and those who don't.
Greetz
Grzegorz Burzynski
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Crontab question

2004-02-12 Thread Darryl Hoar
Greetings,
I am running 5.1-release.
I have installed rsync from ports, and want to use it to archive.
I want to add an entry to cron so it runs nightly.  I didn't quite
understand the man page when it came to arguments to the 
command you are running.

ie
0 0 1 * * *  /usr/local/bin/rsync -av /working/ /backup/working 

I also want the output of the rsync command to go to a named file.

Any help greatly appreciated.

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


Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 22:38:29 +0100
Lauri Watts <[EMAIL PROTECTED]> wrote:

> On Thursday 12 February 2004 22.05, Jez Hancock wrote:
> > On Thu, Feb 12, 2004 at 09:44:27PM +0100, gaf wrote:
> > > Thank you for answering. I?d hoped not to reinstall but.
> > > Partitioning is no problem, I?ve installed all versions from 4.8
> > > to5.2 on my old computer just for training and trying.
> >
> > The problem with the current scheme is you have only 4Gb or so for
> > everything apart from /home - I don't have KDE / X installed, but
> > I'm fairly sure KDE on it's own would eat up 3-4Gb of space without
> > too much problem.  If you reinstalled I'd say assign 20Gb to /usr if
> > you're going to use KDE.
> >
> 
> This is way *way* overestimated.  du -sh on my /usr/local shows 3.6Gb


On my ``development'' desktop:
[EMAIL PROTECTED]> /home/itetcu [23:51:14] 1 
 # du -hs /usr
3.3G/usr

[EMAIL PROTECTED]> /home/itetcu [23:57:22] 0
  # du -hs /usr/local
1.2G/usr/local


But with distfiles linked on /home/ftp/... on a separate partition.

for the OP reference, my layout is:

[EMAIL PROTECTED]> /home/itetcu [23:55:28] 0
   
 # df -h
Filesystem  SizeUsedAvail Capacity  Mounted on
/dev/ad0s3a   248M   83M   145M36%  /
devfs 1.0K 1.0K  0B100%  /dev
/dev/ad0s2d75G65G 4.1G 94%  /home
/dev/ad0s3f 248M  147M  82M  64%  /tmp
/dev/ad0s3e8.2G   3.3G4.3G 43%   /usr
/dev/ad0s3d   989M   423M  487M46%  /var



-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: /tmp full (newbie)

2004-02-12 Thread gaf
Ion-Mihai Tetcu wrote:

On Thu, 12 Feb 2004 22:04:53 +0100
gaf <[EMAIL PROTECTED]> wrote:
 

I have read the handbook but have been following (It´s easier to have a 
book in front of you when installing).  The Complete FreeBSD  4th 
edition when installing, where Greg Lehey recommends the partitioning  
that I have running right now so.
   

HE DOES NOT.

>/ 4G
>swap  800M
>/home   35G
NOP. No way.

What he says and you forgot to do is something about sym-linking /tmp to
/var/tmp, if memory serves. If you want to extent this to have symlinks like this:
/tmp --> /home/tmp
/usr --> /home/usr
/var --> /home/var
you can. But there is no reason to do so.
In fact the default setup is just the other way:
/home --> /usr/home
Please refer to hier(7) to see layout of FreeBSD.
Grog's book was for a few years the only one available and it's my personal
favorite. Nevertheless the FreeBSD handbook is the official reference.
 

as a newbie how should I know which one is the most accurate?  Now I 
know you ll say the handbook, so from now on I will follow the handbook.
   

Read Grog's book, it makes a few times every cent you have spent on it.

 

Thanks for answering
gaf
   



 

I have the book in front of me.sorry  but there are nothing said 
about symlinks.
It says:
" Creating the file systems
With these considerations in mind, we´ll divide up the disk in the 
following manner:
4G for the root file system, which includes /usr and /var
512M swap space
The rest of the disk for /home file system"

Next is "Selecting distributions"
I can´t figure out any other way to decipher thisdo you???
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread Lauri Watts
On Thursday 12 February 2004 22.05, Jez Hancock wrote:
> On Thu, Feb 12, 2004 at 09:44:27PM +0100, gaf wrote:
> > Thank you for answering. I?d hoped not to reinstall but.
> > Partitioning is no problem, I?ve installed all versions from 4.8 to5.2
> > on my old computer just for training and trying.
>
> The problem with the current scheme is you have only 4Gb or so for
> everything apart from /home - I don't have KDE / X installed, but I'm
> fairly sure KDE on it's own would eat up 3-4Gb of space without too much
> problem.  If you reinstalled I'd say assign 20Gb to /usr if you're going
> to use KDE.
>

This is way *way* overestimated.  du -sh on my /usr/local shows 3.6Gb - that's 
with *two* installations of KDE (one in it's own prefix, still in /usr/local 
though), an unpacked set of sources for it, a jdk (hey, they're getting 
pretty big these days), and a fairly full install of GNOME to boot.   Plus 
various other random things.  I would hate to see how much you'd have to 
install to fill up 20 Gb of /usr, especially with a separate /home.On the 
other hand, I can find a million ways to fill up as much /home as I'm given, 
and I frequently do (fill it up, that is)

With some judicious cleaning up of the cruft in /usr/ports/* (try portsclean, 
part of the portupgrade suited), possibly nuking /usr/obj (although you'll 
want space back for that if you build world again) and some investigation 
into maybe rolling over logs more often, and emptying out /tmp,  there's no 
pressing reason the OP should need to repartiiton and reinstall, especially 
not for the sake of either KDE or GNOME.  

I think for most people the installers auto defaults are not pretty workable, 
and that merging the suggested file systems is probably not advisable until 
you have more experience with the system and know what your pattern of usage 
really is.

Regards,
-- 
Lauri Watts
KDE Documentation: http://i18n.kde.org/doc/
KDE on FreeBSD: http://freebsd.kde.org/


pgp0.pgp
Description: signature


RE: Re: Install on 486 with floppy reboots after mfsroot

2004-02-12 Thread matthew




On Thu, 12 Feb 2004, Brent Bowman wrote:

>
> Oh boy, I guess that I've either got to find more RAM, find an
> older/stripped down version of FreeBSD, or give up.
>

Well, if i was you i would get on the phone and call every
household that you think has a basement full of junk.
They will more than likely have an old computer down
there you can take the ram from.

> I looked around a little, how would I find a skinnier version
> of FreeBSD for this old box.

Did you try 3.5-RELEASE and cvsup to stable? I still run 3.4 and 3.5.

>
> Also, does anybody have any ideas (besides ebay) on how I would
> find some really old 60ns SIMMS for that box for cheap?
>
>

If you were standing right next to me I would throw some at you :P
Are you in some strange region where it is difficult to find old ram?

I am sure a second hand pc shop will gladly give you 32mb ram (come
in pairs) for 5 bucks. 10 at most.

m

> Thanks so far, you've been quite responsive.
>
> Brent
>
>
> >--- Original Message ---
> >From: Bob Johnson <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Date: 2/12/04 11:43:38 AM
> >
> Warren Block wrote:
> >>On Thu, 12 Feb 2004, Brent Bowman wrote:
> >>
>  I get to the end of step  "2.3.1.1 Booting for the i386™"
>  where it
>  tells to boot the kernel and no matter what I do, it just
> reboots the
>  computer!  Therefore it looses whatever it tried to put
> in memory and
>  starts over again.How can I get it to go to the kernel
> setup?
> 
>  My Hardware:
>  IBM PS/Valuepoint 486  33MHz
>  8 MB RAM
> >>
> >> ^^
> >>
> >> This is likely the problem.  The install needs more than 8M,
> somewhere
> >> between 12 and 16M last I heard.
> >>
> >> If it helps, I have a Valuepoint 486 DX2/66 with 32M of RAM
> that runs
> >> 4.8 flawlessly.
> >>
> >
> >I've got 4.9 running on a 486/33 with 20 MB of RAM, so if you
> can scrape
> >up that much it should be sufficient.  It works fine as a personal
> mail
> >server with Courier, except that the IMAP folders containing
> over 10,000
> >messages cause huge amounts of thrashing when I open them.
> Takes
> >several minutes.
> >
> >It also takes nearly three days to build 4.9 from source on
> a 486/33...
> >
> >- Bob
> >
> >
> >
> >
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Spimware infection

2004-02-12 Thread Kris Kennaway
On Thu, Feb 12, 2004 at 03:25:36PM -0500, Wallace Aiken wrote:

> Hi, I'm using two of your firewalls...they work great. But all of a
> sudden they're showing signs of "Spimmware" infection, a kind of
> spyware.

> I work for Kent State university and their network scan came up with
> the IPs and host names of my firewalls, as well as some other hosts
> on my subnet that were not behind the firewall...can you give me any
> advice?

Please wrap your lines at 70 characters so you emails may be easily
read.

You'll have to give us some more information, such as what evidence
you have that there is a problem with your FreeBSD machines, and
exactly what you think that problem is.

Kris


pgp0.pgp
Description: PGP signature


RE: Re: Install on 486 with floppy reboots after mfsroot

2004-02-12 Thread Brent Bowman

Oh boy, I guess that I've either got to find more RAM, find an
older/stripped down version of FreeBSD, or give up.

I looked around a little, how would I find a skinnier version
of FreeBSD for this old box.  

Also, does anybody have any ideas (besides ebay) on how I would
find some really old 60ns SIMMS for that box for cheap?


Thanks so far, you've been quite responsive.

Brent


>--- Original Message ---
>From: Bob Johnson <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: 2/12/04 11:43:38 AM
>
Warren Block wrote:
>>On Thu, 12 Feb 2004, Brent Bowman wrote:
>> 
 I get to the end of step  "2.3.1.1 Booting for the i386™"
 where it
 tells to boot the kernel and no matter what I do, it just
reboots the
 computer!  Therefore it looses whatever it tried to put
in memory and
 starts over again.How can I get it to go to the kernel
setup?

 My Hardware:
 IBM PS/Valuepoint 486  33MHz
 8 MB RAM
>> 
>> ^^
>> 
>> This is likely the problem.  The install needs more than 8M,
somewhere
>> between 12 and 16M last I heard.
>> 
>> If it helps, I have a Valuepoint 486 DX2/66 with 32M of RAM
that runs
>> 4.8 flawlessly.
>> 
>
>I've got 4.9 running on a 486/33 with 20 MB of RAM, so if you
can scrape 
>up that much it should be sufficient.  It works fine as a personal
mail 
>server with Courier, except that the IMAP folders containing
over 10,000 
>messages cause huge amounts of thrashing when I open them. 
Takes 
>several minutes.
>
>It also takes nearly three days to build 4.9 from source on
a 486/33...
>
>- Bob
>
>
>
>


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


Re: help???????

2004-02-12 Thread Adam Bozanich


On Fri, 13 Feb 2004, Umair Hussain wrote:

> can ne1 help me out here i need to send messages to my workstations
> on my windows network ofcourse im using a freebsd server so plz can ne 1
> tell me wats the command for that..i need an altnerative for netsend(win2k)
> in freebsd.
>
>

man smbclient


   -M NetBIOS name
  This options allows you to send messages, using  the  "WinPopup"
  protocol,  to another computer. Once a connection is established
  you then type your message, pressing ^D (control-D) to end.

  If the receiving computer is  running  WinPopup  the  user  will
  receive the message and probably a beep. If they are not running
  WinPopup the message will be lost, and  no  error  message  will
  occur.

  The  message  is  also automatically truncated if the message is
  over 1600 bytes, as this is the limit of the protocol.


Is this what you want?

-Adam

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


Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 22:04:53 +0100
gaf <[EMAIL PROTECTED]> wrote:

> I have read the handbook but have been following (It´s easier to have a 
> book in front of you when installing).  The Complete FreeBSD  4th 
> edition when installing, where Greg Lehey recommends the partitioning  
> that I have running right now so.

HE DOES NOT.

 >/ 4G
 >swap  800M
 >/home   35G

NOP. No way.

What he says and you forgot to do is something about sym-linking /tmp to
/var/tmp, if memory serves. If you want to extent this to have symlinks like this:
/tmp --> /home/tmp
/usr --> /home/usr
/var --> /home/var
you can. But there is no reason to do so.
In fact the default setup is just the other way:
/home --> /usr/home
Please refer to hier(7) to see layout of FreeBSD.
 
Grog's book was for a few years the only one available and it's my personal
favorite. Nevertheless the FreeBSD handbook is the official reference.

> as a newbie how should I know which one is the most accurate?  Now I 
> know you ll say the handbook, so from now on I will follow the handbook.

Read Grog's book, it makes a few times every cent you have spent on it.

> Thanks for answering
> gaf


-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: Spimware infection

2004-02-12 Thread Jason Stewart
On 12/02/04 15:25 -0500, Wallace Aiken wrote:
> Hi, I'm using two of your firewalls...they work great. But all of a sudden they're 
> showing signs of "Spimmware" infection, a kind of spyware. 
> 
> I work for Kent State university and their network scan came up with the IPs and 
> host names of my firewalls, as well as some other hosts on my subnet that were not 
> behind the firewall...can you give me any advice?
> 
What is spimware? I search google for the term and get 0 results.
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=utf-8&safe=off&q=spimware&sa=N&tab=gw.

How do you discover that the firewalls have been compromised?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: hostname and dhcp

2004-02-12 Thread Lowell Gilbert
"Evan Dower" <[EMAIL PROTECTED]> writes:

> Hmm... That is what I expected it to do, but when I tried it, I ended
> up with an empty hostname. Of course, I don't remember now if I
> commented out that line or just set it to empty. Actually, looking at
> /etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf
> it gets set to the empty string in the default, so it shouldn't
> matter. Anyway, like I said, I tried that and just ended up with an
> empty hostname. Perhaps that indicates something is wrong with my
> configuration...

Well, I didn't *try* it, I just read through dhclient-script.
I'll try to take a closer look.

> Thanks very much for the help (any other ideas?),

You could always just create you *own* script (using the
dhclient-exit-hooks script, ideally) which sets hostname on the new
name unconditionally.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread matthew

On Thu, 12 Feb 2004, Ion-Mihai Tetcu wrote:

> On Thu, 12 Feb 2004 21:35:08 +0100
> gaf <[EMAIL PROTECTED]> wrote:
>
> > JJB wrote:
> >
> > >Add this statement to /etc/rc.conf and reboot your system.
> > >
> > >
> > >clear_tmp_enable="YES"  # clear /tmp directory on boot
> > >
> > >
> > >-Original Message-
> > >From: [EMAIL PROTECTED]
> > >[mailto:[EMAIL PROTECTED] Behalf Of gaf
> > >Sent: Thursday, February 12, 2004 2:26 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: /tmp full (newbie)
> > >
> > >Hello.
> > >Im a newbie to unix and FreeBSD. I have 5.2 installed. When
> > >installing I
> > >followed the advice in The Complete FreeBSD and made the following
> > >partitions:
> > >/ 4G
> > >swap  800M
> > >/home   35G
> > > I have KDE 3.2  installed I have done cvsup on src and ports new
> > >kernel
> > >etc etc.
> > >Today I tried to install a new browser and I got the information
> > >that my
> > >filesystem is full.  When I tried to start KDE I got the message
> > >that
> > >/tmp is full. I would really apprecite some help. What to do?? Can I
> > >give you some other info and if so what and how???
> > >Many thanks Gaf
> > >___
> > >[EMAIL PROTECTED] mailing list
> > >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > >To unsubscribe, send any mail to
> > >"[EMAIL PROTECTED]"
> > >
> > >
> > >
> > >
> > Hello again.
> > I tried it and it emptied /tmp but I still can´t start KDE.
> > It says:
> > startkde: Could not start ksmserver check your installation
> > Error: can´t contact kdeinit
> > /:write failed, filesystem full can´t create /tmp/mcop-gaf (no space
> > left on device)
> > ..pid 627 (artsshell), uid 1002 inumber 211973 on /:
> > filesystem full
> > What to do??
> > Hope you can give me some other clues.
> > gaf
>
> Do your self a favor and read the handbook.
>
> Probably the easy way for you is to reinstall, dividing disk the right
> way.
>
>

rm -rf /tmp

mkdir /home/tmp

ln -s /home/tmp /tmp

restart kde. then over time you will try windowmaker and never use kde
again.

m




> --
> IOnut
> Unregistered ;) FreeBSD user
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


help???????

2004-02-12 Thread Umair Hussain
can ne1 help me out here i need to send messages to my workstations 
on my windows network ofcourse im using a freebsd server so plz can ne 1 
tell me wats the command for that..i need an altnerative for netsend(win2k) 
in freebsd.

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Re: Problem with ssh

2004-02-12 Thread Nathan Kinkade
On Thu, Feb 12, 2004 at 03:12:29PM -0500, Clint Gilders wrote:
> Nathan Kinkade wrote:
>  > Uncomment the following line /etc/ssh/sshd_config and HUP sshd:
> >
> >#PasswordAuthentication yes
> 
> You also want to set that to 'no'
> 
> PasswordAuthentication no
> 
> -- 

Oppps.  Yes, forgot to add that minor detail. :)

Thanks,
Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: /tmp full (newbie)

2004-02-12 Thread Jez Hancock
On Thu, Feb 12, 2004 at 09:44:27PM +0100, gaf wrote:
> Thank you for answering. I?d hoped not to reinstall but. 
> Partitioning is no problem, I?ve installed all versions from 4.8 to5.2  
> on my old computer just for training and trying.

The problem with the current scheme is you have only 4Gb or so for
everything apart from /home - I don't have KDE / X installed, but I'm
fairly sure KDE on it's own would eat up 3-4Gb of space without too much
problem.  If you reinstalled I'd say assign 20Gb to /usr if you're going
to use KDE.

Another alternative might be to get rid of KDE and try something more
economic - like blackbox or wm - although if you're not too comfortable
with the shell those might not be the best for you.

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - Another FreeBSD Diary
http://ipfwstats.sf.net/- ipfw peruser traffic logging
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread gaf
I have read the handbook but have been following (It´s easier to have a 
book in front of you when installing).  The Complete FreeBSD  4th 
edition when installing, where Greg Lehey recommends the partitioning  
that I have running right now so.
as a newbie how should I know which one is the most accurate?  Now I 
know you ll say the handbook, so from now on I will follow the handbook.
Thanks for answering
gaf

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


Re: stupid packages question

2004-02-12 Thread Rob Ellis
On Thu, Feb 12, 2004 at 03:46:58PM -0500, Duane Winner wrote:
> Hello,
> 
> I'm sure there is an easy answer to this that I just haven't been able
> to gleen from reading stuff:
> 
> How can I make packages for all the depencies of a package that I'm
> trying to create in one fell swoop?
> 

'make package-recursive'

the default ports make targets are documented in the comments in 
/usr/ports/Mk/bsd.port.mk

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


Re: Source Code

2004-02-12 Thread Ion-Mihai Tetcu
[ I like it to much ;) not to cc back on questions@ ]

On Thu, 12 Feb 2004 12:36:54 -0800
"Lord, Bruce J" <[EMAIL PROTECTED]> wrote:

> FreeBSD Support:
> 
> Thank you for everything!
> 
> Microsoft was, and is, never of this service quality.
> 
> You are the great pubahs,
> Bruce Lord

As a side note, about a month ago I've needed to compare some files on
an xp. It took about 10 minutes find find something to do it. And even
now I don't know the difference between the two or how they actually
work.


> 
> 
> -Original Message-
> From: Ion-Mihai Tetcu [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 12, 2004 12:04 PM
> To: Kevin D. Kinsey, DaleCo, S.P.
> Cc: Lord, Bruce J
> Subject: Re: Source Code
> 
> 
> On Thu, 12 Feb 2004 13:22:14 -0600
> "Kevin D. Kinsey, DaleCo, S.P." <[EMAIL PROTECTED]> wrote:
> 
> > -Original Message-
> > 
> > >From: Kevin D. Kinsey, DaleCo, S.P. [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, February 11, 2004 3:24 PM
> > >To: Lord, Bruce J
> > >Subject: Re: Source Code
> > >
> > >
> > >Lord, Bruce J wrote:
> > >
> > >  
> > >
> > >>To Whom It May Concern:
> > >>
> > >>I purchased the book "TCP/IP Illustrated, Vol 2: The
> > >Implementation" >by
> > >>Gary Wright and W. Stevens. This book only partially shows the
> > >source >code for Mbufs: Memory Buffers.  Is there some way that I
> > >can get that >source code without loading the BSD i386
> > >installation?
> > >
> > >The FreeBSD project has kept its source code
> > >in CVS since the beginning.  You might try
> > >searching the CVS tree --- a web interface
> > >exists at the project's site, www.freebsd.org.
> > >
> >  >Lord, Bruce J wrote:
> > 
> > >Wow!  I did not expect such a quick reply.
> > >
> > >Thanks!
> > >Bruce
> > 
> > 
> > That's the FreeBSD community response
> > (as long as the message meets some standards,
> > anyhow...).
> > 
> > The real 'kudos' go to Ion-Mihail, I see he
> > went to the trouble to find you the exact
> > link... ;-)
> 
> Well, 
> 
> I have some bookmarks, just in case ;)
> 
> src/contrib/smbfs/lib/smb/mbuf.c
> src/share/man/man9/mbuf.9
> src/sys/contrib/dev/acpica/dmbuffer.c
> src/sys/i4b/include/i4b_mbuf.h
> src/sys/i4b/layer2/i4b_mbuf.c
> src/sys/kern/subr_mbuf.c
> src/sys/kern/uipc_mbuf.c
> src/sys/kern/uipc_mbuf2.c
> src/sys/netatm/uni/unisig_mbuf.c src/sys/netatm/uni/unisig_mbuf.h
> src/sys/netipsec/ipsec_mbuf.c src/sys/sys/mbuf.h
> src/usr.bin/netstat/mbuf.c src/usr.bin/systat/mbufs.c
> src/usr.sbin/ppp/mbuf.c src/usr.sbin/ppp/mbuf.h just add one of this
> to the link: http://www.freebsd.org/cgi/cvsweb.cgi/
> 
> 
> At:
> http://www.freebsd.org/cgi/man.cgi?sektion=9
> 
> try:
> bus_dmamap_load_mbuf
> mb_put_mbuf
> mbuf
> md_get_mbuf
> 
> 
> -- 
> IOnut
> Unregistered ;) FreeBSD user
> 
> 
> 
> !DSPAM:402be573177352980717666!
> 
> 


-- 
IOnut
Unregistered ;) FreeBSD user

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


Re: Problem with ssh

2004-02-12 Thread Quintin Riis
man sshd_config

		Quintin

Dragoncrest wrote:
Hi again everyone.  Ok, this issue just popped up today on a different
machine, but it's still bugging me either way.  My home mail server
(freebsd 4.8) has SSH available to the internet so I can get into the
box from work if need be.  That is the only port open as it's a fetching
mail server so port 25 isn't available to the rest of the world.  Nor is
110.  What I just discovered today is that my sshd is allowing auth by
public key OR password.  I don't want it to auth by password.  JUST
public key.  So in other words if you don't already have the public key
file, well, it sucks being you because you won't get connected.
Anyone know how to do this?  Or would this question be better handled on
an SSH mailing list?  If so, which list is best and how do I sign up? 
Much apreciated on the info.  Thanks.

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


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


portversion error after cvsup

2004-02-12 Thread Petre Bandac
after I cvsup-ed and portsdb -Uu && pkgdb -Fvu, portversion | grep "<" shows 
me almost all the ports I have installed (on a closer look, almost all the 
ports shown erroneously were portupgraded once)

has anyone had this type of problem and how can it be solved ?

thanks,

petre

-- 
Login: petreName: Petre Bandac
Directory: /home/petre  Shell: /usr/local/bin/zsh
On since Thu Dec 11 07:34 (EET) on ttyv0, idle 16 days 23:16 (messages off)
Last login Thu Feb 12 08:48 (EET) on ttypb from ns.rdsbv.ro
No Mail.
Plan:

!Hasta la Victoria Siempre!

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


Re: /tmp full (newbie)

2004-02-12 Thread Ion-Mihai Tetcu
On Thu, 12 Feb 2004 21:35:08 +0100
gaf <[EMAIL PROTECTED]> wrote:

> JJB wrote:
> 
> >Add this statement to /etc/rc.conf and reboot your system.
> >
> >
> >clear_tmp_enable="YES"  # clear /tmp directory on boot
> >
> >
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] Behalf Of gaf
> >Sent: Thursday, February 12, 2004 2:26 PM
> >To: [EMAIL PROTECTED]
> >Subject: /tmp full (newbie)
> >
> >Hello.
> >Im a newbie to unix and FreeBSD. I have 5.2 installed. When
> >installing I
> >followed the advice in The Complete FreeBSD and made the following
> >partitions:
> >/ 4G
> >swap  800M
> >/home   35G
> > I have KDE 3.2  installed I have done cvsup on src and ports new
> >kernel
> >etc etc.
> >Today I tried to install a new browser and I got the information
> >that my
> >filesystem is full.  When I tried to start KDE I got the message
> >that
> >/tmp is full. I would really apprecite some help. What to do?? Can I
> >give you some other info and if so what and how???
> >Many thanks Gaf
> >___
> >[EMAIL PROTECTED] mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to
> >"[EMAIL PROTECTED]"
> >
> >
> >  
> >
> Hello again.
> I tried it and it emptied /tmp but I still can´t start KDE.
> It says:
> startkde: Could not start ksmserver check your installation
> Error: can´t contact kdeinit
> /:write failed, filesystem full can´t create /tmp/mcop-gaf (no space 
> left on device)
> ..pid 627 (artsshell), uid 1002 inumber 211973 on /: 
> filesystem full
> What to do??
> Hope you can give me some other clues.
> gaf

Do your self a favor and read the handbook.

Probably the easy way for you is to reinstall, dividing disk the right
way.


-- 
IOnut
Unregistered ;) FreeBSD user

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


nasm, ld, libc, and **environ

2004-02-12 Thread Adam Bozanich

Hi all.  I am trying to learn asm with NASM on a FreeBSD system.  I really
need to debug my programs while I learn, so I want to use printf.  This is
what I am using to assemble and link:

nasm -f elf use_printf.asm
ld -o use_printf use_printf.asm -lc

but then when I run the program:

$./use_printf
/usr/libexec/ld-elf.so.1: /lib/libc.so.5: Undefined symbol "environ"

If I try to use static linking, I get this:

$ld -static -o use_printf use_printf.asm -lc
/usr/lib/libc.a(getenv.o): In function `getenv':
getenv.o(.text+0x19): undefined reference to `environ'
getenv.o(.text+0x29): undefined reference to `environ'
getenv.o(.text+0x63): undefined reference to `environ'
/usr/lib/libc.a(getenv.o): In function `__findenv':
getenv.o(.text+0xd5): undefined reference to `environ'
getenv.o(.text+0xe2): undefined reference to `environ'
/usr/lib/libc.a(getenv.o)(.text+0x113): more undefined references to `environ' follow
/usr/lib/libc.a(getprogname.o): In function `_getprogname':
getprogname.o(.text+0x4): undefined reference to `__progname'

Can somebody see where I am going wrong?  This is kindof holding me back.  I
added the 'extern environ' and 'extern __progname' beause I get this otherwise:
(when NOT using -static)

/usr/lib/libc.so: undefined reference to `environ'
/usr/lib/libc.so: undefined reference to `__progname'

Here's what I have:


;; BEGIN CODE 

extern  printf
extern  environ
extern  __progname

section .data
mesgdb   'the number is %d\n',0
mesglen equ  $-mesg

errormesg   db   'libc error',0ah,0
errormesglenequ  $-errormesg

newline db  10
number  dw  0x10

kernel:
   int 80h
   ret

align 4
section .text
global _start
_start:

; call printf from libc
push dword  number
push dword  mesg
call printf

; error if eax < 1  ( we should have wrote some chars )
cmp eax , 0x1
jl  .error

; use write() system call to print message
pushdword   mesglen
pushdword   mesg
pushdword   0x1   ; stdout
mov eax   , 0x4   ; 4 == write system call
callkernel

; output a newline
pushdword   1
pushdword   newline
pushdword   0x1
mov eax   , 0x4
callkernel


mov  eax  , 0x1 ; exit syscall number
push dword  0x0 ; exit status
call kernel

.error:

push dword  errormesglen
push dword  errormesg
push dword  0x1
mov eax , 0x4
callkernel

mov eax  , 0x1
pushdword  0xff
callkernel


  END CODE ;;;

Any suggestions will be greatly appreciated.  Thanks

-Adam


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


stupid packages question

2004-02-12 Thread Duane Winner
Hello,

I'm sure there is an easy answer to this that I just haven't been able
to gleen from reading stuff:

How can I make packages for all the depencies of a package that I'm
trying to create in one fell swoop?

Example:
If I go into /usr/ports/sysutils/portupgrade and type
"make package"
it builds a nice package that I can send to other machines to install,
but then of course I will need to install all the depencies first, which
means I have to go back to my build box, find all the sources and "make
package" on all of them. Kinda tedious. Is there an easier way?

I've read about "make package" in about 5 different docs/books, but none
of the mention this problem.

Thanks for any info.

-DW


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


Re: /tmp full (newbie)

2004-02-12 Thread gaf
Jez Hancock wrote:

On Thu, Feb 12, 2004 at 08:57:31PM +0100, gaf wrote:
 

Jez Hancock wrote:
   

On Thu, Feb 12, 2004 at 08:26:24PM +0100, gaf wrote:
 

Today I tried to install a new browser and I got the information that my 
filesystem is full.  When I tried to start KDE I got the message that 
/tmp is full. I would really apprecite some help. What to do?? Can I 
give you some other info and if so what and how???
   

Yes please - paste the output from df and mount.

 

df -h gave:
Filesystem sizeused  avail capacity   mounted on
/dev/ad1s1a   3,9G 3,8G  -234,3M 106% /
devfs 1,0K 1,0K  0B  100% /dev
/dev/ad1s1d   37G  22M   34G 0%   /home
   

It might be best if you reinstalled the OS from scratch and ensure you
assign the disk space more practically.  Presently you have a massive
proportion of your disk space assigned to /home and only a small
proportion assigned to / - you can get away with a /home partition of
only 1Gb, but a tiny / partition will make using the OS difficult.
A more suitable fs layout might be:

Filesystem  SizeMounted on
/dev/ad1s1a 500MB   /
/dev/ad1s1e 500MB   /tmp
/dev/ad1s1f 10-20GB /usr
with the remaining space going to /var and /home.  

You don't have to create separate partitions for each mount point, but
it speeds things up a little and saves disk space being filled up and
causing a denial of service...
Better bet if you don't feel confident with partitioning might be to let
the installer choose the partition sizes for you initially - select 'a' in the
fdisk screen (iirc) and the installer automatically selects the partition sizes
it thinks are best given the size of the hdd.
At the end of the day the best way to learn is to install, reinstall,
reinstall and reinstall again :P
As always read, reread, etc the handbook section on partitioning:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html

Good luck!

 

Thank you for answering. I´d hoped not to reinstall but. 
Partitioning is no problem, I´ve installed all versions from 4.8 to5.2  
on my old computer just for training and trying.
Thanks again
gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: root access to a custom .sh defined as shell;

2004-02-12 Thread Jerry McAllister
> 
> Am running a free server of shells in freeBSD 4.9, the amount of
> >people solicitading new accounts has been too much that i can not
> >handle them by me, so i wrote this .sh program to do it for me, my
> >code its secure as much i can tell, i understand the risk involve and
> >decide to do it anyways, soo i create a new group call 'shellauto',
> >add new user 'newuser' promote to 'wheel', then i modify etc/shells to
> >accept my new shell, so when some body logs to my server as 'newuser'
> >the server run my .sh (freeshell.sh), everything works goodl but my
> >question is ...how can i give my script root previlages ? so can
> >addusers without me? also if there is a way to type a command directly
> >to shell (bash) so i can define quotas of 1mb, and background procees
> >to 3?? that way i can include those commands to my freeshell.sh
> >...thanks

You are not supposed to be able to make a shell script have SUID root
ability.So, you either need to write a wrapper in C that calls
it or just rewrite the whole thing in C.

jerry

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


Re: /tmp full (newbie)

2004-02-12 Thread Jez Hancock
On Thu, Feb 12, 2004 at 08:57:31PM +0100, gaf wrote:
> Jez Hancock wrote:
> >On Thu, Feb 12, 2004 at 08:26:24PM +0100, gaf wrote:
> >>Today I tried to install a new browser and I got the information that my 
> >>filesystem is full.  When I tried to start KDE I got the message that 
> >>/tmp is full. I would really apprecite some help. What to do?? Can I 
> >>give you some other info and if so what and how???
> >
> >Yes please - paste the output from df and mount.
> >
> df -h gave:
> Filesystem sizeused  avail capacity   mounted on
> /dev/ad1s1a   3,9G 3,8G  -234,3M 106% /
> devfs 1,0K 1,0K  0B  100% /dev
> /dev/ad1s1d   37G  22M   34G 0%   /home

It might be best if you reinstalled the OS from scratch and ensure you
assign the disk space more practically.  Presently you have a massive
proportion of your disk space assigned to /home and only a small
proportion assigned to / - you can get away with a /home partition of
only 1Gb, but a tiny / partition will make using the OS difficult.

A more suitable fs layout might be:

Filesystem  SizeMounted on
/dev/ad1s1a 500MB   /
/dev/ad1s1e 500MB   /tmp
/dev/ad1s1f 10-20GB /usr

with the remaining space going to /var and /home.  

You don't have to create separate partitions for each mount point, but
it speeds things up a little and saves disk space being filled up and
causing a denial of service...

Better bet if you don't feel confident with partitioning might be to let
the installer choose the partition sizes for you initially - select 'a' in the
fdisk screen (iirc) and the installer automatically selects the partition sizes
it thinks are best given the size of the hdd.

At the end of the day the best way to learn is to install, reinstall,
reinstall and reinstall again :P

As always read, reread, etc the handbook section on partitioning:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html

Good luck!

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - Another FreeBSD Diary
http://ipfwstats.sf.net/- ipfw peruser traffic logging
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread gaf
JJB wrote:

Add this statement to /etc/rc.conf and reboot your system.

clear_tmp_enable="YES"  # clear /tmp directory on boot

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gaf
Sent: Thursday, February 12, 2004 2:26 PM
To: [EMAIL PROTECTED]
Subject: /tmp full (newbie)
Hello.
Im a newbie to unix and FreeBSD. I have 5.2 installed. When
installing I
followed the advice in The Complete FreeBSD and made the following
partitions:
/ 4G
swap  800M
/home   35G
I have KDE 3.2  installed I have done cvsup on src and ports new
kernel
etc etc.
Today I tried to install a new browser and I got the information
that my
filesystem is full.  When I tried to start KDE I got the message
that
/tmp is full. I would really apprecite some help. What to do?? Can I
give you some other info and if so what and how???
Many thanks Gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
 

Hello again.
I tried it and it emptied /tmp but I still can´t start KDE.
It says:
startkde: Could not start ksmserver check your installation
Error: can´t contact kdeinit
/:write failed, filesystem full can´t create /tmp/mcop-gaf (no space 
left on device)
..pid 627 (artsshell), uid 1002 inumber 211973 on /: 
filesystem full
What to do??
Hope you can give me some other clues.
gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


root access to a custom .sh defined as shell; need root privilages to add newuser

2004-02-12 Thread ZZerver ZZserver
Am running a free server of shells in freeBSD 4.9, the amount of
people solicitading new accounts has been too much that i can not
handle them by me, so i wrote this .sh program to do it for me, my
code its secure as much i can tell, i understand the risk involve and
decide to do it anyways, soo i create a new group call 'shellauto',
add new user 'newuser' promote to 'wheel', then i modify etc/shells to
accept my new shell, so when some body logs to my server as 'newuser'
the server run my .sh (freeshell.sh), everything works goodl but my
question is ...how can i give my script root previlages ? so can
addusers without me? also if there is a way to type a command directly
to shell (bash) so i can define quotas of 1mb, and background procees
to 3?? that way i can include those commands to my freeshell.sh
...thanks
_
MSN Fotos: la forma más fácil de compartir e imprimir fotos.  
http://photos.msn.es/support/worldwide.aspx

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


Hardware vs software firewall on FreeBSD

2004-02-12 Thread ppi
I'm upgrading the hardware on my webserver.  It will run FreeBSD 4.9.

I need to decide whether to use a hardware firewall (Cisco) or use ipfw,
ipf, pf, etc.

The hardware firewall will increase my monthly server rental bill by
almost 30%.  So I'm wondering if the significant extra cost is worth it.

What kind of performance hit will result from using ipfw, ipf or pf?

I would like to avoid the extra expense of the hardware firewall.

Can anyone offer an opinion on this matter?  Any good reasons to use one
over the other?

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


Spimware infection

2004-02-12 Thread Wallace Aiken
Hi, I'm using two of your firewalls...they work great. But all of a sudden they're 
showing signs of "Spimmware" infection, a kind of spyware. 

I work for Kent State university and their network scan came up with the IPs and host 
names of my firewalls, as well as some other hosts on my subnet that were not behind 
the firewall...can you give me any advice?

Thanks!
Wallace Aiken
Kent State University 
Salem Campus
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with ssh

2004-02-12 Thread Duane Winner
On Thu, 2004-02-12 at 14:49, Dragoncrest wrote:
> Hi again everyone.  Ok, this issue just popped up today on a different
> machine, but it's still bugging me either way.  My home mail server
> (freebsd 4.8) has SSH available to the internet so I can get into the
> box from work if need be.  That is the only port open as it's a fetching
> mail server so port 25 isn't available to the rest of the world.  Nor is
> 110.  What I just discovered today is that my sshd is allowing auth by
> public key OR password.  I don't want it to auth by password.  JUST
> public key.  So in other words if you don't already have the public key
> file, well, it sucks being you because you won't get connected.
> 
> Anyone know how to do this?  Or would this question be better handled on
> an SSH mailing list?  If so, which list is best and how do I sign up? 
> Much apreciated on the info.  Thanks.
> 

For what it's worth, this is my config that does exactly what you are
looking for. It allows auth by public key only, i.e., the user's public
key must be concatenated into ~/.ssh/authorized_keys2 in their
respective home dir.

There might be some better tweaking I could do to this, but haven't
gotten around to yet. The main thing is that it does pubkey auth and
accepts ssh protocol 2 only.

Hope this helps.



Port 22
Protocol 2
ListenAddress 0.0.0.0
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
RhostsAuthentication no
IgnoreRhosts yes
/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
X11Forwarding no
PrintMotd yes
Subsystem   sftp/usr/libexec/sftp-server


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


Locating LCD Information

2004-02-12 Thread Joe Lewis
I recently bought a couple of network storage apps.  I think I've gotten 
a good feel for the LCDd from the LCDProc port.  I think I need to find 
out what kind or LCD it is before proceeding.  Do you guys know of any 
way to locate specs for the LCD devices on network servers?

It comes from a storigen device, and the LCD circuit boards all have 
storigen ID numbers (and storigen is out of business - go figure).  Any 
ideas on where to look next?

Joe

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


Re: i know this sounds stoopid, but!

2004-02-12 Thread Ron McCy


Yvette Seifert Hirth wrote:

Yvette Halftone Signature Stationeryhi, just got FreeBSD 5.1 in da box, with
"dummies" manual, was around $60.  bought from FreeBSD.
now i'm REAL tense about "doing the right thing" with copyrights, so...

can i install this one copy on more than one box?

i know if i downloaded one-or-more of the distro's those can be installed
anywhere.  but this version comes from "da box".
so please advise.  i don't want the RIAA or the DCMA police coming down on
my tush.
thanks much in advance!

vty
yvette hirth

signature block not visible? -->www.magneticdogsisters.com

“The greatest happiness in life is the conviction that we
are loved, loved for ourselves, or, rather, despite ourselves."
--Victor Hugo
 



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

I think that you are good to go and spread "the word" to as many 
computers as you wish. It probably says as much in the license 
somwhere.open source and all that. I bought a 4.9 box set online and 
have it installed on 4 computers already.

Enjoy.

--
Ron McCurry
BounceBack, Inc.
1-800-830-5255 ext 4806
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with ssh

2004-02-12 Thread Clint Gilders
Nathan Kinkade wrote:
 > Uncomment the following line /etc/ssh/sshd_config and HUP sshd:
#PasswordAuthentication yes
You also want to set that to 'no'

PasswordAuthentication no

--
Clint Gilders <[EMAIL PROTECTED]>
Director of Technology Services
OnlineHobbyist.com, Inc.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with ssh

2004-02-12 Thread Erik Trulsson
On Thu, Feb 12, 2004 at 02:49:17PM -0500, Dragoncrest wrote:
> Hi again everyone.  Ok, this issue just popped up today on a different
> machine, but it's still bugging me either way.  My home mail server
> (freebsd 4.8) has SSH available to the internet so I can get into the
> box from work if need be.  That is the only port open as it's a fetching
> mail server so port 25 isn't available to the rest of the world.  Nor is
> 110.  What I just discovered today is that my sshd is allowing auth by
> public key OR password.  I don't want it to auth by password.  JUST
> public key.  So in other words if you don't already have the public key
> file, well, it sucks being you because you won't get connected.
> 
> Anyone know how to do this?  Or would this question be better handled on
> an SSH mailing list?  If so, which list is best and how do I sign up? 
> Much apreciated on the info.  Thanks.

Read the sshd_config(5) manpage.  The 'PasswordAuthentication' keyword
seems to be what you are interested in.


-- 

Erik Trulsson
[EMAIL PROTECTED]

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


Re: Problem with ssh

2004-02-12 Thread Nathan Kinkade
On Thu, Feb 12, 2004 at 02:49:17PM -0500, Dragoncrest wrote:
> Hi again everyone.  Ok, this issue just popped up today on a different
> machine, but it's still bugging me either way.  My home mail server
> (freebsd 4.8) has SSH available to the internet so I can get into the
> box from work if need be.  That is the only port open as it's a fetching
> mail server so port 25 isn't available to the rest of the world.  Nor is
> 110.  What I just discovered today is that my sshd is allowing auth by
> public key OR password.  I don't want it to auth by password.  JUST
> public key.  So in other words if you don't already have the public key
> file, well, it sucks being you because you won't get connected.
> 
> Anyone know how to do this?  Or would this question be better handled on
> an SSH mailing list?  If so, which list is best and how do I sign up? 
> Much apreciated on the info.  Thanks.

Uncomment the following line /etc/ssh/sshd_config and HUP sshd:

#PasswordAuthentication yes

Nathan
-- 
gpg --keyserver pgp.mit.edu --recv-keys D8527E49


pgp0.pgp
Description: PGP signature


Re: /tmp full (newbie)

2004-02-12 Thread gaf
JJB wrote:

Add this statement to /etc/rc.conf and reboot your system.

clear_tmp_enable="YES"  # clear /tmp directory on boot

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gaf
Sent: Thursday, February 12, 2004 2:26 PM
To: [EMAIL PROTECTED]
Subject: /tmp full (newbie)
Hello.
Im a newbie to unix and FreeBSD. I have 5.2 installed. When
installing I
followed the advice in The Complete FreeBSD and made the following
partitions:
/ 4G
swap  800M
/home   35G
I have KDE 3.2  installed I have done cvsup on src and ports new
kernel
etc etc.
Today I tried to install a new browser and I got the information
that my
filesystem is full.  When I tried to start KDE I got the message
that
/tmp is full. I would really apprecite some help. What to do?? Can I
give you some other info and if so what and how???
Many thanks Gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
 

Thank you! I will try that!!
Gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread gaf
Jez Hancock wrote:

On Thu, Feb 12, 2004 at 08:26:24PM +0100, gaf wrote:
 

Today I tried to install a new browser and I got the information that my 
filesystem is full.  When I tried to start KDE I got the message that 
/tmp is full. I would really apprecite some help. What to do?? Can I 
give you some other info and if so what and how???
   

Yes please - paste the output from df and mount.

 

Hello Jez.
df -h gave:
Filesystem sizeused avail 
capacity   mounted on
/dev/ad1s1a   3,9G3,8G  -234,3M   
106%  /
devfs  1,0K1,0K   0B
100% /dev
/dev/ad1s1d   37G  22M 34G 
0%/home

mount gave:
/dev/ad1s1a on  /
devfs on  /dev
/dev/ad1s1d on /home
..pid 631 dd uid 2 inumber 310719 on /: 
filesystem full
Thats it
As you can see I can not yet send mail without a gui  :(
Hope this can help you to help me. Thanks for answering
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: /tmp full (newbie)

2004-02-12 Thread JJB
Add this statement to /etc/rc.conf and reboot your system.


clear_tmp_enable="YES"  # clear /tmp directory on boot


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of gaf
Sent: Thursday, February 12, 2004 2:26 PM
To: [EMAIL PROTECTED]
Subject: /tmp full (newbie)

Hello.
Im a newbie to unix and FreeBSD. I have 5.2 installed. When
installing I
followed the advice in The Complete FreeBSD and made the following
partitions:
/ 4G
swap  800M
/home   35G
 I have KDE 3.2  installed I have done cvsup on src and ports new
kernel
etc etc.
Today I tried to install a new browser and I got the information
that my
filesystem is full.  When I tried to start KDE I got the message
that
/tmp is full. I would really apprecite some help. What to do?? Can I
give you some other info and if so what and how???
Many thanks Gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

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


Problem with ssh

2004-02-12 Thread Dragoncrest
Hi again everyone.  Ok, this issue just popped up today on a different
machine, but it's still bugging me either way.  My home mail server
(freebsd 4.8) has SSH available to the internet so I can get into the
box from work if need be.  That is the only port open as it's a fetching
mail server so port 25 isn't available to the rest of the world.  Nor is
110.  What I just discovered today is that my sshd is allowing auth by
public key OR password.  I don't want it to auth by password.  JUST
public key.  So in other words if you don't already have the public key
file, well, it sucks being you because you won't get connected.

Anyone know how to do this?  Or would this question be better handled on
an SSH mailing list?  If so, which list is best and how do I sign up? 
Much apreciated on the info.  Thanks.

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


Re: /.cshrc and /.profile

2004-02-12 Thread Jonathan Chen
On Fri, Feb 13, 2004 at 12:56:01AM +0800, h0444lp6 wrote:
> Dear list
> 
> What are the /.cshrc and /.profile files for?
> 
> Since /etc holds the system wide conf files and ~ the user specific ones
> I do not understand why there are the ones in /.

When the machine boots into single-user mode, the root user's HOME is
set to /.
-- 
Jonathan Chen <[EMAIL PROTECTED]>
--
  Build a man a fire, and he'll be warm for a day.
Set a man on fire, and he'll be warm for the rest of his life.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /tmp full (newbie)

2004-02-12 Thread Jez Hancock
On Thu, Feb 12, 2004 at 08:26:24PM +0100, gaf wrote:
> Today I tried to install a new browser and I got the information that my 
> filesystem is full.  When I tried to start KDE I got the message that 
> /tmp is full. I would really apprecite some help. What to do?? Can I 
> give you some other info and if so what and how???

Yes please - paste the output from df and mount.

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - Another FreeBSD Diary
http://ipfwstats.sf.net/- ipfw peruser traffic logging
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: kernel compilation problems - 5.1 (long)

2004-02-12 Thread Peter Risdon
Tadimeti Keshav wrote:

hi all,
I am having problems compiling my kernel. 
 

Your immediate problem is a common one. Your kernel config includes the 
line:

device		umass		# Disks/Mass storage - Requires scbus and da

But scbus and da are commented out. Uncomment them, and compile.

PWR.

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


/tmp full (newbie)

2004-02-12 Thread gaf
Hello.
Im a newbie to unix and FreeBSD. I have 5.2 installed. When installing I 
followed the advice in The Complete FreeBSD and made the following 
partitions:
/ 4G
swap  800M
/home   35G
I have KDE 3.2  installed I have done cvsup on src and ports new kernel 
etc etc.
Today I tried to install a new browser and I got the information that my 
filesystem is full.  When I tried to start KDE I got the message that 
/tmp is full. I would really apprecite some help. What to do?? Can I 
give you some other info and if so what and how???
Many thanks Gaf
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: hostname and dhcp

2004-02-12 Thread JJB
If I understand you correctly, you are talking about your system
which is connected to the public internet, and you are using the
FBSD built in DHCP client to get an lease from your ISP. Now if you
are an commercial user with an officially registered domain name and
static ip address from your ISP,  Your ISP has you in their DHCP
server with your FQDN and it's being sent to your system when you
get an new lease. The FBSD built in DHCP client is not configured to
accept that info which will auto populate the hostname= environment
variable.  Install the DHCP package on you system and configure It's
client to accept that info.

If you are not an commercial user, then the host name the ISP uses
for you is meaningless to you. If you have officially registered
domain name then use that in your hostname=  statement, like this,
hostname="cyberbaby.com", then that FQDN will be what sendmail uses
for all the users on your LAN. Then use DHCP server to pass the
major FQDN to all LAN PC, and those systems will append to the front
their system names and tell your DHCP server their full name.

If you do not have LAN or officially registered domain name, then
all you need, is to meet the domain nameing convention,
something.com and you are all set go. IE:
hostname="home.FBSDyourLastName.com".

As far as reverse lookup goes, that is only on officially registered
domain names,  either yours, which really happens at the registry
hosting your domain name, or at the ISP if your using their email
servers.

On your system the value you use in hostname=  should also be in the
/etc/hosts file like this

#
::1 localhost localhost.my.domain
127.0.0.1   localhost home.FBSDyourLastName.com FBSDyourLastName.com
#


Hope this helps

Joe



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Evan Dower
Sent: Thursday, February 12, 2004 1:15 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: hostname and dhcp

Hmm... That is what I expected it to do, but when I tried it, I
ended up
with an empty hostname. Of course, I don't remember now if I
commented out
that line or just set it to empty. Actually, looking at
/etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf
it gets
set to the empty string in the default, so it shouldn't matter.
Anyway, like
I said, I tried that and just ended up with an empty hostname.
Perhaps that
indicates something is wrong with my configuration...
Thanks very much for the help (any other ideas?),
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D




>From: Lowell Gilbert <[EMAIL PROTECTED]>
>To: "Evan Dower" <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: hostname and dhcp
>Date: 12 Feb 2004 13:04:38 -0500
>
>"Evan Dower" <[EMAIL PROTECTED]> writes:
>
> > I've actually been running FreeBSD for quite a while now, but
I've
> > never known exactly how to handle this. In rc.conf, one must
specify a
> > hostname. If you're using DHCP to set up your network though,
your
> > FQDN (fully qualified domain name) can change without notice. It
seems
> > like a Good Idea to have your hostname be your FQDN, since some
things
> > will do a reverse lookup on your IP to verify that it matches
the
> > hostname you supplied. In particular I'm thinking of SMTP
servers
> > here. (send-pr doesn't work for me because my mail gets
rejected.) So,
> > when you're autoconfiguring your network interfaces, what should
you
> > put in rc.conf's hostname variable? Is there something else I
can do
> > that would allow me to have something nicer looking, but still
send my
> > FQDN when asked?
>
>If you don't set your hostname in rc.conf, dhclient should change
it
>for you when it finds out what it is.
>
>--
>Lowell Gilbert, embedded/networking software engineer, Boston area:
>   resume/CV at
http://be-well.ilk.org:8088/~lowell/resume/
>   username/password "public"

_
Check out the great features of the new MSN 9 Dial-up, with the MSN
Dial-up
Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

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

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


Re: Ports files

2004-02-12 Thread Kent Stewart
On Thursday 12 February 2004 10:08 am, Jonathan Arnold wrote:
> andrew clarke wrote:
> > On Thu, Feb 12, 2004 at 08:09:25AM -0500, Jonathan Arnold wrote:
> >>My port hierarchy seems to have gotten out of date or something.
> >>It is missing some subdirectories, like multimedia, even though I
> >>run cvsup every other night on it.
> >
> > I had this problem too with /usr/ports/dns not being updated, even
> > though ports-dns was listed in my ports-supfile.  Switched to
> > another cvsup server and all was well.
>
> Actually, looking at the cvsup file I was using, it didn't include
> the multimedia port. I created it awhile ago, and commented out the
> ports-all line, because I didn't want to get the Chinese or Japanese,
> etc, ports. But there doesn't seem to be an easy way to get
> everything but those. There is a 'refuse' file, but that is based
> upon the file name, and I'm not sure I want to refuse everything
> with, say, 'chinese' in its filename.

Well, when you refuse, you take a chance on "make index" not working. 
The choice is yours :).

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


re: kernel compilation problems - 5.1 (long)

2004-02-12 Thread Mike Bowie

   -- snip --
>>  umass.o: In function `umass_cam_quirk_cb':
>>  umass.o(.text+0x23eb): undefined reference to
>>  `xpt_done'
>>  *** Error code 1
>>
>>  Stop in /usr/src/sys/i386/compile/CUSTOM.
   -- snip --
>>  # SCSI peripherals
>>  #device& nbsp;   scbus# SCSI bus (required)
>>
>>  #device& nbsp;   ch# SCSI media changers
>>
>>  #device& nbsp;   da# Direct Access (disks)
   -- snip --

>>  deviceumass  &n bsp; # Disks/Mass storage - Requires
   scbus and da
   IIRC, the umass device depends on the scbus, da devices... uncomments
   them and start the build again.



   HTH,



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


kernel compilation problems - 5.1 (long)

2004-02-12 Thread Tadimeti Keshav
hi all,
I am having problems compiling my kernel. 

FreeBSD 5.1
Intel Pentium 200 MMX. 64MB ram. 
Digital PC 5000. 
I am having problems while linking the objects (.o
files). Why is it compiling for PentiumPRO?
I am attaching the kernel config file.
Sorry if I have sent it to the wrong list.
I appreciate any help.
Thanks v much in advance
Tk.
--
OUTPUT (only last part)
---
standing -Werror  vnode_if.c
touch hack.c
cc  -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../../conf/newvers.sh CUSTOM
cc -c -O -pipe -mcpu=pentiumpro 
 ^^ (WHY!!!)
-Wall -Wredundant-decls -Wnested-externs -Wstr
ict-prototypes  -Wmissing-prototypes -Wpointer-arith
-Winline -Wcast-qual  -ff ormat-extensions -std=c99  

-nostdinc -I-  -I. -I../../.. -I../../../dev -I../.
./../contrib/dev/acpica -I../../../contrib/ipfilter
-D_KERNEL -include opt_glo bal.h -fno-common  

-mno-align-long-strings -mpreferred-stack-boundary=2
-ffree standing -Werror  vers.c


linking kernel

umass.o: In function `umass_cam_attach_sim':
umass.o(.text+0x19f7): undefined reference to
`cam_simq_alloc'

umass.o(.text+0x1a48): undefined reference to
`cam_sim_alloc'

umass.o(.text+0x1a57): undefined reference to
`cam_simq_free'

umass.o(.text+0x1a77): undefined reference to
`xpt_bus_register'
umass.o: In function `umass_cam_rescan_callback':

umass.o(.text+0x1ab3): undefined reference to
`xpt_free_path'

umass.o: In function `umass_cam_rescan':
umass.o(.text+0x1b25): undefined reference to
`xpt_periph'

umass.o(.text+0x1b34): undefined reference to
`xpt_create_path'

umass.o(.text+0x1b50): undefined reference to
`xpt_setup_ccb'

umass.o(.text+0x1b6d): undefined reference to
`xpt_action'

umass.o: In function `umass_cam_detach_sim':

umass.o(.text+0x1c5c): undefined reference to
`xpt_bus_deregister'

umass.o(.text+0x1c78): undefined reference to
`cam_sim_free'

umass.o: In function `umass_cam_action':
umass.o(.text+0x20ed): undefined reference to
`xpt_done'

umass.o: In function `umass_cam_cb':
umass.o(.text+0x225b): undefined reference to
`xpt_done'

umass.o: In function `umass_cam_sense_cb':
umass.o(.text+0x23c1): undefined reference to
`xpt_done'

umass.o: In function `umass_cam_quirk_cb':
umass.o(.text+0x23eb): undefined reference to
`xpt_done'

*** Error code 1
 
Stop in /usr/src/sys/i386/compile/CUSTOM.



=
-- K E S H A V  T A D I M E T I --
BeOS Air
You have to pay for the tickets, but they're half the price of Windows Air, and if you 
are an aircraft mechanic you can probably ride for free. It only takes 15 minutes to 
get to the airport and you are cheuferred there in a limozine. BeOS Air only has 
limited types of planes that only hold new luggage. All planes are single seaters and 
the model names all start with an "F" (F-14, F-15, F-16, F-18, etc.). The plane will 
fly you to your destination on autopilot in half the time of other Airways or you can 
fly the plane yourself. There are limited destinations, but they are only places you'd 
want to go to anyway. You tell all your friends how great BeOS Air is and all they say 
is "What do you mean I can't bring all my old baggage with me?"





___
BT Yahoo! Broadband - Free modem offer, sign up online today and save £80 
http://btyahoo.yahoo.co.uk#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386

#
# For more information on this file, please read the handbook section on 
# Kernel Configuration Files:

#
#http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html

#
# The handbook is also available locally in /usr/share/doc/handbook

# if you've installed the doc distribution, otherwise always see the

# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the

# latest information.

#
# An exhaustive list of options and more detailed explanations of the

# device lines is also present in the ../../conf/NOTES and NOTES files. 

# If you are in doubt as to the purpose or necessity of a line, check first 

# in NOTES.

#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.384.2.2 2003/05/31 15:18:41 scottl Exp $


machine i386

#cpuI486_CPU # - not 486:TK

cpu I586_CPU

#cpuI686_CPU # - not P!!! or P4:TK

ident   CUSTOM


#To statically compile in device wiring instead of /boot/device.hints

#hints  "GENERIC.hints" 
#Default places to look for devices.


#makeoptionsDEBUG=-g
#Build kernel with gdb(1) debug symbols


options SCHED_4BSD  #4BSD scheduler

options INET#InterNETworking

options INET6   #IPv6 communications protocols

options FFS #Berkeley Fast Filesystem

options SOFTUPDATES #Enable FFS soft updates support

options UFS_ACL #Supp

Re: Problem with someone port scanning me

2004-02-12 Thread Dragoncrest
Thanks.  I'm gonna give this one a spin.  Gonna keep scanlogd in the
back of my mind as something else to try should this not work.  Thanks.

One last question.  Does IPF work by default or do I have to do anything
special?  And I'm assuming I just type IPF at the command line and the
program does the rest?

> 
> On Thu, 12 Feb 2004 11:12:53 -0500
> Dragoncrest <[EMAIL PROTECTED]> granted us these pearls of wisdom:
> 
> > For the past couple of days I've had someone on our lan port
scanning my 
> > box.  Not sure what's up with that, but I'm curious if there's a way
to log 
> > what IP address this is coming from.  I don't have IPFW enabled yet
as I 
> > haven't had the time to configure it at this point as it's currently
behind 
> > the company firewall on our T3.  Is there a way to log where it's
coming 
> > from?  Or is that already being logged somewhere?
> 
> I wonder if you might get some benefit from a couple of simple IPF rules
> and a quick portsentry install. 
> 
> /etc/ipf.rules
> 
> pass in log on interface0 from any to any
> pass out log on interface0 from IP to any
> 
> with the appropriate startup would give you a good idea of the IP
> address the scan is comming from. Whether your DHCP server admin will
> tell you who that address is is a different matter.
> 
> HTH 
> 
> LK
> 
> 



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


Re: hostname and dhcp

2004-02-12 Thread Evan Dower
Hmm... That is what I expected it to do, but when I tried it, I ended up 
with an empty hostname. Of course, I don't remember now if I commented out 
that line or just set it to empty. Actually, looking at 
/etc/defaults/rc.conf I see that if I comment it out in /etc/rc.conf it gets 
set to the empty string in the default, so it shouldn't matter. Anyway, like 
I said, I tried that and just ended up with an empty hostname. Perhaps that 
indicates something is wrong with my configuration...
Thanks very much for the help (any other ideas?),
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D




From: Lowell Gilbert <[EMAIL PROTECTED]>
To: "Evan Dower" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: hostname and dhcp
Date: 12 Feb 2004 13:04:38 -0500
"Evan Dower" <[EMAIL PROTECTED]> writes:

> I've actually been running FreeBSD for quite a while now, but I've
> never known exactly how to handle this. In rc.conf, one must specify a
> hostname. If you're using DHCP to set up your network though, your
> FQDN (fully qualified domain name) can change without notice. It seems
> like a Good Idea to have your hostname be your FQDN, since some things
> will do a reverse lookup on your IP to verify that it matches the
> hostname you supplied. In particular I'm thinking of SMTP servers
> here. (send-pr doesn't work for me because my mail gets rejected.) So,
> when you're autoconfiguring your network interfaces, what should you
> put in rc.conf's hostname variable? Is there something else I can do
> that would allow me to have something nicer looking, but still send my
> FQDN when asked?
If you don't set your hostname in rc.conf, dhclient should change it
for you when it finds out what it is.
--
Lowell Gilbert, embedded/networking software engineer, Boston area:
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password "public"
_
Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up 
Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

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


query

2004-02-12 Thread gipson daniel

   hello,

   I access Berkeley using python.I installed berkeley 4.2.52,but when I
   import berkeley
   through python the previous version 4.0.1 is invoked.I verified this
   using DB_version_string.
   What should I do to invoke the new installed version of the database.

  gipson g daniel
 _

   Contact brides & grooms FREE! [1]Only on www.shaadi.com. Register now!

References

   1. http://g.msn.com/8HMAENIN/2737??PS=
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Ports files

2004-02-12 Thread Jonathan Arnold
andrew clarke wrote:

On Thu, Feb 12, 2004 at 08:09:25AM -0500, Jonathan Arnold wrote:
My port hierarchy seems to have gotten out of date or something.
It is missing some subdirectories, like multimedia, even though I
run cvsup every other night on it.
I had this problem too with /usr/ports/dns not being updated, even
though ports-dns was listed in my ports-supfile.  Switched to another
cvsup server and all was well.
Actually, looking at the cvsup file I was using, it didn't include
the multimedia port. I created it awhile ago, and commented out the
ports-all line, because I didn't want to get the Chinese or Japanese,
etc, ports. But there doesn't seem to be an easy way to get everything
but those. There is a 'refuse' file, but that is based upon the file
name, and I'm not sure I want to refuse everything with, say, 'chinese'
in its filename.
--
Jonathan Arnold (mailto:[EMAIL PROTECTED])
Daemon Dancing in the Dark, a FreeBSD weblog:
http://freebsd.amazingdev.com/blog/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: hostname and dhcp

2004-02-12 Thread Lowell Gilbert
"Evan Dower" <[EMAIL PROTECTED]> writes:

> I've actually been running FreeBSD for quite a while now, but I've
> never known exactly how to handle this. In rc.conf, one must specify a
> hostname. If you're using DHCP to set up your network though, your
> FQDN (fully qualified domain name) can change without notice. It seems
> like a Good Idea to have your hostname be your FQDN, since some things
> will do a reverse lookup on your IP to verify that it matches the
> hostname you supplied. In particular I'm thinking of SMTP servers
> here. (send-pr doesn't work for me because my mail gets rejected.) So,
> when you're autoconfiguring your network interfaces, what should you
> put in rc.conf's hostname variable? Is there something else I can do
> that would allow me to have something nicer looking, but still send my
> FQDN when asked?

If you don't set your hostname in rc.conf, dhclient should change it
for you when it finds out what it is.  

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


hostname and dhcp

2004-02-12 Thread Evan Dower
I've actually been running FreeBSD for quite a while now, but I've never 
known exactly how to handle this. In rc.conf, one must specify a hostname. 
If you're using DHCP to set up your network though, your FQDN (fully 
qualified domain name) can change without notice. It seems like a Good Idea 
to have your hostname be your FQDN, since some things will do a reverse 
lookup on your IP to verify that it matches the hostname you supplied. In 
particular I'm thinking of SMTP servers here. (send-pr doesn't work for me 
because my mail gets rejected.) So, when you're autoconfiguring your network 
interfaces, what should you put in rc.conf's hostname variable? Is there 
something else I can do that would allow me to have something nicer looking, 
but still send my FQDN when asked?
Thanks very much,
--
Evan Dower
Undergraduate, Computer Science
University of Washington
Public key: http://students.washington.edu/evantd/pgp-pub-key.txt
Key fingerprint = D321 FA24 4BDA F82D 53A9  5B27 7D15 5A4F 033F 887D

_
Check out the great features of the new MSN 9 Dial-up, with the MSN Dial-up 
Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/

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


Re: Standby mode for monitor.

2004-02-12 Thread Lowell Gilbert
Eric F Crist <[EMAIL PROTECTED]> writes:

> On Thursday 12 February 2004 07:13 am, Malcolm Kay wrote:
> > I'd like to be able to switch the monitors on a number of
> > our computers into standby mode from a software program
> > running on a virtual console; and wakeup either when a key is
> > pressed or when the program has new information to display.
> >
> > I can probably manage to control blank screen savers but I
> > would prefer to power down the displays to standby modes.
> >
> > The machines are those small size 'kitchen computer' VIA
> > based cubes (almost). The monitors are LCD displays.
> >
> > Are there ioctls to help with this?
> > How do I go about it?
> 
> Malcolm,
> 
> FWIW, there's an option called DPMS in your XF86Config file under the monitors 
> section.  I know you have to have a fairly recent version of X for this.  

It's been there a long time, actually.

On the console, there's a "green" screensaver and an "apm" screensaver.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Compaq RAID on 4.9-RELEASE?

2004-02-12 Thread Tim Pushor
Hi all,

We are going to be replacing one of our older systems here with a new 
HP/Compaq server and want to buy a (cheap) supported hardware raid 
adapter. Compaq/HP used to be so easy.

The system we are looking at has either a Compaq 532 or 641 depending on 
the processor speed (!). I see the 532 is supported, any word on the 641?

Is anyone using either of these two cards and can vouch for the 
performance/stability?

Thanks in advance,
Tim
(Please reply directly as I am not subscribed to this list)

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


netgraph....help

2004-02-12 Thread manish gautam
i want to make my own node with my own specifications.
how can i do that and load it and pass data through
it.

reply as soon as possible...

cheers
manish


Yahoo! India Education Special: Study in the UK now.
Go to http://in.specials.yahoo.com/index1.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  1   2   >