xenocara Radeon Mobility HD 5470

2012-01-23 Thread Sha'ul
Xenocara does not seem to recognize Radeon Mobility 5470 but it shows up 
in dmesg. The laptop has switchable graphics with Intel i3 integrated 
and dedicated Radeon 5470.


Also it does not work when I have /etc/X11/xorg.conf, the screen is all 
black, but when I run on /home/shaul/xorg.conf.new then I can use fvwm 
like normal


OpenBSD 5.1-beta (GENERIC.MP) #0: Sun Jan 22 05:19:38 PST 2012
sh...@sfbgs.my.domain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3948367872 (3765MB)
avail mem = 3829104640 (3651MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xe9b70 (51 entries)
bios0: vendor INSYDE version V1.25 date 03/16/2011
bios0: Acer Aspire 5820TG
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! HPET APIC MCFG SLIC BOOT ASPT WDAT SSDT SSDT
acpi0: wakeup devices PEGA(S4) EHC1(S3) EHC2(S3) PXSX(S4) RP01(S4) 
PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4)

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) Core(TM) i3 CPU M 350 @ 2.27GHz, 2261.36 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF

cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz, 2261.00 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF

cpu1: 256KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz, 2261.00 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF

cpu2: 256KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 5 (application processor)
cpu3: Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz, 2261.00 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,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF

cpu3: 256KB 64b/line 8-way L2 cache
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf000, bus 0-127
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P2)
acpiprt2 at acpi0: bus 4 (P0P1)
acpiprt3 at acpi0: bus 2 (RP01)
acpiprt4 at acpi0: bus -1 (RP02)
acpiprt5 at acpi0: bus -1 (RP03)
acpiprt6 at acpi0: bus -1 (RP04)
acpiprt7 at acpi0: bus -1 (RP05)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG3)
acpiprt11 at acpi0: bus -1 (PEG5)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpitz0 at acpi0: critical temperature is 90 degC
acpibat0 at acpi0: BAT1 model AS10B5E serial 277D type LION oem 
PANASONIC

acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: LID0
acpibtn2 at acpi0: SLPB
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD02
acpivideo1 at acpi0: VGA_
acpivout1 at acpivideo1: LCD_
cpu0: Enhanced SpeedStep 2261 MHz: speeds: 2266, 2133, 1999, 1866, 1733, 
1599, 1466, 1333, 1199, 1066, 933 MHz

pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core Host rev 0x12
ppb0 at pci0 dev 1 function 0 Intel 3400 PCIE rev 0x12: msi
pci1 at ppb0 bus 1
ATI Radeon Mobility HD 5470 rev 0x00 at pci1 dev 0 function 0 not 
configured

azalia0 at pci1 dev 0 function 1 ATI Radeon HD 5470 Audio rev 0x00: msi
azalia0: no supported codecs
vga1 at pci0 dev 2 function 0 Intel Mobile HD graphics rev 0x12
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc000, size 0x1000
inteldrm0 at vga1: apic 2 int 16
drm0 at inteldrm0
Intel 3400 MEI rev 0x06 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 3400 USB rev 0x05: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia1 at pci0 dev 27 function 0 Intel 3400 HD Audio rev 0x05: msi
azalia1: codecs: Realtek ALC269
audio0 at azalia1
ppb1 at pci0 dev 28 function 0 Intel 3400 PCIE rev 0x05: msi
pci2 at ppb1 bus 2
alc0 at pci2 dev 0 function 0 Attansic Technology L1D rev 0xc0: msi, 
address c8:0a:a9:bb:df:4b

atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 15
ppb2 at pci0 dev 28 function 5 Intel 3400 PCIE rev 0x05: msi
pci3 at ppb2 bus 3
athn0 at pci3 dev 0 function 0 Atheros AR9281 

X.org server allows anyone to unlock computer (on current)

2012-01-23 Thread Brett
Hi,
Locking the screen with xlock, then pressing ctrl+alt+numeric* unlocks the 
screen as described at:
 
http://www.h-online.com/security/news/item/X-org-server-allows-anyone-to-unlock-computer-1417864.html

This happens on amd64 week-old-current, tried with both fvwm (from base) and 
with jwm window manager. 

I suppose if anyone has physical access to a machine, they could get access to 
hard drive with a boot cd, but this vulnerability makes it pretty easy.

Brett.



Re: X.org server allows anyone to unlock computer (on current)

2012-01-23 Thread David Coppa
On Mon, Jan 23, 2012 at 10:24 AM, Brett brett.ma...@gmx.com wrote:
 Hi,
 Locking the screen with xlock, then pressing ctrl+alt+numeric* unlocks the 
 screen as described at:

 http://www.h-online.com/security/news/item/X-org-server-allows-anyone-to-unlock-computer-1417864.html

 This happens on amd64 week-old-current, tried with both fvwm (from base) and 
 with jwm window manager.

 I suppose if anyone has physical access to a machine, they could get access 
 to hard drive with a boot cd, but this vulnerability makes it pretty easy.

It was already fixed with a commit by sthen@

ciao,
David



Re: X.org server allows anyone to unlock computer (on current)

2012-01-23 Thread Brett
On Mon, 23 Jan 2012 10:32:30 +0100
David Coppa dco...@gmail.com wrote:

 On Mon, Jan 23, 2012 at 10:24 AM, Brett brett.ma...@gmx.com wrote:
  Hi,
  Locking the screen with xlock, then pressing ctrl+alt+numeric* unlocks the 
  screen as described at:
 
  http://www.h-online.com/security/news/item/X-org-server-allows-anyone-to-unlock-computer-1417864.html
 
  This happens on amd64 week-old-current, tried with both fvwm (from base) 
  and with jwm window manager.
 
  I suppose if anyone has physical access to a machine, they could get access 
  to hard drive with a boot cd, but this vulnerability makes it pretty easy.
 
 It was already fixed with a commit by sthen@
 
 ciao,
 David

Too fast for me to see!
-- 



Re: How to add new non-continuous A6 partition after install

2012-01-23 Thread Marc Espie
On Mon, Jan 23, 2012 at 05:26:33AM +, lbvvbooo lbvvbooo wrote:
 For kinds of reasons, my disk is partitionized like this:
 
 1st partition is for Windows system(Primary)
 2nd is for OpenBSD(Primary)
 3rd is Windows extended partition(Extended)
 4th is originally not used, now I created a new one and mark it as
 A6.(Primary)
 
 Question is after I created the 4th partition, I can get the partition 
 information using fdisk, but can't see anything using disklabel. How do I use 
 the 4th partition? Will it be helpful if I just reformat it to fat32 or ext3?
 
 
 I used to ask this question before, as far as I know, it's not a support 
 config in bsd 4.5. Is bsd 5.0 support this now?  

???

it has worked in OpenBSD for a very long time, possibly forever, though I
recall using it in 3.3.

You should read disklabel documentation more closely. Pay particular attention
to the b (set OpenBSD disk boundaries) command.

Just be very very careful with your numbers, since there is totally no
support for several ranges of boundaries, so once you enable your 4th
partition, you basically have permission to create new bsd partitions all over
the place, which includes the Windows stuff...



Routerboard RB600 and hifn(4)

2012-01-23 Thread Stefan Johansson
Hello!

Does anyone on the list have experience with a hifn(4) card (such as the
Soekris vpn1411)
in a Routerboard RB600?
I'm using it for an ipsec tunnel (isakmpd between RB600 and an other OpenBSD
i386 box)
and would like to know if it will give me any performance increase before I
purchase one?

Today I get about 12 Mb/s through the tunnel and 60-70 Mb/s outside.
I am measuring this with iperf on OpenBSD 5.0 and the RB600 CPU is set to
533MHz.

/Stefan



Re: How to add new non-continuous A6 partition after install

2012-01-23 Thread David Vasek

On Mon, 23 Jan 2012, Marc Espie wrote:


On Mon, Jan 23, 2012 at 05:26:33AM +, lbvvbooo lbvvbooo wrote:

For kinds of reasons, my disk is partitionized like this:

1st partition is for Windows system(Primary)
2nd is for OpenBSD(Primary)
3rd is Windows extended partition(Extended)
4th is originally not used, now I created a new one and mark it as
A6.(Primary)

Question is after I created the 4th partition, I can get the partition 
information using fdisk, but can't see anything using disklabel. How do I use 
the 4th partition? Will it be helpful if I just reformat it to fat32 or ext3?


I used to ask this question before, as far as I know, it's not a support config 
in bsd 4.5. Is bsd 5.0 support this now?


???

it has worked in OpenBSD for a very long time, possibly forever, though I
recall using it in 3.3.

You should read disklabel documentation more closely. Pay particular attention
to the b (set OpenBSD disk boundaries) command.


I agree, I had been using something similar with older releases too.

Still I don't think everything works with more than one A6 parition. It 
didn't work for me. Putting single FFS file system directly in the other 
fdisk partition works, but there is no standard fdisk partition ID for 
such a partition. To avoid many risks, I solved it by some undefined 
partition ID. Is there any recommended ID to use for the FFS partition?


Regards,
David



Re: locate weirdness

2012-01-23 Thread Martin Schröder
2012/1/23 Lars nore...@z505.com:
 Also MySQL became a billion dollar company and it doesn't even sell any
 product

http://www.mysql.com/products/
http://www.mysql.com/products/cluster/faq.html#20



Re: How to add new non-continuous A6 partition after install

2012-01-23 Thread Marc Espie
On Mon, Jan 23, 2012 at 12:04:13PM +0100, David Vasek wrote:
 Still I don't think everything works with more than one A6 parition.
 It didn't work for me. Putting single FFS file system directly in
 the other fdisk partition works, but there is no standard fdisk
 partition ID for such a partition. To avoid many risks, I solved it
 by some undefined partition ID. Is there any recommended ID to use
 for the FFS partition?

You'll have to look more closely at the boot code.
I think that it will prefer the active partition at the fdisk level.

Apart from that, if I had two A6 partitions, one with an actual disklabel,
the other with nothing, I know which one I would prefer...



Softraid

2012-01-23 Thread scire
Hello World!

Perhaps a trivial question. Let us suppose, I follow the instructions
of SOFTRAID(4) for bulding a Raid 1 device sd0 from wd1, wd2, wd3.
Let us suppose that I make a ufs file system in sd0. As I see, there
are fdisc and disklabel partitions in each wd disc and in sd0.

Will I later be able to mount wd1 (wd2, wd3) alone? As a Raid1 with
one disk? And if I want to mount it in other operating system
supporting ufs?

And a question not about OpenBSD: is this problem solved with Hardware
Raid or do hardware Raid controles add other info to the discs? I have
a dpt PM37755U2B (SmartRaid V Millenium): is this controler supported
by OpenBSD (not mentioned in DPT(4))?

I want to make a file server with an old computer, just for backups,
but I want portable discs, not to depend too much on hardware and
operating system. Do someone have an Idea what can I do? :)

Thanks
Rod.



Re: n00b questions -- keyboard messed up

2012-01-23 Thread Mehma Sarja

On 1/22/12 9:47 PM, John Doe wrote:

Excuse my good old-fashioned American turkeyness of last year, but if it's not
secure by default, it does indeed belong on the website.  Why can't we set
machdep.allowaperture=1 for n00bs whose first priority is to use X Windows
without getting hacked in the kernel from all those stray pointers escaping
from
Firefox?  Sure, ASLR helps, but I want a basic browser capable of running
Javascript
securely in a thread-safe jail without crashing on double frees,
running out of
memory, and selling more cookies than the Girl Scouts, that
somehow manages to
maintain more hidden access logs than a Swiss bank on MY
personal computer,
regardless of the privacy settings I choose.  Is surf a
better browser, or are there
other suggestions?

Surely OpenBSD would not be
accused of antitrust for integrating a browser into
the operating system, or
at least coming up with or pointing users toward a decent
port if there is
one. Maybe it's just wishful thinking, but what I'm getting at is that I
want/need a secure standards-compliant graphical client for web access.
- Original Message -
From: Tomas Bodzartomas.bod...@gmail.com
To:
John Doejl2...@yahoo.com
Cc: w...@openbsd.orgw...@openbsd.org;
OpenBSD-misc listmisc@openbsd.org
Sent: Sunday, January 22, 2012 8:47 PM
Subject: Re: n00b questions -- keyboard messed up

On Sun, Jan 22, 2012 at
7:16 PM, John Doejl2...@yahoo.com  wrote:

The keyboard mapping in the

kernel is getting correpted when I use X Windows

Version 11 Release 6

Xenocara.  I am using a Microsoft(R) Digital Media

Keyboard 3000.  How do I

map the extra keys? and would it help if I used

machdep.allowaperture=1

instead of 2?  Also kbd can change the keyboard

mapping as a regular user,

but it cannot list the available keyboard mappings

without being r00t, and

it doesn't take effect until I log out and back in to

X-Windows. Why is

this, and how do I type diacritical marks like circumflex

carets and other

accents, umlauts, ruotsalainen o, etc. in OpenBSD?
This thread belongs to
misc@ and not www@

post your dmesg, /etc/X11/xorg.conf and
/var/log/Xorg.0.log

for mapping keys in X see man xmodmap

Why
machdep.allowaperture and what is done by this setting see
http://www.openbsd.org/cgi-bin/man.cgi?query=xf86sektion=4 (man xf86)

I LOVE this guy... turkeyness Girl Scouts Swiss bank - that's what 
I call a good old fashioned blue blooded American perkiness! In fact, 
the lingo kept me reading and now I'm actually interested in this 
browser he is looking for.r


Mehmasarja



Re: n00b questions -- keyboard messed up

2012-01-23 Thread David Coppa
On Mon, Jan 23, 2012 at 6:47 AM, John Doe jl2...@yahoo.com wrote:
 Excuse my good old-fashioned American turkeyness of last year, but if it's
not
 secure by default, it does indeed belong on the website.  Why can't we set
 machdep.allowaperture=1 for n00bs whose first priority is to use X Windows
 without getting hacked in the kernel from all those stray pointers escaping
 from
 Firefox?  Sure, ASLR helps, but I want a basic browser capable of running
 Javascript
 securely in a thread-safe jail without crashing on double frees,
 running out of
 memory, and selling more cookies than the Girl Scouts, that
 somehow manages to
 maintain more hidden access logs than a Swiss bank on MY
 personal computer,
 regardless of the privacy settings I choose.  Is surf a
 better browser, or are there
 other suggestions?

Many like xxxterm.

cheers
David



Packet loss simulation + PFsync documentation

2012-01-23 Thread Quentin Aebischer

Hello everyone,

I've been searching around and couldn't find a full description of the  
pfsync header format and all the different types of messages (some  
kind of RFC).
Do you guys know whether or not there exists such a document ? or  
something similar that would review in details al the types of  
messages for pfsync ?


I've read David Gwynne's paper about pfsync_v5  
(openbsd.org/papers/pfsync_v5.pdf), and he gives a quick list of the  
different message types, but its work is 2 years old and maybe the  
protocol evolved since then ? Are there no other message types in the  
current implementation ?


Also, does the protocol implement some kind of reliability mechanism,  
like message sequencing / acknowledgements messages ? How would pfsync  
behave in an environment with limited bandwith and subject to packets  
loss ?


Lastly, I'd like to test pfsync in a simulated environment with  
potential packets loss/corruptions and/or with limited bandwith.


I know I can emulate packets loss by adding probability to a block  
rule in pf.conf, and I'm not sure but I think ALTQ could help to add  
some bandwith limitation (though its main goal is more to implement  
QoS rules, again correct me if I'm wrong).

I've heard of Dummynet for FreeBSD ; is there  the equivalent for OpenBSD ?

Thanks for reading me,

Regards,

Quentin Aebischer
University of Sherbrooke,
Canada



Re: Softraid

2012-01-23 Thread Nick Holland

On 01/23/2012 10:04 AM, sc...@web.de wrote:

Hello World!

Perhaps a trivial question. Let us suppose, I follow the instructions
of SOFTRAID(4) for bulding a Raid 1 device sd0 from wd1, wd2, wd3.
Let us suppose that I make a ufs file system in sd0. As I see, there
are fdisc and disklabel partitions in each wd disc and in sd0.

Will I later be able to mount wd1 (wd2, wd3) alone? As a Raid1 with
one disk? And if I want to mount it in other operating system
supporting ufs?


as RAID1 with a FAILED disk, you should be -- that's the idea of RAID 
(often forgot, of course; people often forget the point isn't to have 
RAID, but to recover data).


As for other operating system supporting UFS, that's kinda an 
interesting question.  Not sure if any other OSs natively read OpenBSD 
partitions (same can be said for Solaris, FreeBSD and NetBSD).


While your goal of having an OpenBSD replacement plan is good (you 
should always start out a project with, as one of your design goals, 
how do I switch off this product when a better one comes along or this 
one becomes unavailable/unmaintained), I don't think pulling disk and 
extracting data is what you need to worry about as much as moving data 
to a new platform at a later date.  Should the OpenBSD project dissolve 
tomorrow, you would still be able to boot an OpenBSD install disk on any 
existing hardware, recover your data, and transfer it to a new 
machine/platform as desired.  Other than that, OpenBSD speaks NFS 
natively, and can speak SMB with additions, and SSH for extracting data, 
so I don't think that will be a problem.



And a question not about OpenBSD: is this problem solved with Hardware
Raid or do hardware Raid controles add other info to the discs?


The only hw RAID system I am aware of that you can remove a single disk 
from a mirror and have it Just Work in a PC with a native connection are 
the Accusys and Arco mirroring boxes -- they let you add a mirror to an 
existing single drive, or remove a drive from the box and let you use 
either of the drives without the Accusys hardware as a stand-alone. 
Unfortunately, they seem to be the exception rather than the rule.


This is why it is important to have another identical RAID controller to 
extract data from your disk



I have
a dpt PM37755U2B (SmartRaid V Millenium): is this controler supported
by OpenBSD (not mentioned in DPT(4))?


plug it in and find out!
but...if you have only one...don't use it for anything serious (or be 
ready to use your backup...)



I want to make a file server with an old computer, just for backups,
but I want portable discs, not to depend too much on hardware and
operating system. Do someone have an Idea what can I do? :)


Skip your HW RAID if you only have one controller -- you will wish you 
had listened to me should it fail.


Either use softraid (yes, it ties you to OpenBSD, but only those disks, 
not your data), or simply copy to one disk, then from that disk to the 
other disk inside your system.


OpenBSD is among the easiest OSs to move its disks from one machine to 
another around -- much easier than Windows or Linux, assuming the new 
hardware is supported by the version of OpenBSD on your disks (yet 
another reason to keep up to date).


Nick.



Lemote Yeelong won't wake up from zzz when called from X

2012-01-23 Thread Bryan Irvine
If I directly call zzz  from xterm running under xfce4 it sleeps and
doesn't wake up.  I'm pretty sure I know the reason (and even suspect
this is the expected behavior), but was hoping someone smarter would
chime in with the reason.

Thanks,

-Bryan



ANZ message

2012-01-23 Thread ANZ Online
 - This mail is in HTML. Some elements may be ommited in plain text. -

An attempt to access ANZ Online Banking was denied. please
LOGIN
now.
If you do not remember trying to access ANZ account, Click here :
That was NOT me
..



Re: Softraid

2012-01-23 Thread scire
Thank you very much to Nick Holand for his answer!

  Not sure if any other OSs natively read OpenBSD partitions

My experience with older OpenBSD and FreeBSD: if the OpenBSD partition
is in a fdisc partition (slice), you can mount it in FreeBSD; with some trivial
arithmetic and some editing of disklabel you can also mount a FreeBSD
partition in OpenBSD. I dont know if this is still the case and if it
is only casuality, not intended, if there can be troubles.

 or simply copy to one disk, then from that disk to the other
 disk inside your system

Perhaps a solution with rsync is a good alternative, automated with a script.

Rod.



Keyboard mapping

2012-01-23 Thread Simon Perreault

Here's yet another question about keyboard mapping...

When I boot bsd.rd and pick the cf keyboard mapping in the installer, 
everything works perfectly.


After I reboot (bsd.mp), the keyboard seems correctly mapped (keys are 
at the right places), but some keys do nothing (e-acute (not a dead key) 
and accent dead keys).


/etc/kbdtype contains cf. I tried playing with kbd and wsconsctl. 
Everything seems normal except the above mentioned keys that do nothing.


When I switch to us, the keys that did nothing start working 
correctly, although with the us mapping.


What could be different between bsd and bsd.rd that could have such an 
impact?


I include both the dmesg from bsd.rd and bsd.mp.

Thanks,
Simon


OpenBSD 5.0 (RAMDISK_CD) #36: Wed Aug 17 10:27:31 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Atom(TM) CPU N280 @ 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,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
real mem  = 2138238976 (2039MB)
avail mem = 2096250880 (1999MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/23/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf0720 (30 entries)
bios0: vendor American Megatrends Inc. version 0905 date 09/23/2009
bios0: ASUSTeK Computer INC. 1005HA
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT SLIC
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 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 1, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 2 (P0P5)
acpiprt2 at acpi0: bus 1 (P0P7)
acpiprt3 at acpi0: bus -1 (P0P6)
bios0: ROM list: 0xc/0xec00!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03
vga1 at pci0 dev 2 function 0 Intel 82945GME 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 2 int 16
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 2 int 17
pci2 at ppb1 bus 2
athn0 at pci2 dev 0 function 0 Atheros AR9285 rev 0x01: apic 2 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 1c:4b:d6:20:6c:fe
ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 2 int 19
pci3 at ppb2 bus 1
alc0 at pci3 dev 0 function 0 Attansic Technology L2C rev 0xc0: msi, address 
90:e6:ba:57:8a:72
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 23
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 19
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 2 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 2 int 16
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 2 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci4 at ppb3 bus 5
pcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02
ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x02: msi, AHCI 1.1
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9250315AS, 0002 SCSI3 0/direct fixed 
naa.5000c500192a178e
sd0: 238475MB, 512 bytes/sector, 488397168 sectors
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
Sonix Technology Co., Ltd. USB 2.0 Camera rev 2.00/9.07 addr 2 at uhub0 port 
2 not configured
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b



OpenBSD 5.0 (GENERIC.MP) #59: Wed Aug 17 10:19:44 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N280 @ 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,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE
real mem  = 2138238976 (2039MB)
avail mem = 2093182976 (1996MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 

Re: Keyboard mapping

2012-01-23 Thread Steffen Daode Nurpmeso
Hi,

Simon Perreault wrote [2012-01-23 21:44+0100]:
 /etc/kbdtype contains cf. I tried playing with kbd and wsconsctl.

I'm not an expert, but i'll append something for you to play with
even more.  Maybe it'll help you.
Otherwise wait for the answer of someone who actually is an
expert.

 Everything seems normal except the above mentioned keys that do
 nothing.

If the program you are working with is eight bit clean (ksh(1)
doesn't work, csh(1) does), maybe it's the mapping.

AFAIK there is no way, neither in base nor in packages, to print
out the actually used scancodes of the keyboards' keys.
After i've messed up another keyboard-related question last week
or so (;) i've sat down and wrote a small thing which prints out
the currently used ones, so that it's possible to compare them
with the output of

$ sudo wsconsctl keyboard.map

Note that this is intermediate version, don't type too fast
(ridiculous buffer handling) etc., but i haven't had time to
polish it.  But it works.
IMHO a subset of that should be part of wsconsctl(8), btw.

Hope that helps,
good night and ciao,

--steffen
-- 8 --
/* wscons_scankey, a yet not finished showkey-thing.
 * Compile:
 *  $ gcc -W -Wall -pedantic -ansi -o wscons_scankey wscons_scankey.c
 * Use (not on pseudo-terminal):
 *  $ ./wscons_scankey [krtv]  # default = k
 */

#include err.h
#include errno.h
#include signal.h
#include stdio.h
#include stdlib.h

#include termios.h
#include unistd.h

#include sys/ioctl.h
#include sys/time.h

#include dev/wscons/wsconsio.h

static struct termios   tios_orig, tios_raw;
static int  no_raw;

static void onsig(int sig);
static void rawinit(void), rawon(void), rawoff(void);

static void
onsig(int sig)
{
rawoff();
exit(! (sig == SIGALRM));
}

static void
rawinit(void)
{
if (tcgetattr(STDIN_FILENO, tios_orig)  0)
err(3, Can't query terminal attributes);
tios_raw = tios_orig;
(void)cfmakeraw(tios_raw);
return;
}

static void
rawon(void)
{
auto int arg = WSKBD_RAW;

if (tcsetattr(STDIN_FILENO, TCSANOW, tios_raw)  0)
err(3, Can't set terminal attributes);

if (! no_raw  ioctl(STDIN_FILENO, WSKBDIO_SETMODE, arg)  0) {
int x = errno;
(void)tcsetattr(STDIN_FILENO, TCSANOW, tios_orig);
errno = x;
err(3,  Can't put keyboard in raw mode (
needs the WSDISPLAY_COMPAT_RAWKBD kernel option));
}
return;
}

static void
rawoff(void)
{
auto int arg = WSKBD_TRANSLATED;

if (! no_raw)
(void)ioctl(STDIN_FILENO, WSKBDIO_SETMODE, arg);
(void)tcsetattr(STDIN_FILENO, TCSANOW, tios_orig);
return;
}

int
main(int argc, char **argv)
{
enum { MODE_KEYCODE, MODE_RAW, MODE_VALUE } mode = MODE_KEYCODE;
ssize_t br, i;
auto struct sigaction sa;
auto struct itimerval it;
auto char buf[64];

if (argc  1)
switch (**++argv) {
case 'k':
mode = MODE_KEYCODE;
break;
case 't':
no_raw = 1;
/* FALLTHRU */
case 'r':
mode = MODE_RAW;
break;
case 'v':
mode = MODE_VALUE;
no_raw = 1;
break;
default:
mode = -1;
break;
}
if ((int)mode  0)
errx(1, Usage: wscons_showkey [krtv] 
(keycode, raw, termios-raw, value));

if (!isatty(STDIN_FILENO))
err(1, STDIN is not a terminal);
rawinit();

sa.sa_handler = onsig;
sa.sa_flags = 0;
(void)sigfillset(sa.sa_mask);
for (i = 0; i  _NSIG; ++i)
if (sigaction((int)i + 1, sa, NULL)  0  i == SIGALRM)
err(2, Can't install SIGALRM signal handler);

printf( You may now use the keyboard;\n
After five seconds of inactivity the program terminates\n);
for (;;) {
it.it_value.tv_sec = 5;
it.it_value.tv_usec = 0;
it.it_interval.tv_sec = it.it_interval.tv_usec = 0;
if (setitimer(ITIMER_REAL, it, NULL)  0)
err(2, Can't install wakeup timer);

rawon();
br = read(STDIN_FILENO, buf, sizeof buf - 1);
rawoff();
if (br = 0)
break;

/* src/sys/dev/wscons/wsksymdef.h */
switch (mode) {
case MODE_KEYCODE: {
unsigned int rc, c;
const char *meta;
for (i = 0; i  br; ++i) {
rc 

Re: Keyboard mapping

2012-01-23 Thread Simon Perreault

On 2012-01-23 16:40, Steffen Daode Nurpmeso wrote:

If the program you are working with is eight bit clean (ksh(1)
doesn't work, csh(1) does), maybe it's the mapping.


THANK YOU!

Keys work fine in csh, not in ksh.

And bsd.rd uses sh IIRC, so that would be the answer.

Thanks!
Simon



Re: Keyboard mapping

2012-01-23 Thread Christian Weisgerber
Simon Perreault sperrea...@openbsd.org wrote:

 /etc/kbdtype contains cf. I tried playing with kbd and wsconsctl. 
 Everything seems normal except the above mentioned keys that do nothing.

They work fine but ksh defaults to treating the top bit as meta,
so for instance e acute will be interpreted as M-i which isn't
mapped.  Try a simple cat /dev/null and typing there.

You can use set +o emacs-usemeta to change ksh's behavior.
And meta-key-mode in ~/.mg for mg(1).

-- 
Christian naddy Weisgerber  na...@mips.inka.de



Re: n00b questions -- keyboard messed up

2012-01-23 Thread Ariane van der Steldt
On Sun, Jan 22, 2012 at 09:47:52PM -0800, John Doe wrote:
 Excuse my good old-fashioned American turkeyness of last year, but if it's not
 secure by default, it does indeed belong on the website.  Why can't we set
 machdep.allowaperture=1 for n00bs whose first priority is to use X Windows

Commenting halfway across your sentence: security and usability conflict
here. Most people don't want it set to 1 because the VGA framebuffer
does not offer many goodies regarding screen usage.

 without getting hacked in the kernel from all those stray pointers escaping
 from
 Firefox?  Sure, ASLR helps,

In fact, ASLR can hardly be called a defense in JITs (javascript is a
JITted language: Just In Time compiled). Most JITs either manage their
own memory, completely bypassing any ASLR in the OS, or depend on
certain features of ASLR. Also, the current implementation of ASLR is
not very effective on large memory hogs like browsers.

 but I want a basic browser capable of running
 Javascript
 securely in a thread-safe jail

JITs are in their infant stage and still catching up to the latest
decades of security insights.

 without crashing on double frees,

That would scare me actually. A double free means that:
either the software kept using the memory after the first free,
likely corrupting another part of the program, and it may have
used incorrect data for that time (since another part of the program
may have written its own data their).

For example, it may have published your passwords in some forum, if
the memory was used for password storage and a form post buffer
at the same time.

 running out of memory,

Unfortunately, no resource is unlimited.

 and selling more cookies than the Girl Scouts, that
 somehow manages to
 maintain more hidden access logs than a Swiss bank on MY
 personal computer,
 regardless of the privacy settings I choose.

In this case, you probably want to switch browsers altogether.

 Is surf a
 better browser, or are there
 other suggestions?

I don't know surf.

Someone mentioned xxxterm. I highly recommend it.
It's also based on webkit, which uses a JIT for its javascript, so the
above still applies to both browsers.

 Surely OpenBSD would not be
 accused of antitrust for integrating a browser into
 the operating system,

We hardly classify as a monopoly. :)

 or
 at least coming up with or pointing users toward a decent
 port if there is
 one.
 Maybe it's just wishful thinking, but what I'm getting at is that I
 want/need a secure standards-compliant graphical client for web access.

xxxterm is very fast and minimalistic (less complexity, thus less chance
for bugs). There's midori, which is a bit larger. Then there's chrome.
If you're using i386, you can also decide to run opera, using the linux
emulation layer.

All these can be found in the ports collection.


KDE also had a browser (konqueror). I don't know if KDE4 still provides
it. Konqueror, as shipped in KDE3, is pretty dated and will probably not
handle many sites, so won't display facebook or twitter (which may
considered a feature).


But if you're really conscious about security, you won't use any
graphical browser. They're huge, complex beasts and the recent cool-aid
of getting them to run faster has been detrimental to any left-over
safety (not to mention portability).

Using any browser is like locking the front door to your house after
putting the furniture on your lawn. :(
-- 
Ariane



Re: OpenBSD 5.0-current (GENERIC) #65: Thu Nov 3 00:58:36 MDT 2011

2012-01-23 Thread Ariane van der Steldt
Hi Richard,


On Sat, Jan 21, 2012 at 01:05:15PM -0500, Richard Thornton wrote:
 One other thing which I forgot to add to my last email, my father always
 used to remind me that there are no stupid questions,  but it appears to
 me that your openbsd group does not hold to that adage.

We do prefer if you've done some research of your own too. Nick pointing
you at the faq was a polite suggestion (although I guess it didn't come
across as such).

Using the same jargon as the rest of the mailing list helps reduce
confusion, which is the main reason of us telling you to read it.

 Most questions are judged as being some level of stupid and the person
 who asked the stupid question is judged accordingly.  One is either
 lazy or can't read, or too stupid to read the very well written
 FAQS, etc..

Actually, if it was unclear, I'd really like to hear about it.

 Whatever, so you guys have a great OS for yourselves.  Excellent.

Personally, I do enjoy others using it too. And not just because it
makes me happy that they run my code. :)


 On Sat, Jan 21, 2012 at 12:22 PM, Jan Stary h...@stare.cz wrote:
  On Jan 21 09:44:14, Richard Thornton wrote:

[snip: pointless flame fest]

   On Jan 21, 2012 9:25 AM, Jan Stary h...@stare.cz wrote:
  
  On Jan 21 07:18:37, Richard Thornton wrote:
   It works for me now.  I don't care about your precious FAQS.

The faq, manuals, documentation, they're all part of making this OS into
an actual OS, rather than a jumble of code. They're also there for your
convenience: finding the answer in the faq and manuals is a lot quicker
than waiting for a mail reply. Not to mention that people get annoyed if
you show blatant disregard for them.

I lack sufficient context to determine if you're responding because you
thought you were being verbally abused or if you genuinely don't care.
I hope it's not the latter.

  You are not supposed to care about them.
 
  You are supposed to read at least the absolute basics if you
  have trouble even figuring out which version you are installing.
   
On Jan 21 08:54:49, Richard Thornton wrote:
 How do you know I did not read any docs?  The fact is I did but I
  did not
 under stand that version#65 was not in fact the release found on the
 prepackaged disk.
   
   
These are the very first lines of FAQ 5.1:
   

There are three flavors of OpenBSD:
   
-release: The version of OpenBSD shipped every six months on CD.
-stable: Release, plus patches considered critical to security and
reliability.
-current: Where new development work is presently being
   done, and eventually, it will turn into the next release.


And here, I'm left wondering how you missed that and am genuinely
curious. Maybe it was in a non-obvious place, or how to correlate uname
output to this was unclear?

You still want to maintain that you have read it,
or do you really have trouble understanding it?

I did have some trouble finding this specific text. It's in section 5 -
Building the System from Source. Not really the first place I'd look if
I did an install and was dealing with packages.

If you bought the official CD of the 5.0 release,
as you claim, then what you installed from it is the 5.0 release.

I was under the impression that he'd installed first, then sent money.
Anyways, downloading from the website is not uncommon, even if you buy
the CDs. He may have decided to download, because the CDs take some
time to arrive...



I'm sorry you got flamed.

When I started using openbsd, I was amazed that I could use the manuals
to look things up. All of the system is documented, the documentation
is up-to-date, the FAQ tells what's important to get started. And we're
proud of that. The documentation is the other stuff, the ports and
the code. If they malfunction, it's a bug that needs to be fixed.

Most bugs are found by users. But getting that into an actual fix
requires feedback, which we don't get by flaming them into the next
world!
-- 
Ariane



Novedades

2012-01-23 Thread novedades
Campaqa por el orgullo de ser docente de Educacisn Fmsica,
--

Para el departamento de Educacisn Fmsica.

Pila
Teleqa

Sm, !yo soy el de Educacisn Fmsica! Formo parte de un cuerpo especial, de
un grupo de docentes privilegiados, de un una banda de ilusionados, de
los que conectan con sus alumnos, de los que valoran la educacisn en toda
su globalidad, de los que tratan de mejorar dma a dma, de los que se
sienten solos en los Claustros, de los que las familias no solicitan su
accisn tutorial, de los que pasan frmo y calor por esos patios, de los
que todavma les queda mucho por aprender, de los olvidados por la
administracisn... Si, soy el de Educacisn Fmsica.

Cuando los cimientos de la escuela se tambalean porque sus enseqanzas han
dejado de interesar a nuestros alumnos, la Educacisn Fmsica se muestra
como uno de los pilares que azn la sostienen. Los niqos vienen al cole de
otra manera cuando toca gimnasia.click aqum para continuar leyendo ...

Antes de la crisis, enviabamos 24.00 ejemplares gratuitos de la revista
El Patio tres veces al aqo. Con artmculos, debates, opiniones, ideas y
experiencias. Nos encantarma poder reanudar este servicio utilizando las
nuevas tecnologmas que son mucho mas baratas. Danos tu confianza, danos
tu direccisn de correo electrsnico.

[IMAGE]

Para dase de baja hacer click aqum