Re: CMI8788 audio card/chip support

2012-08-29 Thread Polytropon
On Wed, 29 Aug 2012 22:50:22 +, James Powell wrote:
> kldload snd_driver only detected my USB Headset and loaded
> theusb audio driver. It did not detect my CMI8788 (ASUS Xonar
> DX PCIe)and snd_cmi does not support it.
> 
> cat /dev/sndstat generated this:
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)Installed devices:pcm0: 
>  (play/rec) default
> Which is my Logitech USB headset, not my PCIe sound card.
> The boot generated a message stating "Unsupported Sound Carddetected.
> Please contact li...@support.freebsd.org with soundcard make and model."

That would be a good thing to do.



On Wed, 29 Aug 2012 23:01:31 +, James Powell wrote:
> 
> This also was generated at startup:
> 
> none3@pci0:5:4:0: class=0x040100 card=0x82751043 chip=0x878813f6 rev=0x00 
> hdr=0x00
>vendor = 'C-Media Electronics Inc'
>device = 'CMI8788 [Oxygen HD Audio]'
>class  = multimedia
>subclass   = audio

That information could be useful for the person who maintains
the cmi sound card driver. Maybe it's possible to take those
IDs (card=0x82751043 chip=0x878813f6) and temporarily "patch"
them into the cmi driver, to try if it then will recognize
the device and handle it (maybe with limited functionality)?

I know a similar approach has been possible to "magically
activate" some incompatible USB hardware...


-- 
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: CMI8788 audio card/chip support

2012-08-29 Thread James Powell

This also was generated at startup:

none3@pci0:5:4:0:   class=0x040100 card=0x82751043 chip=0x878813f6 rev=0x00 
hdr=0x00vendor = 'C-Media Electronics Inc'device = 'CMI8788 
[Oxygen HD Audio]'class  = multimediasubclass   = audio

> From: james4...@hotmail.com
> To: freebsd-questions@freebsd.org
> Date: Wed, 29 Aug 2012 22:50:22 +
> Subject: RE: CMI8788 audio card/chip support
> 
> 
> 
> 
> 
> kldload snd_driver only detected my USB Headset and loaded theusb audio 
> driver. It did not detect my CMI8788 (ASUS Xonar DX PCIe)and snd_cmi does not 
> support it.
> 
> cat /dev/sndstat generated this:
> FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)Installed devices:pcm0: 
>  (play/rec) default
> Which is my Logitech USB headset, not my PCIe sound card.
> The boot generated a message stating "Unsupported Sound Carddetected. Please 
> contact li...@support.freebsd.org with soundcard make and model."
> 
> 
> > Date: Mon, 27 Aug 2012 11:24:30 +0100
> > From: ja...@kode5.net
> > To: freebsd-questions@freebsd.org
> > Subject: Re: CMI8788 audio card/chip support
> > 
> > [ Polytropon wrote on Mon 27.Aug'12 at  4:10:57 +0200 ]
> > 
> > > On Mon, 27 Aug 2012 02:01:34 +, James Powell wrote:
> > > > 
> > > > Are any plans being made to start support for these audio cards?
> > > > Currently I'm using one in a system I would like to use with
> > > > FreeBSD but it has no support through the kernel and driver
> > > > support from OSSv4 lands me with a system that either freezes
> > > > or won't boot properly.
> > > 
> > > Interesting. I've been using a CMI-based sound card with
> > > FreeBSD 4, 5 and 7 already. See "man snd_cmi":
> > > 
> > > HARDWARE
> > >  The snd_cmi driver supports the following sound cards:
> > > 
> > >  ·   CMedia CMI8338A
> > >  ·   CMedia CMI8338B
> > >  ·   CMedia CMI8738
> > >  ·   CMedia CMI8738B
> > > 
> > > It lists older CMI8788 as supported devices. Doesn't it
> > > provide sufficient compatibility?
> > 
> > Have you tried loading the generic driver to see if your audio card is 
> > picked up:
> > 
> > # kldload snd_driver
> > 
> > then try 
> > 
> > # cat /dev/sndstat
> > 
> > which will show more info about it? That's what's recommended in the 
> > handbook.
> 
> 
> ___
> 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: CMI8788 audio card/chip support

2012-08-29 Thread James Powell




kldload snd_driver only detected my USB Headset and loaded theusb audio driver. 
It did not detect my CMI8788 (ASUS Xonar DX PCIe)and snd_cmi does not support 
it.

cat /dev/sndstat generated this:
FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64)Installed devices:pcm0: 
 (play/rec) default
Which is my Logitech USB headset, not my PCIe sound card.
The boot generated a message stating "Unsupported Sound Carddetected. Please 
contact li...@support.freebsd.org with soundcard make and model."


> Date: Mon, 27 Aug 2012 11:24:30 +0100
> From: ja...@kode5.net
> To: freebsd-questions@freebsd.org
> Subject: Re: CMI8788 audio card/chip support
> 
> [ Polytropon wrote on Mon 27.Aug'12 at  4:10:57 +0200 ]
> 
> > On Mon, 27 Aug 2012 02:01:34 +, James Powell wrote:
> > > 
> > > Are any plans being made to start support for these audio cards?
> > > Currently I'm using one in a system I would like to use with
> > > FreeBSD but it has no support through the kernel and driver
> > > support from OSSv4 lands me with a system that either freezes
> > > or won't boot properly.
> > 
> > Interesting. I've been using a CMI-based sound card with
> > FreeBSD 4, 5 and 7 already. See "man snd_cmi":
> > 
> > HARDWARE
> >  The snd_cmi driver supports the following sound cards:
> > 
> >  ·   CMedia CMI8338A
> >  ·   CMedia CMI8338B
> >  ·   CMedia CMI8738
> >  ·   CMedia CMI8738B
> > 
> > It lists older CMI8788 as supported devices. Doesn't it
> > provide sufficient compatibility?
> 
> Have you tried loading the generic driver to see if your audio card is picked 
> up:
> 
>   # kldload snd_driver
> 
> then try 
> 
>   # cat /dev/sndstat
> 
> which will show more info about it? That's what's recommended in the handbook.

  
___
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: text editor

2012-08-29 Thread Jamie Paul Griffin
[ dte...@freebsd.org wrote on Tue 28.Aug'12 at 16:42:06 -0700 ]

> > -Original Message-
> > From: Robin, Michael [mailto:ro...@chapman.edu]
> > Sent: Tuesday, August 28, 2012 3:42 PM
> > To: 'dte...@freebsd.org'; freebsd-questions@freebsd.org
> > Subject: RE: text editor
> > 
> > What is VIM?
> 
> A _much_ improved version of "vi" (vi is the ubiquitous UNIX text editor 
> written
> by Bill Joy in 1976), vim itself being born in 1991 by a man named Bram
> Moolenaar.
> 
> 
> > Where could it be downloaded?
> 
> As Polytropon mentioned, FreeBSD has a built-in software acquisition system.
> 
> Executing:
> 
>   pkg_add -r vim
> 
> will install the VIM text editor (immediately after-which you can type 
> "rehash"
> -- if using [t]csh -- and then "vim FILE" to start editing files).
> 
> However, I recognize the need to sometimes "know where your food comes from," 
> so
> below are some links.
> 
> NOTE: You need to know what version of FreeBSD you're using...
> 
> For recent versions of FreeBSD:
> ftp://ftp.freebsd.org/pub/FreeBSD/releases/
> 
> For older versions of FreeBSD:
> ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/
> 
> Then under there, you'll have to select "i386" for 32-bit builds, or "amd64" 
> for
> 64-bit builds (etc.).
> 
> Then under there, you'll have to select your appropriate version (e.g.,
> "8.1-RELEASE").
> 
> Then under there, you'll navigate to "packages" then either "All" or a 
> specific
> sub-category.
> 
> In there, you'll find "vim-VERSION" (ending in either ".tgz", ".tbz", or 
> ".txz",
> depending on your version of FreeBSD; mind you the suffix matters not to your
> ability to install the software).
> 
> You'll also find "gvim-VERSION" there too.
> 
> Please keep in-mind that this is _NOT_ the recommended way of electively
> installing software on FreeBSD. I'm merely explaining this so that you know
> where software for FreeBSD comes from (loosely; I'm leaving out a lot and
> choosing to focus on the consumer-side of things for the benefit of clarity).
> 
> 
> 
> > What is CLI?
> 
> Before Windows and Apple, computers were told what to do without a mouse. This
> interface was called "the command line." It has a very rich history and is 
> still
> common-place in server environments.
> 
> 
> >  I am looking for GUI/command prompt text editor for Windows 7/8.
> 
> I'd recommend getting to know something called "Cygwin". It will allow you to
> run software such as VIM on Windows.
> 
> The main website for Cygwin is:
> http://cygwin.com/
> 
> You can even run gVIM (the graphical version of VIM designed to run in the 
> GUI)
> on Windows.
> 
> Surely, you can run special versions of VIM on Windows _without_ Cygwin (link
> below), but I recommend Cygwin if you're going to program on UNIX at all
> (conflating your Windows environment with a UNIX-compatible environment is a
> convenience that many find helpful in making work more efficient).
> 
> [g]VIM for MS-DOS and/or MS-Windows:
> http://www.vim.org/download.php#pc
> 
> NOTE: There are downloads for self-installing executables for added 
> convenience.
> 
> 
> > The notepad plus program lacks start/end block setting option even though it
> > have a lot of hot keys.  My top priority is setting start/end block option
> which was
> > available for old DOS-based text editor, but I have not seen any 
> > window-based
> > text editor for this option.  16-bit DOS text editor program will not run on
> 64-bit
> > operating system.
> 
> Have you tried compatibility mode? Win7 has a compatibility mode that it can 
> run
> executables in. I think it has a compat mode that will run 16-bit DOS 
> programs,
> but I must admit that I've not tried.
> -- 
> Devin
> 
> 
> > Please advise.
> > Thank you.
> > 
> > Michael
> > Programmer Analyst
> > 
> > 
> > 
> > -Original Message-
> > From: Devin Teske [mailto:devin.te...@fisglobal.com] On Behalf Of
> > dte...@freebsd.org
> > Sent: Tuesday, August 28, 2012 3:25 PM
> > To: Robin, Michael; freebsd-questions@freebsd.org
> > Subject: RE: text editor
> > 
> > > -Original Message-
> > > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
> > > questi...@freebsd.org] On Behalf Of Robin, Michael
> > > Sent: Tuesday, August 28, 2012 3:10 PM
> > > To: 'freebsd-questions@freebsd.org'
> > > Subject: text editor
> > >
> > > Which text editor program will run 64-bit operating system
> > 
> > On FreeBSD?
> > In the GUI? or on the CLI?
> > 
> > 
> > > with following
> > > features:
> > > * Support 100 percent of hot keys
> > 
> > How many is that? If a program has programmable hot keys, would that 
> > suffice?
> > 
> > 
> > > * Hot keys available for setting start/end block to be copied, moved
> > > or
> > deleted
> > > without requiring any mouse lock.
> > > It is not possible to use mouse lock or to hold shift key combined
> > > with
> > navigating
> > > key at the same time without accidently dese4lcing.
> > 
> > A challenge, no-doubt.
> > 
> > 
> > > * Suppo

Re: Empty logfiles

2012-08-29 Thread Steve O'Hara-Smith
On Wed, 29 Aug 2012 21:59:17 +0200
Jos Chrispijn  wrote:

> Stupic question: I have a directory with 120 logfiles (extension *.log).
> Can someone tell me how I can empty these logfiles in one command?
> I thought 'echo > *.log' would work, but no way K-)

find . -name \*.log -exec truncate {} \;

man find and man truncate for the gory details.

-- 
Steve O'Hara-Smith 
___
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 perl

2012-08-29 Thread Jack Stone

On 8/29/2012 1:32 PM, Lowell Gilbert wrote:

Jack Stone  writes:


Actually, on other servers with the same upgrading needs, perl-5.12
installed without any issue. My intention is to upgrade perl in
increments to get well past EOL.

You're somewhat on your own, then; I can't test any of my ideas before
suggesting them to you.


Wonder if I just deinstalled the old perl5-5.10 and then installed the
perl5-12 would work. I can do that right from the port: make perl5-12
first to see if that works, then:
# make deinstall (perl-5.10) then: make install clean

I would be surprised if the perl-5.12 port will build for you; I think
you'll get the same error. If not, then yes, it should work.


What do you think? I've got to move up because an important perl
program requires a minimum 5.12.

Well, it's also possible that there's a local problem on that
machine. You indicated that you used portupgrade for similar updates on
similarly-aged machines, but I'll guess that they were only roughly
similar. I'll guess that you built your own INDEX file; if not, you
probably should (and the associated database for portupgrade). Compare
the infrastructure in ports/Mk (and maybe /usr/share/mk) with the
similar machines that succeeded, and look at the Makefile in perl5.12 to
make sure it sets options properly.

Good luck.



AHAH! This just came out in ports UPDATING and maybe helps:
20120820:
  AFFECTS: users of ports-mgmt/portupgrade-devel
  AUTHOR:  bdrew...@freebsd.org

  Due to a bug introduced in 20120601, portupgrade is unable to
  upgrade itself on FreeBSD 7.x. This has been fixed in 20120820.
  ports-mgmt/portupgrade is not affected. To upgrade, execute the 
following:


  # cd /usr/ports/ports-mgmt/portupgrade-devel && make deinstall 
install clean


--
--
All the best,
Jack

___
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: sendmail local-host-names questions

2012-08-29 Thread doug



On Wed, 29 Aug 2012, Gary Aitken wrote:


Can anyone explain what's going on or point me to a better place to ask?
It's now fixed but I'd like to understand why sendmail doesn't like a domain
specified with a trailing dot, since I thought that was how one specified a
fully qualified domain name.


The definitive source is /usr/src/contrib/sendmail/cf/README


Also...  I can't find anything about how to put a comment in the
local-host-names file.  I took a guess and used # as in the .mc file,
and it doesn't seem to cause errors; but neither does ';' or '%' so I'm
guessing the lines are just being skipped because they don't parse properly.
I'd like to know whether comments are allowed or not; and if so,
what the proper syntax is.


I am not sure which table you are commenting but I think some of the tables like 
virtusertable do not allow comments at the end of the line. Lines starting with 
a '#' are fine in any table. Again the README is you source



___
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: Empty logfiles

2012-08-29 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Wed Aug 29 15:02:37 2012
> Date: Wed, 29 Aug 2012 21:59:17 +0200
> From: Jos Chrispijn 
> To: freebsd-questions@freebsd.org
> Cc: 
> Subject: Empty logfiles
>
> Stupic question: I have a directory with 120 logfiles (extension *.log).
> Can someone tell me how I can empty these logfiles in one command?
> I thought 'echo > *.log' would work, but no way K-)

Assuming 'sh', or something 'syntactically equivalent':

for file in *.log ; do ; echo "" >$file ; done



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


Empty logfiles

2012-08-29 Thread Jos Chrispijn

Stupic question: I have a directory with 120 logfiles (extension *.log).
Can someone tell me how I can empty these logfiles in one command?
I thought 'echo > *.log' would work, but no way K-)

thanks
Jos Chrispijn
___
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: sendmail local-host-names questions

2012-08-29 Thread Robert Bonomi

> Date: Wed, 29 Aug 2012 01:45:19 -0600
> From: Gary Aitken 
> Subject: sendmail local-host-names questions
>
>
> Also...  I can't find anything about how to put a comment in the 
> local-host-names file.  I took a guess and used # as in the .mc file, and 
> it doesn't seem to cause errors; but neither does ';' or '%' so I'm 
> guessing the lines are just being skipped because they don't parse 
> properly. I'd like to know whether comments are allowed or not; and if 
> so, what the proper syntax is.

I don't know, off-hand, where it's documented, but '#' is what you want to use.


___
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: Wifi for Lenovo Laptop

2012-08-29 Thread Daniel Staal

On 2012-08-29 11:42, Chris wrote:

Hi,


I've tried to search the lists but can't find anything, but please
point me to an existing resource if available.

I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and
would like to get the Wifi card running (fresh FreeBSD 9.0 install),
but I'm failling as it has been at least 5 years since I used with
wifi under FreeBSD. The card is not automatically detected (interface
not listed in ifconfig) so I'm assuming I have to either load a 
kernel

module or go the NDIS path. It seems like on Windows, the same driver
is used for E430, E435, E530 and E535, so in case anyone is using one
of these models, please let me know if have things running.

So some questions that might point me in the right direction:

- How can I find out which type of card this laptop actually has (can
I read it out of dmesg, some PCI listing or whatever)?
  All I can find are product sheets saying that it has 11b/g/n, but
doesn't help me to find a driver. I
  Is there some "meta-module" that loads all the native wifi drivers
that I can use that I can test?


There's a couple of different Wifi options for that machine, so which 
one you have may make a difference.  There looks to be some information 
on identifying which card you have here:

http://www.thinkwiki.org/wiki/Wireless_Network_Adapters
(Though they don't have your model listed yet, I think it's a new 
model...)


I'm guessing you probably have a 'Thinkpad' card, which recently has 
been Realtek, but you'd have to check that.  Note that replacing it with 
a generic mini-PCI wireless card may not work: Lenovo has been known to 
have their BIOS only recognize 'official' replacement parts.


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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: Wifi for Lenovo Laptop

2012-08-29 Thread jb
Chris  yahoo.se> writes:

> ...

> I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would like
> to get the Wifi card running
> (fresh FreeBSD 9.0 install)
> ...

http://support.lenovo.com/en_GB/product-and-parts/detail.page?DocID=PD024684
Communications
Network

ThinkPad 1x1 11b/g/n PCIe Half Mini Card
ThinkPad 11b/g/n PCIe Half Mini Card
1x1 Wi-Fi + Bluetooth combo adapter
Intel Centrino® Wireless-N 2230
2x2 Wi-Fi + Bluetooth combo adapter
Bluetooth 4.0 wireless

There is a product ref file:
http://www.lenovo.com/psref/
http://www.lenovo.com/psref/pdf/edgebook.pdf
search for E530 3259.

These entries will be probably useless, but here they are:
$ dmesg -a | less
$ dmesg | grep -i wireless 

Example:
$ pciconf -lv |grep -i wireless
...
wpi0@pci0:3:0:0:class=0x028000 card=0x10118086 chip=0x42278086 rev=0x02
hdr=0x00
vendor = 'Intel Corporation'
device = 'PRO/Wireless 3945ABG [Golan] Network Connection'
class  = network
...

Note: that wpi in top line is a driver name.

$ lshal |grep -i wireless

I searched Google but no luck.

Get a recent Live CD or DVD from any Linux distro (Knoppix, Fedora, etc).

jb


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

2012-08-29 Thread Jack Stone

On 8/29/2012 1:32 PM, Lowell Gilbert wrote:

Jack Stone  writes:


Actually, on other servers with the same upgrading needs, perl-5.12
installed without any issue. My intention is to upgrade perl in
increments to get well past EOL.

You're somewhat on your own, then; I can't test any of my ideas before
suggesting them to you.


Wonder if I just deinstalled the old perl5-5.10 and then installed the
perl5-12 would work. I can do that right from the port: make perl5-12
first to see if that works, then:
# make deinstall (perl-5.10) then: make install clean

I would be surprised if the perl-5.12 port will build for you; I think
you'll get the same error. If not, then yes, it should work.


What do you think? I've got to move up because an important perl
program requires a minimum 5.12.

Well, it's also possible that there's a local problem on that
machine. You indicated that you used portupgrade for similar updates on
similarly-aged machines, but I'll guess that they were only roughly
similar. I'll guess that you built your own INDEX file; if not, you
probably should (and the associated database for portupgrade). Compare
the infrastructure in ports/Mk (and maybe /usr/share/mk) with the
similar machines that succeeded, and look at the Makefile in perl5.12 to
make sure it sets options properly.

Good luck.



Hi Lowell and thanks for the good wishes!

Yes, on the other servers which upgraded without issue are running the 
same freebsd-7.x, and the make files are identical for the perl-5.12.


I just now ran a test on a test server of same vintage and it did 
build directly in the port just using "make" to see if it would work. 
It did. The trick is to DISABLE_CONFLICTS=YES in the /etc/make.conf. 
This still doesn't mean the important production server will 
cooperatebut will have to take a risk and try it. That server has a 
bootable clone that is run every day so I can rescue the server. I 
will just to make a fresh clone right before I try the perl upgradeso 
to minimize any loss of data.


 -- All the best, Jack
___
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 perl

2012-08-29 Thread Lowell Gilbert
Jack Stone  writes:

> Actually, on other servers with the same upgrading needs, perl-5.12
> installed without any issue. My intention is to upgrade perl in
> increments to get well past EOL.

You're somewhat on your own, then; I can't test any of my ideas before
suggesting them to you. 

> Wonder if I just deinstalled the old perl5-5.10 and then installed the
> perl5-12 would work. I can do that right from the port: make perl5-12
> first to see if that works, then:
> # make deinstall (perl-5.10) then: make install clean

I would be surprised if the perl-5.12 port will build for you; I think
you'll get the same error. If not, then yes, it should work.

> What do you think? I've got to move up because an important perl
> program requires a minimum 5.12.

Well, it's also possible that there's a local problem on that
machine. You indicated that you used portupgrade for similar updates on
similarly-aged machines, but I'll guess that they were only roughly
similar. I'll guess that you built your own INDEX file; if not, you
probably should (and the associated database for portupgrade). Compare
the infrastructure in ports/Mk (and maybe /usr/share/mk) with the
similar machines that succeeded, and look at the Makefile in perl5.12 to
make sure it sets options properly.

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


Re: Upgrading perl

2012-08-29 Thread David Newman
On 8/29/12 10:59 AM, David Newman wrote:
> On 8/29/12 8:08 AM, Jack Stone wrote:
>> On 8/29/2012 8:27 AM, Lowell Gilbert wrote:
>>> Jack Stone  writes:
>>>
 uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD
 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009

 Running perl5.10 (yeah, old!)
 This is a production server.


 Been playing catchup on ports including perl as UPDATING recommends:
 portupgrade -o lang/perl5.12 -f perl-5.10.\*

 That has worked on other servers, but not this one. Anyone know what I
 need to do to clean this up??

 But, can't get past this fatal error:
 mail# portupgrade -o lang/perl5.12 -f perl-5.10.\*
 "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
 specification: "WITHOUT_"
 "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
 specification: "WITHOUT_"
 make: fatal errors encountered -- cannot continue
 ** Makefile possibly broken: lang/perl5.12:
>>> You're almost four years past the end-of-life on the release you're
>>> running, so it's been left behind in terms of support. In this case it
>>> looks (based on a *very* quick look) that you may be running into
>>> changes in how make(1) actually works, in which case backporting the
>>> ports functionality will be more work than it's worth.
>>>
>>> If the machine "can't" be updated, and assuming it's secure (which hard
>>> to be sure about with old software on the Internet), you may be best off
>>> leaving it alone.
>>>
>>> Good luck.
>>>
>>>
>> Thanks for the reply.
>>
>> Actually, on other servers with the same upgrading needs, perl-5.12
>> installed without any issue. My intention is to upgrade perl in
>> increments to get well past EOL.
>>
>> Wonder if I just deinstalled the old perl5-5.10 and then installed the
>> perl5-12 would work. I can do that right from the port: make perl5-12
>> first to see if that works, then:
>> # make deinstall (perl-5.10) then: make install clean
> 
> If you're using portmaster, you should be able to do something like the
> following from /usr/ports:
> 
>   portmaster -o lang/perl5.16 lang/perl5.10
>   portmaster p5-
> 
> and perl automagically will upgrade.

Sorry, I'd missed that you'd tried this and it isn't working.

make has changed since the 7.0 days. I agree with Jack that you're
better off leaving well enough alone. If you really need perl5.16+
capabilities you're much better off moving your program to a more recent
version of FreeBSD.

dn


> 
> This is from /usr/ports/UPDATING. You can also find instructions for
> portupgrade there.
> 
> Don't know about dependencies with 7.0, though.
> 
> dn
> 
> 
>>
>> What do you think? I've got to move up because an important perl program
>> requires a minimum 5.12.
> 
> 
> 
>>
> 
> ___
> 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: Upgrading perl

2012-08-29 Thread David Newman
On 8/29/12 8:08 AM, Jack Stone wrote:
> On 8/29/2012 8:27 AM, Lowell Gilbert wrote:
>> Jack Stone  writes:
>>
>>> uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD
>>> 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009
>>>
>>> Running perl5.10 (yeah, old!)
>>> This is a production server.
>>>
>>>
>>> Been playing catchup on ports including perl as UPDATING recommends:
>>> portupgrade -o lang/perl5.12 -f perl-5.10.\*
>>>
>>> That has worked on other servers, but not this one. Anyone know what I
>>> need to do to clean this up??
>>>
>>> But, can't get past this fatal error:
>>> mail# portupgrade -o lang/perl5.12 -f perl-5.10.\*
>>> "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
>>> specification: "WITHOUT_"
>>> "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
>>> specification: "WITHOUT_"
>>> make: fatal errors encountered -- cannot continue
>>> ** Makefile possibly broken: lang/perl5.12:
>> You're almost four years past the end-of-life on the release you're
>> running, so it's been left behind in terms of support. In this case it
>> looks (based on a *very* quick look) that you may be running into
>> changes in how make(1) actually works, in which case backporting the
>> ports functionality will be more work than it's worth.
>>
>> If the machine "can't" be updated, and assuming it's secure (which hard
>> to be sure about with old software on the Internet), you may be best off
>> leaving it alone.
>>
>> Good luck.
>>
>>
> Thanks for the reply.
> 
> Actually, on other servers with the same upgrading needs, perl-5.12
> installed without any issue. My intention is to upgrade perl in
> increments to get well past EOL.
> 
> Wonder if I just deinstalled the old perl5-5.10 and then installed the
> perl5-12 would work. I can do that right from the port: make perl5-12
> first to see if that works, then:
> # make deinstall (perl-5.10) then: make install clean

If you're using portmaster, you should be able to do something like the
following from /usr/ports:

  portmaster -o lang/perl5.16 lang/perl5.10
  portmaster p5-

and perl automagically will upgrade.

This is from /usr/ports/UPDATING. You can also find instructions for
portupgrade there.

Don't know about dependencies with 7.0, though.

dn


> 
> What do you think? I've got to move up because an important perl program
> requires a minimum 5.12.



> 

___
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: Wifi for Lenovo Laptop

2012-08-29 Thread Waitman Gobble
On Aug 29, 2012 8:44 AM, "Chris"  wrote:
>
> Hi,
>
>
> I've tried to search the lists but can't find anything, but please point
me to an existing resource if available.
>
> I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would
like to get the Wifi card running (fresh FreeBSD 9.0 install), but I'm
failling as it has been at least 5 years since I used with wifi under
FreeBSD. The card is not automatically detected (interface not listed in
ifconfig) so I'm assuming I have to either load a kernel module or go the
NDIS path. It seems like on Windows, the same driver is used for E430,
E435, E530 and E535, so in case anyone is using one of these models, please
let me know if have things running.
>
> So some questions that might point me in the right direction:
>
> - How can I find out which type of card this laptop actually has (can I
read it out of dmesg, some PCI listing or whatever)?
>   All I can find are product sheets saying that it has 11b/g/n, but
doesn't help me to find a driver. I
>   Is there some "meta-module" that loads all the native wifi drivers that
I can use that I can test?
> - If I need to use NDIS emulation, does anyone think it will work for
this model/card? Windows drivers can be found here
http://support.lenovo.com/en_US/product-and-parts/default.page).
>   The handbook (
http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html#CONFIG-NETWORK-NDIS)
says I need Win XP drivers, is that old text or do I need that? I can't
find XP drivers on the lenovo page...
> - If NDIS should be possible, how do I extract the .sys and .inf file
from the exe that I downloaded from the URL above (I don't have any Windows
machine right now).
>
> TIA,
>   Chris
>
> ___
> 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"

hi, you can usually find "replacement wifi cards" for your model on ebay,
this can give you an idea of the chipset.

also, you could always pull off the panel and look at the card.

ndis can be tricky because it needs an "older" 32 bit driver, and you need
to run a 32 bit version of FreeBSD.

a good solution is to find a ralink or atheros card on ebay and swap it
out, usually will cost less than 10 bucks USD.

Waitman Gobble
San Jose California USA
___
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: GTK and black window content

2012-08-29 Thread Anthony ''Ishpeck'' Tedjamulia
On Wed, Aug 29, 2012 at 12:43:45AM +0200, Stephan Schindel wrote:
> I have sometimes a problem with GTK applications such as Firefox, Thunderbird 
> and some others too: The whole application window gets almost black and the 
> only fix is to reboot the system. I am using KDE (disabled composite) as my 
> Desktop and I have got a Nvidia card (propr. driver).
> 
> Does this happen to you as well?

Sometimes pidgin stops drawing for me.

The program still runs.  I noticed that even tho' I can't see it,
I can send IM's to my contacts.  They get the text but the window
stays blank (just the widget background color).

Sometimes I've had to restart X.  I've never had to reboot the
computer to get this fixed.

I'm using naked openbox (no desktop environment). 

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


9.0 support for RealTek NIC - re0 driver

2012-08-29 Thread doug

This card is on a Dell Inspiron. It works perfectly on 8.x. Dmesg on 8.2
reports it as:

  re0: 

pciconf:

re0@pci0:4:0:0: class=0x02 card=0x04341028 chip=0x813610ec rev=0x02 hdr=0x00
vendor = 'Realtek Semiconductor'
device = 'Realtek 10/100/1000 PCI-E NIC Family all in one NDIS Driver 
v5.728.0604.2009 06/04/2009 (Rtl8023)'
class  = network
subclass   = ethernet

On 9.0 I got it to work once or twice out of a couple of dozen tries.

9.0 dmesg reports:

  re0: RealTek 8139C+/8169/8169S/8110S PCI ...

The release docs imply the card is supported. I did not see a PR. Anyone else 
with similiar issues?



_
Douglas Denault
http://www.safeport.com
d...@safeport.com
Voice: 301-217-9220
  Fax: 301-217-9277
___
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: reduce priority of large port builds, e.g. firefox, gcc4x

2012-08-29 Thread Anton Shterenlikht
From owner-freebsd-questi...@freebsd.org Wed Aug 29 16:52:53 2012

> Is it possible to reduce priority
> of port building processes with
> something like "nice +19 make" (tcsh syntax)?

Sure, I do it all the time.

ok, thanks.
I'll try it next time.

Anton
___
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: Building a Headless FreeBSD Virtual System

2012-08-29 Thread Ryan Frederick
When you define the virtual serial port in VirtualBox for the guest VM 
one of the options available for connection of the port to the host 
system is a named pipe (I believe it's called "Host Pipe" in the 
configuration). You can then specify whatever named pipe on the host 
system you wish to attach the VM's serial port to then use a utility 
such as `socat` to present the I/O from the named pipe as a PTY device. 
From there it's simply a matter of using a utility such as `cu` or 
`screen` to connect to the PTY.


Ryan

On 08/29/2012 10:16 AM, Martin McCormick wrote:

I am using Oracle's VirtualBox package for the Mac. It is free and I
am not sure that Dollars would get past the issue I have, here.

VirtualBox uses Microsoft's remote desktop as the one
and only output channel to allow remote access to the virtual
system one is creating and this is really bad design for
computer users who are blind and use screen readers. Pictures of
text just don't work. If you had some very complex system with
OCR, it might sort of work, but such systems don't exist as a
drop-in for a good old ASCII terminal so that's not an option.

So far, I downloaded the bootonly ISO image of
FreeBSD9.0, mounted it and added the following loader.conf:

boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
vesa_load="YES"

Next, I used VirtualBoxmanage to define the disk and
create the machine with a virtual IDE controller that is pointed
to the ISO image for FreeBSD9.0 with the serial console.

Has anybody been able to use VirtualBox and a fake
serial console to get around the remote desktop non solution?

I will probably have to add a virtual serial port in the
machine definition one puts in the original machine build, but I
am not sure this doesn't just go to that remote desktop channel
where it gets scrubbed of any usefulness except for eyeballs on
screens.

This whole thing looks very promising but there's got to
be a way around that shoe which doesn't fit in the form of that
GUI remote desk top.

In my case, the machine build goes without error but I
can't tell yet if it is even booting.

Mac's, by the way, have a relatively good screen reader
built in but VirtualBox doesn't work with it, something that is
a problem with a number of third-party programs especially when
they were originally developed for Windows. This, of course,
does not pertain to the main topic of this list, but I say it
here so that you know I am aware you are supposed to be able to
use the GUI on the Mac to manage your new virtual system.
Essentially, the local GUI and the remote desktop don't work for
me for the same reasons.

My hope is to get FreeBSD running as a guest system on
a powerful Mac and retire an old Dell server with noisy fans and
several BTU of heat output which is in the realm of 15 years old
and will probably retire itself at some random date in the
future.

Thank you for any good suggestions.

Martin McCormick WB5AGZ  Stillwater, OK
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

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


Wifi for Lenovo Laptop

2012-08-29 Thread Chris
Hi,


I've tried to search the lists but can't find anything, but please point me to 
an existing resource if available.

I recently got a Lenovo ThinkPad Edge E530 (3259-9VG) laptop and would like to 
get the Wifi card running (fresh FreeBSD 9.0 install), but I'm failling as it 
has been at least 5 years since I used with wifi under FreeBSD. The card is not 
automatically detected (interface not listed in ifconfig) so I'm assuming I 
have to either load a kernel module or go the NDIS path. It seems like on 
Windows, the same driver is used for E430, E435, E530 and E535, so in case 
anyone is using one of these models, please let me know if have things running.

So some questions that might point me in the right direction:

- How can I find out which type of card this laptop actually has (can I read it 
out of dmesg, some PCI listing or whatever)? 
  All I can find are product sheets saying that it has 11b/g/n, but doesn't 
help me to find a driver. I
  Is there some "meta-module" that loads all the native wifi drivers that I can 
use that I can test?
- If I need to use NDIS emulation, does anyone think it will work for this 
model/card? Windows drivers can be found here 
http://support.lenovo.com/en_US/product-and-parts/default.page).
  The handbook 
(http://www.freebsd.org/doc/en/books/handbook/config-network-setup.html#CONFIG-NETWORK-NDIS)
 says I need Win XP drivers, is that old text or do I need that? I can't find 
XP drivers on the lenovo page...
- If NDIS should be possible, how do I extract the .sys and .inf file from the 
exe that I downloaded from the URL above (I don't have any Windows machine 
right now).

TIA,
  Chris

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


Building a Headless FreeBSD Virtual System

2012-08-29 Thread Martin McCormick
I am using Oracle's VirtualBox package for the Mac. It is free and I
am not sure that Dollars would get past the issue I have, here.

VirtualBox uses Microsoft's remote desktop as the one
and only output channel to allow remote access to the virtual
system one is creating and this is really bad design for
computer users who are blind and use screen readers. Pictures of
text just don't work. If you had some very complex system with
OCR, it might sort of work, but such systems don't exist as a
drop-in for a good old ASCII terminal so that's not an option.

So far, I downloaded the bootonly ISO image of
FreeBSD9.0, mounted it and added the following loader.conf:

boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
vesa_load="YES"

Next, I used VirtualBoxmanage to define the disk and
create the machine with a virtual IDE controller that is pointed
to the ISO image for FreeBSD9.0 with the serial console.

Has anybody been able to use VirtualBox and a fake
serial console to get around the remote desktop non solution?

I will probably have to add a virtual serial port in the
machine definition one puts in the original machine build, but I
am not sure this doesn't just go to that remote desktop channel
where it gets scrubbed of any usefulness except for eyeballs on
screens.

This whole thing looks very promising but there's got to
be a way around that shoe which doesn't fit in the form of that
GUI remote desk top.

In my case, the machine build goes without error but I
can't tell yet if it is even booting.

Mac's, by the way, have a relatively good screen reader
built in but VirtualBox doesn't work with it, something that is
a problem with a number of third-party programs especially when
they were originally developed for Windows. This, of course,
does not pertain to the main topic of this list, but I say it
here so that you know I am aware you are supposed to be able to
use the GUI on the Mac to manage your new virtual system.
Essentially, the local GUI and the remote desktop don't work for
me for the same reasons.

My hope is to get FreeBSD running as a guest system on
a powerful Mac and retire an old Dell server with noisy fans and
several BTU of heat output which is in the realm of 15 years old
and will probably retire itself at some random date in the
future.

Thank you for any good suggestions.

Martin McCormick WB5AGZ  Stillwater, OK 
Systems Engineer
OSU Information Technology Department Telecommunications Services Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Upgrading perl

2012-08-29 Thread Jack Stone

On 8/29/2012 8:27 AM, Lowell Gilbert wrote:

Jack Stone  writes:


uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD
7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009

Running perl5.10 (yeah, old!)
This is a production server.


Been playing catchup on ports including perl as UPDATING recommends:
portupgrade -o lang/perl5.12 -f perl-5.10.\*

That has worked on other servers, but not this one. Anyone know what I
need to do to clean this up??

But, can't get past this fatal error:
mail# portupgrade -o lang/perl5.12 -f perl-5.10.\*
"/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
specification: "WITHOUT_"
"/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
specification: "WITHOUT_"
make: fatal errors encountered -- cannot continue
** Makefile possibly broken: lang/perl5.12:

You're almost four years past the end-of-life on the release you're
running, so it's been left behind in terms of support. In this case it
looks (based on a *very* quick look) that you may be running into
changes in how make(1) actually works, in which case backporting the
ports functionality will be more work than it's worth.

If the machine "can't" be updated, and assuming it's secure (which hard
to be sure about with old software on the Internet), you may be best off
leaving it alone.

Good luck.



Thanks for the reply.

Actually, on other servers with the same upgrading needs, perl-5.12 
installed without any issue. My intention is to upgrade perl in 
increments to get well past EOL.


Wonder if I just deinstalled the old perl5-5.10 and then installed the 
perl5-12 would work. I can do that right from the port: make perl5-12 
first to see if that works, then:

# make deinstall (perl-5.10) then: make install clean

What do you think? I've got to move up because an important perl 
program requires a minimum 5.12.


--
--
All the best,
Jack

___
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: reduce priority of large port builds, e.g. firefox, gcc4x

2012-08-29 Thread Ivan Voras
On 29/08/2012 15:56, Anton Shterenlikht wrote:
> Is it possible to reduce priority
> of port building processes with
> something like "nice +19 make" (tcsh syntax)?

Sure, I do it all the time.
You may even want to make a shell alias in your cshrc, i.e.

alias make nice +19 make

(or something like it)




signature.asc
Description: OpenPGP digital signature


Re: reduce priority of large port builds, e.g. firefox, gcc4x

2012-08-29 Thread Erich Dollansky
Hi,

On Wed, 29 Aug 2012 14:56:07 +0100 (BST)
Anton Shterenlikht  wrote:

> Is it possible to reduce priority
> of port building processes with
> something like "nice +19 make" (tcsh syntax)?
> 
> Here's a typical scenario for a large build
> (actually building gcc-4.7 and firefox in parallel):
> 
> last pid: 54736;  load averages:  5.27,  5.38,
> 5.11up 9+15:37:09  14:49:11 89 processes:  7
> running, 79 sleeping, 2 zombie, 1 waiting CPU 0: 19.9% user, 46.3%
> nice, 33.8% system,  0.0% interrupt,  0.0% idle CPU 1: 15.4% user,
> 39.7% nice, 44.9% system,  0.0% interrupt,  0.0% idle Mem: 1141M
> Active, 3853M Inact, 1097M Wired, 128K Cache, 823M Buf, 1914M Free
> Swap: 13G Total, 16K Used, 13G Free
> 
>   PIDUIDTHR PRI NICE   SIZERES STATE   C   TIME   WCPU
> COMMAND 54720  0  1  89   10   111M   102M RUN 1   0:04
> 24.07% cc1plus 11  0 16 -76- 0K   512K WAIT0
> 26:55 11.33% intr 54732  0  1  85   10 87976K 77872K RUN
> 0   0:01 11.28% cc1plus 3289   1001 10  200   515M   387M
> uwait   0 163:26  3.47% firefox-bin 54721   1001  1  200
> 13656K 11744K CPU00   0:00  0.10% top 54731  0  1  49
> 10 14440K 12064K wait0   0:00  0.10% g++ 54736  0  1
> 520 11240K  9856K biowr   0   0:00  0.00% as 54734  0  1
> 420 12176K 10992K wait0   0:00  0.00% c++ 54735  0
> 1  720 17696K 11336K CPU11   0:00  0.00% cc1plus
> 
> At such loads the system is noticeably slower.
> I'm not sure if nice has the same effect on
> all child processes, or only on the parent
> process?
> 
> I'd like to set the make process
> and all its child processes to run only
> when there is some idle CPU. Is it feasible?
> 
why should the command 'nice ...' not work. It worked for me when I
have had a single CPU machine without problems.

The only difference was that I packed it into a script.

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


reduce priority of large port builds, e.g. firefox, gcc4x

2012-08-29 Thread Anton Shterenlikht
Is it possible to reduce priority
of port building processes with
something like "nice +19 make" (tcsh syntax)?

Here's a typical scenario for a large build
(actually building gcc-4.7 and firefox in parallel):

last pid: 54736;  load averages:  5.27,  5.38,  5.11up 
9+15:37:09  14:49:11
89 processes:  7 running, 79 sleeping, 2 zombie, 1 waiting
CPU 0: 19.9% user, 46.3% nice, 33.8% system,  0.0% interrupt,  0.0% idle
CPU 1: 15.4% user, 39.7% nice, 44.9% system,  0.0% interrupt,  0.0% idle
Mem: 1141M Active, 3853M Inact, 1097M Wired, 128K Cache, 823M Buf, 1914M Free
Swap: 13G Total, 16K Used, 13G Free

  PIDUIDTHR PRI NICE   SIZERES STATE   C   TIME   WCPU COMMAND
54720  0  1  89   10   111M   102M RUN 1   0:04 24.07% cc1plus
   11  0 16 -76- 0K   512K WAIT0  26:55 11.33% intr
54732  0  1  85   10 87976K 77872K RUN 0   0:01 11.28% cc1plus
 3289   1001 10  200   515M   387M uwait   0 163:26  3.47% firefox-bin
54721   1001  1  200 13656K 11744K CPU00   0:00  0.10% top
54731  0  1  49   10 14440K 12064K wait0   0:00  0.10% g++
54736  0  1  520 11240K  9856K biowr   0   0:00  0.00% as
54734  0  1  420 12176K 10992K wait0   0:00  0.00% c++
54735  0  1  720 17696K 11336K CPU11   0:00  0.00% cc1plus

At such loads the system is noticeably slower.
I'm not sure if nice has the same effect on
all child processes, or only on the parent
process?

I'd like to set the make process
and all its child processes to run only
when there is some idle CPU. Is it feasible?

Thanks

Anton
___
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: Inbox driver

2012-08-29 Thread Lowell Gilbert
Venkat Duvvuru  writes:

> If a driver module misses the deadline to make it inbox , I think that it's
> gonna be part of the next Freebsd release. The sources show up in the svn
> repository, probably this is one confirmation that it's gonna be part of
> the next release..Is my understanding correct? Please clarify.

I don't know what you mean about "inbox," but basically you're
right. It's a bit more complicated, though, because the svn repository
has several "branches" -- and a feature introduced to 10.x, for example,
may or not show up in 9.x. If a feature is introduced into HEAD, you can
be pretty sure it will make it into some release eventually.

Does that help? I tried to keep it brief...
___
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 perl

2012-08-29 Thread Lowell Gilbert
Jack Stone  writes:

> uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD
> 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009
>
> Running perl5.10 (yeah, old!)
> This is a production server.
>
>
> Been playing catchup on ports including perl as UPDATING recommends:
> portupgrade -o lang/perl5.12 -f perl-5.10.\*
>
> That has worked on other servers, but not this one. Anyone know what I
> need to do to clean this up??
>
> But, can't get past this fatal error:
> mail# portupgrade -o lang/perl5.12 -f perl-5.10.\*
> "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
> specification: "WITHOUT_"
> "/usr/ports/Mk/bsd.options.mk", line 231: Error in archive
> specification: "WITHOUT_"
> make: fatal errors encountered -- cannot continue
> ** Makefile possibly broken: lang/perl5.12:

You're almost four years past the end-of-life on the release you're
running, so it's been left behind in terms of support. In this case it
looks (based on a *very* quick look) that you may be running into
changes in how make(1) actually works, in which case backporting the
ports functionality will be more work than it's worth.

If the machine "can't" be updated, and assuming it's secure (which hard
to be sure about with old software on the Internet), you may be best off
leaving it alone.

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


Re: Partitioning with gpart

2012-08-29 Thread Lynn Steven Killingsworth
On Tue, 28 Aug 2012 21:33:16 -0400, Warren Block   
wrote:



On Tue, 28 Aug 2012, Lynn Steven Killingsworth wrote:


I have installed PC-BSD 9.1 RC1 last week.  Very nice I must say.

The default file system is zfs.  I have one storage disk which is ufs  
and another which is on an mbr partition.  I thought I would format the  
mbr disk with zfs and move everything from the ufs disk and then format  
the ufs disk with zfs.


I have not tried the command line before so I just tried to create over  
the disk with: gpart create -s gpt ada2


The message is that ada2 already exists as a file system.


The exact message would help; gpart is not a filesystem tool.


Show indicates that it is not gpt but mbr.

Then in order to start over I tried to delete and destroy by starting  
with:


gpart delete -i 1 ada2s1

The message is that ada2s1 is an invalid argument.

I cannot experiment on my backup as it has only one disk.


gpart takes a -F option to destroy which makes it unnecessary to delete  
all the partitions first.  Back up data first, and make certain that you  
and the computer agree on which drive is which.


Great.  My storage disks are formatted with zfs and my files are moved.   
Thanks.


--
Steve
Blue Seahorse Syndicate
http://www.blueleafsyndicate.org
Maine & New Hampshire
Using Opera's revolutionary email client: http://www.opera.com/mail/
___
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: TLS config help

2012-08-29 Thread Jamie Paul Griffin
[ Matthias Fechner wrote on Wed 29.Aug'12 at 11:20:37 +0200 ]

> Am 29.08.12 12:38, schrieb AN:
> > Trying to configure TLS and sendmail using the following steps
> 
> I use:
> cd /etc/mail/certs
> 
> 
> Create a CA:
> 
> - Edit /etc/ssl/openssl.cfn -> default_days= 1825
> - Generate CAcertificate
> -> /usr/src/crypto/openssl/apps/CA.pl -newca
> cp demoCA/cacert.pem .
> 
> Create a key:
> 
> /usr/src/crypto/openssl/apps/CA.pl -newreq
> 
> Remove passphrase from key:
> 
> openssl rsa -in newkey.pem -out key.pem
> 
> Sign key:
> 
> /usr/src/crypto/openssl/apps/CA.pl -sign
> 
> Set permissions:
> 
> chmod 0600 *
> 
> Sendmail:
> 
> define(`confCACERT_PATH',`/etc/mail/certs')
> define(`confCACERT',`/etc/mail/certs/cacert.pem')
> define(`confSERVER_CERT',`/etc/mail/certs/newcert.pem')
> define(`confSERVER_KEY',`/etc/mail/certs/key.pem')
> define(`confCLIENT_CERT',`/etc/mail/certs/newreq.pem')
> define(`confCLIENT_KEY',`/etc/mail/certs/key.pem')
> 
> DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
> DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
> 
> Bye,
> Matthias

That's very handy info, I am planning on setting up TLS for sendmail myself. So 
thanks to the OP for asking that question, although i'm sure there's loads of 
info on the net as well. I've only used Postfix before now, but since 
installing FBSD on this machine I thought i'd stick to using base MTA.

Jamie
___
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: sendmail local-host-names questions

2012-08-29 Thread Jamie Paul Griffin
[ Gary Aitken wrote on Wed 29.Aug'12 at  1:45:19 -0600 ]

> 
> Also...  I can't find anything about how to put a comment in the 
> local-host-names file.  I took a guess and used # as in the .mc file,
> and it doesn't seem to cause errors; but neither does ';' or '%' so I'm
> guessing the lines are just being skipped because they don't parse properly.
> I'd like to know whether comments are allowed or not; and if so, 
> what the proper syntax is.
> 
> Thanks for any hints,
> 
> Gary

Hi Gary, you don't put dots at the end of the domain names in that file. In 
mine, i've just got:

kontrol.kode5.net # the hostname of the machine; and
kode5.net # my domain

I haven't put those comments in it either, just the host and domain information.

The Sendmail site does have quite a bit of information actually about 
configuration. I was setting up Sendmail on my machine just a week ago in fact 
and got most of the info from that site. Also the FreeBSD handbook. 

I also run a local DNS server (BIND/named) which I recommend you look into with 
a view to setting it up. It does make a difference, especially if you have 
several machines on your LAN. It's not as hard as it first appears. In fact the 
default installation is already configured for a local caching nameserver. I 
have added my own zone files as well which is all explained on the Handbook.

Jamie
___
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: text editor

2012-08-29 Thread Theodor-Iulian Ciobanu
On Tue, 28 Aug 2012 22:41:52 +
"Robin, Michael"  wrote:

> What is VIM?  Where could it be downloaded?
> What is CLI?  I am looking for GUI/command prompt text editor for
> Windows 7/8. The notepad plus program lacks start/end block setting
> option even though it have a lot of hot keys.

You might want to check out SciTE as well (GUI editor). It's available
from ports in editors/scite and the Windows version can be downloaded
from:
http://www.scintilla.org/SciTEDownload.html

> My top priority is setting start/end block option which was available
> for old DOS-based text editor, but I have not seen any window-based
> text editor for this option.  16-bit DOS text editor program will not
> run on 64-bit operating system. Please advise. Thank you.

None of the current 64bit versions of Windows include NTVDM (the DOS
emulator).

> Michael
> Programmer Analyst
> 
>  
> 
> -Original Message-
> From: Devin Teske [mailto:devin.te...@fisglobal.com] On Behalf Of
> dte...@freebsd.org Sent: Tuesday, August 28, 2012 3:25 PM
> To: Robin, Michael; freebsd-questions@freebsd.org
> Subject: RE: text editor
> 
> > -Original Message-
> > From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd- 
> > questi...@freebsd.org] On Behalf Of Robin, Michael
> > Sent: Tuesday, August 28, 2012 3:10 PM
> > To: 'freebsd-questions@freebsd.org'
> > Subject: text editor
> > 
> > Which text editor program will run 64-bit operating system
> 
> On FreeBSD?
> In the GUI? or on the CLI?
> 
> 
> > with following
> > features:
> > * Support 100 percent of hot keys
> 
> How many is that? If a program has programmable hot keys, would that
> suffice?
> 
> 
> > * Hot keys available for setting start/end block to be copied,
> > moved or
> deleted
> > without requiring any mouse lock.
> > It is not possible to use mouse lock or to hold shift key combined 
> > with
> navigating
> > key at the same time without accidently dese4lcing.
> 
> A challenge, no-doubt.
> 
> 
> > * Support special ASCII characters
> > 
> 
> Less of a challenge. Most editors are good about special ASCII
> characters (the ones that don't are in the minority, imho).
> 
> ...
> 
> I'd honestly recommend vim (CLI) or gvim (GUI).
> 
> NOTE: Assuming FreeBSD here.
___
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: TLS config help

2012-08-29 Thread Matthias Fechner
Am 29.08.12 12:38, schrieb AN:
> Trying to configure TLS and sendmail using the following steps

I use:
cd /etc/mail/certs


Create a CA:

- Edit /etc/ssl/openssl.cfn -> default_days= 1825
- Generate CAcertificate
-> /usr/src/crypto/openssl/apps/CA.pl -newca
cp demoCA/cacert.pem .

Create a key:

/usr/src/crypto/openssl/apps/CA.pl -newreq

Remove passphrase from key:

openssl rsa -in newkey.pem -out key.pem

Sign key:

/usr/src/crypto/openssl/apps/CA.pl -sign

Set permissions:

chmod 0600 *

Sendmail:

define(`confCACERT_PATH',`/etc/mail/certs')
define(`confCACERT',`/etc/mail/certs/cacert.pem')
define(`confSERVER_CERT',`/etc/mail/certs/newcert.pem')
define(`confSERVER_KEY',`/etc/mail/certs/key.pem')
define(`confCLIENT_CERT',`/etc/mail/certs/newreq.pem')
define(`confCLIENT_KEY',`/etc/mail/certs/key.pem')

DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl

Bye,
Matthias

-- 
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
___
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: Partitioning with gpart

2012-08-29 Thread Thomas Mueller
from "Lynn Steven Killingsworth" :

> I have installed PC-BSD 9.1 RC1 last week.  Very nice I must say.

> The default file system is zfs.  I have one storage disk which is ufs and
> another which is on an mbr partition.  I thought I would format the mbr
> disk with zfs and move everything from the ufs disk and then format the
> ufs disk with zfs.

> I have not tried the command line before so I just tried to create over
> the disk with: gpart create -s gpt ada2

> The message is that ada2 already exists as a file system.

> Show indicates that it is not gpt but mbr.

> Then in order to start over I tried to delete and destroy by starting with:

> gpart delete -i 1 ada2s1

> The message is that ada2s1 is an invalid argument.

> I cannot experiment on my backup as it has only one disk.

> Comment please?

Either gpt (included in FreeBSD prior to the switch to gpart) or gdisk (now at 
v0.8.5 and in FreeBSD ports) can migrate an MBR-partitioned disk to GPT without 
loss of data in many cases, though backing up is still advised.

You can find information about gdisk at
http://www.rodsbooks.com/gdisk/

gdisk is much more versatile than gpart, can be used to make partitions for 
Windows, Linux, NetBSD, etc.

I don't think you can get gpt for FreeBSD, but if you're curious, you can go to
http://www.netbsd.org/
and look for the documentation/man pages.

It was gpt in NetBSD that I used to migrate an NTFS partition (MBR) spanning an 
entire 3 TB Western Digital My Book USB 3.0 hard drive to GPT, no data was lost.

I subsequently booted Linux from the System Rescue CD (http://sysresccd.org/) 
and copied the software/data to a USB stick so I could free the USB 3.0 hard 
drive for better things.  Maybe I could have done the repartitioning with 
gdisk, which is included on the System Rescue CD, this would be Linux.

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


sendmail local-host-names questions

2012-08-29 Thread Gary Aitken
Sorry if this is a bit off topic;
couldn't find an answer on the net anywhere and sendmail.org seems to be 
non-functional unless you're a commercial customer; 
or at least that's the way it looks to me, 
as it's redirected to sendmail.com and their "Ask the Experts" page
has no way to ask anybody anything :-)

Anyhoo...

I was setting up a virtual domain and mistakenly set my local-host-names file
to have trailing dots after the domain and host names.
This caused mail sent to the domain(s) to be bounced with the message:
  554 5.0.0 MX list for dreamchaser.org. points back to nightmare.dreamchase
r.org
  554 5.3.5 Local configuration error
Which caused me to tear my hair out (what little I have left) trying to fix
a non-existent DNS configuration error.

The maillog shows a similar message:

  Aug 28 23:10:05 nightmare sm-mta[50394]:
q7T59w8M050394: to=a...@dreamchaser.org, delay=00:00:07, xdelay=00:00:00,
mailer=esmtp, pri=62332, relay=dreamchaser.org., dsn=5.3.5,
stat=Local configuration error 
  Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: q7T59w8N050394:
return to sender: Local configuration error
  Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8N050394: 
to=a...@dreamchaser.org,
delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=33356, 
relay=dreamchaser.org., dsn=5.3.5, stat=Local configuration error
  Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394:
Losing ./qfq7T59w8M050394: savemail panic
  Aug 28 23:10:05 nightmare sm-mta[50394]: q7T59w8M050394: SYSERR(root): 
savemail: cannot save rejected email anywhere
  
Can anyone explain what's going on or point me to a better place to ask?
It's now fixed but I'd like to understand why sendmail doesn't like a domain
specified with a trailing dot, since I thought that was how one specified a 
fully qualified domain name.

Also...  I can't find anything about how to put a comment in the 
local-host-names file.  I took a guess and used # as in the .mc file,
and it doesn't seem to cause errors; but neither does ';' or '%' so I'm
guessing the lines are just being skipped because they don't parse properly.
I'd like to know whether comments are allowed or not; and if so, 
what the proper syntax is.

Thanks for any hints,

Gary
___
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: text editor

2012-08-29 Thread Thomas Mueller
On getting vim text editor ("vi improved") for FreeBSD, you can either pkg_add 
or use the ports system, where you build from source code with a convenient 
setup.  You can check http://www.freebsd.org/ and check the documentation, 
including the handbook and ports system.

I've heard of Cygwin but never run it because I don't have MS-Windows 
installed.  From what I read, it creates a Unix-like environment under 
MS-Windows.

I hear that MS is getting rid of 16-bit DOS compatibility, so you might not be 
able to run DOS software under Win 7.  But you can go to

http://www.dosbox.com/

DOSBox can run under current Unix-like OSes and also MS-Windows.  You may be 
able to download a win32 installer, I just found it there, would that run on 
64-bit Windows?

I have run (Borland) Quattro Pro 5 for DOS under Linux, NetBSD and FreeBSD with 
DOSBox.

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


PROMOTION - Ready Made / Custom Made Calendars 2013 / Notebooks (M'sia)

2012-08-29 Thread Malaysia Printing

Are You looking for printing READY MADE CALENDARS, CUSTOM MADE CALENDARS or
NOTEBOOKS/NOTEPADS?
Contact us to find out more. We have wide selections for you to choose from.

Call  1800 88 8980 / 012-387 0303 / 016-311 9648 / 03-8945 8733.
Visit us at   www.asiaprintmart.com or Email
to i...@asiaprintmart.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"