Re: Discovering the keycode of key.

2014-12-27 Thread Mats O Jansson
On Fri, 26 Dec 2014, Eduardo Lopes wrote:

 Hello folks! 
 
 May someone point to me how do I can obtain, in the console, the keycode of 
 any particular key, in OpenBSD?

There is no easy way. If you are intrested in unmapped keys you could use
the following script to map all unmapped characters.

#!/bin/ksh
jot 255 1 |
while read i; do
  str=`wsconsctl keyboard.map | grep ^keycode ${i} = `
  if [ $str =  ]; then
j=`printf %03d $i`
d0=${j%[0-9][0-9]}
k=${j#[0-9]}
d1=${k%[0-9]}
d2=${j#[0-9][0-9]}
`wsconsctl keyboard.map+=keycode $j = $d0 $d1 $d2 at`
echo $s
  fi
done

If you test a previously unmapped key unshifted shifted and alt gr
you should get tree digits which would be the decimal keycode of that
key.

if you dump keyboard.map after the script has been executed you should
find lines like

keycode 96 = 0 9 6 at

-moj 

 thanks
 
 Eduardo Lopes.



Re: Adding a new keymap

2014-12-24 Thread Mats O Jansson
I assume you want to create a keyboard map for brazilian dvorak i
console mode

Create a script that create a custom map. When the script is working it 
can be converted to source code.

The script should look something like

# Set encoding in a known state
wsconsctl keyboard.encoding=us.dvorak
# Add modifications, the following is a dummy since it already exists.
wsconsctl keyboard.map+=keycode 40=minus underscore

wsconctl keyboard.map will dump the current mapping.

It might be handy to have a script ready to reset the keyboard to a known 
state.

-moj

On Wed, 24 Dec 2014, Henrique Lengler wrote:

 On Wed, Dec 24, 2014 at 08:21:31PM +, Maurice McCarthy wrote:
  Many keymaps can be set during the installation:
 
 I'm talking about add a new keymap. Not choose one that already 
 exists.
 Looks like anyone know how the keymaps had been added to openbsd,
  they are just there. 
 
 Regards,
 -- 
 Henrique Lengler



Re: keyboard layout on macppc

2014-06-09 Thread Mats O Jansson
On Mon, 9 Jun 2014, bodie wrote:

 On 09.06.2014 14:43, luca suriano wrote:
  * - 13:26:02 (Monday 09 June 2014)
  * - Zé Loff:
  
$ wsconsctl encoding=it
wsconsctl: encoding it: no such variable
   I think this should be 'keyboard.encoding', not just 'encoding'.
  
  I tried but it doesn't work.
  
  $ wsconsctl keyboard.encoding=it
  wsconsctl: WSKBDIO_SETENCODING: Invalid argument
 
 Try kbd -l just to see what's available. Because looking
 here http://www.openbsd.org/cgi-bin/cvsweb/src/sbin/wsconsctl/keysym.c?rev=1.7
 I can see that IT is not present in base system. Of course
 you can still switch to IT in X with setxkbmap

You can see that IT is not present in base system? Don't drive a car!

IT is present. see 
http://.openbsd.org/cgi-bin/cvsweb/src/sys/dev/wscons/wsksymdef.h?rev=1.36

The following is my guess since i havn't seen a dmesg:

The computer has the keyboard hanging on adb, and adb keyboard driver 
doesn't have an IT layout. The later verified.

-moj



Re: keyboard layout on macppc

2014-06-09 Thread Mats O Jansson
On Mon, 9 Jun 2014, luca suriano wrote:

 Now I'm a little bit confused, I don't understand if there is a way to
 set up Italian keyboard layout.
 
 There is akbd Apple Keyboard Device and an item is Apple ibook
 Keyboard, can i use it for my purpose? 

Yes, set encoding to e.g. US. Modify keyboard.map with wsconsctl as shown 
by the man page. Do it as a script so you can redo it when ever needed.

wsconsctl keyboard.map will show the current map.

When you have something useful it would be easy to convert it to the 
internal keyboard map format in sys/dev/adb/akbdmap.h. Most large maps 
starts with US and modifies it.

-moj
 
 -- 
 Information wants to be free



Re: Install drivers

2013-08-12 Thread Mats O Jansson
On Mon, 12 Aug 2013, Matthew Weigel wrote:

 On 08/11/2013 10:35 AM, josef.win...@email.de wrote:
 
  I want to support as much hardware as possible 'out of the box'
  and since a network can't be assumed, I need to preinstall the
  drivers.
 
 GENERIC supports as much hardware as possible 'out of the box.'

Yes, but some might need fireware to work. The firmware needs to be 
downloaded whike online (e.g. some wifi drivers).

-moj

 -- 
 Matthew Weigel
 hacker
 unique  idempot . ent



Re: DisplayLink CONV-USB2DVI : wsudl(0): We are not attached to the udl driver

2012-08-11 Thread Mats O Jansson
On Sat, 11 Aug 2012, Alexis de BRUYN wrote:

 On 02.08.2012 22:31, Alexis de BRUYN wrote:
  On 02.08.2012 21:48, Matthieu Herrb wrote:
 
  This is the xorg.conf I use to test wsudl:
 
  Section Devicë
  Identifier  Card0
  Driver  wsudl
  Option  Devicë /dev/ttyD0
  EndSection
 
  (Yes that's it. Modern X can figure out everything else).
  Thanks for your help Matthieu, but I still have the issue (with OpenBSD
  snapshot amd64) :
 
  [ 22191.865] (II) LoadModule: wsudl
  [ 22191.865] (II) Loading /usr/X11R6/lib/modules/drivers/wsudl_drv.so
  [ 22191.865] (II) Module wsudl: vendor=X.Org Foundation
  [ 22191.865]compiled for 1.12.2, module version = 0.2.1
  [ 22191.865]ABI class: X.Org Video Driver, version 12.0
  [ 22191.865] (II) wsudl: driver for: DisplayLink
  [ 22191.865] (WW) Falling back to old probe method for wsudl
  [ 22191.865] (II) wsudl(0): using /dev/ttyD0
  [ 22191.865] (EE) wsudl(0): We are not attached to the udl driver
  [ 22191.865] (II) UnloadModule: wsudl
  [ 22191.865] (EE) Screen(s) found, but none have a usable configuration.
  [ 22191.865]
  Fatal server error:
  [ 22191.865] no screens found
 
 Hi Everybody,
 
 I have restarted my tests, and found that /dev/ttyDO was missing, so I
 did a sh MAKEDEV ttyD0 in /dev and now I can launch X. Thanks Matthieu.
 
 I am trying now to add a second usb display :
 
 udl0 at uhub6 port 2 DisplayLink CONV-USB2DVI rev 2.00/0.03 addr 4
 no data for est. mode 832x768x74
 no data for est. mode 640x480x67
 no data for est. mode 720x400x70
 max_dotclock according to supported modes: 162000
 wsdisplay1 at udl0 mux 1
 wsdisplay1: screen 0 added (std, vt100 emulation)
 udl1 at uhub6 port 3 DisplayLink CONV-USB2DVI rev 2.00/0.03 addr 5
 no data for est. mode 832x768x74
 no data for est. mode 640x480x67
 no data for est. mode 720x400x70
 max_dotclock according to supported modes: 162000
 wsdisplay2 at udl1 mux 1
 wsdisplay2: screen 0 added (std, vt100 emulation)
 
 So I did sh MAKEDEV ttyD1, and modify my xorg.conf like,

Where did you get ttyD1 from? Try to add ttyE0.

-mojx
 
 Section ServerLayout
 Identifier  Server Layout
 Screen  0   Screen1 0 0
 Screen  1   Screen2 RightOf Screen1
 Option  Xinerama On
 EndSection
 
 Section Screen
 Identifier  Screen1
 Device  Card1
 EndSection
 
 Section Screen
 Identifier  Screen2
 Device  Card2
 EndSection
 
 Section Device
 Identifier  Card1
 Driver  wsudl
 Option  Device /dev/ttyD0
 EndSection
 
 Section Device
 Identifier  Card2
 Driver  wsudl
 Option  Device /dev/ttyD1
 EndSection
 
 I have just one display working and the following error (complete log
 after) :
 [377893.438] (EE) wsudl(1): We are not attached to the udl driver
 
 Is my xorg.conf right?
 Do I need to be more specific with BusID?
 Can I use more than one ttyD* device?
 
 Thanks again for your help.



Re: DisplayLink CONV-USB2DVI : wsudl(0): We are not attached to the udl driver

2012-08-11 Thread Mats O Jansson
On Sat, 11 Aug 2012, Alexis de BRUYN wrote:

 On 11.08.2012 20:22, Mats O Jansson wrote:
  So I did sh MAKEDEV ttyD1, and modify my xorg.conf like,
  Where did you get ttyD1 from? Try to add ttyE0.
  
 I have chosen ttyD1 because I think I had to choose the next ttyD* after
 ttyD0.
 
 Unfortunately, I have the same error with ttyE0.

Just for the record, if someone is having problems in the future...

Since I havn't seen a dmesg i guess that wsdisplay0 is your graphics card 
on your pc (/dev/ttyC0). udl0 is wsdisplay1 (/dev/ttyD0). So udl1 is 
wsdisplay2 (/dev/ttyE0). 

You can use wsconsctl to verify which device it should be.

on my laptop i get (with one udl device)...

# wsconsctl -f /dev/ttyC0 display.type
display.type=vga-pci
# wsconsctl -f /dev/ttyD0 display.type
display.type=displaylink
# wsconsctl -f /dev/ttyE0 display.type
wsconsctl: /dev/ttyE0: No such file or directory

if I add /dev/ttyE0, with MAKEDEV, i'll get

wsconctl: /dev/ttyE0: Device not configured

Just giving wsconsctl will show both display.* and display1.*

-moj

 Thanks for your help.
 
 -- 
 Alexis de BRUYN



Re: DisplayLink CONV-USB2DVI : wsudl(0): We are not attached to the udl driver

2012-08-03 Thread Mats O Jansson
On Thu, 2 Aug 2012, Alexis de BRUYN [Mailinglists] wrote:

 The chip is a DL-165. Maybe it is my problem. UDL(4) mentions that :
 DESCRIPTION
  The udl driver supports USB display devices based on the DisplayLink
  DL-120 / DL-160 graphic chip.
 
 Regards,

Nope, DL-165 is supported. But looking at udl.c i see that is seems to 
think that the device is a DL-160. I assume you are correct that your
device is based on DL-165. I have found more than one udl devices with
the same usb id, but different chipsets. The windows driver seems to have
a way of knowning which. 

What you can test is changing the line in udl_devs for DISPLAYLINK_CONV 
from DL160 to DL165 and see if it makes any difference.

-moj
 
 --
 Alexis de BRUYN



Re: DisplayLink CONV-USB2DVI : wsudl(0): We are not attached to the udl driver

2012-08-03 Thread Mats O Jansson
On Fri, 3 Aug 2012, Alexis de BRUYN wrote:

 Thanks Mats for your answer.
 
  The chip is a DL-165. Maybe it is my problem. UDL(4) mentions that :
  DESCRIPTION
   The udl driver supports USB display devices based on the DisplayLink
   DL-120 / DL-160 graphic chip.
  
  Nope, DL-165 is supported. But looking at udl.c i see that is seems to 
  think that the device is a DL-160. I assume you are correct that your
  device is based on DL-165. I have found more than one udl devices with
  the same usb id, but different chipsets. The windows driver seems to have
  a way of knowning which. 
 Yes I am sure, it is written here:
 http://www.startech.com/AV/USB-Video-Adapters/USB-DVI-External-Multi-Monitor-Video-Adapter~USB2DVI
 
  What you can test is changing the line in udl_devs for DISPLAYLINK_CONV 
  from DL160 to DL165 and see if it makes any difference.
 I have changed to DL165 and rebuilt as you mentionned, but
 unfortunately, I have the same error message.

Hmm, looking at the message you get about modes it seems that they are
generated by dev/videomode/edid.c. Recompile it with EDIDVERBOSE defined.
That might give us more information on whats going on...

What kind of display is connected to the udl device?

-moj
 
 Regards,
 
 -- 
 Alexis de BRUYN



Re: SoundBlaster fails to configure in -current

2009-11-07 Thread Mats O Jansson

On Sat, 7 Nov 2009, Ed Ahlsen-Girard wrote:


On Sat, 7 Nov 2009 08:04:01, Jacob Meuser wrote:

User-Agent: Mutt/1.4.2.3i

On Fri, Nov 06, 2009 at 06:12:45PM -0600, Ed Ahlsen-Girard wrote:

A SoundBlaster Live fails to configure.  I have read man (4) emu and
man (4) pci are admirable, but terse.



Creative Labs SoundBlaster Live (Dell) rev 0x00 at pci2 dev 2
function 0 not configured


RCS file: /cvs/src/sys/dev/pci/emuxki.c,v
Working file: emuxki.c

revision 1.26
date: 2008/03/10 21:25:53;  author: jakemsr;  state: Exp;  lines: +1
-2

the Dell SoundBlaster Live! 5.1 cards differ enough from regular
SB Live!/5.1/Audigy/2/4 cards that both OSS and ALSA provide
separate modules from their emu10k1 drivers to support them.

and in PR 5143, we see that emu(4) does not support these Dell
SBLive! cards, so don't attach emu(4) to them.

ok ratchov, brad


This looks to be a patch from 2008 that is not in -current (and
the emuxki.c in the source tree I checked out the
other day is a different version). Where would the right one
live?


The patch removed the attachment off the Dell version since it didn't
work with our driver. All this is stated in the commit message. Since
current doesn't attach to the Dell version the patch is still in...
Your card is not supported by emu(4) since it needs a different driver...

-moj


--
Ed Ahlsen-Girard




Re: umlauts strangeness in 4.5

2009-09-06 Thread Mats O Jansson

On Sun, 6 Sep 2009, Martin Bock wrote:



There are cyrillic letters in the keyboard.map,
$ sudo wsconsctl keyboard.map
...
keycode 3 = 2 quotedbl twosuperior twosuperior
keycode 4 = 3 Cyrillic_yi L2_lstroke L2_lstroke
keycode 5 = 4 dollar
...
keycode 11 = 0 equal braceright braceright
keycode 12 = Cyrillic_hsighn question backslash backslash
keycode 13 = apostrophe grave
...
keycode 25 = p P
keycode 26 = Cyrillic_E Cyrillic_e
keycode 27 = plus asterisk asciitilde asciitilde
...
keycode 38 = l L
keycode 39 = Cyrillic_ZHE Cyrillic_zhe
keycode 40 = Cyrillic_DE Cyrillic_de
keycode 41 = asciicircum degree
...
exactly where there would be umlauts and other german specifics.



This isn't a problem.

The keyboard map only returns eightbit characters. Since there is keyboard
maps on encoded in iso-8859-1 the upper half has some duplicate. Same 
value has different names. But the map print routine just prints the first
name for the value and the table is sorted in alphabetic order. So in 
these cases C is before the first charater in your charaters name.


-moj



Re: Mimi UM-740 touchscreen for OpenBSD

2009-07-31 Thread Mats O Jansson

On Tue, 28 Jul 2009, Edd Barrett wrote:


Hello,

My friend is looking to use this small touchscreen for a project he is
doing. The model is: Mimo UM-740, which he was hoping would be attaching
to the udl(4) driver. Does anyone know if this screen is based on the
dl-120/dl-160 chipset?

I have attached a dmesg, the screen was plugged in to my thinkpad. As
you can see, the mouse and camera are happy, the display itself is not.


As far as I can see the monitor has a DisplayLink chipset in it. But which
is hard to say. An educated guess should be an dl-12x (Since the screen is
800x480).

To make the driver work I need the output from

usbdevs -v

-moj


Thanks
--

Best Regards

Edd Barrett
(Freelance software developer / technical writer / open-source developer)

http://students.dec.bmth.ac.uk/ebarrett
OpenBSD 4.6 (GENERIC) #58: Thu Jul  9 21:24:42 MDT 2009
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1700MHz (GenuineIntel 686-class) 1.70 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
real mem  = 1072656384 (1022MB)
avail mem = 1028411392 (980MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/22/05, BIOS32 rev. 0 @ 0xfd750, SMBIOS 
rev. 2.33 @ 0xe0010 (57 entries)
bios0: vendor IBM version 1QET97WW (3.02 ) date 09/22/2005
bios0: IBM 2673W7Z
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1
cpu0 at mainbus0: (uniprocessor)
cpu0: Enhanced SpeedStep 1699 MHz: speeds: 1700, 1400, 1200, 1000, 800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
io address conflict 0x5800/0x8
io address conflict 0x5808/0x4
io address conflict 0x5810/0x8
io address conflict 0x580c/0x4
pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xd000, size 0x1000
ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M6 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: irq 11
drm0 at radeondrm0
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci2 at ppb1 bus 2
mem address conflict 0xb000/0x1000
mem address conflict 0xb100/0x1000
cbb0 at pci2 dev 0 function 0 Ricoh 5C476 CardBus rev 0xaa: irq 11
cbb1 at pci2 dev 0 function 1 Ricoh 5C476 CardBus rev 0xaa: irq 11
Ricoh 5C552 Firewire rev 0x02 at pci2 dev 0 function 2 not configured
em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03: irq 11, 
address 00:11:25:b1:32:43
ral0 at pci2 dev 2 function 0 Ralink RT2561S rev 0x00: irq 11, address 
00:12:0e:61:5b:74
ral0: MAC/BBP RT2561C, RF RT5225
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x0, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer 
at 3579545Hz
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: HTS726060M9AT00
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 disabled (no drives)
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 512MB DDR SDRAM non-parity PC2700CL2.5
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 
AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
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
isa0 at ichpcib0
isadma0 at 

Re: English and Spanish keyboard at same time?

2009-07-22 Thread Mats O Jansson

On Wed, 22 Jul 2009, Chris Bennett wrote:


I do most of my work in English, but I also do a small amount in Spanish.
I have a Spanish keyboard, but when I tried hooking it up, didn't get what 
was on keys.


there is no problems to have different encodings on two keyboards.
the following command will change the encoding on the second one.

wsconsctl -f /dev/wskbd1 keyboard.encoding=es

-moj

Is there any way to change this dynamically so that I can switch back and 
forth easily?


Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
 -- Robert Heinlein




Re: English and Spanish keyboard at same time?

2009-07-22 Thread Mats O Jansson

On Wed, 22 Jul 2009, Felipe Scarel wrote:


Try kbd(8).


kbd(8) will set the encoding on ALL keyboards while wsconsctl(8) can do it
on a selected keyboard.

-moj


On Wed, Jul 22, 2009 at 11:43, Chris Bennett
ch...@bennettconstruction.biz wrote:


I do most of my work in English, but I also do a small amount in Spanish.
I have a Spanish keyboard, but when I tried hooking it up, didn't get what

was on keys.


Is there any way to change this dynamically so that I can switch back and

forth easily?


Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
 -- Robert Heinlein




Re: tmux vs wake

2009-06-05 Thread Mats O Jansson

On Fri, 5 Jun 2009, Pawlowski Marcin Piotr wrote:


Hi all,
I'm a little bit curious about why there is place in bin for tmux(1)
and there is no place for wake(8). In my opinion it's a little bit
unfair. Could someone explain it?


life isn't fair...

tmux replaced window.

one removed, one added.

-moj


Information about why wake(8) was removed:
http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/wake/Attic/Makefile?hideattic=0;only_with_tag=HEAD

Cheers!




Re: keyboard encoding

2008-07-29 Thread Mats O Jansson

On Tue, 29 Jul 2008, Hannah Schroeter wrote:


Hi!

On Mon, Jul 28, 2008 at 07:30:35PM +, Christian Weisgerber wrote:

Hannah Schroeter [EMAIL PROTECTED] wrote:



Is your keyboard an USB one? I observe the same with an USB keyboard.



- keyboard.encoding=us.swapctrlcaps has no effect (in
  /etc/wsconsctl.conf)



These settings only affect the _first_ keyboard in the system
(wskbd0).  Unfortunately, for a PC that is usually the PS/2 keyboard,
even if none is plugged in.



This is a box that has *no* PS/2 connectors any more.



But it still has a PS/2 keyboard controller.  Check your dmesg.  It
probably includes something like this:



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


You're right:

$ grep pckb /var/run/dmesg.boot
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
$

That's quite unfortunate though if you can't affect the non-X11 keyboard
mapping of secondary keyboards at all.


Thats not correct.

/sbin/kbd will change keyboard settings on ALL keyboards that has
support for the requested keyboard map.

wsconsctl has -f which allows you select which keyboard you are applying
the change to. For keyboard operations /dev/wskbd0 is default if not
specified.

read the man page!


(And btw, in X11, somehow the setup of the keyboard mapping from
/etc/X11/xorg.conf is delayed, since about mid-December 2007. Before,
the mapping from there, and from a few xmodmap settings loaded in
.xinitrc, took effect immediately when X was up from startx, now it
takes quite some time, perhaps half a minute or so, for them to take
effect. Related to X11 privsep changes? Later changes using setxkbmap
take effect immediately, btw.)


It will always take the mapping from xorg.conf if it is defined there.
If no keyboard language is specified X11 will now make a guess depending
on which keyboard layout wscons has. But since X11 is reading the keyboard
raw any change made to wscons after X11 is started doesn't change anything
in X11.

-moj


Kind regards,

Hannah.




Re: keyboard.repeat.del and second keyboard

2008-05-12 Thread Mats O Jansson

On Mon, 12 May 2008, Rafal Brodewicz wrote:


Hello.

How can I set keyboard.repeat.del* for external keyboard connected to
laptop through usb port?
Above settings works fine for laptop's keyboard.


wsconsctl -f /dev/wskbd1 keyboard.repeat.del1=400

If the ubs keyboard is wdkbd1

-moj



Thanks for reply.
--
Rafal Brodewicz




Re: Croatian keymap (Was: azalia)

2008-05-05 Thread Mats O Jansson

On Fri, 2 May 2008, [EMAIL PROTECTED] wrote:


it seems that xmms has resampling logic(just as faq claimed :))
and successfully plays
mp3 and flac files after complaining about:

**warning**:/dev/audio:cannot handle 44100Hz(invalid argument)

-it seems my device is locked at 48000Hz

everything else works great, thx to all developers

p.s. i would like to make croatian keymap which is not supported and
be great to get some pointers for documentation how to do that or
where to look


Just a tad to little information...

Are you talking about a croatian keymap in console mode or in X?

How different is the croatian keymap compared with a slovenian?

The slovenian (si) is supported in console, but you need a latin 2 font
to get the correct characters.

-moj



Re: BDB simple program compile problem

2008-03-19 Thread Mats O Jansson

If the include you need is in /usr/local/include dont include the
one in /usr/include.

-moj

On Wed, 19 Mar 2008, Michael Spratt wrote:


on openbsd4.2 installed db-3.1.17p8
trying to compile this simple c program using the BerkeleyDB
Could anyone help me trouble shoot my cc line optons? I believe there is a
problem with the program seing the library? I want to statically link the
libray.


include dir is /usr/local/include/db

# pwd
/usr/local/lib/db
# ls
libdb.a   libdb.la  libdb.so.3.1  libdb_cxx.a
libdb_cxx.la  libdb_cxx.so.4.0


lib dir is /usr/local/lib/db

# pwd
/usr/local/include/db
# ls
db.h db_185.h db_cxx.h

CODE--
#include sys/types.h
#include stdio.h
#include db.h

#define DATABASE access.db

int
main()
{
   DB *dbp;
   int ret;

   if ((ret = db_create(dbp, NULL, 0)) !=0) {
   fprintf(stderr, db_creat: %s\n, db_strerror(ret));
   exit(1);
   }

}

COMPILE OUTPUT-
# cc t2.c
/tmp//ccdm8869.o(.text+0x1c): In function `main':
: undefined reference to `db_create'
/tmp//ccdm8869.o(.text+0x32): In function `main':
: undefined reference to `db_strerror'
collect2: ld returned 1 exit status




Re: /usr/include/ headers in the kernel source

2008-02-06 Thread Mats O Jansson
On Wed, 6 Feb 2008, Joco Salvatti wrote:

 Hi all,

 I've downloaded the OpenBSD 4.2 current source tree to my 4.2 release
 machine. Then I've made small modifications to my kernel, but when I
 run make depend I get the following error messages:

 /usr/src/sys/kern/kern_sysctl.c:91:21: ifaddrs.h: No such file or directory
 /usr/src/sys/kern/kern_sysctl.c:92:17: err.h: No such file or directory
 /usr/src/sys/kern/kern_sysctl.c:93:19: ctype.h: No such file or directory

 I've already read style(9) and even made some search on the web, but I
 could not find a thing. So I would like to hear from you where I could
 find information about this issue or if it is possible to use
 /usr/include headers in the kernel (I guess so because I've seen this
 in other kernel files) adnd if it links to user libraries.

The three include files are userland includes. You can't use them in 
kernel source.

A quick search in the sys tree didn't find any reference to ifaddrs.h.
err.h and ctype.h are in some utilities in the sys tree but not in
any kernel sources.

the kernel doesn't link with any userland libraries.

-moj

 Thanks in advance for the time wasted reading this e-mail.

 --
 Joao Salvatti
 Undergraduating in Computer Science
 Federal University of Para - UFPA
 web: http://www.openbsd-pa.org
 e-mail: [EMAIL PROTECTED]



Re: 64 bit file I/O?

2008-01-10 Thread Mats O Jansson

On Thu, 10 Jan 2008, Unix Fan wrote:


Does OpenBSD's base utilities support 64 bit I/O?

I attempted to create a 8GB file using the dd application distributed with
OpenBSD 4.2, unfortunately it fails with:

dd: count: Result too large

Confused, I tried making the size smaller, and noticed it bails out at
exactly 4294967295 bytes, 4294967294 succeeds however..

dd: count: Undefined error: 0

What are my options?


Since you didnt show us your arguments to the command I have to guess.

The following command created a file called 8g:

$ dd if=/dev/zero of=8g bs=1048576 count=8192
8192+0 records in
8192+0 records out
8589934592 bytes transferred in 148.378 secs (57891904 bytes/sec)

-moj


-Nix Fan.




Re: httpdv6

2007-12-08 Thread Mats O Jansson
On Sat, 8 Dec 2007, Marc Balmer wrote:

 Henning Brauer wrote:
  * Marc Balmer [EMAIL PROTECTED] [2007-12-08 15:29]:
  Henning Brauer wrote:
  * Jeroen Massar [EMAIL PROTECTED] [2007-12-08 09:49]:
  Frank Habicht wrote:
  Hi misc,
 
  [i guess misc is better than ports for that..]
 
  I ran the patched httpdv6 with the stock httpd.conf
  - it was only bound to v6
 
  README.v6 suggests _for_Vhost_operation_ one needs
  Listen :: 80
  Listen 0.0.0.0 80
 
  my test suggests even without vhosts these are needed to run both v4 and
  v6.
 
  Of course you need this.
  wait.
  if an existing OpenBSD installation with existing httpd.conf gets 
  upgraded 
  (without changing the httpd.conf) and after that the httpd suddenly only 
  listens on v6 and not v4 any more, then the patch is wrong.
  here, a change to the software requires a change in the configuration
  as well.
 
  In this case it is well documented and the change is trivial.
 
  and we have enough ways to teach users about it.
  
  bullshit.
  the diff is plain wrong and willfuck users.
  and the fix is so obvious and reasonably easy...
  (no af specified = both, OF COURSE)
 
 This diff assumes IPv6 as default if no AF is specified, this is what
 is expected from IPv6 software and what the original authors intended,

This is the problem. You are trying to switch a daemon to be IPv6 centric
when the majority of our users doesn't use IPv6. I can understand that 
KAME has that agenda but I dont think OpenBSD should. 

It is like we should have disabled SSHv1 the same moment we implemented
SSHv2 in OpenSSH.

 The change is so trivial that this will not fuck any users.

Get real...

I have no problems with it listening on both. But one might change the
example config file to not use the * syntax. 

-moj



Re: src tree broken or cvs repo out of sync?

2007-11-26 Thread Mats O Jansson
This is due to changes in the config files, but your config doesn't know
the syntax. Recompile usr.sbin/config and install it before running
config.

-moj

On Mon, 26 Nov 2007, Didier Wiroth wrote:

 Hello,
 
 I updated my src tree (current sources) this morning and updated it a few 
 times this afternoon but I'm not able to build the kernel anymore, is anyone 
 else experiencing this issue?
 I'm able to reproduce this on another PC where I updated the source too.
 
 cd /usr/src/sys/arch/amd64/conf  /usr/bin/sudo config GENERIC
 ../../../../conf/files:995: syntax error
 ../../../../conf/files:996: syntax error
 ../../../../conf/files:997: syntax error
 ../../../../conf/files:998: syntax error
 ../../../../conf/files:999: syntax error
 ../../../../conf/files:1000: syntax error
 ../../../../conf/files:1001: syntax error
 ../../../../conf/files:1002: syntax error
 ../../../../conf/files:1003: syntax error
 ../../../../conf/files:1004: syntax error
 ../../../../conf/files:1005: syntax error
 ../../../../conf/files:1006: syntax error
 ../../../../conf/files:1007: syntax error
 ../../../../conf/files:1008: syntax error
 ../../../../conf/files:1009: syntax error
 ../../../../conf/files:1010: syntax error
 ../../../../conf/files:1011: syntax error
 ../../../../conf/files:1012: syntax error
 ../../../../conf/files:1013: syntax error
 ../../../../conf/files:1014: syntax error
 ../../../../conf/files:1015: syntax error
 ../../../../conf/files:1016: syntax error
 ../../../../conf/files:1017: syntax error
 ../../../../conf/files:1018: syntax error
 ../../../../conf/files:1019: syntax error
 ../../../../conf/files:1020: syntax error
 ../../../../conf/files:1021: syntax error
 ../../../../conf/files:1022: syntax error
 ../../../../conf/files:1023: syntax error
 ../../../../conf/files:1024: syntax error
 ../../../../conf/files:1025: syntax error
 ../../../../conf/files:1026: syntax error
 ../../../../conf/files:1027: syntax error
 ../../../../conf/files:1028: syntax error
 *** Stop.
 *** Error code 1
 
 Thx for the help
 Didier



Re: Compiling pcc

2007-11-17 Thread Mats O Jansson
On Sat, 17 Nov 2007, Pedro Oliveira wrote:

 Hi,
 
 Has anyone had luck compiling the pcc that comes in the source tree?
 I've been trying everyday after syncronizing, but im having the same
 error over and over.
 
 It always fails on the directory ccom/i386
 
 cc -O2 -pipe  -DPCC_DEBUG -DGCC_COMPAT -Wall -Wmissing-prototypes
 -Wstrict-prototypes -Werror -DLIBEXECDIR=\/usr/local/libexec\   -I.
 -I/usr/src/usr.bin/pcc/ccom/i386/.. -I/usr/src/usr.bin/pcc/ccom/i386
 -I/usr/src/usr.bin/pcc/ccom/i386/../../mip
 -I/usr/src/usr.bin/pcc/ccom/i386/../../i386
 -I/usr/src/usr.bin/pcc/ccom/i386/../.. -c
 /usr/src/usr.bin/pcc/ccom/i386/../trees.c
 In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70:
 /usr/src/usr.bin/pcc/mip/pass2.h:40:22: external.h: No such file or
 directory
 In file included from /usr/src/usr.bin/pcc/ccom/trees.c:70:
 /usr/src/usr.bin/pcc/mip/pass2.h:375: error: syntax error before
 bittype
 *** Error code 1
 
 Am I doing something wrong or it still doesnt build yet?

I tested the source as of today and had no problems.

In usr/src/usr.bin/pcc i did the following steps...

make obj
make depend
make

if i wanted to install it i should do a

make install

-moj
 
 Thanks in advance,
 Pedro de Oliveira.



Re: how can I find xyz | xargs tar ... like gtar

2007-09-23 Thread Mats O Jansson
On Sun, 23 Sep 2007, Didier Wiroth wrote:
 How can achive my goal with the standard openbsd files (without installing 
 gtar!)?

When I started to do backup many years ago it was a find piped to cpio.

so i think you could replace the xargs tar with some variant of
cpio -o -H ustar which should generate a tar archive. 

but i havn't tested... So look at the switches for cpio.

-moj

 Thank you very much
 didier



Re: NIS: how to fetch input files from another directory than /etc (please, i am desperated)

2007-09-01 Thread Mats O Jansson
Do you have any understanding of YP?

You tell us that it builds ok. Is that all debugging you have done?

Have you verified that you get the correct entry for sioux from
master.passwd? ypmatch from root can be used to test that...

ypcat and ypwhich is other tools you can use to debug...

makedbm -u can be used to look at the compiled maps.

-moj
 
On Sat, 1 Sep 2007, Gustavo Rios wrote:

 Dear gentleman,
 
 i am trying to get nis to build their maps from files located in
 another directory than /etc.
 
 So, my Makefile (inside /var/yp/`domainname`) has the following lines :
 
 YPDBDIR=/var/yp
 DIR=/asd/etc
 AMDDIR=/asd/etc/amd
 NOPUSH=
 UNSECURE=
 USEDNS=-b
 
 So my ideia is to grab as input, passwd and group files from
 /asd/etc; all others are empty.
 
 My group file inside /asd/etc is:
 its:*:1000:
 asd:*:1001:sioux
 dba:*:1002:sioux
 wbx:*:1003:
 alg:*:1004:sioux
 djb:*:1005:
 nofiles:*:1006:
 qmail:*:1007:
 ftp:*:1008:
 ord:*:2000:
 adc:*:2001:
 bod:*:2002:
 frn:*:2003:
 
 
 And my master.passwd is:
 sioux:$2a$08$B8PLPgdw18I.TlnZC8RnZezg1Ed8gQL8WU/4rpxdyGdOk/PO/9Ude:1000:1000:mojave:0:0::/home/sioux:/bin/sh
 mysql:*:1001:1002:mojave:0:0::/home/mysql:/usr/bin/false
 oldap:*:1002:1002:mojave:0:0::/home/oldap:/usr/bin/false
 dnscache:*:1003:1005:mojave:0:0::/home/dnscache:/usr/bin/false
 dnslog:*:1004:1005:mojave:0:0::/home/dnslog:/usr/bin/false
 tinydns:*:1005:1005:mojave:0:0::/home/tinydns:/usr/bin/false
 ftp:*:1006:1008:mojave:0:0::/asd/var/ftp:/sbin/nologin
 alias:*:1007:1006:mojave:0:0::/var/qmail/alias:/usr/bin/true
 qmaild:*:1008:1006:mojave:0:0::/var/qmail:/usr/bin/true
 qmaill:*:1009:1006:mojave:0:0::/var/qmail:/usr/bin/true
 qmailp:*:1010:1006:mojave:0:0::/var/qmail:/usr/bin/true
 qmailq:*:1011:1007:mojave:0:0::/var/qmail:/usr/bin/true
 qmailr:*:1012:1007:mojave:0:0::/var/qmail:/usr/bin/true
 qmails:*:1013:1007:mojave:0:0::/var/qmail:/usr/bin/true
 
 Then i issued :
 
 # pwd_mkdb -d /asd/etc -s master.passwd
 # cd /var/yp/`domainname`
 # make
 
 Everything was built ok! But, the problem is the following: I cannot
 login as user sioux using the password i setted for it. But if i try
 the login as user sioux using a empty password () the authentication
 procedure passes.
 
 I can't understand what i am doing wrong?
 
 thanks a lot for your time and cooperation.
 
 Best regards.



Re: RAIDFrame root autoconfig fails in -current

2007-06-11 Thread Mats O Jansson
On Mon, 11 Jun 2007, Marco Peereboom wrote:

 pseudo devices can not be disabled in UKC.  Maja has a diff for that.
 I'll try to have a look at that soonish so that it can be disabled.  If
 one wants to run raidframe one should disable softraid.  I have not
 tested it but would expect them to step on each other.

Just for the record...

Even without my diff you can disable a pseudo device by modifing the
count for the device to zero (it even might work with a negative number,
i havn't tested). pseudo devices is only attached if count is greater than
zero. but working disable/enable commands for pseudo devices is nicer... 

-moj
 
 
 On Mon, Jun 11, 2007 at 06:48:22PM +0100, Stuart Henderson wrote:
  On 2007/06/11 13:00, Josh Grosse wrote:
   Running i386-current with a 26-May build everything is fine.  I just built
   a new kernel today, and got:
  
  softraidtm* is in GENERIC now and it autoconfigures; it may be causing
  a conflict with raidframe since they both use partitions with type raid.
  
  If you want to try disabling it, it's in the MI kernel config,
  /sys/conf/GENERIC.
  
  (if it's raid1 you want, the other option is to rebuild the box with
  softraid instead, if you do this and move files with dump/restore,
  update to the very recent sbin/dump/traverse.c first to keep ctime/mtime
  intact).
  
  
  
  * well, it wass, but the owners didn't renew it, so that's ok.



Re: Embedded system - which ?

2007-06-03 Thread Mats O Jansson
On Sun, 3 Jun 2007, Devin Smith wrote:

 What about using the EFIKA board? (http://www.pegasosppc.com/efika.php).
 Seems like it would meet all the requirements that Uwe was looking for. Oh
 and it's a PPC system on a chip. Not x86. I believe it works with NetBSD.
 
 
With history in mind I doubt this card will be supported in OpenBSD.

I wouldn't buy anything from that company.

-moj



Re: VESA modes

2007-05-20 Thread Mats O Jansson
On Sun, 20 May 2007, Jan Stary wrote:

 Hi all,
 
 this comes form a verbose boot of 4.1 on a Dell Latitude LS laptop:
 
 [...]
 vesabios0 at mainbus0: version 2.0, NeoMagic MagicMedia 256 AV
 vesabios0: VESA mode 0100: attributes 009f, 640x400 8bbp Packed pixel
 vesabios0: VESA mode 0101: attributes 009f, 640x480 8bbp Packed pixel
 vesabios0: VESA mode 0102: attributes 001f, 800x600 4bbp Planar
 vesabios0: VESA mode 0103: attributes 009f, 800x600 8bbp Packed pixel
 vesabios0: VESA mode 0104: attributes 001b, 1024x768 4bbp Planar
 vesabios0: VESA mode 0105: attributes 009f, 1024x768 8bbp Packed pixel
 vesabios0: VESA mode 0107: attributes 009f, 1280x1024 8bbp Packed pixel
 vesabios0: VESA mode 010d: attributes 009f, 320x200 15bbp Direct Color
 vesabios0: VESA mode 010e: attributes 009f, 320x200 16bbp Direct Color
 vesabios0: VESA mode 0110: attributes 009f, 640x480 15bbp Direct Color
 vesabios0: VESA mode 0111: attributes 009f, 640x480 16bbp Direct Color
 vesabios0: VESA mode 0112: attributes 009f, 640x480 24bbp Direct Color
 vesabios0: VESA mode 0113: attributes 009f, 800x600 15bbp Direct Color
 vesabios0: VESA mode 0114: attributes 009f, 800x600 16bbp Direct Color
 vesabios0: VESA mode 0115: attributes 009f, 800x600 24bbp Direct Color
 vesabios0: VESA mode 0116: attributes 009f, 1024x768 15bbp Direct Color
 vesabios0: VESA mode 0117: attributes 009f, 1024x768 16bbp Direct Color
 vesabios0: VESA mode 0118: attributes 009f, 1024x768 24bbp Direct Color
 vesabios0: VESA mode 0120: attributes 009b, 320x240 8bbp Packed pixel
 vesabios0: VESA mode 0121: attributes 009b, 320x240 16bbp Direct Color
 vesabios0: VESA mode 0122: attributes 009b, 400x300 8bbp Packed pixel
 vesabios0: VESA mode 0123: attributes 009b, 400x300 16bbp Direct Color
 [...]
 vga0 at pci1 dev 0 function 0 Neomagic Magicgraph NM2200 rev 0x20, vesafb
 
 Do these messages mean that my graphic chip is actually
 capable of a 1024x768 24bbp display?
 
 Dell says that the (LCD) monitor cannot do more than 800x600 (
 http://support.dell.com/support/edocs/Systems/latls/en/ug/specs.htm
 ) and that's the most I was able to get from it, using either
 Driver neomagic or Driver vesa in xorg.conf.
 
 If the graphics chip can do 1024x768, is it the case that the
 _monitor_ cannot do that? Is the maximal resolution a property
 of the graphics chip or the monitor?
 
 If the graphics chip can not do 1024x768, what does the
 VESA line above really say?

The VESA lines tell us which moded the graphics cards BIOSs thinks it  can
handle. It has nothing to do with what your monitor can handle.

In your case it seems like it is the monitor that is setting the limit.
But if you had a external 1280x1024 monitor it would be the graphics
card that was setting the limit.

On modern graphics cards you cant be sure all graphics modes has a
corresponding entry in the VESA bios. This is mostly a problem with
widescreens. I have a couple of laptops with 1280x800 LCD panels but the
VESA bios hasn't a mode for it. This is only a problem if you have to
use a vesa driver.

-moj
 
   Thanks
 
   Jan



Re: named lookup failures through pf fw

2007-05-17 Thread Mats O Jansson
On Thu, 17 May 2007 [EMAIL PROTECTED] wrote:

 i seem to be having a dns/fw issues that i can't figure out.
 
 basically, wifi clients can't lookup dns successfully unless the entry 
 is already cached on the openbsd 4.0 box first.

I guess you have to add the wifi network in the acl clients list in
named.conf.

-moj
 
 this has just started after introducing a new firewall config but i have 
 _no_ idea what the difference between a fresh vs cached lookup should be 
 from the client side! this is surely a misunderstanding on my part. can 
 you see what i'm missing?
 
 what's there:
 openbsd 4.0 dns servers 10.0.0.11  12
 openbsd 4.1 firewall
   sis2internet, 121.73.27.x
   sis1/2  bridged 10.0.0.11  12 via crossover
   ath0wifi 172.16.x.x dhcp for clients
 
 dhcp side:
 the clients (macos, windows, whatever) receive a dhcp address  can
 access services such as email on the 10.x network, and anything on the
 internet via IP address.
 
 but when a name lookup is done from 172. to the 10. dns servers, the
 request goes through to the 10. dns server just fine - which then
 replies with a 'not found' type error. running the same lookup again on
 the 10. dns server directly works. then re-running the same query from
 the client side retrieves the new cached version correctly.
 
 presumably the fw rules are ok as traffic is passing each time. but what 
 am i missing?
 
 i've not changed the dns servers since 3.9, but there is a new pfSense
 firewall in between.
 
 pf.conf  named.conf follow the dns trace.
 
 en1: flags=8863UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST mtu 1500
  tunnel inet  --
  inet 172.16.0.10 netmask 0xff00 broadcast 172.16.0.255
  ether 00:19:e3:0f:1a:6b
  media: autoselect status: active
  supported media: autoselect
  vlan: 0 parent interface: none
  bond interfaces: none
 
 
 non-cached from client:
   May 17 07:19:52.391667 172.16.0.10.49319  10.0.0.11.53: [udp sum ok] 
 21247+ A? www.novell.com. (32) (ttl 63, id 17885, len 60)
 
 return to client:
 May 17 07:19:52.392233 10.0.0.11.53  172.16.0.10.49319: 21247- 0/13/13 
 (451) (ttl 64, id 20192, len 479)
 
 non-cached from dns server:
 May 17 07:20:08.675725 10.0.0.2.40578  203.96.152.4.53: [udp sum ok] 
 13112+ [1au] A? www.novell.com. (43) (ttl 64, id 6400, len 71)
 
 reply from dns forwarder:
 May 17 07:20:08.686623 203.96.152.4.53  10.0.0.2.40578: 13112 1/3/3 
 www.novell.com. A 130.57.5.25 (162) (DF) (ttl 124, id 11878, len 190)
 
 cached from client:
 May 17 07:20:13.695183 172.16.0.10.49320  10.0.0.11.53: [udp sum ok] 
 50027+ A? www.novell.com. (32) (ttl 63, id 17961, len 60)
 
 cached reply from dns server:
 May 17 07:20:13.695563 10.0.0.11.53  172.16.0.10.49320: 50027- 1/3/2 
 www.novell.com. A 130.57.5.25 (151) (ttl 64, id 18118, len 179)
 
 
 pf.conf
 ===
 # $OpenBSD: pf.conf,v 1.34 2007/02/24 19:30:59 millert Exp $
 #
 # See pf.conf(5) and /usr/share/pf for syntax and examples.
 # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
 # in /etc/sysctl.conf if packets are to be forwarded between interfaces.
 
 
 # macro definitions
 
 # interfaces
 
 ext_if= sis2
 wii_if= ath0
 dmz_if= { sis0 sis1 bridge0 }
 int_if= { sis0 sis1 bridge0 ath0 }
 
 # networks
 ext_nw = { 121.73.27.0/24 }
 wii_nw = { 172.16.0.0/24 }
 dmz_nw = { 10.0.0.0/24 }
 int_nw = { 10.0.0.0/24 172.16.0.0/24 }
 
 # dmz hosts
 dmz_web= 10.0.0.20
 dmz_mail = 10.0.0.21
 dmz_ssh  = 10.0.0.31
 
 # port groups
 mail_ports= { imap, imaps, smtp }
 web_ports = { http, https }
 
 # tables
 
 
 table spamd-white persist
 table internal_net persist {10.0.0.0/24, 172.16.0.0/24}
 
 
 # options
 
 
 set skip on lo
 set require-order yes
 set block-policy drop
 set optimization normal
 set loginterface none
 set loginterface ath0
 
 
 # normalisation
 
 
 scrub in all
 scrub out all
 
 
 # translation  redirection
 
 
 nat on $ext_if inet proto {icmp, tcp, udp} \
   from !($ext_if) - ($ext_if:0)
 rdr pass on $ext_if inet proto tcp \
   from any to $ext_nw port $web_ports - $dmz_web
 rdr pass on $ext_if inet proto tcp \
   from any to $ext_nw port $mail_ports - $dmz_mail
 rdr pass on $ext_if inet proto tcp \
   from any to $ext_nw port ssh - $dmz_ssh
 
 

Re: Nearly 1/4 of New Filesystem Gone

2007-01-31 Thread Mats O Jansson
On Wed, 31 Jan 2007 [EMAIL PROTECTED] wrote:

 I just moved a 200GB hard drive from a 3.7 box to a 4.0 box, and since 
 my data was all backed up, I decided to run disklabel, create a fresh 
 partition that spanned the whole disk, and then run newfs on that 
 partition. I expect to not have all 200GB, between the whole issue of 
 poorly labeled disk sizes and the 5% reserved by default. What I don't 
 expect, however, is to see ** 22% ** of my disk already in use:

Its all about how you interprets k, M and G. In base 10 one k is 1000 but
in base 2 it is 1024. G is 10 in base 10 but 1073741824 in base 2.

Disk manufactors are using base 10 and computers base 2. So if the disk
manufactor say its 200Gb it would be about 186Gb in OpenBSD. But dmesg
reports what size OpenBSD think the disk has.

-moj
 
 -bash-3.1$ df -h
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/wd0a  7.3G   78.9M6.9G 1%/
 /dev/wd0d 22.0G512M   20.4G 2%/usr
 /dev/wd0e  7.2G6.7M6.8G 0%/var
 /dev/wd1a  183G   38.0G136G22%/mnt
 
 Can anyone explain this? Have I done something wrong here? More 
 importantly, is there a simple way to remedy this and get my 38GB back?
 
 Alex Kirk



Re: X11 Demo programs

2006-02-12 Thread Mats O Jansson
On Sun, 12 Feb 2006, Dave Feustel wrote:

 The source and OpenBSD executables for five X11 demo programs 
 is now available at http://dfeustel.home.mindspring.com/e-files.zip.
 The programs are xkey, xspy, xwatchwin, xghostwriter, and xevact. 
 The code and makefiles have been tweaked enough to compile 
 and run on OpenBSD 3.8, but the original unmodified code is contained 
 in the .tgz files in the zip file.
 
 Xspy and xkey are key logging programs. I got one of these programs
 to log kde konsole keystrokes to a different user login running in
 console mode after I ran xhost + in the kde session.

You are a fucking genius! Why didn't I think of that? Security is much
harder when you turn it off. 

-moj
 
 Xwatchwin allows you to peek at a window on another X server.
 
 Xghostwriter is supposed to make the x11 keyboard seem to be
 demonically possessed. It doesn't quite work, but probably can 
 be made to work by anyone with a little x11 experience.
 
 Xevact is a more complicated program. Read the documentation
 to see what it does. I took the sound features out of the OpenBSD
 version of the program to get it to compile since I never use sound 
 effects on my computer.
 
 Documentation of these programs is sparse, but adequate to run the programs.
 
 Have Fun,
 Dave Feustel
 -- 
 Lose, v., experience a loss, get rid of, lose the weight
 Loose, adj., not tight, let go, free, loose clothing



Re: Major Surprise with xdm on 3.7

2005-08-11 Thread Mats O Jansson
On Thu, 11 Aug 2005, Dave Feustel wrote:
  
 What I dn't yet quite grasp is why there cannot be multiple independent 
 instances of kde running, each one attached to a different virtual terminal
 (C0-C3) on the same computer. Then I could be logged on as two different
 users simultaneously, switching back and forth between screens using the
 ctl-alt-fcn keys. If this is not possible right now on OpenBSD, it might be 
 an 
 interesting project.

I think you don't understand what a X-server is. It the part that talks
with the graphics card. You don't need a X-server to be able to run
X-applications on a machine. But you need a X-server on the machine
displaying the information. xdm makes it possible to start a session
on one machine from another and ttys has nothing to do with that.

-moj



Re: sgi 02 latest snapshot CD37.iso boot problems

2005-08-10 Thread Mats O Jansson
On Wed, 10 Aug 2005, Ober Heim wrote:

 I never been able to boot a single bsd.rd for as long as sgi has been 
 supported. It tftps fine, but just like your cd error hangs at 
 the Setting up portion of the boot you reference.
 3.7 fails as does the snapshot.
 I also get the same error on latest cd37.iso and cd38.iso


I installed the last 3.7 snapshot this saturday with success. If I had
followed the INSTALL.sgi instruction I shouldn't have had any problems.
Booted from CD and installed sets via ftp.

The reason for me to to this was to test the newly added support for
install software in maintance mode.

The biggest problem was to find a terminal to hook to the com port on O2.
As the installation note says, if it isn't in the list it isn't supported.

-moj

 I am not your puppet. Since when? Now, get your spongy pink ass out 
 there, and dance for the cameras.  -Death to Smoochy
 
 On Tue, 9 Aug 2005, mrservices wrote:
 
  Date: Tue, 09 Aug 2005 16:34:10 -0700
  From: mrservices [EMAIL PROTECTED]
  To: misc@openbsd.org
  Subject: sgi 02 latest snapshot CD37.iso boot problems
  
  Hello List,
 
  I was able to install OpenBSD on an sgi 02 R5000 but corrupted bsd when the 
  ftp stalled on download
  I am unable to boot back into the system trying boot or /bsd or /bsd.rd 
  with 
  the latest sgi snapshot CD37.iso
 
  The system freezes at this point and I have to unplug the unit and plug 
  back 
  in to restart.
 
  arg0: dksc(0,4,8)boot
  arg1: ConsoleIn=Keyboard()
  arg2: ConsoleVideo=Video()
  arg3:  SystemPartition= pci(0)scsi(0)disk(1)rdisk(0)partition(8)
  arg4: OSLoader=sash
  arg5: OSLoadPartition= pci(0)scsi(0)disk(1)rdisk(0)partition(0)
  arg6: OSLoadFilename=/bsd
  34192+1264
  entry: 0x80010120 SystemPartition pci(0)scsi(0)disk(1)rdisk(0)partition(8)
  OpenBSD/sgi Arcbios boot
  Boot pci(0)scsi(0)disk(1)rdisk(0)partition(0)/bsd
  Loading ELF64 File
  0x8010:0x30e0a0, Zero
  0x8040e0a0:0x5d2a0, Loading symbol table
  Start at 0x8010
  ARC32 Firmware 1.10
  SR=34010080
  Found SGI-IP32, Setting Up
 
  I have tried unsetenv OSLoader, OSLoadPartition, OSFilename
 
  Command menu ls device shows
 
  ls pci(0)scsi(0)disk(1)rdisk(0)partition(8)
  boot
 
  I don't have any IRIX tool disks or other disks to work with.
 
  Any help on this is much appreciated.
 
  Thank you,
 
  rogern



Re: Silly patch to allow alt + f[1-4] to switch consoles.

2005-07-12 Thread Mats O Jansson
On Tue, 12 Jul 2005, Edd Barrett wrote:
 
 While we are on the subject of keyboards, why is it that shift-3 in uk
 keymap sends a hash-enter instead of a pound sign.

Well my 3.7-current gives a sterling sign as expected in console.

Hash sign is hex 0x23 and sterling is 0xa3. Could it be your shell
that doesn't know how to handle 8-bit characters?

I'm using ksh and has a .kshrc that contains set +o emacs-usemeta.

-moj
 
 Edd