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

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

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

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

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

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

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

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


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

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

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

options PAE

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

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


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

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

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

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

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

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


Re: Strange perl script

2007-10-17 Thread Josh Carroll
> The stangest thing is that I cann't find sploger on  my system. After a
> reboot sploger doesn't appear anymore, which makes it more stranger.

So you have done a:

find / -name sploger -type f

And nothing comes up? If that's the case, it sounds like it was a perl
script that was run, then subsequently removed from the file system.
Which sounds rather nefarious to me. You might want to check for
rootkits, etc.

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


Re: Can login using root password, but not remotely with SSH

2007-10-22 Thread Josh Carroll
> At computer terminal:
> PAM authentication error for root from 192.168.XXX.XXX

ssh access for root is disabled by default, for good reason. ssh as a
normal user, then su to root instead.

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


Re: defend from -> :() { :&:; } ;

2007-10-22 Thread Josh Carroll
> Please do not try to execute this: :() { :&:; } ;: on your BSD machine.
> I ask all who already tried it how to defend from this?

man login.conf

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


Re: Per-port options in make.conf?

2007-10-23 Thread Josh Carroll
> Is there any way to specify options in make.conf on a per-port basis?

Yes, something like this should work:

.if ${.CURDIR:M*/portnamehere*}
WITHOUT_X11=yes
.endif


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


Re: forcing compilation/run time linking of lib32 on amd64

2007-10-24 Thread Josh Carroll
> I am writing some demo code (for teaching C) and need to have the same
> program run on a 32 bit machine and a 64 bit machine (showing that int's
> are always word length)... I have 8-current amd64 how do I force it to
> compile with 32 bit words?

Add the following to your gcc command line:

-m32 -B/usr/lib32 -L/usr/lib32

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


Re: Problem with VNC on AMD64

2007-10-28 Thread Josh Carroll
> So VNC server will run, and I can connect to it from a VNC-client, but
> the window manager fails to start correctly.

I am having the same problem. My vnc log looks similar:

*snip*
X Error of failed request:  BadValue (integer parameter out of range
for operation)
  Major opcode of failed request:  102 (X_ChangeKeyboardControl)
  Value in failed request:  0x3c
  Serial number of failed request:  7
  Current serial number in output stream:  9
/usr/local/bin/wmaker fatal error: it seems that there is already a
window manager running

Of course, there's no window manager running (I get the default X gray
screen with a generic X cursor).

If I try to run wmaker against the VNC display, I get the same message:

% wmaker -display localhost:1
wmaker fatal error: it seems that there is already a window manager running

Like you, I've tried other window managers, but I have the same
problem. I'll wait to see if anyone has any ideas, otherwise I'm going
to go ahead and submit a PR for this.

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


Re: Problem with VNC on AMD64

2007-10-29 Thread Josh Carroll
> What version of VNC are you running.. ?

vnc-4.1.2_2 from ports. I wonder if this is related to it compiling
against ancient XFree86 source?

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


Re: Problem with VNC on AMD64

2007-10-29 Thread Josh Carroll
> vnc-4.1.2_2 from ports. I wonder if this is related to it compiling
> against ancient XFree86 source?

The tightvnc port has the same problem, actually. Same message in the
vnc log, but also another:

X Error of failed request:  BadValue (integer parameter out of range
for operation)
  Major opcode of failed request:  102 (X_ChangeKeyboardControl)
  Value in failed request:  0x3c
  Serial number of failed request:  6
  Current serial number in output stream:  8
Xlib: sequence lost (0x1 > 0x8) in reply type 0x0!
X Error of failed request:  0
  Major opcode of failed request:  0 ()
  Serial number of failed request:  0
  Current serial number in output stream:  8

Would it matter that the window manager itself is linked
against/compiled against X.org, while these VNC ports use old XFree86?
I wouldn't think so, unless Xlib is different enough.

Perhaps this should be posted to freebsd-x11 instead?

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


Re: Dangers of using a non-base shell

2007-10-30 Thread Josh Carroll
> It's been drawn to my attention not to use bash from the ports
> collection, because if one of it's dependencies (gettext or libiconv)
> fails or is updated significantly, it could break, and prevent login.
> The suggested solution was to use a base shell (such as sh) and append
> 'bash -l' to .shrc to automatically enter bash.

Personally, I use zsh for root's shell, and I just have the port
compile it statically, so I don't have to worry about a broken
dependency. There are other caveats, of course.

In my case, I just throw this in /etc/make.conf:

.if ${.CURDIR:M*/shells/zsh}
NO_SHARED=yes
.endif

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


Re: C compiler cannot create executables

2007-11-06 Thread Josh Carroll
> configure: error: C compiler cannot create executables
>
> I googled for awhile and found the suggestion to reinstall libtool, but
> that also fails with the same error.

Can you paste the config.log from the port's work source directory
(where configure is located)?

Can you try the following and see if it compiles?

echo '#include \nint main(void){ printf("hello world!\\n");
return 0;}\n' > t.c ; gcc t.c -o t; ./t; rm t.c

You should either see:

hello world!

Or some compiler errors/warnings/etc.

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


Re: disk drive serial number

2007-11-11 Thread Josh Carroll
> is there a way to get the serial number from a drive from within the OS?  im
> trying to audit the drives in my file server, but without pulling the thing
> from the rack and cracking it open.  they are just standard sata drives, not
> on any sort of raid controller (ie, i know 3ware cards are capable of pulling
> the drive info).

Check dmesg (or /var/run/dmesg.boot). The serial number should show, e.g.:

ad8: 381553MB  at ata4-master SATA150

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


Re: disk drive serial number

2007-11-11 Thread Josh Carroll
> That's the _model_ number, not the _serial_ number, yes?

Oops. Indeed. I misread the question. :/

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


Re: Installing ports to /usr

2007-11-14 Thread Josh Carroll
> Would there be any negative ramifications to installing ports in /usr
> instead of /usr/local? Like could they potentially clobber system
> binaries and other files or is this pretty safe to do?

More importantly, why do you want/need to do this? I personally like
the separation of world and ports. It keeps things nice and tidy, and
that's I'm sure a major reason why it was done that way (obviously,
clobbering things in /usr is the main reason).

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


Re: semi-OT: awk - field separator

2007-11-15 Thread Josh Carroll
> What is the canonical way to get (FreeBSD default) awk to use a
> single double-quote as the field separator?  I have tried variations
> on -F\\\" and -F"\"" and the best I can get is:
>
> + awk -F" {print $2}
> ./script.sh: 1: Syntax error: word unexpected

awk -F'"'

That's a single quote, then a double quote, then another single quote. Or:

awk -F\"

should also work.

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


Re: FreeBSD Production Release ISO images

2007-11-19 Thread Josh Carroll
> I'm wondering if the FreeBSD 6.2 Production Release ISO images get
> updated periodically when there are important patches, or is it better
> to download the latest snapshot to save the trouble of updating
> everything after installing?

No, the ISOs remain the same as when the release happens. You can use
freebsd-update or csup /usr/src after installation to get updated.

The snapshots are of 6-STABLE, so you wouldn't want to use that if you
want -RELEASE.

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


Re: Help for very bad perf for MySQL

2007-11-27 Thread Josh Carroll
> Is Hyperthreading enabled  (by default it is not under
> FreeBSD)  mysql is heavily dependent on threading, if it is not
> built and linked into the freebsd threads package you will get
> poor performance.  Some folks have installed the linux compat libs
> and linked mysql into the linux threads package and reported good
> results.

Actually, on 6.2, it's better to use libthr instead of libpthread.
This can be done for MySQL only, but to test this without recompiling
MySQL, he can:

% echo "libpthread.so.2 libthr.so.2" >> /etc/libmap.conf

Then restart the mysql server and test again. I noticed a huge
increase in performance on 6.2 with libthr instead of libpthread. It
wasn't a 10x improvement, though, so there is definitely something
else going on with his setup.

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


Re: help with AWk

2008-09-27 Thread Josh Carroll
> dig +short -x 1.2.3.4 | awk '{if ( $0 == "" ) {print "PTR_NUL" } else {print 
> $0 } }'

If you run the dig command without the pipe, it should give you an
idea of why what you're trying is not working.

> dig +short -x 1.2.3.4 | wc
   0   0   0

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


Re: More RAM for buffers?

2008-10-02 Thread Josh Carroll
> inactive, cache, and buffer are all different types of "buffer".

That is my understanding as well.

> I'm fairly sure that inactive is memory used by program code.  When the
> program terminates, the memory is marked as inactive, which means the
> next time the program starts the code can simply be moved back to
> active and the program need not be reloaded from disk.

I think non-program code can also be "inactive".

For example, top memory output before:

Mem: 337M Active, 1455M Inact, 407M Wired, 352K Cache, 214M Buf, 1745M Free

and after:  find /usr/src -type f -print0 | xargs -0 cat > /dev/null 2>&1

Mem: 348M Active, 1905M Inact, 402M Wired, 912K Cache, 214M Buf, 1288M Free

I am also not sure exactly what constitutes each of these. I only know
what the top man page says. And for Buf it says:

   Buf:   number of pages used for BIO-level disk caching

I'm not entirely sure what "BIO-level disk caching" is, but it is
apparently NOT the caching of filesystem data.

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


Re: irq256 ????

2008-10-09 Thread Josh Carroll
> I've just found in my machine's vmstat -i output:
>
> irq256: em042054  2

*snip*

> $ dmesg|fgrep em0
> em0:  port 0x30c0-0x30df
> mem 0x9030-0x9031,0x90324000-0x90324fff irq 20 at device 25.0 on pci0
> em0: Using MSI interrupt em0: [FILTER]
> em0: Ethernet address: 00:19:d1:25:78:0a
> $ uname -a
> FreeBSD XXX 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct  2 21:35:45 
> CEST 2008
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 $
> 
>
> What's that? (world and kernel are in sync)

For what it's worth, I see the same thing on 7.1-PRERELEASE on a box
with an em0 (PCI card) and on-board PCI-E msk0:

% grep -E '(em0|msk0|mskc0)' /var/run/dmesg.boot
mskc0:  port 0xc800-0xc8ff mem
0xfe9fc000-0xfe9f irq 17 at device 0.0 on pci2
msk0:  on mskc0
msk0: Ethernet address: 00:1d:60:bc:cc:39
miibus0:  on msk0
mskc0: [FILTER]
em0:  port 0xec00-0xec3f
mem 0xfebe-0xfebf,0xfebc-0xfebd irq 17 at device 1.0
on pci5
em0: [FILTER]
em0: Ethernet address: 00:0e:0c:6c:b9:16
em0: link state changed to UP

% vmstat -i
interrupt  total   rate
irq1: atkbd0   2  0
irq6: fdc011  0
irq17: em0 atapci1  53621626108
irq18: uhci2 ehci+ 1  0
irq19: fwohci0+   10  0
irq22: atapci2  29345269 59
irq23: uhci3 ehci1 1  0
cpu0: timer991289650   2000
irq256: mskc0   37714212 76
cpu1: timer991279642   2000
cpu2: timer991279641   2000
cpu3: timer991279641   2000
Total 4085809706   8243

And despite the "weird" interrupt, msk0 is operating just fine.

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


Re: Xeon Quad Core (Was: Server Freezing Solid)

2008-11-24 Thread Josh Carroll
> Sorry, I wasn't very clear.  I am currently running FreeBSD 7.0 the regular
> i386 release.  I would prefer to keep it that way if migration to the 64bit
> release would mean rebuilding from scratch (there is probably an easier way
> to convert an i386 release to a amd64 release).  Another poster seemed to
> indicate that the i386 release would run just fine on a quad core chip.

Yes, i386 will run just fine on a 64-bit Xeon. And no, there isn't an
easier (well,
one could argue it's easy, but tedious) way to "convert" to an amd64 release.

> Would there be a major performance gain with amd64 over that of the i386
> build on a Xeon Quad Core?

It depends entirely on your workload. Some things benefit, others may actually
slow down. One example that seems to benefit in general is multimedia type
applications (e.g. media encoding/decoding/transcoding).

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


Re: distributed shell (dancers shell)

2008-11-24 Thread Josh Carroll
On Mon, Nov 24, 2008 at 7:31 PM, Evuraan::ഏവൂരാന്‍ <[EMAIL PROTECTED]> wrote:
> How/where can I get dsh for Freebsd? attempts to compile it afresh
> have been failing, hence this question. thx.
>
> checking for endnetgrent... yes
> checking for open_dshconfig in -ldshconfig... no
> configure: error: dshconfig not found!!

It looks to me like you haven't compiled libdshconfig per the instructions here:

http://www.netfort.gr.jp/~dancer/software/dsh.html.en

Or, it can't find libdshconfig (where it installs by default depends on the
behavior of the libdshconfig build), in which case you should set CFLAGS
and LDFLAGS to help it find libdshconfig.

Whether it compiles cleanly/runs properly on a modern FreeBSD is
questionable, since this code hasn't been touched since 2005. But your
compile error does not appear to be a problem with FreeBSD.

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

Re: Xeon Quad Core (Was: Server Freezing Solid)

2008-11-24 Thread Josh Carroll
> I always thought AMD was Intel compatible.

In this case, it's the reverse. Intel's EM64T extensions are compatible
with AMD's X86-64.

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


Re: Mounting ext3fs partition

2008-12-03 Thread Josh Carroll
On Wed, Dec 3, 2008 at 2:45 PM, Fernando Apesteguía
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm running FreeBSD 7.1-BETA2. I have several partitions/filesystems
> in my computer and I would like to have full access to all of them.
>
> I've mounted the NTFS partition without problems (though it is
> read-only, it's enough for me)
>
> I've compiled the kernel with the EXT2FS option. I can mount the partition 
> with:
>
> mount -t ext2fs /dev/ad4s1 /mnt/linux
>
> note: the partition is actually a ext3fs...
>
> But if I enter the mount point and do "ls", I get:
>
> ls: /mnt/linux: Bad file descriptor

Is is possible you are running into a case where the inode size of the
partition is not the previous default for e2fsprogs of 128. I have a
patch that addresses this, but I am hesitant to suggest it, since I
have not yet validated that it does not trample some additional ext2
metadata. However, in the testing I've done, it has worked with all
the tests I've put it through.

You can verify the inode size with:

tune2fs -l /dev/ad4s1 | grep "Inode size"

It is likely 256 (the new e2fsprogs default), in which case you will
not be able to see or use the mount without a fix. If you're
interested in my patch, let me know and I can send it to you (the
machine it is hosted on is down at the moment).

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


Re: Mounting ext3fs partition

2008-12-03 Thread Josh Carroll
> Hi josh,
>
> Exactly, it is 256. So according to you, I can't use the mounted
> filesystem, right?
>
> Could you please explain in more detail, what the problem is?
>
> Thanks in advance.

I believe around e2fsprogs version 1.40.5 or so, they changed the
default inode size from 128 to 256. The current ext2fs driver in
FreeBSD has a hard-coded inode size defined:

#define EXT2_INODE_SIZE128

I have a patch that dynamically determines this size, but I do not yet
have a good enough understanding of the ext2/3 spec to decide if the
changes I made are sufficient to fix the problem or if there is some
risk of breakage because the extra 128 is required for some metadata
of some sort.

What happened in your case is something I was afraid of and what
prompted me to look into a fix in the first place - namely, newer
Linux distributions or even file systems created by e2fsprogs from
ports in FreeBSD will be unusable with the current ext2fs driver,
since it assumes a size of 128.

There is some more information here regarding the patch and its current status:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2008-11/msg00421.html

I (or even better, someone more knowledgeable about file systems) need
to read through the ext2/3 spec and determine if the changes I've made
cause any breakage.

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


Re: pkg_list mypackage?

2008-03-13 Thread Josh Carroll
>  The online FreeBSD manual in the "4.4 Using the Packages System" part
>  doesn't mention a command to list the files that were installed
>  through a package.
>
>  What is the equivalent of eg. "pkg_list mypackage"?

Have a look at the pkg_info man page. The option you're looking for is -L.

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


Re: Any software that can do X windows screen capture (with mouse cursor)

2008-03-18 Thread Josh Carroll
On Tue, Mar 18, 2008 at 12:54 PM, Patrick Dung <[EMAIL PROTECTED]> wrote:
> Hello
>
>  As title, I have tried xwd, it can't capture mouse curosr.

The "import" program that's part of the ImageMagick port can do so:

import image.png

Then draw a box around whatever you want to screen shot.
Alternatively, it can do the whole root window:

import -window root ss.png

ImageMagick is in:

/usr/ports/graphics/ImageMagick

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


Re: which ports tag should i follow?

2008-03-31 Thread Josh Carroll
On Tue, Apr 1, 2008 at 12:26 AM, CY Teng <[EMAIL PROTECTED]> wrote:
> Hi,
>  i'm a newbie to freebsd. after reading handbook, i chose 7.0-stable and
>  cvsup src-all, and now i don't know which ports tag to cvsup?
>  does ports cvs tree have RELENG_7 tag too, or i should follow tag "."?

Generally, you want to use ".". The only time you'd use a specific tag
is in rare cases where you're using an old (EOL'd) version of FreeBSD
and want to point to a known-good snapshot of the ports tree for that
branch. For example, RELEASE_4_EOL.

So the short answer is, stick with "." as the tag.

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


Re: How to switch scheduler on 7.0?

2008-04-15 Thread Josh Carroll
n Tue, Apr 15, 2008 at 9:59 PM, Daniel Tourde <[EMAIL PROTECTED]> wrote:
> Hi!
>
>  I would like to switch scheduler on my FreeBSD 7.0 box but I don't know how 
> to
>  do that. The scheduler by default has terrible performances under KDE/Gnome
>  and I would like to test the new one.

See the following for building a custom kernel:

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

You will want to use options SCHED_ULE instead of SCHED_4BSD in your
kernel config.

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


Re: How to switch scheduler on 7.0?

2008-04-15 Thread Josh Carroll
>  What made you believe it is the scheduler?
>
>  --
>  Mel

There were some reports of problems with responsiveness with the 4BSD
scheduler in 7.0 leading up to its release, so it's certainly a
possibility.

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


Re: make buildworld

2008-05-04 Thread Josh Carroll
On Sun, May 4, 2008 at 10:03 AM, Aguiar Magalhaes <[EMAIL PROTECTED]> wrote:
> Hi list,
>
>  How can i fix the error below ?
>
>  Thanks,
>
>  Aguiar
>
>
>  # make buildworld
>
>  - - - - - - - - - - - - - - - - - - - - -
>  cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/lib/libc/include 
> -I/usr/src/lib/li
>  bc/../../include -I/usr/src/lib/libc/i386 -D__DBINTERFACE_PRIVATE 
> -I/usr/src/lib
>  /libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/libc 
> -I/usr/src/lib/lib
>  c/resolv -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP 
> -DDES
>  _BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING 
> -Wsystem-
>  headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c 
> /usr/src/l
>  ib/libc/stdlib/strtoul.c
>  In file included from /usr/src/lib/libc/stdlib/strtoul.c:39:
>  /usr/src/lib/libc/../../include/stdlib.h:98: internal compiler error: 
> Segmentati
>  on fault: 11

Typically, a segfault from gcc indicates failing hardware, the most
likely culprit being the RAM. Test the RAM with memtest86
(http://memtest86.com/download.html) to rule it out.

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


Re: Cross compiling i386 packages on amd64

2008-05-06 Thread Josh Carroll
On Tue, May 6, 2008 at 12:21 PM, Andrew Cid <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I have an i386 jail running on an amd64 host that I use to build
>  packages.  Most packages build fine, however I have a few that fail.
>  This includes xorg (dri won't build) and mplayer.  In all cases I get an
>  error messages similar to this:
>
>  {standard input}:147: Error: `(%rsi)' is not a valid 32 bit base/index 
> expression
>  {standard input}:148: Error: `(%rsi,%rax)' is not a valid 32 bit base/index 
> expression
>  gmake[1]: *** [pullup.o] Error 1
>
>  Any ideas how I can fix this?

There are some tricks you can play. Notably, you need to trick auto*
tools into thinking it's an i386 system. I think setting UNAME_m=i386
does the trick there:

> uname -a
FreeBSD pflog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Feb 26
01:20:52 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG  amd64
> setenv UNAME_m i386
> uname -a
FreeBSD pflog.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Feb 26
01:20:52 EST 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG  i386

I believe there is something else I'm forgetting that you need to do
to make compilation happy for some ports, but I can't recall them at
the moment.

Of course, things that expect to talk to an i386 kernel aren't going
to work, and you may have issues with things that use hand-written
ASM.

Try setting UNAME_m though and see if it helps. It might also be wise
to set ARCH=i386 and/or TARGET_ARCH=i386 in /etc/ports.conf.

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


Re: coretemp 70C = CPU too hot?

2008-05-08 Thread Josh Carroll
On Thu, May 8, 2008 at 10:55 PM, Nerius Landys <[EMAIL PROTECTED]> wrote:
> Howdy.  I purchased a 1U 10 inch deep server machine a few months ago:
> http://www.abmx.com/1u-10inch-deep-supermicro-mini-server-p-366.html?osCsid=80f3951929d5a7ae27a51733627ee18a
>
> The CPU is a Xeon 3xxx dual core 2.4 GHz.  The machine has no case fans, by
> design.

Which exact Xeon part number is it? You can look up the thermal
specification on Intel's web site:

http://processorfinder.intel.com

Looks like most of the 2.4 GHz Xeons' maximum operating temperature is
65C, but one of them is 85C. So let's hope you have that particular
part (the X3220). :)

Anyway, that should confirm whether it is "too hot" or not.

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


Re: growisofs: "inapropriate ioctl for device"

2008-05-09 Thread Josh Carroll
On Fri, May 9, 2008 at 4:31 PM, Steve Franks <[EMAIL PROTECTED]> wrote:
> I get the following from growisofs -Z/dev/acd0=image.iso:
>
>:-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for device
>

Use /dev/cd0, not /dev/acd0.

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


Re: telnet to mail server from outside does not get 220, telnet from inside works

2008-05-12 Thread Josh Carroll
On Mon, May 12, 2008 at 10:04 AM, brad davison
<[EMAIL PROTECTED]> wrote:
>
>  Is there something I need to configure in telnetd or sendmail to allow 
> 'outside' IP addresses to telnet to the mail server and get a 220 response?
>
>  When I 'telnet localhost 25' i get:
>
>  email# telnet localhost 25
>  Trying ::1...
>  Connected to localhost.x.com.
>  Escape character is '^]'.
>  220 email.x.com ESMTP Sendmail 8.13.8/8.13.8; Mon, 12 May 2008 
> 10:01:39 -0400 (EDT)
>
>
>
>  But if I try the same thing from 'outside' the firewall I get:
>
>  %telnet email..com 25
>  Trying 67.x.x.x...
>  Connected to email.xxx.com.
>  Escape character is '^]'.
>  Connection closed by foreign host.

That looks like TCP wrappers dropping the connection. Have you checked
/etc/hosts.{allow,deny}? man 5 hosts_access for details.

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


Re: Acroread doesn't find a lib

2006-09-08 Thread Josh Carroll

Does /usr/X11R6/lib/libXfixes.so.3 exist? It is in the
xorg-libraries-6.9.0 package, so you might try re-installing it (via
ports or pkg_add, depending which you originally used).

If it does exist, try running ldconfig to see if the library shows up:

ldconfig -r | grep libXfixes.so.3

If it doesn't, you can try:

ldconfig -m /usr/X11R6/lib

Then see whether it's showing up with ldconfig -r.

Josh

On 9/8/06, vittorio <[EMAIL PROTECTED]> wrote:

Under freebsd 6.1 I have just portupgraded the ports acroread-7.0.8 and
libXfixes-2.0.1_2.

BUT

#acroread
/usr/X11R6/Adobe/Acrobat7.0/ENU/Reader/intellinux/bin/acroread: error while
loading shared libraries: libXfixes.so.3: cannot open shared object file: No
such file or directory


What should I do?

Vittorio
___
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: atapicam trouble (me too)

2006-09-10 Thread Josh Carroll

Neither disabling atapicam nor atapicd works on my Core2Duo system. I
don't know whether it's related to the new IDE controllers (JMicron
363 and Intel ICH8) or a similar problem to what you're reporting. The
best I can do is about 3MB/s with atapicd and DMA disabled and also
with atapicam. Both have problems reading files from a DVD, I end up
getting READ_BIG errors from the kernel. Sure would like to be able to
use this DVD drive in FreeBSD! :)

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


Re: Has anyone on this list set up an internet connection using a Westell WireSpeed ADSL modem? If so, please

2006-09-26 Thread Josh Carroll

I use a Westell 6100 without problems with FreeBSD. It is setup in
bridge mode and works great.

I wrote some software (http://wdiag.sourceforge.net) if you want to
query the DSL line stats/etc. Depending which model you have, it might
work for you (36R516, 2200, and 6100 series are all supported).

Josh


On 9/26/06, ograbme <[EMAIL PROTECTED]> wrote:


let me know what gotcha's, if any, I should be aware of.

Thanks in advance.

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


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


Re: Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Josh Carroll

Which version of perl do you currently have installed? For the latest
perl port, it should be located here:

/usr/local/lib/perl5/5.8.8/Getopt/Std.pm

% pkg_which /usr/local/lib/perl5/5.8.8/Getopt/Std.pm
perl-5.8.8

Perhaps try re-installing the perl port.

Josh


On 10/13/06, Garrett Cooper <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to make a Perl script with GetOpt::Std, a Perl module
that's supposed to exist with the base installation of Perl. Perl
reports that it doesn't exist in the @INC path for Perl and I haven't
really installed any additional Perl modules (at least to my knowledge).
Plus, if there is a port or option where I can keep GetOpt::Std up to
date, that would be the best way to maintain things.
Any help with this pursuit's much appreciated!
- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHj66CkrZkzMC68RAjHvAJwIqM1jmymQ4s/7zqmRomL//NTpPgCfddMs
iuC3evMEHhcAQ2MuWkdFxY0=
=n/wl
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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


Re: Perl's GetOpt::Std -- Where is it?

2006-10-13 Thread Josh Carroll

Actually, it looks like you're trying to:

use GetOpt::Std;

But it should be:

use Getopt::Std;

Note the non-capital o there :)

Josh

On 10/13/06, Garrett Cooper <[EMAIL PROTECTED]> wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Garrett Cooper wrote:
>   I'm trying to make a Perl script with GetOpt::Std, a Perl module
> that's supposed to exist with the base installation of Perl. Perl
> reports that it doesn't exist in the @INC path for Perl and I haven't
> really installed any additional Perl modules (at least to my knowledge).
> Plus, if there is a port or option where I can keep GetOpt::Std up to
> date, that would be the best way to maintain things.
>   Any help with this pursuit's much appreciated!
> -Garrett

Probably should have included more info:

Can't locate GetOpt/Std.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach
/usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at
./ipf_gen.pl line 7.
BEGIN failed--compilation aborted at ./ipf_gen.pl line 7.
[EMAIL PROTECTED] ~]$

- -Garrett
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFMHn16CkrZkzMC68RAlO+AJ9YmKP8HkA1WGu4hN0JIT+rPcFrxACZAQNy
xiPk1Prr3lr5+H/XMrXdFl8=
=tC1E
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


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


Re: atapicam trouble

2006-10-16 Thread Josh Carroll

Johan,

I have a PR submitted for this problem. I do not think it is
particular to Asus P5B boards, as I tried a Gigabyte DS3 board and it
had the same problem.

PR is here:

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

I'm unable to copy a file from a udf-mounted DVD regardless of whether
atapicam is loaded or not, so I'm not sure if atapicam is just making
a problem more apparent or what. Are you able to do so?

Thanks,
Josh

On 10/16/06, Johan Johansen <[EMAIL PROTECTED]> wrote:



I still have the same problem as below, even when running 6.2-BETA2 from
a FreeSBIE - cd. I wonder if this could have to do with badly supportet
motherboard, ASUS P5B, since I dont see any temp-readings with sysctl.
cpuTemp and MBTemp are displayed under bios-config.

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


Re: Appropriate CPUTYPE for Intel D840 "Smithfield"?

2006-10-21 Thread Josh Carroll

Since Pentium Ds are based on the Pentium 4 netburst architecture, I'd
say "p4" would be the most appropriate (e.g. -march=pentium4).

Josh


On 10/21/06, Juha Saarinen <[EMAIL PROTECTED]> wrote:

Out of curiosity, which CPUTYPE setting is appropriate for dual core
Intel D processors with GCC 3.4.4?

Googling throws up nothing useful.

--

Juha
___
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: HOWTO: run portupgrade with original options for perl5.8

2006-10-23 Thread Josh Carroll

For ports without "make config" you can edit
/usr/local/etc/pkgtools.conf and edit MAKE_ARGS, something like:

MAKE_ARGS = {
 'lang/perl5.8' => 'ENABLE_SUIDPERL=yes',
}

Of course, this only affects portupgrade/portinstall/etc. If you want
it to work for manual building of the port with make in the port dir,
you can alternatively edit /etc/make.conf and add something like:

.if ${.CURDIR:M*/lang/perl5.8}
ENABLE_SUIDPERL=yes
.endif

Thanks,
Josh


On 10/23/06, Lane <[EMAIL PROTECTED]> wrote:

Hello,

I run openwebmail which wants perl compiled -DENABLE_SUIDPERL

However, when I portupgrade perl, this option is apparently not reused, and
openwebmail fails until I recompile perl.

I note that there is no entry for perl in /var/db/ports (i.e. no "options" are
recorded).

I also note that the /options that are present for other ports contain the
header:

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!

and when I run make config from /usr/ports/lang/perl5.8 I get

===> No options to configure

So the question is:  How do I get portupgrade to remember the options I used
when I compiled perl?

Thanks!

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


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


Re: Determining system info

2006-11-05 Thread Josh Carroll

if [ "$TYPE" = "load" ]; then
INDATA=`cat /proc/loadavg | cut -d ' ' -f2 | sed 's/\.//g' | sed
's/^0//g'`
OUTDATA=`cat /proc/loadavg | cut -d ' ' -f3 | sed 's/\.//g' | sed
's/^0//g'`
fi


uptime | sed 's/.*load averages: //g' | cut -d, -f2 | sed 's/.*\.//g'
uptime | sed 's/.*load averages: //g' | cut -d, -f3 | sed 's/.*\.//g'



if [ "$TYPE" = "processes" ]; then
INDATA=`cat /proc/loadavg | cut -d ' ' -f4 | cut -d '/' -f 2`
OUTDATA=`cat /proc/loadavg | cut -d ' ' -f4 | cut -d '/' -f 1`
fi


top -d 1 | grep ' processes:' | awk '{print $1}'
top -d 1 | grep ' processes:' | sed 's/.*processes: *//g' | awk '{print $1}'


if [ "$TYPE" = "network" ]; then
LINE=`cat /proc/net/dev | grep $PARAM | sed s/$PARAM://`
INDATA=`echo $LINE | awk '{print $1}' `
OUTDATA=`echo $LINE | awk '{print $9}' `
fi


I'd use snmpd for this one.


if [ "$TYPE" = "swap" ]; then
SWAPFREE=`cat /proc/meminfo | grep "SwapFree" | sed 's/ //g' | cut -d
':' -f2 | cut -d 'k' -f1`
SWAPTOTAL=`cat /proc/meminfo | grep "SwapTotal" | sed 's/ //g' | cut -d
':' -f2 | cut -d 'k' -f1`
SWAPUSED=`expr $SWAPTOTAL - $SWAPFREE`
INDATA=$SWAPFREE
OUTDATA=$SWAPUSED
fi


swapinfo -k | grep -v '^Device' | awk '{print $4}'
swapinfo -k | grep -v '^Device' | awk '{print $3}'
(note: this assumes you only have one swap device)


if [ "$TYPE" = "uptime" ]; then
INDATA=`cat /proc/uptime |  cut -d ' ' -f1`
OUTDATA=`cat /proc/uptime | cut -d ' ' -f2`
fi


You'd probably want some magic to parse the output of uptime and
convert the time value into an integer here.


if [ "$TYPE" = "memory" ]; then
INDATA=`free -bt | grep buffers\/cache | awk '{print $3}'`
OUTDATA=`free -bt | grep buffers\/cache | awk '{print $4}'`
fi


vmstat | grep -vE '^ *(procs|r b)' | awk '{print $4}'
vmstat | grep -vE '^ *(procs|r b)' | awk '{print $5}'


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


Re: Cleanly remove a package

2006-11-05 Thread Josh Carroll

When upgrading a package say vsftpd, I used port install. After newer
version is installed, I have both newer and older versions being listed
if run pkg_info. The newer version works fine.


You can use portupgrade instead, which should deinstall the old
version, then install the new one. You can't install the new one
before the old one, so there will be a brief period of time between
the make deinstall and make reinstall that it may not be available.

Also keep in mind, if you are upgrading something like mysql, you
should update pkgtools.conf to restart it afterwards to minimize down
time (and so you don't have to remember to restart it). You can look
for the AFTERINSTALL section in pkgtools.conf for how to do this.

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


Re: portupgrade forget package options

2006-11-06 Thread Josh Carroll

Today I found the CPU is drained up by 5 instances of
"script" and "dialog", because everyday when portupgrade updates
python, it tried to display a menu in text mode and ask for a few
options (such as whether python should support IPv6 etc), which of
course hangs in cron job.


Some ports have a config make target which will save options. For
ports that do not, you can use pkgtools.conf and set MAKE_ARGS for
that port.

It may be that a port was modified to support the config target, but
you have not yet run make config for it. It should remember the
options after you make config and select the options you want
included/excluded.

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


Re: Is the vulnerability database up to date?

2006-11-10 Thread Josh Carroll

So - what's the point? I mean updating the port to a newer port with the
same or newer known vulnerabilities?


# portaudit
0 problem(s) in your installed packages found.
# pkg_info| grep firefox
firefox-2.0_2,1 Web browser based on the browser portion of Mozilla

Seems ok to me. Which version of firefox is in your ports tree, and
have you run portaudit -F lately?

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


Re: Shutting down as user

2006-11-13 Thread Josh Carroll

Hi everyone.  I just installed 6.1 on an old laptop, and I am unable to
shutdown as user.  I get a "permission denied" error message.


Whatever is shutting down the system would either need to be setuid
(chmod u+s), or would need to use sudo (if you have the sudo port and
your user is properly setup in sudoers to issue the shutdown command
or whatever is running).

Some details on which window manager or desktop environment you are
running would help, along with whether or not you are running a
display manager (GDM, KDM, XDM, etc).

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


Re: choosing the cputype for core 2 duo?

2006-11-13 Thread Josh Carroll

So the
„server" has a conroe core 2 duo processor. What would be the best choice in
make.conf as a CPUTYPE paramater for this processor (other make.conf related
recommendations also welcome). I have had only experience installing freebsd
on a bit older amd machines where the choise was obvious.


I think the closest you can use is pentium-m, while adding -msse3 to
CFLAGS. Perhaps something like:

CPUTYPE?=pentium-m
CFLAGS=-O2 -mmmx -msse -msse2 -msse3 -pipe

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


Re: Dual core processors

2006-11-14 Thread Josh Carroll

up in the 'C' column of top after I've rebooted with the newly compiled
kernel.


Run top with the -S argument. You should then see two "idle"
processes, one for each CPU:

  11 root  1 171   52 0K 8K CPU0   0  72.1H 91.70% idle: cpu0
  10 root  1 171   52 0K 8K RUN1  72.2H 90.97% idle: cpu1

Can you confirm whether you see that or not? I do not have APIC_IO in
my kernel either, and it is showing both cores in top (Core 2 Duo
CPU).

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


Re: PRs dead

2006-11-24 Thread Josh Carroll

Since the move to the new servers my followups disappear in an unknown black 
home.


Well that explains why the reply to my PR isn't showing up in the PR
history on the tracking web page. I guess it could be delayed, but it
was sent a couple hours ago.

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


Re: Waiting for BIND security announcement

2007-08-01 Thread Josh Carroll
You need wait no longer...the security advisory just went out with a patch:

http://security.freebsd.org/advisories/FreeBSD-SA-07:07.bind.asc

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


Re: Forcing a port to install?

2007-08-02 Thread Josh Carroll
On 8/2/07, Chris Maness <[EMAIL PROTECTED]> wrote:
> If a port has been black listed by portaudit, how do you install it anyway?

>From the ports(7) man page:

 DISABLE_VULNERABILITIES
   If defined, disable check for security vulnerabilities
   using portaudit(1) (ports/security/portaudit) when
   installing new ports.

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


Re: Bizzare routing table entry.

2007-08-07 Thread Josh Carroll
> root# route delete 0&0xc0a80132
>
>   [1] 37343
>   route: writing to routing socket: No such process
>   delete net 0: not in table
>   0xc0a80132: Command not found.
>   [1]  + Exit 1route delete 0

> root# route delete 0&0xc0a80132
>
>   [1] 37343
>   route: writing to routing socket: No such process
>   delete net 0: not in table
>   0xc0a80132: Command not found.
>   [1]  + Exit 1route delete 0

I've no idea whether that is a valid route or not, but the reason
you're getting that funkiness is that the shell is eating the & and
thinks you are sending the route process to the background. Try:

route delete '0&0xc0a80132'

And see if it lets you remove the entry.

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


Re: freebsd 7 release date :)

2007-08-20 Thread Josh Carroll
> I'm not suggesting we lay out a strict timeline, as I'd much prefer
> the releases when they're ready, but simply a page saying, 'Hey,
> FreeBSD x.y release is coming soon, we're currently working on 'blah.''

Something more than what's here then?

http://www.freebsd.org/releng/


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


Re: Building UNSTRIPPED binaries in ports?

2007-08-21 Thread Josh Carroll
> Is there some make.conf or compile time flag that I can set that would
> prevent the stripping from happening?
>
> Or would I just have to manually edit the makefile someplace -- and if so,
> can anyone give a pointer as to where?  Setting the strip command to
> /bin/true or something, perhaps -- but I can't be sure if the
> strip_command is being used.

A quick perusal of /usr/ports/Mk/bsd.port.mk shows this:

# WITH_DEBUG- If set, debugging flags are added to CFLAGS and the
# binaries don't get stripped by INSTALL_PROGRAM.
# Besides, individual ports might add their specific
# to produce binaries for debugging purposes.
# You can override the debug flags that are passed to
# the compiler by setting DEBUG_FLAGS. It is set to
# "-g" at default.

so try adding WITH_DEBUG...

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


Re: Monitoring CPU usage on multi-core system

2007-08-26 Thread Josh Carroll
On 8/27/07, Paul Hoffman <[EMAIL PROTECTED]> wrote:
> Hi again. On a dual-core system, how do I tell how much of each of
> the CPU cores are in use? Is the CPU usage in 'top' for the two CPUs
> at once? Is there something in ports (that works without X...) that
> will give good info?

The CPU states line in top is for all processors combined. That is, if
you see 100% user, it's using all cores/processors. You will see
individual processes in state CPU1 or RUN. If a processes is
multi-threaded, you may see CPU % > 100%.

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


Re: FreeBSD 4.7 make question

2007-09-07 Thread Josh Carroll
On 9/7/07, Jason Lieurance <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I didn't keep our 4.7 up to date and now 'make' errors out whenever you
> try to update ports or install any software. How do I fix this issue?

Update your ports tree with the RELEASE_4_EOL tag, then try again.

Note that FreeBSD 4.x is no longer supported and you WILL have
problems with ports, unless you use the previously mentioned tag when
cvsup'ing your ports tree.

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


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> In general, if you are running a multi-process or multi-threaded
> workload, FreeBSD 7 will be able to make good use of 8 CPU cores.
>
> Over the past 2 years we have done extensive benchmarking and
> optimizations that have resulted in *huge* performance improvements on
> many common workloads on 8-core systems.  FreeBSD 7 is now regularly
> outperforming Linux on the workloads we have compared.  In the near
> future we will be widening our scope to 16 core systems as well as
> investigating more benchmarks as we find them.

Isn't the default scheduler still 4BSD on -CURRENT? Is ULE considered
stable on SMP systems now, and does it really outperform 4BSD? If so,
will it be set as the default scheduler once 7.0 is released?

To the original question, go with the Q6600, especially if you can get
a G0 stepping. It'll easily do 3.2 GHz (lowered 8x multiplier with 400
MHz FSB) if you get DDR2-800 capable RAM. Even the B3 stepping will do
3.2 I think, but will run hotter.

I would avoid P35 chipsets for now, as there is limited support for
the south bridge (ICH9). I think there are some patches (which may be
merged into -CURRENT, not sure). I'm not sure whether the Marvell
chipset(s) used on the P35 boards are supported or not, and USB may or
may not work.

The P965 chipset boards will support the Q6600 and many of them will
support Penryn when it comes out (the 45nm based true quad core Intel
CPU). I have an Asus P5B and a Q6600 running at 3.4 GHz on 6.2-RELEASE
and it screams (8:20 to build world with make -j8, for example). So
even 6.2 will take good advantage of the 4 cores, and I imagine it'll
only get better when 7.0 is released. I'd just avoid the bleeding edge
motherboards/chipsets.

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


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> Yes, 4BSD is still the default, although you definitely want to use ULE
> for performance reasons (NB: only on 7, dont use ULE on 6).  I don't
> know whether the release engineers plan to change that default, but I
> will check.

Great, thanks for the info. Good to know, I'll be sure to use ULE when
7.0 is released. :)

> JFYI, buildworld is a really bad benchmark for testing SMP performance
> in general (on 4 cpus it is not too bad), because the makefiles are not
> written to efficiently parallelize builds on many CPUs, so large parts
> end up running with only a single make job at a time.

Understood, just a data point. :) Probably a better one: ffmpeg
encoding H.264 content with -threads 8 is nearly 4x as fast as a
single threaded ffmpeg process, so it's scaling well at least for
ffmpeg (linked against pthread).

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


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> That's good to know.  You should be using libthr for threaded
> performance though :)  That benchmark is probably almost all userland
> though, so performance may not suffer much from libpthread.

Oh I wasn't sure if libthr was the preferred thread library for 6.2
also (I'd heard that was the case for -CURRENT).

I should look into whether ffmpeg can be built with libthr instead and
compare performance. Somewhat off topic, so I'll leave it at that, but
thanks again for the great info. I'm really looking forward to
7.0-RELEASE, obviously :)

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


Re: End-of-life for my amd64 ?

2007-09-19 Thread Josh Carroll
> Thanks for the feedback.  It's always good to hear "it works fine"
> anti-bug-reports :)
>
> Kris

This is getting a bit off topic, so pardon me. :) I picked a bad time
to try to move to 7-CURRENT, just after the gcc 4.2.1 integration.
Many ports would not compile properly, etc. I hope that stabilizes
soon, so I can give current another shot :)

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


Re: GAIM??

2007-09-19 Thread Josh Carroll
> On my ubuntu srver I've used gaim for quite awhile.   When I
> looked for it with locate on my new server the file said it was
> going away by fall.  Is there ea new, improved port?
>
> gary

It was renamed to "pidgin", which is in ports here:

/usr/ports/net-im/pidgin

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


Re: LKM Trojan?

2007-02-18 Thread Josh Carroll

running "ls" in the /proc directory returns an empty list.
I have recompiled the kernel and world but the problem persists.
Any suggestions on how to fix this without having to reinstall from scratch?


Are you sure /proc is mounted? I don't think it's mounted by default.
Check the output of mount and see if it's mounted or not.

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


login.conf not honored for rc scripts?

2007-02-21 Thread Josh Carroll

I've been having a problem with mysql and apache starting up properly,
and finally I think I found the issue.

I have a "gallery" class defined in /etc/login.conf with the limits I
want, but the rc scripts are using the default class values instead. I
put:

limits > /tmp/limits

In the /usr/local/etc/rc.d/mysql-server rc script, and I see the following:

Resource limits (current):
 cputime  infinity secs
 filesize infinity kB
 datasize24576 kB
 stacksize   24576 kB
 coredumpsize0 kB
 memoryuse   24576 kB
 memorylocked24576 kB
 maxprocesses   25
 openfiles 200
 sbsize   infinity bytes
 vmemoryuse  24576 kB

Here is the gallery login class definition from login.conf:

gallery:\
   :datasize=400M:\
   :stacksize=400M:\
   :memorylocked=400M:\
   :vmemoryuse=400M:\

And here is the mysql entry in master.passwd:

mysql:*:88:88:gallery:0:0:MySQL Daemon:/nonexistent:/sbin/nologin

I'm hoping someone can point out what I'm missing here. Before anyone
asks, yes I did run pwd_mkdb and cap_mkdb :)

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


[SOLVED] Re: login.conf not honored for rc scripts?

2007-02-21 Thread Josh Carroll

Ok, I should have dug into the rc scripts to begin with. For archive
sake, and so others who may stumble upon this can find a solution, I
found that for mysql, I needed the following in rc.conf:

mysql_limits=YES

And also, since the mysql rc script is hard-coded to use the login
class "mysql", I had to change that name.

For apache, it's more configurable, so I was able to add the following:

apache22limits_enable=YES
apache22limits_args="-e -C www"

And I just renamed the gallery class to www for clarity.

Sorry to bug the list :) I should have read the damn source to begin with.

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


Re: Patches in FreeBSD

2007-02-26 Thread Josh Carroll

My question is:   How do I respond to this?
I have seen the word patch used in security update messages - but
didn't follow that path.   Is that real?   Does it cover kernel
things essentially on the fly or is a 'time consuming' rebuild
still needed?


6.2 now official supports binary patches via freebsd-update(8). From
the 6.2-RELEASE announcement
(http://www.freebsd.org/releases/6.2R/announce.html):

"freebsd-update(8) provides officially supported binary updates for
security fixes and errata patches"

So there's your response. :)

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


Re: Patches in FreeBSD

2007-02-26 Thread Josh Carroll

and you can update your third party packages via binary packages
(which you can get from freebsd.org or build yourself)...so it seems
these two solutions would be a great fit.


Right, using packages instead of ports means he can do binary updates
of packages as well, without having to recompile them from ports for
version updates.

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


Re: pf.conf and cable modem

2007-02-27 Thread Josh Carroll

I am converting from DSL to RoadRunner this week and wondering if
there is anything special I need to do to my pf.conf for passing DHCP
into my NIC?


I think all you'll need is:

pass in quick on $ext_if proto udp from any port 67 to any port 68 keep state

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


Re: pf.conf and cable modem

2007-02-28 Thread Josh Carroll

When I used DHCP with PF, I found that it just worked without any rules
at all.


As long as you're allowing packets out with keep state, it may be that
it is able to allow the inbound DHCPOFFER after a DHCP REQUEST
outbound. The rule I provided may not be necessary, then.

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


Re: /usr/local/etc/rc.d startup scripts

2007-03-07 Thread Josh Carroll

Someone is telling me they need to have a .sh suffix to startup correctly,
but in past versions of FreeBSD anything you put in there would run as long
as it was executable.


It need not have an sh extension. The MySQL port, for example,
installs /usr/local/etc/rc.d/mysql-server, which works fine.

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


Re: "AMD64 -current iso laying around?" or "How to make a LiveCD from scratch?"

2007-03-10 Thread Josh Carroll

So, in an effort to get my system up and running I was wondering if
someone could provide me with either a link to a v7 ISO available
somewhere, or directions on how to make a FreeBSD LiveCD (I have 2
other IA32 systems kicking around I can use for building stuff :)..).


There are 7.0-CURRENT snapshots available on ftp.freebsd.org, for example:

ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/200703/7.0-CURRENT-200703-amd64-disc1.iso

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


Re: IRQ storm

2007-03-24 Thread Josh Carroll

I've changed motherboard recently (now it is Intel DP965LT) and now I
have my PC slowed down considerably. vmstat -i shows a huge amount of
interrupts on irq17: atapci0:


Do you have atapicam enabled or being loaded as a module? If so, I
have the same problem, which is currently being tracked in this PR:

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

A workaround, if you don't need/want to burn cds/dvds is to remove
atapicam or don't load the module at boot time.

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


Re: the art of pkgdb -F

2007-03-27 Thread Josh Carroll

Stale dependency: p5-Authen-SASL-2.09 -> p5-GSSAPI-0.24 (security/p5-GSSAPI):
p5-Geography-Countries-1.4 (score:26%) ? ([y]es/[n]o/[a]ll) [no]


Well this one is pretty obvious. Look at what the stale dependency is,
and what it's suggesting? :)

Sometimes it can be less clear, though. You just have to take a best
guess, or look at the dependencies for the installed package with
pkg_info.

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


Re: LD_LIBRARY_PATH

2007-03-28 Thread Josh Carroll

New to FreeBSD.  How can I update my LD_LIBRARY_PATH?

In Linux I modify my /etc/ld.so.conf file and run ldconfig.  Is there an
equivalent here?  A pointer to docs would be fine.


There are a couple of ways. First, you can look at
/etc/defaults/rc.conf for the default value of ldconfig_paths. On this
6.2-RELEASE system, it's set to:

ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib
/usr/local/lib/compat/pkg"

So you can edit /etc/rc.conf and append to that list. E.g. if you
wanted to add /usr/local/my_libs, you'd put the following in
/etc/rc.conf:

ldconfig_paths="/usr/lib/compat /usr/X11R6/lib /usr/local/lib
/usr/local/lib/compat/pkg /usr/local/my_libs"

Another possibility, based on a cursory read of /etc/rc.d/ldconfig,
would be to add the path to /etc/ld-elf.so.conf (which probably
doesn't exist by default).

Either way, once you've added your path, you'd run:

/etc/rc.d/ldconfig start

Which should add the libraries from the added path.

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


Re: SATA DVD-RW drive not recognised by FreeBSD

2007-03-29 Thread Josh Carroll

I have some trouble with my SATA-DVDRW. It's not recognised in the boot
process, although I think all kernel settings are correct. A SATA
harddisk works fine. Is there a general issue with SATA-dvd burners?


At least in 6.x and I assume 6-STABLE (unless support has been MFC'd),
SATA ATAPI devices are not yet supported:

/usr/src/sys/dev/ata/ata-chipset.c:device_printf(ch->dev,
"SATA ATAPI devices not supported yet\n");

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


Re: Help Finding Disk Drive Usage

2007-03-30 Thread Josh Carroll

So why does du report only 2.0 GB of usage while df reports over 6 GB?
Where has my storage gone?  Or do I not understand proper usage of du?


If you removed files that still had open file handles (e.g. from
/var/log), they are likely still allocated and showing up in df, but
not du since they're not on the filesystem anymore. Restart any
daemons that you removed log files for, and the space will "show up".
Or a simple reboot should fix things.

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


Re: automatically starting PostgreSQL

2007-04-02 Thread Josh Carroll

Execute rights, yes, but you shouldn't rename it to foo.sh under
6.2 -- that's not how things are supposed to work in recent releases.


Without the PROVIDE: in the rc script, it won't get executed unless it
has an .sh extension. man rc has details, but .sh should still work
and I think is required without the rcorder keywords.

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


Re: Problem with portupgrade

2007-04-06 Thread Josh Carroll

deimos# portupgrade -PR libmpeg2
[Updating the portsdb >format:bdb_btree> in /usr/ports ... - 16851
port entries found
{lines cut} . done]
[missing key: categories: Cannot read the portsdb!
database file error

{following some ruby errors regarding the fact that the db can't be
read?!}


Try removing (or moving so you have a backup) your
/var/db/pkg/pkgdb.db file, then running pkgdb -u to update/create it.

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


Re: script perl with sed command

2007-04-08 Thread Josh Carroll

Interesting. Is that old perl syntax (v4, etc)? Just curious because
most of the documentation and examples switched to:


No, he's using a function prototype. In this particular case, he's
saying the supfile_set_default_host function will take two scalars as
arguments.

For more info:

perldoc perlsub

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


Re: "No CD/DVD devices found" after booting from FreeBSD 6.2 CD 1

2007-04-11 Thread Josh Carroll

Because before it starts it relies on BIOS to provide services (in
16-bit x86 mode), but after the kernel starts, it must use its own
drivers (32-bit or 64-bit, depending on your choice) and it seems it
doesn't have the right drivers. Most CD/DVD drives are standard and
register as ATA or SCSI drives but, as you see now, there are those that
require special support.


It looks like the chipset on that particular Dell model is the NVIDIA
nForce 430. Others have had success with that chipset, and even a
similar Dell model according to this page:

http://www.freebsd.org/platforms/amd64/motherboards.html

You may want to try updating the BIOS. The entry for the Dell E521
mentions a BIOS update.

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


Re: Migrating from i386 to AMD64

2007-04-17 Thread Josh Carroll

Now.. Can I just use the same SMP kernel I have currently (assuming the
correct drivers are loaded) for the X2 processor if I just want to run it in
32 bit mode?


Yes, it should work fine. You may need to update /etc/fstab of course,
and any other settings that need to change along with the motherboard
change, but other than that it should just work.


Or do I need to do a complete re-install/upgrade to the AMD64
platform version of FreeBSD?


If you want to run the AMD64 version, yes the BKM is a re-install. But
you need not install the AMD64 version, the i386 version will run fine
on the X2.


I'm not worried about memory usage past 4 GB (that's all we're installing),
or the slight (possible) increase in speed from using the native 64 bit
stuff.


Then stick with i386. Your existing installation (assuming you've not
used processor-specific CFLAGS to build world and/or ports) should
work fine.

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


Re: completly remove (or modify) a port

2007-04-18 Thread Josh Carroll

what is the way to either remove the stored configuration file, or to manually
pass the parameters to make.  A look at the Makefile and the other files
in /usr/ports/mail/postfix didn't turn up any hints.


You can either:

make rmconfig

or just:

make config

Then re-build/install it.

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


find processes with pages in swap

2007-04-19 Thread Josh Carroll

Hello,

I was wondering if there is a utility that allows you to query swap
and determine which processes currently have virtual pages in swap. I
couldn't find any way from the pstat/swapinfo man pages, but hopefully
I'm overlooking something.

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


Re: trouble compiling a port - expect on 6.2RC1

2006-11-27 Thread Josh Carroll

How do I go about determining outstanding issues for any given port?


You can search existing PRs here:
http://www.freebsd.org/cgi/query-pr-summary.cgi?query

If the port itself is broken, it will be marked as such, but those
ports compile fine on my 6.2-RC1 system, so it's unlikely they are
broken.

Perhaps you can paste the last 15-20 lines of the output when you try
to compile the tcl port? It might be more appropriate to troubleshoot
on the ports mailing list if it's a ports issue.

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


Re: Which version to use ( Xeon 64 bits )

2006-12-06 Thread Josh Carroll

I just receive a new IBM X3650 server bi-proc XEON and
I wonder which version of FreeBSD to use with it I386 or AMD64 ?


Do you have more than 4GB of RAM? If not, I'd recommend sticking with
i386. There are very few things that will actually run any faster with
the AMD64 version (notably, media encoding/decoding and anything else
that can take advantage of the 64-bit registers for math operations).

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


Re: Any way to tell what the RAM configuration is?

2006-12-06 Thread Josh Carroll

Sure.  Install the dmidecode port (from /usr/ports/sysutils/
dmidecode), and run:

   dmidecode -t memory


Of course, this relies on the BIOS reporting the memory properly. In
my case, on an Asus P5B motherboard, it reports the RAM at 533 MHz
(DDR2-533), even though it's set in the BIOS to run at DDR2-800.

So, your mileage may vary, but as long as the BIOS is reporting it
accurately, dmidecode is the way to go.

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


Re: portupgrade refusin to upgrade a port .. when it shouldn't imho

2006-12-06 Thread Josh Carroll

>> ** Port marked as IGNORE: multimedia/win32-codecs:
>> is forbidden: Remote code execution:
>> http://vuxml.FreeBSD.org/24f6b1eb-43d5-11db-81e1-000e0c2e438a.html
>>
>> Isn't this behaviour flawed ??  Or am I missing something ?


You need to make config in /usr/ports/multimedia/win32-codecs, and
unselect quicktime. Then the port should install. This is assuming, of
course, that you can live without the QT codec(s).

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


Re: Is there UNIX analog of ftp command pls?

2006-12-21 Thread Josh Carroll

pls directory

will give

ls -l | less directory

which is not what one want.


Try the following:

bourne shells:
alias pls='ls $* | less'

or for csh/tcsh:
alias pls 'ls $* | less'

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


Re: network tuning and performance troubleshooting

2007-01-03 Thread Josh Carroll

Problem: Browser status 'looking up address' for 10 seconds for any
 web page clicked. Slashdot takes almost a minute to load. But FTP
performance is good and running a shoutcast stream is no problem.
Sending mail via my ISP is slow.


How about a large transfer over http with fetch or wget? Does it
perform as well as an ftp connection? It could be a DNS problem. Try a
dig of slashdot.org and see what the query time is:

dig A slashdot.org | grep 'Query time'

Run that a few times and see how fast it's resolving. It should be on
the order of a 100ms or less, at least after the first query.

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


Re: who's using that port?

2007-01-12 Thread Josh Carroll

netstat -na confirmed that they were, but not by who. There's no -p
argument to track the pid of the process using the port.

How do you track that on BSD?


sockstat -4 -p 

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


Re: ATAPI CDROM Problem

2007-01-17 Thread Josh Carroll

I am trying to install FreeBSD 6.2 on my new machine and have a problem. I boot using 
6.2-disc1, but when I try to choose CD/DVD as installation media, the installer says: 
"No CD/DVD drives found".


Is this by chance a newer Core 2 Duo system with a motherboard with an
Intel p965 chipset? If so, I think this is a known bug. I know at
least one other person who was unable to install FreeBSD 6.2 on a p965
board. The installer does not see the PATA hdd or the ATAPI CD device
on the JMicron controller.

I'm not sure if it's related, but it sounds similar to this PR I submitted here:

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

Others might be able to offer workarounds for getting the installer to
work (since my DVD drive works for normal things, just not ATAPICAM).

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


Re: Flash 9

2007-01-17 Thread Josh Carroll

and was wondering if anyone has tried it yet. I'm at work, not at a *BSD
desktop.


I get a segfault from linux-firefox when I try to play a video from
youtube. It's been this way for the last few releases of the Linux
Flash 9 player.

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


Re: Q: re ASUS motherboard with dual inet interfaces

2007-01-30 Thread Josh Carroll

Using FreeBSD v6.0. Need separate local and public
connections to this machine.


There's your problem. If it's the board I'm thinking of, it has one of
the newer Marvell chipsets which isn't supported in 6.0. Give
6.2-RELEASE a shot, and I imagine it'll see your network cards.

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


Re: where are packeges after "pkg_add -r zzz" stored

2007-01-30 Thread Josh Carroll

I have a slow Internet connection at home and a fast one in the office.
I want to download a package and ALL dependencies from office PC then
take them and install them at home. My question is where are the
packages stored after being downloaded with pkg_add -r zzz.



From man pkg_add:


-K  Keep any downloaded package in PKGDIR if it is defined or in cur-
rent directory by default.

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


Re: (no subject)

2007-02-01 Thread Josh Carroll

In bash or csh I want to start nmap scanning at every 1 hour.how can I do this?
thanks


Use cron (man cron, man 5 crontab). Something like:

0 * * * * /usr/local/bin/nmap 

Would run it on the hour, each hour. Read the man pages for more details.

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


Re: iTunes - once again.

2007-02-04 Thread Josh Carroll

Call me silly, but it seems to me you ought to be lobbying Apple for
Linux support.

Get a decent Apple-made Linux player, and FreeBSD support via the
linux emulator would *probably* work, no?


I agree, getting Apple to support iTunes on Linux is key. I don't know
if there have been other online petitions, but here's a recent one for
just that:

http://www.petitiononline.com/itunesli/petition.html

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


Re: memory above 4Gb ignored

2007-02-05 Thread Josh Carroll

I do not see any reference to resolving the
"786432K of memory above 4Gb ignored" anywhere in Google or otherwise.


Are you running the i386 version of 6.2-RELEASE? If so, you will need
to enable PAE (recompile the kernel with options PAE), or install the
amd64 version of 6.2 instead. Note that there is a performance hit
with PAE and other downsides, so you should probably go for the amd64
version for optimal performance.

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


  1   2   >