Observations during upgrade 7.2 - 8.0

2010-07-18 Thread Peter Boosten
Hi all,

I recently upgraded several machines from 7.2 to 8.0 and I made a few
observations:

Two machines run on an ESX vmware server, and while interfaces started
counting at 0 (ie le0, le1, etc), now these interfaces start at 1 (le0
- le1, le1 - le2).

Is there any reason for 8.0 doing this, since it messed up a lot of things?

During the upgrade of all the packages using portupgrade, the pkgdb.db
got corrupted while upgrading ruby18-bdb, and interrupted the upgrade of
all packages (using portupgrade -af).

I've checked this by upgrading the port itself. Is this normal, and can
it be prevented, like excluding it from portugrade -fa?

TIA

Peter
-- 
http://www.boosten.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: Anybody can use webcam in skype in 8.1?

2010-07-18 Thread Modulok
I had a similar problem under linux the other day, if that helps. I
ended up setting the LD_PRELOAD environment variable to modify how
skype gets linked at runtime. In bash:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
skype

Again that's on linux, so it's probably not relevant, or even if it
is, the shared object file will be in a different location.

Sorry I'm not of much help. Maybe someone else can do better.
-Moduok-

On 7/17/10, Yuri y...@rawbw.com wrote:
 I am trying to make webcam work with skype. webcamd-0.1.14 creates
 functioning device /dev/video0 that works in mplayer and pwcview.

 Skype complained that some VIDIOCAP flag is missing. So I applied the patch:
 I patched kernel with this patch: linux_v4l.diff from
 http://leidinger.net/FreeBSD/linuxolator/ and copied over
 compat/linux/linux_videodev.h from the trunk.

 Skype now says there is vidio0 device, but video test fails and image
 isn't passed to the peers.

 Did you succeed with video in skype?

 Yuri

 ___
 freebsd-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: Anybody can use webcam in skype in 8.1?

2010-07-18 Thread Yuri

On 07/18/2010 07:27, Modulok wrote:

I had a similar problem under linux the other day, if that helps. I
ended up setting the LD_PRELOAD environment variable to modify how
skype gets linked at runtime. In bash:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
skype

Again that's on linux, so it's probably not relevant, or even if it
is, the shared object file will be in a different location.

Sorry I'm not of much help. Maybe someone else can do better.
-Moduok-
   


Thanks for this info.

I noticed that there is no linux port for libv4l from which
/usr/local/lib/libv4l2.so.0 comes. I am not sure now what
skype is doing without it's Linux version, why it doesn't
complain.

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


Digital camera for FreeBSD

2010-07-18 Thread Robert Ames

If such a thing does exist, can someone recommend a simple point
and shoot digital camera that you can connect to a FreeBSD machine
via a USB cable and have access to the images via a (presumably
MS-DOS based) filesystem?

Please CC me on responses as I'm not subscribed.  Thanks.
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Digital camera for FreeBSD

2010-07-18 Thread Polytropon
On Sun, 18 Jul 2010 12:21:42 -0400, Robert Ames roberta...@hotmail.com wrote:
 
 If such a thing does exist, can someone recommend a simple point
 and shoot digital camera that you can connect to a FreeBSD machine
 via a USB cable and have access to the images via a (presumably
 MS-DOS based) filesystem?

Let me first make sure that I answer correctly: I do interpret your
question about a point and shoot digital camera as a question
regarding a photo camera primarily, not a movie camera. I hope
that's correct.

Nearly all cameras work - either by accessing the FAT file system
on the card (or internal memory), or by PTP commands - both should
be standard, and some cameras can even be switched from one to the
other standard.

I own the following (digital) cameras, all working with FreeBSD
(list position indicates quality, quite):
- Canon PowerShot S3 IS
- Kodak EasyShare CX6330
- HP PhotoSmart M407
- Mustek MDC 3500
- Aiptec Pencam (AEG Snap 300)

Basically, you can use nearly ANY camera with FreeBSD. It's just
important that at least ONE of the existing access standards is
supported by the camera - USB direct storage access or PTP
functionality.

(I'm concentrating on USB cameras here, allthough Firewire based
cameras should also work, but I don't own any, so I can't be more
precise about this interface.)

There's also a workaround you should know about: If the camera
does NOT allow you to access its files through the camera, you
often can eject a SD or CF card. Many PCs today include readers
for those media. And if the reader complies to USB standards, it
can be used with FreeBSD.



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


Spanish keyboard in X

2010-07-18 Thread Leonardo M . Ramé
Hi,I'm trying to configure spanish keyboard in FreeBsd 8.1-RC2 with no luck, 
I've read many documents on the web, but they seem to be rather old, or assume 
that the user has Gnome or KDE installed, I use Awesome WM.

Any hint?

Leonardo M. Ramé
http://leonardorame.blogspot.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: Digital camera for FreeBSD

2010-07-18 Thread andrew clarke
On Sun 2010-07-18 12:21:42 UTC-0400, Robert Ames (roberta...@hotmail.com) wrote:

 If such a thing does exist, can someone recommend a simple point
 and shoot digital camera that you can connect to a FreeBSD machine
 via a USB cable and have access to the images via a (presumably
 MS-DOS based) filesystem?
 
 Please CC me on responses as I'm not subscribed.  Thanks.

Any camera that can act as a USB mass storage device should
basically be plug-and-play in FreeBSD.  Once such a camera is switched
on it will behave essentially the same as a USB card reader, and you
can you mount the flash memory card using mount_msdos.  This web page
shows how:

http://www.freebsddiary.org/card-reader.php

http://en.wikipedia.org/wiki/USB_mass-storage_device_class 

There are some cameras (eg. my Kodak C1013) that support Picture
Transfer Protocol (PTP) over USB, instead of acting as a mountable
mass storage device.  For PTP-only cameras you can use gPhoto
(graphics/gphoto2 in Ports) to copy the images and videos to your PC.

http://en.wikipedia.org/wiki/Picture_Transfer_Protocol 

http://en.wikipedia.org/wiki/GPhoto

I believe F-Spot (graphics/f-spot) also supports PTP cameras.

Another option (for both types of cameras) is of course to use a USB
card reader, removing the flash memory card from the camera each time
you want to access your images.  It's somewhat cumbersome to do this
each time, although it's good to have a card reader anyway in
emergencies when the camera's batteries have inevitably gone flat.

Good luck,

Regards
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: Spanish keyboard in X

2010-07-18 Thread Polytropon
On Sun, 18 Jul 2010 09:49:16 -0700 (PDT), Leonardo M. Ramé 
martinr...@yahoo.com wrote:
 Hi,I'm trying to configure spanish keyboard in FreeBsd 8.1-RC2
 with no luck, I've read many documents on the web, but they seem
 to be rather old, or assume that the user has Gnome or KDE
 installed, I use Awesome WM.
 
 Any hint?

What's wrong about the old-fashioned way of using xorg.conf as
a central means of X configuration? :-)

Section InputDevice
Identifier  Keyboard0
Driver  kbd
Option  XkbModel  pc105
Option  XkbLayout de
Option  AutoRepeat250 30
EndSection

Of course, you have to set the correct codes for spanish layout
(setting XkbLayout), it should be es.


-- 
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: Spanish keyboard in X

2010-07-18 Thread Leonardo M . Ramé
Yes,I have modified xorg.conf the same way as you mentioned.

Anyway, now the problem is solved by adding setxkbmap es  to my .xsession

Thanks.

Leonardo M. Ramé
http://leonardorame.blogspot.com


--- On Sun, 7/18/10, Polytropon free...@edvax.de wrote:

 From: Polytropon free...@edvax.de
 Subject: Re: Spanish keyboard in X
 To: Leonardo M. Ramé martinr...@yahoo.com
 Cc: freebsd-questions@freebsd.org
 Date: Sunday, July 18, 2010, 2:36 PM
 On Sun, 18 Jul 2010 09:49:16 -0700
 (PDT), Leonardo M. Ramé martinr...@yahoo.com
 wrote:
  Hi,I'm trying to configure spanish keyboard in FreeBsd
 8.1-RC2
  with no luck, I've read many documents on the web, but
 they seem
  to be rather old, or assume that the user has Gnome or
 KDE
  installed, I use Awesome WM.
  
  Any hint?
 
 What's wrong about the old-fashioned way of using
 xorg.conf as
 a central means of X configuration? :-)
 
 Section InputDevice
         Identifier     
 Keyboard0
         Driver     
     kbd
         Option     
     XkbModel         
     pc105
         Option     
     XkbLayout         
    de
         Option     
     AutoRepeat         
   250 30
 EndSection
 
 Of course, you have to set the correct codes for spanish
 layout
 (setting XkbLayout), it should be es.
 
 
 -- 
 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


utf8 characters in terminal

2010-07-18 Thread Leonardo M . Ramé
Hi, I installed Freebsd 8.1-RC2 in my home server to be used mainly as a file 
server, it used to have Ubuntu 9.10-Server installed on it, then I backed up 
(.tar.gz) the /home directory, that contains many spanish accented files and 
subdirectories in UTF8.

Now, when I access this machine using ssh, some of those files include ?? and 
\303 or similar characters instead of the correct accents.

What can I do to show the files in the correct way?.

Leonardo M. Ramé
http://leonardorame.blogspot.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


Emacs splash screen went to textmode only

2010-07-18 Thread Markus Hoenicka
Hi,

I've recently updated Emacs to the latest version (23.2_2,2 from
23.1.1) along with all dependencies. Since then, the startup screen
when running in an X window shows b/w text only like in the days of
yore. Not that the startup screen graphics are that important, but
things that don't work as expected tend to make me nervous.

According to startup.el, the following variables affect what is shown
at startup. Evaluating them in the scratch buffer looks like this:

inhibit-startup-screen
nil
initial-buffer-choice
nil

That is, the startup screen *should* be displayed, or am I missing
something here?

The interesting thing is that nothing else about the startup screen
appears broken. If I evaluate

(fancy-startup-screen)

in the scratch buffer, i.e. the function which actually displays the
startup screen, Emacs faithfully does so, including the graphics and
all bells and whistles.

Has anything fundamentally changed between these versions? Does Emacs
think it runs in a terminal? Any clues would be greatly appreciated.

regards,
Markus

-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38
___
freebsd-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: Samba gives invalid PT_PHDR after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-18 Thread David Brodbeck


On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote:


On Wed, July 7, 2010 2:20 am, mcoyles wrote:
Today I tried using portupgrade -R -f samba34 to rebuild samba  
and all
of its dependencies, but I'm still getting the same error. I'm a  
little
surprised that a minor version upgrade broke this so thoroughly.   
I went
back over the release notes to see if I missed any obvious caveats  
about

upgrading, but if I did, I'm not seeing it.


David - have a look here...
http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html


OK, I see.  It looks like rtld is part of world, not a port, so then  
the
question becomes, why didn't freebsd-update update it for me?  Is  
there a
way I can force a binary upgrade, or do I need to download the  
source and

rebuild things that way?


I ended up downloading the 7.3 livefs ISO, booting off of it, and  
replacing /libexec/ld-elf.so.1 with the one from the CD.  That fixed  
the problem.


I suspect the reason freebsd-update didn't upgrade it properly is it  
appears it's impossible to replace this file on a running system, even  
in single-user mode.  Maybe there should be something in the release  
notes about a 7.2 - 7.3 upgrade being impossible to do properly  
except by booting from CD?


___
freebsd-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: Digital camera for FreeBSD

2010-07-18 Thread Rolf G Nielsen

2010-07-18 19:06, Polytropon skrev:

On Sun, 18 Jul 2010 12:21:42 -0400, Robert Amesroberta...@hotmail.com  wrote:


If such a thing does exist, can someone recommend a simple point
and shoot digital camera that you can connect to a FreeBSD machine
via a USB cable and have access to the images via a (presumably
MS-DOS based) filesystem?


Let me first make sure that I answer correctly: I do interpret your
question about a point and shoot digital camera as a question
regarding a photo camera primarily, not a movie camera. I hope
that's correct.

Nearly all cameras work - either by accessing the FAT file system
on the card (or internal memory), or by PTP commands - both should
be standard, and some cameras can even be switched from one to the
other standard.

I own the following (digital) cameras, all working with FreeBSD
(list position indicates quality, quite):
- Canon PowerShot S3 IS
- Kodak EasyShare CX6330
- HP PhotoSmart M407
- Mustek MDC 3500
- Aiptec Pencam (AEG Snap 300)

Basically, you can use nearly ANY camera with FreeBSD. It's just
important that at least ONE of the existing access standards is
supported by the camera - USB direct storage access or PTP
functionality.

(I'm concentrating on USB cameras here, allthough Firewire based
cameras should also work, but I don't own any, so I can't be more
precise about this interface.)

There's also a workaround you should know about: If the camera
does NOT allow you to access its files through the camera, you
often can eject a SD or CF card. Many PCs today include readers
for those media. And if the reader complies to USB standards, it
can be used with FreeBSD.





My Casio Exilim EX-S12 works perfectly, and identifies itself as a USB 
Mass Storage device, i.e. it gets a daX device node in /dev. I used to 
have an Olympus SP-500UZ, which also worked perfectly as a USB Mass 
Storage device. Neither of those are current models, but I doubt that 
either Casio or Olympus have stopped supporting USB Mass Storage (IIRC 
the Casio can be set to either USB Mass Storage or PTP).

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


Radio Shark 2

2010-07-18 Thread Ryan Coleman
Does anyone have an experience getting the Radio Shark 2 set up? I'm hoping to 
use it for radio streaming in my apartment. 

I've found shark2.c on the net and gcc is failing to compile it; I'm a PHP 
developer with a lot of admin time on FreeBSD (8-RELEASE, AMD64 build 
presently) but can't get my head around that piece.

r...@server /usr/local/include]# gcc -g -o shark2 -lhid shark2.c
In file included from shark2.c:21:
/usr/include/hid.h:6:23: error: hidparser.h: No such file or directory
In file included from shark2.c:21:
/usr/include/hid.h:69: error: expected specifier-qualifier-list before 'HIDData'
shark2.c: In function 'main':
shark2.c:98: warning: incompatible implicit declaration of built-in function 
'exit'
shark2.c:102: warning: incompatible implicit declaration of built-in function 
'exit'

[[Basically it's not finding hidparser.h - I get that - but it isn't checking 
paths to look for it or I just can't seem to set any new search paths -R]]

::: contents of shark2.c :::
/* This souce code written my Michael Rolig (email: 
michael_ro...@alumni.macalester.edu)
* This can be considered to be in the public domain
*/

/* Modified for Radio Shark2 2007-05-11
* This souce code written my Hisaaki Shibata (email: shib...@luky.org)
* This can be considered to be in the public domain
*/

#define DEBUG false /* Set true for copious debugging output */
#define SHARK_VENDID 0x077d /* Griffin's Vendor ID */
#define SHARK_DEVID 0x627a  /* The radioSHARK's Device ID */

#define READ_EP 0x5 /* libhid read command? */
#define WRITE_EP 0x5/* libhid write command? */
#define SEND_PACKET_LENGTH 7/* size of an instruction packet: shark2=7 */

#include /usr/include/stdio.h
#include /usr/include/string.h
#include /usr/include/unistd.h
#include /usr/include/hid.h

void usage(int argc, const char** argv) {
   printf(%s command arg\n\tchange state of radioSHARK\n\n, argv[0]);
   printf(commands:\n
-fm freqeuncy: set FM frequency, e.g. '-fm 91.5'\n
-am frequency: set AM frequency, e.g. '-am 730'\n
-blue intensity  : turn on blue LED (0-127) '-blue 127'\n
-red 0/1 : turn on/off red LED '-red 1'\n);
}

int main(int argc, const char** argv) {

   /* Declare variables used later */
   hid_return ret;
   HIDInterface* hid;
   HIDInterfaceMatcher matcher = { SHARK_VENDID, SHARK_DEVID, NULL, NULL, 0 
};

   /* Build the instruction packet to send to the shark */
   unsigned char PACKET[SEND_PACKET_LENGTH] = { 0x00, 0x00, 0x00, 0x00, 
0x00, 0x00, 0x00 };
   unsigned short encodedFreq;
   float freq;
   unsigned int intensity;
   if (argc == 3) {
   if (strcmp(argv[1], -fm) == 0) {
   /* Tune to an FM frequency */
   PACKET[0] = 0x81;
   encodedFreq = 0;
   freq = atof(argv[2]);
   encodedFreq  = ((freq * 10 * 2) - 3 );
   PACKET[1] = (encodedFreq  8)  0xFF;
   PACKET[2] = encodedFreq  0xFF;
   PACKET[3] = 0x33;
   PACKET[4] = 0x04;
   PACKET[5] = 0x00;
   PACKET[6] = 0x28;
   if (DEBUG) {
   printf(band = fm\n);
   printf(freq = %.1f\n, freq);
   printf(encoded freq = 0x%x\n, (unsigned 
int)encodedFreq);
   }
   } else if (strcmp(argv[1], -am) == 0) {
   /* Tune to an AM frequency */
   PACKET[0] = 0x81;
   encodedFreq = 0;
   freq = (float)atoi(argv[2]);
   encodedFreq  = ((unsigned short)freq * 4 ) + 16300;
   PACKET[1] = (encodedFreq  8)  0xFF;
   PACKET[2] = encodedFreq  0xFF;
   PACKET[3] = 0xF3;
   PACKET[4] = 0x36;
   PACKET[5] = 0x00;
   PACKET[6] = 0x24;
   if (DEBUG) {
   printf(band = am\n);
   printf(freq = %d\n, (unsigned int)freq);
   printf(encoded freq = 0x%x\n, (unsigned 
int)encodedFreq);
   }
   } else if (strcmp(argv[1], -blue) == 0) {
   /* Adjust the blue LED */
   intensity = atoi(argv[2]);
   PACKET[0] = 0x83;
   PACKET[1] = (char)intensity;
   } else if (strcmp(argv[1], -bblue) == 0) {
   /* Adjust the blue LED's pulsing rate */
   intensity = atoi(argv[2]);
   PACKET[0] = 0xA1;
   PACKET[1] = (char)intensity;
   } else if 

Is there a script to upgrade i386 system to amd64 ?

2010-07-18 Thread Yuri
Since this is something that potentially almost everyone would need at 
least once this should be made very easy for the end user.


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


Re: Is there a script to upgrade i386 system to amd64 ?

2010-07-18 Thread Dan Nelson
In the last episode (Jul 18), Yuri said:
 Since this is something that potentially almost everyone would need at
 least once this should be made very easy for the end user.

When I did it, I believe I just made copies of /usr/lib and /usr/local/lib
to ../lib32 (so 32-bit ports would still work), installed the 64-bit kernel
and world, rebooted, then upgraded all the ports over a week or so.  I was
running zfs so I made a snapshot of the 32-bit system as it was just before
the install.  A 64-bit buildworld and GENERIC kernel both default to
enabling 32-bit support and compat libraries, and I believe a 64-bit kernel
will boot and run a 32-bit world, so compatibility is good.

Just be aware that binary file formats for programs installed via ports may
differ, so things like rrdtool datafiles and mysql databases will need to be
dumped to text form and reloaded.  That's where the 32-bit snapshot came in
handy (so I had access to the 32-bit binaries after my port upgrades
finished and could dump using old binaries then reload using the new ones as
I discovered problems).

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


Re: Is there a script to upgrade i386 system to amd64 ?

2010-07-18 Thread Olivier Nicole
Hi

 Since this is something that potentially almost everyone would need at 
 least once this should be made very easy for the end user.

I am not sure what you mean. I have penty of machines that are 32 bits
and simply cannot run 64 bits.

If I ever replace one 32 bits machines with a 64 bits new machine, I
will simply re-install everything from scratch, it's safer (can run
the 2 machines in parallel until the new on eis ready) and simplier,
and gives me opportunity for a good cleanup (I will not reinstall all
the bits and pieces that I only installed for testing purpose and
never used after that).

Best regards,

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


samba pam_smbpass passwd seg fault

2010-07-18 Thread Michael McGrew
I'm trying to sync the local unix account passwords to the samba
smbpass db using pam. When i run passwd, after it's done it seg faults
and produces a core dump. The odd thing is that it works, the users
local unix password gets synced to the smbpass db, but it seg faults.
Below are my relevant config files. Is this a bug or am I doing
something wrong?

/usr/local/etc/smb.conf

security = user
passdb backend = smbpasswd

cat /etc/pam.d/passwd
#
# $FreeBSD: src/etc/pam.d/passwd,v 1.3.36.1 2010/02/10 00:26:20 kensmith Exp $
#
# PAM configuration for the passwd service
#

# passwd(1) does not use the auth, account or session services.

# password
#password   requisite   pam_passwdqc.so enforce=users
passwordrequiredpam_unix.so no_warn
try_first_pass nullok
passwordoptional/usr/local/lib/pam_smbpass.so
try_first_pass smbconf=/usr/local/etc/smb.conf

[r...@localhost ~]# passwd
Changing local password for root
New Password:
Retype New Password:
Segmentation fault: 11 (core dumped)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Has anybody got a *working* example of getpwnam_r() ??

2010-07-18 Thread Robert Bonomi

I've _got_ to be doing something wrong, sine I'm getting heap corruption
calling it.  But for the life of me, I can't figure out -what- is wrong.

What I've got makes a whole lot of no sense -- I get corruption of
the _same_ malloc()'d data structure (at *exactly* the same offset into
the structure!!) on both 7.2 i386 and 8.0 amd64 releases (on different
hardware).

Unfortunately thee is a _lot_ of code, including significant use of
of malloc()/free() that attempmting to whittle things down to a
minimal test case would be very awkward.  right now, I've got the
corruption at a 'known' place, but no cluse as to -how- it's 
happening -- available evidence seems to exclude everything passed
_into_ getwpnam_r(). 


the offending call is :  

   getpwnam_r(cp3, pw_data, buffer2, sizeof(buffer2), pwd);

data declaration at the beginning of the function:
   char buffer[1024];
   char buffer2[1024];
   char mailbox[1024];
  *cp,*cp2,*cp3,*cp4 = buffer;
   struct passwd pw_data,pw_data2,*pwd=pw_data2;
   int i;

The whole program is around 2500 lines of code and headers, with, as 
mentioined, _lots_ of malloc()/free() activity,   I can put ut it up on
my web-server, if somebody really wants to dig.

I've tried changing the size of buffer2 to 8kb, in case I was
over-running the 1k buffer. ((unfortunately the mmanpage does _not_
specify a minimum size for the buffer)
I've tried declaring buffer2 _and_ the 'struct passwd' items as
'static', so that _if_ the corruption was coming from one of
those addresses, the corruption *should* move.

*NONE* of those changes made _any_ differnce in  where the corruption
was occuring, or _what_ was being written there.

I'm *really* baffled.   HELP!!! *whimper*

_what_ stuff shows up _does_ differ between the 7.2 and 8.0 systems,

8.0 reliably produces 116 bytes corrupted:
[gdb command: x/112 private_data_pointer-remotehostname
0x40a0e070: 103 'g' 114 'r' 111 'o' 117 'u' 112 'p' 0 '\0'  0 '\0'  0 '\0'
0x40a0e078: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e080: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e088: 104 'h' 111 'o' 115 's' 116 't' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e090: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e098: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0a0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0a8: 112 'p' 97 'a'  115 's' 115 's' 119 'w' 100 'd' 0 '\0'  0 '\0'
0x40a0e0b0: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e0b8: 115 's' 104 'h' 101 'e' 108 'l' 108 'l' 115 's' 0 '\0'  0 '\0'
0x40a0e0c0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0c8: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e0d0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0d8: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'


7.2 produces 64 bytes corrupted:
[gdb command: x/112 private_data_pointer-remotehostname
0x2820b098: 100 'd' 110 'n' 115 's' 0 '\0'  110 'n' 105 'i' 115 's' 0 '\0'
0x2820b0a0: 110 'n' 105 'i' 115 's' 0 '\0'  114 'r' 112 'p' 99 'c'  0 '\0'
0x2820b0a8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0b0: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0b8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0c0: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  3 '\003'0 '\0'  8 '\b' 
0 '\0'
0x2820b0c8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0d0: 2 '\002'0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0' 
0 '\0'

This stuff looks like it -might- be fromm a nsswitch.conf parse.
I dunno.

anybody got _any_ ideas?

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


Re: Emacs splash screen went to textmode only

2010-07-18 Thread Ashish SHUKLA
Hi Markus,

Markus Hoenicka writes:
 Hi,

 I've recently updated Emacs to the latest version (23.2_2,2 from
 23.1.1) along with all dependencies. Since then, the startup screen
 when running in an X window shows b/w text only like in the days of
 yore. Not that the startup screen graphics are that important, but
 things that don't work as expected tend to make me nervous.

Can you upload the screenshot of what you're getting ?

 According to startup.el, the following variables affect what is shown
 at startup. Evaluating them in the scratch buffer looks like this:

 inhibit-startup-screen
 nil
 initial-buffer-choice
 nil

 That is, the startup screen *should* be displayed, or am I missing
 something here?

 The interesting thing is that nothing else about the startup screen
 appears broken. If I evaluate

 (fancy-startup-screen)

 in the scratch buffer, i.e. the function which actually displays the
 startup screen, Emacs faithfully does so, including the graphics and
 all bells and whistles.

 Has anything fundamentally changed between these versions? Does Emacs
 think it runs in a terminal? Any clues would be greatly appreciated.

Can you try starting Emacs in X11 with following command:

#v+
% emacs -q --no-site-file 
#v-

Thanks
-- 
Ashish SHUKLA  | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0
freebsd.org!ashish | http://people.freebsd.org/~ashish/

“We've so many people in India, that we're able to route each network
packet manually.” (nobotz)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Is there a script to upgrade i386 system to amd64 ?

2010-07-18 Thread Yuri

On 07/18/2010 19:43, Dan Nelson wrote:

When I did it, I believe I just made copies of /usr/lib and /usr/local/lib
to ../lib32 (so 32-bit ports would still work), installed the 64-bit kernel
and world, rebooted, then upgraded all the ports over a week or so.  I was
running zfs so I made a snapshot of the 32-bit system as it was just before
the install.  A 64-bit buildworld and GENERIC kernel both default to
enabling 32-bit support and compat libraries, and I believe a 64-bit kernel
will boot and run a 32-bit world, so compatibility is good.

Just be aware that binary file formats for programs installed via ports may
differ, so things like rrdtool datafiles and mysql databases will need to be
dumped to text form and reloaded.  That's where the 32-bit snapshot came in
handy (so I had access to the 32-bit binaries after my port upgrades
finished and could dump using old binaries then reload using the new ones as
I discovered problems).
   


Thanks, this sounds very encouraging and I will try it.

Another question is: are there any parts that won't work in amd64,
besides file format issue that you just mentioned.
Like NVidia driver? MPlayer plugins (taken from Windows binaries)?
Linux flush in browsers, it's originally only 32-bit in Linux and works
through the series of hacks in nspluginwrapper?

Yuri
___
freebsd-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: best open source site for Bourne .sh development project?

2010-07-18 Thread Fbsd8

CyberLeo Kitsana wrote:

On 07/05/2010 06:37 PM, Fbsd8 wrote:

I developing a jailed environment application in Bourne script. Looking
for recommends for a open source web site to join and add my code to so
others may participate. The site needs to be able to host the code to be
used as the download location for a freebsd port, and not be terminated
when the project becomes dormant.


SourceForge.net?

Thanks SourceForge.net is free and full features. The free mailing list 
was so simple to set up. This is the best site.



___
freebsd-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: Anybody can use webcam in skype in 8.1?

2010-07-18 Thread Yuri

On 07/18/2010 07:27, Modulok wrote:

I had a similar problem under linux the other day, if that helps. I
ended up setting the LD_PRELOAD environment variable to modify how
skype gets linked at runtime. In bash:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so
skype

Again that's on linux, so it's probably not relevant, or even if it
is, the shared object file will be in a different location.

Sorry I'm not of much help. Maybe someone else can do better.
-Moduok-

   


I noticed that there is even no linux port of libv4l on FreeBSD.
Maybe this is the issue with skype?

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


startkde: Could not start kdeinit4. Check your installation.

2010-07-18 Thread claudiu vasadi
Hello fellas,

my system: FreeBSD [xxx] 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21
15:48:17 UTC 2009
[email]r...@almeida.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC
i386

my problem:




-
# startx
xauth: creating new authority file /root/.serverauth.69910


X.Org X Server 1.6.1
Release Date: 2009-4-14
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.0-RELEASE i386
Current Operating System: FreeBSD mainserver.serveftp.org 8.0-RELEASE
FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009
r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 21 October 2009 04:11:47AM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sun Jul 18 15:50:08 2010
(==) Using config file: /etc/X11/xorg.conf
kcheckrunning: not found
kbuildsycoca4 running...
startkde: Starting up...
/libexec/ld-elf.so.1: /lib/libthr.so.3: Undefined symbol __pselect
startkde: Could not start kdeinit4. Check your installation.
-





at the moment the box has xfce4 on it and I decided to install kde4 (pkg_add
-r kde4). all went flawlessly. I added exec /usr/local/kde4/bin/startkde
to ~/.xinitrc but when I do startx I get the message above.

The box is a remote one. After the error, startx does not exit and if I use
x11vnc I see a black screen with a box that says Could not start kdeinit4.
Check your installation and a Okay button. If I click it, x11vnc exits
but startx does not.


However, if I run /usr/local/kde4/bin/startkde and x11vnc with -auth
option, I can see the kde4 login screen and after it accepts my credentials
I see Could not start kdeinit4. Check your installation. If I click
okay, x11vnc exits. I was unable to replicate this behaviour - it happened
only once (kde does not run without a X server so I'm presuming I had some X
process hanging somewhere)

I've been google-ing for quite some time now and I am unable to find
anything relevant.

The machine is ~800 km away so direct interaction is impossible.

Any ideas are welcomed.


PS: nothing relevant in messages.log, all.log and Xorg.log. The video card
is a nvidia FX5500.
PS2: on a vmware machine, (fresh install of F-BSD 8.0 - kernel+base) I had
no problems.
PS3: I have reinstalled all kde4 packages (pkg_add) and rebuild libthr from
source but with no effect :(
___
freebsd-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: Has anybody got a *working* example of getpwnam_r() ??

2010-07-18 Thread Brad Mettee

Robert Bonomi wrote:

I've _got_ to be doing something wrong, sine I'm getting heap corruption
calling it.  But for the life of me, I can't figure out -what- is wrong.

What I've got makes a whole lot of no sense -- I get corruption of
the _same_ malloc()'d data structure (at *exactly* the same offset into
the structure!!) on both 7.2 i386 and 8.0 amd64 releases (on different
hardware).

Unfortunately thee is a _lot_ of code, including significant use of
of malloc()/free() that attempmting to whittle things down to a
minimal test case would be very awkward.  right now, I've got the
corruption at a 'known' place, but no cluse as to -how- it's 
happening -- available evidence seems to exclude everything passed
_into_ getwpnam_r(). 



the offending call is :  


   getpwnam_r(cp3, pw_data, buffer2, sizeof(buffer2), pwd);

data declaration at the beginning of the function:
   char buffer[1024];
   char buffer2[1024];
   char mailbox[1024];
  *cp,*cp2,*cp3,*cp4 = buffer;
   struct passwd pw_data,pw_data2,*pwd=pw_data2;
   int i;

The whole program is around 2500 lines of code and headers, with, as 
mentioined, _lots_ of malloc()/free() activity,   I can put ut it up on

my web-server, if somebody really wants to dig.

I've tried changing the size of buffer2 to 8kb, in case I was
over-running the 1k buffer. ((unfortunately the mmanpage does _not_
specify a minimum size for the buffer)
I've tried declaring buffer2 _and_ the 'struct passwd' items as
'static', so that _if_ the corruption was coming from one of
those addresses, the corruption *should* move.

*NONE* of those changes made _any_ differnce in  where the corruption
was occuring, or _what_ was being written there.

I'm *really* baffled.   HELP!!! *whimper*

_what_ stuff shows up _does_ differ between the 7.2 and 8.0 systems,

8.0 reliably produces 116 bytes corrupted:
[gdb command: x/112 private_data_pointer-remotehostname
0x40a0e070: 103 'g' 114 'r' 111 'o' 117 'u' 112 'p' 0 '\0'  0 '\0'  0 '\0'
0x40a0e078: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e080: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e088: 104 'h' 111 'o' 115 's' 116 't' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e090: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e098: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0a0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0a8: 112 'p' 97 'a'  115 's' 115 's' 119 'w' 100 'd' 0 '\0'  0 '\0'
0x40a0e0b0: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e0b8: 115 's' 104 'h' 101 'e' 108 'l' 108 'l' 115 's' 0 '\0'  0 '\0'
0x40a0e0c0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0c8: 99 'c'  111 'o' 109 'm' 112 'p' 97 'a'  116 't' 0 '\0'  0 '\0'
0x40a0e0d0: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'
0x40a0e0d8: 102 'f' 105 'i' 108 'l' 101 'e' 115 's' 0 '\0'  0 '\0'  0 '\0'


7.2 produces 64 bytes corrupted:
[gdb command: x/112 private_data_pointer-remotehostname
0x2820b098: 100 'd' 110 'n' 115 's' 0 '\0'  110 'n' 105 'i' 115 's' 0 '\0'
0x2820b0a0: 110 'n' 105 'i' 115 's' 0 '\0'  114 'r' 112 'p' 99 'c'  0 '\0'
0x2820b0a8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0b0: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0b8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0c0: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  3 '\003'0 '\0'  8 '\b' 
0 '\0'
0x2820b0c8: 0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'
0x2820b0d0: 2 '\002'0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0'  0 '\0' 
0 '\0'

This stuff looks like it -might- be fromm a nsswitch.conf parse.
I dunno.

anybody got _any_ ideas?
  

This might help.

Just above the crashing call, open a file, and dump the contents of the 
vars you're sending to the function with fprintf, then close the file. I 
suspect cp3 doesn't point to valid data and is causing the function call 
to fail (it looks like it's pointing to the same thing as buffer, which 
doesn't look like how the function should be called). Having the 
contents of the individual vars will help you narrow down exactly what's 
occuring. Data you want to see is the pointers themselves, and maybe the 
first 8 or so characters of data that it's pointing to.


And if this doesn't help, there's always Google CodeSearch 
http://www.google.com/codesearch , for examples of how to call it.



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