Re: sound settings

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


You have 4 devices where the sound can go

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

# sysctl hw.snd.default_unit=n

test sending a file to the sound system

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


[SOLVED] Prevent starting network on fwe0 and fwip0

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

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

 fwe0: Ethernet over FireWire
 fwip0: IP over FireWire

 I notice that the lines apear after DEVD is started

 Is there a trick for DEVD?


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

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

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

You won't see

Starting Network: fwe0
Starting Network: fwip0

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

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


Re: Possibly OT: NFS vs SMB performance

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

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


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

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


the problem may be high log level for Samba

You should read this

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


Prevent starting network on fwe0 and fwip0

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

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

fwe0: Ethernet over FireWire
fwip0: IP over FireWire

In /etc/rc.conf I added this line

network_interfaces=lo0 fxp0 wpi0

But I still see that FreeBSD start fwe0 and fwip0

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

I also had networks on USB

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

But I added

hw.usb.no_pf=1

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

Is there something similar for FireWire?

I notice that the lines apear after DEVD is started

Is there a trick for DEVD?

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


Re: connect to a network printer to be able to print

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

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


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

10.155.135.3hplj-cp4520

Then verify network conectivity with ping

ping -c 4 hplj-cp4520

Now, create the spool directory and errors-log file

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

Next, add the printer definition to /etc/printcap

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

Since the HP Color Laserjet Enterprise CP4520 accept the languages

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

You should test with one file of that languages, I do not know if plain text 
can be printed without a text filter (input-filter)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Boot-time hard drive errors

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

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

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

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


Does your HDD controller is SATA 3?

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

Intel ICH5 SATA150 controller

And my hard disk is SATA 2

WDC WD2500AVVS-00L2B0 01.03A01

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


Problem with bsnmp

2012-09-18 Thread Martin Alejandro Paredes Sanchez

Hi:

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

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

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


Re: questions on the use of moused for Xorg

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

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

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


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

Why is moused ignoring the moves in W?

# sysctl hw.usb.ums.debug=15

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

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

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

ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 01 00 00 00
ums_intr_callback: x:0 y:0 z:-1 t:0 w:0 buttons:0x
ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 06 00 00 00
ums_intr_callback: x:0 y:0 z:-6 t:0 w:0 buttons:0x
ums_intr_callback: sc=0xc3dfd000 actlen=6
ums_intr_callback: data = 00 00 00 00 01 00 00 00
ums_intr_callback: x:0 y:0 z:-1 t:0 w:0 buttons:0x
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: questions on the use of moused for Xorg

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

 When I run this command

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

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


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

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

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


questions on the use of moused for Xorg

2012-08-05 Thread Martin Alejandro Paredes Sanchez

when you must use the parameter -z of moused?

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

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

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

When I run this command

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

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

When I run this command

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

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

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

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

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

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


replacing disk

2012-03-03 Thread Martin Alejandro Paredes Sanchez

Hi

I am replacing an IDE disk (ad0) with a SATA disk (ad4)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: replacing disk

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

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

Sorry, I send it and I even notice

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

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

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

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

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

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

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

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

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

bsdlabel -B /dev/ad4s3

But do not work either.

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

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: replacing disk

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

 One question again. Does your kernel support SATA?

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

 Erich

Yes, it is the GENERIC

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


Re: Help with devd.conf

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

 This is what I have tried in devd.conf:

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

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


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

To see what is happening in devd, try this

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

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

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

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

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

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

Check the content of /tmp/VariablesDevd.txt

You can also try this other advise for auto mount

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


Re: mbr loader

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

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

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

 
 2 if i do not write  . How  windows load bsd

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

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

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

Look in ports for boot loaders (manager)

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

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

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

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


what is going to happend when installing a port

2009-05-18 Thread Martin Alejandro Paredes Sanchez

Hi:

I would like to know what other ports are going to be installed when I install 
a port

When I installed krb5 I notice it build and install a lot of ports.

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


Re: source for sysinstall

2009-05-13 Thread Martin Alejandro Paredes Sanchez
El Dom 03 May 2009, Fbsd1 escribió:
 How can i just download the source for sysinstall?
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


If you had the source installed

[mar...@morena] ~ whereis sysinstall
sysinstall: /usr/sbin/sysinstall 
/usr/share/man/en.ISO8859-1/man8/sysinstall.8.gz /usr/src/usr.sbin/sysinstall

The last answer /usr/src/usr.sbin/sysinstall point to the source

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


Re: native lpd X LPRng

2009-01-17 Thread Martin Alejandro Paredes Sanchez
El Vie 09 Ene 2009, luizbcampos escribió:
Following LPRng documentation, I removed native lpd (/usr/sbin/lpd)
 and I come into a great mistake...

# lpd
another printer spooler is active possibly 731

 Is there any way to fix the problem, i.e, get /usr/sbin/lpd
 without reinstalling the OS?

You need the source, go to

# cd /usr/src/usr.sbin/lpr/lpd

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


Re: LPRng cannot open connection...

2009-01-17 Thread Martin Alejandro Paredes Sanchez
El Sáb 20 Dic 2008, luizbcampos escribió:
   Trying to use LPRng printing spooler, it shows:

$ lpq lpd

 Printer ip2200_usb...@localhost (dest localhost@/dev/ulpt0)
 Queue : no printable jobs in queue
 Printer 'localhost@/dev/ulpt0' cannot open connection
 -getconnection: cannot get address for '/dev/ulpt0'


Does anyone know how to solve this?

I don't use LPRng, but it look like you define 2 printer

ip2200_usb_ps
'localhost@/dev/ulpt0'

and the last is wrong defined
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Looking information about CF files of LPD

2008-11-14 Thread Martin Alejandro Paredes Sanchez
El Vie 14 Nov 2008, Garance A Drosehn escribió:
 There's some RFC for it, but pretty much nobody implements CF-files
 in the exact way that is described in the RFC.  I doubt it was ever
 described in any detail in the FreeBSD handbook, but it may have
 been in some of the books which have been written for the BSD's.

 You may have seen the comments I wrote up in one of the source files
 for lpr (common_source/ctlinfo.c):

 http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/usr.sbin/lpr/common_so
urce/ctlinfo.c?rev=1.10.16.1;content-type=text%2Fplain

 Scan down for the comment:

Control-files (cf*) have the following format

 That's probably not complete, but it's whatever I felt was worth
 noting when I wrote that source file.

Thanks

I also remeber where I see it
It was in the man page of LPD

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


Looking information about CF files of LPD

2008-11-13 Thread Martin Alejandro Paredes Sanchez
Hi:

I have the idea of had seen the description of the content of CF files, but I 
can't find anymore in the handbook.

That information had been removed?

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


Terminal vt220 to vt100

2008-11-13 Thread Martin Alejandro Paredes Sanchez
Hi:

I use vt220 to acces aPc with FreeBSD, but I need to telnet to a divice in my 
network that only acept vt100

man telnet did not help.

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


Re: Printing to a Lanier LD160c does not work

2008-10-24 Thread Martin Alejandro Paredes Sanchez
El Jue 23 Oct 2008, Jeremy Chadwick escribió:
 On Thu, Oct 23, 2008 at 09:42:41PM -0700, Martin Alejandro Paredes Sanchez 
wrote:
  El Jue 16 Oct 2008, Jeremy Chadwick escribió:
  
   If this printer is hooked up on the network (e.g. via Ethernet), I
   believe you need to set the lp variable to the hostname or IP address
   of the printer, e.g.:
  
   admincolor|hp|laserjet|LANIER LD160c RPCS:\
  
     :lp=192.168.1.100\
     :sd=/var/spool/output/admincolor:rm=admincolor:\
     :lf=/var/log/lpd-errs:
 
  Negative, leave the lp capability blank, explicitly (:lp=:).
 
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanc
 ed.html#PRINTING-ADVANCED-NETWORK-RM

 Then the printcap(5) man page should reflect this; the existing
 explanations for both fields are painfully terse.

 lp str   /dev/lpdevice name to open for
 output, or [EMAIL PROTECTED] to
 open a TCP socket
 rm str   NULL   machine name for remote
 printer

 I can file a PR (to doc) on this if recommended.

if you are printing to a remote LPD system, you should use:

:lp=:\
:rm=hostname-or-ip:\
:rp=printer-name:\

If you use [EMAIL PROTECTED], then you should not use rp and rm, but in the 
port 
of the machine should be a program that undestand LPD/LPR protocol.

The printcap(5) man page has a section REMOTE PRINTING.

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


Re: Printing to a Lanier LD160c does not work

2008-10-23 Thread Martin Alejandro Paredes Sanchez
El Mar 21 Oct 2008, [EMAIL PROTECTED] escribió:

 I took your block above and replaced my block in the printcap, then sent
 the exact command above with the same failure. The queue is drained and the
 printer's log has a generic message The job was reset. message. 

 My current printcap file.

 admincolor:\
     :lp=:\
     :sh:\
     :mx#0:\
     :rm=admincolor:\
     :rp=lp:\
     :sd=/var/spool/output/admincolor:\
     :lf=/var/log/lpd-errs:


it sounds like LPD is working OK (send the job to the printer), the problem is 
the print job (the language PS/PCL) or in the printer (no configured).

how do you configure this printer in windows (LPR port)?

can you print to a file in windows, bring that file to FreeBSD and send it 
with lpr -P admincolor FileInWindows.bin

did you check the next URL?
http://www.linuxprinting.org/show_printer.cgi?recnum=Lanier-LD160c

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


Re: Printing to a Lanier LD160c does not work

2008-10-23 Thread Martin Alejandro Paredes Sanchez
El Jue 16 Oct 2008, Jeremy Chadwick escribió:
 On Thu, Oct 16, 2008 at 08:36:42PM +, [EMAIL PROTECTED] wrote:
  I am trying to setup a Lanier LD160c (admincolor) that has a network
  interface.  I am new to FreeBSD and tried to follow the handbook.  I am
  able to print to a HP 5SI (corp-admin) with no problems.  There are no
  errors in the lpd-errs and the file is drained from the queue, but the
  printer does not print anything.  And this is a working printer to
  Windows. lpr -P admincolor testfile.txt
 
  printcap:
  corp-admin|hp|laserjet|Hewlett Packard LaserJet 5Si:\
 
          :lp=\
          :sd=/var/spool/output/corp-admin:rm=corp-admin:\
          :lf=/var/log/lpd-errs:\
          :if=/usr/local/libexec/crlfilter:sh:tr=\f:mx#0:
 
  admincolor|hp|laserjet|LANIER LD160c RPCS:\
 
          :lp=\
          :sd=/var/spool/output/admincolor:rm=admincolor:\
          :lf=/var/log/lpd-errs:

 If this printer is hooked up on the network (e.g. via Ethernet), I
 believe you need to set the lp variable to the hostname or IP address of
 the printer, e.g.:

 admincolor|hp|laserjet|LANIER LD160c RPCS:\

   :lp=192.168.1.100\
   :sd=/var/spool/output/admincolor:rm=admincolor:\
   :lf=/var/log/lpd-errs:


Negative, leave the lp capability blank, explicitly (:lp=:).

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/printing-advanced.html#PRINTING-ADVANCED-NETWORK-RM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: alternatives to mergemaster

2008-09-06 Thread Martin Alejandro Paredes Sanchez
El Sáb 06 Sep 2008, Christian Laursen escribió:
 Michael P. Soulier [EMAIL PROTECTED] writes:
  The downside of mergemaster is that it is only a 2-way merge, where a
  3-way would know better than you prompt you for changes that you
  didn't make. This makes mergemaster far more tedious than it has to
  be. Has anyone considered a good 3-way merge tool?

 I always run mergemaster in auto upgrade mode. From the man page:

 -U  Attempt to auto upgrade files that have not been user modi-
 fied.

 This can also be achieved by putting AUTO_UPGRADE=yes in
 /etc/mergemaster.rc.

 Combined with auto install, mergemaster requires little effort.

I also recommend the -i option

 -i  Automatically install any files that do not exist in the
 destination directory.

The option -U depends on the existence of a database 
(/var/db/mergemaster.mtree), witch does not exist the first time. So the 
first time you run the mergemaster, you can not use the -U option.

But, my advice is, when you install FreeBSD in a computer, run mergemaster 
before you upgrade the source code to build the database.

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


Re: USB mouse problems.

2008-08-13 Thread Martin Alejandro Paredes Sanchez
El Mar 12 Ago 2008, Bernt Hansson escribió:
 Yes but only if I connect the mouse after the boot process has finished.
 If I have it connected during boot it's not found.
 Moused is started but gives /dev/ums0 not found.

 So if I want to use the mouse I have to leave it unconnected until I get
 the login prompt and then connect the mouse.


leave it disconected and use the command

# usbdevs

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


Re: USB mouse problems.

2008-08-12 Thread Martin Alejandro Paredes Sanchez
El Sáb 09 Ago 2008, Bernt Hansson escribió:

 ums0: A4Tech PS/2+USB Mouse, class 0/0, rev 1.10/0.02, addr 2 on uhub1
 ums0: 8 buttons and Z dir


if you see those lines, means the kernel found your mouse, run the command

ps axw|grep -i mouse

to see if moused is running

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


detach a USB device

2008-04-19 Thread Martin Alejandro Paredes Sanchez

Hi:

I had a USB printer attached to the ugen driver.

How can I detach the printer from the ugen driver, load ulpt driver and attach 
it to ulpt driver?

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


Re: Printing with a laserjet 1018

2008-03-08 Thread Martin Alejandro Paredes Sanchez
El Mié 05 Mar 2008, Modulok escribió:
 Did you upload the firmware to the printer?

 I'm not sure if this printer is the same as mine (1020), but I think
 this is a dumb printer, which requires a firware upload each time it
 is power cycled. Unfortunately in my case, the FreeBSD USB driver had
 to be modified in order to talk with the printer, as it was not
 capable of communicating in a USB compliant manner, prior to the
 firmware upload. (Genius.)

 -Modulok-


I had the LaserJet 1018 and have the problem with the upload of the firmware, 
can you share what modification made to the USB driver?

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


Re: Printing with a laserjet 1018

2008-03-08 Thread Martin Alejandro Paredes Sanchez
El Mié 05 Mar 2008, Peter escribió:

 cat /usr/local/share/foo2zjs/firmware/sihp1018.dl  /dev/ugen0.1

 you might need to change your 'ugen0.1' to whatever USB port your printer
 is plugged into.  Before you can use the printer, you have to do that
 above 'cat' command to load firmware.

 make sure regular users can use the printer: [chmod 666]
 dsl:#ls -l /dev/ugen0.1
 crw-rw-rw-  1 root  operator0,  40 Mar  4 23:32 /dev/ugen0.1


Since your printer is attached to ugen, this mean that you made a custom 
kernel where you take off the ulpt driver

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


update needed for port foo2zjs-20070120_1

2008-02-11 Thread Martin Alejandro Paredes Sanchez

Hi:

I install the port foo2zjs-20070120_1 and it install the following files:

# pkg_info -LX foo2zjs
Information for foo2zjs-20070120_1:

Files:
/usr/local/man/man1/foo2hp.1.gz
/usr/local/man/man1/foo2oak-wrapper.1.gz
/usr/local/man/man1/foo2zjs-wrapper.1.gz
/usr/local/man/man1/oakdecode.1.gz
/usr/local/man/man1/foo2hp2600-wrapper.1.gz
/usr/local/man/man1/foo2oak.1.gz
/usr/local/man/man1/foo2zjs.1.gz
/usr/local/man/man1/zjsdecode.1.gz
/usr/local/bin/arm2hpdl
/usr/local/bin/foo2hp
/usr/local/bin/foo2hp2600-wrapper
/usr/local/bin/foo2lava
/usr/local/bin/foo2lava-wrapper
/usr/local/bin/foo2oak-wrapper
/usr/local/bin/foo2xqx
/usr/local/bin/foo2xqx-wrapper
/usr/local/bin/foo2zjs
/usr/local/bin/foo2zjs-icc2ps
/usr/local/bin/foo2zjs-wrapper
/usr/local/bin/getweb
/usr/local/bin/lavadecode
/usr/local/bin/msexpand
/usr/local/bin/xqxdecode
/usr/local/bin/zjsdecode
/usr/local/share/cups/model/Generic-OAKT_Printer.ppd.gz
/usr/local/share/cups/model/Generic-ZjStream_Printer.ppd.gz
/usr/local/share/cups/model/KonicaMinolta-magicolor_2490_MF.ppd.gz
/usr/local/share/cups/model/KonicaMinolta-magicolor_2530_DL.ppd.gz
/usr/local/share/cups/model/HP-Color_LaserJet_1500.ppd.gz
/usr/local/share/cups/model/HP-Color_LaserJet_1600.ppd.gz
/usr/local/share/cups/model/HP-Color_LaserJet_2600n.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_M1005_MFP.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_1000.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_1005.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_1018.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_1020.ppd.gz
/usr/local/share/cups/model/HP-LaserJet_1022.ppd.gz
/usr/local/share/cups/model/Minolta-Color_PageWorks_Pro_L.ppd.gz
/usr/local/share/cups/model/Minolta-magicolor_2200_DL.ppd.gz
/usr/local/share/cups/model/Minolta-magicolor_2300_DL.ppd.gz
/usr/local/share/cups/model/Minolta-magicolor_2430_DL.ppd.gz
/usr/local/share/doc/foo2zjs/ChangeLog
/usr/local/share/doc/foo2zjs/README
/usr/local/share/doc/foo2zjs/manual.pdf
/usr/local/share/foo2zjs/crd/[EMAIL PROTECTED],ucr100,0-per.crd
/usr/local/share/foo2zjs/crd/[EMAIL PROTECTED],ucr100,50-per.crd
/usr/local/share/foo2zjs/crd/[EMAIL PROTECTED],ucr100,75-per.crd
/usr/local/share/foo2zjs/crd/[EMAIL PROTECTED],ucr125,75-per.crd
/usr/local/share/foo2zjs/crd/kh.crd
/usr/local/share/foo2zjs/crd/kx.crd
/usr/local/share/foo2zjs/crd/prolog.ps
/usr/local/share/foo2zjs/crd/screen1200.ps
/usr/local/share/foo2zjs/crd/screen2400.ps
/usr/local/share/foo2zjs/gamma-lookup.ps
/usr/local/share/foo2zjs/gamma.ps

When it finish the installation, it display the next message:

# pkg_info -DX foo2
Information for foo2zjs-20070120_1:

Install notice:
###

1) Please read the detailed installation instructions in the file:

   * /usr/local/share/doc/foo2zjs/INSTALL

2) Go to tmp directory and run getweb script.

   # cd /tmp  getweb all

3) Copy icm and img files.

   # cp DL*.icm CP*.icm km2430*.icm /usr/local/share/foo2zjs/icm  \
 cp sihp*.img /usr/local/share/foo2zjs/firmware  \
 cp hpclj26*.icm km2430*.icm /usr/local/share/foo2hp/icm  \
 rm *.icm *.img

4) Enjoy it ;)

###

But the /usr/local/share/doc/foo2zjs/INSTALL file doesn't exist, but I notice 
that there is a README file /usr/local/share/doc/foo2zjs/README, but it also 
reference the INSTALL file:

Please read the INSTALL file to see how to install this software.

since this file not exist I ended viewing http://foo2zjs.rkkda.com/INSTALL, 
but there recommend build the kernel without the ulpt driver, is this really 
necessary?

I am stacked in downloading the firmware to the printer

# cat sihp1018.dl  /dev/ulpt0
/dev/ulpt0: Device busy.

Also, the getweb script, is not working.

/tmp# getweb 1018
fetch: http://foo2zjs.rkkda.com/sihp1018.tar.gz: Not Found
getweb: Couldn't download http://foo2zjs.rkkda.com/sihp1018.tar.gz

The files were moved, in to a folder called firmware

/temp# fetch http://foo2zjs.rkkda.com/firmware/sihp1018.tar.gz
sihp1018.tar.gz   100% of   68 kB   69 kBps

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


Re: Mouse diagnostics tools?

2007-10-15 Thread Martin Alejandro Paredes Sanchez
El Lun 15 Oct 2007, Jim Stapleton escribió:
 Martin Alejandro Paredes Sanchez wrote:
  What is the output of :
 
  dmesg | grep -i mouse
 
   (B) know a tool to help diagnose this issue?
 
  Try the -f and -d option in moused

 for the first part, it shows my wired mouse only:

 [EMAIL PROTECTED] 19:48:52 (0) ~  dmesg | grep -i mouse
 ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/18.00, addr 3, iclass 3/1

This mean that the driver ums (USB mouse driver) is loaded to control your 
mouse

man ums


 for the second, I guess I didn't expect it to provide /that/ much
 diagnostic information. With moused -d -f -p /dev/sysmouse -t auto,
 only the logictech produces output - the microsoft does not.

should be

moused -d -f -p /dev/ums0 -t auto

man moused

if you see output, mean it work in FreeBSD, if the microsoft mouse doesn't 
produce a line in dmesg, mean that there is not a driver for your mouse.

I read some where about a new work in CURRENT, to make a new framework for the 
mouse.


 Given the lack of output, I take it that it is safe to assume there is
 no low level driver for my mouse? Should I provide my system's
 configuration file as well (from buildkernel - I know I turned off a
 lot of wireless stuff in the config, but I didn't think it would
 affect this).

 icantthinkofone wrote:
  Don't know of any diagnostics but we would need to see your xorg.conf
  and rc.conf to help make this work.

 rc.conf:
 
 # -- sysinstall generated deltas -- # Wed Feb  7 13:21:21 2007
 # Created: Wed Feb  7 13:21:21 2007
 # Enable network daemons for user convenience.
 # Please make all changes to this file, not to /etc/defaults/rc.conf.
 # This file now contains just the overrides from /etc/defaults/rc.conf.
 hostname=elrond.mydomain.net
 ifconfig_nve0=inet 192.168.1.84 netmask 255.255.255.0
 ifconfig_nve0_alias0=192.168.1.85 netmask 255.255.255.255
 defaultrouter=192.168.1.1

 usbd_enable=YES
 linux_enable=YES
 sshd_enable=YES
 ntpdate_enable=YES
 ntpd_enable=YES
 cupsd_enable=YES

 sendmail_enable=NONE
 inetd_flags=-wW -a 192.168.1.84
 syslogd_flags=-b 192.168.1.84
 rpcbind_enable=NO
 sb_server_enable=YES
 # added by mergebase.sh
 local_startup=/usr/local/etc/rc.d
 

I didn't see any line about moused, but that is because your mouse is USB and 
moused is loaded by devd

to see how is invoked moused

ps axw | grep mouse


 xorg.conf
 

 Section InputDevice
 Identifier Mouse0
 Driver mouse
 Option Protocol auto
 Option Device /dev/sysmouse
 Option ZAxisMapping 4 5 6 7
 EndSection

To use Device /dev/sysmouse, moused should be loaded, if not, the device 
should be /dev/ums0


 #previous attempt to get microsoft mouse working
 Section InputDevice
 Identifier Mouse1
 Driver mouse
 Option Protocol ImPS/2
 Option Device /dev/sysmouse
 Option ZAxisMapping 4 5 6 7
 EndSection

 


 Thanks,
 -Jim Stapleton

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


Re: Mouse diagnostics tools?

2007-10-14 Thread Martin Alejandro Paredes Sanchez
El Dom 14 Oct 2007, Jim Stapleton escribió:
 I just got a microsoft wireless optical desktop 3000 (Microsoft
 Wireless Optical Mouse 2.0), and am running in FreeBSD 6.2/Xorg 7.2

 I have tried the mouse on a Windows machine and it works fine. The
 keyboard works well on Windows and FreeBSD. The mouse, however,
 doesn't seem to be recognized.

What is the output of :

dmesg | grep -i mouse

 (B) know a tool to help diagnose this issue?

Try the -f and -d option in moused

Have you read the manual of moused (man moused)

maps
___
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 set up a network-attached printer

2007-10-14 Thread Martin Alejandro Paredes Sanchez
El Dom 14 Oct 2007, Warren Block escribió:
 Create print queue dir:

  mkdir -p /var/spool/lpd/netlaser
  chmod 770 /var/spool/lpd/netlaser

   chown daemon:daemon /var/spool/lpd/netlaser


 Make /etc/printcap entry with rm= and rp= :

  netlaser:\

  :lp=:\
  :sh:\
  :mx#0:\
  :rm=netlaser:\
  :rp=raw:\
  :sd=/var/spool/lpd/netlaser:\
  :lf=/var/log/lpd-errs:

   :lf=/var/spool/lpd/netlaser/filter-errors:

since you are not specifying a filter for this printer, the lf capability may 
not be necessary, but since LPD will launch a process to send the print job 
to the networked printer, and this process will have:

stdin --- to the print job
stdout -- (I really don't know)
stderr -- to the log file (lf capability)

I recommend that you had a log for each printer defined, and 
leave /var/log/lpd-errs for LPD errors

 For extra points, add another printcap entry for lp: that will print
 plain text.  /usr/ports/print/enscript* is nice for that, or lots of
 people use /usr/ports/print/apsfilter so they can send about anything to
 the printer and let it do the conversion.


I recommend apsfilter, but don't only read the documentation, also read the 
code of the filter.

maps
___
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 set up a network-attached printer

2007-10-14 Thread Martin Alejandro Paredes Sanchez
El Dom 14 Oct 2007, Chris Hill escribió:
 On Sun, 14 Oct 2007, Warren Block wrote:
  For extra points, add another printcap entry for lp: that will print
  plain text.

 I did something essentially identical to what Warren outlined, and it's
 worked fine for many years now, since long before I'd ever heard of
 CUPS. Here's the printcap entry:

 # HP color laser
 lp|snow|snowball|lj|ps|HP ColorLaserJet 4550N:\

  :sh:\
  :sd=/var/spool/output/lpd:\
  :mx#0:\
  :lp=:rm=snowball:rp=auto:

 By using various names separated by pipe symbols, they are all
 equivalent. Since one of them is lp, you can just send text to the
 printer and it works, e.g.

   $ lpr textfile

A name of lp don't make a printer to print text files, it just save you to 
specify the printer (the -P option of lpr)


 I think that lp being the first entry makes it lpr's default; not
 positive about that.

It is not necessary be the first alias, it can be in any position, in my case 
I have:

stylus-c65|lp|Epson Stylus C65:\


  /usr/ports/print/enscript* is nice for that, or lots of people use
  /usr/ports/print/apsfilter so they can send about anything to the
  printer and let it do the conversion.

 The printer should already know how to print text. Just send it via lpr;
 no additional software needed.

Not all the printer know how to print text, but if the Samsung ML-2571N 
doesn't print text, I would use apsfilter.

I know that all HP LaserJet support PCL and text, some models also support 
PostScript, I see you use rp=auto for your HP LaserJet 4550N, I had only 
use rp=raw and I also know that can be rp=text (to convert CR - CRLF) but I 
never used.

maps
___
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 know who use NFS.

2007-09-25 Thread Martin Alejandro Paredes Sanchez
El Lun 24 Sep 2007, Albert Shih escribió:
  Le 23/09/2007 à 00:27:15-0700, Martin Alejandro Paredes Sanchez a écrit
 I've two servers :

   Server A (NFS) --- NFS -- Server B

 On server A there one service is NFS, and server B is it's client.

 On server B I've lot of users, some users make very huge transfert throught
 NFS (what I don't want), huge = ~ 10-100 Go in one time (big file).

 I want to known who did this, because I've lot of users it's not easy to
 known when I'm using top/ps to known who did this (sometime it's the output
 of some scientifique software).

 The solution you give me can tell me the name of server B, but this thing I
 known it ;-), what I want to known is WHO on server B.


Ok, that change the problem, but I think tcpdump is still usefull, only if the 
the problem is caused when a user copy one huge file in one time, this 
because I assume 1 socket is created for each file copied (I am not an expert 
in NFS)

In computer B run this command (piped) as root

tcpdump -c 100 -nq dst port nfs and dst host serverB
nawk 'BEGIN {FS=[ .]}{print $8}'
nawk '{packets[$1]++} END{for (ip in packets){print packets[ip], ip}}'
sort -rn

In the last line will appear socket number that generate more packets, 
something like this:

59891

To know who has that socket, run

# sockstat -4c | grep :59891
USER COMMANDPID   FD PROTO  LOCAL ADDRESS FOREIGN ADDRESS
martin   kdeinit1173  9  tcp4   192.168.45.25:59891   192.168.45.43:2049

The first column is the user, lets see what is doing

# ps -wxU martin


 Do you think I need to use dark side of the forceI known it's not more
 powerful, but it's more easy ;-)


You mean windows (for the easy), NN.

If the problem is caused, because the user is copying a folder

cp  ~/MySmallFiles/*  /serverB/dest/

maybe, each file will create a different socket, because of that, you will 
need to translate each socket to a user before counting the packets, I think 
that is a job for perl, phyton or something like that.

maps
___
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 know who use NFS.

2007-09-23 Thread Martin Alejandro Paredes Sanchez
El Vie 21 Sep 2007, Albert Shih escribió:
  Le 21/09/2007 à 13:59:35-0500, Dan Nelson a écrit
  In the last episode (Sep 21), Le Cocq Michel said:
   Albert Shih a écrit :
How can I known at un precise moment who charge my NFS server (I'm
root in both side : client and server).
   
   With some info student it also happen some times in here, and the way i 
   find is to launch a tcpdum or ethereal on the server and look at which
   ip appear the more often
  
  I think ethereal/wireshark is your best bet too.  At least with it you 
  can filter on the userid making an NFS request (it's rpc.auth.uid).
  Unfortunately it doesn't look like there's a summary or analysis option
  for NFS, so you'll have to count packets maually...
 
 But my problem is the NFS traffic is heavy in standard time, and wireshark 
 or tcpdump give my lot of lot of data.


Use the force luke

You only need 100 packets (you may decide to increase) that are directed to 
your server, to the NFS daemon.

tcpdump -c 100 -nq dst port nfs and dst host $HOST

You don't need to interpret this info, you need to know who is originating the 
traffic, lets extract the ip that are originating the traffic

nawk 'BEGIN {FS=[ .]; OFS=.} {print $4,$5,$6,$7}'

But, who generate more traffic?
Lets count how many packets are originating each one of those ip

nawk '{packets[$1]++} END{for (ip in packets){print packets[ip], ip}}'

And order it

sort -rn

Use pipes to connect all the commands, if this situation is very common, 
create a shell.

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


Re: Configure ipaddress and route entries in /etc/rc.conf file

2007-06-06 Thread Martin Alejandro Paredes Sanchez
El Lun 04 Jun 2007, bsenthil escribió:
 Yes, It working fine.. Thanks for your help..

 inetd_enable=YES
 hostname=test.abc.com
 ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0
 ifconfig_fxp1=inet 192.168.111.14  netmask 255.255.255.0
 hostname=test.abc.com
 static_routes=net1 net2

 route_net1=-net 10.1.1.1/24 *fxp0*  (Error ...)

 I am not configure any default router entries . But i want to redirect
 all 10.1.1.1/24 packets through  fxp0.

short answer:

route_net1=-net 10.1.1.0/24 192.168.110.1

Replace the ip 192.168.110.1 with the router in the LAN 192.168.110.0/24

Long answer:

so, you are connected to 2 LANs:

192.168.110.0/24
192.168.111.0/24

And there exist another LAN

10.1.1.0/24

when you configure the interface fxp0:

ifconfig_fxp0=inet 192.168.110.14  netmask 255.255.255.0

You are adding an entry in the routing table like this:

-net 192.168.110.0/24 192.168.110.14

Since you want to transmit all the trafic to the LAN 10.1.1.0/24 by the 
interface fxp0 (connected to the LAN 192.168.110.0/24), there should exist 
some connection betwen these 2 LANs (controled by a router), all you have to 
say is that the LAN 10.1.1.0/24 is reached by the router 192.168.110.X

route_net1=-net 10.1.1.0/24 192.168.110.X

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


Re: How does my computer work with an empty arp table?

2006-12-11 Thread Martin Alejandro Paredes Sanchez
El Lun 04 Dic 2006 08:42, [EMAIL PROTECTED] escribió:
 On Mon, Dec 04, 2006 at 10:26:46AM -0500, Lowell Gilbert wrote:
  [EMAIL PROTECTED] writes:
   My computer is connected to ISP via ADSL and works properly.
  
   I typed
  
   arp -a
  
   and saw an empty table, although I pinged successfully an Internet host
   one second ago.
  
   How does it work?
   $ ifconfig
   rl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   options=8VLAN_MTU
   inet6 fe80::202:44ff:fe92:1875%rl0 prefixlen 64 scopeid 0x1 
   inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
 
  Maybe you are connected to your service provider by PPP-over-Ethernet?
  In that case, the PPP link (which doesn't need ARP) is your next-hop
  to the Internet, rather than the modem on the Ethernet link.

 Yes, you are right, I forgot about PPP. Many thanks.

Also, the ARP table only contain info of your subnet

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


Re: NIC driver question

2006-11-21 Thread Martin Alejandro Paredes Sanchez
El Mar 21 Nov 2006 09:57, Peter A. Giessel escribió:
 man em:
 *** QUOTE ***
 AUTHORS
  The em driver was written by Intel Corporation
  [EMAIL PROTECTED].
 *** END QUOTE ***

 man bge:
 *** QUOTE ***
 AUTHORS
  The bge driver was written by Bill Paul [EMAIL PROTECTED].
 *** END QUOTE ***

Hi:

Forget about bge, since Bill Paul do not support this driver anymore!

Here is the mail that he send me some months ago.

-

El Mar 14 Mar 2006 22:22, escribió:
 Of all the gin joints in all the towns in all the world, Martin Alejandro

 Paredes Sanchez had to walk into mine and say:
  Hi:
 
  The problem is that the network card is not detected, is a network card
  Boradcom in the mother board. I see a chip with this numbers:
 
  Broadcom
  BCM5751FKFB
  HS0521 P21
  744910 N
 
  Whit dmesg | grep -i ethe I got:
 
  pci2: network, ethernet at device 0.0 (no driver attached)
 
  With pciconf -lv I got:
 
  [EMAIL PROTECTED]:0:0: class=0x02 card=0x02f71014 chip=0x167e14e4 
  rev=0x11
  hdr=0x00
  vendor   = 'Broadcom Corporation'
  device   = 'BCM5751F NetXtreme Fast Ethernet PCI Express'
  class= network
  subclass = ethernet
 
  The manual for bge(4), says:
 
  bge -- Broadcom BCM570x/5714/5721/5750/5751/5789 PCI Gigabit Ethernet
  adapter driver
 
  is this nic supported?
 
  TIA

 Oh for crap's sake. How many people are going to keep bothering me with
 this. For the umpity-umpth time, I do not support this driver anymore!

 Why don't you make a tiny bit of effort and find out for yourself if the
 NIC is supported! Edit /sys/dev/bge/if_bgereg.h, and change this:

 #define BCOM_DEVICEID_BCM5751M  0x167D

 to this:

 #define BCOM_DEVICEID_BCM5751M  0x167E

 Then recompile your kernel and find out for yourself it it works. Then mail
 all your findings to the freebsd-current mailing list and ask for someone
 to update the driver.

 -Bill

 --
 ===
== -Bill Paul(510) 749-2329 | Senior Engineer, Master of Unix-Fu
 [EMAIL PROTECTED] | Wind River Systems
 ===
== Ignorance may be bliss, but delusion is ecstasy! -Perki
 ===
==
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Need help...

2006-11-15 Thread Martin Alejandro Paredes Sanchez
El Mié 15 Nov 2006 09:58, Christian Walther escribió:
 If you look at /usr/X11R6/lib/X11/xorg.conf you'll find a Section
 screen somewhere. This is were the resolutions are configured your
 laptop (and desktop) is capable to display.

There is an other location for xorg.conf

/etc/X11/xorg.conf

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


Re: changing swap size

2006-11-13 Thread Martin Alejandro Paredes Sanchez
El Lun 13 Nov 2006 06:34, Zbigniew Szalbot escribió:
 If I increase RAM to, say, 1GB, would I need to change the swap size to 2GB? 

I think not. ¿Are your computer still swaping?

 If so, is it a safe process (I assume this can be done using FIPS)?

FIPS only works in patitions with FAT16 or FAT32 file system.

 Would I need to boot first in single-user mode?

no

 Any other thoughts? 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html

 BTW - is there any easy way to
 make sure how much RAM is currently installed other than looking into the
 hardware? Top:

 Mem: 146M Active, 23M Inact, 98M Wired, 15M Cache, 41M Buf, 22M Free

morena ~ dmesg | grep memory
real memory  = 519237632 (495 MB)
avail memory = 498753536 (475 MB)
agp0: detected 16252k stolen memory
atapci1: failed to enable memory mapping!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: best way to use cp?

2006-03-25 Thread Martin Alejandro Paredes Sanchez
El Vie 24 Mar 2006 11:38, Jonathan Horne escribió:
 ok, tell them dumb linux user how to properly copy directories recursivly,
 so he can stop overwritng directories with source files.
 
 /humor
 
 ok seriously, tho, i think im doing it wrong.  last night i blasted some
 directories, and when i looked at the destination of where i was supposed to
 be copying to, it was full of all kinds of junk that was supposed to be in
 the top level of the directories i was copying.
 
 example, i want to copy /mnt/usb1/path/oldfolder  (the folded all its
 recursive contents) into /home/mydir

cp -R /mnt/usb1/path/oldfolder/* /home/mydir/

or

cp -R /mnt/usb1/path/oldfolder /home/mydir/

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


Problem installing FreeBSD 6.0 on IBM ThinkCentre 8136-KSQ

2006-03-14 Thread Martin Alejandro Paredes Sanchez
Hi:

The problem is that the network card is not detected, is a network card 
Boradcom in the mother board. I see a chip with this numbers:

Broadcom
BCM5751FKFB
HS0521 P21
744910 N

Whit dmesg | grep -i ethe I got:

pci2: network, ethernet at device 0.0 (no driver attached)

With pciconf -lv I got:

[EMAIL PROTECTED]:0:0: class=0x02 card=0x02f71014 chip=0x167e14e4 rev=0x11 
hdr=0x00
    vendor   = 'Broadcom Corporation'
    device   = 'BCM5751F NetXtreme Fast Ethernet PCI Express'
    class    = network
    subclass = ethernet

The manual for bge(4), says:

bge -- Broadcom BCM570x/5714/5721/5750/5751/5789 PCI Gigabit Ethernet adapter 
driver

is this nic supported?

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


NIC BCM5751 not supported

2006-03-12 Thread Martin Alejandro Paredes Sanchez
Hi:

I am installing FreeBSD in a IBM ThinkCentre 8136-KSQ, it has a network card 
Boradcom in the mother board. I see a chip with this numbers:

Broadcom
BCM5751FKFB
HS0521 P21
744910 N

Whit dmesg | grep -i ethe I got:

pci2: network, ethernet at device 0.0 (no driver attached)

With pciconf -lv I got:

[EMAIL PROTECTED]:0:0: class=0x02 card=0x02f71014 chip=0x167e14e4 rev=0x11 
hdr=0x00
    vendor   = 'Broadcom Corporation'
    device   = 'BCM5751F NetXtreme Fast Ethernet PCI Express'
    class    = network
    subclass = ethernet

The manual for bge(4), says:

bge -- Broadcom BCM570x/5714/5721/5750/5751/5789 PCI Gigabit Ethernet adapter 
driver

The GENERIC kernal has the device bge, I confirm it loading the module:

# kldload if_bge
module_register: module pci/miibus already exists!
Module pci/miibus failed to register: 17
module_register: module pci/bge already exists!
Module pci/bge failed to register: 17
kldload: can't load if_bge: File exists

is this nic supported?

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


Configure the Scroll Ball of a Mighty Mouse in X11R6.8.2

2006-03-04 Thread Martin Alejandro Paredes Sanchez
Hi:

The problem is that, when I move the scroll ball verticaly, nothing happen, 
but when I move it horizontally, X get the vertical moves.

How can I configure the horizontal and vertical move of the scroll ball?

FreeBSD detected as:

# dmesg | grep ums
ums0: Mitsumi Electric Apple Optical USB Mouse, rev 1.10/1.08, addr 2, iclass 
3/1
ums0: 4 buttons and Z dir.

Here is what I have done till now, since I want to use it in X and FreeBSD (to 
copy and paste), I added

usbd_enable=YES

to my /etc/rc.conf, so the moused utility is up and running

# ps axw | grep mouse
  268  ??  Is     0:04,44 /usr/sbin/moused -p /dev/ums0 -t auto 
-I /var/run/moused.ums0.pid

and the copy and paste works fine, since it has 4 buttons, no need to emulate 
the third (middle) button.

So, in X I configure the sysMouse protocol:

Section InputDevice
        Identifier  Mouse0
        Driver      mouse
        Option      Protocol SysMouse
        Option      Device /dev/sysmouse
        Option      Buttons 6
        Option      ZAxisMapping 4 5
EndSection

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


Re: default routing question ZIPB ADSL PPPoA

2005-10-24 Thread Martin Alejandro Paredes Sanchez
El Dom 23 Oct 2005 20:22, Ahnjoan Amous escribió:
 The long : I have a CellPipe ADSL router/bridge from Lucent. This device is
 provided by our ISP. I am exploring the ZIPB functionality of the device to
 allow my FreeBSD host to own the public IP. The basics of the configuration
 for those unfamiliar is as follows. PPPoA is established by the device and
 the the (public) IP acquired through the previous process is delivered to a
 host behind that CellPipe via DHCP. After DHCP the device acts as a
 bridge, allowing the internal device to use the public IP as its own. I'm
 sure this description is vague but I don't know any other way to explain.

Looks like you are using PPPoA over a modem bridge. How do you connect your 
modem to your PC? (ethernet, usb, ???)

 Info : After dhclient acquires its info the ethernet interface looks like
 this
 ifconfig ethernet interface – inet A.B.C.D netmask
 255.255.255.255http://255.255.255.255/


Send the result of this command, if you want to keep your privacy, change the 
net address.

ifconfig
netstat -rn

Also, I don't understand, what is your problem?

I have a PPPoE connection and the ifconfig give somenthig like this

% ifconfig tun0
tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet 216.136.204.21 -- 204.152.186.171 netmask 0xff00 
Opened by PID 918

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


Re: How do I name my network interface?

2005-10-24 Thread Martin Alejandro Paredes Sanchez
El Lun 24 Oct 2005 18:17, Teo De Las Heras escribió:
 [EMAIL PROTECTED]:10:0: class=0x02 card=0x100a15bd chip=0x432011ab 
 rev=0x13
 hdr=0x00
 vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
 device = '88E8001 Gigabit 32-bit Ethernet Controller with Integrated PHY'
 class = network
 subclass = ethernet

This is the only ethernet card found in your motherboard and it has the driver 
skc attached.

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


Re: KDE and Gnome

2005-05-31 Thread Martin Alejandro Paredes Sanchez
El Lun 30 May 2005 20:51, Tina Neil escribió:
 I have a old laptop which after the suggestion of another programmer i
 installed FreeBSD. I have used this some before, but because it is free we
 have decided to use this for are small club.  I have a compaq armanda and i
 installed both KSE and Gnome and when i go to use them it says Command not
 found. Is it me or the laptop. also can you tell me how to get my computer
 to start with gnome instead of going into the text part of FreeBSD.
 Please Help

read this information

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html

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


Re: Keyboard Repeat Rate

2005-03-22 Thread Martin Alejandro Paredes Sanchez
El Mar 22 Mar 2005 08:34, Tom Vilot escribió:
 After I start X, I need to switch to a virtual console and log in as
 root so that I can issue kbdcontrol -r fast.

 Is there a place I can set this so I don't have to do that anymore?

in /etc/rc.conf add  the next line

keyrate=fast

my rc.conf file has this lines for keyboard

keymap=lat-amer.iso.acc
keyrate=fast

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


Re: changed cases, now freebsd won't boot!

2005-03-12 Thread Martin Alejandro Paredes Sanchez
El Vie 11 Mar 2005 11:12, Brian John escribió:
 - Original Message -

  Brian John wrote:
   ad1:  WARNING - READDMA UDMA ICRC error (retrying)

is your cable a 80-conductor IDE/ATA cable?

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