Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
> On Sat, 19 Jan 2008 23:40:35 +, Chris Whitehouse <[EMAIL PROTECTED]> 
> said:

Chris> I think my question really is why doesn't sudoers recognise localhost
Chris> or 127.0.0.1?

And, BtW, while enumerating network interfaces, it skips those
interfaces which're DOWN or LOOPBACK. If you've more questions, the
quickest way is to checkout source code :) .

HTH
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpWaI2EgQLWr.pgp
Description: PGP signature


Re: Trying to setup a serial console on my desktop

2008-01-19 Thread Ashish Shukla आशीष श ुक्ल
> WATANABE Kazuhiro writes:
WATANABE> Hello.

[...]

WATANABE> loader.conf(5) says:

WATANABE> | comconsole_speed
WATANABE> |   (``9600'' or the value of the BOOT_COMCONSOLE_SPEED 
vari-
WATANABE> |   able when loader(8) was compiled).  Sets the speed of 
the
WATANABE> |   serial console.  If the previous boot loader stage 
speci-
WATANABE> |   fied that a serial console is in use then the default
WATANABE> |   speed is determined from the current serial port speed
WATANABE> |   setting.

WATANABE> If you specify to use a serial console via /boot.config and
WATANABE> want to change the speed from 9600bps (default), you need to add
WATANABE> the "-S speed" flag to your /boot.config.  See boot(8) for 
details.

By me specificying use of serial console via /boot.config, you mean '-D'
option, which I specified in /boot.config, hmm...?

If yes, then this means it'll override 'console' setting I specified
in "loader.conf", hmm...? e.g. if I specified 'console=vidconsole' in
'loader.conf', but has '-D' in /boot.config, will I get output on both
serial and internal console, hmm...?

And BtW, if I specify anything at loader prompt, e.g. "set
comconsole_speed=115200", it works, i.e. I can connect to serial
console at 115200 bps. So won't values specified at loader prompt have
same priority as values specified in "loader.conf", hmm... ? Sorry I'm
bit confused regarding which gets priority, 'loader.conf' or
'boot.config'.

>> 2. Keyboard doesn't work irrespective of '-P' being present in
>> /boot.config . So I can't login to any TTY or login to X via GDM.
>> 
>> I'm following 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

WATANABE> Is a login prompt displayd to the video console?

I asked GDM service to start at startup. So I get a GDM GUI, but I
can't use my keyboard to enter my username there, not I'll be able to
switch TTYs, though mouse is working fine.

WATANABE> If not, the system boot sequence may have been stopped at some 
kinds
WATANABE> of daemon (sshd, sendmail, etc.).

I've all my hostname, and DNS stuff set up correctly, so there isn't
problem of any kind, as I see messages of sendmail, sshd starting on
my serial console at 9600bps. BtW, only 'dmesg' message appears on my
video console, whereas all kind of messages appear on serial console,
do I need some changes in syslog too to get all messages also on my
video console, hmm...?

WATANABE> ---
WATANABE> WATANABE Kazuhiro ([EMAIL PROTECTED])

TIA
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgplkI6QIAsNe.pgp
Description: PGP signature


Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
> On Sat, 19 Jan 2008 23:40:35 +, Chris Whitehouse <[EMAIL PROTECTED]> 
> said:

Chris> I think my question really is why doesn't sudoers recognise localhost
Chris> or 127.0.0.1?

Quoting from sudo.c of sudo-1.6.8p12 in "init_vars(int)" routine:

8<8<
/*
 * We avoid gethostbyname() if possible since we don't want
 * sudo to block if DNS or NIS is hosed.
 * "host" is the (possibly fully-qualified) hostname and
 * "shost" is the unqualified form of the hostname.
 */
sudo_user.host_fqdn_queried = FALSE;
nohostname = gethostname(thost, sizeof(thost));
if (nohostname)
user_host = user_shost = "localhost";
else {
user_host = estrdup(thost);
if ((p = strchr(user_host, '.'))) {
*p = '\0';
user_shost = estrdup(user_host);
*p = '.';
} else {
user_shost = user_host;
}
}
>8>8

As you can see, it uses gethostname() to return the hostname. So, your
host won't be 'localhost' unless its not able to retrieve hostname or
your hostname is set to 'localhost'.

Why they did this probably because any entry for 'localhost' is valid
for execution on all machines, ;) .

HTH
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpC4l1H0tJTj.pgp
Description: PGP signature


sector editor

2008-01-19 Thread [EMAIL PROTECTED]
  In an email to mahdieh Saeed <[EMAIL PROTECTED]>
(Message-ID: <[EMAIL PROTECTED]> just in case this helps) you
mentioned a "raw sector editor" .I would like to get a raw sector editor (both
source and compiled forms, as I don't have a reliable compiler) together with
instructions for its use, hopefully one callable from a shell script.  I would 
als
 like information about sector structures, e.g. plaiin sectore and directory 
sectore.
Also, someplace (on the disk there is a pointer to the head (or base, depending
on how you look at it) of the file system.  Where is this?  How do slices and
(UNIX) partitions fit in?  (I do know some of this information, but I would like
to get a complete description.)


_
Click to recieve credit card help and get out of debt fast.
http://thirdpartyoffers.juno.com/TGL2121/fc/Ioyw6i3m2DUmouazn9s7hnfRmeRPoXywl2B8BjdZkde2EthZwS9FT4/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Trying to setup a serial console on my desktop

2008-01-19 Thread WATANABE Kazuhiro
Hello.

At Sat, 19 Jan 2008 02:17:42 +0530,
  ? Ashish Shukla  wrote:
> Hi,
> 
> I'm trying to setup serial console on my FreeBSD 7.0-BETA4, I'm facing
> some issues.
> 
> 8<8<
> [EMAIL PROTECTED] ~]$ cat /boot.config
> -DP
> [EMAIL PROTECTED] ~]$ cat /boot/loader.conf
> sound_load="YES"# Digital sound subsystem
> snd_hda_load="YES"  # Intel High Definition Audio (Controller)
> snd_ds1_load="YES"  # ds1
> comconsole_speed="115200"
> boot_multicons="YES"
> boot_serial="YES"
> console="comconsole,vidconsole" # A comma separated list of console(s)
> [EMAIL PROTECTED] ~]$ cat /etc/ttys |grep -v ^# |fgrep -v none
> ttyv0   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv1   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv2   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv3   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv4   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv5   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv6   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv7   "/usr/libexec/getty Pc" cons25  on  secure
> ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   off secure
> ttyd0   "/usr/libexec/getty std.115200" vt220   on  secure
> ttyd1   "/usr/libexec/getty std.9600"   dialup  off secure
> ttyd2   "/usr/libexec/getty std.9600"   dialup  off secure
> ttyd3   "/usr/libexec/getty std.9600"   dialup  off secure
> dcons   "/usr/libexec/getty std.9600"   vt100   off secure
> [EMAIL PROTECTED] ~]$ stty -a -f /dev/ttyd0
> speed 115200 baud; 0 rows; 0 columns;
> lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl
> -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
> -extproc
> iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk
> brkint -inpck -ignpar -parmrk
> oflags: opost onlcr -ocrnl oxtabs -onocr -onlret
> cflags: cread cs8 -parenb -parodd hupcl clocal -cstopb crtscts -dsrflow
> -dtrflow -mdmbuf
> cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ;
> eol2 = ; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U;
> lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q;
> status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W;
> 8<8<
> 
> I've a desktop mobo (Intel D945GNTL) with onboard Intel Graphics. My
> BIOS doesn't support redirecting its output to COM1.
> 
> Following are the issues:
> 
> 1. comconsole_speed in /boot/loader.conf is not working. I wanted to
> try 115200 baud rate, but its not working when set in loader.conf. If
> I set comconsole_speed at
> loader prompt, it works.

loader.conf(5) says:

| comconsole_speed
|   (``9600'' or the value of the BOOT_COMCONSOLE_SPEED vari-
|   able when loader(8) was compiled).  Sets the speed of the
|   serial console.  If the previous boot loader stage speci-
|   fied that a serial console is in use then the default
|   speed is determined from the current serial port speed
|   setting.

If you specify to use a serial console via /boot.config and
want to change the speed from 9600bps (default), you need to add
the "-S speed" flag to your /boot.config.  See boot(8) for details.

> 2. Keyboard doesn't work irrespective of '-P' being present in
> /boot.config . So I can't login to any TTY or login to X via GDM.
> 
> I'm following 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html

Is a login prompt displayd to the video console?

If not, the system boot sequence may have been stopped at some kinds
of daemon (sshd, sendmail, etc.).
---
WATANABE Kazuhiro ([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: X -configure fails on 6.3-Release

2008-01-19 Thread Predrag Punosevac

Jim Guojun [VFFS] wrote:
After installed FreeBSD 6.3 on two machines, and X server cannot be 
started somehow on either one.


Both "X -configure" and "X -probeonly" failed and errors are in 
attached file -- Xerr.

Also, Xorg.o.log is attached.



(EE) Failed to load module "ati" (module does not exist, 0)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
(EE) Failed to load module "vga" (module does not exist, 0)
(EE) Failed to load module "mouse" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No drivers available.


How did you add Xorg? It looks like you are completely missing drivers. 
Did you reboot the computers after the XOrg was added.


Look also Xorg.0.log file

(II) Bus 6 non-prefetchable memory range:
   [0] -100xc020 - 0xc02f (0x10) MX[B]
(--) PCI:*(1:5:0) ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE) 
rev 0, Mem @ 0xc800/27, 0xc010/16, I/O @ 0x9000/8

Missing output drivers.  Configuration failed.

It is complaining that the drivers are missing.
Try fresh installation and try to do installation without X and then add 
Xorg as

pkg_add -r . Reboot and then try
Xorg -configure to create the initial xorg.conf.new file

Then probe with

X -config /root/xorg.conf.new (use complete path even if you are in root 
directory)


Then if the server gets fired

cp /root/xorg.conf.new /etc/X11/xorg.conf

As far as I see you are just missing drivers there are no other problems 
like the one with resolution or default depth


Good Luck
OKO




Both machines run FreeBSD 6.2 and X works fine.
I search wiki.x.org and freebsd list, but did not see any information 
related to this problem.


Can someone tell me what is going wrong on my installation or X 
configuration?


Thanks,
-Jin



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


The FreeBSD Diary: 2007-12-30 - 2008-01-19

2008-01-19 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  
and/or The FreeBSD Diary . 


-- 
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: trying to locate a specific port that I forget the name of

2008-01-19 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Zane C.B. wrote:
> I originally saw it in the ports tree, IIRC, about a year ago or
> around there.
> 
> What it was was a massive piece of software for connecting multiple
> services allowing them all to be queried. It was capable of
> connecting to IMAP, LDAP, several SQL servers, and a few other
> things. The manual of the software was several hundred pages long.
> 
> Any one remember what it is?

perl ?

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

iD8DBQFHks8e8Mjk52CukIwRCG6xAJ9hsNk65vvWDAW53zD/sXRDgQMougCePaUs
YIo7gWMqS3r0VxcF/JPvApg=
=6Nu8
-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]"


X -configure fails on 6.3-Release

2008-01-19 Thread Jim Guojun [VFFS]
After installed FreeBSD 6.3 on two machines, and X server cannot be 
started somehow on either one.


Both "X -configure" and "X -probeonly" failed and errors are in attached 
file -- Xerr.

Also, Xorg.o.log is attached.

Both machines run FreeBSD 6.2 and X works fine.
I search wiki.x.org and freebsd list, but did not see any information 
related to this problem.


Can someone tell me what is going wrong on my installation or X 
configuration?


Thanks,
-Jin


X.Org X Server 1.4.0
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 6.3-RELEASE i386 
Current Operating System: FreeBSD mobile.Belkin 6.3-RC2 FreeBSD 6.3-RC2 #0: Sat 
Jan 12 13:41:51 PST 2008 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/MinMax 
i386
Build Date: 01 December 2007  09:49:15PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 19 19:24:50 2008
(EE) Unable to locate/open config file
New driver is "ati"
(==) Using default built-in configuration (55 lines)
(EE) Failed to load module "ati" (module does not exist, 0)
(EE) Failed to load module "fbdev" (module does not exist, 0)
(EE) Failed to load module "vesa" (module does not exist, 0)
(EE) Failed to load module "vga" (module does not exist, 0)
(EE) Failed to load module "mouse" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No drivers available.

Fatal server error:
no screens found

X.Org X Server 1.4.0
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 6.3-RELEASE i386 
Current Operating System: FreeBSD mobile.Belkin 6.3-RC2 FreeBSD 6.3-RC2 #0: Sat 
Jan 12 13:41:51 PST 2008 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/MinMax 
i386
Build Date: 01 December 2007  09:49:15PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 19 19:24:59 2008
Missing output drivers.  Configuration failed.

X.Org X Server 1.4.0
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 6.3-RELEASE i386 
Current Operating System: FreeBSD mobile.Belkin 6.3-RC2 FreeBSD 6.3-RC2 #0: Sat 
Jan 12 13:41:51 PST 2008 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/MinMax 
i386
Build Date: 01 December 2007  09:49:15PM
 
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Jan 19 19:24:59 2008
(II) Loader magic: 0x81af380
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 2.0
X.Org XInput driver : 2.0
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on freebsd
(II) LoadModule: "pcidata"
(II) Loading /usr/local/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.4.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 2.0
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x8000a108, mode1Res1 = 0x8000
(WW) OS did not count PCI devices, guessing wildly
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 1002,5950 card 103c,30ae rev 01 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 1002,5a3f card , rev 00 class 06,04,00 hdr 01
(II) PCI: 00:05:0: chip 1002,5a37 card , rev 00 class 06,04,00 hdr 01
(II) PCI: 00:13:0: chip 1002,4374 card 1002,4374 rev 00 class 0c,03,10 hdr 80
(II) PCI: 00:13:1: chip 1002,4375 card 1002,4375 rev 00 class 0c,03,10 hdr 00
(II) PCI: 00:13:2: chip 1002,4373 card 1002,4373 rev 00 class 0c,03,20 hdr 00
(II) PCI: 00:14:0: chip 1002,4372 card 103c,30ae rev 11 class 0c,05,00 hdr 80
(II) PCI: 00:14:1: chip 1002,4376 card 103c,30ae rev 00 class 01,01,8a hdr 00
(II) PCI: 00:14:3: chip 1002,4377 card , rev 00 class 06,01,00 hdr 80
(II) PCI: 00:14:4: chip 1002,4371 card , rev 00 class 06,04,01 hdr 81
(II) PCI: 00:14:5: chip 1002,4370 card 103c,30ae rev 02 class 04,01,00 hdr 80
(II) PCI: 00:14:6: c

Re: Failing to compile kernel

2008-01-19 Thread [EMAIL PROTECTED]
On 19/01/2008, Celso Viana <[EMAIL PROTECTED]> wrote:
. . .
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
>
> ...What can be wrong?

Did you compile with -j ?

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


Re: Now that 6.3 ...

2008-01-19 Thread Bob Johnson
On 1/19/08, Chris <[EMAIL PROTECTED]> wrote:
> Now that 6.3 is official, I have to assume that 7.0 is very near?
>
> --
> Best regards,
> Chris

I think 7.0 is very near, but not because of the status of 6.3. When a
release is in the RC stage, it is very near full release unless
something very significant is found by user testing. There are enough
potential problems being posted that I wouldn't be surprised to see
another release candidate, but perhaps all of those will turn out to
be minor issues and the next thing that will happen is the full
release.

I have run 7.0 BETAs on several systems and encountered no problems
(except that amd64 won't boot on our stupid HP systems with brain dead
BIOSes, but i386 works fine on them, KDE and all). I have already put
7.0 on a couple of production DNS servers (well, they are intended for
production, but are still in testing). The issues being reported don't
seem to be a problem for that use, and I'd rather set up a new server
with a new major release than one that is near end of life.

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


Re: localhost in sudoers

2008-01-19 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Chris Whitehouse wrote:

> I'm not sure what you mean. This computer is on a local network behind a
> nat box and doesn't have a dns entry.
> 
> %host 192.168.1.71
> 71.1.168.192.in-addr.arpa domain name pointer eco.config.
> %host localhost
> localhost has address 127.0.0.1
> 
> I think my question really is why doesn't sudoers recognise localhost or
> 127.0.0.1?

Confusion between the IPv6ish ::1 rather than the IPv4ish 127.0.0.1
perhaps? You can just put the hostname of your machine in the sudoers
file and sudo will query the IP addresses of its interfaces at runtime
- -- or simply don't use the host based limiting stuff at all: that syntax is
predicated on having the same sudoers file distributed over a number
of machines, which is great for a large site with dozens of servers,
but for a home user it's possibly easier to maintain an individual
sudoers file on each machine you have.

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

iD8DBQFHksri8Mjk52CukIwRCPfHAJ9m98pQb76ID8leqKRhyHKrzmJnFwCfaVXA
n1hIg4OKpiursIKyu12ICE8=
=jGzw
-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]"


gmirror(8) on 6.3 mfsroot / fixit

2008-01-19 Thread Brian A. Seklecki
All:

I see that gmirror(8) is available on the 6.3 fixit file system, but
still not a part of the mfsroot.  Is this a crunchgen problem?

The install kernel has had boot/kernel/geom_mirror.ko since the 5x days.
so it seems only appropriate to include the binary.

I guess its a moot point since the fdisk / bsdlabel menus in sysinstall
don't recognized probed geom volumes in /dev/mirror as candidate disks
during installs or updates.

Is there progress with this in RELENG_7 or trunk?  Shall I file PR?

~BAS

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


Now that 6.3 ...

2008-01-19 Thread Chris
Now that 6.3 is official, I have to assume that 7.0 is very near?

-- 
Best regards,
Chris

"I teleported home one night
With Ron and Sid and Meg.
Ron stole Meggie's heart away
And I got Sidney's leg."

- A poem about matter transference beams. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Wrong times written by mkisofs?

2008-01-19 Thread Bob Johnson
On Saturday 19 January 2008 05:22:58 pm you wrote:
> > Irecently built a CD of images to give to a friend. I noticed the
> > timestamps displayed when I list the CD contents are five hours earlier
> > than they should be. Five hours matches my GMT offset. This is a
> > dual-boot system with Win XP, so the hardware clock is set to local time.
> >
> > E.g. a file on my hard drive has a correct timestamp
> > -rw---  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG
> >
> > while the same file on the resulting CD looks like
> > -rw---  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG
> >
> > The "date" command returns the correct local time.
> >
> > Did I do something incorrectly, or is this a bug in mkisofs? It appears
> > to me that mkisofs decided to correct for GMT offset when it shouldn't
> > have.
> >
>
> Let me asume you use a _recent_ mkisofs and set up a correct timezone...
>
[...]
>
> What do you get from "mkisofs -version"?

mkisofs 2.01 (i386-unknown-freebsd6.2)

> What timezone do you have (how many hours from GMT and which location)?

U.S. Eastern Standard Time (EST = GMT-5)

> What do you have in the TZ= variable?

It seems to be empty.

> What do you see with "TZ=GMT ls -l ToJoe"?

# TZ=GMT ls -l /mnt
total 62113
-rw---  1 bobj  bobj  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG
-rw---  1 bobj  bobj  3346787 Jan 19 12:22 IMG_0661_080116_0524.JPG
-rw---  1 bobj  bobj  3623969 Jan 19 12:22 IMG_0662_080116_0525.JPG
-rw---  1 bobj  bobj  3966310 Jan 19 12:22 IMG_0663_080116_0526.JPG
-rw---  1 bobj  bobj  3971338 Jan 19 12:22 IMG_0664_080116_0526.JPG
-rw---  1 bobj  bobj  3946837 Jan 19 12:22 IMG_0665_080116_0528.JPG
-rw---  1 bobj  bobj  3873753 Jan 19 12:22 IMG_0666_080116_0528.JPG
-rw---  1 bobj  bobj  3832501 Jan 19 12:22 IMG_0667_080116_0529.JPG
-rw---  1 bobj  bobj  3854064 Jan 19 12:22 IMG_0668_080116_0531.JPG
-rw---  1 bobj  bobj  3849156 Jan 19 12:22 IMG_0669_080116_0532.JPG
-rw---  1 bobj  bobj  3868314 Jan 19 12:23 IMG_0670_080116_0533.JPG
-rw---  1 bobj  bobj  3901654 Jan 19 12:23 IMG_0671_080116_0534.JPG
-rw---  1 bobj  bobj  3851665 Jan 19 12:23 IMG_0672_080116_0537.JPG
-rw---  1 bobj  bobj  3850832 Jan 19 12:23 IMG_0673_080116_0538.JPG
-rw---  1 bobj  bobj  3876448 Jan 19 12:23 IMG_0674_080116_0542.JPG
-rw---  1 bobj  bobj  3866105 Jan 19 12:23 IMG_0675_080116_0543.JPG
-rw---  1 bobj  bobj  3881576 Jan 19 12:23 IMG_0676_080116_0543.JPG

These times are the correct LOCAL time, not GMT. The following are five hours 
off:

# TZ=EST ls -l /mnt
total 62113
-rw---  1 bobj  bobj  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG
-rw---  1 bobj  bobj  3346787 Jan 19 07:22 IMG_0661_080116_0524.JPG
-rw---  1 bobj  bobj  3623969 Jan 19 07:22 IMG_0662_080116_0525.JPG
-rw---  1 bobj  bobj  3966310 Jan 19 07:22 IMG_0663_080116_0526.JPG
-rw---  1 bobj  bobj  3971338 Jan 19 07:22 IMG_0664_080116_0526.JPG
-rw---  1 bobj  bobj  3946837 Jan 19 07:22 IMG_0665_080116_0528.JPG
-rw---  1 bobj  bobj  3873753 Jan 19 07:22 IMG_0666_080116_0528.JPG
-rw---  1 bobj  bobj  3832501 Jan 19 07:22 IMG_0667_080116_0529.JPG
-rw---  1 bobj  bobj  3854064 Jan 19 07:22 IMG_0668_080116_0531.JPG
-rw---  1 bobj  bobj  3849156 Jan 19 07:22 IMG_0669_080116_0532.JPG
-rw---  1 bobj  bobj  3868314 Jan 19 07:23 IMG_0670_080116_0533.JPG
-rw---  1 bobj  bobj  3901654 Jan 19 07:23 IMG_0671_080116_0534.JPG
-rw---  1 bobj  bobj  3851665 Jan 19 07:23 IMG_0672_080116_0537.JPG
-rw---  1 bobj  bobj  3850832 Jan 19 07:23 IMG_0673_080116_0538.JPG
-rw---  1 bobj  bobj  3876448 Jan 19 07:23 IMG_0674_080116_0542.JPG
-rw---  1 bobj  bobj  3866105 Jan 19 07:23 IMG_0675_080116_0543.JPG
-rw---  1 bobj  bobj  3881576 Jan 19 07:23 IMG_0676_080116_0543.JPG


I thought this system had been updated recently, but:

# uname -a
FreeBSD sniffles.bobj.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 
17:40:53 UTC 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

so for my next trick, I will at least get it up to the lastest binary patch 
level, and try again.

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


Re: Eclipse and FreeBSD7

2008-01-19 Thread Wayne Sierke
On Sun, 2008-01-20 at 00:02 +1300, Jonathan Chen wrote:
> On Sat, Jan 19, 2008 at 05:36:17PM +1030, Wayne Sierke wrote:
> > On Sat, 2008-01-19 at 11:58 +1300, Jonathan Chen wrote:
> > > Eclipse will only work with the native-jdk. Use your installed
> > > diablo-jdk to build the native-jdk, and then remove the diablo-jdk.
> > 
> > Does that only apply for 7.0 and/or eclipse-3.2? I previously had
> > eclipse-3.3 (eclipse-devel) running with diablo-jdk-1.5.0.07.01 on
> > RELENG_6.
> 
> According to the commit message on the eclipse port, this would apply
> to FreeBSD 7.x and higher.
> 

Missed it by *that* much. My ports tree was one day older than the
commit.

Thanks for the pointer.


Wayne

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


Re: Dump Command?

2008-01-19 Thread Warren Block

On Sat, 19 Jan 2008, Chris Maness wrote:

Is it possible to dump a file system except for a specified directory?  Or 
does the dump command require that the WHOLE file system is dumped?  I 
remember gtar being able to negate archiving specific files.


See the dump man page for the "nodump" flag, which can be set with 
chflags(1).


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


Re: Realtek 8111B LAN Chipset

2008-01-19 Thread Greg Mars

NetOpsCenter wrote:

Greg Mars wrote:
I'm buying parts for a computer and want to make sure that the core 
components are as freebsd friendly as possible. So far, I've decided 
on a core 2 quad q6600 and I'm choosing the motherboard now. However 
it seems many of the popular motherboards have Realtek ALC888 as 
built-in audio and Realtek 8111B as built-in LAN.

I read at:

http://www.freebsd.org/relnotes/CURRENT/hardware/i386/article.html

that the sound should work but I couldn't find any info on the LAN.
Does anyone on the list have any experience with it?

By the way, I'm going to run FreeBSD 7.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



Aloha,

Realtek 8169 is a 1000 M  and  works on 7.* and 8.* I think 8111 maybe 
old 100M ? Are you sure about the Realtek model  #?



~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
"All that's really worth doing is what we do for others."- Lewis Carrol




Hi,

If you click on the motherboard specifications link below, you'll see 
where they list the LAN chipset as Realtek 8111B


http://www.newegg.com/Product/Product.aspx?Item=N82E16813186133

This seems to be the page for the chip on Realtek's site:

http://www.realtek.com.tw/products/productsView.aspx?Langid=1&PFid=5&Level=5&Conn=4&ProdID=11

Thanks

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


Dump Command?

2008-01-19 Thread Chris Maness
Is it possible to dump a file system except for a specified directory?  
Or does the dump command require that the WHOLE file system is dumped?  
I remember gtar being able to negate archiving specific files.


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


FreeBSD 7.0-RC1 syncache problems under high load

2008-01-19 Thread s3raphi

I am running web polygraph against a FreeBSD7.0-RC1 squid server and
experiencing problems. I have run the same test against the same hardware on
FreeBSD 6.1 without issue. This seems to be specific to FreeBSD 7. 
The problem is related to the number of client connections:
250 Clients - runs great.
500 Clients- scores well in polygraph, but does have a few errored requests
750-2000 Clients - Error rate spikes way up and performance takes a
nosedive. 

I turned on TCP debugging on the server and found lots of this: 

Jan 19 18:12:46 FlashCache kernel: TCP: [192.168.200.2]:60525 to
[192.168.200.1]:8080 tcpflags 0x10; syncache_expand: Segment failed
SYNCOOKIE authentication, segment rejected (probably spoofed)
Jan 19 18:12:46 FlashCache kernel: TCP: [192.168.200.2]:50115 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:47 FlashCache kernel: TCP: [192.168.200.2]:50132 to
[192.168.200.1]:8080; syncache_timer: Response timeout, retransmitting (1)
SYN|ACK
Jan 19 18:12:48 FlashCache kernel: TCP: [192.168.200.2]:50132 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:48 FlashCache kernel: TCP: [192.168.200.2]:50138 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:48 FlashCache kernel: TCP: [192.168.200.2]:50144 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:49 FlashCache kernel: TCP: [192.168.200.2]:50169 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:49 FlashCache kernel: TCP: [192.168.200.2]:50170 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:52 FlashCache kernel: TCP: [192.168.200.2]:50203 to
[192.168.200.1]:8080 tcpflags 0x2; syncache_add: Received duplicate
SYN, resetting timer and retransmitting SYN|ACK
Jan 19 18:12:52 FlashCache kernel: TCP: [192.168.200.2]:50167 to
[192.168.200.1]:8080; syncache_timer: Response timeout, retransmitting (1)
SYN|ACK
Jan 19 18:12:52 FlashCache kernel: TCP: [192.168.200.2]:50166 to
[192.168.200.1]:8080; syncache_timer: Response timeout, retransmitting (1)
SYN|ACK

This looks similar to something that has already been fixed in July. I am
assuming that the July fix is included in RC1?
http://www.nabble.com/FreeBSD-7-TCP-syncache-fix%3A-request-for-testers-to11515217.html#a11776616

I am using a generic kernel, and have this problem on both ethernet cards I
have tested with(nfe and bge)

These two machines were connected by a switch, but are now directly
connected and have the same problem regardless.
-- 
View this message in context: 
http://www.nabble.com/FreeBSD-7.0-RC1-syncache-problems-under-high-load-tp14977783p14977783.html
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]"


trying to locate a specific port that I forget the name of

2008-01-19 Thread Zane C.B.
I originally saw it in the ports tree, IIRC, about a year ago or
around there.

What it was was a massive piece of software for connecting multiple
services allowing them all to be queried. It was capable of
connecting to IMAP, LDAP, several SQL servers, and a few other
things. The manual of the software was several hundred pages long.

Any one remember what it is?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


(no subject)

2008-01-19 Thread Celso Viana
Hi All,

To compile the kernel of FreeBSD 7.0 RC1 and returned the error ...

===> zlib (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/DRUFF/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common  -I/usr/obj/usr/src/sys/DRUFF
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/zlib/../../net/zlib.c
ld  -d -warn-common -r -d -o zlib.kld zlib.o
:> export_syms
awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.kld
export_syms | xargs -J% objcopy % zlib.kld
ld -Bshareable  -d -warn-common -o zlib.ko zlib.kld
objcopy --strip-debug zlib.ko
===> zyd (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/DRUFF/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common  -I/usr/obj/usr/src/sys/DRUFF
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/zyd/../../dev/usb/if_zyd.c
ld  -d -warn-common -r -d -o if_zyd.kld if_zyd.o
:> export_syms
awk -f /usr/src/sys/modules/zyd/../../conf/kmod_syms.awk if_zyd.kld
export_syms | xargs -J% objcopy % if_zyd.kld
ld -Bshareable  -d -warn-common -o if_zyd.ko if_zyd.kld
objcopy --strip-debug if_zyd.ko
1 error
*** Error code 2
1 error
*** Error code 2

...What can be wrong?

Thanks

-- 
Celso Vianna
BSD User: 51318
http://www.bsdcounter.org

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


Failing to compile kernel

2008-01-19 Thread Celso Viana
Hi All,

To compile the kernel of FreeBSD 7.0 RC1 and returned the error ...

===> zlib (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/DRUFF/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common  -I/usr/obj/usr/src/sys/DRUFF
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/zlib/../../net/zlib.c
ld  -d -warn-common -r -d -o zlib.kld zlib.o
:> export_syms
awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.kld
export_syms | xargs -J% objcopy % zlib.kld
ld -Bshareable  -d -warn-common -o zlib.ko zlib.kld
objcopy --strip-debug zlib.ko
===> zyd (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/DRUFF/opt_global.h -I. -I@ -I@/contrib/altq
-finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common  -I/usr/obj/usr/src/sys/DRUFF
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/zyd/../../dev/usb/if_zyd.c
ld  -d -warn-common -r -d -o if_zyd.kld if_zyd.o
:> export_syms
awk -f /usr/src/sys/modules/zyd/../../conf/kmod_syms.awk if_zyd.kld
export_syms | xargs -J% objcopy % if_zyd.kld
ld -Bshareable  -d -warn-common -o if_zyd.ko if_zyd.kld
objcopy --strip-debug if_zyd.ko
1 error
*** Error code 2
1 error
*** Error code 2

...What can be wrong?

Thanks



-- 
Celso Vianna
BSD User: 51318
http://www.bsdcounter.org

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


Re: Opera, Flash and the stench of failure...

2008-01-19 Thread Zane C.B.
On Fri, 4 Jan 2008 06:16:59 -0700
Modulok <[EMAIL PROTECTED]> wrote:

> Seeing the thread about flash with mozilla, I thought, "a flash
> plugin with opera would be cool." Last night I tried to get flash
> working with opera. I failed. With native opera, I cannot get any
> plugins to work. Here is what I know:
> 
> 1. What opera bitches about:
>Could not start operapluginwrapper.
>Plugins will not work correctly.
> 
> 2. Why opera bitches:
>ldd operapluginwrapper;
>...
>libXThrStub.so.6 => not found (0x0)
>...
> 
> 3. Why it is missing:
>"On OpenBSD, and on old FreeBSD, libc lacks pthread stubs.
>This is a problem because libX11 needs to support threading,
>but shouldn't cause all X programs to be linked against the
>threading library. The solution is libXThrStub (UIThrStubs.c),
>which provides weak symbols to stub threading functions,
>which are ignored if the application links against the thread
>library. I had moved libXThrStub into libX11, because it
>seemed unnecessary."
> 
> 4. What I have installed:
>linux-flashplugin-9.0r115 Adobe Flash Player NPAPI Plugin
>opera-9.25.20071214 A blazingly fast, full-featured,
> standards-compliant browse
>opera-linuxplugins-9.21.20070510_1 Linux plugin support for the
> native Opera browser
> 
> Does anyone have flash working with opera? If so, how? Where can I
> get libXThrStub.so.6?


My suggestion is to check out 'graphics/gnash'. That port works
surprisingly well for part these days.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Recovering data from a newfs filesystem

2008-01-19 Thread Peter
try 'testdisk'
mailds:#cat /usr/ports/sysutils/testdisk/pkg-descr
Tool to check and undelete partition
Works with the following partitions:
- FAT12 FAT16 FAT32
- Linux EXT2/EXT3
- Linux SWAP (version 1 and 2)
- NTFS (Windows NT/W2K/XP)
- BeFS (BeOS)
- UFS (BSD)
- Netware
- ReiserFS

TestDisk is under GNU Public License.
You can compile it under Dos with DJGPP or under Linux or BSD with gcc.

WWW: http://www.cgsecurity.org/

- Florent Thoumie
[EMAIL PROTECTED]

]Peter[
> Months ago, I got a new USB drive for my Mac OS X, did "newfs
> /dev/disk1" on it, and it's been working fine.
>
> I then foolishly did "disklabel -create /dev/disk1", which broke
> it. How can I recover my data? I've tried fsck w/ alternate
> superblocks to no avail.
>
> "less -f /dev/disk1" shows me the disk label I created:
>
> 
>  "http://www.apple\
> .com/DTDs/PropertyList-1.0.dtd">
> 
> 
> Base
> 131072
> Size
> 500107730944
> 
> 
>
> but also shows me my file names/content, so I'm convinced the data is
> still there.
>
> How do I recover my data? I assume newfs creates a UFS by default? Can
> I "decode" /dev/disk1 the way one might decode a TAR file?
>
> Posting here because I know Mac OS X is "FreeBSD inside".
>
> --
> We're just a Bunch Of Regular Guys, a collective group that's trying
> to understand and assimilate technology. We feel that resistance to
> new ideas and technology is unwise and ultimately futile.
> ___
> 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: Realtek 8111B LAN Chipset

2008-01-19 Thread NetOpsCenter

Greg Mars wrote:
I'm buying parts for a computer and want to make sure that the core 
components are as freebsd friendly as possible. So far, I've decided 
on a core 2 quad q6600 and I'm choosing the motherboard now. However 
it seems many of the popular motherboards have Realtek ALC888 as 
built-in audio and Realtek 8111B as built-in LAN.

I read at:

http://www.freebsd.org/relnotes/CURRENT/hardware/i386/article.html

that the sound should work but I couldn't find any info on the LAN.
Does anyone on the list have any experience with it?

By the way, I'm going to run FreeBSD 7.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"



Aloha,

Realtek 8169 is a 1000 M  and  works on 7.* and 8.* I think 8111 maybe 
old 100M ? Are you sure about the Realtek model  #?



~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
"All that's really worth doing is what we do for others."- Lewis Carrol


___
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-Release to 6.3-Release and automatically merge changes

2008-01-19 Thread RW
On Sat, 19 Jan 2008 20:42:57 +0100
"Zbigniew Szalbot" <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> Encouraged by an apparent ease of use of FreeBSD update utility to go
> to 6.3 I decided to perform the update on an office machine, too. I
> issued:
> 
> $ sh freebsd-update.sh -f freebsd-update.conf -r 6.3-RELEASE upgrade
> 
> and after some time there came a screen like this:
> 
> Attempting to automatically merge changes in files... done.
> 
> The following file could not be merged automatically:
> /etc/defaults/periodic.conf

Anything in /etc/defaults/ should not have been edited, so just accept
the new version. If you *have* edited it, you'll have to handle this
manually, and put you changes in the right place.


> # $FreeBSD: src/etc/defaults/periodic.conf,v 1.33.2.3.2.1 2007/12/06
> 08:11:19 jhb Exp $
> >>> 6.3-RELEASE
> 
> Now, I can't be 100% certain but I think I have never touched
> periodic.conf and not really sure how to progress on from here.

This is also in /etc/defaults/, it's not the normal periodic.conf, so
see above.

> Another example is rc.conf which of course I edited in the past adding
> various services as needed.
> 
> <<< current version
> ===
> #background_dhclient_fxp0="YES" # Start dhcp client on fxp0 in the
> background. synchronous_dhclient="YES"  # Start dhclient directly
> on configured # interfaces during startup.
> >>> 6.3-RELEASE

If we are talking about /etc/rc.conf (rather
than /etc/defaults/rc.conf) then keep the old version as this file is
empty by default.


> Then it asked about sendmail files which I have never ever touched (I
> do not use sendmail). Some others are not sendmail-related but I have
> not touched them either.

Accept the new versions.

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


Re: portupgrade: the -P options rarely works

2008-01-19 Thread RW
On Sat, 19 Jan 2008 23:35:42 +0100
Giorgio Valoti <[EMAIL PROTECTED]> wrote:

> Hi all,
> I’ve noticed that using the -P option with portupgrade, which should  
> try to fetch the binary version of a package rarely works. Most of  
> the times it tries to fetch the package from the freebsd site, it  
> fails and then proceed to build it from the sources.
> While I can expect from to time that a pre-compiled version of a  
> package to be unavailable, it surprises me to see this so many times.

Are you aware that you need to pick-up stable packages, rather than
release packages, for portupgrade -P to work properly?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


compiling kernel with PAE

2008-01-19 Thread Robert Fitzpatrick
Getting an error when trying to compile a kernel on 5.4 and 6.2 with the
PAE option. I've tried NO_MODULES in make.conf as well...

se2 -ffreestanding -Werror  /usr/src/sys/dev/advansys/advansys.c
/usr/src/sys/dev/advansys/advansys.c: In function `adv_action':
/usr/src/sys/dev/advansys/advansys.c:260: warning: cast from pointer to integer 
of different size
*** Error code 1

Stop in /usr/obj/usr/src/sys/WEBTENT.
*** Error code 1

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

Stop in /usr/src.

This is a custom kernel build with the QUOTA option, I take out the PAE
option and all makes fine. I did a src-all update with RELENG_VER tag
prior to building. I assume this is a driver issue compatible with PAE?

Also, can I run amd64 release on this Intel Xeon dual proc with 6GB RAM?
Thinking about loading 6.3 amd64 if possible. Excuse my ignorance, I am
not a hardware guy, I am a programmer.

CPU: Intel(R) Xeon(TM) CPU 3.00GHz (3000.12-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf41  Stepping = 1
  Features=0xbfebfbff
  Features2=0x641d>
  AMD Features=0x2010
  Logical CPUs per core: 2

-- 
Robert

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


Recovering data from a newfs filesystem

2008-01-19 Thread Kelly Jones
Months ago, I got a new USB drive for my Mac OS X, did "newfs
/dev/disk1" on it, and it's been working fine.

I then foolishly did "disklabel -create /dev/disk1", which broke
it. How can I recover my data? I've tried fsck w/ alternate
superblocks to no avail.

"less -f /dev/disk1" shows me the disk label I created:


http://www.apple\
.com/DTDs/PropertyList-1.0.dtd">


Base
131072
Size
500107730944



but also shows me my file names/content, so I'm convinced the data is
still there.

How do I recover my data? I assume newfs creates a UFS by default? Can
I "decode" /dev/disk1 the way one might decode a TAR file?

Posting here because I know Mac OS X is "FreeBSD inside".

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Gutmann Method on Empty Space

2008-01-19 Thread RW
On Fri, 18 Jan 2008 23:38:27 -0800
"Jason C. Wells" <[EMAIL PROTECTED]> wrote:


> It's interesting to note that Gutmann's earlier work said, loosely
> "If you do this, you should be fairly certain you data is
> unrecoverable." He now says, "A few passes of random data is as good
> as can be expected."  Those two standards of performance are very
> different.  

But he goes on to say:

"Looking at this from the other point of view, with the ever-increasing
data density on disk platters and a corresponding reduction in feature
size and use of exotic techniques to record data on the medium, it's
unlikely that anything can be recovered from any recent drive except
perhaps a single level via basic error-cancelling techniques." 

So even those few passes of random data are overkill.

>  I just want to make sure that any given day that the police
> come take my functioning computers way that nothing can be recovered
> that I explicitly deleted.  

The police just take disk images.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: localhost in sudoers

2008-01-19 Thread Chris Whitehouse

Ashish Shukla आशीष शुक्ल wrote:

Chris Whitehouse writes:


Chris> The problem is this machine gets its ip address by dhcp so I 
shouldn't
Chris> enter an ip in sudoers. Is there a neat way round this?

Why not use hostname from DNS, instead, hmm...?

HTH


I'm not sure what you mean. This computer is on a local network behind a 
nat box and doesn't have a dns entry.


%host 192.168.1.71
71.1.168.192.in-addr.arpa domain name pointer eco.config.
%host localhost
localhost has address 127.0.0.1

I think my question really is why doesn't sudoers recognise localhost or 
127.0.0.1?


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


Realtek 8111B LAN Chipset

2008-01-19 Thread Greg Mars
I'm buying parts for a computer and want to make sure that the core 
components are as freebsd friendly as possible. So far, I've decided on 
a core 2 quad q6600 and I'm choosing the motherboard now. However it 
seems many of the popular motherboards have Realtek ALC888 as built-in 
audio and Realtek 8111B as built-in LAN.

I read at:

http://www.freebsd.org/relnotes/CURRENT/hardware/i386/article.html

that the sound should work but I couldn't find any info on the LAN.
Does anyone on the list have any experience with it?

By the way, I'm going to run FreeBSD 7.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: portupgrade: the -P options rarely works

2008-01-19 Thread Kris Kennaway

Kris Kennaway wrote:

Giorgio Valoti wrote:

Hi all,
I’ve noticed that using the -P option with portupgrade, which should 
try to fetch the binary version of a package rarely works. Most of the 
times it tries to fetch the package from the freebsd site, it fails 
and then proceed to build it from the sources.
While I can expect from to time that a pre-compiled version of a 
package to be unavailable, it surprises me to see this so many times.


We can not guarantee that a given package is available at any given 
moment, except during release cycles when the tree is frozen.  The 
continual process of changes and updates mean that from time to time a 
randomly selected package may not be buildable.  However, taken as a 
whole, almost all of the packages are available at any given moment. You 
can check the status for yourself on http://pointyhat.freebsd.org if you 
like.


Kris



It is also worth remembering that there are a number of packages 
(including some popular ones) that we cannot distribute for legal 
reasons, due to the restrictive licenses imposed by the authors.  These 
will never be available for download via portupgrade -P.


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


Re: portupgrade: the -P options rarely works

2008-01-19 Thread Kris Kennaway

Giorgio Valoti wrote:

Hi all,
I’ve noticed that using the -P option with portupgrade, which should try 
to fetch the binary version of a package rarely works. Most of the times 
it tries to fetch the package from the freebsd site, it fails and then 
proceed to build it from the sources.
While I can expect from to time that a pre-compiled version of a package 
to be unavailable, it surprises me to see this so many times.


We can not guarantee that a given package is available at any given 
moment, except during release cycles when the tree is frozen.  The 
continual process of changes and updates mean that from time to time a 
randomly selected package may not be buildable.  However, taken as a 
whole, almost all of the packages are available at any given moment. 
You can check the status for yourself on http://pointyhat.freebsd.org if 
you like.


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


Re: portupgrade: the -P options rarely works

2008-01-19 Thread Pieter de Goeje
On Saturday 19 January 2008, Giorgio Valoti wrote:
> Hi all,
> I’ve noticed that using the -P option with portupgrade, which should
> try to fetch the binary version of a package rarely works. Most of
> the times it tries to fetch the package from the freebsd site, it
> fails and then proceed to build it from the sources.
> While I can expect from to time that a pre-compiled version of a
> package to be unavailable, it surprises me to see this so many times.
>
>
> Thank you
> --
> Giorgio Valoti

This is expected, since the packages are built from the ports tree. Thus 
binary packages are always late. -P is most useful when distributing your own 
centrally built packages.

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


Re: Wrong times written by mkisofs?

2008-01-19 Thread Joerg Schilling
> Irecently built a CD of images to give to a friend. I noticed the timestamps 
> displayed when I list the CD contents are five hours earlier than they should 
> be. Five hours matches my GMT offset. This is a dual-boot system with Win XP, 
> so the hardware clock is set to local time. 

> E.g. a file on my hard drive has a correct timestamp 
> -rw---  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG 

> while the same file on the resulting CD looks like 
> -rw---  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG 

> The "date" command returns the correct local time. 

> Did I do something incorrectly, or is this a bug in mkisofs? It appears to me 
> that mkisofs decided to correct for GMT offset when it shouldn't have. 

> The sequence of operations I followed is below. 

Let me asume you use a _recent_ mkisofs and set up a correct timezone...

Then you found a FreeBSD kernel bug in your filesystem code.

BTW: The first bug I found in mkisofs (this was in 1995) was a TZ bug and
mkisofs did use the wrong sign for the timezone offset. Since this has been
fixed, the only reported problems where in effect +- 24 hours from New-year.



What do you get from "mkisofs -version"?
What timezone do you have (how many hours from GMT and which location)?
What do you have in the TZ= variable?
What do you see with "TZ=GMT ls -l ToJoe"?

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
   [EMAIL PROTECTED](uni)  
   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


portupgrade: the -P options rarely works

2008-01-19 Thread Giorgio Valoti

Hi all,
I’ve noticed that using the -P option with portupgrade, which should  
try to fetch the binary version of a package rarely works. Most of  
the times it tries to fetch the package from the freebsd site, it  
fails and then proceed to build it from the sources.
While I can expect from to time that a pre-compiled version of a  
package to be unavailable, it surprises me to see this so many times.



Thank you
--
Giorgio Valoti




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


Re: localhost in sudoers

2008-01-19 Thread Ashish Shukla आशीष शुक्ल
> Chris Whitehouse writes:

Chris> The problem is this machine gets its ip address by dhcp so I 
shouldn't
Chris> enter an ip in sudoers. Is there a neat way round this?

Why not use hostname from DNS, instead, hmm...?

HTH
-- 
Ashish Shukla आशीष शुक्ल  http://wahjava.wordpress.com/
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpvamBqslnNw.pgp
Description: PGP signature


X Forwarding problems since upgrading to 6-Stable

2008-01-19 Thread Tom Russo
I have three BSD machines running 6-Stable, all of them only recently upgraded
from 5-STABLE.

Ever since the upgrades, I cannot get remote hosts to which I've ssh'd to 
connect to the tunneled X server.  For example:

  hostb> ssh -X hostA
  hosta> echo $DISPLAY
  localhost:10.0
  hosta> xev 
  Xlib: connection to "localhost:10.0" refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  xev:  unable to open display 'localhost:10.0'
  hosta> exit
  hostb> ssh -Y hostA
  hosta> echo $DISPLAY
  localhost:10.0
  hosta> xev 
  Xlib: connection to "localhost:10.0" refused by server
  Xlib: Invalid MIT-MAGIC-COOKIE-1 key
  xev:  unable to open display 'localhost:10.0'

If hosta is not a FreeBSD machine, the *OPPOSITE* attempt works fine.  For
example, if hosta is my linux laptop:

  hosta> ssh -X hostb
  hostb> echo $$DISPLAY
  localhost:10.0
  hostb> xev
  [... xev starts up just fine and displays on the laptop...]

But if the machine from which I'm sshing is one of my 6-stable BSD machines,
it never works.  All the 6-stable machines are running the latest ports, as
I keep my ports tree csup'd and portupgrade regularly.  
 
I've googled the issue and the only thing I ever find is people answering
"you should use -Y instead of -X to enable 'trusted' forwarding."  This
clearly doesn't work for me, either.

Since I am not seeing tons of recent references to this all over the net,
I am pretty much concluding that I must have some kind of configuration 
mistake on my BSD machines' X or ssh setups, but I don't immediately see
one.  I thought I left my sshd config pretty much as it was out of the box, 
but perhaps I screwed something up.  Can anyone suggest a place to start looking
for the error?

-- 
Tom RussoKM5VY   SAR502   DM64ux  http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236 AHTB#1 http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


6.2-Release to 6.3-Release and automatically merge changes

2008-01-19 Thread Zbigniew Szalbot
Hello,

Encouraged by an apparent ease of use of FreeBSD update utility to go
to 6.3 I decided to perform the update on an office machine, too. I
issued:

$ sh freebsd-update.sh -f freebsd-update.conf -r 6.3-RELEASE upgrade

and after some time there came a screen like this:

Attempting to automatically merge changes in files... done.

The following file could not be merged automatically:
/etc/defaults/periodic.conf
Press Enter to edit this file in vi and resolve the conflicts
manually...

<<< current version
# $FreeBSD: src/etc/defaults/periodic.conf,v 1.33.2.1 2006/03/08
23:01:18 brueffer Exp $
===
# $FreeBSD: src/etc/defaults/periodic.conf,v 1.33.2.3.2.1 2007/12/06
08:11:19 jhb Exp $
>>> 6.3-RELEASE

Now, I can't be 100% certain but I think I have never touched
periodic.conf and not really sure how to progress on from here.

Another example is rc.conf which of course I edited in the past adding
various services as needed.

<<< current version
===
#background_dhclient_fxp0="YES" # Start dhcp client on fxp0 in the background.
synchronous_dhclient="YES"  # Start dhclient directly on configured
# interfaces during startup.
>>> 6.3-RELEASE

Then it asked about sendmail files which I have never ever touched (I
do not use sendmail). Some others are not sendmail-related but I have
not touched them either.

/etc/mail/freebsd.cf
/etc/mail/freebsd.mc
/etc/mail/freebsd.submit.cf
/etc/mail/freebsd.submit.mc
/etc/mail/helpfile
/etc/mail/sendmail.cf
/etc/mail/submit.cf
/etc/network.subr
/etc/pccard_ether
/etc/rc.d/ldconfig
/etc/rc.d/mountcritlocal
/etc/rc.d/moused
/etc/rc.d/netif
/etc/rc.d/nsswitch
/etc/rc.d/ppp
/etc/rc.d/ypxfrd
/etc/rc.initdiskless
/etc/rc.subr
/etc/snmpd.config

What would you advise me to do? I seem to remember I had a similar
trouble going from 6.1 to 6.2. In that case I must have made some
mistakes while merging changes because the machine wouldn't start. I
seem to recall that I had to copy /etc from backup to make the machine
work. I fear it may happen again and I am not really sure which part
of the files I should be editing as - frankly - I have no idea what
the changes are.

Any advice? Many thanks in advance!

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: No spam???

2008-01-19 Thread Jorn Argelo

John Almberg wrote:

2008-01-14 09:30:37.074087500 rblsmtpd: 123.20.89.67 pid 72121: 451
http://www.spamhaus.org/query/bl?ip=123.20.89.67


Just one comment, in my installation of SpamAssassin, it reports in
syslog as spamd, not at rblsmtpd. This looks like logs from the
rblsmtpd program that is not SpamAssasin.

As some one mentionned, one way to prevent false positive and too
agressive black lists is to use them through SpamAssassin only, where
the black list score is only part of the spaminess. The draw back is
that it puts more load the server and SpamAssassin that has to
scrutinize every email, while dropping at the SMTP level is fast and
uses very low resources.



Ah... I see. Yes, you are correct. It is rblsmtpd that is doing the 
filtering.


One of my goals with this mail server set up (primarily pf, qmail, 
spamassassin, maildrop, courier) was to minimize processing, since my 
last set up got totally bogged down handling my, and my client's 
email, frequently running with a load of 8 or more with several spam 
per second. A real drag.


This set up runs at a much lower load, and seems to do a better job 
filtering spam.
Since you're already using PF, why not use OpenBSD spamd (not 
spamassassin) as well? You don't need rblsmtpd then, and OpenBSD spamd 
operates together with PF. Maybe rblsmtpd does as well, I don't know - I 
never tried it. Also in combination with relaydb to create your own 
blacklists it can be pretty interesting. Check out 
http://www.openbsd.org/spamd/ for additional info.


Anyway, to go a little more on the background about blacklists; we were 
troubled by a lot of "false positive" entries in the blacklists (we use 
uatraps and nixspam, and spamassassin checks on blacklists like spamhaus 
since they only allow DNS queries if you don't want to pay). We had big 
ISPs blacklisted, and seeing at the amount of mailservers they have you 
don't want to check all of that by hand. And I'm sure somebody else 
noticed Gmail's awkward way of handling outgoing e-mail. They apparently 
have one global mail queue or something and try another mail server (of 
the hundereds they have) when the delivery fails once - a horrible 
situation for greylisting.


So what we did is create a Perl script that checks every blacklisted 
entry for a PTR record and tried to give an SMTP HELO command. We filter 
the PTR record on several keywords (like dsl, dynamic, cable, ip 
address, stuff like that). If a valid PTR record or a valid SMTP HELO 
reply has been recieved we remove that entry automatically from the 
blacklist. So you still blacklist the zillions of DSL connection and 
filter out the big ISPs or other customers. Naturally you will filter 
some spammers out using this method, but we still have SpamAssassin as a 
second layer doing a fine job.(And FYI: it picks a random IP address and 
has a 1 second delay on everything it checks - we don't want to cause a 
fuss at ISPs with a lot of blacklisted entries). There's more stuff in 
this script but the point of this e-mail is not a lecture of that :P


Anyway, ever since we put this script into place we got zero complains 
about blacklists, while still effectively trapping spammers into OpenBSD 
spamd and keeping them busy.


Quite a story - I hope someone might find this info useful one way or 
another. As always, YMMV.


- Jorn



-- John

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


localhost in sudoers

2008-01-19 Thread Chris Whitehouse

Hi,

If I put my computers ip address in sudoers a command runs successfully. 
 If I put localhost I am prompted for a password.


Check I can't run it normally:
%/root/testsudo
/root/testsudo: Permission denied.

Entry in sudoers:
chrisw  192.168.1.71=NOPASSWD:/root/testsudo

%sudo /root/testsudo
hello

Entry in sudoers:
chrisw  localhost=NOPASSWD:/root/testsudo

%sudo /root/testsudo
Password:
chrisw is not allowed to run sudo on eco.  This incident will be reported.
%ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.034 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.021 ms
^C

/var/log/messages says 'user NOT authorized on host'

The problem is this machine gets its ip address by dhcp so I shouldn't 
enter an ip in sudoers. Is there a neat way round this?


Thanks

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


Wrong times written by mkisofs?

2008-01-19 Thread Bob Johnson
I recently built a CD of images to give to a friend. I noticed the timestamps 
displayed when I list the CD contents are five hours earlier than they should 
be. Five hours matches my GMT offset. This is a dual-boot system with Win XP, 
so the hardware clock is set to local time.

E.g. a file on my hard drive has a correct timestamp
-rw---  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG

while the same file on the resulting CD looks like
-rw---  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG

The "date" command returns the correct local time.

Did I do something incorrectly, or is this a bug in mkisofs? It appears to me 
that mkisofs decided to correct for GMT offset when it shouldn't have.

The sequence of operations I followed is below.

- Bob

# ls -l ToJoe
total 62544
-rw---  1 bobo  bobo  2246671 Jan 19 12:22 IMG_0660_080115_2348.JPG
-rw---  1 bobo  bobo  3346787 Jan 19 12:22 IMG_0661_080116_0524.JPG
-rw---  1 bobo  bobo  3623969 Jan 19 12:22 IMG_0662_080116_0525.JPG
-rw---  1 bobo  bobo  3966310 Jan 19 12:22 IMG_0663_080116_0526.JPG
-rw---  1 bobo  bobo  3971338 Jan 19 12:22 IMG_0664_080116_0526.JPG
-rw---  1 bobo  bobo  3946837 Jan 19 12:22 IMG_0665_080116_0528.JPG
-rw---  1 bobo  bobo  3873753 Jan 19 12:22 IMG_0666_080116_0528.JPG
-rw---  1 bobo  bobo  3832501 Jan 19 12:22 IMG_0667_080116_0529.JPG
-rw---  1 bobo  bobo  3854064 Jan 19 12:22 IMG_0668_080116_0531.JPG
-rw---  1 bobo  bobo  3849156 Jan 19 12:22 IMG_0669_080116_0532.JPG
-rw---  1 bobo  bobo  3868314 Jan 19 12:23 IMG_0670_080116_0533.JPG
-rw---  1 bobo  bobo  3901654 Jan 19 12:23 IMG_0671_080116_0534.JPG
-rw---  1 bobo  bobo  3851665 Jan 19 12:23 IMG_0672_080116_0537.JPG
-rw---  1 bobo  bobo  3850832 Jan 19 12:23 IMG_0673_080116_0538.JPG
-rw---  1 bobo  bobo  3876448 Jan 19 12:23 IMG_0674_080116_0542.JPG
-rw---  1 bobo  bobo  3866105 Jan 19 12:23 IMG_0675_080116_0543.JPG
-rw---  1 bobo  bobo  3881576 Jan 19 12:23 IMG_0676_080116_0543.JPG
[EMAIL PROTECTED] ~/images]$ mkisofs -J -R -o FMband.iso ToJoe/*
 16.05% done, estimate finish Sat Jan 19 12:24:16 2008
 32.04% done, estimate finish Sat Jan 19 12:24:16 2008
 48.00% done, estimate finish Sat Jan 19 12:24:18 2008
 64.04% done, estimate finish Sat Jan 19 12:24:17 2008
 80.04% done, estimate finish Sat Jan 19 12:24:17 2008
 96.01% done, estimate finish Sat Jan 19 12:24:18 2008
Total translation table size: 0
Total rockridge attributes bytes: 1801
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used d064
31250 extents written (61 MB)
[EMAIL PROTECTED] ~/images]$ su 
Password:
[EMAIL PROTECTED] /home/bobo/images]# burncd -f /dev/acd0 -s 8 data FMband.iso 
fixate
next writeable LBA 0
writing from file FMband.iso size 62500 KB
written this track 62500 KB (100%) total 62500 KB
fixating CD, please wait..
[EMAIL PROTECTED] /home/bobo/images]# mount_cd9660 /dev/acd0 /mnt
[EMAIL PROTECTED] /home/bobo/images]# ls -l /mnt
total 62113
-rw---  1 bobo  bobo  2246671 Jan 19 07:22 IMG_0660_080115_2348.JPG
-rw---  1 bobo  bobo  3346787 Jan 19 07:22 IMG_0661_080116_0524.JPG
-rw---  1 bobo  bobo  3623969 Jan 19 07:22 IMG_0662_080116_0525.JPG
-rw---  1 bobo  bobo  3966310 Jan 19 07:22 IMG_0663_080116_0526.JPG
-rw---  1 bobo  bobo  3971338 Jan 19 07:22 IMG_0664_080116_0526.JPG
-rw---  1 bobo  bobo  3946837 Jan 19 07:22 IMG_0665_080116_0528.JPG
-rw---  1 bobo  bobo  3873753 Jan 19 07:22 IMG_0666_080116_0528.JPG
-rw---  1 bobo  bobo  3832501 Jan 19 07:22 IMG_0667_080116_0529.JPG
-rw---  1 bobo  bobo  3854064 Jan 19 07:22 IMG_0668_080116_0531.JPG
-rw---  1 bobo  bobo  3849156 Jan 19 07:22 IMG_0669_080116_0532.JPG
-rw---  1 bobo  bobo  3868314 Jan 19 07:23 IMG_0670_080116_0533.JPG
-rw---  1 bobo  bobo  3901654 Jan 19 07:23 IMG_0671_080116_0534.JPG
-rw---  1 bobo  bobo  3851665 Jan 19 07:23 IMG_0672_080116_0537.JPG
-rw---  1 bobo  bobo  3850832 Jan 19 07:23 IMG_0673_080116_0538.JPG
-rw---  1 bobo  bobo  3876448 Jan 19 07:23 IMG_0674_080116_0542.JPG
-rw---  1 bobo  bobo  3866105 Jan 19 07:23 IMG_0675_080116_0543.JPG
-rw---  1 bobo  bobo  3881576 Jan 19 07:23 IMG_0676_080116_0543.JPG
[EMAIL PROTECTED] /home/bobo/images]# date
Sat Jan 19 12:27:25 EST 2008
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: XWINDOWS is giving me a problem

2008-01-19 Thread Wojciech Puchar

I ran /usr/ports/UPDATING which took all day. When I was finished I started
xwindows and it worked fine, so as usual I shutdown the machine. Later when


X window system, not x-windows. it's not a kind of windows (fortunately).



I restarted the computer and tried to restart xwindows it would not start
but gave me several errors, the log is included below:
Jan 19 12:23:49 twcny kdm-bin[754]: X server for display :0 terminated
unexpectedly
Jan 19 12:23:49 twcny kdm-bin: :0[758]: IO Error in XOpenDisplay
Jan 19 12:23:49 twcny kdm-bin[754]: Unable to fire up local display :0;
disabling.



look at /var/log/XOrg.0.log to see why x server doesn't work


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


XWINDOWS is giving me a problem

2008-01-19 Thread Bob Falanga
I ran /usr/ports/UPDATING which took all day. When I was finished I started
xwindows and it worked fine, so as usual I shutdown the machine. Later when
I restarted the computer and tried to restart xwindows it would not start
but gave me several errors, the log is included below:
 Jan 19 12:23:49 twcny kdm-bin[754]: X server for display :0 terminated
unexpectedly
Jan 19 12:23:49 twcny kdm-bin: :0[758]: IO Error in XOpenDisplay
Jan 19 12:23:49 twcny kdm-bin[754]: Unable to fire up local display :0;
disabling.

HELPThank you,

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


Re: Dual Processor?

2008-01-19 Thread Predrag Punosevac

Jonathan Horne wrote:

On Saturday 19 January 2008 10:30:49 am Chris Maness wrote:
  

Is there a way to see if the system is utilizing both processors on a
two processor system?  I seem to remember the top command in Linux
showed the load balance between the two processors (I could be wrong it
has been a while since I used it).  Is there some ap that can display
these kinds of statistics?

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



its still top, it just doesnt display the same way it does in linux.  look for 
a column C:


 PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
 2211 jhorne1  960   125M 50892K CPU1   0  18.9H  4.59% Xorg
35271 jhorne1  960   107M 88500K select 1  20:03  0.44% opera
 2301 jhorne1  960 81652K 50320K select 0 100:57  0.20% kstars

the C column tells you what processor the thread is using.

cheers,
  

systat

[pedja@ /usr/home/Pedja]$ systat

   /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
Load Average  


   /0%  /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
root idle: cpu0 X
root idle: cpu1 X


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


Re: ftp setup - asap - giotissl

2008-01-19 Thread Jonathan Horne
On Saturday 19 January 2008 06:28:15 am Giotis Eugen wrote:
> hello
> i am looking at
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.ht
>ml im trying to setup my ftp server.
> I can not connect to my ftp via the ftp softwares.
> I tried with windows (FlashFXP and smartFXP) and via the Terminal of Linux
> CentOS5.
>
>
> # ftp -a *ftp2.FreeBSD.org*
> Connected to ftp2.FreeBSD.org.
> 220 ftp2.FreeBSD.org FTP server (Version 6.00LS) ready.
> --->
> ftp3...
> 331 Guest login ok, send your email address as password.
> 230-
> 230- This machine is in Vienna, VA, USA, hosted by Verio.
> 230- Questions? E-mail [EMAIL PROTECTED]
> 230-
> 230-
> 230 Guest login ok, access restrictions apply.
> Remote system type is UNIX.
> Using binary mode to transfer files.
> ftp> cd /pub/FreeBSD/ports/packages/sysutils/
> 250 CWD command successful.
>ftp> get lsof-4.56.4.tgz
> -> I recieve the
> following error:
>ftp> get 1sof-4.56.4.tar.gz local:
> 1sof-4.56.4.tar.gz remote: 1sof-4.56.4.tar.gz
>229 Entering Extended Passive Mode
> (|||54352|) 550 1sof-4.56.4.tar.gz: No such file or directory.
>
> local: lsof-4.56.4.tgz remote: lsof-4.56.4.tgz
> 200 PORT command successful.
> 150 Opening BINARY mode data connection for 'lsof-4.56.4.tgz' (92375
> bytes). 100% |**| 92375
>   00:00 ETA 226 Transfer complete.
> 92375 bytes received in 5.60 seconds (16.11 KB/s)
> ftp> exit
> # pkg_add *lsof-4.56.4.tgz**
>
>
>
>
>
>
>
>
> *
>
> Can anyone help me ?

by your examples, im having difficulty understanding that the issue is.  i 
dont see any output from connecting to *your* ftp server, and the associated 
errors.

can you be more specific about what is not working?
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd08 [EMAIL PROTECTED] dfwlp.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dual Processor?

2008-01-19 Thread Jonathan Horne
On Saturday 19 January 2008 10:30:49 am Chris Maness wrote:
> Is there a way to see if the system is utilizing both processors on a
> two processor system?  I seem to remember the top command in Linux
> showed the load balance between the two processors (I could be wrong it
> has been a while since I used it).  Is there some ap that can display
> these kinds of statistics?
>
> Chris
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

its still top, it just doesnt display the same way it does in linux.  look for 
a column C:

 PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
 2211 jhorne1  960   125M 50892K CPU1   0  18.9H  4.59% Xorg
35271 jhorne1  960   107M 88500K select 1  20:03  0.44% opera
 2301 jhorne1  960 81652K 50320K select 0 100:57  0.20% kstars

the C column tells you what processor the thread is using.

cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd08 [EMAIL PROTECTED] dfwlp.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Dual Processor?

2008-01-19 Thread Chris Maness
Is there a way to see if the system is utilizing both processors on a 
two processor system?  I seem to remember the top command in Linux 
showed the load balance between the two processors (I could be wrong it 
has been a while since I used it).  Is there some ap that can display 
these kinds of statistics?


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


Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Colin Brace
On Jan 19, 2008 3:16 PM, Kris Kennaway <[EMAIL PROTECTED]> wrote:

> Some things incorrectly removed from your kernel config.  Compare
> carefully to GENERIC or just revert.

I reverted, then added the ALTQ lines.

Compile time was about an hour on a 1.6Ghz Pentium IV, so that wasn't
so bad. Rebooted OK.

Thanks again.

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


upgraded from 62-p10 to 6.3-RELEASE

2008-01-19 Thread Jonathan Horne
... and something i never expected to happen... happened.

my backup app (veritas netbackup) relies on compat4x and compat5x to operate.  
ive never had any previous issues getting netbackup to run, but after the 6.3 
upgrade, suddenly the compat 4x and 5x ports were uninstalled?  i reinstalled 
them again, but this didnt help.  i have no idea where to go with this issue 
now, except to start a new system from scratch and see where that leads me.

stranger still... i have several 7.0 systems, and they all work without a 
hitch.  btw, the netbackup agent specifies that is compatible with FreeBSD 
4.5, but with the compat4x and 5x packages, the agent has never had any 
trouble operating.

did something change in 6.3 that would affect how applications operate with 
the compat libraries?

at a loss,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd08 [EMAIL PROTECTED] dfwlp.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re[2]: kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Daniel Gerzo
Hello Colin,

Saturday, January 19, 2008, 3:13:31 PM, you wrote:

> Unfortunately, I got another error. Any ideas what is going wrong here?

I would guess a missing device scbus and/or da in your kernel
configuration file.

-- 
Best regards,
 Danielmailto:[EMAIL PROTECTED]

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


Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Kris Kennaway

Colin Brace wrote:

On Jan 19, 2008 2:33 PM, Kris Kennaway <[EMAIL PROTECTED]> wrote:


Probably you are missing the src-sys-crypto cvsup collection.


Thanks. Fixed.

Unfortunately, I got another error. Any ideas what is going wrong here?


Some things incorrectly removed from your kernel config.  Compare 
carefully to GENERIC or just revert.


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


Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Colin Brace
On Jan 19, 2008 2:33 PM, Kris Kennaway <[EMAIL PROTECTED]> wrote:

> Probably you are missing the src-sys-crypto cvsup collection.

Thanks. Fixed.

Unfortunately, I got another error. Any ideas what is going wrong here?

MAKE=make sh /usr/src/sys/conf/newvers.sh VENUS
cc -c -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000
-mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror  vers.c
linking kernel
scvidctl.o(.text+0xb1): In function `sc_render_match':
: undefined reference to `__start_set_scrndr_set'
scvidctl.o(.text+0xb6): In function `sc_render_match':
: undefined reference to `__stop_set_scrndr_set'
scvidctl.o(.text+0xbd): In function `sc_render_match':
: undefined reference to `__start_set_scrndr_set'
scvidctl.o(.text+0xe6): In function `sc_render_match':
: undefined reference to `__stop_set_scrndr_set'
scvidctl.o(.text+0x10f): In function `sc_set_graphics_mode':
: undefined reference to `vidsw'
scvidctl.o(.text+0x342): In function `sc_set_text_mode':
: undefined reference to `vidsw'
scvidctl.o(.text+0x888): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0x914): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xa50): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xac8): more undefined references to `vidsw' follow
scvidctl.o(.text+0xbfb): In function `sc_vid_ioctl':
: undefined reference to `vid_get_adapter'
scvidctl.o(.text+0xc0d): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xc50): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xc80): In function `sc_vid_ioctl':
: undefined reference to `vid_get_adapter'
scvidctl.o(.text+0xd2b): In function `sc_vid_ioctl':
: undefined reference to `vid_get_adapter'
scvidctl.o(.text+0xd43): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xdb3): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xdf6): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xe32): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xe4e): In function `sc_vid_ioctl':
: undefined reference to `vidsw'
scvidctl.o(.text+0xee4): more undefined references to `vidsw' follow
syscons.o(.text+0xf6d): In function `sc_cnterm':
: undefined reference to `vid_release'
syscons.o(.text+0x1005): In function `set_mode':
: undefined reference to `vidsw'
syscons.o(.text+0x1054): In function `set_mode':
: undefined reference to `vidsw'
syscons.o(.text+0x124e): In function `init_scp':
: undefined reference to `vidsw'
syscons.o(.text+0x1744): In function `exchange_scr':
: undefined reference to `vidsw'
syscons.o(.text+0x1c74): In function `scvidprobe':
: undefined reference to `vid_configure'
syscons.o(.text+0x1c84): In function `scvidprobe':
: undefined reference to `vid_find_adapter'
syscons.o(.text+0x317e): In function `scinit':
: undefined reference to `vid_release'
syscons.o(.text+0x31bf): In function `scinit':
: undefined reference to `vid_allocate'
syscons.o(.text+0x31ca): In function `scinit':
: undefined reference to `vid_get_adapter'
syscons.o(.text+0x3222): In function `scinit':
: undefined reference to `vidsw'
syscons.o(.text+0x3241): In function `scinit':
: undefined reference to `vidsw'
syscons.o(.text+0x34c1): In function `scinit':
: undefined reference to `vidsw'
umass.o(.text+0x19): In function `umass_cam_detach_sim':
: undefined reference to `xpt_bus_deregister'
umass.o(.text+0x35): In function `umass_cam_detach_sim':
: undefined reference to `cam_sim_free'
umass.o(.text+0x489): In function `umass_cam_sense_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x62b): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x64b): In function `umass_cam_cb':
: undefined reference to `xpt_done'
umass.o(.text+0x8e9): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x91b): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0x99b): more undefined references to `xpt_done' follow
umass.o(.text+0xae7): In function `umass_cam_action':
: undefined reference to `cam_calc_geometry'
umass.o(.text+0xaef): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0xb26): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0xbb9): In function `umass_cam_action':
: undefined reference to `xpt_done'
umass.o(.text+0xcb8): In function `umass_cam_action':
: undefined refe

Re: Build server for ports and world...

2008-01-19 Thread peter harrison
On Sat, Jan 19, 2008 at 03:07:54AM +0300, Yuri Pankov wrote:
> On Fri, Jan 18, 2008 at 11:32:37PM +, peter harrison wrote:
> > I'd like to set up a build server at home to save me time when running 
> > portupgrade and building world.
> > 
> > I've read the handbook on this, and I'm happy with the process of NFS 
> > mounting /usr/src /usr/obj and /usr/ports etc..
> > 
> > I've two questions though.
> > 
> > First, my home server currently runs 6.2-RELEASE - I update it using 
> > freebsd-update and it doesn't have the source for world & kernel.
> > Is it possible to put the 7.0 source on this and build for installation on 
> > my desktop, or do I need to take the server to 7.0 before I do this?
> 
> Yes, it should be possible.
> 
> > Second, is there anyway of building packages without installing them?
> > I'm not keen to put X and all my desktop gubbins on the server when I only 
> > need it to build the packages.
> 
> Look at ports-mgmt/tinderbox, does exactly what you want :-)
> 
> > Thanks for any help.
> > 
> > 
> > Peter Harrison.
> > -- 
> > "`That young girl is one of the least benightedly 
> > unintelligent organic life forms it has been my profound 
> > lack of pleasure not to be able to avoid meeting.'" 
> > 
> > - Marvin's first ever compliment about anybody. 
> 
> HTH,
> Yuri
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Thanks Yuri, I'll take a look at Tinderbox.


Peter Harrison.

-- 
"`Maybe somebody here tipped off the Galactic Police,' said 
Trillian. `Everybody saw you come in.'
`You mean they want to arrest me over the phone?' said 
Zaphod, `Could be. I'm a pretty dangerous dude when I'm 
cornered.'
`Yeah,' said a voice from under the table [Ford's now 
completely rat-arsed at this point], `you go to pieces so 
fast people get hit by the shrapnel.'"

- Zaphod getting paranoid over a phone call. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Kris Kennaway

Colin Brace wrote:


I installed the base and kernel source (CURRENT) with cvsup last night. Any
idea what files I am still missing?


Probably you are missing the src-sys-crypto cvsup collection.

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


kernel make error: /usr/src/sys/crypto/rijndael/* missing

2008-01-19 Thread Colin Brace
Hi all,

I am trying to compile the kernel for the first time, and I got an error
message:

make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP="cc -E" CC="cc"
xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing  -std=c99  -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
-fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
-I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa
-I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support
-I/usr/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include
opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000  -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -ffreestanding
cc: /usr/src/sys/crypto/rijndael/rijndael-alg-fst.c: No such file or
directory
cc: /usr/src/sys/crypto/rijndael/rijndael-api-fst.c: No such file or
directory
cc: /usr/src/sys/crypto/rijndael/rijndael-api.c: No such file or
directory
cc: /usr/src/sys/crypto/sha1.c: No such file or directory
cc: /usr/src/sys/crypto/sha2/sha2.c: No such file or directory
/usr/src/sys/dev/random/hash.c:34:46: error: crypto/rijndael/rijndael-
api-fst.h: No such file or directory
/usr/src/sys/dev/random/hash.c:35:30: error: crypto/sha2/sha2.h: No such
file or directory
/usr/src/sys/dev/random/yarrow.c:40:46: error: crypto/rijndael/rijndael-
api-fst.h: No such file or directory
/usr/src/sys/dev/random/yarrow.c:41:30: error: crypto/sha2/sha2.h: No
such file or directory
/usr/src/sys/net80211/ieee80211_crypto_ccmp.c:51:38: error:
crypto/rijndael/rijndael.h: No such file or directory
In file included from /usr/src/sys/netinet/sctp_os.h:59,
 from /usr/src/sys/netinet/sctp_pcb.h:39,
 from /usr/src/sys/netinet/in_proto.c:80:
/usr/src/sys/netinet/sctp_os_bsd.h:448:25: error: crypto/sha1.h: No such
file or directory
[...]
mkdep: compile failed
*** Error code 1

Stop in /usr/obj/usr/src/sys/VENUS.
*** Error code 1

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

Stop in /usr/src.

I installed the base and kernel source (CURRENT) with cvsup last night. Any
idea what files I am still missing?

Thanks

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


Re: going from 6.2 to 6.3 and custom kernel

2008-01-19 Thread Wojciech Puchar

WARNING: This system is running a "szalbot" kernel, which is not a
kernel configuration distributed as part of FreeBSD 6.2-RELEASE.
This kernel will not be updated: you MUST update the kernel manually
before running "freebsd-update.sh install".

How do I update the kernel manually then?


simply recompile - sources are updated by freebsd-update
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ftp setup - asap - giotissl

2008-01-19 Thread Giotis Eugen
hello
i am looking at
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html
im trying to setup my ftp server.
I can not connect to my ftp via the ftp softwares.
I tried with windows (FlashFXP and smartFXP) and via the Terminal of Linux
CentOS5.


# ftp -a *ftp2.FreeBSD.org*
Connected to ftp2.FreeBSD.org.
220 ftp2.FreeBSD.org FTP server (Version 6.00LS) ready.
--->
ftp3...
331 Guest login ok, send your email address as password.
230-
230- This machine is in Vienna, VA, USA, hosted by Verio.
230- Questions? E-mail [EMAIL PROTECTED]
230-
230-
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/FreeBSD/ports/packages/sysutils/
250 CWD command successful.
   ftp> get lsof-4.56.4.tgz
-> I recieve the
following error:
   ftp> get 1sof-4.56.4.tar.gz local:
1sof-4.56.4.tar.gz remote: 1sof-4.56.4.tar.gz
   229 Entering Extended Passive Mode (|||54352|)
   550 1sof-4.56.4.tar.gz: No such file or
directory.

local: lsof-4.56.4.tgz remote: lsof-4.56.4.tgz
200 PORT command successful.
150 Opening BINARY mode data connection for 'lsof-4.56.4.tgz' (92375 bytes).
100% |**| 92375   00:00 ETA
226 Transfer complete.
92375 bytes received in 5.60 seconds (16.11 KB/s)
ftp> exit
# pkg_add *lsof-4.56.4.tgz**








*

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


Re: Eclipse and FreeBSD7

2008-01-19 Thread Jonathan Chen
On Sat, Jan 19, 2008 at 05:36:17PM +1030, Wayne Sierke wrote:
> On Sat, 2008-01-19 at 11:58 +1300, Jonathan Chen wrote:
> > On Fri, Jan 18, 2008 at 09:40:39PM +0100, Nicolas Letellier wrote:
> > 
> > [...]
> > > I saw this page (http://www.freebsd.org/cgi/query-pr.cgi?pr=118115) 
> > > which says that the last version has corrected the problem (3.2.2_1). 
> > > But the problem is the same. The new version doesn't install jdk*.
> > > I just installed diablo.
> > 
> > Eclipse will only work with the native-jdk. Use your installed
> > diablo-jdk to build the native-jdk, and then remove the diablo-jdk.
> 
> Does that only apply for 7.0 and/or eclipse-3.2? I previously had
> eclipse-3.3 (eclipse-devel) running with diablo-jdk-1.5.0.07.01 on
> RELENG_6.

According to the commit message on the eclipse port, this would apply
to FreeBSD 7.x and higher.

Cheers.
-- 
Jonathan Chen <[EMAIL PROTECTED]>

"We laugh in the face of danger, we drop icecubes down the vest of fear"
 - Edmond Blackadder III
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: going from 6.2 to 6.3 and custom kernel

2008-01-19 Thread Zbigniew Szalbot
Hello,

> Assuming you had the sources for 6.2 installed (how else could  you had
> compiled a custom kernel anyway?), freebsd-update will also update your
> sources (look at freebsd-update.conf and you will realize it
> immediately). Just go ahead and compile your new custom kernel!

Thank you!

FreeBSD 6.3-RELEASE #6: Sat Jan 19 10:19:28 CET 2008

:)

I'd like to thank all people involved with FreeBSD development and
support for a great, great product! You're doing an incredible work
for the benift of a large community. Thank you!

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: going from 6.2 to 6.3 and custom kernel

2008-01-19 Thread Manolis Kiagias



Zbigniew Szalbot wrote:

Hello again,

  

How do I update the kernel manually then?

Do I have to fetch the latest source and then follow the advice given here?

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

Thanks!

Zbigniew Szalbot


  

It will not update your kernel, but if you do freebsd-update install you
will get an updated GENERIC kernel in /boot/GENERIC.

This is what I did:

freebsd-update -r 6.3-RELEASE upgrade

(got the warning you mentioned)

freebsd-update install

Got a message about installing kernel updates. Got a new generic kernel
in /boot/GENERIC (check to see this exists!)

Depending on whether you have console access to the machine or not:

1. If you don't have console access (you are doing this remotely), mv
/boot/kernel /boot/mykernel.old and mv /boot/GENERIC /boot/kernel and
reboot. This is because you can't (normally) interrupt the loader
remotely - unless someone does it for you. Continue from step 3.

2. If you are in front of the machine, reboot. Stop the boot sequence
when the boot loader comes up, and escape to loader prompt. Type:

unload
load /boot/GENERIC/kernel
boot

3. You are now running a 6.3-RELEASE kernel, albeit a GENERIC one. Run
freebsd-update install again to install the rest of the system.

4. Recompile your custom kernel the usual way, i.e.



I do have to fetch the latest sources before building a custom kernel, don't I?

  

make buildkernel KERNCONF=MYKERNEL
make installkernel KERNCONF=MYKERNEL
reboot

5. You are done!



Thanks!

Zbigniew Szalbot

  
Assuming you had the sources for 6.2 installed (how else could  you had 
compiled a custom kernel anyway?), freebsd-update will also update your 
sources (look at freebsd-update.conf and you will realize it 
immediately). Just go ahead and compile your new custom kernel!


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


Re: going from 6.2 to 6.3 and custom kernel

2008-01-19 Thread Zbigniew Szalbot
Hello again,

> > How do I update the kernel manually then?
> >
> > Do I have to fetch the latest source and then follow the advice given here?
> >
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
> >
> > Thanks!
> >
> > Zbigniew Szalbot
> >
> >
> It will not update your kernel, but if you do freebsd-update install you
> will get an updated GENERIC kernel in /boot/GENERIC.
>
> This is what I did:
>
> freebsd-update -r 6.3-RELEASE upgrade
>
> (got the warning you mentioned)
>
> freebsd-update install
>
> Got a message about installing kernel updates. Got a new generic kernel
> in /boot/GENERIC (check to see this exists!)
>
> Depending on whether you have console access to the machine or not:
>
> 1. If you don't have console access (you are doing this remotely), mv
> /boot/kernel /boot/mykernel.old and mv /boot/GENERIC /boot/kernel and
> reboot. This is because you can't (normally) interrupt the loader
> remotely - unless someone does it for you. Continue from step 3.
>
> 2. If you are in front of the machine, reboot. Stop the boot sequence
> when the boot loader comes up, and escape to loader prompt. Type:
>
> unload
> load /boot/GENERIC/kernel
> boot
>
> 3. You are now running a 6.3-RELEASE kernel, albeit a GENERIC one. Run
> freebsd-update install again to install the rest of the system.
>
> 4. Recompile your custom kernel the usual way, i.e.

I do have to fetch the latest sources before building a custom kernel, don't I?

>
> make buildkernel KERNCONF=MYKERNEL
> make installkernel KERNCONF=MYKERNEL
> reboot
>
> 5. You are done!

Thanks!

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