Re: url encoding a string with base system tools

2007-09-29 Thread Dan Nelson
In the last episode (Sep 29), Aryeh Friedman said:
 I am creating a new port and part of the install procedure is the
 install script needs to send some data to a web server in the form of
 http://.?X where XXX is the url encoded plain text (can
 include any ascii printable character) that needs to be sent.
 
 Since this for a port I want to do the plain to url encoded text with
 tools *ONLY* found in the base freebsd install (no ports).  How would
 I do this?

A google search for url encode sed returns some useful links, the
best being

http://www.mollerus.net/tom/blog/2007/06/cf_through_a_commandline_interface_part_2_programm.html

although I see there are two entries for tab, one just having a space,
so you'll definitely want to test it out.

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


please suggest FreeBSD 6.2 (AMD64) compatible Motherboard

2007-09-29 Thread Susanth K
Dear Friends,

Am going to assemble a new PC (for my personal use).

PROCESSOR   AMD Athlon 64 X2 Dual Core
RAM   1GB

Which MOTHER BOARD will be FreeBSD 6.2 (AMD64) compatible

I mean, NO trouble with X display, LanCard, Sound and SATA  Hard Disk.

I request experienced to suggest me a solution.

THANKS IN ADVANCE

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


How to restart a freezed tty?

2007-09-29 Thread Bahman M.
Hi all,

For some reason all the ttys are frozen up; I can switch between X and
them back and forth but not between the ttys themselves using ALT+Fn.

I tried killing them; they terminate and restart but still
frozen.  I don't believe the only way out is to restart the system.

How to make ttys behave normally?  I'd appreciate any idea.
FreeBSD 6.2-RELEASE-p7 
xorg-7.2
fluxbox-1.0rc3_3

TIA,

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


Re: Install problems with CD

2007-09-29 Thread Fernando Apesteguía
On 9/29/07, Aryeh Friedman [EMAIL PROTECTED] wrote:
 Depends on the distro (some have broken drivers in the install some
 don't... no matter what you will probally want to look at doing a
 cvsup upgrade to a newer version once you have installed it [see the
 handbook for details]).

OK,

Many thanks


 --Aryeh

 On 9/28/07, Fernando Apesteguía [EMAIL PROTECTED] wrote:
  On 9/29/07, Aryeh Friedman [EMAIL PROTECTED] wrote:
   If I remember right this is a known issue with some older distro CD's
   (the boot code doesn't need any kind of software driver for the CD but
   the install code does)... I suggest either using a newer version like
   6.2 or using the install from network option for install medium.
 
  OK,
 
  But after the installation, will FreeBSD detect my DVD drive?
 
  Cheers
 
  
   --Aryeh
  
   On 9/28/07, Fernando Apesteguía [EMAIL PROTECTED] wrote:
Hi all,
   
This is my very first post in this list, so I beg for your patience :)
   
I'm trying to install FreeBSD 6.1 on an IBM Netfinity 5000. I have the
two CD's set.
The machine uses a IDE DVD drive, and 5 SCSI disks.
   
I boot the machine and the CD starts to boot. I select the FreeBSD
normal booting. Everything seems to be fine. I can see the messages
about the detected devices (BIOS CDROM is cd0 and so on...)
   
I start the installation, The disks are detected, I set up my
partitions and then I select the CD/DVD media installation... and then
I get a No CD/DVD drive is present.
   
The drive is working in terms of hardware (I can run several live CD
linux distros for example) and then access the CD as usual. How is it
possible that after booting with FreeBSD the sysinstall (?) program
doesn't detect the cd?
   
Thanks in advance
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
   
  
 

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


Re: Cant send email using mail but it works telnetting...

2007-09-29 Thread Christer Hermansson

Agus wrote:

Hi list...

I gound a problem while trying to send an email with a script using mail -s
Subject [EMAIL PROTECTED]
Then i entered the data...finished with . but it gets stuck in the queue
with this...

V8
T1191019178
K1191020151
N2
P120418
I0/80/47582
MDeferred: Connection refused by himalaya.free-shells.com.ar.
Fbs
$_localhost [127.0.0.1]
$rESMTP
$severest.free-shells.com.ar
${daemon_flags}
${if_addr}127.0.0.1
S[EMAIL PROTECTED]
MDeferred: Connection refused by himalaya.free-shells.com.ar.
rRFC822; [EMAIL PROTECTED]
RPFD:[EMAIL PROTECTED]
H?P?Return-Path: 81g
H??Received: from everest.free-shells.com.ar (localhost [127.0.0.1])
by everest.free-shells.com.ar (8.13.6/8.13.6) with ESMTP id
l8SMdc7L021779
for [EMAIL PROTECTED]; Fri, 28 Sep 2007 19:39:38
-0300 (ART)
(envelope-from [EMAIL PROTECTED])
H??Received: (from [EMAIL PROTECTED])
by everest.free-shells.com.ar (8.13.6/8.13.6/Submit) id
l8SMdc3P021778
for [EMAIL PROTECTED]; Fri, 28 Sep 2007 19:39:38 -0300 (ART)
(envelope-from brahama)
H??Date: Fri, 28 Sep 2007 19:39:38 -0300 (ART)
H??From: User Brahama [EMAIL PROTECTED]
H??Message-Id: [EMAIL PROTECTED]
H??To: [EMAIL PROTECTED]
H??Subject: subjet
.



My hostname is everestmy firewall/router name is himalaya

I think the problem is that is trying to resolve to
himalaya.free-shells.com.ar which is the FQDN in my NS
could it be that? how can i bypass local mail to go directly to localhost
sendmail...?

Thanks...

PS: While telneting localhost 25 and sending it manually works
  

You want the mail to be delivered to the file /var/mail/username ?

I just typed at my machine (running freebsd and sendmail)

mail -s Testing [EMAIL PROTECTED]
hello
.

and the mail got delivered to the file /var/mail/cat

How is your sendmail configuration, I guess you have done some changes 
and not using the default ?


--

Christer Hermansson



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


want to install free bsd

2007-09-29 Thread Brian Guest
Dear [EMAIL PROTECTED]
   
  I would like to install freebsd 6.2 or 6.0 on my pentium three PC computer.
  At this moment my pentium three computer has XP installed on it i do not know
  which files from the freebsd website to download and write to a CDRW orCDR
  could you direct me to the wright files and walk me through the process of 
installing
  free bsd 
   
  thank you 
  brn_gst

   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: want to install free bsd

2007-09-29 Thread Zbigniew Szalbot
Hi Brian,

2007/9/29, Brian Guest [EMAIL PROTECTED]:
 Dear [EMAIL PROTECTED]

   I would like to install freebsd 6.2 or 6.0 on my pentium three PC computer.
   At this moment my pentium three computer has XP installed on it i do not 
 know
   which files from the freebsd website to download and write to a CDRW orCDR
   could you direct me to the wright files and walk me through the process of 
 installing
   free bsd

I think you may download the ISO files from here:
ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/6.2/6.2-RELEASE-i386-disc1.iso

When I was first installing freebsd a year ago I sticked to the
excellent documentation:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html

I remember I repeated the installation 2-3 times because while
installing I learnt what some of the options meant (coming from
windows world I did not understand some of them).

All the best,

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


Re: want to install free bsd

2007-09-29 Thread Manolis Kiagias

Brian Guest wrote:

Dear [EMAIL PROTECTED]
   
  I would like to install freebsd 6.2 or 6.0 on my pentium three PC computer.

  At this moment my pentium three computer has XP installed on it i do not know
  which files from the freebsd website to download and write to a CDRW orCDR
  could you direct me to the wright files and walk me through the process of 
installing
  free bsd 
   
  thank you 
  brn_gst


   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos  more. 
___

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


  
Look at this list to find a mirror near your location, you will get a 
better download speed:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html

Download the i386 version iso image:

6.2-RELEASE-i386-disc1.iso

Burn it on CD using the Create CD from ISO image or similar option on 
your windows CD recording program.

Adjust your BIOS to boot from CD, then reboot

Read and follow the FreeBSD handbook carefully, particularly the 
installation chapter:


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

If you have no previous Unix or Linux experience, be patient and 
prepared to learn a lot of new stuff.


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


Re: Portupgrading cups-base gives compiler error

2007-09-29 Thread Frank Jahnke

The cups-base upgrade error can be fixed with a simple patch.  See

http://www.freebsd.org/cgi/query-pr.cgi?pr=116721

(I was bitten by this as well.)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: want to install free bsd

2007-09-29 Thread Roland Smith
On Sat, Sep 29, 2007 at 01:20:14AM -0700, Brian Guest wrote:
 Dear [EMAIL PROTECTED]

   I would like to install freebsd 6.2 or 6.0 on my pentium three PC
   computer.  At this moment my pentium three computer has XP installed
   on it i do not know which files from the freebsd website to download
   and write to a CDRW orCDR could you direct me to the wright files
   and walk me through the process of installing free bsd

You'll need the files 6.2-RELEASE-i386-disc1.iso and
6.2-RELEASE-i386-disc2.iso. You can find them on FreeBSD mirror sites;
[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html]

If you don't have any experience, I would recommend that you
1) Read chapter 2 of the handbook;
   [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html] 
2) Install FreeBSD on a virtual machine first, to practice. A nice free
   virtual machine is qemu [www.qemu.org]. You can download windows
   binaries from [http://www1.interq.or.jp/~t-takeda/qemu/].
3) Install FreeBSD on your PC. I've set up a page with some tips you
   might find usefull [http://www.xs4all.nl/~rsmith/freebsd/index.html].

HTH, Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpRXTDXbhnhN.pgp
Description: PGP signature


Re: want to install free bsd

2007-09-29 Thread Bahman M.
On Sat, 29 Sep 2007 01:20:14 -0700 (PDT) Brian Guest
[EMAIL PROTECTED] wrote:

 Dear [EMAIL PROTECTED]

   I would like to install freebsd 6.2 or 6.0 on my pentium three PC
 computer. At this moment my pentium three computer has XP installed
 on it i do not know which files from the freebsd website to download
 and write to a CDRW orCDR could you direct me to the wright files and
 walk me through the process of installing free bsd 

Here is the link to the download section:
http://www.freebsd.org/where.html. Select the distribution which you
want -I'd suggest 6.2- and the CPU family which matches your machine
-for you it is i386.  Burn the ISO images to CD and you're ready to go.

Also, this is a great source of information:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html .
In case you encounter errors or have questions, first consider reading
the related section of the hand book, e.g. it has a complete
chapter dedicated to installation:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html

HTH,

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


Creating Custom Install Media

2007-09-29 Thread Jerahmy Pocott

Hello,

I'm wanting to make a custom install cd that will load up on the  
serial console,
the documentation says all that is required is the addition of a file  
named boot.config

with the single line /boot/loader -h in it.

However it doesn't actually say how to then create a bootable cd image!

I'm assuming the boot strap used is /boot/cdboot, but what other  
settings are used

when creating the bootable cd image?

Also does anyone know how to create one using OSX? It doesn't have  
mkisofs but
hdiutil can create all sorts of images, including iso, however it  
seems to create joilet

extensions differently and the filenames are all uppercase..

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


Re: want to install free bsd

2007-09-29 Thread Byung-Hee HWANG
On Sat, 2007-09-29 at 01:20 -0700, Brian Guest wrote:
 Dear [EMAIL PROTECTED]

   I would like to install freebsd 6.2 or 6.0 on my pentium three PC computer.
   At this moment my pentium three computer has XP installed on it i do not 
 know
   which files from the freebsd website to download and write to a CDRW orCDR
   could you direct me to the wright files and walk me through the process of 
 installing
   free bsd 

My recomendation is FreeBSD 6.2, and below document will give you help
to download what:

URL:http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-diff-media.html#AEN3229

Byung-Hee

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


Re: Adding CR/LF

2007-09-29 Thread jhall
 On Sep 28, 2007, at 11:34 AM, [EMAIL PROTECTED] wrote:
 Here is the script I am using.
 #!/bin/sh
 FILENAMES=test1 test2 test3
 FILELIST=
 for filename in ${FILENAMES}
 do
 FILELIST=${FILELIST}${filename}$'\n\r'
 echo ${FILELIST}
 done

 And, here is the output I am getting.
 test1$\n\r
 test1$\n\rtest2$\n\r
 test1$\n\rtest2$\n\rtest3$\n\r

 The output I would like to see is:
 test1
 test2
 test3

 Thanks in advance for your assistance.

 /bin/echo and the builtin echo command found in /bin/sh and /bin/tcsh
 do not understand the C-style \r and \n escapes; you could switch
 your script to using Bash or ZSH and it would work in those shells,
 or else use printf command rather than echo.

 man builtin might give some insight.

 --
 -Chuck


Thanks to everyone for their help.  Since I am traveling, I am just going
to use printf for now and worry about rewriting the script when I get
home.

Jay

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


Re: want to install free bsd

2007-09-29 Thread Jerry McAllister
On Sat, Sep 29, 2007 at 01:20:14AM -0700, Brian Guest wrote:

 Dear [EMAIL PROTECTED]

   I would like to install freebsd 6.2 or 6.0 on my pentium three PC computer.
   At this moment my pentium three computer has XP installed on it i do not 
 know
   which files from the freebsd website to download and write to a CDRW orCDR
   could you direct me to the wright files and walk me through the process 
  of installing
   free bsd 

From what you have said, the first thing you need to do is read the
FreeBSD Handbook.  It is essential.  It walks you through a complete 
install and some of the extras you will want.   It is available
free on the FreeBSD website.

After you read that and try things, then, please ask more questions.

jerry


   thank you 
   brn_gst
 

 -
 Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, 
 news, photos  more. 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: File size discrepancies

2007-09-29 Thread Modulok
 du doesn't count in bytes; it counts in disk blocks or KB.  A 12KB
 difference is probably just due to better packing of directories in
 your newly-created tree as compared to your orignal one.  To figure out
 where the difference is, run du -a in both trees and diff the two
 outputs.

What I did to try and track down the problem:

du -a ./dirA | sort -n  dirA.tmp;
du -a ./dirB | sort -n  dirB.tmp;
diff dirA.tmp dirB.tmp;

# Exerp of the diff output:
 554372./images
 554362./images

 17007468 ./video
  17007466 ./video

The size discrepancy is the size of the directories, not the files
contained within those directories. To be sure I ran:

diff -r dirA/images dirB/images;

There appears to be no difference in the contents.

du doesn't count in bytes; it counts in disk blocks or KB.  A 12KB
difference is probably just due to better packing of directories in
your newly-created tree as compared to your orignal one.

So, the size of a directory itself can differ when the contents is
identical? This is news to me.

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


Re: CPU Monitoring Software

2007-09-29 Thread Momchil Ivanov
On Friday 28 September 2007 14:53:44 [EMAIL PROTECTED] wrote:
 I was wanting to see what my servers utilize as far as memory, disk, cpu,
 etc. over a certain time period.  Is there some software that I can use?
 I guess something like the 'top' command that gives an average output over
 a certain time.

 I downloaded sysstat for my linux boxes, but it does not want to compile
 under freebsd.

 Thanks.

You can use cacti + snmp. All you have to do is install and configure snmp on 
all your machines and then set up cacti + web server with php on some machine 
to gather all the info from the others via snmp. You will get nice graphs 
(cacti uses rrdtools) for almost everything you can get via snmp (disk usage, 
cpu utilization, network traffic, load average,...) where you can 
utilize hirstorical view (last week, last month, from xxx to xxx, ...).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to install harvard style

2007-09-29 Thread Lowell Gilbert
ronggui [EMAIL PROTECTED] writes:

 In order to install the harvard bibliography style , I have to edit
 'Makefile' setting 'bstdir', 'stydir', 'htmldir' and 'docdir' to values
 appropriate to your LaTeX installation. My question is how to figure out he
 bstdir etc.?

It should be fairly easy to find from the output of pkg_info -L for
whichever LaTeX package you have installed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cant send email using mail but it works telnetting...

2007-09-29 Thread Agus
2007/9/29, Christer Hermansson [EMAIL PROTECTED]:

 Agus wrote:
  Hi list...
 
  I gound a problem while trying to send an email with a script using mail
 -s
  Subject [EMAIL PROTECTED]
  Then i entered the data...finished with . but it gets stuck in the queue
  with this...
 
  V8
  T1191019178
  K1191020151
  N2
  P120418
  I0/80/47582
  MDeferred: Connection refused by himalaya.free-shells.com.ar.
  Fbs
  $_localhost [127.0.0.1]
  $rESMTP
  $severest.free-shells.com.ar
  ${daemon_flags}
  ${if_addr}127.0.0.1
  S[EMAIL PROTECTED]
  MDeferred: Connection refused by himalaya.free-shells.com.ar.
  rRFC822; [EMAIL PROTECTED]
  RPFD:[EMAIL PROTECTED]
  H?P?Return-Path: 81g
  H??Received: from everest.free-shells.com.ar (localhost [127.0.0.1])
  by everest.free-shells.com.ar (8.13.6/8.13.6) with ESMTP id
  l8SMdc7L021779
  for [EMAIL PROTECTED]; Fri, 28 Sep 2007 19:39:38
  -0300 (ART)
  (envelope-from [EMAIL PROTECTED])
  H??Received: (from [EMAIL PROTECTED])
  by everest.free-shells.com.ar (8.13.6/8.13.6/Submit) id
  l8SMdc3P021778
  for [EMAIL PROTECTED]; Fri, 28 Sep 2007 19:39:38 -0300 (ART)
  (envelope-from brahama)
  H??Date: Fri, 28 Sep 2007 19:39:38 -0300 (ART)
  H??From: User Brahama [EMAIL PROTECTED]
  H??Message-Id: [EMAIL PROTECTED]
  H??To: [EMAIL PROTECTED]
  H??Subject: subjet
  .
 
 
 
  My hostname is everestmy firewall/router name is himalaya
 
  I think the problem is that is trying to resolve to
  himalaya.free-shells.com.ar which is the FQDN in my NS
  could it be that? how can i bypass local mail to go directly to
 localhost
  sendmail...?
 
  Thanks...
 
  PS: While telneting localhost 25 and sending it manually works
 
 You want the mail to be delivered to the file /var/mail/username ?

 I just typed at my machine (running freebsd and sendmail)

 mail -s Testing [EMAIL PROTECTED]
 hello
 .

 and the mail got delivered to the file /var/mail/cat

 How is your sendmail configuration, I guess you have done some changes
 and not using the default ?

 --

 Christer Hermansson



 Hi Christer,

Thanks for the replyexactly that...i want the mail to be delivered to
[EMAIL PROTECTED] is i say...i got it stucked in the queue deferred

I didn't touch the sendmail conf..as far as i remember..also i dont know
much about sendmail conf so it would be difficult that i had modified
it...I'll check though

thanks...and have a nice weekend all
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Lowell Gilbert
Aryeh Friedman [EMAIL PROTECTED] writes:

 Currently I have done a build/installworld build/install/kernel using
 a i386 CPUTYPE (w/ SMP and APIC set in the kernel (I am using the
 default sys/i386/conf/GENERIC) do I need to change this to amd64 for a
 intel duo e6850?  (I have had several seemingly unrelated problems
 that no one seems to be able to reproduce)... btw it is a P35 chipset

It should work fine with either.  With large amounts of memory (over 4
gigabytes), amd64 will be better.  There are a few (mostly desktop-only)
ports that will run on i386 but not on amd64.

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


sshd+pam problem on a fresh 6.2-RELEASE (amd64) install

2007-09-29 Thread Josh Carroll
On a fresh install of FreeBSD 6.2 (amd64), I've run into a problem
with sshd and PAM. When the box first boots up, I cannot ssh in. I am
immediately disconnected. If I look in /var/log/auth.log, I see:

Sep 29 03:20:47 pflog sshd[68798]: in openpam_load_module(): no
pam_opieaccess.so found
Sep 29 03:20:47 pflog sshd[68798]: fatal: PAM: initialisation failed

The /etc/pam.d/sshd file is proper (verified via mergemaster). If I
comment out the lines for the opie and opieaccess module, it fails on
pam_login_access.so instead, with the same error. I also used the
default sshd_config, thinking maybe my customized one was causing a
problem. It had the same problem, however, and does this with or
without UsePAM yes in sshd_config.

Now, here's the weird part: if I restart sshd, it works fine.

As a workaround, I can do something ugly like /etc/rc.d/sshd restart
in another rc script, but would obviously like to avoid this and find
the root cause.

Any ideas? I tried doing an ldd on /usr/lib/pam* inside the
/etc/rc.d/sshd script, but the output is identical when it starts up
on boot as when I restart it. No missing libraries/etc.

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


Re: File size discrepancies

2007-09-29 Thread Lowell Gilbert
Modulok [EMAIL PROTECTED] writes:

 So, the size of a directory itself can differ when the contents is
 identical? This is news to me.

If you delete files from a directory, the storage used for the
directory entries is not freed.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Security report question

2007-09-29 Thread Kurt Buff
I've noted in a security mail from one of my machines the following log entries:

+++ /tmp/security.yEepp7hR  Sat Sep 29 03:02:07 2007
+Limiting closed port RST response from 253 to 200 packets/sec
+Limiting closed port RST response from 233 to 200 packets/sec
+Limiting closed port RST response from 262 to 200 packets/sec
+Limiting closed port RST response from 283 to 200 packets/sec


I don't know what this means, though I suspect it could mean that I'm
being port scanned. Is this a reasonable guess?

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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Aryeh Friedman
I have more then 4gb and was wondering why it didn't all show up
is there anyway to do a in place upgrade (I have a lot of user
data)... also someone should think about changing the naming on the
iso/cpu types since 20 years of industry experience (15 with FreeBSD)
and reading hardware.txt did not give a clue on this.

--Aryeh

On 9/29/07, Lowell Gilbert [EMAIL PROTECTED] wrote:
 Aryeh Friedman [EMAIL PROTECTED] writes:

  Currently I have done a build/installworld build/install/kernel using
  a i386 CPUTYPE (w/ SMP and APIC set in the kernel (I am using the
  default sys/i386/conf/GENERIC) do I need to change this to amd64 for a
  intel duo e6850?  (I have had several seemingly unrelated problems
  that no one seems to be able to reproduce)... btw it is a P35 chipset

 It should work fine with either.  With large amounts of memory (over 4
 gigabytes), amd64 will be better.  There are a few (mostly desktop-only)
 ports that will run on i386 but not on amd64.


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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Josh Carroll
On 9/29/07, Aryeh Friedman [EMAIL PROTECTED] wrote:
 I have more then 4gb and was wondering why it didn't all show up
 is there anyway to do a in place upgrade (I have a lot of user
 data)... also someone should think about changing the naming on the
 iso/cpu types since 20 years of industry experience (15 with FreeBSD)
 and reading hardware.txt did not give a clue on this.

Please don't top-post. Anyway, if you're not seeing all 4G, then you
are most likely running an i386 kernel/release and not amd64. In order
to use 4G on a 32-bit (i386) install, you need to include:

options PAE

In your kernel config. Note that memory access with PAE is much slower
than if you were running a native amd64 kernel/install.

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


Re: Questions on the scheduler

2007-09-29 Thread Kris Kennaway

RW wrote:


The FreeBSD response was to make the kernel more SMP friendly with
finer-grained locking, and to bring-in the ULE scheduler. Dragonfly BSD
was a fork off 4.x by people who thought a more radical kernel rewrite
was needed. Their kernel avoids a lot of the locking problems by using
message queues.


Just to clarify, that was the theory and intention behind Dragonfly, but 
in practise they have yet to achieve it after 4 years and any benefits 
of their ideas remain unproven.  Basically they have achieved no 
performance gains on SMP and have effectively abandoned working on it.


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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Aryeh Friedman
 Please don't top-post. Anyway, if you're not seeing all 4G, then you
 are most likely running an i386 kernel/release and not amd64. In order
 to use 4G on a 32-bit (i386) install, you need to include:

 options PAE

I already tried that and it barfed on a cast in adavsys.c (forget what
subdir) and no amount of hand editing corrected it (generated file?).

That is why I was asking if a in place upgrade to amd64 native was possible
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Questions on the scheduler

2007-09-29 Thread Oliver Herold
Are there any numbers or technical papers? Just out of curiosity.

Cheers, Oliver

On Sat, Sep 29, 2007 at 06:10:50PM +0200, Kris Kennaway wrote:
 RW wrote:
 
 The FreeBSD response was to make the kernel more SMP friendly with
 finer-grained locking, and to bring-in the ULE scheduler. Dragonfly BSD
 was a fork off 4.x by people who thought a more radical kernel rewrite
 was needed. Their kernel avoids a lot of the locking problems by using
 message queues.
 
 Just to clarify, that was the theory and intention behind Dragonfly, but in 
 practise they have yet to achieve it after 4 years and any benefits of 
 their ideas remain unproven.  Basically they have achieved no performance 
 gains on SMP and have effectively abandoned working on it.
 
 Kris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

-- 
Why did the Lord give us so much quickness of
movement unless it was to avoid responsibility with?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Abdullah Ibn Hamad Al-Marri
On 9/29/07, Aryeh Friedman [EMAIL PROTECTED] wrote:
  Please don't top-post. Anyway, if you're not seeing all 4G, then you
  are most likely running an i386 kernel/release and not amd64. In order
  to use 4G on a 32-bit (i386) install, you need to include:
 
  options PAE

 I already tried that and it barfed on a cast in adavsys.c (forget what
 subdir) and no amount of hand editing corrected it (generated file?).

 That is why I was asking if a in place upgrade to amd64 native was possible

I think you need to start from the scratch to use AMD64 arch.


-- 
Regards,

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


Re: Questions on the scheduler

2007-09-29 Thread Kris Kennaway

Oliver Herold wrote:

Are there any numbers or technical papers? Just out of curiosity.


I ran a mysql benchmark against Dragonfly-current and FreeBSD 7 on an 
8-core machine (one of the workloads that FreeBSD now performs very well 
at) and found 0 scaling on dragonfly.  Their developers confirmed that 
the kernel is still entirely giant locked (as in FreeBSD 4) so no SMP 
performance benefits are possible.


The email thread is here:

  http://leaf.dragonflybsd.org/mailarchive/users/2007-05/msg00134.html

although the linked graph is offline.  The FreeBSD curve was essentially 
this one (FreeBSD has improved further since then):


  http://people.freebsd.org/~kris/scaling/scaling.png

with dragonfly a flat line at ~500 tps independent of load.

Kris

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


Re: Questions on the scheduler

2007-09-29 Thread Oliver Herold
Thanks :-)

Cheers, Oliver


On Sat, Sep 29, 2007 at 06:45:20PM +0200, Kris Kennaway wrote:
 Oliver Herold wrote:
 Are there any numbers or technical papers? Just out of curiosity.
 
 I ran a mysql benchmark against Dragonfly-current and FreeBSD 7 on an 
 8-core machine (one of the workloads that FreeBSD now performs very well 
 at) and found 0 scaling on dragonfly.  Their developers confirmed that the 
 kernel is still entirely giant locked (as in FreeBSD 4) so no SMP 
 performance benefits are possible.
 
 The email thread is here:
 
   http://leaf.dragonflybsd.org/mailarchive/users/2007-05/msg00134.html
 
 although the linked graph is offline.  The FreeBSD curve was essentially 
 this one (FreeBSD has improved further since then):
 
   http://people.freebsd.org/~kris/scaling/scaling.png
 
 with dragonfly a flat line at ~500 tps independent of load.
 
 Kris
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

-- 
Per buck you get more computing action with the small computer.
-- R. W. Hamming
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Questions on the scheduler

2007-09-29 Thread Abdullah Ibn Hamad Al-Marri
On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 Oliver Herold wrote:
  Are there any numbers or technical papers? Just out of curiosity.

 I ran a mysql benchmark against Dragonfly-current and FreeBSD 7 on an
 8-core machine (one of the workloads that FreeBSD now performs very well
 at) and found 0 scaling on dragonfly.  Their developers confirmed that
 the kernel is still entirely giant locked (as in FreeBSD 4) so no SMP
 performance benefits are possible.

 The email thread is here:

http://leaf.dragonflybsd.org/mailarchive/users/2007-05/msg00134.html

 although the linked graph is offline.  The FreeBSD curve was essentially
 this one (FreeBSD has improved further since then):

http://people.freebsd.org/~kris/scaling/scaling.png

 with dragonfly a flat line at ~500 tps independent of load.

 Kris

How does NetBSD, and OpenBSD scale when it comes to SMP comparing to
FreeBSD 7.0?


-- 
Regards,

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


Re: Questions on the scheduler

2007-09-29 Thread Oliver Herold
OpenBSD isn't about performance, so it will be most of the time inferior.

http://mail-index.netbsd.org/tech-kern/2007/09/28/0014.html

Maybe this is of some help. But if compare it to Jeffs FreeBSD/Linux benches it
looks rather strange to me.

Cheers, Oliver

On Sat, Sep 29, 2007 at 08:08:53PM +0300, Abdullah Ibn Hamad Al-Marri wrote:
 On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:
  Oliver Herold wrote:
   Are there any numbers or technical papers? Just out of curiosity.
 
  I ran a mysql benchmark against Dragonfly-current and FreeBSD 7 on an
  8-core machine (one of the workloads that FreeBSD now performs very well
  at) and found 0 scaling on dragonfly.  Their developers confirmed that
  the kernel is still entirely giant locked (as in FreeBSD 4) so no SMP
  performance benefits are possible.
 
  The email thread is here:
 
 http://leaf.dragonflybsd.org/mailarchive/users/2007-05/msg00134.html
 
  although the linked graph is offline.  The FreeBSD curve was essentially
  this one (FreeBSD has improved further since then):
 
 http://people.freebsd.org/~kris/scaling/scaling.png
 
  with dragonfly a flat line at ~500 tps independent of load.
 
  Kris
 
 How does NetBSD, and OpenBSD scale when it comes to SMP comparing to
 FreeBSD 7.0?
 
 
 -- 
 Regards,
 
 -Abdullah Ibn Hamad Al-Marri
 Arab Portal
 http://www.WeArab.Net/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


Slight problem with pinentry / gnupg

2007-09-29 Thread bsd
Hello, It seems I have a slight problem when trying to issue a simple  
pgp command such as :




# gpg -v --detach-sign -a tmp.txt

┌─── 
─┐

│ You need a passphrase to unlock the secret key for user:  │
│ Greg Bernard [EMAIL PROTECTED]│
│ 1024-bit DSA key, ID 1BA3C2FD, created 2002-01-14 │
│   │
│ Passphrase *_ │
│   │
│ OK   Cancel   │
└─── 
─┘


pinentry in free(): error: chunk is already free
gpg-agent[4248]: command get_passphrase failed: End of file
gpg: problem with the agent: IPC write error
gpg: Invalid passphrase; please try again ...

You need a passphrase to unlock the secret key for
user: Greg Bernard [EMAIL PROTECTED]
1024-bit DSA key, ID 1BA3C2FD, created 2002-01-14

gpg: problem with the agent: IPC write error
gpg: no default secret key: General error
gpg: signing failed: General error


Any idea ??

Googling around, I have found a bug reported as :

a ports/79351  lofi   Character passing error in security/ 
pinentry-qt



Which seems to be the same as my problem ??


 


Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz
 



P Please consider your environmental responsibility before printing  
this e-mail



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


Re: Questions on the scheduler

2007-09-29 Thread Kris Kennaway

Abdullah Ibn Hamad Al-Marri wrote:

On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:

Oliver Herold wrote:

Are there any numbers or technical papers? Just out of curiosity.

I ran a mysql benchmark against Dragonfly-current and FreeBSD 7 on an
8-core machine (one of the workloads that FreeBSD now performs very well
at) and found 0 scaling on dragonfly.  Their developers confirmed that
the kernel is still entirely giant locked (as in FreeBSD 4) so no SMP
performance benefits are possible.

The email thread is here:

   http://leaf.dragonflybsd.org/mailarchive/users/2007-05/msg00134.html

although the linked graph is offline.  The FreeBSD curve was essentially
this one (FreeBSD has improved further since then):

   http://people.freebsd.org/~kris/scaling/scaling.png

with dragonfly a flat line at ~500 tps independent of load.

Kris


How does NetBSD, and OpenBSD scale when it comes to SMP comparing to
FreeBSD 7.0?


I was unable to boot NetBSD reliably on my hardware (the serial console 
only worked about 1/8 of the time) and did not even bother with OpenBSD 
because there is no reason to think they will be a contender for 
performance.


One of the NetBSD developers recently posted a comparison on old 
4*pentium 3 hardware, but their numbers are highly suspicious to me 
since they are way out of line with what I have measured on similar 
FreeBSD systems.  I am waiting to hear back from him about it.


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


Re: Questions on the scheduler

2007-09-29 Thread Kris Kennaway

Oliver Herold wrote:

OpenBSD isn't about performance, so it will be most of the time inferior.

http://mail-index.netbsd.org/tech-kern/2007/09/28/0014.html

Maybe this is of some help. But if compare it to Jeffs FreeBSD/Linux benches it
looks rather strange to me.


Yeah, that's the one I am talking about.  He didn't provide any details 
of configuration, settings or tuning so it is not yet possible to 
understand what the graphs mean, if anything.


Kris

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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Aryeh Friedman
Would the following procedure work to do an inplace upgrade:

1. Download the amd64 iso
2. Install it on a spare disk/partition
3. Do a cvsup on it's /usr/src
4. Make buildworld/buildkernel
5. Mount the x86 disk/partition
6. Copy /usr/obj (and /usr/src for good measure) from the amd
partition to the x48
7. Reboot with x86 partition
8. Make installkernel/installworld mergemaster on x86 partition
9. Now the non-ports section OS is amd64
10. pkg_del /var/db/pkg/*; rm -rf /usr/ports/ /usr/local
11. Reftp ports.tar.gz and rebuild all the ports (I have about 10 top
level ports installed the rest are dependicies so this straight
forward)

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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Duane Hill

On Sat, 29 Sep 2007 at 18:21 -, [EMAIL PROTECTED] confabulated:


Would the following procedure work to do an inplace upgrade:

1. Download the amd64 iso
2. Install it on a spare disk/partition
3. Do a cvsup on it's /usr/src
4. Make buildworld/buildkernel
5. Mount the x86 disk/partition
6. Copy /usr/obj (and /usr/src for good measure) from the amd
partition to the x48
7. Reboot with x86 partition
8. Make installkernel/installworld mergemaster on x86 partition
9. Now the non-ports section OS is amd64
10. pkg_del /var/db/pkg/*; rm -rf /usr/ports/ /usr/local
11. Reftp ports.tar.gz and rebuild all the ports (I have about 10 top
level ports installed the rest are dependicies so this straight
forward)

So does it work?


Keep in mind, in your step 10, the OP will be removing more than just 
stuff from installed packages/ports if you 'rm -rf /usr/local'. If 
anything was built/installed manually from a source archive, for instance.


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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Aryeh Friedman wrote:
 Would the following procedure work to do an inplace upgrade:
 
 1. Download the amd64 iso
 2. Install it on a spare disk/partition
 3. Do a cvsup on it's /usr/src
 4. Make buildworld/buildkernel

4.5 Install the updated kernel on the spare disk, reboot, then do
the usual installworld stuff to verify that the amd64 world you
built works correctly.

 5. Mount the x86 disk/partition
 6. Copy /usr/obj (and /usr/src for good measure) from the amd
 partition to the x48

No need to do this.  If you're booted from your temporary amd64
root and have your original i386 root+world mounted at eg
/mnt/i386/ then you can do this:

cd /usr/src
make installkernel installworld DESTDIR=/mnt/i386
mergemaster -D /mnt/i386

However you'ld better have done a test reboot with the new amd64 kernel
before installing it like this -- if the new kernel won't boot then
the commands above will have very effectively hosed your system such
that the only way back is to recover from backup.


 7. Reboot with x86 partition
 8. Make installkernel/installworld mergemaster on x86 partition

No need to do 7 and 8 -- just reboot here.  You'll end up with an
amd64 system trying to run a bunch of i386 ports -- probably best
to have temporarily commented out large parts of /etc/rc.conf around
step (6) to keep things a little more sane.  Or just reboot to single
user mode, and do all of the ports recompiling in single user.

 9. Now the non-ports section OS is amd64
 10. pkg_del /var/db/pkg/*; rm -rf /usr/ports/ /usr/local
 11. Reftp ports.tar.gz and rebuild all the ports (I have about 10 top
 level ports installed the rest are dependicies so this straight
 forward)

No need to blow away /usr/ports -- it's the same for all
architectures after all, plus you would have to re-download all
the source tarballs too.

No need to completely blow away /usr/local either -- unless you've
got a lot of other software not installed from ports.  Not blowing
away /usr/local means that your config files, web content etc. should
still be there, and usually there's little or nothing to change in
that sort of stuff between i386 and amd64.

   cd /var/db/pkg
   pkg_delete * 
   cd  /usr/ports/foo/bar
   make install
   etc...

Other things to consider -- are you running any databases -- MySQL,
Postgres, LDAP, that sort of thing?  In which case you should dump out
the DB contents to some device independant format before you start.
I can't say for certain, but it's quite possible that there will be
architecture dependant binary data structures used by that sort of
program, which could mean you would have to reload your data into a
fresh install of the application.

 So does it work?

Don't see why not.  The plan looks quite workable to me.  This is a
major operation however, and will take all day even if it goes smoothly.
Plus you're at quite high risk of rendering your system so completely
banjaxed that your only recourse is to recover from backup.  So make
sure you've got good backups.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG/qK+8Mjk52CukIwRCKPmAJ0T0kmuyLnTL97cfJ1Sh+wAc/L61ACgj/R1
sYRHeSIKWwapAIp59SMLaAg=
=yg2W
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


7.0-CURRENT Ports Collection?

2007-09-29 Thread James Jeffery
Does 7.0 come with a disk for the Ports Collection or would they have
to be downloaded from the internet?

Im having trouble getting packages from the web, lots of errors when i
try to install them. Everything seems dependant on everything else.

Once i get the SSH to work i will post some output. But for now, is there
a problem installing packages on 7.0?

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


Re: 7.0-CURRENT Ports Collection?

2007-09-29 Thread Kris Kennaway

James Jeffery wrote:

Does 7.0 come with a disk for the Ports Collection or would they have
to be downloaded from the internet?


When it is released you will be able to buy a CD set containing some of 
the packages, but if you are downloading then you will have to use the 
usual methods for adding them (pkg_add -r, etc).



Im having trouble getting packages from the web, lots of errors when i
try to install them. Everything seems dependant on everything else.


Well yeah, lots of packages do :)


Once i get the SSH to work i will post some output. But for now, is there
a problem installing packages on 7.0?


Not in general.  Get back to us when you have more details.

Kris

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


Research about FreeBSD - Suppor from experts required

2007-09-29 Thread DBSM

Hi to all ! 

Recently I started in my Buss. School a research about the impact of FreeBSD
on the open source industry. I exchaged some innitial questions and receive
good support. At this level I would like to ask FreeBSD some 2nl level
questions intented to focalize my research 

1. Is there an idea of what % of the markets share is owned by FreeBSD when
comparing iwth others O/S such as Red Hat , Ubunto ? I know this is a very
open question what an iniitial idea would be helpful to me. 

2. Usually in what applications are runned over FreeBSD ? I read about
FreeNAS as a Storage application built around FreeBSD

3. Usually in what kind of HW does FreeBSD is installed (Laptop, Desktops,
Servers ? )

Thanks very much for your support ! 

Danilo B.
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Research-about-FreeBSD---Suppor-from-experts-required-tf4540646.html#a12958961
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: 7.0-CURRENT Ports Collection?

2007-09-29 Thread Aryeh Friedman
Are you attempting to download ports on 6.2 before you move to 7 or on
7?  If the and your on a SMP (dual core don't know about physically
seperate) there are some known issues in the protocol stack

On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 James Jeffery wrote:
  Does 7.0 come with a disk for the Ports Collection or would they have
  to be downloaded from the internet?

 When it is released you will be able to buy a CD set containing some of
 the packages, but if you are downloading then you will have to use the
 usual methods for adding them (pkg_add -r, etc).

  Im having trouble getting packages from the web, lots of errors when i
  try to install them. Everything seems dependant on everything else.

 Well yeah, lots of packages do :)

  Once i get the SSH to work i will post some output. But for now, is there
  a problem installing packages on 7.0?

 Not in general.  Get back to us when you have more details.

 Kris

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

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


Re: 7.0-CURRENT Ports Collection?

2007-09-29 Thread Kris Kennaway

Aryeh Friedman wrote:

Are you attempting to download ports on 6.2 before you move to 7 or on
7?  If the and your on a SMP (dual core don't know about physically
seperate) there are some known issues in the protocol stack


Er, what issues, pray tell? :)

Kris

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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread Aryeh Friedman
 2. Install it on a spare disk/partition

How do I force sysinstall to only slice and install on the spare
partition (don't have a spare disk)

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


Re: 7.0-CURRENT Ports Collection?

2007-09-29 Thread Aryeh Friedman
On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:
 Aryeh Friedman wrote:
  Are you attempting to download ports on 6.2 before you move to 7 or on
  7?  If the and your on a SMP (dual core don't know about physically
  seperate) there are some known issues in the protocol stack

 Er, what issues, pray tell? :)

Namely hangs and lacks of connects (in some cases you will need to
manually fetch the dist file [it may take several attempts {*DO NOT*
erase the old dist file after each attempt}])

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


Re: 7.0-CURRENT Ports Collection?

2007-09-29 Thread Kris Kennaway

Aryeh Friedman wrote:

On 9/29/07, Kris Kennaway [EMAIL PROTECTED] wrote:

Aryeh Friedman wrote:

Are you attempting to download ports on 6.2 before you move to 7 or on
7?  If the and your on a SMP (dual core don't know about physically
seperate) there are some known issues in the protocol stack

Er, what issues, pray tell? :)


Namely hangs and lacks of connects (in some cases you will need to
manually fetch the dist file [it may take several attempts {*DO NOT*
erase the old dist file after each attempt}])


Sounds bizarre and unexpected.  Have you filed a PR with tcpdumps, etc?

Kris

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


HP Server compatability

2007-09-29 Thread Tim Kellers
I thought e would be purchasing a Dell 2950 to use as part of our 
FreeBSD 6.2 server farm, (and thanks to everyone for their informed 
replies), but due to other circumstances, our client wants to purchase a 
HP ProLiant ML350 G5 SAS LFF - Rack Server.


The only experience I have with HP is their printers and I know nothing 
about their server compatability with FreeBSD.  Does anyone know if this 
unit is compatible with FreeBSD 6.2 or has anyone actually installed it 
on one?  Any pointer to pitfalls and/or workarounds would be greatly 
appreciated.


Thanks

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


Re: what cpu type to use for a intel duo e6850 (i386 or amd64)

2007-09-29 Thread RW
On Sat, 29 Sep 2007 16:03:05 +
Aryeh Friedman [EMAIL PROTECTED] wrote:

 I have more then 4gb and was wondering why it didn't all show up
 is there anyway to do a in place upgrade (I have a lot of user
 data)... also someone should think about changing the naming on the
 iso/cpu types since 20 years of industry experience (15 with FreeBSD)
 and reading hardware.txt did not give a clue on this.

What's confusing? 

i386 is for 386 compatible processors - a 32-bit OS for 32-bit
processors, which is therefore limited to 2^32 bytes (4GiB) without the
PAE workaround.

amd64 is for AMD 64 compatible processors operated in 64-bit mode.

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


portupgrade coredumps

2007-09-29 Thread Ihsan Dogan
Hello,

Recently, I've run into this problem:

--
[EMAIL PROTECTED]:~# portupgrade -a
[Updating the pkgdb format:dbm_hash in /var/db/pkg ... - 655 packages
found (-2 +1) (...)/usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:429: [BUG]
Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-freebsd6]

Abort trap: 6 (core dumped)
--
(gdb) bt
#0  0x28260613 in kill () from /lib/libc.so.6
#1  0x28178447 in raise () from /lib/libpthread.so.2
#2  0x2825f1e8 in abort () from /lib/libc.so.6
#3  0x28099d74 in rb_bug () from /usr/local/lib/libruby18.so.18
#4  0x2811991b in ruby_digitmap () from /usr/local/lib/libruby18.so.18
#5  0x28131d41 in ruby_release_date () from /usr/local/lib/libruby18.so.18
#6  0x28131d36 in ruby_platform () from /usr/local/lib/libruby18.so.18
#7  0x28131d28 in ruby_patchlevel () from /usr/local/lib/libruby18.so.18
#8  0xbfbf1980 in ?? ()
#9  0x in ?? ()
#10 0x in ?? ()
#11 0x0002 in ?? ()
#12 0x in ?? ()
#13 0x280a6832 in rb_call0 () from /usr/local/lib/libruby18.so.18
Previous frame inner to this frame (corrupt stack?)
--
[EMAIL PROTECTED]:~# pkg_info | grep ruby
ruby-1.8.6_2,1  An object-oriented interpreted scripting language
[EMAIL PROTECTED]:~# pkg_info | grep portupgrade
portupgrade-2.3.1,2 FreeBSD ports/packages administration and management
tool s
--

What's going wrong here?



Ihsan

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


Is gmirror safer with load algorithm than round-robin?

2007-09-29 Thread Merot Kassad
List,

I've been running into problems with gmirror and weak SATA controllers that
appear to not handle the rapid simultaneous traffic to different
disks.(Causes crashes.)

I've seen other people have had these problems as well, and was wondering if
anyone here knows if I could expect a difference between the load and
round-robin algorithms with regards to this problem. Looking at
gstat I see that with round-robin the reads to the mirror are
distributed half and half to each provider, while with load
I'm able to track the switching back and forth between the providers with
the naked eye so to speak. My reasoning is that this should stress the
controller less, could this be the case?

Also, I'm wondering if anyone here have tested the recent patch by Mykola
Zubach to the gmirror load algorith, and can relate their experiences.

Sincerely,

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


Re: 6.2 amd64 ufs_dirbad

2007-09-29 Thread Brian A. Seklecki
Can you post your dmesg(8) from /var/run/dmesg(8) so that we can see
your SATA controller information?

Can you try loading /usr/obj and /usr/src onto an alternate disk to see
if the problem is controller/HBA/sata cable/disk related?

~BAS

On Fri, 2007-09-28 at 10:33 -0700, Eric Osterweil wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 
 I've been chasing my tail with a problem for a few days now and I'm  
 about to throw in the towel.  I have a Tyan Thunder K8SR w/ 2  
 amd64's, 6GB of mem, and a 250 GB SATA drive.
 
 I've been trying to get FreeBSD 6.2 amd64 on it.  When I do the  
 install, if I try to put the ports on, it reliably crashes with a  
 ufs_dirbad.  I can install w/o the ports.  I found a ref to booting  
 with:
 set hw.physmem=4G
 and that gets me through (w/ the ports).
 
 When I buildworld, I eventually get the same ufs_dirbad.
 
 I have swapped out the drive and tried a new one (same problem).   
 WHenever I reboot (at all) if I fsck I see lots of filesystem  
 errors.  I just did a memtest86 over night, and found no problems.
 
 Can anyone help me out here?  I can provide any other info that would  
 help.
 
 Thanks,
 
 Eric
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (Darwin)
 
 iD8DBQFG/Tr8K/tq6CJjZQIRAjwKAJ48hBPeFwnSBQaykw7rJsNW49Rt3wCeO0HY
 yxThKkuyCTPJOjfTw2KWsp4=
 =syDq
 -END PGP SIGNATURE-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 
 
 

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


Re: Cant send email using mail but it works telnetting...

2007-09-29 Thread Christer Hermansson

Agus wrote:

You want the mail to be delivered to the file /var/mail/username ?

I just typed at my machine (running freebsd and sendmail)

mail -s Testing [EMAIL PROTECTED]
hello
.

and the mail got delivered to the file /var/mail/cat

How is your sendmail configuration, I guess you have done some changes
and not using the default ?

--

Christer Hermansson



Hi Christer,



Thanks for the replyexactly that...i want the mail to be delivered to
[EMAIL PROTECTED] is i say...i got it stucked in the queue deferred

I didn't touch the sendmail conf..as far as i remember..also i dont know
much about sendmail conf so it would be difficult that i had modified
it...I'll check though

thanks...and have a nice weekend all

  

This is just a guess:

Maybe you have changed the line

# root: [EMAIL PROTECTED]

in the file /etc/mail/aliases

--

Christer Hermansson


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


Re: Cant send email using mail but it works telnetting...

2007-09-29 Thread Agus
2007/9/29, Christer Hermansson [EMAIL PROTECTED]:

 Agus wrote:
  You want the mail to be delivered to the file /var/mail/username ?
 
  I just typed at my machine (running freebsd and sendmail)
 
  mail -s Testing [EMAIL PROTECTED]
  hello
  .
 
  and the mail got delivered to the file /var/mail/cat
 
  How is your sendmail configuration, I guess you have done some changes
  and not using the default ?
 
  --
 
  Christer Hermansson
 
 
 
  Hi Christer,
 
 
  Thanks for the replyexactly that...i want the mail to be delivered
 to
  [EMAIL PROTECTED] is i say...i got it stucked in the queue
 deferred
 
  I didn't touch the sendmail conf..as far as i remember..also i dont know
  much about sendmail conf so it would be difficult that i had modified
  it...I'll check though
 
  thanks...and have a nice weekend all
 
 
 This is just a guess:

 Maybe you have changed the line

 # root: [EMAIL PROTECTED]

 in the file /etc/mail/aliases

 --

 Christer Hermansson


 No Christerthe line is the same as the one you put...it is also
commented...

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


upgrading for cups-base 1.3.0

2007-09-29 Thread vujke
First time when I try to update caps-base didn't succeed, then I 
unchecked flag (and don't know why) Build with GNUTLS Library and left 
only one Build PYTHON suport after that, everything was good, last 
night was updated to 1.3.0 and tonight to 1.3.0_1, now, is that flag, 
GNUTLS is going to hunt me down later or.?

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


Re: How to restart a freezed tty?

2007-09-29 Thread Brian A. Seklecki


On Sat, 2007-09-29 at 13:16 +0330, Bahman M. wrote:
 Hi all,
 
 For some reason all the ttys are frozen up; I can switch between X and
 them back and forth but not between the ttys themselves using ALT+Fn.

Can you start new xterms?  When you say 'frozen', do they not accept
keyboard input?  Is it possible scroll-lock is enabled?  What about the
TTY that you started Xorg from?

Is this temporal? When did it start happening?  

Is there anything in /var/log/messages?

Did you try: $ sudo pkill -HUP init ?

~BAS

 I tried killing them; they terminate and restart but still
 frozen.  I don't believe the only way out is to restart the system.
 
 How to make ttys behave normally?  I'd appreciate any idea.
 FreeBSD 6.2-RELEASE-p7 
 xorg-7.2
 fluxbox-1.0rc3_3
 
 TIA,
 
 Bahman
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 
 
 

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


Re: Deny access from localhost to internet.....

2007-09-29 Thread RW
On Sun, 30 Sep 2007 02:22:42 +0200
Sten Daniel Soersdal [EMAIL PROTECTED] wrote:

 Agus wrote:
  Hi guys,
  
  How are you today?
  The question is this..I want to restrict external access, that is
  from my BSD to the internet, to some groups of users. Other groups
  i want to access internet normally. I dont want this group of users
  to be able to establish connections to the internet but yes to the
  internal systems on the LAN...
  
  Is this possible without hacking the kernel?
  
  Thanks and salutes for all
  
 
 You want to restrict internet, but not LAN, access for certain users 
 logged into your BSD box?
 
 man ipfw  ( look for uid and gid )
 man pf( look for user and group )
 

Danger Will Robinson!

Don't do that unless you've read the bugs sections of the ipfw
and pf.conf man pages.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Bridging interfaces

2007-09-29 Thread Simon Timms
Hello,
I seem to be having some trouble bridging interfaces in FreeBSD 6.2-STABLE.
What I have are two interfaces

rl0 - 192.168.2.2
sis0 - 192.168.1.2

and a bridge I've set up following the pages in the handbook.  However
frames don't seem to be routed from one interface to the other.  The
internet gateway for the networks lives on 192.168.1.1 and I am able to
reach the internet from boxes on the 192.168.1.0/24 subnet but not from the
other.  Tracing the route from a box on the 192.168.2.0/24 subnet the
connection times out on the freebsd box, orinoco.

On orinoco:

[EMAIL PROTECTED] /usr/pub/distfiles]$ ping freebsd.org
PING freebsd.org (69.147.83.40): 56 data bytes
64 bytes from 64.191.203.30: icmp_seq=0 ttl=244 time=79.676 ms
64 bytes from 64.191.203.30: icmp_seq=1 ttl=244 time=69.009 ms
^C
--- digg.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 69.009/74.343/79.676/5.334 ms

[EMAIL PROTECTED] /usr/pub/distfiles]$ traceroute freebsd.org
traceroute to freebsd.org (69.147.83.40), 64 hops max, 40 byte packets
 1  wireless (192.168.1.1)  0.849 ms  0.792 ms  0.740 ms
 2  * * *
 3  rd1no-ge7-0-0-2.cg.shawcable.net (64.59.131.210)  9.407 ms  9.793 ms
9.648 ms
 4  rc1no-ge6-0-0.cg.shawcable.net (66.163.77.5)  9.754 ms  9.887 ms  9.453ms
 5  rc1so-pos15-0.cg.shawcable.net (66.163.77.9)  10.553 ms  9.192 ms *
 6  rc1wh-pos3-0-0.vc.shawcable.net (66.163.77.197)  22.346 ms  53.143 ms
22.748 ms
 7  rc1wt-pos1-0-0.wa.shawcable.net (66.163.76.2)  27.164 ms  29.142 ms
25.660 ms
 8  six.yahoo.com (198.32.180.98)  28.643 ms  30.031 ms  36.214 ms
 9  ge-0-2-0.pat2.swp.yahoo.com (216.115.110.33)  25.840 ms  28.536 ms
27.054 ms
10  so-1-0-0.pat1.pdx.yahoo.com (216.115.110.39)  37.792 ms  36.867 ms
34.238 ms
11  so-3-0-0.pat1.sjc.yahoo.com (216.115.110.36)  47.776 ms  52.997 ms
46.636 ms
12  g-0-0-0-p160.msr1.sp1.yahoo.com (216.115.107.57)  46.840 ms
g-1-0-0-p170.msr2.sp1.yahoo.com (216.115.107.85)  50.327 ms
g-1-0-0-p160.msr1.sp1.yahoo.com (216.115.107.61)  51.827 ms
13  ge-1-46.bas-b1.sp1.yahoo.com (209.131.32.43)  50.238 ms
ge-1-41.bas-b2.sp1.yahoo.com (209.131.32.33)  52.068 ms
ge-1-48.bas-b1.sp1.yahoo.com (209.131.32.47)  49.095 ms
14  freebsd.org (69.147.83.40)  51.419 ms  51.483 ms  50.079 ms


On a 192.168.2.0/24 side box

[EMAIL PROTECTED] ~]$ traceroute freebsd.org
traceroute to freebsd.org (69.147.83.40), 30 hops max, 40 byte packets
 1  orinoco (192.168.2.2)  0.627 ms  0.444 ms  0.313 ms
 2  * * *
 3  * * *
...

Output of Ifconfig on orinoco

sis0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
ether 00:d0:09:f8:f7:5a
media: Ethernet autoselect (100baseTX full-duplex)
status: active
rl0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST mtu 1500
options=8VLAN_MTU
inet 192.168.2.2 netmask 0xff00 broadcast 192.168.2.255
ether 00:e0:29:43:ef:db
media: Ethernet autoselect (100baseTX full-duplex)
status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff00
bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
ether 46:50:6b:b3:54:0d
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto stp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: rl0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP
member: sis0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP

Any idea what I'm doing incorrectly?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Deny access from localhost to internet.....

2007-09-29 Thread Sten Daniel Soersdal

Agus wrote:

Hi guys,

How are you today?
The question is this..I want to restrict external access, that is from my
BSD to the internet, to some groups of users. Other groups i want to access
internet normally. I dont want this group of users to be able to establish
connections to the internet but yes to the internal systems on the LAN...

Is this possible without hacking the kernel?

Thanks and salutes for all



You want to restrict internet, but not LAN, access for certain users 
logged into your BSD box?


man ipfw( look for uid and gid )
man pf  ( look for user and group )



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


Re: Bridging interfaces

2007-09-29 Thread Simon Timms
Thanks for your help Chris, I ended up rebooting the router since I wasn't
sure what manner of nonsense I'd put in and everything is working.

On 9/29/07, Christopher Cowart [EMAIL PROTECTED] wrote:

 On Sat, Sep 29, 2007 at 09:49:36PM -0600, Simon Timms wrote:
  That makes a lot of sense, but I suppose I still don't understand why
 this
  isn't working.  The handbook section on routing is pretty basic and it
 seems
  to come down to setting net.inet.ip.forwarding to 1 if you want to route
  packets between interfaces on a dual-homed host.  I'm able to reach
 hosts on
  both subnets from the router and my routing table looks like:
 
  Internet:
  DestinationGateway  Flags   Refs  Use  Netif
  Expire
  default   wireless   UGS 0  9905
  sis0
  localhost   localhost  UH0   134
  lo0
  192.168.1  link#1  UC0
 0
  sis0
  orinoco  00:d0:09:f8:f7:5a  UHLW   1
 268lo0
  192.168.1.255ff:ff:ff:ff:ff:ffUHLWb 1 87
  sis0
  192.168.2  link#2  UC0 0
  rl0
  192.168.2.255ff:ff:ff:ff:ff:ffUHLWb 187
  rl0

 Are your 192.168.2/24 machines configured to use 192.168.2.2 as their
 default router? They don't know where 192.168.1.2 is, because they
 don't see it as being on the same link. The subnet mask is used to
 determine this kind of reachability.

 You could probably use 192.168.1.2 as your default router, as long as
 you created a static route `route add 192.168.1/24 192.168.2.2', telling
 the system that to get to 192.168.1/24, the next-hop is 192.168.2.2.
 This seems needlessly complex when you can just configure 192.168.2.2 as
 your default router and skip the static route configuration all
 together.

 Regardless, bridging isn't going to help unless the host and the default
 router have the same subnet configurations.

 --
 Chris Cowart
 Lead Systems Administrator
 Network  Infrastructure Services, RSSP-IT
 UC Berkeley


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


The FreeBSD Diary: 2007-09-09 - 2007-09-29

2007-09-29 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

10-Sep : Creating multiple jails
 When creating more than one jail, these shortcuts might help 
 http://freebsddiary.org/jail-multiple.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: Bridging interfaces

2007-09-29 Thread Christopher Cowart
On Sat, Sep 29, 2007 at 09:49:36PM -0600, Simon Timms wrote:
 That makes a lot of sense, but I suppose I still don't understand why this
 isn't working.  The handbook section on routing is pretty basic and it seems
 to come down to setting net.inet.ip.forwarding to 1 if you want to route
 packets between interfaces on a dual-homed host.  I'm able to reach hosts on
 both subnets from the router and my routing table looks like:
 
 Internet:
 DestinationGateway  Flags   Refs  Use  Netif
 Expire
 default   wireless   UGS 0  9905
 sis0
 localhost   localhost  UH0   134
 lo0
 192.168.1  link#1  UC0   0
 sis0
 orinoco  00:d0:09:f8:f7:5a  UHLW   1   268lo0
 192.168.1.255ff:ff:ff:ff:ff:ffUHLWb 1 87
 sis0
 192.168.2  link#2  UC0 0
 rl0
 192.168.2.255ff:ff:ff:ff:ff:ffUHLWb 187
 rl0

Are your 192.168.2/24 machines configured to use 192.168.2.2 as their
default router? They don't know where 192.168.1.2 is, because they 
don't see it as being on the same link. The subnet mask is used to
determine this kind of reachability.

You could probably use 192.168.1.2 as your default router, as long as
you created a static route `route add 192.168.1/24 192.168.2.2', telling
the system that to get to 192.168.1/24, the next-hop is 192.168.2.2.
This seems needlessly complex when you can just configure 192.168.2.2 as
your default router and skip the static route configuration all
together.

Regardless, bridging isn't going to help unless the host and the default
router have the same subnet configurations.

-- 
Chris Cowart
Lead Systems Administrator
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpCEPtjnYgPE.pgp
Description: PGP signature


Re: using the date command

2007-09-29 Thread Brian A. Seklecki
To set time:

$ sudo /usr/sbin/ntpdate pool.ntp.org
29 Sep 23:48:31 ntpdate[9404]: adjust time server 66.250.45.2 offset
0.001289 sec

To date info about your timezone settings:

$ zdump /etc/localtime 
/etc/localtime  Sat Sep 29 23:49:19 2007 EDT

Options:

$ ls /usr/shaoneinfo/ | egrep -v ^d
total 78
-rw-r--r--   1 root  wheel755 Aug 22 11:11 CET
-rw-r--r--   1 root  wheel837 Aug 22 11:11 CST6CDT
-rw-r--r--   1 root  wheel679 Aug 22 11:11 EET
-rw-r--r--   1 root  wheel 56 Aug 22 11:11 EST
-rw-r--r--   1 root  wheel837 Aug 22 11:11 EST5EDT
[...]

To set timezone:

$ ln -s /share/zoneinfo/$WHATEVER /etc/localtime

For you probably PST8PDT.

For your best NTP experience, use OpenNTP from
ports: /usr/ports/net/openntpd/

~BAS



On Sat, 2007-09-29 at 20:33 -0700, jekillen wrote:
 Hello all;
 I have built 4 machines and installed FreeBSD 6.0 in one and 6.2
 in the other three. They are all using the wrong date and time.
 The last one (v6.2 on ecs mb with AMD64) is the worst. It is telling
 me today is Jan 3 2003 PST (I am on the west coast and it is still PDT).
 These machines are all web servers. So up until now this has not been
 a big issue but a configuration of software is complaining that the 
 files
 it creates have an older date than the files in the software bundle,
 it is time to do something about it. So I am looking at man date and as
 I interpret the instructions #date ccyymmddHHMM.ss  (20079282027.00 or
 200709282027.00 for instance) is supposed to set the
 clock to the current date. But when I run a command with the
 current date and time in the above format I get the complaint that
 the format string is wrong.
 Can anyone be kind enough to give me a quick tutorial on this?
 I will be looking seriously into using NTP, but for now I need to
 get the date straight. I have entries in apache error log gener
 ated by php scripts that are supposed to use its date command.
 Thanks in advance for assistance.
 Jeff K
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 
 
 
 
 

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


Re: Bridging interfaces

2007-09-29 Thread Simon Timms
That makes a lot of sense, but I suppose I still don't understand why this
isn't working.  The handbook section on routing is pretty basic and it seems
to come down to setting net.inet.ip.forwarding to 1 if you want to route
packets between interfaces on a dual-homed host.  I'm able to reach hosts on
both subnets from the router and my routing table looks like:

Internet:
DestinationGateway  Flags   Refs  Use  Netif
Expire
default   wireless   UGS 0  9905
sis0
localhost   localhost  UH0   134
lo0
192.168.1  link#1  UC0   0
sis0
orinoco  00:d0:09:f8:f7:5a  UHLW   1   268lo0
192.168.1.255ff:ff:ff:ff:ff:ffUHLWb 1 87
sis0
192.168.2  link#2  UC0 0
rl0
192.168.2.255ff:ff:ff:ff:ff:ffUHLWb 187
rl0


On 9/29/07, Christopher Cowart [EMAIL PROTECTED] wrote:

 On Sat, Sep 29, 2007 at 07:06:55PM -0600, Simon Timms wrote:
  Hello,
  I seem to be having some trouble bridging interfaces in FreeBSD
 6.2-STABLE.
  What I have are two interfaces
 
  rl0 - 192.168.2.2
  sis0 - 192.168.1.2
 
  and a bridge I've set up following the pages in the handbook.  However
  frames don't seem to be routed from one interface to the other.  The
  internet gateway for the networks lives on 192.168.1.1 and I am able to
  reach the internet from boxes on the 192.168.1.0/24 subnet but not from
 the
  other.  Tracing the route from a box on the 192.168.2.0/24 subnet the
  connection times out on the freebsd box, orinoco.

 A layer 2 bridge connects two physical network segments to create the
 illusion of a single layer 2 network. In general, you have a single IP
 subnet sitting on top of a layer 2 network. Think of a bridge as a
 2-port ethernet switch.

 If you want a single layer 2 network, try readdressing the
 192.168.2/24 side to be on the 192.168.1/24 subnet.

 If you need different subnets, you'll want to configure *routing* and
 not bridging (See: handbook/network-routing.html).

 Good luck,

 --
 Chris Cowart
 Lead Systems Administrator
 Network  Infrastructure Services, RSSP-IT
 UC Berkeley


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


Re: sshd+pam problem on a fresh 6.2-RELEASE (amd64) install

2007-09-29 Thread Josh Carroll
 Any ideas? I tried doing an ldd on /usr/lib/pam* inside the
 /etc/rc.d/sshd script, but the output is identical when it starts up
 on boot as when I restart it. No missing libraries/etc.

Problem solved! In going from 32-bit to 64-bit, my login.conf really
needed to change. I had a default memory limit of 24MB. Which the sshd
user was exceeding at boot time. I recompiled openpam with debugging
enabled, and saw this message in /var/log/debug.log:

Sep 29 22:03:03 pflog sshd[39515]: in openpam_dynamic():
/usr/lib/pam_opieaccess.so: /usr/lib/pam_op
ieaccess.so: mmap of entire address space failed: Cannot allocate memory

That's when I had a major duh moment and realized I should probably
re-examine my login.conf settings. Figured I'd follow up with my
solution, in case others run into it.

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


Re: Bridging interfaces

2007-09-29 Thread Christopher Cowart
On Sat, Sep 29, 2007 at 07:06:55PM -0600, Simon Timms wrote:
 Hello,
 I seem to be having some trouble bridging interfaces in FreeBSD 6.2-STABLE.
 What I have are two interfaces
 
 rl0 - 192.168.2.2
 sis0 - 192.168.1.2
 
 and a bridge I've set up following the pages in the handbook.  However
 frames don't seem to be routed from one interface to the other.  The
 internet gateway for the networks lives on 192.168.1.1 and I am able to
 reach the internet from boxes on the 192.168.1.0/24 subnet but not from the
 other.  Tracing the route from a box on the 192.168.2.0/24 subnet the
 connection times out on the freebsd box, orinoco.

A layer 2 bridge connects two physical network segments to create the 
illusion of a single layer 2 network. In general, you have a single IP 
subnet sitting on top of a layer 2 network. Think of a bridge as a
2-port ethernet switch.

If you want a single layer 2 network, try readdressing the 
192.168.2/24 side to be on the 192.168.1/24 subnet. 

If you need different subnets, you'll want to configure *routing* and
not bridging (See: handbook/network-routing.html).

Good luck,

-- 
Chris Cowart
Lead Systems Administrator
Network  Infrastructure Services, RSSP-IT
UC Berkeley


pgpKLlRzREkCS.pgp
Description: PGP signature


Re: FreeBSD 7.0, Open LDAP, PAM, TLS and NSS, howto?

2007-09-29 Thread Brian A. Seklecki


There should be an nss_ldap.conf and pam_ldap.conf in /usr/local/etc . 
You need to set a variety of settings there.  What do they look like?


Remember: pkg_info -L pam_ldap nss_ldap!

Also, not sure about the TCP FIN_2 issue -- probably just the usual shakes 
and bangs with -current.  ~BAS



On Fri, 28 Sep 2007, O. Hartmann wrote:


Thank you for responding.
So, I'll feel free reporting my bad luck. This is a reference page I 
consulted for some hints, but without success:


http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html

First, OS ist the most recent FreeBSD 7.0.
OpenLDAP is openldap-server-2.3.38, standard config, no SASL support or 
anything else apart from default

PAM_LDAP
NSS_LDAP

I renamed cached.conf to nscd.conf as suggested (for your information).
In /etc/nsswitch.conf I changed
#
# nsswitch.conf(5) - name service switch configuration file
# $FreeBSD: src/etc/nsswitch.conf,v 1.1 2006/05/03 15:14:47 ume Exp $
#
group: files ldap
group_compat: nis
hosts: files dns
networks: files
passwd: files ldap
passwd_compat: nis
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files

I also changed /etc/pam.d/sshd to this:

#
# $FreeBSD: src/etc/pam.d/sshd,v 1.16 2007/06/10 18:57:20 yar Exp $
#
# PAM configuration for the sshd service
#

# auth
authsufficient  pam_opie.so no_warn 
no_fake_prompts

authrequisite   pam_opieaccess.so   no_warn allow_local
#auth   sufficient  pam_krb5.so no_warn 
try_first_pass
authsufficient  /usr/local/lib/pam_ldap.so no_warn 
try_first_pass
authsufficient  pam_ssh.so  no_warn 
try_first_pass
authrequiredpam_unix.so no_warn 
try_first_pass


# account
account requiredpam_nologin.so
#accountrequiredpam_krb5.so
account requiredpam_login_access.so
account requiredpam_unix.so

# session
#sessionoptionalpam_ssh.so
session requiredpam_permit.so

# password
#password   sufficient  pam_krb5.so no_warn 
try_first_pass
passwordrequiredpam_unix.so no_warn 
try_first_pass


Both configuration files for nss_ldap and pam_ldap respective got linked to 
/usr/localetc/openldap/ldap.conf, which looks like this:


#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASEdc=foo,dc=org
#URIldapi:///
URI ldapi://%2fvar%2frun%2fopenldap%2fldapi/

#SSL start_tls

#SIZELIMIT  12
#TIMELIMIT  15
#DEREF  never

#TLS_CACERT#TLS_CERT  #TLS_KEY   #TLS_REQCERTallow
#TLS_REQCERTdemand
#TLS_CHECKPEER  yes

My /etc/rc.conf.local file has the following OpenLDAP specific entry:

###
### OpenLDAP Server ###
###
slapd_enable=YES
#slapd_flags='-d 3 -4 -s 4 -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ 
ldap:/// ldaps:///'
slapd_flags='-4 -s 4 -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ 
ldap://192.168.2.210 ldaps://192.168.2.210'

slapd_sockets=/var/run/openldap/ldapi


My OpenLDAP config file has SSL-certificates disabled.

After the installation of nss_ldap the slapd server takes several decades of 
seconds to start. But it starts well and after it has initiated itself, I can 
do on the server a simple 'slapcat' and receive.


But I can't access the LDAP server. Doing an 'id testuser' results in 'id not 
found'.


On the console, I receive massively errors like this:

TCP: [127.0.0.1]:389 to [127.0.0.1]:63896 tcpflags 0x18PUSH,ACK; 
tcp_do_segment: FIN_WAIT_2: Received data after socket was closed, sending 
RST and removing tcpcb


Well, I checked sockstat for a listening slapd and I found slapd listening on 
both loopback, local NIC adn on both ports 389 and 636.


So what is wrong ?

Regards,
a desperate Oliver




Brian A. Seklecki wrote:

FreeBSD 5.x and 6.x work fine with both PAM and NSS - LDAP w/ TLS
(PKI). 
All other services (RADIUS, Apache ((mod_ldap, mod_pam_auth), PHP,

interactive shell, SFTP, etc.) can be tied into LDAP either directly or
via PAM.

As for password change, I don't know if anyone has a passwd(1) binary
that properly changes the LDAP password attribute -- if there is and its
out there, it requires ACL insanity.  Like Oracle, you can either
understand OpenLDAP ACLs, or you have real work to do  :}

Check the nss_pam.conf and nss_ldap.conf configs in local/etc/*
-- set to debug 1 to get debugging info.  Feel free to share
error messages.

~BAS

On Fri, 2007-09-28 at 10:54 +, O. Hartmann wrote:


Hello out there,
I have a problem with setting up an FreeBSD box as OpenLDAP server with 
several services, like SAMBA, NFS.


The 

Viewing jpegs with Mutt

2007-09-29 Thread Rem P Roberti
Is it possible to view jpegs inline using the Mutt MUA?  If so, I
would appreciate being directed to a site that would have that
information.

Thanks,

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


using the date command

2007-09-29 Thread jekillen

Hello all;
I have built 4 machines and installed FreeBSD 6.0 in one and 6.2
in the other three. They are all using the wrong date and time.
The last one (v6.2 on ecs mb with AMD64) is the worst. It is telling
me today is Jan 3 2003 PST (I am on the west coast and it is still PDT).
These machines are all web servers. So up until now this has not been
a big issue but a configuration of software is complaining that the 
files

it creates have an older date than the files in the software bundle,
it is time to do something about it. So I am looking at man date and as
I interpret the instructions #date ccyymmddHHMM.ss  (20079282027.00 or
200709282027.00 for instance) is supposed to set the
clock to the current date. But when I run a command with the
current date and time in the above format I get the complaint that
the format string is wrong.
Can anyone be kind enough to give me a quick tutorial on this?
I will be looking seriously into using NTP, but for now I need to
get the date straight. I have entries in apache error log gener
ated by php scripts that are supposed to use its date command.
Thanks in advance for assistance.
Jeff K

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