Re: using sys/fusefs-ntfs as the home dir

2008-08-25 Thread Alejandro Pulver
On Wed, 20 Aug 2008 20:27:17 +0200
Polytropon [EMAIL PROTECTED] wrote:

 On Tue, 19 Aug 2008 22:59:31 -0400, Aryeh Friedman [EMAIL PROTECTED] 
 wrote:
  500 GB internal drive in 2 partions (min. for vista [c:] and the rest
  for fbsd [8-current])
  250 GB external (usb) that will be ntfs formated [d: for windows and
  /mnt/d on fbsd)
  
  My question how do I set it up so my windows user's dir is the same as
  my home dir on fbsd? (assume it will be on the ext. drive)?
 
 The solution would be very simple, but because you're insisting
 on having the D: partition formatted as NTFS, a problem occurs:
 As far as I know, FreeBSD's NTFS support is okay for reading, but
 not for writing. (I'm not 100% sure because I don't have any
 Windows stuff around to check.)
 

fusefs-ntfs can be used for writing.

 The solution would be to automount the external USB harddisk
 via /etc/fstab into /home, or into your individual home directory.
 With a FAT / MS-DOS formatted disk, this would look like this:
 
 /dev/da0s1/home/aryeh msdosfs rw  0   0
 
 Note that /dev/da0 has to be this designated USB disk or startup
 or login would be able to fail.
 
 Of course, it would be much easier if Windows could access
 an simple stupid UFS file system. :-)
 
 Other problems could occur if you're using a FreeBSD and a
 Windows version of the same program that behave differently,
 for example a browser which's Windows version destroys the
 configuration files - your settings of the FreeBSD version
 would be gone.
 
 

Firefox, Thunderbird and Opera can share preferences and data with
Windows (I don't know about the first 2, but for Opera some files have
to be different and others can be symlinks, there is a tutorial around).

Ale


signature.asc
Description: PGP signature


Re: using sys/fusefs-ntfs as the home dir

2008-08-25 Thread Alejandro Pulver
On Wed, 20 Aug 2008 20:31:41 -0400
Aryeh Friedman [EMAIL PROTECTED] wrote:

  The solution would be very simple, but because you're insisting
  on having the D: partition formatted as NTFS, a problem occurs:
  As far as I know, FreeBSD's NTFS support is okay for reading, but
  not for writing. (I'm not 100% sure because I don't have any
  Windows stuff around to check.)
 
 Actual sysutils/fusefs-ntfs (or ntfsprogs with less stable support)
 allows you to read and write I am the unofficial (I am not sure
 if Ale has put my name on the maintainer line of the make file with
 his or not) fusefs-ntfs the only issue it has on the fb side is in
 some cases (happens to me but Ale can't seem to reproduce so we are at
 a lost of how to fix it) is any attempt to mount it from anywhere in
 /etc/rc or with non-delayed option in fstab will fail (non-fatally and
 repeating the attempt after your in full multiuser mode works just
 fine)... I was asking about how to structure the dir's and from what
 you described I don't think it solves the problem completely because
 the Desktop dir/folder has two completely different means under both
 OS's and besides many symlinks (most not documented anywhere) are
 likelly needed so the purpose of the question was attempting to
 automate this and/or minimize the number of symlinks (because to
 windows the will not translate to shortcuts if I understand the guts

The sharing of the home directory can only be done per-application and
only for some of them. You can't just use the same home directory. For
the applications that work that way, you could symlink their
configuration/data directories (there are tutorials describing it for
Firefox/Thunderbird/Opera).

Ale


signature.asc
Description: PGP signature


High disk load +mount/atacontrol/NFS/SMBFS crashes the system

2007-04-01 Thread Alejandro Pulver
Hello.

I have experienced the following problem a couple of times in 2
different machines and FreeBSD versions (see below): when the disk is
continuously reading/writing my system becomes unstable (it's not an
everyday thing, but quite frustrating when it happens) and sometimes
crashes.

When copying from another machine by NFS/SMBFS more than one file at
the same time (or when using the disk, like during a filesystem check
in the background) often crashes (and the disk light indicator turns
off). Running atacontrol ad0 mode UDMA100 when it was UDMA133 crashed
the system (the disk activity indicator was always on) when I tried to
solve the problem that way. Also when I was installing a port which
installs many files on the second machine without using NFS/SMBFS,
trying to mount a local NTFS filesystem (with kernel driver) crashed.

The first machine is an Athlon XP 2400+ with FreeBSD 6.1-RELEASE and
custom kernel (see below) and the second one a new Athlon64 X2 3500
with FreeBSD 6.2-RELEASE running in i386 mode, with generic SMP kernel.
See the boot messages and kernel config here:

http://people.freebsd.org/~alepulver/disk-crash.tar.bz2

Also I got (only twice, when checking the filesystem after one of these
crashes) the following error on the first machine, that I don't know if
it's related or not to the previous problems:

fsync: giving up on dirty
0xc51d6990: tag devfs, type VCHR
usecount 1, writecount 0, refcount 806 mountedhere 0xc51a4000
flags ()
v_object 0xc144cb58 ref 0 pages 3232
 lock type devfs: EXCL (count 1) by thread 0xc54e2c00 (pid 837)
 dev ad2s1f

I would appreciate any help.

Thanks and Best Regards,
Ale

P.S.: does this problem belong to a more specific list like
[EMAIL PROTECTED]


signature.asc
Description: PGP signature


nvidia.ko kernel panic after upgrade to 6.0

2006-04-15 Thread Alejandro Pulver
Hello.

I have upgraded my two identical (same CPU and motherboard) machines
from FreeBSD 5.4 to 6.0 (cvs tag RELENG_6_0). Both of them have NVidia
video cards. One has a GeForce 4 MX 440 w/AGP8X and the other a GeForce
6600.

I upgraded the system as described in the handbook and after that I
rebuilt all the installed ports.

On the machine which has the GeForce 6600 everything works fine, but in
the other machine there are two problems. Strangely in the machine that
works fine the problem #1 happened only once.

1) The first time the module was built (after upgrading to 6.0) when X
started the system and screen frozen after 3 seconds. This didn't stop
happening.

2) After rebuilding the nvidia-driver port the system crashes (kernel
panic) when it tries to load the kernel module to complete the
installation of the port. It outputs the following messages (sometimes
one and sometimes the other), followed by some information and kernel
dump progress:

panic: softdep_setup_inomapdep: found inode
[...]

Fatal trap 18: integer divide fault while in kernel mode
[...]

The second error is the same as the one the working machine outputted
when I tried to load the 5.4 kernel module into the 6.0 kernel.

If I copy the nvidia module from the working machine, problem #2 gets
solved, but problem #1 happens.

What can I do?

If you need more information just ask.

Thanks and Best Regards,
Ale


signature.asc
Description: PGP signature


Re: nvidia.ko kernel panic after upgrade to 6.0

2006-04-15 Thread Alejandro Pulver
On 15 Apr 2006 15:28:43 -0400
Lowell Gilbert [EMAIL PROTECTED] wrote:

 Alejandro Pulver [EMAIL PROTECTED] writes:
 
  Hello.
  
  I have upgraded my two identical (same CPU and motherboard) machines
  from FreeBSD 5.4 to 6.0 (cvs tag RELENG_6_0). Both of them have
  NVidia video cards. One has a GeForce 4 MX 440 w/AGP8X and the
  other a GeForce 6600.
  
  I upgraded the system as described in the handbook and after that I
  rebuilt all the installed ports.
  
  On the machine which has the GeForce 6600 everything works fine,
  but in the other machine there are two problems. Strangely in the
  machine that works fine the problem #1 happened only once.
  
  1) The first time the module was built (after upgrading to 6.0)
  when X started the system and screen frozen after 3 seconds. This
  didn't stop happening.
  
  2) After rebuilding the nvidia-driver port the system crashes
  (kernel panic) when it tries to load the kernel module to complete
  the installation of the port. It outputs the following messages
  (sometimes one and sometimes the other), followed by some
  information and kernel dump progress:
  
  panic: softdep_setup_inomapdep: found inode
  [...]
  
  Fatal trap 18: integer divide fault while in kernel mode
  [...]
  
  The second error is the same as the one the working machine
  outputted when I tried to load the 5.4 kernel module into the 6.0
  kernel.
  
  If I copy the nvidia module from the working machine, problem #2
  gets solved, but problem #1 happens.
  
  What can I do?
  
  If you need more information just ask.
 
 On a system where I use that port, I upgrade it by just booting into
 single-user mode, make sure the module is unloaded, and then upgrading
 the module from there.

Thank you for your reply.

The problem #2 was solved when I rebuilt the nvidia-module (as you
said).

The problem #1 was ridiculously skype (yes, 'net/skype') crashing the
system. It doesn't use OpenGL and it is not related to nvidia. I think
it crashed the system through the linux compatibility kernel module.
Some seconds after starting it, the system frozen. When I rebuilt
it (forced) the problem got solved.

Best Regards,
Ale


signature.asc
Description: PGP signature


Re: NVidia GeForce 6600 problems

2006-02-17 Thread Alejandro Pulver
On Wed, 15 Feb 2006 13:12:41 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 On Thu, 2 Feb 2006 11:39:19 -0300
 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
  On Thu, 02 Feb 2006 12:05:14 +
  Alex Zbyslaw [EMAIL PROTECTED] wrote:
  
   Alejandro Pulver wrote:
   
   On Wed, 1 Feb 2006 15:06:21 -0300
   Alejandro Pulver [EMAIL PROTECTED] wrote:
   
 
   
   Hello,
   
   I have recently bought a GeForce 6600 video card, and sometimes
   (not very often) I experience the following problem:
   
   A little after starting X11 (for example when I start
   downloading e-mails), the screen freezes a few seconds, after
   that the screen looks like if widgets (buttons, text, etc.)
   aren't drawn, and the white background of Sylpheed-Claws covers
   the screen. Then I am forced to switch to the 1st console
   (Ctrl+Alt+F1), which takes around 30 seconds, and then kill X11.
   
   I have FreeBSD 5.4 release, Xorg 6.8.2 and nvidia-driver
   1.0.8178.
   
   
   I have a 6600 with FreeBSD 5.4 XOrg 6.8.2 but still 
   nvidia-driver-1.0.7676_1.  I have an occasional problem where the
   whole screen is shifted left on startup, but exiting and
   restarting X fixes it.  You could try downgrading to an older
   nvidia-driver and see if it helps.  Portdowngrade should do that,
   but I've never used it myself.
   
   You may have more luck if you try the nvidia support forum.
   Definitely slower than this mailing list but someone from nvidia
   was reading it, last time I used it.
   
   http://www.nvnews.net/vbulletin/forumdisplay.php?f=47
   
   --Alex
   
  
  Hello,
  
  Thank you for your reply.
  
  I have recently (started yesterday, and finishing yoday) upgraded my
  ports (including Xorg - 6.9). If the problems persist I will try
  the old dirver and post information about the error in the NVidia
  forums.
  
  Best Regards,
  Ale
 
 Hello again,
 
 I have discovered the problem: the lock of the AGP slot wasn't on
 (when I changed the video card I forgot the lock isn't automatic as
 the one in the memory slots).
 
 I noticed this when the card was disconnected completely (it has a
 cooler, so I guess the vibration did it). Once I rebooted and the
 screen was black (the integrated video card was used instead of the
 NVidia). Other time I saw the kernel message indicating the card was
 detached and instantly detected again.
 
 Best Regards,
 Ale

Well, that was part of the problem, but I still have errors with one
OpenGL application (I have tested others like Doom III and Enemy
Territory and didn't cause this): a Quake II engine called QuDos.
Sometimes I get the following:

Program output (QuDos):

Received signal 11, exiting...
X Error of failed request:  BadValue (integer parameter out of range
for operation) Major opcode of failed request:  135
(XFree86-VidModeExtension) Minor opcode of failed request:  10
(XF86VidModeSwitchToMode) Value in failed request:  0x122
  Serial number of failed request:  35768
  Current serial number in output stream:  35771

NVidia kernel module output:

NVRM: Xid: 8, Channel 0002
NVRM: Xid: 27,  L1 - L0

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NVidia GeForce 6600 problems

2006-02-15 Thread Alejandro Pulver
On Thu, 2 Feb 2006 11:39:19 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 On Thu, 02 Feb 2006 12:05:14 +
 Alex Zbyslaw [EMAIL PROTECTED] wrote:
 
  Alejandro Pulver wrote:
  
  On Wed, 1 Feb 2006 15:06:21 -0300
  Alejandro Pulver [EMAIL PROTECTED] wrote:
  

  
  Hello,
  
  I have recently bought a GeForce 6600 video card, and sometimes
  (not very often) I experience the following problem:
  
  A little after starting X11 (for example when I start downloading
  e-mails), the screen freezes a few seconds, after that the screen
  looks like if widgets (buttons, text, etc.) aren't drawn, and the
  white background of Sylpheed-Claws covers the screen. Then I am
  forced to switch to the 1st console (Ctrl+Alt+F1), which takes
  around 30 seconds, and then kill X11.
  
  I have FreeBSD 5.4 release, Xorg 6.8.2 and nvidia-driver 1.0.8178.
  
  
  I have a 6600 with FreeBSD 5.4 XOrg 6.8.2 but still 
  nvidia-driver-1.0.7676_1.  I have an occasional problem where the
  whole screen is shifted left on startup, but exiting and restarting
  X fixes it.  You could try downgrading to an older nvidia-driver and
  see if it helps.  Portdowngrade should do that, but I've never used
  it myself.
  
  You may have more luck if you try the nvidia support forum.
  Definitely slower than this mailing list but someone from nvidia was
  reading it, last time I used it.
  
  http://www.nvnews.net/vbulletin/forumdisplay.php?f=47
  
  --Alex
  
 
 Hello,
 
 Thank you for your reply.
 
 I have recently (started yesterday, and finishing yoday) upgraded my
 ports (including Xorg - 6.9). If the problems persist I will try the
 old dirver and post information about the error in the NVidia forums.
 
 Best Regards,
 Ale

Hello again,

I have discovered the problem: the lock of the AGP slot wasn't on
(when I changed the video card I forgot the lock isn't automatic as the
one in the memory slots).

I noticed this when the card was disconnected completely (it has a
cooler, so I guess the vibration did it). Once I rebooted and the
screen was black (the integrated video card was used instead of the
NVidia). Other time I saw the kernel message indicating the card was
detached and instantly detected again.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg - how to disable some video modes?

2006-02-03 Thread Alejandro Pulver
On Fri, 03 Feb 2006 17:11:47 +0800
Dinesh Nair [EMAIL PROTECTED] wrote:

 On 02/02/06 22:20 Alejandro Pulver said the following:
  It says the extension is enabled, but it seems it hasn't been
  initialized / loaded. My output has a line (not directly) after it
  indicating that the extension is initialized.
 
 apologies on that, cut-n-paste error. the snippet continues,
 
 (==) RandR enabled
 (II) Initializing built-in extension MIT-SHM
 (II) Initializing built-in extension XInputExtension
 (II) Initializing built-in extension XTEST
 (II) Initializing built-in extension XKEYBOARD
 (II) Initializing built-in extension XC-APPGROUP
 (II) Initializing built-in extension SECURITY
 (II) Initializing built-in extension XINERAMA
 (II) Initializing built-in extension XFIXES
 (II) Initializing built-in extension XFree86-Bigfont
 (II) Initializing built-in extension RENDER
 (II) Initializing built-in extension RANDR
 (II) Initializing built-in extension COMPOSITE
 (II) Initializing built-in extension DAMAGE
 (II) Initializing built-in extension XEVIE
 

Sorry, I don't know how to solve this. Maybe if you increase the
verbosity / debug level (I don't remember how to do it right now) of
Xorg, it will show something related to this.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NVidia GeForce 6600 problems

2006-02-02 Thread Alejandro Pulver
On Thu, 02 Feb 2006 12:05:14 +
Alex Zbyslaw [EMAIL PROTECTED] wrote:

 Alejandro Pulver wrote:
 
 On Wed, 1 Feb 2006 15:06:21 -0300
 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
   
 
 Hello,
 
 I have recently bought a GeForce 6600 video card, and sometimes (not
 very often) I experience the following problem:
 
 A little after starting X11 (for example when I start downloading
 e-mails), the screen freezes a few seconds, after that the screen
 looks like if widgets (buttons, text, etc.) aren't drawn, and the
 white background of Sylpheed-Claws covers the screen. Then I am
 forced to switch to the 1st console (Ctrl+Alt+F1), which takes
 around 30 seconds, and then kill X11.
 
 I have FreeBSD 5.4 release, Xorg 6.8.2 and nvidia-driver 1.0.8178.
 
 
 I have a 6600 with FreeBSD 5.4 XOrg 6.8.2 but still 
 nvidia-driver-1.0.7676_1.  I have an occasional problem where the
 whole screen is shifted left on startup, but exiting and restarting X
 fixes it.  You could try downgrading to an older nvidia-driver and
 see if it helps.  Portdowngrade should do that, but I've never used
 it myself.
 
 You may have more luck if you try the nvidia support forum.
 Definitely slower than this mailing list but someone from nvidia was
 reading it, last time I used it.
 
 http://www.nvnews.net/vbulletin/forumdisplay.php?f=47
 
 --Alex
 

Hello,

Thank you for your reply.

I have recently (started yesterday, and finishing yoday) upgraded my
ports (including Xorg - 6.9). If the problems persist I will try the
old dirver and post information about the error in the NVidia forums.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg - how to disable some video modes?

2006-02-02 Thread Alejandro Pulver
On Thu, 02 Feb 2006 17:31:38 +0800
Dinesh Nair [EMAIL PROTECTED] wrote:

 
 On 01/19/06 22:11 Alejandro Pulver said the following:
  Then X will start in the higher resolution it can find in Modes,
  to solve this you can put in .xinitrc the following command (which
  will change the resolution after X starts):
  
  xrandr -s 1024x768
 
 % xrandr
 Xlib:  extension RANDR missing on display :0.0.
 
 however, /var/log/Xorg.0.log says,
 
 [..snipped..]
 (WW) RADEON(0): Direct rendering not yet supported on Radeon 9500 and
 newer cards
 (II) RADEON(0): Memory manager initialized to (0,0) (1408,8191)
 (II) RADEON(0): Reserved area from (0,1050) to (1408,1052)
 (II) RADEON(0): Largest offscreen area available: 1408 x 7139
 (II) RADEON(0): Render acceleration unsupported on Radeon 9500/9700
 and newer. (II) RADEON(0): Render acceleration disabled
 (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
   Screen to screen bit blits
   Solid filled rectangles
   8x8 mono pattern filled rectangles
   Indirect CPU to Screen color expansion
   Solid Lines
   Scanline Image Writes
   Offscreen Pixmaps
   Setting up tile and stipple cache:
   32 128x128 slots
   32 256x256 slots
   16 512x512 slots
 (II) RADEON(0): Acceleration enabled
 (==) RADEON(0): Backing store disabled
 (==) RADEON(0): Silken mouse enabled
 (II) RADEON(0): Using hardware cursor (scanline 1052)
 (II) RADEON(0): Largest offscreen area available: 1408 x 7136
 (**) Option dpms
 (**) RADEON(0): DPMS enabled
 (II) RADEON(0): Direct rendering disabled
 (==) RandR enabled
 [..snipped..]
 

Hello,

It says the extension is enabled, but it seems it hasn't been
initialized / loaded. My output has a line (not directly) after it
indicating that the extension is initialized.

[...]
(==) RandR enabled
[...]
(II) Initializing built-in extension RANDR

Could you please check if you have it too?

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NVidia GeForce 6600 problems

2006-02-01 Thread Alejandro Pulver
Hello,

I have recently bought a GeForce 6600 video card, and sometimes (not
very often) I experience the following problem:

A little after starting X11 (for example when I start downloading
e-mails), the screen freezes a few seconds, after that the screen looks
like if widgets (buttons, text, etc.) aren't drawn, and the white
background of Sylpheed-Claws covers the screen. Then I am forced to
switch to the 1st console (Ctrl+Alt+F1), which takes around 30 seconds,
and then kill X11.

I have FreeBSD 5.4 release, Xorg 6.8.2 and nvidia-driver 1.0.8178.

I know this problem is with the driver, because I got this kernel
message:

NVRM: Xid: 8, Channel 
NVRM: Xid: 8, Channel 0020

And the Xorg log has the following:

(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe75c, 0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe75c, 0)
Failed to switch consoles (Invalid argument)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe834, 0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe834, 0)
(WW) NVIDIA(0): WAIT (2, 4, 0x8000, 0xe74c, 0xe844, 0)
(WW) NVIDIA(0): WAIT (1, 4, 0x8000, 0xe74c, 0xe844, 0)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe878, 0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe878, 0)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe89c, 0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe89c, 0)
(WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe8ac, 0)
(WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe8ac, 0)
FreeFontPath: FPE /usr/X11R6/lib/X11/fonts/misc/ refcount is 2,
should be 1; fixing.

If more information is needed just ask (and please tell me how to
obtain it).

What can I do? Should I update FreeBSD/Xorg?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NVidia GeForce 6600 problems

2006-02-01 Thread Alejandro Pulver
On Wed, 1 Feb 2006 15:06:21 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 Hello,
 
 I have recently bought a GeForce 6600 video card, and sometimes (not
 very often) I experience the following problem:
 
 A little after starting X11 (for example when I start downloading
 e-mails), the screen freezes a few seconds, after that the screen
 looks like if widgets (buttons, text, etc.) aren't drawn, and the
 white background of Sylpheed-Claws covers the screen. Then I am
 forced to switch to the 1st console (Ctrl+Alt+F1), which takes around
 30 seconds, and then kill X11.
 
 I have FreeBSD 5.4 release, Xorg 6.8.2 and nvidia-driver 1.0.8178.
 
 I know this problem is with the driver, because I got this kernel
 message:
 
 NVRM: Xid: 8, Channel 
 NVRM: Xid: 8, Channel 0020
 
 And the Xorg log has the following:
 
 (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe75c, 0)
 (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe75c, 0)
 Failed to switch consoles (Invalid argument)
 (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe834, 0)
 (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe834, 0)
 (WW) NVIDIA(0): WAIT (2, 4, 0x8000, 0xe74c, 0xe844, 0)
 (WW) NVIDIA(0): WAIT (1, 4, 0x8000, 0xe74c, 0xe844, 0)
 (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe878, 0)
 (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe878, 0)
 (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe89c, 0)
 (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe89c, 0)
 (WW) NVIDIA(0): WAIT (2, 6, 0x8000, 0xe74c, 0xe8ac, 0)
 (WW) NVIDIA(0): WAIT (1, 6, 0x8000, 0xe74c, 0xe8ac, 0)
 FreeFontPath: FPE /usr/X11R6/lib/X11/fonts/misc/ refcount is 2,
 should be 1; fixing.
 
 If more information is needed just ask (and please tell me how to
 obtain it).
 
 What can I do? Should I update FreeBSD/Xorg?
 
 Thanks and Best Regards,
 Ale

I forgot to post the kernel module output when detecting the device:

nvidia0: GeForce 6600 mem
0xcd00-0xcdff,0xb000-0xbfff,0xce00-0xceff irq
16 at device 0.0 on pci1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Share desktop with XOrg

2006-01-30 Thread Alejandro Pulver
On Thu, 19 Jan 2006 13:04:59 -0800
Garrett Cooper [EMAIL PROTECTED] wrote:

 Erik Osterholm wrote:
 
 On Wed, Jan 18, 2006 at 06:15:55PM +0100, User Gandalf wrote:
   
 
 Kilian Hagemann wrote:
 
 
 
 On Wednesday 18 January 2006 18:08, User Gandalf pondered:
 
 
   
 
 Is it possible to share a desktop under the XOrg server? Is there
 a port for this? I'm aware of the -display option of X based
 programs. What I need is not a remote desktop connection. I would
 like to share my desktop to another user so he can see what I see.
   
 
 
 
 Yes, the stock Xorg server doesn't though. You could use VNC, but
 in my experience that just opens up another X display where you
 login separately using kdm/gdm/xdm or whatever.
 

See below.

 I suggest you use KDE's desktop sharing (krfb, in the menu under
 System, part of the kdenetwork package, tested on 3.4.1). Does
 what you want.
 
 
   
 
 I hoped there is a more native solution. I prefer gtk over kde but
 what can I do?
 Thanks,
 
 
 
 The x11vnc port may do what you want.  Give that a look.
 
 Erik
   
 
 It is a wonderful port. It provides access to your display that
 you specify (if you are the owner of the display), and emulates it
 via VNC. It will take up less memory than straight VNC since it uses
 the existing X server (if it is running), and attaches to it and
 allows VNC connections to that specific instance of the X server.
 -Garrett

Hello,

I just want to add that I have been told that it is possible to use VNC
to connect to an active display.

RealVNC will allow you to open a connection on an already open
display. All that is needed is to add a vnc module to X and some other
very simple modifications to the xorg.conf. The directions to do this
are located at: http://www.realvnc.com/products/free/4.1/x0.html.
RealVNC is located in 'net/vnc'.

There is also 'net/vino' for Gnome.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Xorg - how to disable some video modes?

2006-01-19 Thread Alejandro Pulver
On Tue, 10 Jan 2006 12:56:01 +0100
User Gandalf [EMAIL PROTECTED] wrote:

 Here is the config. I made a mistake. You were right. I forgot to use 
 DefaultDepth. But I do not understand why I need it, since 24 is the 
 only depth specified in my screen section,
 

Maybe it was trying to use another depth (like 16), and because it
wasn't present in a Display subsection it used all the available
modes by default.

 Without DefaultDepth 24 it starts with 1900x1440. With
 DefaultDepth 24 is starts in 1024x768 but it does not allow me to
 switch to 1280x1024 with Ctrl-Alt-Plus.
 
 Thanks,
 
Les
 

You can only use the modes that are listed in Modes, that's why you
can't switch to 1280x1024. You have to add 1280x1024 to the Modes
line (when not using DefaultDepth 24 it seems all modes are listed
there).

Then X will start in the higher resolution it can find in Modes, to
solve this you can put in .xinitrc the following command (which will
change the resolution after X starts):

xrandr -s 1024x768

You can also see the list of available resolutions with that command
(without parameters).

If you have something like exec /usr/X11R6/bin/xfce in .xinitrc be
sure to put the xrandr -s 1024x768 command before it (the exec
replaces the shell by xfce, so everything after the exec will never
be executed).

For example (xorg.conf section with 1280x1024 added to Modes):

Section Screen
   Identifier Screen0
   DefaultDepth 24
   Device Card0
   MonitorMonitor0
   SubSection Display
   Viewport   0 0
   Depth 24
   Modes   1280x1024 1024x768
   EndSubSection
EndSection

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Epson Stylus C65

2005-10-21 Thread Alejandro Pulver
On Thu, 20 Oct 2005 22:39:01 -0400
Mike Jeays [EMAIL PROTECTED] wrote:

 I am not sure what else to suggest.  I didn't get a series of
 characters like ? at any point.
 
 Does the command escputil -i -u -r /dev/unlpt0 give you the ink
 levels?  (This command often times out the first time you use it; try
 two or three times before giving up).
 
 Have you been able to test it under Windows? I always hate myself for
 doing this, but it does provide a check on the hardware.
 

Hello,

The printer works in Windows.

The Ink levels work, but by Parallel. When I tried by USB, my computer
rebooted after the first time out.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Epson Stylus C65

2005-10-20 Thread Alejandro Pulver
On Wed, 19 Oct 2005 22:14:59 -0400
Mike Jeays [EMAIL PROTECTED] wrote:

 I had a good bit of trouble with the very similar C86.  Google for the
 DeviceModel parameter values if these don't work with a C65. You need
 to install ijsgimpprint, of course. At present, my etc/printcap file
 says:
 
 lp|C86:\
   :lp=/dev/unlpt0:\
   :lf=/var/log/lpd-errs:\
   :if=/home/mike/bin/C86-filter:\
   :sd=/var/spool/lpd:\
   :mx#0\
   :sh:
 
 and my home-grown filter contains:
 #!/bin/sh
 
 TMP=/tmp/C86.tmp
 PS=/tmp/C86.ps
 
 cat $TMP
 ch1=`head -1 $TMP | cut -c 1`
 if [ $ch1 = '%' ]
 then
  # echo Postscript
  cat $TMP $PS
 else
   # echo Text  
   /usr/local/bin/enscript -B -q -p - $TMP $PS
 fi
 
 # InkType=CMYK, RGB are valid
 cat $PS | /usr/local/bin/gs -sDEVICE=ijs \
-sIjsServer=/usr/local/bin/ijsgimpprint \
-sDeviceManufacturer=EPSON  \
-sDeviceModel=escp2-c84 \
-sIjsParams=Quality=720x360sw,InkType=CMYK,MediaType=Plain \
-dIjsUseOutputFD \
-q \
-dNOPAUSE \
-dBATCH \
-sOutputFile=- -
 
 # MUST delete them, or subsequent jobs may have trouble
 rm -f $TMP,$PS
 
 
 This is not what you would call polished software - the minute I got
 it to work, I stopped fiddling with it.  It does at least do the job.
 

Hello,

Thank you for your reply.

I tried your filter (most times by doing it manually), but I can't get
it working. I tried ijs and stp (Gimp-print), and many Cxx printer
versions.

BTW the script you are using is very similar (if not equal) to the
command apsfilter calls (that is gs) at the end.

I only get some ? like characters (left aligned), was that
your problem?

Also it isn't a connection problem: I tried both USB and Parallel
connections.

Do you know about anything else I can do?

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remote Desktop Connection Woes

2005-10-19 Thread Alejandro Pulver
On Wed, 12 Oct 2005 19:43:48 +0530
Remington L [EMAIL PROTECTED] wrote:

 All:
 I am looking for a way to VNC or to connect to my FreeBSD laptop,
 running Xorg and GNOME. I can ssh into, but I do not have access to
 GNOME.
 
 My question is, I know I cannot use VNC because I use Xorg. Does
 anyone have any suggestions?

Hello,

As others said, you can use VNC with Xorg. See the ports.

However,  if you want to share with VNC a display that is already
active, for example the Gnome desktop you are working on, you can try
'net/x11vnc' (other VNC servers open a new display).

IIRC Gnome (and/or KDE) has an utility to share the desktop, based on
VNC.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Epson Stylus C65

2005-10-19 Thread Alejandro Pulver
Hello,

I have tried to make this non-Postscript printer work on FreeBSD
without success. It is connected by USB and appears as '/dev/ulpt0'.

I have tried 'apsfilter' with Gimp-Print drivers for Epson Stylus C64,
but it only printed some ',' characters at the left.

I remember it worked with a Knoppix Linux live CD, where I selected the
printer from the KDE printer setup (with CUPS). I don't know what filter
it was using (Gimp-Print, Foomatic, etc.). Also in FreeBSD I dind't see
the same long list of printers (probably they weren't from CUPS, but
added from elsewhere, like Foomatic or Gimp-Print).

What can I do to make it work?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Help with Makefile

2005-09-11 Thread Alejandro Pulver
Hello,

I am making a port of Quake III Arena SDK: it installs game sources,
tools to produce QVM files, and a Makefile.

The original game source comes with the cons building system and I am
trying to write a Makefile to replace it. I have troubles while
writting the Makefile.

Here is what I want to do:

* Use a directory for compiled/temporary/object files (e.g. build).
* Dependency support (now targets are recreated all the time).
* Automatic dependency support (e.g. mkdep).
* Handle the suffix problem when qvm and so targets are built at
  the same time.

Here is the description of the build steps (see the Makefile for
implementation):

For building the shared object just compile the C sources listed in
(CGAME|GAME|UI)_SRCS_SO and put them together with cc
-shared ... (I think this could be handled with bsd.lib.mk).

For building the QVM you should first create bytecode files (assembly)
from the sources listed in (CGAME|GAME|UI)_SRCS_QVM with q3lcc (note
that there are also some .asm files listed in the sources - one per
module cgame, game and ui - that don't need to be modified), then
assemble all the produced files with q3asm.

Here is what I have (attached):

Makefile.bz2   -Last try.
Makefile.orig.bz2  -Previous try (uses a build directory but
doesn't handle dependencies and can't build qvm
and so at the same time - suffix problem).
Makefile.gnu.bz2   -Works fine, but it is for gmake (and for an
older version: 1.29h, this one is 1.32, however
the only change could be sources names/files).
quake3-sdk.tar.bz2 -Port that installs game source (where the
Makefile has to be put) and the tools.

Any help will be appreciated.

Thanks and Best Regards,
Ale

P.S.: I asked this question in [EMAIL PROTECTED], but I think this
is the correct place to do it.

Makefile.bz2
Description: Binary data


Makefile.gnu.bz2
Description: Binary data


Makefile.orig.bz2
Description: Binary data


quake3-sdk.tar.bz2
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: mouse wheel problem

2005-08-31 Thread Alejandro Pulver
On Tue, 30 Aug 2005 11:57:18 -0500
Efren Bravo [EMAIL PROTECTED] wrote:

 Hi,  
   
 I've written on /etc/rc.conf :  
   
 moused_port=/dev/psm0  
 moused_flags=-r high -z 4  
 moused_type=auto  
 moused_enable=YES  
   
 and on /etc/X11/xorg.conf  
   
 Section InputDevice  
 Identifier  Mouse0  
 Driver  mouse  
 Option  Protocol auto  
 Option  Device /dev/sysmouse  
 Option  Buttons 5  
 Option  ZAxisMapping 4 5  
 EndSection  
   
 But the scrollwheel doesn't work. I've tried with Kde's
 Applications. 
 Have I a bad configuration?  
   
 Thanks...  
 

Hello,

It works for me without the ZAxisMapping option (and the same
options in rc.conf):

Identifier  Mouse1
Driver  mouse
Option  Protocol  Auto
Option  Device/dev/sysmouse
Option  Buttons   5

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: AsRock 760GX

2005-07-22 Thread Alejandro Pulver
On Fri, 22 Jul 2005 08:37:07 -0700
Graham North [EMAIL PROTECTED] wrote:

 Hi Don:
 
 Thank you for your feedback.   I was planning to run X and was a
 little  concerned because this board is new with new SIS chipset.
 Thanks again.
 Graham/
 
 

Hello,

The SiS chipset I have has xvideo support, but the Via I had did not
(both on an ASRock motherboard). Also SiS has an utility similar to
NVIDIA's to adjust gamma, colors, etc., which is in ports.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cdrom mount question

2005-07-08 Thread Alejandro Pulver
On Fri, 8 Jul 2005 14:42:22 +
Bryan Maynard [EMAIL PROTECTED] wrote:

 I am not sure which list to post this to, I'll start here. :-) I am
 trying to  play a CD through amaroK in KDE, but when I try to mount
 the disc I get the  following error:
 
 cd9660: /dev/acdo: Operation not permitted
 
 I am not running as root when trying to access the device and I'm sure
 this is  the problem. . . I just don't know how to fix it :-).
 
 Thanks for all your help!
 
 Bryan
 -- 
 Open Source: by the people, for the people.

Hello,

The instructions to allow a normal user to mount devices is in the FAQ:

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

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with she script

2005-07-07 Thread Alejandro Pulver
On Wed, 6 Jul 2005 23:29:17 -0400
fbsd_user [EMAIL PROTECTED] wrote:

 On Sun, 3 Jul 2005 16:47:24 -0400
 fbsd_user [EMAIL PROTECTED] wrote:
 
  This is my last coding problem.
 
 
  target=check-state
 
  # Find the rule number of the target rule where you want the
 doorman
  # pass rules inserted before.
 
  ruleno=`ipfw list | sed -n -e s/00\([0-9]*\) $target/\1/p`
 
  The output of 'ipfw list' looks like this
 
  n  a 5 position sequence rule number
  blank  followed by a empty single position
  x-xa 10 to 80 position rule text
 
 
 00010 allow ip from any to any via lo0
 00015 check-state
 00110 allow tcp from any to 68.168.240.26 dst-port 53 out via dc0
 setup keep-state
 00111 allow udp from any to 68.168.240.26 dst-port 53 out via dc0
 keep-state
 00120 allow udp from any to any dst-port 67 out via dc0 keep-state
 00200 allow tcp from any to any dst-port 80 out via dc0 setup
 keep-state
 
 
  When the rule text matches the target text I want the
  first 5 position rule number to go into ruleno.
 
  Large rules files may use all 5 positions and then
  the above code will fail to get the rule number.
  Tried to remove the s/00\ but had syntax problems.
 

Hello,

If you want to include the first two digits you have to remove the two
zeros from the pattern.

ruleno=`ipfw list | sed -n -e s/\([0-9]*\) $target/\1/p`
 ^^

This is because in the other pattern when the rule number does not start
with 00 then it will not be matched and nothing will be returned.

Explanation:

The 's' is the substitute command, '/' is the operand separator, the
'\(' and '\)' construct saves the text it matches in the register '\1',
'[0-9]*' matches any number of digits (even 0 of them), $target is
replaced with the contents of the shell variable. All of that is
replaced by just the text matched between '\(' and '\)'. The 'p' flag
causes the line (after substitution, that is, the text between '\(' and
'\)') to be printed (and assigned to ruleno).

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS setup

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 11:07:41 -0400
Alan Curtis [EMAIL PROTECTED] wrote:

 I am running FreeBSD 5.3-STABLE behind a Linksys Wireless Access  
 Point and Firewall and a DSL modem. My ISP assigns me a dynamic IP  
 address which changes on a regular basis and the root domain and  
 Domain Name Servers associated with that domain also change. I have  
 seen at least 3 different root domains.
 
 I have a number of machines on my wireless network and I would like  
 them to be able to find one another. To do this I have assigned them  
 fixed IP addresses.
 
 My problem how to assign the Domain Name Servers for all the  
 machines. I point them all at the Linksys, which seems to work most  
 of the time, but occasionally network traffic gets really slow and I  
 suspect that its a DNS problem.
 
 Can I set up something on my FreeBSD server to help solve this
 problem?
 
 Alan
 

Hello,

If you think the problem is on your ISP DNS servers, you have two
alternatives:

1) Set up a local DNS server on all the machines of the network.

2) Set up a DNS server on one machine, that answers queries to all the
   machines of the network.

If you want more detailed information about them (like how to set them
up), ask me.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with sh script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 12:14:05 -0400
fbsd_user [EMAIL PROTECTED] wrote:

 Thanks but I need a little more help.
 
 num_ip=(printf $raw_ip | sed 's/\.//g')
 
 gives me a error.
 
 What would the correct syntax be?
 
 I am trying to write script to insert rules into PF firewall 
 on 5.4. using pf anchors.
 

Hello,

The problem here is that

num_ip=(printf $raw_ip | sed 's/\.//g')

makes num_ip equal to

(printf $raw_ip | sed 's/\.//g')

instead of its output.

To assign the output of a command use `:

num_ip=`(printf $raw_ip | sed 's/\.//g')`

Also the subshell (the ()) is not needed:

num_ip=`printf $raw_ip | sed 's/\.//g'`

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with sh script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 14:59:32 -0400
fbsd_user [EMAIL PROTECTED] wrote:

 
 
 std_text='No ALTQ support in kernel ALTQ related functions disabled'
 ret_ob='No ALTQ support in kernel ALTQ related functions disabled
 OK'
 
 ret_ob=`printf $ret_ob | sed 's/\$std_text//g'`
 Does not strip off the std_text stuff.
 
 How would I code a statement to remove everything from $ret_ob
 but the ok at the end so $ret_ob would only contain the ok??
 
 Some times $ret_ob will end in some error message and that is
 what I want to capture after striping off the std_text.
 
 
 Thanks
 


Hello,

The problem here is that single quotes (') avoid variable
substitution. e.g.

var=text
echo $var   # outputs text
echo '$var' # outputs $var (literally)

Also the backslash avoids variable substitution when placed before a
$. e.g.

echo $var   # outputs text
echo \$var  # outputs $var (literally)

The solution is this:

ret_ob=`printf $ret_ob | sed s/$std_text//g`
   ^  ^   ^

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: help with she script

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 16:47:24 -0400
fbsd_user [EMAIL PROTECTED] wrote:

 
 Thanks guys your solutions have worked and I am learning allot along
 the way.
 

You are welcome.

 This is my last coding problem.
 
 
 target=check-state
 
 # Find the rule number of the target rule where you want the doorman
 # pass rules inserted before.
 
 ruleno=`ipfw list | sed -n -e s/00\([0-9]*\) $target/\1/p`
 
 The output of 'ipfw list' looks like this
 
 n  a 5 position sequence rule number
 blank  followed by a empty single position
 x-xa 10 to 80 position rule text
 
 
 When the rule text matches the target text I want the
 first 5 position rule number to go into ruleno.
 
 Large rules files may use all 5 positions and then
 the above code will fail to get the rule number.
 Tried to remove the s/00\ but had syntax problems.
 

Hello,

I do not have ipfw, and I do not know how the rules are supposed to be,
and how they have to be processed.

Could you please send me some example rules, and the expected output to
be assigned to ruleno?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DNS setup

2005-07-03 Thread Alejandro Pulver
On Sun, 3 Jul 2005 18:23:31 -0400
Alan Curtis [EMAIL PROTECTED] wrote:

 
 On Jul 3, 2005, at 11:57 AM, Alejandro Pulver wrote:
 
  On Sun, 3 Jul 2005 11:07:41 -0400
  Alan Curtis [EMAIL PROTECTED] wrote:
 
 
  I am running FreeBSD 5.3-STABLE behind a Linksys Wireless Access
  Point and Firewall and a DSL modem. My ISP assigns me a dynamic IP
  address which changes on a regular basis and the root domain and
  Domain Name Servers associated with that domain also change. I have
  seen at least 3 different root domains.
 
  I have a number of machines on my wireless network and I would like
  them to be able to find one another. To do this I have assigned
 them  fixed IP addresses.
 
  My problem how to assign the Domain Name Servers for all the
  machines. I point them all at the Linksys, which seems to work most
  of the time, but occasionally network traffic gets really slow and
 I  suspect that its a DNS problem.
 
  Can I set up something on my FreeBSD server to help solve this
  problem?
 
  Alan
 
 
 
  Hello,
 
  If you think the problem is on your ISP DNS servers, you have two
  alternatives:
 
  1) Set up a local DNS server on all the machines of the network.
 
  2) Set up a DNS server on one machine, that answers queries to all
  the
 machines of the network.
 
  If you want more detailed information about them (like how to set
  them up), ask me.
 
 
 I do need some clear instructions. I tried djbdns without success  
 (see another post) and also the instructions under 'Domain Name  
 System (DNS)' in the FreeBSD Handbook.
 
 I added named_enable=YES to /etc/rc.conf. Used the default  
 configuration file without any zone (as suggested in the Handbook).  
 There is no 'ndc' on my machine. I assume I must use 'rndc' instead.  
 Ran 'rndc start' and was told
 
 rndc: connect failed: connection refused
 
 Saw nothing in /var/log/messages or /var/log/console.log
 
 Alan
 

Hello,

You need to run rndc-confgen, and save the output in a temporary file.

Then you have to look at it: there is one part to be put to
/etc/namedb/named.conf and the other to /etc/namedb/rndc.conf.

Example:

% rndc-confgen

= add to /etc/namedb/rndc.conf =

# Start of rndc.conf
key rndc-key {
algorithm hmac-md5;
secret zCgi4/rmS+O0ZENRWk22SQ==;
};

options {
default-key rndc-key;
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf

= add to /etc/namedb/named.conf =

# Use with the following in named.conf, adjusting the allow list as
needed: # key rndc-key {
#   algorithm hmac-md5;
#   secret zCgi4/rmS+O0ZENRWk22SQ==;
# };
# 
# controls {
#   inet 127.0.0.1 port 953
#   allow { 127.0.0.1; } keys { rndc-key; };
# };
# End of named.conf

IIRC before FreeBSD 5.4 there was a ndc (like rndc, but only local and
did not need setup). The rndc is for remote control (however it can
also be used as local with the loopback address 127.0.0.1).

The key is randomly generated (automatically), and it has to match in
the two files.

After that the connection will be allowed (however the start command
does not exist, you have to start it manually - named - and then you
can control it with rndc).

The file rndc.conf has to be placed on the machine you want to control
the name server from. But if it is not the same machine that runs the
name server, you have to put its IP address instead of 127.0.0.1.

The inet statements in named.conf specifies the IP address the name
server will listen (for rndc). You will have to put here the IP address
of the machine (and the localhost to be controled locally) in the
network to be controlled from other machines.

The allow statement in named.conf specifies from which hosts you can
(remotely) control the name server. The address 127.0.0.1 is the
loopback (internal address), but you can add the IP address of other
machines too (note that they need the rndc.conf file set appropiately).

If you have questions about this ask me.

If you want examples I can provide you some.

Then let me know if you want option 1) or 2) so I can help you with the
next step. 

1) Have an independent DNS server on each machine (there is one for
   Windows called TreeWalk - free -, that is the same as named).

2) Put a DNS server on *one* machine, and that DNS server is used by all
   the machines on the network.

Hope that Helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Generating Linux binaries under FreeBSD

2005-06-21 Thread Alejandro Pulver
On Mon, 20 Jun 2005 09:27:10 -0600
Chad Leigh -- Shire.Net LLC [EMAIL PROTECTED] wrote:

 
 On Jun 20, 2005, at 9:15 AM, Alejandro Pulver wrote:
 
  Hello,
 
  Is there a way to compile a C program, but generating a Linux binary
  instead of a FreeBSD one?
 
 I don't know if this works but assuming you have the linux  
 compatibility layer running
 
 % chroot /compat/linux/  /bin/bash
 % gcc
 
 That should use the linux gcc
 
 You may not need to do the chroot first.  Just run a linux shell
 
 so
 
 % /compat/linux/bin/bash
 bash-2.0x# gcc
 
 may also get you there
 
 I've done similar things before
 
 Try it out
 Chad
 

Hello,

Thank you for your reply.

It is what I expected (to use the Linux emulation to run the compiler).

But is there a FreeBSD port of it (I do not think that)?

Can I use the Linux packaging tools (for example rpm with
linux-base-rh*, and dpkg with linux-base-debian)? How?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Generating Linux binaries under FreeBSD

2005-06-20 Thread Alejandro Pulver
Hello,

Is there a way to compile a C program, but generating a Linux binary
instead of a FreeBSD one?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SOLVED] Re: Accent keys in X11

2005-06-18 Thread Alejandro Pulver
On Thu, 16 Jun 2005 15:04:19 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 Hello,
 
 How can I use accent keys in X11?
 
 Thanks and Best Regards,
 Ale

Sorry for replying to my own post but I found
the solution (for English keyboards):

=
Using non ASCII standard characters under X11
=

Keyboard Configuration:

Option XkbLayout en_US

=

Possible combinations:

Alt + char
Shift + Alt + char
Shift, Alt + char

Notes:

The Alt to be pressed is the right one.

The string char has to be replaced with a key,
with or without Shift.

Alt + char means to press and hold the Alt key
and then press char.

Shift + Alt + char means to press and hold the
Shift key, press and hold the
Alt key, and press char.

Shift, Alt + char means to press and hold the
Shift key, press and hold the Alt key, release
the Shift key and press char.

=

Some common characters:

   Shift, Alt + ', char
   Alt + ', char
   Shift + Alt + ', char
   Shift, Alt + `, char
   Shift + Alt + `, char
   Shift + Alt + `, char

=
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Acrobat Reader 7 plugin for Mozilla

2005-06-17 Thread Alejandro Pulver
Hello,

I have installed linuxpluginwrapper on my FreeBSD 5.4, and when Mozilla
starts it outputs the following error:

LoadPlugin: failed to initialize shared library
/usr/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so
[Shared object libc.so.6 not found, required by nppdf.so] 

Here is the relevant lines from my /etc/libmap.conf:

# Acrobat with Opera
[/usr/X11R6/lib/browser_plugins/nppdf.so]
libc.so.6   pluginwrapper/acrobat.so

# Acrobat5 with Mozilla/Firebird/Galeon/Epiphany/Konqueror
#[/usr/local/Acrobat5/Browsers/intellinux/nppdf.so]
#libc.so.6  pluginwrapper/acrobat.so

# Acrobat7 with Mozilla/Firebird/Galeon/Epiphany/Konqueror
[/compat/linux/usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so]
libc.so.6   pluginwrapper/acrobat.so

How can I solve this?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Accent keys in X11

2005-06-16 Thread Alejandro Pulver
Hello,

How can I use accent keys in X11?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Accent keys in X11

2005-06-16 Thread Alejandro Pulver
On Thu, 16 Jun 2005 20:15:50 +0200
Jose Luis Alarcon Sanchez [EMAIL PROTECTED] wrote:

 On Thu, 2005-06-16 at 15:04 -0300, Alejandro Pulver wrote:
  Hello,
  
  How can I use accent keys in X11?
  
  Thanks and Best Regards,
  Ale
 
 Hola Alejandro.
 
 Do you have this line:
 
 OptionXkbLayout es
 
 in the Section InputDevice in the file /usr/X11R6/lib/X11/xorg.conf?
 
 Hope this help.
 
 Regards.
 
 Jose.
 

Hello,

Thank you for your reply.

I did not mention it, but I have an English (pc-104) keyboard.

How can I do to use the Spanish accents with the English keyboard?

And can I use the characters I do not have (like )?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Editing the boot menu

2005-06-08 Thread Alejandro Pulver
On Wed, 08 Jun 2005 14:17:37 -0500
Paul Schmehl [EMAIL PROTECTED] wrote:

 When you use FreeBSD's boot manager, you get a menu like this at
 bootup:
 
 F1 DOS
 F2 FreeBSD
 F3 Linux
 F4 ??
 F5 Drive 1
 
 Default: F2
 
 Is there a way to edit the list?  Or is that fixed when boot manager
 is  installed and not configurable?
 
 By edit, I mean, for example, change F4 ?? to F4 MyOS.
 

Hello,

You can try using GAG, a Graphical Boot Loader which does not need a
slice or partition for installing (it uses a special part of the disk,
reserved for things like that), it can be configured while booting,
self uninstalled (restoring the previous bootloader) and supports a lot
of operating systems. Of course, it is free and open-source.

http://gag.sourceforge.net/

It is the *best* bootloader (for booting more than one operating
systems) I have found (I have tried BootMagic, Lilo and Grub).

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.4 package install woes... :(

2005-05-13 Thread Alejandro Pulver
 mount /dev/md1 /mnt/loop1
 mount: /dev/md1 on /mnt/loop1: incorrect super block

 mount /dev/md2 /mnt/loop2
 mount: /dev/md2 on /mnt/loop2: incorrect super block


Hello,

I think you have to add -t cd9660 (like when mounting a normal CDROM,
otherwise FreeBSD tries to mount it as a normal UFS filesystem).

mount -t cd9660 /dev/md1 /mnt/loop1
mount -t cd9660 /dev/md2 /mnt/loop2

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Scripting help

2005-05-12 Thread Alejandro Pulver
On Thu, 12 May 2005 11:44:49 -0500
Chris [EMAIL PROTECTED] wrote:

 I would like some advice on how to script something that will search 
 directories below a named root for all files ending with a certain
 file extension.
 
 Then, mv or cp them to another location.
 
 
 -- 
 Best regards,
 Chris

Hello,

Try this:

find /your/path -type f -name *.tar -exec cp {} /destination/dir \;

/your/path - put here the root path to operate on

-type f - type f means to search for files

-name *.tar - search for anything (*) ending in .tar (shell pattern)

-exec cp {} /destination/dir \; - execute the command cp file
/destination/dir replacing file with each file found (one at time).
The '\' is to escape the ';' (so it is not interpreted by the shell as a
command separator). 

It is also posible to do much more complex functions with 'find'. For
more information see man find.

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Where does a port store a saved configuration file?

2005-04-26 Thread Alejandro Pulver
On Tue, 26 Apr 2005 08:28:36 -0700 (PDT)
scott renna [EMAIL PROTECTED] wrote:

 Hello list,
 
 I had a question regarding where in FreeBSD5.3 the
 configuration file for a port is stored.  I've been
 trying to find the saved configuration file that Snort
 created upon me selecting what options to include
 during the make install.  I had included support for
 Prelude, since I've never used it before, I figured
 I'd try it out.  Unfortunately, prelude has not been
 updated for Snort 2.0 yet.  
 
 I'm trying to find the saved configuration file so
 that I can remove it and reselect what options I want
 snort built with, but no luck.  Anyone know where it's
 located at?  
 
 thanks

Hello,

If the port uses the OPTIONS variable (in the Makefile) the
configuration is at /var/db/ports/portname, and you can change it
with make config, show it with make showconfig and remove it with
make rmconfig.

If the port uses a shell script (ports that have a subdirectory called
scripts with a file usually called config), it usually creates a
file called Makefile.inc in the port directory, that is included by
the port Makefile and it is removed when you do a make clean.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to mark a slice bootable using command line

2005-04-25 Thread Alejandro Pulver
On Mon, 25 Apr 2005 18:15:11 +0200
jonas [EMAIL PROTECTED] wrote:

 On Monday 25 April 2005 18:01, Don Brearley wrote:
  What about boot0cfg -s 2 da0 ?
 
 This sets the second slice to be the default entry in the bootmanager
 on next startup. Usefull, but it does not set the bootable flag to the
 slice.
 
 So... negative.. but thanks anyway.
 
 -- 
 br.
 j.

Hello,

This is from fdisk(8):

CONFIGURATION FILE

[...]

a slice

Make slice the active slice.  Can occur anywhere in the config file, but
only one must be present.

Example: to make slice 1 the active slice:

a 1

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: subbfont.ttf, missing.

2005-04-25 Thread Alejandro Pulver
On Sat, 23 Apr 2005 15:08:16 -0700
Gary Kline [EMAIL PROTECTED] wrote:

 Can you suggest an entire [g]mplayer [] http:// 
 example?  Or do you use mplayer to watch downloaded files?
 (Once, last fall, I had mplayer working for a few seconds;
 then it quit and coredumped [??])

Hello,

I watch downloaded movies (in fact, I only saw the Lord Of The Rings
trailer, some AVIs outputed by a SEGA genesis emuator that I reencoded
with mencoder and a few more).

Does it crash with the plugin or alone? Does it crash when you are
watching a movie (can you watch that movie with another player, for
example xine)?

If you are using the GTK2 User Interface try using the GTK1 interface
(it crashed a lot on my machine).

P.S.: now I am sending from [EMAIL PROTECTED] (really I am using the
same relay but the header From: is different, you can reply me to
[EMAIL PROTECTED] because it is an alias - forward recipe)

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: subbfont.ttf, missing.

2005-04-25 Thread Alejandro Pulver
On Mon, 25 Apr 2005 13:20:40 -0700
Gary Kline [EMAIL PROTECTED] wrote:
  I watch downloaded movies (in fact, I only saw the Lord Of The Rings
  trailer, some AVIs outputed by a SEGA genesis emuator that I
  reencoded with mencoder and a few more).
 
   You've got to have a fast connection!  I live around 20 km
   from downtown Seattle but the fastest link here is ISDL.
   ... .

I have a cable modem of 512 K.

  
  Does it crash with the plugin or alone? Does it crash when you are
  watching a movie (can you watch that movie with another player, for
  example xine)?
 
   I was using mplayer-plugin.  Now I'm trying to use
   gmplayer with http://  to listen to an audio stream.
   I've rebuilt mplayer with new configure [--args] and now
   the err is that it [gmplayer] sees a bad header.  So
   evidently there are more knobs/options to use.  I've 
   tried xine; don't remember if it worked.   
 
   Do you know if there are any FreeBSD ports that use the
   win32 codecs for just-plain-audio?  On my RH system I
   think the realplayer-10 has the option of playing 
   Windoze-Media ...  Or maybe I was dreaming!!  
   It would be so much simpler if every radio or television
   used Real.  But no so.
 

Real Player 10 is available in ports.

The only ports that use win32-codecs are:

multimedia/avifile
multimedia/mplayer
multimedia/mplayerxp
multimedia/xine
multimedia/xmps-win32-plugin

As outputed by:

find /usr/ports -type f -name Makefile -exec fgrep \
'win32-codecs' /dev/null {} \;

I visited MPlayer and Xine websites and they seem to support streaming
(maybe Xine works??).

Good Luck.

P.S.: please CC to the list.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: subbfont.ttf, missing.

2005-04-23 Thread Alejandro Pulver
On Fri, 22 Apr 2005 13:12:03 -0700
Gary Kline [EMAIL PROTECTED] wrote:

   I can't figure out how to get mozilla or firefox to 
   play the writer's almanac  (( any help??)).  It plays out
   of the box on my RH 8.0  box.  At any rate, I'm trying to get
   gmplayer set up with its realaudio codecs, and when I bring up
   gmplayer, it complains that it is missing
   ~/.mplayer/subfont.ttf.
 
   Anybody know where it is hiding?  I've installed mplayer-fonts 
   and didn't find the *ttf file in the port//work directory.
   Of course neither is subfont.ttf in
   /usr/local/share/mplayer/font*.  
 
   So: a) can I config gmplayer to play realplay files, pref by
   script?  or b) do I need the ttf file for [g]mplayer?
 
   thanks for any clues here, gents,
 
   gary
 
   PS: (Video: is a dontcare).
 

Hello,

You can try copying the ~/.mplayer/subfont.ttf from RH 8.0.

If it is a symlink (probably) just link ~/.mplayer/subfont.ttf to your
favourite font (the font directories are usually under
/usr/X11R6/lib/X11/fonts/).

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: subbfont.ttf, missing.

2005-04-23 Thread Alejandro Pulver
On Sat, 23 Apr 2005 13:19:14 -0700
Gary Kline [EMAIL PROTECTED] wrote:

 On Sat, Apr 23, 2005 at 04:44:33PM -0300, Alejandro Pulver wrote:
  On Fri, 22 Apr 2005 13:12:03 -0700
  Gary Kline [EMAIL PROTECTED] wrote:
  
 I can't figure out how to get mozilla or firefox to 
 play the writer's almanac  (( any help??)).  It plays out
 of the box on my RH 8.0  box.  At any rate, I'm trying to get
 gmplayer set up with its realaudio codecs, and when I bring up
 gmplayer, it complains that it is missing
 ~/.mplayer/subfont.ttf.
   
 Anybody know where it is hiding?  I've installed mplayer-fonts 
 and didn't find the *ttf file in the port//work directory.
 Of course neither is subfont.ttf in
 /usr/local/share/mplayer/font*.  
   
 So: a) can I config gmplayer to play realplay files, pref by
 script?  or b) do I need the ttf file for [g]mplayer?
   
 thanks for any clues here, gents,
   
 gary
   
 PS: (Video: is a dontcare).
   
  
  Hello,
  
  You can try copying the ~/.mplayer/subfont.ttf from RH 8.0.
  
  If it is a symlink (probably) just link ~/.mplayer/subfont.ttf to
  your favourite font (the font directories are usually under
  /usr/X11R6/lib/X11/fonts/).
  
  Hope that helps.
  
 
   You've helped me google around for some clue(s)!  It looks 
   like any single ttf file will do, within reason.  So the
   answer to my question is copy some ((smallish? 14pt?))
   ttf to ~/.mplayer/subfont.ttf   Ariel is the default.
 
   Another -question is:: is there a way to set the volume 
   in mplayer/gmplayer before it's plugin blasts a loud and
   distorted stream at me?  Or am I suppoesed to use the 
   mixer for this?
 
   tx in advance,
 
   gary
 
   PS:  [g]mplayer is a nice suite; it's just difficult to
set up/use/tune/etc.
 
 

Hello,

The first time I installed mplayer and it prompted me for that file I
symlinked it to a font (you can do that instead of copying it),
but I was not sure about if that works (I never played a movie with
subtitles).

I do not know anything about the plugin but this links might be useful
(they point to the local version of the MPlayer manual):

file:///usr/local/share/doc/mplayer/control.html#ctrl-cfg
file:///usr/local/share/doc/mplayer/devices.html#af_volume

Hope that helps.

P.S.: I have made a CC to you as the header indicates, but it was
returned to me with the message: 550.biz spam not wanted.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pcm device numbering

2005-04-11 Thread Alejandro Pulver
Hello,

I have two sound cards:

SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich'
Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi'

The first is integrated in the motherboard, and it is detected first and
used as the default output device (pcm0). The second it detected after
the first, so it is used as the second output device (pcm1).

I want to use my second sound card as the default output device. I tried
using the loader.conf variables *_after and *_before, but they
always load them before booting the kernel, so the integrated card is
detected first and assigned to the default output device (pcm0). So I
have the drivers as modules, and load the driver for the second card
when booting the kernel, and then from the command line I load the
driver for the integrated card.

Is there a (clean, if possible) way to do this (with 'device.hints', or
rc scripts)?

Here is the relevant output of 'pciconf -vl' (after loading the
drivers in the desired order):

[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0
hdr=0x00vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

[EMAIL PROTECTED]:9:0:  class=0x040100 card=0x03f6 chip=0x03f6 rev=0x10
hdr=0x00vendor   = 'C-Media Electronics Inc.'
device   = 'CMI8738/PCI C3DX PCI Audio Chip#20013;#22269;'
class= multimedia
subclass = audio

I am posting this question again because I did not get a response. If I
should ask this question somewhere else please inform me.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


device.hints help

2005-03-31 Thread Alejandro Pulver
Hello,

I have two sound cards:

SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich'
Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi'

The first is integrated in the motherboard, and it is detected first and
used as the default output device (pcm0). The second it detected after
the first, so it is used as the second output device (pcm1).

I want to use my second sound card as the default output device. I tried
using the loader.conf variables *_after and *_before, but they
always load them before booting the kernel, so the integrated card is
detected first and assigned to the default output device (pcm0). So I
have the drivers as modules, and load the driver for the second card
when booting the kernel, and then from the command line I load the
driver for the integrated card.

Is it possible to put the sound card PCI addresses manually in
'device.hints'? How?

Here is the relevant output of 'pciconf -vl' (after loading the
drivers in the desired order):

[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0
hdr=0x00vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

[EMAIL PROTECTED]:9:0:  class=0x040100 card=0x03f6 chip=0x03f6 rev=0x10
hdr=0x00vendor   = 'C-Media Electronics Inc.'
device   = 'CMI8738/PCI C3DX PCI Audio Chip#20013;#22269;'
class= multimedia
subclass = audio

I am posting this question again because I did not get a response. If I
should ask this question somewhere else please inform me.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: .xinitrc

2005-03-31 Thread Alejandro Pulver
On Fri, 1 Apr 2005 01:06:15 +0200
Gert Cuykens [EMAIL PROTECTED] wrote:

 How do you start two things ?
 
 exec unclutter -root
 exec enlightenment 
 
 When i do this it only execute the first one

Hello,

The 'exec' builtin (internal shell command) replaces the current process
image (the shell itself) by the program in the argument. Instead of
executing it as a children (separated) process, so when the process
finishes it returns back to the shell (like typing a command). So when
the shell replaces itself with 'unclutter', it is not the shell anymore,
so it never comes back to execute 'enlightenment'.

The solution can be to run the first command in the background
(apart from the shell) like this:

unclutter -root 
exec enlightenment

See sh(1) (section 'exec' and 'jobs').

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-29 Thread Alejandro Pulver
On Tue, 29 Mar 2005 11:52:15 -0500
Garance A Drosihn [EMAIL PROTECTED] wrote:

 At 12:29 PM -0300 3/26/05, Alejandro Pulver wrote:
 Hello,
 
 I am using FreeBSD 5.3 with Samba 3.0.7,1.
 
 I can read all files from a Windows 2000 Pro. But when I try
 to access a mount point that is an NTFS filesystem, I have
 no read permission (files and directories appear as zero
 length files) until I access them from the server machine
 (like doing an 'ls').
 
 Let me see if I understand the situation:
 
 You have a FreeBSD box running Samba.  You have Win2k boxes
 which connect to file shares on that FreeBSD box.  When they
 do, the PC's can not access partitions on the FreeBSD box,
 unless the FreeBSD box has already accessed them.
 

Yes.

 I don't quite understand the reference to NTFS.  Are you saying
 that the *FreeBSD* box is mounting NTFS partitions, and it then
 makes those partitions available to the PC's via Samba?  Where
 are those NTFS partitions located?  Are they on the hard drives
 of the FreeBSD box?  Or is the FreeBSD box mounting them from
 some other file server?
 

The NTFS slice I mount at '/mnt/w2k' is in the server. I only have two
machines.

 Note: I have subdirectories under '/mnt' like 'w2k', 'wxp',
 'cam', and 'tmp'.
 
 What am I doing wrong?
 
 What *exactly* is your /etc/fstab file?  The fact that you
 have directories under /mnt does not tell us anything about
 what filesystems you are mounting, or how they are getting
 mounted.
 
 -- 
 Garance Alistair Drosehn=   [EMAIL PROTECTED]
 Senior Systems Programmer   or  [EMAIL PROTECTED]
 Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]

This is my '/etc/fstab':


# DeviceMountpoint  FStype  Options DumpPass#
/dev/ad2s4b noneswapsw  0   0
/dev/ad2s4a /   ufs rw  1   1
/dev/ad2s4e /tmpufs rw  2   2
/dev/ad2s4f /usrufs rw  2   2
/dev/ad2s4d /varufs rw  2   2
devfs   /devdevfs   rw  0   0
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0
/dev/fd0/floppy msdosfs rw,noauto   0   0
/dev/ad0s5  /mnt/w2kntfsro  0   0
/dev/ad0s1  /mnt/wxpmsdosfs rw  0   0
/dev/ad2s1  /mnt/debext2fs  rw,noauto   0   0
/dev/da0s1  /mnt/cammsdosfs rw,noauto   0   0
procfs  /proc   procfs  rw  0   0
linprocfs   /compat/linux/proc   linprocfs  rw  0   0


Please see the complete thread (there is more information there).

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pcm device numbering

2005-03-29 Thread Alejandro Pulver
Hello,

I have two sound cards:

SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich'
Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi'

The first is integrated in the motherboard, and it is detected first and
used as the default output device (pcm0). The second it detected after
the first, so it is used as the second output device (pcm1).

I want to use my second sound card as the default output device. I tried
using the loader.conf variables *_after and *_before, but they
always load them before booting the kernel, so the integrated card is
detected first and assigned to the default output device (pcm0). So I
have the drivers as modules, and load the driver for the second card
when booting the kernel, and then from the command line I load the
driver for the integrated card.

Is there a (clean, if possible) way to do this (with 'device.hints', or
rc scripts)?

Here is the relevant output of 'pciconf -vl' (after loading the
drivers in the desired order):

[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0
hdr=0x00vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

[EMAIL PROTECTED]:9:0:  class=0x040100 card=0x03f6 chip=0x03f6 rev=0x10
hdr=0x00vendor   = 'C-Media Electronics Inc.'
device   = 'CMI8738/PCI C3DX PCI Audio Chip#20013;#22269;'
class= multimedia
subclass = audio

I am posting this question again because I did not get a response. If I
should ask this question somewhere else please inform me.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-28 Thread Alejandro Pulver
On Mon, 28 Mar 2005 15:17:57 +0200
Fabian Keil [EMAIL PROTECTED] wrote:

 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
  On Sun, 27 Mar 2005 11:02:44 +0200
  Fabian Keil [EMAIL PROTECTED] wrote:
  
   Alejandro Pulver [EMAIL PROTECTED] wrote:
   
On Sat, 26 Mar 2005 20:37:51 +0100
Fabian Keil [EMAIL PROTECTED] wrote:

 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
  I am using FreeBSD 5.3 with Samba 3.0.7,1.
  
  I can read all files from a Windows 2000 Pro. But when
  I try to access a mount point that is an NTFS filesystem, I
  have no read permission (files and directories appear as
  zero length files) until I access them from the server
  machine (like doing an 'ls').
  
  My configuration file is as follows:
  
  = BEGIN =
  # Samba config file created using SWAT
  # from 127.0.0.1 (127.0.0.1)
  # Date: 2004/12/11 19:24:02
  
  # Global parameters
  [global]
  workgroup = VARNET
  server string = FreeBSD 5.3
  security = SHARE
  log file = /var/log/samba/log.%m
  max log size = 50
  dns proxy = No
  
  [mnt]
  comment = Mounted Filesystems
  path = /mnt
  guest ok = Yes
  
  [printers]
  comment = All Printers
  path = /var/spool/samba
  printable = Yes
  browseable = No
  
  [ale]
  comment = Ale's Home DIrectory
  path = /home/ale
  guest ok = Yes
  = END ===
  
  Note: I have subdirectories under '/mnt' like 'w2k', 'wxp',
  'cam', and'tmp'.
  
  What am I doing wrong?
 
 Who owns the subdirectories and who is your guest user?
   
My guest user is 'nobody', but I also tried with 'ale' and
'root'(wich owns the mount point).
   
   Did you see in samba's log that the guest user was changed?
   How did you change it, with guest user or with force user?
   
   As your problem can be reproduced, increasing samba's debug
   level might help. Samba should log why read access was denied.
   
   If you access the samba share with mount_smbfs, do you see
   the same behavior?

The directory '/mnt/w2k' is owned by 'root' and the group
'wheel', the permissions are rwxr-xr-x.
 
  I saw in SWAT that the connection from the other machine was mapped
  to the desired local user in all cases (I tried nobody, ale and
  root). I used guest account = user.
  
  Something strange is happening: I can access the sahre '/mnt' (and
  'w2k') with 'smbclient' (using the 'guest' user), but if I do it
  with'mount_smbfs //[EMAIL PROTECTED]/mnt /home/ale/tmp' then the problem
  appears, even with 'root' (I can not see/access entries until I list
  them with any user from '/mnt/w2k').
  
  I think the problem is with Samba, not 'mount_smbfs'.
  
  This message appears (many times) in debug level 0:
  
  [2005/03/27 15:04:38, 1] smbd/service.c:make_connection_snum(648)
mariana (192.168.1.1) connect to service mnt initially as user
nobody
  (uid=65534, gid=65534) (pid 1217)[2005/03/27 15:04:44, 0]
  locking/posix.c:posix_fcntl_lock(657)  posix_fcntl_lock: WARNING:
  lock request at offset 0, length 4096 returned[2005/03/27 15:04:44,
  0] locking/posix.c:posix_fcntl_lock(658)  an Invalid argument error.
  This can happen when using 64 bit lock offsets[2005/03/27 15:04:44,
  0] locking/posix.c:posix_fcntl_lock(659)  on 32 bit NFS mounted file
  systems.
  
  The other message I noticed (but I think it is not an error) in
  level 3 is:
  
  [2005/03/27 14:16:19, 2] auth/auth.c:check_ntlm_password(312)
check_ntlm_password:  Authentication for user [nobody] - [nobody]
  FAILED with error NT_STATUS_WRONG_PASSWORD[2005/03/27 14:16:19, 3]
  auth/auth.c:check_ntlm_password(219)  check_ntlm_password:  Checking
  password for unmapped user [EMAIL PROTECTED] with the new
  password interface[2005/03/27 14:16:19, 3]
  auth/auth.c:check_ntlm_password(222)  check_ntlm_password:  mapped
  user is: [EMAIL PROTECTED]
  
  The one that also called my attention was:
  
  [2005/03/27 14:16:30, 3] smbd/error.c:error_packet(105)
error string = Is a directory
  [2005/03/27 14:16:30, 3] smbd/error.c:error_packet(129)
error packet at smbd/nttrans.c(862) cmd=162 (SMBntcreateX)
  NT_STATUS_FILE_IS_A_DIRECTORY
  
  However I do not know about the internal working of Samba so perhaps
  I missed some important messages.
  
  I made different logs with different debug levels. They are in
  ftp://ftp.varnet.to (public FTP) in a directory called samba_logs.
  The local machine is called ale and the other mariana. The best
  log in level 3 is in the directory log.3_2.
 
 Today I tried your smb.conf and it worked as well as mine.
 
 I had a look at you logs, but didn't get more information out
 of them than you did. I get lock offset warnings as well,
 so they don't seem to be the problem.
 
 Perhaps you should ask on a samba list again.
 
 Fabian

pcm device numbering

2005-03-28 Thread Alejandro Pulver
Hello,

I have two sound cards:

SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich'
Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi'

The first is integrated in the motherboard, and it is detected first and
used as the default output device (pcm0). The second it detected after
the first, so it is used as the second output device (pcm1).

I want to use my second sound card as the default output device. I tried
using the loader.conf variables *_after and *_before, but they
always load them before booting the kernel, so the integrated card is
detected first and assigned to the default output device (pcm0). So I
have the drivers as modules, and load the driver for the second card
when booting the kernel, and then from the command line I load the
driver for the integrated card.

Is there a (clean, if possible) way to do this (with 'device.hints', or
rc scripts)?

Here is the relevant output of 'pciconf -vl' (after loading the
drivers in the desired order):

[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0
hdr=0x00vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

[EMAIL PROTECTED]:9:0:  class=0x040100 card=0x03f6 chip=0x03f6 rev=0x10
hdr=0x00vendor   = 'C-Media Electronics Inc.'
device   = 'CMI8738/PCI C3DX PCI Audio Chip#20013;#22269;'
class= multimedia
subclass = audio

I am posting this question again because I did not get a response. If I
should ask this question somewhere else please inform me.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-27 Thread Alejandro Pulver
On Sun, 27 Mar 2005 11:02:44 +0200
Fabian Keil [EMAIL PROTECTED] wrote:

 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
  On Sat, 26 Mar 2005 20:37:51 +0100
  Fabian Keil [EMAIL PROTECTED] wrote:
  
   Alejandro Pulver [EMAIL PROTECTED] wrote:
   
I am using FreeBSD 5.3 with Samba 3.0.7,1.

I can read all files from a Windows 2000 Pro. But when
I try to access a mount point that is an NTFS filesystem, I have
no read permission (files and directories appear as zero length
files) until I access them from the server machine (like doing
an 'ls').

My configuration file is as follows:

= BEGIN =
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/12/11 19:24:02

# Global parameters
[global]
workgroup = VARNET
server string = FreeBSD 5.3
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = No

[mnt]
comment = Mounted Filesystems
path = /mnt
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[ale]
comment = Ale's Home DIrectory
path = /home/ale
guest ok = Yes
= END ===

Note: I have subdirectories under '/mnt' like 'w2k', 'wxp',
'cam', and'tmp'.

What am I doing wrong?
   
   Who owns the subdirectories and who is your guest user?
 
  My guest user is 'nobody', but I also tried with 'ale' and 'root'
  (wich owns the mount point).
 
 Did you see in samba's log that the guest user was changed?
 How did you change it, with guest user or with force user?
 
 As your problem can be reproduced, increasing samba's debug
 level might help. Samba should log why read access was denied.
 
 If you access the samba share with mount_smbfs, do you see
 the same behavior?
  
  The directory '/mnt/w2k' is owned by 'root' and the group 'wheel',
  the permissions are rwxr-xr-x.
 
 If you only want read access, this looks fine.
 
 Fabian
 -- 
 http://www.fabiankeil.de


Hello,

Thank you for your reply.

I saw in SWAT that the connection from the other machine was mapped to
the desired local user in all cases (I tried nobody, ale and
root). I used guest account = user.

Something strange is happening: I can access the sahre '/mnt' (and
'w2k') with 'smbclient' (using the 'guest' user), but if I do it with
'mount_smbfs //[EMAIL PROTECTED]/mnt /home/ale/tmp' then the problem appears,
even with 'root' (I can not see/access entries until I list them with
any user from '/mnt/w2k').

I think the problem is with Samba, not 'mount_smbfs'.

This message appears (many times) in debug level 0:

[2005/03/27 15:04:38, 1] smbd/service.c:make_connection_snum(648)
  mariana (192.168.1.1) connect to service mnt initially as user nobody
(uid=65534, gid=65534) (pid 1217)[2005/03/27 15:04:44, 0]
locking/posix.c:posix_fcntl_lock(657)  posix_fcntl_lock: WARNING: lock
request at offset 0, length 4096 returned[2005/03/27 15:04:44, 0]
locking/posix.c:posix_fcntl_lock(658)  an Invalid argument error. This
can happen when using 64 bit lock offsets[2005/03/27 15:04:44, 0]
locking/posix.c:posix_fcntl_lock(659)  on 32 bit NFS mounted file
systems.

The other message I noticed (but I think it is not an error) in level 3
is:

[2005/03/27 14:16:19, 2] auth/auth.c:check_ntlm_password(312)
  check_ntlm_password:  Authentication for user [nobody] - [nobody]
FAILED with error NT_STATUS_WRONG_PASSWORD[2005/03/27 14:16:19, 3]
auth/auth.c:check_ntlm_password(219)  check_ntlm_password:  Checking
password for unmapped user [EMAIL PROTECTED] with the new
password interface[2005/03/27 14:16:19, 3]
auth/auth.c:check_ntlm_password(222)  check_ntlm_password:  mapped user
is: [EMAIL PROTECTED]

The one that also called my attention was:

[2005/03/27 14:16:30, 3] smbd/error.c:error_packet(105)
  error string = Is a directory
[2005/03/27 14:16:30, 3] smbd/error.c:error_packet(129)
  error packet at smbd/nttrans.c(862) cmd=162 (SMBntcreateX)
NT_STATUS_FILE_IS_A_DIRECTORY

However I do not know about the internal working of Samba so perhaps I
missed some important messages.

I made different logs with different debug levels. They are in
ftp://ftp.varnet.to (public FTP) in a directory called samba_logs. The
local machine is called ale and the other mariana. The best log in
level 3 is in the directory log.3_2.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sh interactive?

2005-03-26 Thread Alejandro Pulver
Hello,

How can I use 'sh' as an interactive shell?

My configuration files are the defaults.

The file '.profile' has the following:

[...]
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
[...]

The file '.shrc' has the following:

[...]
# Enable the builtin emacs(1) command line editor in sh(1),
# e.g. C-a - beginning-of-line.
set -o emacs
[...]

However it does not read '.shrc' even if I call it with '-i'.

Will this work if I use 'sh' as my default shell (I use 'tcsh')?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pcm device numbering

2005-03-26 Thread Alejandro Pulver
Hello,

I have two sound cards:

SiS 7012 (C-Media Electronics CMI9739 AC97 Codec) - 'snd_ich'
Genius Sound Maker Value 5.1 (CMedia CMI8738) - 'snd_cmi'

The first is integrated in the motherboard, and it is detected first and
used as the default output device (pcm0). The second it detected after
the first, so it is used as the second output device (pcm1).

I want to use my second sound card as the default output device. I tried
using the loader.conf variables *_after and *_before, but they
always load them before booting the kernel, so the integrated card is
detected first and assigned to the default output device (pcm0). So I
have the drivers as modules, and load the driver for the second card
when booting the kernel, and then from the command line I load the
driver for the integrated card.

Is there a (clean, if possible) way to do this (with 'device.hints', or
rc scripts)?

Here is the relevant output of 'pciconf -vl' (after loading the
drivers in the desired order):

[EMAIL PROTECTED]:2:7:  class=0x040100 card=0x70121849 chip=0x70121039 rev=0xa0
hdr=0x00vendor   = 'Silicon Integrated Systems (SiS)'
device   = 'SiS7012 PCI Audio Accelerator'
class= multimedia
subclass = audio

[EMAIL PROTECTED]:9:0:  class=0x040100 card=0x03f6 chip=0x03f6 rev=0x10
hdr=0x00vendor   = 'C-Media Electronics Inc.'
device   = 'CMI8738/PCI C3DX PCI Audio Chip#20013;#22269;'
class= multimedia
subclass = audio

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Booting from the second disk

2005-03-26 Thread Alejandro Pulver
Hello,

I have two IDE disks with the following Operating Systems:

IDE-0 -- ad0s1 -- Windows XP Pro
  ad0s5 (extended) -- Windows 2000 Pro

IDE-1 -- ad2s1 -- Debian Sarge (managing LILO at IDE-1)
  ad2s4 -- FreeBSD 5.3

I boot from the second disk. I have LILO in the MBR because it is
capable of swapping disks when loading the operating system (Windows
does not boot because it thinks the disk which the computer boots is the
first disk, and boot.ini refers to the other disk).

So I have to put the following:

other=/dev/hda1
label=Windows
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

Or:

other=/dev/hda1
label=Windows
boot-as=0x81

Can I do something similar with other Boot Managers (FreeBSD's Boot
Manager, GRUB, etc.)

Which is the better recommended multi-boot layout (with two hard
disks)?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Samba problems

2005-03-26 Thread Alejandro Pulver
Hello,

I am using FreeBSD 5.3 with Samba 3.0.7,1.

I can read all files from a Windows 2000 Pro. But when
I try to access a mount point that is an NTFS filesystem, I have no read
permission (files and directories appear as zero length files) until I
access them from the server machine (like doing an 'ls').

My configuration file is as follows:

= BEGIN =
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/12/11 19:24:02

# Global parameters
[global]
workgroup = VARNET
server string = FreeBSD 5.3
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = No

[mnt]
comment = Mounted Filesystems
path = /mnt
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[ale]
comment = Ale's Home DIrectory
path = /home/ale
guest ok = Yes
= END ===

Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam', and
'tmp'.

What am I doing wrong?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-26 Thread Alejandro Pulver
On Sat, 26 Mar 2005 16:59:11 +0100
Stefan Haglund [EMAIL PROTECTED] wrote:

 First of all, make sure those mounts are accessible for normal users,
 if you haven't. It's under the options for the mount in /etc/fstab, I 
 think. You can always do a 'man fstab' if unsure.
 
 Does the username/password (check out 'smbpasswd') you are using to 
 connect to samba exist in the samba user database? If not, samba won't
 
 know who you are, and will use the default guest user to access files 
 (usually very restricted). That might be why you can access the mounts
 when you log in to the server, but not through server.
 
 If you go with the first, ALL users will have access. If you want to 
 restrict it to, say,  a certain group, you have to go with the second 
 solution I think (and add users in the samba user database).
 
 Hope I got the issue correctly, else I dunno :-).
 
 Regards,
 Stefan Haglund
 

Hello,

Thank you for your reply.

I am using the security level SHARE with guest enabled (I have only
two machines on my network).

The mounts are accessible by normal users (like ale), the permissions
in '/mnt/w2k/' are 'rwxr-xr-x', the owner is root and group wheel.

I would like to add that I also have another share that is a FAT32
partition (WinXP) and I can browse it from the other machine (like
everything else).

I tried to map the guest account to the user ale that I use (and I can
access '/mnt/w2k'), but nothing happened.

This only happens in a NTFS mount point. The files and directories show
as truncated, and I can not see (determine size, copy, determine
if it is a file or directory, etc.) them until I do an operation over
them with any normal user in the server, then I can see the files/dirs
affected by the operation I did (ls, etc.). Before I only see the
entries (names) without attributes (permissions, directory flag, etc.).

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-26 Thread Alejandro Pulver
On Sat, 26 Mar 2005 13:54:37 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 On Sat, 26 Mar 2005 16:59:11 +0100
 Stefan Haglund [EMAIL PROTECTED] wrote:
 
  First of all, make sure those mounts are accessible for normal
  users, if you haven't. It's under the options for the mount in
  /etc/fstab, I think. You can always do a 'man fstab' if unsure.
  
  Does the username/password (check out 'smbpasswd') you are using to 
  connect to samba exist in the samba user database? If not, samba
  won't
  
  know who you are, and will use the default guest user to access
  files (usually very restricted). That might be why you can access
  the mounts when you log in to the server, but not through server.
  
  If you go with the first, ALL users will have access. If you want to
  
  restrict it to, say,  a certain group, you have to go with the
  second solution I think (and add users in the samba user database).
  
  Hope I got the issue correctly, else I dunno :-).
  
  Regards,
  Stefan Haglund
  
 
 Hello,
 
 Thank you for your reply.
 
 I am using the security level SHARE with guest enabled (I have
 only two machines on my network).
 
 The mounts are accessible by normal users (like ale), the
 permissions in '/mnt/w2k/' are 'rwxr-xr-x', the owner is root and
 group wheel.
 
 I would like to add that I also have another share that is a FAT32
 partition (WinXP) and I can browse it from the other machine (like
 everything else).
 
 I tried to map the guest account to the user ale that I use (and I
 can access '/mnt/w2k'), but nothing happened.
 
 This only happens in a NTFS mount point. The files and directories
 show as truncated, and I can not see (determine size, copy,
 determine if it is a file or directory, etc.) them until I do an
 operation over them with any normal user in the server, then I can see
 the files/dirs affected by the operation I did (ls, etc.). Before I
 only see the entries (names) without attributes (permissions,
 directory flag, etc.).
 
 Thanks and Best Regards,
 Ale

I even tried mapping the guest account to root but it still does not
work.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Samba problems

2005-03-26 Thread Alejandro Pulver
On Sat, 26 Mar 2005 20:37:51 +0100
Fabian Keil [EMAIL PROTECTED] wrote:

 Alejandro Pulver [EMAIL PROTECTED] wrote:
 
  I am using FreeBSD 5.3 with Samba 3.0.7,1.
  
  I can read all files from a Windows 2000 Pro. But when
  I try to access a mount point that is an NTFS filesystem, I have no
  read permission (files and directories appear as zero length files)
  until I access them from the server machine (like doing an 'ls').
  
  My configuration file is as follows:
  
  = BEGIN =
  # Samba config file created using SWAT
  # from 127.0.0.1 (127.0.0.1)
  # Date: 2004/12/11 19:24:02
  
  # Global parameters
  [global]
  workgroup = VARNET
  server string = FreeBSD 5.3
  security = SHARE
  log file = /var/log/samba/log.%m
  max log size = 50
  dns proxy = No
  
  [mnt]
  comment = Mounted Filesystems
  path = /mnt
  guest ok = Yes
  
  [printers]
  comment = All Printers
  path = /var/spool/samba
  printable = Yes
  browseable = No
  
  [ale]
  comment = Ale's Home DIrectory
  path = /home/ale
  guest ok = Yes
  = END ===
  
  Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam',
  and'tmp'.
  
  What am I doing wrong?
 
 Who owns the subdirectories and who is your guest user?
 
 I'm using samba version 3.0.11 and can't reproduce the described
 behavior.
 
 My smb.conf is:
 
 [global]
 
workgroup = W62
netbios name = TP51
server string = Samba Server auf Laptop
security = user
encrypt passwords = yes
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY
wins support = yes
dns proxy = no 
 
 [fk]
comment = No place like home
path = /home/fk
valid users = fk
public = no
writable = yes
printable = no
 
 [mnt]
comment = Quick test
path = /mnt
valid users = fk
public = no
writable = yes
printable = no
 
 [EMAIL PROTECTED] /mnt $ls -l
 total 8
 drwxr-xr-x  1 fk  wheel 0 Apr 22  2009 ad0s1
 drwxr-xr-x  1 fk  wheel  4096 Jan  1  1980 ad0s2
 drwxr-xr-x  5 fk  wheel   512 Mar 25 19:14 datenspeicher
 drwxr-xr-x  2 fk  wheel   512 Mar 26 19:03 test
 
 ad0s1 is ntfs, ad0s2 is fat32. Both can be used without any problems.
 
 I just noticed the strange dates. If I unmount ad0s1 and ad0s2,
 the dates make more sense.
 
 [EMAIL PROTECTED] /mnt #ls -l
 total 8
 drwxr-xr-x  2 fk  wheel  512 Mar 26 18:58 ad0s1
 drwxr-xr-x  2 fk  wheel  512 Mar 26 15:03 ad0s2
 drwxr-xr-x  5 fk  wheel  512 Mar 25 19:14 datenspeicher
 drwxr-xr-x  2 fk  wheel  512 Mar 26 19:03 test
 
 Interesting. I'm using FreeBSD 5.4-PRERELEASE #2: Fri Mar 25 17:53:21
 CET 2005.
 
 Fabian
 -- 
 http://www.fabiankeil.de

Hello,

Thank you for your reply.

My guest user is 'nobody', but I also tried with 'ale' and 'root' (wich
owns the mount point).

The directory '/mnt/w2k' is owned by 'root' and the group 'wheel', the
permissions are rwxr-xr-x.

Y have the same strange dates.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Apache from the ports - default httpd.conf deleted

2005-03-18 Thread Alejandro Pulver
On Fri, 18 Mar 2005 15:17:49 -0500
Danny [EMAIL PROTECTED] wrote:

 FreeBSD 4.7R (yah I know I need to update this)
 
 apache+mod_ssl-1.3.33+2.8.22 The Apache 1.3 webserver with SSL/TLS
 functionality
 
 I accidentally deleted the default (out of the box) httpd.conf for
 my Apache install.
 
 Could someone please help by supplying their httpd.conf for 1.3.33 or
 direct me to a place to download a full default httpd.conf?
 
 Thank you,
 
 ...D

Hello,

I did a 'pkg_info -L apache*' and I noticed the following file:

/usr/local/etc/apache/httpd.conf-dist

If it is not there you can read that file from the downloadable package
or port.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mounting network share problem

2005-03-15 Thread Alejandro Pulver
On Tue, 15 Mar 2005 16:55:14 +0200
NetAdmin [EMAIL PROTECTED] wrote:

 Hello, FreeBSD support team,
 
 I have some problems with network configuration in FreeBSD.
 My task is to mount network share on Win2003 server
 (Network with domain) to some folder, for example, /mnt
 
 I wrote:
 # mount_nfs server:share /mnt
 
 and see error:
 [udp] RPC: RPC timeout
 
 But my computer sees all computers in domain when ping some of
 them...
 
 -- 
 Best regards,
  NetAdmin  mailto:[EMAIL PROTECTED]
 

Hello,

Windows does not use NFS (natively), but it uses SMB networks (SMB is
the protocol). NFS usually comes with UNIX like systems (Linux, *BSD,
etc.).

The tool (server/client) for interacting with Windows networks is Samba.
It is available in the ports collection as 'net/samba' (version 2) or
'net/samba3' (version 3). The Samba version has nothing to do with the
protocol version, so you can install the one you want. The manual page
samba(7) lists all the client/server tools provided by the Samba
suite. It installs some documentation at '/usr/local/share/doc/samba/'.

For more information about Samba (docs, exmaples, etc.):

http://www.samba.org/

To configure a Samba server there are basic instructions at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-samba.html

But if you just want to mount a SMB share, you can use the type 'smbfs'
with mount (no port installation required). Alternatively you can use
the client programs that come with Samba.

Exmaple:

mount -t smbfs //[EMAIL PROTECTED]/share /mnt
or
mount_smbfs //[EMAIL PROTECTED]/share /mnt

See mount_smbfs(8) for more information (IP, WORKGROUP, etc.).

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DPMS not turning off LCD screen

2005-03-14 Thread Alejandro Pulver
On Wed, 9 Mar 2005 22:25:45 -0500 (EST)
Stephen J. Roznowski [EMAIL PROTECTED] wrote:

 I have a Sony SDM-HX93 LCD monitor running off an Nvidia GeForce FX
 5500.
 
 I have the DPMS option set in my xorg configuration file, but while
 the screen turns off, the monitor never enters power off mode (it
 remains 'backlit').
 
 Any suggestions where to look for the error?
 
 Thanks,
 -- 
 Stephen J. Roznowski([EMAIL PROTECTED])
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

The configuration file 'xorg.conf' can have the following settings (for
more information see xorg.conf(5)):

=

Section ServerFlags

[...]

OptionBlankTime3  # just blank the screen

OptionStandbyTime  5  # DPMS state stand by
OptionSuspendTime  5  # DPMS state suspend
OptionOffTime  5  # DPMS state off

EndSection

Section Monitor

[...]

Option  DPMS  # enable DPMS

EndSection

=

The first 4 option lines (in section ServerFlags) contain the name of
the option followed by the number of minutes of inactivity to wait
before activate them.

The last option (in section Monitor) *must* be enabled for DPMS to
work.

In some monitors (like mine) all the DPMS states of inactivity are the
same, that turn off the monitor. The BlankTime indicated the time to
wait before displaying a black screen, not turning off (or suspend,
etc.) the monitor, like DPMS states do.

So im my monitor, after 3 mminutes of inactivity the screen will be
blanked, then, if I do not do anything, 2 minutes after that the monitor
will turn off.

The commands to try them are:

Try one DPMS state (choose one):

xset dpms force (off|standby|suspend)

Try the screen blank (sleep is required because when you press enter it
starts, but when you release it, or it start repeating, it stops):

xset s blank
sleep 3 ; xset s activate

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CD Doesn't boot

2005-03-14 Thread Alejandro Pulver
On Mon, 14 Mar 2005 10:01:10 -0600
Teilhard Knight [EMAIL PROTECTED] wrote:

 I am trying to install FreeBSD 5.3 in a laptop which I just recently
 bought. Problem is that the installation CD wouldn't boot. I have
 tried burning several brands of disks and trying them in other
 computers and I am now sure is not the media. I even disabled
 hyperthreading in the BIOS and nothing. Anyone can offer some advise
 about what to do?
 
 Teilhard. 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

If you have set up your BIOS settings properly (to boot from a CD, and
then from the disk), and it does not boot, maybe you just burned the ISO
as a normal file in the CD.

An ISO file is an image of the entire CD (it has a TOC, the
bootable part, etc.), and to burn it there should be an option on the
burning program (something containing the word ISO, and a browser to
select a file).

Check this, if when you burn the cd and you read it you see only the ISO
file, it is not right. If you see a lot of directories like 'boot',
'packages', it is fine, and it should boot.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: permissions on partition?

2005-03-14 Thread Alejandro Pulver
On Mon, 14 Mar 2005 13:44:21 -0600 (CST)
Brian John [EMAIL PROTECTED] wrote:

  Brian John [EMAIL PROTECTED] writes:
 
   Hello, I have a FAT partition on ad0s3 that I am sharing with
   Windows. For one reason or another everything on this partition is
   owned by root:wheel.  I can't change the permissions to any files
   on this partition.  This is what I have in devfs.conf:
   own ad0s3   brian:operator
   permad0s3   0660
  
   Is this correct?  How can I make it so that files on this
   partition are owned by the 'brian' user?
 
  There are several approaches described in the manual for
  mount_msdosfs(8).
 
  Changing the permissions on the mount point would probably be the
  easiest.__
 When I try to change the permissions on the mount point this is what
 happens:# chown brian:operator /shared
 chown: /shared: Invalid argument
 
 This is the same thing that happens when I try to change permissions
 on any files on the partition.  Am I doing something wrong?
 
 Thanks
 
 /Brian


Hello,

Have you tried changing the permissions of the directory when the MS-DOS
filesystem is not mounted, and after that mount it?

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-14 Thread Alejandro Pulver
On Mon, 14 Mar 2005 22:54:57 +0100
Freek Nossin [EMAIL PROTECTED] wrote:

 
 
  -Original Message-
  From: Alejandro Pulver [mailto:[EMAIL PROTECTED]
  Sent: zondag 13 maart 2005 15:53
  To: Freek Nossin
  Cc: freebsd-questions@freebsd.org; 'Jerry McAllister'
  Subject: Re: format slice
  
  Hello,
  
  Sorry I did not noticed it before, but your first slice must be of
  type 165 (or 0xa5 in hex), that is the type of FreeBSD slices.
  
The data for partition 1 is:
sysid 0 (),(unused)
start 63, size 20820177 (10166 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 174/ head 15/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 20820240, size 19201392 (9375 Meg), flag 80 (active)
beg: cyl 1023/ head 255/ sector 63;
end: cyl 1023/ head 15/ sector 63
  
  It appeares as unused. So try changing the type.
  
  Best Regards,
  Ale
 
 Finally it worked!
 
 Thanks for helping me (but if I may? Still one question left... ). 
 
 The slice was indeed unused. When I tried sysinstall just after the
 reboot, and again it didn't worked I falsely assumed doing it from the
 command prompt would also be of no use. I was wrong, following your
 advice, starting fdisk (this time with -i, instead of -u, just to
 figure out if there was any difference, still don't know that yet
 though ;-) ). And changing the type created a freebsd slice. Then I
 used bsdlabel and there it was! /dev/ad0s1a was in my list of devices.
 
 
 There is one little thing that worries me. On someone's advice I
 installed testdisk (sysutils/testdisk). This tool tests your disk
 (duh! I mean slices and partitions, so actually my disklayout). 
 
 Disk /dev/ad0 - CHS 39704 16 63 - 19541 MB
 Check current partition structure
  Partition  StartEndSize in sectors
  1 P FreeBSD  0   1  1 20654  15 63   20820177
  2 * FreeBSD  20655   0  1 39703  15 63   19201392
 
 Bad starting head
 
 
 The bad starting head warning worries me. But with these tools you
 never know if the tool is correct, or indeed my disklayout. If I
 didn't just wrote my Bios Partition table a couple of times, I
 wouldn't have worried at all, but now I did, it *might* be possible
 that I actually did something wrong. My fdisk output is as follows
 (These numbers come even visit me in my dreams these days... ;-) ):
 
 bash-2.05b$ sudo fdisk
 *** Working on device /dev/ad0 ***
 parameters extracted from in-core disklabel are:
 cylinders=39704 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=39704 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 63, size 20820177 (10166 Meg), flag 0
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 174/ head 15/ sector 63
 The data for partition 2 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 20820240, size 19201392 (9375 Meg), flag 80 (active)
 beg: cyl 1023/ head 255/ sector 63;
 end: cyl 1023/ head 15/ sector 63
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 
 Does anybody see a bad starting head??? 
 
 Thanks again for helping me so far (Alejandro, and Jerry)
 
 Freek


Hello,

You are welcome.

Mine is better :)

Disk /dev/ad0 - CHS 77504 16 63 - 38146 MB
Disk /dev/ad2 - CHS 79656 16 63 - 39205 MB

Disk /dev/ad0 - CHS 77504 16 63 - 38146 MB
 1 * FAT32 LBA0   1  1 36863   6 63   37158282
Bad ending head
 2 E extended LBA 36863   7  1 77488   1 63   40949685
Bad ending head
Disk /dev/ad2 - CHS 79656 16 63 - 39205 MB
 1 P Linux0   1  1 20304   5 63   20466747
Bad ending head
 4 * FreeBSD  40624  11  1 79225   4 63   38909430
Bad ending head
TestDisk exited normally.

I do not know what is that, but I think it is just a warning. It has to
do with low level disk parameters (cylinders, heads, sectors, etc.) I do
not know. There is information about that (not specifically this topic
but there is a *lot* of information about hard-disks and how do they
operate) in

http://www.pcguide.com/topic.html (section hard-drives)

but I did not have problems with my slices/filesystems/data.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dd on samba

2005-03-14 Thread Alejandro Pulver
On Mon, 14 Mar 2005 13:34:17 +
Pietro Cerutti [EMAIL PROTECTED] wrote:

 On Mon, 14 Mar 2005 13:27:19 +, Pietro Cerutti
 [EMAIL PROTECTED] wrote:
  dd and dump won't work (they won't put the data on a directory).
 
 Maybe I solved it, by  making
 # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m
 
 But how is goint to be to restore the whole filesystem?
 
 Thanks!
 
 
 -- 
 Pietro Piter Cerutti
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 Beansidhe - SwiSS Death / Thrash Metal
 www.beansidhe.ch
 
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 FreeBSD: Are you guys coming or what?

Hello,

I have free space between two slices to I tried to do the same as you.

When you have the image of a slice generated by 'dd', it contains its
partitions and filesystems. First you may want to make that slice image
(file) to appear in '/dev', so you can manipulate its partitions. This
is done (in FreeBSD 5.X, if you use 4.X use'vnconfig', there are
examples in the Handbook) like with a CD-ROM ISO image (see the
Handbook-Storage):

mdconfig -a -t vnode -f file -u n

It will appear in '/dev' as 'mdn', with its partitions, like the
following:

md1a
md1c
[...]

So you can mount them, dump them, etc., like with a slice (in fact,
it is an image of a slice).

When you end what you want to do with it, do (after unmounting the
partitions):

mdconfig -d -u n

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CD Doesn't boot

2005-03-14 Thread Alejandro Pulver
On Mon, 14 Mar 2005 16:50:54 -0600
Teilhard Knight [EMAIL PROTECTED] wrote:

 From: Alejandro Pulver [EMAIL PROTECTED]
 To: Teilhard Knight [EMAIL PROTECTED]
 Cc: FreeBSD freebsd-questions@freebsd.org
 Sent: Monday, March 14, 2005 10:28 AM
 Subject: Re: CD Doesn't boot
 
 
  On Mon, 14 Mar 2005 10:01:10 -0600
  Teilhard Knight [EMAIL PROTECTED] wrote:
 
  I am trying to install FreeBSD 5.3 in a laptop which I just
 recently bought. Problem is that the installation CD wouldn't boot.
 I have tried burning several brands of disks and trying them in
 other computers and I am now sure is not the media. I even disabled
  hyperthreading in the BIOS and nothing. Anyone can offer some
 advise about what to do?
 
  Teilhard.
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
  Hello,
 
  If you have set up your BIOS settings properly (to boot from a CD,
  and then from the disk), and it does not boot, maybe you just burned
  the ISO as a normal file in the CD.
 
  An ISO file is an image of the entire CD (it has a TOC, the
  bootable part, etc.), and to burn it there should be an option on
  the burning program (something containing the word ISO, and a
  browser to select a file).
 
  Check this, if when you burn the cd and you read it you see only the
  ISO file, it is not right. If you see a lot of directories like
  'boot','packages', it is fine, and it should boot.
 
  Best Regards,
 
 Thanks, Ale. I know how to burn images and the CD boots until the menu
 where you get the choices about what kind of kernel boot you want. I
 cannot boot even in safe mode. :o(.
 
 Teilhard. 
 

Hello,

Sorry, you did not mentioned it.

What error messages do you get?

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-13 Thread Alejandro Pulver
Hello,

Sorry I did not noticed it before, but your first slice must be of type
165 (or 0xa5 in hex), that is the type of FreeBSD slices.

  The data for partition 1 is:
  sysid 0 (),(unused)
  start 63, size 20820177 (10166 Meg), flag 0
  beg: cyl 0/ head 1/ sector 1;
  end: cyl 174/ head 15/ sector 63
  The data for partition 2 is:
  sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  start 20820240, size 19201392 (9375 Meg), flag 80 (active)
  beg: cyl 1023/ head 255/ sector 63;
  end: cyl 1023/ head 15/ sector 63

It appeares as unused. So try changing the type.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.3: scbus da in kernel config, umass as module: but no /dev/da* ?

2005-03-12 Thread Alejandro Pulver
On Sat, 12 Mar 2005 00:00:23 -0800 (PST)
Rob [EMAIL PROTECTED] wrote:

 Alejandro Pulver wrote:
  Rob wrote:
 
 I'm running FreeBSD 5.3.
 I have following in my kernel config:
 
  device scbus
  device da
  device uhci
  device usb
 
 hoping that this provides enough 'basic' usb
 support for my usb-memory-stick. Indeed, I can
 load the umass module.
 
 If I'm not wrong, I must do following to access the
 usb-memory-stick:
mount -t msdosfs /dev/da0s1 /mnt
 
 but there's no /dev/da* device. 
  
  Hello,
  
  I have a camera that is detected as an 'umass'
  storage device, and it appears as '/dev/da0'
  (strangely I can use it as a common storage
  device). This is my configuration:
  
  kernel options:
  
  device scbus
  device da
  device pass
  device uhci
  device ohci
  device usb
  device umass
  device ehci
  
  '/etc/rc.conf' options:
  
  usbd_enable=YES
  
  To test it you can:
  
  1) Check the devices in '/dev/daX'.
  2) # camcontrol devlist
  3) Check the boot messages (umass and da) and
 the messages printed when you plug the device.
  
  To mount it you have to select a slice (if it has
  data stored in):
  
  mount -t msdosfs /dev/da0s1 /mnt
 
 I do not have the cam device in the kernel config.
 Do I have to? I also don't have umass in the
 kernel config either, but I load that as a module
 later; is that OK?
 
 Problem is that I do not have any /dev/da* devices,
 with or without my memory stick in the usb port.
 
 I load umass module into the kernel, and then plug
 the memory stick into the usb port. The console
 gets then:
 
 umass0: EXATEL  , Inc. I-BEAD Multi Player, rev
 1.10/0.01, addr 2
 umass0: Get Max Lun not supported (STALLED)
 da0 at umass-sim0 bus 0 target 0 lun 0
 da0: EXATEL i-BEAD100 0001 Removable Direct Access
 SCSI-4 device
 da0: 1.000MB/s transfers
 da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C)
 umass0: BBB reset failed, STALLED
 umass0: BBB bulk-in clear stall failed, STALLED
 umass0: BBB bulk-out clear stall failed, STALLED
 [...last three lines repeated every minute or so...]
 
 
 What does the STALLED mean here?
 Is that critical? The usbdevs -v reports now:
 
 Controller /dev/usb0:
 addr 1: full speed, self powered, config 1, UHCI
  root hub(0x), Intel(0x), rev 1.00
  port 1 powered
  port 2 addr 2: full speed, self powered, config 1,
  i-Bead 100 MP3 Player(0x8008), Sigmatel(0x066f),
  rev 0.01
 
 But I have no /dev/da0 :
 
   # ls /dev/da*
   ls: No match.
 
 So, the memory stick is detected at the USB port,
 but I don't have the /dev/da* devices to mount the
 memory stick (although devices da and scbus are in
 my kernel config!).
 When I remove the memory stick, I get following in
 the console:
 
 umass0: at uhub0 port 2 (addr 2) disconnected
 (da0:umass-sim0:0:0:0): lost device
 (da0:umass-sim0:0:0:0): removing device entry
 Opened disk da0 - 5
 umass0: detached
 
 
 What am I doing wrong?
 
 Thanks,
 Rob.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

I think your configuration is fine.

I guess the problem is with the driver or maybe it needs some extra
configuration.

Your device is detected:

umass0: EXATEL  , Inc. I-BEAD Multi Player, rev
1.10/0.01, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: EXATEL i-BEAD100 0001 Removable Direct Access
SCSI-4 device
da0: 1.000MB/s transfers
da0: 122MB (249856 512 byte sectors: 64H 32S/T 122C)

I think the source of the problem are these lines:

umass0: Get Max Lun not supported (STALLED)
umass0: BBB reset failed, STALLED
umass0: BBB bulk-in clear stall failed, STALLED
umass0: BBB bulk-out clear stall failed, STALLED
[...last three lines repeated every minute or so...]

I do not know how to solve this, but perhaps someone will answer you in
the '[EMAIL PROTECTED]' list.

Do not forget to provide the following information:

1) messages reported when booting/plugging/unplugging/
2) # camcontrol devlist
3) # usbdevfs -v
4) error messages (STALLED)
5) FreeBSD version and kernel options related to USB

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-12 Thread Alejandro Pulver
On Sat, 12 Mar 2005 21:09:33 +0100
Freek Nossin [EMAIL PROTECTED] wrote:

 Hello, formatting is almost complete... 
 
 My new problem is that bsdlabel didn't create a new partition after
 bsdlabel-e ad0s1. Below is an extensive output of some commands, but
 you might want to skip to the last alinea ;). 
 
 I used fdisk to create a new slice. I copied the exact format of the
 previous slice (on which the windows installation resided), so I
 didn't have to worry about the overlapping slices. I got this nice
 output:
 
 pcwin451# fdisk
 *** Working on device /dev/ad0 ***
 parameters extracted from in-core disklabel are:
 cylinders=39704 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=39704 heads=16 sectors/track=63 (1008 blks/cyl)
 
 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 0 (),(unused)
 start 63, size 20820177 (10166 Meg), flag 0
 beg: cyl 0/ head 1/ sector 1;
 end: cyl 174/ head 15/ sector 63
 The data for partition 2 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
 start 20820240, size 19201392 (9375 Meg), flag 80 (active)
 beg: cyl 1023/ head 255/ sector 63;
 end: cyl 1023/ head 15/ sector 63
 The data for partition 3 is:
 UNUSED
 The data for partition 4 is:
 UNUSED
 
 Part 1 is the new slice which I want to use. 
 Then I used bsdlabel to create a label on ad0s1 by typing: 
 
 #bsdlabel -w ad0s1
 
 And following the handbook, my next command was:
 
 #bsdlabel -e ad0s1
 
 Now I wrote in the text editor (I admit, after 4 tries and a lot of
 reading...):
 
 # /dev/ad0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   c: 208201770unused0 0 # raw part,
   don't e: 2082017704.2BSD 2048 16384 32776
 
 
 now I wanted to use newfs to create a file system on ad0s1e, but it
 could not. My problem is illustrated by my ls output:
 
 pcwin451# ls /dev/ad*
 /dev/ad0/dev/ad0s2  /dev/ad0s2b /dev/ad0s2d
 /dev/ad0s1  /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e
 
 bsdlabel -e didn't create a new partition, although the output of
 bsdlabel ad0s1 is:
 
 pcwin451# disklabel ad0s1
 # /dev/ad0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   c: 208201770unused0 0 # raw part,
   don't
 edit
   e: 20820161   164.2BSD 2048 16384 32776
 
 How can this be? (and how do I fix it...?)
 
 Thanks for your help already so far
 
 Freek


Hello,

In my second disk I have free space between two slices so I tried the
procedure by myself.

When I did a 'bsdlabel -w /dev/adXsY' (without editing them) I ended
with a partition labeled 'a', and it instantly appeared in '/dev/'. Then
I did what you have done ('bsdlabel -e slice') and it also appeared in
'/dev'.

I do not know about this, but maybe this helps:

1) Try with only 'bsdlabel -w slice'. The partition should appear as
'a'.

2) If the partition does not appear in '/dev/' then you can reinitialize
the ATA channel (0 or 1, I think your disk is in 0) your disk is in,
with 'atacontrol reinit channel'. For a list of ATA channels
with the devices do 'atacontrol list'.

***WARNING***: do ***NOT*** 'detach' and 'attach' the channel your
device your running hard disk (that contain the FreeBSD you are
running) is connected to (but you can safely 'reinit' it). A 'detach'
removes the disk and slices/partitions from the kernel and powers down
the devices in that channel, so FreeBSD will stall when it tries to
read/write on its partitions ('/', '/usr', etc.). I could detach and
atach it once (in less than 5 seconds), but the other time it crashed
my machine (I had to rewrite this mail three times, because I was
experimenting with 'atacontrol'). It is more safe to reboot the machine.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-12 Thread Alejandro Pulver
On Sun, 13 Mar 2005 00:04:06 +0100
Freek Nossin [EMAIL PROTECTED] wrote:
   Then I used bsdlabel to create a label on ad0s1 by typing:
  
   #bsdlabel -w ad0s1
  
   And following the handbook, my next command was:
  
   #bsdlabel -e ad0s1
  
   Now I wrote in the text editor (I admit, after 4 tries and a lot
   of reading...):
  
   # /dev/ad0s1:
   8 partitions:
   #size   offsetfstype   [fsize bsize bps/cpg]
 c: 208201770unused0 0 # raw
 part, don't e: 2082017704.2BSD 2048 16384 32776
  
  
   now I wanted to use newfs to create a file system on ad0s1e, but
   it could not. My problem is illustrated by my ls output:
  
   pcwin451# ls /dev/ad*
   /dev/ad0/dev/ad0s2  /dev/ad0s2b /dev/ad0s2d
   /dev/ad0s1  /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e
  
   bsdlabel -e didn't create a new partition, although the output of
   bsdlabel ad0s1 is:
  
   pcwin451# disklabel ad0s1
   # /dev/ad0s1:
   8 partitions:
   #size   offsetfstype   [fsize bsize bps/cpg]
 c: 208201770unused0 0 # raw
 part, don't
   edit
 e: 20820161   164.2BSD 2048 16384 32776
  
   How can this be? (and how do I fix it...?)
  
   Thanks for your help already so far
  
   Freek
  
  
  Hello,
  
  In my second disk I have free space between two slices so I tried
  the procedure by myself.
  
  When I did a 'bsdlabel -w /dev/adXsY' (without editing them) I ended
  with a partition labeled 'a', and it instantly appeared in '/dev/'.
  Then I did what you have done ('bsdlabel -e slice') and it also
  appeared in'/dev'.
  
  I do not know about this, but maybe this helps:
  
  1) Try with only 'bsdlabel -w slice'. The partition should appear
  as'a'.
  
  2) If the partition does not appear in '/dev/' then you can
  reinitialize the ATA channel (0 or 1, I think your disk is in 0)
  your disk is in, with 'atacontrol reinit channel'. For a list of
  ATA channels with the devices do 'atacontrol list'.
  
  ***WARNING***: do ***NOT*** 'detach' and 'attach' the channel your
  device your running hard disk (that contain the FreeBSD you are
  running) is connected to (but you can safely 'reinit' it). A
  'detach' removes the disk and slices/partitions from the kernel and
  powers down the devices in that channel, so FreeBSD will stall when
  it tries to read/write on its partitions ('/', '/usr', etc.). I
  could detach and atach it once (in less than 5 seconds), but the
  other time it crashed my machine (I had to rewrite this mail three
  times, because I was experimenting with 'atacontrol'). It is more
  safe to reboot the machine.
  
  Best Regards,
  Ale
 
 
 Thank, but unfortunately it dit not help
 
 pcwin451# atacontrol reinit 0
 Master:  ad0 Maxtor 5T020H2/TAH71DP0 ATA/ATAPI revision 6
 Slave:   no device present
 
 pcwin451# bsdlabel -w ad0s1
 
 pcwin451# ls /dev/ad*
 /dev/ad0/dev/ad0s2  /dev/ad0s2b /dev/ad0s2d
 /dev/ad0s1  /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

Have you tried to reinitialize the ata channel before changing the
partitions?

Try unmounting '/dev' and mounting it again (forcing it with '-f').

If the problem persist, the only alternative is to reboot. Do you have a
dynamic IP? If that is the case it is possible to add a crontab entry
that executes a script on each system startup. The script can send you
an e-mail to you using the internal sendmail (must be enabled for that)
relay so it will contain the IP of your server (in the complete
headers). Alternatively the script can upload a file containing the
output of 'ifconfig' to an FTP site.

If you are interested you can ask me for more information.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-12 Thread Alejandro Pulver
On Sat, 12 Mar 2005 21:06:05 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 On Sun, 13 Mar 2005 00:04:06 +0100
 Freek Nossin [EMAIL PROTECTED] wrote:
Then I used bsdlabel to create a label on ad0s1 by typing:
   
#bsdlabel -w ad0s1
   
And following the handbook, my next command was:
   
#bsdlabel -e ad0s1
   
Now I wrote in the text editor (I admit, after 4 tries and a lot
of reading...):
   
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 208201770unused0 0 # raw
  part, don't e: 2082017704.2BSD 2048 16384
  32776
   
   
now I wanted to use newfs to create a file system on ad0s1e, but
it could not. My problem is illustrated by my ls output:
   
pcwin451# ls /dev/ad*
/dev/ad0/dev/ad0s2  /dev/ad0s2b /dev/ad0s2d
/dev/ad0s1  /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e
   
bsdlabel -e didn't create a new partition, although the output
of bsdlabel ad0s1 is:
   
pcwin451# disklabel ad0s1
# /dev/ad0s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  c: 208201770unused0 0 # raw
  part, don't
edit
  e: 20820161   164.2BSD 2048 16384 32776
   
How can this be? (and how do I fix it...?)
   
Thanks for your help already so far
   
Freek
   
   
   Hello,
   
   In my second disk I have free space between two slices so I tried
   the procedure by myself.
   
   When I did a 'bsdlabel -w /dev/adXsY' (without editing them) I
   ended with a partition labeled 'a', and it instantly appeared in
   '/dev/'. Then I did what you have done ('bsdlabel -e slice') and
   it also appeared in'/dev'.
   
   I do not know about this, but maybe this helps:
   
   1) Try with only 'bsdlabel -w slice'. The partition should
   appear as'a'.
   
   2) If the partition does not appear in '/dev/' then you can
   reinitialize the ATA channel (0 or 1, I think your disk is in 0)
   your disk is in, with 'atacontrol reinit channel'. For a list of
   ATA channels with the devices do 'atacontrol list'.
   
   ***WARNING***: do ***NOT*** 'detach' and 'attach' the channel your
   device your running hard disk (that contain the FreeBSD you are
   running) is connected to (but you can safely 'reinit' it). A
   'detach' removes the disk and slices/partitions from the kernel
   and powers down the devices in that channel, so FreeBSD will stall
   when it tries to read/write on its partitions ('/', '/usr', etc.).
   I could detach and atach it once (in less than 5 seconds), but the
   other time it crashed my machine (I had to rewrite this mail three
   times, because I was experimenting with 'atacontrol'). It is more
   safe to reboot the machine.
   
   Best Regards,
   Ale
  
  
  Thank, but unfortunately it dit not help
  
  pcwin451# atacontrol reinit 0
  Master:  ad0 Maxtor 5T020H2/TAH71DP0 ATA/ATAPI revision 6
  Slave:   no device present
  
  pcwin451# bsdlabel -w ad0s1
  
  pcwin451# ls /dev/ad*
  /dev/ad0/dev/ad0s2  /dev/ad0s2b /dev/ad0s2d
  /dev/ad0s1  /dev/ad0s2a /dev/ad0s2c /dev/ad0s2e
  
  
  
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 Hello,
 
 Have you tried to reinitialize the ata channel before changing the
 partitions?
 

Sorry, I mean after.

 Try unmounting '/dev' and mounting it again (forcing it with '-f').
 
 If the problem persist, the only alternative is to reboot. Do you have
 a dynamic IP? If that is the case it is possible to add a crontab
 entry that executes a script on each system startup. The script can
 send you an e-mail to you using the internal sendmail (must be enabled
 for that) relay so it will contain the IP of your server (in the
 complete headers). Alternatively the script can upload a file
 containing the output of 'ifconfig' to an FTP site.
 
 If you are interested you can ask me for more information.
 
 Best Regards,
 Ale
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 5.3: scbus da in kernel config, umass as module: but no /dev/da* ?

2005-03-11 Thread Alejandro Pulver
On Thu, 10 Mar 2005 22:41:58 -0800 (PST)
Rob [EMAIL PROTECTED] wrote:

 
 Hi,
 
 I'm running FreeBSD 5.3.
 I have following in my kernel config:
 
  device scbus
  device da
  device uhci
  device usb
 
 hoping that this provides enough 'basic' usb support
 for my usb-memory-stick. Indeed, I can load the
 umass module.
 
 If I'm not wrong, I must do following to access the
 usb-memory-stick:
mount -t msdos /dev/da0 /mnt
 
 but there's no /dev/da* device.
 
 So what should I do instead?
 
 Thanks,
 Rob.
 
 
 
   
 __ 
 Do you Yahoo!? 
 Make Yahoo! your home page 
 http://www.yahoo.com/r/hs
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

I have a camera that is detected as an 'umass' storage device, and it
appears as '/dev/da0' (strangely I can use it as a common storage
device). This is my configuration:

kernel options:

device scbus
device da
device pass
device uhci
device ohci
device usb
device umass
device ehci

'/etc/rc.conf' options:

usbd_enable=YES

To test it you can:

1) Check the devices in '/dev/daX'.
2) # camcontrol devlist
3) Check the boot messages (umass and da) and the messages printed when
you plug the device.

To mount it you have to select a slice (if it has data stored in):

mount -t msdosfs /dev/da0s1 /mnt

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


No read permission on NTFS files shared by Samba

2005-03-11 Thread Alejandro Pulver
Hello,

I am using FreeBSD 5.3 with Samba 3.0.7,1.

I can read all files from a Windows 2000 Pro. But when I try to access
a mount point that is an NTFS filesystem, I have no read permission
(files and directories appear as zero length files) until I access them
from the server machine (like doing an 'ls').

My configuration file is as follows:

= BEGIN =
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/12/11 19:24:02

# Global parameters
[global]
workgroup = VARNET
server string = FreeBSD 5.3
security = SHARE
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = No

[mnt]
comment = Mounted Filesystems
path = /mnt
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[ale]
comment = Ale's Home DIrectory
path = /home/ale
guest ok = Yes
= END ===

Note: I have subdirectories under '/mnt' like 'w2k', 'wxp', 'cam', and
'tmp'.

What am I doing wrong?

Thanks and Best Regards,
Ale

P.S.: How can I get a list of shares from a Samba server (using the
Samba utilities)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-11 Thread Alejandro Pulver
On Fri, 11 Mar 2005 17:58:10 +0100
Freek Nossin [EMAIL PROTECTED] wrote:

 Hello,
 
 I have a freebsd installation on a disk with two slices. One of them
 has the current freebsd install, the other has a win2k installation. I
 want to convert the win2k slice to a freebsd slice (by deleting the
 old one and add a new one). I followed the handbook but when I try to
 delete the win2k slice, and want to write the changes to the disk,
 sysinstall returns a disk error. The steps I took were simple:
 
 - run sysinstall en select fdisk
 - choose delete on the NTFS slice 
 - Write changes
 
 Then sysinstall complains that it cannot do that (no specific
 information on the cause of the error is displayed). 
 
 Does anyone know what can be wrong and how can I solve this?
 
 
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

Try using 'fdisk' directly (man 8 fdisk) and see the complete error
messages.

For example, to delete the second slice (check the numbering with
'fdisk -s') save the following in a file and then run 'fdisk -f file'
(but first try the test mode with the -t flag to see if it works as
expected):

p 2 0 0 0

Best Regards,
Ale

P.S.: what is the output of 'fdisk -s'?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: format slice

2005-03-11 Thread Alejandro Pulver
On Fri, 11 Mar 2005 21:16:49 +0100
Freek Nossin [EMAIL PROTECTED] wrote:

  -Original Message-
  From: Jerry McAllister [mailto:[EMAIL PROTECTED]
  Sent: vrijdag 11 maart 2005 21:00
  To: Freek Nossin
  Cc: freebsd-questions@freebsd.org; [EMAIL PROTECTED]
  Subject: Re: format slice
  
  
   Thank you for your suggestions, I followed them and this is what
  happened:
  
   pcwin451# fdisk -s
   /dev/ad0: 39704 cyl 16 hd 63 sec
   PartStartSize Type Flags
  1:  6320820177 0x07 0x00
  2:2082024019201392 0xa5 0x80
  
   Part 1 is the one I want to convert to a freebsd slice.
  
   Now I used fdisk -f file with the input
  
   p 1 0 0 0
  
   the operation succeeded. I did again:
  
   pcwin451# fdisk -s
   /dev/ad0: 39704 cyl 16 hd 63 sec
   PartStartSize Type Flags
  2:2082024019201392 0xa5 0x80
  
   And this was indeed the output I expected. So I thought lets see
   what sysinstall thinks of all this. Selecting fdisk in the menu
   showed me a
  disk
   layout where the NTFS partition still was on the disk.
  
   Disk name:  ad0FDISK
   Partition Editor
   DISK Geometry:  39704 cyls/16 heads/63 sectors = 40021632 sectors
  (19541MB)
  
   Offset   Size(ST)End Name  PType   Desc 
   Subtype Flags
  
0 63 62- 12 unused   
0
  
   63   20820177   20820239ad0s1  4 NTFS/HPFS/QNX
  7
 20820240   19201392   40021631ad0s2  8freebsd 
 165
  
  
   How can this be? I've always assumed that sysinstall uses the
   fdisk
  tool?
   And which one is correct? Is it wise to try creating a new slice
   with fdisk?
  
  Well, is one of them reading only the in-memory label and the other
  reading the label on the disk?When you did the fdisk, did you
  make sure it changed on disk.  Then, did the in-memory label get
  updated?
  
  jerry
 
 
 /stand/sysinstall would be the one that read the in-memory label. The
 other way around seems impossible to me. But then how can these two be
 different? I did close /stand/sysinstall and restarted. The in memory
 one *should* be updated right? If this wasn't the case than it seems
 to me like bug in sysinstall, or more likely, freebsd itself. 
 Normally I should simply try rebooting the system and all ambiguities
 should be solved. The problem is I'm working remote and rebooting is
 kind of a risk. 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

I do not know about that, but I think the best option is to do the
procedure manually, as indicated by Jerry.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to install Windows on an existing partition?

2005-03-10 Thread Alejandro Pulver
On Thu, 10 Mar 2005 17:01:28 +
Pietro Cerutti [EMAIL PROTECTED] wrote:

 Hi List,
 I need to install Windows on an existing partition of my laptop.
 At the moment I have this label:
 laptop# bsdlabel /dev/ad0s1
 # /dev/ad0s1:
 8 partitions:
 #size   offsetfstype   [fsize bsize bps/cpg]
   a:   30720004.2BSD0 0 0
   b:  3072000   307200  swap
   c: 1172101770unused0 0 # raw part,
 don't edit
   d: 10485760  33792004.2BSD0 0 0
   e: 41943040 340992004.2BSD0 0 0
   f: 41167937 760422404.2BSD0 0 0
   g: 20234240 138649604.2BSD 2048 16384 28552
 
 a: /
 b: swap
 c: extended
 d: /var
 e: /usr
 f: /home
 g: where I want to install windows
 
 I tried to format g: as FAT32, and I think it worked:
 laptop# newfs_msdos /dev/ad0s1g
 /dev/ad0s1g: 116981728 sectors in 14622716 FAT32 clusters (4096
 bytes/cluster) bps=512 spc=8 res=32 nft=2 mid=0xf8 spt=63 hds=16
 hid=4197991296 bsec=117210240 bspf=114240 rdcl=2 infs=1 bkbs=2
 
 But when I run bsdlaben /dev/ad0s1 I have the same result as above, so
 the g: partition is still formatted with 4.2BSD filesystem, so that
 Windows won't see this partition.
 
 How can I format this partition and make it visible to the Windows
 CD-ROM?
 
 Thank you!
 
 
 -- 
 Pietro Piter Cerutti
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 Beansidhe - SwiSS Death / Thrash Metal
 www.beansidhe.ch
 
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 FreeBSD: Are you guys coming or what?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

Windows (and also a msdos filesystem, I think) needs a whole slice
(thoose you edit with 'fdisk', called partition by Windows) to install
(it does not understand a BSD slice with labels). You can also just
leave some free space in the disk (the BSD slice must not cover the
whole disk) and then Windows should create another partition (slice) to
install itself.

For example, I have the following slices (called partitions by
Windows) in my first disk:

#fdisk -s /dev/ad0

/dev/ad0: 77504 cyl 16 hd 63 sec
PartStartSize Type Flags
   1:  6337158282 0x0c 0x80 (fat32)
   2:3715834540949685 0x0f 0x00 (ntfs)

And the following in my second disk (ignore the numbering):

# fdisk -s /dev/ad2

/dev/ad2: 79656 cyl 16 hd 63 sec
PartStartSize Type Flags
   1:  6320466747 0x83 0x00 (ext2fs)
   4:4094968538909430 0xa5 0x80 (BSD slice)

Slice 4 is a FreeBSD slice containing (and only BSD slices have labels):

# bsdlabel /dev/ad2s4

# /dev/ad2s4:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:   52428804.2BSD 2048 16384 32776 
  b:  2045568   524288  swap
  c: 389094300unused0 0 # raw part,
don't edit  d:   524288  25698564.2BSD 2048 16384 32776 
  e:   524288  30941444.2BSD 2048 16384 32776 
  f: 35290998  36184324.2BSD 2048 16384 28552 

I think your partition layout is as follows (sizes in Mbytes):

| a 150 | b 1500 | d 5120 | g 9880 | e 20480 | f 20101 | END 0 |
   0   150  1650 6770 16650 37130 57231

So you will have to delete 'g', and move all the partitions before near
to 'd'. Or in the other direction. Change the slice size ('fdisk').
And then you will be able to create a slice for Windows. Note that I
have *never* tested this procedure and all recommendations I have
received are to back up the data, recreate all and then restore it. So I
do *not* recommend it.

When installing Windows keep this in mind: it will overrite the MBR, so
perhaps you want to install Windows first (and leave free space for
FreeBSD), otherwise you can restore it later with a bootable CD. It can
be done with 'sysinstall' or from command-line (you can use a LiveCD,
like the second FreeBSD ISO or FreeSBIE), there are instructions in the
Handbook, section The FreeBSD Booting Process.

If something of this looks unclear mail me.

Hope that helps.

Best Regards,
Ale

P.S.: how did you do to resize the partition 'd' to put 'g' after it
(just changing the BSD labels)?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to install Windows on an existing partition?

2005-03-10 Thread Alejandro Pulver
On Thu, 10 Mar 2005 19:31:12 +
Pietro Cerutti [EMAIL PROTECTED] wrote:

 On Thu, 10 Mar 2005 16:04:55 -0300, Alejandro Pulver
 [EMAIL PROTECTED] wrote:
 
  Hello,
 
 Hi there, thank you for your reply.
 
 
  Windows (and also a msdos filesystem, I think) needs a whole slice
  (thoose you edit with 'fdisk', called partition by Windows) to
  install(it does not understand a BSD slice with labels). You can
  also just leave some free space in the disk (the BSD slice must not
  cover the whole disk) and then Windows should create another
  partition (slice) to install itself.
 
 
 This was my fear
 
 
  I think your partition layout is as follows (sizes in Mbytes):
 
  | a 150 | b 1500 | d 5120 | g 9880 | e 20480 | f 20101 | END 0 |
 0   150  1650 6770 16650 37130 57231
 
 Right!
 
 
  So you will have to delete 'g', and move all the partitions before
  near to 'd'. Or in the other direction. Change the slice size
  ('fdisk').
 
 I can delete 'g' withoud problems, but then:
 - how do I move the partitions?
 - how do I resize the slice (which takes the whole disk) ?
 
  If something of this looks unclear mail me.
 
 Sure!
 
  Best Regards,
 
 Cheers.
 
  Ale
 
  P.S.: how did you do to resize the partition 'd' to put 'g' after it
  (just changing the BSD labels)?
 
 I deleted 'd', created a smaller 'd', and then created 'g'.
 
 
 --
 Pietro Piter Cerutti
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 
 Beansidhe - SwiSS Death / Thrash Metal
 www.beansidhe.ch
 
 Windows: Where do you want to go today?
 Linux: Where do you want to go tomorrow?
 FreeBSD: Are you guys coming or what?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Hello,

If you want to use the free space of 'g' you will have to delete it and
collapse all the partitions near 'd'. But is *dangerous*, and in fact
there are *no* tools (I searched and it is often said) to resize
filesystems (even if you resize the partition, the filesystem thinks
the space is still assigned to it, I think). The only think I believe is
possible (with raw tools: 'dd') is moving partitions, but if you
are moving less space than the size of the partition itself, it is only
possible to do it backwards, and the copied bytes will be overritten
(after copied) so if the process is interrupted you will lose all the
data (half in the destination, the rest in the original place, and one
immediatly following the other).

I found a (possible) better way to do this:

1) Revert the changes with the partitions 'd' and 'g' (back-up, delete,
create only 'd', restore).

2) Save the data in 'f' ('/home') to somewhere (like '/usr').

2) Delete 'f' ('/home') and create it with less space (like 10 GB, or
less, if you do not need much space there).

3) Then the BSD label entry 'c' should have less size.

4) Use 'fdisk' to resize the slice. It should be equal to the size of
partition 'c' (that is not a real partition, but the size sum of all
of them). Then the slice must not cover the entire disk, and you will
be able to create a 'msdosfs' slice after it (in the unallocated space).

I never tried this and I do not know if it is possible, so I *recommend*
you to back up your data.

Good Luck!

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Multisession CDs with 'burncd'

2005-03-09 Thread Alejandro Pulver
Hello,

How can I burn multisession CDs with 'burncd'?

I have FreeBSD 5.3.

# atacontrol list

ATA channel 0:
Master:  ad0 ST340014A/3.16 ATA/ATAPI revision 6
Slave:  acd0 HL-DT-ST GCE-8523B/1.01 ATA/ATAPI revision 0
ATA channel 1:
Master:  ad2 Maxtor 6E040L0/NAR61590 ATA/ATAPI revision 7
Slave:   no device present

I tried this:

== first session ==

% mkisofs -o proj.iso -allow-lowercase -allow-multidot Projects

# burncd -e -f /dev/acd0 -m -s 4 -v data proj.iso fixate

(works, I can mount it, read it, read it with Windows, and it appears
to close the session but not the disk)

== second session ==

# burncd -f /dev/acd0 msinfo
0,12794

% mkisofs -o test.iso -allow-lowercase -allow-multidot -C 0,12794
instalar

# burncd -e -f /dev/acd0 -m -s 4 -v data test.iso fixate

adding type 0x08 file test.iso size 40492 KB 20246 blocks 
next writeable LBA 12794
addr = 12794 size = 41463808 blocks = 20246
writing from file test.iso size 40492 KB

only wrote -1 of 32768 bytes: Input/output error

fixating CD, please wait..

(it does not write anything)

--

What am I doing wrong?

What is the DAO mode?

Should I try with SCSI programs like 'cdrecord', etc.? Are them better?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Multisession CDs with 'burncd'

2005-03-09 Thread Alejandro Pulver
On Wed, 09 Mar 2005 12:33:33 -0800
Michael C. Shultz [EMAIL PROTECTED] wrote:

 On Wednesday 09 March 2005 11:36 am, Alejandro Pulver wrote:
  Hello,
 
  How can I burn multisession CDs with 'burncd'?
 
  I have FreeBSD 5.3.
 
  # atacontrol list
 
  ATA channel 0:
  Master:  ad0 ST340014A/3.16 ATA/ATAPI revision 6
  Slave:  acd0 HL-DT-ST GCE-8523B/1.01 ATA/ATAPI revision 0
  ATA channel 1:
  Master:  ad2 Maxtor 6E040L0/NAR61590 ATA/ATAPI revision 7
  Slave:   no device present
 
  I tried this:
 
  == first session ==
 
  % mkisofs -o proj.iso -allow-lowercase -allow-multidot Projects
 
  # burncd -e -f /dev/acd0 -m -s 4 -v data proj.iso fixate
 
  (works, I can mount it, read it, read it with Windows, and it
  appears to close the session but not the disk)
 
  == second session ==
 
  # burncd -f /dev/acd0 msinfo
  0,12794
 
  % mkisofs -o test.iso -allow-lowercase -allow-multidot -C 0,12794
  instalar
 
  # burncd -e -f /dev/acd0 -m -s 4 -v data test.iso fixate
 
  adding type 0x08 file test.iso size 40492 KB 20246 blocks
  next writeable LBA 12794
  addr = 12794 size = 41463808 blocks = 20246
  writing from file test.iso size 40492 KB
 
  only wrote -1 of 32768 bytes: Input/output error
 
  fixating CD, please wait..
 
  (it does not write anything)
 
  --
 
  What am I doing wrong?
 
  What is the DAO mode?
 
  Should I try with SCSI programs like 'cdrecord', etc.? Are them
  better?
 
  Thanks and Best Regards,
  Ale
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 Here is a snippette from the script I use, maybe it will give you
 some ideas:
 
 DT=`date +%Y%m%d%H%M%S`
 
 To start a new CD
 
 mkisofs -r -o /home/mike/backup-${DT}.iso -C `cdrecord -msinfo \ 
 dev=1,0,0` -M /dev/cd0 /home/mike/BACKUP-${DT}
 cdrecord -v -multi -speed 4 -data dev=1,0,0
 /home/mike/backup-${DT}.iso
 
 
 To add to the CD
 
 mkisofs -r -o /home/mike/backup-${DT}.iso /home/mike/BACKUP-${DT}
 cdrecord -v -multi -speed 4 -data dev=1,0,0
 /home/mike/backup-${DT}.iso   
 
 -Mike
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Thank you for your reply.

I am a bit confused with your answer (I think start a new CD and add
to the CD are swapped; I think a session on a new CD will not require
-C).

The manual page of burncd(1) says the following:

-C last_sess_start,next_sess_start

This option is needed when mkisofs is used to create the image of a
second session or a higher level session for a multi session disk.
[...]

Could you please send me the complete script if possible?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recompiling the Kernel for better ATA support

2005-03-09 Thread Alejandro Pulver
On Wed, 9 Mar 2005 19:24:49 -0300
Alejandro Pulver [EMAIL PROTECTED] wrote:

 On Wed, 9 Mar 2005 13:14:39 -0800
 Benjamin Keating [EMAIL PROTECTED] wrote:
 
  Thank you very much for your help.
  
 
 You are welcome.
 
  So this file would kick in after recompiling just the kernel. I was
  thinking more would need to be done, like the make world stuffage
  that I do not yet understand.
  
  Ben
  
 
 Notice that the kernel sources are in the 'sys' subdirectory under
 '/usr/src'. A make world compiles and install the sources in all the
 subdirectories of '/usr/src' (not only the kernel, that is in 'sys').
 For more information about the components of '/usr/src' (and all the
 system) see 'man 7 hier'.
 
 Best Regards,
 Ale

Hello again,

I did not notice it but there were other discussions about this (and I
also had my own experience). You can also try the following (1 to 4
were copied from other posts):

1) Check if your hd is connected through a 80 pin ide cable (for
UDMA133).

2) Try disabling or changing the UDMA speed in BIOS settings.

3) Try using 'atacontrol mode 0' or 'atacontrol mode 0 udma33 biospio'
(as root). See 'man 8 atacontrol'.

4) Add the line 'hw.ata.ata_dma=0' to '/boot/loader.conf'. I think it
is a persistant version of the previous procedure.

5) In my case I had an 80 GB Samsung hard disk (with an 80 pin IDE
cable) sharing the IDE channel with an internal Zip or CDROM (I
tried with both) slave drive and had similar errors when enabling
UDMA133 from the BIOS settings. There were a few errors even when
disabling UDMA from BIOS. Finally I removed the Zip/CDROM, leaving the
hard disk as the only drive in the IDE channel. Then the errors
dissapeared even at the highest UDMA speed. I did not try with software
('atacontrol', etc.).

Please let me know about the results you obtained.

P.S.: when you reply to someone about a list discussion please CC it to
the list.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recompiling the Kernel for better ATA support

2005-03-08 Thread Alejandro Pulver
On Mon, 7 Mar 2005 15:00:24 -0800
Benjamin Keating [EMAIL PROTECTED] wrote:

 I'm having a problem with my drives and found a promising solution
 (http://lists.freebsd.org/pipermail/freebsd-hackers/2004-October/0088
 21.html) It looks like i need to modify
 /usr/src/sys/dev/ata/ata-lowlevel.c with the following, but im unsure
 how to read it. Some pointers about how to understand this would be
 awesome.
 
 % --
 
 --- ata-lowlevel.c.orig Fri Oct 29 12:06:09 2004
 +++ ata-lowlevel.c  Fri Oct 29 12:05:38 2004
 @@ -700,7 +700,7 @@
  ATA_IDX_OUTB(atadev-channel, ATA_ALTSTAT, ATA_A_4BIT);
 
  /* only use 48bit addressing if needed (avoid bugs and overhead)
  */
 -if ((lba  268435455 || count  256)  atadev-param 
 +if ((lba  268435454 || count  256)  atadev-param 
 atadev-param-support.command2  ATA_SUPPORT_ADDRESS48) {
 
 % --
 

It is just a patch (a file generated by diff(1) that outputs the
difference between two files, generally the original file, and the
modified file).

It just changes the value 268435455 to 268435454.

For more information see diff(1) and patch(1).

 After modifying this file, do I simply recompile my kernel? Here is
 how i go about recompiling mine (open to suggestions):
 
 # cd /usr/src/sys/i386/conf
 # cp GENERIC MYKERNEL
 # vi MYKERNEL
 # config MYKERNEL
 # cd /usr/src
 # make buildkernel KERNCONF=MYKERNEL
 # make installkernel KERNCONF=MYKERNEL
 

You have to patch the file '/usr/src/sys/dev/ata/ata-lowlevel.c' with:

# patch /usr/src/sys/dev/ata/ata-lowlevel.c patchfile

And then recompile your kernel.

Personally I use the traditional way (procedure 1) for just compiling
the kernel.

 Im new to kernel compiling and never patched files in the source
 before.
 
 Keep up the good work guys! I love this OS.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using META and DEL keys in console

2005-03-06 Thread Alejandro Pulver
On Thu, 3 Mar 2005 15:40:25 -0600 (CST)
Lars Eighner [EMAIL PROTECTED] wrote:

 On Thu, 3 Mar 2005, Alejandro Pulver wrote:
 
  Where is the (complete) list of scancodes and which keys produce
  them?
 
  If there is not, as I think, how can I know what scancode is
  produced by each key in my keyboard (a program, maybe)?
 
 As a practical matter, for the console keyboard I generally work
 backwards from a known keymap (one of the distribution keymaps),
 and cut and try.  man 5 kbdmap lists all the values you can
 assign to key combinations (note the 5 - otherwise you are
 likely to get man 1 kbdmap by default).  Notice that you can
 use kbdmap or kbdcontrol to load a keymap to experiment with and
 you do not have to reboot to see what happens.  I find this
 works very well with American PC keyboards where there are only
 a handful of keys that are in doubt, even with fairly esoteric
 models, like butterflies with two keypads.
 
 The distribution maps, after all, were not put together by crazy
 people, so the unshifted values of most of the keys are pretty
 logical.
 
[snipped]

Your answer helped me much.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Moving a slice

2005-03-06 Thread Alejandro Pulver
Hello,

I have two IDE hard disks, the first has W2K and WXP, the second has a
GNU/Linux Debian Sarge (for booting purposes only) and a FreeBSD 5.3.

The Linux slice is the number 1, but the FreeBSD slice is number 4.
There is a long story behind this, when I was looking for UNIX like
Operating Systems (I had two Linux and one Linux Swap slices, but I
removed them). At the end I choose FreeBSD.

Here is my slice layout:

# fdisk -s
/dev/ad2: 79656 cyl 16 hd 63 sec
PartStartSize Type Flags
   1:  6320466747 0x83 0x00
   4:4094968538909430 0xa5 0x80

# fdisk
*** Working on device /dev/ad2 ***
parameters extracted from in-core disklabel are:
cylinders=79656 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=79656 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 131 (0x83),(Linux native)
start 63, size 20466747 (9993 Meg), flag 0
beg: cyl 0/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
UNUSED
The data for partition 3 is:
UNUSED
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 40949685, size 38909430 (18998 Meg), flag 80 (active)
beg: cyl 1023/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63

There is a lot of free space after and before FreeBSD slice.

I would like to know if is possible to move the entire FreeBSD slice
(with 'dd', for example) to the end of the Linux slice, and then
change the starting point in the slice table, and then change '4' into
'2'. So there is no free space between the slices and the numbering is
correct.

I think 'dd' will not overrite some parts of the slice with others
because it is copying the data backwards, not forward.

Just for curiousity: Can I make 'dd' copy the data backwards (I mean,
the same result but instead of copying 1 to dst, 2 to dst+1,
etc.; copies last to dst, last-1 to dst+1, etc.)? Is possible to
make such modification to 'dd'? I plan to use this to move a slice
forward.

I guess I will have to use a bootable CD to boot a FreeBSD system (like
FreeSBIE) to move the slice.

Here are my results in bytes to pass to 'dd' (are they correct?):

PartStart   Size
1:  32256   10478974464 (9993 Meg)
4:  20966238720 (19994 Meg) 19921628160 (18998 Meg)

What does the line Warning: BIOS sector numbering starts with sector 1
mean? It is an error?

Does the filesystem has to do with the phisical location of the slice
(according to the BSD label I think is does not, because it uses
offsets, not absolute values)?

Do I have to modify other file than '/etc/fstab' (like a loader
configuration file)?

I appreciate any recommendations/considerations/instructions/warnings.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Moving a slice

2005-03-06 Thread Alejandro Pulver
On 6 Mar 2005 16:47:34 -0500
[EMAIL PROTECTED] wrote:

 On Sun, Mar 06, 2005 at 03:03:19PM -0300, Alejandro Pulver wrote:
  Hello,
  
  I have two IDE hard disks, the first has W2K and WXP, the second has
  a GNU/Linux Debian Sarge (for booting purposes only) and a FreeBSD
  5.3.
  
  The Linux slice is the number 1, but the FreeBSD slice is number 4.
  There is a long story behind this, when I was looking for UNIX like
  Operating Systems (I had two Linux and one Linux Swap slices, but I
  removed them). At the end I choose FreeBSD.
  
  Here is my slice layout:
  
  # fdisk -s
  /dev/ad2: 79656 cyl 16 hd 63 sec
  PartStartSize Type Flags
 1:  6320466747 0x83 0x00
 4:4094968538909430 0xa5 0x80
  
  # fdisk
  *** Working on device /dev/ad2 ***
  parameters extracted from in-core disklabel are:
  cylinders=79656 heads=16 sectors/track=63 (1008 blks/cyl)
  
  Figures below won't work with BIOS for partitions not in cyl 1
  parameters to be used for BIOS calculations are:
  cylinders=79656 heads=16 sectors/track=63 (1008 blks/cyl)
  
  Media sector size is 512
  Warning: BIOS sector numbering starts with sector 1
  Information from DOS bootblock is:
  The data for partition 1 is:
  sysid 131 (0x83),(Linux native)
  start 63, size 20466747 (9993 Meg), flag 0
  beg: cyl 0/ head 1/ sector 1;
  end: cyl 1023/ head 254/ sector 63
  The data for partition 2 is:
  UNUSED
  The data for partition 3 is:
  UNUSED
  The data for partition 4 is:
  sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
  start 40949685, size 38909430 (18998 Meg), flag 80 (active)
  beg: cyl 1023/ head 0/ sector 1;
  end: cyl 1023/ head 254/ sector 63
  
  There is a lot of free space after and before FreeBSD slice.
  
  I would like to know if is possible to move the entire FreeBSD slice
  (with 'dd', for example) to the end of the Linux slice, and then
  change the starting point in the slice table, and then change '4'
  into'2'. So there is no free space between the slices and the
  numbering is correct.
  
  I think 'dd' will not overrite some parts of the slice with others
  because it is copying the data backwards, not forward.
  
  Just for curiousity: Can I make 'dd' copy the data backwards (I
  mean, the same result but instead of copying 1 to dst, 2 to
  dst+1, etc.; copies last to dst, last-1 to dst+1, etc.)?
  Is possible to make such modification to 'dd'? I plan to use this to
  move a slice forward.
  
  I guess I will have to use a bootable CD to boot a FreeBSD system
  (like FreeSBIE) to move the slice.
  
  Here are my results in bytes to pass to 'dd' (are they correct?):
  
  PartStart   Size
  1:  32256   10478974464 (9993 Meg)
  4:  20966238720 (19994 Meg) 19921628160 (18998 Meg)
  
  What does the line Warning: BIOS sector numbering starts with
  sector 1 mean? It is an error?
  
  Does the filesystem has to do with the phisical location of the
  slice(according to the BSD label I think is does not, because it
  uses offsets, not absolute values)?
  
  Do I have to modify other file than '/etc/fstab' (like a loader
  configuration file)?
  
  I appreciate any
  recommendations/considerations/instructions/warnings.
  
  Thanks and Best Regards,
  Ale
 
 I moved a FreeBSD slice from the end of my hard disk to somewhere
 close to the beginning a month or so ago, using nothing but dd, and it
 worked.
 
 Please note that the original space occupied by the slice and the
 place I moved it to did not overlap at all, so I have no idea if
 you'll run into problems when you overwrite the start of it.  It would
 probably work, but if you have to start over for some reason, you're
 sunk -- and you'd need some sort of boot media to get it to work.. 
 Maybe you can copy it one partition at a time?
 
 Also, beware that the FreeBSD disklabel seems to use absolute offsets
 instead of relative offsets.  If you copy the whole slice at once,
 something like
 
 # bsdlabel /dev/{old slice}  /tmp/text-label
 # bsdlabel -R /dev/{new slice} /tmp/text-label
 
 should work, since the human-readable output uses relative offsets. 
 (But beware; I'm just working from memory here and haven't tested
 those commands at all.)
 
 If you copy the data one partition at a time (as I ended up doing for
 some reason) it's a bit more complicated: you have to set up the
 disklabel before you start, but then when you copy partition a, the
 label will be messed up(assuming partition a starts at the beginning
 of the slice).  I just fixed the label again after copying partition
 a, and it seemed to work, but I can't guarantee that the system won't
 re-read the label while dd is working and decide that the destination
 partition is suddenly somewhere else and kill your original slice.
 
 Er, just sharing my experience.  You might want to wait for furthur
 guidance, since all this is pretty messy.
 
 - James Cook
   [EMAIL PROTECTED

Re: Using META and DEL keys in console

2005-03-03 Thread Alejandro Pulver
On Tue, 1 Mar 2005 23:11:18 -0600 (CST)
Lars Eighner [EMAIL PROTECTED] wrote:

 On Tue, 1 Mar 2005, Alejandro Pulver wrote:
 
  Hello,
 
  I have a PS/2 PC-101 keyboard.
 
  I would like to use my META (ALT in my keyboard) key instead of ESC
  in console mode. META works fine in an xterm. I also would like to
  use DEL and others.
 
 The console keymaps are in /usr/share/syscons/keymaps.  You can edit
 whichever keymap you are using with a flat ascii editor.
 
 To get a key to send the familiar ^?, enter del in the keymap.
 Not all applications, however, will do the expected thing with
 this, and you will have to consult the documentation for the
 individual applications to see whether they can be configured to
 do what you expect from a delete key.  For backspace, bs, for
 meta, meta, esc for escape.  Note that you can set the left and
 right Alt keys to different things, and that keypad Del/. key
 can be different from the Delete key.
 
 You almost certainly do not want to mess with terminfo.
 
 If you use the the bash shell, you can see
 what a key is currently sending by entering C-vkeystroke
 at the command prompt.
 
  I read something in the manual pages of terminfo(5), gettytab(5),
  etc.
 
  I tried the following options:
 
  :km:smm:dc:
 
  But I am having these thoubles:
 
  1) My ALT key did not work and the DEL key acts as BACKSPACE (C-h),
but I would like to use it as C-d.
 
 C-d is eot in the console keymap if you would rather have that
 than the ^? which is del.
 
 
  2) Some strange thing happens with Emacs in console mode: when I
  press
DEL, it is interpreted (literally) as C-h, and C-h is used as
BACKSPACE. And C-d acts as DEL.
 
 Switching to the emacs keymap might help you.
 
 
  3) Also DEL does not do anything in xterm.
 
 Make changes to xterm mappings in your .Xdefaults file, such as:
 
 !! xterm keymappings
 *XTerm*VT100.translations:  #override \n\
  KeyKP_Delete: string(0x7f) \n\
 
 Naturally, you can make these strings whatever you want.
 
  Is there a more descriptive documentation of the terminal
  capabilities listed in terminfo(5)?
 
 Yes, you can google for many books worth of material, but it is
 not particularly germane to what you want to do if you are running
 a PC with a PC keyboard, and not trying to connect some ancient
 dumb terminal.
 
  Is there a standard configuration for PS/2 PC-101 keyboards?
 
 Unfortunately there are a lot of them.
 
 
  Does xterm use a different configuration from console terminals?
 
 Yes.
 
 X applications are meant to run on X, and X is meant to run on a
 variety of machines.  Any relationship between xterm and the
 machine's native terminal is purely coincidental.  (In
 particular, xterm is meant to be out of the box compatible with
 the very old VT100 standard - which never was native to any PC
 operating system.) You can get xterm and the console keyboard to
 behave mostly the same way - and get that way to be what you
 want - by editing .Xdefaults and the syscons keymap you are
 using (probably both).  But that doesn't mean that every
 application will behave as you think it should.
 
 -- 
 Lars Eighner
 [EMAIL PROTECTED]
 http://www.io.com/~eighner/index.html
 8800 N IH35 APT 1191 AUSTIN TX 78753-5266
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

Thank you for your reply.

Where is the (complete) list of scancodes and which keys produce them?

If there is not, as I think, how can I know what scancode is produced by
each key in my keyboard (a program, maybe)?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using META and DEL keys in console

2005-03-02 Thread Alejandro Pulver
On Tue, 01 Mar 2005 20:00:08 -0500
Chuck Swiger [EMAIL PROTECTED] wrote:

 Greg 'groggy' Lehey wrote:
 [ ... ]
  Interestingly, I've just discovered that the DELETE key on my cursor
  keypad is bound to c-d.  So maybe that's what he was expecting.
 
 I think so, yes.
 
 If you map the Backspace key to DEL and the Delete key to C-d on a
 standard PC 101/104/whatever-key keyboard, you'll end up with
 something that does not break Emacs' usage of C-h for help and retains
 compatibility with the behavior that many people expect the Backspace
 and Delete keys to have.
 
 -- 
 -Chuck
 

Thank you for your replies.

That is exactly what I want.

Where and how can I specify that mapping for console and xterm?

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Using META and DEL keys in console

2005-03-01 Thread Alejandro Pulver
Hello,

I have a PS/2 PC-101 keyboard.

I would like to use my META (ALT in my keyboard) key instead of ESC in
console mode. META works fine in an xterm. I also would like to use DEL
and others.

I read something in the manual pages of terminfo(5), gettytab(5),
etc.

I tried the following options:

:km:smm:dc:

But I am having these thoubles:

1) My ALT key did not work and the DEL key acts as BACKSPACE (C-h),
   but I would like to use it as C-d.

2) Some strange thing happens with Emacs in console mode: when I press
   DEL, it is interpreted (literally) as C-h, and C-h is used as
   BACKSPACE. And C-d acts as DEL.

3) Also DEL does not do anything in xterm.

Is there a more descriptive documentation of the terminal capabilities
listed in terminfo(5)?

Is there a standard configuration for PS/2 PC-101 keyboards?

Does xterm use a different configuration from console terminals?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I cut and paste from xterm _into_ another program ?

2005-02-28 Thread Alejandro Pulver
On Sun, 27 Feb 2005 12:16:09 -0800 (PST)
Joe Schmoe [EMAIL PROTECTED] wrote:

 Hi,
 
 I am using a very vanilla XFree86 installation on fbsd
 5.3.  I am using ratpoison as my window manager.
 
 If I highlight text in an xterm, it is immediately in
 my buffer, and I can paste it into that xterm, or any
 other xterm.  Further, if I copy text in my web
 browser, I can paste it into all my xterms.
 
 However, I cannot take text that I copied in my xterm
 and paste it into my browser (opera).  Why is this ?
 
 Why can I go in one direction (paste from opera into
 xterm) but not the other (paste from xterm into opera)
 ?
 
 thanks.
 

There are two different clipboards (buffers):

One is used when you copy with the context menu (Right Click - Copy) or
(usually) with Ctrl-C. This usually happenes in KDE/GNOME/GTK (etc.)
applications. The way to paste this buffer is with the context menu
(Right Click - Paste) or (usually) with Ctrl-V.

The other is used when you just select text (like in console, or xterm).
To paste it press the middle mouse button. If you have only two, press
both at the same time.

Try using the middle mouse button (or both if only two). That worked for
me.

Hope that helps.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Extracting boot sectors

2005-02-23 Thread Alejandro Pulver
Hello,

I would like to know how to extract the MBR to a file, and how to
restore it. Also I would like to know how to do the same with the
partition boot sector and OS loaders.

I think it is as follows (I remember this from somewhere):

dd if=/dev/disk/partition of=/file bs=512 count=1

But I do not know:
a) Is 512 the correct size for both (MBR and partition boot sectors)?
b) How to extract/restore the OS loader (e.g. for WinNT/2K/XP, that is
NTLDR)?
c) What alternative commands are available for doing this
(extact/restore)?

I would also like to know more about boot sectors and OS loaders. I
would appreciate some links.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Shell file completion

2005-02-20 Thread Alejandro Pulver
Hello,

I was learning regular expressions, and I noticed that the shell has something 
similar (but it is different from regular expressions).

When I type 'echo *', it replaces '*' for all the files/dirs not starting with 
a '.' (dot).

I understand the '*' in regular expressions must be preceded by other thing to 
match it.

So it is behaving like the DOS wildcards.

Where is it documented?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell file completion

2005-02-20 Thread Alejandro Pulver
On Sun, 20 Feb 2005 12:20:01 -0500
Bill Moran [EMAIL PROTECTED] wrote:

 
 [Please wrap your lines around 72 chars or so]


I am using Sylpheed-Claws, and it appears to be wrapping at 78 characters. But 
the option 'Smart Wrapping' was set and is marked as *EXPERIMENTAL*. So I 
turned it off and change the wrapping to 72 characters.
 
 Alejandro Pulver [EMAIL PROTECTED] wrote:
  Hello,
  
  I was learning regular expressions, and I noticed that the shell has
  something similar (but it is different from regular expressions).
  
  When I type 'echo *', it replaces '*' for all the files/dirs not starting
  with a '.' (dot).
  
  I understand the '*' in regular expressions must be preceded by other
  thing to match it.
  
  So it is behaving like the DOS wildcards.
 
 That's funny.  More like DOS wildcards seem to mimic this.
 

I agree.

  Where is it documented?
 
 'man sh' - the section on Shell Patterns.
 
 -- 
 Bill Moran
 Potential Technologies
 http://www.potentialtech.com
 

Thank you.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
Hello,

Is there a way to handle numeric variables (addition, multiplication, etc.) in 
'sh' (or throught an external command)?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 10:07:51 -0600
Eric Kjeldergaard [EMAIL PROTECTED] wrote:

 On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver
 [EMAIL PROTECTED] wrote:
  Hello,
  
  Is there a way to handle numeric variables (addition, multiplication, etc.) 
  in 'sh' (or throught an external command)?
  
 
 `man bc`
 
 -- 
 If I write a signature, my emails will appear more personalised.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Thank You.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 10:24:04 -0500
Scott Milliken [EMAIL PROTECTED] wrote:

 Here's a code snippet of a script I use often to number a bunch of pics 
 in a directory that I think shows how to do what you want to do:
 
 $PICNUM=100
 for FNAME in DSC*.JPG
 do
NEWNAME=My_Pictures-$PICNUM.jpg
mv $FNAME $NEWNAME
PICNUM=$(($PICNUM+1))
 done
 
 This works in /bin/sh from my FreeBSD 4.11 system and also bash.  If you 
 want to perform a mathematical operation on a shell variable, just 
 surround the expression with $(( expr )) and it'll work.
 
 Hope that helps.
 
 Scott Milliken


Thank You.

Y saw the use of '$(( expr ))' some time ago in 'Advanced Bash Scripting 
Guide', but I thought it was only for 'bash'.

I am using FreeBSD 5.3 and it also works in '/bin/sh'.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 09:33:11 -0700
Jon Drews [EMAIL PROTECTED] wrote:

 Ale:
 
 
 On Sat, 19 Feb 2005 12:55:59 -0300, Alejandro Pulver
 [EMAIL PROTECTED] wrote:
  Hello,
  
  Is there a way to handle numeric variables (addition, multiplication, etc.) 
  in 'sh' (or throught an external command)?
 
 Here is a good short HowTo on calling bc:
 -
  Shell Tip: Calculating with large numbers using bc
 -
 http://www.shelldorado.com/newsletter/issues/2002-3-Aug.html
 
 Shelldorado is a great reference site:
 
 http://www.shelldorado.com/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

Interesting site.

Thank You.

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to handle numeric variables in sh?

2005-02-19 Thread Alejandro Pulver
On Sat, 19 Feb 2005 20:16:23 +0100
JarJarBings [EMAIL PROTECTED] wrote:

 hi,
 
 have a look at man expr
 
 regards
 
 Alejandro Pulver wrote:
  Hello,
  
  Is there a way to handle numeric variables (addition, multiplication, etc.) 
  in 'sh' (or throught an external command)?
  
  Thanks and Best Regards,
  Ale

Thank You.

Bests Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to package up (all) installed ports

2005-02-17 Thread Alejandro Pulver
On Fri, 18 Feb 2005 00:09:47 +0100
Danny Pansters [EMAIL PROTECTED] wrote:

 What would be a good way to create binary packages of all/most of my 
 currently 
 installed ports (without rebuilding as make package does)? 
 
 I want to move my entire setup to another disk (array) and like to get rid of 
 any acumulated junk in the process so best would be to get packages from my 
 current system, make world and kernel on the new disk (array) and then 
 install the packages or vice versa. Would save a few days of compiling.
 
 Thanks,
 
 Dan

Hello,

The command to create packages of the ports installed in the system is 
pkg_create(1), it is used with the -b option (in this case), like this:

pkg_create -b installed-port-name

The name of the installed port is as outputed by pkg_info(1).

The default format is .tar.gz (.tgz), but the -j option allows to use bzip2.

I made a (simple) shell script to create packages of all the ports installed in 
the system.

--BEGIN--
#!/bin/sh

# Shell script to create packages of all the ports installed in the system.
# Usage: 'sh package-ports.sh'
# Will create the packages in the current directory.

PORTS=`pkg_info | awk '{print $1}'` # Filter the description.
NUM_PORTS=`echo $PORTS | awk 'END {print NR}'`
BZIP=-j   # Use bzip2 instead of gzip.
PKGCMD=pkg_create $BZIP -b# Command to create package.

echo Packaging $NUM_PORTS ports

# Process one port at time.

for PORT in $PORTS
do
echo Packaging port \$PORT\
$PKGCMD $PORT
done

echo Done

exit 0
--END

To use it create a directory to store the packages (like 'mkdir packages'),
save the script there and run it with 'sh script', or './script' (in the last 
case the file must be executable).

Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Missing DocBook 4.1 .gml files

2005-02-09 Thread Alejandro Pulver
Hello,

When I run nsgmls over a DocBook 4.1 SGML file (specifying the catalog file: 
'-c /usr/local/share/sgml/docbook/4.1/catalog') it outputs the following 
messages:

-- BEGIN --
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:54:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amsa.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:61:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amsb.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:68:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amsc.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:75:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amsn.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:82:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amso.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:89:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-amsr.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:96:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-box.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:103:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-cyr1.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:110:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-cyr2.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:117:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-dia.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:124:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-grk1.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:131:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-grk2.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:138:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-grk3.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:145:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-grk4.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:152:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-lat1.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:159:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-lat2.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:166:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-num.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:173:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-pub.gml (No such file or directory)
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:180:0:E: cannot open 
/usr/local/share/sgml/docbook/4.1/iso-tech.gml (No such file or directory)
-- END   --

What are these files?
Where can I find them?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[SOLVED] Re: jade error: Undefined symbol _ZNK6Origin14asEntityOriginEv

2005-02-07 Thread Alejandro Pulver
On Sun, 6 Feb 2005 18:19:51 -0800
Kris Kennaway [EMAIL PROTECTED] wrote:

 On Sun, Feb 06, 2005 at 11:09:22PM -0300, Alejandro Pulver wrote:
  On Sun, 6 Feb 2005 22:23:18 -0300
  Alejandro Pulver [EMAIL PROTECTED] wrote:
  
   Hello,
   
   I installed 'docproj-jadetex' to learn how to make Docbook documents (in 
   SGML). When I run 'nsgmls' (texproc/sp) (when doing 'make' on a FreeBSD 
   documentation source, or manually) it outputs the following error:
   
   /libexec/ld-elf.so.1: /usr/local/lib/libstyle.so.1: Undefined symbol 
   _ZNK6Origin14asEntityOriginEv
  
   How do I fix it?
  
  Sorry, I made a mistake: the program that generated the error message was 
  'jade' (port is 'print/jadetex'), not 'nsgmls'.
 
 You forgot to mention details about your FreeBSD installation.  Did
 you formerly run FreeBSD 4.x and then update to 5.x?  If so, you need
 to rebuild your ports, because C++ code compiled with gcc 2.95 (which
 is the version in 4.x) is incompatible with code compiled with gcc 3.4
 (in 5.3).  portupgrade is the easiest way to do this, e.g. with the -P
 switch.
 
 Kris
 

Sorry, I was tired and I made mistakes and forgot a couple of things.

I have FreeBSD 5.3 (from a fresh installation), and I never updated my 
system/ports. I installed 'jade' from a package: jade-1.2.1_8.

I solved the problem. The reason was that I installed 'sp' (textproc/sp) from a 
package (sp-1.3.4) (as the 'fdp-primer' says) and it overrited (without saying 
it conflicts with 'jade') the following programs/libraries:

bin/nsgmls
bin/sgmlnorm
bin/spam
bin/spent
bin/sx
[ header files in include/sp ]
lib/libsp.a
lib/libsp.so.1

So the missing symbol was in '/usr/local/lib/libsp.so.1' (which was overritten 
by 'sp'):

nm /usr/local/lib/libsp.so.1 | grep _ZNK6Origin14asEntityOriginEv
0009cf04 T _ZNK6Origin14asEntityOriginEv

While doing that in the library from 'sp' outputs nothing.

This is strange: 'fdp-primer' says one need to install it, but it replaces 
binaries without warning and finally 'jade' does not work.

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


nsgml error: Undefined symbol _ZNK6Origin14asEntityOriginEv

2005-02-06 Thread Alejandro Pulver
Hello,

I installed 'docproj-jadetex' to learn how to make Docbook documents (in SGML). 
When I run 'nsgmls' (texproc/sp) (when doing 'make' on a FreeBSD documentation 
source, or manually) it outputs the following error:

/libexec/ld-elf.so.1: /usr/local/lib/libstyle.so.1: Undefined symbol 
_ZNK6Origin14asEntityOriginEv

How do I fix it?

Thanks and Best Regards,
Ale
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   >