Re: OpenBSD 5.6 - amd64 on Lenovo G480

2014-12-13 Thread Leonardo Santagostini
Ok, thanks all for reply me.

Situation Fresh New Install. 5.6 Release.

OpenBsd Installed fine. Logged in as root - startx - blank screen.
I have to press CTRL+ALT+F1 to get console(blank) close the lid - suspend
the machine - open the lid - on console again.

Done my homework

--- DMESG ---

OpenBSD 5.6 (RAMDISK_CD) #303: Fri Aug  8 00:25:26 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
RTC BIOS diagnostic error 80clock_battery
real mem = 4138713088 (3946MB)
avail mem = 4023148544 (3836MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xe6fd0 (59 entries)
bios0: vendor LENOVO version 5ECN95WW(V9.00) date 12/19/2012
bios0: LENOVO 20150
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC UEFI ASF! HPET APIC MCFG SSDT BOOT ASPT DBGP
FPDT MSDM SSDT SSDT
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) CPU B980 @ 2.40GHz, 2203.97 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,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,XSAVE,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (P0P1)
acpiprt2 at acpi0: bus 1 (RP01)
acpiprt3 at acpi0: bus 2 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus -1 (RP07)
acpiprt9 at acpi0: bus -1 (RP08)
acpiprt10 at acpi0: bus -1 (PEG0)
acpiprt11 at acpi0: bus -1 (PEG1)
acpiprt12 at acpi0: bus -1 (PEG2)
acpiprt13 at acpi0: bus -1 (PEG3)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel Core 2G Host rev 0x09
vga1 at pci0 dev 2 function 0 Intel HD Graphics 2000 rev 0x09
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel 7 Series xHCI rev 0x04 at pci0 dev 20 function 0 not configured
Intel 7 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
ehci0 at pci0 dev 26 function 0 Intel 7 Series USB rev 0x04: apic 0 int 16
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel 7 Series HD Audio rev 0x04 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 Intel 7 Series PCIE rev 0xc4: msi
pci1 at ppb0 bus 1
Attansic Technology AR8162 rev 0x10 at pci1 dev 0 function 0 not
configured
ppb1 at pci0 dev 28 function 1 Intel 7 Series PCIE rev 0xc4: msi
pci2 at ppb1 bus 2
Atheros AR9485 rev 0x01 at pci2 dev 0 function 0 not configured
ehci1 at pci0 dev 29 function 0 Intel 7 Series USB rev 0x04: apic 0 int 23
ehci1: timed out waiting for BIOS
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
Intel HM76 LPC rev 0x04 at pci0 dev 31 function 0 not configured
ahci0 at pci0 dev 31 function 2 Intel 7 Series AHCI rev 0x04: msi, AHCI
1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST1000LM024 HN-M, 2AR1 SCSI3 0/direct
fixed naa.50004cf20a2e7a39
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
cd0 at scsibus0 targ 2 lun 0: PLDS, DVD-RW DS8A8SH, KL31 ATAPI 5/cdrom
removable
Intel 7 Series SMBus rev 0x04 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
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
uhub2 at uhub0 port 1 vendor 0x8087 product 0x0024 rev 2.00/0.00 addr 2
umass0 at uhub2 port 2 configuration 1 interface 0 Kingston DataTraveler
2.0 rev 2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: Kingston, DataTraveler 2.0, 1.00 SCSI2
0/direct removable serial.09306544CE51C98D948F
sd1: 7396MB, 512 bytes/sector, 15148608 sectors
Atheros Communications Bluetooth USB Host Controller rev 1.10/0.01 addr 4
at uhub2 port 3 not configured
Generic USB2.0-CRW rev 2.00/39.60 addr 5 at uhub2 port 4 not configured
uhub3 at uhub1 port 1 vendor 0x8087 product 0x0024 rev 2.00/0.00 addr 2
uhidev0 at uhub3 port 3 configuration 1 interface 0 vendor 0x0461 USB
Optical Mouse rev 2.00/2.00 addr 3
uhidev0: iclass 3/1
uhid at uhidev0 not configured
run0 at uhub3 port 4 Linksys Linksys WUSB600N Wireless-N USB Network
Adapter with Dual-Band ver. 2 rev 2.00/1.01 addr 4
run0: MAC/BBP RT3572 (rev 0x0223), RF RT3052 (MIMO 2T2R), address
98:fc:11:e0:59:0a
Vimicro Corp. Lenovo EasyCamera rev 2.00/39.55 addr 5 at uhub3 port 6 not
configured
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
syncing disks... done
rebooting...
OpenBSD 5.6 (GENERIC.MP) #333: Fri Aug  8 00:20:21 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS 

poor-man's sandbox (for web browser security, etc.)

2014-12-13 Thread Joel Rees
I don't know whether this is a good idea, a bad idea, or worth the
trouble, but I've used sudo to make a poor-man's sandbox in the past,
like this:

http://reiisi.blogspot.jp/2011/08/simple-sandbox-for-firefox.html

Trying this on openbsd seems to work:

---
# Added a new login class:
vi /etc/login.conf
...
hexed:\
:auth=reject:\
:shell=/sbin/nologin:\
:datasize-cur=512M:\
:datasize-max=1024M:\
:maxproc-max=128:\
:maxproc-cur=64:\
:requirehome@:\
:tc=default:
...

mkdir /home/x/hexed-me

groupadd -g 7734 hexed-me

useradd -b /home/x -g hexed-me -u 7734 -L hexed hexed-me

chown hexed-me:hexed-me /home/x/hexed-me

# Changed the default shell for hexed-me:
vipw
...
hexed-me:*:7734:7734::/home/x/hexed-me:/sbin/nologin
...

usermod -G hexed-me me

chmod -R o-rwx,g+rwx /home/x/hexed-me

# Added the following to /etc/sudoers
# (actually, to /etc/sudoers.d/hexed-me, via #includedir):
visudo
...
User_Alias HEXEDMEDOER = me
Runas_Alias HEXEDMEHEXED = hexed-me
Defaults:HEXEDMEDOER !authenticate, always_set_home, set_logname,
!preserve_groups
HEXEDMEDOER ALL = (HEXEDMEHEXED) ALL
...
# (Had to chmod 550 /etc/sudoers.d and chmod 440 /etc/sudoers.d/hexed-me .)

# Didn't need to make this script:
vi bin/firehex
===
#! /bin/sh

xhost local:${1}; sudo -u ${1} firefox $2
===
---

It seems to run firefox just fine:

sudo -H -u hexed-me firefox

but gedit doesn't change to hexed-me's home directory run the same way.

I would appreciate any critiques or out-right criticisms of this.

Is it worth the trouble?

Does it perhaps open up new vulnerabilities instead?

-- 
Joel Rees

Be careful when you look at conspiracy.
Look first in your own heart,
and ask yourself if you are not your own worst enemy.
Arm yourself with knowledge of yourself, as well.



Sun Blade 100

2014-12-13 Thread Richard E. Thornton
It took a few days, back and forth, as time permitted, but I have this old 
blade, with two 15 GB drives, and 2 GB RAM running nicely with OpenBSD 
5.6. I think that I have the RELEASE version.   I have installed apline 
mailer, firefox, R, nano, python, anjuta.

It's pretty good.  I am trying to support your efforts a bit;  I bought 
the book by Lucas, and I setup a small monthly donation to the OpenBSD 
foundation.  I use this machine purely for pleasure.  I am so impressed 
with what OpenBSD has accomplished.

Richard Thornton
console is keyboard/display
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2014 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.6 (GENERIC) #187: Fri Aug  8 04:09:36 MDT 2014
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 2147483648 (2048MB)
avail mem = 2098364416 (2001MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: Sun Blade 100 (UltraSPARC-IIe)
cpu0 at mainbus0: SUNW,UltraSPARC-IIe (rev 1.4) @ 502 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 
b/l)
psycho0 at mainbus0: pci108e,a001, impl 0, version 0, ign 7c0
psycho0: bus range 0-1, PCI bus 0
psycho0: dvma map c000-dfff
pci0 at psycho0
ebus0 at pci0 dev 12 function 0 Sun RIO EBus rev 0x01
flashprom at ebus0 addr 0-f not configured
clock1 at ebus0 addr 0-1fff: mk48t59
ebus1 at pci0 dev 7 function 0 Acer Labs M1533 ISA rev 0x00
dma at ebus1 addr 0- ivec 0x2a not configured
power0 at ebus1 addr 800-82f ivec 0x20
com0 at ebus1 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com1 at ebus1 addr 2e8-2ef ivec 0x2b: ns16550a, 16 byte fifo
gem0 at pci0 dev 12 function 1 Sun ERI Ether rev 0x01: ivec 0x7c6, address 
00:03:ba:09:31:14
ukphy0 at gem0 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 
0x0010dd, model 0x0002
Sun FireWire rev 0x01 at pci0 dev 12 function 2 not configured
ohci0 at pci0 dev 12 function 3 Sun USB rev 0x01: ivec 0x7e4, version 1.0, 
legacy support
alipm0 at pci0 dev 3 function 0 Acer Labs M7101 Power rev 0x00: 223KHz clock
iic0 at alipm0
max1617 at alipm0 addr 0x18 skipped due to alipm0 bugs
scm001 at alipm0 addr 0x20 skipped due to alipm0 bugs
spdmem0 at iic0 addr 0x50: 512MB SDRAM ECC PC133CL2
spdmem1 at iic0 addr 0x51: 512MB SDRAM ECC PC133CL2
spdmem2 at iic0 addr 0x52: 512MB SDRAM ECC PC133CL2
spdmem3 at iic0 addr 0x53: 512MB SDRAM ECC PC133CL2
autri0 at pci0 dev 8 function 0 Acer Labs M5451 Audio rev 0x01: ivec 0x7e3
ac97: codec id 0x41445348 (Analog Devices AD1881A)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at autri0
midi0 at autri0: 4DWAVE MIDI UART
pciide0 at pci0 dev 13 function 0 Acer Labs M5229 UDMA IDE rev 0xc3: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7cc for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: ST315310A
wd0: 16-sector PIO, LBA, 14594MB, 2920 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: LITEON, CD-ROM LTN486S, YSU1 ATAPI 5/cdrom 
removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
wd1 at pciide0 channel 1 drive 0: ST315310A
wd1: 16-sector PIO, LBA, 14594MB, 2920 sectors
wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
machfb0 at pci0 dev 19 function 0 ATI Rage XL rev 0x27
machfb0: ATY,RageXL, 1152x900
wsdisplay0 at machfb0 mux 1: console (std, sun emulation)
ppb0 at pci0 dev 5 function 0 DEC 21152 rev 0x03
pci1 at ppb0 bus 1
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 Sun OHCI root hub rev 1.00/1.00 addr 1
uhidev0 at uhub0 port 3 configuration 1 interface 0 Fujitsu Component Type 6 
Mouse rev 1.00/1.02 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons
wsmouse0 at ums0 mux 0
uhidev1 at uhub0 port 4 configuration 1 interface 0 Fujitsu Component Type 6 
Keyboard rev 1.00/1.02 addr 3
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes, country code 33
wskbd0 at ukbd0: console keyboard, using wsdisplay0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci@1f,0/ide@d,0/disk@0,0
root on wd0a (a59c0b8c1e741807.a) swap on wd0b dump on wd0b



Xorg Fails intel i815 agp

2014-12-13 Thread elvis fuentes
hi guys moving from openbsd 5.4 to 5.6 with a fresh install I've found Xorg
refuse to work.

*dmesg 5.4*

OpenBSD 5.4-current (GENERIC) #150: Thu Nov 14 00:34:42 MST 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 931 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE,PERF
real mem  = 401076224 (382MB)
avail mem = 382693376 (364MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/20/00, BIOS32 rev. 0 @ 0xfd87d,
SMBIOS rev. 2.2 @ 0xe4010 (42 entries)
bios0: vendor Phoenix Technologies Ltd. version IP.01.03SP date 06/20/2000
bios0: Hewlett-Packard HP Vectra
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP
acpi0: wakeup devices KBC0(S4) MSE0(S4) COMA(S5) COMB(S5) LAN_(S5) HUB_(S5)
USB_(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 1 (HUB_)
acpicpu0 at acpi0: C2
acpibat0 at acpi0: BBU_ not present
acpiac0 at acpi0: AC unit offline
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xa000 0xca000/0x1000 0xe/0x4000!
0xe4000/0xc000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82815 Host rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82815 Video rev 0x02
intagp0 at vga1
agp0 at intagp0: aperture at 0xf000, size 0x400
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 30 function 0 Intel 82801AA Hub-to-PCI rev 0x02
pci1 at ppb0 bus 1
cmpci0 at pci1 dev 0 function 0 C-Media Electronics CMI8738/C3DX Audio
rev 0x10: irq 5
audio0 at cmpci0
opl at cmpci0 not configured
mpu at cmpci0 not configured
xl0 at pci1 dev 4 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 5,
address 00:01:03:02:13:cc
bmtphy0 at xl0 phy 24: 3C905C internal PHY, rev. 7
ichpcib0 at pci0 dev 31 function 0 Intel 82801AA LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801AA IDE rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: ST380011A
wd0: 16-sector PIO, LBA48, 76293MB, 15625 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LITEON, CD-ROM LTN485S, JKF1 ATAPI 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
uhci0 at pci0 dev 31 function 2 Intel 82801AA USB rev 0x02: irq 5
ichiic0 at pci0 dev 31 function 3 Intel 82801AA SMBus rev 0x02: irq 9
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 256MB SDRAM non-parity PC133CL2
spdmem1 at iic0 addr 0x51: 128MB SDRAM non-parity PC100CL2
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 Intel UHCI root hub rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
uhidev0 at uhub0 port 1 configuration 1 interface 0 Genius 2.4G Wireless
Mouse and Keyboard rev 1.10/4.27 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1 Genius 2.4G Wireless
Mouse and Keyboard rev 1.10/4.27 addr 2
uhidev1: iclass 3/1, 5 report ids
ums0 at uhidev1 reportid 1: 5 buttons, Z dir
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=2, output=0, feature=0
uhid2 at uhidev1 reportid 5: input=0, output=0, feature=7
umass0 at uhub0 port 2 configuration 1 interface 0 USB2.0 External Mass
Storage Device rev 2.00/9.28 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
cd1 at scsibus1 targ 1 lun 0: LITE-ON, DVDRW SHW-160P6S, PS0B SCSI0
5/cdrom removable serial.0ecda100DEF10C8802E8
uhidev2 at uhub0 port 2 configuration 1 interface 1 USB2.0 External Mass
Storage Device rev 2.00/9.28 addr 3
uhidev2: iclass 3/0
uhid3 at uhidev2: input=2, output=2, feature=0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (835dd43166fa9880.a) swap on wd0b dump on wd0b
.
*XORG log file 5.4*



[99.947] (--) checkDevMem: using aperture driver /dev/xf86
[99.967] (--) Using wscons driver on /dev/ttyC4 in pcvt compatibility
mode (version 3.32)
[   100.053]
X.Org X Server 1.14.3
Release Date: 2013-09-12
[   100.053] X Protocol Version 11, Revision 0
[   100.053] Build Operating System: OpenBSD 5.4 i386
[   

Re: problems compiling i386 from source (patching)

2014-12-13 Thread lists
On Fri, Dec 12, 2014 at 10:46:01AM +0100, Remco wrote:
 I ran into this as well, and found a similar problem on the net. 
 Unfortunately I didn't preserve the link but read on for a possible 
 solution.
 
 If your machine is upgraded all the time you may have /usr/bin/nawk getting 
 in the way, which should have been removed during the 5.5-5.6 upgrade. 
 (section 2. Files to delete and move) It seems I did at least the nsd part 
 of this section, so I just (re)ran the first set of rm-s, which includes 
 /usr/bin/nawk, and the problem was gone.

This is exactly what the cause was after some more investigation.



Re: Xorg Fails intel i815 agp

2014-12-13 Thread lists
On Sat, Dec 13, 2014 at 06:10:36PM -0430, elvis fuentes wrote:
 hi guys moving from openbsd 5.4 to 5.6 with a fresh install I've found Xorg
 refuse to work.

Did you upgrade from 5.4 - 5.5 - 5.6, or directly from 5.4 - 5.6.
Skipping upgrades is unsupported last I checked.



x over ssh

2014-12-13 Thread Edgar Pettijohn
I can't seem to figure out how to startx over ssh.  I seem to be getting 
closer, but not sure where the problem lays.  I'm connecting to an OpenBSD 5.6 
box from an iMac.  It really isn't necessary but Its bugging me that I can't 
figure it out.

$ ssh -X 192.168.1.5 -l root
root@192.168.1.5's password: 
Last login: Sat Dec 13 18:17:13 2014 from 192.168.1.4
OpenBSD 5.6 (GENERIC) #0: Fri Dec 12 22:23:14 CST 2014

/root # startx  


xauth:  file /root/.serverauth.28183 does not exist
xauth: (stdin):1:  bad display name foo.my.domain:0 in add command

X.Org X Server 1.15.2
Release Date: 2014-06-27
X Protocol Version 11, Revision 0
Build Operating System: OpenBSD 5.6 amd64 
Current Operating System: OpenBSD foo.my.domain 5.6 GENERIC#0 amd64
Build Date: 06 August 2014  01:45:22PM
 
Current version of pixman: 0.32.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sat Dec 13 18:49:51 2014
(==) Using system config directory /usr/X11R6/share/X11/xorg.conf.d
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
(II) [KMS] Kernel modesetting enabled.

at this point it just sits there indefinitely until I kill it with ctrl-c.  To 
my surprise at the openbsd box x is running.  Not exactly what I was hoping 
for, but that seems like progress.

/var/log # cat Xorg.0.log
[  1976.557] (--) checkDevMem: using aperture driver /dev/xf86
[  1976.563] (--) Using wscons driver on /dev/ttyC4 in pcvt compatibility mode 
(version 3.32)
[  1976.571] 
X.Org X Server 1.15.2
Release Date: 2014-06-27
[  1976.571] X Protocol Version 11, Revision 0
[  1976.571] Build Operating System: OpenBSD 5.6 amd64 
[  1976.571] Current Operating System: OpenBSD foo.my.domain 5.6 GENERIC#0 amd64
[  1976.571] Build Date: 06 August 2014  01:45:22PM
[  1976.571]  
[  1976.571] Current version of pixman: 0.32.6
[  1976.571]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[  1976.571] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  1976.572] (==) Log file: /var/log/Xorg.0.log, Time: Sat Dec 13 18:56:52 
2014
[  1976.572] (==) Using system config directory 
/usr/X11R6/share/X11/xorg.conf.d
[  1976.572] (==) No Layout section.  Using the first Screen section.
[  1976.572] (==) No screen section available. Using defaults.
[  1976.572] (**) |--Screen Default Screen Section (0)
[  1976.572] (**) |   |--Monitor default monitor
[  1976.572] (==) No monitor specified for screen Default Screen Section.
Using a default monitor configuration.
[  1976.572] (==) Disabling SIGIO handlers for input devices
[  1976.572] (==) Automatically adding devices
[  1976.572] (==) Automatically enabling devices
[  1976.572] (==) Not automatically adding GPU devices
[  1976.573] (==) FontPath set to:
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[  1976.573] (==) ModulePath set to /usr/X11R6/lib/modules
[  1976.573] (II) The server relies on wscons to provide the list of input 
devices.
If no devices become available, reconfigure wscons or 

Re: x over ssh

2014-12-13 Thread Erling Westenvik
On Sat, Dec 13, 2014 at 07:12:07PM -0600, Edgar Pettijohn wrote:
 I can't seem to figure out how to startx over ssh.  I seem to be
 getting closer, but not sure where the problem lays.  I'm connecting
 to an OpenBSD 5.6 box from an iMac.  It really isn't necessary but Its
 bugging me that I can't figure it out.

Its not quite clear what you try to achieve:

1. An X session running on and displayed on the OpenBSD box but remotely
started from your Imac? In that case I believe you should not use ssh
-X.

2. An X session running on the OpenBSD box, but displayed locally on the
display on your iMac? In that case I believe you will need a separate X
server (like Xephyr or Xnest) running on your iMac and to which whatever
clients on the OpenBSD box you want to run, can connect back to.

I'm looking for solutions to the latter scenario myself. The last
software I tried was remmina (in packages) but performance, at least
with my hardware, was terrible.

Regards,

Erling



Re: x over ssh

2014-12-13 Thread Hugo Villeneuve
On Sat, Dec 13, 2014 at 07:12:07PM -0600, Edgar Pettijohn wrote:
 I can't seem to figure out how to startx over ssh.  I seem to be
 getting closer, but not sure where the problem lays.  I'm connecting
 to an OpenBSD 5.6 box from an iMac.  It really isn't necessary but
 Its bugging me that I can't figure it out.
 
 $ ssh -X 192.168.1.5 -l root
 root@192.168.1.5's password: 
 Last login: Sat Dec 13 18:17:13 2014 from 192.168.1.4
 OpenBSD 5.6 (GENERIC) #0: Fri Dec 12 22:23:14 CST 2014
 

I'm not sure what you want to acheive.

startx without arguments should only be run from the server console
directly. That is, startx run X which takes over the server video
card, keyboard and mouse. I will do nothing on the computer you
ssh from.

When I want a full X session from a remote server to be displayed
locally. I use Xnest, a special X server that is just a client
to another one.

If you have XQuartz on your Mac, run something like:

ssh -X hostname -l user /usr/X11R6/bin/startx -- /usr/X11R6/bin/Xnest :5 -once 
-geometry 1600x900

(Maybe I completly misunderstood what you meant.)



Re: x over ssh

2014-12-13 Thread Edgar Pettijohn
On Dec 13, 2014, at 8:41 PM, Erling Westenvik wrote:

 On Sat, Dec 13, 2014 at 07:12:07PM -0600, Edgar Pettijohn wrote:
 I can't seem to figure out how to startx over ssh.  I seem to be
 getting closer, but not sure where the problem lays.  I'm connecting
 to an OpenBSD 5.6 box from an iMac.  It really isn't necessary but Its
 bugging me that I can't figure it out.
 
 Its not quite clear what you try to achieve:
 
 1. An X session running on and displayed on the OpenBSD box but remotely
 started from your Imac? In that case I believe you should not use ssh
 -X.
 
 2. An X session running on the OpenBSD box, but displayed locally on the
 display on your iMac? In that case I believe you will need a separate X
 server (like Xephyr or Xnest) running on your iMac and to which whatever
 clients on the OpenBSD box you want to run, can connect back to.
 
 I'm looking for solutions to the latter scenario myself. The last
 software I tried was remmina (in packages) but performance, at least
 with my hardware, was terrible.
 
 Regards,
 
 Erling
 
 

Option 2 is what I'm looking for.  Looks like you are correct after looking 
through /usr/X11/bin and /usr/X11R6/bin on the mac there is no xserver. 



Re: x over ssh

2014-12-13 Thread trondd
 Option 2 is what I'm looking for.  Looks like you are correct after
looking through /usr/X11/bin and /usr/X11R6/bin on the mac there is no
xserver.

OSX does not include X11 anymore, you need to install XQuartz.

I've done this setup between Linux and a Mac. Had to add my Mac to the
xauth then ssh -X.  Launch whatever clients and they would display on the
Mac.

Tim.



Re: Xorg Fails intel i815 agp

2014-12-13 Thread Jonathan Gray
On Sat, Dec 13, 2014 at 06:10:36PM -0430, elvis fuentes wrote:
 hi guys moving from openbsd 5.4 to 5.6 with a fresh install I've found Xorg
 refuse to work.

...

 [36.380] (--) intel(0): Integrated Graphics Chipset: Intel(R) i815
 [36.380] (--) intel(0): Linear framebuffer at 0xF000
 [36.380] (--) intel(0): IO registers at addr 0xEC00
 [36.380] (EE) intel(0): AGP GART support is not available.  Make sure
 your kernel has
 agpgart support or that the agpgart kernel module is loaded.
 [36.381] (II) UnloadModule: intel
 [36.381] (II) UnloadSubModule: int10
 [36.381] (II) Unloading int10
 [36.381] (II) UnloadSubModule: vbe
 [36.381] (II) Unloading vbe
 [36.381] (II) UnloadSubModule: vgahw
 [36.381] (II) Unloading vgahw
 [36.381] (EE) Screen(s) found, but none have a usable configuration.
 [36.381] (EE)
 Fatal server error:
 [36.381] (EE) no screens found(EE)
 [36.382] (EE)
 Please consult the The X.Org Foundation support
  at http://wiki.x.org
  for help.
 [36.382] (EE) Please also check the log file at /var/log/Xorg.0.log
 for additional information.
 [36.382] (EE)
 [36.384] (EE) Server terminated with error (1). Closing log file.
 
 
 In the case of 5.4 xorg just works out of the box. I really don't know what
 is missing. Please excuseme the long mail but I wanna know if this can get
 fix !!

The userland agp interface was removed in 5.6.  You'll need to use the vesa
driver for i815 as there is no kms support for it.

Perhaps the following xenocara patch will do the correct thing.

Index: driver/xf86-video-intel/Makefile.bsd-wrapper
===
RCS file: /cvs/xenocara/driver/xf86-video-intel/Makefile.bsd-wrapper,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile.bsd-wrapper
--- driver/xf86-video-intel/Makefile.bsd-wrapper3 Feb 2014 15:57:56 
-   1.8
+++ driver/xf86-video-intel/Makefile.bsd-wrapper14 Dec 2014 03:33:31 
-
@@ -6,6 +6,8 @@
 CONFIGURE_ARGS+= --disable-dri
 .endif
 
+CONFIGURE_ARGS+= --enable-kms-only
+
 SHARED_LIBS= IntelXvMC 3.0 I810XvMC 3.0
 
 .include bsd.xorg.mk



Re: x over ssh [SOLVED]

2014-12-13 Thread Edgar Pettijohn
On Dec 13, 2014, at 8:51 PM, Hugo Villeneuve wrote:

 On Sat, Dec 13, 2014 at 07:12:07PM -0600, Edgar Pettijohn wrote:
 I can't seem to figure out how to startx over ssh.  I seem to be
 getting closer, but not sure where the problem lays.  I'm connecting
 to an OpenBSD 5.6 box from an iMac.  It really isn't necessary but
 Its bugging me that I can't figure it out.
 
 $ ssh -X 192.168.1.5 -l root
 root@192.168.1.5's password: 
 Last login: Sat Dec 13 18:17:13 2014 from 192.168.1.4
 OpenBSD 5.6 (GENERIC) #0: Fri Dec 12 22:23:14 CST 2014
 
 
 I'm not sure what you want to acheive.
 
 startx without arguments should only be run from the server console
 directly. That is, startx run X which takes over the server video
 card, keyboard and mouse. I will do nothing on the computer you
 ssh from.
 
 When I want a full X session from a remote server to be displayed
 locally. I use Xnest, a special X server that is just a client
 to another one.
 
 If you have XQuartz on your Mac, run something like:
 
 ssh -X hostname -l user /usr/X11R6/bin/startx -- /usr/X11R6/bin/Xnest :5 
 -once -geometry 1600x900
 
 (Maybe I completly misunderstood what you meant.)
 
 

You sir are a genius.