Re: shellscript conditional to check for external disk

2008-06-22 Thread Roland Smith
On Sun, Jun 22, 2008 at 12:22:07AM +0100, RW wrote:
> On Sun, 22 Jun 2008 00:47:31 +0200
> Roland Smith <[EMAIL PROTECTED]> wrote:
> 
> 
> > Use glabel(8) to give the device an unique label. There is no telling
> > which device /dev/da0s1d is pointing to! After labeling you can check
> > for /dev//, which should be unique.
> 
> I think that should be:
> 
> /dev/label/

That is only for non-filesystem labels, according to glabel(8):

"This class also provides volume label detection for file systems.  Those
 labels cannot be set with glabel, but must be set with the appropriate
 file system utility, e.g. for UFS the file system label is set with
 tunefs(8).  Currently supported file systems are:

   o   UFS1 (directory /dev/ufs/).
   o   UFS2 (directory /dev/ufs/).
   o   MSDOSFS (FAT12, FAT16, FAT32) (directory /dev/msdosfs/).
   o   CD ISO9660 (directory /dev/iso9660/).
   o   EXT2FS (directory /dev/ext2fs/).
   o   REISERFS (directory /dev/reiserfs/).
   o   NTFS (directory /dev/ntfs/).

 Non file-system labels are created in the directory /dev/label/."

Roland
-- 
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)


pgpbyQ4XO1cnF.pgp
Description: PGP signature


Re: shellscript conditional to check for external disk

2008-06-22 Thread Roland Smith
On Sat, Jun 21, 2008 at 06:06:17PM -0500, Tim Daneliuk wrote:
> > Use glabel(8) to give the device an unique label. There is no telling
> > which device /dev/da0s1d is pointing to! After labeling you can check
> > for /dev//, which should be unique.
> > 
> > Make sure to unmount the drive at the end of the backup script, or
> > you'll get a kernel panic when staff pulls the plug on a mounted device.
> > 
> > Roland
> 
> A variant of this approach that is filesystem independent would be
> to simply write an identifying zero-length file in the root of
> the removable backup drive:
> 
> mount /mountpoint /dev/device
> cd /mountpoint && touch ThisIsABackupDrive
>
> Your backup script can just look for the presence of the file
> "ThisIsABackupDrive" whenever it is checking to see whether the drive
> is mounted.

The problem is that there can be several device nodes for USB disks,
each with up to four slices times six usable partitions. How
are you going to pick the right one? You'd have to try them all.
 
> Since this is done at the filename level rather than in the disk
> metadata, your script doesn't care/have to change if the removable
> drive is formatted NTFS, FAT32, ufs, etc. I use such disks myself for
> the exact reason you do, but I keep them FAT32 because pretty much
> everything can read this filesystem. Of course, FAT32 cannot preserve
> the file naming and permissions semantics of ufs, so I just make by
> backups into a tarball and then copy the tarball to the removable
> drive.

Glabel(8) supports UFS, FAT12, FAT16, FAT32, ISO9660, ext2fs, reiserfs
and ntfs.

Roland
-- 
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)


pgp6POFCcROJH.pgp
Description: PGP signature


rndc issues

2008-06-22 Thread Victor
# rndc reload
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.

I have tried regenerating the key file and have edited named.conf and
rndc.conf several times all to no avail.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: shellscript conditional to check for external disk

2008-06-22 Thread RW
On Sun, 22 Jun 2008 11:13:15 +0200
Roland Smith <[EMAIL PROTECTED]> wrote:

> On Sun, Jun 22, 2008 at 12:22:07AM +0100, RW wrote:
> > On Sun, 22 Jun 2008 00:47:31 +0200
> > Roland Smith <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > > Use glabel(8) to give the device an unique label. There is no
> > > telling which device /dev/da0s1d is pointing to! After labeling
> > > you can check for /dev//, which should be
> > > unique.
> > 
> > I think that should be:
> > 
> > /dev/label/
> 
> That is only for non-filesystem labels, according to glabel(8):
> 
> "This class also provides volume label detection for file
> systems.  Those labels cannot be set with glabel, but must be set
> with the appropriate file system utility, 
> ...
>  Non file-system labels are created in the directory /dev/label/."

but you did write: "Use glabel(8) to give the device an unique
label", so it would be a non-filesystem label.

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


Re: shellscript conditional to check for external disk

2008-06-22 Thread Camilo Reyes
You can use /var/log/messages to check for the existence of an external
drive through a series of grep commands. Here is my log output when I
insert/remove a USB drive:

Jun 22 11:44:49 Christi kernel: umass0:  on uhub4
Jun 22 11:44:49 Christi root: Unknown USB device: vendor 0x0781 product 0x5150 b
us uhub4
Jun 22 11:44:49 Christi kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jun 22 11:44:49 Christi kernel: da0:  Removable Direct
Access SCSI-2 device
Jun 22 11:44:49 Christi kernel: da0: 40.000MB/s transfers
Jun 22 11:44:49 Christi kernel: da0: 122MB (250879 512 byte sectors: 64H 32S/T 1
22C)
Jun 22 11:44:49 Christi kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/
 .
Jun 22 11:44:56 Christi kernel: umass0: at uhub4 port 2 (addr 2) disconnected
Jun 22 11:44:56 Christi kernel: (da0:umass-sim0:0:0:0): lost device
Jun 22 11:44:56 Christi kernel: (da0:umass-sim0:0:0:0): removing device entry
Jun 22 11:44:56 Christi kernel: GEOM_LABEL: Label msdosfs/  removed.
Jun 22 11:44:56 Christi kernel: umass0: detached

I'm sure you can come up with creative ways to write a script that
checks for when the disk is detached.

"Bono Vince Malum"
--
-Camilo


> Date: Sat, 21 Jun 2008 21:44:09 +
> From: Helge Rohde <[EMAIL PROTECTED]>
> Subject: shellscript conditional to check for external disk
> To: freebsd-questions@freebsd.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain;  charset="us-ascii"
> 
> Hello List,
> 
> I need to write a backup script, and one of the required
> actions would be a 
> copy of the backup to an external firewire drive. I would
> like to make this 
> as easy as possible for the local staff, so i'd like to
> check whether the 
> drive is attached, if necessary mount it, copy over the
> backup  and unmount 
> it again, so that the local staff can swap the external
> disks when they're 
> not used.
>  
> Is there a canonical way to achieve what i want? I played
> with the idea of 
> simply checking for /dev/da0s1d's existance, but that
> won't disappear on 
> disconnect, so that would leave the  is a possibility that
> although da0 is 
> in /dev, it might not be connected.
> 
> Any ideas or RTFM-pointers?
> 
> Helge


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


Re: shellscript conditional to check for external disk

2008-06-22 Thread Wojciech Puchar


Jun 22 11:44:49 Christi kernel: umass0:  on uhub4
Jun 22 11:44:49 Christi root: Unknown USB device: vendor 0x0781 product 0x5150 b
us uhub4
Jun 22 11:44:49 Christi kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jun 22 11:44:49 Christi kernel: da0:  Removable Direct
Access SCSI-2 device
Jun 22 11:44:49 Christi kernel: da0: 40.000MB/s transfers
Jun 22 11:44:49 Christi kernel: da0: 122MB (250879 512 byte sectors: 64H 32S/T 1
22C)
Jun 22 11:44:49 Christi kernel: GEOM_LABEL: Label for provider da0s1 is msdosfs/
.
Jun 22 11:44:56 Christi kernel: umass0: at uhub4 port 2 (addr 2) disconnected
Jun 22 11:44:56 Christi kernel: (da0:umass-sim0:0:0:0): lost device
Jun 22 11:44:56 Christi kernel: (da0:umass-sim0:0:0:0): removing device entry
Jun 22 11:44:56 Christi kernel: GEOM_LABEL: Label msdosfs/  removed.
Jun 22 11:44:56 Christi kernel: umass0: detached


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


linux-quake4 (short and sweet, again)

2008-06-22 Thread Gonzalo Nemmi
Has anyone been able to get linux-quake4 working on FBSD7.0-REL?

Useful info:

[EMAIL PROTECTED] ~]% uname -rsim
FreeBSD 7.0-RELEASE i386 GENERIC
[EMAIL PROTECTED] ~]% sysctl -a | grep linux
hw.snd.compat_linux_mmap: 0
compat.linux.oss_version: 198144
compat.linux.osrelease: 2.6.16
compat.linux.osname: Linux
[EMAIL PROTECTED] ~]% pkg_info -xE linux
linux-doom3-1.1.1286,0
linux-expat-1.95.8
linux-flashplugin-9.0r124
linux-fontconfig-2.2.3_7
linux-openssl-0.9.7f
linux-quake4-1.4.2,1
linux-sdl-1.2.10,1
linux-xorg-libs-6.8.2_5
linux_base-fc-4_13
[EMAIL PROTECTED] ~]%

The problem:
[EMAIL PROTECTED] ~]% linux-quake4
/usr/local/lib/quake4/quake4.x86: error while loading shared 
libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid
[EMAIL PROTECTED] ~]% linux-quake4smp
/usr/local/lib/quake4/quake4smp.x86: error while loading shared libraries: 
libSDL-1.2.id.so.0: cannot open shared object file: No such file or directory
[EMAIL PROTECTED] ~]% ldd /usr/local/lib/quake4/quake4smp.x86
/usr/local/lib/quake4/quake4smp.x86:
libpthread.so.0 => /lib/libpthread.so.0 (0x284da000)
libdl.so.2 => /lib/libdl.so.2 (0x284ec000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x284f)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x285c3000)
libSDL-1.2.id.so.0 => not found
libz.so.1 => /usr/lib/libz.so.1 (0x285d2000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x285e5000)
libm.so.6 => /lib/libm.so.6 (0x286c2000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x286e8000)
libc.so.6 => /lib/libc.so.6 (0x286f2000)
/lib/ld-linux.so.2 (0x284bc000)
[EMAIL PROTECTED] ~]%

ldd seems to indicate the port is hosed: libSDL-1.2.id.so.0 => not found

For the record: linux-doom3-1.1.1286,0 runs like silk in here .. so .. it 
doesn't seem to be an emulation problem. Yet still: linux-quake4
/usr/local/lib/quake4/quake4.x86: error while loading shared 
libraries: /usr/local/lib/libX11.so.6: ELF file OS ABI invalid, dazzels 
me ...

Any hints, pointers, info, will be greatly appreciated. I want to make sure Im 
not doing something wrong before e-mailing the maintainer.

If the maintainer (Ed Schouten according to the Makefile) is on the list, 
please feel free to contact me to work and test this =)

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


Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread dhuang2
Hi:
I have make some changes to the kernel files and rebuild the kernel, but
when I rebuild the kernel, it show some errors and stop rebuild. The
question I want  ask is that: Is there any file that store all these error
message, If there is, where can I find it?
Because there are too many errors occur, I can't see all the errors on the
screen, if there is a file that store these error messages, then I can
find all the errors and fixed them.
Thanks!
Best Wishes

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


Re: FreeBSD as VOIP PBX

2008-06-22 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

sergio lenzi wrote:
> Em Sex, 2008-06-20 às 21:45 +0200, Wojciech Puchar escreveu:
> 
 when i connected 56 cisco phones to my laptop (used 4*16 port switches
 ;), and having all of them working (called from first to second, from 
 third to
 fourth etc..) there was below 4% CPU load but it's 1200Mhz Pentium-3M.


>>> Yes... the cisco uses SIP, that is far more efficient...
>>>
>> i forget to say - SIP allows direct calls (data goes directly between 
>> phones), SCCP doesn't (at least asterisk module).
>>
>> in tests i intentionally disabled this to make asterisk server loaded
> 
> we use sip the same way you do with sccp because we need tranfer calls
> (,Tt) in the dial command
> E1 boards, the best we tested are from the chinese openvox... 
> without echo cancelation it seels for about U$750,00 for one port E1,
> US$1800 for 2 ports, 
> US$2800 for 4 ports...

My god, for the hardware involved, that's unbelieveably expansive.

> in my country (brazil) you may think it is too expensive, but as
> you 
> think that ONE port for a siemens pabx is about US$4000  (yes, 4K
> dollars)

For the Siemens pabx, you're paying for the switching capability, and the
literal ton of software to do all of the call handling.  Maybe I got you wrong,
in what I read above, I haven't seen those Openvox cards, but if they are only
voice interface (a T1 or E1 single channel) plus signally, wow, that's a lot.
If the interface an entire group, either T1 or E1, that's better, but it sure
includes a healthy kick for a profit factor.  I know, I've built them in the
past, there's just not THAT much to them.

Maybe I'm missing something.

Actually, in the present case, the cost of doing switching has dropped in a
major way, so the cost, which used to be justifiable at $4k/channel, well, it's
certainly not that way any more.

Let's see, from memory, I think that the old Northern Telecom DMS250 ran about
2.5 million plus the cost of channel banks, I think.  I was always doing
engineering,  not sales, but your cost figures, they sure do seem high to me.

As far as handling the software, the old tandem switches used to use
mini-computers to run maybe 4,000 channels in one switch.  I forget the name of
the most famous tandem switch, but I do know they used a single mini.  Today's
computers are far more capable, and so could very easily power a whole switch.
Course, doing that kind of software, well, it's the most difficult stuff to do
that has ever been accomplished.  The folks that did it never got enough credit.


> you may imagine that for the price of only one board for a siemens you
> can mount
> the pbx, the cpu, the FreeBSD.
> 
> you mount a 100 phones pbx for less than half the price of a siemens
> equipment
> including the 50 ATAs linksys pap2.
> 
> The poor the country, the more you pay  that is the rule.
> 
> Philips, nortel, alcatel are even more expensive..
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIXpYvz62J6PPcoOkRAsZoAKCDFT6zyX43pSZkSDC1xv3xsYsMXACfZQvq
TsB0dr9vQN6+03TVyGl9mA0=
=oUqG
-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: Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
> Hi:
> I have make some changes to the kernel files and rebuild the kernel, but
> when I rebuild the kernel, it show some errors and stop rebuild. The
> question I want  ask is that: Is there any file that store all these error
> message, If there is, where can I find it?
> Because there are too many errors occur, I can't see all the errors on the
> screen, if there is a file that store these error messages, then I can
> find all the errors and fixed them.
> Thanks!
> Best Wishes

Not zutomatically.  When I run builds, I save rthe output.  I normally do this
in tcsh, so the command here is

make |& tee makeout

where the complete ooutput goes into the "makeout" file.  The "&" there doesn't
take it's normal meaning of throwing the task into the background, instead, what
it does is to capture both the regular output plus the stderr output.  If you
don't use it, you'll get the listing UNTIL the error, and it won't register the
error, so don't forget it, nor change it's placement.  This can also be done  in
 sh shell, but I'm not used to using the sh syntax for that (both piping and
tossing the stdout with stderr), so if you need that, I will let someone else
tell you how to do that.

Be wary of the fact that, that makeout file's gonna be LARGE.  Several megs in 
size.

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

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIXpdUz62J6PPcoOkRAhfLAJ0Zis2ahvh+Gto8u2eJt/vSkJwZugCfUgrK
tEfIlZMl6A2YSTJJqPKOhQA=
=GHLz
-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: Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread Gonzalo Nemmi
On Sunday 22 June 2008 15:03:33 [EMAIL PROTECTED] wrote:
> Hi:
> I have make some changes to the kernel files and rebuild the kernel, but
> when I rebuild the kernel, it show some errors and stop rebuild. The
> question I want  ask is that: Is there any file that store all these error
> message, If there is, where can I find it?
> Because there are too many errors occur, I can't see all the errors on the
> screen, if there is a file that store these error messages, then I can
> find all the errors and fixed them.
> Thanks!
> Best Wishes

The Best of FreeBSD Basics by Dru Lavigne; pg43/44; Reed Media Services

open your terminal and issue: "csh -i | tee nameoffile"

what does that mean?
well .. youll get a new prompt and everything that goes on, on that propmt,  
will be piped to "tee" which will "record everything" on "nameoffile" 

When done, press Ctrl-D
then "cat nameoffile" to view your session.

Example:

You can often get answers to your questions about FreeBSD by searching in the
FreeBSD mailing list archives at

http://www.FreeBSD.org/search/search.html
[EMAIL PROTECTED] ~]% csh -i | tee recording
To read a compressed file without having to first uncompress it, use
"zcat" or "zmore" to view it.
-- Dru <[EMAIL PROTECTED]>
[EMAIL PROTECTED] ~]% cd /usr/ports/
[EMAIL PROTECTED] /usr/ports]% make quicksearch name=linux-doom3
Port:   linux-doom3-1.3.1.1304,1
Path:   /usr/ports/games/linux-doom3
Info:   Doom III for Linux

Port:   linux-doom3-demo-1.1.1286_1
Path:   /usr/ports/games/linux-doom3-demo
Info:   DOOM III demo for Linux

[EMAIL PROTECTED] /usr/ports]% exit
[EMAIL PROTECTED] ~]% cat recording
To read a compressed file without having to first uncompress it, use
"zcat" or "zmore" to view it.
-- Dru <[EMAIL PROTECTED]>
[EMAIL PROTECTED] ~]% cd /usr/ports/
[EMAIL PROTECTED] /usr/ports]% make quicksearch name=linux-doom3
Port:   linux-doom3-1.3.1.1304,1
Path:   /usr/ports/games/linux-doom3
Info:   Doom III for Linux

Port:   linux-doom3-demo-1.1.1286_1
Path:   /usr/ports/games/linux-doom3-demo
Info:   DOOM III demo for Linux

[EMAIL PROTECTED] /usr/ports]% exit
[EMAIL PROTECTED] ~]%

That's way better to store just the error messages (which can be easily 
redirected STDERR to a file using ">& nameoffile" under csh or "2> 
nameoffile" under bash) beacause you'll be recording your whole sessions 
instead of just the errors ;)

Now be a good citizen, go to freebsdmall.com, buy the book and subscribe to 
Freebsd starting with version 7.0 ... ;)

Thanks Dru, for your book sits on besides my computer now, and it will not 
move from there for a really long time :)

Hope it helps :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread Gonzalo Nemmi
On Sunday 22 June 2008 15:17:56 Chuck Robey wrote:
> make |& tee makeout
>
> where the complete ooutput goes into the "makeout" file.  The "&" there
> doesn't take it's normal meaning of throwing the task into the background,
> instead, what it does is to capture both the regular output plus the stderr
> output.  If you don't use it, you'll get the listing UNTIL the error, and
> it won't register the error, so don't forget it, nor change it's placement.

I wasn't aware of the use of "&" !

I thought that getting a new interactive shell would force tee to record 
errors too, as it was supposed to record the whole thing, not leaving 
anything out (the errors in this case =P)
 
Thanks a lot for the tip Chuck !
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread Chuck Robey
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Gonzalo Nemmi wrote:
> On Sunday 22 June 2008 15:17:56 Chuck Robey wrote:
>> make |& tee makeout
>>
>> where the complete ooutput goes into the "makeout" file.  The "&" there
>> doesn't take it's normal meaning of throwing the task into the background,
>> instead, what it does is to capture both the regular output plus the stderr
>> output.  If you don't use it, you'll get the listing UNTIL the error, and
>> it won't register the error, so don't forget it, nor change it's placement.
> 
> I wasn't aware of the use of "&" !
> 
> I thought that getting a new interactive shell would force tee to record 
> errors too, as it was supposed to record the whole thing, not leaving 
> anything out (the errors in this case =P)
>  
> Thanks a lot for the tip Chuck !

There's an app somewhere in ports that will catch some programmable amount of a
file (like maybe 1K bytes) and keep this amount as the file keeps writing in and
out.  That way you can easily catch the most important part only, and toss the
rest.  It'd be a nice project for anyone new to C, not too difficult.
Alterntiavely, you could set it to toss all lines until it notices the work
"error" (in upper, lower, or mixed case), whereupon, it switches to saving all.
 Would be a nice app, but it's there in ports already somewhere.

For along time,  used only tcsh, under the mistaken belief that you couldn't
redirect stderr for piping, under a sh-like shell, but about 6 months ago, I
found out how to do that.  If you would rather use a sh-like shell (maybe you'd
be one of the bash-aficionados?) tell me, I will hunt up that trick.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIXrOLz62J6PPcoOkRAp2wAJ9XH39bz5QFD5tYOE3pIfjkVV+9EACfZhCe
D6YvWJHo363S0oFPEP4x9hc=
=AHRa
-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]"


xfce on amd64 not working

2008-06-22 Thread Kurt Buff
All,

My (relatively) newly purchased Thinkpad T61 (type 7658-CTO) with 4g
RAM is running 7.0-STABLE amd64 from June 8.

I've gotten Xorg running from a generic xorg.conf generated by 'Xorg
-configure', with startx, but when starting XFCE4 with xtartxfce, it
is not happy, and bombs out, leaving a message in /var/log/messages:

 kernel: PID 92xxx (xfwn), uid 0: exited on signal 11 (core dumped)

I've csup'ed today, and did 'portupgrade -aRr' to get the latest.

I also tried copying the xorg.conf from the Suse install that I'm dual
booting with, but that's not any help.


Any thoughts?

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


difference between loading kernel module during boot and after boot manually?

2008-06-22 Thread Vincent Barus
Hi everybody,

is there a difference between loading a kernel module during the boot process
and loading a module manually after the login?
I'm asking this on a general basis and because of pr: kern/123563.
I don't know if it's a problem with if_re because I can't find someone
out on the net
having the same problem.
The driver if_re works after laoding it manually after the login and I
have no problems
with it after this manual kldload if_re.

Can you guys give me a hint how to get further with the troubleshooting because
I can't find any difference with pciconf or the boot -v messages.

Pyun did a nice job with if_re and shame on me for making his driver responsible
at first but that's the only driver I can reproduce this problem with
so I don't know
if there's a hardware / driver / base issue.

The facts about my configuration etc. is in
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/123563

If you want more information please write me.

Thanks and kind regards,

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


Re: xfce on amd64 not working

2008-06-22 Thread Kurt Buff
On Sun, Jun 22, 2008 at 3:31 PM, Matthew Donovan <[EMAIL PROTECTED]> wrote:
> On Sun, Jun 22, 2008 at 02:48:45PM -0700, Kurt Buff wrote:
>> All,
>>
>> My (relatively) newly purchased Thinkpad T61 (type 7658-CTO) with 4g
>> RAM is running 7.0-STABLE amd64 from June 8.
>>
>> I've gotten Xorg running from a generic xorg.conf generated by 'Xorg
>> -configure', with startx, but when starting XFCE4 with xtartxfce, it
>> is not happy, and bombs out, leaving a message in /var/log/messages:
>>
>>  kernel: PID 92xxx (xfwn), uid 0: exited on signal 11 (core dumped)
>>
>> I've csup'ed today, and did 'portupgrade -aRr' to get the latest.
>>
>> I also tried copying the xorg.conf from the Suse install that I'm dual
>> booting with, but that's not any help.
>>
>>
>> Any thoughts?
>>
>> Kurt
>
> Well it's not an Xorg problem. consoidering it's xfwn that is being dumped.
> It'd be easier if we could see the core that xfwn actually dumped since
> that leads to a bit more clues on why it cored.

Happy to provide it, but I don't have a web site to which I can post it.

gzipped, it's about 120k. I'll attach it, and hope it gets through.

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

Quotation Needed...

2008-06-22 Thread Andrian Cole
Greetings,
  I want to sell some puppy and I want to list the ad in your newspaper. Below 
is the text of the ad:


CUTE ENGLISH BULLDOGS, PURE BREED, 
MALE AND FEMALES AVAILABLE WITH 
PICTURES, 10 WEEKS, PRICE $650 
(SHIPPING INCLUDED), FOR MORE DETAILS, 
CALL OR EMAIL [EMAIL PROTECTED]


  I can add my phone number number to the text if that is required. I want this 
ad to run for 8 weeks. I would like to have the quotation for the ad and the 
first available start date for the ad. I would make the payment with my credit 
card.

Regards.



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


Re: xfce on amd64 not working

2008-06-22 Thread Matthew Donovan
On Sun, Jun 22, 2008 at 02:48:45PM -0700, Kurt Buff wrote:
> All,
> 
> My (relatively) newly purchased Thinkpad T61 (type 7658-CTO) with 4g
> RAM is running 7.0-STABLE amd64 from June 8.
> 
> I've gotten Xorg running from a generic xorg.conf generated by 'Xorg
> -configure', with startx, but when starting XFCE4 with xtartxfce, it
> is not happy, and bombs out, leaving a message in /var/log/messages:
> 
>  kernel: PID 92xxx (xfwn), uid 0: exited on signal 11 (core dumped)
> 
> I've csup'ed today, and did 'portupgrade -aRr' to get the latest.
> 
> I also tried copying the xorg.conf from the Suse install that I'm dual
> booting with, but that's not any help.
> 
> 
> Any thoughts?
> 
> Kurt
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Well it's not an Xorg problem. consoidering it's xfwn that is being dumped. 
It'd be easier if we could see the core that xfwn actually dumped since that 
leads to a bit more clues on why it cored. 


pgpwJRBBIFHOv.pgp
Description: PGP signature


please don't shoot me , but... [YAOTP]

2008-06-22 Thread Gary Kline

people,

yes, this is yet another off-topic post,, but 1) i can't find where to
post on the GIMP list [or forum], 2), can't find anything that makes
sense to my way of thinking.

how, oh how, do i use these gimp 'layers'??

2 uses for them.  1st is to create the string "jottings.thought.org"
in a LARGE typeface, centered; then a 2nd string in a Medium typeface,
also centered, and a 3rd in a small typeface.  everything centered.
i figure that whenever somebody unlocks my cage, i may as well make up 
T-shirts and be my own billboard.

i spend a solid 1.5 days trying to learn what the deal is with 'layers':
no-joy.

the second reason to learn gimp is to manipulate plain old ascii
letters (or maybe 8859-15 to get the upside-down bang "!".   when i first
started this site in wisconsin i called it 'thought unlimited' and it
served as a public access unix site for years. public Access or Service,
i've kept the 'thought unlimited' tag.   now if i knew how to use
gimp+layers, i might be able to creaate a logo-with-letters.  

i know 0.00 about art.  at the same time, i love fonts; this is IMHO,
a true artform.   and i'm like to try and design

"TU!" 

on some-such using gimp to create a logo from letters.

thanks in advance,

gary





-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


core Dumb during CVSUP

2008-06-22 Thread Warren Liddell

I have up untill recently been able to do cvsup np's at all, now all of a
sudden it core dumps, any thoughts welcome..

Connecting to cvsup.au.freebsd.org
Connected to cvsup.au.freebsd.org
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Bus error (core dumped) 



--
No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008 7:52 AM



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


Help me to building of " ppp.conf " file

2008-06-22 Thread Miguel Vásquez .
Hi all.


I want adapt my Internet service to FreeBSD 7.0, and
I need to building the "etc/ppp/ppp.conf" file, but,
I do not have much experience in FreeBSD, Can you Help me?

I have a Windows XP file, maybe, it is useful as example. 


I hope, you can help me.
Note: My English is not good, i speak Spanish.

Best Regards,
Miguel.

P.S.: Here my file example:
**

[GENERAL]
Company_Name = Movilnet CCU550
Registry_Folder = MovilnetCCU_550
Install_Directory = Movilnet\CCU550
SWVersion = Software Version : 1.1.6.20(CCU-550)
Copyright =  Copyright (c) 2006 Franklin Wireless Corp.
About_FirmwareVersion = Firmware Version :
About_Title = CCU-550 Modem EvDO Info(CCU-550)
;;;
;;0-None, 1-Exist
UIMCARD = 0

;;;
;;;0 - None, 1-RM3 , 2-Reverse RM3
RM3 = 1

;;;
;;;EVDO-5500P(PCMCIA), EVDO-5500U(USB)
Product_Name = CCU-550 Modem EvDO
Product_Name_SPA = CCU-550 Modem EvDO
DialUP_ConnectionName = CCU-550 Modem EvDO Connection

;;;
;;;Select Language
SelectLang = ENGLISH

;;;
;;;PCMCIA, USB, MODEM
DriverKind = USB

;;;
;;;Open Port Modem Name - default - not use
OpenPortModemName = 1

;;;
;;Only DriverKind = MODEM
ModemPort = 

;;;
;;Port Kind (SINGLE or MULTI)
PORT_KIND = MULTI

;;;
;;Vid_05c6&Pid_3196 ;;CMOTECH-5100P-6944 ;;VID_05C6&PID_3100
DriverID =  Vid_16d8&Pid_5533&Mi_00
DriverID_DM =  Vid_16d8&Pid_5533&Mi_02

SWVer = 

MainProgramName = CMOCCU.exe
CHINESE_HelpFile = chhelp.chm
HelpFile = help.chm

;;;
; Use NAM NAME for LCD  0:no use , 1:use,  default:use
UseNAMNAME = 1

;;;
;;;CMTNF5500P.exe(PCMCIA), CMTNF5500U.exe(USB)
DetectorProgrameName = CMTNF5500D.exe

TitleName = CCU-550 Modem EvDO

AutoRun = 0

;
;;; On(1)/Off(0)
ATCommandActiveSend = 1

;
;;; Hybrid --> EVDO Data Call : Outgoing call(Active) On(1)/Off(0)
ATCommandOutgoing = 1

;
;ShortCuts Name
Shortcuts_DeskTop = CCU-550 Modem EvDO
Shortcuts_Programs = CCU-550 Modem EvDO
Shortcuts_Programs_Execute = CCU-550 Modem EvDO
Shortcuts_Programs_Help = CCU-550 Modem EvDO User Manual
Shortcuts_Programs_Uninstall = UnInstall CCU-550 Modem EvDO

Shortcuts_DeskTop_SPA = CCU-550 Modem EvDO
Shortcuts_Programs_SPA = CCU-550 Modem EvDO
Shortcuts_Programs_Execute_SPA = CCU-550 Modem EvDO
Shortcuts_Programs_Help_SPA = Manual de usuario del CCU-550 Modem EvDO
Shortcuts_Programs_Uninstall_SPA = Desinstalar CCU-550 Modem EvDO

;;
;;Main_No_SRV check count
No_SRVCheckCnt = 5


;;;Voice function ON(1)/OFF(0) ;;default -> on
VoiceFuction = 0


;;;Offline Display function ON(1)/OFF(0) ;;default -> off
OfflineFct = 0

;
Only Data~~~! default - 0 
OnlyData = 1

;
packet amount 0:byte, 1:kbyte, 2:mbyte, 3:gbyte
PacketAmount = 1

;
kind of minimize 0:minimize, 1:hidedefault:minimize
KindOfMinimize = 1

;
Using  changeable tray icon  0:no use, 1: changeabledefault:no use
ChangeableTrayIcon = 1


;
;;Active SMS Send ON(1)/OFF(0)
ActiveSMSSend = 1

;;;
;SMS Max String
SmsMaxString = 160
SmsRcvMaxString = 230


;;SMS UNICODE ~! USE(1)/UNUSE(0)
SmsUnicode = 0

;;
;;sms emergency priorty OFF(0) / Normal (1) Fast (2) Urgent(3) - default 
SmsEmergency = 0

;

Re: please don't shoot me , but... [YAOTP]

2008-06-22 Thread Sahil Tandon
Gary Kline <[EMAIL PROTECTED]> wrote:

> yes, this is yet another off-topic post,, but 1) i can't find where to
> post on the GIMP list [or forum], 2), can't find anything that makes
> sense to my way of thinking.
> 
> how, oh how, do i use these gimp 'layers'??

[...]

Your initial intuition was spot on; please don't post these type of questions 
on this list.  Thanks.

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


Webmin 1.370_2 weird Error

2008-06-22 Thread Ruel Luchavez
Hi MailingList,

I have install a webmin 1.370_2 in my VM freebsd server, the installation
had no problem but when i view the UI (in my browser i type
192.168.23.248:1) of my webmin, I have these weird problem in front of
the page of my webmin:

/usr/local/lib/webmin/mount/freebsd-mounts-5.c: In function 'main':
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:18: warning: incompatible
implicit declaration of built-in function 'exit'
/usr/local/lib/webmin/mount/freebsd-mounts-5.c: In function 'expand_flags':
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:34: warning: incompatible
implicit declaration of built-in function 'strcat'
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: 'MNT_NODEV'
undeclared (first use in this function)
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: (Each undeclared
identifier is reported only once
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:38: error: for each function
it appears in.)
/usr/local/lib/webmin/mount/freebsd-mounts-5.c:48: warning: incompatible
implicit declaration of built-in fun

I don't understand this error, infact i have installed many time a webmin in
other server, this is my first time I encounter this..

Could some one explain to me what is this?

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


Re: Portsnap behind proxy squid not update

2008-06-22 Thread Edgardo Nuevo
>> I have a proxy (squid) that gives Internet to a set of pcs, one of
>> them is a FreeBSD 6.2, when wanting to upgrade ports (
>> portsnap fetch)  gives me the messages following:
>>
>> PC1 # fetch portsnap
>
> Did you mean (and actually type) 'portsnap fetch'?
>
I wrong to write


>> But I fail to upgrade ports, then modify the
>> file. cshrc and leave it well
>> # ee. cshrc
>> setenv HTTP_PROXY http://10.0.1.1:3128
>
> No need to specify the port in your case; 3128 is default for HTTP_PROXY.
> Does your proxy server require authentication?  If so, you need to specify
> authorization parameters as outlined in man fetch(3).
>
>> setenv FTP_PROXY ftp://10.0.1.1:3128
>> setenv FTP_PASSIVE_MODE ftp://10.0.1.1:3128
>
My proxy not require authentication.

> BTW, although FTP_PASSIVE_MODE is enabled by setting it to anything other
> than 'no', you probably want to set it to something logical like "YES"
> instead of just re-listing the proxy URL. :-)
>
Sorry, I do not understand ( I am using a tool Translation )

Meet as debug to solve the problem?

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


shared object "libc.so.6" not found after freebsd-update

2008-06-22 Thread FT

I was using freebsd-update to upgrade from 6.2 to 7.0-RELEASE. The upgrade
and install of the kernel went fine, then I reran freebsd-update after
rebooting to get the userland stuff. Midway through installing updates,
I got the error:

Installing updates.../libexec/ld-elf.so.1: Shared object
"libc.so.6" not found, required by "rm"

There's a libc.so.7 in /lib. I'd try linking to it, but ln of course 
requires libc.

Without libc, almost nothing works... can someone guide me through how
to recover a functional libc and finish updating (without breaking
everything)?

I was following the instructions at
http://www.freebsd.org/releases/7.0R/announce.html. Was there some step
missing that would have prevented this mess?

Thanks

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


Re: shared object "libc.so.6" not found after freebsd-update

2008-06-22 Thread David Gurvich
Hello,
I'm not certain of the following.  I think you needed to update to 6.3
first and after the first update, install compat6x.  Regardless, you
may be able to recover by doing 'freebsd-update rollback'.  That will
undo the most recent changes and hopefully get you a working system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Patch Failures during Portupgrade

2008-06-22 Thread Warren Liddell
Below is the hunk of ports that continually fail to upgrade due to problems 
with patching. i use the command portupgrade -aDkp -m BATCH=yes

Any assistance with this greatly appreciated.


** Listing the failed packages (-:ignored / *:skipped / !:failed)
! lang/ruby18 (ruby-1.8.6.111_1,1) (patch error)
! databases/mysql50-client (mysql-client-5.0.45_1) (patch error)
! graphics/OpenEXR (OpenEXR-1.6.0) (patch error)
! devel/libvolume_id (libvolume_id-0.75.0_1) (patch error)
! graphics/dri (dri-7.0.1,2) (install error)
! net/samba-libsmbclient (samba-libsmbclient-3.0.28) (patch error)
! graphics/libGLU (libGLU-7.0.1) (patch error)
! x11-fonts/xfs (xfs-1.0.5,1) (patch error)
! x11/xorg-libraries (xorg-libraries-7.3_1) (unknown build error)
! x11-toolkits/gtk20 (gtk-2.12.1_1) (patch error)
! irc/xchat (xchat-2.8.4_3) (patch error)
! sysutils/hal (hal-0.5.8.20070909) (configure error)
! x11/kdebase3 (kdebase-3.5.8) (patch error)
! x11-servers/xorg-server (xorg-server-1.4_3,1) (patch error)
! x11-drivers/xorg-drivers (xorg-drivers-7.3) (uninstall error)



===> Patching for ruby-1.8.6.111_2,1
===> Applying FreeBSD patches for ruby-1.8.6.111_2,1
Ignoring previously applied (or reversed) patch.
1 out of 1 hunks ignored--saving rejects to ext/tk/tkutil/extconf.rb.rej
=> Patch patch-ext_tk_tkutil_extconf.rb failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/lang/ruby18.
*** Error code 1

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


Re: Which file can I find the error message that shows on the screen when I build my kernel?

2008-06-22 Thread Matthew Seaman

Chuck Robey wrote:


For along time,  used only tcsh, under the mistaken belief that you
couldn't redirect stderr for piping, under a sh-like shell, but about
6 months ago, I found out how to do that.  If you would rather use a
sh-like shell (maybe you'd be one of the bash-aficionados?) tell me,
I will hunt up that trick.


Under Bourne-style shells:

 make 2>&1 | tee /tmp/makeout

TIMTOWTDI. Under any shell:

 script /tmp/makeout make

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature