Re: sound settings

2013-09-20 Thread Martin Alejandro Paredes Sanchez
On Friday 20 September 2013 14:26:08 Ajtim wrote:
 Hi!
 My system is FreeBSD 10.0-ALPHA1 #0 r255501: Fri Sep 13 01:57:31 UTC 2013
 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64 installed on iMac
 11,1.
 It works very good but I don't know how to setup sound system.
 After start system:
 cat /dev/sndstat
 Installed devices:
 pcm0: ATI R6xx (HDMI) (play)
 pcm1: Cirrus Logic CS4206 (Internal Analog 4.0/2.0) (play/rec) default
 pcm2: Cirrus Logic CS4206 (Rear Analog) (play/rec)
 pcm3: Cirrus Logic CS4206 (Rear Digital) (play/rec)


You have 4 devices where the sound can go

which one has the speakers pluged in, you especify with (as root)

# sysctl hw.snd.default_unit=n

test sending a file to the sound system

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


[URL] Link bigdisk dead

2013-08-07 Thread Aurelien Martin
Hi, I crossed freebsd.org and I found a dead link

http://www.freebsd.org/fr/projects/bigdisk/index.html

Page not found.
Oh no. :(

Cheers,Aurelien

___
freebsd-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] Prevent starting network on fwe0 and fwip0

2013-07-20 Thread Martin Alejandro Paredes Sanchez
On Saturday 18 May 2013 16:57:31 Martin Alejandro Paredes Sanchez wrote:
 Hi:

 How can I prevent the start of network on fwe0 and fwip0?

 fwe0: Ethernet over FireWire
 fwip0: IP over FireWire

 I notice that the lines apear after DEVD is started

 Is there a trick for DEVD?


I created the /usr/local/etc/devd/firewire.conf file with

notify 0 {
match system  IFNET;
match subsystem   (fwe0|fwip0);
};

With this, FreeBSD do not start the network on fwe0 and fwip0

You won't see

Starting Network: fwe0
Starting Network: fwip0

But this drivers are loaded (fwe0 and fwip0), with ifconfig you can see the 
configuration of them

HTH
___
freebsd-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 9.1 fails to boot from CD on Notebook

2013-07-12 Thread Martin Siebel

Hey,

after failing to get FreeBSD working with my ASUS F70SL Notebook I tried 
to get it to work on [I][COLOR=Blue]Toshiba Tecra A10-M14[/COLOR][/I].


I downloaded the [FILE]FreeBSD-9.1-REALEASE-disc1.iso[/FILE] from the 
official FreeBSD homepage and burnt it with [I][COLOR=Blue]Ashampoo 
Burning Studio 2013[/COLOR][/I].


Now, if I select Boot from CD-ROM in my notebooks BIOS it detects the 
CD, starts to boot from, it but only for about 1 second. After this the 
screen blackens, the notebook reboots and boots normally from HDD (even 
tough I still have the CD inserted and the CD-ROM drive is still the 
first boot device).


This happens that fast I don't even have a chance to get a picture of 
the error that might occur.


Any ideas about BIOS settings I may change?

I burnt the CD twice by the way, with different burning software, to 
avoid damaged or incomplete disc.


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


FreeBSD on Asus F70SL

2013-07-10 Thread Martin Siebel

Hello!

I recently tried (and failed) installing FreeBSD-9.1-RELEASE on my Asus 
F70SL Notebook.
I already created a thread in the official FreeBSD boards but so far no 
one could help me out with my problem. Since I really want to use 
FreeBSD with my Notebook I am looking forward to get the neccessary 
information here.


The topic in the FreeBSD boards can be found here:

https://forums.freebsd.org/showthread.php?t=40724

Thanks in advance!

Sincerely,

Martin
___
freebsd-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: Possibly OT: NFS vs SMB performance

2013-07-06 Thread Martin Alejandro Paredes Sanchez
On Saturday 06 July 2013 01:55:31 Andrea Venturoli wrote:
 On 07/05/13 20:42, Terje Elde wrote:
  On 5. juli 2013, at 18:18, Andrea Venturoli m...@netfence.it wrote:
  Is this normal in your experience?
 
  Did you do them in that order, or did you do the smb (slow) one first?
 
  If the slow was first, I'm thinking caching on the server could be a
  major factor.

 Yesterday I did four test:
 _ SMB find resulting in over 10 minutes first time;
 _ SMB find resulting in nearly 10 minutes second time;
 _ NFS find resulting in a little over 1 minute first time;
 _ NFS find resulting in a little less than 1 minute second time.


 Today I tried again in reverse order:
 _ NFS find took 3 minutes;
 _ NFS find again took 21 seconds;
 _ SMB find took over 9 minutes;
 _ SMB find again took again over 9 minutes.

 So, while caching plays a role, it just isn't it.
 The server was possibly doing other things, so the above figures might
 not be that correct; however a difference in the magnitude order is just
 too big (and deterministic) to be considered random noise.


the problem may be high log level for Samba

You should read this

http://www.hob-techtalk.com/2009/03/09/nfs-vs-cifs-aka-smb
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Prevent starting network on fwe0 and fwip0

2013-05-18 Thread Martin Alejandro Paredes Sanchez
Hi:

How can I prevent the start of network on fwe0 and fwip0?

fwe0: Ethernet over FireWire
fwip0: IP over FireWire

In /etc/rc.conf I added this line

network_interfaces=lo0 fxp0 wpi0

But I still see that FreeBSD start fwe0 and fwip0

Starting Network: lo0 fxp0 wpi0
Starting Network: fwe0
Starting Network: fwip0

I also had networks on USB

Starting Network: usbus0
Starting Network: usbus1
Starting Network: usbus2
Starting Network: usbus3
Starting Network: usbus4

But I added

hw.usb.no_pf=1

To /boot/loader.conf file and FreeBSD didn't start the network in USB anymore

Is there something similar for FireWire?

I notice that the lines apear after DEVD is started

Is there a trick for DEVD?

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


Procmail Decoding Mime Messages

2013-04-24 Thread Martin McCormick
Is there a filter that one can run in procmail in which
base64 encoded data go in and text comes out so one can allow
procmailrc to do its work?

I use bogofilter to filter spam and it does a very good
job after one builds a core of spammishness, but legitimate
messages are often-times filled with base64 sections that look
like garbage to the regular expressions that one puts in
.procmailrc for sorting mail.

When searching for information, I found something called
mimencode which both encodes and decodes these attachments, but
there is no FreeBSD port called mimencode so it occurred to me
that some other application might exist which is in the ports
that does basically the same thing.

Is there anything which will take a raw email message
and spit out linear strings which can be processed like normal
text?

Thank you.

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


Revisiting Traceroute Through ipfw FreeBSD9.x

2013-03-07 Thread Martin McCormick
I immediately found several plausible examples of what to put in
the firewall rules file and the following rules were set just
after the local loopback address:

ip=139.78.2.13

setup_loopback

# Allow traceroute to function, but not to get in.
${fwcmd} add unreach port udp from any to ${ip} 33435-33524
# Allow some inbound icmps - echo reply, dest unreach, source quench,
# echo, ttl exceeded.
${fwcmd} add allow icmp from any to any icmptypes 0,3,4,8,11

My thanks to previous posters for these rules. I still,
however only get

 *traceroute: sendto: Permission denied
traceroute: wrote 192.168.1.125 52 chars, ret=-1

I also did try:

sysctl net.inet.udp.blackhole=0

then 1 and even 2 with no change.

What else should I look at? The firewall rules are
otherwise working as they should.

Thank you.

Martin McCormick
___
freebsd-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: connect to a network printer to be able to print

2013-03-01 Thread Martin Alejandro Paredes Sanchez
On Wednesday 27 February 2013 09:45:15 Antonio Olivares wrote:
 Dear folks,

 I am trying to connect a network printer to be able to print to it.  I
 know the make/model of the printer:
 HP Color LaserJet CP4520
 and the ip address it is on
 10.155.135.3


1st you need to define a host name for the printer in /etc/hosts, add the next 
line to /etc/hosts

10.155.135.3hplj-cp4520

Then verify network conectivity with ping

ping -c 4 hplj-cp4520

Now, create the spool directory and errors-log file

mkdir -p /var/spool/lpd/LaserJetCP4520
chmod 770 /var/spool/lpd/LaserJetCP4520
touch /var/spool/lpd/LaserJetCP4520/errors-log
chmod 660 /var/spool/lpd/LaserJetCP4520/errors-log
chown -R daemon:daemon /var/spool/lpd/LaserJetCP4520

Next, add the printer definition to /etc/printcap

LaserJetCP4520|lp|HP LaserJet CP4520:\
:banner.disable:max.blocks#0:tty.device=:\
:remote.host=hplj-cp4520:remote.queue=raw:\
:spool.dir=/var/spool/lpd/LaserJetCP4520:\
:spool.log=/var/spool/lpd/LaserJetCP4520/errors-log:

Since the HP Color Laserjet Enterprise CP4520 accept the languages

HP PCL 6
HP PCL 5c
HP postscript level 3 emulation
Direct PDF printing version 1.4

You should test with one file of that languages, I do not know if plain text 
can be printed without a text filter (input-filter)
___
freebsd-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: Boot-time hard drive errors

2013-02-24 Thread Martin Alejandro Paredes Sanchez
On Sunday 24 February 2013 14:33:06 Ronald F. Guilmette wrote:
 I have a somewhat eclectic system, currently running (or at any rate,
 trying to run) 9.1-RELEASE.  The system in question contains three
 drives, to wit:

WDC WD1002FAEX-00Z3A0 05.01D05 ATA-8 SATA 3.x device
ST3500320AS SD1A ATA-8 SATA 1.x device
Hitachi HTS541010A9E680 JA0OA480 ATA-8 SATA 3.x device

 Previously, I had the ST3500320AS in this system, along with one other
 entirely different Seagate drive, i.e. one not shown in the list above.
 (Also, I was previously running 8.3-RELEASE and only recently updated
 to 9.1-RELEASE.)

 Since I reconfigured the system to its current state, i.e. with the set
 of three drives listed above, whenever I reboot the system, about 50%
 of the time, when the boot process gets down to the point where it
 would ordinarily be printing out the messages relating to ada0, ada1,
 etc. suddenly I start to get a massive and apparently endless stream
 of error messages, apparently relating to one of the drives listed
 above, but the stream actually alternates between two consecutive
 error messages, both undoubtedly related to each other.


Does your HDD controller is SATA 3?

I had a similar problem (some times could not boot) and was caused because my 
HDD controller is SATA 1

Intel ICH5 SATA150 controller

And my hard disk is SATA 2

WDC WD2500AVVS-00L2B0 01.03A01

The problem disapear when I lock the HDD at 150 MB/s (jumper settings the HDD 
to SATA 1)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Input subsystem comparable to linux planned

2013-02-18 Thread Martin Laabs
Hi,

maybe you know the input subsystem of linux that is very flexible in terms
of various input data interpretations.
Are there plans to implement something comparable into the freebsd system?
The background is, that I currently write a joystick driver supporting USB
joysticks for FreeBSD.
At the moment it supports the joystick api from linux which makes it easy
to port i.e. plib to use it.
I however would also like to support the input subsystem API which is some
what more complicated. So - before writing some emulating code for the
linuxulator I wanna ask if it is planned to put something equal into the
freebsd kernel.

Thank you,
 Martin Laabs

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


Cannot resolve localhost

2013-02-14 Thread Martin Pola
Hi,

I'm trying to get my FreeBSD system to resolve localhost into 127.0.0.1, but 
unfortunately it doesn't work. It appears the resolver is never reading from 
/etc/hosts, where I have this line:
127.0.0.1 localhost

Here's a sample output of what I get when I try to resolve the name:
$ nslookup localhost
;; Got recursion not available from 91.90.24.250, trying next server
Server: 8.8.8.8
Address:8.8.8.8#53
 
** server can't find localhost: NXDOMAIN
 
What am I missing?

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


Setuid binaries and File Ownerships in FreeBSD9.0

2013-01-23 Thread Martin McCormick
The executable in question is a C program whos file
permissions are 4755 and the file belongs to root so all files
it opens are also owned by root and that works properly, but
what I need is for this application to first open a few files owned by
the caller and then later, upgrade back to root and write to
files the caller can not write to. I was hoping to avoid using
chown and chgrp and simply let the privilege level of the
application dictate ownership of any file it opens.

When the application first runs, it gets the UID and GID
of the user and uses 

setuid(heruid); and setgid(hergid); to temporarily downgrade and
those files are owned by the right user but setuid(0); doesn't
appear to upgrade back to root.

Is there any other strategy that gets one back to root
short of using chown and then a system call and never
downgrading privilege?

Thank you.
___
freebsd-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: Setuid binaries and File Ownerships in FreeBSD9.0

2013-01-23 Thread Martin McCormick
jb writes:
 Get familiar with this document:
 http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf
 
 Then verify its validity on your target and current OS.

Thank you. I had read the man page several times and like most
man pages, it is a summary and one can miss some of the finer
points which I seem to be missing right now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Build linux,ko kernel module standalone

2013-01-03 Thread Martin Laabs
Hello,

if I wanna build a kernel module standalone (without the kernel e.g. for
testing) I do it the following way (wlan in this example):

cd /usr/src/sys/modules/wlan
make all
maybe make install if I wanna install it.

Now I want do build the linux.ko module with the symbol DEBUG defined and
tried the following:

cd /usr/src/sys/modules/linux
make -DDEBUG all

but unfortunately this ends up with:

cc -c -O2 -pipe -march=athlon64 -DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
-fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@
-I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-omit-frame-pointer -mno-sse -mcmodel=kernel
-mno-red-zone -mno-mmx -msoft-float -fno-asynchronous-unwind-tables
-ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall
-Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign
-fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_genassym.c
In file included from ./machine/param.h:46,
 from @/sys/param.h:115,
 from
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_genassym.c:4:
./machine/_align.h:6:24: error: x86/_align.h: No such file or directory


Building the module insinde a make buildkernel works fine - so there are
actually no missing files.
Do you have any ideas what I'am missing?

Thank you,
 Martin Laabs

___
freebsd-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-update: fale?

2013-01-03 Thread Martin Laabs
Hi,

On 01/02/13 01:21, Joe Altman wrote:
 Greetings, list. I have the following error; though I can load
 update5.FreeBSD.org in a browser:
 [...]

maybe you use a release that is not supported by freebsd-update. Run uname
-r an compare the release with that you see when looking at
http://update4.freebsd.org/
If it is not there you can not use freebsd-update.

Best regards,
 Martin

___
freebsd-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-update: fale?

2013-01-03 Thread Martin Laabs
Hi,

On 01/02/13 01:21, Joe Altman wrote:
 Greetings, list. I have the following error; though I can load
 update5.FreeBSD.org in a browser:
 [...]

maybe you use a release that is not supported by freebsd-update. Run uname
-r an compare the release with that you see when looking at
http://update4.freebsd.org/
If it is not there you can not use freebsd-update.

Best regards,
 Martin

___
freebsd-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] Malformed UTF-8 in x11-toolkits/p5-Gtk2

2012-12-29 Thread Martin Laabs
Hi,

I am currently building the x11-toolkits/p5-Gtk2 port and get the following
errors:

--:--
arsing XS files...
Creating stock items POD...
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected end of string) in length at
tools/podifystockitems.pl line 52.
Malformed UTF-8 character (unexpected non-continuation byte 0x67,
immediately after start byte 0xfc) in printf at tools/podifystockitems.pl
line 68.
Code point 0x is not Unicode, may not be portable at
tools/podifystockitems.pl line 68.
[...]Generating POD...
Loaded 9 extra types from doctypes
Loaded 2 extra types from
/usr/local/lib/perl5/site_perl/5.14.2/mach/Pango/Install/doctypes
Loaded 8 extra types from
/usr/local/lib/perl5/site_perl/5.14.2/mach/Glib/Install/doctypes
Loaded 7 extra types from
/usr/local/lib/perl5/site_perl/5.14.2/mach/Cairo/Install/doctypes
Malformed UTF-8 character (fatal) at
/usr/local/lib/perl5/5.14.2/mach/Data/Dumper.pm line 682.
gmake: *** [build/podindex] Fehler 25
*** Error code 1

Stop in /usr/ports/x11-toolkits/p5-Gtk2.
---:-

The cause is the environmental variable LC_ALL that was set to
de_DE.ISO8859-1 for me. Unsetting it with unset LC_ALL (if you use bash)
resolve the problem.

Best regards,
 Martin Laabs


___
freebsd-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: Full disk encryption without root partition

2012-12-29 Thread Martin Laabs
Hi,

 Are there any plans or is there already support for full
 disk encryption without the need for a boot partition?

Well - what would be your benefit? OK - you might not create another
partition but I think this is not the problem.
From the point of security you would not get any improvement because some
type of software has to be unencrypted. And this software could be
manipulated to do things like e.g. send the encryption key to attacker.
So from this point of view there is no difference whether the kernel is
unencrypted or any other type of software (that runs before the kernel) is
unencrypted.
There is a solution named secureboot together with TPM but this introduces
some other aspects that are not so very welcome in the open source community.
So from the security point of view it might be a good choice to have a
unencrypted and (hardware) readonly boot partition.

Best regards,
 Martin Laabs

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


Safe Way to Tell if Process is Running

2012-12-04 Thread Martin McCormick
About 20 years ago, I saw some code in which you
verified whether or not a process was running by giving it a
kill -0 command. If the process was running, nothing happened to
it but your kill -0 command exited with a 0 status. If there was
no process with that PID, the kill command exited non-zero.

I use this in a system(command); in a C program I wrote
some years ago and I think this is now causing a segmentation
fault when the process number being signalled doesn't exist. Is
there a better way to determine if process number 12345 is
running without bothering it?

None of the documentation on kill (1) shows a signal 0
nor does kill -l.

Something tells me this is a bad idea these days, but I
still need an easy way to see if XYZ process is still alive.

Thank you.

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


Re: Safe Way to Tell if Process is Running

2012-12-04 Thread Martin McCormick
Robert Bonomi writes:
 'man 2  kill' tells all.

I believe that is the first or second time I have used
Section 2. I appreciate the reminder. It looks like ps -p ###
/dev/null appears to do what I need without producing output

ps -p 54321 /dev/null  date ran the date command if there was
a process with that number and produced nothing if no process
54321 existed.

Martin
___
freebsd-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: Safe Way to Tell if Process is Running

2012-12-04 Thread Martin McCormick
Robert Bonomi writes:
 'man 2  kill' tells all.

I believe that is the first or second time I have used
Section 2. I appreciate the reminder. It looks like ps -p ###
/dev/null appears to do what I need without producing output

ps -p 54321 /dev/null  date ran the date command if there was
a process with that number and produced nothing if no process
54321 existed.

Martin
___
freebsd-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: Faking Gateway

2012-11-03 Thread Samuel Martin Moro

On 11/03/2012 01:35 PM, Jos Chrispijn wrote:

I have two gateway ip's in my network:
G1 = 8/1m and G2=50/10m.
Server1 (S1) is connected to G1 and all network clients are connected 
to G2.
As I sometimes have a lot of ports to download, I thought, let's 
change the gateway address of S1 to G2. That really works regarding 
the FTP part, but regarding my mail it is not (logically I am now 
presenting a domain name that doesn't match its ip address as it is G2 
instead of G1).


Is there a way of switching to the 'fast' gateway with ftp traffic 
only (like port updates and manual outward/inbound ftp requests) and 
have outbound email follow the (standard) G1)?


Kind regards,
Jos Chrispijn

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

Hi,

Some 'match out on $netif to $ext_net port smtp route-to ( $netif $gw_1m 
)' should work.


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


mfs8.0 scripts have me baffled when adding Files.

2012-10-10 Thread Martin McCormick
I am making a mfs boot disk to send along with a server
we are dispatching to a remote campus.
I am using the scripts from Martin Matuska's

mfsbsd-1.0-beta3

suite of programs and they produce a great bootable CD but I
need /usr/local/etc/eject.allow present to let us remotely eject
the CD when we are through repairing the file system.

Basically, I have successfully added a bit of code to
the Makefile to add the file in question to the mfs root and I
see it on the finished image, but when we get the mfsbsd shell
going, the addition I made is nowhere to be found.

I am including the Makefile at the bottom but it appears
to be doing exactly what I told it to do so there is something
about the boot process that I am missing.

Thanks for any suggestions. Basically, all the parts work but
the whole is less than the sum.

# $Id: Makefile 27 2009-10-02 13:13:26Z mm $
#
# mfsBSD
# Copyright (c) 2007-2008 Martin Matuska mm at FreeBSD.org
#
# Version 1.0-BETA4
#

#
# User-defined variables
#
BASE?=/cdrom/7.2-RELEASE
IMAGE?= mfsboot.img
ISOIMAGE?= mfsboot.iso
TARFILE?= mfsboot.tar.gz
KERNCONF?= GENERIC
MFSROOT_FREE_INODES?=5%
MFSROOT_FREE_BLOCKS?=5%
MFSROOT_MAXSIZE?=45m
ROOTPW?= mfsbsd

# If you want to build your own kernel and make you own world, you need to set
# -DCUSTOM or CUSTOM=1
#
# To make buildworld use 
# -DCUSTOM -DBUILDWORLD or CUSTOM=1 BUILDWORLD=1
#
# To make buildkernel use
# -DCUSTOM -DBUILDKERNEL or CUSTOM=1 BUILDKERNEL=1
#
# For all of this use
# -DCUSTOM -DBUILDWORLD -DBUILDKERNEL or CUSTOM=1 BUILDKERNEL=1 BUILDWORLD=1

#
# Paths
#
SRCDIR?=/usr/src
CFGDIR=conf
SCRIPTSDIR=scripts
PACKAGESDIR=packages
FILESDIR=files
TOOLSDIR=tools
#
# Program defaults
#
MKDIR=/bin/mkdir -p
CHOWN=/usr/sbin/chown
CAT=/bin/cat
PWD=/bin/pwd
TAR=/usr/bin/tar
CP=/bin/cp
MV=/bin/mv
RM=/bin/rm
RMDIR=/bin/rmdir
CHFLAGS=/bin/chflags
CHMOD=/bin/chmod
MKUZIP=/usr/bin/mkuzip
GZIP=/usr/bin/gzip
TOUCH=/usr/bin/touch
LS=/bin/ls
PW=/usr/sbin/pw
SED=/usr/bin/sed
UNAME=/usr/bin/uname
MAKEFS=/usr/sbin/makefs
SSHKEYGEN=/usr/bin/ssh-keygen
MKISOFS=/usr/local/bin/mkisofs
#
CURDIR!=${PWD}
WRKDIR?=${CURDIR}/tmp
#
BSDLABEL=bsdlabel
#
STEPS=7
#
DOFS=${TOOLSDIR}/doFS.sh
SCRIPTS=mdinit mfsbsd interfaces packages
BOOTMODULES=acpi snp geom_uzip zlib tmpfs opensolaris zfs
MFSMODULES=geom_label geom_mirror
#

all: image

extract: ${WRKDIR}/.extract_done
${WRKDIR}/.extract_done:
@${MKDIR} ${WRKDIR}/mfs  ${CHOWN} root:wheel ${WRKDIR}/mfs
.if !defined(CUSTOM)
@if [ ! -d ${BASE} ]; then \
echo Please set the environment variable BASE to a path; \
echo with FreeBSD distribution files (e.g. 
/cdrom/7.2-RELEASE); \
echo Or execute like: make BASE=/cdrom/7.2-RELEASE; \
exit 1; \
fi
@for DIR in base kernels; do \
if [ ! -d ${BASE}/$$DIR ]; then \
echo Cannot find directory \${BASE}/$$DIR\; \
exit 1; \
fi \
done
@echo -n Extracting base and kernel ...
@${CAT} ${BASE}/base/base.?? | ${TAR} --unlink -xpzf - -C ${WRKDIR}/mfs
@${CAT} ${BASE}/kernels/generic.?? | ${TAR} --unlink -xpzf - -C 
${WRKDIR}/mfs/boot
@${MV} ${WRKDIR}/mfs/boot/GENERIC/* ${WRKDIR}/mfs/boot/kernel
@${RMDIR} ${WRKDIR}/mfs/boot/GENERIC
@${RM} -rf ${WRKDIR}/mfs/boot/kernel/*.symbols
@${CHFLAGS} -R noschg ${WRKDIR}/mfs  /dev/null 2 /dev/null || exit 0
@echo  done
.endif
@${TOUCH} ${WRKDIR}/.extract_done

build: extract ${WRKDIR}/.build_done
${WRKDIR}/.build_done:
.if defined(CUSTOM)
.if defined(BUILDWORLD)
@echo -n Building world ...
@cd ${SRCDIR}  make buildworld
.endif
.if defined(BUILDKERNEL)
@echo -n Building kernel KERNCONF=${KERNCONF} ...
@cd ${SRCDIR}  make buildkernel KERNCONF=${KERNCONF}
.endif
.endif
@${TOUCH} ${WRKDIR}/.build_done

install: build ${WRKDIR}/.install_done
${WRKDIR}/.install_done:
.if defined(CUSTOM)
@echo -n Installing world and kernel KERNCONF=${KERNCONF} ...
@cd ${SRCDIR}  make installworld DESTDIR=${WRKDIR}/mfs
@cd ${SRCDIR}  make distribution DESTDIR=${WRKDIR}/mfs
@cd ${SRCDIR}  make installkernel DESTDIR=${WRKDIR}/mfs
@${CHFLAGS} -R noschg ${WRKDIR}/mfs  /dev/null 2 /dev/null || exit 0
.endif
@${TOUCH} ${WRKDIR}/.install_done

prune: install ${WRKDIR}/.prune_done
${WRKDIR}/.prune_done:
@echo -n Removing unnecessary files from distribution ...
@${RM} -rf ${WRKDIR}/mfs/rescue ${WRKDIR}/mfs/usr/include 
${WRKDIR}/mfs/usr/games
@${RM} -rf ${WRKDIR}/mfs/usr/lib32
.for DIR in dict doc games info man openssl
@${RM} -rf ${WRKDIR}/mfs/usr/share/${DIR}
.endfor
@${RM} -f ${WRKDIR}/mfs/usr/lib/*.a
@${RM} -f ${WRKDIR}/mfs/usr/libexec/cc1* ${WRKDIR}/mfs/usr/libexec/f771
@for x in c++ g++ CC gcc cc yacc byacc f77 addr2line\
ar

Re: Kernel asks only for the first GELI passphrase

2012-09-30 Thread Martin Laabs

Hello,

On 09/29/12 13:02, Fabian Keil wrote:

Martin Laabs mailingli...@martinlaabs.de wrote:


So - is there a way (i.e. a loader.conf entry) how I can tell the loader
which partition I wanna have attached with a passphrase?


Whether or not the kernel requests the passphrase depends
on whether or not the BOOT flag (0x2) on the provider is set.


Thank you, this hint solved my problem.

Best regards,
 Martin Laabs

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


Kernel asks only for the first GELI passphrase

2012-09-28 Thread Martin Laabs

Hello,

I have two partitions encrypted with GELI: ada0s2 and ada0s3. The loader 
(located at an unencrypted part of the harddisk) loads the kernel and the 
kernel asks me for the passphrase for ada0s2 to attach it afterwards.
However - my root file system is not at ada0s2.elia but on ada0s3.elia. 
Since the kernel did no attach ada0s3 (but the ada0s2 partition) it is also 
unable to mount the root filesystem which is somewhat bad.
So - is there a way (i.e. a loader.conf entry) how I can tell the loader 
which partition I wanna have attached with a passphrase?
I tried to look at the code from the loader but did not find the source 
file where the attaching is done.


Thank you,
 Martin

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


Re: bash Shell Scripting Question

2012-09-20 Thread Martin McCormick
Many thanks! The for loop was what was needed.

Polytropon writes:
 Just a sidenote: If you're not using bash-specific functionality
 and intend to make your script portable, use #!/bin/sh instead.

I always start out that way for that very reason. I needed some
random number functions and arithmetic for another part of the
script so I ended up going to bash.

  while read dirname; do
 
 Attention: dirname (/usr/bin/dirname) is a binary!

You are so correct!  Thank you.

Continuing;

 Correct. You could use different approaches which may or may
 not fail due to the directory names you will encounter (like
 directories with spaces or special characters).

In this application, all the directories will be
non-problematic, but point well taken.

 
 #!/bin/sh
 for DIR in `ls -LF | grep \/`; do
 cd ${DIR}
 # do stuff
 done

That works perfectly. Again many thanks.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bash Shell Scripting Question

2012-09-19 Thread Martin McCormick
I just discovered a knowledge deficiency on my part that
I can't seem to resolve.

If one writes a loop of the following form:

#!/usr/local/bin/bash 
ls -LF |grep \/ /tmp/files
while read dirname; do
cd $dirname
#Do whatever commands to be repeated in each directory.
done  /tmp/files

This works quite well but it is shall we say sloppy
because it creates a file that then must be cleaned up and its
name needs to be made unique, etc.

The standard output of the `ls -LF |grep \/` command
needs to look like a file and all should be well. I thought the
 redirection would pickup the standard output.

Thanks for ideas.

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


Problem with bsnmp

2012-09-18 Thread Martin Alejandro Paredes Sanchez

Hi:

Does bsnmp use mib files or I should translate to def files

Also, I detect that bsnmpwalk return 0 when a timeout conecction ocurred

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


mhonarc 64-bit Package for mhonarc6.18 is stale.

2012-09-10 Thread Martin McCormick
mhonarc is a mime message archiver that is used with nmh
and possibly other applications. I used pkg_add -r mhonarc to
install it on a new system I was building and then discovered
that attempts to reply to messages produced no quoted output and
a spew of perl warnings about defined being deprecated. The
messages tell you what line and in what application the
offending directives live and one must then edit out the word
defined from those lines.

The current port of mhonarc, however, is fine so I first
did make deinstall in the /usr/ports/www/mhonarc directory and
then did make install from the port and things are now perking
along nicely.

If there is a better place to send this message, I will
certainly be glad to send it. All somebody needs to do is create
the mhonarc.tbz package from the most current port for both 32
and 64-bit systems. Who knows; I may be the only one in the
world who is still using nmh, but it is useful when you want
scripts to send mail, etc.

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


Is there anything like strace for 64-bit Systems?

2012-09-08 Thread Martin McCormick
Is there anything like strace for AMD64 FreeBSD?

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


Is there anything like strace for 64-bit Systems?

2012-09-08 Thread Martin McCormick
Is there anything like strace for AMD64 FreeBSD?

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

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


Re: Is there anything like strace for 64-bit Systems?

2012-09-08 Thread Martin McCormick
Bruce Cran writes I should try truss. I would just quote the
text, but I need to first find out what is broken in the reply
sequence and truss may point out what is failing.

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


Virtual FreeBSD9.0 ISO Image Won't Mount Root FS

2012-09-05 Thread Martin McCormick
The ISO image is the FreeBSD9.0 bootonly CDROM for amd64
systems. I added loader.conf to /boot in order to activate a
serial console and this along with socat appears to be working
as it should. This is great because remote desktop is not an
option.

The VM boot starts normally with the spinning bars and
normal startup messages until:

cd0: cd present [85585 x 2048 byte records]
Timecounter TSC frequency 3368628976 Hz quality 800
Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]...
mountroot: waiting for device /dev/iso9660/FREEBSD_INSTALL ...
Mounting from cd9660:/dev/iso9660/FREEBSD_INSTALL failed with error 19.

Loader variables:
  vfs.root.mountfrom=cd9660:/dev/iso9660/FREEBSD_INSTALL
  vfs.root.mountfrom.options=ro

Manual root filesystem specification:
  fstype:device [options]
  Mount device using filesystem fstype
  and with the specified (optional) option list.

eg. ufs:/dev/da0s1a
zfs:tank
cd9660:/dev/acd0 ro
  (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /)

  ?   List valid disk boot devices
  .   Yield 1 second (for background tasks)
  empty lineAbort manual input

mountroot

I enter a Question Mark.

mountroot ?

List of GEOM managed disk devices:
  iso9660/CDROM cd0 ada0

mountroot

The host system is a fairly new 64-bit Macintosh which
is using VirtualBox. Here is the script to define the new
machine.

VBoxManage createvm --name vsys --ostype FreeBSD_64 --register
VBoxManage modifyvm vsys --memory 1000 --vram 128 --acpi on \
--boot2 dvd --boot1 disk --nic1 nat
#setup ttyu0 so the VM can communicate.
VBoxManage modifyvm vsys --uart1 0x3F8 4
VBoxManage -q modifyvm vsys --uartmode1 server '/tmp/vmx'
VBoxManage createhd --filename FreeBSD.VMDK --size 1
VBoxManage storagectl x --name SATA Controller --add sata --controller \
 IntelAHCI --hostiocache on
 VBoxManage storageattach x --storagectl SATA Controller \
 --port 0 --device 0 --type hdd --medium FreeBSD.VMDK

VBoxManage storagectl vsys --name IDE Controller \
  --add ide --controller PIIX4
VBoxManage storageattach vsys --storagectl IDE Controller \
  --port 0 --device 0 --type dvddrive --medium /users/sysbuild/headless.iso
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Building a Headless FreeBSD Virtual System

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

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

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

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

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

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

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

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

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

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

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

Thank you for any good suggestions.

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


Re: questions on the use of moused for Xorg

2012-08-07 Thread Martin Alejandro Paredes Sanchez
On Sunday 05 August 2012 19:46:30 Martin Alejandro Paredes Sanchez wrote:

 The driver UMS detects the Z Axis and the Wheel [XYZW]

 ums0: Mitsumi Electric Apple Optical USB Mouse, class 0/0, rev 1.10/1.08,
 addr 4 on usbus1 ums0: 4 buttons and [XYZW] coordinates ID=0


Enabling debug for ums, I confirm that ums is detecting moves in Z an W

Why is moused ignoring the moves in W?

# sysctl hw.usb.ums.debug=15

ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 08 00 00 00 00 04 00 00
ums_intr_callback: x:0 y:0 z:0 t:0 w:0 buttons:0x0008

ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 ff 00 00 00 00 00
ums_intr_callback: x:0 y:1 z:0 t:0 w:0 buttons:0x
ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 ff 00 00 00 00 00 00
ums_intr_callback: x:-1 y:0 z:0 t:0 w:0 buttons:0x

ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 ff 00 00 00 00
ums_intr_callback: x:0 y:0 z:0 t:0 w:-1 buttons:0x

ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 01 00 00 00
ums_intr_callback: x:0 y:0 z:-1 t:0 w:0 buttons:0x
ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 06 00 00 00
ums_intr_callback: x:0 y:0 z:-6 t:0 w:0 buttons:0x
ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 01 00 00 00
ums_intr_callback: x:0 y:0 z:-1 t:0 w:0 buttons:0x
___
freebsd-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: questions on the use of moused for Xorg

2012-08-07 Thread Martin Alejandro Paredes Sanchez
On Sunday 05 August 2012 19:46:30 Martin Alejandro Paredes Sanchez wrote:

 When I run this command

 /usr/sbin/moused -f -d -z 4 5 6 7 -p /dev/ums0 -t auto -I
 /var/run/moused.ums0.pid

 moused reports movements in XY (dx dy) but not ZW (dz), for Z now reports
 buttons 4 and 5 pressed, in Xorg the scroll (vertical) does not work (xev
 reports events for button 8 and 9), and no horizontal (xev doesn't report
 anything)


according to http://www.x.org/releases/X11R7.5/doc/man/man4/mousedrv.4.html

Option ButtonMapping N1 N2 [...]
Specifies how physical mouse buttons are mapped to logical buttons.
Default: 1 2 3 8 9 10 

That is the reason that in Xorg the scroll (vertical) does not work, xev 
reports events for button 8 and 9 because moused reports button 4 and 5, but 
xorg remapped to 8 an 9
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


questions on the use of moused for Xorg

2012-08-05 Thread Martin Alejandro Paredes Sanchez

when you must use the parameter -z of moused?

I had an Apple Mighty Mouse and I would like to use the track ball (the wheel
part)

The driver UMS detects the Z Axis and the Wheel [XYZW]

ums0: Mitsumi Electric Apple Optical USB Mouse, class 0/0, rev 1.10/1.08, addr 
4 on usbus1
ums0: 4 buttons and [XYZW] coordinates ID=0

When I run this command

/usr/sbin/moused -f -d -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid

moused reports movements in XYZ (dx dy dz) but not W (dz?), in Xorg the scroll
(vertical) works OK (xev reports events for button 4 and 5), but no horizontal
(xev doesn't report anything)

When I run this command

/usr/sbin/moused -f -d -z 4 5 6 7 -p /dev/ums0 -t auto -I 
/var/run/moused.ums0.pid

moused reports movements in XY (dx dy) but not ZW (dz), for Z now reports
buttons 4 and 5 pressed, in Xorg the scroll (vertical) does not work (xev
reports events for button 8 and 9), and no horizontal (xev doesn't report
anything)

Here is the mouse part of my x11-input.fdi file

match key=info.capabilities contains=input.mouse
  merge key=input.x11_options.Protocol type=stringSysMouse/merge
  merge key=input.x11_options.Emulate3Buttons type=stringOff/merge
  merge key=input.x11_options.Buttons type=string8/merge
/match

But in Xorg.0.log I see conflicts with the configuration, the lines that begin
with (**) Apple Optical USB Mouse:, where they come from?

(EE) config/hal: couldn't initialise context: unknown error (null)
(II) config/hal: Adding input device Apple Optical USB Mouse
(II) LoadModule: mouse
(II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor=X.Org Foundation
compiled for 1.7.5, module version = 1.5.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 7.0
(**) Option Protocol SysMouse
(**) Apple Optical USB Mouse: Device: /dev/sysmouse
(**) Apple Optical USB Mouse: Protocol: SysMouse
(**) Apple Optical USB Mouse: always reports core events
(**) Option Device /dev/sysmouse
(**) Option BaudRate 1200
(**) Option StopBits 2
(**) Option DataBits 8
(**) Option Parity None
(**) Option Vmin 1
(**) Option Vtime 0
(**) Option FlowControl None
(**) Option Buttons 8
(**) Option Emulate3Buttons Off
(**) Apple Optical USB Mouse: ZAxisMapping: buttons 4 and 5
(**) Apple Optical USB Mouse: Buttons: 12
(**) Apple Optical USB Mouse: Sensitivity: 1
(**) Apple Optical USB Mouse: BaudRate: 1200
(II) XINPUT: Adding extended input device Apple Optical USB Mouse (type: 
MOUSE)
(**) Apple Optical USB Mouse: (accel) keeping acceleration scheme 1
(**) Apple Optical USB Mouse: (accel) acceleration profile 0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Firefox 14 build broken due to wrong libpng

2012-07-31 Thread Martin Dieringer



On Tue, 30 Jul 2012, John Levine wrote:


In article 20120730045308.gh7...@mail3.dcoder.net you write:

same problem.  so i rebuilt png w/

OPTIONS=APNG Animated PNG support On

firefox build still fails because of complaints about APNG.  what am i missing
here?


I rebuilt png with APNG turned on (make  make deinstall  make install clean)

The png errors went away but it still failed.  The last few lines of the log 
are below.

This is 8.3 on amd64, ports are as far as I know fully up to date.

Regards,
John Levine, jo...@iecc.com, Primary Perpetrator of The Internet for Dummies,
Please consider the environment before reading this e-mail. http://jl.ly



c++ -o nsNSSCallbacks.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\FreeBSD8\ 
-DOSARCH=FreeBSD -I/usr/local/include/nss -I../../../.././../security/manager/ssl/src -I. 
-I../../../../dist/include -I../../../../dist/include/nsprpub -I/usr/local/include  -I/usr/local/include/nspr 
-I/usr/local/include/nss -I/usr/local/include -I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual 
-Werror=return-type -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros 
-Wcast-align

 -

O2 -pipe
 -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSCallbacks.cpp
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsProtectedAuthThread.cpp:
 In member function 'void nsProtectedAuthThread::Run()':
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsProtectedAuthThread.cpp:164:
 warning: unused variable 'rv'
nsNSSComponent.cpp
c++ -o nsNSSComponent.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\FreeBSD8\ 
-DOSARCH=FreeBSD -I/usr/local/include/nss -I../../../.././../security/manager/ssl/src -I. 
-I../../../../dist/include -I../../../../dist/include/nsprpub -I/usr/local/include  -I/usr/local/include/nspr 
-I/usr/local/include/nss -I/usr/local/include -I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual 
-Werror=return-type -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros 
-Wcast-align

 -

O2 -pipe
 -fno-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss -I/usr/local/include/nss/nss 
 -I/usr/local/include -DMOZILLA_CLIENT -include ../../../../mozilla-config.h 
/usr/ports/www/firefox/work/mozilla-release/security/manager/ssl/src/nsNSSComponent.cpp
nsNSSErrors.cpp
c++ -o nsNSSErrors.o -c -I../../../../dist/stl_wrappers -I../../../../dist/system_wrappers -include 
../../../.././../config/gcc_hidden.h -DNSS_ENABLE_ECC -DDLL_PREFIX=\lib\ 
-DDLL_SUFFIX=\.so\  -DMOZ_GLUE_IN_PROGRAM -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 
-DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET 
-DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\FreeBSD8\ 
-DOSARCH=FreeBSD -I/usr/local/include/nss -I../../../.././../security/manager/ssl/src -I. 
-I../../../../dist/include -I../../../../dist/include/nsprpub -I/usr/local/include  -I/usr/local/include/nspr 
-I/usr/local/include/nss -I/usr/local/include -I/usr/local/include-fPIC -I/usr/local/include/nss 
-I/usr/local/include/nss/nss  -I/usr/local/include -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual 
-Werror=return-type -Wno-ctor-dtor-privacy -Wno-overlength-strings -Wno-invalid-offsetof -Wno-variadic-macros 
-Wcast-align -O

2

-pipe -f
no-strict-aliasing -fno-exceptions -fno-strict-aliasing -fshort-wchar 
-ffunction-sections -fdata-sections -pipe  -DNDEBUG -DTRIMMED -O2 
-fomit-frame-pointer  -I/usr/local/include/nss 

Clock lagging behind on FreeBSD 9.0-RELEASE under KVM

2012-06-05 Thread Martin Dimitrov
Hi,

I am new to FreeBSD, decided to migrate a web server to FreeBSD. I
recently both a VPS that claim to use KVM as a virtualization service, I
don't know the details of the real hardware running behind nor what is
KVM running on. Anyway I have an issue with clock on my FreeBSD
installation that I can't live with. The clock is lagging behind, for
example running sleep 30 is really sleeping around 35 seconds not 30.
Also seems that NTP is not able to manage with this drift in time.
Before posting here I red about similar problems mostly related to
VMWare guests, but the solutions suggested are following:

set kern.hz=100 or kern.hz=50 (doesn't work for me)
set hint.apic.0.disabled=1 (this makes the guest hangs while booting
also it discarding the SMP capabilities of the kernel which I assume is
not a good idea)
set kern.timecounter.hardware TSC (doesn't work for me)

Is there any chance I deal with this time drifting issue somehow? If
somebody faced such issue and managed it I would be happy to try another
possible solution?
Alternatively I can switch the provider with other that is using Xen for
virtualization, I guess is better, but no guarantee that would not have
the same issue. :(

Cheers,
Martin
___
freebsd-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: Clock lagging behind on FreeBSD 9.0-RELEASE under KVM

2012-06-05 Thread Martin Dimitrov
Thanks, but it's not working:

# sysctl machdep.independent_wallclock=1
sysctl: unknown oid 'machdep.independent_wallclock'

I grep under /usr/src/sys for independent_wallclock and it appeared only
in ./i386/xen/clock.c, my architecture is amd64 if it matters.

On 06/05/2012 07:59 PM, Michael Sierchio wrote:
 Try

 machdep.independent_wallclock=1

 On Tue, Jun 5, 2012 at 8:08 AM, Martin Dimitrov
 martin.dimit...@mafiainc.org wrote:
 Hi,

 I am new to FreeBSD, decided to migrate a web server to FreeBSD. I
 recently both a VPS that claim to use KVM as a virtualization service, I
 don't know the details of the real hardware running behind nor what is
 KVM running on. Anyway I have an issue with clock on my FreeBSD
 installation that I can't live with. The clock is lagging behind, for
 example running sleep 30 is really sleeping around 35 seconds not 30.
 Also seems that NTP is not able to manage with this drift in time.
 Before posting here I red about similar problems mostly related to
 VMWare guests, but the solutions suggested are following:

 set kern.hz=100 or kern.hz=50 (doesn't work for me)
 set hint.apic.0.disabled=1 (this makes the guest hangs while booting
 also it discarding the SMP capabilities of the kernel which I assume is
 not a good idea)
 set kern.timecounter.hardware TSC (doesn't work for me)

 Is there any chance I deal with this time drifting issue somehow? If
 somebody faced such issue and managed it I would be happy to try another
 possible solution?
 Alternatively I can switch the provider with other that is using Xen for
 virtualization, I guess is better, but no guarantee that would not have
 the same issue. :(

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


Re: library search path

2012-05-29 Thread Martin Laabs
Hello,

 On 29 May 2012 00:57, Martin Laabs i...@martinlaabs.de wrote:

[...]

 tmux didn't work with libevent 2.* but did with libevent 1.4.*

When typing make config in the tmux port it presents a checkbutton wether
I wanna use libenvet 1.4 or 2. So it seems to work with both versions.

Btw. - where do you see advantages of tmux in comparison to screen?

Best regards,
 Martin

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


ARM NAS Server for FreeBSD?

2012-05-29 Thread Martin Laabs

Hello,

can anyone recommend me a ARM9/11 based platform that has support for 
freebsd to implement a nas server and router? Also other platforms could be 
interesting if they have a low power consumption. However - the performance 
should be somewhat better than the performance of the first atom cpus.


I would like to add at least two sata drives and gbit ethernet. (And a DSL 
modem - preferable already on board)


Best regards,
 Martin L.

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


Re: library search path

2012-05-28 Thread Martin Laabs

Hello,

just a guess:

On 28.05.2012 16:11, fake fake wrote:


To install tmux under $HOME/bin, I have installed libevent library
under $HOME/lib (I do not have root privilege).
Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc.


LD_LIBRARY_PATH only affects the dynamic linker and its search path
when executing a program. You will need this when you execude tmux afterwards.


But ./configure --prefix=$HOME in src/tmux returns configure:


With --prefix=... you tell the configure script where you wanna install the 
files. Now you have to tell the gcc where to search for the 
library/includes. So try to set CFLAGS=-I $HOME/include -L $HOME/lib


Best regards,
 Martin Laabs

___
freebsd-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: kldxref: /boot/kernel/kernel: too many sections

2012-05-27 Thread Martin Laabs

Hello,

On 05/27/12 05:31, Damien Fleuriot wrote:
[...]



Hold on a sec you run install*world* and it tries to install a kernel ?
Looks fishy to me.


Sorry - I ran make installkernel of cause.


Also, try with a generic kernel, just to  check if that fails as well.


Interesting - the GENERIC kernel does as expected - no problem with 
kldxref. However - after that I tried my own config again and today there 
are no problems. This is somewhat annoying - I forgot to disable the 
midnight src update. So I try to run this kernel and hope that the problem 
was solved between the 26. and 27 May.


Best regards,
 Martin Laabs

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


kldxref: /boot/kernel/kernel: too many sections

2012-05-26 Thread Martin Laabs

Hello,

while updating my system I got the following error message while make 
installworld:


=== syscons/green (install)
install -o root -g wheel -m 555   green_saver.ko /boot/kernel
install -o root -g wheel -m 555   green_saver.ko.symbols /boot/kernel
kldxref /boot/kernel
kldxref: /boot/kernel/kernel: too many sections
kldxref: error while reading /boot/kernel/kernel: Bad address
su:/usr/src$

I tried to remove the /usr/obj and remake the kernel by make buildkernel 
again but the error remains.

I use 8.2-STABLE with a freshly updated RELENG_8 src.

I do not build all kernel modules so I have the following in my make.conf
MODULES_OVERRIDE = nfsserver linux linprocfs geom/geom_bde syscons/green

However - I don't think this explains the misbehavior of kldxref.

Can anybody give me a hint where to search for the bug?

Best regards,
 Martin Laabs

___
freebsd-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: kldxref: /boot/kernel/kernel: too many sections

2012-05-26 Thread Martin Laabs

Hi,

On 05/26/12 15:46, Wojciech Puchar wrote:
[...]

I do not build all kernel modules so I have the following in my make.conf
MODULES_OVERRIDE = nfsserver linux linprocfs geom/geom_bde syscons/green


is it i386/amd64? strange
didn't you set -j option to make when doing install?



Sorry - it is an i386 kernel and I didn't either use -j for make nor I have 
such an entry in my make.conf. The kernel configuration I used also worked 
for at least two years (the time, the machine is up)


Best regards,
 Martin

___
freebsd-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: kldxref: /boot/kernel/kernel: too many sections

2012-05-26 Thread Martin Laabs

Hello,

On 05/26/12 16:33, Wojciech Puchar wrote:

how do you compile kernel


cd /usr/src/sys/i386/conf
ee SERVER_KERNEL
cd /usr/src
make buildkernel
make installkernel

with the following line in make.conf:
KERNCONF=SERVER_KERNEL


something much get f...d up. what version of FreeBSD is it. i can try it
myself


FreeBSD server.martinlaabs.de 8.2-STABLE FreeBSD 8.2-STABLE #3: Sat Dec 24 
01:21:34 CET 2011 
mar...@server.martinlaabs.de:/usr/obj/usr/src/sys/SERVER_KERNEL  i386


You can find my kernel config at
http://www.martinlaabs.de/tmp/SERVER_KERNEL

Thank you,
 Martin Laabs


___
freebsd-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: Off-Topic: Computing for the Blind

2012-03-27 Thread Martin McCormick
Polytropon writes:
 That's correct. However, unlike a Braille readout which
 gives tactile information (through the reader's hands),
 synthetic voice cannot easily accomodate to the reader's
 habits and reading speed. Scanning text is not possible
 as the generated voiced text is played in linear time,
 which means you cannot easily skip forward and backward,
 re-read a certain passage, and you basically do not come
 down to the letter level, you only have a word level.

You are absolutely right on all counts. I was speaking
from the standpoint of the amount of work and or extra expense
that one would need to go through to get the interface fully
operational. Nobody has yet figured out how to build a Braille
display that is affordable, let's say 100 US Dollars or less for
even one line of Braille much less a whole page or better yet a
graphical screen that could display shapes and possibly textures
that are not Braille characters. Prices of 5000 Dollars are not
uncommon and single-line displays sell for well over 1000
Dollars anywhere you go.

What is needed is a way to accomplish a tactile matrix
that doesn't require precision machining or hand assembly for
each pixel. That's why today's displays are so incredibly
expensive and delicate.

There are lots of neat ideas such as stimulators you
might ware on your fingers as you move your hand over a large
area, but making a tightly-packed matrix at almost microscopic
level is still a pains-taking task.

By the way, math done by any method other than Braille
is darn next to useless. Equations in Braille can be formatted
very much like they are in print and there is a whole Braille
system for reading and writing math. So, I am not disagreeing at
all with what you wrote here, just clarifying why I made the
statements I made.

 While this has benefits in unconcentrated reading (e. g.
 reading an article or literature, it can be problematic
 with scientific or technical text where a (healthy) reader
 would let his eyes jump within the text stream.

The thing I hate the most these days is the lost art of
the linear declarative sentence. If the output of a program is
some full-screen form in which the information one wants is in
check boxes, you have to listen to the whole !%#%00--- thing
just to find out whether or not it worked. There are usually one
or two things we really wanted to know and the rest is unchanged
but must be endured to get the one or two grains of wheat in all
that chaff.

Since it's full-screen stuff, it is hard to pipe to a
script so I guess the artists are happy and the rest of us are
just tapping our feet impatiently waiting for the water torture
to end.

Fortunately, unix operations are still relatively free
from the worst GUI parlor tricks, but I use safari on a Mac to
access some Windows-centric web sites related to work and they
make me want to straighten out a horse shoe without a forge I
get so mad at listening to the minutes of audio with the results
of what I did always at or near the last of the text and there
seems to be no way to stanch the deluge without loosing the gold
nuggets.

In conclusion, FreeBSD has been another wonderful
open-source platform as far as I can say. Many of the systems I
run it on here do not have sound cards and are either on virtual
boxes, in other buildings or towns and so a speech or Braille
console directly on the system isn't possible so I have always
used some other device to provide accessibility and never been
disappointed. After all, it's unix which means one can expect
certain behaviors regarding standard devices.

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


Remote System Builds

2012-03-26 Thread Martin McCormick
Is there yet any way to remotely rebuild a FreeBSD
system? I have two FreeBSD systems on two remote campuses that
presently run FreeBSD6.3. They need to be running FreeBSD9.0 and
I don't really care how I get there as long as it can be done
over the network. If we were physically there, I would put a
CDROM in and blow them away since it is such a large jump.

I can have staff members there install CDROM's that were
remastered to use the serial console, but I am hoping that maybe
we are moving past this sort of logistics.

I just tried to unpack the 9.0 image using tar which has
worked in the past to let one modify loader.conf but I got a
bunch of errors this time about files that couldn't be created
so maybe this is not the recommended headless installation
technique any longer.

Any ideas?

Thank you very much

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


Re: Off-Topic: Computing for the Blind

2012-03-26 Thread Martin McCormick
There may be several people on this list who are blind,
meaning no usable vision to see a screen. I definitely fit that
description so I will gladly try to answer questions which
breaks my usual practice here of asking beginner-level questions
even though I have been using FreeBSD for almost ten years.

The easiest and most economical interface for computer
users who are blind is spoken speach. I am not talking about
speech recognition where you speak to the computer and it does
things, but speech synthesis where the computer runs an
application to read what is on the screen back to the person
using the system.

One can learn to type and touch-typing was tought in
schools for the blind for scores of years before computers ever
even came on the scene. We pounded on typewriters and our
poor suffering typing teachers were the feedback mechanisms that
told us how we were doing. So, a person who is blind needs to
know how to type.

Almost every operating system has a screen reading
program or several that one can install that reads the screen
back to you. There is a good screen reader for the Macintosh
which is included on every single Mac that runs OSX10.X. I like
it and the Mac's do run a customized version of BSD unix. The
screen reader for the Mac is called voiceover and you can
activate it by Command-F5 and then Command-F5 again to turn it
off.

The only drawback to voiceover is that for those of us
who do a lot of tinkering and compiling of source code on unix
systems, the screen reader makes listening to the stream of
consciousness almost useless because it resets itself each time
new output is detected.

There is also a lot of really neat things going on in
Linux. We have Orca which is the GUI environment and some very
good software speech synthesizers for both the GUI and the
command line worlds. They tend to handle bursty output from
compilers and log tailings better than voiceover but you find
that both Mac and Linux screen readers shine in some things and
don't do so well in others so there is no clear winner.

Finally, there is the Windows world. Microsoft may be
actually trying to improve their narrator application to where it
is a serious screen reader, but up to now, there is one free
screen reader that some people like to use plus several
commercial applications that cost an arm and a leg and are
always one upgrade away from being snuffed out and causing their
owners much grief.

None of these screen readers are perfect, but most
computer users who are blind end up being reasonably happy with
one of them.

I personally like Linux and the Mac because there is no
additional charge to install the screen readers and they
generally won't let you down.

There are also Braille displays which some people use
but they are extremely costly.

I mentioned the speech recognition systems. Many of
those actually present problems for those who are blind because
you need to train them on your speech and the feedback is
graphical so a good old keyboard is still the best input device.

So as not to get totally off topic, I haven't heard of
any of the Linux screen readers being ported to FreeBSD. That
could be a problem for some people and not an issue at all for
others. Right now, I am typing on a Linux computer running a
software speech engine and I am editing this message on a
FreeBSD9.0 system via ssh and using vi on the actual message
file. It works great.

If that Raspberry Pie Linux system turns out to be able
to support one of the Linux screen readers, we're talking about
a talking terminal for less than 100 US Dollars. We'll just have
to see what happens.


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


Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Martin McCormick
I've got some code which I wrote about 6 or 8 years ago that
apparently doesn't get along right now with FreeBSD9.0. In the
problem code, there is a loop that uses fgets to read a line
from a file. It runs properly until the 2708TH iteration and
then it dumps core with a segmentation fault.

char string0[256];
more lines of code . . .

while ( fgets(string0,sizeof(string0),fp_config)) {
code to be run for each line
}

It runs fine until the 2,709TH iteration. Instead of
reading the next line, it jumps to the line that closes
fp_config even though it is far from read and exits with the
segmentation fault.

The man page on fgets says that if errors occur while
running fgets, one must use perr to see whether the error
terminated activity or it was the end of the file. In this case,
it is definitely the error.

Some observations:

The crash occurs on the 2,709TH input no matter how long I
declared string0 to be. string0 is over-written each new
iteration so nothing should be accumulating that uses up
resources.

Maybe I am declaring string0 in the wrong data type.
Originally, it had been 1024 characters long but 2709 seems to
be the C equivalent to the apocalypse and I thought it was
supposed to be next December:-)

This same code, by the way, also fails at about the same
number of iterations if one uses fgetc and  builds the line one
char at a time.
___
freebsd-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: Freebsd9.0 and the fgets directive in gcc

2012-03-21 Thread Martin McCormick
Never mind. I may be back with another question, but I figured
out that it is not the input loop. I simply removed all the code
in the loop except for a variable that counts the number of
iterations and just ran thatand it read the entire file so the
problem is introduced when assigning values to variables based
on the contents of the lines. It is something that worked okay
up to FreeBSD8.X but now causes a segmentation fault.
Martin McCormick writes:
 I've got some code which I wrote about 6 or 8 years ago that
 apparently doesn't get along right now with FreeBSD9.0. In the
 problem code, there is a loop that uses fgets to read a line
 from a file. It runs properly until the 2708TH iteration and
 then it dumps core with a segmentation fault.
 
 char string0[256];
 more lines of code . . .
 
 while ( fgets(string0,sizeof(string0),fp_config)) {
 code to be run for each line
 }
 
 It runs fine until the 2,709TH iteration. Instead of
 reading the next line, it jumps to the line that closes
 fp_config even though it is far from read and exits with the
 segmentation fault.
 
 The man page on fgets says that if errors occur while
 running fgets, one must use perr to see whether the error
 terminated activity or it was the end of the file. In this case,
 it is definitely the error.
 
 Some observations:
 
 The crash occurs on the 2,709TH input no matter how long I
 declared string0 to be. string0 is over-written each new
 iteration so nothing should be accumulating that uses up
 resources.
 
 Maybe I am declaring string0 in the wrong data type.
 Originally, it had been 1024 characters long but 2709 seems to
 be the C equivalent to the apocalypse and I thought it was
 supposed to be next December:-)
 
 This same code, by the way, also fails at about the same
 number of iterations if one uses fgetc and  builds the line one
 char at a time.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Reading an unknown DAT Tape

2012-03-15 Thread Martin McCormick
This is a case of idle curiosity and not an urgent need
to recover a valuable backup. I found an old DAT tape and
attempted to read it on the very drive that probably once wrote
it and it appears to read the tape properly in that I can use dd
to copy it to a file and mt fsf 5, for example, takes the tape
to the fifth file marker so there is sanity.

Tar, however, does not recognize the format of the
archive so it is either something proprietary or I am not using
the correct utility on it.

I opened it with dd files=2 if=/dev/sa0 of=testfile and
then did the strings utility on testfile and got:

TAPE
SSET
VOLB
DIRB
NACL
Setting security
iles
SPAD
DIRB
NACL
Setting security on system files...
SPAD
DIRB
NACL
SPAD
DIRB
NACL
SPAD
FILE
NACL
STAN
Jun 23 2003 12:00AM
Jan 1 1900  8:45AM
Jan 1 1900  9:00AM

Note that we are obviously able to read data from the
tape as the top few lines are readible as words. The time stamps
at the bottom are possibly not time stamps as some of them are
not plausible.

The dd command never faltered with errors although I
did finally stop it manually.

Is there any FreeBSD utility that can tell more about
what created the original archive?

Thank you.

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


replacing disk

2012-03-03 Thread Martin Alejandro Paredes Sanchez

Hi

I am replacing an IDE disk (ad0) with a SATA disk (ad4)
___
freebsd-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: replacing disk

2012-03-03 Thread Martin Alejandro Paredes Sanchez
On Saturday 03 March 2012 18:01:33 Martin Alejandro Paredes Sanchez wrote:
 Hi

 I am replacing an IDE disk (ad0) with a SATA disk (ad4)

Sorry, I send it and I even notice

In the disk I have 3 OS (FreeDOS, XP and FreeBSD)

I use PartitionWizard to create the 3 slice in the new disk (ad4)

I use ghost.exe (2003 version) to pass FreeDOS and XP to the new slices in ad4

I boot in FreeBSD (in ad0) and with sysinstall, create the partitions in ad4 
and using the next commands, I pass the info in my 4 partiotios 
(/ /tmp /var /usr)

newfs /dev/ad4s3a
mount /dev/ad4s3a /mnt
cd /mnt
dump 0af - / | restore rf -

I modify /mnt/etc/fstab to reflect ad4 as the only disk

I turn off the PC, remove ad0 disk and turn on the PC, but FreeBSD do not boot

I forgot to mention taht I had activated the 3rd slice of the disk, if I 
activate the 1st slice, FreeDOS boot

So I reconect ad0 and boot FreeBSD (from ad0) and use the next command

bsdlabel -B /dev/ad4s3

But do not work either.

Do I really need to reinstall the OS on the new disk ad4 and tranfer my info 
with the commands as described in

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK
___
freebsd-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: replacing disk

2012-03-03 Thread Martin Alejandro Paredes Sanchez
On Saturday 03 March 2012 20:55:30 Erich Dollansky wrote:

 One question again. Does your kernel support SATA?

 If not, it will not work. If it is a GENERIC kernel, it does.

 Erich

Yes, it is the GENERIC

Does /boot/boot1 should be different in ad0 and ad4?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Removal Attempt of Directory under ZFS causes Kernel Panic

2012-02-10 Thread Martin McCormick
We have a ZFS file system under FreeBSD9.0 running on a
virtual machine which had been running flawlessly for a bit over
a month when I discovered that I had copied our home directory
into /usr/home such that we had /usr/home/home. As root, I cd'd
to /usr/home and then typed

rm -r home

at which point the kernel panicked after removing most of this
bogus home directory. It got to one particular user's
subdirectory, worked normally for a bit and then that's when the
kernel panicked.

What we found were normal symlinks and files that, if
you make any attempt to delete them or touch them, provoke the
kernel panic and crash. If you mount the file system on a
rescue disk, it crashes that. We've tried mounting on a debian
rescue disk that supported zfs and it didn't crash, but hung.

A coworker ran the debug version of our kernel and it
complained about values being out of bounds for the several
files in question.

Basically, in the roughly 20 years of working with unix
systems, I have never once seen anything like this. We don't
think it has to do with the virtual machine because you can
trigger the disaster only by trying to remove the specific
files. everything else appears to be working normally including
creating and deleting other files and directories.

My gut feeling is that it is related to zfs. 

The bogus home directory was an attempt by me to rsync
from the actual hardware system to the virtual system back in
November and every file came out owned by root. I got the rsync
working properly and forgot about this home/home directory until
yesterday when I realized the mistake and tried to delete it.

Does this sound familiar to anybody? This is the first
zfs installation I have used and I am not real wild about trying
it again if we can't solve this mystery. We can't seem to
duplicate the problem. Any ideas are appreciated.

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


Re: Removal Attempt of Directory under ZFS causes Kernel Panic

2012-02-10 Thread Martin McCormick
You will see a message on this group from Ryan Frederick
who is a coworker of mine and who also posted a question about
this same issue. There was a little confusion about which
FreeBSD support group had been asked so my question and his are
about the same machine. He submitted the stack trace so
hopefully somebody can give us an idea as to how this happened.

Thank you again.

Martin McCormick
___
freebsd-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: libXext fails to build on 9.0-RELEASE/amd64

2012-02-05 Thread Martin Wilke
On Wed, 01 Feb 2012 22:18:31 +0100
1126 mailingli...@elfsechsundzwanzig.de wrote:

Hi,

Please update your ports tree, we have fixed that. 

- Martin

 
 Hello list!
 Today, I installed a fresh 9.0-RELEASE/amd64 and wanted to install  
 Xorg. There were no other packages installed before, so Xorg and all  
 it's run- and build-dependencies would be the first. But it fails.
 The error message reads:
 
 ...
 checking for XEXT... configure: error: Package requirements (xproto
 = 7.0.13 x11 = 1.1.99.1 xextproto = 7.1.99) were not met:
 
 No package 'x11' found
 
 Consider adjusting the PKG_CONFIG_PATH environment variable if you  
 installed software in a non-standard prefix.
 
 Alternatively, you may set the environment variables XEXT_CFLAGS and  
 XEXT_LIBS to avoid the need to call pkg-config.
 See the pkg-config man page for more details.
 
 === Script configure failed unexpectedly.
 Please report the problem to x...@freebsd.org [maintainer] and attach  
 the /usr/portx/x11/libXext/work/libXext-1.3.0/config.log including  
 the output of the failure of your make command. Also, it might be a  
 good idea to provide an overview of all packages installed on your  
 system (e.g. an 'ls /var/db/pkg').
 *** Error code 1
 
 Stop in /usr/ports/x11/libXext.
 *** Error code 1
 
 
 After reading this, I asked Google, but it didn't came up with a  
 solution. I updated the ports (portsnap fetch update), but that
 didn't help either. I tried to install only libXext (make install
 clean), but that didn't work either.
 
 Does anyone knows a solution?
 
 
 As has been asked, I append the output of config.log from the  
 work-directory of libXext. I don't know the right way to do this,  
 but I hope this works. ;)
 
 Thanks in advance,
 1126!
 
 
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
 It was created by libXext configure 1.3.0, which was
 generated by GNU Autoconf 2.68.  Invocation command line was
 
$ ./configure --disable-specs --without-xmlto  
 --enable-malloc0returnsnull --x-libraries=/usr/local/lib  
 --x-includes=/usr/local/include --prefix=/usr/local  
 --mandir=/usr/local/man --infodir=/usr/local/info/  
 --build=amd64-portbld-freebsd9.0
 
 ## - ##
 ## Platform. ##
 ## - ##
 
 hostname = Suse
 uname -m = amd64
 uname -r = 9.0-RELEASE
 uname -s = FreeBSD
 uname -v = FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012  
 r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 
 /usr/bin/uname -p = amd64
 /bin/uname -X = unknown
 
 /bin/arch  = unknown
 /usr/bin/arch -k   = unknown
 /usr/convex/getsysinfo = unknown
 /usr/bin/hostinfo  = unknown
 /bin/machine   = unknown
 /usr/bin/oslevel   = unknown
 /bin/universe  = unknown
 
 PATH: /sbin
 PATH: /bin
 PATH: /usr/sbin
 PATH: /usr/bin
 PATH: /usr/games
 PATH: /usr/local/sbin
 PATH: /usr/local/bin
 PATH: /root/bin
 
 
 ## --- ##
 ## Core tests. ##
 ## --- ##
 
 configure:2342: checking for a BSD-compatible install
 configure:2410: result: /usr/bin/install -c -o root -g wheel
 configure:2421: checking whether build environment is sane
 configure:2471: result: yes
 configure:2612: checking for a thread-safe mkdir -p
 configure:2651: result: ./install-sh -c -d
 configure:2664: checking for gawk
 configure:2694: result: no
 configure:2664: checking for mawk
 configure:2694: result: no
 configure:2664: checking for nawk
 configure:2680: found /usr/bin/nawk
 configure:2691: result: nawk
 configure:2702: checking whether make sets $(MAKE)
 configure:2724: result: yes
 configure:2805: checking whether to enable maintainer-specific  
 portions of Makefiles
 configure:2814: result: no
 configure:2858: checking build system type
 configure:2872: result: amd64-portbld-freebsd9.0
 configure:2892: checking host system type
 configure:2905: result: amd64-portbld-freebsd9.0
 configure:2946: checking how to print strings
 configure:2973: result: printf
 configure:3006: checking for style of include used by make
 configure:3034: result: GNU
 configure:3104: checking for gcc
 configure:3131: result: cc
 configure:3360: checking for C compiler version
 configure:3369: cc --version 5
 cc (GCC) 4.2.1 20070831 patched [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.
 
 configure:3380: $? = 0
 configure:3369: cc -v 5
 Using built-in specs.
 Target: amd64-undermydesk-freebsd
 Configured with: FreeBSD/amd64 system compiler
 Thread model: posix
 gcc version 4.2.1 20070831 patched [FreeBSD]
 configure:3380: $? = 0
 configure:3369: cc -V 5
 cc: '-V' option must have argument
 configure:3380: $? = 1
 configure:3369: cc -qversion 5
 cc: unrecognized option '-qversion'
 cc: No input files specified
 configure:3380: $? = 1
 configure:3400: checking whether the C

freebsd-update; What did I do?

2012-01-31 Thread Martin McCormick
I started to run freebsd-update to upgrade a 8.x system
to 9.0-RELEASE

# freebsd-update -r 9.0-RELEASE upgrade

Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/bin src/cddl src/contrib src/crypto src/etc
src/games src/gnu src/include src/krb5 src/lib src/libexec src/release
src/rescue src/sbin src/secure src/share src/sys src/tools src/ubin
src/usbin world/base world/dict world/doc world/info world/manpages
world/proflibs

The following components of FreeBSD do not seem to be installed:
world/catpages world/games world/lib32

Does this look reasonable (y/n)? yes

Fetching metadata signature for 9.0-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.

The update metadata is correctly signed, but
failed an integrity check.
Cowardly refusing to proceed any further.

#

What is the next step, here?

Thank you.
___
freebsd-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-update; What did I do?

2012-01-31 Thread Martin McCormick
Matthew Seaman writes:
 That's a known problem and fixable by first updating your 8.2-RELEASE
 machine to the latest patch level before trying the update to 9.0

It appears to be working now. Thank you.
___
freebsd-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: Sample getaddrinfo Code Compiles in Linux but not FreeBSD.

2012-01-18 Thread Martin McCormick
Peter Andreev writes:

 #include netinet/in.h

Many thanks. That made the FreeBSD version work just as
well.

As soon as I saw netinet.h, I realized it wasn't in the
original  code as the Linux libraries apparently accomplish the
same thing without that header.

Martin
___
freebsd-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-update auto merge fails on trivial VC lines

2012-01-10 Thread Martin Koch Andersen
Hello,

When upgrading from FreeBSD 8.2-RELEASE to 9.0-RELEASE using freebsd-update, 
I'm asked to merge, what seems like, everything in /etc manually.
And all of the merges are trivial version controls lines.

E.g. my /etc/amd.map (which I never modified) begins with:

# $FreeBSD: releng/8.2/etc/amd.map 164015 2006-11-06 01:42:11Z obrien $

And this file (and line) freebsd-update asks me to manually merge. I wonder why 
that is.

Kind regards,

-- 
Martin Koch Andersen
http://925.dk___
freebsd-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: Rsync and Preservation of Ownership and Permissions

2011-11-24 Thread Martin McCormick
Michael Sierchio writes:
 Does the same user exist on the remote system, with the same uid, etc.?

Yes.

 If you're using rsync with ssh as the transport, and connecting to the
 remote machine as the backups user, that's who will own the files on
 its local filesystem...

I thought rsync had some encoding it might slip in to the tree
that another rsync run as root on the recovering system could
use to figure out all those thousands of ownerships and get them
all straight, but this makes perfect sense.
 You've written a lot of narrative, but show us precisely what commands
 you're running.  Why would you run the command as root, and ssh as
 backups, when you want them to be owned by normal ?

Because root is the only user who can see files from
all other users so root starts the process. Here is what I
tried. Remember, folks, this will not work! This tries to backup
a system named z.

##!/bin/sh
#rsync --delete -alHvq --exclude /proc // back...@backup-server.okstate.edu:z

 You can run the command as root, and use restricted ssh keys (use
 authorized_keys to restrict it to executing a specific rsync
 command)  you can run rsync as a regular user to that user's
 account on the remote system...

per...@pluto.rain.com writes:
 Perhaps you could have rsync log in to a jail on the backup server,
 where it could safely be granted root permission.

Hmm. It's all rather clear, now. A jailed environment that looks
like root is about the only thing that could work.

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


Rsync and Preservation of Ownership and Permissions

2011-11-23 Thread Martin McCormick
Rsync is a great utility, but is there a way to preserve
ownership and permissions if rsync remotely logs in to a backup
server as a normal user?

The recovery process is run by root but copies all the
files from the backup server as a normal user and uses its root
capabilities to restore them.

What happens now is that all the files end up owned by
and in the group of the user ID that copied the information from
the client to the server. That's obviously not too useful so I
suspect there is a better way than trying to make a remote login
to root from another system.

Basically, cron starts a backup as root on system A.
System A makes a remote ssh connection using the -e flag to
backups@server. The system trying to recover the files starts a
rsync process as root which remotely connects to backups@server
to retrieve the files.

In practice, the files come across but every last one of
them is owned by and in the group of user backups.

Any ideas are greatly appreciated.

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


Re: zfs file names (inodes) without files (ENOENT)

2011-11-07 Thread Martin von Gagern
On 07.11.2011 22:01, David Brodbeck wrote:
 On Sun, Nov 6, 2011 at 3:32 AM, Martin von Gagern
 martin.vgag...@gmx.net wrote:
 Makes me wonder whether I'd be better off with either some OpenSolaris
 descendant (hoping that the problem only lies in the FreeBSD port of
 ZFS) or with Linux (and either btrfs or some more mature fs).
 
 Both of those solutions are guaranteed to contain a different set of
 bugs. ;)

No doubt about that, but I have the hope that bugs I don't encounter
within the first 48 hours of system usage might be less likely to cause
severe trouble in the long run, too.

 I've looked at both FreeBSD and OpenIndiana, and could give
 you some thoughts on what I see is their respective strong and weak
 points, if you're interested.

Thanks for the offer, but see below.

 It *would* be interesting to see what OpenIndiana made of that
 filesystem.  You could boot a LiveCD and then import the pool and see
 if you had the same issue.  If nothing else that might let you delete
 the problematic file entry.

Thought the same, and gave it a try. zpool claims there is no pool of
that name. zpool -f doesn't help. Looking at the device nodes, it
appears as though OI would only recognize 3 of my 4 HDDs, which seems
really strange, given the fact that they're all wired the same way. So I
didn't even get to looking at the dir in question. That, combined with
the fact that OI boot process provides too little information for my
taste, and the additional fact that Backspace doesn't seem to work out
of the box, has let me develop a dislike for the system upon initial
use. I don't fancy having to configure such basic things.

So I'm heading towards Linux now, as no solution to the FreeBSD ZFS
problems seems to be forthcoming. Will probably be running some tandem
of btrfs and Ext4 for now, until btrfs becomes more mature or space
requirements force me to drop one of those file systems.

Thanks for your input, David,
 Martin



signature.asc
Description: OpenPGP digital signature


Re: zfs file names (inodes) without files (ENOENT)

2011-11-06 Thread Martin von Gagern
On 05.11.2011 23:13, Martin von Gagern wrote:
 Is there any
 tool to check or rebuild the inode data structures of zfs? zpool scrub
 doesn't seem to fit the bill, as its manpage indicates a computation of
 file content checksums.

Ran a scrub anyway, no errors reported there, problem persist.

Makes me wonder whether I'd be better off with either some OpenSolaris
descendant (hoping that the problem only lies in the FreeBSD port of
ZFS) or with Linux (and either btrfs or some more mature fs).

Unless I can find out what's happening here and how to avoid it from
happening again in the future, that is. Short of paying for ECC RAM and
fancy top-grade HDDs. I still doubt it's hardware failure, and even if
it were I'd rather be able to fix any problems that occur than cling to
the vain hope that I could ever completely avoid them by spending money.

Martin



signature.asc
Description: OpenPGP digital signature


zfs file names (inodes) without files (ENOENT)

2011-11-05 Thread Martin von Gagern
Hi!


A. SUMMARY

Long story short: I have a file name on my zfs without a file to it. ls
will include it in the dir content, but stat-ing that file will result
in an ENOENT error: No such file or directory.


B. HISTORY

So how did I come to this situation? I've recently had to kill the
sending side of an rsync, with the receiving side on FreeBSD. For
reasons yet unknown, the next run of rsync started deleting stuff it
shouldn't. Details on this are in PR 162318 [1], but quoting the most
important things:

Logging into the receiving FreeBSD as root, I found that large parts of
the user's home directory content had disappeared, even outside the
subdirectory used as the rsync destination!
- All the .* config files in the home directory were gone
- The .ssh directory was still present, but its content was gone as well
- Both the home dir and the .ssh subdir contained a file rsync.%stat,
  which should be the name of an extattr instead, used to implement the
  rsync --fake-super command line option.

[1] http://www.freebsd.org/cgi/query-pr.cgi?pr=162318


C. SYMPTOMS

I first assumed a problem in the binary rsync build for FreeBSD, but
devs on the above bug report favored RAM failure or an upstream source
code bug. So I gave it another try, and payed closer attention to the
error messages. Among them was the following:

 rsync: stat /home/name/backup/etc/ca-certificates failed: No such file or 
 directory (2)

Strange thing is, this isn't specific to rsync at all, it can be
reproduced using simple command line tools like ls:

 # ls /home/name/backup/etc/ | grep ca-cert
 ca-certificates
 ca-certificates.conf
 ca-certificates.conf~
 # ls /home/name/backup/etc/ca-*
 ls: /home/name/backup/etc/ca-certificates: No such file or directory
 /home/name/backup/etc/ca-certificates.conf
 /home/name/backup/etc/ca-certificates.conf~

So as you see, the name is returned by readdir(3), where both ls for the
dir and the wildcard expansion find it. But anything that stat(2)s the
file will encounter an ENOENT error. zpool status says everything's
fine, so zfs isn't aware of any corruption.

I believe that no matter what errors user space programs might make, the
kernel zfs driver should never allow the above to happen. Either a file
is there, or it isn't, there should be no such mixture. So what do you
think, is this likely to be a bug in the zfs implementation?

I found one other person describing problems like this: in threads
titled file lose inode in Memory-Based file system., lisen1001
described pretty much the same thing, except on ramdisk on 8.2 instead
of my own hdd-based raidz on 9.0-RC1 [2,3].

[2] http://thread.gmane.org/gmane.os.freebsd.questions/280183
[3] http://thread.gmane.org/gmane.os.freebsd.devel.file-systems/13153


D. NEXT STEPS

As I'm new to FreeBSD, I'm not yet sure how bug reports are handled
around here. As I said, I've reported a bug report against rsync, and it
has been closed on the grounds that this appears to be an upstream
problem. Would it make sense to include the above information in the bug
report for reference? Would replying to the gnats address be enough to
accomplish that? Should the bug be reopened, as I assume all my problems
to be related, and as the zfs corruption at least is specific to
FreeBSD? If so, how does one reopen a report? Or who can do that?

Do you agree that this looks like a problem in the ZFS implementation?
Should I file a new problem report for that?

Can you suggest any way I could resolve the corruption on my local ZFS
pool, short of destroying and recreating the whole file system? rm for
the file doesn't work, as it, too, encounters the ENOENT. Is there any
tool to check or rebuild the inode data structures of zfs? zpool scrub
doesn't seem to fit the bill, as its manpage indicates a computation of
file content checksums.


Greetings,
 Martin von Gagern



signature.asc
Description: OpenPGP digital signature


Re: zfs file names (inodes) without files (ENOENT)

2011-11-05 Thread Martin von Gagern
On 06.11.2011 00:27, David Brodbeck wrote:
 I'm curious if you've tried ls -B to see if there are any
 non-printable characters in the filename.

Hadn't tried yet, did try now, nothing strange there.
Nevertheless, thanks for the suggestion, David.

By the way, even ls -l of the whole directory will stat the file and
thus result in an error. There can hardly be any strange characters
involved there, as the name should be straight from readdir.

Martin



signature.asc
Description: OpenPGP digital signature


FreeBSD 8.1/amd64: Boot from eSATA drive (external)?

2011-10-17 Thread Martin Schweizer
Hello

I'v got a notebook (HP Elite 2560p) which can boot from an exteral eSATA drive. 
Can FreeBSD boot from there? Is it supported?

Kind regards,

-- 

Martin Schweizer
off...@pc-service.ch

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22

___
freebsd-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: Help with devd.conf

2011-10-01 Thread Martin Alejandro Paredes Sanchez
On Saturday 24 September 2011 07:04:18 Rod Person wrote:
 I'm trying to understand devd.conf to auto mount usb devices. For
 example I have a usb drive that will show up as da1 so as a test I just
 want to write something to syslog when it is plugged in.

 This is what I have tried in devd.conf:

 notify 20{
   match system  DEVFS;
   match subsystem   CDEV;
   match typeCREATE;
   match cdevda[1-9]+;
   action logger you plugged in some usb device;
 };

 notify 20{
   match system  USB;
   match subsytemDEVICE;
   match typeATTACH;
   action logger some type of usb thing attached;
 };


I do not belive that the values of that variables are in upper case

To see what is happening in devd, try this

Create the file /usr/local/etc/devd/printvar.conf with

=
#
# Run devd in debug mode
#  devd -Dd
#

attach 0 {
device-name umass[0-9]+;

action /usr/local/etc/devd/printvar.sh '$bus' '$cdev' '$cisproduct' 
'$cisvendor' '$class' '$device' '$device-name' '$function' '$manufacturer' 
'$notify' '$product' '$serial' '$slot' '$subvendor' '$subdevice' '$subsystem' 
'$system' '$type' '$vendor';
};
=

Also, creat the file Create the file /usr/local/etc/devd/printvar.sh

=
#!/bin/sh
{
  echo $# parametros
  echo $@
  echo bus  = $1
  echo cdev = $2
  echo cisproduct   = $3
  echo cisvendor= $4
  echo class= $5
  echo device   = $6
  echo device-name  = $7
  echo function = $8
  echo manufacturer = $9
  shift 9
  echo notify   = $1
  echo product  = $2
  echo serial   = $3
  echo slot = $4
  echo subvendor= $5
  echo subdevice= $6
  echo subsystem= $7
  echo system   = $8
  echo type = $9
  shift 1
  echo vendor   = $9
}  /tmp/VariablesDevd.txt
=

Check the content of /tmp/VariablesDevd.txt

You can also try this other advise for auto mount

http://networking.ringofsaturn.com/Unix/freebsdautomount.php
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: ZFS v28 and aclmode

2011-07-25 Thread Martin Matuska
Dňa 22. 7. 2011 9:48, Eugene Mitrofanov wrote / napísal(a):
 Hi all,

 I just updated to 8.2S and zfs v28 and notice strange thing: in the manual i 
 can read about aclmode but i can not use it in the real life:

 # zfs set aclmode=passthrough data/public
 cannot set property for 'data/public': invalid property 'aclmode'

 Obsolete manual?

 Good luck
I imported reintroduction of aclmode from Illumos to 9-CURRENT in
revsion 224174
MFC to 8-STABLE will be around Aug 1, 2011.

More information:
https://www.illumos.org/issues/742
http://svnweb.freebsd.org/base?view=revisionrevision=224174

-- 
Martin Matuska
FreeBSD committer
http://blog.vx.sk

___
freebsd-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: LSI MegaRAID 9260 on FreeBSD 8.2 amd64

2011-07-07 Thread Martin Nilsson

On 2011-07-04 03.20, Sam Vaughan wrote:

Hi,

I want to use an LSI MegaRAID 9260 on FreeBSD 8.2 amd64 using mfi and I have 
two quick questions:

LSI's MegaRaid SAS documentation [1] states that Currently, the FreeBSD driver is 
supported only on 32-bit FreeBSD.  On the other hand the FreeBSD 8.2 hardware 
compatibility page [2] states that the mfi driver supports the MegaRaid 9260 in all three 
of the i386, ia64, amd64 ports.

Is LSI's documentation simply out of date or is there some issue with the mfi 
driver on amd64?


There are two different diverged mfi drivers!
One that comes with FreeBSD and works well with the 9260 cards both 
under i386 and amd64.


Then we have the LSI driver, this one works under i386 and some versions 
also works under amd64 but the latest one on LSI:s web is i386 only. The 
current LSI driver supports the 9240 budget cards skinny and also the 
new fast 9265/9285 cards Thunderbolt these are not supported by the 
FreeBSD driver.


/Martin

--
Martin Nilsson, CEO, Mullet Scandinavia AB, Malmö, SWEDEN
E-mail: mar...@mullet.se, Phone: +46-(0)708-59 99 91, Web: www.mullet.se

Our business is well engineered servers optimised for FreeBSD  Linux

___
freebsd-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: Two Networks on one System

2011-06-21 Thread Martin McCormick
Here is what the issue is right now. The remote campus
in question has been on number space that was part of our Class
B network. They got a block of subnets for their DNS's and
campus enterprises and work stations. We secured them their own
number space and they are migrating from their portion of our
network to their new network and both nets are presented
routable from the rest of the world.

If you do a whois query for their domain, you get the
address on our network of their primary DNS. When one updates
the whois data, there is a lag of some hours until new queries
start going to the new address of their primary DNS. In the mean
time, we don't really care but we would like for the new
interface for the primary to be reachable so that the minute the
information changes, we're answering lookups. After that point,
we will permanently take down the old interface address on our
network and probably reboot with the normal configuration now
being the new IP address.

The problem I have, probably due to a misunderstanding
of what I need to do, is easy to describe.

The defaultrouter statement in rc.conf or

route add default x.x.x.x

from the command line sets an interface to know that packets
whose destinations or sources that are outside the subnet go to
that default gateway.

When I set up the secondary interface, I have not been
able to come up with a statement or statements that tell fxp1
that it's default router is y.y.y.y so you can't ever reach it
from outside the new subnet.

Once traffic ever gets in to the system, it will
probably stay together based on the interface where it came
from, but it won't have to do it for hopefully more than a few
hours.

I have tried both a second physical connection and an
alias and have ended up with the same behavior each time. Since
we have the second NIC active, I prefer to use it if I can ever
get it to use its router just like the primary interface does.

Right now, I can get on to our secondary DNS which is in
the same subnet as the new address for the primary and log right
in to the primary through the new interface. From anywhere else
on the Earth, that new address is as dead as a doornail.

I certainly appreciate every posting so far as routing
is one of the thorniest issues one can encounter in networking
so the more one is aware of, the less head-scratching and
frustration there is.

Martin McCormick
___
freebsd-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: Two Networks on one System

2011-06-21 Thread Martin McCormick
Damien Fleuriot writes:
 SOLUTION:
 You need a way to reply using a specific route depending on which IP was
 requested by the internet user at 50.50.50.50
 
 If they queried 100.100.100.53, you need to route through 100.100.100.1.
 If they queried 200.200.200.53, you need to route through 200.200.200.1.
 
 
 TECHNICAL IMPLEMENTATION:
 pf provides the tools for what you'd like to do, through the reply-to

Thanks for that excellent explanation. 

Everybody has been very helpful so now, I at least know
what I need to work on and many thanks for the example.

I am not quoting the rest of the message, but will save
it as I set up the rules.

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


Two Networks on one System

2011-06-20 Thread Martin McCormick
Following up on a question I wrote Friday June 17, a
person from this list kindly referred me to the FreeBSD
Handbook and the sections on configuring Ethernet interfaces. It
has an excellent example as to how to set the default gateway
from the command line. I tried it and it worked. Can a second
interface such as fxp1 also be informed about the
router on its network while we still keep the default route for fxp0?

I hope to remotely ping both fxp0 and fxp1's ip
addresses from off site and get an answer from both.
So far, fxp0 is visible off of its network and fxp1 is
only present on its subnet.

It appears that you can only have one default route per
system and I need this system to appear on both networks for a
day or so while we move from one subnet to another.

I presently have FW rules for fxp1 that should totally
open everything:

00090 allow ip from any to 192.168.1.250 via fxp1
00091 allow ip from 192.168.1.250 to any via fxp1

Obviously, I am still missing something.

Thanks for any explanation as I think this sort of thing
is fairly common.
___
freebsd-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: Two Networks on one System

2011-06-20 Thread Martin McCormick
Matthew Seaman writes:
 Yes.  It's common in the sense that a lot of people think its something
 that should work, and get confused when it doesn't prove simple to set up.

Thank you. I think I may have stumbled on to what I need
to do discussed in the Handbook under the multi-homed host
section. We won't be doing any routing between the two networks
but I think I have been using the wrong form of the route
command as there is an example of something very similar which I
will try to see if the second NIC will  finally find its router.

I appreciate your answer as it clears up a few more
questions I had.

My thanks also to

Gary Gatten
Probably only a single active default global ip route, but you can add 
network/host routes to prefer a specific interface for said routes.

Again thanks to all. I will keep digging.
___
freebsd-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: Two Networks on one System

2011-06-20 Thread Martin McCormick
I would like to say that I got it working, but after
looking at the duel-homed host section of the Handbook, I am
still stuck. A Google search turned up a thread from a couple of
years ago that almost echoed my exact words. We've got a system
with network interfaces on two disjointed networks. No routing
is desired, but we very much want for both interfaces to be
accessible from the world so each interface has to know about
its nearest gateway just as the primary interface knows about
the default route. What one seems to always be able to do is get
the primary up and talking to the world with no real trouble.
The secondary is on its network and you can log in from another
host on the same subnet but you can never see it from the world,
at large.

Before the thread died out, the questioner was wondering
if it was simply not possible to achieve this functionality. I
am wondering the same.

We are moving a primary name server from network A to
network B on one of our branch campuses. If the secondary
interface was reachable from the world, we can change the whois
information and not worry about the exact second the change goes
in to effect.

The DNS should just answer whether the query came from
network A or Network B. The routing is already handled so the
system in question just has to be there and respond on both
networks for a day or so.

We don't have a spare box to run on the new network
space or I would have done that days ago.;-(

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


Second Network Almost but Not Quite Works.

2011-06-17 Thread Martin McCormick
The system in question has its primary NIC on one particular
network and a default route to the gateway on that network and
all of that works fine.

I needed the system to communicate fully on two
different networks so we enabled the second interface card and
it works on that second subnet. You can connect to hosts there
and hosts on that network see the new interface. The problem is
that  it doesn't know anything about the router on that second
network.

I don't want it to loose the default router but it needs
to be fully connected from the second interface as it is a name
server and it is about to move from one network to the other.

I enabled the second interface as follows:

ifconfig fxp1 inet 192.168.1.13  netmask 255.255.255.0

Is the route add command what I need to cause that
interface to speak to the router and to hear packets addressed
to it from that router?

The routing issue seems to be the only connectivity
problem that the second interface has.

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


Second Network Almost but Not Quite Works.

2011-06-17 Thread Martin McCormick
The system in question has its primary NIC on one particular
network and a default route to the gateway on that network and
all of that works fine.

I needed the system to communicate fully on two
different networks so we enabled the second interface card and
it works on that second subnet. You can connect to hosts there
and hosts on that network see the new interface. The problem is
that  it doesn't know anything about the router on that second
network.

I don't want it to loose the default router but it needs
to be fully connected from the second interface as it is a name
server and it is about to move from one network to the other.

I enabled the second interface as follows:

ifconfig fxp1 inet 192.168.1.13  netmask 255.255.255.0

Is the route add command what I need to cause that
interface to speak to the router and to hear packets addressed
to it from that router?

The routing issue seems to be the only connectivity
problem that the second interface has.

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


Re: How to be an imap Client?

2011-04-21 Thread Martin McCormick
per...@pluto.rain.com writes:
 Being a university, okstate.edu has students, most of whom are
 not in the CIS department or in any way under control of the CIS
 department's sysadmin.  Need I say more?

Spot on. About 25,000 students and some of them respond to
phishing attempts and make other poor management decisions, many
of which are done with the best of intentions.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to be an imap Client?

2011-04-20 Thread Martin McCormick
This FreeBSD system uses sendmail in normal smtp
configuration. I use procmail and nmh to manage incoming
messages and it all works great so I don't want to destroy all
that.

I do, however, need to use imap to send messages from
this system through our Microsoft Exchange gateway because some
systems use DNSBL and our entire network is on the blacklist so
one must send from the gateway which, I guess, must be
whitlisted.

Is there any FreeBSD-compatible package that will act as
a imap client so I can send messages, when needed, through the
Exchange gateway and still preserve present smtp functionality?

Many thanks. What a mess needing to send one message to one
person is turning in to.

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


Re: How to be an imap Client? Solved, somewhat

2011-04-20 Thread Martin McCormick
Ruben de Groot writes:
 There is the Mail::IMAPClient perl module (or Net::IMAP::Simple,
 perl's about choice ;-) )

Many thanks as this may come up again. In actuality, I was able
to end up using simple SMPT mail to use our Exchange gateway. I
just set that gateway as a smarthost which I thought I was
already doing.

I then made nmh generate the from line that we need for
such messages and it now is going through the gateway as a smart
host.

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


Modifying Sendmail's Configuration the Correct way.

2011-04-20 Thread Martin McCormick
The /etc/mail/sendmail.cf file very clearly tells one
not to edit it directly so I edited the
/etc/mail/my.name.domain.mc file as stated in documentation to
cause this system to send all out-bound mail through a smart host.

The .mc file part that adds the smart host looks like:

dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')
define(`SMART_HOST', `mailserver.okstate.edu')

After that, I did a make in that directory and things
seemed to go well. After restarting sendmail, it still wanted to
resolve normally and not use the gateway.

The only way we could get it to behave as desired was to
do what one is not supposed to do and edit sendmail.cf and add
the mailserver.okstate.edu name right against the line beginning
with DS

After another restart, everything worked. What am I
failing to do as this is not the proper way to reconfigure
sendmail?

The DS line in the master file looks like

DSmailserver.okstate.edu

Many thanks and the handbook is very helpful but I
haven't seemed to run across anything that directly addresses
this situation.
___
freebsd-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: Modifying Sendmail's Configuration the Correct way.

2011-04-20 Thread Martin McCormick
Thanks to all. Somehow, I missed the make install. I will give
it another try and it will probably work as it should.

This is a great list and everybody is very nice even to those of
us who have been running FreeBSD for many years but are trying
new things.

Greg Larkin writes:
 Try these commands, and the sendmail.cf will be updated from the .mc file:
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Stopping Less from creating Log Files

2011-04-12 Thread Martin McCormick
Lowell Gilbert writes:
 The secure mode disables log files, but it also changes several other
 behaviours, so you may not find it to be an improvement.  The code
 supports changing those secure features separately, but only by
 editing the source; if you go that way, it will probably be much easier
 to use the ports version of the program instead of the base system's.

Very good.Thanks. I looked up what secure mode does and
I see what you mean. I will just have to try it and see if I
need the ports package or not.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Stopping Less from creating Log Files

2011-04-11 Thread Martin McCormick
This is a minor problem but I use more to read Email messages
from nmh. If one forgets what screen one is in, it is possible
to start typing and create a log file of the message in which
ever mailbox directory one is reading out of.

The man page for more is actually linked to less even
though FreeBSD has /usr/bin/more and less. I even tried in the
.mh_profile to call more with -Oo/dev/null but if you hit a key,
the logfile prompt appears and any subsequent key strokes are
part of the new file name.

This really is only a minor nuisance because it creates
junk files that then have to be removed from the directory. So,
if there is a way to make more or less not write anything, it
would be more or less appreciated.

Many 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


Upgrade 8.1 to 8.2 still broken: info2html

2011-03-31 Thread Martin Schweizer
Hello 

There was a bug described in 2003:

[...] 
 I then started a build - with a -DNOCLEAN option for speed and it 
 failed again. I ran this under 'script' to get the output. 
 
 Here is the tail of that file. 

  stage 4: building everything.. 
[...] 
 === lib/libcom_err/doc 
 info2html com_err.info 
 info2html:No such file or directory 
 *** Error code 1 
 
Remove the FORMATS=html from /etc/make.conf when building world. 
This is the known issue that FORMATS is used both by doc.docbook.mk 
and bsd.info.mk, and I will fix that soon
[...]

Today I run in the same problem if I updatet from 8.1 to 8.2.

Only for those which have the same problem.

Regards,


-- 

Martin Schweizer
off...@pc-service.ch

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22

___
freebsd-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's tftp and tftpd-hpa

2011-02-11 Thread Martin Cracauer
FreeBSD's current tftp client doesn't work with tftpd-hpa.

FreeBSD 9.0-CURRENT (XEN) #0: Fri Jan 21 15:54:41 EST 2011
~(fbpv)1% tftp 192.168.1.1
tftp get pxeboot
Got ERROR packet: Unsupported option(s) requested
Error code 2048: Unsupported option(s) requested
tftp 

Anybody got a solution for this? Otherwise I'll hack it up.

I'm forced to use tftpd-hpa because I have diskless Linux clients that
are brought up with pxelinux.0 and that one needs the option to
provide file size beforehand.  But FreeBSD's tftp client wants other
options and KABOOM.

The bad thing about this is that I'm debugging probably unrelated
problems with pxeboot and I have no way of knowing for sure whether my
problems might be caused by more options clashes.  It's not that
tftpd-hpa log which options specifically were requested and denied.
Or that FreeBSD's client says which options it requested before it
blew up.

Martin
-- 
%%%
Martin Cracauer craca...@cons.org   http://www.cons.org/cracauer/
Shameless advocate of FreeBSD.  http://www.freebsd.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Using Multiple -prune directives in a find command

2011-02-08 Thread Martin McCormick
Mike Clarke writes:
 find . -type d -name dir1 -prune -o -name dir2 -prune -o -name \*
 
 ... should list all files except those in dir1 or dir2

It certainly does. Thank you. I was off on enough wrong syntax
tracks that it probably would have taken a very long time to
figure it out. I found tons of find examples but very little use
of -prune in those examples.

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


Using Multiple -prune directives in a find command

2011-02-07 Thread Martin McCormick
Can one use the -prune directive multiple times in a
find command to specify a list of directories not to descend?

It would be like

find . -name * -prune dir1 -prune dir2 -print

or whatever you wanted find to do, but that does not work or I
wouldn't be asking. Find appears to get confused and thinks dir1
is a command.

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


Can one Download Old Packages?

2011-01-10 Thread Martin McCormick
Is there a safe site to find the rsync package for
FreeBSD6.3? We still have a few 6.3 systems around because the
commercial backup client we have for an enterprise-wide solution
will not install on FreeBSD8.1?

This is one of those times when we are fighting the war
with what we presently have rather than what we wish we had.

I must restore the /dev directory on a 6.3 system and
rsync would have done it hours ago but I didn't know that the
few remaining 6.3 systems didn't have it installed.

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


Re: Can one Download Old Packages?

2011-01-10 Thread Martin McCormick
Devin Teske writes:
 ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/6.3-RELE
 ASE/packages/All
 
 Have fun.

Thanks. I was on the right server but took a wrong turn.
___
freebsd-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: portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
I should also mention that I have an almost-identical server running
FreeBSD 7.3-release-p2 in backup production and did not experience
these problems when upgrading from php 5.3.3_2 to php 5.3.4. Something
in my 8.1-release development server is causing the problems with
upgrading PHP, so I'm reluctant to upgrade my production servers as
they are absolutely identical until I find a fix.

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


portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
Hi there, I'm having problems upgrading my php installation using the
ports tree. I use the latest version of portmaster on FreeBSD
8.1-release inside a jail, with all patches. I'm trying to upgrade
from php 5.3.3_2 to the new php 5.3.4 to fix a security vulnerability.

Here is the problem. When upgrading my PHP, some of the dependencies
fail because they are already installed. If I manually remove those
port-installed packages it continues to build past this point but then
the script breaks again with a later dependency. So the error below is
just one example of several I've encountered during the attempted
upgrade of a port. In the past this was never an issue because
portmaster is smart and would recursively install/reinstall all
required packages for me automatically. Something has changed now
because this functionality is no longer working for me.

I issue the command:
dev:/#portmaster -t -d php5

[...large amount of compilation data for php and various supporting
packages removed...]

===  Installing for libltdl-2.2.10
===   Generating temporary packing list
===  Checking if devel/libltdl already installed
===   libltdl-2.2.10 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of devel/libltdl
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/devel/libltdl.

=== Installation of libltdl-2.2.10 (devel/libltdl) failed
=== Aborting update

=== Update for devel/libltdl failed
=== Aborting update

=== Update for php5-mcrypt-5.3.3_2 failed
=== Aborting update

Terminated


At this point I am half-way upgraded only. Here is what pkg_version
-v shows now for php:

dev:/#pkg_version -v
php5-5.3.4  =   up-to-date with port
php5-ctype-5.3.4=   up-to-date with port
php5-curl-5.3.4 =   up-to-date with port
php5-dom-5.3.4  =   up-to-date with port
php5-extensions-1.4 =   up-to-date with port
php5-filter-5.3.4   =   up-to-date with port
php5-hash-5.3.4 =   up-to-date with port
php5-iconv-5.3.4=   up-to-date with port
php5-json-5.3.4 =   up-to-date with port
php5-mcrypt-5.3.3_2needs updating (port has 5.3.4)
php5-mysql-5.3.3_2 needs updating (port has 5.3.4)
php5-openssl-5.3.3_2   needs updating (port has 5.3.4)
php5-pdo-5.3.3_2   needs updating (port has 5.3.4)
php5-pdo_sqlite-5.3.3_2needs updating (port has 5.3.4)
php5-posix-5.3.3_2 needs updating (port has 5.3.4)
php5-session-5.3.3_2   needs updating (port has 5.3.4)
php5-simplexml-5.3.3_2 needs updating (port has 5.3.4)
php5-sqlite-5.3.3_2needs updating (port has 5.3.4)
php5-tokenizer-5.3.3_2 needs updating (port has 5.3.4)
php5-xml-5.3.3_2   needs updating (port has 5.3.4)
php5-xmlreader-5.3.3_2 needs updating (port has 5.3.4)
php5-xmlwriter-5.3.3_2 needs updating (port has 5.3.4)
php5-zlib-5.3.3_2  needs updating (port has 5.3.4)

Fortunately the security vulnerability appears to be gone now, at least:

dev:/#portaudit -Fa
auditfile.tbz 100% of   64 kB   64 kBps
New database installed.
0 problem(s) in your installed packages found.

So I'm probably fine but I'd like to get everything upgraded to the
same version one day soon.

Thanks,
Kelly
___
freebsd-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: portmaster problems upgrading to php 5.3.4

2010-12-28 Thread Kelly Martin
2010/12/28 Maciej Milewski m...@dat.pl:
 Have you read /usr/ports/UPDATING?
 There is a note:
 20101208:
  AFFECTS: autotools
  AUTHOR: autoto...@freebsd.org

  Another stage in the autotools cleanup that reduces tree churn whilst
  updating components, a number of ports have now moved to non-versioned
  locations since there is now only the concept of legacy and current
  versions.

  # portmaster -o devel/autoconf devel/autoconf268
  # portmaster -o devel/automake devel/automake111
  # portmaster -o devel/libtool devel/libtool22
  # portmaster -o devel/libltdl devel/libltdl22

Awesome, that fixed my problem. Thanks very much! I hadn't seen that
note in /usr/ports/UPDATING so I appreciate you pointing it out. And I
just ran this on all my servers and everything is now up to date,
cool!

Cheers,
Kelly
___
freebsd-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: mbr loader

2010-12-09 Thread Martin Alejandro Paredes Sanchez
On Wednesday 08 December 2010 22:08:56 xinyou yan wrote:
 1. when i install freebsd . I can write mbr and not write
 if i write mbr . freebsd can Identification  windows and load it

first, you are talking about boot loaders or boot managers; its different from 
MBR witch means master boot record

When you say FreeBSD can identify windows and load it, you have wrong the 
concept of FreeBSD can identify, because FreeBSD its not loaded yet, a program 
called BootEasy its the one identifying windows (an others OS) and display F1: 
Windows etc..

 
 2 if i do not write  . How  windows load bsd

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NT-BOOTLOADER

 
 3. Can freebsd load linux  (fedora)? and how  ?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#BOOTEASY-
LOADER

Look in ports for boot loaders (manager)

http://www.freebsd.org/cgi/ports.cgi?query=boot+loaderstype=textsektion=all
http://www.freebsd.org/cgi/ports.cgi?query=boot+managerstype=textsektion=all

Its a good idea to read Chapter 9 (Disks, File Systems, and Boot Loaders) of 
FAQ

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html

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


FreeBSD8.1 Can't get Syslog file to Log dhcpd Solved.

2010-10-29 Thread Martin McCormick
Ah, the  havoc of one stray space at the beginning of
a line.

I had noticed that all the other examples of various
logs one could create in syslog.conf worked right. What on Earth
was so special about:

 *.info;auth.info;mail.warning;cron.warning /var/log/syslog

It's that one stray space before the first asterisk.

I removed it and everything started working.

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


  1   2   3   4   5   6   7   8   9   10   >