Re: PANIC on latest source

2008-11-29 Thread Insan Praja SW

Hi Misc@ and Stuart,
On Sat, 29 Nov 2008 17:06:59 +0700, Stuart Henderson [EMAIL PROTECTED]  
wrote:



In gmane.os.openbsd.misc, you wrote:

If there's any diffs for the driver?


this backs out the commit which will have caused the problems
you saw and should restore it to working behaviour.

please can you give us details about what the machine was doing
when it crashed please? just booted, or running for a while?
if you can test, does it still happen if the network cable is
disconnected?


The machine was rebooting, after intiatiating /etc/hostname.em* scripts,  
which contains,


/etc/hostname.em0 -- onboard NIC
up
/etc/hostname.em1 -- PCI card NIC
up
media 100baseTX mediaopt full-duplex
/etc/hostname.em2 -- onboard NIC
mtu 1600
up

and it hangs. Happens even when I disconnected the cables. I had to  
disabled it from bios then it stop complaining.


Hope this helps,
Best Regards,
Insan




Index: if_em.c
===
RCS file: /cvs/src/sys/dev/pci/if_em.c,v
retrieving revision 1.198
diff -u -p -r1.198 if_em.c
--- if_em.c 28 Nov 2008 02:44:17 -  1.198
+++ if_em.c 29 Nov 2008 10:01:18 -
@@ -164,12 +164,6 @@ void em_update_stats_counters(struct em_
 void em_txeof(struct em_softc *);
 int  em_allocate_receive_structures(struct em_softc *);
 int  em_allocate_transmit_structures(struct em_softc *);
-#ifdef __STRICT_ALIGNMENT
-void em_realign(struct em_softc *, struct mbuf *, u_int16_t *);
-#else
-#define em_realign(a, b, c) /* a, b, c */
-#endif
-void em_rxfill(struct em_softc *);
 void em_rxeof(struct em_softc *, int);
 void em_receive_checksum(struct em_softc *, struct em_rx_desc *,
 struct mbuf *);
@@ -804,7 +798,6 @@ em_intr(void *arg)
if (ifp-if_flags  IFF_RUNNING) {
em_rxeof(sc, -1);
-   em_rxfill(sc);
em_txeof(sc);
}
@@ -1455,15 +1448,15 @@ em_stop(void *arg)
struct em_softc *sc = arg;
ifp = sc-interface_data.ac_if;
-   /* Tell the stack that the interface is no longer active */
-   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
-
INIT_DEBUGOUT(em_stop: begin);
em_disable_intr(sc);
em_reset_hw(sc-hw);
timeout_del(sc-timer_handle);
timeout_del(sc-tx_fifo_timer_handle);
+   /* Tell the stack that the interface is no longer active */
+   ifp-if_flags = ~(IFF_RUNNING | IFF_OACTIVE);
+
em_free_transmit_structures(sc);
em_free_receive_structures(sc);
 }
@@ -2294,54 +2287,51 @@ int
 em_get_buf(struct em_softc *sc, int i)
 {
struct mbuf*m;
-   struct em_buffer *pkt;
-   struct em_rx_desc *desc;
+   bus_dmamap_tmap;
+   struct em_buffer *rx_buffer;
int error;
-   pkt = sc-rx_buffer_area[i];
-   desc = sc-rx_desc_base[i];
-
-   if (pkt-m_head != NULL) {
-   printf(%s: em_get_buf: slot %d already has an mbuf\n,
-   sc-sc_dv.dv_xname, i);
-   return (ENOBUFS);
-   }
-
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m == NULL) {
sc-mbuf_alloc_failed++;
return (ENOBUFS);
}
-   MCLGETI(m, M_DONTWAIT, sc-interface_data.ac_if, MCLBYTES);
+   MCLGET(m, M_DONTWAIT);
if ((m-m_flags  M_EXT) == 0) {
m_freem(m);
sc-mbuf_cluster_failed++;
return (ENOBUFS);
}
m-m_len = m-m_pkthdr.len = MCLBYTES;
+
if (sc-hw.max_frame_size = (MCLBYTES - ETHER_ALIGN))
m_adj(m, ETHER_ALIGN);
-   error = bus_dmamap_load_mbuf(sc-rxtag, pkt-map, m, BUS_DMA_NOWAIT);
+   /*
+* Using memory from the mbuf cluster pool, invoke the
+* bus_dma machinery to arrange the memory mapping.
+*/
+   error = bus_dmamap_load_mbuf(sc-rxtag, sc-rx_sparemap,
+   m, BUS_DMA_NOWAIT);
if (error) {
m_freem(m);
return (error);
}
-   bus_dmamap_sync(sc-rxtag, pkt-map, 0, pkt-map-dm_mapsize,
-   BUS_DMASYNC_PREREAD);
-   pkt-m_head = m;
+   rx_buffer = sc-rx_buffer_area[i];
+   if (rx_buffer-m_head != NULL)
+   bus_dmamap_unload(sc-rxtag, rx_buffer-map);
-   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
-   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_POSTWRITE);
+   map = rx_buffer-map;
+   rx_buffer-map = sc-rx_sparemap;
+   sc-rx_sparemap = map;
-   bzero(desc, sizeof(*desc));
-   desc-buffer_addr = htole64(pkt-map-dm_segs[0].ds_addr);
+   bus_dmamap_sync(sc-rxtag, rx_buffer-map, 0,
+   rx_buffer-map-dm_mapsize, BUS_DMASYNC_PREREAD);
-   bus_dmamap_sync(sc-rxdma.dma_tag, sc-rxdma.dma_map,
-   sizeof(*desc) * i, sizeof(*desc), BUS_DMASYNC_PREWRITE);
+   rx_buffer-m_head = m;
-   sc-rx_ndescs++;
+	sc-rx_desc_base[i].buffer_addr =  

bioctl and RAID0

2008-11-29 Thread Manuel Ravasio
Hello list.
i386 PC with 3 PATA disks.
- a 60g Maxtor attached to motherboard's IDE controller
- two 160g Maxtor attached to a Promise FastTrak TX2 PCI controller

During install all 3 disks are correctly recognized and fully assigned to 
OpenBSD.
Both 160g disks have a single partition (a) spanning all disk length (from 
sector 63), RAID type.

When I run
# bioctl -c 0 -l /dev/wd1a,/dev/wd2a softraid0
the device is (AFAICT) correctly created:

# bioctl softraid0
Volume  Status   Size Device  
softraid0 0 Online   327843063808 sd0 RAID0
  0 Online   163921531904 0:0.0   noencl wd1a
  1 Online   163921531904 0:1.0   noencl wd2a
# 

On device sd0 there is a single 4.2BSD partition spanning all the disk; that's 
ok with me.

# disklabel sd0   
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: SR RAID 0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 39857
total sectors: 640318485
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:6403184850  4.2BSD   2048 163841 
  c:6403184850  unused  0 0  
#   

Then I try to create a new filesystem on the partition and I receive an error 
message:

# newfs /dev/rsd0a
newfs: wtfs: write error on block 640318484: Input/output error
# 

Now bioctl shows one disk as Offline.

# bioctl softraid0
Volume  Status   Size Device  
softraid0 0 Offline  327843063808 sd0 RAID0
  0 Offline  163921531904 0:0.0   noencl wd1a
  1 Online   163921531904 0:1.0   noencl wd2a
# 

What does this mean?
Why is the disk offline?
What am I doing wrong?

By the way, when I try to delete both sd0 and softraid0 the machine goes to a 
ddb prompt.


Thank you all,
bye,
Manuel


PS: During installation and during boot I received a few interface CRC error 
messages from wd0.
What des this mean exactly?
The disk itself is quite old, 6 years at the very least. Do these messages mean 
it is going to die soon?

Thanks again,
M.

==
dmesg right after install
==

OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD-K7(tm) Processor (AuthenticAMD 686-class, 512KB L2 cache) 550 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,MMX
real mem  = 267939840 (255MB)
avail mem = 250646528 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/02/00, BIOS32 rev. 0 @ 0xfd9c0, SMBIOS 
rev. 2.3 @ 0xf04f0 (30 entries)
bios0: vendor American Megatrends Inc. version 627.10 date 02/29/2000
bios0: ASUSteK Computer INC. K7M
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf8120/144 (7 entries)
pcibios0: PCI Interrupt Router at 000:04:0 (VIA VT82C586 ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 AMD 751 System rev 0x25
ppb0 at pci0 dev 1 function 0 AMD 751 PCI-PCI rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 4 function 0 VIA VT82C686 ISA rev 0x1b
pciide0 at pci0 dev 4 function 1 VIA VT82C571 IDE rev 0x06: ATA66, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: Maxtor 6Y060L0
wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRD-8480B, 1.00 ATAPI 5/cdrom 
removable
cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 4 function 2 VIA VT83C572 USB rev 0x0e: irq 9
uhci1 at pci0 dev 4 function 3 VIA VT83C572 USB rev 0x0e: irq 9
viaenv0 at pci0 dev 4 function 4 VIA VT82C686 SMBus rev 0x20: HWM disabled: 
24-bit timer at 3579545Hz
pciide1 at pci0 dev 13 function 0 Promise PDC20268R rev 0x02: DMA, channel 0 
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 10 for native-PCI interrupt
wd1 at pciide1 channel 0 drive 0: Maxtor 6L160P0
wd1: 16-sector PIO, LBA48, 156334MB, 320173056 sectors
wd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd2 at pciide1 channel 1 drive 1: Maxtor 6L160P0
wd2: 16-sector PIO, LBA48, 156334MB, 320173056 sectors
wd2(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5
vga1 at pci0 dev 14 function 0 Matrox MGA Millenium 2064W (Storm) rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: 

Blocking the really resourceful brutes: the time limit for max-src-conn-rate rule

2008-11-29 Thread Sandro
Hi everyone,

I don't know how many of you have noticed this, but my mailserver has become
the victim of what seems to be a new kind of dictionary attack.  I'm seeing
connections from literally hundreds of different hosts, working as an
evident botnet, that connect via ssh and try various passwords.  While I'm
not terribly concerned with the password strength of most users who have ssh
access (it's not many either), I'm still very irritated by this.  What makes
this a challenge to stop or block is the fact that each specific host only
attempts to connect once every 4-5 hours usually, though in rare instances,
it will connect every 1.5-2 hours.

What I've done this morning on the machine running pf to try and get this
under control is setup a max-src-conn-rate rule of 2/4000, and setup a
redirect from the firewall/router running openbsd/pf to the mailserver with
a pass rule so that I don't get blocked out of it myself! (Though the
mailserver is behind a router, it has a routable IP, making this option
viable). My question is, will this seemingly HUGE time interval even work in
pf?

Has anyone else seen this sort of thing, and what have you done to mitigate
this?  For the record, I know about ssh keys, and it's in fact setup on
other machines, but for various reasons, I can't enable it just yet on this
one. 



Re: libiconv problem

2008-11-29 Thread Christian Weisgerber
Stijn [EMAIL PROTECTED] wrote:

 1. don't log in remotely as root.

There is no good reason not to.  In fact, if you don't work on a
machine and just have it sitting in a corner moving packets, there
is no point in even creating a user account.

 2. don't use bash as shell for root.

Or at least understand what you are doing.

 3. and if you really want to ignore good advice 1  2, adapt your PATH 
 variable to include /usr/local/lib/.

That is complete nonsense.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Re: libiconv problem

2008-11-29 Thread Christian Weisgerber
farhan ahmed [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] ssh 10.108.128.1
 [EMAIL PROTECTED]'s password:
 -bash: can't load library 'libiconv.so.5.0'
 connection to 10.108.128.1 closed
 
 I have libiconv.so.5.0 in /usr/local/lib.

Either you don't or you screwed up your shared library cache.

Reboot the machine into single user mode, check that this library
actually exists and run ldconfig /usr/lib /usr/X11R6/lib /usr/local/lib.

Your situation illustrates why setting your root shell to some
dynamically linked shell may not be the best idea.

-- 
Christian naddy Weisgerber  [EMAIL PROTECTED]



Publicite aqui o seu negócio!

2008-11-29 Thread portaldanet . com Classificados GRÁTIS
Se nco visualizar esta pagina correctamente , clique aqui

* Conhega as diferentes formas de publicitar o seu produto ou negscio *

Anzncios online de publicagco imediata.

Faga a sua prspria gestco,  e modificagco dos anzncios online

Publicite GRATIS no portaldanet.com , com fotos e texto da sua empresa,
negscio ou produtos nas categorias do site.

Destaque na primeira pagina do portaldanet com fotos o seu produto ou
negscio e pague ss 5 euros

Faga Publicidade pelo nosso sistema de newsletters 250.000 contactos
actualizados de empresas e particulares em Portugal . contacte-nos  para
saber mais informagues.

A publicidade por e-mail tornou-se muito popular de forma a obter a sua
oferta de produtos e servigos para fora, visualizadas por milhares de
pessoas.

Na verdade a publicidade por e-mail tem varios benefmcios e vantagens que
sco difmceis de bater. Provavelmente um dos mais importantes i o facto de
os resultados de publicidade por e-mail normalmente sco praticamente
instantbneas eficazes e de resposta rapida. Muitas outras formas de
publicidade vco exigir muita pacijncia normalmente entre o tempo que for
langada a campanha e o momento em que comega a realizar vendas.

Visite alguns negscios desta semana nos links abaixo:

Portatil Acer Aspire 5634WLMi

Ilhas Minigolfe

Multinacional Procura Colaboradores

Violino Electroacustico

VW Passat 1.9 TDi

VW LUPO 1.0 CONFORTLINE

MERCEDES C 220 CDI AVANTGARDE - NOVO

MORADIA T3

Esta mensagem esta de acordo com a legislagco Europeia sobre o envio de
mensagens comerciais. Destina-se unicamente a clientes, potenciais
clientes e parceiros e nco pode ser considerada SPAM porque tem inclumdo
contacto e instrugues para remogco da nossa lista de emails. Qualquer
mensagem devera estar claramente identificada com os dados do emissor e
devera proporcionar ao receptor a hipstese de ser removida da lista
(Directiva 2000/31/CE do Parlamento Europeu; Relatsrio A5-0270/2001 do
Parlamento Europeu). ,

Se desejar  ser  retirado desta Mailing List  Clique aqui. Obrigado!



Re: libiconv problem

2008-11-29 Thread Stijn

Christian Weisgerber wrote:

Stijn [EMAIL PROTECTED] wrote:

  

1. don't log in remotely as root.



There is no good reason not to.  In fact, if you don't work on a
machine and just have it sitting in a corner moving packets, there
is no point in even creating a user account.

  

2. don't use bash as shell for root.



Or at least understand what you are doing.

  
3. and if you really want to ignore good advice 1  2, adapt your PATH 
variable to include /usr/local/lib/.



That is complete nonsense.

  
Well I'm not going to argue about the benefits of whether or not logging 
in as root, that depends on numerous reasons. There are enough threads 
about that in the archives. The point is, this guy shot his foot off 
when changing his root shell (which is probably dynamically linked) and 
locked himself out. Now, he has at least one solution to avoid that in 
the future.


Like you said so well, at least understand what you are doing.

All the best,
Stijn



Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread Ed Ahlsen-Girard

Alexander Hall wrote:

Ed Ahlsen-Girard wrote:
   OK, I've installed Samba, and gotten printcap set such that I 
printed a straight text fire, but nothing else works now that I tried 
to print other formats through gv and open-office.


Perhaps Samba is not the way to go?  Printcap below.

#$OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#:lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
lp|hpoffice:rp=hpoffice:rm=192.168.1.100:sd=/var/spool/lpd/hpoffice:af=/var/spool/lpd/hpoffice/acct:if=/usr/local/bin/smbprint:mx=0:lp=/dev/null: 



For local printing, samba does nothing. Unless your printer supports 
postcsript natively (most cheap printers don't) you need some kind of 
converting filter. For my canon i550, i'm using apsfilter combined 
with ghostscript, both available as packages/ports.


Dont know if /usr/local/bin/smbprint in your printcap is some filter 
like that or where it comes from. Can't find it in any port.


/Alexander


It's not local printing.  It's an HP OfficeJet hung on a Windows XP machine.



Re: Blocking the really resourceful brutes: the time limit for max-src-conn-rate rule

2008-11-29 Thread Darrin Chandler
 I don't know how many of you have noticed this, but my mailserver has
become
 the victim of what seems to be a new kind of dictionary attack.

I have not been paying much attention to your mailserver. ;-)

 Has anyone else seen this sort of thing, and what have you done to mitigate
 this?  For the record, I know about ssh keys, and it's in fact setup on
 other machines, but for various reasons, I can't enable it just yet on this
 one.

Security is always a trade-off. I've heard many reasons why keys don't
work for various situations and very few of them make any sense.
Whatever reason people say, it is really almost always a matter of very
slight inconvenience.

But ok, no keys for now...

Do you really need to allow ssh through your firewall from everywhere in
the world? Probably you don't. Allow it from where you need it and block
elsewhere.

Can you use authpf to only allow other ssh connections by authorized
IPs?

There are other ways, I'm sure. Pretty much all of the ways I like will
have one thing in common: deny all by default and allow specific
approved hosts/networks. The other way, the popular way, is to try to
put individual hosts in a blacklist for bad behavior. There are too many
script kiddies and zombie machines for that to be effective.

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

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: panic and uvm_fault on i386 -release and -current

2008-11-29 Thread Thomas Pfaff
On Fri, 28 Nov 2008 23:01:47 +0100
Thomas Pfaff [EMAIL PROTECTED] wrote:
[...]
 # tar -zxf ports.tar.gz
 free vnode: 0xd78023a0, type VREG, use 8, write 0, hold 1, flags 
 (VBIOONFREELIST)
   tag VT_UFS, ino 432058, on dev 4, 0 flags 0x0, effnlink 1, nlink 1
   mode 0100644, owner 0, group 0, size 2455 not locked
 panic: free vnode isn't
 Stopped at  Debugger+0x4:   leave
 RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
 DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
 ddb

I have submitted this as a PR through sendbug(1).



Re: NetFlow Dashboard

2008-11-29 Thread Diana Eichert

On Sat, 29 Nov 2008, Jason Dixon wrote:


NetFlow Dashboard is a BSD-licensed project that provides a web
interface for near real-time analysis of NetFlow traffic. It's
designed to aggregate network accounting data in such a way as to allow
easy diagnosis of traffic anomalies. It is not intended to replace
off-the-shelf utilities that measure bandwidth usage.

It's a decent PHB tool, but it has a long ways to go.  I've been
twiddling with this thing for a while and am now comfortable enough with
it to release it to the wild.  It runs fine in the default httpd(8)
chroot using mod_perl.

I plan to throw together a port this weekend.  In the meantime, feel
free to checkout a copy and try it out.  I welcome user feedback and bug
reports.

http://www.netflowdashboard.com/
http://trac.netflowdashboard.com/netflowdashboard/wiki/InstallNotes

Thanks,

--
Jason Dixon


Cool, I have lots of netflow data.

thanks

diana



Re: libiconv problem

2008-11-29 Thread Antoine Jacoutot
On Sat, 29 Nov 2008, Stijn wrote:
 Well I'm not going to argue about the benefits of whether or not logging in as
 root, that depends on numerous reasons. There are enough threads about that in
 the archives. The point is, this guy shot his foot off when changing his root
 shell (which is probably dynamically linked) and locked himself out. Now, he
 has at least one solution to avoid that in the future.

Which is?
 
 Like you said so well, at least understand what you are doing.

Do you?
Really?

-- 
Antoine



Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread Stuart Henderson
On 2008-11-29, Ed Ahlsen-Girard [EMAIL PROTECTED] wrote:
 Alexander Hall wrote:
 Ed Ahlsen-Girard wrote:
OK, I've installed Samba, and gotten printcap set such that I 
 printed a straight text fire, but nothing else works now that I tried 
 to print other formats through gv and open-office.

 Perhaps Samba is not the way to go?  Printcap below.

 #$OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

 #lp|local line printer:\
 #:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

 #rp|remote line printer:\
 #:lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
 lp|hpoffice:rp=hpoffice:rm=192.168.1.100:sd=/var/spool/lpd/hpoffice:af=/var/spool/lpd/hpoffice/acct:if=/usr/local/bin/smbprint:mx=0:lp=/dev/null:
  


 For local printing, samba does nothing. Unless your printer supports 
 postcsript natively (most cheap printers don't) you need some kind of 
 converting filter. For my canon i550, i'm using apsfilter combined 
 with ghostscript, both available as packages/ports.

 Dont know if /usr/local/bin/smbprint in your printcap is some filter 
 like that or where it comes from. Can't find it in any port.

 /Alexander

 It's not local printing.  It's an HP OfficeJet hung on a Windows XP machine.



Unless your printer supports postsript natively (most cheap printers
don't) you need some kind of converting filter.



motherboard suggestion

2008-11-29 Thread Joseph A Borg
the motherboard just died and need to replace it urgently. My usual  
hardware stockist has an Asus Maximus II in stock. I'm concerned that  
the onboard SATA  controller is not compatible with Openbsd. It's a  
Marvell 88SE6121 controller. I was going for this because it's the  
only one they have in stock with a decent number of SATA ports.


motherboard specs:
http://www.asus.com/products.aspx?modelmenu=2model=2166l1=3l2=11l3=709l4=0



Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread raven

Stuart Henderson ha scritto:

On 2008-11-29, Ed Ahlsen-Girard [EMAIL PROTECTED] wrote:
  

Alexander Hall wrote:


Ed Ahlsen-Girard wrote:
  
   OK, I've installed Samba, and gotten printcap set such that I 
printed a straight text fire, but nothing else works now that I tried 
to print other formats through gv and open-office.


Perhaps Samba is not the way to go?  Printcap below.

#$OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#:lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
lp|hpoffice:rp=hpoffice:rm=192.168.1.100:sd=/var/spool/lpd/hpoffice:af=/var/spool/lpd/hpoffice/acct:if=/usr/local/bin/smbprint:mx=0:lp=/dev/null: 

For local printing, samba does nothing. Unless your printer supports 
postcsript natively (most cheap printers don't) you need some kind of 
converting filter. For my canon i550, i'm using apsfilter combined 
with ghostscript, both available as packages/ports.


Dont know if /usr/local/bin/smbprint in your printcap is some filter 
like that or where it comes from. Can't find it in any port.


/Alexander

  

It's not local printing.  It's an HP OfficeJet hung on a Windows XP machine.





Unless your printer supports postsript natively (most cheap printers
don't) you need some kind of converting filter.
  
You can install on Windows XP a LPR support and on OpenBSD you try in 
that way  else you must have to install CUPS.


Francesco



Re: Dim console after exiting X [Radeon driver problem?]

2008-11-29 Thread Kostas Zorbadelos
On Tuesday 11 November 2008 22:55:49 Brynet wrote:
 Hi Ed,

 I've also seen this behaviour on a OptiPlex GX240, it has a ATI Rage
 128 Pro TF card, the only solution I've found is to change the depth
 to 16 instead of the default 24.

 Just add DefaultDepth 16 to your Screen section.

 I would like to hear an alternative solution, but I can't seem to tell
 the different between the two depths.

 Hope that helps.. :-)

 -Brynet

Hello,

I also see this behaviour in my system after clean installation of OpenBSD 
4.4. I didn't see this in previous versions. Here is my dmesg, I run amd64. 
Please let me know if I can provide any more information to track down the 
problem.  Iwill try to upgrade to current in the next day and see if the 
problem is present there. The workarounf DefaultDepth 16 did not work for me. 

Kostas

OpenBSD 4.4 (GENERIC) #1562: Tue Aug 12 17:15:53 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1060466688 (1011MB)
avail mem = 1029414912 (981MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf0100 (38 entries)
bios0: vendor Award Software International, Inc. version F5 date 12/21/2004
bios0: Gigabyte Technology Co., Ltd. nForce
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices HUB0(S5) HUB1(S4) USB0(S3) USB1(S3) USB2(S3) F139(S3) 
MMAC(S5) MMCI(S5) UAR1(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (HUB0)
acpiprt2 at acpi0: bus 1 (AGPB)
acpiprt3 at acpi0: bus -1 (HUB1)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3000+, 1809.01 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: AMD erratum 113 detected and fixed
cpu0: AMD erratum 89 present, BIOS upgrade may be required
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 NVIDIA nForce3 250 PCI Host rev 0xa1
pcib0 at pci0 dev 1 function 0 NVIDIA nForce3 250 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA nForce3 250 SMBus rev 0xa1
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC3200CL2.5
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC3200CL2.5
iic1 at nviic0
iic1: addr 0x4e 01=06 02=10 03=72 05=80 06=0f 0a=dd 0e=e0 0f=ff words 00=00ff 
01=06ff 02=10ff 03=72ff 04=00ff 05=80ff 06=0fff 07=00ff
ohci0 at pci0 dev 2 function 0 NVIDIA nForce3 250 USB rev 0xa1: irq 9, 
version 1.0, legacy support
ohci1 at pci0 dev 2 function 1 NVIDIA nForce3 250 USB rev 0xa1: irq 9, 
version 1.0, legacy support
ehci0 at pci0 dev 2 function 2 NVIDIA nForce3 250 USB2 rev 0xa2: irq 9
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
nfe0 at pci0 dev 5 function 0 NVIDIA nForce3 LAN rev 0xa2: irq 5, address 
00:0f:ea:ed:13:01
icsphy0 at nfe0 phy 1: ICS1893 10/100 PHY, rev. 1
auich0 at pci0 dev 6 function 0 NVIDIA nForce3 250 AC97 rev 0xa1: irq 10, 
nForce3 AC97
ac97: codec id 0x414c4790 (Avance Logic ALC850 rev 0)
audio0 at auich0
pciide0 at pci0 dev 8 function 0 NVIDIA nForce3 250 IDE rev 0xa2: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: _NEC, DVD_RW ND-3540A, 1.01 ATAPI 5/cdrom 
removable
atapiscsi1 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets, initiator 7
cd1 at scsibus1 targ 0 lun 0: TEAC, DV-516G, F4S3 ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 10 function 0 NVIDIA nForce3 250 SATA rev 0xa2: DMA
pciide1: using irq 11 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST3160812AS
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
ppb0 at pci0 dev 11 function 0 NVIDIA nForce3 250 AGP rev 0xa2
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon 9200 PRO rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp at vga1 not configured
drm at vga1 unsupported
ATI Radeon 9200 PRO Sec rev 0x01 at pci1 dev 0 function 1 not configured
ppb1 at pci0 dev 14 function 0 NVIDIA nForce3 250 PCI-PCI rev 0xa2
pci2 at ppb1 bus 2
skc0 at pci2 dev 11 function 0 Marvell Yukon 88E8001/8003/8010 rev 0x13, 
Yukon Lite (0x9): irq 9
sk0 at skc0 port A: address 00:0f:ea:ed:13:03
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
pciide2 at pci2 dev 13 function 0 CMD Technology SiI3512 SATA rev 0x01: DMA

Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread Stuart Henderson
On 2008-11-29, raven [EMAIL PROTECTED] wrote:
 Stuart Henderson ha scritto:
 On 2008-11-29, Ed Ahlsen-Girard [EMAIL PROTECTED] wrote:
   
 Alexander Hall wrote:
 
 Ed Ahlsen-Girard wrote:
   
OK, I've installed Samba, and gotten printcap set such that I 
 printed a straight text fire, but nothing else works now that I tried 
 to print other formats through gv and open-office.

 Perhaps Samba is not the way to go?  Printcap below.

 #$OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

 #lp|local line printer:\
 #:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

 #rp|remote line printer:\
 #:lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
 lp|hpoffice:rp=hpoffice:rm=192.168.1.100:sd=/var/spool/lpd/hpoffice:af=/var/spool/lpd/hpoffice/acct:if=/usr/local/bin/smbprint:mx=0:lp=/dev/null:
  
 
 For local printing, samba does nothing. Unless your printer supports 
 postcsript natively (most cheap printers don't) you need some kind of 
 converting filter. For my canon i550, i'm using apsfilter combined 
 with ghostscript, both available as packages/ports.

 Dont know if /usr/local/bin/smbprint in your printcap is some filter 
 like that or where it comes from. Can't find it in any port.

 /Alexander

   
 It's not local printing.  It's an HP OfficeJet hung on a Windows XP machine.


 

 Unless your printer supports postsript natively (most cheap printers
 don't) you need some kind of converting filter.
   
 You can install on Windows XP a LPR support

Unless your ** printer ** supports postscript natively (most
cheap printers don't) you need some kind of converting filter.



Re: bioctl and RAID0

2008-11-29 Thread Marco Peereboom
Bah that is a bug though; the disk should not be knocked offline for an
out of bounds read/write.  I'll fix this.

Thanks for the report.

Your mistake is not to fdisk and disklabel the brand new disk that you
created.  See softraid(4) for examples.

On Sat, Nov 29, 2008 at 04:34:52AM -0800, Manuel Ravasio wrote:
 Hello list.
 i386 PC with 3 PATA disks.
 - a 60g Maxtor attached to motherboard's IDE controller
 - two 160g Maxtor attached to a Promise FastTrak TX2 PCI controller
 
 During install all 3 disks are correctly recognized and fully assigned to 
 OpenBSD.
 Both 160g disks have a single partition (a) spanning all disk length (from 
 sector 63), RAID type.
 
 When I run
 # bioctl -c 0 -l /dev/wd1a,/dev/wd2a softraid0
 the device is (AFAICT) correctly created:
 
 # bioctl softraid0
 Volume  Status   Size Device  
 softraid0 0 Online   327843063808 sd0 RAID0
   0 Online   163921531904 0:0.0   noencl wd1a
   1 Online   163921531904 0:1.0   noencl wd2a
 # 
 
 On device sd0 there is a single 4.2BSD partition spanning all the disk; 
 that's ok with me.
 
 # disklabel sd0   
 # /dev/rsd0c:
 type: SCSI
 disk: SCSI disk
 label: SR RAID 0
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 255
 sectors/cylinder: 16065
 cylinders: 39857
 total sectors: 640318485
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0   # microseconds
 track-to-track seek: 0  # microseconds
 drivedata: 0 
 
 16 partitions:
 #size   offset  fstype [fsize bsize  cpg]
   a:6403184850  4.2BSD   2048 163841 
   c:6403184850  unused  0 0  
 #   
 
 Then I try to create a new filesystem on the partition and I receive an error 
 message:
 
 # newfs /dev/rsd0a
 newfs: wtfs: write error on block 640318484: Input/output error
 # 
 
 Now bioctl shows one disk as Offline.
 
 # bioctl softraid0
 Volume  Status   Size Device  
 softraid0 0 Offline  327843063808 sd0 RAID0
   0 Offline  163921531904 0:0.0   noencl wd1a
   1 Online   163921531904 0:1.0   noencl wd2a
 # 
 
 What does this mean?
 Why is the disk offline?
 What am I doing wrong?
 
 By the way, when I try to delete both sd0 and softraid0 the machine goes to a 
 ddb prompt.
 
 
 Thank you all,
 bye,
 Manuel
 
 
 PS: During installation and during boot I received a few interface CRC 
 error messages from wd0.
 What des this mean exactly?
 The disk itself is quite old, 6 years at the very least. Do these messages 
 mean it is going to die soon?
 
 Thanks again,
 M.
 
 ==
 dmesg right after install
 ==
 
 OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: AMD-K7(tm) Processor (AuthenticAMD 686-class, 512KB L2 cache) 550 MHz
 cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,MMX
 real mem  = 267939840 (255MB)
 avail mem = 250646528 (239MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 08/02/00, BIOS32 rev. 0 @ 0xfd9c0, 
 SMBIOS rev. 2.3 @ 0xf04f0 (30 entries)
 bios0: vendor American Megatrends Inc. version 627.10 date 02/29/2000
 bios0: ASUSteK Computer INC. K7M
 apm0 at bios0: Power Management spec V1.2
 apm0: AC on, battery charge unknown
 acpi at bios0 function 0x0 not configured
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf8120/144 (7 entries)
 pcibios0: PCI Interrupt Router at 000:04:0 (VIA VT82C586 ISA rev 0x00)
 pcibios0: PCI bus #1 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0xc000
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 AMD 751 System rev 0x25
 ppb0 at pci0 dev 1 function 0 AMD 751 PCI-PCI rev 0x01
 pci1 at ppb0 bus 1
 pcib0 at pci0 dev 4 function 0 VIA VT82C686 ISA rev 0x1b
 pciide0 at pci0 dev 4 function 1 VIA VT82C571 IDE rev 0x06: ATA66, channel 
 0 configured to compatibility, channel 1 configured to compatibility
 wd0 at pciide0 channel 0 drive 0: Maxtor 6Y060L0
 wd0: 16-sector PIO, LBA, 58644MB, 120103200 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
 atapiscsi0 at pciide0 channel 1 drive 1
 scsibus0 at atapiscsi0: 2 targets, initiator 7
 cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRD-8480B, 1.00 ATAPI 5/cdrom 
 removable
 cd0(pciide0:1:1): using PIO mode 4, DMA mode 2
 uhci0 at pci0 dev 4 function 2 VIA VT83C572 USB rev 0x0e: irq 9
 uhci1 at pci0 dev 4 function 3 VIA VT83C572 USB rev 0x0e: irq 9
 viaenv0 at pci0 dev 4 function 4 VIA VT82C686 SMBus rev 0x20: HWM disabled: 
 24-bit timer at 3579545Hz
 pciide1 at pci0 dev 13 function 0 Promise PDC20268R rev 0x02: DMA, channel 
 0 configured to native-PCI, channel 1 configured to native-PCI
 pciide1: using irq 10 for native-PCI interrupt
 wd1 at pciide1 channel 0 drive 0: Maxtor 6L160P0
 wd1: 16-sector 

Re: bioctl and RAID0

2008-11-29 Thread Manuel Ravasio
 Did you read the EXAMPLES section in SOFTRAID(4) and followed it by the 
 letter? 
 I would also recommend to try another PATA cable (80-conductor if possible) 
 to 
 see whether the CRC errors disappear.

Thank you.
This time it worked.
I strictly followed the example described in softraid(4) and everything worked.

I also found an emain in archives suggesting to actually wipe the disks before 
softraid reconfigurations using dd from a live linux boot; I did so, actually I 
completely wiped all 3 disks (just to be on the safe side), then everything 
went ok.

Tomorrow I'll start copying things on the raid0 drive.

Thank you all again,
byee,
Manuel



Re: OpenBSD 4.4-release installation hangs on large disk (x86)

2008-11-29 Thread Nick Holland
Chris wrote:
 I'm trying to install OBSD 4.4-release on this desktop which has two
 hard disks of around 465 GB each. If I install on wd0 with only one
 partition (/) of 10GB, the installation goes smoothly. But if I try to
 allocate /tmp (20g), /home (100g), / (50g), /var (50g), /usr (50g),
 swap (3g), the installation hangs after the last file set is installed
 (xserv44.tgz): it just sits there and I cannot use my keyboard
 anymore. I have waited for about 2 hours for the installation to
 proceed to the next step but nothing. Here's my dmesg; Thanks for any
 help.

1) Having installed OpenBSD on a lot of 500G disks, I think I can
say with confidence the size of the disk is not your problem.

2) in an earlier message you indicated that there was some kind of
RAID on this system, I think it is safe to say that it is a BIOS-assisted
software RAID, which COULD be causing you problems if it is still
configured in the BIOS.  And even if it isn't causing this problem,
it WILL bite you in the future when the BIOS decides top copy something
from one drive to the other...


So, start by disabling the BIOS RAID do-hickey thing and unplug
the second drive.  I suspect you will have no problems then.


Once you convince yourself the size of the drive is not directly
an issue, I'd suggest starting over with a more sane partitioning
plan.  Just because you have a cheap 500G disk doesn't mean you
need to allocate all or most of it.  For one, the bigger the disk,
the longer it takes to fsck after you trip over the power cord.

Nick.



Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread raven

Stuart Henderson ha scritto:

On 2008-11-29, raven [EMAIL PROTECTED] wrote:
  

Stuart Henderson ha scritto:


On 2008-11-29, Ed Ahlsen-Girard [EMAIL PROTECTED] wrote:
  
  

Alexander Hall wrote:



Ed Ahlsen-Girard wrote:
  
  
   OK, I've installed Samba, and gotten printcap set such that I 
printed a straight text fire, but nothing else works now that I tried 
to print other formats through gv and open-office.


Perhaps Samba is not the way to go?  Printcap below.

#$OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#:lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#:lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:
lp|hpoffice:rp=hpoffice:rm=192.168.1.100:sd=/var/spool/lpd/hpoffice:af=/var/spool/lpd/hpoffice/acct:if=/usr/local/bin/smbprint:mx=0:lp=/dev/null: 


For local printing, samba does nothing. Unless your printer supports 
postcsript natively (most cheap printers don't) you need some kind of 
converting filter. For my canon i550, i'm using apsfilter combined 
with ghostscript, both available as packages/ports.


Dont know if /usr/local/bin/smbprint in your printcap is some filter 
like that or where it comes from. Can't find it in any port.


/Alexander

  
  

It's not local printing.  It's an HP OfficeJet hung on a Windows XP machine.





Unless your printer supports postsript natively (most cheap printers
don't) you need some kind of converting filter.
  
  

You can install on Windows XP a LPR support



Unless your ** printer ** supports postscript natively (most
cheap printers don't) you need some kind of converting filter.
  
exactly, using *cups* as i write in my last post, you have a converting 
filter...

Francesco



Re: libiconv problem

2008-11-29 Thread Stijn

Antoine Jacoutot wrote:

On Sat, 29 Nov 2008, Stijn wrote:
  

Well I'm not going to argue about the benefits of whether or not logging in as
root, that depends on numerous reasons. There are enough threads about that in
the archives. The point is, this guy shot his foot off when changing his root
shell (which is probably dynamically linked) and locked himself out. Now, he
has at least one solution to avoid that in the future.



Which is?
  
I had sent the OP a private message on how to use sudo. If he then 
gets locked out of this regular user account he still has the default 
root account to fall back on.
 
  

Like you said so well, at least understand what you are doing.



Do you?
Really?




Re: Blocking the really resourceful brutes: the time limit for max-src-conn-rate rule

2008-11-29 Thread Joseph A Borg
can't you map ssh to a high port on the firewall? that way your  
clients are the only ones that know the port. If a botnet manages to  
find the port you can always change it to another one and inform your  
clients.



On Nov 29, 2008, at 16:37, Sandro wrote:


Hi everyone,

I don't know how many of you have noticed this, but my mailserver  
has become
the victim of what seems to be a new kind of dictionary attack.  I'm  
seeing

connections from literally hundreds of different hosts, working as an
evident botnet, that connect via ssh and try various passwords.   
While I'm
not terribly concerned with the password strength of most users who  
have ssh
access (it's not many either), I'm still very irritated by this.   
What makes
this a challenge to stop or block is the fact that each specific  
host only
attempts to connect once every 4-5 hours usually, though in rare  
instances,

it will connect every 1.5-2 hours.

What I've done this morning on the machine running pf to try and get  
this

under control is setup a max-src-conn-rate rule of 2/4000, and setup a
redirect from the firewall/router running openbsd/pf to the  
mailserver with

a pass rule so that I don't get blocked out of it myself! (Though the
mailserver is behind a router, it has a routable IP, making this  
option
viable). My question is, will this seemingly HUGE time interval even  
work in

pf?

Has anyone else seen this sort of thing, and what have you done to  
mitigate
this?  For the record, I know about ssh keys, and it's in fact setup  
on
other machines, but for various reasons, I can't enable it just yet  
on this

one.




Re: Dim console after exiting X [Radeon driver problem?]

2008-11-29 Thread Paco Esteban
On Sat, Nov 29, 2008 at 17:43, Kostas Zorbadelos [EMAIL PROTECTED] wrote:
 On Tuesday 11 November 2008 22:55:49 Brynet wrote:
 Hi Ed,

 I've also seen this behaviour on a OptiPlex GX240, it has a ATI Rage
 128 Pro TF card, the only solution I've found is to change the depth
 to 16 instead of the default 24.

 Just add DefaultDepth 16 to your Screen section.

 I would like to hear an alternative solution, but I can't seem to tell
 the different between the two depths.

 Hope that helps.. :-)

 -Brynet

 Hello,

 I also see this behaviour in my system after clean installation of OpenBSD
 4.4. I didn't see this in previous versions. Here is my dmesg, I run amd64.
 Please let me know if I can provide any more information to track down the
 problem.  Iwill try to upgrade to current in the next day and see if the
 problem is present there. The workarounf DefaultDepth 16 did not work for me.

 Kostas

Same issue in my old i386 with ATI Radeon 9600 XT, following stable.
My dmesg:

OpenBSD 4.4-stable (GENERIC) #1: Sat Nov 29 18:10:44 CET 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) XP (AuthenticAMD 686-class, 256KB L2 cache) 1.02 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM
X,FXSR,SSE
real mem  = 536375296 (511MB)
avail mem = 510218240 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 08/20/04, BIOS32 rev. 0 @ 0xfdb10, SMBIOS
rev. 2.3 @ 0xf0630 (21 entries)
bios0: vendor American Megatrends Inc. version P1.70 date 08/20/2004
bios0: American Megatrends Inc. K7S41
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices PS2M(S4) PS2K(S4) UAR1(S4) USB1(S4) USB2(S4) EHCI(S4) LAN_
(S4) MDM_(S4) AUD_(S4) PCI0(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xd000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 SiS 741 PCI rev 0x03
ppb0 at pci0 dev 1 function 0 SiS 648FX AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon 9600 XT rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
agp0 at vga1: aperture at 0xd000, size 0x400
drm at vga1 unsupported
ATI Radeon 9600 XT Sec rev 0x00 at pci1 dev 0 function 1 not configured
pcib0 at pci0 dev 2 function 0 SiS 85C503 System rev 0x25
pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x00: 741: DMA, channel 0 w
ired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: ST380215A
wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVD-ROM GDR8164B, 0L06 ATAPI 5/cdrom r
emovable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: irq 10, SiS7012 AC97
ac97: codec id 0x434d4983 (C-Media Electronics CMI9761A+)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: irq 10, version 1.0
, legacy support
ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: irq 3, version 1.0,
 legacy support
ehci0 at pci0 dev 3 function 2 SiS 7002 USB rev 0x00: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 SiS EHCI root hub rev 2.00/1.00 addr 1
sis0 at pci0 dev 4 function 0 SiS 900 10/100BaseTX rev 0x90: irq 10, address 0
0:0b:6a:b3:60:3a
rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12
lm1 at wbsio0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 SiS OHCI root hub rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 SiS OHCI root hub rev 1.00/1.00 addr 1
biomask ed6d netmask ed6d ttymask 
mtrr: Pentium Pro MTRR support
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
auich0: measured ac97 link rate at 48005 Hz, will use 48000 Hz



fluxbox draging window problem

2008-11-29 Thread Jesus Sanchez

Hi there.

Using OpenBSD 4.3 fluxbox 0.9.15.1 port.

I have a weird behaviour with draging windows over workspaces. I have
set 4 workspaces and warping enabled. So theorically I drag a window
with Alt + LeftMouse to the edge of the workspace and fluxbox jumps to
the next workspace, allowing me to place the window there. About the 60%
of the times I try to do this, when the cursor reachs the edge, fluxbox
enters in a kind of loop between the four workspaces and jumps
constantly between them (showing the one,two... on the toolbar) and I
lost the control over X for a few instants until I recover the control
and this weird thing stops.

Trying with a clean install not helped.

Nothing attached to the slit.

Tried in many machines, same thing.

CVSed and compiled a few times, so discard the corrupt binary issue.

Not a Xorg issue (CVSed and compiled as well)

Tried with the videocard native driver and the VESA driver, and same
thing.

Tried with many values of EdgeSnapThresshold and same issue.

This is a known thing??
I'm missing something?
bug?

-Jesus



Re: Samba printing, OpenBSD client to Windows server

2008-11-29 Thread Girish Venkatachalam
On 20:33:56 Nov 29, Stuart Henderson wrote:
 
 Unless your printer supports postsript natively (most cheap printers
 don't) you need some kind of converting filter.
 

You mean like a2ps?

/usr/ports/print/a2ps

-Girish



bash for root? (was: Re: libiconv problem )

2008-11-29 Thread Dieter
  2. don't use bash as shell for root.
 
 Or at least understand what you are doing.

What is wrong with bash as shell for root?
(Assuming bash is in /bin and statically linked.)



Re: bash for root? (was: Re: libiconv problem )

2008-11-29 Thread farhan ahmed
Question is how can you make shell statically linked? I thought when you
install package it should be linked rather than manual compiling and
installing


--
Regards,
Farhan Ahmed To: misc@openbsd.org Subject: bash for root? (was: Re: libiconv
problem ) Date: Sat, 29 Nov 2008 08:46:00 + From:
[EMAIL PROTECTED]2. don't use bash as shell for root.  
 Or at least understand what you are doing.  What is wrong with bash as
shell for root? (Assuming bash is in /bin and statically linked.)
today.
http://www.ninemsn.com.au/hotmailroadtrip