Re: Upgrading packages

2009-09-02 Thread Chris
On Wed, 02 Sep 2009 09:50:08 +0400
Boris Samorodov b...@ipt.ru wrote:

 On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote:
  On Wed, 02 Sep 2009 09:17:12 +0400
  Boris Samorodov b...@ipt.ru wrote:
   On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote:
   
Probably a long time discussed question:
Updating a system is (or can be) done with freebsd-update.
What is the suggested way of upgrading packages (not ports)?
   
   The port sysutils/bsdadminscripts has a script pkg_upgrade
   to upgrade packages.
 
  Thanks - although, this seems a moot point if one sticks with
  RELEASE (until a point release that is I suppose).
 
 Packges are build for STABLE as well:
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/
 

I do realize this however, if one stays with RELEASE (and not deal with
the possible (I did say possible) headaches of a changing base system)
then (as I read it from the Handbook) updating packages is moot. They
won't change until the next point release.

I'm just trying to determine the way I want to move back to FreeBSD and
not repeat the episodes of upgrades due to installing ports. This
turned out to be a weekly event that took the majority of my Friday
nights.

I admit that I have gotten spoiled with Linux updates (all binary - no
issues, no breakage, and no dependency-hell like there used to be with
Ports). Of course, I'm sure that dealing with Ports has improved in the
2 years I was on my sabbatical, but I did get used to actually using
and enjoying my puter (again, my biased view point on when I used
to use FreeBSD).

And now for the last question - I know there were issues mounting ext2
(128 bit) but have since been corrected. This is important to me in the
short term. 

What version (I know the upcoming 8 will have it) now has the patch I
have about that supports ext2/128 bit?  If it's 7.2, I assume that
updating the src should or would take care of it?

Once I have recommitted back to FBSD, I would convert the drives that
are currently ext3.

I'm not trolling nor trying to start an OS war, just some questions I
need to get clarity on before I wipe and install. If all my ducks are in
a row, my transition back should be rather pleasant or at worse, not
happen at all.

Thanks for your time.

-- 
Best regards,

Chris

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

There's no place like 127.0.0.1

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

2009-09-02 Thread Boris Samorodov
On Wed, 2 Sep 2009 01:08:54 -0500 Chris wrote:
 On Wed, 02 Sep 2009 09:50:08 +0400
 Boris Samorodov b...@ipt.ru wrote:
  On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote:

   Thanks - although, this seems a moot point if one sticks with
   RELEASE (until a point release that is I suppose).
  
  Packges are build for STABLE as well:
  ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/

 I do realize this however, if one stays with RELEASE (and not deal with
 the possible (I did say possible) headaches of a changing base system)
 then (as I read it from the Handbook) updating packages is moot. They
 won't change until the next point release.

The thing is that those packages (called FreeBSD-stable-packages)
can (and imo) should be used with RELEASE either. The ports tree
is always HEAD. And -stable- for packages means only that they
were build after -release- packages.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: remove newlines from a file

2009-09-02 Thread Jonathan McKeown
[Agghh. To list this time]

On Tuesday 01 September 2009 20:03:19 Paul Schmehl wrote:
 I found a sed tutorial once that did this, but I can't seem to find it
 again. I have a file with multiple lines, each of which contains a single
 ip followed by a /32 and a comma.  I want to combine all those lines into a
 single line by removing all the newline characters at the end of each line.

 What's the best/most efficient way of doing that in a shell?

I'd use rs(1).

inputfile rs -C\

(The \ is escaping a space delimiter.)

unless I was worried about maximum length of output lines, in which case

inputfile xargs

Jonathan
___
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: Daily security report oddity...

2009-09-02 Thread Mark Stapper
Kurt Buff wrote:
 I got a daily security run email from one of my machines on Monday
 morning, with the following entry:

  zmx1.zetron.com login failures:
  Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2
  Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0

 What's puzzling is that this account has been completely inactive for
 well over a year - this fellow is long gone, and I simply didn't clean
 it up - that's my bad, but that's not the puzzling part.

 I traced it down, and found out that he had not logged in on Sunday.
 The auth.log is, as you can see from the listing below, quite old. The
 entries referenced above are from two years ago.

   zmx1# ll /var/log/a*
   -rw---  1 root  wheel  71845 Sep  1 15:42 /var/log/auth.log
   -rw---  1 root  wheel   6087 Aug 29  2007 /var/log/auth.log.0.bz2
   -rw---  1 root  wheel   5774 Aug 12  2007 /var/log/auth.log.1.bz2
   -rw---  1 root  wheel   5795 Jul 24  2007 /var/log/auth.log.2.bz2
   -rw---  1 root  wheel   6813 Jul  6  2007 /var/log/auth.log.3.bz2


 So, a couple of questions:

 Why would the daily security run pick up something from *two years
 ago* and only report it again today? The machine hasn't been rebooted
 in a very long time, if that makes a difference.

 Is there any way to prevent something like this happening again - or
 perhaps can I force the entry of the year into the date field for the
 auth.log entries?

 Kurt
 ___
 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
   
Hello,

If you look at the syntax of the logfile, you will see no year is listed.
Most likely the whole file is parsed on security run. Since the logfile
has been rotated the 30th of august 2007, it's very much possible you'll
get all your messages all over again.
Perhaps it's wise to rotate you logfiles once a year just in case...
And it make no difference the machine hasn't been rebooted in a very
long time... (define very long time ;-)
http://uptimes-project.org/hosts/view/150 )




signature.asc
Description: OpenPGP digital signature


portupgrade broken, and apr won't build

2009-09-02 Thread DA Forsyth
Hiya all

Something weird going on with portypgrade (and maybe ports in 
general) here.  Somewhere between last months upgrade and this month, 
portupgrade has started to ignore ports that are reported by 
portversion as needing upgrading.  The result is I have to force each 
one, one at a time.  Big schlep.

For example
 portversion -v | grep samba
samba-3.0.35,1needs updating (port has 3.0.36,1)

 portupgrade -vr samba
---  Session started at: Wed, 02 Sep 2009 10:18:47 +0200
** None has been installed or upgraded.
---  Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed 
00:00:00)

The other thing is that devel/apr will not build.  The make stops 
with this
...
 checking whether it is safe to define __EXTENSIONS__... yes
 checking for library containing strerror... none required
 checking whether system uses EBCDIC... no
 performing libtool configuration...
 ./configure: 9753: Syntax error: word unexpected (expecting ))
 *** Error code 2

 Stop in /usr/ports/devel/apr.
 *** Error code 1

 Stop in /usr/ports/devel/apr.

I cvsup every Monday morning.  I tried the upgrades last week but got 
these failures and decided to wait a week and see if there are fixes.
Apparently not.  I also had to manually fix the openssl distfile 
(missing MD5 and SH256) so that it would actually download the 
missing patch and confirm it.  I have never had so much trouble with 
the port system, who broke it? -:

Any ideas?


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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: apr won't build

2009-09-02 Thread DA Forsyth
replyign to myself, sor tof, seems this fixes it

http://www.mail-archive.com/freebsd-po...@freebsd.org/msg22758.html

remove all old cruft from libtool15 if you have upgraded to libtool22


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
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


SAM Service Asset Manager (Sept 09)

2009-09-02 Thread Hunter Systems
This message is in MIME format. Since your mail reader does not understand this 
format, some or all of this message may not be legible.
___
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: netbooks and sdhci

2009-09-02 Thread Saifi Khan
On Tue, 1 Sep 2009, David Horwitt wrote:

 
 So my question is: does anybody know _for sure_ of a hard-disk netbook with a
 media reader that uses the sdhci interface
 and is supported by FBSD 7.2 (supported = wireless,X,USB). $USD300 (like the
 AA1-D250) is the desired price point, but
 up to about $USD400 is OK (as is FBSD 8.0, if the hardware is right). If you
 have any pointers, please
 include the sub-model information, because if it's anything like the Asus, the
 hardware varies all over the place, and
 'Aspire One' means less than 'D250' or 'AO150'.
 
 Thank you,
 David
 

Acer Aspire One D150. note 'Acer' ! is what i'd recommend.

This is a hard-disk netbook.

Here are the complete hardware and installation details
http://www.twincling.org/node/451

The website
http://www.acer.com/aspireone/about.html

In India it costed me about INR 21,500 (or $430) in March 2009.
YMMV.


thanks
Saifi.

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


Re: Upgrading packages

2009-09-02 Thread Chris
On Wed, 02 Sep 2009 10:42:02 +0400
Boris Samorodov b...@ipt.ru wrote:

 On Wed, 2 Sep 2009 01:08:54 -0500 Chris wrote:
  On Wed, 02 Sep 2009 09:50:08 +0400
  Boris Samorodov b...@ipt.ru wrote:
   On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote:
 
Thanks - although, this seems a moot point if one sticks with
RELEASE (until a point release that is I suppose).
   
   Packges are build for STABLE as well:
   ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/
 
  I do realize this however, if one stays with RELEASE (and not deal
  with the possible (I did say possible) headaches of a changing base
  system) then (as I read it from the Handbook) updating packages is
  moot. They won't change until the next point release.
 
 The thing is that those packages (called FreeBSD-stable-packages)
 can (and imo) should be used with RELEASE either. The ports tree
 is always HEAD. And -stable- for packages means only that they
 were build after -release- packages.
 

I'll paraphrase what you said as I understand you;

Upgrading packages to a RELEASE system (by way of setting set
PACKAGESITE to reflect:
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/)
Would indeed keep them updated whereas the default PACKAGESITE setting
would do nothing more then install the packages that were created at the
time of RELEASE.

So in short, Yes, there is a way I can run RELEASE while still getting
updated packages using pkg_upgrade as long as I set PACKAGESITE.

Now - I just need that last question answered about mounting ext2 and
I'm off to install.

-- 
Best regards,

Chris

()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

There's no place like 127.0.0.1

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

2009-09-02 Thread Boris Samorodov
On Wed, 2 Sep 2009 05:12:25 -0500 Chris wrote:

 I'll paraphrase what you said as I understand you;

 Upgrading packages to a RELEASE system (by way of setting set
 PACKAGESITE to reflect:
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/)
 Would indeed keep them updated whereas the default PACKAGESITE setting
 would do nothing more then install the packages that were created at the
 time of RELEASE.

 So in short, Yes, there is a way I can run RELEASE while still getting
 updated packages using pkg_upgrade as long as I set PACKAGESITE.

Correct.

 Now - I just need that last question answered about mounting ext2 and
 I'm off to install.

Not me, sorry.

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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


'alias' + sudo

2009-09-02 Thread Jerry
I have set up several 'alias' definitions in my .bashrc file. They are
honored when run as either a regular user or as root. However, when I
prefix a command with 'sudo', the alias is no longer honored. In other
words, the actual command is run;however, any flags that I was passing
to it via 'alias' are lost. How can I circumvent this annoyance.

Example, I often use 'pico' from within 'xterm'. I set up an alias that
causes pico to use the mouse; i.e., pico -m which works fine as long as
I do not prefix the command with 'sudo'

-- 
Jerry
ges...@yahoo.com

I just need enough to tide me over until I need more.

Bill Hoest
___
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: 32 bit ports on an AMD64 system

2009-09-02 Thread Jim
On Tue, Sep 1, 2009 at 1:39 PM, b. f.bf1...@googlemail.com wrote:
 You've given some of your reasons for using amd64 -- but are your
 reasons for using 32-bit binaries on amd64 strong enough to make all
 of this worthwhile?  Why not just use 64-bit binaries for all but the
 32-bit-only ports?  Sure, some 32-bit applications will actually run
 faster (the opposite is also often true) or use fewer resources, but
 is it worth the hassle?

Mostly that's what I want to do. However I'd like to do some Python QT
development with PyQT4, and would like to test the performance using
py-psycho (i386 bit only). In that situation, I'm not sure if I'll
have to install QT4 as 32 bit or not, likewise for X...

It's a bit messy, but we'll see what happens.

Thanks for all the advice and help,
-Jim Stapleton
___
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: memory usage displsy

2009-09-02 Thread Bill Moran
In response to Per olof Ljungmark p...@intersonic.se:

 Dan Nelson wrote:
  In the last episode (Sep 01), Bill Moran said:
  In response to Per olof Ljungmark p...@intersonic.se:
  What is a good way to find out how memory is used? Have a 6.4 box where
  memory is used by something but I fail to see what is using it - tried
  different switches to ps(1), tried the stat tools but a big chunk of
  memory does not show at all.
 
  A proper tool for analyzing memory usage live, this is a production
  box?
  I've always been able to get what I need from top.  You can do -o res to
  sort by resident memory usage, which helps.
  
  ps will sort by memory usage when given the -m flag.  Also check ipcs -a to
  see if there are any sysv shared memory segments hanging arnound.  If you
  don't see anything using the memory, where are you seeing that something
  is using it?
  
 
 ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. 
 Still over 3G Active.

snip

You did not sort by res and there are only 40 processes showing, which
means your output is truncated and may have truncated the problematic
process.

Please use top -o res to get the output sorted by memory usage, or
don't truncate the output (former preferred).

Also, please provide the output of ipcs -a

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: portupgrade broken, and apr won't build

2009-09-02 Thread Kent Stewart
On Wednesday 02 September 2009 01:22:37 am DA Forsyth wrote:
 Hiya all

 Something weird going on with portypgrade (and maybe ports in
 general) here.  Somewhere between last months upgrade and this month,
 portupgrade has started to ignore ports that are reported by
 portversion as needing upgrading.  The result is I have to force each
 one, one at a time.  Big schlep.

 For example

  portversion -v | grep samba

 samba-3.0.35,1needs updating (port has 3.0.36,1)

  portupgrade -vr samba

 ---  Session started at: Wed, 02 Sep 2009 10:18:47 +0200
 ** None has been installed or upgraded.
 ---  Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed
 00:00:00)

 The other thing is that devel/apr will not build.  The make stops
 with this
 ...
  checking whether it is safe to define __EXTENSIONS__... yes
  checking for library containing strerror... none required
  checking whether system uses EBCDIC... no
  performing libtool configuration...
  ./configure: 9753: Syntax error: word unexpected (expecting ))
  *** Error code 2

  Stop in /usr/ports/devel/apr.
  *** Error code 1

  Stop in /usr/ports/devel/apr.

 I cvsup every Monday morning.  I tried the upgrades last week but got
 these failures and decided to wait a week and see if there are fixes.
 Apparently not.  I also had to manually fix the openssl distfile
 (missing MD5 and SH256) so that it would actually download the
 missing patch and confirm it.  I have never had so much trouble with
 the port system, who broke it? -:

 Any ideas?

My experience with portupgrade problems like this is that your INDEX-? and 
INDEX-?.db aren't being created properly after cvsuping. Portversion doesn't 
depend on them but portupgrade does. The INDEX-? that you download is always 
out of date. I use p5-FreeBSD-Portindex to keep them incrementally up todate, 
which is much faster then building the INDEX from scratch.

After awhile, you have a mess and things don't build because the dependencies 
haven't been built.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.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: memory usage displsy

2009-09-02 Thread Per olof Ljungmark

Bill Moran wrote:

In response to Per olof Ljungmark p...@intersonic.se:


Dan Nelson wrote:

In the last episode (Sep 01), Bill Moran said:

In response to Per olof Ljungmark p...@intersonic.se:

What is a good way to find out how memory is used? Have a 6.4 box where
memory is used by something but I fail to see what is using it - tried
different switches to ps(1), tried the stat tools but a big chunk of
memory does not show at all.

A proper tool for analyzing memory usage live, this is a production
box?

I've always been able to get what I need from top.  You can do -o res to
sort by resident memory usage, which helps.

ps will sort by memory usage when given the -m flag.  Also check ipcs -a to
see if there are any sysv shared memory segments hanging arnound.  If you
don't see anything using the memory, where are you seeing that something
is using it?

...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. 
Still over 3G Active.


snip

You did not sort by res and there are only 40 processes showing, which
means your output is truncated and may have truncated the problematic
process.

Please use top -o res to get the output sorted by memory usage, or
don't truncate the output (former preferred).

Also, please provide the output of ipcs -a



There was no more processes...

ipcs -a
Message Queues:
T   ID  KEY MODEOWNERGROUPCREATOR 
CGROUP CBYTES QNUM   QBYTES 
   LSPIDLRPID STIMERTIMECTIME


Shared Memory:
T   ID  KEY MODEOWNERGROUPCREATOR 
CGROUP NATTCHSEGSZ CPID LPID ATIME 
DTIMECTIME


Semaphores:
T   ID  KEY MODEOWNERGROUPCREATOR 
CGROUP  NSEMS OTIMECTIME

___
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: memory usage displsy

2009-09-02 Thread Bill Moran
In response to Per olof Ljungmark p...@intersonic.se:

 Bill Moran wrote:
  In response to Per olof Ljungmark p...@intersonic.se:
  
  Dan Nelson wrote:
  In the last episode (Sep 01), Bill Moran said:
  In response to Per olof Ljungmark p...@intersonic.se:
  What is a good way to find out how memory is used? Have a 6.4 box where
  memory is used by something but I fail to see what is using it - tried
  different switches to ps(1), tried the stat tools but a big chunk of
  memory does not show at all.
 
  A proper tool for analyzing memory usage live, this is a production
  box?
  I've always been able to get what I need from top.  You can do -o res to
  sort by resident memory usage, which helps.
  ps will sort by memory usage when given the -m flag.  Also check ipcs -a 
  to
  see if there are any sysv shared memory segments hanging arnound.  If you
  don't see anything using the memory, where are you seeing that something
  is using it?
 
  ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. 
  Still over 3G Active.
  
  snip
  
  You did not sort by res and there are only 40 processes showing, which
  means your output is truncated and may have truncated the problematic
  process.
  
  Please use top -o res to get the output sorted by memory usage, or
  don't truncate the output (former preferred).
  
  Also, please provide the output of ipcs -a
 
 There was no more processes...

From your top output:
 45 processes:  1 running, 44 sleeping

There were 40 processes listed, so there were 5 not shown.

 ipcs -a

OK, this verifies that nothing is tied up in shared memory.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: having problems copying a dvd

2009-09-02 Thread Sergio de Almeida Lenzi
Hello

Thanks Roland for the parameters in the mplayer/mencoder...

To make things easier.. I recomend to create a profile 
in the directory ~/.mplayer/mencoder.conf with the content:
=
[pal]
oac=lavc=yes
ovc=lavc=yes
lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000
Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10
lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9
lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0
lavcopts=acodec=ac3:abitrate=192
lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1
vf=scale=720:576,harddup=yes 
af=lavcresample=48000
mpegopts=format=dvd:tsaf=yes
of=mpeg=yes
srate=48000
channels=2
ofps=25

[pal_cinemascope]
profile=pal
vf=scale=720:432,expand=720:576,harddup=yes 
==

Or using the options from Roland
extract the stream (as Roland said...)  mplayer dvd://1 -dumpstream
-dumpfile dvd.mpg
crop detect...   mplayer -vf cropdetect dvd.mpg

and then finally encode with mencoder using the profile above and
Roland's example...

mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg

the result will be a high definition video with 1024x576 PAL (25 fps)
16:9 aspect with audio AC3 192Kbps (plays using HDMI)
in any dvd player... or in your computer.
if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope
and mencoder will adjust the aspect for the video.


___
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


You have one new message from Wal-Mart

2009-09-02 Thread Wal-Mart Services

   You have been selected to access the Walm= art 2  Steps Survey and
   win a $150.00 gift certificate.

   Please [1]Click  Here and complete the form to receive your reward.
   Thank you.

   This is an automated message. Please don'= t reply.  Message ID:
   0019362574-WMRTSRV.

References

   1. 3Dhttp://www.mathx.be/pag___
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: memory usage displsy

2009-09-02 Thread Mel Flynn
On Tuesday 01 September 2009 23:19:23 Michael David Crawford wrote:
 Per olof Ljungmark wrote:
  Well, my problem is that if I add up all I *can* see in top or ps it
  never gets near the by now 3G plus memory shown as Active. Maybe one
  gig is accounted for,

 I'm not that familiar with FreeBSD yet, but the kernel uses memory which
 might not be charged against any process.

 For example, to map some virtual memory requires memory to store the
 mappings in.

 Open files have kernel structures, as do filesystems.

 If top or ps were only to show userspace memory allocations, then you're
 right, a lot of memory would be unaccounted for.

It doesn't for the Active to Free states. For individual processes, everything 
is shown that the process allocates. So for a file descriptor, an int would be 
allocated, where the kernel holds the real info.

This is one cause for filled Active memory: a process polling multiple file 
descriptors, like a File Alteration Monitor under current desktops.

The other, as Dan Nelson described, is file cache. If you want to be sure it's 
this, then reboot the machine and run:
/etc/periodic/security/100.chksetuid

You should see memory usage going up. If this causes a performance problem 
(i.e. You sometimes are subject to heavily increasing loads on a mailserver, 
that causes a lot of forks and file cache memory isn't unloaded fast enough), 
then you should either disable the security check or properly seperate data 
from binaries using partitions and mount data partitions with nosuid/noexec, 
so that these are omitted from the daily checks.
-- 
Mel
___
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: memory usage displsy

2009-09-02 Thread Per olof Ljungmark

Mel Flynn wrote:

On Tuesday 01 September 2009 23:19:23 Michael David Crawford wrote:

Per olof Ljungmark wrote:

Well, my problem is that if I add up all I *can* see in top or ps it
never gets near the by now 3G plus memory shown as Active. Maybe one
gig is accounted for,

I'm not that familiar with FreeBSD yet, but the kernel uses memory which
might not be charged against any process.

For example, to map some virtual memory requires memory to store the
mappings in.

Open files have kernel structures, as do filesystems.

If top or ps were only to show userspace memory allocations, then you're
right, a lot of memory would be unaccounted for.


It doesn't for the Active to Free states. For individual processes, everything 
is shown that the process allocates. So for a file descriptor, an int would be 
allocated, where the kernel holds the real info.


This is one cause for filled Active memory: a process polling multiple file 
descriptors, like a File Alteration Monitor under current desktops.


The other, as Dan Nelson described, is file cache. If you want to be sure it's 
this, then reboot the machine and run:

/etc/periodic/security/100.chksetuid

You should see memory usage going up. If this causes a performance problem 
(i.e. You sometimes are subject to heavily increasing loads on a mailserver, 
that causes a lot of forks and file cache memory isn't unloaded fast enough), 
then you should either disable the security check or properly seperate data 
from binaries using partitions and mount data partitions with nosuid/noexec, 
so that these are omitted from the daily checks.


Thank you all for the informative answers, helped a lot to understand 
better what is going on.


I cannot run 100.chksetuid on a production server but I will definitely 
do it on the testing one.


Cheers,
--
per
___
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: having problems copying a dvd

2009-09-02 Thread Andrew Falanga
On Wed, Sep 2, 2009 at 7:53 AM, Sergio de Almeida Lenzi 
lenzi.ser...@gmail.com wrote:

 Hello

 Thanks Roland for the parameters in the mplayer/mencoder...

 To make things easier.. I recomend to create a profile
 in the directory ~/.mplayer/mencoder.conf with the content:
 =
 [pal]
 oac=lavc=yes
 ovc=lavc=yes
 lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000
 Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10
 lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9
 lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0
 lavcopts=acodec=ac3:abitrate=192
 lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1
 vf=scale=720:576,harddup=yes
 af=lavcresample=48000
 mpegopts=format=dvd:tsaf=yes
 of=mpeg=yes
 srate=48000
 channels=2
 ofps=25

 [pal_cinemascope]
 profile=pal
 vf=scale=720:432,expand=720:576,harddup=yes
 ==

 Or using the options from Roland
 extract the stream (as Roland said...)  mplayer dvd://1 -dumpstream
 -dumpfile dvd.mpg
 crop detect...   mplayer -vf cropdetect dvd.mpg

 and then finally encode with mencoder using the profile above and
 Roland's example...

 mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg

 the result will be a high definition video with 1024x576 PAL (25 fps)
 16:9 aspect with audio AC3 192Kbps (plays using HDMI)
 in any dvd player... or in your computer.
 if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope
 and mencoder will adjust the aspect for the video.


 ___
 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


To both, thanks a bunch for this information.  This is awesome!  I can't
wait to install and try.

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-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: having problems copying a dvd

2009-09-02 Thread Adam Vande More
On Wed, Sep 2, 2009 at 12:19 AM, Roland Smith rsm...@xs4all.nl wrote:

 On Wed, Sep 02, 2009 at 04:41:24AM +, af300...@gmail.com wrote:
  Hi,
 
  I'm trying to make a copy of a dvd that I have, video, using a technique
  that I gleaned from this list nearly two years ago that has always worked
  but now I'm having problems. (When I say always, please bear in mind that
 I
  don't do this every day or even frequently). You'll also see calls to dd.
  These were attempts at last ditch effort. I usually just use the copy
  command (got it from a thread entitled, copying a dvd video, from
  November of 07). If dd will work but I just forgot to get the block size
  right, what is that supposed to be.

 My preferred technique is to use mplayer:

 mplayer dvd://1 -dumpstream -dumpfile dvd.mpg

 Be sure to play the DVD with mplayer to check which track is actually the
 movie. Usually it is track #1, but not always.

 After copying the stream, I tend to re-encode it for backup purposes with
 the
 H.264 video codec with MP3 sound, which makes it a lot smaller. The first
 step
 is to watch the mpeg and see if there are black stripes around the picture:

 mplayer -vf cropdetect dvd.mpg

 This will give you a continuous list of crop lines, e.g:
 [CROP] Crop area: X: 1..719  Y: 74..500  (-vf crop=704:416:10:80).0

 Next step is to re-encode the mpeg file in two steps for enhanced quality,
 including the crop information, if any:

 mencoder title.mpg -ovc x264 \
 -x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1
 \
 -idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \
 mencoder title.mpg  -ovc x264 -x264encopts \
 subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\
 b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \
 -idx -oac mp3lame -o title.avi;

 If you want to include a specific language or subtitle, don't forget to
 include the correct options for that; see the mplayer manual.

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


multimedia/transcode is good option as well.  tccat will dump track vob
without borders, use tcprobe to find track you wish to dump.


-- 
Adam Vande More
___
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: Daily security report oddity...

2009-09-02 Thread Kurt Buff
On Wed, Sep 2, 2009 at 00:23, Mark Stapperst...@mapper.nl wrote:
 Kurt Buff wrote:
 I got a daily security run email from one of my machines on Monday
 morning, with the following entry:

      zmx1.zetron.com login failures:
      Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2
      Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0

 What's puzzling is that this account has been completely inactive for
 well over a year - this fellow is long gone, and I simply didn't clean
 it up - that's my bad, but that's not the puzzling part.

 I traced it down, and found out that he had not logged in on Sunday.
 The auth.log is, as you can see from the listing below, quite old. The
 entries referenced above are from two years ago.

       zmx1# ll /var/log/a*
       -rw---  1 root  wheel  71845 Sep  1 15:42 /var/log/auth.log
       -rw---  1 root  wheel   6087 Aug 29  2007 /var/log/auth.log.0.bz2
       -rw---  1 root  wheel   5774 Aug 12  2007 /var/log/auth.log.1.bz2
       -rw---  1 root  wheel   5795 Jul 24  2007 /var/log/auth.log.2.bz2
       -rw---  1 root  wheel   6813 Jul  6  2007 /var/log/auth.log.3.bz2


 So, a couple of questions:

 Why would the daily security run pick up something from *two years
 ago* and only report it again today? The machine hasn't been rebooted
 in a very long time, if that makes a difference.

 Is there any way to prevent something like this happening again - or
 perhaps can I force the entry of the year into the date field for the
 auth.log entries?

 Kurt

 Hello,

 If you look at the syntax of the logfile, you will see no year is listed.
 Most likely the whole file is parsed on security run. Since the logfile
 has been rotated the 30th of august 2007, it's very much possible you'll
 get all your messages all over again.
 Perhaps it's wise to rotate you logfiles once a year just in case...
 And it make no difference the machine hasn't been rebooted in a very
 long time... (define very long time ;-)
 http://uptimes-project.org/hosts/view/150 )

Heh. Well, for me a very long time is more than a year, because
security patches for the OS will at some point mandate a reboot - and
usually in less than a year.

I suppose there's a way to do auth log rotation automagically - would
that be sysutils/logrotate?

Kurt
___
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: Daily security report oddity...

2009-09-02 Thread Dan Nelson
In the last episode (Sep 02), Kurt Buff said:
 On Wed, Sep 2, 2009 at 00:23, Mark Stapperst...@mapper.nl wrote:
  Kurt Buff wrote:
  I traced it down, and found out that he had not logged in on Sunday.
  The auth.log is, as you can see from the listing below, quite old. The
  entries referenced above are from two years ago.
 
        zmx1# ll /var/log/a*
        -rw---  1 root  wheel  71845 Sep  1 15:42 /var/log/auth.log
        -rw---  1 root  wheel   6087 Aug 29  2007 /var/log/auth.log.0.bz2
        -rw---  1 root  wheel   5774 Aug 12  2007 /var/log/auth.log.1.bz2
        -rw---  1 root  wheel   5795 Jul 24  2007 /var/log/auth.log.2.bz2
        -rw---  1 root  wheel   6813 Jul  6  2007 /var/log/auth.log.3.bz2
 
  So, a couple of questions:
 
  Why would the daily security run pick up something from *two years ago*
  and only report it again today?  The machine hasn't been rebooted in a
  very long time, if that makes a difference.
 
  Is there any way to prevent something like this happening again - or
  perhaps can I force the entry of the year into the date field for the
  auth.log entries?
 
  If you look at the syntax of the logfile, you will see no year is
  listed.  Most likely the whole file is parsed on security run.  Since
  the logfile has been rotated the 30th of august 2007, it's very much
  possible you'll get all your messages all over again.  Perhaps it's wise
  to rotate you logfiles once a year just in case...  And it make no
  difference the machine hasn't been rebooted in a very long time... 
  (define very long time ;-) http://uptimes-project.org/hosts/view/150 )
 
 Heh. Well, for me a very long time is more than a year, because
 security patches for the OS will at some point mandate a reboot - and
 usually in less than a year.
 
 I suppose there's a way to do auth log rotation automagically - would
 that be sysutils/logrotate?

The system already rotates auth.log.  Just edit /etc/newsyslog.conf and add
a date check to the line for auth.log.  The default is to roll it when it
hits 100KB, but if you add something like $M1D0 to the when column it'll
rotate it monthly as well.

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


Re: Daily security report oddity...

2009-09-02 Thread Kurt Buff
On Wed, Sep 2, 2009 at 10:03, Dan Nelsondnel...@allantgroup.com wrote:
 In the last episode (Sep 02), Kurt Buff said:
snip
 Heh. Well, for me a very long time is more than a year, because
 security patches for the OS will at some point mandate a reboot - and
 usually in less than a year.

 I suppose there's a way to do auth log rotation automagically - would
 that be sysutils/logrotate?

 The system already rotates auth.log.  Just edit /etc/newsyslog.conf and add
 a date check to the line for auth.log.  The default is to roll it when it
 hits 100KB, but if you add something like $M1D0 to the when column it'll
 rotate it monthly as well.

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

That's exactly the clue I needed. Thanks, Dan.

I'm looking at 'man newsyslog.conf' right now.

Kurt
___
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: 'alias' + sudo

2009-09-02 Thread Tim Judd
On 9/2/09, Jerry ges...@yahoo.com wrote:
 I have set up several 'alias' definitions in my .bashrc file. They are
 honored when run as either a regular user or as root. However, when I
 prefix a command with 'sudo', the alias is no longer honored. In other
 words, the actual command is run;however, any flags that I was passing
 to it via 'alias' are lost. How can I circumvent this annoyance.

 Example, I often use 'pico' from within 'xterm'. I set up an alias that
 causes pico to use the mouse; i.e., pico -m which works fine as long as
 I do not prefix the command with 'sudo'


Because sudo calls the binary, via SUID on sudo.  It doesn't pay
attention to user profiles or rc files (like .bashrc).


I don't use sudo, so I can't recommend past that.

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


Error compiling KDE 3

2009-09-02 Thread Jeronimo Calvo
Hi folks,

Trying to compile KDE 3, I am getting the folliwing error...

any ideas?


===  Installing for gnutls-2.8.3
===   gnutls-2.8.3 depends on executable: pkg-config - found
===   Generating temporary packing list
===  Checking if security/gnutls already installed
===   An older version of security/gnutls is already installed (gnutls-2.6.4)
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of security/gnutls
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/security/gnutls.
*** Error code 1

Stop in /usr/ports/print/cups-client.
*** Error code 1

Stop in /usr/ports/print/cups-client.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /usr/ports/x11-toolkits/qt33.
*** Error code 1

Stop in /usr/ports/x11/kde3.
___
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: 'alias' + sudo

2009-09-02 Thread Jerry
On Wed, 2 Sep 2009 13:06:28 -0600
Tim Judd taj...@gmail.com wrote:

[snip]

 Because sudo calls the binary, via SUID on sudo.  It doesn't pay
 attention to user profiles or rc files (like .bashrc).
 
 
 I don't use sudo, so I can't recommend past that.

In other words, sudo is not compatible with the bash 'alias' feature.
Is that correct? I Googled and found several references to sudo and
alias; however, no consensus on how to circumvent the problem.


-- 
Jerry
ges...@yahoo.com

In response to President Obama's complaint that FOX News doesn't show
enough Black and Hispanic people on their network, FOX has announced
that they will now air America's Most Wanted TWICE a week.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Error compiling KDE 3

2009-09-02 Thread ltcddats
On Wed, 2 Sep 2009 19:26:46 +
Jeronimo Calvo jeronimocal...@googlemail.com wrote:

 Hi folks,
 
 Trying to compile KDE 3, I am getting the folliwing error...
 
 any ideas?
 
 
 ===  Installing for gnutls-2.8.3
 ===   gnutls-2.8.3 depends on executable: pkg-config - found
 ===   Generating temporary packing list
 ===  Checking if security/gnutls already installed
 ===   An older version of security/gnutls is already installed
 (gnutls-2.6.4) You may wish to ``make deinstall'' and install this
 port again by ``make reinstall'' to upgrade it properly.
   If you really wish to overwrite the old port of security/gnutls
   without deleting it first, set the variable FORCE_PKG_REGISTER
   in your environment or the make install command line.
 *** Error code 1
 
 Stop in /usr/ports/security/gnutls.
 *** Error code 1
 
 Stop in /usr/ports/print/cups-client.
 *** Error code 1
 
 Stop in /usr/ports/print/cups-client.
 *** Error code 1
 
 Stop in /usr/ports/x11-toolkits/qt33.
 *** Error code 1
 
 Stop in /usr/ports/x11-toolkits/qt33.
 *** Error code 1
 
 Stop in /usr/ports/x11/kde3.


make install -DFORCE_PKG_REGISTER clean

 ___
 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: Error compiling KDE 3

2009-09-02 Thread Jerry
On Wed, 2 Sep 2009 19:26:46 +
Jeronimo Calvo jeronimocal...@googlemail.com wrote:

 Trying to compile KDE 3, I am getting the folliwing error...
 
 any ideas?
 
 
 ===  Installing for gnutls-2.8.3
 ===   gnutls-2.8.3 depends on executable: pkg-config - found
 ===   Generating temporary packing list
 ===  Checking if security/gnutls already installed
 ===   An older version of security/gnutls is already installed
 (gnutls-2.6.4) You may wish to ``make deinstall'' and install this
 port again by ``make reinstall'' to upgrade it properly.
   If you really wish to overwrite the old port of security/gnutls
   without deleting it first, set the variable FORCE_PKG_REGISTER
   in your environment or the make install command line.

cd /usr/ports/security/gnutls
make deinstall  make reinstall  make distclean
cd -
make install

-- 
Jerry
ges...@yahoo.com

It's sweet to be remembered, but it's often cheaper to be forgotten.
___
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: 'alias' + sudo

2009-09-02 Thread Dan Nelson
In the last episode (Sep 02), Jerry said:
 On Wed, 2 Sep 2009 13:06:28 -0600
 Tim Judd taj...@gmail.com wrote:
  Because sudo calls the binary, via SUID on sudo.  It doesn't pay
  attention to user profiles or rc files (like .bashrc).
  
  I don't use sudo, so I can't recommend past that.
 
 In other words, sudo is not compatible with the bash 'alias' feature.  Is
 that correct?  I Googled and found several references to sudo and alias;
 however, no consensus on how to circumvent the problem.

sudo does not run root's shell at all; it directly runs whatever is given it
on the commandline.  Workarounds include creating an alias that includes
sudo in it (alias rootpicom='sudo pico -m'), or creating a shell script that
runs what your alias would have, so you can run sudo picom:

/usr/local/bin/picom
  #! /bin/sh
  pico -m $@

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


Kernel panic

2009-09-02 Thread Коньков Евгений
Здравствуйте, Freebsd-questions.

Fatal trap 18: integer divide fault while in kernel mode
cpuid = 0; apic id = 00
instruction pointer = 0x20:0xc0af79b5
stack pointer   = 0x28:0xc1b55cb8
frame pointer   = 0x28:0xc1b55cb8
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, IOPL = 0
current process = 11 (idle: cpu0)
trap number = 18
panic: integer divide fault
cpuid = 0
Uptime: 2h56m59s
Physical memory: 115 MB
Dumping 33 MB: 18 2

Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from 
/boot/kernel/ng_socket.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_socket.ko
Reading symbols from /boot/kernel/ng_mppc.ko...Reading symbols from 
/boot/kernel/ng_mppc.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_mppc.ko
Reading symbols from /boot/kernel/rc4.ko...Reading symbols from 
/boot/kernel/rc4.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/rc4.ko
Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from 
/boot/kernel/ng_iface.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_iface.ko
Reading symbols from /boot/kernel/ng_ppp.ko...Reading symbols from 
/boot/kernel/ng_ppp.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/ng_ppp.ko
#0  doadump () at pcpu.h:196
196 __asm __volatile(movl %%fs:0,%0 : =r (td));



reboot   ~ Wed Sep  2 22:47
kes  ttyp110.10.16.18  Wed Sep  2 22:29 - crash  (00:17)
kes  ttyp010.10.16.18  Wed Sep  2 22:29 - crash  (00:18)
reboot   ~ Wed Sep  2 22:27
kes  ttyp010.10.16.18  Wed Sep  2 22:19 - crash  (00:07)
reboot   ~ Wed Sep  2 22:19
kes  ttyp010.10.16.18  Wed Sep  2 22:17 - crash  (00:02)
reboot   ~ Wed Sep  2 22:09
reboot   ~ Wed Sep  2 21:56
reboot   ~ Wed Sep  2 21:46
reboot   ~ Wed Sep  2 21:39
reboot   ~ Wed Sep  2 21:34
reboot   ~ Wed Sep  2 21:14
reboot   ~ Wed Sep  2 21:05
reboot   ~ Wed Sep  2 20:47
reboot   ~ Wed Sep  2 20:41
reboot   ~ Wed Sep  2 20:18
reboot   ~ Wed Sep  2 18:51
reboot   ~ Wed Sep  2 17:27
reboot   ~ Wed Sep  2 14:29
reboot   ~ Wed Sep  2 10:58


I have build latest 7.2
vpn# uname -a
FreeBSD vpn.in 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Mon Aug 31 23:57:36 
EEST 2009 k...@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v72  i386

That version is not stable???

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
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: skype 2.1 beta for linux

2009-09-02 Thread Sergio de Almeida Lenzi
Em Qui, 2009-09-03 às 00:24 +0200, Martin Wilke escreveu:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Wed, Sep 02, 2009 at 09:27:40PM +0300, Andriy Gapon wrote:
  
  Just noticed this:
  http://www.skype.com/intl/en/download/skype/linux/
  
 
 It doesn't work, this version missing the OSS support,
 I talked to the guys we get later a oss version!
 

Interesting... in the site it says it uses pulseaudio...
if it uses pulseaudio, will work with FreeBSD

 - - Martin
 
 
  -- 
  Andriy Gapon
  ___
  freebsd-emulat...@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
  To unsubscribe, send any mail to freebsd-emulation-unsubscr...@freebsd.org
  
 
 - -- 
 
 +---+---+
 |  PGP: 0xB1E6FCE9  |  Jabber : miwi(at)BSDCrew.de  |
 |  Skype  : splash_111  |  Mail   : miwi(at)FreeBSD.org |
 +---+---+
 | Mess with the Best, Die like the Rest!  |
 +---+---+
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.11 (FreeBSD)
 
 iEYEARECAAYFAkqe8IcACgkQdLJIhLHm/OmkxACg00eR6eTBtWR6EbFPaEuciVRy
 AgwAoNUiEBM3ZnDzFkIx52dBPQsqEaPk
 =BS/5
 -END PGP SIGNATURE-
 ___
 freebsd-po...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-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: difficult-to-phrase question...

2009-09-02 Thread Adam Vande More
On Wed, Sep 2, 2009 at 6:43 PM, Gary Kline kl...@thought.org wrote:


guys, (of either gender)

here's one that is a bit difficult to figure out how to ask, but
here's my first shot:

i'm looking for a file what contains string S.  the filename
in this case has a zillion letters, but that beside the point.

i can use grep to find S and grep gives me the file[s] that
have the string.  now, is there any easy way of reading that
file, or deleting or otherwise munging that file?

nutshell is that every time i reboot (into kde), kde wastes
time/cpu spawning unwanted whatever: versions of konqueror, kttsd,
ksayit, c.  [[i found these files in
~/.kde/share/config/session, about  20, dated may, 09 to oct 08.
rm'ing the bunch would get rid of the instantiate problem, but
having a script to diddle with a found string S would be
useful esp'ly if the filename of pathname were long.

i'll mouse swipe the string and fname to prove my point.
thanks for any help.

gary

ps: if scripting this is too grizzly i'll do it in C and do an
inline post of src and example use.




 p4 16:18 tao [5058] rgr www.h-online
  ~/.kde/share/config/session

 ./konqueror_101be1a31b9d100012436384840011730067_1243656675_647947:12:ViewT0_URL[$e]=
 http://www.h-online.com/open/Google-Wave-The-instant-wiki-communicator--/news/113410

 Have you tried logging out of kde with those apps closed?


-- 
Adam Vande More
___
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: 'alias' + sudo

2009-09-02 Thread Polytropon
On Wed, 2 Sep 2009 15:06:48 -0500, Dan Nelson dnel...@allantgroup.com wrote:
 sudo does not run root's shell at all; it directly runs whatever is given it
 on the commandline.

Another idea would to be to call sudo with the desired shell as
argument (in order to inherit the aliases), followed by a command
as argument to the shell (in order to execute a particular command),
something like

% sudo bash -c my_command_alias

It may be possible that bash requires an additional argument to tell
it to read ~/.bashrc when invoked in a non-interactive manner.

Keep in mind that I haven't tried this solution because I don't
use bash on a regular basis.


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


difficult-to-phrase question...

2009-09-02 Thread Gary Kline

guys, (of either gender)

here's one that is a bit difficult to figure out how to ask, but
here's my first shot:

i'm looking for a file what contains string S.  the filename
in this case has a zillion letters, but that beside the point.

i can use grep to find S and grep gives me the file[s] that
have the string.  now, is there any easy way of reading that
file, or deleting or otherwise munging that file?

nutshell is that every time i reboot (into kde), kde wastes
time/cpu spawning unwanted whatever: versions of konqueror, kttsd,
ksayit, c.  [[i found these files in
~/.kde/share/config/session, about  20, dated may, 09 to oct 08.
rm'ing the bunch would get rid of the instantiate problem, but
having a script to diddle with a found string S would be
useful esp'ly if the filename of pathname were long.

i'll mouse swipe the string and fname to prove my point.
thanks for any help.  

gary

ps: if scripting this is too grizzly i'll do it in C and do an
inline post of src and example use.




p4 16:18 tao [5058] rgr www.h-online  ~/.kde/share/config/session
./konqueror_101be1a31b9d100012436384840011730067_1243656675_647947:12:ViewT0_URL[$e]=http://www.h-online.com/open/Google-Wave-The-instant-wiki-communicator--/news/113410





-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 5.67a release of Jottings: http://jottings.thought.org/index.php
  10% slice of my latest novel:  http://www.thought.org/10pc

___
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


got invalid argument error when using dd

2009-09-02 Thread Ji
Hi all,
I am using FreeBSD-7.2-release-amd64. I got an got invalid argument error
when using dd

dd if=s1.image of=/dev/ad4s1 bs=1m
dd: /dev/ad4s1: Invalid argument
12284+1 records in
12284+0 records out
12880707584 bytes transferred in 746.571300 secs (17253151 bytes/sec)

echo $?
1

(s1.image is the image file of /dev/ad4s1 generated by dd if=/dev/ad4s1
of=s1.image bs=1m  ahead. )
The error occurs at the moment that dd almost finishes.
I don't quite understand the error, Can anybody enlighten me? Thanks.

Ji
___
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: difficult-to-phrase question...

2009-09-02 Thread Polytropon
On Wed, 2 Sep 2009 16:43:30 -0700, Gary Kline kl...@thought.org wrote:
   i'm looking for a file what contains string S.  the filename
   in this case has a zillion letters, but that beside the point.
 
   i can use grep to find S and grep gives me the file[s] that
   have the string.  now, is there any easy way of reading that
   file, or deleting or otherwise munging that file?

I would suggest one of my favourite tools, the Midnight Commander,
available via ports as misc/mc or misc/mc-lite - or from a
package.

First you run the find dialog, Meta-? (Esc, ?, if you don't have
a Meta key). Enter file mask if needed, starting directory (usu-
ally .) and S for the search string. Then a list with the items
found will come up.

In order to view a file from this list, press PF3 on a file. The
viewer will automatically skip to where S has been found in the
file. If you press ENTER on the file, it will be selected in one
of the panels, and you can move or delete it.



   ps: if scripting this is too grizzly i'll do it in C and do an
   inline post of src and example use.

If you exactly know what to do with the file, scripting might be
the easiest solution. The more interaction, the less optimum it
is. :-)


-- 
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: difficult-to-phrase question...

2009-09-02 Thread Jon Radel

Gary Kline wrote:


guys, (of either gender)

here's one that is a bit difficult to figure out how to ask, but
here's my first shot:

i'm looking for a file what contains string S.  the filename
in this case has a zillion letters, but that beside the point.

i can use grep to find S and grep gives me the file[s] that
have the string.  now, is there any easy way of reading that
file, or deleting or otherwise munging that file?

nutshell is that every time i reboot (into kde), kde wastes
time/cpu spawning unwanted whatever: versions of konqueror, kttsd,
ksayit, c.  [[i found these files in
~/.kde/share/config/session, about  20, dated may, 09 to oct 08.
rm'ing the bunch would get rid of the instantiate problem, but
having a script to diddle with a found string S would be
useful esp'ly if the filename of pathname were long.

i'll mouse swipe the string and fname to prove my point.
	thanks for any help.  


gary

ps: if scripting this is too grizzly i'll do it in C and do an
inline post of src and example use.



Do you mean something like

rm `grep -l S *`

or am I completely missing the point of what you're trying to do?

--

--Jon Radel
j...@radel.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Error compiling KDE 3

2009-09-02 Thread Andrew Gould
On Wed, Sep 2, 2009 at 3:03 PM, Jerryges...@yahoo.com wrote:
 On Wed, 2 Sep 2009 19:26:46 +
 Jeronimo Calvo jeronimocal...@googlemail.com wrote:

 Trying to compile KDE 3, I am getting the folliwing error...

 any ideas?


 ===  Installing for gnutls-2.8.3
 ===   gnutls-2.8.3 depends on executable: pkg-config - found
 ===   Generating temporary packing list
 ===  Checking if security/gnutls already installed
 ===   An older version of security/gnutls is already installed
 (gnutls-2.6.4) You may wish to ``make deinstall'' and install this
 port again by ``make reinstall'' to upgrade it properly.
       If you really wish to overwrite the old port of security/gnutls
       without deleting it first, set the variable FORCE_PKG_REGISTER
       in your environment or the make install command line.

 cd /usr/ports/security/gnutls
 make deinstall  make reinstall  make distclean
 cd -
 make install

 --
 Jerry
 ges...@yahoo.com


The package list may have changed between version 2.6.4 and 2.8.3.  I
would recommend replacing make deinstall, above, with:

pkg_delete gnutls-2.6.4

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


Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread jerry M
configure file got this line and it causes the message: test: xyes: unexpected 
operator
But removing spaces around == or replacing == with = makes it to work.

On Linux though this line works fine.

Why spaces around == would cause failure?
What
is the version of /bin/sh currently used in 7.2? Where is it taken
from? --version, -v, -version don't ever print version I guess due to
FreeBSD policy of not versioning individual utilities.


  
___
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: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread Polytropon
On Thu, 3 Sep 2009 04:14:56 + (GMT), jerry M jerrry94...@yahoo.com wrote:
 configure file got this line and it causes the message: test: xyes: 
 unexpected operator
 But removing spaces around == or replacing == with = makes it to work.

Maybe those files are not intended to run on FreeBSD's standard
Bourne shell?



 On Linux though this line works fine.

This may be due to the fact that on most Linusi, sh is bash.
On FreeBSD, sh is a different shell than bash; it's the
original Bourne shell.



 Why spaces around == would cause failure?

First of al, refer to man test for the string operators. The
form == isn't mentioned there.

 s1 = s2   True if the strings s1 and s2 are identical.

 s1 != s2  True if the strings s1 and s2 are not identical.

 s1  s2   True if string s1 comes before s2 based on the binary value
   of their characters.

 s1  s2   True if string s1 comes after s2 based on the binary value
   of their characters.

Furthermore, it's wise to enclose the variable names in curly
brackets when used in a compositum. Your statement

if test x$my_var == xyes; then

would correctly read as follows:

if test x${my_var} = xyes; then

You can of course use [ instead of test, so it would be

if [ x${my_var} = xyes ]; then



 What
 is the version of /bin/sh currently used in 7.2? Where is it taken
 from? --version, -v, -version don't ever print version I guess due to
 FreeBSD policy of not versioning individual utilities.

FreeBSD's Bourne shell does not have GNU long options such
as --version. According to the shell's manpage, -v is used
for verbosity, and -version isn't even defined. Refer to
man sh for more options.

The parts of the base system (as in opposite to Linux where no
real the OS does exist) usually have the version of the
release, but to be more precise, the individual version can be
obtained from the source code. It can be found in /usr/src/bin/sh.
For example, I have

@(#)main.c  8.6 (Berkeley) 5/28/95
$FreeBSD: src/bin/sh/main.c,v 1.29 2006/10/07 16:51:16 stefanf Exp $

in the source file main.c, and the Makefile indicates

@(#)Makefile8.4 (Berkeley) 5/5/95
$FreeBSD: src/bin/sh/Makefile,v 1.46 2006/04/17 17:55:11 schweikh Exp $

as its particular version number and date.

The manual man sh includes this statement:

 The sh utility is the standard command interpreter for the system.  The
 current version of sh is in the process of being changed to conform with
 the IEEE Std 1003.2 (``POSIX.2'') specification for the shell.  This ver-
 sion has many features which make it appear similar in some respects to
 the Korn shell, but it is not a Korn shell clone like pdksh.  Only fea-
 tures designated by POSIX, plus a few Berkeley extensions, are being
 incorporated into this shell.  This man page is not intended to be a
 tutorial nor a complete specification of the shell.

as well as

 This version of sh was rewritten in 1989 under the BSD license after the
 Bourne shell from ATT System V Release 4 UNIX.

It's important, especially for interoperability, to declare
#/bin/sh only and ONLY if the script is for Bourne shell. If
you're using bash specifics, use #!/usr/local/bin/bash instead.
Keep in mind that you'll have to install bash (pkg_add -r bash)
in this case. A tidy way of coding, such as using the curly
brackets, is an important thing, too, as you can see. :-)


-- 
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: Why /bin/sh doesn't like the line: if test x$my_var == xyes; then

2009-09-02 Thread Dan Nelson
In the last episode (Sep 03), jerry M said:
 configure file got this line and it causes the message: test: xyes:
 unexpected operator But removing spaces around == or replacing == with =
 makes it to work.
 
 On Linux though this line works fine.
 
 Why spaces around == would cause failure?  What is the version of /bin/sh
 currently used in 7.2?  Where is it taken from?  --version, -v, -version
 don't ever print version I guess due to FreeBSD policy of not versioning
 individual utilities.

== isn't a valid comparison operator for the test command.  See the FreeBSD
manpage, or the Posix docs:
http://www.opengroup.org/onlinepubs/9699919799/toc.htm.  You need to use =.

Certain Linux distributions use bash as /bin/sh, which shortcuts the test
command internally and allows bash extensions, even in bourne-shell mode. 
Debian and Ubuntu use dash instead of bash, and this script would fail on
them as well.

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