Voce recebeu um VIVO Torpedo.

2009-05-14 Thread VIVO Torpedo
Vocj esta recebendo um email Torpedo Multimmdia

O vivo torpedo foi enviado de um celular com uma foto para seu email, do
nzmero 9298.

Inicializar download do arquivo (337kb)

Vivo agora do seu celular para seu e-mail.

Uma empresa Portugal Telecom e Teleftnica - Copyright Vivo 2009
Vivo sinal de qualidade.



Re: can not use USB drive with recent snapshot

2009-05-14 Thread LEVAI Daniel
On Wednesday 13 May 2009 11.06.30 you wrote:
 On Wed, May 13, 2009 at 10:21:57AM +0200, LEVAI Daniel wrote:
  On Wednesday 13 May 2009 09.43.40 you wrote:
   On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote:
Hi!
   
With a May 12 snapshot, I can no longer use my USB thumb-drive.
OpenBSD doesn't recognize any partitions on the drive, while on other
OSes and with a previous snapshot it works fine.
Here is dmesg.boot and the output (with a weird message) when I plug
in the drive.
  
   Thanks for the report, but please also provide the output of fdisk.
   We are working on a more strict mbr validation, but this is all quite
   tricky and will take some iterations to get right.
 
  Here is the fdisk output and some more. I hope it's useful.

 Likely a newer snap will have this fixed.

Yes, thank you, yesterday's (May 13) snapshot fixed it.

Daniel

--
LIVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



OpenBSD server with samba and openldap

2009-05-14 Thread BSD nuub
Dear misc@ readers,
I'm planning to set up a OpenBSD 4.5 based server serving a local
network with Windows XP based client computers.
There's no mention of this in the OpenBSD faq, but I found a nice
guide that seems to be pretty recent and up-to-date.

http://www.kernel-panic.it/openbsd/pdc/pdc4.html
On this page, there's something that bothers me:

Please note that, though Samba account information will be stored in
LDAP, smbd(8) will still obtain the user's UNIX account information
via the standard C library calls, such as getpwnam() (see
documentation); unfortunately, OpenBSD's standard C libraries don't
support LDAP, thus forcing us to define Samba users also as local Unix
accounts.

This means a little more work for the system administrator, who will
need to define users twice, but won't affect the overall system
security since Unix users won't need to be able to logon to the
system.


Now, I'm thinking that this problem maybe can be solved with this:
http://openbsd.rutgers.edu/bsdauth/
+
http://openports.se/sysutils/login_ldap
?

Anyone else already done this in a better/smarter way?

Thanks for your time!
/bsdnuub



Re: HD 'Analysis'

2009-05-14 Thread Landry Breuil
On Thu, May 14, 2009 at 12:42 AM, Marco Peereboom sl...@peereboom.us wrote:
 I once wrote a fancy dd to recover a disk that jordan used for pictures.
 It worked well enough to get the crap off before the disk totally.
 Anyway I dusted it off and added a man page and stuff.  Have a look at
 http://www.peereboom.us/diskrescue/
 if you want to play.

Ah, and btw we have sysutils/testdisk in ports for all those kind of
recoveries.

Landry



Re: OpenBSD server with samba and openldap

2009-05-14 Thread Pedro Almeida

On May 14, 2009, at 9:25 AM, BSD nuub wrote:


On this page, there's something that bothers me:

Please note that, though Samba account information will be stored in
LDAP, smbd(8) will still obtain the user's UNIX account information
via the standard C library calls, such as getpwnam() (see
documentation); unfortunately, OpenBSD's standard C libraries don't
support LDAP, thus forcing us to define Samba users also as local Unix
accounts.

This means a little more work for the system administrator, who will
need to define users twice, but won't affect the overall system
security since Unix users won't need to be able to logon to the
system.


This was probably true by the time of this document write, but hopefully
things change over time.
Please take a look at ypldap(8). I think it solves the problem you
refer.

There are some small issues, but I bet they are being worked, and you'll
find an workaround for them meanwhile. ;)

Best regards,

Pedro



Re: CUPS Printing Problem

2009-05-14 Thread Jan Stary
On May 13 16:20:30, Duane A. Damiano wrote:
 I'm new to OpenBSD.  I recently installed 4.5.  It seems to be working
 well except for this CUPS printing problem.  My printer is an HP DeskJet 
 connected to the parallel port.
 
 The CUPS driver is running.  Here's a line from dmesg:
 
 lpt0 at isa0 port 0x378/4 irq 7
 
 Here's the OpenBSD lpinfo output:
 
 # /usr/local/sbin/lpinfo -v
 network socket
 network http
 network ipp
 network lpd
 direct usb:/dev/ulpt0
 direct usb:/dev/ulpt1
 #
 
 
 When I boot Debian Lenny on this same computer, I see this:
 
 dada...@swing:~$ /usr/sbin/lpinfo -v
 network socket
 network beh
 direct hpfax
 direct hp
 network http
 network ipp
 network lpd
 direct parallel:/dev/lp0
 direct scsi
 serial serial:/dev/ttyS0?baud=115200
 dada...@swing:~$
 
 With Debian, I use parallel:/dev/lp0 as the CUPS URI and printing
 works fine.
 
 It seems like the OpenBSD lpinfo output should include a line like
 direct parallel:/dev/lpt0, but as you can see, it's not there.  Can
 someone tell me what's wrong here?  Do I need to install some other
 package?


The lpinfo output of the two CUPS installation suggests
there is a difference between the two CUPS installations.

Seeing 'direct hp' and 'direct hpfax' in one and not the other
makes me guess that one of the CUPS installations has an additional
package installed that allows it to talk to the HP printer in the
http://en.wikipedia.org/wiki/HP_JetDirect protocol. To do that, you need
the http://en.wikipedia.org/wiki/PostScript_Printer_Description files,
which are provided via the print/foomatic* packages.

(Obviously, postscript and lpd are not good enough for HP.
They need to have a separate protocol for their printers.)

Check the 'lpinfo -l' for your printer model, and if not found,
a good hint could be to look at what the dependencies of the CUPS
installation that _can_ see it, and install the analogous packages
for the other CUPS instalation too.

(For my HP Color LaserJet 260n, I needed the print/foo2zjs package
providing share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz
and the /usr/local/bin/foo2hp filter.)

These PPD fiels and the corresponding filters do the real work
of talking to the printer. CUPS is just an (overbloated, IMHO)
administration around that (to call the right filter for the
right printer etc). The same administration can be done by
the standard lpd - the install message of foomatic-filters
contains a working printcap example.

Jan



Re: HP Color LaserJet 2600n (was: CUPS Printing Problem)

2009-05-14 Thread Jan Stary
On May 14 03:19:13, Thomas Pfaff wrote:
 On Wed, 13 May 2009 16:20:30 -0700
 Duane A. Damiano dada...@comcast.net wrote:
 
  I'm new to OpenBSD.  I recently installed 4.5.  It seems to be working
  well except for this CUPS printing problem.  My printer is an HP DeskJet 
  connected to the parallel port.
 
 Might just be me, but I hate CUPS.

Everybody in the world hates CUPS, including babies born today.
People lay awake nights wondering geez, why would anyone use
such a piece of software.

 Try foomatic-rip together with
 the appropriate PPD and set up your /etc/printcap.

 Here's mine for
 a hp LaserJet 1010
 
$ cat /etc/printcap
lp|LaserJet:\
   :lp=/dev/ulpt0:\
   :af=/etc/foomatic/HP-LaserJet_1010-hpijs.ppd:\
   :if=/usr/local/bin/foomatic-rip:\
   :sd=/var/spool/output:\
   :lf=/var/log/lpd-errs:\
   :sh:

For the archives: to print on HP Color LaserJet 2600n,
the appropriate PPD files live in the print/foo2zjs package.

A working printcap ( after copying
/usr/local/share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz
to /etc/foomatic/HPLaserjet2600n.ppd ):

lp|HP Color laserJet 2600n:\
:lp=/dev/ulpt0:\
:af=/etc/foomatic/HPLaserjet2600n.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:sd=/var/spool/output:\
:lf=/var/log/lpd-errs:\
:sh:

Jan



Re: eject(1) locks machine on = 4.4

2009-05-14 Thread Jasper Valentijn
2009/5/10 Nick Guenther kou...@gmail.com:
 I had a similar problem where trying to write anything with my CD
 drive, and sometimes even just reading it, would lock. I saw something
 go by on here that hinted it was because the drive was a fancy
 blu-ray/duallayer/hddvd-capable drive but that's as far as I cared to
 dig.

There's this patch krw's cooked up. It fixes the problem for him and
me, it might also work for you.

Index: udf_subr.c
===
RCS file: /cvs/src/sys/isofs/udf/udf_subr.c,v
retrieving revision 1.18
diff -u -p -r1.18 udf_subr.c
--- udf_subr.c  23 Jul 2008 16:24:43 -  1.18
+++ udf_subr.c  14 May 2009 01:40:41 -
@@ -110,7 +110,7 @@ udf_disklabelspoof(dev_t dev, void (*str
 */
bp-b_blkno = sector * btodb(bsize);
bp-b_bcount = bsize;
-   bp-b_flags |= (B_READ | B_RAW);
+   bp-b_flags = B_BUSY | B_READ | B_RAW;
bp-b_resid = bp-b_blkno / lp-d_secpercyl;

(*strat)(bp);
@@ -130,7 +130,7 @@ udf_disklabelspoof(dev_t dev, void (*str
for (sector = mvds_start; sector  mvds_end; sector++) {
bp-b_blkno = sector * btodb(bsize);
bp-b_bcount = bsize;
-   bp-b_flags |= (B_READ | B_RAW);
+   bp-b_flags = B_BUSY | B_READ | B_RAW;
bp-b_resid = bp-b_blkno / lp-d_secpercyl;

(*strat)(bp);


--
We spend the first twelve months of our children's lives teaching
them to walk and talk and the next twelve telling them to sit down and
shut up.



Re: OpenBSD Libs

2009-05-14 Thread Hannah Schroeter
Hi!

On Wed, May 13, 2009 at 03:34:17PM -0300, Joco Salvatti wrote:
I've been working on a project to create a smaller, functional version
of OpenBSD (50MB). One thing that I've noticed while carrying out this
project is that there are four types of libraries, eg:

libssl.a
libssl.so.14.0
libssl_p.a
libssl_pic.a

What I would like to know is why are there four different types of
libraries? Since disk consumption is a
severe constraint, I would like to know which of these are of
paramount importance, mandatory for the proper
system operation.

In general,
  libfoo.a
Static library, normal build. Used only when you link a program
against -lfoo and you either specify static linkage or there's
no dynamic library available (or you're on an architecture that
doesn't support dynamic libraries at all).
  libfoo_p.a
Static library for profiling build (used when you link a program
with -p or -pg).
  libfoo_pic.a
Static library, but build from the object files that are compiled
with -fpic or -fPIC (i.e. the object files that are used to build
the dynamic library). I don't know whether that's used for linking
with -lfoo at all (or only if you specify its full pathname).
  libfoo.so.x.y
Dynamic library. Used for linking with -lfoo unless one of the
others is used as described above.
*Also needed at runtime* if a program is linked against it.
If a program is linked against libfoo.so.x.y, you need
version x.z with the same x and z = y.

So bottom line, if you don't intend to compile or (re-)link anything
on your target system, IMO you should be safe to remove the lib*.a
files. You *should* keep the lib*.so.* unless you can be sure that
you don't need any binary that is linked against that library (check
with ldd).

You can of course do test installations e.g. in a chroot environment or
in a virtual machine (e.g. qemu) or on a spare machine where it doesn't
hurt if you break things by removing too much.

Kind regards,

Hannah.



Re: softraid

2009-05-14 Thread slash
 You are right. I simply could not read from the man page the most obvious:
 that
 the state is displayed without any options (and me stupid tried almost all
 options!).
 So I guess it still is a cronjob to scan for 'degraded'?

It is in sensors too.



Re: OpenBSD Libs

2009-05-14 Thread João Salvatti
Thanks Hannah.

2009/5/14 Hannah Schroeter han...@schlund.de:
 Hi!

 On Wed, May 13, 2009 at 03:34:17PM -0300, Joco Salvatti wrote:
I've been working on a project to create a smaller, functional version
of OpenBSD (50MB). One thing that I've noticed while carrying out this
project is that there are four types of libraries, eg:

libssl.a
libssl.so.14.0
libssl_p.a
libssl_pic.a

What I would like to know is why are there four different types of
libraries? Since disk consumption is a
severe constraint, I would like to know which of these are of
paramount importance, mandatory for the proper
system operation.

 In general,
  libfoo.a
Static library, normal build. Used only when you link a program
against -lfoo and you either specify static linkage or there's
no dynamic library available (or you're on an architecture that
doesn't support dynamic libraries at all).
  libfoo_p.a
Static library for profiling build (used when you link a program
with -p or -pg).
  libfoo_pic.a
Static library, but build from the object files that are compiled
with -fpic or -fPIC (i.e. the object files that are used to build
the dynamic library). I don't know whether that's used for linking
with -lfoo at all (or only if you specify its full pathname).
  libfoo.so.x.y
Dynamic library. Used for linking with -lfoo unless one of the
others is used as described above.
*Also needed at runtime* if a program is linked against it.
If a program is linked against libfoo.so.x.y, you need
version x.z with the same x and z = y.

 So bottom line, if you don't intend to compile or (re-)link anything
 on your target system, IMO you should be safe to remove the lib*.a
 files. You *should* keep the lib*.so.* unless you can be sure that
 you don't need any binary that is linked against that library (check
 with ldd).

 You can of course do test installations e.g. in a chroot environment or
 in a virtual machine (e.g. qemu) or on a spare machine where it doesn't
 hurt if you break things by removing too much.

 Kind regards,

 Hannah.




--
Se Debugar i a arte de remover bugs, programar i a arte de inserm-los.

Donald E. Knuth.

--
Joco Salvatti
Graduated in Computer Science
Federal University of Para - UFPA - Brazil
E-Mail: salva...@gmail.com



Shared IRQ

2009-05-14 Thread João Salvatti
Hi,

I would like to know if a different hardware can shared the same IRQ
with another?

Eg:

inteldrm0 at vga1: apic 1 int 16 (irq 11)
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1
int 16 (irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1
int 16 (irq 11)

Thanks in advance.

--
Joco Salvatti
Graduated in Computer Science
Federal University of Para - UFPA - Brazil
E-Mail: salva...@gmail.com



Re: ral rt2860 WPA2 ifconfig hang

2009-05-14 Thread Tom
Ian Lindsay wrote:
 I've had no problems with an rt2860 in this configuration;
 hostname.ral0:

 mode 11g mediaopt hostap chan 1 nwid gen wpa \
   wpapsk `wpa-psk gen chilledbrains` \
   group internal up

 (This interface happens to be bridged to an re(4) which is why it
 has no address assigned here.)
 But adding 'wpaprotos 2 wpagroupcipher ccmp wpaciphers ccmp'
 makes the box hang on boot at 'Starting networks'.  Alternatively,
 specifying those same options with ifconfig immediately wedges
 the machine (without a panic or anything).  So, I don't use those
 options :-)

Do you find your box locks up when a wireless client sends a large amount
of data through your AP?

I've tried both a RT2661D and RT2860 and the RT2860 locked up within
minutes of any serious wireless traffic. The RT2661D card only lasts
about 30 minutes or so after that.

I've given up any hope of ral(4) acting reliably in AP mode and went back
to using the crappy little netgear wireless router (not my choice, but not
much I can do in this case.)

Tom



Re: Shared IRQ

2009-05-14 Thread Henry Sieff
http://www.openbsd.org/faq/faq12.html

12.7.3

2009/5/14 Joco Salvatti salva...@gmail.com:
 Hi,

 I would like to know if a different hardware can shared the same IRQ
 with another?

 Eg:

 inteldrm0 at vga1: apic 1 int 16 (irq 11)
 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1
 int 16 (irq 11)
 uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1
 int 16 (irq 11)

 Thanks in advance.

 --
 Joco Salvatti
 Graduated in Computer Science
 Federal University of Para - UFPA - Brazil
 E-Mail: salva...@gmail.com



Re: Shared IRQ

2009-05-14 Thread Peter Kay - Syllopsium

From: Henry Sieff henry.si...@gmail.com
To: Joco Salvatti salva...@gmail.com




http://www.openbsd.org/faq/faq12.html

12.7.3

2009/5/14 Joco Salvatti salva...@gmail.com:

Hi,

I would like to know if a different hardware can shared the same IRQ
with another?
12.7.3 is accurate, however there is a difference between 'can it' 'should 
it' and 'will it'


'should it?' - yes, it should
'can it?' - yes, it can
'will it?' - that's the tricky one. Some devices just don't share interrupts 
well. Perhaps it's shit hardware, a shit APIC, crappy BIOS, naff driver - 
whatever.


PCI devices can theoretically share interrupts, but that doesn't necessarily 
mean they will.


PK 



John Tate has invited you to join Updown.com

2009-05-14 Thread John Tate
Your friend, John Tate, has invited you to join Updown.com, the fantasy 
investing site that gives away $3,000 every month to the best investors who 
manage a virtual portfolio of $1,000,000.

Join Updown.com  Become John Tate's Friend. 
(http://www.updown.com/create-account.do?_refer=132362_code_2=_invite_invite=229236)


--

Here is John Tate's personal message to you:

Hi. I've been using this site to become a better investor. It's a lot of fun. I 
think you'd like it.

--



Sincerely,

The Updown Team




Please ensure you'll continue to receive e-mails from Updown.com:
* Outlook Users:  From the Actions menu, select Junk E-mail and Add Sender to 
Safe Senders List
* Hotmail, Yahoo and AOL Users: Click the Add Address or Save Address 
button or link beside the From address at the top of this message
* Users of Other Email Systems: Please follow the software or 
service-provider's instructions for adding Updown.com to your safe senders 
list or whitelist.

Updown.com respects your right to privacy. You can view our privacy policy by 
visiting: http://www.updown.com/privacy-policy

If you are a member and wish to turn off this email, you can update your email 
settings by visiting: http://www.updown.com/edit-email-notifications

To unsubscribe to all future emails, visit: 
http://www.updown.com/unsubscribe?mail=11985449email=m...@openbsd.org



John Tate has invited you to join Updown.com

2009-05-14 Thread John Tate
Your friend, John Tate, has invited you to join Updown.com, the fantasy 
investing site that gives away $3,000 every month to the best investors who 
manage a virtual portfolio of $1,000,000.

Join Updown.com  Become John Tate's Friend. 
(http://www.updown.com/create-account.do?_refer=132362_code_2=_invite_invite=229235)


--

Here is John Tate's personal message to you:

Hi. I've been using this site to become a better investor. It's a lot of fun. I 
think you'd like it.

--



Sincerely,

The Updown Team




Please ensure you'll continue to receive e-mails from Updown.com:
* Outlook Users:  From the Actions menu, select Junk E-mail and Add Sender to 
Safe Senders List
* Hotmail, Yahoo and AOL Users: Click the Add Address or Save Address 
button or link beside the From address at the top of this message
* Users of Other Email Systems: Please follow the software or 
service-provider's instructions for adding Updown.com to your safe senders 
list or whitelist.

Updown.com respects your right to privacy. You can view our privacy policy by 
visiting: http://www.updown.com/privacy-policy

If you are a member and wish to turn off this email, you can update your email 
settings by visiting: http://www.updown.com/edit-email-notifications

To unsubscribe to all future emails, visit: 
http://www.updown.com/unsubscribe?mail=11985448email=m...@cvs.openbsd.org



Incredibly strange DNS / Sendmail problem

2009-05-14 Thread Eric
I'm encountering a strange DNS / e-mail problem an a mail server 
running OpenBSD 4.3.

Sometimes, DNS returns completely unexpected results.  I get two
completely different answers to the same DNS query with the incorrect
answers being returned by the DNS server that is being used by the
mail server.

For example, whois ruhl.in shows that the name servers are 
dns1.name-services.com to dns5.name-services.com.

Then, dig @dns1.name-services.com -t mx ruhl.in returns:

*

;  DiG 9.4.2  @dns1.name-services.com -t mx ruhl.in
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 3610
;; flags: qr aa; QUERY: 1, ANSWER: 5, AUTHORITY: 5, ADDITIONAL: 5

;; QUESTION SECTION:
;ruhl.in.   IN  MX

;; ANSWER SECTION:
ruhl.in.1800IN  MX  10 ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  20 ALT1.ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  30 ALT2.ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  40 ASPMX2.GOOGLEMAIL.COM.
ruhl.in.1800IN  MX  50 ASPMX3.GOOGLEMAIL.COM.

;; AUTHORITY SECTION:
ruhl.in.3600IN  NS  dns1.name-services.com.
ruhl.in.3600IN  NS  dns2.name-services.com.
ruhl.in.3600IN  NS  dns3.name-services.com.
ruhl.in.3600IN  NS  dns4.name-services.com.
ruhl.in.3600IN  NS  dns5.name-services.com.

;; ADDITIONAL SECTION:
dns1.name-services.com. 3600IN  A   98.124.192.1
dns2.name-services.com. 3600IN  A   69.64.157.18
dns3.name-services.com. 3600IN  A   98.124.193.1
dns4.name-services.com. 3600IN  A   69.64.145.225
dns5.name-services.com. 3600IN  A   70.42.37.7

*

But if I use the name server used by the e-mail server, 
dig -t mx ruhl.in, returns:

*

;  DiG 9.4.2  -t mx ruhl.in
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 26226
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ruhl.in.   IN  MX

;; ANSWER SECTION:
ruhl.in.471 IN  CNAME   ghs.google.com.
ghs.google.com. 482751  IN  CNAME   ghs.l.google.com.

;; AUTHORITY SECTION:
l.google.com.   60  IN  SOA e.l.google.com. 
dns-admin.google.com. 1380328 900 900 1800 60

*

When I change the /etc/resolv.conf file on the mail server
to swap the order of the DNS servers, then dig returns 
the correct records for a little while until the records
expire and then switches to the incorrect one!  

Meanwhile, the DNS server that had been listed first and is 
now second begins to return the correct records once those 
records expire.

Has anyone seen this kind of behavior before?  Can anyone explain
what is happening here?  It's driving me up the wall.

Eric Johnson



Re: Shared IRQ

2009-05-14 Thread Henry Sieff
On Thu, May 14, 2009 at 8:27 AM, Peter Kay - Syllopsium
syllops...@syllopsium.com wrote:
 From: Henry Sieff henry.si...@gmail.com
 To: Joco Salvatti salva...@gmail.com


 http://www.openbsd.org/faq/faq12.html

 12.7.3

 2009/5/14 Joco Salvatti salva...@gmail.com:

 Hi,

 I would like to know if a different hardware can shared the same IRQ
 with another?

 12.7.3 is accurate, however there is a difference between 'can it' 'should
 it' and 'will it'

 'should it?' - yes, it should
 'can it?' - yes, it can
 'will it?' - that's the tricky one. Some devices just don't share interrupts
 well. Perhaps it's shit hardware, a shit APIC, crappy BIOS, naff driver -
 whatever.

 PCI devices can theoretically share interrupts, but that doesn't necessarily
 mean they will.

I have only ever had an issue with off-brand NIC's, personally.

But you are of course correct - PCI devices are supposed to be able to
share IRQ's, but that doesn't mean all manufacturers do interop
testing to make sure that works.



Re: Shared IRQ

2009-05-14 Thread Marco Peereboom
This makes no sense at all.

On Thu, May 14, 2009 at 09:07:56AM -0700, Henry Sieff wrote:
 On Thu, May 14, 2009 at 8:27 AM, Peter Kay - Syllopsium
 syllops...@syllopsium.com wrote:
  From: Henry Sieff henry.si...@gmail.com
  To: Joco Salvatti salva...@gmail.com
 
 
  http://www.openbsd.org/faq/faq12.html
 
  12.7.3
 
  2009/5/14 Joco Salvatti salva...@gmail.com:
 
  Hi,
 
  I would like to know if a different hardware can shared the same IRQ
  with another?
 
  12.7.3 is accurate, however there is a difference between 'can it' 'should
  it' and 'will it'
 
  'should it?' - yes, it should
  'can it?' - yes, it can
  'will it?' - that's the tricky one. Some devices just don't share interrupts
  well. Perhaps it's shit hardware, a shit APIC, crappy BIOS, naff driver -
  whatever.
 
  PCI devices can theoretically share interrupts, but that doesn't necessarily
  mean they will.
 
 I have only ever had an issue with off-brand NIC's, personally.
 
 But you are of course correct - PCI devices are supposed to be able to
 share IRQ's, but that doesn't mean all manufacturers do interop
 testing to make sure that works.



Re: Shared IRQ

2009-05-14 Thread Henry Sieff
[cleaned up formatting, since I accidentally top-posed to begin with]

On Thu, May 14, 2009 at 9:24 AM, Marco Peereboom sl...@peereboom.us wrote:
 I worte:
 I have only ever had an issue with off-brand NIC's, personally.

 But you are of course correct - PCI devices are supposed to be able to
 share IRQ's, but that doesn't mean all manufacturers do interop
 testing to make sure that works.

 This makes no sense at all.

?

I have had occasional issues with PCI NIC's inexplicably refusing to
send traffic if they shared an IRQ - this was not an OpenBSD issue,
since in those cases the problem was not corrected by using a
different OS. NIC functioned fine when IRQ was no longer shared. Now,
I had always assumed it was because of a problem with the NIC itself.
Apparently, I am about to find out I was wrong :-).



Re: Incredibly strange DNS / Sendmail problem

2009-05-14 Thread Hugo Villeneuve
On Thu, May 14, 2009 at 10:43:54AM -0500, Eric wrote:
 I'm encountering a strange DNS / e-mail problem an a mail server 
 running OpenBSD 4.3.
 
 Sometimes, DNS returns completely unexpected results.  I get two
 completely different answers to the same DNS query with the incorrect
 answers being returned by the DNS server that is being used by the
 mail server.
 
 Meanwhile, the DNS server that had been listed first and is 
 now second begins to return the correct records once those 
 records expire.
 
 Has anyone seen this kind of behavior before?  Can anyone explain
 what is happening here?  It's driving me up the wall.
 
 Eric Johnson

What is wrong is how ruhl.in was setup.

You *cannot* have a CNAME record if any other type of record exists
for that name.

Complain to their administrator.


See: dig ruhl.in ANY @dns1.name-services.com
===
;; QUESTION SECTION:
;ruhl.in.   IN  ANY

;; ANSWER SECTION:
ruhl.in.1800IN  CNAME   ghs.google.com.
ruhl.in.1800IN  MX  10 ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  20 ALT1.ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  30 ALT2.ASPMX.L.GOOGLE.COM.
ruhl.in.1800IN  MX  40 ASPMX2.GOOGLEMAIL.COM.
ruhl.in.1800IN  MX  50 ASPMX3.GOOGLEMAIL.COM.
ruhl.in.1800IN  SOA dns1.name-services.com. 
info.name-services.com. 2002050701 10001 1801 604801 181
===

If you need to fix this without their help. You can force a particular
routing in sendmail.

In /etc/mail/mailertable:

ruhl.in.relay:[aspm.l.google.com.]

And you rebuild it (cd /etc/mail  make). You would need to be
running sendmail with mailertable support. (In stock OpenBSD,
sendmail.cf not localhost.cf.)

It's an ugly hard-coded mess but the fault is ruhl.in.


-- 
Hugo Villeneuve h...@eintr.net
http://EINTR.net/ 



Re: Incredibly strange DNS / Sendmail problem

2009-05-14 Thread Stuart Henderson
On 2009-05-14, Eric rabbitearcr...@gmail.com wrote:
 I'm encountering a strange DNS / e-mail problem an a mail server 
 running OpenBSD 4.3.

 Sometimes, DNS returns completely unexpected results.  I get two
 completely different answers to the same DNS query with the incorrect
 answers being returned by the DNS server that is being used by the
 mail server.

 For example, whois ruhl.in shows that the name servers are 
 dns1.name-services.com to dns5.name-services.com.

 Then, dig @dns1.name-services.com -t mx ruhl.in returns:

They screwed up their domain setup. People aren't as careful
with CNAMEs as they should be.




 *

 ;  DiG 9.4.2  @dns1.name-services.com -t mx ruhl.in
 ; (1 server found)
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 3610
 ;; flags: qr aa; QUERY: 1, ANSWER: 5, AUTHORITY: 5, ADDITIONAL: 5

 ;; QUESTION SECTION:
 ;ruhl.in.   IN  MX

 ;; ANSWER SECTION:
 ruhl.in.1800IN  MX  10 ASPMX.L.GOOGLE.COM.
 ruhl.in.1800IN  MX  20 ALT1.ASPMX.L.GOOGLE.COM.
 ruhl.in.1800IN  MX  30 ALT2.ASPMX.L.GOOGLE.COM.
 ruhl.in.1800IN  MX  40 ASPMX2.GOOGLEMAIL.COM.
 ruhl.in.1800IN  MX  50 ASPMX3.GOOGLEMAIL.COM.

 ;; AUTHORITY SECTION:
 ruhl.in.3600IN  NS  dns1.name-services.com.
 ruhl.in.3600IN  NS  dns2.name-services.com.
 ruhl.in.3600IN  NS  dns3.name-services.com.
 ruhl.in.3600IN  NS  dns4.name-services.com.
 ruhl.in.3600IN  NS  dns5.name-services.com.

 ;; ADDITIONAL SECTION:
 dns1.name-services.com. 3600IN  A   98.124.192.1
 dns2.name-services.com. 3600IN  A   69.64.157.18
 dns3.name-services.com. 3600IN  A   98.124.193.1
 dns4.name-services.com. 3600IN  A   69.64.145.225
 dns5.name-services.com. 3600IN  A   70.42.37.7

 *

 But if I use the name server used by the e-mail server, 
 dig -t mx ruhl.in, returns:

 *

 ;  DiG 9.4.2  -t mx ruhl.in
 ;; global options:  printcmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NOERROR, id: 26226
 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0

 ;; QUESTION SECTION:
 ;ruhl.in.   IN  MX

 ;; ANSWER SECTION:
 ruhl.in.471 IN  CNAME   ghs.google.com.
 ghs.google.com. 482751  IN  CNAME   ghs.l.google.com.

 ;; AUTHORITY SECTION:
 l.google.com.   60  IN  SOA e.l.google.com. 
 dns-admin.google.com. 1380328 900 900 1800 60

 *

 When I change the /etc/resolv.conf file on the mail server
 to swap the order of the DNS servers, then dig returns 
 the correct records for a little while until the records
 expire and then switches to the incorrect one!  

 Meanwhile, the DNS server that had been listed first and is 
 now second begins to return the correct records once those 
 records expire.

 Has anyone seen this kind of behavior before?  Can anyone explain
 what is happening here?  It's driving me up the wall.

 Eric Johnson



Re: CUPS Printing Problem

2009-05-14 Thread Friedrich Locke
Dear list members,

i have an USB HP P2055dn laser printer. I have it running on Windows
and OpenSolaris (with solaris it worked by itself, i just boot
openSolaris ant it was there fully funcional).

I would like to have it working with openbsd, is it possible?

Thank in advance.

PS: i have no ideia how OpenSolaris got it working, it just did it.

On Thu, May 14, 2009 at 7:42 AM, Jan Stary h...@stare.cz wrote:
 On May 13 16:20:30, Duane A. Damiano wrote:
 I'm new to OpenBSD.  I recently installed 4.5.  It seems to be working
 well except for this CUPS printing problem.  My printer is an HP DeskJet
 connected to the parallel port.

 The CUPS driver is running.  Here's a line from dmesg:

 lpt0 at isa0 port 0x378/4 irq 7

 Here's the OpenBSD lpinfo output:

 # /usr/local/sbin/lpinfo -v
 network socket
 network http
 network ipp
 network lpd
 direct usb:/dev/ulpt0
 direct usb:/dev/ulpt1
 #


 When I boot Debian Lenny on this same computer, I see this:

 dada...@swing:~$ /usr/sbin/lpinfo -v
 network socket
 network beh
 direct hpfax
 direct hp
 network http
 network ipp
 network lpd
 direct parallel:/dev/lp0
 direct scsi
 serial serial:/dev/ttyS0?baud=115200
 dada...@swing:~$

 With Debian, I use parallel:/dev/lp0 as the CUPS URI and printing
 works fine.

 It seems like the OpenBSD lpinfo output should include a line like
 direct parallel:/dev/lpt0, but as you can see, it's not there.  Can
 someone tell me what's wrong here?  Do I need to install some other
 package?


 The lpinfo output of the two CUPS installation suggests
 there is a difference between the two CUPS installations.

 Seeing 'direct hp' and 'direct hpfax' in one and not the other
 makes me guess that one of the CUPS installations has an additional
 package installed that allows it to talk to the HP printer in the
 http://en.wikipedia.org/wiki/HP_JetDirect protocol. To do that, you need
 the http://en.wikipedia.org/wiki/PostScript_Printer_Description files,
 which are provided via the print/foomatic* packages.

 (Obviously, postscript and lpd are not good enough for HP.
 They need to have a separate protocol for their printers.)

 Check the 'lpinfo -l' for your printer model, and if not found,
 a good hint could be to look at what the dependencies of the CUPS
 installation that _can_ see it, and install the analogous packages
 for the other CUPS instalation too.

 (For my HP Color LaserJet 260n, I needed the print/foo2zjs package
 providing share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz
 and the /usr/local/bin/foo2hp filter.)

 These PPD fiels and the corresponding filters do the real work
 of talking to the printer. CUPS is just an (overbloated, IMHO)
 administration around that (to call the right filter for the
 right printer etc). The same administration can be done by
 the standard lpd - the install message of foomatic-filters
 contains a working printcap example.

Jan



Re: Incredibly strange DNS / Sendmail problem

2009-05-14 Thread Dan Harnett
On Thu, May 14, 2009 at 10:43:54AM -0500, Eric wrote:
 I'm encountering a strange DNS / e-mail problem an a mail server 
 running OpenBSD 4.3.
 
 Sometimes, DNS returns completely unexpected results.  I get two
 completely different answers to the same DNS query with the incorrect
 answers being returned by the DNS server that is being used by the
 mail server.

It's not that strange.

d...@noc:~$ dig @dns1.name-services.com ruhl.in   

;  DiG 9.4.2-P2  @dns1.name-services.com ruhl.in
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 6509
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ruhl.in.   IN  A

;; ANSWER SECTION:
ruhl.in.1800IN  CNAME   ghs.google.com.

;; Query time: 281 msec
;; SERVER: 98.124.192.1#53(98.124.192.1)
;; WHEN: Thu May 14 12:49:13 2009
;; MSG SIZE  rcvd: 53
  
'ruhl.in' has a CNAME record.  Technically, it shouldn't be advertising
any other records, but it is, and this is the source of the issue.

If your first query is for the MX record, then your resolver will cache
the the authoritative MX records from dnsN.name-services.com.  If your
first query is for an A record or anything that will return and cache
the CNAME, then your resolver will cache that as the authoritative
answer and use that instead of making new MX queries.

##
## MX queried first (after flushing the cache)
##
d...@noc:~$ host -t mx ruhl.in  # first query
ruhl.in mail is handled by 20 ALT1.ASPMX.L.GOOGLE.COM.
ruhl.in mail is handled by 30 ALT2.ASPMX.L.GOOGLE.COM.
ruhl.in mail is handled by 40 ASPMX2.GOOGLEMAIL.COM.
ruhl.in mail is handled by 50 ASPMX3.GOOGLEMAIL.COM.
ruhl.in mail is handled by 10 ASPMX.L.GOOGLE.COM.

d...@noc:~$ host ruhl.in  # second query
ruhl.in is an alias for ghs.google.com.
ghs.google.com is an alias for ghs.l.google.com.
ghs.l.google.com has address 209.85.171.121

d...@noc:~$ host -t mx ruhl.in  # cached
ruhl.in mail is handled by 50 ASPMX3.GOOGLEMAIL.COM.
ruhl.in mail is handled by 10 ASPMX.L.GOOGLE.COM.
ruhl.in mail is handled by 20 ALT1.ASPMX.L.GOOGLE.COM.
ruhl.in mail is handled by 30 ALT2.ASPMX.L.GOOGLE.COM.
ruhl.in mail is handled by 40 ASPMX2.GOOGLEMAIL.COM.

##
## MX queried second (after flushing the cache)
##
d...@noc:~$ host ruhl.in  # first query
ruhl.in is an alias for ghs.google.com.
ghs.google.com is an alias for ghs.l.google.com.
ghs.l.google.com has address 209.85.171.121

d...@noc:~$ host -t mx ruhl.in  # second query
ruhl.in is an alias for ghs.google.com.
ghs.google.com is an alias for ghs.l.google.com.

d...@noc:~$ host -t mx ruhl.in  # cached
ruhl.in is an alias for ghs.google.com.
ghs.google.com is an alias for ghs.l.google.com.


named-checkzone even complains if you setup a zone like this.

d...@noc:~$ cat example.txt 
$TTL 1d

@   SOA noc.example.com. hostmaster.example.com. (
2009051400  ; serial
16384   ; refresh
2048; retry
1048576 ; expire
2560 )  ; minimum

@   NS  ns1.example.com.
@   NS  ns2.example.com.

@   CNAME   ghs.google.com.

@   A   192.168.1.1
@   MX  10 mx0
@   MX  20 mx1

mx0 A   192.168.1.2
mx1 A   192.168.1.3

d...@noc:~$ named-checkzone example.com example.txt
dns_master_load: example.txt:17: example.com: CNAME and other data
dns_master_load: example.txt:17: example.com: CNAME and other data
dns_master_load: example.txt:17: example.com: CNAME and other data
zone example.com/IN: loading from master file example.txt failed: CNAME and 
other data

For more info: http://www.zytrax.com/books/dns/ch8/cname.html



Re: Shared IRQ

2009-05-14 Thread Marco Peereboom
On Thu, May 14, 2009 at 09:35:45AM -0700, Henry Sieff wrote:
 [cleaned up formatting, since I accidentally top-posed to begin with]
 
 On Thu, May 14, 2009 at 9:24 AM, Marco Peereboom sl...@peereboom.us wrote:
  I worte:
  I have only ever had an issue with off-brand NIC's, personally.
 
  But you are of course correct - PCI devices are supposed to be able to
  share IRQ's, but that doesn't mean all manufacturers do interop
  testing to make sure that works.
 
  This makes no sense at all.
 
 ?
 
 I have had occasional issues with PCI NIC's inexplicably refusing to
 send traffic if they shared an IRQ - this was not an OpenBSD issue,
 since in those cases the problem was not corrected by using a
 different OS. NIC functioned fine when IRQ was no longer shared. Now,
 I had always assumed it was because of a problem with the NIC itself.
 Apparently, I am about to find out I was wrong :-).

This can not have been recent.  Sure in them olden days on garbage like
netware this was an issue but those days are long gone.



Help with PKG_PATH=

2009-05-14 Thread Jose Perez Rodriguez
Today i was installing OpenBSD 4.5 and i type:
export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
chmod u=rwx /home
PKG_CACHE=/home
pkg_add k3b

But when i type pkg_add k3b, is not working, and the url says 
ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;. Strange, isn't it?
(the double //) I'ts not my fault, so i don't what what happens.

Thank you very much.



Re: Help with PKG_PATH=

2009-05-14 Thread Johan Beisser
On Thu, May 14, 2009 at 10:41 AM, Jose Perez Rodriguez
juangmgald...@gmail.com wrote:
 Today i was installing OpenBSD 4.5 and i type:
 export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/

tp.openbsd.org?



Re: mDNS

2009-05-14 Thread Marco Peereboom
Do you got something I can play with?

On Wed, May 13, 2009 at 02:55:25PM +0200, Antoine Jacoutot wrote:
 On Wed, 13 May 2009, Marco Peereboom wrote:
 
  I need an mdns solution as well.  If you have something working please
  let me know.
 
 I'm working on avahi which I intend to finish at c2k9.
 
 -- 
 Antoine



Re: CUPS Printing Problem

2009-05-14 Thread Jacob Meuser
On Thu, May 14, 2009 at 02:22:22PM -0300, Friedrich Locke wrote:
 Dear list members,
 
 i have an USB HP P2055dn laser printer. I have it running on Windows
 and OpenSolaris (with solaris it worked by itself, i just boot
 openSolaris ant it was there fully funcional).
 
 I would like to have it working with openbsd, is it possible?
 
 Thank in advance.

openprinting.org has lots of info about using printers with open source,
free, libre, whatever-you-want-to-call-it software.  go there and
look up your printer.  unless it tells you to use some vendor supplied
binary (rare), whatever it says to use is probably available in ports/
packages.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: CUPS Printing Problem

2009-05-14 Thread Tomáš Bodžár
What setup you tried yet?

2009/5/14 Friedrich Locke friedrich.lo...@gmail.com:
 Dear list members,

 i have an USB HP P2055dn laser printer. I have it running on Windows
 and OpenSolaris (with solaris it worked by itself, i just boot
 openSolaris ant it was there fully funcional).

 I would like to have it working with openbsd, is it possible?

 Thank in advance.

 PS: i have no ideia how OpenSolaris got it working, it just did it.

 On Thu, May 14, 2009 at 7:42 AM, Jan Stary h...@stare.cz wrote:
 On May 13 16:20:30, Duane A. Damiano wrote:
 I'm new to OpenBSD. B I recently installed 4.5. B It seems to be working
 well except for this CUPS printing problem. B My printer is an HP DeskJet
 connected to the parallel port.

 The CUPS driver is running. B Here's a line from dmesg:

 lpt0 at isa0 port 0x378/4 irq 7

 Here's the OpenBSD lpinfo output:

 # /usr/local/sbin/lpinfo -v
 network socket
 network http
 network ipp
 network lpd
 direct usb:/dev/ulpt0
 direct usb:/dev/ulpt1
 #


 When I boot Debian Lenny on this same computer, I see this:

 dada...@swing:~$ /usr/sbin/lpinfo -v
 network socket
 network beh
 direct hpfax
 direct hp
 network http
 network ipp
 network lpd
 direct parallel:/dev/lp0
 direct scsi
 serial serial:/dev/ttyS0?baud=115200
 dada...@swing:~$

 With Debian, I use parallel:/dev/lp0 as the CUPS URI and printing
 works fine.

 It seems like the OpenBSD lpinfo output should include a line like
 direct parallel:/dev/lpt0, but as you can see, it's not there. B Can
 someone tell me what's wrong here? B Do I need to install some other
 package?


 The lpinfo output of the two CUPS installation suggests
 there is a difference between the two CUPS installations.

 Seeing 'direct hp' and 'direct hpfax' in one and not the other
 makes me guess that one of the CUPS installations has an additional
 package installed that allows it to talk to the HP printer in the
 http://en.wikipedia.org/wiki/HP_JetDirect protocol. To do that, you need
 the http://en.wikipedia.org/wiki/PostScript_Printer_Description files,
 which are provided via the print/foomatic* packages.

 (Obviously, postscript and lpd are not good enough for HP.
 They need to have a separate protocol for their printers.)

 Check the 'lpinfo -l' for your printer model, and if not found,
 a good hint could be to look at what the dependencies of the CUPS
 installation that _can_ see it, and install the analogous packages
 for the other CUPS instalation too.

 (For my HP Color LaserJet 260n, I needed the print/foo2zjs package
 providing share/foo2zjs/db/source/PPD/HP-Color_LaserJet_2600n.ppd.gz
 and the /usr/local/bin/foo2hp filter.)

 These PPD fiels and the corresponding filters do the real work
 of talking to the printer. CUPS is just an (overbloated, IMHO)
 administration around that (to call the right filter for the
 right printer etc). The same administration can be done by
 the standard lpd - the install message of foomatic-filters
 contains a working printcap example.

 B  B  B  B Jan





--
http://www.openbsd.org/lyrics.html



Re: Help with PKG_PATH=

2009-05-14 Thread Stuart Henderson
On 2009-05-14, Jose Perez Rodriguez juangmgald...@gmail.com wrote:
 Today i was installing OpenBSD 4.5 and i type:
 export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
 chmod u=rwx /home
 PKG_CACHE=/home
 pkg_add k3b

 But when i type pkg_add k3b, is not working, and the url says 
 ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;. Strange, isn't it?
 (the double //) I'ts not my fault, so i don't what what happens.

 Thank you very much.



the double / is fixed in -current. but unless you're using a fairly
strict proxy server, that's not your problem. as the other poster pointed
out, the hostname is wrong, s/tp/ftp/.



Relayd

2009-05-14 Thread Derek Buttineau
I've been experimenting some with using relayd to load balance  
incoming smtp, pop3 and imap and it seems to work wonderfully with  
relays, unfortunately I cannot use redirects since I need to direct to  
different server pools depending on the originating source IP.  The  
only thing preventing me from deploying this is I need the connections  
to be transparent.

OpenBSD 4.4 introduced a transparent key word, but for the life of me  
I cannot get this to work.  If configured as outlined in the man page,  
relayd fails to start complaining about an interface missing from the  
configuration.  If an interface is specified, relayd starts but  
connections time out immediately:

relay maildelivery, session 4 (1 active), 0, 66.159.122.2 -  
10.10.19.4:25, connect timeout

When I  trace the packets, I can see the connection being made to  
10.10.19.4, and a reply issued, but the time out still happens, so I'm  
at a complete loss.  Has anyone been able to get transparent relays  
configured?  I'd appreciate any help anyone can provide.

On another note.  One thing that would be nice to see in relayd is the  
ability to specify a source ip or table in the redirect definition as  
that would eliminate the need for a relay for this configuration.

Thanks.

--
Regards,

Derek Buttineau
Internet Systems Developer
Compu-SOLVE Internet Services
Compu-SOLVE Technologies, Inc

Phone:  705-725-1212 x255
E-Mail:  de...@csolve.net



Re: CUPS Printing Problem

2009-05-14 Thread Antoine Jacoutot
On Thu, 14 May 2009, TomC!E! BodEC!r wrote:
  The CUPS driver is running. B Here's a line from dmesg:
 
  lpt0 at isa0 port 0x378/4 irq 7
 
  Here's the OpenBSD lpinfo output:
 
  # /usr/local/sbin/lpinfo -v
  network socket
  network http
  network ipp
  network lpd
  direct usb:/dev/ulpt0
  direct usb:/dev/ulpt1
  #

Does it help if you 'chmod 666 /dev/lpt*' ?


-- 
Antoine



Re: Help with PKG_PATH=

2009-05-14 Thread Francisco Valladolid Hdez.
Hi


--- On Thu, 5/14/09, Jose Perez Rodriguez juangmgald...@gmail.com wrote:

 From: Jose Perez Rodriguez juangmgald...@gmail.com
 Subject: Help with PKG_PATH=
 To: misc@openbsd.org
 Date: Thursday, May 14, 2009, 6:41 PM
 Today i was installing OpenBSD 4.5
 and i type:
 export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
 chmod u=rwx /home
 PKG_CACHE=/home
 pkg_add k3b
 
 But when i type pkg_add k3b, is not working, and the url
 says 
 ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;.
 Strange, isn't it?
 (the double //) I'ts not my fault, so i don't what what
 happens.
 
 Thank you very much.

Please correct the typo in the ftp url, and delete the last slash (/) 

Regards.



Re: CUPS Printing Problem

2009-05-14 Thread Darrin Chandler
or forget CUPS and do it the simple way:
http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/

--
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG
Federation



Re: Help with PKG_PATH=

2009-05-14 Thread Jacob Meuser
On Thu, May 14, 2009 at 11:30:52AM -0700, Francisco Valladolid Hdez. wrote:
 Hi
 
 
 --- On Thu, 5/14/09, Jose Perez Rodriguez juangmgald...@gmail.com wrote:
 
  From: Jose Perez Rodriguez juangmgald...@gmail.com
  Subject: Help with PKG_PATH=
  To: misc@openbsd.org
  Date: Thursday, May 14, 2009, 6:41 PM
  Today i was installing OpenBSD 4.5
  and i type:
  export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
  chmod u=rwx /home
  PKG_CACHE=/home
  pkg_add k3b
  
  But when i type pkg_add k3b, is not working, and the url
  says 
  ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;.
  Strange, isn't it?
  (the double //) I'ts not my fault, so i don't what what
  happens.
  
  Thank you very much.
 
 Please correct the typo in the ftp url, and delete the last slash (/) 
  ^

there's no problem with that.  it used to be required, even.

 
 Regards.
 

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



ADSL2+ PCI card

2009-05-14 Thread John Bond
Hello,

Im looking into bulding a home rourter device and my obvious OS choice
is OpenBSD however im strugeling to find an ADSL2+ pci cards which i
can use.  I have only managed to find to devices which may work

snagoma data card s519 --
http://www.sangoma.com/products_and_solutions/hardware/data_networking/s519.html
or possibly the
Viking PCI ADSL2+ Modem Card -- http://www.yawarra.com.au/pdfs/XC-P-ADSL2-V.pdf

does anyone have any expirence with these cards and know if they do
work with OpenBSD or know if they are better options

cheers



Re: ADSL2+ PCI card

2009-05-14 Thread Russell Howe

John Bond wrote:

Hello,

Im looking into bulding a home rourter device and my obvious OS choice
is OpenBSD however im strugeling to find an ADSL2+ pci cards which i
can use.  I have only managed to find to devices which may work

snagoma data card s519 --
http://www.sangoma.com/products_and_solutions/hardware/data_networking/s519.html
or possibly the
Viking PCI ADSL2+ Modem Card -- http://www.yawarra.com.au/pdfs/XC-P-ADSL2-V.pdf

does anyone have any expirence with these cards and know if they do
work with OpenBSD or know if they are better options


These should work fine - the S518 presents itself as a special ADSL 
controller on the PCI bus, but AFAIK the 519 is actually an ethernet 
chip (Realtek 8139?) paired up with an ADSL modem on a PCI card, so all 
the computer sees is an ethernet card.


I think you configure the ADSL modem by telnetting to it through the 
ethernet card, but I'm not sure.


--
Russell Howe
rh...@bmtmarinerisk.com



Re: CUPS Printing Problem

2009-05-14 Thread Jacob Meuser
On Thu, May 14, 2009 at 12:41:16PM -0700, Darrin Chandler wrote:
 or forget CUPS and do it the simple way:
 http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/

looks to me like most deskjets (which the OP has) use hpijs/hplip,
pcl3 or gutenprint.  not foo2zjs.  actually, it looks like *no*
deskjets are supported by foo2zjs.

how do I know that?  install the foomatic-db-engine package and use
`foomatic-ppdfile -P DeskJet'.

or look on openprinting.org.

forget CUPS is good advice though ;)

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Relayd

2009-05-14 Thread (private) HKS
On Thu, May 14, 2009 at 2:22 PM, Derek Buttineau de...@csolve.net wrote:
 I've been experimenting some with using relayd to load balance
 incoming smtp, pop3 and imap and it seems to work wonderfully with
 relays, unfortunately I cannot use redirects since I need to direct to
 different server pools depending on the originating source IP.  The
 only thing preventing me from deploying this is I need the connections
 to be transparent.

 OpenBSD 4.4 introduced a transparent key word, but for the life of me
 I cannot get this to work.  If configured as outlined in the man page,
 relayd fails to start complaining about an interface missing from the
 configuration.  If an interface is specified, relayd starts but
 connections time out immediately:

 relay maildelivery, session 4 (1 active), 0, 66.159.122.2 -
 10.10.19.4:25, connect timeout

 When I  trace the packets, I can see the connection being made to
 10.10.19.4, and a reply issued, but the time out still happens, so I'm
 at a complete loss.  Has anyone been able to get transparent relays
 configured?  I'd appreciate any help anyone can provide.

 On another note.  One thing that would be nice to see in relayd is the
 ability to specify a source ip or table in the redirect definition as
 that would eliminate the need for a relay for this configuration.

 Thanks.

 --
 Regards,

 Derek Buttineau
 Internet Systems Developer
 Compu-SOLVE Internet Services
 Compu-SOLVE Technologies, Inc

 Phone:  705-725-1212 x255
 E-Mail:  de...@csolve.net



Need: relayd.conf, pf.conf, dmesg.

-HKS



Re: ADSL2+ PCI card

2009-05-14 Thread John Bond
On Thu, May 14, 2009 at 9:16 PM, Russell Howe rh...@bmtmarinerisk.com wrote:

 These should work fine - the S518 presents itself as a special ADSL
 controller on the PCI bus, but AFAIK the 519 is actually an ethernet chip
 (Realtek 8139?) paired up with an ADSL modem on a PCI card, so all the
 computer sees is an ethernet card.

 I think you configure the ADSL modem by telnetting to it through the
 ethernet card, but I'm not sure.

Thanks for your reposne russell,  what i have read agrees with your
response however i wasn't sure if the rel8139 chip was supported, i
couldn't find it on the hardware list



Re: ADSL2+ PCI card

2009-05-14 Thread System Administrator
On 14 May 2009 at 21:29, John Bond wrote:

 On Thu, May 14, 2009 at 9:16 PM, Russell Howe rh...@bmtmarinerisk.com wrote:
 
  These should work fine - the S518 presents itself as a special ADSL
  controller on the PCI bus, but AFAIK the 519 is actually an ethernet chip
  (Realtek 8139?) paired up with an ADSL modem on a PCI card, so all the
  computer sees is an ethernet card.
 
  I think you configure the ADSL modem by telnetting to it through the
  ethernet card, but I'm not sure.
 
 Thanks for your reposne russell,  what i have read agrees with your
 response however i wasn't sure if the rel8139 chip was supported, i
 couldn't find it on the hardware list
 

man 4 rl



Re: CUPS Printing Problem

2009-05-14 Thread Darrin Chandler
On Thu, May 14, 2009 at 08:19:38PM +, Jacob Meuser wrote:
 On Thu, May 14, 2009 at 12:41:16PM -0700, Darrin Chandler wrote:
  or forget CUPS and do it the simple way:
  http://erdelynet.com/tech/openbsd/using-foo2zjs-with-openbsd-lpd/
 
 looks to me like most deskjets (which the OP has) use hpijs/hplip,
 pcl3 or gutenprint.  not foo2zjs.  actually, it looks like *no*
 deskjets are supported by foo2zjs.
 
 how do I know that?  install the foomatic-db-engine package and use
 `foomatic-ppdfile -P DeskJet'.
 
 or look on openprinting.org.
 
 forget CUPS is good advice though ;)

My old page (http://stilyagin.com/darrin/blog/2007/05/16/2200/) used
hpijs, and that worked great for me.

-- 
Darrin Chandler|  Phoenix BSD User Group  |  MetaBUG
dwchand...@stilyagin.com   |  http://phxbug.org/  |  http://metabug.org/
http://www.stilyagin.com/  |  Daemons in the Desert   |  Global BUG Federation



Re: Help with PKG_PATH=

2009-05-14 Thread Mike Erdely
On Thu, May 14, 2009 at 01:39:13PM -0700, Fortunato wrote:
   # pwd
   /root/Desktop
   # ls -l openbgpd-4.4.1.tgz  

   -rw-r--r--  1 root  wheel  163070 May 13 18:08 openbgpd-4.4.1.tgz
   # export PKG_PATH=/root/Desktop
   # pkg_add openbgpd-4.4.1.tgz

   Can't find openbgpd-4.4.1.tgz
   /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

openbgpd is not a package.  It's included in the base operating system
(assuming you're running OpenBSD).

$ which bgpd
/usr/sbin/bgpd

-ME



Re: Help with PKG_PATH=

2009-05-14 Thread Jacob Meuser
On Thu, May 14, 2009 at 01:39:13PM -0700, Fortunato wrote:

 I'm also having a problem but with PKG_PATH:
 
   # pwd
   /root/Desktop
   # ls -l openbgpd-4.4.1.tgz  

   -rw-r--r--  1 root  wheel  163070 May 13 18:08 openbgpd-4.4.1.tgz
   # export PKG_PATH=/root/Desktop
   # pkg_add openbgpd-4.4.1.tgz

   Can't find openbgpd-4.4.1.tgz
   /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

openbgdp-4.4.1.tgz is a source tarball, not an OpenBSD binary package
(imo, adding '-op' [Openbsd Package] to the package names would be a
good way to avoid this confusion, but anyway) and OpenBGPD is bgpd(8)
on OpenBSD.  if you want a newer version of OpenBGPD than what's in
OpenBSD 4.4, it's probably easiest to upgrade to 4.5.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: Relayd

2009-05-14 Thread Derek Buttineau

On 2009-May-14, at 4:25 PM, (private) HKS wrote:


Need: relayd.conf, pf.conf, dmesg.

-HKS




I've posted the relayd.conf and pf.conf before, see here:

http://www.nabble.com/Transparent-Reverse-Proxy-with-relayd-tc20389424.html

dmesg is as follows:

OpenBSD 4.4 (GENERIC.MP) #1812: Tue Aug 12 17:22:53 MDT 2008
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/ 
GENERIC.MP

real mem = 3474579456 (3313MB)
avail mem = 3371057152 (3214MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xee000 (68 entries)
bios0: vendor HP version P58 date 01/24/2008
bios0: HP ProLiant DL360 G5
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SPCR MCFG HPET SPMI ERST APIC  BERT HEST
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2333.72 MHz
cpu0:  
FPU 
,VME 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,APIC 
,SEP 
,MTRR 
,PGE 
,MCA 
,CMOV 
,PAT 
,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 333MHz
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2333.42 MHz
cpu1:  
FPU 
,VME 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,APIC 
,SEP 
,MTRR 
,PGE 
,MCA 
,CMOV 
,PAT 
,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu1: 4MB 64b/line 16-way L2 cache
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2333.42 MHz
cpu2:  
FPU 
,VME 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,APIC 
,SEP 
,MTRR 
,PGE 
,MCA 
,CMOV 
,PAT 
,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu2: 4MB 64b/line 16-way L2 cache
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5345 @ 2.33GHz, 2333.42 MHz
cpu3:  
FPU 
,VME 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,APIC 
,SEP 
,MTRR 
,PGE 
,MCA 
,CMOV 
,PAT 
,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS- 
CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu3: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 8 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0 apid 9 pa 0xfec8, version 20, 24 pins
acpiprt0 at acpi0: bus 1 (IP2P)
acpiprt1 at acpi0: bus 11 (IPE1)
acpiprt2 at acpi0: bus 10 (IPE4)
acpiprt3 at acpi0: bus 16 (P2P2)
acpiprt4 at acpi0: bus 9 (PT02)
acpiprt5 at acpi0: bus 6 (PT03)
acpiprt6 at acpi0: bus 19 (PT04)
acpiprt7 at acpi0: bus 3 (NB01)
acpiprt8 at acpi0: bus 5 (NB02)
acpiprt9 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpicpu1 at acpi0
acpicpu2 at acpi0
acpicpu3 at acpi0
acpitz0 at acpi0: critical temperature 31 degC
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 5000P Host rev 0xb1
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0xb1
pci1 at ppb0 bus 9
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 10
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 11
ppb3 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci4 at ppb3 bus 14
ppb4 at pci2 dev 2 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 15
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 16
em0 at pci6 dev 1 function 0 Intel PRO/1000MT (82546EB) rev 0x01:  
apic 9 int 0 (irq 5), address 00:11:0a:65:aa:8a
em1 at pci6 dev 1 function 1 Intel PRO/1000MT (82546EB) rev 0x01:  
apic 9 int 1 (irq 7), address 00:11:0a:65:aa:8b

ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0xb1
pci7 at ppb6 bus 6
ciss0 at pci7 dev 0 function 0 Hewlett-Packard Smart Array rev 0x03:  
apic 8 int 16 (irq 5)

ciss0: 1 LD, HW rev 3, FW 4.12/4.12
scsibus0 at ciss0: 1 targets, initiator 1
sd0 at scsibus0 targ 0 lun 0: HP, LOGICAL VOLUME, 4.12 SCSI3 0/ 
direct fixed
sd0: 34699MB, 4423 cyl, 255 head, 63 sec, 512 bytes/sec, 71065440 sec  
total

ppb7 at pci0 dev 4 function 0 Intel 5000 PCIE x8 rev 0xb1
pci8 at ppb7 bus 19
ppb8 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0xb1
pci9 at ppb8 bus 22
ppb9 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0xb1
pci10 at ppb9 bus 2
ppb10 at pci10 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci11 at ppb10 bus 3
bnx0 at pci11 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 8 int  
18 (irq 10)

ppb11 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0xb1
pci12 at ppb11 bus 4
ppb12 at pci12 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3
pci13 at ppb12 bus 5
bnx1 at pci13 dev 0 function 0 Broadcom BCM5708 rev 0x12: apic 8 int  
19 (irq 10)

pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0xb1
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0xb1
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0xb1
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0xb1
pchb5 at pci0 

Re: Help with PKG_PATH=

2009-05-14 Thread Tomáš Bodžár
Eee???

http://www.openbgpd.org/

Why are you trying something with some package?OpenBGPD is in base.

And /root/Desktop  ? Are you using Firefox under root?Crazy.

2009/5/14 Fortunato fortunato.montre...@earthlink.net:
 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
 Jacob Meuser
 Sent: Thursday, May 14, 2009 12:48 PM
 To: misc@openbsd.org
 Subject: Re: Help with PKG_PATH=

 On Thu, May 14, 2009 at 11:30:52AM -0700, Francisco Valladolid Hdez.
wrote:
  Hi
 
 
  --- On Thu, 5/14/09, Jose Perez Rodriguez juangmgald...@gmail.com
wrote:
 
   From: Jose Perez Rodriguez juangmgald...@gmail.com
   Subject: Help with PKG_PATH=
   To: misc@openbsd.org
   Date: Thursday, May 14, 2009, 6:41 PM
   Today i was installing OpenBSD 4.5
   and i type:
   export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
   chmod u=rwx /home
   PKG_CACHE=/home
   pkg_add k3b
  
   But when i type pkg_add k3b, is not working, and the url
   says 
   ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;.
   Strange, isn't it?
   (the double //) I'ts not my fault, so i don't what what
   happens.
  
   Thank you very much.
 
  Please correct the typo in the ftp url, and delete the last slash (/)
 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B 
^

 there's no problem with that. B it used to be required, even.

 
  Regards.
 

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org

 Buon giorno,

 I'm also having a problem but with PKG_PATH:

 B # pwd
 B /root/Desktop
 B # ls -l openbgpd-4.4.1.tgz
 B -rw-r--r-- B 1 root B wheel B 163070 May 13 18:08 openbgpd-4.4.1.tgz
 B # export PKG_PATH=/root/Desktop
 B # pkg_add openbgpd-4.4.1.tgz
 B Can't find openbgpd-4.4.1.tgz
 B /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

 I've also tried a direct download:

 B # export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/OpenBGPD
 B # pkg_add openbgpd-4.4.1.tgz
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Can't find openbgpd-4.4.1.tgz
 B /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error
 B # uname -a
 B OpenBSD NY.tpn-af.mil 4.4 GENERIC#1021 i386

 I suspect this has more to do with the actual package. Any ideas?

 Ciao for now,





--
http://www.openbsd.org/lyrics.html



Re: Help with PKG_PATH=

2009-05-14 Thread Fortunato
Newbie slap to head - D'OH!

I'm gonna have to memorize the standard package:

  http://www.openbsd.org/faq/faq1.html#Included

Dankeschoen...

-Original Message-
From: Mike Erdely m...@erdelynet.com
Sent: May 14, 2009 1:59 PM
To: Fortunato fortunato.montre...@earthlink.net
Cc: misc@openbsd.org
Subject: Re: Help with PKG_PATH=

On Thu, May 14, 2009 at 01:39:13PM -0700, Fortunato wrote:
   # pwd
   /root/Desktop
   # ls -l openbgpd-4.4.1.tgz 
 
   -rw-r--r--  1 root  wheel  163070 May 13 18:08 openbgpd-4.4.1.tgz
   # export PKG_PATH=/root/Desktop
   # pkg_add openbgpd-4.4.1.tgz   
 
   Can't find openbgpd-4.4.1.tgz
   /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

openbgpd is not a package.  It's included in the base operating system
(assuming you're running OpenBSD).

$ which bgpd
/usr/sbin/bgpd

-ME



Re: Help with PKG_PATH=

2009-05-14 Thread Tomáš Bodžár
It doesn't matter because it leads to error in future.You will be
learned to work as root and you will often forgot use normal user
account.You can trust me.I saw it many times before even with more
knowledgeable people in Unix area then I'm.

Dne 14. kvDten 2009 23:11 Fortunato
fortunato.montre...@earthlink.net napsal(a):
 It's not a production system, just a sandbox.

 Yeah... I'm gonna have to memorize the standard packages -
http://www.openbsd.org/faq/faq1.html#Included

 -Original Message-
From: TomC!E! BodEC!r tomas.bod...@gmail.com
Sent: May 14, 2009 2:08 PM
To: Fortunato fortunato.montre...@earthlink.net
Cc: OpenBSD-misc list misc@openbsd.org
Subject: Re: Help with PKG_PATH=

Eee???

http://www.openbgpd.org/

Why are you trying something with some package?OpenBGPD is in base.

And /root/Desktop B ? Are you using Firefox under
root?Crazy.

2009/5/14 Fortunato fortunato.montre...@earthlink.net:
 -Original Message-
 From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
Of
 Jacob Meuser
 Sent: Thursday, May 14, 2009 12:48 PM
 To: misc@openbsd.org
 Subject: Re: Help with PKG_PATH=

 On Thu, May 14, 2009 at 11:30:52AM -0700, Francisco Valladolid Hdez.
wrote:
  Hi
 
 
  --- On Thu, 5/14/09, Jose Perez Rodriguez juangmgald...@gmail.com
wrote:
 
   From: Jose Perez Rodriguez juangmgald...@gmail.com
   Subject: Help with PKG_PATH=
   To: misc@openbsd.org
   Date: Thursday, May 14, 2009, 6:41 PM
   Today i was installing OpenBSD 4.5
   and i type:
   export PKG_PATH=ftp://tp.openbsd.org/pub/OpenBSD/4.5/packages/i386/
   chmod u=rwx /home
   PKG_CACHE=/home
   pkg_add k3b
  
   But when i type pkg_add k3b, is not working, and the url
   says 
   ftp://tp.openbsd.org//pub/OpenBSD/4.5/packages/i386/;.
   Strange, isn't it?
   (the double //) I'ts not my fault, so i don't what what
   happens.
  
   Thank you very much.
 
  Please correct the typo in the ftp url, and delete the last slash (/)
 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B 
^

 there's no problem with that. B it used to be required, even.

 
  Regards.
 

 --
 jake...@sdf.lonestar.org
 SDF Public Access UNIX System - http://sdf.lonestar.org

 Buon giorno,

 I'm also having a problem but with PKG_PATH:

 B # pwd
 B /root/Desktop
 B # ls -l openbgpd-4.4.1.tgz
 B -rw-r--r-- B 1 root B wheel B 163070 May 13 18:08 openbgpd-4.4.1.tgz
 B # export PKG_PATH=/root/Desktop
 B # pkg_add openbgpd-4.4.1.tgz
 B Can't find openbgpd-4.4.1.tgz
 B /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

 I've also tried a direct download:

 B # export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/OpenBGPD
 B # pkg_add openbgpd-4.4.1.tgz
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Error from
ftp://ftp.openbsd.org//pub/OpenBSD/OpenBGPD/openbgpd-4.4.1.tgz:
 B ftp: Writing -: Broken pipe
 B Can't find openbgpd-4.4.1.tgz
 B /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error
 B # uname -a
 B OpenBSD NY.tpn-af.mil 4.4 GENERIC#1021 i386

 I suspect this has more to do with the actual package. Any ideas?

 Ciao for now,





--
http://www.openbsd.org/lyrics.html





--
http://www.openbsd.org/lyrics.html



Re: ADSL2+ PCI card

2009-05-14 Thread Rod Whitworth
On Thu, 14 May 2009 20:55:22 +0100, John Bond wrote:

Hello,

Im looking into bulding a home rourter device and my obvious OS choice
is OpenBSD however im strugeling to find an ADSL2+ pci cards which i
can use.  I have only managed to find to devices which may work

snagoma data card s519 --
http://www.sangoma.com/products_and_solutions/hardware/data_networking/s519.html
or possibly the
Viking PCI ADSL2+ Modem Card -- http://www.yawarra.com.au/pdfs/XC-P-ADSL2-V.pdf

does anyone have any expirence with these cards and know if they do
work with OpenBSD or know if they are better options


I have no experience with either BUT I do know that the Viking just
looks like a Realtek NIC to OpenBSD. That was done to make the
provision of drivers unnecessary.

HTH
Rod/
--

*** NOTE *** Please DO NOT CC me. I am subscribed to the list.
Mail to the sender address that does not originate at the list server is 
tarpitted. The reply-to: address is provided for those who feel compelled to 
reply off list. Thankyou.

Rod/
/earth: write failed, file system is full
cp: /earth/creatures: No space left on device



Re: Help with PKG_PATH=

2009-05-14 Thread Tomáš Bodžár
;-)

It's nothing IT specific.People just make mistakes.Even me.But there
is a possibility that someone can learn from it :-)

PS:Everyone is newbie.We will be pro in coffin :-D

2009/5/14 Fortunato fortunato.montre...@earthlink.net:
 Newbie slap to head - D'OH!

 I'm gonna have to memorize the standard package:

 B http://www.openbsd.org/faq/faq1.html#Included

 Dankeschoen...

 -Original Message-
From: Mike Erdely m...@erdelynet.com
Sent: May 14, 2009 1:59 PM
To: Fortunato fortunato.montre...@earthlink.net
Cc: misc@openbsd.org
Subject: Re: Help with PKG_PATH=

On Thu, May 14, 2009 at 01:39:13PM -0700, Fortunato wrote:
 B  # pwd
 B  /root/Desktop
 B  # ls -l openbgpd-4.4.1.tgz
 B  -rw-r--r-- B 1 root B wheel B 163070 May 13 18:08 openbgpd-4.4.1.tgz
 B  # export PKG_PATH=/root/Desktop
 B  # pkg_add openbgpd-4.4.1.tgz
 B  Can't find openbgpd-4.4.1.tgz
 B  /usr/sbin/pkg_add: openbgpd-4.4.1.tgz:Fatal error

openbgpd is not a package. B It's included in the base operating system
(assuming you're running OpenBSD).

$ which bgpd
/usr/sbin/bgpd

-ME





--
http://www.openbsd.org/lyrics.html



Re: ADSL2+ PCI card

2009-05-14 Thread John Bond
On Thu, May 14, 2009 at 10:32 PM, Rod Whitworth glis...@witworx.com wrote:
 I have no experience with either BUT I do know that the Viking just
 looks like a Realtek NIC to OpenBSD. That was done to make the
 provision of drivers unnecessary.

I just got the following response from a tech at traverse.com.au which
inidicates it does work, thanks for he response

The Viking uses an RTL8139 NIC, so it appears as ethernet card and
will work with any O/S that supports the 8139.
So there will be no problems with xBSD, I've actually tried pfSense
with a Viking at home and it worked fine.



Re: azalia

2009-05-14 Thread Jacob Meuser
On Wed, May 13, 2009 at 11:24:29PM +0200, Peter Hessler wrote:
 On some systems, when I have muted the sound, and then adjust it up and
 down using the hardware keys, it unmutes it for me.  I'm not 100% sure I
 want this, but it may be the expected behaviour.

gain and mute are always set in the same command.  that's per Intel's
HDA specs.  apparently there are some codecs that have the feature
where increasing the gain and muting in the same command results in
increasing the gain and *un*muting.  either that or the codecs are
broken, or maybe the driver needs a DELAY() after setting gain/mute
on each channel, I really don't know.  I'm only aware of this happening
with Conexant codecs, and Conexant doesn't have publicly available
datasheets for their HDA codecs.

however, the way outputs.master (which is also controlled by both
keyboard volume keys and extra hardware volume buttons) currently works
on azalia  is probably adding to the problem.

usually outputs.master.slaves will contain both headphone and speaker
gain controls, so increasing outputs.master increases the gain on both the
headphones and the speaker.

and if jack-sense-spaker-muting is active (should be in most codes by
default, at least in -current) plugging in the headphones/line-out should
cause the speaker to mute.

now if you plug in and the speaker mutes, then you adjust the volume
with outputs.master (either directly or with the keys/buttons), it
could unmute the speaker on codecs with the above mentioned feature.
this surely is not desired.  the obvious fix is to make outputs.master
not change the gain on it's slaves that are muted.  I'll try to cook
up a patch for that soonish.

-- 
jake...@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org



Re: ADSL2+ PCI card

2009-05-14 Thread John Bond
On Thu, May 14, 2009 at 9:29 PM, John Bond john.r.b...@gmail.com wrote:
 Thanks for your reposne russell,  what i have read agrees with your
 response however i wasn't sure if the rel8139 chip was supported, i
 couldn't find it on the hardware list

it has been pointed out to me that i cant read and it is clearly
stated that the  REL8139 chip is supported by the rl
(http://www.openbsd.org/cgi-bin/man.cgi?query=rlarch=i386sektion=4)
driver.  It is clearly stated on the hardware compatibility list,
under the heading of RealTek 8129/8139-based adapters.  sorry for
not reading the manual



Re: OpenBSD server with samba and openldap

2009-05-14 Thread Paul M

I recall seeing in the samba docs that setting the account info in
samba could optionally also add the entries on the unix side - meaning
you only need to set set it once. I'm hazy on the details, perhaps look
into alternatives to using LDAP. When I've done this I've always
entered them separately.

One unrelated point I'd like to make is performance - I've found
really annoying connection delays, particularly with word and excel.
Transfer rates are ok, it's opening and saving files that's an
issue.
Extensive googling and I could make it tolerable at best. As this is
for a client, it's proved to be an embarasment. I would dearly love to
find I'm doing something wrong, and I expect that I will, but my
advice would be to check it out without committing yourself, if
that's possible.
I did find one article on the net that said that all bsd's suffer
performance issues with samba, and the Samba docs do seem to be
completely linux-centric.
I'll check out the link below.


paul


On 14/05/2009, at 8:25 PM, BSD nuub wrote:


Dear misc@ readers,
I'm planning to set up a OpenBSD 4.5 based server serving a local
network with Windows XP based client computers.
There's no mention of this in the OpenBSD faq, but I found a nice
guide that seems to be pretty recent and up-to-date.

http://www.kernel-panic.it/openbsd/pdc/pdc4.html
On this page, there's something that bothers me:

Please note that, though Samba account information will be stored in
LDAP, smbd(8) will still obtain the user's UNIX account information
via the standard C library calls, such as getpwnam() (see
documentation); unfortunately, OpenBSD's standard C libraries don't
support LDAP, thus forcing us to define Samba users also as local Unix
accounts.

This means a little more work for the system administrator, who will
need to define users twice, but won't affect the overall system
security since Unix users won't need to be able to logon to the
system.


Now, I'm thinking that this problem maybe can be solved with this:
http://openbsd.rutgers.edu/bsdauth/
+
http://openports.se/sysutils/login_ldap
?

Anyone else already done this in a better/smarter way?

Thanks for your time!
/bsdnuub




Having my console and kvm over ip, too

2009-05-14 Thread Jeff Ross

Hi all,

I just got a KVM over IP for use to let the folks at Command Prompt act as 
emergency remote database administrators.


http://www.startech.com/item/SV441HDIE-4-Port-Enhanced-Digital-KVM-Switch-Over-IP.aspx

The KVM over IP works great (even without X) but I've been spoiled by my 
serial consoles.


Now when I reboot a server via the KVM, I see the bios and more importantly 
for me the MegaRAID bios before boot (which I couldn't via the serial 
console), but as soon as booting starts and the switching console to com0 
line appears, no more output until the login prompt.


I've read the FAQ again and searched the archives and suspect the answer is 
No., but is there a way I'm missing to switch the console to com0 and still 
get output to the screen?


Many thanks,

Jeff Ross



Re: OpenBSD server with samba and openldap

2009-05-14 Thread richardtoohey
Quoting Paul M l...@no-tek.com:

 I recall seeing in the samba docs that setting the account info in
 samba could optionally also add the entries on the unix side - meaning
 you only need to set set it once. I'm hazy on the details, perhaps look
 into alternatives to using LDAP. When I've done this I've always
 entered them separately.
 
 One unrelated point I'd like to make is performance - I've found
 really annoying connection delays, particularly with word and excel.
 Transfer rates are ok, it's opening and saving files that's an
 issue.
 Extensive googling and I could make it tolerable at best. As this is
 for a client, it's proved to be an embarasment. I would dearly love to
 find I'm doing something wrong, and I expect that I will, but my
 advice would be to check it out without committing yourself, if
 that's possible.
 I did find one article on the net that said that all bsd's suffer
 performance issues with samba,[cut]

Have you got a link?

Maybe it was fixed/improved by this?

http://www.vnode.ch/fixing_seekdir

[end-cut] and the Samba docs do seem to be
 completely linux-centric.
 I'll check out the link below.
 
 
 paul
 
 
 On 14/05/2009, at 8:25 PM, BSD nuub wrote:
 
  Dear misc@ readers,
  I'm planning to set up a OpenBSD 4.5 based server serving a local
  network with Windows XP based client computers.
  There's no mention of this in the OpenBSD faq, but I found a nice
  guide that seems to be pretty recent and up-to-date.
 
  http://www.kernel-panic.it/openbsd/pdc/pdc4.html
  On this page, there's something that bothers me:
 
  Please note that, though Samba account information will be stored in
  LDAP, smbd(8) will still obtain the user's UNIX account information
  via the standard C library calls, such as getpwnam() (see
  documentation); unfortunately, OpenBSD's standard C libraries don't
  support LDAP, thus forcing us to define Samba users also as local
 Unix
  accounts.
 
  This means a little more work for the system administrator, who will
  need to define users twice, but won't affect the overall system
  security since Unix users won't need to be able to logon to the
  system.
 
 
  Now, I'm thinking that this problem maybe can be solved with this:
  http://openbsd.rutgers.edu/bsdauth/
  +
  http://openports.se/sysutils/login_ldap
  ?
 
  Anyone else already done this in a better/smarter way?
 
  Thanks for your time!
  /bsdnuub



Re: can not use USB drive with recent snapshot

2009-05-14 Thread Tony Abernethy
Otto Moerbeek wrote
 
 Thanks for the report, but please also provide the output of fdisk.
 We are working on a more strict mbr validation, but this is all quite
 tricky and will take some iterations to get right. 
 
This thing seems to be aimed at reading my mind.
Not what is IN my mind, but what SHOULD BE in my mind.
Loverly if you can pull it off.

Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos)
Available disks are: sd0 sd1.
Which one is the root disk? (or 'done') [sd0] sd1
Root filesystem? [sd1a]
Checking root filesystem (fsck -fp /dev/sd1a)...OK.
Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK.
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac)
bound to 192.168.2.12 -- renewal in 905174339 seconds.
Do you want to do any manual network configuration? [no]
Force checking of non-root filesystems? [yes] no
fsck -p /dev/sd0a...1 is after 0, ok
2 is after 0, ok
0 is before 1, ok
2 is after 1, ok
0 is before 2, ok
1 is before 2, ok
1 is after 0, ok
2 is after 0, ok
0 is before 1, ok
2 is after 1, ok
0 is before 2, ok
1 is before 2, ok
FAILED. You must fsck /dev/sd0a manually.
#

Cause:
upgrade on T60 where sd1 is OpenBSD USB flash drive 
   and sd0 is the NTFS hard drive.
Install was on T41 where sd0 is OpenBSD flash drive 
   and wd0 is the NTFS hard drive.
Something got confused. Understandably.
Holds together remarkably well, considering!
Looks like I need TWO flash drives: for sd0a and for sd1a.

following are dmesg fdisk and disklabel for T60 and T41

T60 dmesg
OpenBSD 4.5-current (RAMDISK_CD) #148: Wed May 13 12:44:58 MDT 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (GenuineIntel 686-class) 1.67
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xT
PR
real mem  = 1063677952 (1014MB)
avail mem = 1021804544 (974MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/29/06, BIOS32 rev. 0 @ 0xfd6b0,
SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version 79ETC1WW (2.01 ) date 09/29/2006
bios0: LENOVO 1953DDU
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT
SSDT
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 0xd/0x1000
0xdc000/0x4000! 0xe/0x1!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured
Intel 82801GB HD Audio rev 0x02 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20
(irq 11)
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 1
int 16 (irq 11), address 00:15:58:7d:ad:11
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 21
(irq 11)
pci2 at ppb1 bus 3
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 1
int 17 (irq 11), MoW1, address 00:18:de:b0:54:13
ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 22
(irq 11)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 23
(irq 11)
pci4 at ppb3 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16
(irq 11)
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17
(irq 11)
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18
(irq 11)
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19
(irq 11)
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19
(irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci5 at ppb4 bus 21
cbb0 at pci5 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16
(irq 11)
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM
disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at 

Re: can not use USB drive with recent snapshot

2009-05-14 Thread Robert
On Thu, 14 May 2009 18:01:25 -0500
Tony Abernethy t...@servacorp.com wrote:

 Otto Moerbeek wrote
  
  Thanks for the report, but please also provide the output of fdisk.
  We are working on a more strict mbr validation, but this is all
  quite tricky and will take some iterations to get right. 
  
 This thing seems to be aimed at reading my mind.
 Not what is IN my mind, but what SHOULD BE in my mind.
 Loverly if you can pull it off.
 
 Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos)
 Available disks are: sd0 sd1.
 Which one is the root disk? (or 'done') [sd0] sd1
 Root filesystem? [sd1a]
 Checking root filesystem (fsck -fp /dev/sd1a)...OK.
 Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK.
 DHCPREQUEST on em0 to 255.255.255.255 port 67
 DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac)
 bound to 192.168.2.12 -- renewal in 905174339 seconds.
 Do you want to do any manual network configuration? [no]
 Force checking of non-root filesystems? [yes] no
 fsck -p /dev/sd0a...1 is after 0, ok
 2 is after 0, ok
 0 is before 1, ok
 2 is after 1, ok
 0 is before 2, ok
 1 is before 2, ok
 1 is after 0, ok
 2 is after 0, ok
 0 is before 1, ok
 2 is after 1, ok
 0 is before 2, ok
 1 is before 2, ok
 FAILED. You must fsck /dev/sd0a manually.
 #
 
 Cause:
 upgrade on T60 where sd1 is OpenBSD USB flash drive 
and sd0 is the NTFS hard drive.
 Install was on T41 where sd0 is OpenBSD flash drive 
and wd0 is the NTFS hard drive.
 Something got confused. Understandably.
 Holds together remarkably well, considering!
 Looks like I need TWO flash drives: for sd0a and for sd1a.

uhm, just guessing, but ...
so the fstab on your usb stick references sd0, but the stick is now
actually connected as sd1?
the upgrade script uses the info from the fstab on the rootfile system
selected and tries to find those partitions on the wrong disk?
edit the fstab and be happy?

- Robert



Re: can not use USB drive with recent snapshot

2009-05-14 Thread Tony Abernethy
Robert wrote:
 On Thu, 14 May 2009 18:01:25 -0500
 Tony Abernethy t...@servacorp.com wrote:
 
  Otto Moerbeek wrote
   
   Thanks for the report, but please also provide the output 
 of fdisk.
   We are working on a more strict mbr validation, but this is all
   quite tricky and will take some iterations to get right. 
   
  This thing seems to be aimed at reading my mind.
  Not what is IN my mind, but what SHOULD BE in my mind.
  Loverly if you can pull it off.
  
  Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos)
  Available disks are: sd0 sd1.
  Which one is the root disk? (or 'done') [sd0] sd1
  Root filesystem? [sd1a]
  Checking root filesystem (fsck -fp /dev/sd1a)...OK.
  Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK.
  DHCPREQUEST on em0 to 255.255.255.255 port 67
  DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac)
  bound to 192.168.2.12 -- renewal in 905174339 seconds.
  Do you want to do any manual network configuration? [no]
  Force checking of non-root filesystems? [yes] no
  fsck -p /dev/sd0a...1 is after 0, ok
  2 is after 0, ok
  0 is before 1, ok
  2 is after 1, ok
  0 is before 2, ok
  1 is before 2, ok
  1 is after 0, ok
  2 is after 0, ok
  0 is before 1, ok
  2 is after 1, ok
  0 is before 2, ok
  1 is before 2, ok
  FAILED. You must fsck /dev/sd0a manually.
  #
  
  Cause:
  upgrade on T60 where sd1 is OpenBSD USB flash drive 
 and sd0 is the NTFS hard drive.
  Install was on T41 where sd0 is OpenBSD flash drive 
 and wd0 is the NTFS hard drive.
  Something got confused. Understandably.
  Holds together remarkably well, considering!
  Looks like I need TWO flash drives: for sd0a and for sd1a.
 
 uhm, just guessing, but ...
 so the fstab on your usb stick references sd0, but the stick is now
 actually connected as sd1?
 the upgrade script uses the info from the fstab on the rootfile system
 selected and tries to find those partitions on the wrong disk?
 edit the fstab and be happy?
 
 - Robert
 
Sounds like on-target guess.
Also can boot bsd.rd and fixup if wrong flash drive for the laptop.

I was happy (even) before. To actually test a system, watch how it 
tries to cope when somebody rearranged the furniture ;-)



OpenBSD samba performance

2009-05-14 Thread Paul M

On 15/05/2009, at 11:05 AM, richardtoo...@paradise.net.nz wrote:


Quoting Paul M l...@no-tek.com:


One unrelated point I'd like to make is performance - I've found
really annoying connection delays, particularly with word and excel.
Transfer rates are ok, it's opening and saving files that's an
issue.
Extensive googling and I could make it tolerable at best. As this is
for a client, it's proved to be an embarasment. I would dearly love to
find I'm doing something wrong, and I expect that I will, but my
advice would be to check it out without committing yourself, if
that's possible.
I did find one article on the net that said that all bsd's suffer
performance issues with samba,[cut]


Have you got a link?

Maybe it was fixed/improved by this?

http://www.vnode.ch/fixing_seekdir



Interesting article. I dont think this is it however, as this appears 
to be
May 2008, and the system is running 4.4. I'll be upgrading to 4.5 soon 
tho,

so I'll be looking to see if that changes anything.

I'll trawl my archived articles for that comment, but it's just 
something

that stuck in my mind.


paulm



removing a pesky file

2009-05-14 Thread Ryan Flannery
I've been in similar situations countless times, but this one is
throwing me a for a loop.

I have a file that I'm trying to remove with non-printable characters
in the name.  Additionally, some of the characters appear to be
backspace/delete/etc.

All my normal tricks with rm(1) fail.
Using vim on the directory to try and delete the entry fails.

I can get the inode of the file with ls(1), and used that to write the
following program which I thought would help, but sadly it too fails.

#include stdio.h
#include sys/types.h
#include dirent.h
#include err.h
#include unistd.h

int main(void)
{

   /* open directory */
   DIR *usr;
   if ((usr = opendir(/usr)) == NULL)
  err(1, failed to opendir);


   /* read through until we find the evil one... */
   struct dirent *entry;
   while ((entry = readdir(usr)) != NULL)
   {
  /* check against known evil inode */
  if (entry-d_fileno == 1065344)
  {
 /* got it */
 printf(found file...name length is: %d\n, entry-d_namlen);

 /* build filename as a char* */
 uint8_t i;
 for (i = 0; i  entry-d_namlen; i++)
printf(%d , entry-d_name[i]);


 /* cross fingers */
 printf(\n\nattempting to unlink...\n);
 if (unlink(entry-d_name)  0)
err(1, failure, crack 'nother beer);
  }
   }

   closedir(usr);

   return 0;
}


the program outputs the following:

found file...name length is: 194
-104 38 13 40 -22 101 -13 -4 -68 -107 69 86 49 -92 69 37 -90 -95 -52
20 27 -104 -24 -60 82 -49 46 -50 79 -70 23 -30 66 -29 56 89 29 -100
-127 59 83 -115 28 26 -121 30 81 -45 67 -53 -100 -76 103 15 109 -88 17
95 69 -102 87 -35 -41 -83 -13 -18 9 62 76 44 -52 99 33 -5 39 79 -100
49 -111 6 -64 -94 -97 19 -10 34 104 -87 100 28 125 4 -52 -101 84 -85
85 92 13 -2 -84 -11 63 125 -1 119 -67 82 27 96 -113 -79 -1 84 -87 -43
55 -14 -1 53 -124 69 -29 -65 74 27 96 -113 -71 -1 -111 75 -91 -51 -8
-81 33 -120 -58 127 85 54 -64 30 115 -1 83 44 -41 55 -25 -65 53 -124
-51 -3 -49 -41 29 -60 -12 -65 26 27 96 -39 -9 63 114 66 -2 91 -86 -105
54 -12 -65 -122 -80 104 -4 55 60 -31 -21 8 66 -6 95 -111 13 -80 44 -6

attempting to unlink...
a.out: failure, crack 'nother beer: No such file or directory


Questions:
1.  Any whacks of a clue-stick would be greatly appreciated.
2.  When I printf dirent struct's d_namlen field, is says 302...
grep'ing /usr/include, isn't this 255?  How can this happen?
3.  Passing the d_name field directly to unlink(2)... this should
work, correct?  (I tried this with a sample setup elsewhere and it
did).  Any thoughts why this would fail?

To those who are curious, the file was created when I went to unpack a
ports.tar.gz and forgot the 'z' switch... d'oh.

Anyway, I could try deleting the parent directory, but it's /usr.

-Ryan



Re: removing a pesky file

2009-05-14 Thread Philip Guenther
On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery ryan.flann...@gmail.com
wrote:
...
 I can get the inode of the file with ls(1), and used that to write the
 following program which I thought would help, but sadly it too fails.
...
   /* open directory */
   DIR *usr;
   if ((usr = opendir(/usr)) == NULL)
  err(1, failed to opendir);
...
 /* cross fingers */
 printf(\n\nattempting to unlink...\n);
 if (unlink(entry-d_name)  0)
err(1, failure, crack 'nother beer);
...
 Questions:
 1.  Any whacks of a clue-stick would be greatly appreciated.

So you listed /usr and found the problem name and then you try to
remove that file from your current directory.  Is your current
directory /usr ?


 2.  When I printf dirent struct's d_namlen field, is says 302...
 grep'ing /usr/include, isn't this 255?  How can this happen?

Hmm, what type of filesystem is /usr ?


 3.  Passing the d_name field directly to unlink(2)... this should
 work, correct?  (I tried this with a sample setup elsewhere and it
 did).  Any thoughts why this would fail?

Yes, modulus current vs listed directory issues.


Philip Guenther



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:10 PM, Philip Guenther guent...@gmail.com wrote:
 On Thu, May 14, 2009 at 5:47 PM, Ryan Flannery ryan.flann...@gmail.com
wrote:
 ...
 I can get the inode of the file with ls(1), and used that to write the
 following program which I thought would help, but sadly it too fails.
 ...
   /* open directory */
   DIR *usr;
   if ((usr = opendir(/usr)) == NULL)
  err(1, failed to opendir);
 ...
 /* cross fingers */
 printf(\n\nattempting to unlink...\n);
 if (unlink(entry-d_name)  0)
err(1, failure, crack 'nother beer);
 ...
 Questions:
 1.  Any whacks of a clue-stick would be greatly appreciated.

 So you listed /usr and found the problem name and then you try to
 remove that file from your current directory.  Is your current
 directory /usr ?

Gah!  That was it.
This is what happens when you decide to drink till ya fix it

Many Thanks
-Ryan



Re: removing a pesky file

2009-05-14 Thread Matthew Clarke
Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written:

 I've been in similar situations countless times, but this one is
 throwing me a for a loop.
 
 I have a file that I'm trying to remove with non-printable characters
 in the name.  Additionally, some of the characters appear to be
 backspace/delete/etc.
 
 All my normal tricks with rm(1) fail.

[ snip ]

Even

# pwd
/usr
# rm -i -- ??*

followed by very careful use of the y, n and Enter keys?

Matt.
-- 
With trembling hands he unfurled the ancient cracked parchment, this was
the place, it had to be. Uncertainly he began to mumble the chant rdbms,
sql , third normal formal form, java,  table, scalable. Something moved..
From outside they heard a scream and a thud. The sales department had awoken
-- .sig by Alan Cox



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke cla...@telus.net wrote:
 Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written:

 I've been in similar situations countless times, but this one is
 throwing me a for a loop.

 I have a file that I'm trying to remove with non-printable characters
 in the name.  Additionally, some of the characters appear to be
 backspace/delete/etc.

 All my normal tricks with rm(1) fail.

 [ snip ]

 Even

# pwd
/usr
# rm -i -- ??*

 followed by very careful use of the y, n and Enter keys?


Nope.  Tried that, it failed too.



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 9:48 PM, Ryan Flannery ryan.flann...@gmail.com
wrote:
 On Thu, May 14, 2009 at 9:28 PM, Matthew Clarke cla...@telus.net wrote:
 Thu, May 14, 2009 at 08:47:46PM -0400, Ryan Flannery may have written:

 I've been in similar situations countless times, but this one is
 throwing me a for a loop.

 I have a file that I'm trying to remove with non-printable characters
 in the name.  Additionally, some of the characters appear to be
 backspace/delete/etc.

 All my normal tricks with rm(1) fail.

 [ snip ]

 Even

# pwd
/usr
# rm -i -- ??*

 followed by very careful use of the y, n and Enter keys?


 Nope.  Tried that, it failed too.

Sorry, I meant to expand upon this further...
with `rm -i`, when it came to the appropriate file, the output was
horribly mucked-up (see below), and even hitting 'y + Enter' for it
failed.

r...@tarski rm -ri /usr/*
remove usr/X11R6? n
remove usr/bin? n
remove usr/games? n
remove usr/include? n
remove usr/lib? n
remove usr/libdata? n
remove usr/libexec? n
remove usr/lkm? n
remove usr/local? n
remove usr/mdec? n
remove usr/obj? n
remove usr/ports? n
remove usr/ports.tar.gz? n
remove usr/sbin? n
remove usr/share? n
~,u?}w=R1T)U7r5  +U\
remove usr/xobj? nEc?J9K%Mx/!...@ss,W7g?5Lc!{'O1@
0,z? ^[[?1;2cy M}OWDt?Yw?rB~[*6t?0h|7aBz_


the 'y' I entered is on that last line, before the big 'white space'
and the rest of the text.

the full output of `ls` in /usr/ was
r...@tarski ls usr/
X11R6
bin
games
include
lib
libdata
libexec
lkm
local
mdec
obj
ports
ports-old
ports-old2
ports.tar.gz
sbin
share
src
xobj
??(jes|?EV1$E%!L???hDRO.NO:?bBc8Y???;S?QSCK?4g?m(?_E?W]W-sn?L,Lc!{'O?
1??@??vh)d?}?L?T+U\?~,u?}?w=R?`?1?T)U7r?5?Ec?J?`?9??K%Mx/!?f...@?s?s,W7g?5?
M}OW?Dt???`Yw?rB~[*?6t??0h|7ak?Bz_??0,z



Re: removing a pesky file

2009-05-14 Thread Jordi Beltran Creix
rm `ls | grep E` would delete that file leaving others alone.

Regards,



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix
jbcreix.m...@gmail.com wrote:
 rm `ls | grep E` would delete that file leaving others alone.

 Regards,


Just for the list...
I had tried that incantation, and others involving grep, and they all failed.

Output (I just reproduced the file) from your example is:

tarski wget ftp://rt.fm/pub/OpenBSD/snapshots/ports.tar.gz
...(wget output)...
tarski  tar xf ports.tar.gz
...(tar output, lots-o-errors, obviously)...

now the file exists with the mucked-up name (see previous post for how
ls(1) displays it)
and here's what happens when I use the rm `ls | grep E` you
suggested (and I tried earlier... again with many variations)

tarski rm `ls | grep E`
~,u?}w=R1T)U7r5\4gm(_EW]W-sn^[[?1;2c: No such file or directory
  Ec?J9K%Mx/!...@ss,W7g?5
0,z: No such file or directory M}OWDt?Yw?rB~[*6t?0h|7aBz_
tarski



Re: removing a pesky file

2009-05-14 Thread Tony Abernethy
Ryan Flannery wrote:
 On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix
 jbcreix.m...@gmail.com wrote:
  rm `ls | grep E` would delete that file leaving others alone.
 
  Regards,
 

 Just for the list...
 I had tried that incantation, and others involving grep, and
 they all failed.

 Output (I just reproduced the file) from your example is:

 tarski wget ftp://rt.fm/pub/OpenBSD/snapshots/ports.tar.gz
 ...(wget output)...
 tarski  tar xf ports.tar.gz
 ...(tar output, lots-o-errors, obviously)...

 now the file exists with the mucked-up name (see previous post for how
 ls(1) displays it)
 and here's what happens when I use the rm `ls | grep E` you
 suggested (and I tried earlier... again with many variations)

 tarski rm `ls | grep E`
 ~,u?}w=R1T)U7r5\4gm(_EW]W-sn^[[?1;2c: No such file or directory
   Ec?J9K%Mx/!...@ss,W7g?5
 0,z: No such file or directory M}OWDt?Yw?rB~[*6t?0h|7aBz_
 tarski


You might try something like
mkdir /usr-new
mv /usr/[a-z0-9A-Z]* /usr-new
ls -l /usr

AFTER EVERYTHING mentionaable has been moved
rm -rf /usr
mv /usr-new /usr



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Thu, May 14, 2009 at 11:42 PM, Tony Abernethy t...@servacorp.com wrote:
 Ryan Flannery wrote:
 On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix
 jbcreix.m...@gmail.com wrote:
  rm `ls | grep E` would delete that file leaving others alone.
 
  Regards,
 

 Just for the list...
 I had tried that incantation, and others involving grep, and
 they all failed.

 Output (I just reproduced the file) from your example is:

 tarski wget ftp://rt.fm/pub/OpenBSD/snapshots/ports.tar.gz
 ...(wget output)...
 tarski  tar xf ports.tar.gz
 ...(tar output, lots-o-errors, obviously)...

 now the file exists with the mucked-up name (see previous post for how
 ls(1) displays it)
 and here's what happens when I use the rm `ls | grep E` you
 suggested (and I tried earlier... again with many variations)

 tarski rm `ls | grep E`
 ~,u?} w=R1 T)U7r 5\4gm(_EW]W-sn^[[?1;2c: No such file or directory
   Ec?J9 K%Mx/!...@s S,W7g?5
 0,z: No such file or directory M}OWDt?Yw?rB~[*6t?0h|7aBz_
 tarski


 You might try something like
 mkdir /usr-new
 mv /usr/[a-z0-9A-Z]* /usr-new
 ls -l /usr

 AFTER EVERYTHING mentionaable has been moved
 rm -rf /usr
 mv /usr-new /usr

I thought about this... moving everything out of /usr so I could just
delete the mischievous file's parent directory, which would certainly
have worked.

The /usr slice is quite hefty, and the time to move everything to a
new partition would have been a while... I kept trying to find another
way around this (which probably took way longer than it would have to
just copy everything out of /usr to a new partition  :)



Re: removing a pesky file

2009-05-14 Thread Ryan Flannery
On Fri, May 15, 2009 at 12:07 AM, Chris Kuethe chris.kue...@gmail.com wrote:
 cd /usr
 mkdir .save
 mv [A-Za-z]* .save
 rm *
 mv .save/* .



Son of a #...@!^%

Yes, that would have been *far* simpler/easier/quicker, and would have worked.
*That's* the clue-stick I was looking for.

Many Thanks



Re: removing a pesky file

2009-05-14 Thread Tony Abernethy
Ryan Flannery wrote:
 On Thu, May 14, 2009 at 11:42 PM, Tony Abernethy 
 t...@servacorp.com wrote:
  Ryan Flannery wrote:
  On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix
  jbcreix.m...@gmail.com wrote:
   rm `ls | grep E` would delete that file leaving others alone.
  
   Regards,
  
 
  Just for the list...
  I had tried that incantation, and others involving grep, and
  they all failed.
 
  Output (I just reproduced the file) from your example is:
 
  tarski wget ftp://rt.fm/pub/OpenBSD/snapshots/ports.tar.gz
  ...(wget output)...
  tarski  tar xf ports.tar.gz
  ...(tar output, lots-o-errors, obviously)...
 
  now the file exists with the mucked-up name (see previous 
 post for how
  ls(1) displays it)
  and here's what happens when I use the rm `ls | grep E` you
  suggested (and I tried earlier... again with many variations)
 
  tarski rm `ls | grep E`
  ~,u?} w=R1 T)U7r 5\4gm(_EW]W-sn^[[?1;2c: No such file or directory
Ec?J9 K%Mx/!...@s S,W7g?5
  0,z: No such file or directory 
 M}OWDt?Yw?rB~[*6t?0h|7aBz_
  tarski
 
 
  You might try something like
  mkdir /usr-new
  mv /usr/[a-z0-9A-Z]* /usr-new
  ls -l /usr
 
  AFTER EVERYTHING mentionaable has been moved
  rm -rf /usr
  mv /usr-new /usr
 
 I thought about this... moving everything out of /usr so I could just
 delete the mischievous file's parent directory, which would certainly
 have worked.
 
 The /usr slice is quite hefty, and the time to move everything to a
 new partition would have been a while... I kept trying to find another
 way around this (which probably took way longer than it would have to
 just copy everything out of /usr to a new partition  :)
 
Out of curiosits, what does 
ls -il /usr/*w=R1*
ls -il /usr/[^a-zA-Z0-9]*
produce?

You might get it with a pattern that gets nothing of value.
rm -f /usr/[^a-zA-Z0-9]*



Re: removing a pesky file

2009-05-14 Thread Navan Carson

On May 14, 2009, at 9:15 PM, Ryan Flannery wrote:


On Thu, May 14, 2009 at 10:53 PM, Jordi Beltran Creix
jbcreix.m...@gmail.com wrote:

rm `ls | grep E` would delete that file leaving others alone.

Regards,



Just for the list...
I had tried that incantation, and others involving grep, and they  
all failed.


Output (I just reproduced the file) from your example is:

tarski wget ftp://rt.fm/pub/OpenBSD/snapshots/ports.tar.gz
...(wget output)...
tarski  tar xf ports.tar.gz
...(tar output, lots-o-errors, obviously)...

now the file exists with the mucked-up name (see previous post for how
ls(1) displays it)
and here's what happens when I use the rm `ls | grep E` you
suggested (and I tried earlier... again with many variations)

tarski rm `ls | grep E`
~,u?}w=R1T)U7r5\4gm(_EW]W-sn^[[?1;2c: No such file or directory
 Ec?J9K%Mx/!...@ss,W7g?5
0,z: No such file or directory M}OWDt?Yw?rB~[*6t?0h|7aBz_
tarski




I tried your example. The oddly named entry is a directory.
rm -i * does not work, but rm -ri * does let me remove it.



Re: removing a pesky file

2009-05-14 Thread Prabhu Gurumurthy
why can't you use ls -i, find the inode, and do find . -inum INODENUM   
-exec rm {} \;


is it a list of file that you want to remove put all the files in a  
text file and do a for loop.


HTH!
Prabhu
-


On May 14, 2009, at 5:47 PM, Ryan Flannery wrote:


I've been in similar situations countless times, but this one is
throwing me a for a loop.

I have a file that I'm trying to remove with non-printable characters
in the name.  Additionally, some of the characters appear to be
backspace/delete/etc.

All my normal tricks with rm(1) fail.
Using vim on the directory to try and delete the entry fails.

I can get the inode of the file with ls(1), and used that to write the
following program which I thought would help, but sadly it too fails.

#include stdio.h
#include sys/types.h
#include dirent.h
#include err.h
#include unistd.h

int main(void)
{

  /* open directory */
  DIR *usr;
  if ((usr = opendir(/usr)) == NULL)
 err(1, failed to opendir);


  /* read through until we find the evil one... */
  struct dirent *entry;
  while ((entry = readdir(usr)) != NULL)
  {
 /* check against known evil inode */
 if (entry-d_fileno == 1065344)
 {
/* got it */
printf(found file...name length is: %d\n, entry-d_namlen);

/* build filename as a char* */
uint8_t i;
for (i = 0; i  entry-d_namlen; i++)
   printf(%d , entry-d_name[i]);


/* cross fingers */
printf(\n\nattempting to unlink...\n);
if (unlink(entry-d_name)  0)
   err(1, failure, crack 'nother beer);
 }
  }

  closedir(usr);

  return 0;
}


the program outputs the following:

found file...name length is: 194
-104 38 13 40 -22 101 -13 -4 -68 -107 69 86 49 -92 69 37 -90 -95 -52
20 27 -104 -24 -60 82 -49 46 -50 79 -70 23 -30 66 -29 56 89 29 -100
-127 59 83 -115 28 26 -121 30 81 -45 67 -53 -100 -76 103 15 109 -88 17
95 69 -102 87 -35 -41 -83 -13 -18 9 62 76 44 -52 99 33 -5 39 79 -100
49 -111 6 -64 -94 -97 19 -10 34 104 -87 100 28 125 4 -52 -101 84 -85
85 92 13 -2 -84 -11 63 125 -1 119 -67 82 27 96 -113 -79 -1 84 -87 -43
55 -14 -1 53 -124 69 -29 -65 74 27 96 -113 -71 -1 -111 75 -91 -51 -8
-81 33 -120 -58 127 85 54 -64 30 115 -1 83 44 -41 55 -25 -65 53 -124
-51 -3 -49 -41 29 -60 -12 -65 26 27 96 -39 -9 63 114 66 -2 91 -86 -105
54 -12 -65 -122 -80 104 -4 55 60 -31 -21 8 66 -6 95 -111 13 -80 44 -6

attempting to unlink...
a.out: failure, crack 'nother beer: No such file or directory


Questions:
1.  Any whacks of a clue-stick would be greatly appreciated.
2.  When I printf dirent struct's d_namlen field, is says 302...
grep'ing /usr/include, isn't this 255?  How can this happen?
3.  Passing the d_name field directly to unlink(2)... this should
work, correct?  (I tried this with a sample setup elsewhere and it
did).  Any thoughts why this would fail?

To those who are curious, the file was created when I went to unpack a
ports.tar.gz and forgot the 'z' switch... d'oh.

Anyway, I could try deleting the parent directory, but it's /usr.

-Ryan