Re: Disabling ssh timeouts?

2009-05-12 Thread Josh Carroll
On Tue, May 12, 2009 at 10:03 PM, Steve Kargl
s...@troutmask.apl.washington.edu wrote:
 Is there anyway to disable sshd from timing out a connection?
 I've tried setting  ClientAliveCountMax and ClientAliveInterval
 and TCPKeepAlive in sshd.conf, but no combination that I've
 tried has worked.

My suggestion would be to install and use the screen port:

/usr/ports/sysutils/screen

You can then start the test suite run, detach from the screen session,
then ssh in and re-attach to the screen session later to check up on
it.

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


Re: mount_cd9660 - /dev/md0: Invalid Arguement

2009-04-20 Thread Josh Carroll
On Mon, Apr 20, 2009 at 12:32 PM, Евгений Л root1...@gmail.com wrote:
 Hello everyone, I am trying to mount an ISO image (which was converted with
 with help from ccd2iso tool), I used

 mdconfig -a -t vnode -f ./isoimage.iso -u 3
 mount -t cd9660 /dev/md3 /cdrom

 and

 mdconfig -a -f /path/disk.iso md1
 mount -t cd9660 /dev/md1 /mnt/path

 variant of the proper way. It doesn't work.

Both work fine here on 7.2-RC1/amd64:

r...@pflog:~# mdconfig -a -t vnode -f ./7.2-RC1-i386-bootonly.iso
md0
r...@pflog:~# mount -t cd9660 /dev/md0 /mnt  ls /mnt  umount /mnt
boot boot.catalog cdrom.inf

r...@pflog:~# mdconfig -d -u 0

r...@pflog:~# mdconfig -a -f ./7.2-RC1-i386-bootonly.iso -u 3
r...@pflog:~# mount -t cd9660 /dev/md3 /mnt  ls /mnt  umount /mnt
boot boot.catalog cdrom.inf

How doesn't it work? What error do you get? I would be more suspicious
of the .iso file being invalid/corrupt.

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


Re: Flash 10

2009-04-19 Thread Josh Carroll
On Sun, Apr 19, 2009 at 10:32 PM, Christopher Chambers
ccha...@interchange.ubc.ca wrote:
 Hi,

 Nspluginwrapper's website says that version 1.2.2 is capable of
 installing flash 10. When I tried it, I got the message: no appropriate
 viewer found. Any ideas?

I just installed it with success on 7.2-RC1/amd64. I had
nspluginwrapper-1.2.2_2 already installed and installed flash10 with:

cd /usr/ports/www/linux-f8-flashplugin10
make install clean

Then I just ran this as my regular user:

nspluginwrapper -v -a -i

What option(s) were you using to nspluginwrapper? Can you provide the
full output from nspluginwrapper when you run it?

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


Re: find command question

2009-04-09 Thread Josh Carroll
On Thu, Apr 9, 2009 at 8:01 AM, Jay Hall jh...@socket.net wrote:
 When using the find command with the -exec option, does the find command
 wait for the command being executed to finish before returning the next
 result?

 For example, if I am using find -exec {} to copy files to tape, will find
 wait for the command to write the file to tape complete before it returns
 the next result?

It has to wait. It's easily verified by creating a simple script:

#!/bin/sh

echo My args were: $*
sleep 1

Then:

find /some/path -exec /path/to/f.sh {} \;

You'll see:

My args were: /some/path/a
(1 second delay)
My args were: /some/path/b
(1 second delay)
...

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


Re: memtest question on 8 GB RAM AMD64 system

2009-04-09 Thread Josh Carroll
On Thu, Apr 9, 2009 at 2:43 PM, Dino Vliet dino_vl...@yahoo.com wrote:
 Dear freebsd people,

 I have just installed 4 x 2gb kingston memory banks (Kingston HyperX 4GB 
 800mhz DDR2 Non-ECC CL5 (5-5-5-15) DIMM) onto my AMD 64 system with a X2 5200 
 CPU. The motherboard I have in this system is MSI K9AG Neo2-Digital.

 The system boots fine and I wanted to try memtest to see if there would be 
 errors. So I installed that /usr/ports/sysutils/memtest port and did

 # memtest 2400

 The output I got is:
 Continuing with unlocked memory; testing will be slower and less reliable.

 ...
 pagesize 4096
 pagesizemask is 0xf000
 want 2400MB (2516582400 bytes)
 got   2400MB (2516582400 bytes), trying mlock ...failed for unknown reason
 Loop 1:
 .

 In my /etc/rc/conf file I had added these lines in the past (when I had 4gb 
 RAM installed in it)

 sysctl -w kern.ipc.shmmax=1954311424
 sysctl -w kern.ipc.shmall=238000

 What is the case here? Why is memtest failing to use mlock? How can I 
 eventually make sure I can run memtest with 8000mb?

 The purpose of this machine is that it will be used for a various data 
 intensive tasks where I need to be able to allocate as much memory possible. 
 I am running a postgresql database server on it as well to store my source 
 data.

I've run into similar problems trying to use that particular memtest port.

If you want to more reliably test the memory, I'd suggest using
memtest86+ from http://www.memtest.org/

It is much more thorough and runs independent of the operating system.

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


Re: Why?? (prog question)

2009-03-30 Thread Josh Carroll
On Mon, Mar 30, 2009 at 10:57 PM, Gary Kline kl...@thought.org wrote:
 people, i've been under the weather for days and will probably be for a few 
 more.
 new  and TEMPORARY meds dont like me, ugh.

 can anybody clue me in why the followin joinline program fails to catch if 
 argc == 1?


 /*
  * simple prog to join all | very nearly all lines of a text file that
  * make up one paragraph into one LONG line.
  *
  * paragraphs are delimiated by a single \n break.
  */

 #include stdio.h
 #include string.h
 #include stdlib.h

 main(int argc, char argv[])
 {
   char buf[65536];

   if (argc == 1)
   {
        printf(Usage: %s  file  newfile\n, argv[0]);
        exit (-1);
   }
   while (fgets(buf, sizeof buf, stdin) )
   {
     if (*buf == '\n')
     {
       fprintf(stdout, \n\n);
     }
     else
     {
       buf[strlen(buf)-1] = ' ';
       fputs(buf, stdout);
     }
   }
 }

main should be:

int main(int argc, char **argv)

or perhaps

int main(int argc, char *argv[])

As is, you're defining int as   char argv[]  (e.g. char *) instead of char **.

What will likely happen is you'll get a segmentation fault when you
try to run the program, since your printf format spec has %s, but
you're passing it a char.

In fact, if you compile it with -Wall, you'll see the two problems
I've mentioned:

t.c:13: warning: second argument of 'main' should be 'char **'
t.c: In function 'main':
t.c:20: warning: format '%s' expects type 'char *', but argument 2 has
type 'int'

Change char argv[] to char *argv[] or char **argv and it should work properly.

Note also that your main should have an int return type and should
return a value.

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


Re: hardware list in a machine

2009-03-09 Thread Josh Carroll
On Mon, Mar 9, 2009 at 2:59 PM, gahn ipfr...@yahoo.com wrote:

 Hi all:

 How could I find out the list of hardware in my machine? I used dmesg and 
 var/run/dmesg.boot, it didn't seem to help that much as I expected.

 which file lists all of hardware in the machine?

 Thanks.

Give the sysutils/dmidecode port a shot.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
On Sat, Feb 14, 2009 at 1:42 PM, Troy t...@twisted.net wrote:
 I just did a successful portupgrade of multimedia/gpac-libgpac but when
 trying to upgrade the exact same port on amd64, it fails with the
 following error.

 Thanks

 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/events.c -o
 compositor/events.opic
 compositor/events.c: In function 'load_text_node':
 compositor/events.c:239: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 compositor/events.c:247: warning: passing argument 3 of 'gf_utf8_wcstombs'
 from incompatible pointer type
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/font_engine.c -o
 compositor/font_engine.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/hardcoded_protos.c -o
 compositor/hardcoded_protos.opic
 cc -O3  -O2 -fno-strict-aliasing -pipe  -fPIC -pthread
 -fno-strict-aliasing -Wno-pointer-sign
 -I/usr/ports/multimedia/gpac-libgpac/work/gpac/include  -I../
 -DGPAC_HAVE_CONFIG_H  -fPIC -DPIC -c compositor/mesh.c -o
 compositor/mesh.opic
 In file included from compositor/mesh.c:33:
 compositor/gl_inc.h:45:19: error: GL/gl.h: No such file or directory
 gmake: *** [compositor/mesh.opic] Error 1
 *** Error code 2

 Stop in /usr/ports/multimedia/gpac-libgpac.

I ran into this, too. Since I didn't want OpenGL support anyway, I
just added OPTIONS support to this port, and one of those options is
to disable OpenGL support and submitted this as a PR.

The PR hasn't fully posted yet, but here's the URL for when it's in the system:

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

The patch is here if you're interested:

http://pflog.net/~floyd/gpac-libgpac.patch

cd /usr/ports/multimedia/gpac-libgpac

patch  /path/to/gpac-libgpac.patch

Then just make config and unselect the option for OPENGL, and it should build.

The port should have OpenGL as a dependency if OpenGL support is
enabled - as it is now, it's building with GL support if it finds
GL/gl.h and libGL.so, but it should be listed explicitly as a
dependency in the Makefile. I'll work on another patch for that.

As for getting it to build as-is, I think it'd be sufficient to add
-I${LOCALBASE}/include to --extra-cflags and -L${LOCALBASE}/lib to
--extra-ldflags, but I'm not sure this is the proper way to do that
(I'd have to check the porter's handbook). It does in fact build
properly by adding those, though so just update those lines in the
Makefile to:

--extra-cflags=${CFLAGS} ${PTHREAD_CFLAGS} -fPIC
-I${LOCALBASE}/include \
--extra-ldflags=${LDFLAGS} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: gpac-libgpac port not building on amd64

2009-02-14 Thread Josh Carroll
 http://pflog.net/~floyd/gpac-libgpac.patch

Oops, if anyone grabbed that patch, grab it again, I ran the diff
against the wrong original Makefile that had my --disable-opengl
hard-coded in there during testing.

Sorry for the trouble.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: coretemp for AMD?

2009-01-25 Thread Josh Carroll
On Sun, Jan 25, 2009 at 11:21 AM, Chris Whitehouse cwhi...@onetel.com wrote:
 Hello,

 Can I read cpu die temperature for my AMD Athlon 64 X2 cpu with coretemp?
 According to

 http://www.alcpu.com/CoreTemp/supportlist.html

 it includes AMD processors but when I load coretemp.ko sysctl still can't
 see dev.cpu.?.temperature.

 Is this even the same coretemp as the website talks about windows a lot?

 This is on FreeBSD 7.1-PRERELEASE #1: Tue Dec 16 18:28:48 GMT 2008 with
 GENERIC kernel.

For (supported) AMD processors, check out k8temp(4).

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make -jN build with portmaster

2009-01-25 Thread Josh Carroll
On Sun, Jan 25, 2009 at 4:44 PM, cpghost cpgh...@cordula.ws wrote:
 To build ports in parallel on a 4 core machine, I usually
 do this manually:

  # cd /usr/ports/some/port
  # make configure  make -j5 build  make install clean

 because all steps except make build are not compatible
 with -jN (some ports don't work with -jN in the make build
 phase either, but they are quite rare).

 Now, is there a way to teach portmaster to build or rebuild
 ports this way? The only workaround for now is something
 like:

What I do is the following via make.conf, which will work for
portmaster/portupgrade or manual builds:

# set MAKE_ARGS for the build target(s)
.if !(make(*install) || make(package))
MAKE_ARGS+=-j8
.endif

Then as you find ports that don't build properly, add an entry like this:

# some ports don't like -j8, so we can undo the MAKE_ARGS addition for those
.if ${.CURDIR:M*/multimedia/mplayer}
MAKE_ARGS:=${MAKE_ARGS:C/-j8//}
.endif

It's a bit of a hack, but I've had decent success with this. Enough
ports fail to build with -jX, that I'd never do the above on a
production machine, especially since it's possible for some sort of
silent error that produces an unpredictable binary. But for my home
machine, I've been pretty happy with it.

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


Re: Portupgrade thru SSH session

2009-01-20 Thread Josh Carroll
On Tue, Jan 20, 2009 at 9:10 AM, Jos Chrispijn j...@webrz.net wrote:
 Can someone tell me what I should attend for when I am disconnected in the
 middle of a portupgrade and the terminal session is aborted?
 The portupgrade was halted by a [yes/no] prompt, on which I had to react.
 Unfortunately being not present and I having not set my Putty keepalive
 session timeperiod I was disconnected due to no activity on this system
 prompt $-|.
 What I did after having logged on again was deleting that specific ruby
 process and some tty processes. Perhaps I should delete some other temp
 files as well?

For future runs, you might consider using something like screen
(/usr/ports/sysutils/screen) so you can resume the session later,
should you get disconnected.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: 7.1 release / apache22 / php5

2009-01-05 Thread Josh Carroll
On Mon, Jan 5, 2009 at 7:52 PM, Jim Pazarena fqu...@ccstores.com wrote:
 for some odd reason, with this latest install (7.1), apache22 complains that
 it cannot find libphp5.so
 I usually compile php5 from ports
 and apache22 from ports
 after I think about it, I have never actually placed libphp5.so anywhere. I
 am not even sure who/what
 causes php5 module to be added to /usr/local/libexec/apache22/libphp5.so
 it's present on my 7.0 system, and missing on my 7.1 system.
 advice would be much appreciated.

Do you have something like:

LoadModule php5_modulelibexec/apache22/libphp5.so

in /usr/local/etc/apache22/httpd.conf ?  If not, that's the likely culprit.

You'd also need the IfModule mod_php5.c ... /IfModule block in
there as well (or in an included file).

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


Re: 7.1 release / apache22 / php5

2009-01-05 Thread Josh Carroll
 the httpd config file isn't the issue. it hasn't changed in a few years.
 yes,
 I do have the correct entries.

 what I do NOT have is the actual libphp5.so library file! it doesn't exist
 on my system,
 so apache complains that it can't open it.

Did you build the lang/php5 port with the Build Apache module option
checked via make config?

make -C /usr/ports/lang/php5 showconfig | grep APACHE

Should return:

 APACHE=on Build Apache module

If not, make config in there, check that option, then rebuild and
reinstall the port.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Setting per processor (/core) affinity from within FreeBSD

2008-12-15 Thread Josh Carroll
On Mon, Dec 15, 2008 at 7:34 PM, Garrett Cooper yanef...@gmail.com wrote:
 Hi guys,
I was wondering if anyone has written a utility for FreeBSD to tie
 a particular process group to a processor / core, similar to what
 Linux has done with taskset, so that affinity can be properly set with
 FreeBSD and the ULE scheduler.

I believe cpuset(2) will do what you want. It is available starting
with 7.1-RELEASE (which isn't released yet, but you can grab 7.1-RC1
to test it out).

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


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: 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: 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: Intel(R) PRO/1000 Network Connection 6.9.5 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: Marvell Yukon 88E8056 Gigabit Ethernet port 0xc800-0xc8ff mem
0xfe9fc000-0xfe9f irq 17 at device 0.0 on pci2
msk0: Marvell Technology Group Ltd. Yukon EC Ultra Id 0xb4 Rev 0x03 on mskc0
msk0: Ethernet address: 00:1d:60:bc:cc:39
miibus0: MII bus on msk0
mskc0: [FILTER]
em0: Intel(R) PRO/1000 Network Connection 6.9.5 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: 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 21

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: 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: Conflicting packages installing to same dir

2008-08-31 Thread Josh Carroll
 there both needed as a dependency by X.Org so although your suggestionis  good
 in theory, unf not going to work in prac, although i had tried it :)

They are both dependencies because you've told it so.

cd /usr/ports/x11-drivers/xorg-drivers
make config

Deselect either the i810 or intel driver.

Then you should be able to rebuild without issue.

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: Is it possible to run i386 only, on a amd64 freebsd 7?

2008-08-19 Thread Josh Carroll
 O.K I understand that.  So I can see that unless I have an i386 FreeBSD 
 build, I really cannot
 install those i386 only software titles.

 In that situation I assume I can only use amd64 ports and software.

 I have an idea though, would it be possible to build a i386 FreeBSD on an 
 another partition.  And use it to run i386 software while using the amd64 
 FreeBSD?

I tried something similar using an i386 chroot, but wine failed to run
(SIGABRT). If you need these i386-only ports/software, you should
probably just run the i386 version of FreeBSD. Do you have a
compelling reason for using the amd64 release (e.g.  4GB of RAM)?

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


Re: security updates

2008-08-15 Thread Josh Carroll
 of course, for such use I will take the or stable version :-)

 I was sure it was easy :-)

 thanks
 jdd

Just to clarify, X-STABLE does not indicate end-user stability. It
indicates the ABI is (generally) stable (ABI-compatibility is
maintained within a branch). There are exceptions, but this generally
holds true. That said, -RELEASE is a better idea for a production
system, unless you have some dire need for a feature/enhancement in
-STABLE.

You can read more about the FreeBSD release engineering process here:

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/releng/index.html

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: ATi Intel graphics

2008-08-13 Thread Josh Carroll
 Jail. I suspect I could build the base system plus X and copy
 everything over to a jailed dir. Once there, I could set -m32 in the
 CFLAGS and CXXFLAGS of the system make.conf. Build WINE in the jail,
 add a /usr/local... bin32, lib32 and libexec32 to the main (non-jail)
 part of the OS, and copy everything there. Then update the path and
 libpath for my system... OK, not simple, but it'll be an interesting
 experiment.

I tried this a while ago with a chroot. I installed 7.0-RELEASE/i386
there, and built ports inside the chroot. You need to also do a few
things to trick things like libtool (and other auto* tools) that your
arch is i386 and not amd64. From memory, I think you need to:

env UNAME_m=i386 make ...

For what it's worth, I got wine (and all depends) built, but it did
not work. It is likely I made a mistake along the way, of course. I
believe the resulting binary was generating a SIGABRT.

Naturally, if you have success doing this, it might be worth
publishing the (excruciating) details.

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: F7: base system reinstall, no (open)ssh anymore...

2008-08-08 Thread Josh Carroll
 Am I missing some essential settings in /etc/make.conf?
 What is needed there in order to get (Open)SSH from the base system?
 Thanks!
 Rob.

It should be there by default. Check that /etc/make.conf (or
/etc/src.conf) does not set/define:

WITHOUT_OPENSSH

There are other knobs that implicitly set this as well, so check for these, too:

WITHOUT_CRYPT
WITHOUT_OPENSSL

If any of those are set, it will not build the ssh components.

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: x11/kde4 tries to install kde3?

2008-08-08 Thread Josh Carroll
On Fri, Aug 8, 2008 at 10:14 AM, Kirk Strauser [EMAIL PROTECTED] wrote:
 When attempting to install KDE4, I get:

 $ cd /usr/ports/x11/kde4
 $ sudo make install
 ===  Installing for kde-3.5.8_2
 [...]
 ===  Checking if x11/kde4 already installed
 ===   kde-3.5.8_2 is already installed
 [...]
 Stop in /usr/ports/x11/kde4.

 I installed on this hardware about two weeks ago, so it should be fairly
 clean of any weird legacy settings.  Has anyone else successfully installed
 KDE4 on FreeBSD 7?

KDE4 is not yet available. The x11/kde4 and x11/kde4base port
skeletons were created, but as far as I know, kde 4 isn't quite ready.

If you look at x11/kdebase4, you'll see that it still references KDE 3.5.8:

# cat /usr/ports/x11/kdebase4/distinfo
MD5 (KDE/kdebase-3.5.8.tar.bz2) = 9990c669229d8fca4c5e354441fd
SHA256 (KDE/kdebase-3.5.8.tar.bz2) =
0f1876d1c68f01ed8fee346c1bae4f53dd2c1dc56db94e309b3d1adfc6138493
SIZE (KDE/kdebase-3.5.8.tar.bz2) = 24200172

# grep '^PORTVERSION' /usr/ports/x11/kdebase4/Makefile
PORTVERSION=${KDE_VERSION}

# grep KDE_VERSION /usr/ports/Mk/*
/usr/ports/Mk/bsd.kde.mk:KDE_VERSION=   3.5.8
/usr/ports/Mk/bsd.kde.mk:KDE_ORIGVER=   ${KDE_VERSION}
/usr/ports/Mk/bsd.kde4.mk:KDE_VERSION=  3.5.8
/usr/ports/Mk/bsd.kde4.mk:KDE_ORIGVER=  ${KDE_VERSION}

Soon now, I think. But it's not quite ready.

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.0 on Xen

2008-08-08 Thread Josh Carroll
On Fri, Aug 8, 2008 at 12:04 PM, OutBackDingo [EMAIL PROTECTED] wrote:
 I have a working config for non-HVM systems, its stable enough to play with 
 but
 not for production, if you have however a HVM machine, FreeBSD runs great
 under linux KVM

What host OS are you using for dom0? I'm considering setting this up
on my second box, so I can run 7.0-STABLE and 8.0-CURRENT
simultaneously (and use the full capabilities/speed of the processor),
but I've heard of limited success, depending on the host/dom0 OS.

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: Questions about healthd and mprime

2008-08-07 Thread Josh Carroll
 OK, so _now_ I've looked around and found out that a lot of folks
 these days heat up their CPUs by running the mprime thingy.  Swell.
 But I don't know diddly poo about this program.  So can somebody please
 tell me the set of best command line options for the thing if your
 only goal is to stress your CPU?

 Thanks in advance.

If you just want to heat up your CPU, this should suffice:

yes  /dev/null 

Once for each CPU/core.

mprime is useful to stress test the cores, looking for a situation
where the core fails. This can cause odd system problems, and not
necessarily a crash or lock up.

But in terms of just heating the cores up, yes should do the trick.

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


Re: Questions about healthd and mprime

2008-08-07 Thread Josh Carroll
Try sysutils/k8temp. When run with -n, it only prints the CPU's temperature.

 U... On the system I'm most interested in at the moment, which has
 only _one_ athlon64 _single core_ processor in the whole system,
 k8temp -n prints this:

 19
 10

Well it may not work properly on your particular hardware. You can
report this to the maintainer and/or file a PR.

You can also try one of:

/usr/ports/sysutils/mbmon

/usr/ports/sysutils/consolehm  (and use chm -I  from this)

 I was hoping to find something that didn't touch disk (nor use up all of
 my remaining space in the /usr partition).  I think I'll wait and try to
 learn more about mprime.  But thanks.

Then what is wrong with my suggestion of yes  /dev/null? It does not
touch the disk at all (other than to read the yes binary into memory).
It will sufficiently generate a load on the CPU to increase the
temperature. You might get the CPU 1-2C hotter with mprime, but I
doubt 1 C is going to make or break you. Also, if you are running the
amd64 release, the mprime port does not work for the amd64 arch. I've
been able to compile it manually, but the port will not work on the
amd64 arch.

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


Re: undocumented tar --unlink switch

2008-08-02 Thread Josh Carroll
 Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c
 there's an invocation of /usr/bin/tar with a --unlink switch,
 which I don't see mentioned in the tar(1) manpage.  Anyone
 happen to know what this does, or do I need to dig into the
 code?

My guess was that it was the long option version of -U:

 -U  (x mode only) Unlink files before creating them.  Without this
 option, tar overwrites existing files, which preserves existing
 hardlinks.  With this option, existing hardlinks will be broken,
 as will any symlink that would affect the location of an

A quick perusal of the source confirms.

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


Re: Extracting tracks as WAV from a worn-out CD

2008-07-19 Thread Josh Carroll
Sorry this is truncated, the google mail application on blackberry
doesn't include the full mail.

Anyway, I would highly suggest using cdparanoia from ports. I have had
great success recovering very scratched discs with it in the past.

Good luck!
Josh

On 7/19/08, Razmig K [EMAIL PROTECTED] wrote:

 Hello,

 I could successfully extract the last track, no. 7, on a pretty worn-out
 audio CD issuing the command:
 % cdda2wav -D 0,0,0 -t 7
 (0,0,0 being the SCSI device corresponding to the cdda2wav -scanbus output)
 while I have failed doing so earlier via:
 % cdda2wav -D /dev/acd0 -t 7
 since it got stuck at %84 giving the error cooked: Read cdda :
 Input/output error. I experienced similar failure with KAudioCreator.
 Any explanations to this?
 This is 7.0-RELEASE running KDE 3.5.8.
 Thanks!


 //rk
 ___
 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: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
 I have new server(webserver) quad core but performans is not well (according
 our old webserver pent IV ). Maybe its performans depends on our web page
 sourcecode. FreeBSD 6.3 stable is running on it. dmesg is in below.

Can you provide some more detail here? How is it slower? Serving less
clients? The load (from your top snapshot) is nearly 0 and there isn't
much of a memory load on the box either.

 1-I wonder in my TOP output can I see all CPU or not?


 last pid: 19887;  load averages:  0.13,  0.04,  0.01 up 2+21:18:18
 16:53:16
 48 processes:  1 running, 47 sleeping
 CPU:  0.0% user,  0.0% nice,  0.0% system,  0.0% interrupt,  100% idle
 Mem: 119M Active, 352M Inact, 126M Wired, 48K Cache, 112M Buf, 1401M Free
 Swap: 5120M Total, 5120M Free

Run top with the -S option, and you will see the idle process for
each core/CPU. The CPU: line there is an aggregate of all processors
in the system.

If you're in doubt:

sysctl hw.ncpu

Or run:

mptable

 2-FreeBSD 7.0 has got default multiprocessor generic kernel??? since during
 installations only one generic kernel shown

Yes, 7.0 includes SMP by default in GENERIC.

 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  2
  cpu3 (AP): APIC ID:  3

There you go, it's seeing all 4 cores.

The system is seeing all of them, so your real question is likely -
why is this not performing as well as my old box? We need more details
to answer that.

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: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
  I have new server(webserver) quad core but performans is not well
  (according
  our old webserver pent IV ). Maybe its performans depends on our web
  page
  sourcecode. FreeBSD 6.3 stable is running on it. dmesg is in below.

I'm sorry, I completely missed that you were running 6.3 and not a 7.x
release. You are running the GENERIC kernel then, and while the
processors are visible, it's only using one since you are not running
with SMP support.

You can build the SMP kernel (basically, GENERIC + options needed for
SMP) by doing the following:

cd /usr/src
make kernel KERNCONF=SMP

Then reboot, and it should pick up the newly installed kernel with SMP
support. Note that this backs up your old kernel to /boot/kernel.old,
so if the new one fails to boot, at the beastie menu, you can boot
with the old kernel if necessary.

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


Re: Core(TM)2 Quad and TOP output

2008-07-14 Thread Josh Carroll
 He is already running with SMP, look at this part of his dmesg:

 ad10: 343399MB Seagate ST3360320AS 3.AAM at ata5-master SATA300
 ad12: 343399MB Seagate ST3360320AS 3.AAM at ata6-master SATA300
 acd0: DVDR ASUS DRW-2014S1T/1.01 at ata7-master SATA150
 SMP: AP CPU #1 Launched!
 SMP: AP CPU #3 Launched!
 SMP: AP CPU #2 Launched!

 His problem lies elsewhere I'm afraid...

Is SMP in GENERIC now in 6.3-STABLE then?

I don't know, mptable looks fine, as does dmesg, but hw.ncpu is 1 - very odd.

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


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread Josh Carroll
 I will, probably as part of upgrading to 7.0 (which I may accelerate, given
 this point). I'm just ecstatic at the difference I'm already seeing, and
 specifically wanted to make note of it in the archives. Point very much
 taken, though. :-)

It's trivial to change to libthr, as pointed out earlier in this
thread. You simply add an entry/entries to /etc/libmap.conf (see man
libmap.conf for details) and then restart whatever it is that is
currently running against libkse.

I'll second Kris' recommendation to move to libthr. I saw a drastic
improvement in MySQL and ffmpeg performance on 6.2 when I switched
from libkse to libthr. Certainly 7.0 would give it to you
automatically, but there's no reason not to use libmap to use it now,
as an interim solution.

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


Re: CPU temp's on core 2 duo, should they be significantly different?

2008-06-23 Thread Josh Carroll
 I've noticed that cpu.0 is consistently hotter than cpu.1, even on an
 unloaded machine.  Is that because that core's doing housekeeping work
 whilst the other is truly idle?

 dev.cpu.0.temperature: 44
 dev.cpu.1.temperature: 29

I notice some differences on my quad-core (Q6600) CPU, too:

dev.cpu.0.temperature: 35
dev.cpu.1.temperature: 34
dev.cpu.2.temperature: 27
dev.cpu.3.temperature: 30

The differences also stay around the same when I yes  /dev/null 4
times to load up each core:

dev.cpu.0.temperature: 47
dev.cpu.1.temperature: 45
dev.cpu.2.temperature: 38
dev.cpu.3.temperature: 42

The discrepancy isn't as much as in your case, though. 15 C is pretty
significant. It could be that either your heat spreader or heat sink
are concave or convex causing one of the cores to get hotter.

On my dual-core box, here are the idle temps:

dev.cpu.0.temperature: 33
dev.cpu.1.temperature: 31

and under load:

dev.cpu.0.temperature: 48
dev.cpu.1.temperature: 46

I'd recommend taking the heat sink off and seeing how the thermal
grease is spread on the CPU's head spreader and on the heatsink
itself. If it looks lopsided or extremely thick on one side of the CPU
package or extremely thin (to the point where you can still see the
sheen of the heatsink or heat spreader), then re-mount the heatsink
and try to make sure it's evenly distributing the pressure down on the
CPU package.

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


Re: CPU temp's on core 2 duo, should they be significantly different?

2008-06-23 Thread Josh Carroll
 Not sure if the core duos work the same as older 2 CPU and 4 CPU
 motherboards, but there are some BIOS functions that always use the first
 CPU.  So you never get true SMP because the hardware uses the first CPU more
 to service interrupts.

True, but interrupt handling and minimal background processing should
not cause a core to be 15 C hotter. I guess the original poster can
mention the load on both cores (or post a top snapshot) so we can see
if there is some load on the system.

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


Re: mrtg peak on reboot / snmp-issue?

2008-06-15 Thread Josh Carroll
Sorry the blackberry is truncating your original mail, but yes I have
noticed the same thing on my setup. In my case I am using a custom
rrdtool perl script. While not a fix for the actual problem, my
workaround has been to use a CDEF in my rrdgraph command to set the
value to 0 if it exceeds a sane maximum.

I'm not sure off hand if mrtg has a similar capability but you might
be able to set a max value for the graph so at least it won't skew the
graph and hide the rest of the data points.

Another option is to use a custom script to collect the values by
grabbing the data from snmp and then sanitizing them prior to
outputting to the value.

Regards,
Josh

On 6/15/08, Olivier Mueller [EMAIL PROTECTED] wrote:
 Hello,

 Small but curious thing on my freebsd-based systems: when a
 server is rebooted, it generates a peak (or spike?) on the
 network mrtg for all interfaces (here just before 1 am):
 http://8304.ch/om/stuff/mrtg_localhost_1-day.png

 It happens with both net-snmp and ucd-snmp, with a quite standard
 mrtg installation (generated by cfgmaker).

 Do you have the same issue on your own servers?  All I can add, is
 that there is not such a high traffic after a reboot, and that it
 doesn't happen on similar linux-based systems.

 Regards  a nice week to you,
 Olivier


 ___
 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: new hardware - compatible?

2008-06-12 Thread Josh Carroll
 Intel Quad Core Extreme 3Ghz, LGA775
 Asus P5K-E Motherboard (P35 chipset, Onboard LAN)

I have the same motherboard, and it runs great on 7.0-RELEASE (amd64).
I do not, however, use the onboard ethernet controller. I use a pair
of em cards, so I can't speak to the Marvell Gigabit chipset and
whether it works or not. The onboard ethernet on the Asus P5B is an
re, and works fine in 7-STABLE.

I also recently put a SATA DVD-RW into this box, which works well with
atapicam (for cdrecord/growisofs), but it doesn't work with burncd.
Not a huge deal, but just an FYI.

Here is my dmesg and pciconf -l -v output. Note that the ICH9
controller shows up as Intel AHCI controller, but it works great
(full performance).

Thanks,
Josh


dmesg:

Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Tue Mar 25 22:23:29 EDT 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/PFLOG
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 Quad CPUQ6600  @ 2.40GHz (3204.04-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x6fb  Stepping = 11
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0xe3bdSSE3,RSVD2,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM
  AMD Features=0x20100800SYSCALL,NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 4
usable memory = 4286599168 (4088 MB)
avail memory  = 4125327360 (3934 MB)
ACPI APIC Table: A_M_I_ OEMAPIC 
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
ioapic0 Version 2.0 irqs 0-23 on motherboard
netsmb_dev: loaded
acpi0: A_M_I_ OEMXSDT on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, cff0 (3) failed
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
cpu0: ACPI CPU on acpi0
ACPI Warning (tbutils-0243): Incorrect checksum in table [OEMB] -  8C,
should be 84 [20070320]
coretemp0: CPU On-Die Thermal Sensors on cpu0
cpu1: ACPI CPU on acpi0
coretemp1: CPU On-Die Thermal Sensors on cpu1
cpu2: ACPI CPU on acpi0
coretemp2: CPU On-Die Thermal Sensors on cpu2
cpu3: ACPI CPU on acpi0
coretemp3: CPU On-Die Thermal Sensors on cpu3
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge irq 16 at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: VGA-compatible display mem
0xfd00-0xfdff,0xd000-0xdfff,0xfc00-0xfcff irq
16 at device 0.0 on pci1
uhci0: UHCI (generic) USB controller port 0xc800-0xc81f irq 16 at
device 26.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: UHCI (generic) USB controller on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: UHCI (generic) USB controller port 0xc880-0xc89f irq 21 at
device 26.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: UHCI (generic) USB controller on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: UHCI (generic) USB controller port 0xcc00-0xcc1f irq 18 at
device 26.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: UHCI (generic) USB controller on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: EHCI (generic) USB 2.0 controller mem 0xfbfffc00-0xfbff
irq 18 at device 26.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: EHCI (generic) USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 on usb3
uhub3: 6 ports with 6 removable, self powered
pcib2: ACPI PCI-PCI bridge irq 17 at device 28.0 on pci0
pci3: ACPI PCI bus on pcib2
pcib3: ACPI PCI-PCI bridge irq 17 at device 28.4 on pci0
pci2: ACPI PCI bus on pcib3
atapci0: JMicron JMB363 SATA300 controller port
0xdc00-0xdc07,0xd880-0xd883,0xd800-0xd807,0xd480-0xd483,0xd400-0xd40f
mem 0xfeafe000-0xfeaf irq 16 at device 0.0 on pci2
atapci0: [ITHREAD]
atapci0: AHCI called from vendor specific driver
atapci0: AHCI Version 01.00 controller with 2 ports detected
ata2: ATA channel 0 on atapci0
ata2: [ITHREAD]
ata3: ATA channel 1 on atapci0
ata3: [ITHREAD]
ata4: ATA channel 2 on atapci0
ata4: [ITHREAD]
uhci3: UHCI (generic) USB controller port 0xc080-0xc09f irq 23 

Re: Make buildworld

2008-06-08 Thread Josh Carroll
 I did some testing, at least for me, I get the most improvements when the 
 number
 of cores or processors equals the -j number.  You can make it higher, even
 double it, withoout hurting things, but 95% of the improvements come from
 matching the number of processes to the number of available CPUs (and that' by
 my own testing, not theory).

I've found that on my Q6600 (quad core) system, the optimal is 8
though the improvements after 5 were minimal. It depends if the jobs
are I/O bound or not and the scheduler. Although even with ffmpeg, the
optimal number of threads with this quad core system is 8. On my
previous system with a dual-core chip with the same hardware, the
magic number was 4 (again, 2x the number of cores). This was with
the ULE scheduler, I'm not sure if the same holds true for the 4BSD
scheduler or not.

And as you said, it's important to use make without -j if the build
fails before reporting bugs, since there are no guarantees that world
will build properly with multiple jobs.

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: coretemp 70C = CPU too hot?

2008-05-09 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: 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: 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: 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: 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: 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: 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: libicui18n.so.36 not found, required by evolution

2008-02-09 Thread Josh Carroll
On Feb 9, 2008 12:17 PM, E. J. Cerejo [EMAIL PROTECTED] wrote:
 Running FBSD 6.3 and after updating the ports where icu was one of the
 ports to be updated I'm getting the libexec/ld-elf.so.1: Shared object
 libicui18n.so.36 not found, required by evolution error, I can see
 that the new version of icu installed libicui18n.so.38.  Is there a
 better way to fix this or should I just symlink libicui18n.so.38 to
 libicui18n.so.36?

I ran into this myself. The best thing to do is rebuild all the ports
that depend on the icu port:

portupgrade -fr icu-3.8.1

That should rebuild all the things linking against libicui18n.so.36
and re-link them against the new libicu.

You could also do this manually with a small shell script to ldd
things in /usr/local/lib and /usr/local/bin and identify things linked
against the old library and then use pkg_which to find which
packages they belong to, and portupgrade/re-install those.

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


Re: passive ftp transfer with pkg_add

2008-01-27 Thread Josh Carroll
 Thank you very much! When I want to revert it, will it suffice to type:
 export FTP_PASSIVE_MODE=false

unset FTP_PASSIVE_MODE will unset the variable.

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: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Josh Carroll
 I keep reading about making sh scripts executable with #!/bin/sh on
 the first line and chmod to executable.  That works with all my system
 scripts (rc, etc.) or my system would be DOA, no doubt.  When I do it
 in my home folder, however, running script gives command not
 found.

That typically indicates the path you've specified in the sh-bang does
not exist. Another common problem there is if the shell script was
written out in DOS format.

If you're certain the first line looks proper, and that the path
exists (/bin/sh most certainly should), try:

perl -p -i -e 's/\r\n/\n/' foo.sh

Then see if it works.

 scripts executable, they all say the same thing, and they all don't
 work.  How did I get to be so special?

It's possible the partition /home is mounted on is mounted with
noexec, but in that case, I'd expect you'd get a permission denied
message, rather than command not found.

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


Re: home dir executable (!/bin/sh, chmod+x) shell scripts won't run without sh script

2008-01-07 Thread Josh Carroll
 How are you running the commands? The problem is probably to do with your
 path. Your home directory isn't typically and shouldn't be in your PATH (try
 echo $PATH). You need to specify the full path to your scripts or place a ./
 in front of the script name if in the same directory.

 e.g. ./myscript.sh  or /home/username/myscript.sh

Ahh I misunderstood his email. Yes, most likely he is running it with
foo.sh rather than ./foo.sh or /full/path/to/foo.sh

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: 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: 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: 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: 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 Seagate ST3400633AS 3.AAH 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: 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 stdio.h\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: 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: 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: 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: 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: 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: 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: 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]


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: 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: 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: 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: Monitoring CPU usage on multi-core system

2007-08-27 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: 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: 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: Bizzare routing table entry.

2007-08-07 Thread Josh Carroll
 root# route delete 00xc0a80132

   [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 00xc0a80132

   [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 '00xc0a80132'

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: 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: 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: Why doesn't FreeBSD clear /tmp on bootup?

2007-05-03 Thread Josh Carroll

I've seen OpenBSD and some other variants of Unix clearing /tmp on
bootup. But FreeBSD doesn't seem to do so.
Is there any specific reason for this variation or is it just a matter
of taste between these different Operating Systems?


You can put the following in rc.conf to do this:

clear_tmp_enable=YES

It's not on by default.

Regards,
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: 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]


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


  1   2   >