Re: scripts for keeping things in sync after upgrades?

2012-12-06 Thread Oldak Quill
Can't you use /upgrade.site[1]?

[1] http://www.openbsd.org/faq/faq4.html#site


On 4 December 2012 21:59, Frank Brodbeck f...@guug.de wrote:

 On Tue, Dec 04, 2012 at 09:44:59PM +, Heptas Torres wrote:
  Thanks. What I meant was more things like the script
  http://gouloum.fr/code/script/install_snapshot.sh - this seems a bit
  outdated and was wondering whether people use something similar for
  system upgrades plus some package upgrades automatically. I was just
  curious about what the best practices for automatic upgrades and syncs
  are.

 This is something that I use. Though that script only fetches the
 neccessary files and copies bsd.rd to /

 The script saves everything in your CWD. After running the script I just
 boot bsd.rd, run the upgrade and do sysmerge and pkg_add -u afterwards,
 so the main benefit is keeping the downtime small and the script can
 detect if the mirror you're fetching your sets from is out of sync.

 Frank.

 #!/bin/ksh
 # $Id: snapshotset.sh,v 1.4 2012/12/04 21:49:22 fab Exp $

 ARCH=$(uname -m)
 MIRROR=http://openbsd.cs.fau.de/
 LOCATION=pub/OpenBSD/snapshots/${ARCH}/
 export showchanges=0
 force=0

 [[ X$1 = 'X-f' ]]  force=1

 echo fetching SHA256 from ${MIRROR}
 ftp ${MIRROR}${LOCATION}SHA256
 echo \nfetching SHA256 from ftp.openbsd.org
 ftp -o SHA256.master http://ftp.openbsd.org/${LOCATION}SHA256

 printf 'comaparing SHA256 files '
 if [[ $(diff -u SHA256 SHA256.master) /dev/null ]];
 then
 print 'failed. mirror out of sync or compromised\n'
 diff -u SHA256.master SHA256
 [[ $force -eq 1 ]] || exit 2
 else
 print 'ok.\n'
 fi

 echo \nfetching index.txt: 
 ftp ${MIRROR}${LOCATION}/index.txt
 echo \nfetching INSTALL.${ARCH}
 ftp ${MIRROR}${LOCATION}/INSTALL.${ARCH}

 for i in bsd bsd.rd bsd.mp;
 do
 printf checking %s: $i
 [[ -f $i  $(grep ^$(sha256 $i)$ SHA256) /dev/null ]]  \
 echo  uptodate. || \
 {
 echo  missing or cksum mismatch, fetching.
 ftp ${MIRROR}${LOCATION}$i
 showchanges=1
 }
 done

 { grep tgz$ index.txt | awk '{ print $10 }'; }|
 while read -p basepkg
 do
 printf checking %s: $basepkg
 [[ -f $basepkg  $(grep ^$(sha256 $basepkg) SHA256) /dev/null
 ]]  \
 echo  uptodate. || \
 {
 echo  missing or cksum mismatch, fetching.
 ftp ${MIRROR}${LOCATION}${basepkg}
 showchanges=1
 }
 done 3-

 printf checking /bsd.rd:
 if [[ $(sha256 -q bsd.rd) = $(sha256 -q /bsd.rd) ]];
 then
 printf  uptodate.\n
 else
 printf Copying bsd.rd to /\n
 su root -c cp bsd.rd /bsd.rd
 fi

 if [[ $showchanges -eq 1 ]];
 then
 echo Fetching changes from current.html
 ftp -o - -V http://www.openbsd.org/faq/current.html | \
 egrep 'lia href=#.*[0-9]{4}/[0-9]{2}/[0-9]{2} - .*/a'
 | \
 egrep -o '[0-9]{4}/[0-9]{2}/[0-9]{2} - [^]+'
 fi

 unset showchanges

 --
 Frank Brodbeck f...@guug.de




-- 
Oldak Quill (oldakqu...@gmail.com)



floppy attached as sd with notebook bay, fdformat(1)

2012-12-06 Thread MERIGHI Marcus
Hello people,  

I found a dell 'floppy drive module' (3.5) for my 

hw.vendor=Dell Inc.
hw.product=Latitude D630
hw.serialno=6P8454J

When inserted (before boot) it shows up as (full dmesg below):

umass0 at uhub7 port 1 configuration 1 interface 0 Sony USB Floppy
Drive rev 1.10/6.01 addr 3
umass0: using UFI over CBI with CCI
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: SONY, USB-FDU, 6.01 ATAPI 0/direct
removable

After being puzzled I just tried an existing floppy, disklabel shows a
/dev/sd0i slice, mounting worked. 

But trying to make use of an unformatted floppy I failed:

Did the usual ``fdisk -i sd0'',  ``disklabel -E sd0'', created ``i''
slice. After ``newfs_msdos /dev/rsd0i'' (which returned darn fast but
without obvious error output) the ``i'' slice vanished from disklabel.
Unsurprisingly mounting a non existing /dev/sd0i slice failed.

fdformat(1) just says ``this is not a floppy''. 

This is not one of my top priorities, and I am writing this report from
memory (apart from dmesg :-). If needed I'll sure reboot with the module
attached, re-do the tests and provide full output of commands.

What options do I have? What am I getting wrong? Clue bat welcome!

Bye, Marcus

OpenBSD 5.2-current (GENERIC.MP) #121: Mon Nov 19 11:44:32 MST 2012
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3210059776 (3061MB)
avail mem = 3102187520 (2958MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf68e0 (62 entries)
bios0: vendor Dell Inc. version A18 date 12/06/2011
bios0: Dell Inc. Latitude D630
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC ASF! MCFG TCPA SLIC SSDT
acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) 
USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S4) RP03(S3) RP04(S3) 
RP05(S3) RP06(S5) LID_(S3) PBTN(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)2 Duo CPU T7250 @ 2.00GHz, 1995.35 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 1995.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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
cpu1: 2MB 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 0xf800, bus 0-63
acpiprt0 at acpi0: bus 3 (PCIE)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 11 (RP01)
acpiprt3 at acpi0: bus 12 (RP02)
acpiprt4 at acpi0: bus -1 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus 9 (RP06)
acpiprt8 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model DELL KP4331 serial 278 type LION oem SMP
acpibat1 at acpi0: BAT1 not present
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivideo1 at acpi0: VID_
acpivideo2 at acpi0: VID2
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
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 0xe000, size 0x1000
inteldrm0 at vga1: apic 2 int 16
drm0 at inteldrm0
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x02: apic 2 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x02: apic 2 int 21
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x02: apic 2 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02: msi
azalia0: codecs: Sigmatel STAC9205X
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x02: msi
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x02: msi
pci2 at ppb1 bus 12
wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: msi, MoW2, 
address 00:1f:3c:cc:e5:3c
ppb2 at pci0 dev 28 function 5 Intel 82801H PCIE rev 0x02: msi
pci3 at ppb2 bus 9
bge0 at pci3 dev 0 function 0 Broadcom 

Re: scripts for keeping things in sync after upgrades?

2012-12-06 Thread Paolo Aglialoro
This is what I use to re-ports, re-src comfortably
Both good for 1st and following times
I named it re-portssrc

---
#!/bin/sh

plain=$(echo '\033[0m')
redfg=$(echo '\033[1;31m')
greenfg=$(echo '\033[1;32m')
yellowfg=$(echo '\033[01;33m')
bluefg=$(echo '\033[1;34m')
magentafg=$(echo '\033[1;35m')
cyanfg=$(echo '\033[1;36m')
whitefg=$(echo '\033[1;37m')

UTENTE=`whoami`
if [ $UTENTE = root ]; then
echo $yellowfg\n OpenBSD PORTS  SOURCES updater script 1.1
:)\n$plain
else
echo $redfg\nYou gotta be root to run this script :(\n$plain
exit 1
fi

# Alternative automatic procedure, when dmesg gives correct version
#if [ `dmesg|grep OpenBSD|grep current` -n ] 2 /dev/null;
#then VER=`uname -r|tr '.' '_'`
#else VER=snapshots
#fi

while :
do

echo
echo $yellowfgChoose BUILD VERSION among the following:$plain
echo
echo s: snapshot
echo `uname -r`: OpenBSD Stable version `uname -r`
echo q: quit script
echo
echo -n 'Your choice --- '
read CHOICE

case $CHOICE in
s)VER=snapshots; break;;
`uname -r`)VER=`uname -r|tr '.' '_'`; break;;
q|Q)echo 'Bye.'; exit 2;;
*)echo 'Bad choice!';;
esac

done



while :
do

echo
echo $yellowfgChoose the source server among the following:$plain
echo
echo '1: (DE) anon...@openbsd.cs.fau.de:/cvs'
echo '2: (LT) anon...@anoncvs.openbsd.lt:/cvs'
echo '3: (SI) anon...@anoncvs.obsd.si:/cvs'
echo '4: (CA) anon...@anoncvs1.ca.openbsd.org:/cvs'
echo '5: (DE) anon...@mirror.osn.de:/cvs'
echo '6: (US) anon...@anoncvs1.usa.openbsd.org:/cvs'
echo '7: (FR) anon...@anoncvs.fr.openbsd.org:/cvs'
echo '8: (AT) anon...@ftp5.eu.openbsd.org:/cvs'
echo '9: (SE) anon...@anoncvs.eu.openbsd.org:/cvs'
echo 'q: quit script'
echo
echo -n 'Your choice --- '
read CHOICE

case $CHOICE in
1)ANON_SRV=anon...@openbsd.cs.fau.de:/cvs; break;;
2)ANON_SRV=anon...@anoncvs.openbsd.lt:/cvs; break;;
3)ANON_SRV=anon...@anoncvs.obsd.si:/cvs; break;;
4)ANON_SRV=anon...@anoncvs1.ca.openbsd.org:/cvs; break;;
5)ANON_SRV=anon...@mirror.osn.de:/cvs; break;;
6)ANON_SRV=anon...@anoncvs1.usa.openbsd.org:/cvs; break;;
7)ANON_SRV=anon...@anoncvs.fr.openbsd.org:/cvs; break;;
8)ANON_SRV=anon...@ftp5.eu.openbsd.org:/cvs; break;;
9)ANON_SRV=anon...@anoncvs.eu.openbsd.org:/cvs; break;;
q|Q)echo 'Bye.'; exit 2;;
*)echo 'Bad choice!';;
esac
done

if [ $VER = snapshots ]; then
cd /usr; cvs -qd $ANON_SRV get -P ports; cvs -qd $ANON_SRV get -P src
else
cd /usr; cvs -qd $ANON_SRV get -rOPENBSD_$VER -P ports; cvs -qd
$ANON_SRV get -rOPENBSD_$VER -P src
fi



Re: floppy attached as sd with notebook bay, fdformat(1)

2012-12-06 Thread Francois Pussault
 
 From: MERIGHI Marcus mcmer-open...@tor.at
 Sent: Thu Dec 06 14:02:09 CET 2012
 To: misc@openbsd.org
 Subject: floppy attached as sd with notebook bay, fdformat(1)
 
 
 Hello people,  
 
 I found a dell 'floppy drive module' (3.5) for my 
 
 hw.vendor=Dell Inc.
 hw.product=Latitude D630
 hw.serialno=6P8454J
 
 When inserted (before boot) it shows up as (full dmesg below):
 
 umass0 at uhub7 port 1 configuration 1 interface 0 Sony USB Floppy
 Drive rev 1.10/6.01 addr 3
 umass0: using UFI over CBI with CCI
 scsibus0 at umass0: 2 targets, initiator 0
 sd0 at scsibus0 targ 1 lun 0: SONY, USB-FDU, 6.01 ATAPI 0/direct
 removable
 
 After being puzzled I just tried an existing floppy, disklabel shows a
 /dev/sd0i slice, mounting worked. 
 
 But trying to make use of an unformatted floppy I failed:
 
 Did the usual ``fdisk -i sd0'',  ``disklabel -E sd0'', created ``i''
 slice. After ``newfs_msdos /dev/rsd0i'' (which returned darn fast but
 without obvious error output) the ``i'' slice vanished from disklabel.
 Unsurprisingly mounting a non existing /dev/sd0i slice failed.
 
 fdformat(1) just says ``this is not a floppy''. 
 
 This is not one of my top priorities, and I am writing this report from
 memory (apart from dmesg :-). If needed I'll sure reboot with the module
 attached, re-do the tests and provide full output of commands.
 
 What options do I have? What am I getting wrong? Clue bat welcome!
 
 Bye, Marcus
 
 OpenBSD 5.2-current (GENERIC.MP) #121: Mon Nov 19 11:44:32 MST 2012
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 3210059776 (3061MB)
 avail mem = 3102187520 (2958MB)
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf68e0 (62 entries)
 bios0: vendor Dell Inc. version A18 date 12/06/2011
 bios0: Dell Inc. Latitude D630
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET APIC ASF! MCFG TCPA SLIC SSDT
 acpi0: wakeup devices PCI0(S5) PCIE(S4) USB1(S0) USB2(S0) USB3(S0) USB4(S0) 
 USB5(S0) EHC2(S0) EHCI(S0) AZAL(S3) RP01(S3) RP02(S4) RP03(S3) RP04(S3) 
 RP05(S3) RP06(S5) LID_(S3) PBTN(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)2 Duo CPU T7250 @ 2.00GHz, 1995.35 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,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
 cpu0: 2MB 64b/line 8-way L2 cache
 cpu0: apic clock running at 199MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz, 1995.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,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF
 cpu1: 2MB 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 0xf800, bus 0-63
 acpiprt0 at acpi0: bus 3 (PCIE)
 acpiprt1 at acpi0: bus -1 (AGP_)
 acpiprt2 at acpi0: bus 11 (RP01)
 acpiprt3 at acpi0: bus 12 (RP02)
 acpiprt4 at acpi0: bus -1 (RP03)
 acpiprt5 at acpi0: bus -1 (RP04)
 acpiprt6 at acpi0: bus -1 (RP05)
 acpiprt7 at acpi0: bus 9 (RP06)
 acpiprt8 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0: C3, C2, C1, PSS
 acpicpu1 at acpi0: C3, C2, C1, PSS
 acpitz0 at acpi0: critical temperature is 99 degC
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: PBTN
 acpibtn2 at acpi0: SBTN
 acpiac0 at acpi0: AC unit online
 acpibat0 at acpi0: BAT0 model DELL KP4331 serial 278 type LION oem SMP
 acpibat1 at acpi0: BAT1 not present
 acpidock0 at acpi0: GDCK not docked (0)
 acpivideo0 at acpi0: VID_
 acpivideo1 at acpi0: VID_
 acpivideo2 at acpi0: VID2
 cpu0: Enhanced SpeedStep 1995 MHz: speeds: 2001, 2000, 1600, 1200, 800 MHz
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
 vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
 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 0xe000, size 0x1000
 inteldrm0 at vga1: apic 2 int 16
 drm0 at inteldrm0
 Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
 uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x02: apic 2 int 20
 uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x02: apic 2 int 21
 ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x02: apic 2 int 22
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x02: msi
 azalia0: codecs: Sigmatel STAC9205X
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x02: msi
 pci1 at ppb0 

Re: floppy attached as sd with notebook bay, fdformat(1)

2012-12-06 Thread Brynet
On Thu, Dec 06, 2012 at 02:02:09PM +0100, MERIGHI Marcus wrote:
 umass0 at uhub7 port 1 configuration 1 interface 0 Sony USB Floppy
 Drive rev 1.10/6.01 addr 3
 umass0: using UFI over CBI with CCI
 scsibus0 at umass0: 2 targets, initiator 0
 sd0 at scsibus0 targ 1 lun 0: SONY, USB-FDU, 6.01 ATAPI 0/direct
 removable

USB floppy drives are pretty much the only option for newer systems,
although ATAPI LS-120 drives are still out there.

What's the problem?

 After being puzzled I just tried an existing floppy, disklabel shows a
 /dev/sd0i slice, mounting worked. 

It's DOS formatted disk, 'i' is part of the pseudo-disklabel.

 But trying to make use of an unformatted floppy I failed:
 
 Did the usual ``fdisk -i sd0'',  ``disklabel -E sd0'', created ``i''
 slice. After ``newfs_msdos /dev/rsd0i'' (which returned darn fast but
 without obvious error output) the ``i'' slice vanished from disklabel.
 Unsurprisingly mounting a non existing /dev/sd0i slice failed.

You're attempting to put an MBR and disklabel on a floppy, don't do
that if you're going to newfs_msdos.

newfs_msdos -F 12 /dev/rsd0c
mount -t msdos /dev/sd0i /mnt

 fdformat(1) just says ``this is not a floppy''. 

fdformat(1) uses ioctl(4)'s specific to fdc(4), that will not work for
floppy controllers behind USB.

You can always just..

dd if=/dev/zero of=/dev/rfd0c bs=64k

 What options do I have? What am I getting wrong? Clue bat welcome!
 
 Bye, Marcus

What's the problem?

-Bryan.



DISPLAY=:0.1

2012-12-06 Thread Gregory Edigarov

Hello,

I am a happy user of spectrwm, trying to configure a dualheaded X the 
way I want. I now have two monitors connected to the same card.
what I want is that my monitors to behave in completely independent 
manner, with some applications putting its windows only on monitor0, 
while others puttign on monitor1.


$ env DISPLAY=:0.1 firefox
Error: cannot open display: :0.1

what should I have in my xorg.conf in order to have such setup?

for now I have achieved somewhat near but not what I really want.
is that possible with my current setup i.e. one card, two monitors?

--
With best regards,
Gregory Edigarov



Re: DISPLAY=:0.1

2012-12-06 Thread Vijay Sankar

Quoting Gregory Edigarov ediga...@qarea.com:


Hello,

I am a happy user of spectrwm, trying to configure a dualheaded X  
the way I want. I now have two monitors connected to the same card.
what I want is that my monitors to behave in completely independent  
manner, with some applications putting its windows only on monitor0,  
while others puttign on monitor1.


$ env DISPLAY=:0.1 firefox
Error: cannot open display: :0.1

what should I have in my xorg.conf in order to have such setup?

for now I have achieved somewhat near but not what I really want.
is that possible with my current setup i.e. one card, two monitors?

--
With best regards,
Gregory Edigarov




Hi,

I use KDE with two monitors connected to one card and it seems to work  
well with Firefox always starting up on display 1 and libreoffice  
always starting up on display 0 for me. I don't know anything about  
spectrwm (or KDE or X for that matter :)


My xorg.conf has

Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
SubSection Display
Viewport   0 0
Depth 24
Modes 1920x1080
Virtual 3840 1080
EndSubSection
EndSection

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
vsan...@foretell.ca

-
This message was sent using ForeTell-POST 4.9



Re: DISPLAY=:0.1

2012-12-06 Thread Kevin Chadwick
 I don't know anything about  
 spectrwm (or KDE or X for that matter :)

You can have two displays in xorg.conf or one split in two on two
screens as well as some other modes. There are various benefits to each
depending on the need for dragging and fullscreen etc.. So an app can
remember the geometry across the two or on one of those screens. This
can be hidden and the app just remembers the last or dragged position
but xterm has a -geometry for testing. Windows managers can show the
geometry whilst dragging too.

-- 
___

'Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface'

(Doug McIlroy)
___



Re: DISPLAY=:0.1

2012-12-06 Thread Zé Loff
 Hello,
 
 I am a happy user of spectrwm, trying to configure a dualheaded X the way I 
 want. I now have two monitors connected to the same card.
 what I want is that my monitors to behave in completely independent manner, 
 with some applications putting its windows only on monitor0, while others 
 puttign on monitor1.
 
 $ env DISPLAY=:0.1 firefox
 Error: cannot open display: :0.1
 
 what should I have in my xorg.conf in order to have such setup?
 
 for now I have achieved somewhat near but not what I really want.
 is that possible with my current setup i.e. one card, two monitors?
 
 --
 With best regards,
  Gregory Edigarov
 
 


dwm allows you to specify the monitor
contact me privately if you need a hand. it's a lot simpler than it seems



BSD licensed gnupg replacement question

2012-12-06 Thread Maximo Pech
It's incredible for me that OpenBSD, an operating system that claims to
have integrated cryptography (yes I know that the cryptography is on the
core OS layers)  doesn't have in the base system a tool like gnupg, and
even more incredible, that there isn't a single production ready,
gnupg-like, BSD licensed tool out there (I don't have the skills and time
to program one myself).

I'd like to know your thoughts about this.



Re: BSD licensed gnupg replacement question

2012-12-06 Thread Amit Kulkarni
On Thu, Dec 6, 2012 at 1:10 PM, Maximo Pech mak...@gmail.com wrote:
 It's incredible for me that OpenBSD, an operating system that claims to
 have integrated cryptography (yes I know that the cryptography is on the
 core OS layers)  doesn't have in the base system a tool like gnupg, and
 even more incredible, that there isn't a single production ready,
 gnupg-like, BSD licensed tool out there (I don't have the skills and time
 to program one myself).

 I'd like to know your thoughts about this.


http://www.openbsd.org/cgi-bin/cvsweb/ports/security/gnupg/



Re: BSD licensed gnupg replacement question

2012-12-06 Thread Dustin Fechner
On 12/06/2012 08:10 PM, Maximo Pech wrote:
 that there isn't a single production ready, gnupg-like, BSD licensed
 tool out there (I don't have the skills and time to program one
 myself).

NetBSD has netpgp, which is BSD licensed:
https://en.wikipedia.org/wiki/Netpgp



Re: BSD licensed gnupg replacement question

2012-12-06 Thread Martin Schröder
2012/12/6 Maximo Pech mak...@gmail.com:
 I'd like to know your thoughts about this.

Shut up and show us your code.



Re: BSD licensed gnupg replacement question

2012-12-06 Thread Dag Richards

Maximo Pech wrote:

It's incredible for me that OpenBSD, an operating system that claims to
have integrated cryptography (yes I know that the cryptography is on the
core OS layers)  doesn't have in the base system a tool like gnupg, and
even more incredible, that there isn't a single production ready,
gnupg-like, BSD licensed tool out there (I don't have the skills and time
to program one myself).

I'd like to know your thoughts about this.




No, I don't think you are going to want to know their thoughts on this.


--
IS-IS sleeps.
BGP peers are quiet.
Something must be wrong.



Re: PRIMERGY RX200 S2 installation problems

2012-12-06 Thread Tony Berth
now I got the installation log of current trying the amd64 distro:

-
CD-ROM: 9F
Loading /5.2/AMD64/CDBOOT
probing: pc0 mem[620K 2046M a20=on]
disk: hd0+* cd0
 OpenBSD/amd64 CDBOOT 3.19
boot
booting cd0a:/5.2/amd64/bsd.rd: 3046708
8]=0xb8eb78
entry point at 0x1001e0 [7205c766, 3404, 24448b12, c638a304]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 19995-2012 OpenBSD. All rights reserved.
http://www.OpenBSD.org
OpenBSD 5.2-current (RAMDISK_CD) #96: Sun Dec 2 13:12:01 MST 2012
der...@amd64.openbsd.org:/usr/src/sys/sys/arch/amd64/compile/RAMDISK_CD
real mem = 2145845248 (2046MB)
avail mem = 2068709376 (1972MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.33 @ 0xdc010 (58 entries)
bios0: vendor FSC version 6.0 Rev. R04A5F1.1790 date 09/16/2005
bios0: FUJITSU SIEMENES PRIMERGY RX200S2
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP MCFC SPCR APIC BOOY SSDT
acpimadt0 at acpi0 addt 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(TM) CPU 3.00 GHz, 3000.53 NHz
cpu0: FPU, VME, DE, PSE, TSC, MSR, PAE, MCE, CX8, APIC, SEP, MTRR, PGE,MCA,
CMOV, PAT, PSE36, CF
LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,CNXT-ID,
CX16,xTPR,NXE,LONG,PERF
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 200MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioacpi0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins
ioacpi1 at mainbus0: apid 3 pa 0xfec8, version 20, 24 pins
ioacpi2 at mainbus0: apid 4 pa 0xfec80400, version 20, 24 pins
acpiprt0 at acpi0: bus 2 (P2P3)
acpiprt1 at acpi0: bus 3 (P2P4)
acpiprt2 at acpi0: bus 0 (PCI0)
acpiprt3 at acpi0: bus 4 (PCIB)
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel E7520 Host rev 0x09
Intel E7520 Error Reporting rev 0x09 at pci0 dev 0 function 1 not
configured
ppb0 at pci0 dev 2 function 0 Intel E7520 PCIE rev 0x09
pci1 at ppb0 bus 1
ppb1 at pci1 dev 0 function 0 Intel 6700PXH PCIE-PCIX rev 0x09
pci2 at ppb1 bus 2
Intel IOxAPIC rev 0x09 at pci1 dev 0 function 1 not configured
ppb2 at pci1 dev 0 function 2 Intel 6700PXH PCIE-PCIX rev 0x09
pci3 at ppb2 bus 3
em0 at pci3 dev 3 function 0 Intel PRO/1000MT (82545CM) rev 0x04: apic 2
int1
6, address 00:04:23:c4:01:16
mpi0 at pci3 dev 5 function 0 Symbios Logic 53c1030 rev 0x07: msi
scsibus0 at mpi0: 16 targets, initiator 7
sd0 at scsibus0 targ 1 lun 0: LSILOGIC, 1030 IM, 1000 SCSI2 0/direct fixed
sd0: 34700MB, 512 bytes/sector, 71065600 sectors
mpi0: timeout
mpi0: timeout
mpi0: timeout
mpi0: timeout
mpi0: timeout
mpi0: timeout
mpi0: phys disk Async at 0 MHz width 8bit offset 0 QAS 0 DT 0 IU 0
em1 at pci3 dev 6 function 0 Intel PRO/100MT (82546GB) rev 0x03: apic 2
int 1
6, address 00:0a:e4:80:5c:4c
em2 at pci3 dev 6 function 1 Intel PRO/1000MT (82545GB) rev 0x03: apic 2
int1
7, address 00:0a:e4:80:5c:4d
Intel IOxAPIC rev 0x09 at pci1 dev 0 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: apic 2 int
16
uhci1 at pci0 dev 29 function 1 Intel 82801EB/ER USB rev 0x02: apic 2 int
19
ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB2 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 82801BA Hub-to-PCI rev 0xc2
pci4 at ppb3 bus 4
vga1 at pci4 dev 1 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
Intel 82801EB/ER LPC rev 0x02 at pci0 dev 31 function 0 not configured
pciide0 at pci0 dev 31 function 1 Intel 82801EB/ER IDE rev 0x02: DMA,
channel
0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8240N, 1.01 ATAPI
5/cdrom r
emovable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
Intel 82801EB/ER SMBus rev 0x02 at pci0 dev 31 function 3 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
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
panic: attempt to execute user address 0x0 in supervisor mode
The operating system has halted
Please press any key to reboot
--

Thanks



blackhole option unsupported in named.conf

2012-12-06 Thread Paolo Aglialoro
Hello,

This is 5.2 on sparc64.
Both in BIND9 admin guide and in man named.conf the option blackhole is
present.
Nevertheless, this is the story:

# named-checkconf -t /var/named/
/etc/named.conf:111: unknown option 'blackhole'

Now, the idea is to create an acl of possible fake IPs of spoofers and deny
them any query to the DNS.
The right command would in fact be blackhole. Any try with:

allow-query { !spooferz-acl; };

results just in queries being rejected from anywhere. So I really miss
blackhole.
Is it missing in OpenBSD implementation? Is there any way out of this? Like
adding anyone else to allow-query structure?
Thanks in advance



Re: blackhole option unsupported in named.conf

2012-12-06 Thread Philip Guenther
On Thu, Dec 6, 2012 at 3:47 PM, Paolo Aglialoro paol...@gmail.com wrote:
 This is 5.2 on sparc64.
 Both in BIND9 admin guide and in man named.conf the option blackhole is
 present.
 Nevertheless, this is the story:

 # named-checkconf -t /var/named/
 /etc/named.conf:111: unknown option 'blackhole'
...
 Is it missing in OpenBSD implementation? Is there any way out of this? Like
 adding anyone else to allow-query structure?

No, it's not missing:

# grep blackhole named.conf
blackhole { clients; };
# named-checkconf  ./named.conf
#


Philip Guenther



Re: blackhole option unsupported in named.conf

2012-12-06 Thread Paolo Aglialoro
Well,

thanks for answer, but I still get the same problem. I tried to put
blackhole out of zone statement in the general area, but the error is still
the same:

# grep blackhole named.conf
blackhole { spooferz; };
# named-checkconf  ./named.conf
./named.conf:18: unknown option 'blackhole'

I'm getting rather crazy might there be any difference about sparc64
arch?
Could you please post your named.conf for reference?


On Fri, Dec 7, 2012 at 1:07 AM, Philip Guenther guent...@gmail.com wrote:

 On Thu, Dec 6, 2012 at 3:47 PM, Paolo Aglialoro paol...@gmail.com wrote:
  This is 5.2 on sparc64.
  Both in BIND9 admin guide and in man named.conf the option blackhole is
  present.
  Nevertheless, this is the story:
 
  # named-checkconf -t /var/named/
  /etc/named.conf:111: unknown option 'blackhole'
 ...
  Is it missing in OpenBSD implementation? Is there any way out of this?
 Like
  adding anyone else to allow-query structure?

 No, it's not missing:

 # grep blackhole named.conf
 blackhole { clients; };
 # named-checkconf  ./named.conf
 #


 Philip Guenther



Re: blackhole option unsupported in named.conf

2012-12-06 Thread Paolo Aglialoro
OK,

now got the soultion. I moved the statement blackhole within in the options
{} and now is accepted.
I was trying to use it in zones, which is not recognized.

Sorry for the noise.



On Fri, Dec 7, 2012 at 1:50 AM, Paolo Aglialoro paol...@gmail.com wrote:

 Well,

 thanks for answer, but I still get the same problem. I tried to put
 blackhole out of zone statement in the general area, but the error is still
 the same:

 # grep blackhole named.conf
 blackhole { spooferz; };
 # named-checkconf  ./named.conf
 ./named.conf:18: unknown option 'blackhole'

 I'm getting rather crazy might there be any difference about sparc64
 arch?
 Could you please post your named.conf for reference?



 On Fri, Dec 7, 2012 at 1:07 AM, Philip Guenther guent...@gmail.comwrote:

 On Thu, Dec 6, 2012 at 3:47 PM, Paolo Aglialoro paol...@gmail.com
 wrote:
  This is 5.2 on sparc64.
  Both in BIND9 admin guide and in man named.conf the option blackhole
 is
  present.
  Nevertheless, this is the story:
 
  # named-checkconf -t /var/named/
  /etc/named.conf:111: unknown option 'blackhole'
 ...
  Is it missing in OpenBSD implementation? Is there any way out of this?
 Like
  adding anyone else to allow-query structure?

 No, it's not missing:

 # grep blackhole named.conf
 blackhole { clients; };
 # named-checkconf  ./named.conf
 #


 Philip Guenther



Re: softraid to encrypt _AND_ raid?

2012-12-06 Thread zgeggy2k
OK, as we all predicted, this was just a PEBCAK. It works find whether [a] or
[d].

Thanks for the help - I appreciate it.

Cheers,

-- Greg



--
View this message in context: 
http://openbsd.7691.n7.nabble.com/softraid-to-encrypt-AND-raid-tp219721p219997.html
Sent from the openbsd user - misc mailing list archive at Nabble.com.