Re: databases/php5-odbc vs. libiodbc

2010-07-13 Thread Pietro Cerutti
On 2010-Jun-15, 19:21, Kyryll A Mirnenko aka Mirya wrote:
   Currently the databases/php5-odbc PHP extension is hardcoded to be compiled 
 with unixODBC backend, so the users that have libiodbc installed (as a 
 dependency of kde4 ports, for ex.) can't installed the first 'cause those two 
 ODBC ports conflict with each other.
   The php-odbc configure script however says (./configure --help) it can be 
 compiled with iODBC support (--with-iodbc=/usr/local), but for some reason 
 simply replacing the configure script arguments for the port (with libiodbc 
 installed from ports) result in nothing being done: the configure script 
 creates the Makefile with empty target, so nothing is built actually.
   Did anyone have success before with building php5-odbc lniked to iodbc 
 backend?

I've been able have the php5-odbc extension link against libiodbc by
applying this patch [1] to lang/php5. I haven't conducted any run-tests,
though. Please feel free to report success / failure :)

[1] http://people.freebsd.org/~gahr/Makefile.ext.diff

-- 
Pietro Cerutti
The FreeBSD Project
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp


pgpN03aRYEJZy.pgp
Description: PGP signature


Re: Can't install octave

2010-03-05 Thread Pietro Cerutti
On 2010-Mar-05, 16:47, Jan Henrik Sylvester wrote:
 There has been one more commit on that port:
 
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11-toolkits/fltk/files/patch-src_filename_list.cxx.diff?r1=1.4;r2=1.5;f=h
 
 That one looks suspicious because (__FreeBSD_version = 73) make the 
 clauses before obsolete.
 
 Before that commit, the condition was true for 8-STABLE and 9-CURRENT, 
 but not for 8.0-RELEASE or 7-ANYTHING. The commit was supposed to fix 
 7.3-RELEASE (and probably 7-STABLE) but changed the behavior for 
 8.0-RELEASE, too, which probably has not been intended.

Good catch! Fixed, thanks!


-- 
Pietro Cerutti
The FreeBSD Project
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp


pgpVMSdqSmWYD.pgp
Description: PGP signature


Re: port lang/g95 installation problem, cannot exec 'f951': No such file

2009-07-30 Thread Pietro Cerutti
On 2009-Jul-29, 20:35, Anton Shterenlikht wrote:
 this is a regression
 
 after some recent port updates, on 7.2-stable, 8.0-current and 8.0-beta2
 port lang/g95 gives:
 
 % g95 any fortran file
 g95: installation problem, cannot exec 'f951': No such file or directory

Fixed, thanks.

http://lists.freebsd.org/pipermail/cvs-ports/2009-July/177135.html

 
 I updated g95 with portmaster, so all dependencies should've been
 followed.
 
 What is this f951?
 
 many thanks
 
 -- 
 Anton Shterenlikht
 Room 2.6, Queen's Building
 Mech Eng Dept
 Bristol University
 University Walk, Bristol BS8 1TR, UK
 Tel: +44 (0)117 928 8233 
 Fax: +44 (0)117 929 4423
 ___
 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

-- 
Pietro Cerutti
The FreeBSD Project
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp
___
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 lang/g95 installation problem, cannot exec 'f951': No such file

2009-07-30 Thread Pietro Cerutti
On 2009-Jul-30, 10:08, Anton Shterenlikht wrote:
 On Thu, Jul 30, 2009 at 09:43:28AM +0200, Pietro Cerutti wrote:
  On 2009-Jul-29, 20:35, Anton Shterenlikht wrote:
   this is a regression
   
   after some recent port updates, on 7.2-stable, 8.0-current and 8.0-beta2
   port lang/g95 gives:
   
   % g95 any fortran file
   g95: installation problem, cannot exec 'f951': No such file or directory
  
  Fixed, thanks.
  
  http://lists.freebsd.org/pipermail/cvs-ports/2009-July/177135.html
 
 thank you, but now there is a linker error:
 
 % g95 somefile
 ld: cannot find -lf95

Please set your LIBRARY_PATH environment variable to $prefix/lib.

$ cat test.f90
program hello
  print *,Hello World!
end program hello
$ setenv LIBRARY_PATH /usr/local/lib
$ g95 -o test test.f90
$ ./test
Hello World!


 
 -- 
 Anton Shterenlikht
 Room 2.6, Queen's Building
 Mech Eng Dept
 Bristol University
 University Walk, Bristol BS8 1TR, UK
 Tel: +44 (0)117 928 8233 
 Fax: +44 (0)117 929 4423
 ___
 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

-- 
Pietro Cerutti
The FreeBSD Project
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp
___
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: fdisk: class not found

2009-05-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Saifi Khan wrote:
| Hi all:
Hi Saifi,

| Trying to write a partition table using fdisk supplied in the
| installation DVD of FreeBSD 8.0 i386 200905 snapshot.
|
| Should we write new partition table ? [n] y
| fdisk: Class not found
|
| When i again run 'fdisk' it should the old partition table.
|
| What exactly does 'Class not found' mean ?

This comes from geom. See geom(8).

|
| There is no mention of the 'Class' in fdisk man page at
| http://www.freebsd.org/cgi/man.cgi?query=fdisksektion=8
|
| Can the experienced BSD guys explain ?
|
|
| thanks
| Saifi.


- --
Pietro Cerutti
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp

+-+
| How do  you get |
|that backwards b?|
+-+

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (FreeBSD)

iEYEAREKAAYFAkoIYdgACgkQwMJqmJVx947R0QCcDrLUjkU+z/shQQtmPzGGVJFN
nF8AnA1m/emOWiq7v1jKypLyOZYWNJHj
=bIVF
-END PGP SIGNATURE-
pi
___
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: sshfs

2009-05-08 Thread Pietro Cerutti



On Fri, 08 May 2009, Antonio Tommasi antonio.tomm...@unile.it wrote:


Hi to all,

Hi Antonio,


I'm trying to use sshfs on freebsd 7.1 box
After i've installed port

(ls /var/db/pkg|grep fuse
fusefs-kmod-0.3.9.p1.20080208_5
fusefs-libs-2.7.4
fusefs-sshfs-2.2
)

i run command

sshfs u...@host:/ /mnt/test/

and after inser password for host i've this message

fuse: failed to open fuse device: No such file or directory
Where is the problem


You have to load the fuse kernel module:

kldload fuse


Regards

Cheers,


Antonio Tommasi


--
Pietro Cerutti
g...@freebsd.org

PGP Public Key:
http://gahr.ch/pgp

___
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: presentation application (other than OpenOffice)?

2008-11-26 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Andrew Gould wrote:
| I'm browsing around for smaller office apps.  Abiword and Gnumeric are
| great.  Does anyone have any recommendations for a presentation software?
| I'd rather not compile OpenOffice; and I'm just not getting KDE4.

I would suggest LaTeX's beamer class
http://latex-beamer.sourceforge.net/

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkktawoACgkQwMJqmJVx945+bwCg0srGQ3gOgjSEMc98q7XpwMsK
oOoAn2MdIUSlpSD95Edel+BRpoNgMr9j
=XP1+
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uptime 2 years!

2008-10-08 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Duane Hill wrote:
| On Wed, 8 Oct 2008, Frank Shute wrote:
|
| On Wed, Oct 08, 2008 at 08:54:47AM -0700, Chad Marshall wrote:
|
|
| Hello,
|
| Would like to share a success story which I'm sure you've had in the
| past but one of my servers running FreeBSD will have an uptime of 2
| years tomorrow. I plan on putting on my blog but as it doesn't have
| much reach but wanted to share with you since your community has made
| this possible. Please indicate where I could post this to have a bit
| more reach or if you'd like to put a link to my blog, I'd be more than
| happy to provide that.
|
|
| Best Regards,
|
|
| Sorry to rain on your parade:
|
| http://lists.freebsd.org/pipermail/freebsd-chat/2008-October/005719.html
|
| Uptime over seven(7) years? Must be behind some firewall and not have to
| worry about (what someone else has stated) kernel or userland updates.

No entry for seven in section 7 of the manual


:D


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjtSJ0ACgkQwMJqmJVx947+YgCeKx0R5O4IUjNc4xUnypmU/AnA
0b4An1nkSCv9L7xhCVrAK4yL76/m7BI0
=auUZ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kgdb debugging

2008-10-06 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

alan yang wrote:
| hi, there,
|
| wonder people can shed some lights on remote debugging.  i have
| freebsd7 configured with option DDB / KDB / GDB but after entering the
| db on the target system the command gdb gives the remote GDB backend
| could not be selected.
|
| i browsed through the mailing list, and do find 1 similar post but
| without answer.
|
| thanks in advance  apology if i overlooked things ...

I suggest the following tutorial:
http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf

Have fun :)

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76
ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3
=6Pdm
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mysqldump password issue

2008-10-02 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Andrei Brezan wrote:
| Hello list,
|
| I wanna do a
| mysqldump -u user -ppasswd --all-databases  backup.sql
|
| and all I get is
| mysqldump: No match.
|
| This happens either i put --all-databases or I specify any of the
| databases. I want to do a backup as user root, that's why I use
| all-databases opt.
|
| If I use the command:
| mysqldump -u root -p --all-databases backup.sql
| I get the password prompt, I type the passwd and everythig works great.
| It seems that there is a problem with -p, i've tried --password with
| same result.
|
| If anyone has any ideea please let me know about it.
| I mention that i use Freebsd 7_0 and mysql 5.0.67

Same MySQL version here, but running CURRENT. Everything works fine..

|
| Thank you
|
|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX
Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1
=On8Y
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Mysqldump password issue

2008-10-02 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Brad Mettee wrote:
| Shouldn't there be a space between -p and the password? Like this:
|
| mysqldump -u user -p passwd --all-databases  backup.sql

~From the man page:

The password to use when connecting to the server. If you use the
short option form (-p), you cannot have a space between the option
and the password. If you omit the password value following the
- --password or -p option on the command line, you are prompted for
one.

|
| At 02:34 PM 10/2/2008, you wrote:
| Andrei Brezan wrote:
| | Hello list,
| |
| | I wanna do a
| | mysqldump -u user -ppasswd --all-databases  backup.sql
| |
| | and all I get is
| | mysqldump: No match.
| |
| | This happens either i put --all-databases or I specify any of the
| | databases. I want to do a backup as user root, that's why I use
| | all-databases opt.
| |
| | If I use the command:
| | mysqldump -u root -p --all-databases backup.sql
| | I get the password prompt, I type the passwd and everythig works great.
| | It seems that there is a problem with -p, i've tried --password with
| | same result.
| |
| | If anyone has any ideea please let me know about it.
| | I mention that i use Freebsd 7_0 and mysql 5.0.67
|
| Same MySQL version here, but running CURRENT. Everything works fine..
|
| |
| | Thank you
| |
| |
|
|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

| Brad Mettee
| PC HotShots, Inc.
| Baltimore, MD
| (410) 426-7617

|  - Let us bring out the *Power* of your PCs. -
| - Custom Business Software Solutions since 1991 -

| visit http://www.pchotshots.com for information about our company.

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjlS+4ACgkQwMJqmJVx9471cgCguT2IPIG/o1mJVpGwgfJlYWS/
EBoAn3+nAjiehzJ/YX8BhcPjj7xaz2ZW
=Spnn
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Symbolic link

2008-09-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Jos Chrispijn wrote:
| I have this application that only works with local filedirectories.
| Is it possible to make a symbolic link to a URL (internet location with
| the files I want to display/open) so that I can fake location as being
| local?

No, but you can use FUSE to mount remote filesystem over a number of
protocols. Have a look at the ports sysutils/fusefs-*

|
| Jos

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjJPMwACgkQwMJqmJVx946rhACg356gkM4VkqpxuKQNMyHdXAVC
Q10AoJVHuxCQt6bV3RDXPKhiZGPOqIag
=njcv
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: svgalib-1.4.3_5 is only for i386, while you are running amd64.

2008-09-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Dino Vliet wrote:
| Hi folks,
Hello,

|
| On my adm64 dualcore system running freebsd 7 I want to install
/usr/ports/multmedia/kino. However the port stops because of this:
[snip]
| ===  svgalib-1.4.3_5 is only for i386, while you are running amd64.

| What is wrong here?

You're trying to build a port that is only available on i386 on an amd64
machine.

|
| Brgds
| Dino
|

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkjJU38ACgkQwMJqmJVx944yUwCg1SmMNGGCIJP9rZlgL25Ny7Dh
vckAnjOfgJhfgSWVlhYPA/ilyX37Chkd
=WL8d
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Switching wireless networks: WPA - unencrypted

2008-08-29 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Lars Stokholm wrote:
| I usually use two WPA encrypted wireless networks and I have
| wpa_supplicant.conf set up for that. In rc.conf I have
| ifconfig_ath0=WPA DHCP. It's working fine, but once in a while I
| have to use other, unencrypted networks and that presents a problem.
| How do I connect to these with the least amount of trouble?
|
| Right now it involves commenting out the line in rc.conf, restarting
| netif, manually configuring ifconfig and running dhclient.
|
| Surely there must be a better way to do this...? Preferably it should
| automatically fall back to using unencrypted networks, if no
| configured encrypted networks are available... or something like that.

wpa_supplicant.conf supports WEP and open networks as well:

# WEP network
network={
~   ssid=network_id
~   key_mgmt=NONE
~   wep_tx_keyidx=0
~   wep_key0=WEPKEYHERE
}

# Open network
network={
~   ssid=network_id
~   key_mgmt=NONE
}

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAki32TIACgkQwMJqmJVx947DVwCg26S+ux3hTCMNH5OC8/tzo8HZ
fTsAn1vzTAkt7YqDnOkMiTuKBkA2keE6
=Br3B
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error Compiling linux-nero

2008-08-29 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Warren Liddell wrote:
| Im running AMD64 FreeBSD 7.0-STABLE KDE4 ... Below is error msg
|
|
| ===  Checking if sysutils/linux-nero already installed
| cd /usr/ports/sysutils/linux-nero/work  /usr/bin/find * -type d -exec
| /bin/mkdir -p /compat/linux/{} \;
| cd /usr/ports/sysutils/linux-nero/work  /usr/bin/find * ! -type d |
| /usr/bin/cpio -pm -R root:wheel /compat/linux
| 65489 blocks
| ===   Running linux ldconfig
| /compat/linux/sbin/ldconfig -r /compat/linux
| ELF binary type 3 not known.
| /compat/linux/sbin/ldconfig: 1: Syntax error: ( unexpected
| *** Error code 2
|
| Stop in /usr/ports/sysutils/linux-nero.

Sounds like you don't have the Linux ABI enabled.
Check here:
http://www.freebsd.org/doc/en/books/handbook/linuxemu-lbc-install.html

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAki3+ZEACgkQwMJqmJVx947oZwCdEAyjRwlU/WJNi3SBOlhLr9Ni
+/oAoJ4uYSYN7pG+cl3rx7UCFLAchnta
=ipjC
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Possible hardware damaging bug with halt/reboot!

2008-08-27 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Christopher Joyner wrote:
| I think this thing could break my fan if I left it running.
| The fan gets fast, really fast.  Sounds like it's running faster than
it can handle.
|
| This is using the halt command, during the message that say's,
| HALTED, PRESS ANY KEY TO REBOOT.  (not actual message)
|
| I am still looking in the source code hunting for this.
| I decided it was best to report now.
|
| I have not seen the loop, but adding sleep(1) in the halt loop, such
as a while loop,
| I think that would make it easier on the cpu.  However I do not know
how it works, because I have not seen that source code.

It's at sys/kern/tty_cons.c , line 586 and around.

| In Love in Jesus Christ, Or Lord and Savior.
| For God so loved the world, that he gave his only *begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
| --John 3:16

This problem of yours is not related to FreeBSD. Google for psychosis.

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAki0jnsACgkQwMJqmJVx946d0ACgp3m0BBi+W2b/a7XYbwVRBAj2
ZFkAoORgyiex91TGDWr1eX0MMow/xwaJ
=B0wA
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: flowchart drawing tool for BSD

2008-08-26 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Dánielisz László wrote:
| Anyone know of a good flowchart drawing tool for BSD?
| Something like Visio?

I use devel/bouml graphics/dia and netbeans's integrated UML drawing
tool on a regular basis. If you're already using NetBeans or you plan to
program in Java, then go for it. Otherwise, I would suggest bouml.

| Laci

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkiz7UQACgkQwMJqmJVx945NDACeMAXI1XX4t8l0hhUYZmorilXW
mBYAn2uO54i1lh1Vq+vru1mvLZ4/t2Dm
=RRD3
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Quotas via NFS

2008-08-13 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hello,

the handbook (§18.15.4 Quotas over NFS) doesn't seem to be particularly
clear to me.

Here is the situation:

* HOST_A -- web + db server
~  - /usr is mounted with quotas enabled
~[ /dev/ad0s1e /usr ufs rw,userquota 2 2 ]
~  - /usr/local/www is the www root
~  - /usr/local/www is nullfs mounted on /www
~[ /usr/local/www /www nullfs rw 0 0 ]
~  - /www is NFS exported
~[ /www -alldirs -network=x.x.x.x -mask=y.y.y.y ]
~  - rquotad is enabled
~[ root  inetd  892  5  udp4  *:49598  *:* ]

* HOST_B -- ssh/sftp access for a few owners of a subdomain
~  - each owner has its own www root NFS mounted inside its home
~[ HOST_A:/www/hosts/subdomain on /usr/home/owner/www (nfs) ]

Now my problem is:

on HOST_A:
| sudo quota -u owner
Disk quotas for user owner (uid owner_id):
~ Filesystem   usage   quota   limit   grace   files   quota   limit
~  grace
~   /usr3428  921600 1048576 737   0   0


on HOST_B:
| sudo quota -u owner
Disk quotas for user owner (uid owner_id): none

I think I am missing something on how the quota information is exported
via NFS. What I would like to achieve is to allow owners to check
their own quotas on HOST_A, while they can only directly access HOST_B
via SSH.

Thanks

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkii1dIACgkQwMJqmJVx946XQgCgv8NQQJd9tT/1+617D1TRk168
VZMAoIr4L6qP9aihH0UPUpofH7fmAAoy
=G5KV
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Image metadata - reading writing

2008-07-09 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

David Southwell wrote:
| Hi
|
| Does anyone know of a uitlity that for metatdata stored in raw image
files
| (especially canon *.CR2) would enable me to:
| 1. Read the data from a file
| 2. Write new information into the file

You may want to give graphics/dcraw a try..

|
| I  want to extract the metadata, use it in a mysql database and update
the
| metadata from the mysql database.
|
| Thanks in advance

Hope this helps,

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkh01LUACgkQwMJqmJVx9471pwCgjQZeDf+/VNDYRnEj2+/yVZvo
eZcAoJ5AUq7t2hYY06uJxcCo9XsERJEx
=hDv1
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mod_rewrite / comprehensive redirects

2008-07-04 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Zbigniew Szalbot wrote:
| Hello,
|
| Pietro Cerutti:
| -BEGIN PGP SIGNED MESSAGE-
| Hash: SHA512
|
| Zbigniew Szalbot wrote:
| | Dear all,
| |
| | I know this is not Apache's mailing list, but there are so many experts
| | here that I hope someone can help me. I have the following rule:
| |
| | RewriteRule ^\.*$ /new/index.html
| |
| | This redirects the base domain to a file called index.html in 'new'
| folder.
| |
| | However, what I would really like to achieve is to redirect every php
| | file to /new/index.html, which currently does not work.
| |
| | I tried modifying the rule like this:
| |
| | RewriteRule ^\.php$ /new/index.html
|
| Try with
|
| RewriteRule ^.+\.php$ /new/index.html
|
| (not tested)
|
| Tested and it works. Many thanks!!! :)

Good. You're welcome :)

|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhucX0ACgkQwMJqmJVx944fNQCgsno0O1Bb6otPsvDuOBt+RXTc
OpEAoMlJr7TA8pwp73pS0Xpv9at1d7hC
=VIsb
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: why can't I use $1 in .cshrc ?

2008-06-26 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Juri Mianovich wrote:
| I am trying to use this alias in my root .cshrc file:
|
| grep $1 /some/file
|
| but .cshrc _refuses_ to expand $1 as a proper variable (in this case,
the first argument to the alias...)
|
| I _think_ it's because $1 is being interpreted as a argument to csh
_itself_ when it runs .cshrc ... but maybe I'm wrong.
|
| Anyway, how to make it work ?


Try with \!\!:1

Example:

alias say   echo 'I say \!\!:1'

| say hello
I say hello

|
| Thanks.

You're welcome.

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhjqFkACgkQwMJqmJVx944z4QCeKf5wirL9TOqAy0QhyUt7f0mE
/2AAoJB1nkUYSfd4/QEdmJUEENaUsA12
=zK3x
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cannot get kernel core dump

2008-06-25 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Toomas Aas wrote:
| Hello!
|
| I'm trying to report a problem which involves kernel panic, but I
cannot get a
| core dump. The system is 7.0-STABLE from June 18th.
|
| I've set the following in /etc/rc.conf (and of course rebooted, even
several
| times):
| dumpdev=/dev/ad0s1b
| dumpdir=/home/crash
|
| The machine has 512 MB RAM and swap partition is also 512 MB, but
according to
| dumpon(8) this shouldn't be a problem, because hw.physmem is still
somewhat
| smaller than the swap partition:
|
| bsd# sysctl hw.physmem
| hw.physmem: 527863808
|
| bsd# swapinfo
| Device  1K-blocks UsedAvail Capacity
| /dev/ad0s1b5242880   524288 0%
|
| /home partition, where I've created the crash directory, has 55 GB
free space.
|
| When the machine boots up, it dutifully reports:
| kernel dumps on /dev/ad0s1b
|
| Then I do the thing that causes the panic. System prints the panic
message
| and hangs. Only thing left to do is press the reset button. On next
boot, the
| log says
| savecore: no dumps found
|
| When the system panics and prints the panic message, it doesn't say
anything
| about saving the coredump. I haven't had a kernel panic for a long
time, but
| I seem to remember that in the past there was some kind of message to
that
| effect.
|
| Are there known conditions under which the core dump really isn't
recorded, or
| am I simply missing something obvious?

Yes, if the panic occurs before the filesystem supposed to contain the
crash dumps is mounted. Is it the case?

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhiVTgACgkQwMJqmJVx9454AwCgowIDacy0X33iBwbC0QRVCYjw
zGcAnig8zjnlrq1njlwqO7pJOGIyOV3O
=4wCh
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Opera's javascript time is off

2008-06-24 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Camilo Reyes wrote:
| All, for some reason when javascript posts the current system time inside
| of Opera, it reports it as being off by one hour. For example, when I use
| gmail chat; the time is off by one hour. Any reason that could be causing
| this odd behaviour? I've looked around the Opera site and there is nothing
| mentioned there; it's as if the javascript was using the wrong time zone.

Is your timezone UTC+1 or UTC-1? I see the same behavior here.
It seems that getTimezoneOffset() has a problem with Opera.

Try this out:
script language=JavaScript
~var d = new Date();
~document.write(d.getHours() + : + d.getMinutes() + : +
d.getSeconds());
~document.write(br/Offset:  + d.getTimezoneOffset() / 120);
/script

In Firefox:
9:36:32
Offset: -1

In Opera:
7:36:18
Offset: 0

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhgpHsACgkQwMJqmJVx946cBgCg2ZT1dam3MLJUGt7w4OZDrKwR
wEkAoKyNEPV2c4nRNViueIZ6TaQzq/Li
=ZQ2E
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: core Dumb during CVSUP

2008-06-24 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Warren Liddell wrote:
| Subject: core Dumb during CVSUP

http://www.prodigio.it/5/linguasegni.gif

Sorry, couldn't resist :)

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhg44EACgkQwMJqmJVx9464pgCfbaHdN1EHy6Xmk4V4wpogZzpP
WXwAn28hh7qNohqMHESlODtk8rzv96d9
=cpvU
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with IF_RE

2008-06-23 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

[EMAIL PROTECTED] wrote:
| Dear List Members
|
| I am having an issue with a RealTek card for networking. The card in
| question is recognised by FB alright, as you can see in the pciconf output
|
| [EMAIL PROTECTED]:2:8:0: class=0x02 card=0x311a1385 chip=0x816910ec 
rev=0x10
| hdr=0x00
| vendor = 'Realtek Semiconductor'
| device = 'RTL8110SB Single-Chip Gigabit LOM Ethernet Controller'
| class  = network
| subclass   = ethernet
|
| But when I do an ifconfig, the result says Media None and No Carrier
|
| re0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
| options=9bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM
| ether 00:1e:2a:3b:2e:62
| inet x.x.x.x netmask 0xffe0 broadcast x.x.x.x
| media: Ethernet none
| status: no carrier
|
| I know for a fact that the cable and the connection is alright -- I
| tried with other devices (like Laptops and other desktops), and when I
| plug the cable into the RTL card, the light on the switch shows
| connection established.
|
| But ifconfig report shows no carrier ? ? ?
|
| Any and all help is highly appreciated. I have already CVSupped twice
| within this week and built world and kernels from scratch as well.
|
| uname -a
| FreeBSD  7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #3: Thu Jun 12
| 15:24:40 BST 2008
|
|
| kldstat
| Id Refs AddressSize Name
|  1   18 0xc040 7bdce8   kernel
|  22 0xc0bbe000 28588linux.ko
|  31 0xc0be7000 7558c4   nvidia.ko
|  41 0xc133d000 7a88 if_re.ko
|  51 0xc1345000 6921cacpi.ko
|  61 0xc35c5000 4000 nullfs.ko
|  71 0xc4623000 1e000smbfs.ko
|  82 0xc4641000 3000 libiconv.ko
|  92 0xc4644000 3000 libmchain.ko
|
|
| All practical suggestions and pointers are highly appreciated.

Uhm, just out of curiosity, do you have the line

devd_enable=YES

in your /etc/rc.conf?

|
| Thanks.



- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhfxiEACgkQwMJqmJVx944h4ACfc4u1o3BPX8BgSicgp65VPVvy
hEIAoKgO0TBnyCSsPJN7jkOh/qWy3NKx
=inAk
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with IF_RE

2008-06-23 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

[EMAIL PROTECTED] wrote:
| Quoting Pietro Cerutti [EMAIL PROTECTED]:
|
|
| Uhm, just out of curiosity, do you have the line
|
| devd_enable=YES
|
| in your /etc/rc.conf?
|
| |
| | Thanks.
|
|
|
| No, I do not have it. Do you suppose I should? I have other devices and
| nodes coming up alright -- including mapping for different loopback
| devices as well.

Well, the os doesn't receive link up notifications from the interface..
I fear is not as simple as devd, but you can't give it a try, it won't
hurt...

|
| Thanks
|
|
|
| -
| This message sent through Virus Free Email
| http://www.vfemail.net
|
|
|
| ___
| freebsd-questions@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
| [EMAIL PROTECTED]


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhf+xAACgkQwMJqmJVx947UQgCgwHZeyBuT+kb8ADUlm3hvj+vJ
AysAmwdoXhTOgR/tIWgvxbWVe+7oQw4c
=SXKs
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New to FreeBSD

2008-06-20 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

[EMAIL PROTECTED] wrote:
| On Fri, Jun 20, 2008 at 06:35:26PM +0530, nerd fan wrote:
| Hello Every body,
|
| I am a FreeBSD newbie, want to get started with BSD and have fun. Reading
| Complete FreeBSD book. Interested in who uses FreeBSD and in what way
| FreeBSD is better than Linux for servers.
|
|
| Started having fun with FreeBSD 7.. Thanks for your responses.
|
| ~ Sundar ~
|
| Two other handy FreeBSD books:
|
| BSD Hacks
| The Best of FreeBSD Basics
|
| both by Dru Lavigne


I would like to add the invaluable

Absolute BSD, by fellow Michael W. Lucas

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhbs94ACgkQwMJqmJVx944fjQCfbS0uiokdyb1kkGns7jToKqtj
bFsAn3RReohD7HfH6fdDzACqg1CPN4Xm
=NgNF
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: New to FreeBSD

2008-06-20 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Chess Griffin wrote:
| Pietro Cerutti wrote:
|
| I would like to add the invaluable
|
| Absolute BSD, by fellow Michael W. Lucas
|
|
| There is actually a new version of Michael's book with a slightly
| different title:  Absolute FreeBSD, 2nd Edition by No Starch Press
| released just a couple of months ago.  It's a really great book and I
| highly recommend it.
|

Oh I've missed that! Thanks!


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhbt0YACgkQwMJqmJVx9444hwCg1/bFAtygW59d9PP2VfNrpjH0
agwAnj9nAbvXdaxl2a83FAV1E8xmwFqj
=E2FP
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ACPI CA Embedded Controller (EC) error messages MSI notebook

2008-06-20 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Alexander Sack wrote:
|
|
| Pietro Cerutti-4 wrote:
| -BEGIN PGP SIGNED MESSAGE-
| Hash: SHA512
|
| Alexander Sack wrote:
| | Hello Folks:
| |
| | I have a MSI-1710A (Megabook) which is Athlon X2 Turon based
| | notebook (4GB RAM,
| |
| | Anyway during a 7.0-RELEASE-amd64 boot up I see:
| |
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (evregion-0427): No handler for Region [EC__]
| | (0xff00011cf680) [EmbeddedControl] [20070320]
| | ACPI Error (exfldio-0390): Region EmbeddedControl(3) has no handler
| [20070320]
| | ACPI Error (psparse-0626): Method parse/execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| | ACPI Error (uteval-0309): Method execution failed
| | [\\_SB_.PCI0.SBRG.EC__.BAT1._STA] (Node 0xff00011d24c0),
| | AE_NOT_EXIST
| |
| | After looking at my ASL code, I noticed that YES this code was
| | generated by the MSFT devkit which means its probably NOT spec
| | compliant.
| |
| | RSDT: Length=64, Revision=1, Checksum=83,
| | OEMID=MSI_NB, OEM Table ID=MEGABOOK, OEM Revision=0x7000725,
| | Creator ID=MSFT, Creator Revision=0x97
| | Entries={ 0xcffc0200, 0xcffc0390, 0xcffc03f0, 0xcffc0430,
| | 0xcffce040, 0xcffc42f0, 0xcffc4330 }
| |
| | The pertinent section (DSDT) condensed is:
| |
| | _SB.PCI0.SBRG:
| |
| | Device (EC) {
| |   Device (BAT1) {
| | Name (_HID, EisaId (PNP0C0A))
| | Name (_UID, One)
| | Name (_PCL, Package (0x01)
| | {
| |   _SB
| | })
| | Method (_STA, 0, NotSerialized)
| | {
| |If (MYEC)
| |{
| |   If (MBTS)
| |   {
| |   Return (0x1F)
| |   }
| |   Else
| |   {
| |   Return (0x0F)
| |   }
| |}
| |Else
| |{
| |   Return (0x0F)
| |}
| | }
| | }
| |
| | I've read http://www.freebsd.org/doc/en

Re: What would it take to be mentored here?

2008-06-17 Thread Pietro Cerutti
 specific
| examples of the kind of work performed by mentored students, in order
| to have more crystallized goals towards which to focus my effort and
| studies.
|
| Thanks a lot,
|
|
| Jonathan Curtis
| ___
| freebsd-questions@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
[EMAIL PROTECTED]


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhXllMACgkQwMJqmJVx947rXgCeMFcB/5fSgJWpM/grilLWZ/IB
0CcAoMLy+hWt7u9j6eV4Iakpe5P+ua8p
=PTvb
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mapserver

2008-06-16 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Aguiar Magalhaes wrote:
| Hi list,
|
| I was compiling the /usr/ports/graphics/mapserver on free 7 and I've
received the message:
|
| ===   Compressing manual pages for gdal-1.5.0
| ===   Running ldconfig
| /sbin/ldconfig -m /usr/local/lib
| ===   Registering installation for gdal-1.5.0
| ===   Returning to build of mapserver-5.0.2
| Error: shared library gdal.12 does not exist
| *** Error code 1
|
| Stop in /usr/ports/graphics/mapserver.
| *** Error code 1
|
| How can i fix it ?

The version of GDAL's shared library has bumped.
Modify gdal.12 with gdal.13 in the port's Makefile, at line 70.

You may want to submit a PR with your changes :)

|
| Thanks,
|
| Aguiar
|
|
|
|
|   Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
armazenamento!
| http://br.mail.yahoo.com/
| ___
| freebsd-questions@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
[EMAIL PROTECTED]


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhW4egACgkQwMJqmJVx945tzgCfQ/XEfMEKY8wkVZ+8NsMuAkQ8
194AoLmuYcBHqNDZ7E3JtOD0oGeoNbMu
=3Rf6
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Nanobsd on a CD-ROM

2008-06-12 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

J. Porter Clark wrote:
| Is it possible to build a CD-ROM with a bootable NanoBSD on it?
| If so, how?
|

Yes, Section 2.2 of

http://www.freebsd.org/doc/en/articles/nanobsd/index.html

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhRNVgACgkQwMJqmJVx9464GACffZgUQfMvugbKkIqSwifTcZRY
wssAn21f0/DRX+ooPdHRvDNWHcA+AXVb
=JElR
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Nanobsd on a CD-ROM

2008-06-12 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

J. Porter Clark wrote:
| On Thu, Jun 12, 2008 at 04:40:25PM +0200, Pietro Cerutti wrote:
| J. Porter Clark wrote:
| | Is it possible to build a CD-ROM with a bootable NanoBSD on it?
| | If so, how?
|
| Yes, Section 2.2 of
|
| http://www.freebsd.org/doc/en/articles/nanobsd/index.html
|
| Well, no, because I can't do this:
|
|   # dd if=_.disk.full of=/dev/acd0 bs=64k
|
| If I do this:
|
|   % cdrecord -v -immed driveropts=burnfree dev=1,0,0 -data _.disk.full

Try with burncd

| burncd -f /dev/acd0 data _.disk.full fixate

|
| then try to boot the machine from the CD-R, I get a - cursor
| for a second or two, then it switches over to the hard disks to
| boot from.
|
| Okay, it's possible I messed up the compilation options or
| something.  Is the cdrecord command above the correct procedure
| to use to build a bootable nanobsd CD-R?
|


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhRVNQACgkQwMJqmJVx945fSwCg0AmvDiM+ygiTun1hbqAY4n2d
DtAAn0avabwFvirbzBwMF2lfn1/CTnng
=RZKx
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Wojciech Puchar wrote:
| tired of a dual-boot system, so I want to just install FreeBSD or
| another linux distribution(maybe ubuntu) on my notebook.
|
| My questions are:
| 1) Can FreeBSD work well with my hardware? The display card,
| CDRW/DVDRW, wireless, Ethernet and battery managment are the most
| important.
|
| not sure about display card. but everything else should be OK. it's
| IBM/Lenovo :)

nVIDIA drivers should support it:

http://www.nvidia.com/object/freebsd_100.14.09.html

|
| 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux
| Binary Compatibility, it seems that FreeBSD lacks support of many
| commercial softwares such as MATLAB, Oracle, Mathematica. Is the linux
| binary compatibility stable enough for work ?

Linux emulation is stable enough, I would say. I've used it to run
Mathematica 5 in the past (see handbook).


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhP/hsACgkQwMJqmJVx944oCQCfQN+mHM2k7RbGnQ45HW8qs/U+
9aQAoN9vDKMqI8DoZAG3tJaJ0YefjX6b
=x7TD
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-11 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Pietro Cerutti wrote:
| Wojciech Puchar wrote:
| | tired of a dual-boot system, so I want to just install FreeBSD or
| | another linux distribution(maybe ubuntu) on my notebook.
| |
| | My questions are:
| | 1) Can FreeBSD work well with my hardware? The display card,
| | CDRW/DVDRW, wireless, Ethernet and battery managment are the most
| | important.
| |
| | not sure about display card. but everything else should be OK. it's
| | IBM/Lenovo :)
|
| nVIDIA drivers should support it:
|
| http://www.nvidia.com/object/freebsd_100.14.09.html

err, this is the most up to date :)

http://www.nvidia.com/object/freebsd_173.14.05.html
|
| |
| | 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux
| | Binary Compatibility, it seems that FreeBSD lacks support of many
| | commercial softwares such as MATLAB, Oracle, Mathematica. Is the linux
| | binary compatibility stable enough for work ?
|
| Linux emulation is stable enough, I would say. I've used it to run
| Mathematica 5 in the past (see handbook).
|
|
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhP/yQACgkQwMJqmJVx947A5gCfQ79JCQT/Ms/NhUi5J7zsi/dd
XKYAni1WDmassbnMg5H+Vj9xZPn87Dug
=0Vzp
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Source directory of libm.so?

2008-06-10 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Unga wrote:
| --- On Tue, 6/10/08, Giorgos Keramidas [EMAIL PROTECTED] wrote:
|
| From: Giorgos Keramidas [EMAIL PROTECTED]
| Subject: Re: Source directory of libm.so?
| To: freebsd-questions@freebsd.org
| Date: Tuesday, June 10, 2008, 12:19 PM
| On Mon, 9 Jun 2008 21:02:52 -0700 (PDT), Unga
| [EMAIL PROTECTED] wrote:
| Hi all
| Where is the source directory of /lib/libm.so.x in
| /usr/src/?
| grep -lr LIB=m /usr/src/ does not show any result.
| Try using a few spaces or TABs around '=' :)
|
| The directory you want is `/usr/src/lib/msun'.
|
|
| OK :) thanks for the reply.
|
| Btw, is it a mistake a tab before the m in the Makefile or is it
intentional?

It's quite usual in Makefiles to put tabs after the variable name in
assignment.

|
| /usr/src/lib/msun/Makefile
| LIB=m
|
| Regards
| Unga
|
|
|
| ___
| freebsd-questions@freebsd.org mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
[EMAIL PROTECTED]


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhOMhgACgkQwMJqmJVx945g4wCgheyhHG7RvvQcFdVDxGr3WfNc
efQAnR6RAt1qaFJJFzdDASevBopXF+S+
=yKfE
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Not possible to install KDE 3.5.8 and Apache 2.2 together?

2008-06-10 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Stevan Tiefert wrote:
| Hello,
|
| when I want to install www/apache22 then following
| error appears:
|
| beastie# make install clean
| ===  Installing for apache-2.2.8
|
| ===  apache-2.2.8 conflicts with installed
| package(s):
|   apr-db42-1.2.8_2

Please configure apache to use the APR version coming from ports.
You can do that by making

$ make config

in www/apache22

and selecting the first option (APR_FROM_PORTS)


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhOUSwACgkQwMJqmJVx944V9ACgvm+XzdCNArCDWs5RUXXZE64J
X3wAoK9iLHidFIEF+np3Rsb5DsWzdDnw
=B7c2
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Memory Limits

2008-06-10 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Rahul wrote:
| Hello,
|
| I'm new to FreeBSD and really attracted to it because of the
| performance and stability it provides. So I am looking to develop a
| high performance system that may need to process over 100K UDP
| messages per second and be able to store information quickly. I
| couldn't find much documentation on the memory limits in FreeBSD,
| especially per-process limits in both 32-bit and 64-bit versions.
| Could you please point me to where I can find such information along
| with other performance tuning tips and characteristics of the OS to
| keep in mind?

The first ones coming to my mind are getrlimit(2) + relatives and
tuning(7)...

Hope this helps, have fun :)

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhOT/IACgkQwMJqmJVx944ctwCgt66ZyOstY6TNEY7PyJmrtQe+
gs8An1RTiZ0lYoORBNhbhl7umn/VvoTV
=ZuJr
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: libcdio upgrade problems

2008-06-10 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Dr. Jennifer Nussbaum wrote:
|
| Lowell Gilbert [EMAIL PROTECTED] wrote: Dr.
Jennifer Nussbaum  writes:
|
| Im trying to upgrade some ports, and have a problem with libcdio. At
least i
| think i do.
|
| When i try to upgrade, say, Nautilus (or a buncha other things), it
dies in the
| end with a libcdio-0.78.2_2 is already installed. You may wish to
make deinstall
| etc. message.
|
| But i did go to /usr/ports/sysytils/libcdio and make deinstall and
make reinstall,
| and this was successful. I sync'd the ports collection again, but no
luck. Nothing
| in UPDATING about this.
|
| Sounds like the dependencies are confused.  pkgdb(1) may help with
| that.  If not, the brute force approach would be to remove the
| affected ports all the way back to (and including) libcdio, and build
| them over.
| I havent been able to figure out how to fix things with pkgdb. And i
have tried, over and over, to remove the affected ports and build them
from scratch but it hasnt been working.
|
| So i went to libcdio and did a make deinstall, deleted the work files,
and did a make install clean, and it installed fine. Then i tried to
build gvfs, also by doing a make install clean, and it died in the same
way--telling me to make deinstall and make reinstall of libcdio.
|
| Ive tried this several times with no luck. If theres an even more
brute force way id like to know what it is so i can do that. This is
preventing a lot of other upgrades to GNOME, which i need.

Not to point out the obvious, but you're sure your port tree is up-to-date?

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


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhOjCcACgkQwMJqmJVx944niQCeMNdtOQOfePqCiys0RFK1xg20
nnMAnRpHOqMO4BiSTpO+KY5ZBuRPT1Ok
=nNAK
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remind me which filesystems exactly can be background fscked?

2008-06-10 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Martin Cracauer wrote:
| I'll have to repartition my 6.3 notebook anyway.  Can you remind me
| which filesystems I can have background fsck on? My current single
| filesystem install checks it in foreground.
|
| If I have a separate /boot, would / be background fscked?
|
| Or is the root filesystem always foreground checked?

AFAIK, UFS supports background checks as long as the fstab entries don't
include the async option.

|
| Thanks
|   Martin


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkhO95oACgkQwMJqmJVx944NIgCgq5YbyF9PmhQqVfLf7LqpKaT2
lUMAn0DKKhRZvAD15vs8vf2nCj3scg7X
=bcAh
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to delete One line on tcsh history....??

2008-05-15 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Agus wrote:
| Hi guys,
|
| I've been trying to delete one line from my user tcsh history cause i
made a
| su and it seems didnt hit enter very well so i typed the password on the
| console...Now anyone that can look my history will see my pass...
|
| I tried to edit and delete a few lines but it all comes againtried
| history clear but when i login again it apperas all again..hehe...
| Its so secure and cool tcsh taht i have no idea how to do it...been a bash
| user...

You can clear your history (the whole history will be lost!!) by
| history -c

No clue whether you can remove a single line..

| Cheers and thanks,
| Agustin

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkgssGYACgkQwMJqmJVx944nJwCeNA0pEAxNW2MAa+p09T61ZIuy
LnEAoJSvP23/4hTq3iDW0xf/tGmfNfTS
=xmcm
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using flags with portinstall of apache?

2008-04-16 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Dr. Jennifer Nussbaum wrote:

| Well thats just the thing- i somehow got SSL installed
| the first time, and it installs now, but its the
| proxy modules that arent installing now.

it's WITH_PROXY, not WITH_PROXY_MODULE. Check Makfile.options.

|
| Jen

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkgGH8gACgkQwMJqmJVx947vMQCeOIXd9OXm7AUZe0Bo/Cgl9rxy
2PEAn1p2kK2D/9wXyaFPC22d8hZomPxm
=Ho/Q
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using flags with portinstall of apache?

2008-04-16 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Dr. Jennifer Nussbaum wrote:
| In any case, after repeatedly trying and re-trying,
| one of my attempts just worked :-)

Sure your machine is fooling you :)

| Jen

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkgGMwAACgkQwMJqmJVx946ZVgCgwBDbYKSqiUin1PN69R1gkIA8
idgAoL2NApwusRGjfc2DTbguSRXW/l3G
=k6KQ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Removing aliases removes primary IP

2008-03-20 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Spil Oss wrote:
| Dear all,
|
| Today I removed all aliases on my internal NIC and loopback, which
| resulted in losing the primary ip-address. What am I missing!

|
| # ifconfig xl0 alias 172.17.2.3 delete
| # ifconfig xl0 alias 172.17.2.4 delete
| # ifconfig xl0 alias 172.17.2.5 delete
| # ifconfig lo0 alias 127.0.0.2 delete
| # ifconfig lo0 alias 127.0.0.3 delete

What you are doing here is:
1) you create an alias (which already exists) with the 'alias' argument
2) you remove an alias which the 'delete' argument. Since you don't
specify which alias to be removed, the lowest IP number is removed. In
your case, the lowest IP number happens to be your primary :-)

You may want to use the '-alias' command line option to remove an alias:
# ifconfig xl0 -alias 172.17.2.3

| Kind regards,

Hope this helps,

| Spil.




- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfmZs4ACgkQwMJqmJVx945NsgCg4jfR8JuKsOnGqirAmclnGM80
8Y0AoKeK+mWCGtkniIko2rJlF8UX0EDI
=vMXT
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Removing aliases removes primary IP

2008-03-20 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Pietro Cerutti wrote:

| 2) you remove an alias which the 'delete' argument. Since you don't
| specify which alias to be removed, the lowest IP number is removed. In
| your case, the lowest IP number happens to be your primary :-)

Maybe someone with a doc@ commit bit could commit the following patch,
since this behavior is not documented in ifconfig(8).

- --- ifconfig.8.orig 2008-03-20 15:34:17.0 +0100
+++ ifconfig.8  2008-03-20 15:34:43.0 +0100
@@ -205,7 +205,8 @@
~ .Li 0x
~ is most appropriate.
~ .It Fl alias
- -Remove the network address specified.
+Remove the network address specified, or the one with the lowest
+value if none is specified.
~ This would be used if you incorrectly specified an alias, or it
~ was no longer needed.
~ If you have incorrectly set an NS address having the side effect

- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfidl0ACgkQwMJqmJVx9456FgCaAlczsQ9UauMWPz690OtFc17H
oM4AnjiOmr/jykJciNsC7i8d6Hzbcm8t
=DBmc
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question about wpa and ifconfig scan

2008-03-06 Thread Pietro Cerutti

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

sung.park wrote:
| Hello,

Hello,

| The client box has solid connection until I type
| Ifconfig ath0 scan
| After scan all of access point it lose connection from access point.  Is
| there any way to prohibit losing connection after scan?

I think this is the expected behavior unless your hw supports background
scanning (try ifconfig ath0 bgscan, if it gives SIOCS80211: Invalid
argument then it doesn't :-).

You can use
ifconfig ath0 list scan
to get the latest scan result without initiating a new scan.

Note that the 'scan' command given as non-root user is the same as the
list scan -- a normal user won't be able to cause the disconnection by
issuing a 'scan' command.

| Thanks

Hope this helps,


- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfQLQ8ACgkQwMJqmJVx945/KQCgiKhY1VKAw6KQ89mGpmZeGe8Q
bv8An1692foO275N62j5z3hzAnbc1EH8
=8AVg
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Space needed on device

2008-03-05 Thread Pietro Cerutti
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

bsd wrote:
 Hello,
 
 After an update I have little space left on the / device
 
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/ar0s1a3.8G3.1G414M88%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/ar0s1d 60G2.2G 53G 4%/home

Given your current partition setup, I would consider backing up your
data and re-partition your system in a some more smart way ;-)

Follow the hints in the handbook:
http://www.freebsd.org/doc/fr_FR.ISO8859-1/books/handbook/install-steps.html


 I wanted to know if I can safely delete /usr/local/etc/cvsup/sup

I don't know if it would bring you much.. Such a directory weights 50MB
on my system..

 Are there any other file I should be removing ?

Yes, you can remove /usr/obj ...

 Thanks for your support.

Hope this helps,

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


- --
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHzp8rwMJqmJVx944RAsquAKDCE4BArzVVZRRZrHmkqgtjqTbPlQCdGudr
T4hfcZD1cqhAiOjmvYV+8JA=
=B5om
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port 915resolution - why i386 only

2008-02-27 Thread Pietro Cerutti
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Steve Franks wrote:
 Incidentally, if you hack the i386 only line out of the makefile, it
 builds and works just fine on my system (7.0RC2/amd64)

mind to send in a PR?

Thank you!

 
 Steve



- --
Pietro Cerutti
[EMAIL PROTECTED]

PGP Public Key:
http://gahr.ch/pgp

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (FreeBSD)

iEYEAREKAAYFAkfFuQ4ACgkQwMJqmJVx947mwQCfZLDbwft/Jr8E/0Zz+aPHU7fd
14oAoKPiGAcca4oaw4sPVxkV6M3HCzGl
=T5t3
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: version of syslogd

2008-02-19 Thread Pietro Cerutti
brom wrote:
 Hello,
 
 I have a short question, how I can determinate version of syslogd?
 FreeBSD 6.2

By looking at the source code, just below the copyright note:

http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/syslogd/syslogd.c?rev=1.144.2.3;content-type=text%2Fx-cvsweb-markup;only_with_tag=RELENG_6_2

 
 I need version for resolve some issues.
 Thanks in advance!

Hope this helps,


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Shell scripting question - incrementing

2008-02-19 Thread Pietro Cerutti
Paul Schmehl wrote:
 I could do this in perl easily, but I'm trying to force myself to learn
 shell scripting better.  :-)
 
 I'm parsing a file to extract some elements from it, then writing the
 results, embeded in long strings, into an output file.
 
 Here's the script:
 
 cat file.1 | cut -d',' -f9 | sort | uniq  file.nicks
 
 (read line; echo alert ip \$HOME_NET any - \$EXTERNAL_NET any
 (msg:\JOIN $line detected\; classtype:trojan-activity;
 content:\JOIN\; content:$line; sid:201; rev:1;); while read line;
 do echo alert ip \$HOME_NET any - \$EXTERNAL_NET any (msg:\JOIN $line
 detected\; classtype:trojan-activity; content:\JOIN\; content:$line;
 sid:201; rev:1;); done)  file.nicks  file.rules
 
 The result is a file with a bunch of snort rules in it (I can't provide
 the actual data because it's sensitive.)
 
 The rules look like this:
 alert ip $HOME_NET any - $EXTERNAL_NET any (msg:JOIN channel
 detected; classtype:trojan-activity; content:JOIN; content:channel;
 sid:201; rev:1;)
 alert ip $HOME_NET any - $EXTERNAL_NET any (msg:JOIN channel2
 detected; classtype:trojan-activity; content:JOIN;
 content:channel2; sid:201; rev:1;)
 
 Once this file is created (or ideally *while* it's being created!) I
 need to increment the sid numbers.  The first one is 201.  The
 second needs to be 202, and so forth.   I don't know the total
 number of lines ahead of time, but it's easy enough to get after the
 file is created.  (wc -l file.rules | awk '{print $1}')
 
 Is there a way to do this in shell scripting?  In perl I'd use a for
 loop and vars, but I'm not sure how to solve this problem in shell
 scripting.
 
 In pseudo code I would do:
 
 COUNT=`wc -l file.rules | awk '{print $1}'`
 LAST_SID=$((200 + COUNT))
 for (i=201; i = ${LAST_SID}; i++) {
sed 's/201/${i}/g  file.rules  rules.new'
 }
 

for i in `jot $COUNT 201`; do
  # foo bar
done


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: cp -p

2008-02-08 Thread Pietro Cerutti
Jonathan McKeown wrote:
 On Thursday 07 February 2008 20:07, Pietro Cerutti wrote:
 
 HostServer exports via NFS /www, which belongs to user:www
 (uid=1001, gid=80). The directory has the segid flag set:

 drwsr-xr-x  13 user www 512 Feb 7 00:58 www

 HostClient mounts the exported directory on /share/www. HostClient
 doesn't know anything about gid 80.

 Now, on HostClient, user copies aFile to /share/www using the -p flag of
 cp(1).

 cp -p aFile /share/www/
 ls -l
 -rw---  1 user user  2981888 Feb  7 01:09 /www/aFile

 As shown, the setgid flag of /www hasn't worked.
 
 Hang on - you asked cp to preserve the user and group ownership of the file 
 (cp -p). As far as I can see, it's done what you asked it to. I would regard 
 any other result as violating the Principle of Least Astonishment.

You are right. I thought that the setgid of the destination directory
had priority over the -p. If it's not the case, then this means that
mv(1) cannot be used across filesystems when one wants to ensure that
the setgid of the target directory does what it's supposed to do. From
man mv(1):

As the rename(2) call does not work across file systems, mv uses cp(1)
and rm(1) to accomplish the move.  The effect is equivalent to:

   rm -f destination_path  \
   cp -pRP source_file destination  \
   rm -rf source_file


Note that mv invokes cp with the -p option. Is there any way to prevent
that?

 Jonathan


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


rename and chmod (was: cp -p)

2008-02-08 Thread Pietro Cerutti
Ok, my view is getting clearer ;-)


my problem in understanding the semantics of mv, cp -p and the rename(2)
function seems to be related to the terminology used in chmod(1) man page.

This is the explanation of setuid (the same holds for setgid):

Directories with this bit set will force all files and subdirectories
created in them to be owned by the directory owner and not by the uid of
the creating process, if the underlying file system supports this feature

Now, from a logical point of view, why moving a file into a directory
doesn't fall into the created into them case?


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: rename and chmod (was: cp -p)

2008-02-08 Thread Pietro Cerutti
Wouter Oosterveld wrote:
 Now, from a logical point of view, why moving a file into a directory
 doesn't fall into the created into them case?
 
 Because (if on the same filesystem) you don't create a new file. You
 just link the file in the destination dir and unlink the file from the
 source dir.

Exactly. But from a /*logical*/ point of view, shouldn't this case be
treated /*as if*/ the file was created inside the target directory?

 
 Regards,
 
 Wouter


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: cp -p

2008-02-07 Thread Pietro Cerutti
Chuck Swiger wrote:
 On Feb 7, 2008, at 10:42 AM, Pietro Cerutti wrote:
 From HostClient:

 ls -al /share/
 drwxr-sr-x  4 User   www   512 Feb  7 19:23 www

 touch /share/www/foo
 ls -l /share/www/foo
 -rw-r-  1 user  www  0 Feb  7 19:39 /share/www/foo

 (group id works)
 
 Right, this is the BSD setgid semantics one would expect.
 
 touch bar
 ls -l bar
 -rw-r-  1 user  user  0 Feb  7 19:40 bar

 mv bar /share/www/
 ls -l /share/www/bar
 -rw-r-  1 user  user  0 Feb  7 19:40 /share/www/bar

 Shouldn't it be www?
 
 Does the remote system used here implement the BSD semantics?  If it
 does, I would expect this to work; if it doesn't, then no, I wouldn't
 expect it to work.
 

Yes, it runs 6.3-RELEASE.. maybe it's NFS-related?


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: cp -p

2008-02-07 Thread Pietro Cerutti
Pietro Cerutti wrote:
 Chuck Swiger wrote:
 On Feb 7, 2008, at 10:07 AM, Pietro Cerutti wrote:
 here's the situation:

 HostServer exports via NFS /www, which belongs to user:www
 (uid=1001, gid=80). The directory has the segid flag set:

 drwsr-xr-x  13 user www 512 Feb 7 00:58 www
 Umm, that directory you show has the setuid bit set, not setgid!
 If you do a chmod g+s www you'll get drwxr-sr-x permissions.

 
 :-( me idiot!

Me idiot. But it doesn't still work as I expect:

From HostClient:

 ls -al /share/
drwxr-sr-x  4 User   www   512 Feb  7 19:23 www

 touch /share/www/foo
 ls -l /share/www/foo
-rw-r-  1 user  www  0 Feb  7 19:39 /share/www/foo

(group id works)

 touch bar
 ls -l bar
-rw-r-  1 user  user  0 Feb  7 19:40 bar

 mv bar /share/www/
 ls -l /share/www/bar
-rw-r-  1 user  user  0 Feb  7 19:40 /share/www/bar


Shouldn't it be www?

 
 Thanks!
 

I repeat myself..


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: cp -p

2008-02-07 Thread Pietro Cerutti
Chuck Swiger wrote:
 On Feb 7, 2008, at 10:07 AM, Pietro Cerutti wrote:
 here's the situation:

 HostServer exports via NFS /www, which belongs to user:www
 (uid=1001, gid=80). The directory has the segid flag set:

 drwsr-xr-x  13 user www 512 Feb 7 00:58 www
 
 Umm, that directory you show has the setuid bit set, not setgid!
 If you do a chmod g+s www you'll get drwxr-sr-x permissions.
 

:-( me idiot!

Thanks!

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


cp -p

2008-02-07 Thread Pietro Cerutti
Hi list,

here's the situation:

HostServer exports via NFS /www, which belongs to user:www
(uid=1001, gid=80). The directory has the segid flag set:

drwsr-xr-x  13 user www 512 Feb 7 00:58 www

HostClient mounts the exported directory on /share/www. HostClient
doesn't know anything about gid 80.

Now, on HostClient, user copies aFile to /share/www using the -p flag of
cp(1).

 cp -p aFile /share/www/
 ls -l
-rw---  1 user user  2981888 Feb  7 01:09 /www/aFile

As shown, the setgid flag of /www hasn't worked.

Now in man cp, I can read the following:

If the source file has its set-user-ID bit on and the user ID cannot be
preserved, the set-user-ID bit is not preserved in the copy's
permissions.  If the source file has its set-group-ID bit on and the
group ID cannot be preserved, the set-group-ID bit is not preserved in
the copy's permissions. If the source file has both its set-user-ID and
set-group-ID bits on, and either the user ID or group ID cannot be
preserved, neither the set-user-ID nor set-group-ID bits are preserved
in the copy's permissions.

I cannot find anywhere information such as If the /*destination*/ file
directory has its set-group-ID bit on and the group-ID cannot be
preserved, the set-group-ID bit is not preserved in the copy's permissions.

Assuming that this is the correct and expected behavior, why is it like
this?

Thank you,


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: script to be executed on system startup.

2008-02-06 Thread Pietro Cerutti
navneet Upadhyay wrote:
 Hi,

Hello,

   I have a script file, i want that script to be executed on system
 startup.
 
  I am doing this on Linux in following two steps : -
 
 1. Copying the script to /etc/rc.d directory.
 2. /sbin/chkconfig --add scriptname
 
 
 I want to achieve the same on FreeBSD
 
 chckconfig file is not present, documentation says i have to add it to
 rc.conf file.
 
 How can i add it to rc.conf file, is there any command?

you just edit rc.conf and you add a line in the form

your_script_name_enable=YES

Then you place the script your_script_name in /usr/local/etc/rc.d

at the bottom of the rc(8) man page there are a few examples on how to
build such a script.

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: OT: Whats wrong with gmail?

2008-02-06 Thread Pietro Cerutti
Wojciech Puchar wrote:
 I was prompted by a comment in another thread about gmail; and other
 than the absolutely annoying way it quotes,  what is wrong with gmail?

 
 think other way.
 
 imagine you have service with 5000 mail account.
 
 would it be worth for you of extra work of writing all user data,
 analyzing it, storing forever? i don't think so.
 
 now imagine you provide 5 mail accounts. no things are different.
 
 you can get billions storing everything and closely working with
 government, and even privates - selling the data raw or processed.
 
 of course not officially, but when talking billions of $ such things, or
 honesty, truth etc. turns to who cares.
 
 
 so stay away from ANY services that large. not just gmail, not just mail
 services at all.

Someone's over-paranoid in here... spy satellites, providers selling
sensitive data, neighbors staring at your wife undressing while you're
at work... who cares?

Just my 2cents to decrease SNR even more...


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Can't mount iPod Nano 3rd Gen on 6.3

2008-01-31 Thread Pietro Cerutti
Alphons Fonz van Werven wrote:
 Rob Messick wrote:
 
 When I plug it in:

 umass0: Apple Inc. iPod, rev 2.00/0.01, addr 2
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: Apple iPod 1.62 Removable Direct Access SCSI-0 device
 da0: 40.000MB/s transfers
 da0: 7583MB (1941441 4096 byte sectors: 255H 63S/T 120C)
 
 I have another MP3 player, not an Ipod. But for me, it works to mount
 /dev/da0sX instead of /dev/da0 (X is usually 1).

Sometimes it's even not enough, in my case:

# ls /dev/da1*
/dev/da1

# mount_msdosfs /dev/da1 /mnt/tmp/
mount_msdosfs: /dev/da1: : Invalid argument

# ls /dev/da1*
/dev/da1/dev/da1s1

# mount_msdosfs /dev/da1s1 /mnt/tmp/
#

Slice one doesn't appear until you try to access da1...


 
 HTH,
 
 Alphons
 


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Wireless 3945ABG + conexa audio and FBSD 6.3R

2008-01-30 Thread Pietro Cerutti
Dead Line wrote:
 Hello All,
  
  May I ask the status of Intel PRO/Wireless 3945ABG driver with FreeBSD 6.3-R 
 ?
  I didnot find anything in the updated notes!

It's coming on 7-RELEASE.
You may want to check
http://www.clearchain.com/wiki/Wpi
it contains instructions to build the module from the perforce repository...

  
  Thank you,
Hope this helps,


  Marwan.


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: XDVI, LaTeX, teTeX dependencies

2008-01-29 Thread Pietro Cerutti
Holger Jorra wrote:
 Hi,

Hello,

 I use Latex for documentation and presentations of my work. My problem is 
 that 
 I still haven't found a working DVI-Viewer in FreeBSD without installing the 
 whole KDE-dependencies (KDVI). 

graphics/evince handles DVIs quite well..

 Thanks a lot

Hope this helps,

 Holger

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Very bad performances with wpi driver and 7.0-RC1

2008-01-15 Thread Pietro Cerutti
Michael Neumann wrote:
 
 I had similar problems. *Very* slow and unstable connection using wpi0.
 And WPA never worked. I tried it with NetBSD 4.0 (just out of curiosity)
 and it was working very stable and fast (even WPA)!
 
 I was running FreeBSD-7.0 RC3 and now -CURRENT. In both cases no
 success, so that I don't use wpi0 at all right now.

I also had problems with WPA using the -CURRENT and -STABLE versions.

Try out the 20071102 perforce snapshot, available from [1]. It works
fine here (including WPA).

[1] http://people.freebsd.org/~benjsc/downloads/wpi/

 
 Regards,
 
   Michael

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Realtek sound driver query

2007-12-19 Thread Pietro Cerutti
Chris Makepeace wrote:
 I am a Linux distro fiddler who is trying to settle down...
Good idea ;-)

 
 Just installed PC-BSD and the .../dev/dsp could not be opened (no
 such file or directory) error appeared.  Mixer cannot be found,
 says the little panel icon.
 
 Sound is supposed to come via an integrated Realtek ACL883 chip on the
 P965 main board.

I have the same chip, which is supported by the snd_hda driver. If you
have access to the kernel sources, you could try the following:

# cd /usr/src/sys/modules/sound/driver/hda/
# make  make install
# cd /usr/src/sys/modules/sound/sound
# make  make install
# kldload snd_hda

and see whether something appears on your /var/log/messages and the
output of `cat /dev/sndstat`

Best,

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Determining the number of files in a directory

2007-11-03 Thread Pietro Cerutti
White Hat wrote:
 This is probably a dumb question; however, I never let a little thing like 
 that bother me in the past.
  
 Using FreeBSD-6.2 and Bash, how do I determine the number of files in a given 
 directory? I have tried all sorts of combinations using different flags with 
 the 'ls' command; however, none of them displays the number of files in the 
 directory.
  
 Other than, by writing a script to accomplish this feat, how could I achieve 
 my goal?

I find that the most intuitive way is to use something like:

find . -maxdepth 1 | wc -l

Where you can specify how many levels of subdirectories to include in
the count. Please note that count also includes the current directory (.).

To exclude hidden files (.*), use

find * -maxdepth 0 | wc -l

or

expr `ls -l | wc -l` - 1

instead.



  
 Thanks!
  


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: What is the equivalent of Linux 'gettid' systemcall on FreeBSD?

2007-10-26 Thread Pietro Cerutti
Yuri wrote:
 Hi,
 
 I am porting some code to FreeBSD and need to know what todoinstead of Linux 
 gettid?

There isn't an equivalent in FreeBSD. gettid(2) is Linux-specific.
From the man page, if the thread is not part of a thread group created
by passing the flag CLONE_THREAD to clone(2) [yet another Linux-specific
system call] gettid(2) is equivalent to getpid(2).

However, if the application being ported uses clone(2), you'll first
want to decide for a threading library available on FreeBSD.

 
 Thanks,
 Yuri


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: rename file based on file's timestamp

2007-10-24 Thread Pietro Cerutti
Heiko Wundram (Beenic) wrote:
 Am Mittwoch, 24. Oktober 2007 14:45:08 schrieb andrew clarke:
 Now I want to rename these so the new filenames are based on the file's
 timestamp, like so:

 -rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 28  2006 2006-07-28.mp3
 -rw-r--r--  1 ozzmosis  ozzmosis  115201253 Jul 31  2006 2006-07-31.mp3
 -rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  1  2006 2006-08-01.mp3
 -rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  2  2006 2006-08-02.mp3
 -rw-r--r--  1 ozzmosis  ozzmosis  115201253 Aug  3  2006 2006-08-03.mp3

 I can write some Python code to do this, but maybe there is another way,
 perhaps using a shell script.  Any thoughts?
 
 Simple bash script to do this (untested):
 
 for i in $*
 do
   mv $i `stat -f %Sm -t %Y-%m-%d`.mp3
 done

just pay attention at the situation when two files have the same timestamp..

 
 HTH!
 


-- 
Pietro Cerutti

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


X looks strange after restarting it

2007-10-22 Thread Pietro Cerutti
Hi list,
I don't actually know how to explain this problem in an understandable
way...
I have an external 24' Sun monitor running at 1280x800 plugged into my
laptop (1280X800).
I start X without the external monitor, I plug it in, and press the keys
combination to enable it on my laptop. Everything looks fine on it.
Then, I exit X, restart it, and some applications looks differently.
Please look at [1] and [2] for partial screenshots before and after
restarting X, at [3] for my xorg.conf and at [4] for my Xorg.0.log

Any ideas?

Thanks very much!

[1] http://www.gahr.ch/FreeBSD/misc/before.png
[2] http://www.gahr.ch/FreeBSD/misc/after.png
[3] http://www.gahr.ch/FreeBSD/misc/xorg.conf
[4] http://www.gahr.ch/FreeBSD/misc/Xorg.0.log

P.S. x11@ please CC me

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp





signature.asc
Description: OpenPGP digital signature


Re: Audio CD help

2007-10-15 Thread Pietro Cerutti
 fwe0: Ethernet over FireWire on firewire0
 if_fwe0: Fake Ethernet address: foobar:^)
 fwe0: Ethernet address: foobar:^)
 fwe0: if_start running deferred for Giant
 sbp0: SBP-2/SCSI over FireWire on firewire0
 fwohci0: Initiate bus reset
 fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
 firewire0: 1 nodes, maxhop = 0, cable IRM = 0 (me)
 firewire0: bus manager 0 (me)
 pcib2: ACPI PCI-PCI bridge at device 11.0 on pci0
 pci2: ACPI PCI bus on pcib2
 pcib3: ACPI PCI-PCI bridge at device 12.0 on pci0
 pci3: ACPI PCI bus on pcib3
 pcib4: ACPI PCI-PCI bridge at device 13.0 on pci0
 pci4: ACPI PCI bus on pcib4
 pcib5: ACPI PCI-PCI bridge at device 14.0 on pci0
 pci5: ACPI PCI bus on pcib5
 nvidia0: GeForce 7900 GS port 0xa000-0xa07f mem
 0xf000-0xf0ff,0xe000-0xefff,0xf100-0xf1ff irq 18
 at device 0.0 on pci5
 nvidia0: [GIANT-LOCKED]
 sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on
 acpi0
 sio0: type 16550A
 ppc0: Standard parallel printer port port 0x378-0x37f irq 7 on acpi0
 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
 ppbus0: Parallel port bus on ppc0
 plip0: PLIP network interface on ppbus0
 lpt0: Printer on ppbus0
 lpt0: Interrupt-driven port
 ppi0: Parallel I/O on ppbus0
 atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
 atkbd0: AT Keyboard irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 psm0: PS/2 Mouse irq 12 on atkbdc0
 psm0: [GIANT-LOCKED]
 psm0: model IntelliMouse, device ID 3
 pmtimer0 on isa0
 orm0: ISA Option ROMs at iomem 0xc-0xcdfff,0xd-0xd3fff on isa0
 sc0: System console at flags 0x100 on isa0
 sc0: VGA 16 virtual consoles, flags=0x300
 sio1: configured irq 3 not in bitmap of probed irqs 0
 sio1: port may not be enabled
 vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on
 isa0
 umass0: TEAC TEAC FD-05PUW, rev 2.00/0.00, addr 2
 Timecounters tick every 1.000 msec
 acd0: DMA limited to UDMA33, device found non-ATA66 cable
 acd0: DVDR LITE-ON DVDRW SHW-1635S/YS0R at ata0-master UDMA33
 ad2: 78166MB Maxtor 6Y080P0 YAR41BW0 at ata1-master UDMA133
 ad4: 238474MB WDC WD2500KS-00MJB0 02.01C03 at ata2-master SATA300
 SMP: AP CPU #1 Launched!
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: TEAC FD-05PUW 3000 Removable Direct Access SCSI-0 device
 da0: 1.000MB/s transfers
 da0: Attempt to query device size failed: NOT READY, Medium not present
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error
 Opened disk da0 - 6
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error
 Opened disk da0 - 6
 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
 (da0:umass-sim0:0:0:0): SCSI Status: Check Condition
 (da0:umass-sim0:0:0:0): NOT READY asc:3a,0
 (da0:umass-sim0:0:0:0): Medium not present
 (da0:umass-sim0:0:0:0): Unretryable error
 Opened disk da0 - 6
 Trying to mount root from ufs:/dev/ad2s1a
 $   
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


-- 
Pietro Cerutti

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


Re: coonverting text to tex

2007-10-15 Thread Pietro Cerutti
what about

$ cat  EOF  my_text.tex
? \documentclass{article}
? \begin{document}
? [Ctrl-D]
$ cat my_original_text.txt  my_text.tex
$ echo \end{document}  my_text.tex

?

Aryeh M. Friedman wrote:
 Are there any utils that will convert plain text to TeX?

-- 
Pietro Cerutti

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


Re: kernel configuration failure

2007-10-11 Thread Pietro Cerutti
coriolinus wrote:
 I'm new to kernel building, so I followed the handbook's advice: cd to
 /usr/src, then make buildkernel KERNCONF=MYKERNEL.
 
 The kernel build process is failing mysteriously. The file it claims
 not to be able to find, /usr/src/sys/dev/aic7xxx/aicasm/aicasm.c, is
 sitting in my filesystem exactly where it should be. I'm not even sure
 why exactly it's trying to build that, as I'm pretty sure that I
 disabled the modules in the kernel configuration file which use that
 source.

Actually, that's not the problem.
The file which is not found is the compiler itself:

gcc34:No such file or directory

Maybe you've installed gcc 4.3 from ports, linked /usr/bin/cc to
/usr/local/bin/gcc43 and then upgrade gcc?


 
 Any help getting this to work would be greatly appreciated.
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: BDECFLAGS in make.conf

2007-08-30 Thread Pietro Cerutti
Andrey Shuvikov wrote:
 Hi,
 
 The example make.conf has a comment about BDECFLAGS variable, which is
 suggested for use in developing FreeBSD. But when I tried to use it
 make buildworld fails (inline is not defined). Is this variable
 really supposed to be in make.conf, or did I misunderstand something?

Though very useful, the BDECFLAGS are a bit old.
The problem here is that inline is a C99 feature, while the BDECFLAGS
contain the -ansi switch, which rejects all programs not conforming with
the C90 standard.
I'm sure that inline is not the only thing of FreeBSD which isn't
conforming to ansi C (not to say that's a bad thing).

As a remark, I would suggest not only to use them in developing FreeBSD,
but also in developing /*on*/ FreeBSD.

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


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: doubts about the freebsd devil

2007-08-30 Thread Pietro Cerutti
Nélio Mesquita wrote:
 Hello to all!
 Just for curiosity, why the FreeBSD logo is a little devil? Is there a
 history around it?

See www.beastie.com

 
 Thank you!


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: none of wpa_passphrase

2007-08-10 Thread Pietro Cerutti
Eitarou Kamo wrote:
 I have posted this mail to mobile list. Just to make sure, I'll forward
 to this list too.
 
 Eitarou
 
 Eitarou Kamo wrote:
 
 Hi,
 I used wpa _supplicant  and was aware none of  wpa _passphrase.
 My machine is  6.2  REREASE. Does anyone have it or way to making it?

These kind of generic questions are better suited for
freebsd-questions@, i doubt.

Anyway, from man 8 wpa_passphrase:

The wpa_passphrase utility is a small program for generating a 256-bit
pre-shared WPA key from an ASCII passphrase and a given SSID. The output
is formatted for inclusion in wpa_supplicant.conf(5).

Example:
I have an access point with ssid MySSID and passphrase MyS3cr3t:

 wpa_passphrase MySSID
# reading passphrase from stdin
MyS3cr3t
network={
ssid=MySSID
#psk=MyS3cr3t
   psk=c0964594a3000e7605ef17097f7d939a44e516f05b99806fd862db5934c2e4d4
}

The output is ready to be included in your wpa_supplicant.conf file
(better removing the commented line where the password is in clear text).


 Eitarou

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


mode 11g, but 6Mbps

2007-07-24 Thread Pietro Cerutti
Hi List,
I have an Intel PRO/Wireless 3945ABG adapter using the wpi0 driver
connecting to an access point using the 802.11g mode.
# ifconfig wpi0 mode 11g
# ifconfig wpi0
...
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (OFDM/6Mbps)
...

Can anyone explain why I see OFDM/6Mbps instead of OFDM/54Mbps (or at
least 19Mbps if you mean the actual throughput?)

Tnx

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: mode 11g, but 6Mbps

2007-07-24 Thread Pietro Cerutti
Federico Lorenzi wrote:
 On 7/24/07, Pietro Cerutti [EMAIL PROTECTED] wrote:
 Hi List,
 I have an Intel PRO/Wireless 3945ABG adapter using the wpi0 driver
 connecting to an access point using the 802.11g mode.
 # ifconfig wpi0 mode 11g
 # ifconfig wpi0
 ...
 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g (OFDM/6Mbps)
 ...

 Can anyone explain why I see OFDM/6Mbps instead of OFDM/54Mbps (or at
 least 19Mbps if you mean the actual throughput?)
 It could depend on a few things, first off remember that it's a highly
 experimental driver at
 this stage, and don't mean to be stating the obvious, but are you
 actually close enough to
 the AP to get 54mbps? Windows says 54 / 11 no matter what speed it is
 running at.

Hi Federico,

Actually I'm 4 meters away from the AP.
I know that wpi is still in pre-alpha state ;-)

Tnx

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


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: buildworld inquiry

2007-07-06 Thread Pietro Cerutti
Jean-Paul Natola wrote:
 Hi all,
Hello,

 
 After failing to upgrade to 6.2 , I'm taking a members advice and going to
 buildworld-
 
 I have two questions-
 
 How long will it take-
Hard to guess.. I have a PIII w/ 128M of ram and it takes around an hour
or so...

 And do I need to stop the other programs from running -
No.
You just have to reboot for the installworld step.
Consult /usr/src/UPDATING (around line 390) for the right procedure.

 
 The reason I ask is because I use the bsd box as a mail filter 
 
 Running Exim SA and ClamAv so I need to know how long it would take if I have
 to take it off line-

As said, just the time it takes to installworld, which is much less than
it takes to buildworld, let's say a dozen of minutes...


 Jean-Paul Natola
 Network Administrator
 Information Technology
 Family Care International
 588 Broadway Suite 503
 New York, NY 10012
 Phone:212-941-5300 xt 36
 Fax:  212-941-5563
 Mailto: [EMAIL PROTECTED]

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD 7.0-Release

2007-07-03 Thread Pietro Cerutti
Gelsema, P (Patrick) - FreeBSD wrote:
 On Tue, July 3, 2007 01:33, Pietro Cerutti wrote:
 matt donovan wrote:
 it's on the freebsd site but the code freeze has begun so some are
 guessing
   /\/\

 Did you mean it isn't, right? Because I just can't find any infos
 about the releng schedule for 7-RELEASE..
 
 http://www.freebsd.org/releng

Can you see any release date there? It's just me, or there's only stated
that the release process began in june?

 
 Rgds,
 
 Patrick
 
 around October or so

 On 7/2/07, Joe Vender [EMAIL PROTECTED] wrote:
 Has a release date been set for FreeBSD 7.0-Release? If not, how about
 an
 (educated guess) approximate date, month?

 Joe

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

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

 --
 Pietro Cerutti

 PGP Public Key:
 http://gahr.ch/pgp

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


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD 7.0-Release

2007-07-02 Thread Pietro Cerutti

matt donovan wrote:
 it's on the freebsd site but the code freeze has begun so some are guessing
  /\/\

Did you mean it isn't, right? Because I just can't find any infos
about the releng schedule for 7-RELEASE..

 around October or so
 
 On 7/2/07, Joe Vender [EMAIL PROTECTED] wrote:

 Has a release date been set for FreeBSD 7.0-Release? If not, how about an
 (educated guess) approximate date, month?

 Joe

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

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


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp


signature.asc
Description: PGP signature


signature.asc
Description: OpenPGP digital signature


Re: how to find current cpu speed utilization

2007-06-29 Thread Pietro Cerutti
Eric Crist wrote:
 man top

as for don't TOP post ?
 
 
 On Jun 28, 2007, at 3:17 PMJun 28, 2007, Steve Franks wrote:
 
 I've been playing with powerd, and my system seems mighty sluggish.  I
 can't find anything in the manpages about how to get current metrics
 on the cpu.   powerd is just a daemon, acpi and cpufreq are drivers,
 acpiconf just puts it to sleep, what am I missing?

I don't know of any utility in the base system to show the current cpu
frequency, but you can easily retrieve that information using sysctl.
Have a look at the OIDS rooted at dev.cpu. with

$ sysctl dev.cpu.



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


-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Repopulating the GENERIC kernel

2007-06-25 Thread Pietro Cerutti
Tim Daneliuk wrote:
 I have a production 6.2 STABLE machine w/something like this in 
 /etc/make.conf:
 
 KERNCONF=MYKERN SMP GENERIC
 
 When I do a 'make kernel', as I understand it, all three kernels get *build* 
 but only
 MYKERN actually gets installed.
 
 So ... how do I get the latest version of GENERIC (that I just compiled per 
 the above)
 installed into /boot *without* it actually being the active kernel.  IOW, I 
 want
 my kernel build to *install* MYKERN as the active kernel and refresh GENERIC 
 just in
 case I need it to recover a failed boot...

try with

make buildkernel
make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC
make installkernel KERNCONF=SMP INSTKERNNAME=SMP
make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN

then set the name of the kernel that you want to boot off in
/boot/loader.conf, as

kernel=MYKERN

I don't know if there's an automatized way to perform the same...

Hope this helps,

 TIA,

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp




signature.asc
Description: OpenPGP digital signature


Re: Repopulating the GENERIC kernel

2007-06-25 Thread Pietro Cerutti

Tim Daneliuk wrote:
 Pietro Cerutti wrote:
 Tim Daneliuk wrote:
 I have a production 6.2 STABLE machine w/something like this in 
 /etc/make.conf:

 KERNCONF=MYKERN SMP GENERIC

 When I do a 'make kernel', as I understand it, all three kernels get 
 *build* but only
 MYKERN actually gets installed.

 So ... how do I get the latest version of GENERIC (that I just compiled per 
 the above)
 installed into /boot *without* it actually being the active kernel.  IOW, 
 I want
 my kernel build to *install* MYKERN as the active kernel and refresh 
 GENERIC just in
 case I need it to recover a failed boot...
 try with

 make buildkernel
 make installkernel KERNCONF=GENERIC INSTKERNNAME=GENERIC
 make installkernel KERNCONF=SMP INSTKERNNAME=SMP
 make installkernel KERNCONF=MYKERN INSTKERNNAME=MYKERN

 then set the name of the kernel that you want to boot off in
 /boot/loader.conf, as

 kernel=MYKERN

 I don't know if there's an automatized way to perform the same...
 
 Well ... I guess I could avoid the last step with:
 
 make installkernel KERNCONF=MYKERN INSTKERNNAME=kernel
 
 ... since I believe the bootloader defaults to looking for a kernel called, 
 um, kernel :)

Not only, you can avoid INSTKERNNAME=kernel if what you want is a kernel
called kernel.
the kernel defaults to kernel as for in /boot/defaults/loader.conf

 
 Hope this helps,

 
 Yes - it helps greatly.  Thanks!

Regards,

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp


signature.asc
Description: PGP signature


signature.asc
Description: OpenPGP digital signature


Re: Questions about shell scripts in /etc/periodic/daily

2007-06-25 Thread Pietro Cerutti
Olivier Regnier wrote:
 Hi everyone  :-)
 
 Just curiosly, in /etc/periodic/daily, there are many shell scripts but
 there is an variable rc by example :
 - rc=0
 - rc=1
 - rc=2
 - rc=3
 What exactly does the rc=0, rc=1 ... flag mean ?

They're the exit values of those scripts, so I guess rc means Return Code.
Read man periodic(8), especially the part beginning with Each script is
required to exit with one of the following values:

 
 Thank you :)

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: no glxgears with xorg 7.2?

2007-05-22 Thread Pietro Cerutti
Michael Rudolph wrote:
 On Tuesday 22 May 2007 13:53:25 Harald Schmalzbauer wrote:
 Hello,

 I wanted to test OpenGL with my navidia driver but ould not find
 glxgears anymore (fresh 7.0/7.2 installation).
 Does anybody know what additionalport I have to install?
 Or is there a replacement?

 Thanks,

 -Harry
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 Hello Harald,
 
 running pkg_which(1) on glxgears on my not yet updated system, reveals 
 xorg-clients as the origin of glxgears(1).
 
 If I'm not mistaken, xorg-clients was renamed to xorg-apps during the 
 upgrade of xorg 6.9 to xorg 7.2.

That's true, xorg-apps is a meta-package for a lot of small applications
X11-related.

... but glxgears isn't included.

Don't ask me why, I also was looking for it some time ago, but couldn't
find it.

 
 I hope that helps.
 
 michael

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Newbie to ssh questions

2007-05-21 Thread Pietro Cerutti
DSA - JCR wrote:
 Hi all
 
 I am new to SSH and I like to connect to my FreeBSD 6.2 box with SSH in
 order to test secure connections (remote or not).
 
 1.- Where can I found info about SSH configuration and connections?
You can start here
http://www.freebsd.org/doc/en/books/handbook/openssh.html
and here
http://www.freebsd.org/cgi/man.cgi?query=ssh

 2.- Is it possible to ssh connect to FBSD from a MS Windows system? How?
 is any free programs outthere?

Yes, PuTTY is one of the most popular:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

 thanks in advance
You're welcome

 
 Juan Coruña
 Desarrollo de Software Atlantico
 

-- 
Pietro Cerutti

PGP Public Key:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: Does a pipe take a socket ... ?

2007-05-15 Thread Pietro Cerutti
Matthew Dillon wrote:
 Nuh uh.  pipe() is a direct implementation... no sockets anywhere.
 
 Using socketpair() will eat sockets up, but using pipe() will not.

Right.
Just for reference, I'd suggest to read the heading comments on:

/usr/src/sys/kern/sys_pipe.c

 
   -Matt



-- 
Pietro Cerutti

PGP Public Key ID:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: ipmi drivers

2007-05-14 Thread Pietro Cerutti
Dhananjaya hiremath wrote:
 Hello sir,
Hello,

 Here we did the following command to build the ipmi.
 
 # cd /usr/src/sys/modules/i2c/smbus  make  make install
 # cd /usr/src/sys/modules/ipmi  make  make install
 # kldload smbus
 # kldload ipmi
 
 Then how we come to know that the driver is installed.And how to 
 ensure that driver runs successfully. And pls specfiy the steps for building 
 on the freebsd.
Take a look at your console (ttyv0) and/or at the tail of /var/log/messages.

You should see whether your hardware has been attached by the ipmi driver.

Unfortunately I don't own such a hardware, so I cannot provide an example.

-- 
Pietro Cerutti

PGP Public Key ID:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: How to recompile the VIM port for GUI

2007-05-11 Thread Pietro Cerutti
Andrew Falanga wrote:
 Hi,
Hello,
 So, how do I modify the build environment properly to allow for the
 building of the GUI?  There are several variables referenced in the
 Makefile in /usr/ports/editors/vim, but I'm not sure what to make of
 them.

cd /usr/ports/editors/vim
make WITH_GTK2=yes
make install

 
 Thanks,
 Andy

-- 
Pietro Cerutti

PGP Public Key ID:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


Re: downloading the IPMI driver on FreeBSD

2007-05-10 Thread Pietro Cerutti

Dhananjaya hiremath wrote:
 
 Hello sir,
Hello,

 here we installed the FreeBSD 6.2 and we updated and build the system and 
 installed the kernel.Now we want to Download the IPMI driver on FreeBSD, 
 build it, load it,  and want to ensure that it runs successfully.
Is this the IPMI you're talking about?
http://www.freebsd.org/cgi/man.cgi?query=ipmiapropos=0sektion=0manpath=FreeBSD+6.2-RELEASEformat=html

If it's the case, re-compile your kernel with the line device ipmi.

Alternatively, you can compile smbus and ipmi as modules (if not already
done) and load them:

# cd /usr/src/sys/modules/i2c/smbus  make  make install
# cd /usr/src/sys/modules/ipmi  make  make install
# kldload smbus
# kldload ipmi

 
 Thank U
Hope this helps,

 Regards
 Dhananjaya Hiremth

Cheers

-- 
Pietro Cerutti

PGP Public Key ID:
http://gahr.ch/pgp


signature.asc
Description: PGP signature


signature.asc
Description: OpenPGP digital signature


Re: Can't get the syntax correct for my tcpdump command

2007-05-10 Thread Pietro Cerutti
Andrew Falanga wrote:
 Hi,
 
 I'm about to launch this computer through the roof!  This tcpdump is
 more finicky than feline when it comes to eating.  What really bugs me
 is that just a couple of days ago I was doing this very same thing
 with no problems.  For some reason, however, I just can't resurrect
 the memory of how the syntax goes.
 
 I want to capture only the IPv6 UDP traffic from my FreeBSD box to a
 host I'm trying to mount through NFS.  A couple of days ago, I got it,
 but I had to kill that terminal session abnormally and the commands
 aren't in my history.  So, I have something like this,
 
 tcpdump -v -s 192 -i fxp0 ip6 host remote
 
 The above works.  However, when I try to modify the command to filter
 out only the UDP traffic, I've tried something like this:
 
 tcpdump -v -s 192 -i fxp0 ip6 udp host remote
 
 To which tcpdump complains of syntax errors.  Variations I've tried are:
 
 tcpdump -v -s 192 -i fxp0 ip6 proto udp host remote
 
 tcpdump -v -s 192 -i fxp0 udp ip6 host remote

expression primitives have to be AND'd.

tcpdump -v -s 192 -i fxp0 host _remote_ and udp and ip6

 Please help!
Hope this helps,


 
 Thanks,
 Andy

-- 
Pietro Cerutti

PGP Public Key ID:
http://gahr.ch/pgp



signature.asc
Description: OpenPGP digital signature


possible error in MIXER(8) man page

2007-05-03 Thread Pietro Cerutti

Hi List,

man 8 mixer says:

The list of mixer devices that may be modified are:

  vol, bass, treble, synth, pcm, speaker, mic, cd, mix, pcm2, rec,
  igain, ogain, line1, line2, and line3.

Shouldn't it be:

The list of mixer devices that may be modified are:

  vol, bass, treble, synth, pcm, speaker, line, mic, cd, mix,
pcm2, rec,
  igain, ogain, line1, line2, and line3.  /\/\/\/\

(line channel between speaker and mic).

If it's the case, I will submit a problem report.

Cheers,

--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I prevent unauthorized ssh login attempts?

2007-04-26 Thread Pietro Cerutti

On 4/26/07, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:

I'm getting a lot of unauthorized ssh login attempts. I have a pretty basic
FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get from my
daily security run output:

myserver.domain.com login failures:
Apr 25 20:00:19 myserver sshd[57810]: Invalid user staff from 65.171.74.26

[snip]

Apr 25 20:01:13 myserver sshd[57860]: Invalid user david from 65.171.74.26

How can I stop these attempts or block them - or even recognize them? I do
not have IPF installed.


In my home server, I put SSH on a higher port and use public key to
authenticate.
This should get you rid of those messages...



Thanks for your help.


Hope this helps,


Best regards,
Andreas


--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: How do I prevent unauthorized ssh login attempts?

2007-04-26 Thread Pietro Cerutti

On 4/26/07, Andreas Widerøe Andersen [EMAIL PROTECTED] wrote:

On 4/26/07, Arek Czereszewski [EMAIL PROTECTED] wrote:

 Andreas Widerøe Andersen wrote:
  I'm getting a lot of unauthorized ssh login attempts. I have a pretty
 basic
  FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get from
 my
  daily security run output:
 [...]

 Run sshd on other port.
 And say about this your ssh users.


Can I change the ssh port on a live server somehow without getting locked
out? The server is on a remote co-location a flight away from me.


Yes you can. SSH will keep your connection active until you log out,
then you can log in using the new port



/Andreas



--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: completly remove (or modify) a port

2007-04-18 Thread Pietro Cerutti

On 4/18/07, Ray [EMAIL PROTECTED] wrote:

Hello all,
I have been trying to work with postfix from the ports collection.
I need to rebuild it to include mysql support. I tried
#make deinstall
but a subsequent
#make install
doesn't give me the options screen.


make rmconfig


Thanks,
Ray



--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Two firefoxes, 1.5 and 2.0, script keeps running 1.5 instead of 2.0

2007-04-12 Thread Pietro Cerutti

On 4/12/07, Oliver Iberien [EMAIL PROTECTED] wrote:

I seem to have messed up with pkgdb -F when firefox 1.5 got deprecated, and
now have 1.5 installed without any clear way to get rid of it.

bsd# cd /usr/ports/www/firefox15/
bsd# make deinstall
===  Deinstalling for www/firefox15
===   firefox not installed, skipping

Deinstalling any other way gets rid of 2.0 instead of
1.5.  /usr/local/bin/firefox starts up 1.5 instead of 2.0  Does anyone know
the way out of this?


Try to deinstall any versions of firefox, and then manually delete the
files which keep laying around.. after that reinstall you favorite
version of firefox...



--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: strange mouse behaviour with xorg

2007-04-11 Thread Pietro Cerutti

On 4/11/07, freenity [EMAIL PROTECTED] wrote:

Yes I tried this but it doesnt help, the same problem.
Any suggestions?


Did you also try to change moused_enable=YES to moused_enable=NO
in /etc/rc.conf and set the device to /dev/psm0 in /etc/X11/xorg.conf?

P.S. please don't top post.

On 4/10/07, Pietro Cerutti [EMAIL PROTECTED]  wrote:

  Please try with Option Protocol SysMouse instead.

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

 --
 Pietro Cerutti

 - ASCII Ribbon Campaign -
 against HTML e-mail and
 proprietary attachments
www.asciiribbon.org




--
http://feudaltimes.com.ar - Feudal Times `s webmaster and programer.



--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: strange mouse behaviour with xorg

2007-04-11 Thread Pietro Cerutti

On 4/12/07, freenity [EMAIL PROTECTED] wrote:

yes i changet that, and it runs fine, but that problem with mouse is still
there, it just  changes randomly its position when i drag it.


send in your /var/log/Xorg.0.log (assuming your're using your first display).
And please, send it to the list, so that you can get help from more
people, and not just from me...

--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: strange mouse behaviour with xorg

2007-04-11 Thread Pietro Cerutti

On 4/12/07, freenity [EMAIL PROTECTED] wrote:


Thanks for your reply. Here is my Xorg.0.log file:
http://feudaltimes.com.ar/Xorg.0.log
I uploaded it because its very big.



What Depth do you have in the Screen section of your /etc/X11/xorg.conf?
Try setting it to a lower value.


--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: strange mouse behaviour with xorg

2007-04-10 Thread Pietro Cerutti

On 4/10/07, freenity [EMAIL PROTECTED] wrote:

That doesnt work on my pc, xorg doesnt run, it says that it cant open
/dev/psm0 because its busy.

Can this mouse problem be some misconfiguration in drivers?


Most likely it's because you have moused_enable=YES in your
/etc/rc.conf file.


  Section InputDevice
 Identifier  Mouse0
 Driver  mouse
 Option  Protocol auto
 Option  Device /dev/sysmouse


Please try with Option Protocol SysMouse instead.


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


--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Append only directory ? Is this possible with unix permissions ?

2007-04-10 Thread Pietro Cerutti

On 4/10/07, Gore Jarold [EMAIL PROTECTED] wrote:

Hello,

Hi,


I have a user whose home directory I would like to
make append only.

man chmod(2), look for sticky...

--
Pietro Cerutti

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   >