Re: ZFS not usable on FreeBSD-8.1

2010-08-17 Thread Roland Smith

   Dear Sir/Madam,
   Your email was unable reach the intended person that you were sending
   it to.
   For more information on our business please click on the following
   link:
   [1]Click here for our website
   We look forward to your continued business in the future.
   Regards,
   Webmaster

References

   1. http://www.downwind.com.au/avdir/rd.php?id=7564
___
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"


box reboot after hdd write error

2010-08-17 Thread claudiu vasadi
Hello fellas,

My system is a 8.0-RELEASE with 6 hdd's. 2 days ago I had some power
failures and 2 disks were affected. These 2 hdd;s are connected to "atapci0:
 port
0xd000-0xd007,0xd100-0xd103,0xd200-0xd207,0xd300-0xd303,0xd400-0xd40f mem
0xfa4a-0xfa4a01ff irq 12 at device 4.0 on pci2" s-ata controller. Before
the power surge, the disks were operating normally. I use them for storage,
therefore no system data is kept on them.

The issue here is that after the write failure, the box reboots. Up to this
point I cannot figure out why it reboots, since the disks contain no
"relevant" data (from a OS point of view).

Do you think it's normal for an OS to reboot if 2 disks have write errors ?
even more so, if the disks have no OS files on them ?
___
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: Where is firefox-devel?

2010-08-17 Thread jhell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/17/2010 14:04, Unga wrote:
> Hi all
> 
> Could I know what is the complete web path for 
> branches/experimental/www/firefox-devel/?
> 
> This is mentioned in following mail: 
> http://lists.freebsd.org/pipermail/freebsd-gecko/2010-August/001054.html
> 

Looks to me that its a local svn development repo for the freebsd-gecko
project.

As I do not know the policies that go along with this repository I do
not feel quite correct giving out its address freely, but instead have
BCC'd one of the people that use repository and he can probably make a
decision to do the right thing in either case.


Regards,

- -- 

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

iQEcBAEBAgAGBQJMa0OkAAoJEJBXh4mJ2FR+fPMIAJBZgnAfHxF4Pw17+/vP66BM
8Zby7bTR4lkHlh+BIRV6mciB64JTmHDL5y2pZXsFs3mpBXzu8iDZvugmW+E/yLyX
7bDtObAmExmXKOvlCVvHLKBADxf7bzaR817xSUwNpgw5tp7G4uGePftpuPTTBFfM
h8Wtdc5WnOwUt6PS8cPoUefXb9i4ncAJnl37ipcnBGx/ZXO0YeHHeNM83gQP7gAZ
/w9XIwqQ/j0PKQY40Tk5o/Pv0Zon3GWud4ZwXhFPPwWhinWjRMR6lldClN7m/Jv6
5e3hKPlXbbbvSVcbMQADkGVw9TXNsA0CqnjztSAaSZX7iSpx/o9mN/cqn+V+YW4=
=e8jI
-END PGP SIGNATURE-
___
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: Bash Script Help - File Names With Spaces -- SOLVED

2010-08-17 Thread Anonymous
Drew Tomlinson  writes:

> It finally occurred to me that I needed the shell to see a new line as
> the delimiter and not whitespace. Then a simple search revealed my
> answer:
>
> O=$IFS
> IFS=$(echo -en "\n\b")
> 
> IFS=$O

Old IFS value can be preserved by using `local' keyword or (...) braces, too.
It's a bit better than polluting global scope with temporary variable.

  $ echo -n "$IFS" | (vis -w; echo)
  \040\^I\^J

  $ for i in $(find . -type f); do echo $i; done
  ./My
  Long
  File
  Name
  ./Another
  File

  $ f() { local IFS=; eval "$@"; }
  $ f 'for i in $(find . -type f); do echo $i; done'
  ./My Long File Name
  ./Another File

  $ (IFS=; for i in $(find . -type f); do echo $i; done)
  ./My Long File Name
  ./Another File

  $ echo -n "$IFS" | (vis -w; echo)
  \040\^I\^J
___
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: Upgrading ports while processes are running.

2010-08-17 Thread Charlie Kester

On Tue 17 Aug 2010 at 15:05:27 PDT Danny Carroll wrote:


I wonder what happens when you upgrade a port, don't restart, then the
following week upgrade it again  hmmm.


I don't think it would be any different than not restarting it after the
first upgrade (assuming the port doesn't try to open any libraries or
data files that aren't already opened and that the second upgrade
changes but the first upgrade does not.)  


As already explained, the inodes for the original files would still be
valid, and so would any file handles the program has open.

___
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: Upgrading ports while processes are running.

2010-08-17 Thread Danny Carroll
 On 17/08/2010 12:13 PM, Mark Shroyer wrote:
> On Tue, 17 Aug 2010 03:23:27 +0200, Polytropon  wrote:
>> At least, the step that wants to write will fail, and this will
>> mostly be (finally) signaled by a make error.

> That isn't to say you won't see any negative consequences from
> overwriting a running port with a newer version.  Hypothetically, you
> might install a new Python including a new standard library, and if your
> running (old) Python process tries to load one of its deleted modules
> from disk something could break.  Or not; I'm no expert on the ports
> system, they might have some way of working around this.  But as for a
> pragmatic answer to your question, I err on the side of caution with
> this stuff :)
>


Thanks for the info...

I guess I can take this to read:
The way install works, the binary files can be updated even though they
are in use.   Restart of the port (or it's deps in the case of libs) is
required.
If nothing is restarted, then the old process code happily resides in
memory until it's no longer referenced.   This can cause a problem with
a dynamically loaded lib that is not the same version as expected.

I wonder what happens when you upgrade a port, don't restart, then the
following week upgrade it again  hmmm.

In any case I like the "restart the whole server" option after a major
upgrade because if it works then I can essentially rule out the upgrade
if I have to troubleshoot a problem at a later date.

-D



___
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: Bash Script Help - File Names With Spaces

2010-08-17 Thread Karl Vogel
>> On Tue, 17 Aug 2010 07:47:25 -0700, 
>> Drew Tomlinson  said:

D> Then I attempt to use 'basename' to extract the file name to a variable
D> which I can later pass to 'ln'.  This seems to work:
D>   basename "/archive/Multimedia/Audio/Music/Billboard Top USA
D>   Singles/1980-028 Kenny Loggins - This Is It.mp3"

   This is a subset of a larger problem: getting the last field from a set
   of delimited records which may not all have the same number of fields.

   I've used this when I needed basenames for ~500,000 files:
 find . regex-or-print-or-whatever | rev | cut -f1 -d/ | rev

   For dirnames:
 find . regex-or-print-or-whatever | rev | cut -f2- -d/ | rev | sort -u

-- 
Karl Vogel  I don't speak for the USAF or my company

When I'm feeling down, I like to whistle.  It makes the
neighbor's dog run to the end of his chain and gag himself.--unknown
___
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: Printer Installation

2010-08-17 Thread Rem P Roberti

On 08/17/2010 12:29, Polytropon wrote:

On Tue, 17 Aug 2010 12:05:05 -0700, Rem Roberti  wrote:
   

I seem to recall
that there could be a path problem with lpr if CUPS is installed and one
tries to use lpd, but I've forgotten how to deal with that, if indeed
that is the problem.
 

CUPS installs its binaries into /usr/local/bin, if not compiled
with options saying otherwise (in which case it can replace the
system's programs). Depending on $PATH, /usr/bin/lpr or CUPS's
/usr/local/bin/lpr can be invoked. By explicitely using

# /usr/bin/lpr /etc/printcap

for example, you can be sure to call the correct program.

By the way, using the printer's name as -P parameter for the
default printer's name (lp) is not needed. You can also use
the environment variable PRINTER to define a standard printer's
name instead of lp.



   

BTW, I have included ulpt0 as a permission in my
/etc/fstab file.
 

Do you mean /etc/devfs.conf, /etc/devfs.rules or /etc/devd.conf,
as the file system table doesn't seem to be involved here? :-)


   
Sorry...I did indeed mean /etc/devfs.conf!  And thank you for your 
reply.  I have to run out for a bit, but when I return I will try to get 
the path thing straightened out.


Rem
___
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: Is there a way to measure how much network traffic particular app generates?

2010-08-17 Thread Iñigo Ortiz de Urbina
Its not clear if you require real time stats or not so, I would like
to jump in and join the discussion by suggesting to capture the bulk
traffic, then filtering and dumping to another capture. Then use
wireshark/tshark's built-in stats to get the throughput.

Anyway, I would go down the pf+labels+pfctl+pftop road for pseudo-RT

On 8/17/10, Yuri  wrote:
> For example skype, or web browser?
> I know SysGuard in kde4 shows network traffic per interface at
> particular time. But I am interested in per-application stats.
>
> Yuri
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Printer Installation

2010-08-17 Thread Polytropon
On Tue, 17 Aug 2010 12:05:05 -0700, Rem Roberti  wrote:
> I seem to recall 
> that there could be a path problem with lpr if CUPS is installed and one 
> tries to use lpd, but I've forgotten how to deal with that, if indeed 
> that is the problem. 

CUPS installs its binaries into /usr/local/bin, if not compiled
with options saying otherwise (in which case it can replace the
system's programs). Depending on $PATH, /usr/bin/lpr or CUPS's
/usr/local/bin/lpr can be invoked. By explicitely using

# /usr/bin/lpr /etc/printcap

for example, you can be sure to call the correct program.

By the way, using the printer's name as -P parameter for the
default printer's name (lp) is not needed. You can also use
the environment variable PRINTER to define a standard printer's
name instead of lp.



> BTW, I have included ulpt0 as a permission in my 
> /etc/fstab file.

Do you mean /etc/devfs.conf, /etc/devfs.rules or /etc/devd.conf,
as the file system table doesn't seem to be involved here? :-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Printer Installation

2010-08-17 Thread Rem P Roberti

On 08/17/2010 12:05, Rem Roberti wrote:
 Hi all.  I'm having problems installing a printer on a new 8.1 
installation.  I want to do this sans CUPS and via lpd.  lpd is 
enabled in my /etc/rc.conf.  Here is my printcap:


 lp|photosmart:\
:lp=/dev/ulpt0:\
:af=/usr/local/share/ppd/HP/HP-PhotoSmart_7760-hpijs.ppd.gz:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/lpd/photosmart:\
:sh:

Whenever I try and print, for example...lpr -Pphotosmart 
/etc/printcap...I get this error message: "lpr: Connection refused"  
Now, although I stated that I want to install the printer using lpd, 
CUPS is installed on the computer, but not enabled.  I seem to recall 
that there could be a path problem with lpr if CUPS is installed and 
one tries to use lpd, but I've forgotten how to deal with that, if 
indeed that is the problem.  BTW, I have included ulpt0 as a 
permission in my /etc/fstab file.


Any help much appreciated.

Rem


I forgot to mention that if I try to test the printer like this...lptest 
80 5 | lpr...I get back an error message that says, "lpr: Error - 
scheduler not responding!"


Rem
___
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"


Printer Installation

2010-08-17 Thread Rem Roberti
 Hi all.  I'm having problems installing a printer on a new 8.1 
installation.  I want to do this sans CUPS and via lpd.  lpd is enabled 
in my /etc/rc.conf.  Here is my printcap:


 lp|photosmart:\
:lp=/dev/ulpt0:\
:af=/usr/local/share/ppd/HP/HP-PhotoSmart_7760-hpijs.ppd.gz:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/lpd/photosmart:\
:sh:

Whenever I try and print, for example...lpr -Pphotosmart 
/etc/printcap...I get this error message: "lpr: Connection refused"  
Now, although I stated that I want to install the printer using lpd, 
CUPS is installed on the computer, but not enabled.  I seem to recall 
that there could be a path problem with lpr if CUPS is installed and one 
tries to use lpd, but I've forgotten how to deal with that, if indeed 
that is the problem.  BTW, I have included ulpt0 as a permission in my 
/etc/fstab file.


Any help much appreciated.

Rem
___
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: change default keymap for /boot/loader?

2010-08-17 Thread Polytropon
On Tue, 17 Aug 2010 13:15:43 +, Alexander Best  wrote:
> hi there,
> 
> just wanted to ask if there's a way to change the default US keymap for
> /boot/loader to something else?
> 
> i have
> 
> options   UKBD_DFLT_KEYMAP
> makeoptions   UKBD_DFLT_KEYMAP="german.iso"
> 
> in my kernel conf, however this doesn't seem to apply to /boot/loader.

I have noted this behaviour already in FreeBSD 7; in 5, I had
both german settings for AT and USB keyboard - WORKING. Maybe
support has been dropped? Is ignored? Hmmm...

Anyway, I never noticed the boot loader was interested in that
setting. It became active when booting into single user mode
("boot -s", which had to be entered according to the US keymap).

This is the whole set of options for the kernel:

options SC_DFLT_FONT
makeoptions SC_DFLT_FONT=iso
options ATKBD_DFLT_KEYMAP
makeoptions ATKBD_DFLT_KEYMAP="german.iso"
options UKBD_DFLT_KEYMAP
makeoptions UKBD_DFLT_KEYMAP="german.iso"

I also included the ISO font for the syscons driver so the german
specific letters could be displayed.

Coming back to your basic question: I don't think there's a way to
modify the early stage loader keymap.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Is there a way to measure how much network traffic particular app generates?

2010-08-17 Thread Mike Tancsa

At 02:37 PM 8/17/2010, Yuri wrote:

For example skype, or web browser?
I know SysGuard in kde4 shows network traffic per interface at 
particular time. But I am interested in per-application stats.


There are a number of tools. Something like ntop presents a nice 
graphical interface and a graphical report. For a CLI type tool, 
Argus is very nice
http://nsmwiki.org/index.php?title=Argus 



---Mike


Yuri
___
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"



Mike Tancsa,  tel +1 519 651 3400
Sentex Communications,m...@sentex.net
Providing Internet since 1994www.sentex.net
Cambridge, Ontario Canada www.sentex.net/mike

___
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: Is there a way to measure how much network traffic particular app generates?

2010-08-17 Thread Joshua Isom
If you're wanting something quick and simple to monitor, `systat 
-netstat` would probably be best.  It lists by address and port, but if 
you run sockstat you get a list of which programs hold which sockets.


On 8/17/2010 1:45 PM, Gary Gatten wrote:

nTop plus 100 others I'm sure.  I'm sure even with pf, ipfw, iptables, et al: there's a 
way to permit "everything" but do accounting.  I use ntop daily, but I'm just a 
novice at others so am just assuming there.

What type of data you want/need vs. how big of footprint/resource requirements 
will drive your decision.

G


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Yuri
Sent: Tuesday, August 17, 2010 1:38 PM
To: freebsd-questions@freebsd.org
Subject: Is there a way to measure how much network traffic particular app 
generates?

For example skype, or web browser?
I know SysGuard in kde4 shows network traffic per interface at
particular time. But I am interested in per-application stats.

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

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


Unable to setup eclipse-devel

2010-08-17 Thread vadim braun
Hi All,

I unable to setup eclipse-devel from ports tree.
Installation process via portmaster stops in patching phase without any
error or warning messages.

File to patch:[patch] Hmm... Looks like a unified diff to me...
[patch] The text leading up to this was:
[patch] --
[patch] |--- plugins/org.eclipse.ui.tests/Eclipse JFace
Tests/org/eclipse/jface/tests/viewers/ListViewerTest.java2009-12-08
16:19:39.740154009 -0500
[patch] |--- plugins/org.eclipse.ui.tests/Eclipse JFace
Tests/org/eclipse/jface/tests/viewers/ListViewerTest.java-new2009-12-08
16:22:14.261155406 -0500
[patch] --

Setup from ports with make && make install && make clean shows same
result...

My OS info:

FreeBSD zero.mydomain.local 8.0-STABLE FreeBSD 8.0-STABLE #0: Sat Apr 24
14:01:29 EEST 2010r...@zero.mydomain.local:/usr/obj/usr/src/sys/GENERIC
amd64

Java version:

java version "1.6.0_03-p4"
Java(TM) SE Runtime Environment (build
1.6.0_03-p4-root_16_aug_2010_19_41-b00)
Java HotSpot(TM) 64-Bit Server VM (build
1.6.0_03-p4-root_16_aug_2010_19_41-b00, mixed mode)

Can anybody help me?

Thanks.
Vadim.
___
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: Is there a way to measure how much network traffic particular app generates?

2010-08-17 Thread Gary Gatten
nTop plus 100 others I'm sure.  I'm sure even with pf, ipfw, iptables, et al: 
there's a way to permit "everything" but do accounting.  I use ntop daily, but 
I'm just a novice at others so am just assuming there.

What type of data you want/need vs. how big of footprint/resource requirements 
will drive your decision.

G


-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Yuri
Sent: Tuesday, August 17, 2010 1:38 PM
To: freebsd-questions@freebsd.org
Subject: Is there a way to measure how much network traffic particular app 
generates?

For example skype, or web browser?
I know SysGuard in kde4 shows network traffic per interface at 
particular time. But I am interested in per-application stats.

Yuri
___
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"








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


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


Is there a way to measure how much network traffic particular app generates?

2010-08-17 Thread Yuri

For example skype, or web browser?
I know SysGuard in kde4 shows network traffic per interface at 
particular time. But I am interested in per-application stats.


Yuri
___
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"


Where is firefox-devel?

2010-08-17 Thread Unga
Hi all

Could I know what is the complete web path for 
branches/experimental/www/firefox-devel/?

This is mentioned in following mail: 
http://lists.freebsd.org/pipermail/freebsd-gecko/2010-August/001054.html

Best regards
Unga


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


fixed: can't find .so, but it's right there.

2010-08-17 Thread Steve Franks
Bugger me!  Something, sometime, pulled a linux mplayer onto my disk,
wonder when I did that?  (It's been awhile that I've had this issue,
and I have a bad habit of dump/restoring disks between work & home
computers willy-nilly).

Anyway, /usr/bin/mplayer looked a bit funny (not in /usr/local), and
brandelf /usr/bin/mplayer caught it red-handed as an SRV4 file!
(should have been FreeBSD for anyone out there reading the archives
not familiar with brandelf).  Deleted it, and the freebsd mplayer
hiding in /usr/local/bin fired right up.

Anyway, thanks, y'all; sorry for the dumb question!

Steve


On Tue, Aug 17, 2010 at 10:31 AM, Steve Franks  wrote:
> On Tue, Aug 17, 2010 at 10:28 AM, Greg Larkin  wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Steve Franks wrote:
>>> What gives?  This is after portupgrade -akfO and an ldconfig just for
>>> good measure.
>>>
>>> [st...@fyre /usr/home/steve]$ cd /usr/local/lib
>>> [st...@fyre /usr/local/lib]$ ls -la | grep aa
>>> -rw-r--r--    1 root  wheel    189146 Jul 13 06:55 libaa.a
>>> -rwxr-xr-x    1 root  wheel      1077 Jul 13 06:55 libaa.la
>>> lrwxr-xr-x    1 root  wheel        10 Jul 13 06:55 libaa.so -> libaa.so.1
>>> -rwxr-xr-x    1 root  wheel    121682 Jul 13 06:55 libaa.so.1
>>> [st...@fyre /usr/local/lib]$ mplayer
>>> mplayer: error while loading shared libraries: libaa.so.1: cannot open
>>> shared object file: No such file or directory
>>> [st...@fyre /usr/local/lib]$
>>>
>>>
>>> Best,
>>> Steve
>>
>> Hi Steve,
>>
>> What is the output of the following command?
>>
>> ldd `which mplayer`
>>
>
> [st...@fyre /usr/home/steve]$ ldd `which mplayer`
> /usr/bin/mplayer:
> /usr/bin/mplayer: error while loading shared libraries: libaa.so.1:
> cannot open shared object file: No such file or directory
> /usr/bin/mplayer: exit status 127
> [st...@fyre /usr/home/steve]$
>
> I also rebuilt libaa specifically, FYI.  It's there, but mplayer can't
> get to it for some reason...
>
> Thanks,
> Steve
>
___
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: can't find .so, but it's right there.

2010-08-17 Thread Steve Franks
On Tue, Aug 17, 2010 at 10:28 AM, Greg Larkin  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Steve Franks wrote:
>> What gives?  This is after portupgrade -akfO and an ldconfig just for
>> good measure.
>>
>> [st...@fyre /usr/home/steve]$ cd /usr/local/lib
>> [st...@fyre /usr/local/lib]$ ls -la | grep aa
>> -rw-r--r--    1 root  wheel    189146 Jul 13 06:55 libaa.a
>> -rwxr-xr-x    1 root  wheel      1077 Jul 13 06:55 libaa.la
>> lrwxr-xr-x    1 root  wheel        10 Jul 13 06:55 libaa.so -> libaa.so.1
>> -rwxr-xr-x    1 root  wheel    121682 Jul 13 06:55 libaa.so.1
>> [st...@fyre /usr/local/lib]$ mplayer
>> mplayer: error while loading shared libraries: libaa.so.1: cannot open
>> shared object file: No such file or directory
>> [st...@fyre /usr/local/lib]$
>>
>>
>> Best,
>> Steve
>
> Hi Steve,
>
> What is the output of the following command?
>
> ldd `which mplayer`
>

[st...@fyre /usr/home/steve]$ ldd `which mplayer`
/usr/bin/mplayer:
/usr/bin/mplayer: error while loading shared libraries: libaa.so.1:
cannot open shared object file: No such file or directory
/usr/bin/mplayer: exit status 127
[st...@fyre /usr/home/steve]$

I also rebuilt libaa specifically, FYI.  It's there, but mplayer can't
get to it for some reason...

Thanks,
Steve
___
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: can't find .so, but it's right there.

2010-08-17 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Steve Franks wrote:
> What gives?  This is after portupgrade -akfO and an ldconfig just for
> good measure.
> 
> [st...@fyre /usr/home/steve]$ cd /usr/local/lib
> [st...@fyre /usr/local/lib]$ ls -la | grep aa
> -rw-r--r--1 root  wheel189146 Jul 13 06:55 libaa.a
> -rwxr-xr-x1 root  wheel  1077 Jul 13 06:55 libaa.la
> lrwxr-xr-x1 root  wheel10 Jul 13 06:55 libaa.so -> libaa.so.1
> -rwxr-xr-x1 root  wheel121682 Jul 13 06:55 libaa.so.1
> [st...@fyre /usr/local/lib]$ mplayer
> mplayer: error while loading shared libraries: libaa.so.1: cannot open
> shared object file: No such file or directory
> [st...@fyre /usr/local/lib]$
> 
> 
> Best,
> Steve

Hi Steve,

What is the output of the following command?

ldd `which mplayer`

If you don't see any "not found" libraries listed, what I normally try
next is running the process under truss and checking the output for any
system errors:

truss -f -a -s 256 -o /tmp/mplayer.log `which mplayer`

Post the /tmp/mplayer.log file somewhere for review, if you want.

Regards,
Greg
- --
Greg Larkin

http://www.FreeBSD.org/   - The Power To Serve
http://www.sourcehosting.net/ - Ready. Set. Code.
http://twitter.com/sourcehosting/ - Follow me, follow you
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFMasbb0sRouByUApARAkaBAJ9D3k5uKshxk+G/szBriclbGGnQQwCguzII
GZnoCQj8Khj51X5DsjbBgJ0=
=1xbp
-END PGP SIGNATURE-

___
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: munin-node

2010-08-17 Thread Dánielisz László
Hi,

Actually I cheked, and everything is like in the sample conf, exepting the 
allowed hosts which looks liek this:

allow ^127\.0\.0\.1$
allow ^192\.168\.1\.1$






From: Sreekanth B 
To: Dánielisz László 
Cc: freebsd-questions@freebsd.org
Sent: Tue, August 17, 2010 6:44:17 PM
Subject: Re: munin-node




2010/8/17 Dánielisz László 

hi,
>
>I just installed munin-node on my freebsd 8.0 and when I try to check if it
>works it says the following:
>
>
># telnet localhost 4949
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
># munin node at localhost
>fetch cpu
># Unknown service
>.
>
>do you have any idea what may be the problem source?
>
>thank you!
>Laszlo
>
>
>
>
>
may be you should edit /etc/munin/munin.conf

-S  



___
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: munin-node

2010-08-17 Thread Sreekanth B
2010/8/17 Dánielisz László 

> hi,
>
> I just installed munin-node on my freebsd 8.0 and when I try to check if it
> works it says the following:
>
>
> # telnet localhost 4949
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> # munin node at localhost
> fetch cpu
> # Unknown service
> .
>
> do you have any idea what may be the problem source?
>
> thank you!
> Laszlo
>
>
>
>
>
may be you should edit /etc/munin/munin.conf
*
*
*-S *
___
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: "read error, 0x01" on booting. (Was: FreeBSD Downloading problem)

2010-08-17 Thread Frank Shute
On Tue, Aug 17, 2010 at 12:12:09PM -0400, Derek Schwartz wrote:
> 
> On Tue, Aug 17, 2010 at 4:03 AM, Frank Shute  wrote:
> > On Tue, Aug 17, 2010 at 01:18:07AM -0400, Derek Schwartz wrote:
> >>
> >> Hey, I'm trying to install FreeBSD on a Dell PC with Intel
> >> Pentium 4 processor.  When I insert the CD, "read error, 0x01"
> >> appears and nothing else happens, I've tried restarting and
> >> changing settings, but no luck.
> >>
> >> I'm going to try re-burning the CD
> >>
> >> any other way I can fix this error?
> >>
> >
> > http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#BOOT-READ-ERROR
> >
>
> yeah, I tried that, but it doesn't work... any other way to fix
> this?

Derek,

A couple of points:

Don't top post and address your reply to the list, that way you get
thousands of eyeballs for your problem. 

I can't help you any further but perhaps somebody else can.


Regards,

-- 

 Frank

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


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


Re: ZFS not usable on FreeBSD-8.1

2010-08-17 Thread Roland Smith
On Tue, Aug 17, 2010 at 11:06:12AM +0200, Dick Hoogendijk wrote:
>   On 16-8-2010 20:14, Roland Smith wrote:
> > It could be that newfs is overwriting the partition table.
> > Can you post the output of 'gpart show' and 'bsdlabels1'?
> westmark# gpart show ad8
> =>   63  976773105  ad8  MBR  (466G)
>   63  9767731051  freebsd  [active]  (466G)
> 
> westmark# bsdlabel ad8s1
> # /dev/ad8s1:
> 8 partitions:
> #size   offsetfstype   [fsize bsize bps/cpg]
>a:  209715204.2BSD0 0 0
>b: 12582912  2097152  swap
>c: 9767731050unused0 0 # "raw" part, 
> don't edit
>d: 16777216 146800644.2BSD0 0 0
>e: 41943040 314572804.2BSD0 0 0
>f: 903372785 734003204.2BSD0 0 0
> westmark#

Ok. That looks good.
 
> I dumped/restored the system to ad8 yesterday and booted from it.
> The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted. 
> So, the system loaded the *old* root partitions (from the first drive). 
> After googling and reading I think I need *boot0cfg* but I'm a bit scary 
> to ruin my new boot (ad8) drive.

:-)

You can use either boot0cfg or fdisk. The first option gives you the splash
screen with the menu choice between normal booting, single user etc. You can
install this with 'boot0cfg -B ad8'. The boot block installed by 'fdisk -B
ad8' does not give you the menu, but gives you a boot prompt which defaults to
normal booting after a couple of seconds. You can still boot into single mode
with the boot prompt.

Both methods only affect the boot block, they do not change the slice table.

> So, what is the exact syntax to make my system not only boot from ad8, 
> but also mount the /deb/ad8s1 slice as root slice?

  * Install one of the boot blocks, as mentioned above.
  * Check with 'fdisk ad8' if the first slice is active. If not, run 
'fdisk -a ad8'.
  * You'll need to change /etc/fstab on ad8s1a! Best do this before
rebooting. It's easier. :-)
  * Make sure that /boot/ is there and populated on ad8s1a!

Then you can re-boot, and make ad8 the first device to boot from in the
BIOS. From that point on, according to boot(8), it should work.

Good luck!

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)


pgp3cBXA7UKiV.pgp
Description: PGP signature


Re: ZFS not usable on FreeBSD-8.1

2010-08-17 Thread Dr. A. Haakh

Dick Hoogendijk schrieb:

 On 16-8-2010 20:14, Roland Smith wrote:

It could be that newfs is overwriting the partition table.
Can you post the output of 'gpart show' and 
'bsdlabels1'?

westmark# gpart show ad8
=>   63  976773105  ad8  MBR  (466G)
 63  9767731051  freebsd  [active]  (466G)

westmark# bsdlabel ad8s1
# /dev/ad8s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  209715204.2BSD0 0 0
  b: 12582912  2097152  swap
  c: 9767731050unused0 0 # "raw" part, 
don't edit

  d: 16777216 146800644.2BSD0 0 0
  e: 41943040 314572804.2BSD0 0 0
  f: 903372785 734003204.2BSD0 0 0
westmark#

I dumped/restored the system to ad8 yesterday and booted from it.
The system *did* boot but (alas) the /dev/ads1a(f) slices were 
mounted. So, the system loaded the *old* root partitions (from the 
first drive). After googling and reading I think I need *boot0cfg* but 
I'm a bit scary to ruin my new boot (ad8) drive.


So, what is the exact syntax to make my system not only boot from ad8, 
but also mount the /deb/ad8s1 slice as root slice?


After that I can remove my old ata drive and hopefully my zfs errors 
are gone too then. ;-)



Did you adjust /etc/fstab on ad8s1?

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


FreeBSD/amd: boot/loader ignores usb-keyboard

2010-08-17 Thread Dr. A. Haakh

Hello,

when i switched to an usb-keyboard some month ago,  i realized, that 
boot/loader ignores input from this device. The bootmanager accepts 
input, loader not.


Is there any configuration-parameter to fix this?

Andreas
___
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: Bash Script Help - File Names With Spaces

2010-08-17 Thread Timm Wimmers
Am Dienstag, den 17.08.2010, 08:22 -0700 schrieb Chip Camden:
> find -E ... | while read i; do; basename $i; done

The semicolon behind "do" isn't necessary.

-- 
Timm

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


can't find .so, but it's right there.

2010-08-17 Thread Steve Franks
What gives?  This is after portupgrade -akfO and an ldconfig just for
good measure.

[st...@fyre /usr/home/steve]$ cd /usr/local/lib
[st...@fyre /usr/local/lib]$ ls -la | grep aa
-rw-r--r--1 root  wheel189146 Jul 13 06:55 libaa.a
-rwxr-xr-x1 root  wheel  1077 Jul 13 06:55 libaa.la
lrwxr-xr-x1 root  wheel10 Jul 13 06:55 libaa.so -> libaa.so.1
-rwxr-xr-x1 root  wheel121682 Jul 13 06:55 libaa.so.1
[st...@fyre /usr/local/lib]$ mplayer
mplayer: error while loading shared libraries: libaa.so.1: cannot open
shared object file: No such file or directory
[st...@fyre /usr/local/lib]$


Best,
Steve
___
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"


munin-node

2010-08-17 Thread Dánielisz László
hi,

I just installed munin-node on my freebsd 8.0 and when I try to check if it 
works it says the following: 


# telnet localhost 4949
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
# munin node at localhost
fetch cpu
# Unknown service
.

do you have any idea what may be the problem source?

thank you!
Laszlo




___
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: Bash Script Help - File Names With Spaces

2010-08-17 Thread Drew Tomlinson

On 8/17/2010 8:22 AM, Chip Camden wrote:

Quoth Drew Tomlinson on Tuesday, 17 August 2010:
   

I have a collection of yearly top 100 Billboard mp3s in this format (all
one line - sorry if it wraps):

/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny
Loggins - This Is It.mp3

I want to create symbolic links to the top 30 in 1966-1969 in another
directory for easy migration to a flash card. Thus I invoked 'find' to
get a list (again, all one line):

find -E "/archive/Multimedia/Audio/Music/Billboard Top USA Singles"
-regex '.*19[6-9][0-9]-0[0-2][0-9].*'

(OK, I know this will only return the top 29)

'find' returns the complete filename as above:

/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny
Loggins - This Is It.mp3

Then I attempt to use 'basename' to extract the file name to a variable
which I can later pass to 'ln'.  This seems to work:

basename "/archive/Multimedia/Audio/Music/Billboard Top USA
Singles/1980-028 Kenny Loggins - This Is It.mp3"

returns (all one line):

1980-028 Kenny Loggins - This Is It.mp3

which is what I would expect.  However using it with 'find' give me this
type of unexpected result:

for i in `find -E "/archive/Multimedia/Audio/Music/Billboard Top USA
Singles" -regex '.*19[6-9][0-9]-0[1-2][0-9].*'`; do basename "${i}";done

1980-028
Kenny
Loggins
-
This
Is
It.mp3

Why is this different? And more importantly, how can I capture the file
name to $i?
 

Try:

find -E ... | while read i; do; basename $i; done

When using back-ticks, all the output gets appended together,
space-separated.  Then 'for' can't tell the difference between a space in
a filename and a delimiter.  Using 'read' instead preserves line
boundaries.


Thanks for your reply.  I like this better than manipulating $IFS 
because then I don't have to set it back.


Cheers,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com

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


Re: What's the difference between portupgrade and portmaster ?

2010-08-17 Thread RW
On Tue, 1 Jun 2010 09:46:50 +0200
David DEMELIER  wrote:

> 2010/6/1 Eitan Adler :

> The differences are that portupgrade use a database, it's written in
> ruby while portmaster is only one shell script. That's why I really
> prefere portmaster that also have zsh completion and is faster.

Am I the only one to regard portmaster's lack of a failsafe install as
a significant problem? 

All three tools will make a back-up of an installed package before
deinstalling it and installing the new version. If this fails
Portupgrade and portmanager will immediately restore the backup usually
with no more disruption that a normal upgrade.

Portmaster leaves you to restore the backup manually which is a minor
hassle if you notice it immediately, a problem if you find out the hard
way, and a potential nightmare if you miss it altogether. 




___
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: Bash Script Help - File Names With Spaces -- SOLVED

2010-08-17 Thread Drew Tomlinson

On 8/17/2010 7:47 AM, Drew Tomlinson wrote:
I have a collection of yearly top 100 Billboard mp3s in this format 
(all one line - sorry if it wraps):


/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 
Kenny Loggins - This Is It.mp3


I want to create symbolic links to the top 30 in 1966-1969 in another 
directory for easy migration to a flash card. Thus I invoked 'find' to 
get a list (again, all one line):


find -E "/archive/Multimedia/Audio/Music/Billboard Top USA Singles" 
-regex '.*19[6-9][0-9]-0[0-2][0-9].*'


(OK, I know this will only return the top 29)

'find' returns the complete filename as above:

/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 
Kenny Loggins - This Is It.mp3


Then I attempt to use 'basename' to extract the file name to a 
variable which I can later pass to 'ln'.  This seems to work:


basename "/archive/Multimedia/Audio/Music/Billboard Top USA 
Singles/1980-028 Kenny Loggins - This Is It.mp3"


returns (all one line):

1980-028 Kenny Loggins - This Is It.mp3

which is what I would expect.  However using it with 'find' give me 
this type of unexpected result:


for i in `find -E "/archive/Multimedia/Audio/Music/Billboard Top USA 
Singles" -regex '.*19[6-9][0-9]-0[1-2][0-9].*'`; do basename "${i}";done


1980-028
Kenny
Loggins
-
This
Is
It.mp3

Why is this different? And more importantly, how can I capture the 
file name to $i?


It finally occurred to me that I needed the shell to see a new line as 
the delimiter and not whitespace. Then a simple search revealed my answer:


O=$IFS
IFS=$(echo -en "\n\b")

IFS=$O

Sorry for the noise.

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com

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


Re: Bash Script Help - File Names With Spaces

2010-08-17 Thread Chip Camden
Quoth Drew Tomlinson on Tuesday, 17 August 2010:
> I have a collection of yearly top 100 Billboard mp3s in this format (all 
> one line - sorry if it wraps):
> 
> /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny 
> Loggins - This Is It.mp3
> 
> I want to create symbolic links to the top 30 in 1966-1969 in another 
> directory for easy migration to a flash card. Thus I invoked 'find' to 
> get a list (again, all one line):
> 
> find -E "/archive/Multimedia/Audio/Music/Billboard Top USA Singles" 
> -regex '.*19[6-9][0-9]-0[0-2][0-9].*'
> 
> (OK, I know this will only return the top 29)
> 
> 'find' returns the complete filename as above:
> 
> /archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny 
> Loggins - This Is It.mp3
> 
> Then I attempt to use 'basename' to extract the file name to a variable 
> which I can later pass to 'ln'.  This seems to work:
> 
> basename "/archive/Multimedia/Audio/Music/Billboard Top USA 
> Singles/1980-028 Kenny Loggins - This Is It.mp3"
> 
> returns (all one line):
> 
> 1980-028 Kenny Loggins - This Is It.mp3
> 
> which is what I would expect.  However using it with 'find' give me this 
> type of unexpected result:
> 
> for i in `find -E "/archive/Multimedia/Audio/Music/Billboard Top USA 
> Singles" -regex '.*19[6-9][0-9]-0[1-2][0-9].*'`; do basename "${i}";done
> 
> 1980-028
> Kenny
> Loggins
> -
> This
> Is
> It.mp3
> 
> Why is this different? And more importantly, how can I capture the file 
> name to $i?

Try:

find -E ... | while read i; do; basename $i; done

When using back-ticks, all the output gets appended together,
space-separated.  Then 'for' can't tell the difference between a space in
a filename and a delimiter.  Using 'read' instead preserves line
boundaries.

> 
> Thanks,
> 
> Drew
> 
> -- 
> Like card tricks?
> 
> Visit The Alchemist's Warehouse to
> learn card magic secrets for free!
> 
> http://alchemistswarehouse.com
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

-- 
Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com| http://chipsquips.com


pgpCHrUZ30LlM.pgp
Description: PGP signature


Bash Script Help - File Names With Spaces

2010-08-17 Thread Drew Tomlinson
I have a collection of yearly top 100 Billboard mp3s in this format (all 
one line - sorry if it wraps):


/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny 
Loggins - This Is It.mp3


I want to create symbolic links to the top 30 in 1966-1969 in another 
directory for easy migration to a flash card. Thus I invoked 'find' to 
get a list (again, all one line):


find -E "/archive/Multimedia/Audio/Music/Billboard Top USA Singles" 
-regex '.*19[6-9][0-9]-0[0-2][0-9].*'


(OK, I know this will only return the top 29)

'find' returns the complete filename as above:

/archive/Multimedia/Audio/Music/Billboard Top USA Singles/1980-028 Kenny 
Loggins - This Is It.mp3


Then I attempt to use 'basename' to extract the file name to a variable 
which I can later pass to 'ln'.  This seems to work:


basename "/archive/Multimedia/Audio/Music/Billboard Top USA 
Singles/1980-028 Kenny Loggins - This Is It.mp3"


returns (all one line):

1980-028 Kenny Loggins - This Is It.mp3

which is what I would expect.  However using it with 'find' give me this 
type of unexpected result:


for i in `find -E "/archive/Multimedia/Audio/Music/Billboard Top USA 
Singles" -regex '.*19[6-9][0-9]-0[1-2][0-9].*'`; do basename "${i}";done


1980-028
Kenny
Loggins
-
This
Is
It.mp3

Why is this different? And more importantly, how can I capture the file 
name to $i?


Thanks,

Drew

--
Like card tricks?

Visit The Alchemist's Warehouse to
learn card magic secrets for free!

http://alchemistswarehouse.com

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


Re: boot0cfg

2010-08-17 Thread Konrad Heuer


On Tue, 17 Aug 2010, Dick Hoogendijk wrote:


I dumped/restored the system to ad8 yesterday and booted from it.
The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted. So, 
the system loaded the *old* root partitions (from the first drive). After 
googling and reading I think I need *boot0cfg* but I'm a bit scary to ruin my 
new boot (ad8) drive.


So, what is the exact syntax to make my system not only boot from ad8, but 
also mount the /deb/ad8s1 slice as root slice?


I'd try to set

rootdev="disk8s1a"

in /boot/loader.conf in /dev/ad8s1a since boot loader and kernel seem to 
be read from there.


Before editing, please interrupt the boot sequence into command prompt 
mode and enter the command "lsdev" to have a look how the disks are 
enumerated by the boot loader.


Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, kheu...@gwdg.de
___
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"


change default keymap for /boot/loader?

2010-08-17 Thread Alexander Best
hi there,

just wanted to ask if there's a way to change the default US keymap for
/boot/loader to something else?

i have

options UKBD_DFLT_KEYMAP
makeoptions UKBD_DFLT_KEYMAP="german.iso"

in my kernel conf, however this doesn't seem to apply to /boot/loader.

cheers.
alex

-- 
a13x
___
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: Upgrading ports while processes are running.

2010-08-17 Thread RW
On Tue, 17 Aug 2010 10:17:23 +0200
Beat Siegenthaler  wrote:

> It never causes trouble. The only thing that if I use restart, rc says
> the daemon is not running (but running fine) .
> But after reading Your article it is now clear why.

I don't think it should be. Most daemons write their pid (process ID)
to a pid-file on startup.  When you stop an rc script it reads the
pid-file and checks to see that there is a process with that pid and
which has the correct command line. If no match is found you get that
warning. Reinstalling a port shouldn't affect the pid file.
___
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"


boot0cfg

2010-08-17 Thread Dick Hoogendijk

 I dumped/restored the system to ad8 yesterday and booted from it.
The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted. 
So, the system loaded the *old* root partitions (from the first drive). 
After googling and reading I think I need *boot0cfg* but I'm a bit scary 
to ruin my new boot (ad8) drive.


So, what is the exact syntax to make my system not only boot from ad8, 
but also mount the /deb/ad8s1 slice as root slice?


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


Re: FreeBSD, GPGPU and OpenCL/CUDA

2010-08-17 Thread Ivan Klymenko
> There are some other "problems" (please note that i don't follow the  
> -current nor -kernel lists)
> 
> a) Who knows how to implement Kernel Mode Settings for this?
> b) Are KMS drivers desirable in FreeBSD?
> c) Is it in the roadmap for FreeBSD9 or 8.x?
> d) Anyone wants to do the work?

probably the last question and is the most important ...
remaining issues - not yet substantial ... :)
___
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: Does Opera-10.61.6430 play VP8/webm?

2010-08-17 Thread Unga


--- On Mon, 8/16/10, Caleb Stein  wrote:

> From: Caleb Stein 
> Subject: Re: Does Opera-10.61.6430 play VP8/webm?
> To: "Unga" 
> Cc: "freebsd-questions@freebsd.org" 
> Date: Monday, August 16, 2010, 10:14 PM
> 
> 
> On Aug 16, 2010, at 6:21 AM, Unga 
> wrote:
> 
> > --- On Sun, 8/15/10, Caleb Stein 
> wrote:
> >
> >> From: Caleb Stein 
> >> Subject: Re: Does Opera-10.61.6430 play VP8/webm?
> >> To: "Unga" 
> >> Date: Sunday, August 15, 2010, 10:29 PM
> >>
> >>
> >> On Aug 15, 2010, at 3:39 AM, Unga 
> >> wrote:
> >>
> >>> Hi all
> >>>
> >>> I have installed Opera-10.61.6430 port on
> FreeBSD 8.1
> >> on i386.
> >>>
> >>> It doesn't play Theora or webm video. Any idea
> why?
> >>>
> >>> Best regards
> >>> Unga
> >>>
> >>>
> >>>
> >>>
> ___
> >>> 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
> >>
> >>> "
> >>
> >> Install the 10.70 dev build.
> >>
> >
> > Where is this port available? I see only
> opera-devel-10.20_2,1.
> >
> > Regards
> > Unga
> >
> >
> >
> >
> > ___
> > 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
> 
> > "
> 
> There is no port; download it from the Opera Desktop Team's
> My Opera  
> page and run install in terminal.
> 

Ok, I have removed my existing Opera port and installed 
opera-10.70-6428.i386.freebsd.tar.bz2, but it still the same and doesn't play 
either Theora or Webm.

Are you theoretically saying it should work or can you really play Webm videos 
on Opera web browser on FreeBSD?

Best regards
Unga 




___
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: ZFS not usable on FreeBSD-8.1

2010-08-17 Thread Dick Hoogendijk

 On 16-8-2010 20:14, Roland Smith wrote:

It could be that newfs is overwriting the partition table.
Can you post the output of 'gpart show' and 'bsdlabels1'?

westmark# gpart show ad8
=>   63  976773105  ad8  MBR  (466G)
 63  9767731051  freebsd  [active]  (466G)

westmark# bsdlabel ad8s1
# /dev/ad8s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  209715204.2BSD0 0 0
  b: 12582912  2097152  swap
  c: 9767731050unused0 0 # "raw" part, 
don't edit

  d: 16777216 146800644.2BSD0 0 0
  e: 41943040 314572804.2BSD0 0 0
  f: 903372785 734003204.2BSD0 0 0
westmark#

I dumped/restored the system to ad8 yesterday and booted from it.
The system *did* boot but (alas) the /dev/ads1a(f) slices were mounted. 
So, the system loaded the *old* root partitions (from the first drive). 
After googling and reading I think I need *boot0cfg* but I'm a bit scary 
to ruin my new boot (ad8) drive.


So, what is the exact syntax to make my system not only boot from ad8, 
but also mount the /deb/ad8s1 slice as root slice?


After that I can remove my old ata drive and hopefully my zfs errors are 
gone too then. ;-)

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


Re: FreeBSD, GPGPU and OpenCL/CUDA

2010-08-17 Thread emorras

Pieter de Goeje  escribió:



The amd64 driver was an illustration of something where raising awareness or
whatever you might call it actually helped IMHO.

Unfortunately this is a chicken-and-egg problem. No HPC users means no demand
means no incentive to do something about it means no HPC users ad infinitum.
But I'm sure you're already knew that.


There are some other "problems" (please note that i don't follow the  
-current nor -kernel lists)


a) Who knows how to implement Kernel Mode Settings for this?
b) Are KMS drivers desirable in FreeBSD?
c) Is it in the roadmap for FreeBSD9 or 8.x?
d) Anyone wants to do the work?

L





___
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: Upgrading ports while processes are running.

2010-08-17 Thread Beat Siegenthaler
 On 17.08.10 04:13, Mark Shroyer wrote:
> That isn't to say you won't see any negative consequences from
> overwriting a running port with a newer version.  Hypothetically, you
> might install a new Python including a new standard library, and if your
> running (old) Python process tries to load one of its deleted modules
> from disk something could break.  Or not; I'm no expert on the ports
> system, they might have some way of working around this.  But as for a
> pragmatic answer to your question, I err on the side of caution with
> this stuff

Wow, thanks for this perfect description how this is working.

For my part, I am updating  since many years regularly the ports. Never
stop any daemon before.
But after the upgrade I restart the daemon if it is something like
apache, clamav, some milters, mysql.
It never causes trouble. The only thing that if I use restart, rc says
the daemon is not running (but running fine) .
But after reading Your article it is now clear why.

Beat


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


Re: FreeBSD Downloading problem

2010-08-17 Thread Frank Shute
On Tue, Aug 17, 2010 at 01:18:07AM -0400, Derek Schwartz wrote:
>
> Hey, I'm trying to install FreeBSD on a Dell PC with Intel Pentium 4 
> processor.
> When I insert the CD, "read error, 0x01" appears and nothing else
> happens, I've tried restarting and changing settings, but no luck.
> 
> I'm going to try re-burning the CD
> 
> any other way I can fix this error?
> 
> Derek Schwartz

http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#BOOT-READ-ERROR


Regards,

-- 

 Frank

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


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