Re: webcamd startup problems

2012-01-25 Thread Hans Petter Selasky
Hi,

 

Webcamd is started by devd. In rc.conf, try:

 

devd_enable=YES

 

--HPS

___
freebsd-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 best practices

2012-01-25 Thread Victor Sudakov
Volodymyr Kostyrko wrote:

[dd]
 
 NO_BACKUP means don't create a temporary package when deleting 
 something. This is unsuitable for me as /usr/ports in my network is 
 distributed via NFS ro.

I also share /usr/ports via NFS ro, but I have defined
PACKAGES=/var/tmp/packages in portmaster.rc to store backups of
deleted packages, just in case.

[dd]

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:suda...@sibptus.tomsk.ru
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: Makeopts DEBUG=-g kernel option

2012-01-25 Thread Dirk Kotze


Hi again

Just some feedback - it seems that I have isolated the problem below with the 
help of a 2005 post by John Nielsen to freebsd-questions 
(http://lists.freebsd.org/pipermail/freebsd-sparc64/2005-August/003423.html).

I have isolated the problem as being caused by the compiler optimization flags, 
specifically the -O2 -pipe flags (the default flags used when makeoptions  
DEBUG=-g is not specified in the kernel configuration).  I have proved that 
the DEBUG flag per se has nothing to do with it by removing it, and then adding 
makeoptions COPTFLAGS=-O -pipe to the kernel config.  This boots fine.

Funny though, the exact original kernel used (without DEBUG and compiled with 
-O2) works fine on other hardware (e.g. the Tyan Tank G20 B5211 motherboard 
with an Intel Core2Duo CPU).  It only fails on the WADE-8020 board. It must be 
some specific hardware driver used on the WADE-8020 motherboard that breaks 
when compiled with -O2.

If anyone has suggestions as to how I can trace the problem further (so that I 
can log a bug with the BSD community), this will be appreciated.  Hopefully I 
can ensure that a future user does not struggle with the same problem I did.

As always, thanks for the help.

Regards,
Dirk Kotze
Developer

 From: Dirk Kotze
 Sent: Monday, January 23, 2012 4:27 PM
 To: 'freebsd-questions@freebsd.org'
 Subject: Makeopts DEBUG=-g kernel option

 Hi there

 I'm experiencing the following problem: All is well when I boot the standard 
 FreeBSD 8.2 GENERIC kernel.  The moment
 however when I comment out the line the line below, the kernel hangs upon 
 boot after detecting the em0 device (the
 motherboard has 2 Intel 8257x dual Gigabit Ethernet cards).
 makeopts   DEBUG=-g

 I'm using FreeBSD 8.2 on a WADE-8020 motherboard with an Intel QM57 chipset 
 and Intel Core i5 CPU. 

 The reason I'm trying to remove debugging options from the kernel is that I 
 am trying to make the kernel footprint
 smaller.

 This leaves me with a few questions:
 1) What are the risks/drawbacks/advantages of leaving debugging symbols in 
 the kernel?
 2) Why would debug symbols (of all things!) make the difference between a 
 working and non-working kernel?
 3) Does this point in the direction of some other (more serious problem 
 perhaps?) with the hardware and/or other
 kernel drivers?

 Thanks so much for any assistance.

 Regards,
 Dirk Kotze
 Developer


     Tel: +27 12 672 7281
  Fax: +27 12 665 1343
 Postal: P.O. Box 7991, Centurion, 0046
 Physical: 1 Pieter street, Highveld Park, Centurion


Important Notice:

This e-mail and its contents are subject to the Nanoteq (Pty) Ltd e-mail legal 
notice available at:
http://www.nanoteq.com/corp_profile/disclaimer.asp


Important Notice:

This e-mail and its contents are subject to the Nanoteq (Pty) Ltd e-mail legal 
notice available at:
http://www.nanoteq.com/corp_profile/disclaimer.aspThe message does not contain any threats
AVG for MS Exchange Server (10.0.1416 - 2109/4756)___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Odhiambo Washington
On Tue, Jan 24, 2012 at 19:37, Mike Tancsa m...@sentex.net wrote:

 On 1/24/2012 10:56 AM, Odhiambo Washington wrote:
  I am Google-ing for a recent definitive HOWTO use my 3G modem with
  FreeBSD/PC-BSD and what I get seem rather old.
 
  Someone can point me to a recent document detailing the steps. I have
  PC-BSD 9 on my laptop.

 Most of them just come up as cuaU* devices, but not all.  The method to
 use them has not really changed, so chances are what you have found via
 google will still work.

 Take a look at the relevant man pages.

 man u3g

 What type of modem do you have ?


Hi Mike,

I have a Huawei E1820

I will also try RTFM.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Odhiambo Washington
On Tue, Jan 24, 2012 at 21:48, Alejandro Imass a...@p2ee.org wrote:

 On Tue, Jan 24, 2012 at 10:56 AM, Odhiambo Washington
 odhia...@gmail.com wrote:
  I am Google-ing for a recent definitive HOWTO use my 3G modem with
  FreeBSD/PC-BSD and what I get seem rather old.
 

 Which one? You need to specifiy modem brand/model and network provider
 to see if other have got that particular one working. Also check the
 Linux crowd (Ubuntu in particular) and then extrapolate to FBSD.


I have a Huawei E1820 and I am in KE, using Safaricom.



  Someone can point me to a recent document detailing the steps. I have
  PC-BSD 9 on my laptop.
 

 Usually it's just a question of making the kernel mount the tty and the
 dial using something like wvdial. If it's popular and supported it's pretty
 easy, if not is still possible.

 Supporting the modem is usually a two layer problem first solving the
 multi-device problem on the USB bus, that is, selecting the correct device
 available (i.e. selecting the modem instead of the flash that contains the
 windows software), and then the actual kernel or userspace driver for that
 specific device (ZTE, Enfora, etc.).


Luckily, I already disabled the flash/virtual CD-ROM that the modem
contains. I got the AT string combo to do this. I also have one ZTE dongle
that I don't want to talk about because I haven't managed to find a way to
disable the virtual CD-ROM it contains.



 Ultimately, you get a serial modem and you just have to use AT command to
 dial, etc. and wvdial does a great job and it's quite easy to set-up and
 run.


You know, sometimes all this process is what makes people shy off of *BSD.
I am a diehard lover of FreeBSD, but the few times I have installed Linux
on my laptop, this whole process was a breeze... well, not quite, but not
as difficult as it is in FreeBSD. Luckily, I use WiFi more than I use 3G,
so it's never quite bothered me. Even now, I just want to see how easy it
can be on PC-BSD/FreeBSD, with a GUI to boot, if there is, but I do not
feel it is such a big necessity for me, because I have D-Link DIR-825 which
can use this modem on it's USB port and allow me to use 3G.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Odhiambo Washington
On Wed, Jan 25, 2012 at 09:23, Ivan Frosty ivanfro...@gmail.com wrote:

 The FreeBSD u3g driver ¶¶


 Introduction ¶¶
 This driver supports 3G (UMTS, HSDPA, HSUPA, HSPA) cards that provide
 access to one or more serial ports through a USB interface, providing
 PPP and AT command channels simultaneously. Some devices provide
 access to multiple pairs of channels for integrated GPS', or other
 access methods (Option HSO driver).

 Transfer speeds should be above 30k on a good UMTS connection and a
 fast server:

 % curl -o /dev/null ftp://ftp.nl.freebsd.org/pub/FreeBSD/ls-lR.gz
 % Total% Received % Xferd  Average Speed   TimeTime Time
  Current
 Dload  Upload TotalSpent   Left
 Speed
 12 19.9M   12 2486k0 0  40203  0  0:08:39  0:01:03  0:07:36
 43921
 Some (older) devices (from Sierra for example) provide 1 serial port
 through a normal serial port or the normal serial USB drivers. They
 usually support the ETSI / 3GPP 27.010 3GPPMultiplexProtocol, making
 it possible to open a AT command channel and a PPP connection channel
 simultaneously. A basic implementation which works on an Option
 Globetrotter GPRS card is available. Contact me for details.

 Verified to work ¶¶
 See the man page.

 Installation instructions ¶¶
 The driver is available in both FreeBSD 7 and FreeBSD 8. The one in
 FreeBSD 8 and up was written by Hans Petter Selasky. Consult
 freebsd-usb@… for more information and bug reports.

 The driver from FreeBSD 7 should be usable on FreeBSD 6, without too
 many changes. You will need to patch ucom.c though with the attached
 patch (see below).

 Tricks ¶¶
 To start your connection automatically use something like the
 following snippet in your devd.conf:

  attach 100 {
device-name ucom[0-9]+;
match vendor 0x12d1;
match product 0x1003;
action /usr/sbin/ppp -ddial kpn;
  };
 Some people have been able to get their device to successfully switch
 from driver mode to modem mode using  usb_modeswitch. You can compile
 it on !FreeBSD with

cc -L /usr/local/lib -I/usr/local/include -lusb -o usb_modeswitch
 usb_modeswitch.c
 if you have libusb installed. The mass storage devices the devices
 present should be available through ugen. Note that umass must not be
 present in your kernel nor as a module (or it should be made to ignore
 these devices).

 To see signal strength for example while online:

 Start ppp (See also PPPFor3GModems).


 prolly that could help.


I read this, but one thing I am sure about is that those details need to be
changed to reflect what I have on my system.
But I'm trying to see if there is an easier way out.


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.
___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Matthias Apitz
El día Tuesday, January 24, 2012 a las 10:23:18PM -0800, Ivan Frosty escribió:

 The FreeBSD u3g driver ¶¶
 
 
 Introduction ¶¶
 This driver supports 3G (UMTS, HSDPA, HSUPA, HSPA) cards that provide
 access to one or more serial ports through a USB interface, providing
 PPP and AT command channels simultaneously. Some devices provide
 access to multiple pairs of channels for integrated GPS', or other
 access methods (Option HSO driver).
 
 Transfer speeds should be above 30k on a good UMTS connection and a
 fast server:
 ...

I'm using for years now the u3g(4) driver in 8-CURRENT, 9- and
10-CURRENT; it just works fine with ppp(8) and gives, if the provider
has no bottle-nack in channels, up to 2 Mbps down- and 1 Mbps upstream;
I'm using USB Huawei dongles or USB sticks. There is nearly nothing
magic, it just works: you plug in the key, some devd(8) hook sends down
the PIN to the created serial device, and I start ppp(8) by hand (could
be done as well from a devd(8) hook);

HIH

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


UPDATING 20120116 -- x11/xcb-util -- instructions not working

2012-01-25 Thread Mark Felder
For the life of me I can't work around this xcb-util issue. This is a  
pretty fresh install and I have not made any workaround symlinks.


I ran:

# portmaster -R -r xcb-util-0

And the problem persists. It didn't even complete all the packages because  
some were still erroring on missing xcb libraries.


Example, editors/mousepad:


libtool: link: cannot find the library `/usr/local/lib/libxcb-aux.la' or  
unhandled argument `/usr/local/lib/libxcb-aux.la'

gmake[2]: *** [mousepad] Error 1
gmake[2]: Leaving directory  
`/usr/ports/editors/mousepad/work/mousepad-0.2.16/src'

gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory  
`/usr/ports/editors/mousepad/work/mousepad-0.2.16'

gmake: *** [all] Error 2
*** Error code 1


Is there a solution I'm missing? I'd really like to get this resolved  
today so all my programs work again :P

___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Mike Tancsa
On 1/25/2012 5:43 AM, Odhiambo Washington wrote:
 
 I have a Huawei E1820
 
 I will also try RTFM.

Hi,
kldload u3g
kldload umodem

plug in the modem

Show the output of

usbconfig

then

 sysctl -a dev.u3g
and
ls -l /dev/cuaU*

and
dmesg

On some 3g sticks, you have to send a command to put them in modem
mode. Typically this is done by 'ejecting the cd'

camcontrol eject pass0

But the driver knows of most of the variants out there and does that
automatically for you.


---Mike




-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.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


py-kaa-metadata build fails.

2012-01-25 Thread Mark
Anyone know of a fix for this error?

creating build/temp.freebsd-8.2-RELEASE-p3-i386-2.6/src/image
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -I/usr/local/include 
-fno-strict-aliasing -fPIC -I/usr/local/include/python2.6 -c 
src/image/exiv2.cpp -o bu
ild/temp.freebsd-8.2-RELEASE-p3-i386-2.6/src/image/exiv2.o -Wall
src/image/exiv2.cpp: In function 'PyObject* parse(PyObject*, PyObject*)':
src/image/exiv2.cpp:50: error: 'class Exiv2::ExifData' has no member named 
'copyThumbnail'
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/multimedia/py-kaa-metadata.




People sleep peaceably in their beds at night only because rough men stand 
ready to do violence on their behalf. 
George Orwell
___
freebsd-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 9 and 3G Modems

2012-01-25 Thread Alejandro Imass
On Wed, Jan 25, 2012 at 5:50 AM, Odhiambo Washington odhia...@gmail.com wrote:

[...]

 You know, sometimes all this process is what makes people shy off of *BSD. I 
 am a diehard lover of FreeBSD, but the few times I have installed Linux on my 
 laptop, this whole process was a breeze... well, not quite, but not as 
 difficult as it is in FreeBSD. Luckily, I use WiFi more than I use 3G, so 
 it's never quite bothered me. Even now, I just want to see how easy it can be 
 on PC-BSD/FreeBSD, with a GUI to boot, if there is, but I do not feel it is 
 such a big necessity for me, because I have D-Link DIR-825 which can use this 
 modem on it's USB port and allow me to use 3G.


It used to be like that in Linux as well. It's only until recently
that the netowrk manager app supports 3g modems. The problem is when
these graphical apps fail you have virtually no way to see what's
going on, just plug and pray.

If you get the tty, using Wvdial is actuall much easier than any other
dialing/ppp tool I've ever used. So even on Linuxes with NM applet and
3g modem support I would use Wvdial, and on FBSD especially! wvdial is
much more robust than the nm apps, IMHO.

-- 
Alejandro Imass
___
freebsd-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: zpool detach pool device

2012-01-25 Thread Matt Mullins
On Tue, Jan 24, 2012 at 11:13 PM, Fritz Wuehler
fr...@spamexpire-201201.rodent.frell.theremailer.net wrote:
 Just use dd and avoid the hassle of downloading and burning a cd that does
 dd. dban is nice if you have to do a garage full of machines or are a
 Windows victim but if you know your way around UNIX why bother with dban?

On occasion, I have had the need to perform the DoD Short Wipe
within DBAN; this is something a simple dd if=/dev/zero won't get
you.  Of course, you can use shred from coreutils to do that from the
command line if you want.
--
Matt Mullins
___
freebsd-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 Research Availability of Print Drivers

2012-01-25 Thread Polytropon
On Wed, 25 Jan 2012 14:39:37 -0500, robert perry wrote:
 In the past, I remember visiting certain websites that provided 
 links to drivers but have forgotten the address.  Could someone refresh my 
 memory or provide an address that could help?

Maybe you're thinking about linuxprinting.org which provides
PPD device descriptions that can be incorporated in CUPS which
has become the de-facto standard for printing?


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


Re: How to Research Availability of Print Drivers

2012-01-25 Thread Da Rock

On 01/26/12 05:39, robert perry wrote:
I intend to purchase a multifunction printer (including fax, scanner, 
 copier) and return to utilizing the BSD operating systems.  Early 
research indicates that few printer manufacturers formally support the 
FreeBSD or Unix operating systems but imply that drivers may still be 
available elsewhere.  In the past, I remember visiting certain 
websites that provided links to drivers but have forgotten the 
address.  Could someone refresh my memory or provide an address that 
could help?

Maybe try openprint.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: Portability of shell scripts from other *nixes

2012-01-25 Thread Da Rock

On 01/26/12 08:08, Doug Poland wrote:

Hello,

I'm trying port some shell scripts to FreeBSD that were originally
written on Darwin (OS X).

The issue I'm having is the shebang line of the scripts in OS X is
#!/bin/sh, and it turns out that is really an instance of bash, and
the code contains some bashisms.  On FreeBSD I have bash in
/usr/local/bin/bash.

Is there an easy/best way to have a single shebang that works on
both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
any symlinking of /usr/local/bin/bash to /bin/sh.

Cant you simply change the shebang to !#/usr/local/bin/bash?
___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Chuck Swiger
On Jan 25, 2012, at 2:08 PM, Doug Poland wrote:
 The issue I'm having is the shebang line of the scripts in OS X is
 #!/bin/sh, and it turns out that is really an instance of bash, and
 the code contains some bashisms.  On FreeBSD I have bash in
 /usr/local/bin/bash.
 
 Is there an easy/best way to have a single shebang that works on
 both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
 any symlinking of /usr/local/bin/bash to /bin/sh.

Try using something like:

  #!/usr/bin/env bash

(If the shell scripts are something written by Apple rather than by 
third-parties, please also consider filing a bug report.)

Regards,
-- 
-Chuck

___
freebsd-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 Research Availability of Print Drivers

2012-01-25 Thread Robert Bonomi

robert perry rperry1...@verizon.net wrote;

 I intend to purchase a multifunction printer (including fax, scanner,  
 copier) and return to utilizing the BSD operating systems.  Early research 
 indicates that few printer manufacturers formally support the FreeBSD or 
 Unix operating systems but imply that drivers may still be available 
 elsewhere.  In the past, I remember visiting certain websites that provided 
 links to drivers but have forgotten the address.  Could someone refresh my 
 memory or provide an address that could help?

I take it you don't mean;   http://www.google.com

For the 'printer' side, look for something that supports a 'standard'
printer _language_ -- preferably PostScript -- over a serial or parallel 
port, or the 'lpr/lpd' protocol over a network connection.

*OR* look at the (limited!) list of 'winrinters' directly supported by 
Ghostscript.

For faxing, look for something tht is 'Class2.0' (aka EIA/TIA 592) compliant.
any standard fax software -- like 'hylafax' - will talk to it.

For scanning, see the manpage for SANE(7).  also www.sane-project.org

The higher-end Brother MFP units pretty much work 'out of the box', for 
everything except scanning. 

Brother provides scanner driver binaries for SANE on Linux, and source-code
for the adventurous.  A quick persual indicates that a number of *nix 
varients are supported, including several *BSD varients (FreeBSD is not 
explicitly mentioned, unfortunately)  It does not look like it would 
require 'linuxemulator' compilation.

A quick attempt at './configure' indicated a need for some tweaking of
pathnames or file location.


___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Warren Block

On Wed, 25 Jan 2012, Doug Poland wrote:


I'm trying port some shell scripts to FreeBSD that were originally
written on Darwin (OS X).

The issue I'm having is the shebang line of the scripts in OS X is
#!/bin/sh, and it turns out that is really an instance of bash, and
the code contains some bashisms.  On FreeBSD I have bash in
/usr/local/bin/bash.

Is there an easy/best way to have a single shebang that works on
both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
any symlinking of /usr/local/bin/bash to /bin/sh.


Turns out that causes mysterious problems:
http://forums.freebsd.org/showthread.php?t=29088
___
freebsd-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 on Lenovo X200 what works?

2012-01-25 Thread Kaya Saman

Hi,

I discovered this thread: http://forums.freebsd.org/showthread.php?t=25539

and am wondering what will and won't work on my Lenovo X220


I'm currently in the process in deciding between FreeBSD 9 and Fedora 
15/16. I love FreeBSD on servers but unfortunately I haven't had much 
luck with it on client side systems.


Mainly I want to use the system for running a tier 2 hypervisor - 
VirtualBox (not OSE version).


i also want to be able to use HD graphics capabilities and wireless and 
the WWAN modem that comes with the system.


Currently I have something called Salix on here which is Slackware based 
but unfortunately the hardware isn't being detected properly and that's 
my major concern regarding FreeBSD!




Can anyone provide me with any success stories or advice in what I will 
be missing if I whack FreeBSD on here??




Regards,


Kaya
___
freebsd-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 9 on Lenovo X200 what works?

2012-01-25 Thread Da Rock

On 01/26/12 11:50, Kaya Saman wrote:

Hi,

I discovered this thread: 
http://forums.freebsd.org/showthread.php?t=25539


and am wondering what will and won't work on my Lenovo X220


I'm currently in the process in deciding between FreeBSD 9 and Fedora 
15/16. I love FreeBSD on servers but unfortunately I haven't had much 
luck with it on client side systems.


Mainly I want to use the system for running a tier 2 hypervisor - 
VirtualBox (not OSE version).


i also want to be able to use HD graphics capabilities and wireless 
and the WWAN modem that comes with the system.


Currently I have something called Salix on here which is Slackware 
based but unfortunately the hardware isn't being detected properly and 
that's my major concern regarding FreeBSD!




Can anyone provide me with any success stories or advice in what I 
will be missing if I whack FreeBSD on here??
Despite having similar hardware, you're only real best bet is to suck 
it and see. Try installing and seeing what you can get to work (dmesg, 
pciconf -lv, usbconfig, kldload modules, questions here, etc).


I've had mixed success with laptops (they're just about all I have as a 
desktop), and about my only problems have been with wifi- though that 
has mostly disappeared with Adrian's excellent work.


I have recently had trouble with a dual video card (and ATI 4200 and a 
6300 on the same machine), but that shouldn't be a problem. That has 
been fixed with using vesa, but that doesn't degrade performance or 
quality; biggest issue there is the residual image for security. But 
then I don't really give my video too much of workout, maybe it might 
affect you or not in any of the above cases.


Just have a go and see how it goes I say... :) It's not too much time to 
find out.


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


Re: FreeBSD 9 on Lenovo X200 what works?

2012-01-25 Thread John Levine
I'm running 8.2 on an X200.  For the most part everything works.  My
main complaint is that the sound is very quiet, and I haven't found
the setting to fix that.

Video and wifi work fine.  The kernel sees the camera and the thumb
reader but I haven't looked for applications that use them.

R's,
John
 
___
freebsd-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: UPDATING 20120116 -- x11/xcb-util -- instructions not working

2012-01-25 Thread Mark Felder

On 25.01.2012 09:52, Mark wrote:


I got stuck in this hell the other day, I had to do this.

 portmaster --check-depends

 to see if anything is missing

then

 portmaster -a -f



I want to report back that this did end up working pretty darn well. 
:-)  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


Re: SV: php5 port seems broken

2012-01-25 Thread Tim Dunphy
yes I did.I put these lines into httpd.conf


AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

and that did the trick. Thanks again list!

tim

- Original Message -
From: Hasse Hansson ha...@thorshammare.org
To: Tim Kellers timot...@wallnet.com, freebsd-questions@freebsd.org
Sent: Monday, January 23, 2012 6:24:36 AM
Subject: SV: php5 port seems broken



-Oprindelig meddelelse-
Fra: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] På vegne af Tim Kellers
Sendt: den 23 januari 2012 02:04
Til: freebsd-questions@freebsd.org
Emne: Re: php5 port seems broken

On 1/22/12 7:50 PM, Tim Dunphy wrote:
 Hello again,

 Thanks for your input. Before attempting to install php on this machine I 
 updated my ports tree with csvsup. But following the steps in this article 
 helped me to get past this point.


 http://icesquare.com/wordpress/freebsdproblem-to-update-php-port/

 Which was basically:

 #sudo rm -Rf /var/db/portsnap/*
 #sudo portsnap fetch extract
 #sudo portsnap fetch update
 #cd /usr/ports/distfiles/
 #sudo wget http://fi.php.net/distributions/php-5.3.9.tar.bz2
 #cd /usr/ports/lang/php5
 #sudo make


 That was all I had to do. :)

 However I'm onto a new stumbling block, so if you're still tuned in I hope 
 you don't mind if I bounce this off the list.

 It seems that Apache 2.2 is not recognizing PHP now that it's installed.

 If I go to a php test page in a web browser this is all I see:

 ?php

 // Show all information, defaults to INFO_ALL phpinfo();

 // Show just the module information.
 // phpinfo(8) yields identical results.
 phpinfo(INFO_MODULES);

 ?


 These are the contents of the file I am hitting:

 ?php

 // Show all information, defaults to INFO_ALL phpinfo();

 // Show just the module information.
 // phpinfo(8) yields identical results.
 phpinfo(INFO_MODULES);

 ?



 I checked to see that in my main apache config file (httpd.conf) I have this 
 line:


 LoadModule php5_modulelibexec/apache22/libphp5.so

 And of course I've restarted apache after installing the php5 port. :)

 And since apache isn't even recognizing php at this point hitting the test 
 page does not generate any errors in the error logs.

 Any thoughts/hits/suggestions from here?

 thanks
 tim




 - Original Message -
 From: RWrwmailli...@googlemail.com
 To: freebsd-questions@freebsd.org
 Sent: Sunday, January 22, 2012 7:07:21 PM
 Subject: Re: php5 port seems broken

 On Sun, 22 Jan 2012 18:01:29 -0500
 Tim Kellers wrote:

 On 1/22/12 5:35 PM, Tim Dunphy wrote:
 Hello list,

I'm attempting to install php5 from my ports tree. I've attempted
 the latest version ( 5.3.9 located in /usr/ports/lang/php5) and the
 'latest stable' (5.2.17 located in /usr/ports/lang/php52). The
 result is pretty much the same:
 suhosin-patch-5.3.9-0.9.10.patch.gz. ===Giving up on fetching
 files: php-5.3.9.tar.bz2 Make sure the Makefile and distinfo file
 (/usr/ports/lang/php5/distinfo) are up to date.  If you are
 absolutely sure you want to override this check, type make
 NO_CHECKSUM=yes [other args]. *** Error code 1

 I just portupgraded my php5 this morning and I was able to fetch the
 distfile without trouble.  It might just be a partially dled file and
 a checksum mismatch.
 if you do a make checksum it will download the file or resume a
 partial download before checking the hash.


 You can try (as root)
 rm -rf /usr/ports/distfiles/php-5.3.9.tar.bz2

 and cd /usr/ports/lang/php5  make clean  make install clean
 or make distclean

 If that gets you past the checksum error, you should be able to build
 it successfully.
 Probably the ports tree needs to be updated to pick-up an updated hash
 value.
 ___
 freebsd-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


Did you out this in httpd.conf?

from pkg-message.mod:

***

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

***


Tim Kellers
___
freebsd-questions@freebsd.org mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
[] -
And have a look at /usr/ports/lang/php5-extentions
An easy to follow step by step tutorial 

Re: UPDATING 20120116 -- x11/xcb-util -- instructions not working

2012-01-25 Thread Conrad J. Sabatier
On Wed, 25 Jan 2012 08:53:39 -0600
Mark Felder f...@feld.me wrote:

 For the life of me I can't work around this xcb-util issue. This is
 a pretty fresh install and I have not made any workaround symlinks.
 
 I ran:
 
 # portmaster -R -r xcb-util-0
 
 And the problem persists. It didn't even complete all the packages
 because some were still erroring on missing xcb libraries.
 
 Example, editors/mousepad:
 
 
 libtool: link: cannot find the library `/usr/local/lib/libxcb-aux.la'
 or unhandled argument `/usr/local/lib/libxcb-aux.la'
 gmake[2]: *** [mousepad] Error 1

I'm getting this same error in several ports.  Just exactly which
package is supposed to be providing libxcb-aux.la?  And why isn't it?

-- 
Conrad J. Sabatier
conr...@cox.net
___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Doug Poland

On Jan 25, 2012, at 18:04 , Chuck Swiger wrote:

 On Jan 25, 2012, at 2:08 PM, Doug Poland wrote:
 The issue I'm having is the shebang line of the scripts in OS X is
 #!/bin/sh, and it turns out that is really an instance of bash, and
 the code contains some bashisms.  On FreeBSD I have bash in
 /usr/local/bin/bash.
 
 Is there an easy/best way to have a single shebang that works on
 both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
 any symlinking of /usr/local/bin/bash to /bin/sh.
 
 Try using something like:
 
  #!/usr/bin/env bash
 
 (If the shell scripts are something written by Apple rather than by 
 third-parties, please also consider filing a bug report.)
 
This gets me closer, but the scripts behave differently now on OS X.  For 
example, printf's don't output the same.  

-- 
Regards,
Doug



___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Da Rock

On 01/26/12 12:55, Doug Poland wrote:

On Jan 25, 2012, at 18:04 , Chuck Swiger wrote:


On Jan 25, 2012, at 2:08 PM, Doug Poland wrote:

The issue I'm having is the shebang line of the scripts in OS X is
#!/bin/sh, and it turns out that is really an instance of bash, and
the code contains some bashisms.  On FreeBSD I have bash in
/usr/local/bin/bash.

Is there an easy/best way to have a single shebang that works on
both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
any symlinking of /usr/local/bin/bash to /bin/sh.

Try using something like:

  #!/usr/bin/env bash

(If the shell scripts are something written by Apple rather than by 
third-parties, please also consider filing a bug report.)


This gets me closer, but the scripts behave differently now on OS X.  For 
example, printf's don't output the same.

Try searching on google and find out exactly what sh MacOSX is using. 
Then you'd have a better idea on what you're working with.

___
freebsd-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 Research Availability of Print Drivers

2012-01-25 Thread robert perry


- Original Message - 
From: robert perry rperry1...@verizon.net

To: freebsd-questions@freebsd.org
Sent: Wednesday, January 25, 2012 2:39 PM
Subject: How to Research Availability of Print Drivers


I intend to purchase a multifunction printer (including fax, scanner,  
copier) and return to utilizing the BSD operating systems.  Early research 
indicates that few printer manufacturers formally support the FreeBSD or 
Unix operating systems but imply that drivers may still be available 
elsewhere.  In the past, I remember visiting certain websites that provided 
links to drivers but have forgotten the address.  Could someone refresh my 
memory or provide an address that could help?


===

From Robert Bonomi:

For the 'printer' side, look for something that supports a 'standard'
printer _language_ -- preferably PostScript -- over a serial or parallel
port, or the 'lpr/lpd' protocol over a network connection.

*OR* look at the (limited!) list of 'winrinters' directly supported by
Ghostscript.

For faxing, look for something tht is 'Class2.0' (aka EIA/TIA 592) 
compliant.

any standard fax software -- like 'hylafax' - will talk to it.

For scanning, see the manpage for SANE(7).  also www.sane-project.org

The higher-end Brother MFP units pretty much work 'out of the box', for
everything except scanning.

Brother provides scanner driver binaries for SANE on Linux, and source-code
for the adventurous.  A quick persual indicates that a number of *nix
varients are supported, including several *BSD varients (FreeBSD is not
explicitly mentioned, unfortunately)  It does not look like it would
require 'linuxemulator' compilation.

A quick attempt at './configure' indicated a need for some tweaking of
pathnames or file location.

=


From Polytropon:

Maybe you're thinking about linuxprinting.org which provides
PPD device descriptions that can be incorporated in CUPS which
has become the de-facto standard for printing?

=

From Da Rock:

Maybe try openprint.org?


Thank you all for your suggestions.  I was able to review each and I think 
they'll be helpful.  I almost forgot how much fun this could be.


Bob Perry 


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


what are the top python books?

2012-01-25 Thread Gary Kline

guys,

sorry if this is a re-request and a bit OT, but, it's seriously
time i got myself in gear and bought or borrowed a book or CD // DVD
that teaches python.  i honestly do prefer ink+paper, but with one
hand MIA, i need paperweights!  so if there are books that can be
popped into the cd/dvd drawer, that would be  better.

i tried to follow some seriously complex python that might not have
worked on BSD.  I want something that's good enough to clue me in
on how to do that.  

thanks much,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 8.57a release of Jottings: http://jottings.thought.org
 Twenty-five years of service to the Unix community.

___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Chuck Swiger
Hi--

On Jan 25, 2012, at 7:24 PM, Da Rock wrote:
 On 01/26/12 12:55, Doug Poland wrote:
 This gets me closer, but the scripts behave differently now on OS X.  For 
 example, printf's don't output the same.
 
 Try searching on google and find out exactly what sh MacOSX is using. Then 
 you'd have a better idea on what you're working with.

/bin/sh on MacOSX is:

$ /bin/sh --version
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
Copyright (C) 2007 Free Software Foundation, Inc.

...and it has been using bash as /bin/sh since 10.2 or so.

Anyway, running bash as /bin/sh versus as /bin/bash likely affects whether it 
invokes printf as a builtin(1) command or as an external command.  It's 
possible that invoking /usr/bin/printf instead of just printf in the scripts 
might resolve the issue(s).

Regards,
-- 
-Chuck

___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread mikel king

On Jan 25, 2012, at 5:08 PM, Doug Poland wrote:

 Hello,
 
 I'm trying port some shell scripts to FreeBSD that were originally
 written on Darwin (OS X).
 
 The issue I'm having is the shebang line of the scripts in OS X is
 #!/bin/sh, and it turns out that is really an instance of bash, and
 the code contains some bashisms.  On FreeBSD I have bash in
 /usr/local/bin/bash.
 
 Is there an easy/best way to have a single shebang that works on
 both OS's?  I'd rather not change FreeBSD's bourne shell to bash with
 any symlinking of /usr/local/bin/bash to /bin/sh.
 
 
 -- 
 Regards,
 Doug


Mac OS X defaults to /bin/bash but things get weird because sh on mac is also 
bash. Funnily enough a complete separate binary and not a symlink. Anyway, this 
means things written for the Mac may not work directly on FreeBSD. What I mean 
is that bash3 syntax is not going to be backwardly compatible with sh. If you 
wish to retain the bashiness of the scripts then the easiest option would be to 
install the bash (3.x) port and use env to invoke the appropriate shell on each 
system.

Regards,
Mikel King
BSD News Network
http://bsdnews.net
skype: mikel.king
http://twitter.com/mikelking



___
freebsd-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: Portability of shell scripts from other *nixes

2012-01-25 Thread Devin Teske

On Jan 25, 2012, at 8:13 PM, Chuck Swiger wrote:

 Hi--
 
 On Jan 25, 2012, at 7:24 PM, Da Rock wrote:
 On 01/26/12 12:55, Doug Poland wrote:
 This gets me closer, but the scripts behave differently now on OS X.  For 
 example, printf's don't output the same.
 
 Try searching on google and find out exactly what sh MacOSX is using. Then 
 you'd have a better idea on what you're working with.
 
 /bin/sh on MacOSX is:
 
 $ /bin/sh --version
 GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
 Copyright (C) 2007 Free Software Foundation, Inc.
 
 ...and it has been using bash as /bin/sh since 10.2 or so.
 
 Anyway, running bash as /bin/sh versus as /bin/bash likely affects whether it 
 invokes printf as a builtin(1) command or as an external command.  It's 
 possible that invoking /usr/bin/printf instead of just printf in the scripts 
 might resolve the issue(s).
 

If that's the problem, perhaps a trick can do:

printf(){builtin printf $@;}

At the top after the she-bang. Should cause all invocations to use built-in 
versus otherwise by defining a function that explicitly calls the built-in.
-- 
Devin

_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. 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: Portability of shell scripts from other *nixes

2012-01-25 Thread Karl Vogel
 On Wed, 25 Jan 2012 16:08:07 -0600, 
 Doug Poland d...@polands.org said:

D I'm trying port some shell scripts to FreeBSD that were originally
D written on Darwin (OS X).  The issue I'm having is the shebang line of
D the scripts in OS X is #!/bin/sh, and it turns out that is really an
D instance of bash, and the code contains some bashisms.  On FreeBSD I
D have bash in /usr/local/bin/bash.

D Is there an easy/best way to have a single shebang that works on both
D OS's?  I'd rather not change FreeBSD's bourne shell to bash with any
D symlinking of /usr/local/bin/bash to /bin/sh.

   Do you have the Korn shell installed?  I've found that to be a nice
   compromise for scripts that have bash-isms.

-- 
Karl Vogel  I don't speak for the USAF or my company

Texted a friend meaning to ask if she was busy.
Me: Are you busty?  Her: They're manageable, what's up?
 --Jimmy Fallon, #textingdisaster tweets, 13 Jan 2012
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: what are the top python books?

2012-01-25 Thread Modulok
 sorry if this is a re-request and a bit OT, but, it's seriously
 time i got myself in gear and bought or borrowed a book or CD // DVD
 that teaches python.

If you want to learn python, first subscribe to the python tutor
mailing list. It's pretty much just like the FreeBSD list. In fact, I
think it uses the same exact software to run it and is configured on
about the same schedule. (List reminders come the same day.)

tu...@python.org

Next, the best book I've ever read on python was Python Essential
Reference by David M. Beazley. It's a very dry book but he covers
just about everything in the most concise way possible.

For a more basic introduction to the subject I would look at
www.diveintopython.net (The guy gives away his entire book online -
And it's pretty good! He's also a frequenter of the python tutor
list.) Once you get into the flow of things, look at
www.pythonchallenge.com it makes you use the language to solve
problems in an interesting way. Then, once you have mad skills check
out http://projecteuler.net/

Good luck!
-Modulok-
___
freebsd-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 Research Availability of Print Drivers

2012-01-25 Thread Warren Block

On Wed, 25 Jan 2012, robert perry wrote:


=

From Da Rock:

Maybe try openprint.org?


Thank you all for your suggestions.  I was able to review each and I think 
they'll be helpful.  I almost forgot how much fun this could be.


That should be http://www.openprinting.org/printers
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: what are the top python books?

2012-01-25 Thread Roland Smith
On Wed, Jan 25, 2012 at 07:39:40PM -0800, Gary Kline wrote:
 
 guys,
 
 sorry if this is a re-request and a bit OT, but, it's seriously
 time i got myself in gear and bought or borrowed a book or CD // DVD
 that teaches python.  i honestly do prefer ink+paper, but with one
 hand MIA, i need paperweights!  so if there are books that can be
 popped into the cd/dvd drawer, that would be  better.
 
 i tried to follow some seriously complex python that might not have
 worked on BSD.  I want something that's good enough to clue me in
 on how to do that.  

Learning Python by Mark Lutz is pretty complete and in-depth
introduction. But at 1100-odd pages it is quite a hefty tome, though. The
followup book Programming Python by the same author covers various aspects
like network programming, GUI programming et cetera.

The online documentation is excellent _for the standard library_ and the
_tutorial_. 

Also online you can find Think Python: How to Think Like a Computer
Scientist, which is a nice introduction

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


pgpLm2m1D7PPk.pgp
Description: PGP signature