Re: how to scrollback in terminal

2009-01-24 Thread Dan Nelson
In the last episode (Jan 24), Tim Judd said:
 Saifi Khan wrote:
 
  i'd like to scrollback on the multi page output on the terminal in
  FreeBSD 7.1
  
  SHIFT key + Pg Up doesn't seem to work.
  
  Can somebody post how to scrollback in terminal ?
 
 scroll lock, and pgup

After you hit scroll-lock, up/down/pgup/pgdn/home/end all work, you can
copy and paste the history text with your mouse, and there's a separate
history per VTY.  You can also set the number of scrollback lines with
the vidcontrol -n ### command.  Significantly better than Linux's
scrollback...

-- 
Dan Nelson
dnel...@allantgroup.com
___
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


Foreign characters in filenames on FTP

2009-01-24 Thread Firas Kraiem

Hi,

I have an issue with filenames that have foreign (e.g. Japanese)  
characters in them when trying to access them by FTP from a Windows  
machine (the server is running FreeBSD 7.1, the same problem occurs  
with both the builtin ftpd and vsftpd). It is most likely an encoding  
problem, but I can't figure out where it lies exactly. It basically  
boils down to this:


When I access the FTP from my Windows machine, the foreign characters  
come as a load of random characters. However, when I access it from a  
Linux machine, everything is fine, and the filemanes are also fine  
when I use ls at the shell.


As I said, it is most likely a problem in how FreeBSD encodes the  
filenames, but I read throught the mount(8) man page and found no  
option that would allow changing it. Any pointers would be much  
appreciated.


Firas
___
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


PHP 5.2.8 crash (segmentation fault 11)

2009-01-24 Thread Saifi Khan
Hi all:

Freshly compiled PHP 5.2.8 with PECL and PHP5-extensions support
on FreeBSD 7.1 (i386) seems to be crashing in 

#0  0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, 
key=0xbfbfea30 \221??\222)??{\206)p/??)??\r\226)`Qp() at misc.c:349
349   for (ret = hashtab-table[hash_index (hashtab,key)]; ret; ret = 
ret-next)
[New Thread 0x28759400 (LWP 100083)]


The stack frame are shown below.


(gdb) bt
#0  0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, 
key=0xbfbfea30 \221??\222)??{\206)p/??)??\r\226)`Qp() at misc.c:349
#1  0x29867dae in find_alias () from /usr/local/lib/librecode.so.3
#2  0x29869361 in recode_new_outer () from /usr/local/lib/librecode.so.3
#3  0x2981dd6e in zm_startup_recode ()
   from /usr/local/lib/php/20060613-debug/recode.so
#4  0x081c0f65 in zend_startup_module_ex (module=0x287cd100)
at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_API.c:1472
#5  0x081c81d2 in zend_hash_apply (ht=0x82f0a80, 
apply_func=0x81c0dc0 zend_startup_module_ex)
at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_hash.c:673
#6  0x081c112f in zend_startup_modules ()
at /usr/ports/lang/php5/work/php-5.2.8/Zend/zend_API.c:1519
#7  0x08166db8 in php_module_startup (sf=0x82ec200, additional_modules=0x0, 
num_additional_modules=0)
at /usr/ports/lang/php5/work/php-5.2.8/main/main.c:1843
#8  0x0823abf1 in php_cli_startup (sapi_module=0x82ec200)
at /usr/ports/lang/php5/work/php-5.2.8/sapi/cli/php_cli.c:357
#9  0x0823b8a6 in main (argc=2, argv=0xbfbfeda8)
at /usr/ports/lang/php5/work/php-5.2.8/sapi/cli/php_cli.c:716

Anybody pointers as to how to solve this issue ?


thanks
Saifi.___
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: PHP 5.2.8 crash (segmentation fault 11)

2009-01-24 Thread Morgan Wesström
Saifi Khan wrote:
 Hi all:
 
 Freshly compiled PHP 5.2.8 with PECL and PHP5-extensions support
 on FreeBSD 7.1 (i386) seems to be crashing in 
 
 #0  0x28e3e006 in hash_lookup (hashtab=0x29ea2f70, 
 key=0xbfbfea30 \221Û\222)À{\206)p/ê)ì\r\226)`Qp() at misc.c:349
 349 for (ret = hashtab-table[hash_index (hashtab,key)]; ret; ret = 
 ret-next)
 [New Thread 0x28759400 (LWP 100083)]
 
 
 The stack frame are shown below.
 
 
snip
 
 Anybody pointers as to how to solve this issue ?
 

Isn't this simply the classic problem with the order of the extensions
in extensions.ini?
http://www.pingle.org/2006/10

/Morgan
___
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: swap_pager complaints but not using swap

2009-01-24 Thread Kris Kennaway

Dieter wrote:

AMD64  FreeBSD 7.0  2 GiB main memory

My console says:

login: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096

pstat -sk
Device  1K-blocks UsedAvail Capacity
/dev/ad6s10   4590208   96  4590112 0%

Wow, using a whole 96K of swap.  I don't see any disk related
complaints in dmesg.

Is this something to worry about?


Yes, the system was *trying* to do swap I/O and timing out while doing so.

Kris
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Wojciech Puchar

Y'never know when a meteor will destroy the Earth... .


Using tar onto acd may not work, but utilizing atapicam, it could


works with some DVD+R drives with DVD+RW media that was formatted with
dvd+rw-format. just tar -b 64

works with DVD+R media too but media is not fixated
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Wojciech Puchar

to only extract the music/ subtree.

The tar file system is best for interoperability because (if
I may say this) every UNIX-like OS can read tar, no matter if you


the funny thing is when you create CD/DVD with FAT file system.
Windoze can't read it :) because in this excuse of OS disks MUST be 
FAT/NTFS and CDROM/DVD must be ISO9660.

___
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: KDE: What a monster!

2009-01-24 Thread Wojciech Puchar

 cd /usr/ports/x11-wm/evilwm  make install clean

Can't beat a window manager with a  binary size of 29k and a resident
memory footprint under 2MB.  No window decorations, leaving lots of room


memory footprint is much lower actually. you probably looked at RSS in 
top. but it shows everything that is resident, but say C library and X11 
library is shared!



for xterms.  Launch everything via script or shell alias.  Very keyboard
driven.


i must look. i currently use fvwm2 with my own config removing all 
decorations, window frames and with keyboard shortcuts (ALT-F*) to switch 
desktop.




If only I could find a terminal program that was smaller than rxvt I'd be
happy.

I feel your pain on the bloated software phenomenom.  That's the pain of


me too. but with my config i can easily do everything on 256MB RAM without 
mostly using swap

___
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: Registry corrupt?

2009-01-24 Thread Wojciech Puchar


describe something more.
and what you mean rehash?



Rehashing forces the shell to reinitialise (for want of a better term)
so that it rechecks the path and can sometimes discover new programs
installed if they don't seem to work. Alternatively you can exit and


ok you mean shell rehashing. so PATH is missing something
___
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: how to scrollback in terminal

2009-01-24 Thread Saifi Khan
On Sat, Jan 24, 2009 at 8:07 AM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (Jan 24), Tim Judd said:
 Saifi Khan wrote:
 
  i'd like to scrollback on the multi page output on the terminal in
  FreeBSD 7.1
 
  SHIFT key + Pg Up doesn't seem to work.
 
  Can somebody post how to scrollback in terminal ?

 scroll lock, and pgup

 After you hit scroll-lock, up/down/pgup/pgdn/home/end all work, you can
 copy and paste the history text with your mouse, and there's a separate
 history per VTY.  You can also set the number of scrollback lines with
 the vidcontrol -n ### command.  Significantly better than Linux's
 scrollback...

 --
Dan Nelson
dnel...@allantgroup.com

Thank you Tim and Dan for helping me out.

The BSD model is more logical and straightforward.

-- 
thanks
Saifi.
___
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: flashplugin7 doesn't play video

2009-01-24 Thread Joakim Fogelberg
On Fri, Jan 23, 2009 at 5:06 AM, Old Zhang toold.zh...@gmail.com wrote:
 I just updated linux-flashplugin7, xorg, and firefox (version 2) up to date.
  However, the flashplugin7 can't play video, I see only a black box on
 YouTube.

I had the same problem with linux-flashplugin7.
Switching to linux-flashplugin9 fixed the problem.

-- 

Joakim Fogelberg
___
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


default CFLAGS

2009-01-24 Thread Saifi Khan
Hi all:

What is the default CFLAGS if *no* CFLAGS has been specified in
/etc/make.conf ?

As an example, let us consider a FreeBSD 7.1 system running on a
Intel Celeron M.

thanks
Saifi.
___
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: port openoffice.org-devl (3.1.20081224) installs fine but does not run

2009-01-24 Thread Sergio de Almeida Lenzi
Hello...


It is because the installation (the makefile is wrong, it install the
binary /usr/local/openoffice.org/openoffice.org3/program/soffice
as a copy of soffice.bin)
it must install it as a shell script that fixes the loader path.
here is the shell script (named soffice).
copy over the binary soffice and make it executable
here it runs fine...   FreeBSD amd64.
=
#!/bin/sh
#*
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# 
# Copyright 2008 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# $RCSfile: soffice.sh,v $
#
# $Revision: 1.34 $
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public
License
# version 3 along with OpenOffice.org.  If not, see
# http://www.openoffice.org/license.html
# for a copy of the LGPLv3 License.
#
#*

#
# STAR_PROFILE_LOCKING_DISABLED=1
# export STAR_PROFILE_LOCKING_DISABLED
#

# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING

# Uncomment the line below if you suspect that OpenGL is not
# working on your system.
# SAL_NOOPENGL=true; export SAL_NOOPENGL

# the following test is needed on Linux PPC with IBM j2sdk142
if [ `uname -s` = Linux -a `uname -m` = ppc ] ; then
JITC_PROCESSOR_TYPE=6
export JITC_PROCESSOR_TYPE
fi

# resolve installation directory
sd_cwd=`pwd`
if [ -h $0 ] ; then
sd_basename=`basename $0`
sd_script=`ls -l $0 | sed s/.*${sd_basename} - //g`
cd `dirname $0`
cd `dirname $sd_script`
else
cd `dirname $0`
fi
sd_prog=`pwd`
cd $sd_cwd

sd_binary=`basename $0`.bin

#collect all bootstrap variables specified on the command line
#so that they can be passed as arguments to javaldx later on
for arg in $@
do
  case $arg in
   -env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS $arg;;
  esac
done

# extend the ld_library_path for java: javaldx checks the sofficerc for
us
if [ -x $sd_prog/../basis-link/ure-link/bin/javaldx ] ; then
# this is a temporary hack until we can live with the default search
paths
case `uname -s` in
FreeBSD)
sd_prog1=$sd_prog/../basis-link/program
sd_prog2=$sd_prog/../basis-link/ure-link/lib
LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH+:
${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH
;;
esac
my_path=`$sd_prog/../basis-link/ure-link/bin/javaldx
$BOOTSTRAPVARS \
-env:INIFILENAME=vnd.sun.star.pathname:$sd_prog/redirectrc`
if [ -n $my_path ] ; then
LD_LIBRARY_PATH=$my_path${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
fi
fi

unset XENVIRONMENT

# uncomment line below to disable anti aliasing of fonts
# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE

# uncomment line below if you encounter problems starting soffice on
your system
# SAL_NO_XINITTHREADS=true; export SAL_NO_XINITTHREADS

# pagein
for sd_arg in ${1+$@} ; do
case ${sd_arg} in
-calc)
sd_pagein_args=${sd_pagein_args:
+${sd_pagein_args} }...@pagein-calc
break;
;;
-draw)
sd_pagein_args=${sd_pagein_args:
+${sd_pagein_args} }...@pagein-draw
break;
;;
-impress)
sd_pagein_args=${sd_pagein_args:
+${sd_pagein_args} }...@pagein-impress
break;
;;
-writer)
sd_pagein_args=${sd_pagein_args:
+${sd_pagein_args} }...@pagein-writer
break;
;;
*)
;;
esac
done

# read database entries for Adabas D
if [ -f /etc/adabasrc ]; then
  . /etc/adabasrc
fi

sd_pagein_args=${sd_pagein_args:+${sd_pagein_args} }...@pagein-common
$sd_prog/../basis-link/program/pagein
-L$sd_prog/../basis-link/program \
${sd_pagein_args}

# Set PATH so that crash_report is found:
PATH=$sd_prog${PATH+:$PATH}
export PATH

# execute soffice binary
$sd_prog/$sd_binary $@ 
trap 'kill -9 $!' TERM
wait $!

while [ $? -eq 79 ]
do
$sd_prog/$sd_binary $BOOTSTRAPVARS 
wait $!
done

exit
=

___
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: flashplugin7 doesn't play video

2009-01-24 Thread Wojciech Puchar

On Fri, Jan 23, 2009 at 5:06 AM, Old Zhang toold.zh...@gmail.com wrote:

I just updated linux-flashplugin7, xorg, and firefox (version 2) up to date.
 However, the flashplugin7 can't play video, I see only a black box on
YouTube.


youtube-dl from ports is your friend



I had the same problem with linux-flashplugin7.
Switching to linux-flashplugin9 fixed the problem.

--

Joakim Fogelberg
___
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



___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 17:35:38 + (GMT)
Saifi Khan saifi.k...@twincling.org wrote:

 Hi all:
 
 What is the default CFLAGS if *no* CFLAGS has been specified in
 /etc/make.conf ?
 
 As an example, let us consider a FreeBSD 7.1 system running on a
 Intel Celeron M.

It depends on what you've set as CPUTYPE, and the platform; you can
find out with

make -V CFLAGS

___
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: opera 9.63 installation and Qt version

2009-01-24 Thread Saifi Khan
On Sat, 24 Jan 2009, Paul B. Mahol wrote:

 On 1/24/09, Saifi Khan saifi.k...@twincling.org wrote:
  Hi:
 
  Qt 4.4.3 is installed on my FreeBSD 7.1 i386 system.
 
  Now, when i attempt to install Opera 9.63 from the ports, it tries to
  download Qt 3.3.8
  Is there a way to modify the installation script so that Opera can use
  the installed qt 4.4.3 version ?
 
 Yes you can modify it, but question is will opera work at all with qt 4.
 There is static opera binary, try it.
 
 
 -- 
 Paul
 

The download site for FreeBSD is
http://www.opera.com/browser/download/?os=freebsd-i386list=all

It shows the following entry
FreeBSD 7.x (static)   7 MB

But when the file is downloaded, it is shared version.
opera-9.63-freebsd7-shared-qt3.i386.tar.bz2

Thus static opera binary is not available :(


thanks
Saifi.
___
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: Registry corrupt?

2009-01-24 Thread Jack L. Stone
At 04:33 PM 1.23.2009 +0100, cpghost wrote:
On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:
 On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone
ja...@sage-american.comwrote:
 
  During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened.
  Some of the programs will not run after rehash or even when given the
  precise path to the program. System doesn't see several but not all
  programs. I've upgraded several servers (using source files -- cvsup)
  withoug any such problem. It's just this one machine.

Some programs will not run because of a library version bump. Those
programs will need to be recompiled, i.e. rebuild all ports.

You can check this by running 'ldd' on the specific program. Let's
assume that you have zip installed:

$ ldd /usr/local/bin/zip
/usr/local/bin/zip:
libbz2.so.3 = /usr/lib/libbz2.so.3 (0x80065c000)
libc.so.7 = /lib/libc.so.7 (0x80076c000)


Thanks for that tip. Here's output of one of the programs that doesn't run:
ldd /usr/local/bin/fastest_cvsup
ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable

BUT, it is executable and using the exact path to the program still gives
this error:
/usr/local/bin/fastest_cvsup: not found

Yes, I did re-install the port too. No dice.

Again MOST all programs run except for this one and maybe a couple others
that may be causing buildworld to fail.

Strange!

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 12:51:32 +
Saifi Khan saifik...@gmail.com wrote:


 on running the command 'make -V CFLAGS', the output is
 
 -O2 -fno-strict-aliasing -pipe
 
 i haven't setup the CPUTYPE anywhere (not as an env variable nor in
 /etc/make.conf)
 So are these default settings for a generc x86 based system ?

Yes, if you are using i386. 

Most CPUs have the same default CFLAGS, it's the value of CPUTYPE
that's passed to the compiler that determines processor optimizations.
___
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: Registry corrupt?

2009-01-24 Thread Robert Huff

Jack L. Stone writes:

  Some programs will not run because of a library version bump. Those
  programs will need to be recompiled, i.e. rebuild all ports.
  
  You can check this by running 'ldd' on the specific program. Let's
  assume that you have zip installed:
  
  Thanks for that tip. Here's output of one of the programs that doesn't run:
  ldd /usr/local/bin/fastest_cvsup
  ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable
  
  BUT, it is executable and using the exact path to the program
  still gives this error: 

No, it's a script - perl, to be exact - and does not count for
the purposes of ldd.
Compare more /usr/local/ bin/fastest_cvsup and more
/usr/bin/csup.


Robert Huff

___
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: Registry corrupt?

2009-01-24 Thread Jack L. Stone
At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote:
At 04:33 PM 1.23.2009 +0100, cpghost wrote:
On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:
 On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone
ja...@sage-american.comwrote:
 
  During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange
happened.
  Some of the programs will not run after rehash or even when given the
  precise path to the program. System doesn't see several but not all
  programs. I've upgraded several servers (using source files -- cvsup)
  withoug any such problem. It's just this one machine.


BTW: as more details of the problem, I had found a tiny bug in mkdep
which initially caused the upgrade from 6.3 to 7.0 to fail during
buildworld. Once fixed, it appeared to upgrade fine
(build/install/mergemaster), including a new kernel build/install, but on
reboot it still shows 6.3...!!! I have rmoved /usr/obj and even /usr/src
and tried over several times, but same result. Some parts of the system is
running okay, but not others.

Have wasted too much time on this machine and today will move to a new
machine and start over. This server is one of our DNS servers, so we're
covered with others that take over during shutdown of this problem server.
The DNS (or named) is one of the parts not running correctly and the most
vital.

Just a very strange issue and wondered if anyone else had similar results
ever -- it may just be the machine, but didn't act like it.

Thanks again,
Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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: Start-up of freeBSD need help with one question.

2009-01-24 Thread Lowell Gilbert
Bob Falanga rfalang@gmail.com writes:

 When I try to configure a printer, CUPS requires a user id, my own or root.
 But it will not accept either.
 Interestingly, at boot up time I saw CUPS started three times but cannot
 find where all the requests for start is.
 I added a line in rd.conf to start CUPS but that is the only place.

I'd try to solve the second problem before the first (for me, the root
password works fine; although normally, I don't *have* a valid password
on the root account).

The correct way to start cups from rc.conf is:
cupsd_enable=YES
Is that how you do it? 

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: x11-toolkits/linux-gtk2 problem/question.

2009-01-24 Thread Lowell Gilbert
Jimmie James jimmie...@gmail.com writes:

 While it looks like it install/runs fine (i.e, linux-flash9 works,
 skype works) the following error is show
 (process:47722): GLib-WARNING **: getpwuid_r(): failed due to unknown
 user id (0)

 Following this advice, all I could find,
 http://archive.netbsd.se/?ml=freebsd-emulationa=2005-11t=1506833
 The fix is, to tell /compat/linux/etc/nsswitch.conf to look at NIS too.
 Is UID 0 in your /etc/passwd? Can you try changeing
 /compat/linux/etc/nsswitch.conf to something like this:

 passwd: files nisplus nis
 shadow: files nisplus nis
 group:  files nisplus nis

 Uid 0 is in my /etc/passwd, there's no /compat/linux/etc/passwd., and
 changing /compat/linux/etc/nsswitch.conf to read the same doesn't fix
 the error message.

 Advice, suggestions?

Those setting for nsswitch.conf don't look right to me.
There should have been a message printed out when you installed one of
the linux_base ports, telling you how to configure it.
I think the fc4 version is the default these days; if that is what you
are using, the message is in the file
/usr/ports/emulators/linux_base-fc4/pkg-message


-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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: Registry corrupt?

2009-01-24 Thread Jack L. Stone
At 07:29 AM 1.24.2009 -0600, Jack L. Stone wrote:
At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote:
At 04:33 PM 1.23.2009 +0100, cpghost wrote:
On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:
 On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone
ja...@sage-american.comwrote:
 
  During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange
happened.
  Some of the programs will not run after rehash or even when given the
  precise path to the program. System doesn't see several but not all
  programs. I've upgraded several servers (using source files -- cvsup)
  withoug any such problem. It's just this one machine.



BTW2: Yes, I do know this isn't windows and doesn't have a registry per
se in that regard, but something does keep track of the programs
installed and I've never located that place/file/db not having a crucial
reason to before.

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american
___
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


Healtd

2009-01-24 Thread Graeme Dargie
Having upgraded my motherboard I have discovered that healthd does not
like the chipset as the values it is producing are way out eg cpu temp
255c, I wonder if anyone can recommend a good more upto date alternative
that would work with phpsysinfo or mrtg ?

 

Regards

 

Graeme

___
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: port openoffice.org-devl (3.1.20081224) installs fine but does not run

2009-01-24 Thread Matthias Apitz
El día Saturday, January 24, 2009 a las 10:13:32AM -0200, Sergio de Almeida 
Lenzi escribió:

 Hello...
 
 
 It is because the installation (the makefile is wrong, it install the
 binary /usr/local/openoffice.org/openoffice.org3/program/soffice
 as a copy of soffice.bin)
 it must install it as a shell script that fixes the loader path.
 here is the shell script (named soffice).
 copy over the binary soffice and make it executable
 here it runs fine...   FreeBSD amd64.

Hola Sérgio,

¡Obrigado!

I will give it a try. The e-mail transport has mangeled a bit with your
shell script but I have seen two identicals ones in the port:

work/DEV300_m38/desktop/scripts/soffice.sh
work/DEV300_m38/desktop/unxfbsdi.pro/misc/soffice.sh

and I will test it.

Thx

matthias

-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e matthias.ap...@oclc.org - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/

SPAMer of the year: Subject: Alle Software ist Deutsche Sprachen
From: -40 % die Neujahrsaktion gabriellekel...@grungecafe.com
___
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: default CFLAGS

2009-01-24 Thread Morgan Wesström
RW wrote:
 On Sat, 24 Jan 2009 12:51:32 +
 Saifi Khan saifik...@gmail.com wrote:
 
 
 on running the command 'make -V CFLAGS', the output is

 -O2 -fno-strict-aliasing -pipe

 i haven't setup the CPUTYPE anywhere (not as an env variable nor in
 /etc/make.conf)
 So are these default settings for a generc x86 based system ?
 
 Yes, if you are using i386. 
 
 Most CPUs have the same default CFLAGS, it's the value of CPUTYPE
 that's passed to the compiler that determines processor optimizations.

If you want to know what gcc processor optimizations will be enabled you
can do this:

Create hello.c:

#include stdio.h
main()
{
printf(hello, world\n);
}

Then compile it with -Q -v in addition to the default CFLAGS:

gcc -O2 -fno-strict-aliasing -pipe -Q -v -o hello hello.c

The section options enabled will list them all. I usually only add
-march=native to my CFLAGS to enable a few more CPU specific
optimizations.

/Morgan
___
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: opera 9.63 installation and Qt version

2009-01-24 Thread Paul B. Mahol
On 1/24/09, Saifi Khan saifi.k...@twincling.org wrote:
 On Sat, 24 Jan 2009, Paul B. Mahol wrote:

 On 1/24/09, Saifi Khan saifi.k...@twincling.org wrote:
  Hi:
 
  Qt 4.4.3 is installed on my FreeBSD 7.1 i386 system.
 
  Now, when i attempt to install Opera 9.63 from the ports, it tries to
  download Qt 3.3.8
  Is there a way to modify the installation script so that Opera can use
  the installed qt 4.4.3 version ?

 Yes you can modify it, but question is will opera work at all with qt 4.
 There is static opera binary, try it.


 --
 Paul


 The download site for FreeBSD is
 http://www.opera.com/browser/download/?os=freebsd-i386list=all

 It shows the following entry
 FreeBSD 7.x (static)   7 MB

 But when the file is downloaded, it is shared version.
 opera-9.63-freebsd7-shared-qt3.i386.tar.bz2

 Thus static opera binary is not available :(

Well for 9.63 there is only static one for FreeBSD 5.
After all this is not freebsd problem, ask opera where is
static version for FreeBSD 7

-- 
Paul
___
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: Registry corrupt?

2009-01-24 Thread Daniel Bye
On Sat, Jan 24, 2009 at 07:53:47AM -0600, Jack L. Stone wrote:
 At 07:29 AM 1.24.2009 -0600, Jack L. Stone wrote:
 At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote:
 At 04:33 PM 1.23.2009 +0100, cpghost wrote:
 On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:
  On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone
 ja...@sage-american.comwrote:
  
   During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange
 happened.
   Some of the programs will not run after rehash or even when given the
   precise path to the program. System doesn't see several but not all
   programs. I've upgraded several servers (using source files -- cvsup)
   withoug any such problem. It's just this one machine.
 
 
 
 BTW2: Yes, I do know this isn't windows and doesn't have a registry per
 se in that regard, but something does keep track of the programs
 installed and I've never located that place/file/db not having a crucial
 reason to before.

Ports and packages are, if you like, 'registered' in subdirectories of
/var/db/pkg

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpXJ9CDDMjUk.pgp
Description: PGP signature


Re: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 15:27:02 +0100
Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:


 The section options enabled will list them all. I usually only add
 -march=native to my CFLAGS to enable a few more CPU specific
 optimizations.

If you set CPUTYPE, -march is set to match, so setting -march=native
should be redundant. OTOH a number of other make variables are defined
from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
miss some optimisations based on build options. 

I've no idea whether there are any such options, just that you're
probably not going to do better than setting CPUTYPE, and leaving the
rest alone.
___
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: jdk16

2009-01-24 Thread Frank Shute
On Thu, Jan 22, 2009 at 10:53:31PM -0800, Brian McQueen wrote:

 I can't seem to find the files listed in the jdk16 port.  What are
 folks doing to get java going?  The urls listed in the port are not
 right, so the manual download step does not work.

I built jdk16 a few months ago  the urls were right.

Is your ports tree up-to-date? Although I don't think the urls have
changed.

What errors are you getting? 404s? What urls are you using?

IIRC you have to register an account with Sun before you can download
the jdk from their site.

You have to place the downloaded files in /usr/ports/distfiles/ before
you can build the port without make(1) dropping out after printing the
message with the urls.

The port built fine for me.


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

___
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: x11-toolkits/linux-gtk2 problem/question.

2009-01-24 Thread Jimmie James

Lowell Gilbert wrote:

Jimmie James jimmie...@gmail.com writes:


While it looks like it install/runs fine (i.e, linux-flash9 works,
skype works) the following error is show
(process:47722): GLib-WARNING **: getpwuid_r(): failed due to unknown
user id (0)

Following this advice, all I could find,
http://archive.netbsd.se/?ml=freebsd-emulationa=2005-11t=1506833
The fix is, to tell /compat/linux/etc/nsswitch.conf to look at NIS too.
Is UID 0 in your /etc/passwd? Can you try changeing
/compat/linux/etc/nsswitch.conf to something like this:

passwd: files nisplus nis
shadow: files nisplus nis
group:  files nisplus nis

Uid 0 is in my /etc/passwd, there's no /compat/linux/etc/passwd., and
changing /compat/linux/etc/nsswitch.conf to read the same doesn't fix
the error message.

Advice, suggestions?


Those setting for nsswitch.conf don't look right to me.
There should have been a message printed out when you installed one of
the linux_base ports, telling you how to configure it.
I think the fc4 version is the default these days; if that is what you
are using, the message is in the file
/usr/ports/emulators/linux_base-fc4/pkg-message




You're right, missed the message during the install, scrolled off 
screen.  Following the pkg-message in 
/usr/ports/emulators/linux_base-f8/pkg-message and reinstalling 
linux-gtk2-2.6.10_1 still gives me the same message.


I knew I forgot something with the original message.

FreeBSD 7.1-STABLE #0: Tue Jan  6 03:43:02 EST 2009 
jim...@fortytwo.zapto.org:/usr/obj/usr/src/sys/FORTYTWO


linux-atk-1.9.1_1   Accessibility Toolkit, Linux/i386 binary
linux-cairo-1.0.2   Linux cairo binary
linux-expat-1.95.8  Linux/i386 binary port of Expat XML-parsing library
linux-flashplugin-9.0r152 Adobe Flash Player NPAPI Plugin
linux-fontconfig-2.2.3_7 Linux/i386 binary of Fontconfig
linux-gspca-kmod-1.0.20 A port of the linux gspcav1 webcam driver

*** linux-gtk2-2.6.10_1 GTK+ library, version 2.X, Linux binary *** 
What's giving me the error.


linux-jpeg-6b.34RPM of the JPEG lib
linux-kmod-compat-20080408 Adaptation layer to build linux drivers on 
FreeBSD

linux-libsigc-2.0.17 Callback Framework for C++ (linux version)
linux-openssl-0.9.7f SSL and crypto library (Linux Version)
linux-pango-1.10.2_1 Linux pango binary
linux-png-1.2.8_2   RPM of the PNG lib
linux-tiff-3.7.1TIFF library, Linux/i386 binary
linux-xorg-libs-6.8.2_5 Xorg libraries, linux binaries

*** linux_base-f8-8_10  Base set of packages needed in Linux mode (for 
i386/amd64)***  emulators/linux_base-f8


linux_dri-7.0   Binary Linux DRI libraries for 3D hardware 
acceleration of

linuxdoc-1.1_1  The Linuxdoc SGML DTD
lirc-0.8.0_2Linux Infared Remote Control
sgmlformat-1.7_2Generates groff and HTML from linuxdoc and docbook 
SGML doc

v4l_compat-1.0.20060801 Video4Linux compatibility header

--
Over the years I've come to regard you as people I've met.

___
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: default CFLAGS

2009-01-24 Thread Pojken Purken
RW wrote:
 On Sat, 24 Jan 2009 15:27:02 +0100
 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:
 
 
 The section options enabled will list them all. I usually only add
 -march=native to my CFLAGS to enable a few more CPU specific
 optimizations.
 
 If you set CPUTYPE, -march is set to match, so setting -march=native
 should be redundant. OTOH a number of other make variables are defined
 from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
 miss some optimisations based on build options. 
 
 I've no idea whether there are any such options, just that you're
 probably not going to do better than setting CPUTYPE, and leaving the
 rest alone.

I'm sorry I was unclear. I set CPUTYPE to native of course which is then
passed as -march=native to compiler.
___
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


Sharing ports hierarchy via NFS to different arch/versions.

2009-01-24 Thread Doug Poland
Hello,

I've got a network running different versions of FreeBSD (6.3, 7.0) on
different architectures (i386, SPARC64).

What I'd like to do is export the ports hierarchy to all machines, but
preserving ports/packages for each version/architecture.  I also want
to make rebuilding indexes run as fast as possible.

Right now, I simply exports(5) /usr/ports via NFSv3.  The problem
comes in with INDEX files and packages.  Indexes get updated only when
the host serving the export updates the hierarchy via portsnap update.
 If I create a package on SPARC64 and the package exists already for
an i386 build, then I've got an issue.

Can someone point me to a doc/google/man page that may give me some
guidance in setting up such an environment?



-- 
Regards,
Doug

___
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: default CFLAGS

2009-01-24 Thread Saifi Khan
On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken p...@pp.dyndns.biz wrote:
 RW wrote:
 On Sat, 24 Jan 2009 15:27:02 +0100
 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:


 The section options enabled will list them all. I usually only add
 -march=native to my CFLAGS to enable a few more CPU specific
 optimizations.

 If you set CPUTYPE, -march is set to match, so setting -march=native
 should be redundant. OTOH a number of other make variables are defined
 from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
 miss some optimisations based on build options.

 I've no idea whether there are any such options, just that you're
 probably not going to do better than setting CPUTYPE, and leaving the
 rest alone.

 I'm sorry I was unclear. I set CPUTYPE to native of course which is then
 passed as -march=native to compiler.


The entry in file /var/run/dmesg.boot shows the CPU information as
CPU: Intel (R) Celeron (R) CPU 2.40 GHz (686-class CPU)

The entry in /usr/share/examples/etc/make.conf shows CPU types for Intel as
core2 core nocona pentium4m pentium4 prescott pentium3m pentium3 pentium-m
pentium2 pentiumpro pentium-mx pentium i486 i386

What would be the appropriate CPUTYPE specification in this case ?

Is there any table which sort of maps the marketing names of the Intel processor
with the CPU information shown in dmesg ?

-- 
thanks
Saifi.
___
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: default CFLAGS

2009-01-24 Thread Morgan Wesström


Saifi Khan wrote:
 On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken p...@pp.dyndns.biz wrote:
 RW wrote:
 On Sat, 24 Jan 2009 15:27:02 +0100
 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:


 The section options enabled will list them all. I usually only add
 -march=native to my CFLAGS to enable a few more CPU specific
 optimizations.
 If you set CPUTYPE, -march is set to match, so setting -march=native
 should be redundant. OTOH a number of other make variables are defined
 from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
 miss some optimisations based on build options.

 I've no idea whether there are any such options, just that you're
 probably not going to do better than setting CPUTYPE, and leaving the
 rest alone.
 I'm sorry I was unclear. I set CPUTYPE to native of course which is then
 passed as -march=native to compiler.

 
 The entry in file /var/run/dmesg.boot shows the CPU information as
 CPU: Intel (R) Celeron (R) CPU 2.40 GHz (686-class CPU)
 
 The entry in /usr/share/examples/etc/make.conf shows CPU types for Intel as
 core2 core nocona pentium4m pentium4 prescott pentium3m pentium3 pentium-m
 pentium2 pentiumpro pentium-mx pentium i486 i386
 
 What would be the appropriate CPUTYPE specification in this case ?
 
 Is there any table which sort of maps the marketing names of the Intel 
 processor
 with the CPU information shown in dmesg ?
 

gcc 4.2 and later will figure out the correct -march and -mtune for you
automatically if you use CPUTYPE=native. How it does it in detail can be
seen in its source code but basically it's decided by checking
manufacturer, cpu family and whether sse2 and sse3 support is present.
Your processor is most likely a prescott and you can see what gcc
selects by running the compilation example from my previous post. The
choice shows up in its output.
/Morgan
___
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: Registry corrupt?

2009-01-24 Thread Wojciech Puchar

Some of the programs will not run after rehash or even when given the
precise path to the program. System doesn't see several but not all
programs. I've upgraded several servers (using source files -- cvsup)
withoug any such problem. It's just this one machine.






BTW2: Yes, I do know this isn't windows and doesn't have a registry per
se in that regard, but something does keep track of the programs


package manages has it's database in /var/db/pkg

but it's COMPLETELY different that registry. it only keep track of package 
files etc.



installed and I've never located that place/file/db not having a crucial
reason to before.

___
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: how to scrollback in terminal

2009-01-24 Thread Tim Judd

Saifi Khan wrote:

On Sat, Jan 24, 2009 at 8:07 AM, Dan Nelson dnel...@allantgroup.com wrote:

In the last episode (Jan 24), Tim Judd said:

Saifi Khan wrote:

i'd like to scrollback on the multi page output on the terminal in
FreeBSD 7.1

SHIFT key + Pg Up doesn't seem to work.

Can somebody post how to scrollback in terminal ?

scroll lock, and pgup

After you hit scroll-lock, up/down/pgup/pgdn/home/end all work, you can
copy and paste the history text with your mouse, and there's a separate
history per VTY.  You can also set the number of scrollback lines with
the vidcontrol -n ### command.  Significantly better than Linux's
scrollback...

--
   Dan Nelson
   dnel...@allantgroup.com


Thank you Tim and Dan for helping me out.

The BSD model is more logical and straightforward.



Yes it is.  As you get into BSD more, you'll find it makes more logical 
sense to stick with it, over Linux.  Welcome to the group.

___
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: Registry corrupt?

2009-01-24 Thread Tim Judd

Jack L. Stone wrote:

At 04:33 PM 1.23.2009 +0100, cpghost wrote:

On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote:

On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone

ja...@sage-american.comwrote:

During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened.
Some of the programs will not run after rehash or even when given the
precise path to the program. System doesn't see several but not all
programs. I've upgraded several servers (using source files -- cvsup)
withoug any such problem. It's just this one machine.

Some programs will not run because of a library version bump. Those
programs will need to be recompiled, i.e. rebuild all ports.

You can check this by running 'ldd' on the specific program. Let's
assume that you have zip installed:

$ ldd /usr/local/bin/zip
/usr/local/bin/zip:
   libbz2.so.3 = /usr/lib/libbz2.so.3 (0x80065c000)
   libc.so.7 = /lib/libc.so.7 (0x80076c000)



Thanks for that tip. Here's output of one of the programs that doesn't run:
ldd /usr/local/bin/fastest_cvsup
ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable

BUT, it is executable and using the exact path to the program still gives
this error:
/usr/local/bin/fastest_cvsup: not found

Yes, I did re-install the port too. No dice.

Again MOST all programs run except for this one and maybe a couple others
that may be causing buildworld to fail.

Strange!

Jack

(^_^)
Happy trails,
Jack L. Stone

System Admin
Sage-american


is the shebang line invalid?
head -1 /usr/local/bin/fastest_cvsup

and see if the program on that line is truly on your system:
ls -lF program location

The error above makes it look like it's the command line that's missing, 
but the shell will use the command line argument when the interpreter is 
missing.


Good luck!
___
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: swap_pager complaints but not using swap

2009-01-24 Thread Tim Judd

Kris Kennaway wrote:

Dieter wrote:

AMD64  FreeBSD 7.0  2 GiB main memory

My console says:

login: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, 
size: 4096

swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096

pstat -sk
Device  1K-blocks UsedAvail Capacity
/dev/ad6s10   4590208   96  4590112 0%

Wow, using a whole 96K of swap.  I don't see any disk related
complaints in dmesg.

Is this something to worry about?


Yes, the system was *trying* to do swap I/O and timing out while doing 
so.


Kris
___
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
isn't swapspace supposed to be on a 'b' partition?  Are you using swap 
on a slice 10?  how is that possible when the i386/amd64 BIOS can't see 
more than 4 primary partitions?


Kris, would you mind giving input to this?  How can there be a s10, and 
how can you add swapspace to a device that isn't a partition 'b' nor a 
file backed swapspace?  Those were the only two ways I thought was 
supported for swap.


Dieter, does my questions above sound to be a correct interpretation of 
your disk setup?



thanks!

--Tim
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 21:13:00 +0100
Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:

 gcc 4.2 and later will figure out the correct -march and -mtune for
 you automatically if you use CPUTYPE=native. 

The point I was making before, is that CPUTYPE isn't just passed
transparently to gcc, it's used for setting other variables, such as
CFLAGS. So unless you know that CPUTYPE=native is supported by the OS as
well as the compiler, you probably shouldn't use it in make.conf.
___
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 Nokia N95

2009-01-24 Thread Warren Liddell

What about this? Try in /usr/ports:


# make print-index
# make search key=mobile



Thanks for the info .. will give some a try and see how it goes :)
___
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: default CFLAGS

2009-01-24 Thread Morgan Wesström
RW wrote:
 On Sat, 24 Jan 2009 21:13:00 +0100
 Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:
 
 gcc 4.2 and later will figure out the correct -march and -mtune for
 you automatically if you use CPUTYPE=native. 
 
 The point I was making before, is that CPUTYPE isn't just passed
 transparently to gcc, it's used for setting other variables, such as
 CFLAGS. So unless you know that CPUTYPE=native is supported by the OS as
 well as the compiler, you probably shouldn't use it in make.conf.

I got that point. As with all tuning you always take the risk of
breaking something but that is a personal choice. From my own experience
I prefer that the compiler choses the optimizations.
I don't know about the base OS but a quick grep through /usr/ports only
reveals 5 or 6 ports that actually checks CPUTYPE and they don't do much
more than setting -march={$CPUTYPE} which is pretty redundant.

Regards
Morgan
___
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: swap_pager complaints but not using swap

2009-01-24 Thread Kris Kennaway

Tim Judd wrote:

Kris Kennaway wrote:

Dieter wrote:

AMD64  FreeBSD 7.0  2 GiB main memory

My console says:

login: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, 
size: 4096

swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096

pstat -sk
Device  1K-blocks UsedAvail Capacity
/dev/ad6s10   4590208   96  4590112 0%

Wow, using a whole 96K of swap.  I don't see any disk related
complaints in dmesg.

Is this something to worry about?


Yes, the system was *trying* to do swap I/O and timing out while doing 
so.


Kris
___
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
isn't swapspace supposed to be on a 'b' partition?  Are you using swap 
on a slice 10?  how is that possible when the i386/amd64 BIOS can't see 
more than 4 primary partitions?


Kris, would you mind giving input to this?  How can there be a s10, and 
how can you add swapspace to a device that isn't a partition 'b' nor a 
file backed swapspace?  Those were the only two ways I thought was 
supported for swap.


Dieter, does my questions above sound to be a correct interpretation of 
your disk setup?


swap can be put anywhere thesedays (post-FreeBSD 4.x), even on things 
that are not even simple disk devices.


Kris
___
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: default CFLAGS

2009-01-24 Thread Gonzalo Nemmi
On Saturday 24 January 2009 5:07:57 pm Saifi Khan wrote:
 On Sat, Jan 24, 2009 at 5:57 PM, Pojken Purken p...@pp.dyndns.biz wrote:
  RW wrote:
  On Sat, 24 Jan 2009 15:27:02 +0100
 
  Morgan Wesström freebsd-questi...@pp.dyndns.biz wrote:
  The section options enabled will list them all. I usually only add
  -march=native to my CFLAGS to enable a few more CPU specific
  optimizations.
 
  If you set CPUTYPE, -march is set to match, so setting -march=native
  should be redundant. OTOH a number of other make variables are defined
  from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
  miss some optimisations based on build options.
 
  I've no idea whether there are any such options, just that you're
  probably not going to do better than setting CPUTYPE, and leaving the
  rest alone.
 
  I'm sorry I was unclear. I set CPUTYPE to native of course which is then
  passed as -march=native to compiler.

 The entry in file /var/run/dmesg.boot shows the CPU information as
 CPU: Intel (R) Celeron (R) CPU 2.40 GHz (686-class CPU)

 The entry in /usr/share/examples/etc/make.conf shows CPU types for Intel as
 core2 core nocona pentium4m pentium4 prescott pentium3m pentium3 pentium-m
 pentium2 pentiumpro pentium-mx pentium i486 i386

 What would be the appropriate CPUTYPE specification in this case ?

 Is there any table which sort of maps the marketing names of the Intel
 processor with the CPU information shown in dmesg ?

This might help you out a little.
http://forums.freebsd.org/showthread.php?t=816

Hope you found it usefull

Regards

-- 
Blessings
Gonzalo Nemmi
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Gary Kline
On Fri, Jan 23, 2009 at 05:09:51PM +0100, Wojciech Puchar wrote:
  Guys, I've got several directories off ~kline/ that I want to
  store permanently.  Like all my development code in ~/devel, and
  all my music mp3's and ogg's in ~/Music, and all my online and
  mp3 books from libribox.org in ~/readings.  There are PDF files
  and HTML and a slew of other stuff.
 
 man mkisofs
 man growisofs
 
 that's all.
 
 mkisofs creates ISO image
 growisofs records DVD
 
 you can make growisofs run mkisofs in-flight so no image file has to be 
 made.
 
 
 
  either a few CD's or one DVD?  Right now, I'm cross-backing up
 
 it's best NOT to use GUI interfaces for this. as always - doing it from 
 command line is much easier when you learn.
 


I understand that!  ...learned the hard way:)  Then again, I
cheated and successfully used the K3B data-dvd mode.  It only
seemed to work 50%, then hung, but amazingly, the folder icons on
the top left were movable to the large space on the lower right
half.  I chose the verify option.

Now back to my original plans of using the command-line tool set.
So far, so good.  

After a dozen failures, your earlier post did work.  I did a
mkdir cdr; cp'd hundreds of megs into it, then ran mkisofs.  And 
lastly ran dvdisaster against the iso file to get an ECC listing.

Now to find out how to burn this image to a CD or DVD 

 
 and - you ARE NOT forced to use ISO-9660 filesystem.
 in unix recorded DVD is just readonly disk, you can use any filesystem it 
 supports.


So long as this is readable on FBSD, Linux, or a Mac, I'll be
happy.  
 
 if you do this often and your DVD's don't need to be windoze-readable 
 (which could be adventage sometimes) then:
 
 - create partitions of exactly 9180416 sectors (which is 2295104 2K 
 sectors - exactly DVD size)
 - use newfs to create partition. for best results use options
 
  newfs -m 0 -b 32768 -f 4096 -i 524288
 
 note that -i specify how much bytes is available per inode. more 
 given=less inodes created and less space wasted, but you may run out of 
 inodes storing small files.
 this example allows you to store about 8900 files.


wHat are the numbers ofr a CD-R/CD+RW?  Would growisofs be able
to figure this out from scanning a 700MB disc?  (I have more CD's
than DVD's.)

 
 - mount it and record what you like as usual
 - unmount and use growisofs to record a disc.
 
 use that disc with
 mount -r /dev/cd0 /mountpoint
 
 
Thanks much.  A FWIW to anyone reading this who is new to this
optical stuff.  Roland Smith has an outstanding writeup on how
to configure the /etc/devfs files.  I used in in late '07, then 
after my network meltdown when I needed to start from square-one, 
his tutorial got me going again.

gary




-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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: opera 9.63 installation and Qt version

2009-01-24 Thread Freminlins
2009/1/24 Paul B. Mahol one...@gmail.com


 Well for 9.63 there is only static one for FreeBSD 5.
 After all this is not freebsd problem, ask opera where is
 static version for FreeBSD 7

ftp://ftp.opera.com/pub/opera/unix/freebsd/963/en/intel/static/
___
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


The FreeBSD Diary: 2009-01-04 - 2009-01-24

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


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

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


Re: opera 9.63 installation and Qt version

2009-01-24 Thread Freminlins
Sorry, my bad. I misread you wanted the static version for 7.
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Polytropon
On Fri, 23 Jan 2009 10:14:08 -0800, per...@pluto.rain.com wrote:
  You can always try to tar it up directly
 
  tar -czf /dev/acd0 ~kline/ ~devel/
 
 Does it actually work to write to a burner without intervention by
 the likes of cdrecord or burncd?  If so, should it also be possible
 to burn an existing .iso by something like
 
   dd if=cd1.iso of=/dev/acd0 bs=64b

1st: On FreeBSD, using direct write calls would involve the ATAPICAM
facility, so /dev/cd0 instead of /dev/acd0 would be the correct device.

2nd: I'm not sure this works on FreeBSD, but I remember having used
something similar on a SCSI CD recorder on a Sun or SGI system. I'm
not sure which one it was, but it allowed to handle CDs the same way
as other SCSI devices, like tape drives.

You could try it out by loading the ATAPICAM subsystem (via kldload
or compiled into kernel) and then try one of the commands above.
I'm not sure dd works, but tar should. But to be honest, I've never
tried it out because I'm very comfortable with cdrecord and cdrdao,
and was with burncd in the past.






-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


Comfortable dd bs= parameters for different media

2009-01-24 Thread Polytropon
Hi,

I'd like to ask which sizes are comfortable to use for reading
from different media using the dd utility. As far as I know,
these are good values:

Format  Device (example)bs=
-   -   
Data CD /dev/acd0   2048
Music CD/dev/acd0t012352
DVD /dev/acd0   2048 (?)
Hard disk   /dev/ad0s1g 1m (?)

The usual command is

% dd if=/dev/see-above of=somefile.dd bs=whatever

What about copying partition-wise from a hard disk to a dd file?
Which bs= parameter would be encouraged to use?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: KDE: What a monster!

2009-01-24 Thread Polytropon
On Fri, 23 Jan 2009 19:15:47 -0500, Eduardo Cerejo ejcer...@optonline.net 
wrote:
 I just finished installing kde4, and it can barely run on my old p4 machine!
 Where has kde gone?  Is the developing team trying to beat VISTA?
 Pitiful at best!

Without wanting to start an endless discussion, I may say that I've
recognized the tendency to slow down programs in UNIX world such as
it is always described in Windows land: As soon as you get a new
OS or new programs, everything runs slower than before. In order to
keep the overall usage speed, you need to have more hardware power.

I'm running a P4 2GHz for more than 4 years now happily (I think),
but when I needed to build a new software installation due to a
data fallout in July 2008, I found everything running slower.

THIS TO ALL FreeBSD DEVELOPERS: NOT YOUR FAULT! Every release of
FreeBSD brought a higher bootup speed to my system, faster system
services and better performance.

But what about these advantages? They've got eaten up by all the
applications installed, their libraries and especially their GUI
toolkits. Nearly every Gtk application has been switched from
Gtk 1 to Gtk 2, including more disk consuming libs and depencencies,
slower program startup and slower reaction.

My favourite examples are:

* Opera, hardly reacting on input while loading a web
  page (and no, I don't try to use Flash stuff)

* Gimp, loads very slowly, needs seconds (!) to show
  the right click menu, needs several seconds to launch
  printing dialog

On the other hand, there are old programs that seem to profit
from the system's speed gain. That's why I love to use them instead
of their oversized brothers.

Such an oversized brother is KDE 4. Don't get me wrong, please.
On an up-to-date hardware basis, it's surely a joy to use, fast
and responsive. But if your system isn't from today, you don't
gonna have fun with it. Around me, other users seem to favour
Gnome instead of KDE because they are not willing to update their
perfectly running hardware with every release of the desktop
environment. (Addition: Gnome has better german internationalisation
than KDE.) But I'm not sure if Gnome or even XFCE will follow
the tradition to decrease speed, I'm using neither of them.

Decrease speed? In my opinion, the following formula is true:

  hardware resources
--- = usage speed
 software requirements

And if you add ++ to numerator and denominator of this quotient,
you'll see that the result will stay the same. This is my very
individual observation: People are doing the same things with
their computers over the years, and they keep doing it *at the
same speed* as years ago.

I always was happy when I could update my FreeBSD system, because
things were faster afterwards. Today, things are slower afterwards.
This makes me sad...

This has lead me to the conclusion not to use KDE, allthough it
has really interesting applications. It's not that I need a
desktop GUI system, I'm perfectly happy with a functional and
fast window manager (i. e. WindowMaker).




Sorry for bothering the list with my thoughts, but maybe I'm not
alone with this unmodern point of view. :-)



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


X panics on xorg 7.4

2009-01-24 Thread EA EA
I just upgraded X and when I started X with a fresh config.
When X starts I see the normal no-wm-yet screen with an unmovable mouse.
When I press ctrl+alt+spc I hear 3 beeps followed by a black screen.
I tried x11/nvidia-driver and x11-drivers/xf86-video-nv.

What should I be trying to fix it?  What information do you (I?) need to
debug?
___
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: KDE: What a monster!

2009-01-24 Thread Akenner

prad wrote:

:D :D :D
actually my wife is using kde4 on suse.
it's not too bad there for her needs at least, but i try to stay clear
of her computer :D
i did like kde3, but now i'm a dwm person!

  
I've been using KDE4 on a machine with OpenSUSE 11 that has 512 MBs RAM, 
and an AMD Athlon XP 2600+ processor at 2.13GHz and it hasn't been slow 
or anything. I've also been fine with a Pentium 4 M @3.06GHz and 512 RAM.


-Allen
___
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: how to scrollback in terminal

2009-01-24 Thread Polytropon
On Sat, 24 Jan 2009 02:07:59 -0600, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (Jan 24), Tim Judd said:
  Saifi Khan wrote:
  
   i'd like to scrollback on the multi page output on the terminal in
   FreeBSD 7.1
   
   SHIFT key + Pg Up doesn't seem to work.
   
   Can somebody post how to scrollback in terminal ?
  
  scroll lock, and pgup

That's what Scroll Lock is for (and always has been); I'm glad
that FreeBSD uses this key functionality as it has been intended,
so there's not another useless key on the keyboard (such as the
MICROS~1 advertising keys on modern ones)... :-)



 After you hit scroll-lock, up/down/pgup/pgdn/home/end all work, you can
 copy and paste the history text with your mouse, and there's a separate
 history per VTY.  You can also set the number of scrollback lines with
 the vidcontrol -n ### command. 

While in Scroll Lock mode, you can even enter characters using
the keyboard; they won't show up until ScrL is pressed the next
time, but while entering the content of the screen (usually
shifted some lines / pages up) won't alter. This can be very handy
in situations where you first ScrL the screen, go up some pages,
select text with the mouse, output it from the edit buffer to the
command line using the middle mouse button and then un-ScrL to
complete your command line and execute it.



 Significantly better than Linux's
 scrollback...

Definitely. I think the Linux way of scrollback is available in
xterms...



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Polytropon
On Sat, 24 Jan 2009 16:02:58 -0800, Gary Kline kl...@thought.org wrote:
   After a dozen failures, your earlier post did work.  I did a
   mkdir cdr; cp'd hundreds of megs into it, then ran mkisofs.  And 
   lastly ran dvdisaster against the iso file to get an ECC listing.
 
   Now to find out how to burn this image to a CD or DVD 

There are several possibilities. The hard way? :-)

1. Record on CD-R(W)

a) FreeBSD's burncd

% burncd -e -v -s 16 -f /dev/acd0 data cdr.iso fixate

b) The port cdrtools (includes cdrecord)

% cdrecord dev=1,0,0 speed=16 -v -eject -tao -data cdr.iso

2. Record on DVD+-*/R(W)

The port dvd+rw-tools (includes growisofs)

growisofs -dvd-compat -Z /dev/dvd=cdr.iso

This example implies the following setting in /etc/devfs.conf:

linkcd0 dvd

Alter device to fit your needs.

As aleays, check the manpages. They're helpful and include kind-of
copy  paste examples.

Note that 1 b) and 2 need atapicam (in kernel or via kldload).

For 1 b), you can check which SCSI ID corresponds to your recorder
using the command

% camcontrol devlist

Have in mind that permissions have to be set correctly in order to
access these devices for writing. It's intended to be that way. :-)

Finally, check the optimal writing speed for your CDs and DVDs.



   So long as this is readable on FBSD, Linux, or a Mac, I'll be
   happy.  

These platforms will read everything that has been mentioned in
this thread already, because they're real operating systems (and
not excuses for being none). :-)

I think the ISO-9660 + RockRidge is the most comfortable way for
what you intend - allthough the tar method (or even the UFS method)
won't be any problem here. But as I said, maximum compatibility is
always welcome for backups.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Gary Kline
On Sun, Jan 25, 2009 at 02:03:49AM +0100, Polytropon wrote:
 On Fri, 23 Jan 2009 10:14:08 -0800, per...@pluto.rain.com wrote:
   You can always try to tar it up directly
  
   tar -czf /dev/acd0 ~kline/ ~devel/
  
  Does it actually work to write to a burner without intervention by
  the likes of cdrecord or burncd?  If so, should it also be possible
  to burn an existing .iso by something like
  
dd if=cd1.iso of=/dev/acd0 bs=64b
 
 1st: On FreeBSD, using direct write calls would involve the ATAPICAM
 facility, so /dev/cd0 instead of /dev/acd0 would be the correct device.
 
 2nd: I'm not sure this works on FreeBSD, but I remember having used
 something similar on a SCSI CD recorder on a Sun or SGI system. I'm
 not sure which one it was, but it allowed to handle CDs the same way
 as other SCSI devices, like tape drives.
 
 You could try it out by loading the ATAPICAM subsystem (via kldload
 or compiled into kernel) and then try one of the commands above.
 I'm not sure dd works, but tar should. But to be honest, I've never
 tried it out because I'm very comfortable with cdrecord and cdrdao,
 and was with burncd in the past.
 
 
 


This is my chance to ask a last [ or one-of the last ]
question[s].
Now that I have 


cdr.iso:ISO 9660 CD-ROM filesystem data 'CDROM 
642848 -rw-r--r--   1 kline  wheel  657922048 Jan 24 15:34 cdr.iso

what is the safest command to use to burn to 1. a CD, and 2. a
DVD?  Since `file' says that cdr.iso is a filesystem, I'm
assuming that I don't need to grow or newfs anything on the disc.

cdrdao seems like more toward audio, so i'm guessing that it's
either cdrecord or burncd.  I'll share my shell script once it
works on both media.

thankee,

gary



 
 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 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

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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


Wierd Port Problem

2009-01-24 Thread Jeffrey R. Hellem
I aborted a make now it will not make php5-dba

[r...@server /usr/ports/databases/php5-dba]# make
===  PHPizing for php5-dba-5.2.8
cd: can't cd to /usr/ports/databases/php5-dba/work/php-5.2.8/ext/dba
*** Error code 2
1 error
*** Error code 2

Stop in /usr/ports/databases/php5-dba.


the work directory doesn't exist

i cleared /var/db/ports

it still won't make
 anyone have suggestions?
i tried make clean

[r...@server /usr/ports/databases/php5-dba]# make clean
===  Cleaning for php5-dba-5.2.8
[r...@server /usr/ports/databases/php5-dba]#

i tried make install

[r...@server /usr/ports/databases/php5-dba]# make install
install: /usr/ports/databases/php5-dba/work/php-5.2.8/ext/dba/modules/dba.so:
No such file or directory
*** Error code 71
1 error
*** Error code 2

Stop in /usr/ports/databases/php5-dba.

i tried make

[r...@server /usr/ports/databases/php5-dba]# make
===  PHPizing for php5-dba-5.2.8
cd: can't cd to /usr/ports/databases/php5-dba/work/php-5.2.8/ext/dba
*** Error code 2
1 error
*** Error code 2

Stop in /usr/ports/databases/php5-dba.

still nothing
___
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


error trying to burncd thhen ecomign unkillable process

2009-01-24 Thread Warren Liddell
I havee 2 burrners in my machine and not one off them will bburn a CD or 
DVD from command line let  alone trying to get k3b to recognise i even 
have a scsi burner...


enterprise# burncd -e -v -s 16 -f /dev/acd0 data neroultraV7.iso fixate
adding type 0x08 file neroultraV7.iso size 620990 KB 310495 blocks
burncd: ioctl(CDRIOCINITTRACK): Input/output error


After this error the ROM drives stays in a constant state of spin and 
the process refuses to die even after issuing the kill -9


What am i  doing wrrong or what is wroong with my system to not allow me 
to burn a cd//dvd?  I am usingg FreeBSD 7.1-STABLE AMD64 KDE 4.1.4

___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Polytropon
On Sat, 24 Jan 2009 17:56:33 -0800, Gary Kline kl...@thought.org wrote:
   Now that I have 
 
   cdr.iso:ISO 9660 CD-ROM filesystem data 'CDROM 
   642848 -rw-r--r--   1 kline  wheel  657922048 Jan 24 15:34 cdr.iso
 
   what is the safest command to use to burn to 1. a CD, and 2. a
   DVD?  Since `file' says that cdr.iso is a filesystem, I'm
   assuming that I don't need to grow or newfs anything on the disc.

You're right. It is a pre-mastered file system that just needs to be
recorded onto a media. The size 657922048 indicates that it would fit
onto a regular CD-R.



   cdrdao seems like more toward audio, so i'm guessing that it's
   either cdrecord or burncd.  I'll share my shell script once it
   works on both media.

Yes, both will work, and yes, cdrdao is better for audio or mixed
forms (allthough it can burn data ISO, too, but I don't know how,
out of the box). :-)

You may follow my examples from Date: Sun, 25 Jan 2009 02:53:46 +0100.

I'm a lazy guy, so I've setup the following aliases in /etc/csh.cshrc:

alias   burndata'cdrecord dev=1,0,0 speed=16 -v -eject -tao 
-data'
alias   burnaudio   'cdrecord dev=1,0,0 speed=16 -v -eject -dao 
-audio'
alias   burntoc 'cdrdao write --driver generic-mmc-raw --device 
1,0,0 --speed 16 --eject'

And I've got a shell script burndvd in ~/bin (included in $PATH):

#!/bin/sh

if [ $1 =  ]; then
echo $0 iso
exit 1
fi

if [ ! -f $1 ]; then
echo $0: cannot open $1
exit 1
fi

growisofs -dvd-compat -Z /dev/dvd=$1
cdcontrol eject

I know this is *very* lazy stuff, but it works, and I never change
a running system. :-)






-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Registry corrupt?

2009-01-24 Thread perryh
Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote:

  describe something more.
  and what you mean rehash?
 
  Rehashing forces the shell to reinitialise (for want of a
  better term) so that it rechecks the path and can sometimes
  discover new programs installed if they don't seem to work ...

 ok you mean shell rehashing. so PATH is missing something

Or an executable was added to one of the PATH directories since the
last time PATH was set or the rehash command was issued, e.g. when
a port was installed or upgraded.  See tcsh(1) for details.
___
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: error trying to burncd thhen ecomign unkillable process

2009-01-24 Thread Polytropon
On Sun, 25 Jan 2009 12:11:18 +1000, Warren Liddell shin...@maydias.com wrote:
 I havee 2 burrners in my machine and not one off them will bburn a CD or 
 DVD from command line let  alone trying to get k3b to recognise i even 
 have a scsi burner...

 [...]

 After this error the ROM drives stays in a constant state of spin and 
 the process refuses to die even after issuing the kill -9
 

I had similar problems, so I dropped burncd in favour of cdrecord
which I'm using for burning ISO data CDs.

 What am i  doing wrrong or what is wroong with my system to not allow me 
 to burn a cd//dvd? 

For a CD, try 

% cdrecord dev=1,0,0 speed=16 -v -eject -tao -data neroultraV7.iso

Check the SCSI device numbers using

% camcontrol devlist

and adjust the dev= parameter accordingly.

For a DVD, try

% growisofs -dvd-compat -Z /dev/dvd=neroultraV7.iso

Excange /dev/dvd for the correct drive (e. g. /dev/cd0).



 I am usingg FreeBSD 7.1-STABLE AMD64 KDE 4.1.4 

I don't know exactly, but can K3B be adjusted to use a specific
command line burning tool to record pre-mastered ISO files onto
CD or DVD? Maybe you could put one of the command lines above
into this program... (I'm no KDE user, so I can't check this.)




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Gary Kline
On Sun, Jan 25, 2009 at 02:53:46AM +0100, Polytropon wrote:
 On Sat, 24 Jan 2009 16:02:58 -0800, Gary Kline kl...@thought.org wrote:
  After a dozen failures, your earlier post did work.  I did a
  mkdir cdr; cp'd hundreds of megs into it, then ran mkisofs.  And 
  lastly ran dvdisaster against the iso file to get an ECC listing.
  
  Now to find out how to burn this image to a CD or DVD 
 
 There are several possibilities. The hard way? :-)
 
 1. Record on CD-R(W)
 
   a) FreeBSD's burncd
 
   % burncd -e -v -s 16 -f /dev/acd0 data cdr.iso fixate
 
   b) The port cdrtools (includes cdrecord)
 
   % cdrecord dev=1,0,0 speed=16 -v -eject -tao -data cdr.iso
 
 2. Record on DVD+-*/R(W)
 
   The port dvd+rw-tools (includes growisofs)
 
   growisofs -dvd-compat -Z /dev/dvd=cdr.iso
 
   This example implies the following setting in /etc/devfs.conf:
 
   linkcd0 dvd
 
   Alter device to fit your needs.
 
 As aleays, check the manpages. They're helpful and include kind-of
 copy  paste examples.
 
 Note that 1 b) and 2 need atapicam (in kernel or via kldload).
 
 For 1 b), you can check which SCSI ID corresponds to your recorder
 using the command
 
   % camcontrol devlist
 
 Have in mind that permissions have to be set correctly in order to
 access these devices for writing. It's intended to be that way. :-)
 
 Finally, check the optimal writing speed for your CDs and DVDs.
 
 
 
  So long as this is readable on FBSD, Linux, or a Mac, I'll be
  happy.  
 
 These platforms will read everything that has been mentioned in
 this thread already, because they're real operating systems (and
 not excuses for being none). :-)
 
 I think the ISO-9660 + RockRidge is the most comfortable way for
 what you intend - allthough the tar method (or even the UFS method)
 won't be any problem here. But as I said, maximum compatibility is
 always welcome for backups.
 

Max, yes, even if all I have is DOS :-)

Thanks very much.  I do have dvd linked in /etc/devfs.conf, as
well as the atapi/cam/SCSI xpt stuff compiled in.  So the last
step would seem to be simply mousing in your  cdrecord for my
CD's.  Probably use a seperate script for the DVD's and growiofs.

gary



 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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: how to create a DVD backup filesystem?

2009-01-24 Thread cpghost
On Sat, Jan 24, 2009 at 05:56:33PM -0800, Gary Kline wrote:
   Now that I have 
 
   cdr.iso:ISO 9660 CD-ROM filesystem data 'CDROM 
   642848 -rw-r--r--   1 kline  wheel  657922048 Jan 24 15:34 cdr.iso
 
   what is the safest command to use to burn to 1. a CD, and 2. a
   DVD?  Since `file' says that cdr.iso is a filesystem, I'm
   assuming that I don't need to grow or newfs anything on the disc.

In addition to the cdrecord examples shown earlier, you can also
simply use burncd:

# burncd -f /dev/acd0 -s max data cdr.iso fixate

But remember one thing: don't try to mix and match accesses to
/dev/acd0 and /dev/cd0. IIRC, there are (were?) some issues with
using ATAPI and ATAPICAM drivers simultaneously.

If you prefer to stick to ATAPICAM (recommended), use cdrecord
to write to the virtual device represending the burner. Use
cdrecord's -scanbus option (as root!) to find out:

phenom# cdrecord -scanbus
Cdrecord-Clone 2.01 (amd64-unknown-freebsd7.1) Copyright (C) 1995-2004
J??rg Schilling
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) *
0,1,0 1) 'Optiarc ' 'DVD RW AD-7203A ' '1.01' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

This would then be on that machine:

# cdrecord -v speed=8 dev=0,1,0 cdr.iso

To burn to a DVD, use growisofs, using something like this:

# growisofs -dvd-compat -speed=8 -Z /dev/cd0=cdr.iso

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Polytropon
On Sat, 24 Jan 2009 18:32:01 -0800, Gary Kline kl...@thought.org wrote:
   Max, yes, even if all I have is DOS :-)

Sure, no problem. Erm stop, no, little problem with DOS: It will
cut off filenames at 8.3 convention because DOS only gets the
ISO-9660 part, but not the standard RockRidge (or even the non-
standard Joliet extension). But because RockRidge is standard,
it provides the RR_MOVED mechanism which can be used to obtain
the real filenames from the ISO-9660 8.3 names.



   Thanks very much.  I do have dvd linked in /etc/devfs.conf, as
   well as the atapi/cam/SCSI xpt stuff compiled in. 

You just need to have the proper permissions, or call the command
with a sudo prefix - I prefer the first option.



 Probably use a seperate script for the DVD's and growiofs.

Because the geowisofs burning command doesn't allow the file name
for the ISO to be a separate parameter, I chose to put it into a
little shell script. That's the only reason that I didn't create
an alias in /etc/csh.cshrc. If something like

% growisofs -dvd-compat -Z /dev/dvd -f cdr.iso
^^,
 fictional parameter

would be possible, I would really prefer it. The alias could then
be everything until -f (which would read out use this file as
image instead of the device=file parameter which isn't good
for creating an alias (such as for cdrecord or cdrdao).




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: how to create a DVD backup filesystem?

2009-01-24 Thread Polytropon
On Sun, 25 Jan 2009 03:35:44 +0100, cpghost cpgh...@cordula.ws wrote:
 In addition to the cdrecord examples shown earlier, you can also
 simply use burncd:
 
 # burncd -f /dev/acd0 -s max data cdr.iso fixate

An addition: -s max will select the drive's fastest speed. This
can lead to problems if your media is cheap and can't handle a
speed of 32x or 48x (writing speed). You can manually set a speed
where you and your media feel safe. :-)

Personally, I don't record faster than 16x.

There is a saying (urband legend?) that you shouldn't record
audio CDs faster than 8x, but I'm not sure if this applies.



 But remember one thing: don't try to mix and match accesses to
 /dev/acd0 and /dev/cd0. IIRC, there are (were?) some issues with
 using ATAPI and ATAPICAM drivers simultaneously.

I haven't found such issues yet, but I dropped burncd some time
ago because it wouldn't work on /dev/acd0 anymore (on 5.x, it
did and was my preferred tool), so I switched to cdrecord and
cdrdao, using the ATAPICAM facility.



 If you prefer to stick to ATAPICAM (recommended), use cdrecord
 to write to the virtual device represending the burner. Use
 cdrecord's -scanbus option (as root!) to find out:
 
 phenom# cdrecord -scanbus
 [...]
 0,1,0 1) 'Optiarc ' 'DVD RW AD-7203A ' '1.01' Removable CD-ROM
 [...]

I think the camcontrol utility (provided by the OS) works, too:

% camcontrol devlist
HL-DT-ST DVD-RAM GSA-H58N 1.01   at scbus1 target 0 lun 0 (cd0,pass0)
   ^^ ^  ^^^

This command shows you the SCSI ID 1,0,0 and the device /dev/cd0 for
the recorder at the same time.

Instead of giving them as command line options to the various
tools, you can create their config files and put this information
there (refer to the manpages for the name and content description
of the files). But because on systems the SCSI ID's don't change
on a regular basis, using wrapper scripts or shell aliases will
make burning comfortable, and they need service only if you change
something in the hardware.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


portupgrade

2009-01-24 Thread Ajtim Civolvap
Hi!

My system 7.1.
I am (was) user of postmaster but the last update for Xorg it did mess. Than I 
use portupgrade -arR and was okay, X works okay but when I run:

portupgrade -arR
** Port marked as IGNORE: x11-drivers/xf86-video-vga:
is marked as broken: Needs to be removed
** Port marked as IGNORE: x11-drivers/xf86-video-via:
requires pciVideoPtr typedef
** Port directory not found: x11/xorg-protos
** Port directory not found: x11/xphelloworld
---  Skipping 'x11/xorg-apps' (xorg-apps-7.3) because a requisite 
package 'xphelloworld-1.0.1_1' (x11/xphelloworld) failed (specify -k to 
force)
---  Skipping 'x11-drivers/xorg-drivers' (xorg-drivers-7.3_3) because a 
requisite package 'xf86-video-via-0.2.2_3' (x11-drivers/xf86-video-via) 
failed (specify -k to force)
---  Skipping 'x11/xorg' (xorg-7.3_2) because a requisite 
package 'xorg-apps-7.3' (x11/xorg-apps) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
- x11-drivers/xf86-video-vga (marked as IGNORE)
- x11-drivers/xf86-video-via (marked as IGNORE)
- x11/xorg-protos (port directory error)
- x11/xphelloworld (port directory error)
* x11/xorg-apps (xorg-apps-7.3)
* x11-drivers/xorg-drivers (xorg-drivers-7.3_3)
* x11/xorg (xorg-7.3_2)

I understand for VGA or VIA port but how can correct the other, please?

Thanks in advance.
___
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: freebsd-questions Digest, Vol 246, Issue 44

2009-01-24 Thread gs_stol...@juno.com
 I received this email.  Generally I look at the table of contents 
and see if there is anything there that I wish to read.  For this email, the 
table of contents seems to have been made for some other email file but put on 
this one by accident.  Please correct the problem!!!

Click to get a free auto insurance quotes from top companies.
http://thirdpartyoffers.juno.com/TGL2141/fc/PnY6rw2PNPfC90IB2i2fuxfi88vWbktzpdTYpZxNJe0YQcS6CfqBi/
___
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: Embedded scripting language advice sought

2009-01-24 Thread Linda Messerschmidt
On Mon, Jan 19, 2009 at 2:46 PM, George Hartzell hartz...@alerce.com wrote:
 I don't have any useful advice to offer, but I would love it if you
 would summarize anything interesting that you get.

 I do a lot of computational biology work and am always interested in
 extension language for my computing systems.

There was not a lot of response.  One suggestion for Tcl and one for Ruby.

I figured that all of the possibilities were going to be a pain to
develop in their own unique way, so that was probably not the best
evaluation criteria.  The best choice was going to be the one that the
people who were going to use it every day were the most comfortable
with.

So what I did was code up little samples in each of the serious
contenders: Lua, Python, Ruby, and Tcl.  Without telling people which
language was which, I sent them around for votes.  I really liked the
Tcl syntax and I thought it was going to do really well, but Python
came back the winner.

Even so, I kept researching for farther-flung alternatives and turned
up a couple of others as well, although several of the embedded
languages are pretty stale, dead, or haven't gotten past
0.0.1-pre-alpha.  Of the haven't heard of it before languages, only
one called Pike earned serious consideration.  (Technically I had
heard of its predecessor LPC, but only as a result of a misspent
youth. :-) )

Pike and Python went head to head and, probably since our team is
heavy with C++ programmers, Pike came out on top.

So, we've started doing a proof-of-concept using Pike and we'll see
how it goes.  So far so good, and it's actually a pretty fun language
to work with.

-LM
___
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


dlopen Undefined symbol with x11/nvidia-driver

2009-01-24 Thread EA EA
dlopen: /usr/local/lib/xorg/modules//libwfb.so: Undefined symbol
miZeroLineScreenIndex
(EE) Failed to load /usr/local/lib/modules//libfw.so
(EE) Failed to load module wfb (loader failed 7)

Fatal server error:
Caught sigal 11.  Server aborting

Abort trap: 6 (core dumped)


Any idea what is causing this or how to fix it ?
___
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


(no subject)

2009-01-24 Thread wclark
I just in stalled VTiger and missed the instructions on how to install it
.do know or is there a command that will let me find that info

wc
___
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: Embedded scripting language advice sought

2009-01-24 Thread Saifi Khan
On Sun, Jan 25, 2009 at 3:34 AM, Linda Messerschmidt
linda.messerschm...@gmail.com wrote:
 On Mon, Jan 19, 2009 at 2:46 PM, George Hartzell hartz...@alerce.com wrote:
 I don't have any useful advice to offer, but I would love it if you
 would summarize anything interesting that you get.

 I do a lot of computational biology work and am always interested in
 extension language for my computing systems.

 There was not a lot of response.  One suggestion for Tcl and one for Ruby.

 I figured that all of the possibilities were going to be a pain to
 develop in their own unique way, so that was probably not the best
 evaluation criteria.  The best choice was going to be the one that the
 people who were going to use it every day were the most comfortable
 with.

 So what I did was code up little samples in each of the serious
 contenders: Lua, Python, Ruby, and Tcl.  Without telling people which
 language was which, I sent them around for votes.  I really liked the
 Tcl syntax and I thought it was going to do really well, but Python
 came back the winner.

 Even so, I kept researching for farther-flung alternatives and turned
 up a couple of others as well, although several of the embedded
 languages are pretty stale, dead, or haven't gotten past
 0.0.1-pre-alpha.  Of the haven't heard of it before languages, only
 one called Pike earned serious consideration.  (Technically I had
 heard of its predecessor LPC, but only as a result of a misspent
 youth. :-) )

 Pike and Python went head to head and, probably since our team is
 heavy with C++ programmers, Pike came out on top.

 So, we've started doing a proof-of-concept using Pike and we'll see
 how it goes.  So far so good, and it's actually a pretty fun language
 to work with.

 -LM

Are you saying the choice is made on the basis of 'likeability' and
not 'technical merit' ?


-- 
thanks
Saifi.
___
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: swap_pager complaints but not using swap

2009-01-24 Thread Dieter
  AMD64  FreeBSD 7.0  2 GiB main memory
  
  My console says:
  
  login: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  
  pstat -sk
  Device  1K-blocks UsedAvail Capacity
  /dev/ad6s10   4590208   96  4590112 0%
  
  Wow, using a whole 96K of swap.  I don't see any disk related
  complaints in dmesg.
  
  Is this something to worry about?
 
 Yes, the system was *trying* to do swap I/O and timing out while doing so.
 
 Kris

Whoops, I forgot to change the subject line after adding the k option
to pstat.  Without the k it said 0 used.  And this morning it occurs to
me that even if swap used was zero, it could have been trying to *start*
using swap.

Anyway... given this timeout explaination, I'm guessing that page/swap
has to compete with user processes for disk i/o, and thus probably
suffers from the same lack of fair i/o scheduling that user processes
suffer from.  E.g. one process doing disk i/o can lock out another
process for at least several minutes, probably indefinitely.  :-(
___
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: swap_pager complaints but not using swap

2009-01-24 Thread Dieter
  AMD64  FreeBSD 7.0  2 GiB main memory
 
  My console says:
 
  login: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, 
  size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
  swap_pager: indefinite wait buffer: bufobj: 0, blkno: 22, size: 4096
 
  pstat -sk
  Device  1K-blocks UsedAvail Capacity
  /dev/ad6s10   4590208   96  4590112 0%
 
  Wow, using a whole 96K of swap.  I don't see any disk related
  complaints in dmesg.
 
  Is this something to worry about?
 
  Yes, the system was *trying* to do swap I/O and timing out while doing 
  so.

 isn't swapspace supposed to be on a 'b' partition?  Are you using swap 
 on a slice 10?  how is that possible when the i386/amd64 BIOS can't see 
 more than 4 primary partitions?
 
 Kris, would you mind giving input to this?  How can there be a s10, and 
 how can you add swapspace to a device that isn't a partition 'b' nor a 
 file backed swapspace?  Those were the only two ways I thought was 
 supported for swap.
 
 Dieter, does my questions above sound to be a correct interpretation of 
 your disk setup?

Traditionally swap used the b partition.  But then traditionally, there
weren't MBR style partitions, called slices in FreeBSD-land.

I suspect that the computers Unix grew up on (PDP-7, PDP-11, VAX) had
to boot from the beginning of the disk, so the a partition went there.
The Alpha continues in this DEC tradition.  I was about to say that
swap went next for speed, since the machines back then never had enough
main memory, but those old disks didn't have variable number of sectors
on inner vs outer tracks, so the speed would have been the same across
the platter.  So I'm not sure why swap was next.

This machine has 2 GiB of main memory and almost never uses the swap
partition, so I put swap at the slow end of the drive.  Yes I have
swap on slice 10.  I use NetBSD's fdisk, as it handles more than
4 slices nicely, unlike FreeBSD's fdisk.  As far as I know, the BIOS
firmware doesn't need to know about swap.  I think the BIOS firmware
just loads and runs the MBR, which in turn loads and runs the bootstrap
in the selected slice (or loads and runs the MBR in a different disk if
you want).

I suppose I could put a BSD disklabel on slice 10 and set it up
with the whole slice as the b partition.  But as far as I can tell
FreeBSD is happy with /dev/ad6s10.  As I wrote in my previous
message I suspect that the pager/swaper is competing for disk i/o.
I forgot to ask if there is some sysctl or other knob to lengthen
the timeout.  The real fix is to improve the i/o fairness, but I've
been asking about this for 2-3 years and not getting anywhere.
___
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: IPFW DUMMYNET: Several pipes after each other

2009-01-24 Thread Ian Smith
On Thu, 22 Jan 2009 08:10:09 +0100 (CET)
 Sebastian Mellmann sebastian.mellm...@net.t-labs.tu-berlin.de wrote:

  I'm using FreeBSD 7.0 with IPFW DUMMYNET enabled.
  
  I've got a problem with creating a ruleset which allows me to limit the
  overall bandwidth of a link and afterwards pass the packets to another
  pipe for processing.
  
  So far I've got those rules:
  
  in_if=em0
  out_if=em1
  management_if=em2
  in_ip=100.100.100.1
  out_ip=200.200.200.1
  management_ip=172.16.0.201
  client1_subnet=192.168.5.0/26
  client2_subnet=192.168.6.0/26
  server_subnet=192.168.7.0/24
  
  download_bandwidth=6144Kbit/s
  upload_bandwidth=1024Kbit/s
  delay=0
  queue_size=10

10 slots ie packets is likely too small a queue size at these rates.  
You want to check the dropped packet stats from 'ipfw pipe show' re 
that; see the section in ipfw(8) about calculating sizes / delays.

On the other hand, depending on how many hosts you're running individual 
queues for (mask 0x), you may need to trade with memory used ..

  cmd=ipfw
  
  $cmd add 10 allow all from any to any via lo0
  
  $cmd pipe 100 config mask src-ip 0x bw $upload_bandwidth queue 
  $queue_size delay $delay
  $cmd pipe 200 config mask dst-ip 0x bw $download_bandwidth queue 
  $queue_size
  
  $cmd add pipe 100 all from $client1_subnet to $server_subnet in via $in_if
  $cmd add pipe 200 all from $server_subnet to $client1_subnet out via $in_if
  
  $cmd add pipe 100 all from $client2_subnet to $server_subnet in via $in_if
  $cmd add pipe 200 all from $server_subnet to $client2_subnet out via $in_if

I suggest using 'in recv' and 'out xmit' rather than via for these, for 
the sake of clarity.  'in recv' and 'in via' come to the same thing, as 
only the receive interface is known on inbound packets, but 'out via' 
applies to packets that were *received* on the specified interface as 
well as those going out on that interface after routing, which can lead 
to surprising results sometimes, and being more specific never hurts ..

  $cmd add 1 allow all from any to any via $management_if
  $cmd add 2 allow all from any to any via $in_if
  $cmd add 3 allow all from any to any via $out_if
  
  ---
  
  What I want to add now, is the possibility to limit the bandwidth of the
  whole link, e.g. 100Mbit/s.
  
  I've tried to add a pipe:
  
  $cmd pipe 50 config bw 100Mbit/s queue $queue_size
  $cmd add pipe 50 all from any to any via $in_if
  
  But when I have a look at the pipes with 'ipfw show' I can only see
  packets go through the pipe 50 and nothing goes through the other pipes
  (which makes sense actually since IPFW work that way?).

IPFW works that way if you (likely) have net.inet.ip.fw.one_pass=1 .. so 
that packets exiting from pipes aren't seen by the firewall again.  If 
you set one_pass=0, packets are reinjected into the firewall at the rule 
following the pipe (or queue) action, which is what you want to do here.

And you'll surely need a much larger queue for this pipe, at 100Mbit/s.

cheers, Ian
___
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: Comfortable dd bs= parameters for different media

2009-01-24 Thread Giorgos Keramidas
On Sun, 25 Jan 2009 02:11:11 +0100, Polytropon free...@edvax.de wrote:
 Hi,

 I'd like to ask which sizes are comfortable to use for reading
 from different media using the dd utility. As far as I know,
 these are good values:

   Format  Device (example)bs=
   -   -   
   Data CD /dev/acd0   2048
   Music CD/dev/acd0t012352
   DVD /dev/acd0   2048 (?)
   Hard disk   /dev/ad0s1g 1m (?)

AFAICT these are fine.

 What about copying partition-wise from a hard disk to a dd file?
 Which bs= parameter would be encouraged to use?

Presumably the destination file will also be on hard disk (or USB flash,
or SSD).  It may be ok to use 1m then :)

___
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: error trying to burncd thhen ecomign unkillable process

2009-01-24 Thread Warren Liddell
   % camcontrol devlist

Typed this but no output what so ever, which presumably isnt a good thing.

 and adjust the dev= parameter accordingly.

 For a DVD, try

   % growisofs -dvd-compat -Z /dev/dvd=neroultraV7.iso

enterprise# growisofs -dvd-compat -Z /dev/acd0=neroultraV7.iso
:-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for device

Something aint right obviously.
___
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: Comfortable dd bs= parameters for different media

2009-01-24 Thread perryh
 I'd like to ask which sizes are comfortable to use for reading
 from different media using the dd utility ...

In case anyone still cares, I have long used bs=120b for floppy
disks.
___
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