sound: get sbc, but no pcm

2007-11-01 Thread Anton Shterenlikht
I'm trying to get a sound from my laptop. I can see the actual card in dmesg,
but no audio framework driver (no pcm).

hardware: i386 armada 1700 laptop
sound: ESS 1869 16-bit Plug and Play (PnP)
OS: FBSD 6.3-prerelease

I checked that the sound is working using Compaq PC diagnostics floppy.

I added 

device  sound
device  snd_sbc
device  snd_sb16

to the kernel configuration file and

hint.pcm.0.at="isa"
hint.pcm.0.port="0x220"
hint.pcm.0.irq="5"
hint.pcm.0.drq="1"
hint.pcm.0.flags="0x0"

to /boot/device.hints. The port was set up using Compaq Setup for Portables
floppy.

I can see the card in dmesg as sbc0:

unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
sbc0:  at port 0x230-0x23f,0x388-0x38b,0x300-0x301 irq
5 drq 0,1 on isa0
sbc0: [GIANT-LOCKED]
unknown:  can't assign resources (port)
unknown:  can't assign resources (irq)
unknown:  can't assign resources (memory)

but I cannot see pcm, and /dev/sndstat is empty:

# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
#
 
What am I missing?
Are the "unknown" messages relevant?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: sound: get sbc, but no pcm

2007-11-01 Thread Anton Shterenlikht
On Thu, Nov 01, 2007 at 10:00:11PM +0800, Ariff Abdullah wrote:
> On Thu, 1 Nov 2007 13:06:08 +
> Anton Shterenlikht <[EMAIL PROTECTED]> wrote:
> > I'm trying to get a sound from my laptop. I can see the actual card
> > in dmesg, but no audio framework driver (no pcm).
> > 
> > I added 
> > 
> > device  sound
> > device  snd_sbc
> > device  snd_sb16
> > 
> > but I cannot see pcm, and /dev/sndstat is empty:
> > 
> > # cat /dev/sndstat
> > FreeBSD Audio Driver (newpcm)
> > Installed devices:
> > #
> >  
> > What am I missing?
> 
> snd_ess

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


epiphany stalls on dbus-launch?

2008-09-17 Thread Anton Shterenlikht
I've built ports/www/epiphany on FBSD-6.3-stable on Alpha.
On launch epiphany never opens the graphical window.
ps shows:

67097  p5  I  0:01.21 epiphany
67098  p5  I  0:00.05 dbus-launch --autolaunch 
76514f0130361463d40d7f1348d11bf3 --binary-syn
67101  p5  I  0:00.00 dbus-launch --autolaunch 
76514f0130361463d40d7f1348d11bf3 --binary-syn

If I kill either dbus-launch, epiphany exits with an error.

I wonder if the problem is in dbus, and not in epiphany.
Anybody has seen this problem.

thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


port www/kazehakase + webkit -> errors

2008-09-18 Thread Anton Shterenlikht
Anybody using www/kazehakase with webkit engine?
Any issues?

I built these ports on FBSD 6.3 Alpha, and get
many many errors, e.g.:

pid 64050 (kazehakase): unaligned access: va=0x163dd800a pc=0x161c2fbb8 
ra=0x161c2f0ac op=ldl
pid 64050 (kazehakase): unaligned access: va=0x163dd800e pc=0x161c2fbb8 
ra=0x161c2f0ac op=ldl
console message:  @0: Not allowed to load local resource: 
file:///home/release-19-2/style/homepage.min.css
console message:  @0: Not allowed to load local resource: 
file:///includes/templates/script/blq_core.js?v34.8


(gecko:64050): Gtk-CRITICAL **: gtk_menu_shell_insert: assertion 
`GTK_IS_MENU_ITEM (child)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET 
(widget)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_menu_shell_insert: assertion 
`GTK_IS_MENU_ITEM (child)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_widget_show: assertion `GTK_IS_WIDGET 
(widget)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_range_get_adjustment: assertion 
`GTK_IS_RANGE (range)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_range_get_adjustment: assertion 
`GTK_IS_RANGE (range)' failed

(gecko:64050): Gtk-CRITICAL **: gtk_range_get_adjustment: assertion 
`GTK_IS_RANGE (range)' failed

(gecko:64050): GLib-GObject-WARNING **: invalid (NULL) pointer instance


thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: epiphany stalls on dbus-launch?

2008-09-18 Thread Anton Shterenlikht
On Wed, Sep 17, 2008 at 04:12:22PM +0100, Anton Shterenlikht wrote:
> I've built ports/www/epiphany on FBSD-6.3-stable on Alpha.
> On launch epiphany never opens the graphical window.
> ps shows:
> 
> 67097  p5  I  0:01.21 epiphany
> 67098  p5  I  0:00.05 dbus-launch --autolaunch 
> 76514f0130361463d40d7f1348d11bf3 --binary-syn
> 67101  p5  I  0:00.00 dbus-launch --autolaunch 
> 76514f0130361463d40d7f1348d11bf3 --binary-syn
> 
> If I kill either dbus-launch, epiphany exits with an error.
> 
> I wonder if the problem is in dbus, and not in epiphany.
> Anybody has seen this problem.

just to add, I cannot even get epiphany --help or
epiphany --version. It just stalls with 2 dbus-launch
processes.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


rsync colon in filename to MSWin fails

2008-09-19 Thread Anton Shterenlikht
I cannot trasfer a file with a colon via rsync to a Win box.
I've rsync-3.0.4 on the FBSD (sending side) and rsync-2.6.9
under cygwin on Win (receiving side). I'm not sure what the
error message means:

% rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
rsync: rename "/cygdrive/c/Documents and Settings/mexas/My 
Documents/work/.http:__en.wikipedia.org_favicon.ico.8dBX2K" -> 
"http:__en.wikipedia.org_favicon.ico": No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 
23) at main.c(1040) [sender=3.0.4]

Note the extra dot before the file name, and extra suffix at the
end. Is this the expected behaviour?

However, to another FBSD box transfer is fine:

% rsync ./http:__en.wikipedia.org_favicon.ico [EMAIL PROTECTED]:
%

Is this something to do with Windows, or old rsync version on cygwin?

Even more bizzare, I get the same error even if I "--exclude" all
such files from transfer.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


port math/libgmp4 depends on itself after ports tree upgrade

2008-09-24 Thread Anton Shterenlikht
Perhaps this is portmaster issue, but it seems libgmp4
depends on itself:

#portmaster -Btd libgmp

[skip]

===>>> Recursive 'make config' check complete for math/libgmp4

===>>> Starting build for math/libgmp4 <<<===

===>>> Starting check for all dependencies
===>>> Gathering dependency list for math/libgmp4 from ports
===>>> Starting dependency check
===>>> Launching child to update libgmp-4.2.3 to libgmp-4.2.4
libgmp-4.2.3 >> libgmp-4.2.3

===>>> Port directory: /usr/ports/math/libgmp4
===>>> Starting check for all dependencies
===>>> Gathering dependency list for math/libgmp4 from ports
===>>> Starting dependency check
===>>> Launching child to update libgmp-4.2.3 to libgmp-4.2.4
libgmp-4.2.3 >> libgmp-4.2.3 >> libgmp-4.2.3

===>>> Port directory: /usr/ports/math/libgmp4
===>>> Starting check for all dependencies
===>>> Gathering dependency list for math/libgmp4 from ports
^C
===>>> Build/Install for math/libgmp4 exiting due to signal

===>>> Build/Install for math/libgmp4 exiting due to signal

===>>> Build/Install for math/libgmp4 exiting due to signal
# 

If I don't abort upgrade the check for dependencies goes
in circles, each time increasing the number of self dependencies
by one.

Anybody else seeing this?

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423

- End forwarded message -

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: stop in usr/ports/www/firefox3

2008-09-30 Thread Anton Shterenlikht
On Mon, Sep 29, 2008 at 05:54:20AM -0700, Dino Vliet wrote:
> Hi Laci,
>  
> I did "portsnap fetch update" so I guess that should do the trick.
>  
> Or not?

also see  [Bug 449373] firefox3 FreeBSD Alpha build fails on
bugzilla.mozilla.org

I gave up on firefox3 on FBSD Alpha, use kazehakase instead.

regards

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


detecting monitor's sync and refresh rate?

2008-10-07 Thread Anton Shterenlikht
I've a monitor (Mobi M15MPC) with no docs.
I've searched the net but cannot find any info on sync and refresh rate for it.
I've done Xorg -configure, but testing with X -config xorg.conf.new
shows screen shifted to the side and very nasty blinking, from which 
I deduced that perhaps I need to specify correct sync, refresh and mode.

Are there any commands to get sync and refresh from the monitor?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: detecting monitor's sync and refresh rate?

2008-10-08 Thread Anton Shterenlikht
On Tue, Oct 07, 2008 at 04:42:07PM -0400, Lowell Gilbert wrote:
> Anton Shterenlikht <[EMAIL PROTECTED]> writes:
> 
> > I've a monitor (Mobi M15MPC) with no docs.
> > I've searched the net but cannot find any info on sync and refresh rate for 
> > it.
> > I've done Xorg -configure, but testing with X -config xorg.conf.new
> > shows screen shifted to the side and very nasty blinking, from which 
> > I deduced that perhaps I need to specify correct sync, refresh and mode.
> >
> > Are there any commands to get sync and refresh from the monitor?
> 
> If X can't probe the monitor for its settings, I wouldn't trust any
> other method of probing it either.
> 
> Not to overlook the obvious: are the settings written on the back of
> the monitor?  

no, nothing there.

Can I make anything from this fragment of /var/log/Xorg.0.log:

(II) intel(0): Printing DDC gathered Modelines:
(II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1184  768 771 777
 806 -hsync -vsync (54.9 kHz)
(II) intel(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628
 +hsync +vsync (37.9 kHz)
(II) intel(0): Modeline "640x480"x0.0   25.20  640 656 752 800  480 490 492 525
-hsync -vsync (31.5 kHz)
(II) intel(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449
-hsync +vsync (31.5 kHz)
(II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777
 806 -hsync -vsync (48.4 kHz)


> You can always try Google...

so far no luck

thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


installworld fails -> err code 71 -> too many levels of symbolic links

2008-10-21 Thread Anton Shterenlikht
(also posted to freebsd-current)

I'm rebuilding the world on i386 FBSD 8.0-currnet following the manual.
I cvsup'ed the source on 20-OCT-2008, made buildworld, built kernel,
installed kernel, rebooted into single user mode, and tried to installworld.
I got:

install: /usr/share/locale/nb_NO.ISO8859-1/LC_TIME: Too many levels
of symbolic links
*** Error code 71

Stop in /usr/srs/share/timedef.
*** Error code 1


What am I doing wrong?

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


camcontrol(8) - Unexpected busfree in Message-out phase

2008-10-28 Thread Anton Shterenlikht
I cannot get my scsi scanner detected.

I'm using FBSD 8.0-current on i386.
I'm trying to connect a scsi scanner.
I've the following card:

ahc0:  port 0xd800-0xd8ff mem 0xff8ff000-0xff8f
 irq 10 at device 0.0 on pci1
ahc0: [ITHREAD]
aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

The scanner's SCSI ID is 6 and it is switched on at boot.

I get the following in dmesg:

Waiting 5 seconds for SCSI devices to settle
(probe0:ahc0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe1:ahc0:0:1:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe2:ahc0:0:2:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe3:ahc0:0:3:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe4:ahc0:0:4:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe5:ahc0:0:5:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe6:ahc0:0:6:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe7:ahc0:0:8:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe8:ahc0:0:9:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe9:ahc0:0:10:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe10:ahc0:0:11:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe11:ahc0:0:12:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe12:ahc0:0:13:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe13:ahc0:0:14:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe14:ahc0:0:15:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe6:ahc0:0:6:0): Unexpected busfree in Message-out phase
SEQADDR == 0x170

and each time I run
# camcontrol rescan all
Re-scan of bus 0 was successful
#

I get these lines added to dmesg:

(probe6:ahc0:0:6:0): INQUIRY. CDB: 12 0 0 0 24 0
(probe6:ahc0:0:6:0): Unexpected busfree in Message-out phase
SEQADDR == 0x170

and nothing is detected:

I'm sure I miss something out, so I don't think this is a `currnet' issue.

Any advice?

many thanks
anton


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: build ImageMagick 6.4.4.1_1 from ports failed...

2008-10-29 Thread Anton Shterenlikht
On Wed, Oct 29, 2008 at 09:33:40AM +0200, Aggelidis Nikos wrote:
> hi to all the list,
> 
> i am trying to install ImageMagick 6.4.4.1_1 from the ports system.
> The problem seems to be that i can't complete succesfully the tests of
> imagemagick. In particular i fail in all the Magick++ tests
> 
> [snip]
> 
> FAIL: Magick++/tests/exceptions.sh
> FAIL: Magick++/tests/appendImages.sh
> FAIL: Magick++/tests/attributes.sh
> FAIL: Magick++/tests/averageImages.sh
> FAIL: Magick++/tests/coalesceImages.sh
> FAIL: Magick++/tests/coderInfo.sh
> FAIL: Magick++/tests/colorHistogram.sh
> FAIL: Magick++/tests/color.sh
> FAIL: Magick++/tests/montageImages.sh
> FAIL: Magick++/tests/morphImages.sh
> FAIL: Magick++/tests/readWriteBlob.sh
> FAIL: Magick++/tests/readWriteImages.sh
> FAIL: Magick++/demo/analyze.sh
> FAIL: Magick++/demo/button.sh
> FAIL: Magick++/demo/demo.sh
> FAIL: Magick++/demo/flip.sh
> FAIL: Magick++/demo/gravity.sh
> FAIL: Magick++/demo/piddle.sh
> FAIL: Magick++/demo/shapes.sh
> FAIL: Magick++/demo/zoom_bessel.sh
> FAIL: Magick++/demo/zoom_blackman.sh
> FAIL: Magick++/demo/zoom_box.sh
> FAIL: Magick++/demo/zoom_catrom.sh
> FAIL: Magick++/demo/zoom_cubic.sh
> FAIL: Magick++/demo/zoom_gaussian.sh
> FAIL: Magick++/demo/zoom_hamming.sh
> FAIL: Magick++/demo/zoom_hanning.sh
> FAIL: Magick++/demo/zoom_hermite.sh
> FAIL: Magick++/demo/zoom_lanczos.sh
> FAIL: Magick++/demo/zoom_mitchell.sh
> FAIL: Magick++/demo/zoom_point.sh
> FAIL: Magick++/demo/zoom_quadratic.sh
> FAIL: Magick++/demo/zoom_sample.sh
> FAIL: Magick++/demo/zoom_scale.sh
> FAIL: Magick++/demo/zoom_sinc.sh
> FAIL: Magick++/demo/zoom_triangle.sh
> 
> [snip]
> 
> ===
> 36 of 699 tests failed
> Please report to http://www.imagemagick.org
> ===
> *** Error code 1
> 
> Stop in /usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.4.
> *** Error code 1
> 
> 
> 
> 
> What i've tried so far:
> 
> * i tried to install using
>portugrade -P -N ImageMagick and then by using
>cd /usr/ports/graphics/ImageMagick/ && make install clean
> * updated the ports
> * installed or updated to the last version all the tools listed from
> freshports.org as "Required To Build" or "Required To Run"
>   Required To Build: lang/perl5.8, devel/pkg-config,
> print/ghostscript8-nox11
>   Required To Run: lang/perl5.8, devel/pkg-config, 
> print/ghostscript8-nox11
> * finally i updated to  libtool-1.5.26 because in
> /usr/ports/graphics/ImageMagick/work/ImageMagick-6.4.4/Magick++/tests/attributes.sh
> in the comments is mentioned that libtool is needed...
> 
> Any ideas will be great! even if they are just directions for where to
> look from here...because i am out of ideas..

what platform and FBSD version?
did you build with perl support?
mail output of `make showconfig'.
YOu shouldn't need to build each port manually. If you upgrade ImageMagick
with portupgrade or portmaster, all dependencies would have been checked,
and all updates of ports on which IM depends would have been performed.

I've passed all tests on i386 and all but 2 tests on alpha.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: build ImageMagick 6.4.4.1_1 from ports failed...

2008-10-29 Thread Anton Shterenlikht
On Wed, Oct 29, 2008 at 01:52:08PM +0200, Aggelidis Nikos wrote:
> Here are the configurations options:
> 
> ===> The following configuration options are available for
> ImageMagick-6.4.4.1_1:
>  X11=on "X11 support"
>  IMAGEMAGICK_TESTS=on "Run bundled self-tests after build"
>  IMAGEMAGICK_OPENMP=off "OpenMP for SMP (needs threads)"
>  IMAGEMAGICK_PERL=on "Perl support"
>  IMAGEMAGICK_MODULES=off "Modules support (broken)"
>  IMAGEMAGICK_BZLIB=on "Bzlib support"
>  IMAGEMAGICK_16BIT_PIXEL=on "16bit pixel support"
>  IMAGEMAGICK_DJVU=off "DJVU format support (needs threads)"
>  IMAGEMAGICK_LCMS=on "LCMS support"
>  IMAGEMAGICK_HDRI=off "High Dynamic Range Images (HDRI)"
>  IMAGEMAGICK_TTF=on "Freetype support"
>  IMAGEMAGICK_FONTCONFIG=on "Fontconfig support"
>  IMAGEMAGICK_JPEG=on "JPG format support"
>  IMAGEMAGICK_OPENEXR=off "OpenEXR support (needs threads)"
>  IMAGEMAGICK_PNG=on "PNG format support"
>  IMAGEMAGICK_TIFF=on "TIFF format support"
>  IMAGEMAGICK_FPX=on "FPX format support"
>  IMAGEMAGICK_JBIG=on "JBIG format support"
>  IMAGEMAGICK_JPEG2000=on "JPEG2000 format support"
>  IMAGEMAGICK_DOT=off "GraphViz dot graphs support"
>  IMAGEMAGICK_WMF=off "WMF format support"
>  IMAGEMAGICK_SVG=off "SVG format support"
>  IMAGEMAGICK_PDF=on "PDF format support"
>  IMAGEMAGICK_GSLIB=off "libgs (Postscript SHLIB) support"
> ===> Use 'make config' to modify these settings
> 
> > what platform and FBSD version?
> 
> #uname -a: FreeBSD apollo 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb
> 24 19:59:52 UTC 2008
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
> 
> > did you build with perl support?
> yes
> 
> >
> > If I remember well, this is a known issue.  Change to the port's directory,
> > execute make config, and deselect IMAGEMAGICK_TESTS from the options dialog.
> > It should build and install fine.
> >
> oh i didn't know this, but Anton stated that
> > I've passed all tests on i386
> 
> So you think i should disable the tests and recompile?

In any case you can build and install without tests,
and then do 'make check' separately.

I'm building IM on i386 7.0-stable and 8.0-current.
Will let you know how the tests go soon.

Post also your /etc/make.conf

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: build ImageMagick 6.4.4.1_1 from ports failed...

2008-10-29 Thread Anton Shterenlikht
On Wed, Oct 29, 2008 at 02:47:03PM +0200, Aggelidis Nikos wrote:
> On Wed, Oct 29, 2008 at 2:02 PM, Anton Shterenlikht <[EMAIL PROTECTED]> wrote:
> > In any case you can build and install without tests,
> > and then do 'make check' separately.
> >
> > I'm building IM on i386 7.0-stable and 8.0-current.
> > Will let you know how the tests go soon.
> >
> > Post also your /etc/make.conf
> 
> here it is:
> NO_OPENSSH = YES
> # added by use.perl 2008-10-28 20:44:42
> PERL_VER=5.8.8
> PERL_VERSION=5.8.8
> 
> i will try and build without the tests

not sure if it is related to your problems, but
I'm surprised you haven't got at least this in your /etc/make.conf

CFLAGS= -O -pipe
MAKE_SHELL=sh
BDECFLAGS=  -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
-Wcast-qual -Wchar-subscripts -Winline \
-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
-Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
COPTFLAGS= -O -pipe
INSTALL=install -C

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: build ImageMagick 6.4.4.1_1 from ports failed...

2008-10-29 Thread Anton Shterenlikht
On Wed, Oct 29, 2008 at 01:17:23PM +0200, Manolis Kiagias wrote:
> Aggelidis Nikos wrote:
> > hi to all the list,
> >
> > i am trying to install ImageMagick 6.4.4.1_1 from the ports system.
> > The problem seems to be that i can't complete succesfully the tests of
> > imagemagick. In particular i fail in all the Magick++ tests
> >
> > [snip]
> >
> >
> >   
> 
> If I remember well, this is a known issue.  Change to the port's 
> directory, execute make config, and deselect IMAGEMAGICK_TESTS from the 
> options dialog. It should build and install fine.

on i386 7.0-release:

[skip]

PASS: utilities/tests/wave.sh
PASS: utilities/tests/montage.sh

All 699 tests passed

cd PerlMagick && make CC='cc -std=gnu99' test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.8 "-MExtUtils::Com
mand::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/fp
x/*.t t/jbig/*.t t/jpeg/*.t t/jp2/*.t t/png/*.t t/tiff/*.t t/wmf/*.t t/zlib/*.t
t/blobok
t/bzlib/read..ok
t/bzlib/write.ok
t/composite...ok
t/filter..ok
t/fpx/readok
t/fpx/write...ok
t/getattributeok
t/jbig/read...ok
t/jbig/write..ok
t/jp2/readok
t/jpeg/read...ok
t/jpeg/write..ok
t/montage.ok
t/png/read-16.ok
t/png/readok
t/png/write-16ok
t/png/write...ok
t/readok
t/setattributeok
t/tiff/read...ok
t/tiff/write..ok
t/wmf/readok
t/write...ok
t/zlib/read...ok
t/zlib/write..ok
All tests successful.
Files=26, Tests=343, 130 wallclock secs ( 0.45 cusr +  0.06 csys =  0.52 CPU)
#

on i386 8.0-current (faster box):

PASS: utilities/tests/wave.sh
PASS: utilities/tests/montage.sh

All 699 tests passed

cd PerlMagick && make CC='cc -std=gnu99' test
/bin/sh ../magick.sh PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.8 "-MExtUtils::Com
mand::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/bzlib/*.t t/fp
x/*.t t/jbig/*.t t/jpeg/*.t t/jp2/*.t t/png/*.t t/tiff/*.t t/wmf/*.t t/zlib/*.t
t/blobok
t/bzlib/read..ok
t/bzlib/write.ok
t/composite...ok
t/filter..ok
t/fpx/readok
t/fpx/write...ok
t/getattributeok
t/jbig/read...ok
t/jbig/write..ok
t/jp2/readok
t/jpeg/read...ok
t/jpeg/write..ok
t/montage.ok
t/png/read-16.ok
t/png/readok
t/png/write-16ok
t/png/write...ok
t/readok
t/setattributeok
t/tiff/read...ok
t/tiff/write..ok
t/wmf/readok
t/write...ok
t/zlib/read...ok
t/zlib/write..ok
All tests successful.
Files=26, Tests=343, 20 wallclock secs (13.97 cusr +  4.35 csys = 18.32 CPU)
#

perhaps you just haven't built perlmagick, or use some old libraries -
just a guess.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: build ImageMagick 6.4.4.1_1 from ports failed...

2008-10-29 Thread Anton Shterenlikht
On Wed, Oct 29, 2008 at 04:30:35PM +0200, Aggelidis Nikos wrote:
> On Wed, Oct 29, 2008 at 3:49 PM, Anton Shterenlikht <[EMAIL PROTECTED]> wrote:
> >
> > perhaps you just haven't built perlmagick, or use some old libraries -
> > just a guess.
> >
> I haven't build perlmagick. I only tried to build imagemagick {because
> it was required by kile}...
> 
> Could it be this? The problems that i find are at the test of
> magick++ i pass successfully every other test...
> 
> > I'm surprised you haven't got at least this in your /etc/make.conf
> >
> > CFLAGS= -O -pipe
> > MAKE_SHELL=sh
> > BDECFLAGS=  -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
> >-Wcast-qual -Wchar-subscripts -Winline \
> >-Wmissing-prototypes -Wnested-externs -Wpointer-arith \
> >-Wredundant-decls -Wshadow -Wstrict-prototypes 
> > -Wwrite-strings
> > COPTFLAGS= -O -pipe
> > INSTALL=install -C
> i have the "default" make.conf if i recall correctly... should i add them?

have a look at the example, typically at /usr/share/examples/etc/make.conf

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: Running X without a videocard

2008-11-20 Thread Anton Shterenlikht
On Wed, Nov 19, 2008 at 12:58:40PM -0600, Sam Fourman Jr. wrote:
> > X windows has client/server built into the protocol: you can run an X
> > application on a machine that has no video card and display the result
> > on another machine that has video facility and an X display (called an
> > X server).
> 
> Does anyone know of a tutorial or a how-to, I would like to try this out.

Not sure if it is of help to you. I use XDMCP on the clients' side,
and X -query xx.xx.xx.xx on the sever side.
YOu need to be in the trusted network. Have a look at this thread:

http://www.mail-archive.com/freebsd-questions@freebsd.org/index.html#194794

and at the xdm(1) man page.

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: Mutt /tmp full error when "trying" to read email

2009-09-21 Thread Anton Shterenlikht
I get similar error when trying to open text/enriched emails.
mutt creates a temprorary file under /tmp until it fills the
partition, then I get

/tmp: write failed, filesystem is full

If I'm able to exit mutt normally, the file is deleted automatically.
If I kill mutt process I can see huge mutt- file under /tmp.

I reported this in 

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2009-09/msg00502.html

I think this must be a bug since text/enriched is supposed to be
supported automatically in mutt.

My installation: FreeBSD 9.0-CURRENT ia64, mutt-devel-1.5.20_1

regards
anton


On Sun, Sep 20, 2009 at 01:23:43AM -0700, Doug Hardie wrote:
> You have 4 directories in /tmp.  Check them.  If nothing, run lsof +L1  
> and see if there are files allocated but not in the directory.
> 
> 
> On 20 September 2009, at 00:41, Bryan Cassidy wrote:
> 
> > I decided to reinstall and make /tmp 2Gigs and here is my current  
> > layout
> >
> > df -H
> >
> > Filesystem SizeUsed   Avail Capacity  Mounted on
> > /dev/ad0s1a2.0G150M1.7G 8%/
> > devfs  1.0k1.0k  0B   100%/dev
> > /dev/ad0s1e2.0G1.8G 78M96%/tmp
> > /dev/ad0s1f 29G2.4G 24G 9%/usr
> > /dev/ad0s1d2.0G1.1G750M60%/var
> >
> > Here is the output of df -i
> >
> > Filesystem  1K-blocksUsedAvail Capacity iused   ifree  
> > %iused  Mounted on
> > /dev/ad0s1a   1982798  146842  1677334 8%1765  257305 
> > 1%   /
> > devfs   1   10   100%   0   0   
> > 100%   /dev
> > /dev/ad0s1e   1982798 17476467653096%  15  259055 
> > 0%   /tmp
> > /dev/ad0s1f  28459276 2301652 23880882 9%  239356 3458306 
> > 6%   /usr
> > /dev/ad0s1d   1999598 1107622   73201060%1984  279870 
> > 1%   /var
> >
> >
> > This is the exact error
> >
> > /tmp: write failed, filesystem is full
> > yes: stdout: No space left on device. Press any key to continue...
> >
> > I am able to send emails from Mutt just fine for some reason. How can
> > /tmp be full when it is 2Gigs? Here is the contents of /tmp
> >
> > drwxrwxrwt   6 rootwheel   512 Sep 20 02:33 ./
> > drwxr-xr-x  20 rootwheel   512 Sep 20 00:47 ../
> > drwxrwxrwt   2 rootwheel   512 Sep 20 00:48 .ICE-unix/
> > -r--r--r--   1 rootwheel11 Sep 20 01:25 .X0-lock
> > drwxrwxrwt   2 rootwheel   512 Sep 20 01:25 .X11-unix/
> > drwxrwxrwt   2 rootwheel   512 Sep 20 00:48 .XIM-unix/
> > drwxrwxrwt   2 rootwheel   512 Sep 20 00:48 .font-unix/
> > -rw---   1 bsdsys  wheel  1246 Sep 20 02:29 mutt- 
> > mail-3b4arq36-3
> >
> > Thanks in Advance for any help.
> >
> >
> >
> >> On Sun, Sep 20, 2009 at 01:39:22AM -0500, Erik Osterholm wrote:
> >>> Out of inodes?  df -i
> >>>
> >>> Erik
> >>>
> >>> On Sat, Sep 19, 2009 at 09:16:36PM -0500, Bryan Cassidy wrote:
> >>>> Here is a little about my setup
> >>>>
> >>>> uname -a
> >>>> FreeBSD mail.comcast.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri  
> >>>> May  1 08:49:13 UTC 2009 r...@walker.cse.buffalo.edu:/usr/obj/ 
> >>>> usr/src/sys/GENERIC  i386
> >>>>
> >>>> Mutt 1.4.2.3i
> >>>>
> >>>> Output from df -h
> >>>>
> >>>> Filesystem SizeUsed   Avail Capacity  Mounted on
> >>>> /dev/ad0s1a496M143M313M31%/
> >>>> devfs  1.0K1.0K  0B   100%/dev
> >>>> /dev/ad0s1e496M332M124M73%/tmp
> >>>> /dev/ad0s1f 30G2.9G 25G11%/usr
> >>>> /dev/ad0s1d1.9G 53M1.7G 3%/var
> >>>> linprocfs  4.0K4.0K  0B   100%/usr/compat/linux/ 
> >>>> proc
> >>>>
> >>>> When /tmp shows 73% used why am I getting these messages when  
> >>>> trying
> >>>> to open emails in mutt? I cannot opem them at all. Thanks in  
> >>>> advance.
> >>>>
> >>>> ___
> >>>> 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 - after some time can't lauch new windows, Error: Can't open display

2009-09-24 Thread Anton Shterenlikht
After some time I cannot open any new windows in X,
I get
No protocol specified
Error: Can't open display: :0.0

This is on i386 9.0-current with
agp0:  on vgapci0

I've xorg-7.4_2, xorg-server-1.6.1,1, xf86-video-intel-2.7.1
and latest hal and dbus.

My window manager is mwm (part of open-motif-2.2.3_6).

After logging into X via xdm I can launch new windows fine.
But after a while, probably several hours, an attempt to
launch a new window, i.e. any program that opens a new window,
like xterm or xpdf, results in the error message above.

The only solution I've found is to logout of xdm and login again.
But would be great to solve this properly.

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"


SOLVED? Re: X - after some time can't lauch new windows, Error: Can't open display

2009-09-25 Thread Anton Shterenlikht
On Thu, Sep 24, 2009 at 04:49:02PM +0100, Anton Shterenlikht wrote:
> After some time I cannot open any new windows in X,
> I get
>   No protocol specified
>   Error: Can't open display: :0.0
> 
> This is on i386 9.0-current with
>   agp0:  on vgapci0
> 
> I've xorg-7.4_2, xorg-server-1.6.1,1, xf86-video-intel-2.7.1
> and latest hal and dbus.
> 
> My window manager is mwm (part of open-motif-2.2.3_6).
> 
> After logging into X via xdm I can launch new windows fine.
> But after a while, probably several hours, an attempt to
> launch a new window, i.e. any program that opens a new window,
> like xterm or xpdf, results in the error message above.
> 
> The only solution I've found is to logout of xdm and login again.
> But would be great to solve this properly.

I realised that rsync from another box was overwriting $HOME/.Xauthority
every time I sinchronised the two machines. After that connection
to X server is refused because the data in .Xauthority doesn't match
what the X server is expecting (is that so? not sure..).
Logging out and on again creates a new .Xauthority file, and all
is fine after that.  

Or perhaps the mechanism I described is not correct..
Anyway it seems to have helped.

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


how to play *.evo animations (EnSight proprietary format)?

2009-09-30 Thread Anton Shterenlikht
I've several old *.evo animations. This is the
proprietary format developed by CEI:

http://www.ensight.com/envideo.html

CEI have free players for MSWindows, MacOS and linux.
I've had a quick look at the ports tree, and searched
the net a bit, but cannot find a program which would
play *.evo files on FreeBSD.

Any suggestions?

many thanks
anton

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


mplayer: X11 error: BadAlloc (insufficient resources for operation)

2009-09-30 Thread Anton Shterenlikht
I've installed port multimedia/mplayer (mplayer-0.99.11_14)
on 9.0-current ia64.

Trying to play an mpeg video I get endless stream of 

X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
V:   7.6 190/190 17% 82%  0.0% 0 0 
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)

Exiting... (End of file)

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"


Re: mplayer: X11 error: BadAlloc (insufficient resources for operation)

2009-09-30 Thread Anton Shterenlikht
On Wed, Sep 30, 2009 at 05:36:40PM +0100, Anton Shterenlikht wrote:
> I've installed port multimedia/mplayer (mplayer-0.99.11_14)
> on 9.0-current ia64.
> 
> Trying to play an mpeg video I get endless stream of 
> 
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> V:   7.6 190/190 17% 82%  0.0% 0 0 
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> X11 error: BadAlloc (insufficient resources for operation)
> 
> Exiting... (End of file)

the same error happens on i386 HEAD:

Playing /usr/home/mexas/ex1.mpg.
MPEG-ES file format detected.
VIDEO:  MPEG1  656x432  (aspect 1)  25.000 fps  1152.0 kbps (144.0 kbyte/s)
==
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 656 x 432 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==
Audio: no sound
Starting playback...
VDec: vo config request - 656 x 432 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.52:1 - prescaling to correct movie aspect.
VO: [xv] 656x432 => 656x432 Planar YV12 
New_Face failed. Maybe the font path is wrong.  

Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[ws] Error in display.
[ws]  Error code: 11 ( BadAlloc (insufficient resources for operation) )
[ws]  Request code: 132
[ws]  Minor code: 19
[ws]  Modules: flip_page

many thanks for any advice

-- 
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: mplayer: X11 error: BadAlloc (insufficient resources for operation)

2009-10-01 Thread Anton Shterenlikht
On Wed, Sep 30, 2009 at 10:45:03PM +0200, cpghost wrote:
> On Wed, Sep 30, 2009 at 05:36:40PM +0100, Anton Shterenlikht wrote:
> > I've installed port multimedia/mplayer (mplayer-0.99.11_14)
> > on 9.0-current ia64.
> > 
> > Trying to play an mpeg video I get endless stream of 
> > 
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> > V:   7.6 190/190 17% 82%  0.0% 0 0 
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> > X11 error: BadAlloc (insufficient resources for operation)
> 
> This usually happens when X doesn't have enough resources to
> allocate to direct viewing with the xv (XView) driver. This
> is very often related to DRM/DRI or memory problems.
> 
> As a work around, try playing the video with the x11 driver
> instead:
> 
> $ mplayer -vo x11 somefile.avi

yes, this works ok, many thanks
I can even view an animation from a remote machine, via ssh -X,
but shower, of course.

-- 
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's my konqueror?

2009-11-12 Thread Anton Shterenlikht
I installed  kdebase-4.3.1_1, but cannot find konqueror.
It's supposed be a part of kdebase, isn't it?

many thanks
anton

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


GPUs on FBSD?

2009-11-20 Thread Anton Shterenlikht
Anybody knows of working GPUs under FBSD on any arch?
Any advice?

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


open64 fbsd port?

2009-11-20 Thread Anton Shterenlikht
Is there a fbsd port of open64 (http://www.open64.net/),
or any branched project?

In particular there is a mention of ORC (http://ipf-orc.sourceforge.net/)
specifically for ia64, but the pages are very out of date.

And then there's something called Aurora, which seems to be the same
as ORC (http://sourceforge.net/projects/ipf-orc/), but also *very*
out of date.

I'm confused 

many thanks
anton

-- 
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: open64 fbsd port?

2009-11-20 Thread Anton Shterenlikht
On Fri, Nov 20, 2009 at 04:47:41PM +, Anton Shterenlikht wrote:
> Is there a fbsd port of open64 (http://www.open64.net/),
> or any branched project?
> 
> In particular there is a mention of ORC (http://ipf-orc.sourceforge.net/)
> specifically for ia64, but the pages are very out of date.
> 
> And then there's something called Aurora, which seems to be the same
> as ORC (http://sourceforge.net/projects/ipf-orc/), but also *very*
> out of date.

And also there is OpenUH, primarilily for ia64, but linux:

OpenUH  Source code,
IA-64, Red Hat Enterprise Linux AS release 3 and gcc 3.x
openuh-alpha.src.tar.gz 90.2 MB

and Path64 (http://www.path64.com/)

I understand no fbsd ports for these compilers exist yet?

-- 
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: GPUs on FBSD?

2009-11-21 Thread Anton Shterenlikht
On Fri, Nov 20, 2009 at 08:11:57PM +0100, usleepl...@gmail.com wrote:
> On Fri, Nov 20, 2009 at 6:16 PM, Daniel C. Dowse  wrote:
> 
> > On Fri, 20 Nov 2009 11:46:57 +0000
> > Anton Shterenlikht  wrote:
> >
> > > Anybody knows of working GPUs under FBSD on any arch?
> > > Any advice?
> > >
> >
> > I using a nvidia fx5500 with the latest driver 173.14.22 on i386 and
> > it works perfect. And it was no pain to get 3d working for games.
> >
> > I am still wondering what this thread is actually about: is it about
> hardware accelerated video or about offloading general computation to the
> GPU ( CUDA et al. ).

the latter. My question was about HPC application of GPUs. Use of GPGPUs
for HPC under linux is growing very fast, with cuda and opencl. However,
I doubt any GPUs will be supported on fbsd. At least not at this stage.
Unless somebody knows better?

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"


trouble installing to sun blade 1500

2009-12-01 Thread Anton Shterenlikht
I'm new to sun, but have some experiece installing fbsd to
i386, alpha and ia64.

I've sun blade 1500: http://www.sun.com/desktop/workstation/sunblade1500/

I just burned a 8.0 release cd, and tried to boot from it.
I've a keyboard, mouse and screen attached.
I get to OK prompt, type "boot cdrom", but the process
stops after a few seconds with:

jumping to kernel entry at 0xc0088000.

Then nothing, and the keyboard is not responsive.
I have to force cold reset. On restart the process
repeats.

Am I missing something?
Or maybe the cd didn't burn well?

Also, there seem to be no reset button on the desktop.
Is there a keyboard key or combination to force a reset?

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"


Re: trouble installing to sun blade 1500

2009-12-01 Thread Anton Shterenlikht
On Tue, Dec 01, 2009 at 04:13:20PM +, Adrian Urquhart wrote:
> On Tue, 1 Dec 2009, Anton Shterenlikht wrote:
> 
> > I'm new to sun, but have some experiece installing fbsd to
> > i386, alpha and ia64.
> >
> > I've sun blade 1500: http://www.sun.com/desktop/workstation/sunblade1500/
> >
> > I just burned a 8.0 release cd, and tried to boot from it.
> > I've a keyboard, mouse and screen attached.
> > I get to OK prompt, type "boot cdrom", but the process
> > stops after a few seconds with:
> >
> > jumping to kernel entry at 0xc0088000.
> >
> > Then nothing, and the keyboard is not responsive.
> > I have to force cold reset. On restart the process
> > repeats.
> 
> Hi
> 
> I know on some Sun kit this can mean that the boot process is now 
> carrying on via a serial port.

ok, I'll try to check this out.

In the meantime I tried 7.2 cd with very similar result - I'm stuck with

jumping to kernel entry at 0xc0078000

> > Also, there seem to be no reset button on the desktop.
> > Is there a keyboard key or combination to force a reset?
> >
> 
> Not sure what you mean by "reset button" but STOP-A is the usual key 
> combination to get you to the OpenBOOT prom.

yes, this was what I'm after. STOP/A doesn't seem to have any
effect on my box. Do you mean hit "A" while "STOP" is pressed?

many thanks
anton

-- 
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: trouble installing to sun blade 1500

2009-12-01 Thread Anton Shterenlikht
On Tue, Dec 01, 2009 at 04:13:20PM +, Adrian Urquhart wrote:
> On Tue, 1 Dec 2009, Anton Shterenlikht wrote:
> 
> > I'm new to sun, but have some experiece installing fbsd to
> > i386, alpha and ia64.
> >
> > I've sun blade 1500: http://www.sun.com/desktop/workstation/sunblade1500/
> >
> > I just burned a 8.0 release cd, and tried to boot from it.
> > I've a keyboard, mouse and screen attached.
> > I get to OK prompt, type "boot cdrom", but the process
> > stops after a few seconds with:
> >
> > jumping to kernel entry at 0xc0088000.
> >
> > Then nothing, and the keyboard is not responsive.
> > I have to force cold reset. On restart the process
> > repeats.
> 
> Hi
> 
> I know on some Sun kit this can mean that the boot process is now 
> carrying on via a serial port.

yes, using a serial line I'm able to pass this point.
Will see if I can complete the installation this way.

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"


Re: trouble installing to sun blade 1500

2009-12-01 Thread Anton Shterenlikht
On Tue, Dec 01, 2009 at 05:27:11PM +0100, Gheorghe Ardelean wrote:
> 
> 
> Hello Anton ... to FreeBSD sparc64,
> 
> > I get to OK prompt, type "boot cdrom", but the process
> > stops after a few seconds with:
> >
> > jumping to kernel entry at 0xc0088000.
> >
> 
> I think supported system means that it is working at least via serial 
> console (this is the case e.g for Plain Ultra 1).
> 
> So when I see something like this I hook-up a serial console and try over 
> it.

ok, 8.0 installation went fine.

On reboot I get this panic (typed by hand):

Entropy harvesting: interrupts ethernet point_to_pointpanic: trap: 
memory
address not aligned

    Automatic reboot in 15 seconds

Any advice?

many thanks
anton

-- 
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: trouble installing to sun blade 1500

2009-12-01 Thread Anton Shterenlikht
On Tue, Dec 01, 2009 at 04:57:52PM +, Anton Shterenlikht wrote:
> On Tue, Dec 01, 2009 at 05:27:11PM +0100, Gheorghe Ardelean wrote:
> > 
> > 
> > Hello Anton ... to FreeBSD sparc64,
> > 
> > > I get to OK prompt, type "boot cdrom", but the process
> > > stops after a few seconds with:
> > >
> > >   jumping to kernel entry at 0xc0088000.
> > >
> > 
> > I think supported system means that it is working at least via serial 
> > console (this is the case e.g for Plain Ultra 1).
> > 
> > So when I see something like this I hook-up a serial console and try over 
> > it.
> 
> ok, 8.0 installation went fine.
> 
> On reboot I get this panic (typed by hand):
> 
>   Entropy harvesting: interrupts ethernet point_to_pointpanic: trap: 
> memory
>   address not aligned
> 
>   Automatic reboot in 15 seconds
> 
> Any advice?

in case it matters, I see

nexus0:  type unknown (no driver attached)

nexus0:  mem 0x4000000-0x400007 type
memory-controller (no driver attached)

messages on boot.

Not sure if it's related.

many thanks for any advice


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


dd (to erase disk) from emergency holographic shell

2009-12-06 Thread Anton Shterenlikht
I need to erase all of my fbsd disk.
I booted the installation cd, launched
Emergency Holographic Shell, but
cannot find any command, except rm and pwd.

I'd like to erase my disk with dd if=/dev/null of=/dev/ad0

Please advise

many thanks
anton

-- 
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: dd (to erase disk) from emergency holographic shell

2009-12-06 Thread Anton Shterenlikht
On Sun, Dec 06, 2009 at 12:39:20PM -0500, Jerry McAllister wrote:
> On Sun, Dec 06, 2009 at 05:34:31PM +0000, Anton Shterenlikht wrote:
> 
> > I need to erase all of my fbsd disk.
> > I booted the installation cd, launched
> > Emergency Holographic Shell, but
> > cannot find any command, except rm and pwd.
> 
> The holograqphic shell is not the one you want.
> You want the Fixit.

I thought these are identical things.
In the sysinstall menu I chose "Fixit",
and in the following menu I chose "Start an
Emergency Holographic Shell". Is this not it?

Or do I need to prepare a separate Fixit CD or
floppy?

I was under the impression I've used this
holo shell before, but can't remember how now.

many thanks
anton

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


Solved: Re: dd (to erase disk) from emergency holographic shell

2009-12-06 Thread Anton Shterenlikht
On Sun, Dec 06, 2009 at 05:54:52PM +, Anton Shterenlikht wrote:
> On Sun, Dec 06, 2009 at 12:39:20PM -0500, Jerry McAllister wrote:
> > On Sun, Dec 06, 2009 at 05:34:31PM +0000, Anton Shterenlikht wrote:
> > 
> > > I need to erase all of my fbsd disk.
> > > I booted the installation cd, launched
> > > Emergency Holographic Shell, but
> > > cannot find any command, except rm and pwd.
> > 
> > The holograqphic shell is not the one you want.
> > You want the Fixit.
> 
> I thought these are identical things.
> In the sysinstall menu I chose "Fixit",
> and in the following menu I chose "Start an
> Emergency Holographic Shell". Is this not it?
> 
> Or do I need to prepare a separate Fixit CD or
> floppy?
> 
> I was under the impression I've used this
> holo shell before, but can't remember how now.

I burned a separate livefs CD, launched Fixit from there.

sorry for the bother

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


Root exploit for FreeBSD

2009-12-10 Thread Anton Shterenlikht
>From my information security manager:

FreeBSD isn't much used within the University (I understand) and has a
(comparatively) poor security record. Most recently, for example:


http://www.h-online.com/security/news/item/Root-exploit-for-FreeBSD-873352.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: Root exploit for FreeBSD

2009-12-10 Thread Anton Shterenlikht
On Thu, Dec 10, 2009 at 09:51:22AM -0500, Bill Moran wrote:
> In response to Anton Shterenlikht :
> 
> > >From my information security manager:
> > 
> > FreeBSD isn't much used within the University (I understand) and has a
> > (comparatively) poor security record. Most recently, for example:
> > 
> > 
> > http://www.h-online.com/security/news/item/Root-exploit-for-FreeBSD-873352.html
> 
> Are you trying to make your infosec guy look like an idiot?  Does he
> realize that FreeBSD has a grand total of 16 security problems for all
> of 2009?  Hell, Microsoft has that many in an average month.
> 
> If he can find something (other than OpenBSD) with a better record than
> that, I'd love to hear about it.

I was just stressed after being forced by him
to explain why I wanted firewall exceptions
for two ports to my FreeBSD portscluster nodes.
I explained the reasons and that was settled.

I wouldn't be surprised if I'm the sole fbsd user
at my Uni. The situation with computing is not
great and getting worse.

The Uni is, of course,
addicted to Microsoft, but having realised all
the problems with that, lately the policy has
been to deny (!) MS users admin access to their
own desktops. The situation is just ridiculous - 
if a MS user wants to install a piece of software
on their PC he/she has to ask for permission,
and then wait until some computer officer would
come and do install for them.

Also recently, well.. about a year ago, no
host (!) could be accessed from outside the
Uni firewall. Special exception has to be
obtained even for ssh. There is only one dedicated
sun server which accepts only ssh. The users
are supposed to dial to this frontend server
first, and from there to hosts on the local net.

Honestly, the situation is so bad that I 
sometimes wonder - perhaps it's me who is mad.
It seems IT services look at anybody who
wants to escape MS with suspicion at best.
 
I had to fight a long battle, well.. I had
some support from other academics, to have
a linux class in my Faculty. Here the
opposition wasn't so much security, as
"why would any undegraduate need linux",
as if MS solutions are a pinnacle of human thought.

And from I understand it's going to get worse.
Apparently the IT services are drawing up
plans to completely forbid use of "non-autorized"
OS. I imagine fbsd will not be authorized.
So I'm anticipating another battle already.

Perhaps I should start putting together
some statistics to make my case more forcefully.

many thanks for your support, as always

-- 
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: Root exploit for FreeBSD

2009-12-11 Thread Anton Shterenlikht
On Thu, Dec 10, 2009 at 10:34:34PM -0600, Paul Schmehl wrote:
> 
> I'm starting to wonder if the security manager really said what Anton 
> claims he said, or Anton is filtering his perceptions through the anger he 
> feels at being restricted in his ability to operate freely.  If the latter 
> is the case, you'd better adjust to it.  It's the world of the future. 
> You can do whatever you want at home, but on the corporate network you 
> either follow the rules or lose your access.

yes, he did, I can forward you our communication off list if you wish.

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


port print/teTeX-base-3.0_17 - fatal errors after upgrade

2009-12-17 Thread Anton Shterenlikht
Hi, after a recent upgrade to teTeX-base-3.0_17, I get
these errors on any latex (or pdftex) run.

I installed the full  teTeX-3.0_2
I even rebuilt all ports which depend on teTeX-base,
but still get this error.

Please advise
anton



No file just.aux.
(/usr/local/share/texmf-dist/tex/latex/platex/ot4cmr.fd)
(/usr/local/share/texmf-dist/tex/latex/lm/t1lmr.fd)
(/usr/local/share/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/share/texmf-dist/tex/latex/graphics/color.cfg)
(/usr/local/share/texmf-dist/tex/latex/graphics/pdftex.def
(/usr/local/share/texmf-dist/tex/context/base/supp-pdf.tex
(/usr/local/share/texmf-dist/tex/context/base/supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
)
loading : Context Support Macros / PDF (2004.03.26)
))) (/usr/local/share/texmf-dist/tex/latex/hyperref/nameref.sty) [1
Warning: latex (file pdftex.map): cannot open font map file
] (./just.aux)kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 
--dpi 600 cork-lmbx10
gsftopk: fatal: map file `psfonts_t1.map' not found.
mktexpk: don't know how to create bitmap font for cork-lmbx10.
kpathsea: Appending font creation commands to missfont.log.
 )
Warning: latex (file cork-lmbx10): Font cork-lmbx10 at 600 not found
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 
cork-lmr10
gsftopk: fatal: map file `psfonts_t1.map' not found.
mktexpk: don't know how to create bitmap font for cork-lmr10.

Warning: latex (file cork-lmr10): Font cork-lmr10 at 600 not found
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 
cork-lmr12
gsftopk: fatal: map file `psfonts_t1.map' not found.
mktexpk: don't know how to create bitmap font for cork-lmr12.

Warning: latex (file cork-lmr12): Font cork-lmr12 at 600 not found
kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+120/600 --dpi 720 
cork-lmr12
gsftopk: fatal: map file `psfonts_t1.map' not found.
mktexpk: don't know how to create bitmap font for cork-lmr12.

Warning: latex (file cork-lmr12): Font cork-lmr12 at 720 not found
Output written on just.pdf (1 page, 5986 bytes).
Transcript written on just.log.
> 

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


editing a binary file

2009-12-17 Thread Anton Shterenlikht
I'm creating binary files in fortran.
Fortran adds 4 byte record delimiters at the beginning
and the end of each record, which, in the case of a binary
file, is just at the beginning and at the end of the file.
I need to delete these record delimiters, because the
software I use to visualise the binary files interprets
them as data. But I don't know how. I've looked at
hexdump and od, but those are only dumping (I think)
file contents, and I cannot see how to edit a file with them.

Any advice?

many thanks
anton

-- 
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: editing a binary file

2009-12-17 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 02:09:58AM +0100, Rolf Nielsen wrote:
> Anton Shterenlikht wrote:
> > I'm creating binary files in fortran.
> > Fortran adds 4 byte record delimiters at the beginning
> > and the end of each record, which, in the case of a binary
> > file, is just at the beginning and at the end of the file.
> > I need to delete these record delimiters, because the
> > software I use to visualise the binary files interprets
> > them as data. But I don't know how. I've looked at
> > hexdump and od, but those are only dumping (I think)
> > file contents, and I cannot see how to edit a file with them.
> > 
> > Any advice?
> > 
> > many thanks
> > anton
> > 
> 
> Hello Anton,
> 
> My bet would be /usr/ports/editors/hexedit. Been a while since I've used 
> it, but AFAIR, it has a curses or a curses like interface, and it's 
> fairly simple to use, yet sufficiently powerful for most normal binary 
> editing. If you want a GUI, I believe gnome (and probably KDE as well) 
> has its own hex editor.

thank you. hexedit does the job on small files, but is quite
clunky. If I've a xGB file and I need to delete the first and
the last record, this becomes quite hard, if at all possible.

I didn't appreciate it's not that simple.

Perhaps I can read a file with C and write back? I can't
remember if C supports binary files, and whether it
also writes some record delimiters.

many thanks
anton

-- 
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: xdvi problem after teTex-base-3.0_17 port upgrade

2009-12-18 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 12:13:22PM +0100, n dhert wrote:
> A few days ago there was a port upgrade  teTex-base-3.0_17.
> Since then, when xdvi'ing a .dvi file gives at the command line:
>  Xlib: extension "Generic Event Extension" missing on display ...
>  xdvi-motif.bin: Warning: Could not find map file 'ps2pk.map'
> and in a separate Windows 'XDvi error" "
>  "Could not load any ot the map files listed in xdvi.cfg - disabling T1lib"

yes, there seems to be a problem. See this thread:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=478076+0+current/freebsd-questions

Hiroki is working on it.

-- 
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: editing a binary file

2009-12-18 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 09:33:49AM -0700, Warren Block wrote:
> per...@pluto.rain.com wrote:
> > Greg Larkin  wrote:
> > > ...
> > > > truncate -4 myfile should get rid of the last four bytes.  Maybe
> > > > there's a similar efficient way to truncate the start of a file.
> > >
> > > This should do it:
> > >
> > > dd if=oldfile of=newfile bs=1 skip=4
> > 
> > Or, perhaps marginally more efficient:
> > 
> > dd if=oldfile of=newfile bs=4 skip=1
> 
> It would be nice to avoid the file copy, but maybe there's no way to do 
> that.  The small buffer size for dd will probably make copies of 
> multi-gig files slow.  This might be faster:
> 
> tail -c +5 myfile > outfile
> truncate -4 outfile
> 
> (Has anyone mentioned that you can edit binary files interactively with 
> vi yet?  No?  Well, it's horrific and surely has interesting failure 
> modes.  And there are probably disadvantages also.)

Vim, yes. I tried, but failed. At the moment dd/truncate combination
seems the most appealing. But I'll look at C/perl/python proposed
solutions as well.

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"


Re: editing a binary file

2009-12-18 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 04:38:16PM +, Nick Barnes wrote:
> At 2009-12-18 16:33:49+, Warren Block writes:
> > per...@pluto.rain.com wrote:
> > > Greg Larkin  wrote:
> > > > ...
> > > > > truncate -4 myfile should get rid of the last four bytes.  Maybe
> > > > > there's a similar efficient way to truncate the start of a file.
> > > >
> > > > This should do it:
> > > >
> > > > dd if=oldfile of=newfile bs=1 skip=4
> > > 
> > > Or, perhaps marginally more efficient:
> > > 
> > > dd if=oldfile of=newfile bs=4 skip=1
> > 
> > It would be nice to avoid the file copy, but maybe there's no way to do 
> > that.  The small buffer size for dd will probably make copies of 
> > multi-gig files slow.  This might be faster:
> > 
> > tail -c +5 myfile > outfile
> > truncate -4 outfile
> > 
> > (Has anyone mentioned that you can edit binary files interactively with 
> > vi yet?  No?  Well, it's horrific and surely has interesting failure 
> > modes.  And there are probably disadvantages also.)
> 
> All very interesting, but the OP is wanting to lose all the Fortran
> record markers, not just the first (and last) four bytes of the file.
> The record markers precede and follow each record, and give the
> record's length.  The size and enddian-ness of the record marker
> itself depends on the Fortran implementation.

actually the file consists of just one (potentially very long)
record, so erasing the first and the last 4 bytes is all I need.

I haven't had a chance to look at the proposed solutions, but
many thanks for all your advice.

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


sysinstall differences between i386 and ia64/sparc

2009-12-18 Thread Anton Shterenlikht
Why when I run sysinstall on ia64 or sparc,
I don't see these options under "Configure":

Console
Time Zone
Mouse

which are present in i386 sysinstall?

Is this because vga console is not supported
on all sparc graphic cards, or at all on ia64?

What about time zone?

How can I modify keyrate, etc. on sparc?

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"


Partly solved: WAS: sysinstall differences between i386 and ia64/sparc

2009-12-18 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 08:32:06PM +, Anton Shterenlikht wrote:
> Why when I run sysinstall on ia64 or sparc,
> I don't see these options under "Configure":
> 
>   Console
>   Time Zone
>   Mouse
> 
> which are present in i386 sysinstall?
> 
> Is this because vga console is not supported
> on all sparc graphic cards, or at all on ia64?
> 
> What about time zone?
> 
> How can I modify keyrate, etc. on sparc?

Answer: kbdcontrol -r fast

-- 
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: editing a binary file

2009-12-19 Thread Anton Shterenlikht
On Thu, Dec 17, 2009 at 06:38:04PM -0700, Warren Block wrote:
> On Fri, 18 Dec 2009, Anton Shterenlikht wrote:
> 
> > I'm creating binary files in fortran.
> > Fortran adds 4 byte record delimiters at the beginning
> > and the end of each record, which, in the case of a binary
> > file, is just at the beginning and at the end of the file.
> > I need to delete these record delimiters, because the
> > software I use to visualise the binary files interprets
> > them as data. But I don't know how. I've looked at
> > hexdump and od, but those are only dumping (I think)
> > file contents, and I cannot see how to edit a file with them.
> 
> truncate -4 myfile should get rid of the last four bytes.  Maybe there's 
> a similar efficient way to truncate the start of a file.

thank you, that works fine:

> hexdump -C fort.10
  01 00 00 00 01 01 00 00  00   |.|
0009

> truncate -s -4 fort.10 

> hexdump -C fort.10
0000  01 00 00 00 01|.|
0005
> 

-- 
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: editing a binary file

2009-12-19 Thread Anton Shterenlikht
On Thu, Dec 17, 2009 at 08:45:02PM -0500, Greg Larkin wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Warren Block wrote:
> > On Fri, 18 Dec 2009, Anton Shterenlikht wrote:
> > 
> >> I'm creating binary files in fortran.
> >> Fortran adds 4 byte record delimiters at the beginning
> >> and the end of each record, which, in the case of a binary
> >> file, is just at the beginning and at the end of the file.
> >> I need to delete these record delimiters, because the
> >> software I use to visualise the binary files interprets
> >> them as data. But I don't know how. I've looked at
> >> hexdump and od, but those are only dumping (I think)
> >> file contents, and I cannot see how to edit a file with them.
> > 
> > truncate -4 myfile should get rid of the last four bytes.  Maybe there's
> > a similar efficient way to truncate the start of a file.
> > 
> > -Warren Block * Rapid City, South Dakota USA
> 
> This should do it:
> 
> dd if=oldfile of=newfile bs=1 skip=4

yes, this is very useful:

> hexdump -C fort.10
  01 00 00 00 08 01 00 00  00   |.|
0009

> truncate -s -4 fort.10

> hexdump -C fort.10
  01 00 00 00 08|.|
0005

> dd if=fort.10 of=zzz bs=1 skip=4
1+0 records in
1+0 records out
1 bytes transferred in 0.94 secs (10645 bytes/sec)

> hexdump -C zzz
  08|.|
0001
> 


many thanks
anton

-- 
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: editing a binary file

2009-12-19 Thread Anton Shterenlikht
On Fri, Dec 18, 2009 at 09:33:49AM -0700, Warren Block wrote:
> per...@pluto.rain.com wrote:
> > Greg Larkin  wrote:
> > > ...
> > > > truncate -4 myfile should get rid of the last four bytes.  Maybe
> > > > there's a similar efficient way to truncate the start of a file.
> > >
> > > This should do it:
> > >
> > > dd if=oldfile of=newfile bs=1 skip=4
> > 
> > Or, perhaps marginally more efficient:
> > 
> > dd if=oldfile of=newfile bs=4 skip=1
> 
> It would be nice to avoid the file copy, but maybe there's no way to do 
> that.  The small buffer size for dd will probably make copies of 
> multi-gig files slow.  This might be faster:
> 
> tail -c +5 myfile > outfile
> truncate -4 outfile

yes, quite. On 1.5GHz ia64, on 1GB binary file tail takes about 25 s,
but dd.. I killed after 25 min (!) and it had only done 1/3 of the file.

But even tail is too slow.

So I'll probably have to write a C I/O routine and avoid fortran I/O
alltogether, so I write straight away just my data.

many thanks
anton

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


debugging slow network

2009-12-20 Thread Anton Shterenlikht
I seem to have a very slow network connection at work.
All local switches are supposed to be gigabit, and my
network card is gigabit as well. But download speed
seems to be much lower.

I'm not a networks person, but I understand there could
many factors affecting the speed. There appear to be
a multitute of different network related commands
just in base OS. Which should I start with to get
some idea of the actual network speed? netstat?
And should I be looking for?

many thanks
anton

-- 
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 -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-20 Thread Anton Shterenlikht
On Sun, Dec 20, 2009 at 04:00:05PM +0100, Marius Strobl wrote:
> On Sat, Dec 19, 2009 at 09:48:03PM +0000, Anton Shterenlikht wrote:
> > 
> > I've built X without hal, but get this error on X -configure:
> > 
> 
> Actually when running `X -configure` or when trying to use the
> resulting /root/xorg.conf.new? This looks more like an error in
> the configuration file and the results returned by google for
> this failure message suggest that this can be due to the server
> not being able to load a configured module. Anyway, I'd try
> to use the resulting xorg.conf.new and if that fails manually
> checking its contents and removing unnecessary and unavailable
> stuff like DRI for example.

yes, on 'X -configure'. Removing modules doesn't help.

On X -configure:


X.Org X Server 1.6.1
Release Date: 2009-4-14
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.0-CURRENT sparc64 
Current Operating System: FreeBSD mech-anton242.men.bris.ac.uk 9.0-CURRENT 
FreeBSD 9.0-CURRENT #1: Sat Dec 19 22:34:14 GMT 2009 
me...@mech-anton242.men.bris.ac.uk:/usr/obj/usr/src/sys/HAMOR sparc64
Build Date: 19 December 2009  08:28:07PM
 
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: Sun Dec 20 22:04:26 2009
(II) Loader magic: 0x1508
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
(II) Loader running on freebsd
(--) Using syscons driver with X support (version 8589944945.226)
(--) using VT number 9

(--) PCI: (0...@0:6:0) ALi Corporation M7101 Power Management Controller [PMU] 
rev 0
(--) PCI: (1...@0:3:0) ATI Technologies Inc Rage XL rev 39, Mem @ 
0x0100/16777216, 0x0010/4096, I/O @ 0x0300/256, BIOS @ 
0x/65536
List of video drivers:
mach64
sunffb
(II) LoadModule: "mach64"
(II) Loading /usr/local/lib/xorg/modules/drivers//mach64_drv.so
(II) Module mach64: vendor="X.Org Foundation"
compiled for 1.6.1, module version = 6.8.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 5.0
(II) LoadModule: "sunffb"
(II) Loading /usr/local/lib/xorg/modules/drivers//sunffb_drv.so
(II) Module sunffb: vendor="X.Org Foundation"
compiled for 1.6.1, module version = 1.2.0
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 5.0
(II) System resource ranges:
[0] -1  0   0x000f - 0x000f (0x1) MX[B]
[1] -1  0   0x000c - 0x000e (0x3) MX[B]
[2] -1  0   0x - 0x0009 (0xa) MX[B]
[3] -1  0   0x - 0x (0x1) IX[B]
[4] -1  0   0x - 0x00ff (0x100) IX[B]
(II) MACH64: Driver for ATI Mach64 chipsets
(WW) Falling back to old probe method for sunffb
(++) Using config file: "/root/xorg.conf.new"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Not automatically adding devices
(==) Not automatically enabling devices
(**) FontPath set to:
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/,
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/,
built-ins
(**) ModulePath set to "/usr/local/lib/xorg/modules"
Number of created screens does not match number of detected devices.
  Configuration failed.


and then on 'X -config ./xorg.conf.new':



X.Org X Server 1.6.1
Release Date: 2009-4-14
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.0-CURRENT sparc64 
Current Operating System: FreeBSD mech-anton242.men.bris.ac.uk 9.0-CURRENT 
FreeBSD 9.0-CURRENT #1: Sat Dec 19 22:34:14 GMT 2009 
me...@mech-anton242.men.bris.ac.uk:/usr/obj/usr/src/sys/HAMOR sparc64
Build Date: 19 December 2009  08:28:07PM
 
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, (!!) notic

Re: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-20 Thread Anton Shterenlikht
On Sun, Dec 20, 2009 at 11:20:12PM +0100, Marius Strobl wrote:
> On Sun, Dec 20, 2009 at 10:10:10PM +0000, Anton Shterenlikht wrote:
> > On Sun, Dec 20, 2009 at 04:00:05PM +0100, Marius Strobl wrote:
> > > On Sat, Dec 19, 2009 at 09:48:03PM +, Anton Shterenlikht wrote:
> > > > 
> > > > I've built X without hal, but get this error on X -configure:
> > > > 
> > > 
> > > Actually when running `X -configure` or when trying to use the
> > > resulting /root/xorg.conf.new? This looks more like an error in
> > > the configuration file and the results returned by google for
> > > this failure message suggest that this can be due to the server
> > > not being able to load a configured module. Anyway, I'd try
> > > to use the resulting xorg.conf.new and if that fails manually
> > > checking its contents and removing unnecessary and unavailable
> > > stuff like DRI for example.
> > 
> > yes, on 'X -configure'. Removing modules doesn't help.
> > 
> > and then on 'X -config ./xorg.conf.new':
> > 
> 
> Could you please make that xorg.conf.new available somewhere?

http://seis.bris.ac.uk/~mexas/freebsd/xorg.conf.new

thanks a lot

-- 
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 gfortran in FreeBSD 7.2 Release (i386)?

2009-12-22 Thread Anton Shterenlikht
On Tue, Dec 22, 2009 at 12:31:13AM +0100, Erik Trulsson wrote:
> On Mon, Dec 21, 2009 at 01:14:22PM -0800, Jeff Hamann wrote:
> > I've been trying to figure out where gfortran went since it doesn't appear 
> > in the /usr/ports collection in FreeBSD 7.2 (i386).
> > 
> > I need it to build plots of numerical "things" and use the following lots:
> > 
> > ./configure \
> >  CC="gcc -arch i386" \
> >  CXX="g++ -arch i386" \
> >  OBJC="gcc -arch i386" \
> >  F77="gfortran -arch i386" \
> >  FC="gfortran -arch i386" \
> >  --with-python \
> >  --with-openssl 
> > 
> > My web searches turn up lots of on-responses (i.e. you shouldn't be using 
> > fortran anway's it's dead...), and I seem to have gcc42 installed.
> > 
> > $ gcc -v
> > Using built-in specs.
> > Target: i386-undermydesk-freebsd
> > Configured with: FreeBSD/i386 system compiler
> > Thread model: posix
> > gcc version 4.2.1 20070719  [FreeBSD]
> > $ 
> > 
> > A little help please?
> 
> Install the lang/gcc44 port which includes Fortran support. The Fortran
> compiler will be installed as gfortran44.

there's no fortran compiler in base since 7 branch (I think).
You need to get one from ports. The default now is gcc44,
but if you want you can try gcc45 or 43.
gcc44 is best, if it builds for you, because most fortran-dependent
ports will want gfortran44.

An alternative is lang/g95.

-- 
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: editing a binary file

2009-12-22 Thread Anton Shterenlikht
well, one of my colleagues pointed out a feature of fortran 2003,
which I, being an idiot, have missed. YOu have access='stream'
in f2003, which is all I need. No record separators, just data.

many thanks for all your help and advice.

anton


-- 
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: Signal over range, WAS: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-22 Thread Anton Shterenlikht
On Sun, Dec 20, 2009 at 11:20:12PM +0100, Marius Strobl wrote:
> On Sun, Dec 20, 2009 at 10:10:10PM +0000, Anton Shterenlikht wrote:
> > On Sun, Dec 20, 2009 at 04:00:05PM +0100, Marius Strobl wrote:
> > > On Sat, Dec 19, 2009 at 09:48:03PM +, Anton Shterenlikht wrote:
> > > > 
> > > > I've built X without hal, but get this error on X -configure:
> > > > 
> > > 
> > > Actually when running `X -configure` or when trying to use the
> > > resulting /root/xorg.conf.new? This looks more like an error in
> > > the configuration file and the results returned by google for
> > > this failure message suggest that this can be due to the server
> > > not being able to load a configured module. Anyway, I'd try
> > > to use the resulting xorg.conf.new and if that fails manually
> > > checking its contents and removing unnecessary and unavailable
> > > stuff like DRI for example.
> > 
> > yes, on 'X -configure'. Removing modules doesn't help.
> > 
> > and then on 'X -config ./xorg.conf.new':
> > 
> 
> Could you please make that xorg.conf.new available somewhere?

ok, I moved a step further. 'X -configure' is now successful.
All I had to do is to move the graphics card to another pci
slot. Perhaps where xvr600 was, is not a standard pci slot
at all? pgx64 worked fine there in the text mode, but not
in the graphics mode.

So now I'm stopped with "Signal over range" message reported
by the monitor firmware (?).

The card seems to be detected, the scan frequencies I put
are from the manufacturer's specs, but still something is wrong.

I put conf and log files here:

http://seis.bris.ac.uk/~mexas/freebsd/xorg.conf.new
http://seis.bris.ac.uk/~mexas/freebsd/Xorg.0.log

I also get this on the console:

(++) Using config file: "./xorg.conf.new"
failed to unset mtrr: Operation not supported by device
failed to unset mtrr: Operation not supported by device
^Cfailed to unset mtrr: Operation not supported by device
failed to unset mtrr: Operation not supported by device
#

not sure if this matters..

Please advise

many thanks all your help and support

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


anybody uses Netgear WG311T PCI wireless card? any issues?

2009-12-22 Thread Anton Shterenlikht
It's quite confusing trying to figure out
which card is which. ath(4) only gives
chipsets as AR5210, AR5211, AR5212 and AR5416.
But the manufacturers rarely say which chipsets
their cards are using. After some search I can
see that Netgear WG311T is ar5212, so should be
supported. But, just to double check, is anybody
using this card? Any issues?

many thanks
anton 

-- 
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: Signal over range, WAS: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-22 Thread Anton Shterenlikht
On Tue, Dec 22, 2009 at 11:12:35AM -0700, Warren Block wrote:
> On Tue, 22 Dec 2009, Anton Shterenlikht wrote:
> > ok, I moved a step further. 'X -configure' is now successful.
> > All I had to do is to move the graphics card to another pci
> > slot. Perhaps where xvr600 was, is not a standard pci slot
> > at all? pgx64 worked fine there in the text mode, but not
> > in the graphics mode.
> >
> > So now I'm stopped with "Signal over range" message reported
> > by the monitor firmware (?).
> >
> > The card seems to be detected, the scan frequencies I put
> > are from the manufacturer's specs, but still something is wrong.
> >
> > I put conf and log files here:
> >
> > http://seis.bris.ac.uk/~mexas/freebsd/xorg.conf.new
> > http://seis.bris.ac.uk/~mexas/freebsd/Xorg.0.log
> 
> Manually setting a single mode is probably the easiest:
> 
> Section "Screen"
>   Identifier "Screen0"
>   Device "Card0"
>   Monitor"Monitor0"
>   DefaultDepth 24
>   SubSection "Display"
>   Viewport   0 0
>   Depth 24
>   Modes "1280x1024"
>   EndSubSection
> EndSection
> 
> That might be enough, or you might have to go to 1024x768.  You could 
> limit the entries in the Monitor section to trick the card into picking 
> a single reasonable mode, like VertRefresh 70, or HorizSync 30-50. 
> (Assuming this is a CRT.  If it's an LCD, use VertRefresh 60.)

Warren, thank you, but this doesn't help. I've added:

Section "Monitor"
Identifier   "Monitor0"
HorizSync   30-50
VertRefresh 60
EndSection

Section "Device"
Identifier  "Card0"
Driver  "mach64"
BusID   "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
DefaultDepth24
SubSection "Display"
Viewport   0 0
Depth 24
Modes   "1280x1024"
EndSubSection
EndSection

This is an LCD monitor, and the manuf. specs state
max res 1280x1024
horizontal: 30-80
vertical: 50-75

I tried modes down to 800x600 - no change.

I noticed also this error: 

(EE) [drm] drmOpen failed.
(EE) MACH64(0): [dri] DRIScreenInit Failed

should I add device drm to the kernel?
Just to remind, this is sparc64.

> Incidentally, Radeon 7000 cards are available in standard PCI for $20 or 
> so.  Not a great card, but quite an upgrade over a Mach64, and supported 
> by a current driver.

wow.. you mean on sparc64? I didn't know.
If it'll work on sparc, this would be great. There
are many more radeon 7000 on offer than pgx64.

many thanks as always

anton


-- 
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: Signal over range, WAS: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-22 Thread Anton Shterenlikht
On Tue, Dec 22, 2009 at 12:26:03PM -0700, Warren Block wrote:
> On Tue, 22 Dec 2009, Anton Shterenlikht wrote:
> > Warren, thank you, but this doesn't help. I've added:
> >
> > Section "Monitor"
> > Identifier   "Monitor0"
> > HorizSync   30-50
> > VertRefresh 60
> > EndSection
> >
> > Section "Device"
> > Identifier  "Card0"
> > Driver  "mach64"
> > BusID   "PCI:0:2:0"
> > EndSection
> 
> Hmm.  Some web searching says non-Intel platforms might need a different 
> reference clock:
> 
> http://www.gentoo.org/doc/en/gentoo-sparc-faq.xml#doc_chap4_sect1

yes, now you told me I see it's actually in the logs:

(--) MACH64(0): Reference clock 157.5/11 (14.318) MHz.
(II) MACH64(0): If modes do not work on Ultra 5/10 or Blade 100/150,
set option "reference_clock" to "28.636 MHz" or "29.5 MHz"

by using either 28.636 or 29.5 I now get no "signal over range".
In fact I just get a black screen. Not sure if this is worse or better...

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"


SOLVED: Re: Signal over range, WAS: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-22 Thread Anton Shterenlikht
On Tue, Dec 22, 2009 at 12:26:03PM -0700, Warren Block wrote:
> On Tue, 22 Dec 2009, Anton Shterenlikht wrote:
> > Warren, thank you, but this doesn't help. I've added:
> >
> > Section "Monitor"
> > Identifier   "Monitor0"
> > HorizSync   30-50
> > VertRefresh 60
> > EndSection
> >
> > Section "Device"
> > Identifier  "Card0"
> > Driver  "mach64"
> > BusID   "PCI:0:2:0"
> > EndSection
> 
> Hmm.  Some web searching says non-Intel platforms might need a different 
> reference clock:
> 
> http://www.gentoo.org/doc/en/gentoo-sparc-faq.xml#doc_chap4_sect1

out of desperation was re-reading the manual and saw this:

Starting with Xorg 7.4 and above, this test produces
a black screen which may make it difficult to diagnose
whether X11 is working properly. The older behavior
is still available by using the retro option:

    # Xorg -config xorg.conf.new -retro

so, yes, I got the grey screen and a cross, and the mouse
seems to be working.

Warren, many thanks for your help!

-- 
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: Signal over range, WAS: X -configure fails: Number of created screens does not match number of detected devices. Configuration failed.

2009-12-22 Thread Anton Shterenlikht
On Tue, Dec 22, 2009 at 09:29:54PM +0100, Marius Strobl wrote:
> On Tue, Dec 22, 2009 at 08:12:14PM +0000, Anton Shterenlikht wrote:
> > On Tue, Dec 22, 2009 at 12:26:03PM -0700, Warren Block wrote:
> > > On Tue, 22 Dec 2009, Anton Shterenlikht wrote:
> > > > Warren, thank you, but this doesn't help. I've added:
> > > >
> > > > Section "Monitor"
> > > > Identifier   "Monitor0"
> > > > HorizSync   30-50
> > > > VertRefresh 60
> > > > EndSection
> > > >
> > > > Section "Device"
> > > > Identifier  "Card0"
> > > > Driver  "mach64"
> > > > BusID   "PCI:0:2:0"
> > > > EndSection
> > > 
> > > Hmm.  Some web searching says non-Intel platforms might need a different 
> > > reference clock:
> > > 
> > > http://www.gentoo.org/doc/en/gentoo-sparc-faq.xml#doc_chap4_sect1
> > 
> > yes, now you told me I see it's actually in the logs:
> > 
> > (--) MACH64(0): Reference clock 157.5/11 (14.318) MHz.
> > (II) MACH64(0): If modes do not work on Ultra 5/10 or Blade 100/150,
> > set option "reference_clock" to "28.636 MHz" or "29.5 MHz"
> > 
> > by using either 28.636 or 29.5 I now get no "signal over range".
> 
> The right value for a Rage XL is 29.5 MHz.

Marius, thank you, I figured it out already.
Here's the winning xorg.conf: http://seis.bris.ac.uk/~mexas/freebsd/xorg.conf
in case somebody else might be using this hardware.

Also, could you comment on Warren's suggestion of Radeon 7000?
Do you think it might work on blade 1500?

many thanks as always

anton

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


freebsd for children

2009-12-25 Thread Anton Shterenlikht
Can somebody recommend a graphical port which could be used
to teach kids 6-8 years programming? I know it's a very
vague question, but what I have in mind (possibly) is
say an interpreter linked with some graphical enviroment,
perhaps drawing with commands, or making animations,
or maybe music?

Something that would make kids or that age curious,
some programming environment that they can easily
understand and enjoy. A programming game of sorts?

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"


Re: freebsd for children

2009-12-25 Thread Anton Shterenlikht
On Fri, Dec 25, 2009 at 08:18:44AM -0500, b. f. wrote:
> Anton Shterenlikht wrote:
> >Can somebody recommend a graphical port which could be used
> >to teach kids 6-8 years programming? I know it's a very
> >vague question, but what I have in mind (possibly) is
> >say an interpreter linked with some graphical enviroment,
> >perhaps drawing with commands, or making animations,
> >or maybe music?
> 
> >Something that would make kids or that age curious,
> >some programming environment that they can easily
> >understand and enjoy. A programming game of sorts?
> 
> 
> I don't know if all of these are available on FreeBSD, but you may
> find this interesting:
> 
> http://www.marshallbrain.com/kids-programming.htm

thanks, that's interesting

> 
> Is this aimed at getting your 7-year-old to maintain your FreeBSD
> systems for you? ;)
> 

eventually.. in the short term it's about joy of programming

by the way, many thanks for svn, I'll install it on
my other machines. YOu were right about the revision,
I got the i386 rebuilt now.

see you
anton

-- 
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: freebsd for children

2009-12-25 Thread Anton Shterenlikht
On Fri, Dec 25, 2009 at 04:56:21PM +0100, Uwe Laverenz wrote:
> Anton Shterenlikht schrieb:
> 
> > Can somebody recommend a graphical port which could be used
> > to teach kids 6-8 years programming? I know it's a very
> > vague question, but what I have in mind (possibly) is
> > say an interpreter linked with some graphical enviroment,
> > perhaps drawing with commands, or making animations,
> > or maybe music?
> 
> I never tested it myself but I heard/read about it:
> 
> http://www.squeak.org/
> 
> It's in the ports: lang/squeak (i386 only)

I use sparc.

thank you anyway

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


example c program that does "beep"

2009-12-25 Thread Anton Shterenlikht
How can I get a beep from c?
I looked at curses and syscons.c, but
still not clear.
Could somebody send me an example.
I'd be soo grateful.

many thanks
anton

-- 
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: example c program that does "beep"

2009-12-26 Thread Anton Shterenlikht
On Fri, Dec 25, 2009 at 08:49:14PM +0100, Polytropon wrote:
> On Fri, 25 Dec 2009 18:58:26 +0000, Anton Shterenlikht  
> wrote:
> > How can I get a beep from c?
> > I looked at curses and syscons.c, but
> > still not clear.
> 
> If you want to use NCURSES / CURSES, it's a bit complicated.
> 
> Otherwise, just output %c (the character) 0x07, BEL, which
> generates an audible bell, or beep.
> 
> 
> *** text/plain attachement has been stripped *** RETRY ***
> 
> /* beepflash.c
>  * ---
>  * cc -Wall -lcurses -o beepflash beepflash.c
>  *
>  */
> 
> #include 
> #include 
> 
> int main(int argc, char *argv[])
> {
>   initscr();
>   cbreak();
>   noecho();
>   nonl();
>   intrflush(stdscr, FALSE);
>   keypad(stdscr, TRUE);
>   start_color();
> 
>   printf("beep: %d\n", beep());
>   fflush(stdout);
> 
>   printf("flash: %d\n", flash());
>   fflush(stdout);
> 
>   return 0;
> }

Instead of a beep and a flash I get:

beep: 0./beepflash
   flash: 0
   HAMOR>

on the console.

Hamor> is a tcsh prompt.

Maybe something is wrong with my installation?
Or maybe I'm too stupid and missed something
obvious?

thank you

-- 
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: example c program that does "beep"

2009-12-26 Thread Anton Shterenlikht
On Fri, Dec 25, 2009 at 02:02:19PM -0500, Joe Marcus Clarke wrote:
> On Fri, 2009-12-25 at 18:58 +0000, Anton Shterenlikht wrote:
> > How can I get a beep from c?
> > I looked at curses and syscons.c, but
> > still not clear.
> > Could somebody send me an example.
> > I'd be soo grateful.
> 
> #include 
> 
> int
> main(int argc, char **argv) {
> printf("%c", 7);
> return(0);
> }

Doesn't seem to do anything. Maybe 
there's something wrong with my sound?
But mp3 player seems to come out ok.
Or maybe I missed something obvious..

thanks a lot
anton

-- 
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: example c program that does "beep"

2009-12-26 Thread Anton Shterenlikht
On Sat, Dec 26, 2009 at 11:50:06AM -0500, Thomas Dickey wrote:
> 
> instead of the printf/fflush, it would clear the screen and beep - if the
> terminal description says it can do the beep.

I have 

> echo $TERM
xterm
>

xterm can do beep, can't it?

But I can't get it to beep on anything.
I probably don't get some basic idea..

many thanks
anton


-- 
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: example c program that does "beep"

2009-12-26 Thread Anton Shterenlikht
On Sat, Dec 26, 2009 at 08:08:52PM +0100, Polytropon wrote:
> On Sat, 26 Dec 2009 17:16:23 +0000, Anton Shterenlikht  
> wrote:
> > On Sat, Dec 26, 2009 at 11:50:06AM -0500, Thomas Dickey wrote:
> > > 
> > > instead of the printf/fflush, it would clear the screen and beep - if the
> > > terminal description says it can do the beep.
> 
> The exanple I posted displays the return code of the functions,
> which is of (int) type. Of course, the common way to use them
> is to just call beep(); and it should beep if the terminal can
> do it.
> 
> 
> 
> > I have 
> > 
> > > echo $TERM
> > xterm
> > >
> > 
> > xterm can do beep, can't it?
> 
> It can. I've just checked from within the xterm terminal
> emulator. Are you possibly using Konsole or the Gnome
> terminal program, or rxvt? In fact, it shouldn't matter.

it's on a text terminal, without X

looks like it's sparc issue, I do get beeps with this
code on ia386.

many thanks
anton

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


TP-LINK wireless pci - ath(4) driver - Atheros chipsets => WAS: [mary...@tp-link.com: RE:]

2009-12-27 Thread Anton Shterenlikht
Below is the reply I received from TP-LINK about
chipsets in some of their pci wireless adapters.
This might be of interest to somebody who is buying
a pci wireless. My interest in Tp-link is because
there are hundreds of cards on sale at ebay.co.uk
at the moment.

However, I'm more confused by the reply than clarified. ath(4) man
page list these 4 chipsets as supported:
 Atheros AR5210, AR5211, AR5212, and AR5416

Only 5416 appears in the manuf. reply, and even that
is in a combination with another ath chip.
More specifically, can somebody comment whether
  
TL-WR851N: AR5416+AR2122
TL-WN651G/ TL-WN650G: AR2414
TL-WN350G: Atheros AR2417

will be supported by ath(4) driver, please.

In case it matters it will have to be run on sparc64.

many thanks
anton

- Forwarded message from "mary.li"  -

Dear Anton,
 
Thank you very much for your email requesting information about our product.

The chipsets of the adapters you mentioned are as below:
TL-WR851N: AR5416+AR2122
TL-WN651G/ TL-WN650G: AR2414
TL-WN353G: Realtek RTL8185L
TL-WN350G: Atheros AR2417

Hope the information will help you.

Any further help please feel free to let me know.
To get technical support quicker,please go to
http://www.tp-link.com/support/faq.asp
Best Regards
---
Mary.Li
Technical Support Engineer
TP-LINK TECHNOLOGIES CO.,LTD.
tel:+1 866 225-8139
 +86 755-2650-4400
E-mail:mary...@tp-link.com
Website:http://www.tp-link.com/support/Support.asp

-Original Message-----
From: Anton Shterenlikht [mailto:me...@bristol.ac.uk] 
Sent: Sunday, December 27, 2009 3:45 AM
To: support...@tp-link.com
Subject: 

Dear Sir/Madam

I'm looking to buy a TP-LINK PCI wireless adapter.
However, it must not be based on Atheros AR5005VL chipset.
I need to use the adapter with FreeBSD operating system,
which does not support Atheros AR5005VL chipset. 

Could you please confirm whether TP-LINK PCI adapters
use Atheros AR5005VL chipset. In particular I'm interested in

TL-WN851G
TL-WN651G
TL-WN650G
TL-WN353G
TL-WN350G

Which Atheros chipsets, if any, do these adapters use?

many thanks
anton

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


- End forwarded message -

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


fetchmail and plain text password

2009-12-28 Thread Anton Shterenlikht
I use fetchmail
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html
to download all my mail from the Uni mail
server to my fbsd box.

I typically run it in daemon mode, which requires
having my mail server password in plain text in .fetchmailrc

I'm a little worried about the security of having
my password in plain text on the system.

Is there a more secure arrangement that would
still allow running fetchmail in daemon mode?

Or maybe there is another software solution
alltogether?

many thanks
anton


-- 
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: fetchmail and plain text password

2009-12-29 Thread Anton Shterenlikht
On Mon, Dec 28, 2009 at 06:35:15PM +0100, Roland Smith wrote:
> On Mon, Dec 28, 2009 at 03:15:53PM +0000, Anton Shterenlikht wrote:
> > I use fetchmail
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.html
> > to download all my mail from the Uni mail
> > server to my fbsd box.
> > 
> > I typically run it in daemon mode, which requires
> > having my mail server password in plain text in .fetchmailrc
> > 
> > I'm a little worried about the security of having
> > my password in plain text on the system.
> 
> chown you:yourgroup ~/.fetchmailrc
> chmod 400 ~/.fetchmailrc
> 
> With these changes, only you and the superuser can read that file. 

yes, an attacker gaining superuser access is my worry.
I'm reading Garfinkel and Spafford (1996) Practical UNIX & internel security
(a bit out of date, I know. I ordered the 3rd edition, 2003),
and I realised there are a lot of potential security issues, of which
I wasn't aware. Things like SUID/SGID files could be an issue,
and lots of other things.

> > Is there a more secure arrangement that would
> > still allow running fetchmail in daemon mode?
> 
> I'd be more worried that your password is sent as plaintext over the network
> using e.g. POP3. You should use the --ssl option if your mailserver allows it.

it looks like it doesn't allow ssl.

> > Or maybe there is another software solution
> > alltogether?
> 
> Presumably you are running a mailserver on your box. You can ask the
> administrator to forward mail to your machine by making an MX record for it.

not sure I understand you here. I run sendmail daemon just for sending mail
out of the box, and delivery of internal mail inside the box. Sendmail
doesn't listen for any incoming connections.
Could you please elaborate, or give a link.

many thanks
anton


-- 
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: fetchmail and plain text password

2009-12-29 Thread Anton Shterenlikht
On Tue, Dec 29, 2009 at 02:22:09PM +0100, Roland Smith wrote:
> > U.S. oriented to the home user - rarely do,  It's a non-trivial
> > amount of work to get working and then monitor for correct behavior
> > and possible breaches.
> 
> Agreed. Which is exactly why I like xs4all so much. :-) They do provide these
> kinds of services.
> 
> But I would expect a university network (which I understand what the OP is
> talking about) to offer something more sophisticated than plain POP3. I would
> expect at least bSMTP. Bristol seems to have a computer science
> department. That's at least a pool of warm bodies to train as sysadmins. :-P

it doesn't work like that..

I think it's an imap server.

Anyway, I'm trying to get in touch with them.
One of the problems is that the Uni are trying to
implement a system where mail is never downloaded from the
main mail servers at all. At least this is what I gather.
So when users launch their mulberry (a typical Uni mail
client) they connect to the mail servers, read and reply
and whatever, but the data is just viewed on PCs and not
stored there. I might be wrong, but that's my understanding.
So programs like fetchmail that actually connect to their
imap server and download mail to local boxes are probably
not very welcome.

many thanks
anton


-- 
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: fetchmail and plain text password

2009-12-29 Thread Anton Shterenlikht
On Tue, Dec 29, 2009 at 02:22:09PM +0100, Roland Smith wrote:
> On Tue, Dec 29, 2009 at 08:03:53AM -0500, Robert Huff wrote:
> > 
> > Anton Shterenlikht writes:
> > >  > I'd be more worried that your password is sent as plaintext over 
> > >  > the network using e.g. POP3. You should use the --ssl option if
> > >  > your mailserver allows it. 
> > >  
> > >  it looks like it doesn't allow ssl.
> > 
> > It is my understanding ISPs - at least those in the
> > U.S. oriented to the home user - rarely do,  It's a non-trivial
> > amount of work to get working and then monitor for correct behavior
> > and possible breaches.
> 
> Agreed. Which is exactly why I like xs4all so much. :-) They do provide these
> kinds of services.
> 
> But I would expect a university network (which I understand what the OP is
> talking about) to offer something more sophisticated than plain POP3. I would

it's IMAP-4 server, whatever that means..

-- 
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: fetchmail and plain text password

2009-12-29 Thread Anton Shterenlikht
On Tue, Dec 29, 2009 at 04:53:24PM +, RW wrote:
> On Tue, 29 Dec 2009 13:44:21 +
> Anton Shterenlikht  wrote:
> > I might be wrong, but that's my understanding.
> > So programs like fetchmail that actually connect to their
> > imap server and download mail to local boxes are probably
> > not very welcome.
> 
> You probably are wrong, it's more a case of your not using it's full
> potential. I'm not really sure why you are doing it this way, I do
> something simailar, but only because I'm interested in spam-filtering.
> 
> Why not just point your preferred mail client at the imap server?
> That way you can access your mail from anywhere (probably via
> webmail too)  Some imap clients, such as thunderbird and kmail, will
> let you store your server passworks encrypted to a master-password, so
> even root can't read them.  The IMAP server is probably more reliable
> too.

Are you saying I can make mutt read mail directly from the imap
server? Without fetchmail?

> If you want a local copy, or use a client with poor imap support, then
> offlineimap is pretty good.
> 
> 
> BTW personally I use  getmail instead of fetchmail, I've not used
> fetchmail much, but I've read a lot of bad things about it - some of
> which are mentioned here: 
> 
> http://pyropus.ca/software/getmail/faq.html#faq-about-why

interesting..

none of this is mentioned in the handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail-fetchmail.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: fetchmail and plain text password

2009-12-30 Thread Anton Shterenlikht
On Wed, Dec 30, 2009 at 02:16:51PM +0600, Victor Sudakov wrote:
> Anton Shterenlikht wrote:
> > Are you saying I can make mutt read mail directly from the imap
> > server? Without fetchmail?
> 
> Certainly. mutt is a very good IMAP client, you can do some tricky
> things with it like 
> 
> mutt -f imaps://y...@yourserver.edu/~otheruser/somefolder/somemailbox

wow! that's so easy, why didn't I find this before..

thanks a lot for this hint!

Is it possible to run it as a daemon, so that I don't have to
enter password each time?

many thanks
anton

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


does toor have passwd or not? According to logins -p: yes

2009-12-30 Thread Anton Shterenlikht
I was checking for passwordless accounts with 'logins -p'.
None was found. However, I understand toor doesn't have
passwd by default, and I never touched it, so I expected
logins -p to show toor, but it didn't.

Just to check I also tried to su toor with root passwd - no access. 

Please can somebody clarify if toor does indeed have
passwd.

many thanks
anton


-- 
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: does toor have passwd or not? According to logins -p: yes

2009-12-31 Thread Anton Shterenlikht
On Wed, Dec 30, 2009 at 02:11:13PM +0100, Erik Trulsson wrote:
> On Wed, Dec 30, 2009 at 12:33:41PM +0000, Anton Shterenlikht wrote:
> > I was checking for passwordless accounts with 'logins -p'.
> > None was found. However, I understand toor doesn't have
> > passwd by default, and I never touched it, so I expected
> > logins -p to show toor, but it didn't.
> > 
> > Just to check I also tried to su toor with root passwd - no access. 
> > 
> > Please can somebody clarify if toor does indeed have
> > passwd.
> 
> toor, like many other system accounts, by default has its password entry set
> to '*' which indicates that password authenictation is disabled for that
> account.  (See the passwd(5) manpage for details.)
> This means that unless you set a password for toor you cannot login as toor,
> so the mere presence of that account is not a security problem.

my mistake was due to looking at passwd(1) instead of passwd(5).

many thanks
anton

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

2010-01-04 Thread Anton Shterenlikht
On Sat, Jan 02, 2010 at 04:58:53PM -0600, ajtiM wrote:
> Hi!
> 
> My system: FreeBSD 8.0,
> 
> I like to install Miro from ports. FreeBSD has as defaulft gcc 4.2.1 and Miro 
> need a gcc 4.3. If I updated gcc to 4.3 should I expected some problems, 
> please?

in a word - no.
You shouldn't expect any problems.
You will have 2 different compilers installed in different
directories and called different names, e.g. on my system:

HAMOR> gcc44 --version
gcc44 (GCC) 4.4.3 20091222 (prerelease)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

HAMOR> cc --version
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

HAMOR>

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


denying spam hosts ssh access - good idea?

2010-01-11 Thread Anton Shterenlikht
I'm thinking of denying ssh access to host from which
I get brute force ssh attacks.

HOwever, I see in /etc/hosts.allow:

# Wrapping sshd(8) is not normally a good idea, but if you
# need to do it, here's how
#sshd : .evil.cracker.example.com : deny

Why is it not a good idea?

Also, apparently in older ssh there was DenyHosts option,
but no longer in the current version.
Is there a replacement for DenyHOsts?
Or is there a good reason for such option not to be used?

many thanks
anton


-- 
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: denying spam hosts ssh access - good idea?

2010-01-11 Thread Anton Shterenlikht
On Mon, Jan 11, 2010 at 07:18:04AM -0700, Tim Judd wrote:
> On 1/11/10, David Southwell  wrote:
> >> I'm thinking of denying ssh access to host from which
> >> I get brute force ssh attacks.
> >>
> >> HOwever, I see in /etc/hosts.allow:
> >>
> >> # Wrapping sshd(8) is not normally a good idea, but if you
> >> # need to do it, here's how
> >> #sshd : .evil.cracker.example.com : deny
> >>
> >> Why is it not a good idea?
> >>
> >> Also, apparently in older ssh there was DenyHosts option,
> >> but no longer in the current version.
> >> Is there a replacement for DenyHOsts?
> >> Or is there a good reason for such option not to be used?
> >>
> >> many thanks
> >> anton
> >>
> > I use denyhosts ( /usr/ports/security/denyhosts ) works well for me. I also
> > use blackhole and sshguard
> >
> > david
> 
> 
> I've been meaning to check this out.  My firewall ssh rules are very
> strict, in fact, if the remote IP is "unknown" meaning, I don't know
> where the heck it's coming from, it's blocked.  It's easier to say it
> this way:  I allow ssh connections from IPs I know, preferably static
> IPs.
> 
> Given that there are more than one general blacklists out there that
> list unwanted behavior, and that we have ports that make use of these
> lists, I wonder if we can use a list (in this case, for spam)
> effective for blocking ssh connections.  This means:
>   install spamd
>   setup pf (requirement for spamd, it is built by OpenBSD after all)
>   in the pf rules, block *ANYTHING* coming from the blacklisted IPs
> 
> 
> I don't know how effective it is, but since the spamd blacklist IPs
> are hosted on what seems to be only one server/server farm, I am also
> looking for any way I can provide a mirror (even if it's slightly
> outdated) of this data.

I'm very grateful for all advice, but I'm still unsure
why denying ssh access to a particular host via /etc/hosts.allow
is a bad idea.

many thanks
anton

-- 
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: denying spam hosts ssh access - good idea?

2010-01-11 Thread Anton Shterenlikht
On Mon, Jan 11, 2010 at 03:25:04PM +, Matthew Seaman wrote:
> Anton Shterenlikht wrote:
> > I'm thinking of denying ssh access to host from which
> > I get brute force ssh attacks.
> > 
> > HOwever, I see in /etc/hosts.allow:
> > 
> > # Wrapping sshd(8) is not normally a good idea, but if you
> > # need to do it, here's how
> > #sshd : .evil.cracker.example.com : deny
> > 
> > Why is it not a good idea?
> 
> Probably because ssh is likely to be the only method of login access
> you have to a remote server, and hosts.allow could conceivably be spoofed
> into blocking your legitimate access?   In any case, hosts.allow is a poor 
> relation to using a real firewall -- it has no access to the lower level bits
> of the networking code, so has to allow a full tcp connection setup before it
> can block anything.  Some daemons allow quite a lot of interaction with the
> remote site when using hosts.allow functionality -- eg. sendmail will
> apparently go through all of the stages of accepting an incoming e-mail from
> a denied host, right up to the 'MAIL FROM...' section of the SMTP transaction
> where it will respond with a 500 permanent failure error code.  [admittedly 
> this does have the benefit that the other side will then immediately give up 
> trying to send the message if it's playing by the RFC rules. (Most spam-bots 
> don't, of course.)  Otherwise, you'ld get the remote side retrying the 
> message 
> several times an hour over the next 5 days before it timed out and gave up.
> 
> > Also, apparently in older ssh there was DenyHosts option,
> > but no longer in the current version.
> > Is there a replacement for DenyHOsts?
> > Or is there a good reason for such option not to be used?
> 
> I believe you can do something like this:
> 
> match address 192.168.23.0/24,172.16.0.0/16
>   ForceCommand /usr/sbin/nologin
> 
> but this is not foolproof, as it is run via the users' login shell
> and a sufficiently cunning person can arrange for all sorts of interesting
> things to happen from their shell initialization files...

Matthew, this makes sense

many thanks
anton

-- 
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: denying spam hosts ssh access - good idea?

2010-01-12 Thread Anton Shterenlikht
On Tue, Jan 12, 2010 at 10:42:06AM +0100, Erik Norgaard wrote:
> Anton Shterenlikht wrote:
> > I'm thinking of denying ssh access to host from which
> > I get brute force ssh attacks.
> 
> This is a returning topic, search the archives. Anyway, the returning 
> answer:
> 
> - why not let your firewall do the blocking? If your blocking is IP 
> based that's the place to block.

I'm already under the University firewall. Only port 22 is let through.
But even that filles my logs.

> - why do you default to allow? How about default block, and then add the 
> few good networks you know that actually need access? Restricting access 
> to your own continent is a good start. I made this tool to create lists 
> of ip ranges for individual countries:
> 
>http://www.locolomo.org/pub/src/toolbox/inet.pl
> 
> if you're in US then it may not work since some US companies have ranges 
> delegated directly by IANA rather than ARIN, but these are few so it's 
> easy to add ranges manually, check the list here:
> 
> http://www.iana.net/assignments/ipv4-address-space/ipv4-address-space.xml

thanks, will look at this

> - why allow password based authentication? disable password based 
> authentication and rely on keys, then you can ignore all the brute force 
> attempts.

I don't allow password based authentication.

> - above not a solution? See if you can tweak the sshd_config:
> 
>  MaxAuthTries
>  MaxStartups
> 
> can slow down brute force attacks preventing it from sucking up resources.

also a good idea, will look at this.

> Disable root login, restrict login to real users, if you have a group 
> "users" just restrict to that using AllowGroups.

yes, this is in place.

> - trying to block individual offending hosts is futile, the attacker 
> will usually try maybe a 1000 times, but the next one will likely come 
> from a different address.

I guess this answers my question most directly.

>From all the replies I got so far I gather that /etc/hosts.allow
exists a historical heritage and no real use is made of it
nowadays. Although some people appear to like it (e.g. Samuel Martín Moro).

many thanks for your help and support.
anton


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


top/ps: is Active Memory = sum(resident set size)?

2010-01-12 Thread Anton Shterenlikht
This has probably been discussed before, so apology for
asking the same question again.

Should the Active memory, as reported by top(1), be equal to the
sum of rss (the real memory (resident set) size of the process)
of all processes, as reported by ps(1)?
The sum of ps(1) rss fields is probably the same as
the sum of RES fields of top(1).

I seem to have much bigger Active set than the sum of
all resident (or real) memories used by all processes.

Please advise

many thanks
anton

-- 
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: denying spam hosts ssh access - good idea?

2010-01-13 Thread Anton Shterenlikht
On Tue, Jan 12, 2010 at 11:36:11PM +0100, Erik Norgaard wrote:
> Anton Shterenlikht wrote:
> 
> >> - why not let your firewall do the blocking? If your blocking is IP 
> >> based that's the place to block.
> > 
> > I'm already under the University firewall. Only port 22 is let through.
> > But even that filles my logs.
> 
> What I meant was that if you want to block IPs or ranges of IPs then a 
> firewall is the place to block, it's efficient and simple.
> 
> If your university firewall doesn't satisfy you there is nothing that 
> hinders you from configuring firewall rules on your server.

thank you, I get it now.

anton

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


ssh StrictHostKeyChecking=no refuse connection when key changed

2008-04-25 Thread Anton Shterenlikht
Is it normal that StrictHostKeyChecking=no in .ssh/config
still refuses ssh connection when host ID has changed.

I've a setup in which host ids change frequently. How
can I setup ssh so that it ignores key change.

% ssh -oPort=x xx.xx.xx.xx
@@@
@WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the DSA host key has just been changed.
The fingerprint for the DSA key sent by the remote host is
[skip]
Please contact your system administrator.
Add correct host key in /home/mexas/.ssh/known_hosts to get rid of this message.
Offending key in /home/mexas/.ssh/known_hosts:1
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle 
attacks.
Permission denied (publickey,password).
% 

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: ssh StrictHostKeyChecking=no refuse connection when key changed

2008-04-28 Thread Anton Shterenlikht
On Fri, Apr 25, 2008 at 09:37:13AM -0700, Chuck Swiger wrote:
> On Apr 25, 2008, at 9:09 AM, Anton Shterenlikht wrote:
> >Is it normal that StrictHostKeyChecking=no in .ssh/config
> >still refuses ssh connection when host ID has changed.
> >
> >I've a setup in which host ids change frequently. How
> >can I setup ssh so that it ignores key change.
> 
> You'd be better off fixing whatever it is that is making your host IDs  
> change, but I suppose you  could also try to create a zero-length  
> known_hosts file, and keep it that way via:
> 
>   chflags uchg ~/.ssh/known_hosts
> 
> You might also try to automate finding the current valid hostkeys via  
> ssh-keyscan.

Chuck, perhaps I should explain better what's going on.

I've a VMS cluster behind a FBSD frontend, acting as a router and
a firewall. (Don't ask why.. the Uni are not happy to connect VMS
to the local network directly. Just because they haven't been using
it for 10 year, they think it is not secure - what nonsence, but
nevermind.)

I access VMS cluster using ssh with port forwarding. In case a node
in my VMS cluster goes down, its IP is automatically given to another
alive VMS node - a VMS cluster feature. For example:

Imagine the VMS cluster consisting of 2 nodes - Node1 and Node2.
The IP are:

Node1 10.10.10.1 (failover to 10.10.10.2)
Node2 10.10.10.2 (failover to 10.10.10.1)

and in ipnat.rules:

rdr dc0 xx.xx.xx.xx port x -> 10.10.10.1 port 22

This works fine until Node1 is down, in which case the cluster
software directs all connections to 10.10.10.1 to Node2. Since
its key doesn't match what's in known_hosts, the connection is
refused.

At present I tune the VMS cluster and reboot individual nodes
frequently. I'd like to be able to tell ssh to ignore key mismatch
at this stage.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
Hi

What is /usr/local/bin/gsc ?

I run FreeBSD 6.3-STABLE #2 on compaq armada laptop.

When I send a job for printing I see gsc process running:

  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
[skip]
99954 daemon1 1170 27244K 19000K RUN  0:05 30.08% gsc

% which gsc
/usr/local/bin/gsc
%

However, I cannot find any info on gsc.
The latest I've found is from 5.2-release,
some gsc(4) -- a device driver for a handy scanner.
I doubt this is it.

Could somebody tell me what gsc is and what it does. 

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
On Mon, Jun 02, 2008 at 03:03:48PM +0400, Yuri Pankov wrote:
> Anton Shterenlikht wrote:
> >Hi
> >
> >What is /usr/local/bin/gsc ?
> >
> >I run FreeBSD 6.3-STABLE #2 on compaq armada laptop.
> >
> >When I send a job for printing I see gsc process running:
> >
> >  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
> >[skip]
> >99954 daemon1 1170 27244K 19000K RUN  0:05 30.08% gsc
> >
> >% which gsc
> >/usr/local/bin/gsc
> >%
> 
> First, check if there's manpage with description for gsc :-) You can 
> also check which package installed that file:
> pkg_info -W /usr/local/bin/gsc

thanks, I missed this switch, it's very useful.
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
On Mon, Jun 02, 2008 at 10:59:31PM +1200, Jonathan Chen wrote:
> On Mon, Jun 02, 2008 at 11:53:47AM +0100, Anton Shterenlikht wrote:
> > Hi
> > 
> > What is /usr/local/bin/gsc ?
> 
> If you have portupgrade, pkg_which(1) can tell you. gsc is actually
> "gs", which is ghostscript.

thanks
I use portmaster, so pkg_info -La > tmp; vi tmp (and seach for gsc) did this
for me.


-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


no GNU fortran in FBSD 7.0 base system?

2008-06-04 Thread Anton Shterenlikht
I just upgraded to FBSD 7.0 and tried to compile a test fortran
program with the GCC fortran compiler:

% gcc tmp.f90
gcc: tmp.f90: Fortran compiler not installed on this system
%

% gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
%

Do I understand correctly that with this FBSD release GCC 4.2.1 does
not include the fortran compiler?

Or has I missed some flag/setting during buildworld stage?

Sure, I can install ports/lang/gcc42, but I thought the fortran compiler
would be available in the base system.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


size of executable - g95 vs gfortran42 - shared libs?

2008-06-05 Thread Anton Shterenlikht
I use two different fortran90 compiler on a simple input file
and get executables which differ in size by almost 3 orders of
magnitude, see below. Is this something to do with the use
of shared libraries?

% gfortran42 tmp.f90
% ls -al a.out
-rwxr-xr-x  1   9179  5 Jun 14:15 a.out
% g95 tmp.f90
% ls -al a.out
-rwxr-xr-x  1 546413  5 Jun 14:15 a.out
%

The program results seem to be identical.

many thanks
anton

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


Re: size of executable - g95 vs gfortran42 - shared libs?

2008-06-05 Thread Anton Shterenlikht
On Thu, Jun 05, 2008 at 06:29:35AM -0700, Tobias Hoellrich wrote:
> > 
> > I use two different fortran90 compiler on a simple input file
> > and get executables which differ in size by almost 3 orders of
> > magnitude, see below. Is this something to do with the use
> > of shared libraries?
> 
> Run "file" and "ldd" on the executables to see the difference:
> 
> [EMAIL PROTECTED] ~]# file `which ls`
> /bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
> for FreeBSD 8.0 (800038), dynamically linked (uses shared libs),
> FreeBSD-style, stripped
> 
> [EMAIL PROTECTED] ~]# ldd `which ls`
> /bin/ls:
> libutil.so.7 => /lib/libutil.so.7 (0x28082000)
> libncurses.so.7 => /lib/libncurses.so.7 (0x2809)
> libc.so.7 => /lib/libc.so.7 (0x280cf000)
> [EMAIL PROTECTED] ~]#

Many thanks, the ldd resuts differ,
but how does this translate into size?

% ls -al *out
-rwxr-xr-x  1 mexas  wheel  546413  5 Jun 14:39 g95.out
-rwxr-xr-x  1 mexas  wheel9179  5 Jun 14:39 gf42.out

% file *out
g95.out:  ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
for FreeBSD 7.0 (700109), dynamically linked (uses shared libs),
FreeBSD-style, not stripped

gf42.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD),
for FreeBSD 7.0 (700109), dynamically linked (uses shared libs),
FreeBSD-style, not stripped

% ldd *.out
g95.out:
libm.so.5 => /lib/libm.so.5 (0x280c5000)
libc.so.7 => /lib/libc.so.7 (0x280db000)
gf42.out:
libgfortran.so.2 => /usr/local/lib/gcc-4.2.4/libgfortran.so.2 
(0x2807e000)
libm.so.5 => /lib/libm.so.5 (0x28103000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x28119000)
libc.so.7 => /lib/libc.so.7 (0x28124000)
% 

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
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 "[EMAIL PROTECTED]"


negative group permissions?

2012-02-24 Thread Anton Shterenlikht
Recently I started seeing this line
in daily security output:

  Checking negative group permissions:
  70834 -rw-rx  1 root  daemon  4 Feb 21 12:54:02 2012 
/var/spool/output/lpd/.seq

I've a parallel printer attached to
a 9.9-CURRENT #2 r230787M box.

What does it mean?
Should I be worried?

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: negative group permissions?

2012-02-24 Thread Anton Shterenlikht
On Fri, Feb 24, 2012 at 09:34:02AM +, Matthew Seaman wrote:
> On 24/02/2012 09:08, Anton Shterenlikht wrote:
> > Recently I started seeing this line
> > in daily security output:
> > 
> >   Checking negative group permissions:
> >   70834 -rw-rx  1 root  daemon  4 Feb 21 12:54:02 2012 
> > /var/spool/output/lpd/.seq
> > 
> > I've a parallel printer attached to
> > a 9.9-CURRENT #2 r230787M box.
> > 
> > What does it mean?
> 
> This means that non-root users in group daemon have only read
> permissions on that file.  Users that aren't root and that aren't in
> group daemon have execute permission only.
> 
> It does look a bit odd, and I believe that file would just contain a job
> number (IIRC -- haven't dealt much with lpd or lprng much recently)
> so executing it doesn't really achieve anything.
> 
> This is the standard idiom to allow access for 'everyone, except members
> of a particular group.'

yes, I get this.


> One way you can get weird permissions is if you happen to use decimal
> for permissions bitmaps rather than octal.  A umask of '77' is not the
> same thing at all as a umask of '077'.  (It's effectively 0115, which
> doesn't make much sense to me.)  Most shells nowadays will assume you
> mean octal whether you include the leading zero or not: the same is not
> true if you use umask(2) to set the mask programatically.  Ditto for
> other places you can set permissions like open(2) with O_CREAT or mkdir(2).

# umask
0022
# pwd
/var/spool/output/lpd
# ls -al
total 8
drwxr-xr-x  2 root  daemon  512 Feb 24 12:43 .
drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
-rw-rw-r--  1 root  daemon   41 Feb 21 12:54 lock
-rw-rw-r--  1 root  daemon   25 Feb 21 12:54 status
#

Then I print something:

% pwd | lpr

Then this .seq file appears with weird permissions:

# ls -al
total 10
drwxr-xr-x  2 root  daemon  512 Feb 24 12:46 .
drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
-rw-rx  1 root  daemon4 Feb 24 12:45 .seq
-rw-rw-r--  1 root  daemon   41 Feb 24 12:45 lock
-rw-rw-r--  1 root  daemon   25 Feb 24 12:45 status
# 

# cat .seq 
001
#

So presumably lpd(8) created this file, but I'm still
unsure why permissions are so strange. But interests
me more, is why I didn't see it until about 1-2 months
ago? Has something chaged in -current, e.g. in open(2)
like you suggest? Or has I messed up with my setup?
Or maybe it was always like this, but the security
check didn't pick it up?

> 
> > Should I be worried?
> 
> No more than a normal level of paranoia is indicated here.

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: negative group permissions?

2012-02-24 Thread Anton Shterenlikht
On Fri, Feb 24, 2012 at 02:41:44PM +0100, Trond Endrest?l wrote:
> On Fri, 24 Feb 2012 12:54-0000, Anton Shterenlikht wrote:
> 
> > On Fri, Feb 24, 2012 at 09:34:02AM +, Matthew Seaman wrote:
> > > On 24/02/2012 09:08, Anton Shterenlikht wrote:
> > > > Recently I started seeing this line
> > > > in daily security output:
> > > > 
> > > >   Checking negative group permissions:
> > > >   70834 -rw-rx  1 root  daemon  4 Feb 21 12:54:02 2012 
> > > > /var/spool/output/lpd/.seq
> > > > 
> > > > I've a parallel printer attached to
> > > > a 9.9-CURRENT #2 r230787M box.
> > > > 
> > > > What does it mean?
> > > 
> > > This means that non-root users in group daemon have only read
> > > permissions on that file.  Users that aren't root and that aren't in
> > > group daemon have execute permission only.
> > > 
> > > It does look a bit odd, and I believe that file would just contain a job
> > > number (IIRC -- haven't dealt much with lpd or lprng much recently)
> > > so executing it doesn't really achieve anything.
> > > 
> > > This is the standard idiom to allow access for 'everyone, except members
> > > of a particular group.'
> > 
> > yes, I get this.
> > 
> > 
> > > One way you can get weird permissions is if you happen to use decimal
> > > for permissions bitmaps rather than octal.  A umask of '77' is not the
> > > same thing at all as a umask of '077'.  (It's effectively 0115, which
> > > doesn't make much sense to me.)  Most shells nowadays will assume you
> > > mean octal whether you include the leading zero or not: the same is not
> > > true if you use umask(2) to set the mask programatically.  Ditto for
> > > other places you can set permissions like open(2) with O_CREAT or 
> > > mkdir(2).
> > 
> > # umask
> > 0022
> > # pwd
> > /var/spool/output/lpd
> > # ls -al
> > total 8
> > drwxr-xr-x  2 root  daemon  512 Feb 24 12:43 .
> > drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
> > -rw-rw-r--  1 root  daemon   41 Feb 21 12:54 lock
> > -rw-rw-r--  1 root  daemon   25 Feb 21 12:54 status
> > #
> > 
> > Then I print something:
> > 
> > % pwd | lpr
> > 
> > Then this .seq file appears with weird permissions:
> > 
> > # ls -al
> > total 10
> > drwxr-xr-x  2 root  daemon  512 Feb 24 12:46 .
> > drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
> > -rw-rx  1 root  daemon4 Feb 24 12:45 .seq
> > -rw-rw-r--  1 root  daemon   41 Feb 24 12:45 lock
> > -rw-rw-r--  1 root  daemon   25 Feb 24 12:45 status
> > # 
> > 
> > # cat .seq 
> > 001
> > #
> > 
> > So presumably lpd(8) created this file, but I'm still
> > unsure why permissions are so strange. But interests
> > me more, is why I didn't see it until about 1-2 months
> > ago? Has something chaged in -current, e.g. in open(2)
> > like you suggest? Or has I messed up with my setup?
> > Or maybe it was always like this, but the security
> > check didn't pick it up?
> > 
> > > 
> > > > Should I be worried?
> > > 
> > > No more than a normal level of paranoia is indicated here.
> 
> Looking at usr.sbin/lpr/lpr/lpr.c at around line 847 (RELENG_9):
> 
> (void) snprintf(buf, sizeof(buf), "%s/.seq", pp->spool_dir);
> seteuid(euid);
> if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) {
> printf("%s: cannot create %s\n", progname, buf);
> exit(1);
> }
> if (flock(fd, LOCK_EX)) {
> printf("%s: cannot lock %s\n", progname, buf);
> exit(1);
> }
> 
> It remains a mystery why these files are created with mode 0661. Mode 

Isn't .seq above has mode 641?

% chmod 641 z
% ls -al z
-rw-rx  1 mexas  wheel  0 Feb 24 13:59 z
%

-- 
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: negative group permissions?

2012-02-24 Thread Anton Shterenlikht
On Fri, Feb 24, 2012 at 03:25:52PM +0100, Trond Endrest?l wrote:
> On Fri, 24 Feb 2012 14:04-0000, Anton Shterenlikht wrote:
> 
> > On Fri, Feb 24, 2012 at 02:41:44PM +0100, Trond Endrest?l wrote:
> > > On Fri, 24 Feb 2012 12:54-0000, Anton Shterenlikht wrote:
> > > 
> > > > On Fri, Feb 24, 2012 at 09:34:02AM +, Matthew Seaman wrote:
> > > > > On 24/02/2012 09:08, Anton Shterenlikht wrote:
> > > > > > Recently I started seeing this line
> > > > > > in daily security output:
> > > > > > 
> > > > > >   Checking negative group permissions:
> > > > > >   70834 -rw-rx  1 root  daemon  4 Feb 21 12:54:02 2012 
> > > > > > /var/spool/output/lpd/.seq
> > > > > > 
> > > > > > I've a parallel printer attached to
> > > > > > a 9.9-CURRENT #2 r230787M box.
> > > > > > 
> > > > > > What does it mean?
> > > > > 
> > > > > This means that non-root users in group daemon have only read
> > > > > permissions on that file.  Users that aren't root and that aren't in
> > > > > group daemon have execute permission only.
> > > > > 
> > > > > It does look a bit odd, and I believe that file would just contain a 
> > > > > job
> > > > > number (IIRC -- haven't dealt much with lpd or lprng much recently)
> > > > > so executing it doesn't really achieve anything.
> > > > > 
> > > > > This is the standard idiom to allow access for 'everyone, except 
> > > > > members
> > > > > of a particular group.'
> > > > 
> > > > yes, I get this.
> > > > 
> > > > 
> > > > > One way you can get weird permissions is if you happen to use decimal
> > > > > for permissions bitmaps rather than octal.  A umask of '77' is not the
> > > > > same thing at all as a umask of '077'.  (It's effectively 0115, which
> > > > > doesn't make much sense to me.)  Most shells nowadays will assume you
> > > > > mean octal whether you include the leading zero or not: the same is 
> > > > > not
> > > > > true if you use umask(2) to set the mask programatically.  Ditto for
> > > > > other places you can set permissions like open(2) with O_CREAT or 
> > > > > mkdir(2).
> > > > 
> > > > # umask
> > > > 0022
> > > > # pwd
> > > > /var/spool/output/lpd
> > > > # ls -al
> > > > total 8
> > > > drwxr-xr-x  2 root  daemon  512 Feb 24 12:43 .
> > > > drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
> > > > -rw-rw-r--  1 root  daemon   41 Feb 21 12:54 lock
> > > > -rw-rw-r--  1 root  daemon   25 Feb 21 12:54 status
> > > > #
> > > > 
> > > > Then I print something:
> > > > 
> > > > % pwd | lpr
> > > > 
> > > > Then this .seq file appears with weird permissions:
> > > > 
> > > > # ls -al
> > > > total 10
> > > > drwxr-xr-x  2 root  daemon  512 Feb 24 12:46 .
> > > > drwxr-xr-x  3 root  daemon  512 Mar  9  2010 ..
> > > > -rw-rx  1 root  daemon4 Feb 24 12:45 .seq
> > > > -rw-rw-r--  1 root  daemon   41 Feb 24 12:45 lock
> > > > -rw-rw-r--  1 root  daemon   25 Feb 24 12:45 status
> > > > # 
> > > > 
> > > > # cat .seq 
> > > > 001
> > > > #
> > > > 
> > > > So presumably lpd(8) created this file, but I'm still
> > > > unsure why permissions are so strange. But interests
> > > > me more, is why I didn't see it until about 1-2 months
> > > > ago? Has something chaged in -current, e.g. in open(2)
> > > > like you suggest? Or has I messed up with my setup?
> > > > Or maybe it was always like this, but the security
> > > > check didn't pick it up?
> > > > 
> > > > > 
> > > > > > Should I be worried?
> > > > > 
> > > > > No more than a normal level of paranoia is indicated here.
> > > 
> > > Looking at usr.sbin/lpr/lpr/lpr.c at around line 847 (RELENG_9):
> > > 
> > > (void) snprintf(buf, sizeof(buf), "%s/.seq", pp->spool_dir);
> > > seteuid(euid);
> > >

posix compliance

2012-02-28 Thread Anton Shterenlikht
I'm putting together a small presentation
about FreeBSD for our IT support staff.

Is fbsd POSIX compliant? Fully? Partially?

The info here is a bit out of date:

http://www.freebsd.org/projects/c99/index.html

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"


  1   2   3   4   5   6   >