gpart weirdness: diskid/DISK-3EV0P4PZ00007250010X GPT (17G)

2013-10-09 Thread Anton Shterenlikht
# gpart show
=  34  35566411  da1  GPT  (17G)
34  35566411   - free -  (17G)

=  34  35566411  diskid/DISK-3EV0P4PZ7250010X  GPT  (17G)
34  35566411- free -  (17G)

=  34  35566411  da2  GPT  (17G)
34  35566411   - free -  (17G)

=  34  35566411  diskid/DISK-3EV0PWCX72500ZNJ  GPT  (17G)
34  35566411- free -  (17G)

# 

This is on ia64 10.0-CURRENT #5 r255488.

Both disks appear twice in gpart show output.
Is there some corruption in gpart data.

What am I do to?

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: gpart weirdness: diskid/DISK-3EV0P4PZ00007250010X GPT (17G)

2013-10-09 Thread Anton Shterenlikht
From: Mark Felder f...@freebsd.org
To: freebsd-questions@freebsd.org
Subject: Re: gpart weirdness: diskid/DISK-3EV0P4PZ7250010X  GPT  (17G)
Date: Wed, 09 Oct 2013 06:56:17 -0500

On Wed, Oct 9, 2013, at 4:33, Anton Shterenlikht wrote:
 # gpart show
 =  34  35566411  da1  GPT  (17G)
 34  35566411   - free -  (17G)
 
 =  34  35566411  diskid/DISK-3EV0P4PZ7250010X  GPT  (17G)
 34  35566411- free -  (17G)
 
 =  34  35566411  da2  GPT  (17G)
 34  35566411   - free -  (17G)
 
 =  34  35566411  diskid/DISK-3EV0PWCX72500ZNJ  GPT  (17G)
 34  35566411- free -  (17G)
 
 # 
 

This is normal. Gpart is showing you both the physical dev versions of
the devices and the GPT label versions of the devices. I'll admit it can
be confusing, though.

Well, I haven't seen this before.
And it only shows this for some disks, not all:

# gpart show
=   34  143374671  da0  GPT  (68G)
 34 4096001  efi  (200M)
 409634  1429650712  freebsd-ufs  (68G)

=  34  35566411  da1  GPT  (17G)
34  35566411   - free -  (17G)

=  34  35566411  da2  GPT  (17G)
34  35566411   - free -  (17G)

=   34  142255508  da3  GPT  (67G)
 34  1422555081  freebsd-ufs  (67G)

=  34  35566411  diskid/DISK-3EV0P4PZ7250010X  GPT  (17G)
34  35566411- free -  (17G)

=  34  35566411  diskid/DISK-3EV0PWCX72500ZNJ  GPT  (17G)
34  35566411- free -  (17G)

=   34  142255508  da4  GPT  (67G)
 34  1422555081  freebsd-swap  (67G)

=   34  142255508  da5  GPT  (67G)
 34  1422555081  freebsd-ufs  (67G)

=   34  286744118  da6  GPT  (136G)
 34  2867441181  freebsd-ufs  (136G)

# 

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: where to start with PGP/GPG?

2013-08-16 Thread Anton Shterenlikht
From cpgh...@cordula.ws Thu Aug 15 20:20:49 2013

On 08/15/13 14:16, Anton Shterenlikht wrote:
 I never needed to use pgp till now.
 So I'm not sure where to start.
 Is security/gnupg the way to go?
 Any other advice?

security/gnupg + security/pinentry is the way to go.

I wonder if pinentry should be made a required port
for gnupg. This is because gpg2 --gen-keys refuses
to run unless pinentry is installed. Perhaps this
is up the maintaniner, but to me this sounds like
a requirement.

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


where to start with PGP/GPG?

2013-08-15 Thread Anton Shterenlikht
I never needed to use pgp till now.
So I'm not sure where to start.
Is security/gnupg the way to go?
Any other advice?

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: where to start with PGP/GPG?

2013-08-15 Thread Anton Shterenlikht
From tr...@fagskolen.gjovik.no Thu Aug 15 13:28:22 2013

On Thu, 15 Aug 2013 13:16+0100, Anton Shterenlikht wrote:

 I never needed to use pgp till now.
 So I'm not sure where to start.
 Is security/gnupg the way to go?
 Any other advice?

Consider the use of security/pinentry for entering passphrases.

I discovered already that gnupg doesn't really work without it.
At least I cannot generate keys without it.

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: where to start with PGP/GPG?

2013-08-15 Thread Anton Shterenlikht
From mexas Thu Aug 15 13:16:09 2013
To: freebsd-questions@freebsd.org
Subject: where to start with PGP/GPG?
Reply-To: me...@bris.ac.uk

I never needed to use pgp till now.
So I'm not sure where to start.
Is security/gnupg the way to go?
Any other advice?

Answering my own question, this guide
seems up to date and about the right
level for a novice (me):

https://help.ubuntu.com/community/GnuPrivacyGuardHowto

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

2013-08-01 Thread Anton Shterenlikht
From: Teymur.Rahimzade teymur.rahimz...@gmail.com
To: questi...@freebsd.org
Subject: learn
Date: Thu, 1 Aug 2013 16:35:57 +0500

Hi.
Please help me to learn freebsd unix. 
Many thanks.

RTFM:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/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: learn

2013-08-01 Thread Anton Shterenlikht
Date: Thu, 1 Aug 2013 14:29:25 +0200
From: herbert langhans w...@langhans.com.pl
To: freebsd-questions@freebsd.org
Subject: Re: learn

The handbook is a monster, even technically interested people get lost
there. You know that, corebug.

I completely disagree.

The handbook is of excellent quality for a volunteer project.
In particular, it is far ahead of any linux documentation
effort I've seen. Indeed, it was the handbook that made me
start using FreeBSD in the first place. In about 2003 I tried
several linux distros, and got completely lost. The available
documentation for linux, at least at that time, was not designed
for a novice, certainly not at my level. In contrast, the
FreeBSD handbook was very clear and allowed me to install
and start using FreeBSD quickly and easily. This was version 4.9.

Since then the quality of the handbook improved a lot.
The handbook is certantly the first FreeBSD resource
I would recommend to a FreeBSD novice.

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


LC_CTYPE=fr_FR.ISO8859-1 with xterm - still French accented characters are corrupted

2013-07-17 Thread Anton Shterenlikht
I tried, in tcsh: 

% setenv |grep FR
XTERM_LOCALE=fr_FR.ISO8859-1
LC_CTYPE=fr_FR.ISO8859-1

but the accented French characters are corrupted, e.g. in
/usr/ports/french/aster/pkg-descr.

I built xterm with 

% make -C /usr/ports/x11/xterm showconfig
=== The following configuration options are available for xterm-296:
 256COLOR=on: Enable 256-color support
 DABBREV=off: Enable support for dabbrev-expand
 DECTERM=off: Enable DECterm Locator support
 GNOME=off: GNOME desktop environment support
 LUIT=on: Use LUIT for locale convertion from/to UTF-8
 PCRE=on: Use Perl Compatible Regular Expressions
 SIXEL=on: Enable Sixel graphics support
 WCHAR=on: Enable wide-character support
=== Use 'make config' to modify these settings

I usually can read russian with either
ru_RU.KOI8-R or en_US.UTF-8 in xterm, so I think
the xterm is set up correctly to view 8-bit characters.

Please advise

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


SOLVED [WAS: Re: LC_CTYPE=fr_FR.ISO8859-1 with xterm - still French accented characters are corrupted

2013-07-17 Thread Anton Shterenlikht
Date: Wed, 17 Jul 2013 22:57:34 +0200
From: Polytropon free...@edvax.de
To: Elimar Riesebieter riese...@lxtec.de
Subject: Re: LC_CTYPE=fr_FR.ISO8859-1 with xterm - still French accented
 characters are corrupted

On Wed, 17 Jul 2013 15:38:53 +0200, Elimar Riesebieter wrote:
 * Anton Shterenlikht me...@bris.ac.uk [2013-07-17 13:14 +0100]:
 
  I tried, in tcsh: 
  
  % setenv |grep FR
  XTERM_LOCALE=fr_FR.ISO8859-1
  LC_CTYPE=fr_FR.ISO8859-1
  
  but the accented French characters are corrupted, e.g. in
  /usr/ports/french/aster/pkg-descr.
  
  I built xterm with 
  
  % make -C /usr/ports/x11/xterm showconfig
  === The following configuration options are available for xterm-296:
   256COLOR=on: Enable 256-color support
   DABBREV=off: Enable support for dabbrev-expand
   DECTERM=off: Enable DECterm Locator support
   GNOME=off: GNOME desktop environment support
   LUIT=on: Use LUIT for locale convertion from/to UTF-8
   PCRE=on: Use Perl Compatible Regular Expressions
   SIXEL=on: Enable Sixel graphics support
   WCHAR=on: Enable wide-character support
  === Use 'make config' to modify these settings
  
  I usually can read russian with either
  ru_RU.KOI8-R or en_US.UTF-8 in xterm, so I think
  the xterm is set up correctly to view 8-bit characters.
 
 Doesn't fr_FR.UTF8 work?

That probably won't matter. The characters in that file are
normal 1-byte characters (ISO), not 2-byte ones (UTF-8).
I have built xterm with no special options and can see
them properly.

*skip*

I assume you have all neccessary _fonts_ installed?

oh.. fonts!

I realised I have russian fonts in .Xdefaults.
I removed those and now can see accented characters fine.

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


tor browser?

2013-07-16 Thread Anton Shterenlikht
Anybody is using the Tor Browser?

I started using security/tor.
In addition to this, the tor
folk insist on using the tor browser:
 https://www.torproject.org/download/download#warning
which is a part of the tor bundle:
 https://www.torproject.org/projects/torbrowser-details.html.en#build

Now, this tor browser seems to be a patched
firefox. There is no port for it, and
my previous experience of building firefox
outside ports was not good.

So I was wondering if anybody has built
or used hte tor browser?

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


highest nice(1) -n increment value?

2013-07-08 Thread Anton Shterenlikht
It is not clear from the nice(1) man page, i.e.
for /usr/bin/nice, not a shell built-in nice,
what is the highest increment value nice will accept.

It seems it is limited to 20.
I tried

$ /usr/bin/nice -n 100 portmaster -a

But all processes spawned by the portmaster have
the nice value of only 20, as in:

  PID USERNAMETHR PRI NICE   SIZERES STATETIMEWCPU COMMAND
57586 root  1  52   20 13976K  4720K wait 0:00   0.39% sh
52729 root  1  40   20 13976K  4960K wait 0:02   0.00% sh
58239 root  1  92   20 35632K  8584K RUN  0:00   0.00% pkg
58237 root  1  52   20  9216K  1616K ppwait   0:00   0.00% make

The root shell priority was 0.
 
So is 20 the upper increment limit?

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: X client without X server

2013-07-03 Thread Anton Shterenlikht
Date: Wed, 3 Jul 2013 10:55:48 +0700 (ICT)
From: Olivier Nicole olivier.nic...@cs.ait.ac.th
To: freebsd-questions@freebsd.org
Subject: X client without X server

Hi,

Is there a way to install an X client without automatically install an
X server?

On all my systems, I throw xterm and emacs, as the primary tools I use
for management, but the display is always remote, I never, ever, run X
on the machine, but still it install X server, fonts and a lot of
useless junk like xcalc.

Is there a way to install xterm and only the libraries that are needed
to run xterm?

TIA,

Olivier

I've been doing this for years.
What's the problem?

Just install xterm, or whatever you need.
All the necessary libs will be pulled in, e.g.:

$ pkg info -xd xterm
xterm-293:
xproto-7.0.24
xextproto-7.2.1
renderproto-0.11.1
printproto-1.0.5
libxcb-1.9.1
libXrender-0.9.8
libXpm-3.5.10
libXp-1.0.2,1
libXext-1.3.2,1
libXdmcp-1.1.1
libXau-1.0.8
libX11-1.6.0,1
libSM-1.2.1,1
libICE-1.0.8,1
kbproto-1.0.6
libXt-1.1.4,1
libXmu-1.1.1,1
libXaw-1.0.11,2
libXft-2.3.1
fontconfig-2.9.0,1
expat-2.0.1_2
freetype2-2.4.12_1
pkgconf-0.9.2_1
pcre-8.33
libpthread-stubs-0.3_3

Obviously xterm does not depend on xorg-server.

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: X client without X server

2013-07-03 Thread Anton Shterenlikht
From olivier2...@gmail.com Wed Jul  3 13:09:25 2013

Anton,

On Wed, Jul 3, 2013 at 5:47 PM, Anton Shterenlikht me...@bris.ac.uk 
wrote:
 Date: Wed, 3 Jul 2013 10:55:48 +0700 (ICT)
 From: Olivier Nicole olivier.nic...@cs.ait.ac.th
 To: freebsd-questions@freebsd.org
 Subject: X client without X server

 Hi,

 Is there a way to install an X client without automatically 
install an
 X server?

 On all my systems, I throw xterm and emacs, as the primary 
tools I use
 for management, but the display is always remote, I never, 
ever, run X
 on the machine, but still it install X server, fonts and a 
lot of
 useless junk like xcalc.

 Is there a way to install xterm and only the libraries that 
are needed
 to run xterm?

 TIA,

 Olivier

 I've been doing this for years.
 What's the problem?

 Just install xterm, or whatever you need.
 All the necessary libs will be pulled in, e.g.:

 $ pkg info -xd xterm
 xterm-293:
 xproto-7.0.24
 xextproto-7.2.1
 renderproto-0.11.1
 printproto-1.0.5
 libxcb-1.9.1
 libXrender-0.9.8
 libXpm-3.5.10
 libXp-1.0.2,1
 libXext-1.3.2,1
 libXdmcp-1.1.1
 libXau-1.0.8
 libX11-1.6.0,1
 libSM-1.2.1,1
 libICE-1.0.8,1
 kbproto-1.0.6
 libXt-1.1.4,1
 libXmu-1.1.1,1
 libXaw-1.0.11,2
 libXft-2.3.1
 fontconfig-2.9.0,1
 expat-2.0.1_2
 freetype2-2.4.12_1
 pkgconf-0.9.2_1
 pcre-8.33
 libpthread-stubs-0.3_3

 Obviously xterm does not depend on xorg-server.

But for some reason, xorg-server gets installed too. And tons of fonts, 
and ...

It could be emacs, or cvsup, these are the 3 X Window clients I install.

I don't use emacs, but you can quickly check,
prior to installing, what other ports will be
required, e.g. do

make -C /usr/ports/ search name=emacs-24

You might be familiar with this already, but
if not, the B-deps are those ports which
are required to build your port, and R-deps
are required to run your port. For emacs-24,
both the default and the devel branches, you
see that they depend on xorg-fonts-truetype-7.7_1
and lots of other libs, but not on xorg-server.
net/cvsup has a lot fewer dependencies, again
no xorg-server.

In general X server is only required by the ports
running on the graphical side - screen, mouse, kbd, etc.,
e.g.:

$ pkg info -xr xorg-server
xorg-server-1.7.7_8,1:
xf86-input-keyboard-1.7.0
xf86-input-mouse-1.9.0
xf86-video-vesa-2.3.2
nvidia-driver-310.44_1
$

So I'd say something is wrong with your installation
if xorg-server is being pulled in when you build
emacs, xterm or cvsup.

Post the output from pkg info -aq.
Maybe this will give us a hint.

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: X client without X server

2013-07-03 Thread Anton Shterenlikht
Date: Wed, 3 Jul 2013 08:26:09 -0700 (PDT)
From: Bill Tillman btillma...@yahoo.com
Subject: Re: X client without X server


xterm may not require it [xorg-server],
but one of xterm's dependencies may.

This is simply not true.
xterm does not require xorg-server.
I know because for years I've been using a setup
where the X server and the clients live
on different computers.
There is certainly no xorg-server installed
on the clients computer.

So, if the OP says that in his setup xterm
requires xorg-server, then something is clearly
wrong with that setup and it's a good idea
to fix it. This might be but a simptom of a
larger problem, who knows. If it were me,
I'd certainly want to get to the bottom of this.

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: What compiler is used to build a port

2013-07-01 Thread Anton Shterenlikht
Date: Mon, 1 Jul 2013 15:36:46 +0700 (ICT)
From: Olivier Nicole olivier.nic...@cs.ait.ac.th
To: freebsd-questions@freebsd.org
Subject: What compiler is used to build a port

Hi,

I have a strange situation: 2 machines, 9.1 p4, on the first machine,
graphicslibfpx build with the stock compiler:

$ make
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===  Configuring for libfpx-1.3.1.1
===  Building for libfpx-1.3.1.1
Warning: Object directory not changed from original 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H -DHAVE_SYS_TIME_H...

and on the other machine it insists on using gcc 4.4 (which is
actually a mistake, libfpx will *not* compile with gcc 4.4 or gcc
4.6):

$ make 
=== Fetching all distfiles required by libfpx-1.3.1.1 for building
===  Extracting for libfpx-1.3.1.1
= SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
===  Patching for libfpx-1.3.1.1
===  Applying FreeBSD patches for libfpx-1.3.1.1
/usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
===Verifying install for gcc46 in /usr/ports/lang/gcc
Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 [c,c++,objc,fortran,java]
===  Found saved configuration for gcc-4.6.3
=== Fetching all distfiles required by gcc-4.6.3 for building
===  Extracting for gcc-4.6.3
= SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - found

What could cause aport to request for a different compiler version
when both machines are very similar?

Best regards,

Olivier

It seems you have different revisions of the ports
tree on the two boxes. Do

svn info /usr/ports

on both boxes, and see what revisions they have.

On amd64 with ports at r322188 it builds using
the system GCC compiler:

http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log

but looking at the port's svn log
(svn log /usr/ports/graphics/libfpx) shows


r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 lines

- Unbreak build for HEAD

Maybe your gcc-46 build is on a box with ports tree
prior to that revision?

Anton

P.S. In cases like these I usually email the maintainer
and copy to ports@.

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


Re: What compiler is used to build a port

2013-07-01 Thread Anton Shterenlikht
From olivier.nic...@cs.ait.ac.th Mon Jul  1 12:12:08 2013

   I have a strange situation: 2 machines, 9.1 p4, on the first 
machine,
   graphicslibfpx build with the stock compiler:
 
   $ make
   === Fetching all distfiles required by libfpx-1.3.1.1 for 
building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===  Configuring for libfpx-1.3.1.1
   ===  Building for libfpx-1.3.1.1
   Warning: Object directory not changed from original 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1
   g++  -O2 -pipe -DHAVE_WCHAR_H -DHAVE_DLFCN_H 
-DHAVE_SYS_TIME_H...
 
   and on the other machine it insists on using gcc 4.4 (which is
   actually a mistake, libfpx will *not* compile with gcc 4.4 or 
gcc
   4.6):
 
   $ make 
   === Fetching all distfiles required by libfpx-1.3.1.1 for 
building
   ===  Extracting for libfpx-1.3.1.1
   = SHA256 Checksum OK for libfpx-1.3.1-1.tar.xz.
   ===  Patching for libfpx-1.3.1.1
   ===  Applying FreeBSD patches for libfpx-1.3.1.1
   /usr/bin/sed -i '' -e '/^#include fpxlib-config.h/d'   
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/basics/filename.cpp  
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/oless/h/owchar.h 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/ole/gen_guid.cpp 
/usr/ports/graphics/libfpx/work/libfpx-1.3.1-1/fpxlib.h
   ===   libfpx-1.3.1.1 depends on executable: gcc46 - not found
   ===Verifying install for gcc46 in /usr/ports/lang/gcc
   Making GCC 4.6.3 for x86_64-portbld-freebsd9.1 
[c,c++,objc,fortran,java]
   ===  Found saved configuration for gcc-4.6.3
   === Fetching all distfiles required by gcc-4.6.3 for building
   ===  Extracting for gcc-4.6.3
   = SHA256 Checksum OK for gcc-4.6.3.tar.bz2.
   ===   gcc-4.6.3 depends on file: /usr/local/bin/perl5.14.4 - 
found
 
   What could cause aport to request for a different compiler 
version
   when both machines are very similar?
 
   Best regards,
 
   Olivier
 
 It seems you have different revisions of the ports
 tree on the two boxes. Do
 
 svn info /usr/ports

I am using portsnap, not svn, but I check the md5 of each files in the
port (there are only 8 files) and they are the same.

And I tried to copy the directory from one machine to the other and
get the same result.

 on both boxes, and see what revisions they have.
 
 On amd64 with ports at r322188 it builds using
 the system GCC compiler:
 
 http://eis.bris.ac.uk/~mexas/libfpx-amd64-r322188-build.log
 
 but looking at the port's svn log
 (svn log /usr/ports/graphics/libfpx) shows
 
 

 r311828 | miwi | 2013-02-07 12:36:20 + (Thu, 07 Feb 2013) | 2 
lines
 
 - Unbreak build for HEAD

My portsnap is much newer than February.

ok, what else could be different between the two boxes?

- /etc/make.conf ?

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


installing a kernel under a custom location, not /boot/kernel?

2013-06-17 Thread Anton Shterenlikht
I think there is an option for this.
But I cannot find it under
9.5. Building and Installing a Custom Kernel
http://www.freebsd.org/doc/handbook/kernelconfig-building.html

I need to keep several kernels installed, not
just the current and the previous. How to achive this?

Thaknks

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


incomplete PLIST for devel/liblangtag [WAS Re: libchk issue]

2013-06-11 Thread Anton Shterenlikht

On my system (9.1-RELEASE-p3 on amd64), libchk reports:

Unresolvable link(s) found in: /usr/local/lib/liblangtag-gobject.so.2
liblangtag.so.1

'pkg which' informs me that:
/usr/local/lib/liblangtag-gobject.so.2 was not found in the database

How can I fix the problem?

I confirm this, devel/liblangtag
does not register gobj* files
with pkgng. Neither 0.5 nor 0.4
port versions do this. I didn't
go any earlier than that.
The 0.5 version has
CONFIGURE_ARGS= --disable-introspection
but the older gobj* files are not
removed prior to build/install.

I think the port maintainer needs to look at this.

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: Errors building vortex port

2013-05-21 Thread Anton Yuzhaninov
On Thu, 16 May 2013 18:30:05, C. L. Martinez wrote:
CLM ===  Building for vortex-2.9.0.59
CLM cd /wrkdirs/usr/ports/net/vortex/work/vortex-2.9.0  cc -c vortex.c
CLM -I/usr/local/include
CLM cd /wrkdirs/usr/ports/net/vortex/work/vortex-2.9.0  cc -o vortex
CLM vortex.o -L/usr/local/lib /usr/local/lib/libnids.a
CLM `/usr/local/bin/libnet11-config --libs` -lgthread-2.0 -lpcap
CLM /usr/local/lib/libnids.a(killtcp.o): In function `raw_init':
CLM killtcp.c:(.text+0xa): undefined reference to `libnet_open_raw_sock'
CLM /usr/local/lib/libnids.a(killtcp.o): In function `nids_killtcp_seq':
CLM killtcp.c:(.text+0xc7): undefined reference to `libnet_build_ip'
CLM killtcp.c:(.text+0x14d): undefined reference to `libnet_write_ip'
CLM killtcp.c:(.text+0x18f): undefined reference to `libnet_build_ip'
CLM killtcp.c:(.text+0x20f): undefined reference to `libnet_write_ip'

May be libnids broken with libnet 1.1. Try to libnet 1.0

___
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: X breaks sound

2013-05-15 Thread Anton Shterenlikht

On Tue, 2013-05-14 at 21:20 +0100, Anton Shterenlikht wrote:
 Briefly, the sound works fine until X starts.
 As soon as X starts, sound doesn't work until a reboot.

Assumed pulseaudio should be installed, this likely is the culprit, if
so, remove it.

Hth,
Ralf

no, I haven't got it installed.

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


bwn0: RX decryption attempted (old 0 keyidx 0x2)

2013-05-14 Thread Anton Shterenlikht
I have this wireless chip:

siba_bwn0@pci0:48:0:0:  class=0x028000 card=0x1371103c chip=0x431214e4 rev=0x02
hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM4311 802.11a/b/g'
class  = network

I use bwn(4) for it:

siba_bwn0: Broadcom BCM4312 802.11a/b/g Wireless mem 0xc810-0xc8103fff irq
 18 at device 0.0 on pci48
siba_bwn0: unsupported coreid (USB 1.1 Host)
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4311 rev 13) PHY (analog 4 type 2 rev 9) RADIO (manuf 0x17f
 ver 0x2050 rev 2)
bwn0: DMA (64 bits)
bwn0: Using 1 MSI messages
bwn0: firmware version (rev 410 patch 2160 date 0x751a time 0x7c0a)

I then use wpa_supplicant(8) to connect
to the net.

All this seems to work, often I see on the
console:

bwn0: RX decryption attempted (old 0 keyidx 0x2)

repeated tens or maybe hundreds of times.

What does this tell me? Could this be a symptom
of other problems?

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


X breaks sound

2013-05-14 Thread Anton Shterenlikht
Briefly, the sound works fine until X starts.
As soon as X starts, sound doesn't work until a reboot.

This is HP Compaq 6715s laptop.
I'm running current r250633.

I have this sound device:

hdac0@pci0:0:20:2:  class=0x040300 card=0x30c2103c chip=0x43831002 rev=0x00
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SBx00 Azalia (Intel HDA)'
class  = multimedia
subclass   = HDA

I use it with snd_hda(4):

hdac0: ATI SB600 HDA Controller mem 0xc000-0xc0003fff irq 16 at device 20.
2 on pci0

Until I start X, I can get sound e.g.
via /dev/dsp, or play a cd with:

dd if=/dev/cd0 of=/dev/dspcd bs=2352

As soon as I start X, either via xdm,
or simply X -config /roor/xorg.conf.new -retro
the sound does not work anymore until reboot.
Instead I see on the console a very long stream
of:

hdac0: Unexpected unsolicited response from address 0: 00400083
hdac0: Unexpected unsolicited response from address 0: 
hdac0: Unexpected unsolicited response from address 0: 04a12020
hdac0: Unexpected unsolicited response from address 0: 1727
hdac0: Unexpected unsolicited response from address 0: 0020
hdac0: Unexpected unsolicited response from address 0: 00400187
hdac0: Unexpected unsolicited response from address 0: 0002
hdac0: Unexpected unsolicited response from address 0: 0e03
hdac0: Unexpected unsolicited response from address 0: 0181302e
hdac0: Unexpected unsolicited response from address 0: 1737

etc.

and sometimes:

hdac0: Command timeout on address 0
hdac0: Reset setting timeout
pcm0: chn_write(): pcm0:virtual:dsp0.vp0: play interrupt timeout, channel dead

My graphics device is:

vgapci0@pci0:1:5:0: class=0x03 card=0x30c2103c chip=0x791f1002 rev=0x00
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RS690M [Radeon X1200 Series]'
class  = display
subclass   = VGA

which is seen in dmesg as:

vgapci0: VGA-compatible display port 0x4000-0x40ff mem 0xc010-0xc80f,0
xd020-0xd020,0xd030-0xd03f irq 19 at device 5.0 on pci1
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0

I use x11-drivers/xf86-video-ati port to drive it.

In Xorg logs I see that the card is recognised correctly:

(--) PCI:*(0:1:5:0) 1002:791f:103c:30c2 Advanced Micro Devices [AMD] nee ATI RS6
90M [Radeon X1200 Series] rev 0, Mem @ 0xc000/134217728, 0xd020/65536, 0
xd030/1048576, I/O @ 0x4000/256, BIOS @ 0x/65536

The only issue seems to be with DRM/DRI:

drmOpenDevice: node name is /dev/dri/card0
Failed to change owner or group for file /dev/dri! 2: No such file or directory
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[drm] failed to load kernel module radeon
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.

But I don't think this is related to the sound problem.
Anyway, should I add radeon and drm to the kernel?
Is it a good idea?

I'd be grateful for any advice.

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: Kernel Modules Documentation?

2013-04-30 Thread Anton Shterenlikht

I have a list of about 220 kernel modules and would like to find out 
what 
they do, or are for (none has a man page). I suspect that many of them 
are drivers for particular devices.

Is there any resource or documentation available?

Thanks.

P.S. Here are the first few:
ahc_eisa
ahc_isa
ahc_pci
alias_cuseeme

See e.g. ahc(4).
However, what I do is:

makeoptions MODULES_OVERRIDE=geom/geom_part acl_nfs4

in the kernel config file, or include whichever
modules you use. This way you only build/install
what you actually need. On some boxes I don't
build any modules at all:

makeoptions MODULES_OVERRIDE=

Also, many drivers I build into the kernel,
because I use them all the time, so the extra
flexibility of modules is not required there.

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: Operation timed out with smtp.gmail.com - please help

2013-03-30 Thread Anton Shterenlikht
Date: Fri, 29 Mar 2013 15:36:19 -0400
From: Jerry je...@seibercom.net
To: FreeBSD freebsd-questions@freebsd.org
Subject: Re: Operation timed out with smtp.gmail.com - please help

On Fri, 29 Mar 2013 18:32:34 GMT
Anton Shterenlikht articulated:

 Please help debug sendmail / smtp.gmail config.
 
 My University just switched to gmail (dickheads)
 and I'm trying to figure out how to set it up.
 
 It used to work ok with the University smtp auth
 server. Now I get in /var/log/maillog:
 
  sm-mta[72300]: r2TI0vQc072134: to=me...@bris.ac.uk,
  ctladdr=me...@.men.bris.ac.uk (1001/1001),
  delay=00:20:01, xdelay=00:00:00, mailer=relay, pri=210424,
  relay=smtp.gmail.com, dsn=4.0.0,
  stat=Deferred: Operation timed out with smtp.gmail.com
 
 I switched the firewall off completely.
 
 I have:
 
 # cat /etc/mail/auth/client-info
 AuthInfo:smtp.gmail.com U:root I:me...@bristol.ac.uk P:x
 # 
 
 and this in /etc/mail/freebsd.mc:
 
 define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
 define(`SMART_HOST', `smtp.gmail.com')dnl
 
 I rebuilt (run make under /etc/mail. This just
 renames freebsd.mc to hostname.mc, and freebsd.submit.mc
 to hostname.submit.mc) and restarted sendmail.
 
 I also use:
 
 MASQUERADE_AS(`bristol.ac.uk')
 MASQUERADE_DOMAIN(`bristol.ac.uk')
 
 to use the university domain instead of
 may .men.bris.ac.uk, which is not
 acceptable.

Try this at the command line:

openssl s_client -connect smtp.gmail.com:25 -starttls smtp

If it times out, change the port number to 587 and try it again. If you
cannot make a connect using either port number then you have a firewall
problem.

Thank you, I get:

$ openssl s_client -connect smtp.gmail.com:25 -starttls smtp
connect: Operation timed out
connect:errno=60
$ 

$ openssl s_client -connect smtp.gmail.com:587 -starttls smtp
CONNECTED(0003)
depth=1 C = US, O = Google Inc, CN = Google Internet Authority
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com
   i:/C=US/O=Google Inc/CN=Google Internet Authority
 1 s:/C=US/O=Google Inc/CN=Google Internet Authority
   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority
---
Server certificate
-BEGIN CERTIFICATE-
MIIDgDCCAumgAwIBAgIKO3T/ewBoqDANBgkqhkiG9w0BAQUFADBGMQswCQYD
VQQGEwJVUzETMBEGA1UEChMKR29vZ2xlIEluYzEiMCAGA1UEAxMZR29vZ2xlIElu
dGVybmV0IEF1dGhvcml0eTAeFw0xMjA5MTIxMTU3NTBaFw0xMzA2MDcxOTQzMjda
MGgxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1N
b3VudGFpbiBWaWV3MRMwEQYDVQQKEwpHb29nbGUgSW5jMRcwFQYDVQQDEw5zbXRw
LmdtYWlsLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAv0UvQmjW1y96
cOK6AdQVEYPRd3ZQ9UhxkKfuVaYS9riOESFkWxkz+b3Ts/EOA5SY8axkaJS7Qa/v
N7laztYY8tTkx9Ml+eCY4xh0fFq9z4/WWADGqTY5I0wvqjZr+jBuYGulK1fU4ZUS
QpuZMMO9x7Bmr5LVP9C5r2qnoqtMtJUCAwEAAaOCAVEwggFNMB0GA1UdJQQWMBQG
CCsGAQUFBwMBBggrBgEFBQcDAjAdBgNVHQ4EFgQUaCtARMZ9urIDfdpR6v1AkQsr
44owHwYDVR0jBBgwFoAUv8Aw6/VDET5nup6R+/xq2uNrEiQwWwYDVR0fBFQwUjBQ
oE6gTIZKaHR0cDovL3d3dy5nc3RhdGljLmNvbS9Hb29nbGVJbnRlcm5ldEF1dGhv
cml0eS9Hb29nbGVJbnRlcm5ldEF1dGhvcml0eS5jcmwwZgYIKwYBBQUHAQEEWjBY
MFYGCCsGAQUFBzAChkpodHRwOi8vd3d3LmdzdGF0aWMuY29tL0dvb2dsZUludGVy
bmV0QXV0aG9yaXR5L0dvb2dsZUludGVybmV0QXV0aG9yaXR5LmNydDAMBgNVHRMB
Af8EAjAAMBkGA1UdEQQSMBCCDnNtdHAuZ21haWwuY29tMA0GCSqGSIb3DQEBBQUA
A4GBADSkwmtEUhy/AhX2sIULT0Q5S9OlfKxbyE8hEc8nxls3jbk5yKZYd35Bzyy8
raoUPFuD3IH+zP/FGj5LPQirjnJLUvuFDsiM4eowPUthQad9SGWWdz6hCx8HpEUZ
1ssGnwb3HX34e9RH57v9LdtVUPdFYQsBJ36miGPylWk6r0xx
-END CERTIFICATE-
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=smtp.gmail.com
issuer=/C=US/O=Google Inc/CN=Google Internet Authority
---
No client certificate CA names sent
---
SSL handshake has read 2317 bytes and written 476 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-RC4-SHA
Server public key is 1024 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol  : TLSv1.2
Cipher: ECDHE-RSA-RC4-SHA
Session-ID: 8CAF4204FADB72F58FA6334A62F65B7182EF06F3C9AD8042FD44B9F726E8C9D5
Session-ID-ctx: 
Master-Key: 
45312AE23341AAFA1414BDDD30740E4FB40655986FD410A606CD351206BBAC5E5496F77DDF4DBE32B0E9B7E7FFA1057
Key-Arg   : None
PSK identity: None
PSK identity hint: None
SRP username: None
TLS session ticket lifetime hint: 100800 (seconds)
TLS session ticket:
 - 63 53 11 b3 92 0d 59 63-15 90 58 10 84 f2 f7 6a   cSYc..Xj
0010 - 7c 7c 62 96 c5 3d cb 52-ca 32 2d 97 de 51 10 6d   ||b..=.R.2-..Q.m
0020 - d2 97 ca 69 f8 cf 3d 6e-c9 60 73 3a 49 3a 4a 74

Re: Operation timed out with smtp.gmail.com - please help

2013-03-30 Thread Anton Shterenlikht
Date: Sat, 30 Mar 2013 07:49:19 -0400
From: Jerry je...@seibercom.net
To: FreeBSD freebsd-questions@freebsd.org
Subject: Re: Operation timed out with smtp.gmail.com - please help

On Sat, 30 Mar 2013 10:49:45 +
Matthew Seaman articulated:

 Given you're seeing that CONNECTED message there, it certainly does.
 The problem with that openssl command seems to be the 'unable to get
 local issuer certificate' part.  That's possibly openssl being pickier
 about verifying certs than sendmail would be, but that certificate
 verification step is probably where you're coming adrift.  You need to
 have the intermediate certs used by Google in your cacert.pem file, so
 sendmail will trust the smtp.gmail.com cert.  Check the 'confCACERT'
 setting in your sendmail.mc.  I have a block of code like this:
=20
 define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl
 define(`confCACERT_PATH', `CERT_DIR')dnl
 define(`confCACERT', `CERT_DIR/cacert.pem')dnl
 define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
 define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
 define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
 define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl
=20
 which allows me to put all the keys and certs in /etc/mail/certs/

If you really need the Gmail certs, you can use this to get them:

openssl s_client -connect smtp.gmail.com:587 -starttls smtp -showcerts

If you feel you really need the Equifax Secure Certificate Authority
pem, go here http://www.geotrust.com/resources/root-certificates/ and
download it.

Again, how to set up Sendmail is a task I leave for the student.

Jerry, Matthew, thank you

I think I got it working.
In addition to your advice, this guide was very helpful:

http://www.phinesolutions.com/sendmail-gmail-smtp-relay-howto.html

It seems these two options were required:

define(`RELAY_MAILER_ARGS', `TCP $h 587')
define(`ESMTP_MAILER_ARGS', `TCP $h 587')

Thanks again

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


Operation timed out with smtp.gmail.com - please help

2013-03-29 Thread Anton Shterenlikht
Please help debug sendmail / smtp.gmail config.

My University just switched to gmail (dickheads)
and I'm trying to figure out how to set it up.

It used to work ok with the University smtp auth
server. Now I get in /var/log/maillog:

 sm-mta[72300]: r2TI0vQc072134: to=me...@bris.ac.uk,
 ctladdr=me...@.men.bris.ac.uk (1001/1001),
 delay=00:20:01, xdelay=00:00:00, mailer=relay, pri=210424,
 relay=smtp.gmail.com, dsn=4.0.0,
 stat=Deferred: Operation timed out with smtp.gmail.com

I switched the firewall off completely.

I have:

# cat /etc/mail/auth/client-info
AuthInfo:smtp.gmail.com U:root I:me...@bristol.ac.uk P:x
# 

and this in /etc/mail/freebsd.mc:

define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`SMART_HOST', `smtp.gmail.com')dnl

I rebuilt (run make under /etc/mail. This just
renames freebsd.mc to hostname.mc, and freebsd.submit.mc
to hostname.submit.mc) and restarted sendmail.

I also use:

MASQUERADE_AS(`bristol.ac.uk')
MASQUERADE_DOMAIN(`bristol.ac.uk')

to use the university domain instead of
may .men.bris.ac.uk, which is not
acceptable.

What else am I missing?

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: stupid portmaster question

2013-03-25 Thread Anton Shterenlikht
How do I tell portmaster -ad to ignore certain ports because they are
broken such as editors/libreoffice is currently marked as (I am sure 
this
will change soon)

 -x  avoid building or updating ports that match this pattern.  Can be
 specified more than once.  If a port is not already installed the
 exclude pattern will be run against the directory name from
 /usr/ports.

Is that what you are looking for?

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


USB host controllers on a server that does not use USB devices?

2013-03-20 Thread Anton Shterenlikht
This is on an ia64 server.

Do I need these devices in kernel:

device  ehci# EHCI host controller
device  ohci# OHCI PCI-USB interface
device  uhci# UHCI PCI-USB interface

if I don't ever attach any usb devices to it?

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


how to forbid a process to use swap?

2013-03-09 Thread Anton Shterenlikht
I run a program that uses large arrays.
I don't want it to use swap, because it's
too slow. I want the program to fail when
there's not enough RAM, rather than using
swap. How to do this?

Is it something to do with these kernel
variables:

kern.dfldsiz: 34359738368
kern.dflssiz: 8388608

kern.maxdsiz: 34359738368
kern.maxssiz: 536870912
kern.maxtsiz: 134217728

Many 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: how to forbid a process to use swap?

2013-03-09 Thread Anton Shterenlikht
From m.e.sanlit...@gmail.com Sun Mar 10 00:25:27 2013

On Sat, Mar 9, 2013 at 3:55 PM, Anton Shterenlikht 
me...@bristol.ac.ukwrote:

 I run a program that uses large arrays.
 I don't want it to use swap, because it's
 too slow. I want the program to fail when
 there's not enough RAM, rather than using
 swap. How to do this?

 Is it something to do with these kernel
 variables:

 kern.dfldsiz: 34359738368
 kern.dflssiz: 8388608

 kern.maxdsiz: 34359738368
 kern.maxssiz: 536870912
 kern.maxtsiz: 134217728

 Many thanks

 Anton




If you have program source , you may do the following :



Define a constant :  Maximum_Allocatable_Memory = ?


Define a variable : Total_Allocated_Memory = 0



Before allocating a memory of size M ,
check whether  Total_Allocated_Memory + M  Maximum_Allocatable_Memory

If yes : Allocate memory ;
  Add M to Total_Allocated_Memory .

If no :

Return an error and gracefully stop your program instead of a crash 
which
will loose data .

It's a fortran program. I'm not very stong in C.
Ideally I'd just use the OS (shell) means,
but I need to understand better which resourse
limit controls what.

For example, with sh limits(1), I see:

$ limits
Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize   524168 kB
  stacksize  524168 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked   64 kB
  maxprocesses12200
  openfiles  117594
  sbsize   infinity bytes
  vmemoryuse   infinity kB
  pseudo-terminals infinity
  swapuse  infinity kB
$ 

Which of these are relevant to my case?

Finally, the actual problem is on linux,
but I hope if I'm able to understand how
things work on FreeBSD, then I could do
it on linux too, especially if it's just
a sh command.

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: fetchmail/sendmail: Domain of sender address does not exist

2013-03-08 Thread Anton Shterenlikht
From free...@edvax.de Fri Mar  8 07:50:06 2013

On Thu, 7 Mar 2013 21:55:57 GMT, Anton Shterenlikht wrote:
 And Matthias already helped me sort it out.

Could you write to the list how you solved the problem?

http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/081919.html

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


fetchmail/sendmail: Domain of sender address does not exist

2013-03-07 Thread Anton Shterenlikht
I'm running sendmail, and using fetchmail to fetch
my mail from the university IMAP server.

I sometimes see fetchmail complain:

fetchmail: SMTP error: 553 5.1.8 ad...@system.mail... Domain of sender 
address ad...@system.mail does not exist

And this is doubled in /var/log/maillog:

sm-mta[14642]: r270BO3L014642: ruleset=check_mail, arg1=ad...@system.mail, 
relay=localhost [127.0.
0.1], reject=553 5.1.8 ad...@system.mail... Domain of sender address 
ad...@system.mail does not exist

How do I set fetchmail and sendmail to fetch
such emails?

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


process eating up all memory - what should happen next?

2013-03-07 Thread Anton Shterenlikht
I have a process that eats up al memory,
in my case science/paraview if I try to
analyse a large model. What should FreeBSD
do when a process tries to use all RAM or more?

I my case I get a complete freeze, can't even
login from the console, and requiring a cold
reboot. I guess this is not supposed to happen,
but what is supposed to happen in situations like this?

This is on ia64, so it might be something to
do with instability there.

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: fetchmail/sendmail: Domain of sender address does not exist

2013-03-07 Thread Anton Shterenlikht
Date: Thu, 7 Mar 2013 13:48:45 -0700
From: Chad Perrin per...@apotheon.com
To: freebsd-questions@freebsd.org
Subject: Re: fetchmail/sendmail: Domain of sender address does not exist

On Thu, Mar 07, 2013 at 09:40:47AM +, Anton Shterenlikht wrote:
 I'm running sendmail, and using fetchmail to fetch
 my mail from the university IMAP server.
 
 I sometimes see fetchmail complain:
 
 fetchmail: SMTP error: 553 5.1.8 ad...@system.mail... Domain of 
sender address ad...@system.mail does not exist
 
 And this is doubled in /var/log/maillog:
 
 sm-mta[14642]: r270BO3L014642: ruleset=check_mail, 
arg1=ad...@system.mail, relay=localhost [127.0.
 0.1], reject=553 5.1.8 ad...@system.mail... Domain of sender 
address ad...@system.mail does not exist
 
 How do I set fetchmail and sendmail to fetch
 such emails?

You might want to try out the mail/fdm port instead of fetchmail.  I 
have
found fetchmail to be obtuse and cantankerous; I stopped using it a long
time ago.

No, I think fetchmail's great!
And Matthias already helped me sort it out.

Thanks for the advice anyway.

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: cannot ssh into a box with DHCP assigned IP address

2013-02-20 Thread Anton Shterenlikht
From m...@my.gd Wed Feb 20 10:11:12 2013

Run this on your server:

tcpdump -ni wlan0 ip and port 22

Then try to ssh to the box,
 see if SYN packets arrive,
 see if your box sends SYN/ACK back.

172.21.220.12 is the ssh server
137.222.187.241 is the ssh client (where I login from)

There's lots of output on the server:

10:13:40.396933 IP 172.21.220.12.20541  137.222.187.241.22: Flags [P.], seq 528
:576, ack 897, win 1040, options [nop,nop,TS val 166697722 ecr 2764601194], leng
th 48
10:13:40.400142 IP 137.222.187.241.22  172.21.220.12.20541: Flags [P.], seq 897
:945, ack 576, win 1040, options [nop,nop,TS val 2764601829 ecr 166697722], leng
th 48
10:13:40.499768 IP 172.21.220.12.20541  137.222.187.241.22: Flags [.], ack 945,
 win 1040, options [nop,nop,TS val 166697825 ecr 2764601829], length 0
10:13:41.126804 IP 172.21.220.12.20541  137.222.187.241.22: Flags [P.], seq 576
:624, ack 945, win 1040, options [nop,nop,TS val 166698452 ecr 2764601829], leng
th 48
10:13:41.129465 IP 137.222.187.241.22  172.21.220.12.20541: Flags [P.], seq 945
:993, ack 624, win 1040, options [nop,nop,TS val 2764602558 ecr 166698452], leng
th 48
10:13:41.229792 IP 172.21.220.12.20541  137.222.187.241.22: Flags [.], ack 993,
 win 1040, options [nop,nop,TS val 166698555 ecr 2764602558], length 0
10:14:06.042148 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 691
166491:691166555, ack 2147595671, win 1040, options [nop,nop,TS val 2121228740 e
cr 166423364], length 64
10:14:06.043854 IP 172.21.220.12.46009  137.222.187.241.22: Flags [P.], seq 1:3
3, ack 64, win 1040, options [nop,nop,TS val 166723368 ecr 2121228740], length 3
2
10:14:06.144924 IP 137.222.187.241.22  172.21.220.12.46009: Flags [.], ack 33,
win 1040, options [nop,nop,TS val 2121228843 ecr 166723368], length 0

10:15:02.017361 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 159
04:16240, ack 7169, win 1040, options [nop,nop,TS val 2121284715 ecr 166779337],
 length 336
10:15:02.017969 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 162
40:16576, ack 7169, win 1040, options [nop,nop,TS val 2121284716 ecr 166779337],
 length 336
10:15:02.018079 IP 172.21.220.12.46009  137.222.187.241.22: Flags [.], ack 1657
6, win 1035, options [nop,nop,TS val 166779343 ecr 2121284715], length 0
10:15:02.018319 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 165
76:16896, ack 7169, win 1040, options [nop,nop,TS val 2121284716 ecr 166779337],
 length 320
10:15:02.018510 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 168
96:17232, ack 7169, win 1040, options [nop,nop,TS val 2121284716 ecr 166779337],
 length 336
10:15:02.018626 IP 172.21.220.12.46009  137.222.187.241.22: Flags [.], ack 1723
2, win 1030, options [nop,nop,TS val 166779344 ecr 2121284716], length 0
10:15:02.019583 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 172
32:17568, ack 7169, win 1040, options [nop,nop,TS val 2121284716 ecr 166779337],
 length 336
10:15:02.019840 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 175
68:17840, ack 7169, win 1040, options [nop,nop,TS val 2121284717 ecr 166779337],
 length 272
10:15:02.019927 IP 172.21.220.12.46009  137.222.187.241.22: Flags [.], ack 1784
0, win 1036, options [nop,nop,TS val 166779345 ecr 2121284716], length 0

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: cannot ssh into a box with DHCP assigned IP address

2013-02-20 Thread Anton Shterenlikht
From m...@my.gd Wed Feb 20 10:28:54 2013

Ok I think you've got a DNS resolution problem here,
 so when you try to establish the connection,
 SSHD tries to resolve your client's hostname.

It fails and times out, however your ssh login gracetime is already 
over.

You have several options here:

1/ increase the login grace time in sshd_config

ok:
LoginGraceTime 3m

2/ set usedns no (or do both, btw)

ok:
UseDNS no

3/ fix DNS resolution ;)

Well, I'm waiting for the IT support guys
to do this, but they are very slow.

I would definitely recommend
 turning off hostname resolution for sshd,
 it is of marginal value (to me at least).

Following the sshd man page, I'm also trying this:

*quote*
  -u0 may also be used to prevent sshd from making
  DNS requests unless the authentication mechanism or configuration
  requires it.  Authentication mechanisms that may require DNS
  include RhostsRSAAuthentication, HostbasedAuthentication, and
  using a from=pattern-list option in a key file.  Configuration
  options that require DNS include using a USER@HOST pattern in
  AllowUsers or DenyUsers.
*end quote*

I set in /etc/ssh/sshd_config:

RhostsRSAAuthentication no
HostbasedAuthentication no
AllowUsers mexas

and I don't have DenyUsers at all.

I then restart sshd as
/usr/sbin/sshd -u0

However, I still see the same (I think)
output from tcpdump and still get ssh timeout:

10:55:32.503085 IP 172.21.220.12.46009  137.222.187.241.22: Flags [P.], seq 535
20:53568, ack 64033, win 1040, options [nop,nop,TS val 169209828 ecr 2123714526]
, length 48
10:55:32.604376 IP 137.222.187.241.22  172.21.220.12.46009: Flags [.], ack 5356
8, win 1040, options [nop,nop,TS val 2123715301 ecr 169209828], length 0
10:55:32.668861 IP 172.21.220.12.46009  137.222.187.241.22: Flags [P.], seq 535
68:53616, ack 64033, win 1040, options [nop,nop,TS val 169209994 ecr 2123715301]
, length 48
10:55:32.671995 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 640
33:64161, ack 53616, win 1040, options [nop,nop,TS val 2123715368 ecr 169209994]
, length 128
10:55:32.672501 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 641
61:64209, ack 53616, win 1040, options [nop,nop,TS val 2123715368 ecr 169209994]
, length 48
10:55:32.672763 IP 172.21.220.12.46009  137.222.187.241.22: Flags [.], ack 6420
9, win 1040, options [nop,nop,TS val 169209998 ecr 2123715368], length 0
10:55:33.394762 IP 172.21.220.12.46009  137.222.187.241.22: Flags [P.], seq 536
16:53664, ack 64209, win 1040, options [nop,nop,TS val 169210720 ecr 2123715368]
, length 48
10:55:33.396877 IP 137.222.187.241.22  172.21.220.12.46009: Flags [P.], seq 642
09:64257, ack 53664, win 1040, options [nop,nop,TS val 2123716093 ecr 169210720]
, length 48
10:55:33.496782 IP 172.21.220.12.46009  137.222.187.241.22: Flags [.], ack 6425
7, win 1040, options [nop,nop,TS val 169210822 ecr 2123716093], length 0

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: cannot ssh into a box with DHCP assigned IP address

2013-02-20 Thread Anton Shterenlikht
From feenb...@nber.org Wed Feb 20 13:39:28 2013

   From: Fleuriot Damien m...@my.gd
   To: me...@bristol.ac.uk
   Subject: Re: cannot ssh into a box with DHCP assigned IP address
   Date: Wed, 20 Feb 2013 10:31:22 +0100
   Cc: freebsd-questions@freebsd.org

   On Feb 20, 2013, at 10:28 AM, Anton Shterenlikht 
me...@bristol.ac.uk wrote:

I have a laptop with FreeBSD -current,
with ip address assigned via DHCP.
The laptop has neither a static ip address,
nor a domain.
   
I can ping the laptop fine, but cannot
ssh into it. The sshd is running, /etc/ssh/ssd_config
seems fine, /etc/hosts.allow is fine.
However, /etc/hosts is just the default:

While on the problem machine, can you ssh to localhost? ssh to the IP 
address?

yes to both

I would suspect the problem is in /etc/hosts.allow
 or /etc/hosts.deny,

The first non-comment line in /etc/hosts.allow is
ALL : ALL : allow

and I don't have /etc/hosts.deny:

root@zzz:~ # ls /etc/hosts*
/etc/hosts  /etc/hosts.equiv
/etc/hosts.allow/etc/hosts.lpd
root@zzz:~ #

or perhaps the subnet mask is incorrect.

Well.. what should it be?
I have on the problem box (ssh server):

wlan0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 1
500
ether 00:21:5c:50:68:c3
inet 172.21.220.12 netmask 0xfc00 broadcast 255.255.255.255
nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid eduroam channel 1 (2412 MHz 11g) bssid 00:3a:98:62:cd:a0
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 14 bmiss 10 scanvalid 450
bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
protmode CTS wme roaming MANUAL

I'm trying to ssh from 137.222.187.241.

I wonder, perhaps it somehow built into the
Eduroam wireless, provided by the University,
that the devices connected to it cannot be
accessible. They can only initiate outgoing
connections, but all incoming connections are
somehow blocked? Given that the majority of
the devices will be unsecured MS boxes, maybe
the university thought that this is wise idea
for safety. Perhaps I can investigate this
with my IT guys. 

Or I might be talking complete nonsense here, not my area at all.

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: cannot ssh into a box with DHCP assigned IP address

2013-02-20 Thread Anton Shterenlikht
From m...@my.gd Wed Feb 20 14:39:34 2013

On Feb 20, 2013, at 2:55 PM, Anton Shterenlikht me...@bristol.ac.uk 
wrote:

   From feenb...@nber.org Wed Feb 20 13:39:28 2013
 
  From: Fleuriot Damien m...@my.gd
  To: me...@bristol.ac.uk
  Subject: Re: cannot ssh into a box with DHCP assigned 
IP address
  Date: Wed, 20 Feb 2013 10:31:22 +0100
  Cc: freebsd-questions@freebsd.org
   
  On Feb 20, 2013, at 10:28 AM, Anton Shterenlikht 
me...@bristol.ac.uk wrote:
   
   I have a laptop with FreeBSD -current,
   with ip address assigned via DHCP.
   The laptop has neither a static ip address,
   nor a domain.
  
   I can ping the laptop fine, but cannot
   ssh into it. The sshd is running, /etc/ssh/ssd_config
   seems fine, /etc/hosts.allow is fine.
   However, /etc/hosts is just the default:
 
   While on the problem machine, can you ssh to localhost? ssh to 
the IP 
   address?
 
 yes to both
 
   I would suspect the problem is in /etc/hosts.allow
or /etc/hosts.deny,
 
 The first non-comment line in /etc/hosts.allow is
 ALL : ALL : allow
 
 and I don't have /etc/hosts.deny:
 
 root@zzz:~ # ls /etc/hosts*
 /etc/hosts  /etc/hosts.equiv
 /etc/hosts.allow/etc/hosts.lpd
 root@zzz:~ #
 
   or perhaps the subnet mask is incorrect.
 
 Well.. what should it be?
 I have on the problem box (ssh server):
 
 wlan0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST 
metric 0 mtu 1
 500
ether 00:21:5c:50:68:c3
inet 172.21.220.12 netmask 0xfc00 broadcast 255.255.255.255
nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid eduroam channel 1 (2412 MHz 11g) bssid 00:3a:98:62:cd:a0
country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 14 bmiss 10 
scanvalid 450
bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
protmode CTS wme roaming MANUAL
 
 I'm trying to ssh from 137.222.187.241.
 
 I wonder, perhaps it somehow built into the
 Eduroam wireless, provided by the University,
 that the devices connected to it cannot be
 accessible. They can only initiate outgoing
 connections, but all incoming connections are
 somehow blocked? Given that the majority of
 the devices will be unsecured MS boxes, maybe
 the university thought that this is wise idea
 for safety. Perhaps I can investigate this
 with my IT guys. 
 
 Or I might be talking complete nonsense here, not my area at all.
 
 Thanks
 
 Anton
 


Any luck with Daniel's suggestion to try it directly on the problematic 
host ?

ssh 127.0.0.1
ssh localhost
ssh 172.21.220.12

yes to all (I replied already above).

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


daily otput: rejected mail hosts?

2013-02-14 Thread Anton Shterenlikht
I see in the daily output:

Checking for rejected mail hosts:
 172 553 check_mail system.mail exist
 129 553 check_mail tsvpt014.vpt.co.uk exist
  43 553 check_mail unix.dedicated.com.tr exist
  43 553 check_mail ubs.net exist
  43 553 check_mail localhost.localdomain exist
  43 553 check_mail journal-cfp.org exist
  43 553 check_mail italiasito.it exist

What is that about?

Is this described somewhere in sendmail manuals?

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: which X driver for NVIDIA Quadro FX 570M?

2013-02-11 Thread Anton Shterenlikht
From: paranormal paranor...@isgroup.com.ua
Subject: Re: which X driver for NVIDIA Quadro FX 570M?
To: freebsd-questions@freebsd.org
Date: Wed, 06 Feb 2013 03:23:40 +0200

I have t61p with mentioned card.
x11/nvidia-driver works well for me (at least quake, doom, compiz work).

Thanks for all the replies.

I bought a T61p for 220 GBP - what bliss!

BIOS update - no problem
HEAD r246552 - no problem
wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem
sound with hdac0: Intel 82801H HDA Controller - no problem
CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM SCSI-0 device
  and sysutils/cdrtools-devel - no problem
X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem
flash as per 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
  (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem

In fact, no problems at all!

I can't recommend it enough.

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: which X driver for NVIDIA Quadro FX 570M?

2013-02-11 Thread Anton Shterenlikht
From smi...@nimnet.asn.au Mon Feb 11 13:49:38 2013

On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote:
   From: paranormal paranor...@isgroup.com.ua
   Subject: Re: which X driver for NVIDIA Quadro FX 570M?
   To: freebsd-questions@freebsd.org
   Date: Wed, 06 Feb 2013 03:23:40 +0200
  
   I have t61p with mentioned card.
   x11/nvidia-driver works well for me (at least quake, doom, 
compiz work).
  
  Thanks for all the replies.
  
  I bought a T61p for 220 GBP - what bliss!
  
  BIOS update - no problem
  HEAD r246552 - no problem
  wireless with iwn0: Intel Wireless WiFi Link 4965 - no problem
  sound with hdac0: Intel 82801H HDA Controller - no problem
  CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable CD-ROM 
SCSI-0 device
and sysutils/cdrtools-devel - no problem
  X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no problem
  flash as per 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
(7.2.1.2 Firefox and Adobe Flash Plugin) - no problem
  
  In fact, no problems at all!
  
  I can't recommend it enough.
  
  Anton

Suspend and resume?

I guess no... However, I'm very ignorant of suspend/resume,
so not sure I'm doing the right thing.

- the T61p manual details standby and hibernation modes.
Is this what you refer to by suspend?
I can go into standby with Fn+F4, or with acpiconf -s 3
but can't seem to get back. The disk starts, but the
screen is corrupted, kind of black with very few white dots.
I have to power off/on. 

The Fn+F12, hibernation mode code, does not seem to
do anything.

- I've had a quick look at acpi(4) and apm(8).
I have:

hw.acpi.supported_sleep_state: S3 S4 S5
hw.acpi.s4bios: 0

-  Anything I should check/test in BIOS?
I see that power management is enabled in BIOS.
Is that enough?

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: which X driver for NVIDIA Quadro FX 570M?

2013-02-11 Thread Anton Shterenlikht
From smi...@nimnet.asn.au Mon Feb 11 16:59:49 2013

On Mon, 11 Feb 2013 14:28:30 GMT, Anton Shterenlikht wrote:
   From smi...@nimnet.asn.au Mon Feb 11 13:49:38 2013
  
   On Mon, 11 Feb 2013 10:41:31 GMT, Anton Shterenlikht wrote:
  From: paranormal paranor...@isgroup.com.ua
  Subject: Re: which X driver for NVIDIA Quadro FX 570M?
  To: freebsd-questions@freebsd.org
  Date: Wed, 06 Feb 2013 03:23:40 +0200
 
  I have t61p with mentioned card.
  x11/nvidia-driver works well for me (at least quake, 
doom, compiz work).
 
 Thanks for all the replies.
 
 I bought a T61p for 220 GBP - what bliss!
 
 BIOS update - no problem
 HEAD r246552 - no problem
 wireless with iwn0: Intel Wireless WiFi Link 4965 - no 
problem
 sound with hdac0: Intel 82801H HDA Controller - no problem
 CD-RW with cd0: HL-DT-ST DVDRAM GSA-U10N 1.05 Removable 
CD-ROM SCSI-0 device
   and sysutils/cdrtools-devel - no problem
 X with nvidia0: Quadro FX 570M and x11/nvidia-driver - no 
problem
 flash as per 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/desktop-browsers.html
   (7.2.1.2 Firefox and Adobe Flash Plugin) - no problem
 
 In fact, no problems at all!
 
 I can't recommend it enough.
 
 Anton
  
   Suspend and resume?
  
  I guess no... However, I'm very ignorant of suspend/resume,
  so not sure I'm doing the right thing.
  
  - the T61p manual details standby and hibernation modes.
  Is this what you refer to by suspend?
  I can go into standby with Fn+F4, or with acpiconf -s 3

Ok, state S3 is what we call suspend, more precisely suspend to RAM 
(STR); windows and so most BIOSes call that state standby.

  but can't seem to get back. The disk starts, but the
  screen is corrupted, kind of black with very few white dots.
  I have to power off/on. 

A common enough tale these days.  I try to remain hopeful someone will 
get a more modern Thinkpad than the T43s (reportedly) or my older T23s 
(certainly) resuming in one unbroken piece every time again, one day ..

  The Fn+F12, hibernation mode code, does not seem to
  do anything.
  
  - I've had a quick look at acpi(4) and apm(8).
  I have:
  
  hw.acpi.supported_sleep_state: S3 S4 S5
  hw.acpi.s4bios: 0

S3 is suspend to RAM; S4 suspend to disk (STD, unsupported by FreeBSD);
S5 is power off, should work but may bypass some shutdown(8) processing.

S4, STD - 'hibernation' - has two varieties; with s4bios the BIOS 
itself 
writes machine state and all RAM to disk, usually a preallocated file 
in 
an msdosfs slice.  I haven't heard of any new boxes supporting this in 
BIOS for years; windows (since ~'95) and Linux (I'm told) support STD.

  -  Anything I should check/test in BIOS?
  I see that power management is enabled in BIOS.
  Is that enough?

It should be, but doesn't seem to work on many.  When it resumes with 
messed up screen, can you ping it, or maybe ssh in, or is it dead?

yes, I thought of this, but haven't checked yet.
I haven't got a static IP allocated yet, and
I somehow can never ssh into a box with DHCP allocated address.

If you boot it but don't start X, can it come back from suspend?

no, with or without X - same result.

Frankly, unless you're _really_ keen to get STR working, this could 
turn 
into not just a rabbithole, but the whole warren - you'll have to 
really 
want to be the bunny!

no, certainly not for me.
I'm all for helping committers with testing
patches and such, but for me suspend/resume
is not really an issue.

Sounds like a very nice machine otherwise :)

yes, it's definitely better than HP Compaq 6715s I used before.

cheers, Ian

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


building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-09 Thread Anton Shterenlikht
This is on amd64 r246552

I added

options COMPAT_43
options COMPAT_LINUX
options COMPAT_LINUX32

to the kernel config,
following sys/amd64/conf/NOTES

On buildkernel I get:

unknown option COMPAT_LINUX

What am I missing?

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: building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-09 Thread Anton Shterenlikht
From free...@edvax.de Sun Feb 10 00:29:36 2013

On Sun, 10 Feb 2013 00:18:06 GMT, Anton Shterenlikht wrote:
 This is on amd64 r246552
 
 I added
 
 options COMPAT_43
 options COMPAT_LINUX
 options COMPAT_LINUX32
 
 to the kernel config,
 following sys/amd64/conf/NOTES
 
 On buildkernel I get:
 
 unknown option COMPAT_LINUX
 
 What am I missing?

Do you also have those (from a working i386 system):

# Linux support
options COMPAT_LINUX# Enable Linux ABI emulation
options LINPROCFS   # Enable the linux-like proc 
filesystemsupport (requires COMPAT_LINUX and PSEUDOFS)
options LINSYSFS# Enable the linux-like sys 
filesystem support (requires COMPAT_LINUX and PSEUDOFS)
device  lindev
options COMPAT_AOUT # Enable i386 a.out binary 
support

(note PSEUDOFS is also needed)

No, I haven't added those.
Are these necessary to have
the linux binary compatibility?
The handbook only mentions COMPAT_LINUX.

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: building custom kernel on -current: unknown option COMPAT_LINUX

2013-02-09 Thread Anton Shterenlikht
From free...@edvax.de Sun Feb 10 00:42:11 2013

On Sun, 10 Feb 2013 00:31:44 GMT, Anton Shterenlikht wrote:
   From free...@edvax.de Sun Feb 10 00:29:36 2013
 
   On Sun, 10 Feb 2013 00:18:06 GMT, Anton Shterenlikht wrote:
This is on amd64 r246552

I added

options COMPAT_43
options COMPAT_LINUX
options COMPAT_LINUX32

to the kernel config,
following sys/amd64/conf/NOTES

On buildkernel I get:

unknown option COMPAT_LINUX

What am I missing?
 
   Do you also have those (from a working i386 system):
 
   # Linux support
   options COMPAT_LINUX# Enable Linux ABI 
emulation
   options LINPROCFS   # Enable the linux-like 
proc filesystemsupport (requires COMPAT_LINUX and PSEUDOFS)
   options LINSYSFS# Enable the linux-like 
sys filesystem support (requires COMPAT_LINUX and PSEUDOFS)
   device  lindev
   options COMPAT_AOUT # Enable i386 a.out 
binary support
 
   (note PSEUDOFS is also needed)
 
 No, I haven't added those.
 Are these necessary to have
 the linux binary compatibility?
 The handbook only mentions COMPAT_LINUX.

I think I had the same question some time ago and found
out that if those options are present, the Linux functionality
will build properly in the kernel. So I assume they are
required.

I removed COMPAT_LINUX, and only left

options COMPAT_43
options COMPAT_LINUX32

This seems enough to get flash
working with firefox, exactly as per
the handbook instructions.

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


mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Anton Shterenlikht
I need to transfer some files from sparc64 -current
box onto amd64 9.1-RELEASE laptop.
The amd64 laptop has no network connection yet,
so I'm trying to achive this with a USB flash drive. 

The problem is that I always end up with

# mount /dev/da0p1 /mnt/
mount: /dev/da0p1: Invalid argument
# 

If I do newfs on the sparc64 box, then I can't
mount it on the amd64 box, and vice versa.

I tried just newfs /dev/da0, and using gpart,
e.g.:

# gpart show /dev/da0
= 34  4029373  da0  GPT  (1.9G)
   34 20481  freebsd-ufs  (1.0M)
 2082  4027325   - free -  (1.9G)

#

and then newfs /dev/da0p1, or similar,
but no luck.

I tried sparc64 VTOC8 partition scheme too - no help.

I can mount the device and use it as expected,
i.e. copy files to/from it on either box, but
the other box doesn't seem to understand the file
system.

I tried loading various modules in desperation,
e.g. on the sparc64 side:

# kldstat 
Id Refs AddressSize Name
 19 0xc000 a80e58   kernel
 21 0x101bca000 104000   geom_part_mbr.ko
 31 0x101cce000 11   geom_label.ko
 41 0x101dde000 108000   geom_part_gpt.ko
# 

but still no use. 

Am I missing something simple?

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: mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Anton Shterenlikht
From kostik...@gmail.com Fri Feb  8 12:25:21 2013

On Fri, Feb 08, 2013 at 12:01:41PM +, Anton Shterenlikht wrote:
 I need to transfer some files from sparc64 -current
 box onto amd64 9.1-RELEASE laptop.
 The amd64 laptop has no network connection yet,
 so I'm trying to achive this with a USB flash drive.=20
=20
 The problem is that I always end up with
=20
 # mount /dev/da0p1 /mnt/
 mount: /dev/da0p1: Invalid argument
 #=20
=20
 If I do newfs on the sparc64 box, then I can't
 mount it on the amd64 box, and vice versa.
=20
 I tried just newfs /dev/da0, and using gpart,
 e.g.:
=20
 # gpart show /dev/da0
 =3D 34  4029373  da0  GPT  (1.9G)
34 20481  freebsd-ufs  (1.0M)
  2082  4027325   - free -  (1.9G)
=20
 #
=20
 and then newfs /dev/da0p1, or similar,
 but no luck.
=20
 I tried sparc64 VTOC8 partition scheme too - no help.
=20
 I can mount the device and use it as expected,
 i.e. copy files to/from it on either box, but
 the other box doesn't seem to understand the file
 system.
=20
 I tried loading various modules in desperation,
 e.g. on the sparc64 side:
=20
 # kldstat=20
 Id Refs AddressSize Name
  19 0xc000 a80e58   kernel
  21 0x101bca000 104000   geom_part_mbr.ko
  31 0x101cce000 11   geom_label.ko
  41 0x101dde000 108000   geom_part_gpt.ko
 #=20
=20
 but still no use.=20
=20
 Am I missing something simple?

UFS on FreeBSD is not endian-agnostic. It uses the host byte order
for multibyte values.

As result, you can share UFS volumes only between hosts with the same
endianess, like i386/amd64/ia64 little endian or sparc64/mips big 
endian.
AFAIK, NetBSD has such support.

Wow... I didn't realise that.
I thought UFS (1 or 2) takes all care
of endian-ness. Do you mean that even
I had say a SCSI internal disk with UFS2,
I couldn't move it between a little and
a big endian freebsd boxes?

So what is the advice for transferring data
via USB in such cases? Any other gpart partition
I could use?

In the end I burned a CD with the files in question,
but it's a bit of a waste, as I only need to
move over several KB of data (wireless setup).

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: mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Anton Shterenlikht
From ch...@monochrome.org Fri Feb  8 13:27:48 2013

On Fri, 8 Feb 2013, Anton Shterenlikht wrote:

  [ snip ]

 So what is the advice for transferring data
 via USB in such cases? Any other gpart partition
 I could use?

I've always used FAT32 for thumb drives and the like. I don't know if 
the SPARC would be able to use it, but FAT32 seems like it's most 
likely 
to be usable by the largest number of different platforms.

But how do I create FAT32 partitions on FreeBSD?
The gpart doesn't seem to support it.

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: mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Anton Shterenlikht
From bon...@mail.r-bonomi.com Fri Feb  8 13:27:49 2013

 From: Anton Shterenlikht me...@bristol.ac.uk
 Subject: Re: mount: /dev/da0p1: Invalid argument

  From kostik...@gmail.com Fri Feb  8 12:25:21 2013

  On Fri, Feb 08, 2013 at 12:01:41PM +, Anton Shterenlikht wrote:
   I need to transfer some files from sparc64 -current
   box onto amd64 9.1-RELEASE laptop.
   The amd64 laptop has no network connection yet,
   so I'm trying to achive this with a USB flash drive.=20
  =20
   The problem is that I always end up with
  =20
   # mount /dev/da0p1 /mnt/
   mount: /dev/da0p1: Invalid argument
   #=20
  =20
   If I do newfs on the sparc64 box, then I can't
   mount it on the amd64 box, and vice versa.
  =20
   I tried just newfs /dev/da0, and using gpart,
   e.g.:
  =20
   # gpart show /dev/da0
   =3D 34  4029373  da0  GPT  (1.9G)
  34 20481  freebsd-ufs  (1.0M)
2082  4027325   - free -  (1.9G)
  =20
   #
  =20
   and then newfs /dev/da0p1, or similar,
   but no luck.
  =20
   I tried sparc64 VTOC8 partition scheme too - no help.
  =20
   I can mount the device and use it as expected,
   i.e. copy files to/from it on either box, but
   the other box doesn't seem to understand the file
   system.
  =20
   I tried loading various modules in desperation,
   e.g. on the sparc64 side:
  =20
   # kldstat=20
   Id Refs AddressSize Name
19 0xc000 a80e58   kernel
21 0x101bca000 104000   geom_part_mbr.ko
31 0x101cce000 11   geom_label.ko
41 0x101dde000 108000   geom_part_gpt.ko
   #=20
  =20
   but still no use.=20
  =20
   Am I missing something simple?

  UFS on FreeBSD is not endian-agnostic. It uses the host byte order
  for multibyte values.

  As result, you can share UFS volumes only between hosts with the same
  endianess, like i386/amd64/ia64 little endian or sparc64/mips big 
endian.
  AFAIK, NetBSD has such support.

 Wow... I didn't realise that.
 I thought UFS (1 or 2) takes all care
 of endian-ness. Do you mean that even
 I had say a SCSI internal disk with UFS2,
 I couldn't move it between a little and
 a big endian freebsd boxes?

 So what is the advice for transferring data
 via USB in such cases? Any other gpart partition
 I could use?

you could use zfs.

easier is to use the media as src/dest for tar/gtar/bsdtar/etc.
tar is endian-agnostic, although there may be endian-ness issues
with binary data in files inside the tarball.

Yes, tar works, e.g. on sparc64 side:

# tar -cf - /home/mexas/ftree.gv | dd of=/dev/da0
tar: Removing leading '/' from member names
20+0 records in
20+0 records out
10240 bytes transferred in 0.214031 secs (47844 bytes/sec)
# 

Then on amd64 side:

#dd if=/dev/da0 | tar -xf -

I've got my file. The only
problem is that the last command
never stopped. I had to terminate
it with CTRL/C. Is that the right syntax at all?

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: mount: /dev/da0p1: Invalid argument

2013-02-08 Thread Anton Shterenlikht
From jnagyjr1...@gmail.com Fri Feb  8 14:47:22 2013

On 02/08/13 07:38, Anton Shterenlikht wrote:
   From ch...@monochrome.org Fri Feb  8 13:27:48 2013

   On Fri, 8 Feb 2013, Anton Shterenlikht wrote:

 [ snip ]

So what is the advice for transferring data
via USB in such cases? Any other gpart partition
I could use?

   I've always used FAT32 for thumb drives and the like. I don't 
know if
   the SPARC would be able to use it, but FAT32 seems like it's 
most likely
   to be usable by the largest number of different platforms.

 But how do I create FAT32 partitions on FreeBSD?
 The gpart doesn't seem to support it.

 Anton

for a new fat32 fs I used:

newfs_msdos -F 32 -L travelsize /dev/da0

(FreeBSD 9.1 amd64 over here, for what it's worth)

got it, thanks.
Seems it works on sparc64 too.

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


which X driver for NVIDIA Quadro FX 570M?

2013-02-03 Thread Anton Shterenlikht
I'm considering buying this Thinkpad T61p laptop:
http://www.ebay.co.uk/itm/321063105251

It lists this graphics card:

NVIDIA Quadro FX 570M

I'm not sure what driver, if any, will support it.

There seems to be the official Nvidia FreeBSD driver
provided for it:

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

but this apparently has to be installed outside of
the ports tree.

xf86-video-nv drivers list several other Quadro cards,
but not specifically 570M.

Maybe somebody has used this card, so can give a
definite reply?

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: IPMI SOL setup on FreeBSD 9.1 amd64 supermicro X9SCM-F/X9CL-F

2013-01-23 Thread Anton Yuzhaninov
On Mon, 21 Jan 2013 22:52:17, Derek Ragona wrote:
DR I have a couple servers that are built using the supermicro X9SCM-F/X9CL-F 
DR motherboards, and I can't quite get IPMI SOL working right.
DR 
DR These motherboards have 3 NIC's.  One NIC is for a dedicated IPMI interface.
DR 
DR I have both servers configured to use the dedicated IPMI NIC and these 
DR NIC's are plugged into a separate unmanaged switch.
DR 
DR Both systems boards are set to redirect com1.  I changed /etc/ttys to run a 
DR getty on /dev/ttyu0.  I have com1 configured to 115,200 baud, 8, n, 1, no 
DR flowcontrol in the BIOS.  I in have /etc/ttys:
DR ttyu0   /usr/libexec/getty std.115200 vt100   on secure

/etc/ttys:
ttyu1   /usr/libexec/getty std.115200 vt100   on  secure

/boot/loader.conf:
hint.uart.0.flags=0
hint.uart.1.flags=0x10
boot_serial=YES
boot_multicons=YES
comconsole_speed=115200
console=comconsole vidconsole

-- 
 Anton Yuzhaninov

___
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


powerd(8), cpufreq(4) only available on amd64/i386?

2013-01-07 Thread Anton Shterenlikht
I recently installed 9.1-release on a sparc64 box.
One of the options in bsdinstall was to use the
cpu power control. I chose to use it. So I've got

# grep power /etc/rc.conf 
powerd_enable=YES
#

which doesn't seem to work:

root: /etc/rc: WARNING: failed to start powerd

Is the following dmesg line relevant?

# dmesg|grep power management
jbusppm0: JBus power management mem 
0x4000f00-0x4000f07,0x4000f410050-0x4000f41005f on nexus0
# 

Anyway, I wonder if powerd is only for amd64/i386
and is not supposed to work on sparc64.
cpufreq(4) is not listed in sparc64 GENERIC kernel.

If that's the case, then maybe it's best to
remove powerd option from bsdinstall?

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: do I need agp(4) on my amd64 laptop

2012-11-25 Thread Anton Shterenlikht
From ill...@gmail.com Sat Nov 24 16:09:29 2012

On 22 November 2012 06:19, Anton Shterenlikht me...@bristol.ac.uk 
wrote:
 It is not clear for me from the agp(4) man page,
 whether I need this device in the kernel or not.
 The pciconf -lv output is below. Or do I need to
 show dmesg?

 Please advise

 Thanks
 Anton


 hostb0@pci0:0:0:0:  class=0x06 card=0x30c2103c 
chip=0x79101002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 Host Bridge'
 class  = bridge
 subclass   = HOST-PCI
 pcib1@pci0:0:1:0:   class=0x060400 card=0x30c2103c 
chip=0x79121002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (Internal gfx)'
 class  = bridge
 subclass   = PCI-PCI
 pcib2@pci0:0:4:0:   class=0x060400 card=0x30c2103c 
chip=0x79141002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 class  = bridge
 subclass   = PCI-PCI
 pcib3@pci0:0:5:0:   class=0x060400 card=0x30c2103c 
chip=0x79151002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (PCI Express Port 1)'
 class  = bridge
 subclass   = PCI-PCI
 pcib4@pci0:0:6:0:   class=0x060400 card=0x30c2103c 
chip=0x79161002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (PCI Express Port 2)'
 class  = bridge
 subclass   = PCI-PCI
 ahci0@pci0:0:18:0:  class=0x01018f card=0x43801002 
chip=0x43801002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 Non-Raid-5 SATA'
 class  = mass storage
 subclass   = ATA
 ohci0@pci0:0:19:0:  class=0x0c0310 card=0x30c2103c 
chip=0x43871002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI0)'
 class  = serial bus
 subclass   = USB
 ohci1@pci0:0:19:1:  class=0x0c0310 card=0x30c2103c 
chip=0x43881002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI1)'
 class  = serial bus
 subclass   = USB
 ohci2@pci0:0:19:2:  class=0x0c0310 card=0x30c2103c 
chip=0x43891002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI2)'
 class  = serial bus
 subclass   = USB
 ohci3@pci0:0:19:3:  class=0x0c0310 card=0x30c2103c 
chip=0x438a1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI3)'
 class  = serial bus
 subclass   = USB
 ohci4@pci0:0:19:4:  class=0x0c0310 card=0x30c2103c 
chip=0x438b1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI4)'
 class  = serial bus
 subclass   = USB
 ehci0@pci0:0:19:5:  class=0x0c0320 card=0x30c2103c 
chip=0x43861002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB Controller (EHCI)'
 class  = serial bus
 subclass   = USB
 none0@pci0:0:20:0:  class=0x0c0500 card=0x30c2103c 
chip=0x43851002 rev=0x14 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SBx00 SMBus Controller'
 class  = serial bus
 subclass   = SMBus
 atapci0@pci0:0:20:1:class=0x010182 card=0x30c2103c 
chip=0x438c1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 IDE'
 class  = mass storage
 subclass   = ATA
 hdac0@pci0:0:20:2:  class=0x040300 card=0x30c2103c 
chip=0x43831002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SBx00 Azalia (Intel HDA)'
 class  = multimedia
 subclass   = HDA
 isab0@pci0:0:20:3:  class=0x060100 card=0x30c2103c 
chip=0x438d1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 PCI to LPC Bridge'
 class  = bridge
 subclass   = PCI-ISA
 pcib5@pci0:0:20:4:  class=0x060401 card=0x 
chip=0x43841002

Re: do I need agp(4) on my amd64 laptop

2012-11-25 Thread Anton Shterenlikht
From ill...@gmail.com Sat Nov 24 16:09:29 2012
 On 22 November 2012 06:19, Anton Shterenlikht me...@bristol.ac.uk 
wrote:
 It is not clear for me from the agp(4) man page,
 whether I need this device in the kernel or not.
 The pciconf -lv output is below. Or do I need to
 show dmesg?

 Please advise

 Thanks
 Anton


 hostb0@pci0:0:0:0:  class=0x06 card=0x30c2103c 
chip=0x79101002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 Host Bridge'
 class  = bridge
 subclass   = HOST-PCI
 pcib1@pci0:0:1:0:   class=0x060400 card=0x30c2103c 
chip=0x79121002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (Internal gfx)'
 class  = bridge
 subclass   = PCI-PCI
 pcib2@pci0:0:4:0:   class=0x060400 card=0x30c2103c 
chip=0x79141002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 class  = bridge
 subclass   = PCI-PCI
 pcib3@pci0:0:5:0:   class=0x060400 card=0x30c2103c 
chip=0x79151002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (PCI Express Port 1)'
 class  = bridge
 subclass   = PCI-PCI
 pcib4@pci0:0:6:0:   class=0x060400 card=0x30c2103c 
chip=0x79161002 rev=0x00 hdr=0x01
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'RS690 PCI to PCI Bridge (PCI Express Port 2)'
 class  = bridge
 subclass   = PCI-PCI
 ahci0@pci0:0:18:0:  class=0x01018f card=0x43801002 
chip=0x43801002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 Non-Raid-5 SATA'
 class  = mass storage
 subclass   = ATA
 ohci0@pci0:0:19:0:  class=0x0c0310 card=0x30c2103c 
chip=0x43871002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI0)'
 class  = serial bus
 subclass   = USB
 ohci1@pci0:0:19:1:  class=0x0c0310 card=0x30c2103c 
chip=0x43881002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI1)'
 class  = serial bus
 subclass   = USB
 ohci2@pci0:0:19:2:  class=0x0c0310 card=0x30c2103c 
chip=0x43891002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI2)'
 class  = serial bus
 subclass   = USB
 ohci3@pci0:0:19:3:  class=0x0c0310 card=0x30c2103c 
chip=0x438a1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI3)'
 class  = serial bus
 subclass   = USB
 ohci4@pci0:0:19:4:  class=0x0c0310 card=0x30c2103c 
chip=0x438b1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB (OHCI4)'
 class  = serial bus
 subclass   = USB
 ehci0@pci0:0:19:5:  class=0x0c0320 card=0x30c2103c 
chip=0x43861002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 USB Controller (EHCI)'
 class  = serial bus
 subclass   = USB
 none0@pci0:0:20:0:  class=0x0c0500 card=0x30c2103c 
chip=0x43851002 rev=0x14 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SBx00 SMBus Controller'
 class  = serial bus
 subclass   = SMBus
 atapci0@pci0:0:20:1:class=0x010182 card=0x30c2103c 
chip=0x438c1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 IDE'
 class  = mass storage
 subclass   = ATA
 hdac0@pci0:0:20:2:  class=0x040300 card=0x30c2103c 
chip=0x43831002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SBx00 Azalia (Intel HDA)'
 class  = multimedia
 subclass   = HDA
 isab0@pci0:0:20:3:  class=0x060100 card=0x30c2103c 
chip=0x438d1002 rev=0x00 hdr=0x00
 vendor = 'Advanced Micro Devices [AMD] nee ATI'
 device = 'SB600 PCI to LPC Bridge'
 class  = bridge
 subclass   = PCI-ISA
 pcib5@pci0:0:20:4:  class=0x060401 card=0x 
chip=0x43841002

do I need agp(4) on my amd64 laptop

2012-11-22 Thread Anton Shterenlikht
It is not clear for me from the agp(4) man page,
whether I need this device in the kernel or not.
The pciconf -lv output is below. Or do I need to
show dmesg?

Please advise

Thanks
Anton


hostb0@pci0:0:0:0:  class=0x06 card=0x30c2103c chip=0x79101002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RS690 Host Bridge'
class  = bridge
subclass   = HOST-PCI
pcib1@pci0:0:1:0:   class=0x060400 card=0x30c2103c chip=0x79121002 rev=0x00 
hdr=0x01
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RS690 PCI to PCI Bridge (Internal gfx)'
class  = bridge
subclass   = PCI-PCI
pcib2@pci0:0:4:0:   class=0x060400 card=0x30c2103c chip=0x79141002 rev=0x00 
hdr=0x01
vendor = 'Advanced Micro Devices [AMD] nee ATI'
class  = bridge
subclass   = PCI-PCI
pcib3@pci0:0:5:0:   class=0x060400 card=0x30c2103c chip=0x79151002 rev=0x00 
hdr=0x01
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RS690 PCI to PCI Bridge (PCI Express Port 1)'
class  = bridge
subclass   = PCI-PCI
pcib4@pci0:0:6:0:   class=0x060400 card=0x30c2103c chip=0x79161002 rev=0x00 
hdr=0x01
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'RS690 PCI to PCI Bridge (PCI Express Port 2)'
class  = bridge
subclass   = PCI-PCI
ahci0@pci0:0:18:0:  class=0x01018f card=0x43801002 chip=0x43801002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 Non-Raid-5 SATA'
class  = mass storage
subclass   = ATA
ohci0@pci0:0:19:0:  class=0x0c0310 card=0x30c2103c chip=0x43871002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB (OHCI0)'
class  = serial bus
subclass   = USB
ohci1@pci0:0:19:1:  class=0x0c0310 card=0x30c2103c chip=0x43881002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB (OHCI1)'
class  = serial bus
subclass   = USB
ohci2@pci0:0:19:2:  class=0x0c0310 card=0x30c2103c chip=0x43891002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB (OHCI2)'
class  = serial bus
subclass   = USB
ohci3@pci0:0:19:3:  class=0x0c0310 card=0x30c2103c chip=0x438a1002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB (OHCI3)'
class  = serial bus
subclass   = USB
ohci4@pci0:0:19:4:  class=0x0c0310 card=0x30c2103c chip=0x438b1002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB (OHCI4)'
class  = serial bus
subclass   = USB
ehci0@pci0:0:19:5:  class=0x0c0320 card=0x30c2103c chip=0x43861002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 USB Controller (EHCI)'
class  = serial bus
subclass   = USB
none0@pci0:0:20:0:  class=0x0c0500 card=0x30c2103c chip=0x43851002 rev=0x14 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SBx00 SMBus Controller'
class  = serial bus
subclass   = SMBus
atapci0@pci0:0:20:1:class=0x010182 card=0x30c2103c chip=0x438c1002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 IDE'
class  = mass storage
subclass   = ATA
hdac0@pci0:0:20:2:  class=0x040300 card=0x30c2103c chip=0x43831002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SBx00 Azalia (Intel HDA)'
class  = multimedia
subclass   = HDA
isab0@pci0:0:20:3:  class=0x060100 card=0x30c2103c chip=0x438d1002 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SB600 PCI to LPC Bridge'
class  = bridge
subclass   = PCI-ISA
pcib5@pci0:0:20:4:  class=0x060401 card=0x chip=0x43841002 rev=0x00 
hdr=0x01
vendor = 'Advanced Micro Devices [AMD] nee ATI'
device = 'SBx00 PCI to PCI Bridge'
class  = bridge
subclass   = PCI-PCI
hostb1@pci0:0:24:0: class=0x06 card=0x chip=0x11001022 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD]'
device = 'K8 [Athlon64/Opteron] HyperTransport Technology Configuration'
class  = bridge
subclass   = HOST-PCI
hostb2@pci0:0:24:1: class=0x06 card=0x chip=0x11011022 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD]'
device = 'K8 [Athlon64/Opteron] Address Map'
class  = bridge
subclass   = HOST-PCI
hostb3@pci0:0:24:2: class=0x06 card=0x chip=0x11021022 rev=0x00 
hdr=0x00
vendor = 'Advanced Micro Devices [AMD]'
device = 'K8 [Athlon64/Opteron] DRAM Controller'
class  = bridge
subclass   = HOST-PCI
hostb4@pci0:0:24:3: class

Re: csup to svn

2012-11-21 Thread Anton Shterenlikht
Date: Wed, 21 Nov 2012 11:10:28 -0500
From: Fbsd8 fb...@a1poweruser.com

I use packages for all my ports.
But some times I have to use ports make files because I need to change 
the default configuration.

I use a custom csup script to just download the desired single port.

Since the CVSup/Csup service is being phased out as of February 28, 
2013, How can I duplicate this function using svn?

Following is a sample csup script I use to download a single port.


  #! /bin/sh
  # This script is used to download make files for ytree port.

  # Load script symbolic field with path  file name
  cvsupfile=/root/temp.work.file

  # Check to see if file exists  delete it if it does
  [ -e $cvsupfile ]  rm -f $cvsupfile

  # Load instream data to file
  cat  $cvsupfile EOD
  *default  base=/usr# create CVSup tree off /usr 
directory
  *default  release=cvs
  *default  delete use-rel-suffix# no compression, for DSL or t1 
lines
  *default  host=cvsup11.FreeBSD.org #  Virginia
  *default tag=.  # set tag value to nulls to get most current 
version
  ports-misc
  EOD

  # Exec csup to download just the selected port make files
  cd /usr/ports/
  csup -g -L 2 -i ports/misc/ytree $cvsupfile

  # Delete file we are done with it
  rm -f $cvsupfile

  echo  Ytree port download completed.

I would do:

# cd /usr/ports
# svn co svn://svn0.us-east.freebsd.org/ports/head/ .

This will populate your ports tree.
Then, you can update anything and everything,
e.g. the whole ports tree:

# svn up /usr/ports

or just a single port:

# svn up /usr/ports/misc/ytree

I think it's way simpler than your current method.
In my opinion, svn is way better (at least in this regard)
than csup.

Other useful thing that is easy with svn is reverting
port updates, e.g. when new ports don't build or give
other problems. For example, right now the latest sudo
doesn't work for me on ia64. So I do

# svn up /usr/ports
# svn up -r302692 /usr/ports/security/sudo

to build an older working version of sudo.

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: csup to svn

2012-11-21 Thread Anton Shterenlikht
From fb...@a1poweruser.com Wed Nov 21 17:57:51 2012

Anton Shterenlikht wrote:
   Date: Wed, 21 Nov 2012 11:10:28 -0500
   From: Fbsd8 fb...@a1poweruser.com
 
   I use packages for all my ports.
   But some times I have to use ports make files because I need to 
change 
   the default configuration.
 
   I use a custom csup script to just download the desired single 
port.
 
   Since the CVSup/Csup service is being phased out as of February 
28, 
   2013, How can I duplicate this function using svn?
 
   Following is a sample csup script I use to download a single 
port.
 
 
 #! /bin/sh
 # This script is used to download make files for ytree port.
 
 # Load script symbolic field with path  file name
 cvsupfile=/root/temp.work.file
 
 # Check to see if file exists  delete it if it does
 [ -e $cvsupfile ]  rm -f $cvsupfile
 
 # Load instream data to file
 cat  $cvsupfile EOD
 *default  base=/usr# create CVSup tree off 
/usr directory
 *default  release=cvs
 *default  delete use-rel-suffix# no compression, for DSL 
or t1 lines
 *default  host=cvsup11.FreeBSD.org #  Virginia
 *default tag=.  # set tag value to nulls to get most 
current version
 ports-misc
 EOD
 
 # Exec csup to download just the selected port make files
 cd /usr/ports/
 csup -g -L 2 -i ports/misc/ytree $cvsupfile
 
 # Delete file we are done with it
 rm -f $cvsupfile
 
 echo  Ytree port download completed.
 
 I would do:
 
 # cd /usr/ports
 # svn co svn://svn0.us-east.freebsd.org/ports/head/ .
 
 This will populate your ports tree.
 Then, you can update anything and everything,
 e.g. the whole ports tree:
 
 # svn up /usr/ports
 
 or just a single port:
 
 # svn up /usr/ports/misc/ytree
 
 I think it's way simpler than your current method.
 In my opinion, svn is way better (at least in this regard)
 than csup.
 
 Other useful thing that is easy with svn is reverting
 port updates, e.g. when new ports don't build or give
 other problems. For example, right now the latest sudo
 doesn't work for me on ia64. So I do
 
 # svn up /usr/ports
 # svn up -r302692 /usr/ports/security/sudo
 
 to build an older working version of sudo.
 
 Anton
 
 

You missed to whole point of my question.
I don't want to maintain the WHOLE ports tree.
I only want to download selected single port.
My current ports tree only has 2 ports, apache22 and php5.
So your reply did not answer my question.
Thanks any how.

# mkdir apache22
# cd apache22/
# svn co svn://svn0.us-east.freebsd.org/ports/head/www/apache22 .
Adistinfo
Apkg-descr
AMakefile.doc
Afiles
Afiles/patch-Makefile.in
Afiles/patch-support__apachectl.in
Afiles/mpm-itk-20110321-01
Afiles/patch-configure.in
Afiles/patch-docs__conf__httpd.conf.in
Afiles/patch-docs__conf__extra__httpd-ssl.conf.in
Afiles/apache22.in
Afiles/no-accf.conf
Afiles/patch-support__ab.c
Afiles/patch-server__core.c
Afiles/patch-modules__proxy__mod_proxy_connect.c
Afiles/patch-docs__conf__extra__httpd-userdir.conf.in
Afiles/extra-patch-suexec_rsrclimit
Afiles/patch-support__log_server_status.in
Afiles/extra-patch-suexec_userdir
Afiles/htcacheclean.in
Afiles/patch-server__config.c
Afiles/patch-support__apxs.in
Afiles/mpm-itk-perdir-regex
Afiles/patch-support__envvars-std.in
Afiles/patch-support__Makefile.in
Afiles/mpm-itk-limits
Afiles/patch-config.layout
Apkg-message
AMakefile.modules
AMakefile.options
Apkg-plist
AMakefile
Checked out revision 307619.
# ls
.svnMakefile.modulesfiles   
pkg-plist
MakefileMakefile.optionspkg-descr
Makefile.docdistinfopkg-message
#

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: BIOS update saga - the end

2012-11-13 Thread Anton Shterenlikht
From lenzi.ser...@gmail.com Tue Nov 13 16:17:49 2012

That is one of the reasons I stop buying HP products
specially laptops.. and sony vaio as well..

the last one I have is a z6000 that is still working very well with
FreeBSD10.

HP notebooks are closed  works only with windows, are expensive
consumes too much power, the bateries did not last...

regarding the power and weak batteries - this is my experience too.

I live in Brazil and here one HP costs about 750 euros... a sony vaio is
about 800 euros,

I bought recently a Lenovo G475 (14inch LED display) notebook brand new,
for 350 euros with 2Gb of memory,
320Gb of HD, atheros wifi, dvd rw, AMD radeon video, dual core... I
bought more 4Gb of memory
for 30 euros, and the notebook is now with 6Gb...

ok, I might look at this model, thanks for the hint.

Last week I bought a 15 inch notebook at the shopping near my home,
with the same amd chip, wifi, large keyboard with separated numeric key,
4Gb memory, 500Gb disk for 320 euros (no brand name)...

any of them works very well with FreeBSD, NetBSD or Linux...

A friend of mine bought 10 of those for his company employees.. 
it is cheapper than upgrade de desktops


That is my experience


Sergio

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


BIOS update saga - the end

2012-11-04 Thread Anton Shterenlikht
I can't find my original thread, so
starting a new one.

So I bought a spare laptop disk,
installed freedos on it, made
a usb memstick with HP BIOS updating
executable, and booted from it, only
to stop at:

The BIOS on your notebook PC can not be updated.
Refer to HP Customer Advisory C01457784

So I found this customer advisory
and there it is: WinBond customers
cannot update the BIOS [1].

So not only I am stuck with a broken
BIOS, but I can't update to a fixed
one either (nevermind the wasted hours
spent following HP instructions on
how to update the BIOS on my laptop!).

I quickly found another thread 
where somebody claims that HP asked
for nearly 400 euros to update the
motherboard, to be able to update the BIOS! [2].

I was angry at HP for this initially,
then I started laughing. This is a ridiculous
situation.

Anyway, now I'm wondering - I wanted
to buy an HP laptop because I've used
quite a lot of Compaq/HP server gear and
it generally is/was of excellent quality.
And the manuals still are of very high quality too.
So I wonder, am I just unlucky,
or did I want a good quality too cheaply?

Anton

[1] 
http://h2.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=encc=ustaskId=125prodSeriesId=3368540prodTypeId=321957objectID=c01457784

[2] 
http://h30499.www3.hp.com/t5/Notebook-HP-ProBook-EliteBook/6715s-black-screen-problem/td-p/915244/page/5#.UJRCK1JvmnI
___
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: laptop with no BIOS? or BIOS reflash pain

2012-11-01 Thread Anton Shterenlikht
Date: Tue, 30 Oct 2012 21:28:22 +0100
Subject: Re: laptop with no BIOS? or BIOS reflash pain
From: Idwer Vollering vid...@gmail.com
To: freebsd-questions@freebsd.org, flash...@flashrom.org

Another approach is to use an external SPI programmer:
http://flashrom.org/Supported_programmers
The 'downside' of this is that you need to take your laptop apart.

ODM schematics of your laptop are found here:
http://notebookschematic.com/wp-content/uploads/2010/06/6515b_6715s.png
Downloads for BIOS updates:

http://h2.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=encc=usprodNameId=3356623prodTypeId=321957prodSeriesId=3368539swLang=13taskId=135swEnvOID=1093#120
and ftp://ftp.hp.com/pub/softpaq/sp55501-56000/sp6.exe

My guess (I am not a HP service technician) is that you need
ROM.CAB/Rom.bin from sp6.exe - you can use 7zip to extract Rom.bin

This is probably way beyond my skills,
but thanks anyway.

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: laptop with no BIOS? or BIOS reflash pain

2012-10-30 Thread Anton Shterenlikht
Date: Mon, 29 Oct 2012 15:44:19 -0700 (PDT)
From: Jakub Lach jakub_l...@mailplus.pl
To: freebsd-questions@freebsd.org
Subject: Re: laptop with no BIOS? or BIOS reflash pain

More civilised notebook manufactures usually provide 
also self booting (CD) image to update BIOS 
(e.g. Lenovo/ThinkPad). 


ok, I get the message, 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


how to disable page breaks in line printer

2012-10-30 Thread Anton Shterenlikht
I need to print some text on a continuous
paper with no page breaks. How to do this?

I've epson lq-550 matrix printer attached
via a parallel cable, and

lp|local line printer:\
:sh:\
:lp=/dev/lpt0:\
:sd=/var/spool/output/lpd:\
:lf=/var/log/lpd-errs:\
:pl=1000:

in /etc/printcap.

I thought from reading printcap(5)
that pl sets page length is lines,
so if I make it long enough, I should
see no page breaks. Still, I get
empty space at the bottom of the
physical page and empty space at
the top of the next.
Surely I'm missing someting.
How to get rid of this empty space?

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: how to disable page breaks in line printer

2012-10-30 Thread Anton Shterenlikht
From at...@sohara.org Tue Oct 30 11:54:11 2012

 I thought from reading printcap(5)
 that pl sets page length is lines,
 so if I make it long enough, I should
 see no page breaks. Still, I get
 empty space at the bottom of the
 physical page and empty space at
 the top of the next.
 Surely I'm missing someting.
 How to get rid of this empty space?

The printer may be doing this internally, many dot matrix 
printers
had the ability to set the page length and perforation skip on DIP
switches.

yes, got it:

dip switch 2-3
ON: 1-inch skip-over-perforation
OFF: NO skip-over-perforation

Need to power off/on for the new settings
to have effect.

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: laptop with no BIOS? or BIOS reflash pain

2012-10-25 Thread Anton Shterenlikht
From cpgh...@cordula.ws Thu Oct 25 03:40:28 2012

Heh... ;-)

(U)EFI is nothing new for us old farts: we've had OpenBoot[1] on
Sun hardware for ages, and even though it didn't limit us w.r.t. the
OS you wanted to boot (that's why you can install FreeBSD/sparc64
on used Sun machines), it had its issues too. Mainly that it needed
a counter-part in hardware peripherals. E.g.: without F-Code in ROM,
a PCI-based frame buffer wouldn't be usable there, because it wouldn't
reply to the OpenBoot queries.

The point is that firmware CAN be a mini-OS and more powerful
than PC-BIOS. There's nothing wrong with that, and the flexibility
of OFW/OpenBoot was for us sysadmins invaluable, esp. with
diskless machines. What's wrong, is UEFI's DRM-scheme used to
prevent non-signed code to be loaded... without mandating in
the specs that the BIOS vendor MUST allow the device owner
to add his/her own keys to it. That's the evil part of it.

[1]: http://en.wikipedia.org/wiki/Open_Firmware

I'm probably missing something here.
ia64 uses EFI, but there's nothing
about checking for non-signed code.
I can boot VMS, FreeBSD, linux, etc.
And, by the way, firmware updates from EFI via e.g.
USB flash drives is trivial on ia64.
Perhaps what you are describing is not about the EFI
specification iteself, but what
different manufacturers add on top of it?

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: laptop with no BIOS? or BIOS reflash pain

2012-10-25 Thread Anton Shterenlikht
From br...@cran.org.uk Thu Oct 25 09:22:33 2012


On 25 Oct 2012, at 08:52, Anton Shterenlikht me...@bristol.ac.uk 
wrote:

 I'm probably missing something here.
 ia64 uses EFI, but there's nothing
 about checking for non-signed code.
 I can boot VMS, FreeBSD, linux, etc.
 And, by the way, firmware updates from EFI via e.g.
 USB flash drives is trivial on ia64.
 Perhaps what you are describing is not about the EFI
 specification iteself, but what
 different manufacturers add on top of it?


It's in the latest UEFI spec - see 
http://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface#Secure_boot .

-- 
Bruce Cran

fuck.. I'm out of touch.
So this means I might not
be able to boot freebsd at all
on future ia64 boxes..

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


laptop with no BIOS? or BIOS reflash pain

2012-10-19 Thread Anton Shterenlikht
I've HP compaq 6715s laptop.
It's all right with 10-current.
I've got wireless and at one point
I even managed to get flash working.

My problem is with BIOS.
Apparently it's wrong and John Baldwin
provided me with a pci.c patch to get
it to boot.

There is an updated BIOS version, but
so far I failed to get it installed.
HP only provide MS and freedos executables.
I tried BartPE - doesn't work.
I tried plugging in a MS disk - doesn't work.
The only think I haven't tried is getting
a spare disk, installing freedos on it
and then running the freedos executable
from USB - what a fucking pain...

For proper hardware (servers) HP provide
images which are executed from management
console, but not for laptops.
I guess the idea that one might
use their laptops for anything other than MS
is so wild, that it never crossed their maid.

Anyway, I think I've heard there are some laptops
with no BIOS, is this true?
Or perhaps there are brands where BIOS
reflash is not such a great pain?
I remember on Compaq Armada the BIOS was
stored on disk and Compaq provided a floppy
image to boot from and reflash BIOS.
That was easy.
Anything like this exist these days?
Are there any EFI laptops?
Any model people would recommend?

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: Info 2 Release

2012-10-10 Thread Anton Shterenlikht
From: andrew clarke m...@ozzmosis.com

PS. This is an English-speaking mailing list.

What's the problem?
If there are non-english posts
and non-english helpful replies,
who suffers?

You and me can just ignore those,
like we ignore OT, right?

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


suggest pdf viewer for pdf version 1.6 with annotations

2012-10-03 Thread Anton Shterenlikht
I got sent a pdf file, version 1.6, with annotations.
xpdf can view the file, but not the annotations.
Please suggest a pdf viewer from ports that might help.

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: suggest pdf viewer for pdf version 1.6 with annotations

2012-10-03 Thread Anton Shterenlikht
From erichfreebsdl...@ovitrap.com Wed Oct  3 09:53:17 2012

Hi,

On Wed, 3 Oct 2012 08:50:16 +0100 (BST)
Anton Shterenlikht me...@bristol.ac.uk wrote:

 I got sent a pdf file, version 1.6, with annotations.
 xpdf can view the file, but not the annotations.
 Please suggest a pdf viewer from ports that might help.
 
evince? Did you try it?

It depends on libxul19, which is marked vulnerable.
Hopefully gecko@ guys will resolve this soon.

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


where is all terminal output sent if the controlling terminal is closed?

2012-08-30 Thread Anton Shterenlikht
I occasionally build ports with extra logs enabled.
When I then launch such programs from, say xterm
on the background (), I get lots of output on
the controlling terminal. If I then close the
terminal, where does all the output goes?
I presume it's still being sent to the PID
of the parent xterm. But this process no
longer exists, so what happens then?

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


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


mail, mpack and aliases

2012-08-24 Thread Anton Shterenlikht
I'm trying to use converters/mpack to send attachments.
It doesn't seem to know anything about mail(1) aliases.
I tried to save mpack output to a file with -o option,
and then read this file into a mail message, e.g. with ~r.
However, this doesn't seem to work.
The attachment is not recognised as such and
is just displayed as part of the body text.
I think it's because there's an empty line
between the mail header and the mime header
produced by mpack.

So how can I use mpack and my mail aliases?

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


subvertion treat PostScript files as binary?

2012-08-22 Thread Anton Shterenlikht
Why does subversion treats PostScript files as binary?
I changed the bounding box in a text editor, but can't
use svn diff:

TZAV svn diff rep-room-mises-mesh.ps
Index: rep-room-mises-mesh.ps
===
Cannot display: file marked as a binary type.
svn:mime-type = application/postscript

Is there an option somewhere to let svn know
that these are just plain text?

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


mail(1) ~R and REPLYTO

2012-08-20 Thread Anton Shterenlikht
mail(1) man page says:

 ~R string
 Use string as the Reply-To field.

However, this doesn't seem to work for me.
Hitting ~R doesn't have any effect at all.

The man page also has:

 REPLYTO  If set, will be used to initialize the Reply-To field for outgo-
  ing messages.

This does work fine.

Am I doing something wrong?

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


Mail Reference Manual?

2012-07-31 Thread Anton Shterenlikht
mail(1) man page mentions the Mail Reference Manual.
The only one I can find is here:
docs.freebsd.org/44doc/usd/07.mail/paper.pdf
Is this the one? The URL isn't that definitive.
It seems to be in troff. Anybody got the sources
of this document?

Anyway, the description of the save command in
this reference manual is correct, while the description
of the same command in mail(1) man page is wrong.
I wanted to copy the relevant fragment from the reference
manual to the man page, if I can find the troff
sources for the reference.

In fact, perhaps it's better to merge the reference
manual into the mail(1) man page completely? Or
at least add the sources into the base OS too?
I understand mail is not very popular these days,
but for me a combination of mail/mpack does all I need.
___
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: mail(1) save command does not work as in the man page

2012-07-26 Thread Anton Shterenlikht
From bon...@mail.r-bonomi.com Thu Jul 26 02:58:29 2012
Date: Wed, 25 Jul 2012 19:37:47 -0500 (CDT)
From: Robert Bonomi bon...@mail.r-bonomi.com
To: freebsd-questions@freebsd.org, me...@bristol.ac.uk
Subject: Re: mail(1) save command does not work as in the man page

 Any comments?

This is the 'standard'/*EXPECTED* behavior of 'mail', and has been, 
since
the early 1980s.   (I still use 'mail' as my standard mail client'.)

If invoked _without_ specifying a maibox, 
  1) mail that is written to another mailbox is deleted from the inbox 
on exit.
  2) mail that was read, but _not_ written/deleted is saved to 'mbox'.

If invoked *WITH* '-f', messages are not deleted/moved on exit.  you 
must 
_explicitly_ perform any desired actions.


You've found a bug in the _documentation_, not the progam.  :)


ok, I might make a patch for mail.1 when
I have the time.

Thanks


___
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


mail(1) save command does not work as in the man page

2012-07-25 Thread Anton Shterenlikht
According to the man mail(1):

 save(s) Takes a message list and a filename and appends each message
 in turn to the end of the file.  The filename in quotes, followed
 by the line count and character count is echoed on the user's
 terminal.

However, it seems the mail is copied, but not
deleted on exit:

$ mail -f mbox
Mail version 8.1 6/6/93.  Type ? for help.
mbox: 1 message
   1 me...@bristol.ac.uk   Wed Jul 25 16:36  46/2045  kuku
 s 1 somefile   
somefile [New file]
 h
*  1 me...@bristol.ac.uk   Wed Jul 25 16:36  46/2045  kuku
 q

$ mail -f somefile 
Mail version 8.1 6/6/93.  Type ? for help.
somefile: 1 message
   1 me...@bristol.ac.uk   Wed Jul 25 16:36  46/2045  kuku
 q

So the mail was copied to somefile file, as expected.
However, it's still in mbox file too:

$ mail -f mbox 
Mail version 8.1 6/6/93.  Type ? for help.
mbox: 1 message
   1 me...@bristol.ac.uk   Wed Jul 25 16:36  46/2045  kuku
 q
$ 

This shouldn't happen. According to the man page
the expected behaviour is that message 1 should
be deleted from mbox on quit.

Any comments?

___
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: how to speed up port make??

2012-07-25 Thread Anton Shterenlikht

  is it possible to speed up port make ??
  i want to install openbox and xorg on a Pentium 4 and 2gb ram,
  compiling xorg takes about 2 hours

2 hours only??

Try lang/gcc46 or 47
or science/paraview

This will keep your electronic helper busy
for a day.
___
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


fetchmail ssl error

2012-07-23 Thread Anton Shterenlikht
I probably misunderstand how SSL certificates work.

$ cat .fetchmailrc 
poll staff-imap-srv.bris.ac.uk protocol imap user mexas password xxx 
sslcertck sslcertfile /home/mexas/cert/uob-net-ca.crt fetchall
$

$ fetchmail
fetchmail: Server certificate verification error: self signed certificate in 
certificate chain
fetchmail: This means that the root signing certificate (issued for 
/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA 
Root) is not in the trusted CA certificate locations, or that c_rehash needs to 
be run on the certificate directory. For details, please see the documentation 
of --sslcertpath and --sslcertfile in the manual page.
98631:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate 
verify 
failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:984:
fetchmail: staff-imap-srv.bris.ac.uk: upgrade to TLS failed.
fetchmail: Unknown login or authentication error on me...@epo.bris.ac.uk
fetchmail: socket error while fetching from me...@staff-imap-srv.bris.ac.uk
fetchmail: Query status=2 (SOCKET)
$

The /home/mexas/cert/uob-net-ca.crt file is supposed
to be the univerisity certificate:

-BEGIN CERTIFICATE-
*several lines*
-END CERTIFICATE-

$ openssl verify uob-net-ca.crt 
uob-net-ca.crt: /O=University of Bristol/OU=IT Services 
(Networks)/emailAddress=service-d...@bristol.ac.uk/L=Bristol/ST=Avon/C=GB/CN=University
 of Bristol Net CA
error 18 at 0 depth lookup:self signed certificate
OK
$


I read in the fetchmail manual
something about c_rehash script,
but I can only find one in 
/usr/ports/mail/cone/scripts/c_rehash

The fetchmail also mentions that:

*quote*
 Additionally, you might need to convert the
certificates to different formats (the PEM format is expected and usually is
available, DER is another one; you can convert between both using the
openssl(1) utility's x509 sub-mode).
*end quote*

So, I'm not sure if I need to convert my
certificate to PEM format or not?

Please advise

Many thanks


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


zfs tuning on ia64

2012-07-19 Thread Anton Shterenlikht
Most of http://wiki.freebsd.org/ZFSTuningGuide
is for i386 and amd64.
I'm using zfs on ia64 r238540.
Not sure how much of the advice given apply in my case.

I have:

# grep ZFS /var/run/dmesg.boot
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
# zpool upgrade -v |tail
 23  Slim ZIL
 24  System attributes
 25  Improved scrub stats
 26  Improved snapshot deletion performance
 27  Improved snapshot creation performance
 28  Multiple vdev replacements

For more information on a particular version, including supported releases,
see the ZFS Administration Guide.

# zpool list
NAME   SIZE  ALLOC   FREECAP  DEDUP  HEALTH  ALTROOT
tank  33.8G   148K  33.7G 0%  1.00x  ONLINE  -
# zpool status
  pool: tank
 state: ONLINE
  scan: none requested
config:

NAMESTATE READ WRITE CKSUM
tankONLINE   0 0 0
  da1   ONLINE   0 0 0
  da2   ONLINE   0 0 0

errors: No known data errors
# 

# dmesg|grep memory
real memory  = 6442450944 (6144 MB)
avail memory = 6279823360 (5988 MB)
# sysctl -a |grep vm.kmem
vm.kmem_map_free: 1551581184
vm.kmem_map_size: 26427392
vm.kmem_size_scale: 4
vm.kmem_size_max: 0
vm.kmem_size_min: 0
vm.kmem_size: 1578090496
# 

Do the vm.kmem tunables look reasonable?

Thanks
 
-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Cooperation

2012-07-18 Thread Anton Konnov (AdCash.com)

Hello,

I represent advertising agency Adcash.com and I would like to offer you 
co-operation with us. WE have a variety of ad format to monetize your 
international traffic using CPM payouts.


Please contact with me by email: an...@adcash.com or feel free to add me 
directly in Skype: anton.adcash  and we will discuss all in details.


Looking forward hearing from you,
Anton Konnov


--
Country Manager

Cell: +372-5543650
Landline: +372-7120566
Skype: anton.adcash

Adcash OÜ
Kaupmehe 7-A10 10114 Tallinn, Estonia
VAT-ID: EE101470034

___
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


how to preserve local modifications to /usr/local/share/texmf/web2c/texmf.cnf

2012-07-16 Thread Anton Shterenlikht
I was getting

 Tex capacity exceeded, sorry [main memory size 100]

error, so had to increase main_memory in
/usr/local/share/texmf/web2c/texmf.cnf

main_memory = 700 % words of inimemory available; also applies to inimfmp

This works fine, but this file
will be overwritten if I update/reinstall
print/teTeX-base.

I was trying to make a local copy instead:

TZAV cat $HOME/.texmf-var/web2c/texmf.cnf 
% refer to /usr/local/share/texmf/web2c/texmf.cnf,
% installed by teTeX-base-3.0_23: print/teTeX-base
% for details
main_memory = 700 % words of inimemory available; also applies to inimfmp
TZAV

but this doesn't help.

Please advise

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


where is LOCALBASE actually defined?

2012-07-15 Thread Anton Shterenlikht
$ cat Makefile
all:
echo $(LOCALBASE)
$
$ make
echo

$

What do I need to do to use LOCALBASE
in my makefiles?

Thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: where is LOCALBASE actually defined?

2012-07-15 Thread Anton Shterenlikht
On Sun, Jul 15, 2012 at 03:06:14PM -0700, Eitan Adler wrote:
 On 15 July 2012 14:47, Anton Shterenlikht me...@bristol.ac.uk wrote:
  $ cat Makefile
  all:
  echo $(LOCALBASE)
  $
  $ make
  echo
 
 easier way to test is make -V LOCALBASE
 
  What do I need to do to use LOCALBASE
  in my makefiles?
 
 You need to include bsd.port.mk (found in /usr/ports/Mk)

I though LOCALBASE has meaning outside
of the ports system too. Clearly I was wrong.

So, if I happen not to have the ports tree,
I cannot use LOCALBASE in my makefiles, right?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


ati, radeon, dri (drm) confusion

2012-07-15 Thread Anton Shterenlikht
My X behaves really weird lately [1,2],
so I went back to basics. Can somebody
please comment on whether what I'm doing
seems correct. Thanks

HP Compaq 6715s laptop
FreeBSD 10.0-CURRENT #9 r238259M  amd64

vgapci0@pci0:1:5:0: class=0x03 card=0x30c2103c chip=0x791f1002 rev=0x00
hdr=0x00
vendor = 'ATI Technologies Inc'
device = 'RS690M [Radeon X1200 Series]'
class  = display
subclass   = VGA

which, according to radeon(4x), is
supported by radeon driver.

I've got in the kernel, amongst other things,:

device  agp
device  drm
device  radeondrm
device  vga

I then see in dmesg:

$ dmesg | grep vga
vgapci0: VGA-compatible display port 0x4000-0x40ff mem 0xc010-0xc80f,0
xd020-0xd020,0xd030-0xd03f irq 19 at device 5.0 on pci1
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
$ dmesg | grep -i agp
$ dmesg | grep -i radeon

Is this expected that there's nothing
related to either agp on radeon in dmesg?

Anyway, if I do X auto-configure, i.e.
X -configure, I get in the resulting
xorg.conf.new:

Identifier  Card0
Driver  radeon
VendorName  Advanced Micro Devices [AMD] nee ATI
BoardName   RS690M [Radeon X1200 Series]
BusID   PCI:1:5:0

Is that correct?

I then see in /var/log/Xorg.0.log:

drmOpenDevice: node name is /dev/dri/card0
Failed to change owner or group for file /dev/dri! 2: No such file or directory
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
Failed to change owner or group for file /dev/dri/card0! 2: No such file or dire
ctory
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[drm] failed to load kernel module radeon
(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
[dri] Disabling DRI.

I guess this is not good, right?

Please advise

[1] http://lists.freebsd.org/pipermail/freebsd-x11/2012-June/012100.html
[2] http://lists.freebsd.org/pipermail/freebsd-current/2012-July/035171.html

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: profiling library smaller than non-profiling, while it contains more symbols. Why?

2012-07-13 Thread Anton Shterenlikht
On Thu, Jul 12, 2012 at 09:12:32PM -0500, Robert Bonomi wrote:
  From owner-freebsd-questi...@freebsd.org  Thu Jul 12 17:34:12 2012
  Date: Thu, 12 Jul 2012 23:31:31 +0100
  From: Anton Shterenlikht me...@bristol.ac.uk
  To: freebsd-questions@freebsd.org
  Subject: profiling library smaller than non-profiling,
  while it contains more symbols. Why?
 
  While updating my port (math/slatec) to use
  the new OPTIONS framework, I did some
  experiments with the profiling library.
 
  I don't know much about this, so what surprised me
  is that the profiling library is smaller:
 
  # ls -al lib*a
  -rw-r--r--  1 root  wheel  6582354 Jul 12 22:56 libslatec.a
  -rw-r--r--  1 root  wheel  6555122 Jul 12 23:02 libslatec_p.a
  #
 
 It it possible that libslatac.a has debggingn symbols, and the profiling
 library does not?
 
 Or that the profiling library was compiled with a lower degree of
 optimization ?  (many of the 'higher'-level optimizations cause
 _larger_, albeit faster, code to be generated)
 
 Any other differences in compilation flags?

No, the compilation is very straightforward for this library:

===  Building for slatec-4.1
Warning: Object directory not changed from original 
/usr/ports/math/slatec/work/src
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c aa.f
 *skip ~1400 other files*
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c zwrsk.f
building static slatec library
/usr/local/bin/ranlib libslatec.a

gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o aa.po -c aa.f
 *skip ~1400 other files*
gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.po -c zwrsk.f
building profiled slatec library
/usr/local/bin/ranlib libslatec_p.a

gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o aa.So -c 
aa.f
 *skip ~1400 other files*
gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.So -c zwrsk.f
building shared library libslatec.so.1
# 

That's all there is.

As I mentioned in the original email,
the only difference, according to nm(1),
between the non-profiling and the profiling
library, is that the profiling library contains
symbol .mcount (or _mcount, depending on the arch)
for each object file. All other symbols are identical.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: profiling library smaller than non-profiling, while it contains more symbols. Why?

2012-07-13 Thread Anton Shterenlikht
On Fri, Jul 13, 2012 at 11:15:45AM +0200, Wojciech Puchar wrote:
 -rw-r--r--  1 root  wheel  6582354 Jul 12 22:56 libslatec.a
 -rw-r--r--  1 root  wheel  6555122 Jul 12 23:02 libslatec_p.a
 #
 
 
 profile library or -fpic library?

I think profile:

===  Building for slatec-4.1
Warning: Object directory not changed from original 
/usr/ports/math/slatec/work/src
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c aa.f
 *skip ~1400 other files*
gfortran46   -O -Wl,-rpath=/usr/local/lib/gcc46 -c zwrsk.f
building static slatec library
/usr/local/bin/ranlib libslatec.a

gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o aa.po -c aa.f
 *skip ~1400 other files*
gfortran46 -pg -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.po -c zwrsk.f
building profiled slatec library
/usr/local/bin/ranlib libslatec_p.a

gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o aa.So -c 
aa.f
 *skip ~1400 other files*
gfortran46 -fpic -DPIC -O -Wl,-rpath=/usr/local/lib/gcc46 -o zwrsk.So -c zwrsk.f
building shared library libslatec.so.1


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


profiling library smaller than non-profiling, while it contains more symbols. Why?

2012-07-12 Thread Anton Shterenlikht
While updating my port (math/slatec) to use
the new OPTIONS framework, I did some
experiments with the profiling library.

I don't know much about this, so what surprised me
is that the profiling library is smaller:

# ls -al lib*a
-rw-r--r--  1 root  wheel  6582354 Jul 12 22:56 libslatec.a
-rw-r--r--  1 root  wheel  6555122 Jul 12 23:02 libslatec_p.a
#

while it adds .mcount symbol to each object file:

# nm libslatec.a  nm
# nm libslatec_p.a  nmp
# wc nm nmp
   16436   36675  373033 nm
   17885   39573  413605 nmp
   34321   76248  786638 total
# grep -c mcount nmp
1449
# expr 16436 + 1449
17885
#

Using diff I can confirm that the only difference
between the 2 libs is the .mcount symbol for
each object file in the profiling library.

So how can the profiling library be smaller?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: profiling library smaller than non-profiling, while it contains more symbols. Why?

2012-07-12 Thread Anton Shterenlikht
On Thu, Jul 12, 2012 at 11:31:31PM +0100, Anton Shterenlikht wrote:
 While updating my port (math/slatec) to use
 the new OPTIONS framework, I did some
 experiments with the profiling library.
 
 I don't know much about this, so what surprised me
 is that the profiling library is smaller:
 
 # ls -al lib*a
 -rw-r--r--  1 root  wheel  6582354 Jul 12 22:56 libslatec.a
 -rw-r--r--  1 root  wheel  6555122 Jul 12 23:02 libslatec_p.a
 #
 
 while it adds .mcount symbol to each object file:
 
 # nm libslatec.a  nm
 # nm libslatec_p.a  nmp
 # wc nm nmp
16436   36675  373033 nm
17885   39573  413605 nmp
34321   76248  786638 total
 # grep -c mcount nmp
 1449
 # expr 16436 + 1449
 17885
 #
 
 Using diff I can confirm that the only difference
 between the 2 libs is the .mcount symbol for
 each object file in the profiling library.
 
 So how can the profiling library be smaller?
 

Also, the library compiled on amd64 has lots more
symbols than if compiled on ia64. For example:

amd64:

zbesy.o:
 r .LC0
0008 r .LC1
0010 r .LC11
0020 r .LC12
0028 r .LC13
0030 r .LC14
0010 r .LC2
0018 r .LC5
 r .LC6
 U cos
 U d1mach_
 U exp
 U i1mach_
 U sin
 U zbesh_
 T zbesy_

and ia64:

zbesy.o:
 U cos
 U d1mach_
 U exp
 U i1mach_
 U sin
 U zbesh_
 T zbesy_

Why the difference?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


X broken - top quarter of the screen not updated by *some* programs - EXA/XAA issue?

2012-06-20 Thread Anton Shterenlikht
(II) RADEON(0):   MC_AGP_LOCATION  : 0x003f
Picked PLL 0
best_freq: 71152
best_feedback_div: 159
best_frac_feedback_div: 0
best_ref_div: 2
best_post_div: 16
(II) RADEON(0): crtc(0) Clock: mode 71000, PLL 711520
(II) RADEON(0): crtc(0) PLL  : refdiv 2, fbdiv 0x9F(159), fracfbdiv 0, pdiv 16
Set CRTC 0 PLL success
Set CRTC Timing success
Set CRTC 0 Overscan success
Not using RMX
scaler 0 setup success
Set CRTC 0 Source success
crtc 0 YUV disable setup success
Output digital setup success
Output LCD1 enable success
Enable CRTC 0 success
Unblank CRTC 0 success
Output CRT1 disable success
Blank CRTC 1 success
Disable CRTC 1 success
(II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
(--) RandR disabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) AIGLX: Loaded and initialized /usr/local/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(II) RADEON(0): Setting screen physical size to 338 x 211
(WW) Mouse0: No Device specified, looking for one...
(II) Mouse0: Setting Device option to /dev/sysmouse
(--) Mouse0: Device: /dev/sysmouse
(==) Mouse0: Protocol: Auto
(**) Option CorePointer
(**) Mouse0: always reports core events
(**) Option Device /dev/sysmouse
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option ZAxisMapping 4 5 6 7
(**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
(**) Mouse0: Buttons: 11
(II) XINPUT: Adding extended input device Mouse0 (type: MOUSE)
(**) Mouse0: (accel) keeping acceleration scheme 1
(**) Mouse0: (accel) acceleration profile 0
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse
(**) Option CoreKeyboard
(**) Keyboard0: always reports core events
(**) Option Protocol standard
(**) Option XkbRules base
(**) Option XkbModel pc105
(**) Option XkbLayout us
(II) XINPUT: Adding extended input device Keyboard0 (type: KEYBOARD)

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
 Hello
 
 What happens if you run without a xorg.conf? Xorg has become pretty good at 
 guessing correct settings these days.
 

No change.
I removed /etc/X11/xorg.conf completely.

# X

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 10.0-CURRENT amd64 
Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
Build Date: 11 June 2012  12:11:20PM
 
Current version of pixman: 0.24.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
(==) Using default built-in configuration (30 lines)
(EE) Failed to load module vesa (module does not exist, 0)
(EE) Failed to load module fbdev (module does not exist, 0)
  XRANDR name: VGA-0
  Connector: VGA
  CRT1: INTERNAL_KLDSCP_DAC1
  DDC reg: 0x7e50
  XRANDR name: LVDS
  Connector: LVDS
  LCD1: INTERNAL_LVTM1
  DDC reg: 0x7e40
Dac detection success
finished output detect: 0
finished output detect: 1
finished all detect
Dac detection success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
Output CRT1 disable success
Output LCD1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
^C^C^C

Can kill it with neither CTRL/C
nor kill -9:

# ps ax|grep X
1060  0  R+   0:38.95 X (Xorg)
1073  1  R+   0:00.01 grep X
# kill -9 1060
# ps ax|grep X
1060  0  RE+  0:45.71 X (Xorg)
1089  1  R+   0:00.00 grep X
# 


Anton


 Thanks
 --
 Subhro Sankha Kar
 System Administrator
 Working and Playing with FreeBSD since 2002
 
 On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:
 
  My X is unusable since the recent png update.
  
  This is r236740M on HP Compaq 6715s amd64 laptop.
  
  I've no hal installed (if this matters).
  
  # pkg info -x xorg
  linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
  xorg-cf-files-1.0.4X.org cf files for use with imake builds
  xorg-fonts-7.5.1   X.org fonts meta-port
  xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
  xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
  xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
  xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
  xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
  xorg-fonts-type1-7.5.1 X.Org Type1 fonts
  xorg-libraries-7.5.1   X.org libraries meta-port
  xorg-macros-1.16.1 X.Org development aclocal macros
  xorg-server-1.7.7_5,1  X.Org X server and related programs
  # 
  
  # pkg info -x xf86
  libXxf86dga-1.1.2  X DGA Extension
  libXxf86misc-1.0.3 X XF86-Misc Extension
  libXxf86vm-1.1.1   X Vidmode Extension
  xf86-input-keyboard-1.6.1  X.Org keyboard input driver
  xf86-input-mouse-1.7.1 X.Org mouse input driver
  xf86-video-ati-6.14.3_1X.Org ati display driver
  xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
  xf86dgaproto-2.1   XFree86-DGA extension headers
  xf86driproto-2.1.1 XFree86-DRI extension headers
  xf86miscproto-0.9.3XFree86-Misc extension headers
  xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
  # 
  
  My xorg.conf.new:
  
  
  Section ServerLayout
  Identifier X.org Configured
  Screen  0  Screen0 0 0
  InputDeviceMouse0 CorePointer
  InputDeviceKeyboard0 CoreKeyboard
  Option  AllowEmptyInput Off
  EndSection
  
  Section Files
  ModulePath   /usr/local/lib/xorg/modules
  FontPath /usr/local/lib/X11/fonts/misc/
  FontPath /usr/local/lib/X11/fonts/TTF/
  FontPath /usr/local/lib/X11/fonts/OTF
  FontPath /usr/local/lib/X11/fonts/Type1/
  FontPath /usr/local/lib/X11/fonts/100dpi/
  FontPath /usr/local/lib/X11/fonts/75dpi/
  EndSection
  
  Section Module
  Load  extmod
  Load  record
  Load  dbe
  Load  glx
  Load  dri
  Load  dri2
  EndSection
  
  Section InputDevice
  Identifier  Keyboard0
  Driver  kbd
  EndSection
  
  Section InputDevice
  Identifier  Mouse0
  Driver  mouse
  Option  Protocol auto
  Option  Device /dev/sysmouse
  Option  ZAxisMapping 4 5 6 7
  EndSection
  
  Section Monitor
  #DisplaySize  330   210 # mm
  Identifier   Monitor0
  VendorName   LPL
  ModelNamed600
  EndSection
  
  Section Device

Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
  Hello
  
  What happens if you run without a xorg.conf? Xorg has become pretty good at 
  guessing correct settings these days.
  
 
 No change.
 I removed /etc/X11/xorg.conf completely.

Anyway, I can understand my X setup is fucked, no problem.

What worries me more is the the fact that a process ignores
kill -9. Doesn't it indicate a problem with the OS?
I think potentially this is a security vulnerability.




 
 # X
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 10.0-CURRENT amd64 
 Current Operating System: FreeBSD mech-aslap239.men.bris.ac.uk 10.0-CURRENT 
 FreeBSD 10.0-CURRENT #0 r236740M: Sat Jun  9 22:35:49 BST 2012 
 r...@mech-aslap239.men.bris.ac.uk:/usr/obj/usr/src/sys/BUZI amd64
 Build Date: 11 June 2012  12:11:20PM
  
 Current version of pixman: 0.24.2
 Before reporting problems, check http://wiki.x.org
 to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 (++) from command line, (!!) notice, (II) informational,
 (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: /var/log/Xorg.0.log, Time: Tue Jun 12 09:10:17 2012
 (==) Using default built-in configuration (30 lines)
 (EE) Failed to load module vesa (module does not exist, 0)
 (EE) Failed to load module fbdev (module does not exist, 0)
   XRANDR name: VGA-0
   Connector: VGA
   CRT1: INTERNAL_KLDSCP_DAC1
   DDC reg: 0x7e50
   XRANDR name: LVDS
   Connector: LVDS
   LCD1: INTERNAL_LVTM1
   DDC reg: 0x7e40
 Dac detection success
 finished output detect: 0
 finished output detect: 1
 finished all detect
 Dac detection success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 Output CRT1 disable success
 Output LCD1 disable success
 Blank CRTC 0 success
 Disable CRTC 0 success
 Blank CRTC 1 success
 Disable CRTC 1 success
 ^C^C^C
 
 Can kill it with neither CTRL/C
 nor kill -9:
 
 # ps ax|grep X
 1060  0  R+   0:38.95 X (Xorg)
 1073  1  R+   0:00.01 grep X
 # kill -9 1060
 # ps ax|grep X
 1060  0  RE+  0:45.71 X (Xorg)
 1089  1  R+   0:00.00 grep X
 # 
 
 
 Anton
 
 
  Thanks
  --
  Subhro Sankha Kar
  System Administrator
  Working and Playing with FreeBSD since 2002
  
  On 11-Jun-2012, at 5:01 PM, Anton Shterenlikht wrote:
  
   My X is unusable since the recent png update.
   
   This is r236740M on HP Compaq 6715s amd64 laptop.
   
   I've no hal installed (if this matters).
   
   # pkg info -x xorg
   linux-f10-xorg-libs-7.4_1  Xorg libraries (Linux Fedora 10)
   xorg-cf-files-1.0.4X.org cf files for use with imake builds
   xorg-fonts-7.5.1   X.org fonts meta-port
   xorg-fonts-100dpi-7.5.1X.Org 100dpi bitmap fonts
   xorg-fonts-75dpi-7.5.1 X.Org 75dpi bitmap fonts
   xorg-fonts-cyrillic-7.5.1  X.Org Cyrillic bitmap fonts
   xorg-fonts-miscbitmaps-7.5.1   X.Org miscellaneous bitmap fonts
   xorg-fonts-truetype-7.5.1  X.Org TrueType fonts
   xorg-fonts-type1-7.5.1 X.Org Type1 fonts
   xorg-libraries-7.5.1   X.org libraries meta-port
   xorg-macros-1.16.1 X.Org development aclocal macros
   xorg-server-1.7.7_5,1  X.Org X server and related programs
   # 
   
   # pkg info -x xf86
   libXxf86dga-1.1.2  X DGA Extension
   libXxf86misc-1.0.3 X XF86-Misc Extension
   libXxf86vm-1.1.1   X Vidmode Extension
   xf86-input-keyboard-1.6.1  X.Org keyboard input driver
   xf86-input-mouse-1.7.1 X.Org mouse input driver
   xf86-video-ati-6.14.3_1X.Org ati display driver
   xf86bigfontproto-1.2.0 XFree86-Bigfont extension headers
   xf86dgaproto-2.1   XFree86-DGA extension headers
   xf86driproto-2.1.1 XFree86-DRI extension headers
   xf86miscproto-0.9.3XFree86-Misc extension headers
   xf86vidmodeproto-2.3.1 XFree86-VidModeExtension extension headers
   # 
   
   My xorg.conf.new:
   
   
   Section ServerLayout
 Identifier X.org Configured
 Screen  0  Screen0 0 0
 InputDeviceMouse0 CorePointer
 InputDeviceKeyboard0 CoreKeyboard
 Option  AllowEmptyInput Off
   EndSection
   
   Section Files
 ModulePath   /usr/local/lib/xorg/modules
 FontPath /usr/local/lib/X11/fonts/misc/
 FontPath /usr/local/lib/X11/fonts/TTF/
 FontPath /usr/local/lib/X11/fonts/OTF
 FontPath /usr/local/lib/X11/fonts/Type1/
 FontPath /usr/local/lib/X11/fonts/100dpi/
 FontPath /usr/local/lib/X11/fonts/75dpi/
   EndSection
   
   Section Module
 Load  extmod
 Load  record
 Load  dbe
 Load  glx
 Load  dri
 Load  dri2
   EndSection
   
   Section InputDevice
 Identifier  Keyboard0

Re: can't kill -9 Xorg

2012-06-12 Thread Anton Shterenlikht
On Tue, Jun 12, 2012 at 02:13:17PM +0200, Hans Ottevanger wrote:
 On 06/12/12 10:24, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 09:13:06AM +0100, Anton Shterenlikht wrote:
 On Tue, Jun 12, 2012 at 12:07:06AM +0530, Subhro Sankha Kar wrote:
 Hello
 
 What happens if you run without a xorg.conf? Xorg has become pretty good 
 at guessing correct settings these days.
 
 
 No change.
 I removed /etc/X11/xorg.conf completely.
 
 Anyway, I can understand my X setup is fucked, no problem.
 
 What worries me more is the the fact that a process ignores
 kill -9. Doesn't it indicate a problem with the OS?
 I think potentially this is a security vulnerability.
 
 
 I had a similar issue with my desktop system a while ago, also using a 
 Radeon adaptor. In my case the system ended up with a frozen image or 
 black screen and was only accessible remotely. It appeared that the X 
 server took 100% of a CPU and was looping in the driver in kernel space 
 and thus unkillable. If a remember well a PCIE register seemed to be 
 inaccessible after returning from the screen saver and the driver kept 
 looping on this.
 
 I finally worked around the problem by removing the (barely documented) 
 option DynamicPM from my xorg.conf. This could have consequences for 
 power saving on a laptop however, but it could be worth trying.
 
 Kind regards,
 
 Hans

Thank you for the explanation.
I my case

 Option DRI off

helped. With DRI off I get X working (nearly) as expected.

However, I'm now thinking that DRI not
working is perhaps a bug? I'm using
 xf86-video-ati-6.14.3_1
with

Driver  radeon
VendorName  Advanced Micro Devices [AMD] nee ATI
BoardName   RS690M [Radeon X1200 Series]

Maybe I should ask in x11@?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: MK_CLANG_IS_CC mis-formed when compiling ports

2012-06-01 Thread Anton Shterenlikht
On Thu, May 31, 2012 at 07:13:11PM -0700, Thomas D. Dean wrote:
 I built FrfeeBSD 9 with
 WITHOUT_CLANG=Yes
 
 When I try to build the net/bwn-firmware-kmod/
 
 I get an error that MK_CLANG_IS_CC is mis-formed.
 
 If I define this in make.conf, I get an error that the user may not set 
 this.
 
 If I use 'make MK_CLANG_IS_CC=no' the port compiles.
 
 How do I fix this?

Why did you define WITHOUT_CLANG?

On 10.0-current amd64 I build the world/kernel
with no clang-related options:

GEN8 cat /etc/make.conf
SENDMAIL_CFLAGS+=   -I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS+=  -L/usr/local/lib
SENDMAIL_LDADD+=-lsasl2
PERL_VERSION=5.14.2
WITH_PKGNG=yes
#CC=clang
#CXX=clang++
#CPP=clang-cpp
GEN8 

I have no problems when building bwn-firmware-kmod.


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


netstat: kvm_read: Bad address

2012-06-01 Thread Anton Shterenlikht
On ia64 r231193 I get:

# netstat -r
netstat: kvm_read: Bad address 

What's the problem?

Thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: netstat: kvm_read: Bad address

2012-06-01 Thread Anton Shterenlikht
On Fri, Jun 01, 2012 at 01:30:37PM +0300, Volodymyr Kostyrko wrote:
 Anton Shterenlikht wrote:
 On ia64 r231193 I get:
 
 # netstat -r
 netstat: kvm_read: Bad address
 
 What's the problem?
 
 Thanks
 
 
 For jail environment this means that /dev is not mounted.

I'm sure I've got /dev mounted:

# df
Filesystem 512-blocks UsedAvail Capacity  Mounted on
/dev/da0p2  111708308 26738332 7603331226%/
devfs   220   100%/dev
/dev/da2p1   68882164 36110624 2726096857%/usr/ports
/dev/da0p1 409360 2320   407040 1%/efi

# ls /dev
acpi
bpf
bpf0
console
ctty
cuau0
cuau0.init
cuau0.lock
cuau1
cuau1.init
cuau1.lock
cuau2
cuau2.init
cuau2.lock
cuau3
cuau3.init
cuau3.lock
cuau4
cuau4.init
cuau4.lock
da0
da0p1
da0p2
da0p3
da1
da2
da2p1
devctl
devstat
dumpdev
fd
fido
geom.ctl
io
ipauth
ipl
iplookup
ipnat
ipscan
ipstate
ipsync
klog
kmem
log
mdctl
mem
mpt0
mpt1
nfslock
null
pass0
pass1
pass2
pci
ptmx
pts
random
stderr
stdin
stdout
ttyu0
ttyu0.init
ttyu0.lock
ttyu1
ttyu1.init
ttyu1.lock
ttyu2
ttyu2.init
ttyu2.lock
ttyu3
ttyu3.init
ttyu3.lock
ttyu4
ttyu4.init
ttyu4.lock
ugen0.1
ugen1.1
ugen2.1
urandom
usb
usbctl
xpt0
zero
zfs

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mercurial (hg) transaction abort!

2012-05-31 Thread Anton Shterenlikht
On Wed, May 30, 2012 at 01:40:00PM +0100, Anton Shterenlikht wrote:
 On Wed, May 30, 2012 at 01:08:07PM +0200, uki wrote:
  Did you try to hg clone -U and than update?
  
  Mozilla repo is quite big, and that _might_ be the reason, splitting
  the work in 2 parts will help if that was the cause.

still the same:

# hg clone -U http://hg.mozilla.org/mozilla-central/
destination directory: mozilla-central
requesting all changes
adding changesets
adding manifests
adding file changes
ransaction abort!
rollback completed
abort: connection ended unexpectedly
#

I'll submit a bug report to mozilla.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


  1   2   3   4   5   6   7   8   >