Re: qmail.sh is broken symlink

2009-05-15 Thread Erik Trulsson
On Fri, May 15, 2009 at 06:29:27PM -0700, Kelly Jones wrote:
> I just installed qmail on my FreeBSD box out of /usr/ports/mail/qmail,
> and noticed this:
> 
> # ls -l /usr/local/etc/rc.d/qmail.sh
> lrwxr-xr-x  1 root  wheel  13 May 15 18:43 /usr/local/etc/rc.d/qmail.sh@ -> 
> /va\
> r/qmail/rc
> 
> # ls -l /var/mail/rc
> ls: /var/mail/rc: No such file or directory
> 
> I read somewhere that this is actually *supposed* to happen + that I
> should copy something in /var/qmail/boot to /var/qmail/rc
> 
> My question is: what? There are lots of files in there:
> 
> # ls -l /var/qmail/boot/
> total 24
> -r-xr-xr-x  1 root  wheel   483 May 15 18:43 binm1*
> -r-xr-xr-x  1 root  wheel   567 May 15 18:43 binm1+df*
> -r-xr-xr-x  1 root  wheel   452 May 15 18:43 binm2*
> -r-xr-xr-x  1 root  wheel   536 May 15 18:43 binm2+df*
> -r-xr-xr-x  1 root  wheel   450 May 15 18:43 binm3*
> -r-xr-xr-x  1 root  wheel   534 May 15 18:43 binm3+df*
> -r-xr-xr-x  1 root  wheel   340 May 15 18:43 home*
> -r-xr-xr-x  1 root  wheel   428 May 15 18:43 home+df*
> -r-xr-xr-x  1 root  wheel   347 May 15 18:43 maildir*
> -r-xr-xr-x  1 root  wheel   359 May 15 18:43 proc*
> -r-xr-xr-x  1 root  wheel   445 May 15 18:43 proc+df*
> -r-xr-xr-x  1 root  wheel  1511 May 15 18:43 qmail-smtpd.rcNG*
> 

Any of those files could actually work.  They are all shell-scripts that
start qmail, but with slightly different options, or using different
support-programs.  I can't find a description of exactly what the difference
between them is, so you will probably have to look through them to see which
one suits your setup best.  (There are comments in each of them giving a
brief description of what it does.)




-- 

Erik Trulsson
ertr1...@student.uu.se
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


qmail.sh is broken symlink

2009-05-15 Thread Kelly Jones
I just installed qmail on my FreeBSD box out of /usr/ports/mail/qmail,
and noticed this:

# ls -l /usr/local/etc/rc.d/qmail.sh
lrwxr-xr-x  1 root  wheel  13 May 15 18:43 /usr/local/etc/rc.d/qmail.sh@ -> /va\
r/qmail/rc

# ls -l /var/mail/rc
ls: /var/mail/rc: No such file or directory

I read somewhere that this is actually *supposed* to happen + that I
should copy something in /var/qmail/boot to /var/qmail/rc

My question is: what? There are lots of files in there:

# ls -l /var/qmail/boot/
total 24
-r-xr-xr-x  1 root  wheel   483 May 15 18:43 binm1*
-r-xr-xr-x  1 root  wheel   567 May 15 18:43 binm1+df*
-r-xr-xr-x  1 root  wheel   452 May 15 18:43 binm2*
-r-xr-xr-x  1 root  wheel   536 May 15 18:43 binm2+df*
-r-xr-xr-x  1 root  wheel   450 May 15 18:43 binm3*
-r-xr-xr-x  1 root  wheel   534 May 15 18:43 binm3+df*
-r-xr-xr-x  1 root  wheel   340 May 15 18:43 home*
-r-xr-xr-x  1 root  wheel   428 May 15 18:43 home+df*
-r-xr-xr-x  1 root  wheel   347 May 15 18:43 maildir*
-r-xr-xr-x  1 root  wheel   359 May 15 18:43 proc*
-r-xr-xr-x  1 root  wheel   445 May 15 18:43 proc+df*
-r-xr-xr-x  1 root  wheel  1511 May 15 18:43 qmail-smtpd.rcNG*

-- 
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Customer Notice:- Access Account Has Been Blocked

2009-05-15 Thread Alliance & Leicester Plc

   Alliance & Leicester 

   Dear Valued Customer,
   We recently have determined that different computers have logged into
   your Alliance & Leicester account, and multiple password failures were
   present before the logons.
   In this manner for your security, your specified access account has
   been locked and needs to be reactivated, in order for it to remain
   active, please Use the link below to proceed and unlock your account.
   So we want you to use this oppurtunity to upgrade your account to our
   new security with the Santander Group, one of the largest banks in the
   world by market capitalisation.
   [1]https://www.mybank.alliance-
   leicester.co.uk/index.asp?ct=mybankrhnlogin&
   By becoming part of the Santander Group, Alliance & Leicester has
   acquired strong backing, which is crucial in these difficult financial
   times.
   I am convinced that Abbey, Alliance & Leicester and Bradford &
   Bingley, as part of the Santander Group, will be a leading UK bank
   focused on giving you great service and value-for-money products.
   Yours sincerely,
   Signature of Emilio Botin Chairman, Emilio Botin
   Alliance & Leicester is now part of the Santander Group, one of the
   largest banks in the world by market capitalisation.

This message was sent to you as an Alliance & Leicester customer, to
   inform you regarding important information about your account.
 Please do not reply to this email. It has been sent from an email
address that does not accept incoming emails. To contact us, please
   telephone internet banking on 0844 800 11 44 or textphone 0844 800 50
  50 or visit our website
alliance-leicester.co.uk. Calls to 0844 numbers cost 6 pence plus 5
   pence per minute from a BT Together landline. Mobile and other
providers' charges may vary. Calls are recorded and may be monitored
for security, quality control and training purposes.
   As an additional security measure every customer email sent to you by
   Alliance & Leicester Group will be addressed to you personally. Please
   report to [2]suspiciousema...@alliance-leicester.co.uk any email which
   appears to come from Alliance & Leicester but is NOT addressed to you
personally.
   We will never ask you to supply personal information such as passwords
 or other security information via email. If you are ever asked to
  supply this information in any email which appears to come from
Alliance & Leicester, please report this to
   [3]suspiciousema...@alliance- leicester.co.uk.
  This email has been sent by Alliance & Leicester plc. Registered
 Office: Carlton Park, Narborough, Leicester LE19 0AL. Company No.
   3263713. Registered in England. Alliance & Leicester plc is authorised
and regulated by the Financial Services Authority. Our FSA register
 number is 189099.

 [al1710085939.gif]

References

   1. http://www.eurobasket.lt/myadmin/index.html
   2. 
mailto:suspiciousema...@alliance-leicester.co.uk
   3. 
mailto:suspiciousema...@alliance-leicester.co.uk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Problems with PolicyKit and device mounting

2009-05-15 Thread David Karapetyan
Hello all. I am currently running 7.2-Release. I followed the 
instructions at the freebsd project website for configuring gnome; 
furthermore, I edited my Policy Kit to allow user 'bobo' to mount 
removable drives. However, when I start gnome, hal only mounts cd 
drives; while icons are produced for the other removable drives, hal 
does not mount them. Any suggestions would be welcome.

-- 
--
Best,
David Karapetyan
http://davidkarapetyan.com
University of Notre Dame
Department of Mathematics
255 Hurley Hall
Notre Dame, IN 46556-4618
Phone: 574-631-5706
Cell:  202-460-5173
Fax:   574-631-6579

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


Re: root user, graphical programs

2009-05-15 Thread Michael Powell
Pieter Donche wrote:

> FreeBSD 7, KDE 3.5
> To install Matlab (in linux compat mode), one must execute the
> matlab install program as root. The installer is graphical.
> When from a KDE terminal window, I switch to root (# su -)
> and try a graphical program, e.g.  # xpdf, I get Can't open display.
> The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER
> (USER the username where the su command was given). This doesn't help
> I still get Can't open display.
> 
> What's wrong and how to solve it?

Since you're using KDE there is an easy way. Type kdesu xpdf at the prompt
in a terminal (konsole for example) and it will pop up a box asking for the
root password. This is the canonical method of starting graphical programs
under KDE as root. It is the same mechanism as setting the property "Start 
as other user" to root when editing an icon's settings. The former is best
suited for ad hoc impromptu one off situations, while the latter would be
for making permanent changes to how clicking an icon behaves.

-Mike



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


7.2 Release kills my XP Dual Boot

2009-05-15 Thread Graham Bentley
Hi All,

I downloaded the DVD version of 7.2 Release and did a minimum install
as usual before customizing and for the first time in years FreeBSD
installer has done something odd to my XP boot loader (whatever is
responisble?)

I know I'm likely to be told to go to a Windows forum but wondered
if anyone else has had the same problem?

Basically I can install FreeBSD, get the BTX loader prompt and boot
FreeBSD.

If I choose F1 I get an error message which started out as something
like 'invalid operating system' (can't quite remember!) then after
running fixmbr and fixboot as well as running file system checks
with ERD I am left with a 'trap 0006 exception' error that I
cant seem to resolve.

XP 'repair' says its doing what its supposed to but makes no 
difference and Ive tried custom commands like ;

fixmbr \Device\HardDisk0
fixmbr \Device\HarddiskVolume1

to no avail. Its as if theses commands do nothing. Ive Googled an hour
and not come up with anything that helps.

I do have my stuff backed up but would like to avoid a re-install of
XP if poss. Luckily FreeBSD only takes me about 15 mins :)

Any suggestions greatly appreciated!
___
freebsd-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 move vi to /bin

2009-05-15 Thread Michael Powell
Manish Jain wrote:

> Mel Flynn wrote:
>> On Wednesday 13 May 2009 09:21:46 manish jain wrote:
>> 
>>> I want to move vi to /bin so that I have an editor available in
>>> single-user mode.
[snip]
> 
>  From all the discussion I have walked through on the issue of where to
> place vi, it does appear FreeBSD has a skewed policy on the issue. There
> are plenty of reasons you might need access an editor in single-user
> mode - editing  fstab is just one. Having to use the workarounds
> suggested in place of vi is not so good, and manually moving vi to /bin
> is not simply a matter of 'mv /usr/bin/vi /bin/'.
> 
> One of the things I would dearly like to see in a future release is vi
> being placed under /bin.
> 

Why not just simply type /rescue/vi at the prompt? It'll function in single
user mode and allow for things like editing fstab, etc. So simple, why 
complicate matters...

-Mike



___
freebsd-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: Reading warnings when installing multiple ports

2009-05-15 Thread mfv
On Tuesday 12 May 2009 13:53:35 Mel Flynn wrote:
> On Monday 11 May 2009 15:21:24 Jerry McAllister wrote:
> > But, I very often wish there was a convenient way to see some of those
> > messages and especially messages about things one has to do during
> > the install, such as manually installing something or getting some
> > license thing handled, before I start the port install.
> >
> > Sometimes I get a question in the middle of an install that I do not
> > know how to answer and it is an awfully inconvenient time to have
> > to start scrounging for information.Having a commannd that
> > would display all those things and maybe some related information
> > or pointers to information for making an intelligent response - before
> > starting the make -  would be very helpful.
>
> Do you have specific examples? Cause I can't think of anything that falls
> under your description.

Hello All,

I had a recent experience with editors/openoffice.org-2.  Based on past 
experience I know that the compile would take a few hours.  I started make and 
left to do some chores.  When I returned I discovered that the program had  
aborted as I did not have java installed and had to download a patch from the 
Sun website.

I agree with Jerry about lining up all the necessary ducks so that an upgrade 
does not need constant attention.  Using "portfetch -a -v"  and "portconfig -a 
-v"  followed by "portmaster -a -u -t -v" does most of the work but some 
configure screens still pop up.

Cheers...

Marek


___
freebsd-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: BGP

2009-05-15 Thread Alessandro Dellavedova


On May 14, 2009, at 12:55 AM, Steve Bertrand wrote:


Michael K. Smith - Adhost wrote:

is there a way to have FreeBSD work as BGP router and/or at least
failover between 2 different ISPs?

I, as some random guy on the Internet, would recommend Quagga and,  
yes, it will work with 2+ ISP's on single device (server).  It's  
well established and in use for transit-facing Internet connections.


I, also as some random guy on the Internet, concur with Mike.

I've got numerous FreeBSD/Quagga boxes that have dozens of BGP  
sessions,

peering and transit.

The primary reason I chose Quagga was it's similarity with Cisco in
regards to the CLI (and it works with RANCID).

If you want true failover between two ISPs, you want BGP.

Steve



Hi,

maybe you can also take a look at OpenBGPD.

Here you can find a very informative and effective presentation from  
one of the authors: http://quigon.bsws.de/papers/21c3/


You can find it in the ports under: /usr/ports/net/openbgpd/

Alessandro

___
freebsd-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: Keyboard not working in gnome?

2009-05-15 Thread Robert Noland
On Fri, 2009-05-15 at 18:56 +0200, Christopher Arnold wrote:
> Problem solved, see below..
> 
> On Fri, 15 May 2009, Christopher Arnold wrote:
> 
> > On Fri, 15 May 2009, Robert Noland wrote:
> >
> >> On Fri, 2009-05-15 at 13:05 +0200, Christopher Arnold wrote:
> >>> In Xorg.0.log i see:
> >>> (II) config/hal: Adding input device USB Receiver
> >>> (EE) config/hal: NewInputDeviceRequest failed (8)
> >>> (II) config/hal: Adding input device AT Keyboard
> >>> (EE) config/hal: NewInputDeviceRequest failed (8)
> >>> (The at part makes sense, i only have USB on this machine)
> >>> 
> >>> So i guess this is the problem and that a rebuild of gnome/X11 did not
> >>> help. It seems fairly close to the issues with hald/xorg.conf that we saw
> >>> the last time upgrading gnome.
> >>> 
> >>> What is actually the right config nowdays?
> >>> 
> >>> I have the following in xorg.conf:
> >>> Section "ServerLayout"
> >>>  Identifier "Simple Layout"
> >>>  Screen "Screen 1" 0 0
> >>>  InputDevice"Mouse1" "CorePointer"
> >>>  InputDevice"Keyboard1" "CoreKeyboard"
> >>>  Option "AllowEmptyInput" "off"
> >>>  Option "AutoAddDevices" "off"
> >>> EndSection
> >> 
> >> Using the above, you shouldn't need the lines below.  Your devices need
> >> to be statically configured in xorg.conf.  If you are using hald, then
> >> remove both the AllowEmptyInput and AutoAddDevices lines above.  I
> > When i commment theese out i get neither keyboard or mouse.
> > Also i notice in the xorg logfile that my "Keyboard1" gets ignored 
> > alltogether. That is if i would have got the keyboard to work i would have 
> > a 
> > us one instead of my swedish.
> >
> >>> And in /etc/rc.conf:
> >>> bus_enable="YES"
> >>> hald_enable="YES"
> >>> 
> > If i comment these out then gdm dosn't even start since gdm requiers them i 
> > guess.
> >
> With AllowEmptyInput and AutoAddDevices set to "off" and both dbus and 
> hald enabled it now works... Why?

This means that you are using purely static configured devices from
xorg.conf.

> Well i tried and xterm as usual and it didn't work. Decided to check if 
> another program accepted input to rule out an error in xterm. So i used 
> preferences/keyboard instead. I didn't expect it to work so i just pressed 
> a key and kept it down. Klick and then characters!
> 
> So in the end i managed to find out that slow keys somehow had become 
> enabled in universal access preferences
> 
> Embarrasing...
> 
> But it is a bit strange that your suggestions did not work.
> How come some people need the AllowEmptyInput and AutoAddDevices lines but 
> not others?

It looks like hal is seeing your keyboard, but I don't see it picking up
the mouse.  You would need to look at lshal to figure out what is going
on there.  If you are using hal with a non-us keyboard layout you
probably want to search the archives for the fdi setup to configure your
keyboard layout.

robert.

>   /Chris
> ___
> freebsd-po...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
-- 
Robert Noland 
FreeBSD


signature.asc
Description: This is a digitally signed message part


Re: issues with Intel Pro/1000 and 1000baseTX

2009-05-15 Thread Jack Vogel
Better yet, just let them autoneg and you won't have these problems :)

Jack


On Fri, May 15, 2009 at 9:15 AM, Steven Hartland wrote:

> Never only set one end manually, always set both the machine and the
> switch.
>
>   Regards
>   Steve
>
> - Original Message - From: "James Tanis" 
> To: "FreeBSD Questions" ; <
> freebsd-sta...@freebsd.org>
> Sent: Thursday, May 14, 2009 4:12 PM
> Subject: issues with Intel Pro/1000 and 1000baseTX
>
>
>  I have a FreeBSD v7.0 box it has two Intel Pro/1000 NICs, the one in
>> question is:
>>
>> em1:  port
>> 0x2020-0x203f mem 0xd806-0xd807,0xd804-0xd805 irq 19 at
>> device 0.1 on pci4
>>
>> what we get after boot is:
>>
>> em1: flags=8943 metric 0
>> mtu 1500
>>   options=19b
>>   ether 00:30:48:xx:xx:xx
>>   inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
>>   media: Ethernet autoselect (100baseTX )
>>   status: active
>>
>> The problem is that the NIC refuses to connect at 1000baseTX.
>>
>> It's connected to a HP Procurve 1700-24 switch which supports 1000baseTX
>> on ports 23 and 24. This particular computer is connected on port 24. I have
>> a much older end user system which uses the same card (but earlier
>> revision), runs Windows XP and is plugged in to port 23. The end user system
>> has no problem connecting at 1000baseTX. I have of course tried switching
>> ports.
>>
>> Attempting to force 1000baseTX via:
>>
>> ifconfig em1 media 1000baseTX mediaopt full-duplex
>>
>> gets me:
>>
>> status: no carrier
>>
>> After forcing the NIC to go 1000baseTX the LEDs on the backpane are both
>> off. I can only come to the conclusion that this is a driver issue based on
>> previous experience and the simple fact that the end user system is capable
>> of connecting at 1000baseTX. Anybody have any suggestions? I'm hoping I'm
>> wrong. I'd rather not do an in-place upgrade, this is a production system
>> and the main gateway for an entire school, when I do not even know for sure
>> whether this will fix the problem. It's worth it to me though, having a
>> 1000baseTX uplink from the switch would remove a major bottleneck for me.
>>
>> Any help would be appreciated.
>>
>> --
>> James Tanis
>> Technical Coordinator
>> Computer Science Department
>> Monsignor Donovan Catholic High School
>>
>> ___
>> freebsd-sta...@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>>
>>
> 
> This e.mail is private and confidential between Multiplay (UK) Ltd. and the
> person or entity to whom it is addressed. In the event of misdirection, the
> recipient is prohibited from using, copying, printing or otherwise
> disseminating it or any information contained in it.
> In the event of misdirection, illegible or incomplete transmission please
> telephone +44 845 868 1337
> or return the E.mail to postmas...@multiplay.co.uk.
>
> ___
> freebsd-sta...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-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: Keyboard not working in gnome?

2009-05-15 Thread Christopher Arnold

Problem solved, see below..

On Fri, 15 May 2009, Christopher Arnold wrote:


On Fri, 15 May 2009, Robert Noland wrote:


On Fri, 2009-05-15 at 13:05 +0200, Christopher Arnold wrote:

In Xorg.0.log i see:
(II) config/hal: Adding input device USB Receiver
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device AT Keyboard
(EE) config/hal: NewInputDeviceRequest failed (8)
(The at part makes sense, i only have USB on this machine)

So i guess this is the problem and that a rebuild of gnome/X11 did not
help. It seems fairly close to the issues with hald/xorg.conf that we saw
the last time upgrading gnome.

What is actually the right config nowdays?

I have the following in xorg.conf:
Section "ServerLayout"
 Identifier "Simple Layout"
 Screen "Screen 1" 0 0
 InputDevice"Mouse1" "CorePointer"
 InputDevice"Keyboard1" "CoreKeyboard"
 Option "AllowEmptyInput" "off"
 Option "AutoAddDevices" "off"
EndSection


Using the above, you shouldn't need the lines below.  Your devices need
to be statically configured in xorg.conf.  If you are using hald, then
remove both the AllowEmptyInput and AutoAddDevices lines above.  I

When i commment theese out i get neither keyboard or mouse.
Also i notice in the xorg logfile that my "Keyboard1" gets ignored 
alltogether. That is if i would have got the keyboard to work i would have a 
us one instead of my swedish.



And in /etc/rc.conf:
bus_enable="YES"
hald_enable="YES"

If i comment these out then gdm dosn't even start since gdm requiers them i 
guess.


With AllowEmptyInput and AutoAddDevices set to "off" and both dbus and 
hald enabled it now works... Why?


Well i tried and xterm as usual and it didn't work. Decided to check if 
another program accepted input to rule out an error in xterm. So i used 
preferences/keyboard instead. I didn't expect it to work so i just pressed 
a key and kept it down. Klick and then characters!


So in the end i managed to find out that slow keys somehow had become 
enabled in universal access preferences


Embarrasing...

But it is a bit strange that your suggestions did not work.
How come some people need the AllowEmptyInput and AutoAddDevices lines but 
not others?


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


Re: Keyboard not working in gnome?

2009-05-15 Thread Christopher Arnold



On Fri, 15 May 2009, Robert Noland wrote:


On Fri, 2009-05-15 at 13:05 +0200, Christopher Arnold wrote:

Hi again,

some more input on this.

In Xorg.0.log i see:
(II) config/hal: Adding input device USB Receiver
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device AT Keyboard
(EE) config/hal: NewInputDeviceRequest failed (8)
(The at part makes sense, i only have USB on this machine)

So i guess this is the problem and that a rebuild of gnome/X11 did not
help. It seems fairly close to the issues with hald/xorg.conf that we saw
the last time upgrading gnome.

What is actually the right config nowdays?

I have the following in xorg.conf:
Section "ServerLayout"
 Identifier "Simple Layout"
 Screen "Screen 1" 0 0
 InputDevice"Mouse1" "CorePointer"
 InputDevice"Keyboard1" "CoreKeyboard"
 Option "AllowEmptyInput" "off"
 Option "AutoAddDevices" "off"
EndSection


Using the above, you shouldn't need the lines below.  Your devices need
to be statically configured in xorg.conf.  If you are using hald, then
remove both the AllowEmptyInput and AutoAddDevices lines above.  I

When i commment theese out i get neither keyboard or mouse.
Also i notice in the xorg logfile that my "Keyboard1" gets ignored 
alltogether. That is if i would have got the keyboard to work i would have 
a us one instead of my swedish.



And in /etc/rc.conf:
bus_enable="YES"
hald_enable="YES"

If i comment these out then gdm dosn't even start since gdm requiers them 
i guess.


And yes this is a cutnpaste error...

Btw my config file and the logfiles are here:
http://www.arnold.se/xorg.conf
http://www.arnold.se/Xorg.0.log
http://www.arnold.se/Xorg.0.log.old

I guess i am doing a simple mistake somwhere, just cant figure what...

/Chris


Or does anyone have any hints on why a keyboard (that i'm currently
writing on...) don't work in X11/Gnome?
Any hints on debugging this?

/Chris

On Thu, 14 May 2009, Christopher Arnold wrote:



Hi,

i'm currently debugging why my keyboard is not working in gnome, so i thought
i might throw out a quick question here if someone else have run into this?

Details:
Im running 7.1-STABLE.

It's a logitech wireless keyboard and mouse (connected with USB) that have
been woriking for a couple of years. (Actually i'm writing on it now, but in
a vty) Suddenly in the middle of a session everything hung, so i rebooted.

Now i managed to login (That is it works in gdm!) but when i open a xterm or
any other program it does not work. (as in no keys work not even caps lock)
The mouse works perfectly. And since the mouse works i can use the GUI to
logout and back in gdm keyboard works again...

My first thought was that i might have rebuilt some port affecting this, so
currently i'm rebuilding X11 and gnome.

Have anyone else run into this?
Any hints on what might be wrong?

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


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

--
Robert Noland 
FreeBSD


___
freebsd-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: issues with Intel Pro/1000 and 1000baseTX

2009-05-15 Thread Steven Hartland

Never only set one end manually, always set both the machine and the
switch.

   Regards
   Steve

- Original Message - 
From: "James Tanis" 

To: "FreeBSD Questions" ; 

Sent: Thursday, May 14, 2009 4:12 PM
Subject: issues with Intel Pro/1000 and 1000baseTX


I have a FreeBSD v7.0 box it has two Intel Pro/1000 NICs, the one in 
question is:


em1:  port 
0x2020-0x203f mem 0xd806-0xd807,0xd804-0xd805 irq 19 at 
device 0.1 on pci4


what we get after boot is:

em1: flags=8943 metric 0 
mtu 1500

   options=19b
   ether 00:30:48:xx:xx:xx
   inet 192.168.1.1 netmask 0xff00 broadcast 192.168.1.255
   media: Ethernet autoselect (100baseTX )
   status: active

The problem is that the NIC refuses to connect at 1000baseTX.

It's connected to a HP Procurve 1700-24 switch which supports 1000baseTX 
on ports 23 and 24. This particular computer is connected on port 24. I 
have a much older end user system which uses the same card (but earlier 
revision), runs Windows XP and is plugged in to port 23. The end user 
system has no problem connecting at 1000baseTX. I have of course tried 
switching ports.


Attempting to force 1000baseTX via:

ifconfig em1 media 1000baseTX mediaopt full-duplex

gets me:

status: no carrier

After forcing the NIC to go 1000baseTX the LEDs on the backpane are both 
off. I can only come to the conclusion that this is a driver issue based 
on previous experience and the simple fact that the end user system is 
capable of connecting at 1000baseTX. Anybody have any suggestions? I'm 
hoping I'm wrong. I'd rather not do an in-place upgrade, this is a 
production system and the main gateway for an entire school, when I do 
not even know for sure whether this will fix the problem. It's worth it 
to me though, having a 1000baseTX uplink from the switch would remove a 
major bottleneck for me.


Any help would be appreciated.

--
James Tanis
Technical Coordinator
Computer Science Department
Monsignor Donovan Catholic High School

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




This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 


In the event of misdirection, illegible or incomplete transmission please 
telephone +44 845 868 1337
or return the E.mail to postmas...@multiplay.co.uk.

___
freebsd-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 building htop

2009-05-15 Thread Robin Becker
I'm trying to build htop-0.8.1 from ports on a FreeBSD 6.1 system. It seems htop 
requires ncurses and I see this error



In file included from RichString.h:14,
 from Object.h:12,
 from Process.h:14,
 from ProcessList.h:17,
 from Settings.h:13,
 from AvailableMetersPanel.h:6,
 from AvailableMetersPanel.c:2:
/usr/include/curses.h:289: error: conflicting types for 'wchar_t'
/usr/include/stdlib.h:58: error: previous declaration of 'wchar_t' was here
*** Error code 1


do I need a more modern system or should I update the ports tree and try again? 
I guess that stdlib comes with the OS and maybe ncurses is modernized.

--
Robin Becker
___
freebsd-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 7.1 opencrypto --> kern.cryptodevallowsoft

2009-05-15 Thread Patrick Lamaizière
Le Tue, 12 May 2009 19:14:38 +0100,
Brendan Kennedy :

> Hi All,

Hello,

> FreeBSD_26# sysctl -a | grep crypto
> kern.cryptodevallowsoft: 1
> 
> However, when I try a test, I get the following:
> 
> FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des
> cipher 3des keylen 24
> CIOCGSESSION: Invalid argument
> FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des
> cipher des keylen 8
> CIOCGSESSION: Invalid argument
> 
> It seems the software crypto device is not available. Do I need to do
> any other steps to enable it? Is there another config option that
> makes sure it is build as part of Opencrypto framework? Do I need to
> build some other software driver instead?

Cryptodev fails because it checks that the requested crypto driver
provides hardware crypto. function "checkforsoftware" in cryptodev.c
And it does not take care about the sysctl kern.cryptodevallowsoft. 

Looks like a bug and not a feature. OpenBSD's cryptodev seems to take
care about the sysctl and i think you can use the cryptosoft driver
with it. 

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"


Re: ghostscript8 - errors when compiling from ports

2009-05-15 Thread Mel Flynn
On Wednesday 13 May 2009 21:08:11 Jonathan Chen wrote:
> On Wed, May 13, 2009 at 05:54:09PM +0200, Zbigniew Komarnicki wrote:
> > On Wednesday 13 of May 2009 12:08:55 you wrote:
> > > just a guess, looks like a problems with cups-base, try to update it
> > > first. I recommend ports-mgmt/portmaster.
> >
> > Thank you for help :-)
> >
> > I upgraded all my installed ports, by
> > # portmaster -a
> >
> > but this error still remain. I also reinstall the cups-base port by
> > # portmaster -rf print/cups-base
> >
> > but still with no success. Here is the output:
>
> Here's the thing: Ghostscript has a hidden (and apparently broken)
> dependency on cups (ie, it's not in the Makefile).

It's called autotools magic. If cups.h is found, --disable-cups isn't set then 
the assumption is made that cups/raster.h also exists, but in FreeBSD ports 
cups/raster.h is not installed when only cups-client is installed.

If you also want gs binary to be able to print to cups directly, then after 
you did this upgrade, reinstall ghostscript 8 again, so it will pick up the 
cups support automatically. Most people don't care about this last bit, since 
gs is used under the hood to transform document formats and printing is done 
via a higher level application.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Keyboard not working in gnome?

2009-05-15 Thread Robert Noland
On Fri, 2009-05-15 at 10:09 -0500, Andrew Gould wrote:
>  
> 
> 
> 
> > And in /etc/rc.conf:
> > bus_enable="YES"
> 
> Shouldn't the line above be:
> 
> dbus_enable="YES"

Yes, sorry... typo...

robert.

> 
> 
> > hald_enable="YES"
> >
> > Or does anyone have any hints on why a keyboard (that i'm
> currently
> > writing on...) don't work in X11/Gnome?
> > Any hints on debugging this?
> >
> >   /Chris
> 
> Andrew
-- 
Robert Noland 
FreeBSD


signature.asc
Description: This is a digitally signed message part


Re: subversion / dav_svn_module : Fatal error 'Recurse on a private mutex.'

2009-05-15 Thread Mel Flynn
On Friday 15 May 2009 02:27:43 Olivier Mueller wrote:
> Hi Mel,
>
> On Wed, 2009-05-13 at 22:21 +0200, Mel Flynn wrote:
> > I'm still thinking there's two different (threading|bdb) libraries linked
> > into httpd, but not sure to ask for which ldd...httpd or mod_dav. The db
> > version could be a red herring or that only one of the formats requires
> > this mutex .
>
> This is how it currently looks:(I'll try recompiling some packages
> later next week):
>
> $ ldd /usr/local/sbin/httpd
> /usr/local/sbin/httpd:
>   libz.so.3 => /lib/libz.so.3 (0x800681000)
>   libaprutil-0.so.9 => /usr/local/lib/apache2/libaprutil-0.so.9
> (0x800795000) libdb-4.2.so.2 => /usr/local/lib/libdb-4.2.so.2 (0x8008ab000)
>   libexpat.so.6 => /usr/local/lib/libexpat.so.6 (0x800a87000)
>   libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x800ba9000)
>   libapr-0.so.9 => /usr/local/lib/apache2/libapr-0.so.9 (0x800da2000)
>   libm.so.4 => /lib/libm.so.4 (0x800ec2000)
>   libcrypt.so.3 => /lib/libcrypt.so.3 (0x800fde000)
>   libc.so.6 => /lib/libc.so.6 (0x8010f7000)

No pthread in this. Could it be that apr is built without threads? It's the 
only thing out of the ordinary that I can see.
I use APR_FROM_PORTS (even though it has a be careful warning, that I don't 
understand) and as such can add threading support.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


craigslist for computers??

2009-05-15 Thread Gary Kline

Guys,

Some friends of mine suggested I use craigslist to find the kinds of new
(or maybe used and used[?]) computers I'm looking for.  I've used both 
google and yahoo and haven't found what may be best:: Most Green.

Can anybody clue me in?

gary


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.41a release of Jottings: http://jottings.thought.org/index.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: USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Zane C.B.
On Fri, 15 May 2009 17:15:37 +0200
Mel Flynn  wrote:

> On Friday 15 May 2009 13:04:50 Saša Stupar wrote:
> 
> > I suggest you to buy a good AP (Lynksys, Asus, etc.) and it will
> > work much better than building it from FreeBSD.
> 
> And this is based on which assumption with what criteria for
> "working better"? On my FreeBSD AP I can:
> - view my logs in realtime
> - shape traffic
> - deny/grant access at will without requiring rule reloads (pf
> tables ftw)
> - send custom DHCP info, like:
> option wpad code 252 = text;
> option wpad "http://10.0.0.1/proxy.pac";;
> - configure over ssh
> - add memory
> - control internal and external DNS

Aye. Lets note for get all the fun when can have with netgraph and
misc VPN stuff.


signature.asc
Description: PGP signature


Re: How to move vi to /bin

2009-05-15 Thread Mel Flynn
On Friday 15 May 2009 08:46:46 Manish Jain wrote:
> Mel Flynn wrote:
> > On Wednesday 13 May 2009 09:21:46 manish jain wrote:
> >> I want to move vi to /bin so that I have an editor available in
> >> single-user mode.
> >
> > The only reason to need an editor and not have /usr and /var available is
> > to edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fix
> > with /rescue/sed, without having to worry about a terminal.
> >
> > In all other cases:
> > fsck -p
> > /etc/rc.d/mountcritlocal start
> > /etc/rc.d/ldconfig start
> >
> > And one can use any editor one would want. Don't forget to export or
> > setenv TERM to cons25 from 'dumb'.
>
>  From all the discussion I have walked through on the issue of where to
> place vi, it does appear FreeBSD has a skewed policy on the issue. There
> are plenty of reasons you might need access an editor in single-user
> mode - editing  fstab is just one.

You didn't read what I wrote.
The above works in single user mode and does not magically transform you to 
multi-user. Just reboot in single user mode, type the above and then 
/usr/bin/vi /etc/rc.conf.

You will see that it works. In fact, if you have vim installed, 
/usr/local/bin/vim /etc/rc.conf will work.

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


Re: USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Maciej Milewski
Friday 15 May 2009 17:15:37 Mel Flynn napisał(a):
> On Friday 15 May 2009 13:04:50 Saša Stupar wrote:
> > I suggest you to buy a good AP (Lynksys, Asus, etc.) and it will work
> > much better than building it from FreeBSD.
>
> And this is based on which assumption with what criteria for "working
> better"? On my FreeBSD AP I can:
> - view my logs in realtime
> - shape traffic
> - deny/grant access at will without requiring rule reloads (pf tables ftw)
> - send custom DHCP info, like:
> option wpad code 252 = text;
> option wpad "http://10.0.0.1/proxy.pac";;
> - configure over ssh
> - add memory
> - control internal and external DNS
>
> Etcetera.

Well, in my opinion those things you can achieve using AP connected to 
ethernet card of your computer. But there aro other problems in this solution:
- knowing of connected wifi clients
- changing some WiFi settings
- reseting AP
Many AP systems are configurable through web interface so it is additional 
problem. If you set it only once and forget about it or you have someone who 
can reset this AP then it's possible to do. 

For me there is better if it is one device not two - the configuration in this 
case could be simpler.


But I second for the advice to use PCI/mPCI cards not USB ones.

-- 
Regards,
Maciej Milewski
___
freebsd-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 move vi to /bin

2009-05-15 Thread Chad Perrin
On Thu, May 14, 2009 at 10:03:58PM -0700, per...@pluto.rain.com wrote:
> Chris Rees  wrote:
> > 2009/5/14 Chad Perrin :
> > > On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote:
> > >> I think the problem with that is he meant changing the root
> > >> shell to /usr/local/bin/bash. You're better off using /bin/sh
> > >> if you want a Bourne-type shell, or using toor with
> > >> /usr/local/bin/bash.
> > >
> > > I've never understood the resistance to just use toor instead
> > > of root if one wants a nonstandard administrative shell.
> >
> > People don't seem to understand that toor and root are equivalent.
> 
> Well, not entirely.  "su" uses root's shell, not toor's, AFAIK.

Actually, `su` uses whatever you tell it to:

su toor

. . . though the default is root, you don't have to use the default.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]
Perrin's Principle of Inclusion: The strength of any system is directly
proportional to the power of the tools it provides for the general
public.


pgpCNnsl6STm4.pgp
Description: PGP signature


Re: USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Mel Flynn
On Friday 15 May 2009 13:04:50 Saša Stupar wrote:

> I suggest you to buy a good AP (Lynksys, Asus, etc.) and it will work much
> better than building it from FreeBSD.

And this is based on which assumption with what criteria for "working better"?
On my FreeBSD AP I can:
- view my logs in realtime
- shape traffic
- deny/grant access at will without requiring rule reloads (pf tables ftw)
- send custom DHCP info, like:
option wpad code 252 = text;
option wpad "http://10.0.0.1/proxy.pac";;
- configure over ssh
- add memory
- control internal and external DNS

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


Re: Keyboard not working in gnome?

2009-05-15 Thread Andrew Gould


>
>
> > And in /etc/rc.conf:
> > bus_enable="YES"


Shouldn't the line above be:

dbus_enable="YES"


>
> > hald_enable="YES"
> >
> > Or does anyone have any hints on why a keyboard (that i'm currently
> > writing on...) don't work in X11/Gnome?
> > Any hints on debugging this?
> >
> >   /Chris
>

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


Re: mergemaster -U overwriting modified files

2009-05-15 Thread Mel Flynn
On Sunday 26 April 2009 11:12:12 Frederique Rijsdijk wrote:
> Bruce Cran wrote:
> > On Sat, 25 Apr 2009 12:10:42 +0200
> >
> > Peter Schuller  wrote:
> >> I recently began testing mergemaster -U since the perpetual "review
> >> diff of file I never touched" grows annoying real quick.
> >>
> >> Unfortunately I recently discovered that it does not seem to do what
> >> you might expect. For example it nuked my mailer.conf on one machine,
> >> and my /etc/namedb/named.conf (!!!) on another machine.
> >>
> >> Is this a bug or intended? What is the intended functionality of -U?
> >
> > I noticed this recently too: after using mergemaster -U without
> > problems for a long time it suddenly went and overwrote named.conf on
> > a recently upgrade of 7-STABLE.
>
> I've seen this happen as well with named.conf.

I think I know the cause, not entirely the problem yet, as I just got hit by 
this too and right at the point where I upgraded source tree from cvs to svn 
so *all* files had different idents.

Before running mergemaster -iU I checked /var/db/mergemaster.mtree and it was 
zero-sized. Why, is not entirely clear, (hence, I don't know the real problem) 
but I thought I noticed mergemaster saving mtree database on the pre-world 
run. Looking at the code though, this should be impossible, so the more I 
think about it, the more I start to doubt. At the time I was thinking why is 
mergemaster saving the mtree and that's when I checked it's size.

Whatever the cause, this is where mergemaster fails:
CHANGED=
if [ -n "${AUTO_UPGRADE}" -a -f "${DESTDIR}${MTREEFILE}" ]; then
for file in `mtree -eq -f ${DESTDIR}${MTREEFILE} -p ${DESTDIR}/ \
2>/dev/null | awk '($2 == "changed") {print $1}'`; do
if [ -f "${DESTDIR}/$file" ]; then
CHANGED="${CHANGED} ${DESTDIR}/$file"
fi
done
fi

Because ${MTREEFILE} is empty, the mtree command will not produce output and 
CHANGED will not be populated. For things like this, it would be nice if mtree 
supported a 'lint' mode to check syntax, but at the very least could 
mergemaster test for -s rather then or in addition to -f?

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


Re: Keyboard not working in gnome?

2009-05-15 Thread Robert Noland
On Fri, 2009-05-15 at 13:05 +0200, Christopher Arnold wrote:
> Hi again,
> 
> some more input on this.
> 
> In Xorg.0.log i see:
> (II) config/hal: Adding input device USB Receiver
> (EE) config/hal: NewInputDeviceRequest failed (8)
> (II) config/hal: Adding input device AT Keyboard
> (EE) config/hal: NewInputDeviceRequest failed (8)
> (The at part makes sense, i only have USB on this machine)
> 
> So i guess this is the problem and that a rebuild of gnome/X11 did not 
> help. It seems fairly close to the issues with hald/xorg.conf that we saw 
> the last time upgrading gnome.
> 
> What is actually the right config nowdays?
> 
> I have the following in xorg.conf:
> Section "ServerLayout"
>  Identifier "Simple Layout"
>  Screen "Screen 1" 0 0
>  InputDevice"Mouse1" "CorePointer"
>  InputDevice"Keyboard1" "CoreKeyboard"
>  Option "AllowEmptyInput" "off"
>  Option "AutoAddDevices" "off"
> EndSection

Using the above, you shouldn't need the lines below.  Your devices need
to be statically configured in xorg.conf.  If you are using hald, then
remove both the AllowEmptyInput and AutoAddDevices lines above.  I
currently use moused as well, since there still seems to be some
occasional issue with my mouse if I try and use native psm...

robert.

> And in /etc/rc.conf:
> bus_enable="YES"
> hald_enable="YES"
> 
> Or does anyone have any hints on why a keyboard (that i'm currently 
> writing on...) don't work in X11/Gnome?
> Any hints on debugging this?
> 
>   /Chris
> 
> On Thu, 14 May 2009, Christopher Arnold wrote:
> 
> >
> > Hi,
> >
> > i'm currently debugging why my keyboard is not working in gnome, so i 
> > thought 
> > i might throw out a quick question here if someone else have run into this?
> >
> > Details:
> > Im running 7.1-STABLE.
> >
> > It's a logitech wireless keyboard and mouse (connected with USB) that have 
> > been woriking for a couple of years. (Actually i'm writing on it now, but 
> > in 
> > a vty) Suddenly in the middle of a session everything hung, so i rebooted.
> >
> > Now i managed to login (That is it works in gdm!) but when i open a xterm 
> > or 
> > any other program it does not work. (as in no keys work not even caps lock) 
> > The mouse works perfectly. And since the mouse works i can use the GUI to 
> > logout and back in gdm keyboard works again...
> >
> > My first thought was that i might have rebuilt some port affecting this, so 
> > currently i'm rebuilding X11 and gnome.
> >
> > Have anyone else run into this?
> > Any hints on what might be wrong?
> >
> > /Chris
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> >
> ___
> freebsd-po...@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
-- 
Robert Noland 
FreeBSD


signature.asc
Description: This is a digitally signed message part


Re: FreeBSD 7.1 opencrypto --> kern.cryptodevallowsoft

2009-05-15 Thread Brian A. Seklecki
On Tue, 2009-05-12 at 19:14 +0100, Brendan Kennedy wrote:
> Hi All,
> 
> I'm trying to test a hardware crypto driver, but want to run my tests
> through the software driver first (and possibly use the software
> driver to validate results).
> I have set the following in my GENERIC conf file:
> 

What does kldstat(8) / openssl(1) return?

% sudo openssl engine 
(dynamic) Dynamic engine loading support

$ openssl engine
(cryptodev) BSD cryptodev engine
(padlock) VIA PadLock (no-RNG, no-ACE)
(dynamic) Dynamic engine loading support

$ kldstat |egrep -i 'cry|ub'
 33 0xc0e06000 25b78crypto.ko
 71 0xc64c9000 4000 cryptodev.ko
 81 0xc6546000 a000 ubsec.ko


Return?

~BAS


> device  crypto
> device  enc
> options IPSEC
> 
> I have rebuilt the kernel, rebooted and set the
> kern.cryptodevallowsoft kernel variable to 1:
> 
> FreeBSD_26# sysctl -a | grep crypto
> kern.cryptodevallowsoft: 1
> 
> However, when I try a test, I get the following:
> 
> FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va 3des
> cipher 3des keylen 24
> CIOCGSESSION: Invalid argument
> FreeBSD_26# /usr/src/tools/tools/crypto/cryptotest -va des
> cipher des keylen 8
> CIOCGSESSION: Invalid argument
> 
> It seems the software crypto device is not available. Do I need to do
> any other steps to enable it? Is there another config option that
> makes sure it is build as part of Opencrypto framework? Do I need to
> build some other software driver instead?
> 
> Best Regards,
> Brendan
> ___
> freebsd-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: Sun E250

2009-05-15 Thread Brian A. Seklecki
On Mon, 2009-05-11 at 16:19 +0100, RAUL H C LOPES wrote:
> Hi,
> 
> No. the A1000 does not require any special RAID controller.
> 
> Freebsd 7.2 is freezing after message:
>  Jumping to kernel entry at 0xc0078000

Okay, this erroneous behavior is happening much earlier than before the
RAID controller probe.

I would recommend asking about E250 support on
freebsd-spar...@freebsd.org (CC'd)

Make sure that you try this with a serial console attached to the unit.

~BAS

> 
> I tried boot both with "bootonly" and "install" CDs.
> 
> raul

___
freebsd-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: cannot open files/.gz: No such file or directory

2009-05-15 Thread Brian Hoort
I've been trying every few days to update from 7.1-P5 to 7.2 using
freebsd-update.  It always goes as follows:

statler # freebsd-update upgrade -r 7.2-RELEASE
Looking up update.FreeBSD.org mirrors... 6 mirrors found.
Fetching metadata signature for 7.1-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

WARNING: This system is running a "statler" kernel, which is not a
kernel configuration distributed as part of FreeBSD 7.1-RELEASE.
This kernel will not be updated: you MUST update the kernel manually
before running "/usr/sbin/freebsd-update install".

The following components of FreeBSD seem to be installed:
src/base src/sys world/base world/dict world/games world/info
world/manpages

The following components of FreeBSD do not seem to be installed:
kernel/generic 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/tools src/ubin src/usbin
world/catpages world/doc world/proflibs

Does this look reasonable (y/n)? y

Fetching metadata signature for 7.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 7.1-RELEASE for merging... done.
Preparing to download files... done.
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory
/usr/sbin/freebsd-update: cannot open files/.gz: No such file or directory

Attempting to automatically merge changes in files... done.

The following file could not be merged automatically: /etc/mail/mailer.conf
Press Enter to edit this file in vi and resolve the conflicts
manually...
^C


Any thoughts?  Thanks for your 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: USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Jan Henrik Sylvester

Marco wrote:
iam thinking of building a router with usb wlan and usb ethernet 
controller attached. as the wlan device shall be an AP i would go for 
atheros stick. however, i'am unsure if anybody has expirience if or 
which devices should work out of the box with latest stable release. i 
read something about a "uath" device module but could not find it in my 
sys-tree.


uath is only available in 8-CURRENT and I am not sure, if it does Host 
AP mode. (The same goes for upgt.)


In 7.2-RELEASE (and 7-STABLE), the only usb wlan drivers are ural, rum, 
and zyd, but zyd does not do Host AP for what I know (and it was never 
stable for me). ural and rum both do Host AP.


Maybe this is interesting for you: 
http://en.wikipedia.org/wiki/Comparison_of_Open_Source_Wireless_Drivers


Anyhow, why does it have to be usb? From my own experience, usb devices 
do not work as well as Cardbus or (Mini)PCI. You will probably be much 
more happy, if you get an ath based MiniPCI card.


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


Re: root user, graphical programs

2009-05-15 Thread Matthew Seaman

Pieter Donche wrote:

On Fri, 15 May 2009, Mike Clarke wrote:


On Friday 15 May 2009, Pieter Donche wrote:
I see from your original post that you're using KDE so you could try a
third way:
Use  to open the run dialog.
Enter xpdf or whatever in the "Command area.
Click on "Options", select "Run as a different user and fill in the
username and password for root.


OK, this works..

Also the other method (extract a $DISPLAY from ~/.Xauthority and nerging 
in /root/.Xauhtority also works now, but my DISPLAY was not :0.0 but  
MYPCHOSTNAME:0

(from a windows PC I was logged on to the FreeBSD machine using XMing
X-windows terminal emulator)


You do realise that you have now told the whole world that you use an
unencrypted X session over a network?  That's at least as bad -- probably
worse -- than using rsh(1) or unencrypted telnet.   I hope you haven't
logged into any sensitive accounts or typed a credit card number into a
web browser over that link...

You'ld be well advised to install putty on your windows box and use the 
ability to tunnel X over a SSH connection.


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: root user, graphical programs

2009-05-15 Thread Pieter Donche

On Fri, 15 May 2009, Mike Clarke wrote:


On Friday 15 May 2009, Pieter Donche wrote:
I see from your original post that you're using KDE so you could try a
third way:
Use  to open the run dialog.
Enter xpdf or whatever in the "Command area.
Click on "Options", select "Run as a different user and fill in the
username and password for root.


OK, this works..

Also the other method (extract a $DISPLAY from ~/.Xauthority and 
nerging in /root/.Xauhtority also works now, 
but my DISPLAY was not :0.0 but  MYPCHOSTNAME:0

(from a windows PC I was logged on to the FreeBSD machine using XMing
X-windows terminal emulator)

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


Re: portupgrade -R problems

2009-05-15 Thread Jerry
On Thu, 14 May 2009 10:39:52 +0200 (CEST)
Pieter Donche  wrote:

>FreeBSD7. 
>I wanted to upgrade print/cups-base and print/hplip
>>From a portsnap run:
>cups-base-1.3.9_3   <   needs updating (index has
>1.3.10_1) hplip-2.8.2_3   <   needs updating
>(index has 2.8.2_4)
>
># cd /usr/ports/print/cups
># portupgrade -R cups
>[Exclude up-to-date packages  done]
>#
>What does this mean, does it think it is already up-to-date ??
>
>Then I tried
># cd /usr/ports/print/hplip
># portupgrade -R hplip
>this upgraded a large number of dependent packages (even openldap,
>apache) added tcl and tk, and eventually even began to upgrade
>cups-base-1.3.9_3 to 1.3.9.10_1
>but ends with:
>...
>==>  Installing for cups-client-1.3.10_1
>===>   cups-client-1.3.10_1 depends on file: /usr/local/bin/python2.5
>- found ===>   cups-client-1.3.10_1 depends on
>file: /usr/local/include/php/main/php.h -
>  found
>===>   Generating temporary packing list
>===>  Checking if print/cups-client already installed
>===>   cups-client-1.3.10_1 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
> print/cups-client 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/print/cups-client.
>*** Error code 1
>Stop in /usr/ports/print/cups-base.
>*** Error code 1
>Stop in /usr/ports/print/cups-base.
>*** Error code 1
>Stop in /usr/ports/print/hplip.
>*** Error code 1
>Stop in /usr/ports/print/hplip.
>** Command failed [exit code 1]: /usr/bin/script
>-qa /tmp/portupgrade.29487.1 en v UPGRADE_TOOL=portupgrade
>UPGRADE_PORT=hplip-2.8.2_3 UPGRADE_PORT_VER=2.8.2_3 m ake
>** Fix the problem and try again.
>** Listing the failed packages (-:ignored / *:skipped / !:failed)
> ! misc/help2man (help2man-1.36.4_2) (unknown build error)
> ! print/hplip (hplip-2.8.2_3)   (unknown build error)
>
>I tried,
># cd /usr/ports/print/cups-client
># make deinstall
>===>   Deinstalling cups-client-1.3.10_1
>pkg_delete: file '/usr/local/man/man1/cups-config.1.gz' doesn't exist
>pkg_delete: file '/usr/local/bin/cups-config' doesn't exist
>pkg_delete: file '/usr/local/include/cups/adminutil.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/array.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/backend.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/cups.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/dir.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/file.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/http.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/ipp.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/language.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/ppd.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/language.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/ppd.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/sidechannel.h' doesn't exist
>pkg_delete: file '/usr/local/include/cups/transcode.h' doesn't exist
>pkg_delete: file '/usr/local/lib/libcups.so' doesn't exist
>pkg_delete: file '/usr/local/lib/libcups.so.2' doesn't exist
>pkg_delete: file '/usr/local/include/cups' doesn't exist
>pkg_delete: unable to completely remove directory
>'/usr/local/include/cups' pkg_delete: couldn't entirely delete package
>(perhaps the packing list is incorrectly specified?)
>
># make reinstall
>..
>===>   Compressing manual pages for cups-client-1.3.10_1
>===>   Running ldconfig
>/sbin/ldconfig -m /usr/local/lib
>===>   Registering installation for cups-client-1.3.10_1
>
># cd /usr/ports/print/hplip
># portupgrade -R hplip
>[Updating the pkgdb  in /var/db/pkg ... - 620
>packages found ( -2 +1) (...). done]
>[Exclude up-to-date packages  done]
>
># pkg_info | grep hplip
>empty
># pkg_info | grep cups-base
>empty
>
>What is going on and how to remedy?

I had a similar problem and I was not using the '-R' flag either. I did
the following.

1) cd to cups-client directory and run: make clean && make deinstall

2) cd to cups-base directory and run: make clean && make deinstall

3) Now, in the cups-base directory run: make reinstall && make distclean

That fixed the problem. Be sure to run: "pkgdb -Ffv" to make sure all of
the new installation is properly reflected in the dependencies.

You also might want to consider using 'portmanager' instead. It does
not have the problems that 'portupgrade' exhibits with the '-R' or '-r'
flags. 'portmanager -u -p -l -y' usually works quite well and produces
a useful log file as well.

-- 
Jerry
ges...@yahoo.com

PROBLEM DRINKER: A man who never buys.


signature.asc
Description: PGP signature


Re: root user, graphical programs

2009-05-15 Thread Mike Clarke
On Friday 15 May 2009, Pieter Donche wrote:

> No luck (yet)

I see from your original post that you're using KDE so you could try a 
third way:

Use  to open the run dialog.
Enter xpdf or whatever in the "Command area.
Click on "Options", select "Run as a different user and fill in the 
username and password for root.

-- 
Mike Clarke
___
freebsd-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: USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Saša Stupar
2009/5/15 Marco 

> Hello,
>
> iam thinking of building a router with usb wlan and usb ethernet controller
> attached. as the wlan device shall be an AP i would go for atheros stick.
> however, i'am unsure if anybody has expirience if or which devices should
> work out of the box with latest stable release. i read something about a
> "uath" device module but could not find it in my sys-tree.
> if you got anything about that pls let me know.
>
> best regards,
> marco
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscr...@freebsd.org"



I suggest you to buy a good AP (Lynksys, Asus, etc.) and it will work much
better than building it from FreeBSD.

Regards,
Sasa
___
freebsd-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: Keyboard not working in gnome?

2009-05-15 Thread Christopher Arnold


Hi again,

some more input on this.

In Xorg.0.log i see:
(II) config/hal: Adding input device USB Receiver
(EE) config/hal: NewInputDeviceRequest failed (8)
(II) config/hal: Adding input device AT Keyboard
(EE) config/hal: NewInputDeviceRequest failed (8)
(The at part makes sense, i only have USB on this machine)

So i guess this is the problem and that a rebuild of gnome/X11 did not 
help. It seems fairly close to the issues with hald/xorg.conf that we saw 
the last time upgrading gnome.


What is actually the right config nowdays?

I have the following in xorg.conf:
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1" 0 0
InputDevice"Mouse1" "CorePointer"
InputDevice"Keyboard1" "CoreKeyboard"
Option "AllowEmptyInput" "off"
Option "AutoAddDevices" "off"
EndSection

And in /etc/rc.conf:
bus_enable="YES"
hald_enable="YES"

Or does anyone have any hints on why a keyboard (that i'm currently 
writing on...) don't work in X11/Gnome?

Any hints on debugging this?

/Chris

On Thu, 14 May 2009, Christopher Arnold wrote:



Hi,

i'm currently debugging why my keyboard is not working in gnome, so i thought 
i might throw out a quick question here if someone else have run into this?


Details:
Im running 7.1-STABLE.

It's a logitech wireless keyboard and mouse (connected with USB) that have 
been woriking for a couple of years. (Actually i'm writing on it now, but in 
a vty) Suddenly in the middle of a session everything hung, so i rebooted.


Now i managed to login (That is it works in gdm!) but when i open a xterm or 
any other program it does not work. (as in no keys work not even caps lock) 
The mouse works perfectly. And since the mouse works i can use the GUI to 
logout and back in gdm keyboard works again...


My first thought was that i might have rebuilt some port affecting this, so 
currently i'm rebuilding X11 and gnome.


Have anyone else run into this?
Any hints on what might be wrong?

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


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


USB WLAN Atheros and USB Ethernet FBSD 7.2

2009-05-15 Thread Marco

Hello,

iam thinking of building a router with usb wlan and usb ethernet 
controller attached. as the wlan device shall be an AP i would go for 
atheros stick. however, i'am unsure if anybody has expirience if or 
which devices should work out of the box with latest stable release. i 
read something about a "uath" device module but could not find it in my 
sys-tree.

if you got anything about that pls let me know.

best regards,
marco
___
freebsd-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: php5 pcre

2009-05-15 Thread Mark
-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gorbatovsky Dmitry
Sent: vrijdag 15 mei 2009 11:04
To: freebsd-questions@freebsd.org
Subject: Re: php5 pcre

> When I run make config I see selected PCRE and SPL extensions and
> other default the extensions. But I rebuilding all modules,
> restarting apache and see same error:

> [15-May-2009 12:38:00] PHP Warning:  PHP Startup: Unable to load dynamic 
> library '/usr/local/lib/php/20060613/pcre.so' - 
> /usr/local/lib/php/20060613/pcre.so:
> Undefined symbol "php_pcre_free" in Unknown on line 0

I thought I was the only one this had happened to. :) In my case I
resolved it by going into the pcre directory itself and build it from
there.

- Mark

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


suitesparse - error when compiling from ports

2009-05-15 Thread cblasius
Hello,

I got the foolowing error when copile the suitesparse
(/usr/ports/math/suitesparse)
on Athlon64 FreeBSD-7.2 RELEASE

# make install clean
===>  Extracting for suitesparse-3.3.0
=> MD5 Checksum OK for SuiteSparse-3.3.0.tar.gz.
=> SHA256 Checksum OK for SuiteSparse-3.3.0.tar.gz.
===>  Patching for suitesparse-3.3.0
===>  Applying FreeBSD patches for suitesparse-3.3.0
/bin/cp -r /usr/ports/math/suitesparse/work/SuiteSparse
/usr/ports/math/suitesparse/work/SuiteSparse_shared
===>   suitesparse-3.3.0 depends on executable: gmake - found
===>   suitesparse-3.3.0 depends on executable: gfortran43 - found
===>   suitesparse-3.3.0 depends on shared library: atlas - found
===>  Configuring for suitesparse-3.3.0
===>  Building for suitesparse-3.3.0
cd /usr/ports/math/suitesparse/work/SuiteSparse ; gmake
( cd UFconfig/xerbla ; gmake )
gmake[1]: Entering directory
`/usr/ports/math/suitesparse/work/SuiteSparse/UFconfig/xerbla'
gcc43 -O2 -fno-strict-aliasing -pipe -march=athlon64 -c xerbla.c
/libexec/ld-elf.so.1: Shared object "libgmp.so.7" not found, required by "cc1"
gmake[1]: *** [libcerbla.a] Error 1
gmake[1]: Leaving directory
`/usr/ports/math/suitesparse/work/SuiteSparse/UFconfig/xerbla'
gmake: *** [default] Error 2
*** Error code 2

Stop in /usr/ports/math/suitesparse.
==

I wanted to install first octave (math/octave), but this above error
first occured.

Please for help. Thank you in advance.

Zbigniew
___
freebsd-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: php5 pcre

2009-05-15 Thread Gorbatovsky Dmitry

Saifi Khan wrote:

On Thu, 14 May 2009, gdn wrote:

  

Hi all!

I'm using on CURRENT apache22 with php5.
When I install php5-extensions, all packages make fine.
But module "pcre" not work.
--

php -m 
  

[PHP Modules]
bz2
date
libxml
mbstring
mysql
pdf
pdo_dblib
Reflection
session
SimpleXML
standard
xml
xmlrpc
zip
zlib

[Zend Modules]
-

Log file of php:
--
[14-May-2009 18:04:50] PHP Warning:  PHP Startup: Unable to load
dynamic librar
y '/usr/local/lib/php/20060613/pcre.so' -
/usr/local/lib/php/20060613/pcre.so:
Undefined symbol "php_pcre_free" in Unknown on line 0
[14-May-2009 18:04:50] PHP Warning:  Cannot load module 'PDO' because
required
module 'spl' is not loaded in Unknown on line 0
---

Haw fix this problem?

Thanks,


Dmitry.




Please go back to directory /usr/ports/lang/php5-extensions

run make config and select PCRE and SPL among the extensions

Usually it is selected by default along with CTYPE, DOM, FILTER,
HASH, ICONV, JSON, PDO, PDO_SQLITE, POSIX, SESSION, SIMPLEXML,
SQLITE, TOKENIZER, XML, XMLREADER, XMLWRITER.

Please try a re-build and confirm.


thanks
Saifi.
  

When I run make config I see selected PCRE and SPL extensions and
other default the extensions.
But I rebuilding all modules, restarting apache and see same error:

[15-May-2009 12:38:00] PHP Warning:  PHP Startup: Unable to load dynamic 
librar
y '/usr/local/lib/php/20060613/pcre.so' - 
/usr/local/lib/php/20060613/pcre.so:

Undefined symbol "php_pcre_free" in Unknown on line 0


Thanks,

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


Re: root user, graphical programs

2009-05-15 Thread Polytropon
On Fri, 15 May 2009 10:38:34 +0200 (CEST), Pieter Donche 
 wrote:
> No luck (yet)
> I tried both methods, (with xpdf as a graphical program)
> The first still gives 
> # xpdf
> Can't open display
> 
> The second method
> # xpdf
> No protocol specified
> Error: Can't open display:  :0.0
> 
> (after su -, $HOME was indeed /root)
> (in /root .Xauthority was changed/created, $DISPLAY is :0.0)

Maybe very unelegant, but has a chance to work:

% su -
Password:
# cp /home//.Xauthority /root
# setenv DISPLAY :0.0
# xpdf

This assumes that csh is your dialog shell. If it's not, you may
need another syntax to change DISPLAY, e. g. for BASH.

It worked in the past, but who knows what still works in X... :-)


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: root user, graphical programs

2009-05-15 Thread Pieter Donche

No luck (yet)
I tried both methods, (with xpdf as a graphical program)
The first still gives 
# xpdf

Can't open display

The second method
# xpdf
No protocol specified
Error: Can't open display:  :0.0

(after su -, $HOME was indeed /root)
(in /root .Xauthority was changed/created, $DISPLAY is :0.0)


On Fri, 15 May 2009, Matthew Seaman wrote:

Pieter Donche wrote:

FreeBSD 7, KDE 3.5
To install Matlab (in linux compat mode), one must execute the
matlab install program as root. The installer is graphical.
When from a KDE terminal window, I switch to root (# su -)
and try a graphical program, e.g.  # xpdf, I get Can't open display.
The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER
(USER the username where the su command was given). This doesn't help
I still get Can't open display.

What's wrong and how to solve it?


That's the standard X Windows security stopping other users opening windows
on your screen.  In this case, something like:

 % xhost +LOCAL:
 % su
 # {...whatever you need to do to install your app...}
 # exit
 % xhost -LOCAL:

However be aware of the risks: xhost +LOCAL: means that any other user
of the same machine can access your display and potentially capture any
input including (for instance) the root password.

Hmmm... Actually, a more secure means of doing the same thing, that only
grants access to your display by the local root user would be:

 % xauth extract - $DISPLAY > ~/authtoken
 % su -
 # echo $HOME

(This should return /root -- this is important so that the correct 
.Xauthority

file gets updated.)

 # xauth merge /home/your-uid/authtoken
 # rm /home/your-uid/authtoken
 # setenv DISPLAY :0.0
 # {...whatever you need to do to install your app...}

Now any X programs run by root will open on your display.  To revoke this
permission you can simply remove /root/.Xauthority or for finer grained
control you can use
  # xauth remove $DISPLAY

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW



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


Re: root user, graphical programs

2009-05-15 Thread Matthew Seaman

Pieter Donche wrote:

FreeBSD 7, KDE 3.5
To install Matlab (in linux compat mode), one must execute the
matlab install program as root. The installer is graphical.
When from a KDE terminal window, I switch to root (# su -)
and try a graphical program, e.g.  # xpdf, I get Can't open display.
The FreeBSD handbook (10.5.1) says in that case type setenv HOME ~USER
(USER the username where the su command was given). This doesn't help
I still get Can't open display.

What's wrong and how to solve it?


That's the standard X Windows security stopping other users opening windows
on your screen.  In this case, something like:

  % xhost +LOCAL:
  % su
  # {...whatever you need to do to install your app...}
  # exit
  % xhost -LOCAL:

However be aware of the risks: xhost +LOCAL: means that any other user
of the same machine can access your display and potentially capture any
input including (for instance) the root password.

Hmmm... Actually, a more secure means of doing the same thing, that only
grants access to your display by the local root user would be:

  % xauth extract - $DISPLAY > ~/authtoken
  % su -
  # echo $HOME

(This should return /root -- this is important so that the correct .Xauthority
file gets updated.)

  # xauth merge /home/your-uid/authtoken
  # rm /home/your-uid/authtoken
  # setenv DISPLAY :0.0
  # {...whatever you need to do to install your app...}

Now any X programs run by root will open on your display.  To revoke this
permission you can simply remove /root/.Xauthority or for finer grained
control you can use
 
  # xauth remove $DISPLAY


Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: How to move vi to /bin

2009-05-15 Thread perryh
Manish Jain  wrote:
> From all the discussion I have walked through on the issue of
> where to place vi, it does appear FreeBSD has a skewed policy
> on the issue. There are plenty of reasons you might need access
> an editor in single-user mode - editing  fstab is just one.
> Having to use the workarounds suggested in place of vi is not
> so good, and manually moving vi to /bin is not simply a matter
> of 'mv /usr/bin/vi /bin/'.
>
> One of the things I would dearly like to see in a future release
> is vi being placed under /bin.

Maybe put something like this [untested] in /bin/vi:

#!/bin/sh
[ -x /usr/bin/vi ] && exec /usr/bin/vi "$@"
exec /rescue/vi "$@"

That should run /usr/bin/vi if it's available, else fall back to
/rescue/vi.  Beats linking /rescue/vi into /bin, since that would
cause the statically-linked version to be used by anyone who has
/bin ahead of /usr/bin in PATH, even when the dynamically-linked
version is available.
___
freebsd-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: Emailing 100+ PDFs, one at a time, to a given address

2009-05-15 Thread perryh
Glen Barber  wrote:
> On Thu, May 14, 2009 at 11:20 PM, Kelly Jones
>  wrote:
> > I need to email 100s of PDFs, 1 per email, to a given address.
> >
> > What's the easiest way to do this?
> >
> > /usr/bin/Mail won't work, since
> > PDFs are binary, so I must first BASE64 encode them.
...
> If you can install mail/mutt, you can replace (for the most part)
> /usr/bin/mail with /usr/local/bin/mutt and still script it.

Or, for a MIME-compliant mailer that is intended to be 100% upward-
compatible with /usr/bin/Mail, check out ports/mail/heirloom-mailx.
___
freebsd-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: install both jdk15 and jdk 16 from port

2009-05-15 Thread vuthecuong



Dan Nelson wrote:
> 
> In the last episode (May 14), vuthecuong said:
>> do I will have conflict etc problems when install both jdk15 and jdk 16
>> from ports?
> 
> Nope; all the jdk ports install into separate directories.  There is a
> javavmwrapper port that installs as /usr/local/bin/java and decides on the
> best jvm to use based on some environment variables (see the javavm
> manpage
> for details).  You can always override its choice by setting JAVA_HOME to
> whichever jvm you want.
> 
> -- 
>   Dan Nelson
>   dnel...@allantgroup.com
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscr...@freebsd.org"
> 
> 
Thanks for the response
-- 
View this message in context: 
http://www.nabble.com/install-both-jdk15-and-jdk-16-from-port-tp23553116p23554700.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: How to move vi to /bin

2009-05-15 Thread Matthew Seaman

Manish Jain wrote:

Mel Flynn wrote:

On Wednesday 13 May 2009 09:21:46 manish jain wrote:


I want to move vi to /bin so that I have an editor available in
single-user mode.


The only reason to need an editor and not have /usr and /var available 
is to edit /etc/fstab. It is trivial to spot errors with /rescue/cat 
and fix with /rescue/sed, without having to worry about a terminal.


In all other cases:
fsck -p
/etc/rc.d/mountcritlocal start
/etc/rc.d/ldconfig start

And one can use any editor one would want. Don't forget to export or 
setenv TERM to cons25 from 'dumb'.




 From all the discussion I have walked through on the issue of where to 
place vi, it does appear FreeBSD has a skewed policy on the issue. There 
are plenty of reasons you might need access an editor in single-user 
mode - editing  fstab is just one. Having to use the workarounds 
suggested in place of vi is not so good, and manually moving vi to /bin 
is not simply a matter of 'mv /usr/bin/vi /bin/'.


One of the things I would dearly like to see in a future release is vi 
being placed under /bin.




There is an alternative means of achieving the same effect which I have been
occasionally known to advocate on this and other lists: the all-in-one partition
layout. Simply put, when installing the system instead of creating separate /,
/usr, /var etc. etc. partitions, you create only two partitions: a swap area and
(covering all the rest of the disk) one big partition mounted at /.

This means that in single user mode, dynamically linked programs like vi(1)
are available as normal.  It's easy to implement and it works well.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature