Re: Sound from vmm guest

2018-10-27 Thread David Coppa
Il sab 27 ott 2018, 20:33 Ken M  ha scritto:

> On Sat, Oct 27, 2018 at 07:23:05PM +0200, David Coppa wrote:
> >
> > Hi,
> >
> > Here's what I've done:
> >
> > 1) Install libsndio on the Linux guest (I've used
> > http://www.sndio.org/sndio.tar.gz)
> >
> > 2) Compile this alsa plugin on the Linux guest:
> > https://github.com/Duncaen/alsa-sndio
> >
> > 3) Copy libasound_module_pcm_sndio.so under /usr/lib/alsa-lib/ (I'm on
> > Arch Linux, YMMV)
> >
> > 4) Create a /etc/asound.conf file containing the following lines:
> >
> > pcm.!default {
> > type sndio
> > device "snd@100.64.1.1/0"
> > }
> >
> > Where 100.64.1.1 is the ip address of the host.
> >
> > Enjoy,
> > David
>
> So an update, forwarding audio from the guest to the host with sndiod on
> debian
> sid works fine, as tested with aucat. It is getting the last part, alsa to
> see
> it that is not cooperating yet.
>

Have you installed the alsa-plugins package?


Re: Sound from vmm guest

2018-10-27 Thread David Coppa
On Sat, Oct 27, 2018 at 7:23 PM David Coppa  wrote:
>
> On Sat, Oct 27, 2018 at 1:51 AM Ken M  wrote:
> >
> > So I am working on a bit of an experiment. I have a debian sid guest in vmm.
> > xrdp is installed as is the pulse audio module for xrdp so that it can see 
> > the
> > xrdp output in the mixer. I can connect just fine till I try to get sound 
> > out.
> > Remmina wouldn't work with sound so to have more control I tried xfreerdp. 
> > An
> > example of the options I tried.
> >
> > xfreerdp /sound:sys:sndio,dev:/dev/audio /v:host
> >
> > Basically I can't get it to connect with sound. I can put together a whole 
> > log
> > and all, but I was wondering if anyone can suggest how the /sound flag 
> > should be
> > under openbsd, or perhaps an alternate method to get sound out of a vmm 
> > guest
> > via gui.
>
> Hi,
>
> Here's what I've done:
>
> 1) Install libsndio on the Linux guest (I've used
> http://www.sndio.org/sndio.tar.gz)
>
> 2) Compile this alsa plugin on the Linux guest:
> https://github.com/Duncaen/alsa-sndio
>
> 3) Copy libasound_module_pcm_sndio.so under /usr/lib/alsa-lib/ (I'm on
> Arch Linux, YMMV)
>
> 4) Create a /etc/asound.conf file containing the following lines:
>
> pcm.!default {
> type sndio
> device "snd@100.64.1.1/0"
> }
>
> Where 100.64.1.1 is the ip address of the host.

Ah... Of course you need to run sndiod on the host with the option "-L
100.64.1.1"

David



Re: Sound from vmm guest

2018-10-27 Thread David Coppa
On Sat, Oct 27, 2018 at 1:51 AM Ken M  wrote:
>
> So I am working on a bit of an experiment. I have a debian sid guest in vmm.
> xrdp is installed as is the pulse audio module for xrdp so that it can see the
> xrdp output in the mixer. I can connect just fine till I try to get sound out.
> Remmina wouldn't work with sound so to have more control I tried xfreerdp. An
> example of the options I tried.
>
> xfreerdp /sound:sys:sndio,dev:/dev/audio /v:host
>
> Basically I can't get it to connect with sound. I can put together a whole log
> and all, but I was wondering if anyone can suggest how the /sound flag should 
> be
> under openbsd, or perhaps an alternate method to get sound out of a vmm guest
> via gui.

Hi,

Here's what I've done:

1) Install libsndio on the Linux guest (I've used
http://www.sndio.org/sndio.tar.gz)

2) Compile this alsa plugin on the Linux guest:
https://github.com/Duncaen/alsa-sndio

3) Copy libasound_module_pcm_sndio.so under /usr/lib/alsa-lib/ (I'm on
Arch Linux, YMMV)

4) Create a /etc/asound.conf file containing the following lines:

pcm.!default {
type sndio
device "snd@100.64.1.1/0"
}

Where 100.64.1.1 is the ip address of the host.

Enjoy,
David



Re: vmd: alpine-virt guest, clock synchronization issue

2017-10-19 Thread David Coppa
On Wed, Oct 18, 2017 at 10:03 PM, Mike Larkin  wrote:
> On Wed, Oct 18, 2017 at 12:07:16PM -0700, Mike Larkin wrote:
>> On Sat, Oct 14, 2017 at 01:31:28PM -0600, Shane Harbour wrote:
>> > On 10/14/2017 13:01, x9p wrote:
>> > > Hi,
>> > >
>> > > While running Alpine-virt 3.6.2 VM guest under OpenBSD 6.1 host, i 
>> > > noticed
>> > > the clock frequency is 2x slower on the guest machine. This can be a
>> > > problem for applications that relies on accurate time.
>> > >
>> > > Even after sync clock with ntpd inside alpine-virt guest, it gets
>> > > out-of-sync a few seconds later. I get on the guest about half the clock
>> > > frequency of the host.
>> > >
>> > > Anyone having similar problems?
>> > >
>> > > cheers.
>> > >
>> > > x9p
>> > >
>> >
>> > I've noticed the same thing on my laptop running an amd64 6.2 install. It
>> > was really very slow to install and slow via console and ssh now that I've
>> > got it running.  I just thought it was something I had done/was doing.  
>> > Even
>> > with ntpd running, it's now way behind.
>> >
>> > Regards,
>> > Shane
>> >
>>
>> You should be able to set the timecounter source to 'tsc' in VMs running in
>> -current. It is not the default choice (so set it in sysctl.conf if you want
>> that). That should greatly help reduce time drifts.
>>
>> You will really need -current though as the fix for this went in today.
>>
>> -ml
>
> To be super clear - you need -current on both the host and VM.

For linux guests, add "clocksource=tsc" to the kernel cmdline, but I
suspect it's the default...

Ciao!
David



Re: Firefox H.264 (e.g. videos on Twitter)

2017-09-04 Thread David Coppa
Il 04 set 2017 22:09, "Mike Burns"  ha scritto:

On 2017-09-04 21.53.27 +0200, Paul de Weerd wrote:
> On Mon, Sep 04, 2017 at 07:48:12PM +, Mike Burns wrote:
> | Have others gotten Twitter videos to play in Firefox? Is there something
> | I've missed?
>
> Yes.  Clicking four times, with some time between clicks, works for me.

Huh. Works for me, too. That's unfortunate, and FF is such a large
project that I simply don't know where to begin debugging this.

At least I have a workaround.


Try going into "about:config" and setting media.autoplay.enabled to true.

Ciao!
David


Re: Skylake works on Dell Latitude E5570

2017-07-18 Thread David Coppa
Il 19 lug 2017 00:36, "Mihai Popescu"  ha scritto:

> Hibernate (apm -Z) does not work.
> I don't know if it's related to the Skylake support at all.

Maybe KARL? I think I saw a message about this on list.


Yes, see:

http://marc.info/?l=openbsd-bugs=150039046614972


Re: Tor Relay

2017-06-25 Thread David Coppa
On Sun, Jun 25, 2017 at 5:39 PM, nicehat  wrote:
> I'm looking for some good links on setting up a OBSD based Tor relay.
> I had a few good ones but they have since gone into hiding.
> Anyone with some experience/tips would be helpful
> Regards
> Happy Camper

https://torbsd.github.io/

and, in particular:

https://torbsd.github.io/obsd-relays.html

Ciao!
David



Re: Etnernal & infernal browser woes

2017-04-28 Thread David Coppa
On Fri, Apr 28, 2017 at 2:18 PM, Jyri Hovila [iki.fi]
<jyri.hov...@iki.fi> wrote:
> Dear everyone,

> With the above disclaimer said, and still knowing the potential for a
> war, I must say this: There is not much hope for OpenBSD to ever become
> a desktop (or laptop) OS if the nightmarish sluggishness of ALL modern
> web browsers can not be solved.

Have you properly configured your user?

What I usually do is:

1) be sure my user has the "staff" class:

# grep dcoppa /etc/master.passwd
dcoppa:***:1000:1000:staff:0:0:David Coppa:/home/dcoppa:/bin/ksh

2) I have this at the top of my ~/.profile:

---8<---

# bump limits
ulimit -S -d $(ulimit -H -d)
ulimit -S -n $(ulimit -H -n)
ulimit -S -p $(ulimit -H -p)
ulimit -S -s $(ulimit -H -s)

---8<---

With chromium or iridium it's not as bad as you have described.
Personally I use iridium on a daily basis.

Ciao!
David



Re: [vmm] SSL read error: read failed: error:06FFF064:digital envelope routines:CRYPTO_internal:bad decrypt

2017-04-17 Thread David Coppa
On Sun, Apr 16, 2017 at 11:17 AM, Paul Chakravarti  wrote:
> Hello,
>
> I am trying out vmm on 6.1 and can setup/boot vm etc. however when I try to
> download a large file using SSL I consistenetly get the following error:
>
>> SSL read error: read failed: error:06FFF064:digital envelope
> routines:CRYPTO_internal:bad decrypt
>
> This occasionally (but not always) correlates with the following message in
> the vmd log:
>
>> vionet queue notify - no space, dropping packet
>
> Strangely non-SSL and smaller SSL downloads seem to work ok (see below).
>
> Originally spotted this using installer but can recreate from shell.
>
> Any ideas?

See http://marc.info/?l=openbsd-misc=148858752003261

It's a known problem.

Ciao!
David



Re: better way to detect new display

2017-03-01 Thread David Coppa
On Wed, Mar 1, 2017 at 11:49 AM, Raf Czlonka  wrote:
> On Wed, Mar 01, 2017 at 10:14:39AM GMT, Marcus MERIGHI wrote:
>> sc...@ggr.com (Scott Bonds), 2017.02.28 (Tue) 02:21 (CET):
>> > I'm polling using xrandr to check whether a new display was plugged
>> > in, so I can run a script to switch to it, i.e. plug in an external
>> > VGA monitor and it lights up automatically, unplug it and my laptop
>> > automatically switches back to using its internal display.
>>
>> I have wanted the same and found no way to avoid polling xrandr(1).
>>
>> If you find a way, would you be so kind to share the solution?
>>
>> > But, every time I run xrandr my (USB connected) audio stutters, which
>> > makes me sad because I was hoping to poll for a new display every 5
>> > seconds, but that's not so great while listening to music.
>>
>> Does the --nograb parameter of xrandr(1) help?
>>
>> Marcus
>>
>> > Does anyone know of a better way to notice a newly plugged in
>> > display...perhaps one that's more passive/efficient so as not to
>> > provoke stuttering audio? I don't see any output from hotplugd that I
>> > could use unfortunately, that seemed like the right place to look
>> > first. I didn't notice anything I could use in the Xorg log either.
>> >
>> > !DSPAM:58b4d0ab225251121513987!
>>
>
> Hi all,
>
> A while ago, Keith Packard wrote small display configuration tool
> called x-on-resize[0] which might be exactly what you are looking
> for but I have no idea how much effort would it be to get it
> working/ported on/to OpenBSD.
>
> [0] https://keithp.com/blogs/x-on-resize/

It builds out-of-the-box

Thanks for making me know about x-on-resize,
David



Re: Looking for replacement of thinkpad x201

2017-02-26 Thread David Coppa
On Sun, Feb 26, 2017 at 9:19 AM, Florian Obser  wrote:
> I need some help since I'm terrible with hardware...
>
> So my x201 main hacking laptop is getting old and benno@ is always
> mocking me for the amount of gaffer and stickers that are holding it
> together.
>
> Long story short, I'm in the market for a new thinkpad.
> Yes it has to be a thinkpad. I require the pointing stick and 3
> physical mouse buttons.
>
> On the x201 I like the ease of changing the HDD and battery. I would
> prefer if that was the case with the new one.
>
> So what's the done thing here? I'm not a hardware hacker, so I want a
> kinda fully supported one. That means accelerated X and working wifi
> (this is probably not an issue with stsp@'s hard work). Also I'm happy
> with the size of the x201, I don't want to lug a brick around, so that
> means an x series laptop. As a first approximation assume that money is
> not an issue.

I'd go for a refurbished X230 (Sandy Bridge, so fully working accelerated X).
Then you can upgrade it with 16GB of ram and a SSD harddisk.

CIAO!
David



Re: jdk-1.7.0 and jdk-1.8.0 Abort trap (core dumped) GDB core trace provided

2016-11-24 Thread David Coppa
On Thu, Nov 24, 2016 at 9:32 AM, Denis Lapshin  wrote:
> Hello All,
>
> There is a problem with starting jdk from packages on AMD64 platform. It
> doesn't matter what versions of jdk installed: jdk-1.7.0 or jdk-1.8.0. The
> same issue is present on both.
>
> # java
> Abort trap (core dumped)
>
> # gdb /usr/local/jdk-1.7.0/bin/java java.core
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging
> symbols found)
>
> Core was generated by `java'.
> Program terminated with signal 6, Aborted.
> Reading symbols from /usr/lib/libpthread.so.22.0...done.
> Loaded symbols for /usr/lib/libpthread.so.22.0
> Loaded symbols for /usr/local/jdk-1.7.0/bin/java
> Reading symbols from /usr/lib/libz.so.5.0...done.
> Loaded symbols for /usr/lib/libz.so.5.0
> Symbols already loaded for /usr/lib/libpthread.so.22.0
> Reading symbols from /usr/lib/libc.so.88.0...done.
> Loaded symbols for /usr/lib/libc.so.88.0
> Reading symbols from /usr/libexec/ld.so...done.
> Loaded symbols for /usr/libexec/ld.so
> Reading symbols from
> /usr/local/jdk-1.7.0/jre/lib/amd64/server/libjvm.so...done.
> Loaded symbols for /usr/local/jdk-1.7.0/jre/lib/amd64/server/libjvm.so
> Reading symbols from /usr/lib/libstdc++.so.57.0...done.
> Loaded symbols for /usr/lib/libstdc++.so.57.0
> Reading symbols from /usr/lib/libm.so.9.0...done.
> Loaded symbols for /usr/lib/libm.so.9.0
> Reading symbols from /usr/local/jdk-1.7.0/jre/lib/amd64/libverify.so...done.
> Loaded symbols for /usr/local/jdk-1.7.0/jre/lib/amd64/libverify.so
> Reading symbols from /usr/local/jdk-1.7.0/jre/lib/amd64/libjava.so...done.
> Loaded symbols for /usr/local/jdk-1.7.0/jre/lib/amd64/libjava.so
> Reading symbols from /usr/local/jdk-1.7.0/jre/lib/amd64/libzip.so...done.
> Loaded symbols for /usr/local/jdk-1.7.0/jre/lib/amd64/libzip.so
> #0  0x12b62e14c0ca in mprotect () at :2
> 2   : No such file or directory.
> in 
> (gdb) where
> #0  0x12b62e14c0ca in mprotect () at :2
> #1  0x12b65861b5c8 in os::pd_commit_memory () from

Your '/usr/local' filesystem does not have the "wxallowed" mount option.

Read the mount(8) manual page.

Ciao!
David



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-16 Thread David Coppa
On Wed, 16 Nov 2016, Stephane HUC "CIOTBSD" wrote:

> Question: How i can "write" fstype "NTFS" on the "defective" HDD?
> It's really formated in NTFS - mode normal, on Win7!


Try with "fdisk -e" under OpenBSD.

Use "07" for the partition id and, for the other parameters (offset,
size), just press enter to leave them unchanged.

Example:

# fdisk -e sd2
Enter 'help' for information
fdisk: 1> p
Disk: sd2   geometry: 498/255/63 [8011774 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 04  0  32  33 -498 181   1 [2048: 8009726 ] MSDOS  
 1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
fdisk: 1> edit 0
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 04  0  32  33 -498 181   1 [2048: 8009726 ] MSDOS  
Partition id ('0' to disable) [01 - FF]: [4] (? for help) 07
Do you wish to edit in CHS mode? [n] 
Partition offset [0 - 8011774]: [2048] 
Partition size [1 - 8009726]: [8009726] 
fdisk:*1> w
Writing MBR at offset 0.
fdisk: 1> q
# fdisk sd2
Disk: sd2  geometry: 498/255/63 [8011774 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 07  0  32  33 -498 181   1 [2048: 8009726 ] NTFS
 1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
# ^D


Ciao!
David



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-13 Thread David Coppa
On Sun, 13 Nov 2016, Stephane HUC "CIOTBSD" wrote:

> $ disklabel sd1
> # /dev/rsd1c:
> type: SCSI
> disk: SCSI disk
> label: 3AS
> duid: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 38913
> total sectors: 625142448
> boundstart: 0
> boundend: 625142448
> drivedata: 0
> 
> 16 partitions:
> #size   offset  fstype [fsize bsize  cpg]
>   c:6251424480  unused
>   i:625139712 2048   MSDOS
  ^^^

Now that I've read your mail carefully...

Why is your disk of type "MSDOS"?

It should be "NTFS".

Here's the output of disklabel for a ntfs formatted pendrive I have
here:

---8<---

# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: TS4GJFV30   
duid: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 498
total sectors: 8011774
boundstart: 0
boundend: 8011774
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize   cpg]
  c:  80117740  unused
  i:  8009726 2048NTFS

---8<---

Ciao!
David



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-13 Thread David Coppa
On Sun, Nov 13, 2016 at 5:16 PM, Stephane HUC "CIOTBSD"
 wrote:
> Hi, all
>
> I attempt to mount an external HDD, on my OBSD 6.0 stable.
> For this, i use 'hotplug-diskmount' in version 1.0.2 downloaded on this url:
>
> https://bitbucket.org/alex_vatchenko/hotplug-diskmount/get/HOTPLUG_DISKMOUNT_1_0_2_RELEASE.tar.gz
>
> Because, this version seems to support NTFS.
> (see, official info on the webpage project:
> http://www.bsdua.org/hotplug-diskmount.html)
>
> I configured /etc/rc.conf.local as:
> $ egrep "hotplug" /etc/rc.conf.local
>
> hotplugd_flags=
>
> After adding Fuse package, i make and install:
> $ pkg_info -Q fuse
> enblend-enfuse-4.0p4
> exfat-fuse-1.2.4 (installed)
> fuse-1.1.1p0 (installed)
> fuse-utils-1.1.1p1 (installed)
> fuse-zip-0.4.0 (installed)
> libconfuse-2.7p3
> py-defusedxml-0.4.1p0
> sshfs-fuse-2.5 (installed)

You're probably missing ntfs_3g:

# pkg_add ntfs_3g
quirks-2.270 signed on 2016-11-12T12:50:18Z
ntfs_3g-2016.2.22: ok

Install it, and retry.

Ciao!
David



Re: VMM test

2016-10-12 Thread David Coppa
On Wed, Oct 12, 2016 at 1:06 PM, Sébastien Morand 
wrote:
> Hi Everybody,
>
> I would like to give a try to vmm. If I do so, which os can I expect
> to make it work? openbsd ok I guess. Linux? Windows?

OpenBSD only, as of now.



Re: W^X issues running valgrind

2016-10-06 Thread David Coppa
On Thu, Oct 6, 2016 at 12:50 PM, Andreas Kusalananda Kähäri
 wrote:
> Hi,
>
> Let me know if this should be on ports rather than here.
>
> I'm following OpenBSD current on amd64, updating the system a couple of
> times a week, and I'm using valgrind from ports to check a C program for
> memory leaks.  However, since recently (sorry, can't specify closer,
> within the last couple of months) I get a W^X violation when I try it.

devel/valgrind is missing the USE_WXNEEDED=Yes marker.

Ciao!
David



Re: acpithinkpad(4): mute speaker on boot

2016-09-15 Thread David Coppa
On Wed, Sep 14, 2016 at 8:11 PM, Anton Lindqvist
 wrote:
> On Tue, Sep 13, 2016 at 10:48:26AM -0600, Theo de Raadt wrote:
>> > Anton Lindqvist wrote:
>> > > I'm trying to fix a minor annoyance on my x240: the speaker mute key
>> > > LED-state is not respected at boot. Pressing the mute key will mute the
>> > > speaker while the expected behavior is to unmute. The LED-state will
>> > > remain out-of-sync until I run `mixerctl -t outputs.master.mute`.
>> > >
>> > > I've managed to determine if the speaker is muted in the acpithinkpad(4)
>> > > attach function by reading from the embedded controller. However,
>> > > calling wskbd_set_mixervolume at this stage returns ENODEV. I assume the
>> > > audio device has not been attached yet. I'm new to kernel development
>> > > and therefore wonder if this approach makes sense. If true, is it
>> > > possible to postpone a task to run once a certain device has attached?
>> >
>> > The function you're looking for is startuphook_establish.
>> >
>> > But this requires crazy amounts of testing, since many thinkpads will be
>> > different. It's well known that the mute button, hardware state, and 
>> > software
>> > state can became desynced, but the specifics vary by model.
>> >
>>
>> Actually, I think Anton might be onto something here.  The desyncronization
>> may be due to the audio driver + BIOS not recognizing the other's state.
>
> By using startuphook_establish, as proposed by tedu@, I managed to get
> it working. Booting with the volume muted before reboot and the volume
> not muted before reboot both behaves correctly.
>
> A few comments regarding the patch:
>
> - At first, I tried sticking all code in the startuphook function
>   because it felt like a good approach to keep all the logic in one
>   place and reduce the number of ifdef-conditionals. However, that
>   caused my kernel to halt since the EC is busy at this point and the
>   assertion in acpiec.c:337 failed. The only other usage of acpiec_read
>   I can find is related to polling the sensors. I therefore kept volume
>   reading from the EC inside the attached function and moved it prior
>   attaching the sensors. The kernel then continued successfully, but I'm
>   still worried a that potential race still can occur. Or is the action
>   taken enough to make the volume EC read atomic?
>
> - I didn't bother checking the return value of startuphook_establish
>   since I couldn't find any other invocation in the kernel doing so.
>
> - The VOLUME_MUTE_MASK is taken from the FreeBSD ThinkPad ACPI driver.
>
> If the patch looks good, then I would like to add some logging prior
> asking people to try it out.

Works as intended on my X220.

Thanks!
David



Re: can't get vmd to work on current

2016-09-07 Thread David Coppa
Il 7 settembre 2016 20:43:47 CEST, "Mart Tõnso"  ha scritto:
>Hello,
>
>I'm trying to get vmd working, but am failing so far.
>
>What I've done:
>
>Custom kernel config to enable vmm:
>
>include "arch/amd64/conf/GENERIC"
>
>option  MULTIPROCESSOR
>#option MP_LOCKDEBUG
>
>cpu*at mainbus?
>
># enable vmm
>vmm0   at mainbus0
># EOF
>
>
>/etc/vm.conf:
># vm.conf
>sets="/var/www/htdocs/pub/OpenBSD/snapshots/amd64/"
>
># OpenBSD snapshot install test
>vm "openbsd.vm" {
>memory 512M
>kernel $sets "bsd.rd"
>
># First disk from 'vmctl create "/home/vm/OpenBSD.img" -s 4G'
>disk "/home/vm/OpenBSD.img"
>
># Second disk from OpenBSD contains the install sets
>disk $sets "install59.fs"
>
> # Interface will show up as tap(4) on the host and as vio(4) in the VM
>interfaces 1
>}
># EOF
>
>
>And this is where it all falls apart:
>
># vmd -vd
>vmd: /dev/vmm: Operation not supported by device
>
>
>What am I missing here?

Show your dmesg!

And, in particular:

dmesg | grep vmm

Ciao!
David



Re: Check for wxneeded option?

2016-09-05 Thread David Coppa
Il 6 settembre 2016 07:28:40 CEST, Philippe Meunier  ha 
scritto:
>Hello,
>
>How does one check whether an existing program has been linked using
>the wxneeded option or not?
>
>I tried to play with objdump -x but I don't know what to look for in
>the output...  Any help?  Thank you.

readelf -l /path/to/executable

Ciao!
David



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread David Coppa
Il 2 settembre 2016 17:26:34 CEST, Stefan Sperling <s...@stsp.name> ha scritto:
>On Fri, Sep 02, 2016 at 10:41:31AM +0200, David Coppa wrote:
>> The Alfa AWUS036NHA it's based on the Atheros AR9271 chipset and
>> should be supported by athn(4).
>
>But hostap is broken in the USB athn(4) driver so it's useless as AP.

I wasn't aware of this, sorry.

>Unless you wish to be hacking wifi drivers, if you want a happy AP that
>you will enjoy using get a supported (mini)PCI athn(4) or ral(4)
>device.

Indeed.

Ciao!
David



Re: Trying to find/install msgfmt(1) from gettext

2016-09-02 Thread David Coppa
On Fri, Sep 2, 2016 at 8:10 AM, Nick Gonella  wrote:
> Hello misc@,
> I'm currently trying to port some code from Linux and within the
> Makefile, there is a reference to the utility msgfmt(1). After some
> Googling, I found that this should come as a part of gettext(1), but I
> can't seem to find how to get msgfmt(1) on OpenBSD. Any advice you have
> would be appreciated. Regards,
> - Nick Gonella

# pkg_add gettext-tools

Ciao!
David



Re: Recommendation about an Alfa usb wireless adapter to use it as HostAP

2016-09-02 Thread David Coppa
On Fri, Sep 2, 2016 at 9:43 AM, C. L. Martinez  wrote:
> Hi all,
>
>  I would like to install OpenBSD as a hostap for my home. I have done the
same in the past, running OpenBSD as a kvm guest on my laptop and all works
really well. I am thinking to use an Alfa (http://www.alfa.com.tw) usb
wireless adapter. There is not much information in Alfa's web about which of
them can run as a HostAP.
>
>  Any recommendation? Maybe AWUS036ACH can supports this functionality, but I
am not sure ...

The Alfa AWUS036NHA it's based on the Atheros AR9271 chipset and
should be supported by athn(4).

> Thanks.
> --
> Greetings,
> C. L. Martinez

Ciao!
David



Re: xpdf crashes when going fullscreen

2016-08-24 Thread David Coppa
On Wed, 24 Aug 2016, Alessandro DE LAURENZIS wrote:

> Dear misc@ readers,
> 
> just noticed that xpdf receives a bus error as soon as the fullscreen mode is
> activated.  A gdb trace follows, hoping it gives some hints:
> 
> GNU gdb 6.3
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-unknown-openbsd6.0"...(no debugging symbols 
> found)
> 
> (gdb) run
> Starting program: /usr/local/bin/xpdf
> 
> Program received signal SIGBUS, Bus error.
> 0x1693d3cabc78 in XtWindowOfObject () from /usr/X11R6/lib/libXt.so.11.0

Next time, try harder. Google is your friend ;)

Five minutes of googling lead me to this:

https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/1354961

Can you please try the x11/motif diff below and report back?

Ciao!
David

Index: Makefile
===
RCS file: /cvs/ports/x11/motif/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile3 Aug 2016 18:55:49 -   1.2
+++ Makefile24 Aug 2016 08:21:36 -
@@ -4,6 +4,8 @@ COMMENT=Motif toolkit
 
 DISTNAME=  motif-2.3.6
 
+REVISION=  0
+
 SHARED_LIBS=   Mrm 4.1 \
Uil 5.0 \
Xm  6.1
Index: patches/patch-lib_Xm_XmI_h
===
RCS file: patches/patch-lib_Xm_XmI_h
diff -N patches/patch-lib_Xm_XmI_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-lib_Xm_XmI_h  24 Aug 2016 08:21:36 -
@@ -0,0 +1,26 @@
+$OpenBSD$
+
+Description: Disable fix for upstream bug #1565
+
+This patch reverts the changes introduced by upstream's fix for
+upstream bug #1565 and causes pop menus and keyboard navigation in
+menus to revert to their Motif 2.3.3 behaviour.
+
+Upstream's original fix broke keyboard navigation in menus (#730026)
+and upstream's updated fix (applied in motif 2.3.4-5) caused segfaults
+in ddd and xpdf (#781995).
+
+Author: Graham Inggs 
+Bug: http://bugs.motifzone.net/show_bug.cgi?id=1565
+Bug-Debian: https://bugs.debian.org/781995
+
+--- lib/Xm/XmI.h.orig  Sat Jun 11 01:52:23 2016
 lib/Xm/XmI.h   Wed Aug 24 10:04:23 2016
+@@ -294,7 +294,6 @@ extern Pixel _XmAssignInsensitiveColor(Widget w);
+ #define FIX_1501
+ #define FIX_1521
+ #define FIX_1505
+-#define FIX_1565
+ 
+ #endif /* _XmI_h */
+ /* DON'T ADD ANYTHING AFTER THIS #endif */



Re: Fluxbox doesn't survive to a suspend to disk when restarted

2016-08-11 Thread David Coppa
On Thu, Aug 11, 2016 at 3:10 PM, Alessandro DE LAURENZIS
 wrote:
> Hello,
>
> I'm reporting this without any details because actually I do not know how to
> start a debugging...
>
> After resuming from an hibernation, restarting Fluxbox (Restart from menu or
> issuing "fluxbox-remote -Restart") systematically crashes it, causing the
> XDM login window to appear. No core generated, nothing annotated into system
> logs / Fluxbox's log.
>
> This is on -current, Aug 10 (same behaviour with other recent, don't know
> the situation for previous ones).
>
> Anybody noticed the same?

Does restarting Fluxbox work otherwise or the crash only happens after resuming?


Ciao
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: awesome W^X

2016-06-01 Thread David Coppa
On Wed, Jun 1, 2016 at 3:30 AM, Chris Cappuccio  wrote:
> Totally awesome!
>
> awesome(38099): mmap W^X violation
>
> It happens once on startup. Grepping for the obvious stuff doesn't show
> me the issue, perhaps it's a library. There is no obvious ill effect from
> the mmap failure.

Is your libffi updated to the latest revision?
Or maybe Lua is the offender here...



Re: libtorrent build fail

2016-05-27 Thread David Coppa
On Fri, May 27, 2016 at 3:02 PM, Thuban  wrote:
> Tah was too beautiful, now it's``make`` that give me errors I can't
> understand :
>
>
> In file included from ../include/libtorrent/parse_url.hpp:40,
> from web_connection_base.cpp:53:
> ../include/libtorrent/aux_/disable_warnings_pop.hpp:42: warning: expected
> [error|warning|ignored] after '#pragma GCC diagnostic'
> *** Error 1 in src (Makefile:972 'web_connection_base.lo': @echo "  CXX
> " web_connection_base.lo;depbase=`echo web_connection_base.lo | ...)
> *** Error 1 in /home/xavier/geek/libtorrent/libtorrent-rasterbar-1.1.0
> (Makefile:645 'all-recursive')
>
> See full warnings here : https://clbin.com/uPgvb
>
> Do you have any advice on this?

Please give me some time...
I'm trying to cook a proper port, but there's a lot of stuff that
needs to be fixed.



Re: libtorrent build fail

2016-05-26 Thread David Coppa
On Thu, May 26, 2016 at 6:30 PM, Josh Grosse  wrote:
> On 2016-05-26 11:50, Thuban wrote:
>>
>> Hi,
>> I'm trying to build libtorrent [1], but can't figure out how to have
>> ./configure detect boost library.
>
>
> Have you tried installing the libtorrent package? :)
>
> If you'd like to see how libtorrent is built, see the net/libtorrent
> port, which includes dependencies, OpenBSD-specific patches, and build
> instructions.

These are two different projects with the same name.
The one Thuban is trying to build is best known as rasterbar's
libtorrent, while the one in our ports tree is rakshasa's libtorrent.
Dunno if libtorrent-rasterbar was originally a fork of rakshasa's one.

Btw, you have two problems here:

1) '-ftemplate-depth=120' passed to $CXXFLAGS: get rid of it.

2) Use this configure line to correctly find boost libraries:

./configure --with-boost-system=boost_system-mt
--with-boost-chrono=boost_chrono-mt
--with-boost-random=boost_random-mt

Ciao!
David



Re: Seeking working Xorg configurations for MacBook 5,1 under 5.9 -release

2016-05-26 Thread David Coppa
On Wed, May 25, 2016 at 7:30 PM,   wrote:
> Hello,
>
> I'm new to OpenBSD.  I've recently installed 5.9 -release on a
> MacBook 5,1.  The default configuration of Xorg doesn't work for me:
> when I call startx, my screen goes black and the computer seems entirely
> unresponsive to keyboard input; I'm obliged to restart the computer by
> holding down the power button.  I'd appreciate seeing how others have
> successfully configured Xorg for the MacBook 5,1.  A description of what
> I've attempted so far follows.
>
> xf86(4) and OpenBSD FAQ 11 [*] indicate that, on amd64, the sysctl
> variable "machdep.allowaperture" need be set to a value greater than 0.
> I've tried starting Xorg both with machdep.allowaperture set to 1 and
> with it set to 2; in both cases, the result is as described above.

Add "machdep.allowaperture=2" to /etc/sysctl.conf

Create a /etc/X11/xorg.conf containing:

---8<---

Section "Device"
Identifier "Vesa"
Driver "vesa"
EndSection

---8<---

Ciao!
David



Re: APM vs. kernel frequency scaling

2016-05-16 Thread David Coppa
On Mon, May 16, 2016 at 9:21 PM, Robert Campbell
 wrote:
> The release notes for 5.7 included under the assorted improvements this
> line item:
>
> "Frequency scaling has been moved from apmd(8) to the kernel with an
> improved algorithm."
>
> Does this mean my CPU's frequency is being scaled automatically? Is there
> any reason to run apud -A for example? I'm a little confused because
> running apm with near idle CPU load always shows:
>
> Performance adjustment mode: manual (<> MHz)
>
> When I do run apmd -A however, it does appear to scale the frequency
> correctly:
>
> Performance adjustment mode: auto (<> MHz)
>
> What's going on here?

Using "apmd -A" is equivalent to setting hw.perfpolicy=auto with sysctl:

# sysctl hw.perfpolicy=auto

Ciao!
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: non-wintel hardware choices

2016-05-05 Thread David Coppa
On Thu, May 5, 2016 at 5:00 PM, Bryan C. Everly  wrote:
> Gregory,

> It's pretty speedy and mostly useful.  The only downside is web
> browser support.  Since Firefox and Chromium aren't available for
> anything other than i386 and amd64 platforms, it's kind of hit and
> miss.  If anyone on the list has a suggestion, I'd really appreciate
> it.  This box is good enough to be my daily driver at work if I could
> solve that wrinkle.

Firefox used to work on sparc64:

https://rhaalovely.net/~landry/shared/firefox-24.0a1-sparc64.png

https://rhaalovely.net/~landry/shared/firefox-24.0a1-sparc64-2.png

Ciao!
David



Re: thinkpad X301: stopping the port, softreset slot 31 was still active.

2016-04-27 Thread David Coppa
On Wed, Apr 27, 2016 at 2:43 PM, frantisek holop  wrote:
> a newcomer to my menagerie.
>
> stuff mostly works (although did not wake up from zzz
> when booted from a usb stick).
>
> the dvd drive lets out terrible shrieks at boot up
> time, and by timing out makes boot up longer.  is there
> anything i can do about it?  i'd prefer not to take out
> the drive as i have nothing to replace it.

Maybe disabling cd*?

# config -e -f /bsd
ukc> disable cd
ukc> quit

>
> OpenBSD 5.9-current (GENERIC.MP) #1997: Sun Apr 24 17:44:37 MDT 2016



Re: umsm(4) for Sierra Wireless EM7455 in ThinkPad X260

2016-04-20 Thread David Coppa
On Wed, Apr 20, 2016 at 5:28 PM, Bryan Vyhmeister <br...@bsdjournal.net> wrote:
> On Wed, Apr 20, 2016 at 11:12:04AM +0200, David Coppa wrote:
>> On Wed, Apr 20, 2016 at 10:40 AM, Stuart Henderson <s...@spacehopper.org> 
>> wrote:
>> > On 2016-04-20, Bryan Vyhmeister <br...@bsdjournal.net> wrote:
>> >> I recently purchased a Lenovo ThinkPad X260 and I decided to also order
>> >> the Sierra Wireless EM7455 LTE Wireless WAN device installed as well.
>> >
>> > I'd look for other OS which support this device and see which driver
>> > they attach to..
>>
>> I'm sorry,
>>
>> It's a MBIM (Mobile Broadband Interface Model) device:
>>
>> https://www.kernel.org/doc/Documentation/networking/cdc_mbim.txt
>
> Thanks for the info. Sounds like a new driver is needed or lots of work
> to extend umsm(4). If my research is correct, the older cards supported
> by umsm(4) would be supported by the qcserial driver in Linux which is
> totally different than this cdc_mbim driver. I will research the
> situation further. For now I have an expensive Mini PCIe slot filler.

The vast majority of the devices supported by umsm(4) under OpenBSD
require the "option" kernel module on Linux, the USB driver for GSM
and CDMA modems.

http://lxr.free-electrons.com/source/drivers/usb/serial/option.c

https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem

Cheers!
David



Re: umsm(4) for Sierra Wireless EM7455 in ThinkPad X260

2016-04-20 Thread David Coppa
On Wed, Apr 20, 2016 at 10:40 AM, Stuart Henderson  wrote:
> On 2016-04-20, Bryan Vyhmeister  wrote:
>> I recently purchased a Lenovo ThinkPad X260 and I decided to also order
>> the Sierra Wireless EM7455 LTE Wireless WAN device installed as well.
>
> I'd look for other OS which support this device and see which driver
> they attach to..
>

I'm sorry,

It's a MBIM (Mobile Broadband Interface Model) device:

https://www.kernel.org/doc/Documentation/networking/cdc_mbim.txt

CIAO!
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: Firefox W^X isn't a part of Pwn2Own contest

2016-02-17 Thread David Coppa
Il 17/feb/2016 14:52, "Lampshade"  ha scritto:
>
> Does original Firefox compiled by Mozilla running on Windows
> have W^X? I bet: no, it doesn't.

Not until Firefox 46.



Re: ypldap.conf help - was: Samba4 and OpenBSD

2016-01-11 Thread David Coppa
On Mon, Jan 11, 2016 at 9:37 AM, Stuart Henderson  wrote:
> On 2016-01-11, Theodore Wynnychenko  wrote:
>> directory "ldap://DC1.samba.domain.com:389; {
>
> afaik this just takes a hostname, not a URL.

Confirmed.

And see also:

http://obfuscurity.com/2009/08/OpenBSD-as-an-LDAP-Client

Ciao!
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: PF: can't make queueing and priority work as expected

2016-01-08 Thread David Coppa
On Fri, Jan 8, 2016 at 12:44 PM, Marko Cupać  wrote:

> Should I conclude my goal of throttling smaller priority traffic to
> minimum when higher priority traffic arrives can't be achieved with
> current PF? If I haven't gone senile, I did this successfully on dozens
> of firewalls back in altq/HFSC age.
>
> Any good soul out there to point me in the right direction to achieve
> my goal? Or at least confirm it is not possible? Could the problem be
> related to hardware and not software? This is 5.8 with all errata
> patches on pcengines' apu1d.

Maybe is the "old" problem of queues with the default HZ value of 100?

See: http://marc.info/?l=openbsd-misc=140863695214420

Ciao!
David

> dmesg:
> OpenBSD 5.8 (GENERIC.MP) #2: Thu Nov 26 10:23:47 CET 2015
> pacija@kerber.mimar.local:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> RTC BIOS diagnostic error
> ff
> real mem = 2098511872 (2001MB)
> avail mem = 2031079424 (1936MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7e16d820 (7 entries)
> bios0: vendor coreboot version "4.0" date 09/08/2014
> bios0: PC Engines APU
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
> acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4)
> PBR7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3)
> UOH3(S3) UOH4(S3) UOH5(S3) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD G-T40E Processor, 1000.15 MHz
> cpu0:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,L
> ONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu0: 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD G-T40E Processor, 1000.00 MHz
> cpu1:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
>
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,L
> ONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu1: 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
> acpiprt0 at acpi0: bus -1 (AGPB)
> acpiprt1 at acpi0: bus -1 (HDMI)
> acpiprt2 at acpi0: bus 1 (PBR4)
> acpiprt3 at acpi0: bus 2 (PBR5)
> acpiprt4 at acpi0: bus 3 (PBR6)
> acpiprt5 at acpi0: bus -1 (PBR7)
> acpiprt6 at acpi0: bus 5 (PE20)
> acpiprt7 at acpi0: bus -1 (PE21)
> acpiprt8 at acpi0: bus -1 (PE22)
> acpiprt9 at acpi0: bus -1 (PE23)
> acpiprt10 at acpi0: bus 0 (PCI0)
> acpiprt11 at acpi0: bus 4 (PIBR)
> acpicpu0 at acpi0: !C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpicpu1 at acpi0: !C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpibtn0 at acpi0: PWRB
> cpu0: 1000 MHz: speeds: 1000 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
> ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3e:84:9c
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3e:84:9d
> rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci3 at ppb2 bus 3
> re2 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3e:84:9e
> rgephy2 at re2 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int
> 19, AHCI 1.2
> scsibus1 at ahci0: 32 targets
> ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int
> 18, version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int
> 18, version 1.0, legacy support

Re: HUAWEI dongle

2015-12-19 Thread David Coppa
Il 19/dic/2015 19:43, "Read, James C"  ha scritto:
>
> Hi,
>
> I just installed 5.8, I know my dongle is detected and correctly switched
to
> the right mode because
>
> a) I can see in dmesg output that the device is detected and labelled
ugen0
> b) I can see the led light continuously on the dongle, this only happens
in
> other environments I've used the dongle in when the dongle is no longer in
> mass storage mode (light flashes when in mass storage mode)
>
> However, when I ifconfig I get nothing.
>
> What gives?
>
> 0x00

Please send dmesg and the output of:

usbdevs -dv

Both while the Huawei dongle is plugged into your machine, of course...

Ciao!
David



Re: The kernels of *BSD include nonfree firmware blobs?

2015-11-27 Thread David Coppa
Il 27/nov/2015 21:43, "bofh"  ha scritto:
>
> Do you understand your question has been answered over and over again, and
> is not relevant here?
>
> Why do you continue by asking about blobs in FreeBSD?
>

Because he's a troll.

Stop feeding him, please.



Re: Unix::Pledge perl module

2015-11-20 Thread David Coppa
On Thu, Nov 19, 2015 at 10:30 PM, Andrew Fresh  wrote:
> On Thu, Nov 19, 2015 at 04:19:19PM -0500, Richard Farr wrote:
>> I've put together a simple CPAN module that allows you to use pledge(2)
>> in your Perl programs.  Of course it will only work on -current.
>
> Way cool!  I too have been working on this a bit.  Sorry that I got
> distracted from actually putting it someplace public.
>
> https://github.com/afresh1/OpenBSD-Pledge
>
> One benefit of mine is that OpenBSD-Pledge.t is a bit further fleshed
> out.  I do need to do a fair amount of work on the docs still, but I
> will be looking for OKs to import it into base before long.

Very nice!

Pledges for pkg_* tools anyone? ;)

ciao,
David



Re: Build error freetype2

2015-10-22 Thread David Coppa
On Thu, Oct 22, 2015 at 12:36 PM, Heiko Zimmermann
 wrote:
> mkdir -m 0755 -p /usr/X11R6/include/freetype2/freetype/config
>
> solved the issue.
>
> cat /usr/src/etc/mtree/BSD.x11.dist > /etc/mtree/BSD.x11.dist
> was not working.

For "up-to-date src tree" I meant:

cd /usr/src
cvs -d anon...@anoncvs.ca.openbsd.org:/cvs -q up -Pd

See:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/etc/mtree/BSD.x11.dist?rev=1.41=text/x-cvsweb-markup


> Thank you David.
>
> Cheers,
> Heiko

You're welcome.
David



Re: Build error freetype2

2015-10-22 Thread David Coppa
On Thu, Oct 22, 2015 at 12:01 PM, Heiko Zimmermann
 wrote:
> Hello together,
>
> I did like expected in current.html:
>
> 2015/10/19 - [xenocara] freetype update
> Freetype was updated to version 2.6.1, which causes header files to be
> moved around. As a result, some old files needs to be removed manually:
>
> cd /usr/X11R6/include/freetype2
> rm -rf config
> rm -f freetype.h ftadvanc.h ftbbox.h ftbdf.h ftbitmap.h ftbzip2.h \
> ftcache.h ftcffdrv.h ftchapters.h ftcid.h fterrdef.h \
> fterrors.h ftfntfmt.h ftgasp.h ftglyph.h ftgxval.h ftgzip.h \
> ftimage.h ftincrem.h ftlcdfil.h ftlist.h ftlzw.h ftmac.h \
> ftmm.h ftmodapi.h ftmoderr.h ftotval.h ftoutln.h ftpfr.h \
> ftrender.h ftsizes.h ftsnames.h ftstroke.h ftsynth.h \
> ftsystem.h fttrigon.h fttypes.h ftwinfnt.h t1tables.h \
> ttnameid.h tttables.h tttags.h ttunpat.h
>
>
> Then:
>
> cd /usr/xenocara
> cvs -d anon...@anoncvs.ca.openbsd.org:/cvs -q up -Pd
> rm -rf /usr/xobj/*
> make bootstrap
> make obj
> make build
>
>
> But I get always this error:
>
> ===> lib/freetype
> install: /usr/X11R6/include/freetype2/freetype/config/ftconfig.h: No
> such file or directory
> *** Error 71 in lib/freetype (Makefile:42 'includes': @cmp -s
> /usr/X11R6/include/freetype2/freetype/config/ftconfig.h
> /usr/xenocara/lib/fre...)
> *** Error 1 in lib (:48 'includes')
> *** Error 1 in . (:48 'includes')
> *** Error 1 in . (Makefile:57 'beforebuild')
> *** Error 1 in /usr/xenocara (Makefile:40 'build')
>
>
> It is on amd64, current snapshot from today.
> How can I fix this?
>
> Thank you in advance.
> Heiko
>

Be sure your /etc/mtree/BSD.x11.dist is up to date before doing 'make bootstrap'

Cheers!
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread David Coppa
On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez  wrote:
> Hi all,
>
>  I have installed an openbsd vm to works as a hostap for tablets and
> smartphones (android and iOS).
>
>  All it is working ok: pf, hostapd and dhcpd server. All tablets and
> smartphones that I have tested works ok, connects and surfs Internet.
>
>  But now I am thinking to use some type of auth (user/pass using a SSL/TLS
> channel) instead to use wpa/wpa2 keys.
>
>  Sometime ago exists this project: Chillispot (http://www.chillispot.org/)
> but it seems discontinued.
>
>  Someone knows any type of project/software to accomplish?? I would like to
> keep simple as much as I can.
>
> Thanks.
>

You could try CoovaChilli.

https://github.com/sevan/coova-chilli/

http://coova.github.io/

Ciao
David
-- 
"If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will."
-- Stewart Nelson



Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread David Coppa
On Mon, Oct 5, 2015 at 2:49 PM, C.L. Martinez <carlopm...@gmail.com> wrote:
> On 10/05/2015 12:29 PM, Kapetanakis Giannis wrote:
>>
>> On 05/10/15 14:35, David Coppa wrote:
>>>
>>> On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez <carlopm...@gmail.com>
>>> wrote:
>>>>
>>>> Hi all,
>>>>
>>>>   I have installed an openbsd vm to works as a hostap for tablets and
>>>> smartphones (android and iOS).
>>>>
>>>>   All it is working ok: pf, hostapd and dhcpd server. All tablets and
>>>> smartphones that I have tested works ok, connects and surfs Internet.
>>>>
>>>>   But now I am thinking to use some type of auth (user/pass using a
>>>> SSL/TLS
>>>> channel) instead to use wpa/wpa2 keys.
>>>>
>>>>   Sometime ago exists this project: Chillispot
>>>> (http://www.chillispot.org/)
>>>> but it seems discontinued.
>>>>
>>>>   Someone knows any type of project/software to accomplish?? I would
>>>> like to
>>>> keep simple as much as I can.
>>>>
>>>> Thanks.
>>>>
>>> You could try CoovaChilli.
>>>
>>> https://github.com/sevan/coova-chilli/
>>>
>>> http://coova.github.io/
>>>
>>> Ciao
>>> David
>>
>>
>> Another option you could look is authpf(8) which is in base.
>> Not web based captive portal, but similar setup with ssh.
>>
>> G
>>
>
> Thanks to both ... Previously, I am thinking to use authpf, but there is a
> problem: I need to install a ssh client in these tablets and smartphones ..
> If I could find any front-end to use with authpf, it will be the perfect
> solution.
>
> About coova-chilli: well, maybe it is the only solution if I can't use
> something similar to authpf. But it seems "too heavy" to maintain ...
>

>From GH:

https://github.com/search?q=openbsd+captive



Re: Recommended Industrial PCs?

2015-08-27 Thread David Coppa
On Wed, Aug 26, 2015 at 9:11 PM, Martin Haufschild
martin.haufsch...@uni-rostock.de wrote:
 Hello,

 can someone recommend me an Industrial PC (IPC) to use with OpenBSD? I would
 like to have a lot of hardware supported from this IPC by OpenBSD.

 Regards
 Martin


This[1] could be what you need...

[1] http://www.mini-box.com/VoomPC-Enclosure

CIAO!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Recommended Industrial PCs?

2015-08-27 Thread David Coppa
On Thu, Aug 27, 2015 at 11:38 AM, David Coppa dco...@gmail.com wrote:
 On Wed, Aug 26, 2015 at 9:11 PM, Martin Haufschild
 martin.haufsch...@uni-rostock.de wrote:
 Hello,

 can someone recommend me an Industrial PC (IPC) to use with OpenBSD? I would
 like to have a lot of hardware supported from this IPC by OpenBSD.

 Regards
 Martin


 This[1] could be what you need...

 [1] http://www.mini-box.com/VoomPC-Enclosure

 CIAO!
 David
 --
 If you try a few times and give up, you'll never get there. But if
 you keep at it... There's a lot of problems in the world which can
 really be solved by applying two or three times the persistence that
 other people will.
 -- Stewart Nelson

Portwell also has some interesting stuff.
Like this:

http://www.portwell.com/products/detail.php?CUSTCHAR1=WEBS-3560B



Re: no more sudo on openbsd 5.8

2015-08-07 Thread David Coppa
On Fri, Aug 7, 2015 at 5:06 PM, John Naggets hostingnugg...@gmail.com wrote:
 Hello,

 I just installed OpenBSD snapshot (5.8) through an automated install
 and was surprise to login with my normal user and to find out that
 there is no sudo command available. Is this normal?

 I have setup the autoinstall for no root password and only one user
 account so I was wondering how do I run something as root now? Do I
 really need to setup a root account from autoinstall?

 Regards
 John


man doas

http://www.tedunangst.com/flak/post/doas


Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Sluggish/laggy browser behaviour

2015-07-29 Thread David Coppa
-- Messaggio inoltrato --
Da: David Coppa dco...@gmail.com
Data: 29/lug/2015 12:21
Oggetto: Re: Sluggish/laggy browser behaviour
A: Nathan Van Ymeren nat...@vany.ca
Cc:


Il 24/lug/2015 19:23, Nathan Van Ymeren nat...@vany.ca ha scritto:

 Hi,

 I'm running the 19 July snapshot and am experiencing laggy tab
 behaviour in both Chromium and Firefox.  Specifically, when opening and
 closing tabs I regularly experience noticeable and irritating pauses.

 The system is a thinkpad X220T with an i7 and 8 GB of memory, and under
 different operating systems tabbing performance is acceptable.

 Has anyone experienced similar?

 dmesg follows:

 OpenBSD 5.8-beta (GENERIC.MP) #1171: Sun Jul 19 19:03:27 MDT 2015

...

 cpu0: Enhanced SpeedStep 2691 MHz: speeds: 2701, 2700, 2400, 2200,
 2000, 1800, 1600, 1400, 1200, 1000, 800 MHz 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 3000 rev 0x09
 intagp at vga1 not configured

This is suspicious. Isn't it?

 inteldrm0 at vga1
 drm0 at inteldrm0
 inteldrm0: 1366x768
 wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
 wsdisplay0: screen 1-5 added (std, vt100 emulation)
 Intel 6 Series MEI rev 0x04 at pci0 dev 22 function 0 not configured
 puc0 at pci0 dev 22 function 3 Intel 6 Series KT rev 0x04: ports

Cheers!
David



Re: Sluggish/laggy browser behaviour

2015-07-28 Thread David Coppa
Il 28/lug/2015 19:06, Stefan Sperling s...@stsp.name ha scritto:

 On Tue, Jul 28, 2015 at 04:17:16PM +0200, Benjamin Baier wrote:
  I might have gotten luky but this Thinkpad X220 plays 720p Youtube HTML5
  video in Chromium without glitches, even on fullscreen.
  As long as there is no other system load.

 I've only tried firefox.

 AFAIK chromium makes some use of OpenGL.
 Perhaps that's why it works for you.

something is fscked up wrt gstreamer playback (Firefox uses gstreamer) .
Chromium and Iridium work fine for me on a T420.

Cheers,
David



Re: gr-osmosdr

2015-07-03 Thread David Coppa
On Fri, Jul 3, 2015 at 2:42 AM, Aaron Bieber aa...@bolddaemon.com wrote:
 EdaSky writes:

 Greetings

 I would like to expand my Hamshack on SDR receiver via GQRX
 I would also like to analyze signals over gnuradio and build
 port of gqrx and required dependency progs.

 I bought

 http://dxpatrol.pt/
 ugen1 at uhub0 port 5 Realtek RTL2838UHIDIR rev 2.00 / 1.00 addr 2

 With ./comms/rtl-sdr works great on the FM Radio

 I built gnuradio from VIP Ports (thank you)
 Using RTL in gnuradio and buid Gqrx requires gnuradio-osmosdr

 It is possible to build gr-osmosdr?

 build prints lot of errors on


 I believe I had it working at one point.. For sure I got SDR# going.

 I will try and revive my stuff.. probably post it to wip if I get
 anything going.

The error reported by the OP is fixed now...

http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/devel/cmake/patches/patch-Modules_FindBoost_cmake

Cheers!
David



Re: gr-osmosdr

2015-06-29 Thread David Coppa
On Sun, Jun 28, 2015 at 10:16 PM, EdaSky eda...@muj-disk.cz wrote:
 Greetings

 I would like to expand my Hamshack on SDR receiver via GQRX
 I would also like to analyze signals over gnuradio and build port of gqrx
 and required dependency progs.
 I bought

 http://dxpatrol.pt/
 ugen1 at uhub0 port 5 Realtek RTL2838UHIDIR rev 2.00 / 1.00 addr 2

 With ./comms/rtl-sdr works great on the FM Radio

 I built gnuradio from VIP Ports (thank you)
 Using RTL in gnuradio and buid Gqrx requires gnuradio-osmosdr

 It is possible to build gr-osmosdr?

 build prints lot of errors on

 OpenBSD 5.8-beta (GENERIC.MP) # 983: Fri Jun 26 10:19:43 MDT 2015
dera...@i386.openbsd.org: /usr/src/sys/arch/i386/compile/GENERIC.MP


 git clone git://git.osmocom.org/gr-osmosdr
 cd gr-osmosdr/
 git checkout gr3.6
 mkdir build
 cd build/
 cmake ../
 make

Try with:

cmake -DCMAKE_CXX_FLAGS=-pthread ../
make

Ciao,
David



Question for KDE4 users...

2015-05-31 Thread David Coppa
What's the configuration directory for KDE4 under OpenBSD?

~/.kde4 or ~/.kde ?

TIA,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: seamonkey error

2015-05-22 Thread David Coppa
On Fri, May 22, 2015 at 3:28 PM, Eivind Eide xeno...@gmail.com wrote:
 From: L.R. D.S. arrowscript at mail.com
 Subject: Re: seamonkey error
 Date: 2015-04-17 22:21:28 GMT

 Solved on lastest snapshot.


 For me this has not changed. I still can't start seamonkey.
 I have uninstalled and reinstalled. Removed files in $HOME.
 I still get the same error:

 $ seamonkey
 XPCOMGlueLoad error for file
 /usr/local/lib/seamonkey-2.33.1/../../ldap/sdks/c-sdk/ldap/libraries/libldap/libldap60.so.41.0:
 File not found
 Couldn't load XPCOM.

Could you please try:

# pkg_add openldap-client

I suspect there's a missing runtime dependency on openldap.

Ciao!
David



Re: seamonkey error

2015-05-22 Thread David Coppa
On Fri, May 22, 2015 at 4:20 PM, Eivind Eide xeno...@gmail.com wrote:
 No, sorry. I had openldap-client installed already, dependency of libreoffice.
 But it doesn't change anything, the error remains the same...

What about the workaround below?

# ln -s /usr/local/lib/libldap-2.4.so.13.0 /usr/local/lib/libldap60.so.41.0


-David



Re: what to do with a uefi hp pavillion 10-f014au?

2015-05-20 Thread David Coppa
On Wed, May 20, 2015 at 9:00 AM, Joel Rees joel.r...@gmail.com wrote:
 besides take it back to the store, I mean.

 I have it booted on a USB stick. The internal drive appears to be
 unpartitioned when I do a disklabel -- only c partition reported. fdisk
 does report it as EFI GPT.

 I read something about support in the kernel. Is there any hope of say,
 constructing a disklabel by hand and copying the file system over by hand?
 (I have opened up an empty simple partition on the disk already.)

You could try with a custom kernel compiled with the GPT option turned on.
GPT support is currently commented out (see
src/sys/arch/amd64/conf/GENERIC), but it may work...

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: usbdevs umsm.c kernel modifications

2015-05-05 Thread David Coppa
On Tue, May 5, 2015 at 11:27 AM, Martin Pieuchot m...@openbsd.org wrote:
 On 02/05/15(Sat) 12:23, Cristián Edwards wrote:
 Hello,

 In order for OpenBSD 5.7 to recognize a Huawei 609 mini PCIe Modem , I did
 these kernel modifications:

 Added to usbdevs this line:

 product HUAWEI MU6090x1573  HUAWEI MU 609

 # make usbdevs.h
 Then added to umsm.c this line:

 {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_MU609 }, DEV_TRUINSTALL},

 I can connect to the modem now:
 # cu /dev/cuaU0
 Connected to /dev/cuaU0 (speed 9600)
 AT
 OK

 I wish that cdce driver would work as well, but it didn't with these
 modifications.

 Perhaps kernel developers could add a change like this to the kernel.

 Something like that?

Looks good to me.

ciao,
David



Re: How to launch Pulseaudio?

2015-04-01 Thread David Coppa
On Wed, Apr 1, 2015 at 6:37 AM, Dmitry Orlov dmitry.sen...@gmail.com wrote:
 Hi
 Point me please how to launch Pulseaudio. In /etc/rc.d I don't see script to
 run pulseaudio :)

With an XDG compliant DE/WM, it should start automatically.

Otherwise, put a:

/usr/local/bin/start-pulseaudio-x11

into your $HOME/.xinitrc

 Dmitry Orlov

Ciao!
David



Re: Permanent network configuration leads to panic

2015-03-12 Thread David Coppa
On Thu, Mar 12, 2015 at 12:41 PM, Romain FABBRI rfab...@foliateam.com wrote:
 I can't find the related entry on bugs@ and the post your refer to isn't 
 published or accessible.
 But thanks a lot for your answer and I'm glad if it's really a knowed/patched 
 issue.

 If you you could provide me the patch or tell me how to get it, it would be 
 very kind
 Or maybe I just have to wait for your link to be published...

http://marc.info/?l=openbsd-bugsm=142615317410286

Ciao,
David



Re: Home server rack recommendations?

2015-03-11 Thread David Coppa
On Wed, Mar 11, 2015 at 4:37 PM, Mike. the.li...@mgm51.com wrote:
 On 3/10/2015 at 5:46 PM Nick Holland wrote:

 |On 03/10/15 09:27, Kent R. Spillner wrote:
 | Can anyone recommend a good server rack for home?  Ideally
 something
 | with casters so I can move it around, preferably 12-16U.  I found
 | several via Google but my primary concern is the quality 
 durability
 | of the casters.  Not that I plan on wheeling this old gear around
 a
 | lot, I just want the piece of mind that a caster won't snap off
 when
 | I do.  :)
 |
 |Bang for the buck, hard to beat a Lack Rack (google for it.  And
 |laugh.  But ... it works!).  You'd have to put your own wheels on
 it,
 |and for 12-16U, probably need to stack two of them, but should be
 doable.
  =


 So long as we're assembling Ikea ...

 Take one of these:
 http://www.ikea.com/us/en/catalog/products/44361109/

 And install rack rails:
 http://www.amazon.com/Raxxess-Rack-Rails-Black-Space/dp/B000K6B38C



 From the QA section of the rack rails page:

 does it fit the ikea rast

 A:
 Yup, I bought two sets and slapped them both in a rast bedside no
 problem. Just needed a few additional screw to attach them to the
 inside of the wood, but the fit is perfect with no modifications.


https://web.archive.org/web/20140615053100/http://www.ikeahackers.net/2012/05/rast-transformed-in-a-19-inch-rack-mount.html

cheers!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: HP Deskjet F4280 scanner not working in -current

2015-03-11 Thread David Coppa
On Wed, Mar 11, 2015 at 10:11 AM, Alessandro DE LAURENZIS
just22@gmail.com wrote:
 Dear misc@ readers,

...

 But when I try to scan (or also just launch xsane):

 just22@poseidon:[~] scanimage --format=tiff  ./scanner_test.tiff
 Abort trap


 This is what is reported in /var/log/messages:

 just22@poseidon:[~] tail /var/log/messages
 Mar 11 10:05:59 poseidon scanimage: io/hpmud/musb.c 527: invalid 
 set_altinterface 7/1/2 altset=0: Invalid argument
 Mar 11 10:05:59 poseidon scanimage: backwards memcpy

This is the culprit.
graphics/sane-backends needs to be patched: probably a memcpy-memmove.

Ciao!
David



Re: bypass xlock/slock

2015-03-09 Thread David Coppa
On Mon, Mar 9, 2015 at 10:30 AM, Abel Abraham Camarillo Ojeda
acam...@verlet.org wrote:
 On Mon, Mar 9, 2015 at 3:25 AM, Alex Greif a...@greifdesign.net wrote:
 Hi,

 I am currently trying to find a solution to lock my desktop system (openbsd
 5.6, amd64), but with the following steps I can always bypass xlock or
 slock:

 - run X session with startx
 - lock it with xlock or slock
 - switch to text console 2 (with [CTRL]+[ALT]+[F2])
 - switch to text console 1, where X server seems to run in foreground. The
 last message is (II) AIGLX: Suspending AIGLX clients fro VT switch
 ... now the problem begins...
 - CTRL-C a few times
 - xinit is killed
 - you are in the login shell of the user who locked the screen ... arrgh

 Is there a security advice how to prevent killing the X session by switching
 the text console and killing xinit?

 thanks,
 Alex


 you could run xdm(1)...


alias startx='exec /usr/X11R6/bin/startx'



Re: mbsync crashes with segfault on 5.7-current

2015-02-27 Thread David Coppa
On Fri, Feb 27, 2015 at 3:09 PM, Jan Vlach ja...@volny.cz wrote:

 This GDB was configured as i386-unknown-openbsd5.7...(no debugging symbols 
 found)

 Core was generated by `mbsync'.
 Program terminated with signal 11, Segmentation fault.
 (no debugging symbols found)

Please rebuild mbsync with:

$ cd ports/mail/isync ; DEBUG=-ggdb -O0 INSTALL_STRIP= make clean
repackage reinstall

And post a better backtrace.

Ciao!
David



Re: ppp not found

2015-02-25 Thread David Coppa
On Wed, Feb 25, 2015 at 12:35 PM, A Y afyous...@hotmail.com wrote:
 I did exactly as you asked, but everything is the same.
 Is it possible that the USB modem doesn't like the Lenovo USB port?
 If you don't have any further suggestions, I would like to install OpenBSD on
 my PC and try the connection.
 I don't like to do that because this means that I have to remove Windows,
 install/try OpenBSD and then re-install Windows. But I have to I guess.


What are the logs from pppd now?

# grep ppp /var/log/*

ciao,
David



Re: ppp not found

2015-02-25 Thread David Coppa
On Wed, Feb 25, 2015 at 9:18 AM, A Y afyous...@hotmail.com wrote:
 #dmesg | grep -B 1 ucom
 same as your example but different port and different addr.
 #ls -l /dev/cuaU*crw-rw 1 uucp dialer 66, 128 Feb 24 9:46
 /dev/cuaU0crw-rw 1 uucp dialer 66, 129 Feb 24 9:46 /dev/cuaU1crw-rw 1
 uucp dialer 66, 130 Feb 24 9:46 /dev/cuaU2crw-rw 1 uucp dialer 66, 131 Feb
 24 9:46 /dev/cuaU3
 #grep com /var/log/messagesSorry, I couldn't post all the output but I noticed
 the following:com0 at isa0 portucom0 at umsm0ucom1 at umsm1ucom2 at umsm2
 #ifconfig ppp0 ...umsm0: this device is not using CDC notify message in intr
 pipe.Please send your dmesg to b...@openbsd.org, thanks

Replace /dev/cuaU0 with /dev/cuaU2 into the
/etc/ppp/peers/mobinil file and it should work.



Re: ppp not found

2015-02-24 Thread David Coppa
On Tue, Feb 24, 2015 at 12:21 PM, A Y afyous...@hotmail.com wrote:

 umsm0: this device is not using CDC notify message in intr pipe

By experience, you can usually ignore this warning.

Be sure that your /etc/resolv.conf contains a valid nameserver line.
Try to ping, e.g., www.google.com

Ciao
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: ppp not found

2015-02-23 Thread David Coppa
On Mon, Feb 23, 2015 at 6:17 PM, A Y afyous...@hotmail.com wrote:
 /etc/ppp/peers/vodafone.chat provides details for a specific ISP. How do I
 know what to write for my ISP? I read about the chat script but it doesn't
 tell me any specifics that is related to my ISP. Or, maybe this is not related
 to the ISP.

A working trick is recording the commands from a successful connection
to your ISP under Windows:

https://technet.microsoft.com/en-us/library/cc771018%28v=ws.10%29.aspx


 From: dco...@gmail.com
 Date: Mon, 23 Feb 2015 10:40:36 +0100
 Subject: Re: ppp not found
 To: afyous...@hotmail.com
 CC: misc@openbsd.org

 On Mon, Feb 23, 2015 at 9:56 AM, A Y afyous...@hotmail.com wrote:
  Hi all,
  I installed OpenBSD -current and tried to run ppp command, but I got
 this
  error:
  ksh: ppp: not found
  I also didn't find /etc/ppp/ppp.conf.sample
  Was there something, in the installation, that I should have done?
 
  I am trying to connect to the internet using a USB modem.

 Userland ppp has been removed, because it was buggy and unmaintained.

 You should use /usr/sbin/pppd.

 For pointers, have a look at, e.g.:

 http://marc.info/?l=openbsd-miscm=128816834527997

 Ciao!
 David
 --
 If you try a few times and give up, you'll never get there. But if
 you keep at it... There's a lot of problems in the world which can
 really be solved by applying two or three times the persistence that
 other people will.
 -- Stewart Nelson




-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: ppp not found

2015-02-23 Thread David Coppa
On Mon, Feb 23, 2015 at 9:56 AM, A Y afyous...@hotmail.com wrote:
 Hi all,
 I installed OpenBSD -current and tried to run ppp command, but I got this
 error:
 ksh: ppp: not found
 I also didn't find /etc/ppp/ppp.conf.sample
 Was there something, in the installation, that I should have done?

 I am trying to connect to the internet using a USB modem.

Userland ppp has been removed, because it was buggy and unmaintained.

You should use /usr/sbin/pppd.

For pointers, have a look at, e.g.:

http://marc.info/?l=openbsd-miscm=128816834527997

Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: a thankyou to OpenBSD

2015-02-11 Thread David Coppa
On Wed, Feb 11, 2015 at 1:40 PM, Giancarlo Razzolini
grazzol...@gmail.com wrote:

 I don't know if you know this, but just put net.ifnames=0 in your
 kernel's parameters and it will revert to the old way.

As usual with linux, every new enhancement or modification is always
accompanied by a knob to fully annihilate such new feature:

http://marc.info/?l=linux-crypto-vgerm=140631309022050w=2

Ciao ;)
David



Re: anoncvsserver.openbsd.org

2015-01-21 Thread David Coppa
On Wed, Jan 21, 2015 at 4:31 PM, Zuleyha Torku zuleyhato...@gmail.com wrote:
 Hi

 I just realize that the anoncvsserver.openbsd.org is not available right
 now or did I miss something ?

Maybe because the right address is anoncvs.openbsd.org? ;)



Re: OpenBSD projects

2014-12-26 Thread David Coppa
On Fri, Dec 26, 2014 at 9:36 PM, jungle Boogie jungleboog...@gmail.com wrote:
 Hi Raf,
 On 26 December 2014 at 12:13, Raf r...@devio.us wrote:
 On Fri, Dec 26, 2014 at 02:11:04PM EST, Carsten Kunze wrote:
 jungle Boogie jungleboog...@gmail.com wrote:

  Here's a list of projects that I'm aware of that openBSD created. Is
  that correct? (p) is for portable. What else am I missing?

 How about tmux (p)?

 Nope - tmux(1), similarly to mandoc(1), has been started outside of
 OpenBSD (in 2007) and hadn't made its way to the project's CVS tree
 until 2009.

 BTW, some think that sudo(8) is an OpenBSD creation - that's not the
 case either.

 Was Tim Miller (guy that created sudo, right?) an openbsd developer
 before/during/after/never when sudo was put in base in 2009?

http://en.wikipedia.org/wiki/Sudo



[OT(?)] Offset2lib: bypassing full ASLR on 64bit Linux

2014-12-05 Thread David Coppa
Nice end-of-the-week read:

http://cybersecurity.upv.es/attacks/offset2lib/offset2lib.html

Luckily I use OpenBSD ;)

CIAO,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: display power consumption [Was: Re: X11 screen blanking issue]

2014-11-29 Thread David Coppa
On Sat, Nov 29, 2014 at 5:07 PM, Marcus MERIGHI mcmer-open...@tor.at wrote:
 n...@holland-consulting.net (Nick Holland), 2014.10.25 (Sat) 06:08 (CEST):

 [big snip of the original discussion on screen blanking and it's
 handling by mplayer]

 Personally, I'm slowly losing interest in screen blanking.  LCD screens
 draw little power when on, [...]

 [snipping again]

 A laptop plugged into the wall...why power down the screen at all?  A
 laptop running on batteries...if you aren't going to use it, why not
 just suspend it?

 When I read this I thought that there was some room between not using
 and justifies suspend. (It only took two months until I got going...)

 For quick power saving, stand-by would do. It takes 2 seconds to go to
 stand-by, 7 seconds to resume (dmesg below).

 This is fast enough for intentional breaks, I think.

 But with me sitting in front of the machine, what happens by far more
 often are unintentional breaks, i.e. me staring and thinking (or not),
 or me trying to get work done but being interrupted, leaving the machine
 in a hurry.

 Time driven automagic (xidle(1)) stand-by would be too much for these
 cases, there may be tasks running that I want to continue.

 But screen blanking/unpowering? This cannot hurt, but does it help
 to save power? (Not only for working longer but also for the
 environment...)

 All numbers taken on a lenovo X200s (dmesg follows) with batteries
 removed, a cheapish power meter and only default deamons running (and
 doing nothing). What might matter and isn't easy to see/not visible in
 the dmesg, my sd0 (MKNSSDCR120GB) is an SSD with atactl(8) smartenable,
 writecacheenable, acousticset 126, apmset 126.

 1.1 W  stand-by - apm -S
 12.5 W display off  - xrandr --output LVDS1 --off
 15 W   display 10%  - xbacklight -set 10
 20 W   display 100% - xbacklight -set 100

 So in the range between 1.1 W (minimum idle power consumption) and 20 W
 (maximum idle power consumption), turning the screen off automagically
 saves me eight Watts out of 19 that could be saved (if I had left
 intentionally and used stand-by). Almost half of the maximum power
 saving achieved by unpowering the screen if leaving in a hurry is good
 enough for me.

When on battery, I set brightness to 40% using wsconsctl
display.brightness=40 and lock the screen using xlock -dpmsoff 1
when I'm afk...

 Bye, Marcus

Ciao!
David



Re: hplip cups

2014-11-12 Thread David Coppa
On Wed, Nov 12, 2014 at 12:05 AM, Edgar Pettijohn III
ed...@pettijohn.no-ip.biz wrote:
 I'm trying to set up a print server using Openbsd 5.6 and hplip-cups.  This 
 is what the logs are showing me:

 D [11/Nov/2014:16:32:53 -0600] [Job 13] HP_Photosmart_C4200_series: can't 
 load library 'libfontconfig.so.9.1'
 D [11/Nov/2014:16:32:53 -0600] [Job 13] 
 HP_Photosmart_C4200_series:/usr/lib/libstdc++.so.57.0: 
 /usr/local/lib/libestdc++
 .so.16.0 : WARNING: symbol(_ZN11__gnu_debug17_S_debug_messagesE) size 
 mismatch, relink your program
 D [11/Nov/2014:16:32:53 -0600] [Job 13] PID 17335 
 (/usr/local/libexec/cups/filter/pdftopdf) stopped with status 1.
 D [11/Nov/2014:16:32:53 -0600] [Job 13] Hint: Try setting the LogLevel to 
 debug to find out more.
 D [11/Nov/2014:16:32:53 -0600] [Job 13] prnt/hpcups/HPCupsFilter.cpp 530: 
 cupsRasterOpen failed, fd = 0
 D [11/Nov/2014:16:32:53 -0600] [Job 13] PID 26937 
 (/usr/local/libexec/cups/filter/gstoraster) stopped with status 1.
 D [11/Nov/2014:16:32:53 -0600] [Job 13] Hint: Try setting the LogLevel to 
 debug to find out more.
 D [11/Nov/2014:16:32:53 -0600] [Job 13] prnt/backend/hp.c 902: ERROR: null 
 print job total=0
 D [11/Nov/2014:16:32:53 -0600] [Job 13] PID 341 
 (/usr/local/libexec/cups/filter/hpcups) stopped with status 1.

 libfontconfig.so.9.1 exists at /usr/X11R6/lib/libfontconfig.so.9.1
 I'm not sure what to think about the size mismatch error, and setting 
 LogLevel to debug is an insane amount of logging that didn't show anything 
 else useful to me.  If it will help someone else to diagnose the issue I'll 
 gladly post it.

Try running it with env LD_DEBUG=1

 Thanks in advance,

 Edgar


Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: kernel panic athn0

2014-11-11 Thread David Coppa
On Tue, Nov 11, 2014 at 1:04 PM, Stefan Sperling s...@stsp.name wrote:
 On Tue, Nov 11, 2014 at 01:44:57PM +0200, Alexey Kurinnij wrote:
 Sorry, in first message ddb only for one processor. This is fresh for both:

 athn0 at pci3 dev 0 function 0 Atheros AR9300 rev 0x01: apic 0 int 16

 Sorry, this chip isn't supported. See the man page -- it's not listed.

 Damien committed untested code for this chip years ago and made the
 driver use that code (see r1.1 in CVS log for dev/ic/ar9003.c).
 There have been various crashes as a result, some already fixed,
 some not fixed.

 Since this problem keeps coming up, and ar9003 cards are known to be
 broken, and nobody is working on fixing them I believe we should
 simply stop the kernel from attaching them for now.

Indeed.
ok with me.

Ciao,
David

 Index: if_athn_pci.c
 ===
 RCS file: /cvs/src/sys/dev/pci/if_athn_pci.c,v
 retrieving revision 1.16
 diff -u -p -r1.16 if_athn_pci.c
 --- if_athn_pci.c   8 Jul 2014 08:55:33 -   1.16
 +++ if_athn_pci.c   11 Nov 2014 11:58:33 -
 @@ -97,8 +97,7 @@ static const struct pci_matchid athn_pci
 { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR9285 },
 { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR2427 },
 { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR9227 },
 -   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR9287 },
 -   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR9300 }
 +   { PCI_VENDOR_ATHEROS, PCI_PRODUCT_ATHEROS_AR9287 }
  };

  int

 # ifconfig athn0 up
 panic: kernel diagnostic assertion pin  sc-ngpiopins failed: file
 ../../../../dev/ic/ar9003.c, line 512
 Stopped at  Debugger+0x9:   leave
 RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
 IF RUNNING SMP, USE 'mach ddbcpu #' AND 'trace' ON OTHER PROCESSORS, TOO.
 DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
 ddb{1} trace
 Debugger() at Debugger+0x9
 panic() at panic+0xfe
 __assert() at __assert+0x25
 ar9003_gpio_write() at ar9003_gpio_write+0x9d
 athn_init() at athn_init+0xfb
 athn_ioctl() at athn_ioctl+0x1e6
 ifioctl() at ifioctl+0xb18
 sys_ioctl() at sys_ioctl+0x169
 syscall() at syscall+0x297
 --- syscall (number 54) ---
 end of kernel
 end trace frame: 0x7f7bcca0, count: -9
 acpi_pdirpa+0x3fc50a:
 ddb{1} mach ddbcpu 0
 Stopped at  Debugger+0x9:   leave
 RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
 IF RUNNING SMP, USE 'mach ddbcpu #' AND 'trace' ON OTHER PROCESSORS, TOO.
 DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
 ddb{0} trace
 Debugger() at Debugger+0x9
 x86_ipi_handler() at x86_ipi_handler+0x64
 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x1b
 --- interrupt ---
 Bad frame pointer: 0x80001ce45c08
 end trace frame: 0x80001ce45c08, count: -3
 __mp_lock+0x42:
 ddb{0} ps
PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
  19450  13014  19450  0  7 0x3ifconfig
  13014  1  13014  0  30x8b  pause ksh
  25598  1  25598  0  30x83  ttyin getty
  18456  1  18456  0  30x83  ttyin getty
  11661  1  11661  0  30x83  ttyin getty
916  1916  0  30x83  ttyin getty
   6800  1   6800  0  30x83  ttyin getty
  26728  1  26728  0  30x80  selectcron
   3038  1   3038  0  30x80  nanosleep sensorsd
  19379  1  19379  0  30x80  kqreadapmd
  12318  1  12318 99  30x90  poll  sndiod
  10631  30214  30214 95  30x90  kqreadsmtpd
   9723  30214  30214 95  30x90  kqreadsmtpd
  20447  30214  30214 95  30x90  kqreadsmtpd
  32443  30214  30214 95  30x90  kqreadsmtpd
  10158  30214  30214 95  30x90  kqreadsmtpd
  26620  30214  30214103  30x90  kqreadsmtpd
  30214  1  30214  0  30x80  kqreadsmtpd
  25074  1  25074 77  30x90  poll  dhcpd
   5058  1   5058  0  30x80  selectsshd
  13567  28172 22 83  30x90  poll  ntpd
  28172 22 22 83  30x90  poll  ntpd
 22  1 22  0  30x80  poll  ntpd
  12313  17356  17356 70  30x90  selectnamed
  17356  1  17356  0  30x90  netio named
  13591  11643  11643 74  30x90  bpf   pflogd
  11643  1  11643  0  30x80  netio pflogd
  22160  30463  30463 73  30x90  poll  syslogd
  30463  1  30463  0  30x80  netio syslogd
 *16977  1  16977 77  70x90dhclient
  26597  1  26597  0  30x80  poll  dhclient
  

Re: Local changes to /etc/services?

2014-11-07 Thread David Coppa
On Fri, Nov 7, 2014 at 9:46 AM, Stuart Henderson s...@spacehopper.org wrote:
 On 2014-11-07, David Higgs hig...@gmail.com wrote:
 I defined the 'svn' port in /etc/services but as of 5.6 this file now
 appears to be unconditionally overwritten during upgrades (previously
 it was handled via sysmerge).

 Is there a better mechanism to keep these, or should I just update
 pf.conf to use the numeric port number?  The services(5) man page
 doesn't provide any hints.

 There's no mechanism to keep these, I tend to use macros in pf.conf for
 ports that aren't in /etc/services. Though in the case of svn I think it
 would be reasonable to add it in the file..

 Any OKs? (with a bonus sort-order fix).

You have mine.


 Index: services
 ===
 RCS file: /cvs/src/etc/services,v
 retrieving revision 1.89
 diff -u -p -r1.89 services
 --- services15 Jul 2014 15:58:39 -  1.89
 +++ services7 Nov 2014 08:45:48 -
 @@ -226,12 +226,13 @@ isisd 2608/tcp# 
 Quagga/Zebra
  netplan2983/tcp# netplan daemon
  eppc   3031/tcp# Remote AppleEvents/PPC 
 Toolbox
  eppc   3031/udp# Remote AppleEvents/PPC 
 Toolbox
 +iscsi  3260/tcp# ISCSI
  mysql  3306/tcp# MySQL
  iapp   3517/tcp802-11-iapp # IEEE 802.11f IAPP
 -iscsi  3260/tcp# ISCSI
  iapp   3517/udp802-11-iapp # IEEE 802.11f IAPP
  daap   3689/tcp# Digital Audio Access 
 Protocol
  daap   3689/udp# Digital Audio Access 
 Protocol
 +svn3690/tcp# Subversion
  sieve  4190/tcp# ManageSieve Protocol
  sieve  4190/udp# ManageSieve Protocol
  krb524 /tcp# Kerberos 5-4


Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Suspending USB devices from userland

2014-11-06 Thread David Coppa
On Thu, Nov 6, 2014 at 2:38 PM, lm l...@redabierta.es wrote:
 Hello there,

 I'm trying to reduce power consumption on my OpenBSD laptop,
 and I can't find the way to suspend some USB devices I never
 use (like the webcam and the DVD drive).

 Does anybody know a way to do this from userland? If not,
 is it possible to do it with some coding?

I don't know.

But I go into the bios:

Security - I/O Port Access

And disable the unwanted stuff there.

Ciao,
David



Re: Panic on intensive browsing of WWW.

2014-11-06 Thread David Coppa
On Thu, Nov 6, 2014 at 5:12 PM, Peter J. Philipp p...@centroid.eu wrote:
 On 11/06/14 16:48, Otto Moerbeek wrote:

 If userland activity causes kernel panics there's more trouble than
 just userland ocnfiguration issues.

   -Otto


 I had a panic the other day with a 5.6-stable box, unfortunately my
 computer didn't save the panic, trace and ps in its dmesg buffer or I
 would have been giving a good description of it.  Next time it happens
 to me I have the camera ready by the monitor.

 The gyst of the panic was what I can remember a tmpfs operation
 something about a tailq.  And here is how I think I did it, however I
 couldn't reproduce it.  1) moved a directory with files to /tmp. from a
 softraid crypto filesystem 2) cd'ed into that direcotry and ran tmux.
 3) moved that directory to another filesystem (ffs) while in tmux I
 noticed it complaining about not having a directory, kept on using that
 until I quit tmux and tried to cd into my $HOME and then was kicked
 into the panic ddb.

Sure, but don't abuse other people's threads please.

Ciao,
David



Re: Remove print/acroread

2014-10-31 Thread David Coppa
On Fri, Oct 31, 2014 at 1:26 AM, Jason Adams adams...@gmail.com wrote:
 On 10/29/2014 11:22 AM, Артур Истомин wrote:
 On Wed, Oct 29, 2014 at 04:25:02PM +0100, Marc Espie wrote:
 On Wed, Oct 29, 2014 at 04:11:47PM +0100, Alexandre Ratchov wrote:
 On Wed, Oct 29, 2014 at 08:30:32AM -0600, David Coppa wrote:
 So here I am, asking on misc@...

 Do people using acroread-7.0.9 on i386 (compat_linux) still exist
 these days?

 I'd like to rm print/acroread from cvs.

 I don't see the point of keeping it, while we have other working
 pdf readers. I don't even understand why we have it at all. OK to
 remove it.
 You don't use pdf form filling. Over the last few years, I've seen
 people want to do strange things with pdf.  Most things related
 to display work with default tools. afaik, password did not work
 with anything BUT acrobat reader AND now mutools.

 Form filling, in some cases (german taxes, iirr) does NOT work with
 other tools...
 Many consulates/embassy send pdf files with forms for information on
 visas acquisition. When I last time filled it, no one open source pdf
 reader can fill such forms.


 More than one Opensource PDF reader allows you to fill out the forms.  
 (evince for example)

Yes. Poppler has some, not so advanced, support for form filling.

 The problem is you can't save the forms and retain filled in data.
 However it is a simple matter to print them to a pdf file (pdf-writer).

Nice trick!

 Some forms have elaborate computation built in via scripts, and those won't 
 work
 but the simple forms will.

Indeed.

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Logging Password change attempts

2014-10-31 Thread David Coppa
On Thu, Oct 30, 2014 at 3:07 PM, Vijay Sankar vsan...@foretell.ca wrote:
 Quoting trondd tro...@gmail.com:

 The second problem I have is that when I change password, out of habit, I
 do a passwd instead of mypasswd.



 Why not call the script passwd and put it in the path ahead of the real
 one?

 What is the goal?  Are there users on the system trying to brute force
 change a password?  Or are you just tracking how often you change your own
 to comply with some policy?

 Tim.



 Ahh, did not think of renaming passwd and putting it in the path ahead of
 the real one! Thanks very much for that idea -- will try that as it will
 solve at least one thing.

 Vijay

 The goal is mainly to prevent Windows admins from saying that we cannot log
 and audit password change events on OpenBSD. I am very frustrated when I see
 it being used as an argument for not considering OpenBSD.

Or you can log every command issued on the system...
Your management would be very happy! ;) ;)

http://pastebin.com/FZw4rT3T

Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Logging Password change attempts

2014-10-31 Thread David Coppa
On Fri, Oct 31, 2014 at 12:05 PM, Vijay Sankar vsan...@foretell.ca wrote:

 Hi David,

 Thank you very much!! I am going to try the passwordcheck idea suggested by
 Stuart since that allows me to keep using -stable. But will definitely try
 your very interesting diff for sure.

Not mine at all. It's just a link I have lying around my home directory.



Re: enumerate sndio devices

2014-10-30 Thread David Coppa
On Thu, Oct 30, 2014 at 1:23 PM, Alexandre Ratchov a...@caoua.org wrote:
 On Thu, Oct 30, 2014 at 10:22:29AM +0100, Jan Stary wrote:
 On Oct 29 20:40:30, rus...@outband.net wrote:
  I feel as if i am overlooking somthing obvious, but..
  Is there a way to list sndio endpoints?

 sndiod recognizes real HW devices (-f) and exposes subdevices (-s)
 for the applications to use. What's an endpoint?

  Specifically I was trying to attach a scope(probably one of the ffplay
  visualizations) to the main output.

 Whatever attach a scope means
 - what exactly did you do?


 AFAIU, it's about a program to visualize the wave form of what
 other programs play.


http://www.dim13.org/2013/06/Spectrogram

Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Remove print/acroread

2014-10-29 Thread David Coppa
So here I am, asking on misc@...

Do people using acroread-7.0.9 on i386 (compat_linux) still exist
these days?

I'd like to rm print/acroread from cvs.

Cheers!
David

 -- Forwarded message --
 From: frantisek holop min...@obiit.org
 Date: Mon, Oct 27, 2014 at 7:31 PM
 Subject: Re: remove print/acroread
 To: po...@openbsd.org
 
 
 David Coppa, 27 Oct 2014 17:08:
  Given this:
 
  http://blogs.adobe.com/adobereader/2012/06/one-year-from-now-adobe-reader-and-acrobat-9-eol.html
 
  Adobe has discontinued the support of Adobe Reader for Linux in June
  2013, and the fact that our port is even older (v7.x)...
 
  Can we finally put print/acroread to the Attic?
 
  There're a lot of valid alternatives nowadays!
 
 the devils advocate tonight:
 i think this should be asked on misc@ as well.
 i dont know how many of those alternatives
 can handle pdf forms correctly.  having said that
 i have no idea if the ports version does.
 for the record, i have never used this software :)
 but maybe some other people do...
 
 -f
 --
 questions, questions!  does it ever end?!



Re: Remove print/acroread

2014-10-29 Thread David Coppa
On Wed, Oct 29, 2014 at 6:11 PM, Alexandre Ratchov a...@caoua.org wrote:
 On Wed, Oct 29, 2014 at 12:25:10PM -0400, Jonathan Thornburg wrote:
 In message http://marc.info/?l=openbsd-miscm=141459553404542w=1
 Alexandre Ratchov wrote [[about acroread]]
  I don't see the point of keeping it, while we have other working
  pdf readers. I don't even understand why we have it at all. OK to
  remove it.

 In message http://marc.info/?l=openbsd-miscm=141459635204943w=1
 Marc Espie replied
  You don't use pdf form filling. Over the last few years, I've seen
  people want to do strange things with pdf.  Most things related
  to display work with default tools. afaik, password did not work
  with anything BUT acrobat reader AND now mutools.
 
  Form filling, in some cases (german taxes, iirr) does NOT work with
  other tools...

 +1 on Marc's point.  And US tax forms too.  (Canada doesn't yet force
 the use of fillable-pdf-forms, so I donno about those.)  Not to mention
 the new-member-application forms on a certain Credit Union I just
 joined

 There's still a place in the computing world for Windoze machines. :(

 not sure to understand; you mean that you're using the acroread
 port on openbsd?


Indeed.

I'm not questioning the usefulness of Adobe Acrobat Reader.

I'm questioning the value of Acrobat Reader *7.0* running via
compat_linux on OpenBSD/i386.

Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: RS/600 install

2014-10-28 Thread David Coppa
On Tue, Oct 28, 2014 at 3:36 PM, Leonardo Santagostini
lsantagost...@gmail.com wrote:
 Hello @misc, yesterday at work i've found an RS/6000 Model 140
 http://www-01.ibm.com/common/ssi/cgi-bin/ssialias?infotype=ddsubtype=smhtmlfid=897/ENUS7043-140
 so,
 i was wondering how about installing release 5.5 macppc on it.

 Just want to know if somebody try it and if you have some clue on
 installation/configuration.

Unsupported powerpc architecture.
It's not a macppc.

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: HEADS-UP: issues with chromium in -current

2014-10-23 Thread David Coppa
On Thu, Oct 23, 2014 at 12:58 PM, Stephane Tougard steph...@unices.org wrote:

 I'm using Slackware 14.1 with fvwm2 and Chromium, I see no issue at all.

fvwm2 with or without a compositor (like xcompmgr or compton)?

And what version of chromium?

Ciao
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: HEADS-UP: issues with chromium in -current

2014-10-23 Thread David Coppa
On Thu, Oct 23, 2014 at 3:06 PM, Stephane Tougard steph...@unices.org wrote:
 On Thu, Oct 23, 2014 at 01:04:04PM +0200, David Coppa wrote:
  I'm using Slackware 14.1 with fvwm2 and Chromium, I see no issue at all.
 fvwm2 with or without a compositor (like xcompmgr or compton)?

 Original version of the Slackware. xcompmgr is as well originally part
 of Slackware.


 And what version of chromium?

 33

This is an older (still gtk+2 based) version of chromium: it doesn't
have this bug.
The bug started manifesting itself, when they switched to the new
Aura toolkit (since version 37 iirc).

Ciao,
David



Re: Tor and Polipo

2014-10-22 Thread David Coppa
On Wed, Oct 22, 2014 at 5:12 PM,  openda...@hushmail.com wrote:
 Hi,

 Does anyone know what's wrong with my Tor + Polipo setup? So far I've done 
 `pkg_add tor  pkg_add polipo`, uncommented `socksParentProxy` and 
 `socksProxyType` in `/etc/polipo/config` and then `/etc/rc.d/tor start  
 /etc/rc.d/polipo start`. However I'm still getting connection refused for 
 10.0.0.5:9050 / 10.0.0.5:9150.

 Thanks!

 O.D.


What about proxyAddress and allowedClients ?

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Fix xfe (Was: sudo bad practice or inconsistency?)

2014-10-17 Thread David Coppa
 From: Thorsten Glaser t...@mirbsd.org
 Date: Fri, Oct 17, 2014 at 10:44 AM
 Subject: Re: sudo bad practice or inconsistency?
 To: misc@openbsd.org
 
 
 Alessandro DE LAURENZIS just22.adl at gmail.com writes:
 
 (line-wrapped because of GMane)
 
  #define SUDOCMD -fn 7x14 -geometry 60x4 -e sudo su -c 'nohup \
  xfe  /dev/null  sleep 1'
   ^^
 
 Note that this will not work on OpenBSD anyway; even mksh, which
 does implement this bashism, will not parse this as expected in
 POSIX mode.
 
 So, besides the changes the others already pointed out:
 
 #define SUDOCMD -fn 7x14 -geometry 60x4 -e sudo su root -c 'nohup \
 xfe /dev/null 21  sleep 1'


Brian et al., ok for the diff below?

Index: Makefile
===
RCS file: /cvs/ports/x11/xfe/Makefile,v
retrieving revision 1.33
diff -u -p -u -p -r1.33 Makefile
--- Makefile25 Nov 2013 18:39:02 -  1.33
+++ Makefile17 Oct 2014 11:45:34 -
@@ -3,7 +3,7 @@
 COMMENT=   MS-Explorer like file manager for X
 
 DISTNAME=  xfe-1.37
-REVISION=  0
+REVISION=  1
 CATEGORIES=x11
 
 HOMEPAGE=  http://roland65.free.fr/xfe/
Index: patches/patch-src_xfedefs_h
===
RCS file: patches/patch-src_xfedefs_h
diff -N patches/patch-src_xfedefs_h
--- /dev/null   1 Jan 1970 00:00:00 -
+++ patches/patch-src_xfedefs_h 17 Oct 2014 11:45:35 -
@@ -0,0 +1,20 @@
+$OpenBSD$
+
+Unbreak launching Xfe as root with sudo or su
+
+--- src/xfedefs.h.orig Fri Oct 17 13:41:26 2014
 src/xfedefs.h  Fri Oct 17 13:43:44 2014
+@@ -157,11 +157,11 @@
+ 
+ // Command to launch Xfe as root with sudo or su, using Xvt as a terminal
+ #ifndef SUDOCMD
+-#define SUDOCMD -fn 7x14 -geometry 60x4 -e sudo su -c 'nohup xfe  
/dev/null  sleep 1'
++#define SUDOCMD -fn 7x14 -geometry 60x4 -e sudo su root -c 'nohup xfe 
/dev/null 21  sleep 1'
+ #endif
+ 
+ #ifndef SUCMD
+-#define SUCMD -fn 7x14 -geometry 60x4 -e su -c 'nohup xfe  /dev/null  
sleep 1'
++#define SUCMD -fn 7x14 -geometry 60x4 -e su root -c 'nohup xfe /dev/null 
21  sleep 1'
+ #endif
+ 
+ // Tooltips setup time and duration



Re: Where is the 'tar' source code?

2014-10-10 Thread David Coppa
On Fri, Oct 10, 2014 at 2:29 PM, Alan McKay alan.mc...@gmail.com wrote:
 Hey folks,

 I'm experiencing some really bizarre behavior with tar when trying to
 pass it a list of files with the -I option, and I want to look at the
 source code but alas it is not in the tree that I can find.

 Yet the machine having the issue was built on this very same build machine.

 I'd expect it to be here :

 root@openbsd-build32
 /usr/src # which tar
 /bin/tar

 root@openbsd-build32
 /usr/src/bin # ls
 CVS   chio  date  echo  kill
 md5   pax   rmstty
 Makefile  chmod ddedksh
 mkdir psrmail sync
 Makefile.inc  cpdfexpr  ln
 mtpwd   rmdir systrace
 cat   csh   domainnamehostname  ls
 mvrcp   sleep test

 root@openbsd-build32
 /usr/src # find . -name tar

 thanks,
 -Alan

It's src/bin/pax

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Gathering useful information before replacing a Debian box with OpenBSD

2014-10-10 Thread David Coppa
On Fri, Oct 10, 2014 at 4:17 PM, Adam Wolk adam.w...@koparo.com wrote:
 Hi,

 I have an old MSI Wind U100 netbook that currently runs Debian and I
 want to replace it with an OpenBSD installation.

This is one of the best supported machines I own.
Seriously.

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: ksh, csh same vulnerability as bash

2014-10-08 Thread David Coppa
On Wed, Oct 8, 2014 at 9:47 PM, Giancarlo Razzolini
grazzol...@gmail.com wrote:
 On 08-10-2014 15:03, Артур Истомин wrote:
 How affiliate mtier with OpenBSD? Is it safe method/source for update?
 Who they are?
 It has been pointed to me that one of the ports maintainer/developer, is
 associated with them.

not only one, there're several...

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: move to git?

2014-09-24 Thread David Coppa
On Wed, Sep 24, 2014 at 3:14 PM, Harald Dunkel ha...@afaics.de wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 On 09/24/14 14:51, Theo de Raadt wrote:
 Hi folks,

 Google didn't tell if this has been discussed before, so I wonder if you 
 have considered moving from CVS to git?

 Don't often see a troll opening with such a big lie.


 My recommendation to you: You should be more careful with
 your replies.

You made my day ;)

Thanks,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: openBSD 5.6 (current) on Shuttle DS437

2014-09-22 Thread David Coppa
On Mon, Sep 22, 2014 at 11:42 AM, Harald Dunkel ha...@afaics.de wrote:
 Hi folks,

 I'm running openBSD (the current version of 2 days ago) on a
 Shuttle DS437. No XWindow support. Problem: If I boot it without
 a monitor connected, then there is no screen output later.

 How can I avoid the reboot to make the screen working?

You can use a VGA dummy plug...

Ciao,
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: videos in the browser

2014-09-19 Thread David Coppa
On Fri, Sep 19, 2014 at 12:48 PM, Marc Espie es...@nerim.net wrote:
 with a recent configuration, videos work fine in the browser.
 *however* a lot of websites still give you only flash videos.
 Or do they ?

 There's this nifty extension in chrome to fudge the user-agent
 (called user-agent switcher) where you can play at browsing from
 a tablet. Surprise: those video sites work again (in some cases,
 you have to fight a bit more, go explicitly to the mobile version
 and not let them switch you back to the desktop mode).

This[1] also works fine for many of the most famous video websites...

[1] http://isebaro.com/viewtube/?ln=en

Ciao!
David
-- 
If you try a few times and give up, you'll never get there. But if
you keep at it... There's a lot of problems in the world which can
really be solved by applying two or three times the persistence that
other people will.
-- Stewart Nelson



Re: Hard drives don't spin down

2014-09-11 Thread David Coppa
On Thu, Sep 11, 2014 at 1:22 PM, Laurence Rochfort
laurence.rochf...@gmail.com wrote:
 Hello,

 I'm running 5.5 on amd64.

 I have two non-identical SATA drives in softraid RAID 1 that never
 spin down, even when the system has been idle for hours.

 Should I expect them to automatically spin down when using soft raid
 and apmd -C, or do I have to script something with atactl? The BIOS
 doesn't mention drive power management specifically, but does have APM
 enabled and reports SMART for the drives.

What happens with:

# atactl wd0 setidle 5

??



Re: Hard drives don't spin down

2014-09-11 Thread David Coppa
On Thu, Sep 11, 2014 at 1:59 PM, Laurence Rochfort
laurence.rochf...@gmail.com wrote:
 If I set it for both drives they spin down. I take it that's the time
 in seconds the system has to be idle for before they spin down?

Exactly.

man 8 atactl

 What's the difference between idle and standby?

For what I've understood, standby puts the disk in a even more deep
sleep state than idle.

Btw, you can put the two commands into /etc/rc.local, so they will
survive a reboot.

Ciao!
David



Re: ifconfig scan while connected

2014-09-08 Thread David Coppa
On Sun, Sep 7, 2014 at 5:56 PM, Fabian Raetz fabian.ra...@gmail.com wrote:
 On Sun, Sep 07, 2014 at 02:11:04PM +0200, Mike Burns wrote:
 A `sudo ifconfig iwn0 scan' works but only if the device is disconnected. Is
 this expected behavior? Is this specific to my card? Am I interpreting
 the results correctly?

 Hi,
 this is a known problem with the iwn(4) driver.

 I'm in the process of backporting a patch from FreeBSD, which seems to
 fix the problem.  Running here with this patch for an hour or so and can
 scan with iwn running and it continues to work.

 I'll probably send a patch to tech@ next week.

I'm also interested in this.

ciao!
David



Re: Can OpenBSD access BBC Iplayer?

2014-09-03 Thread David Coppa
On Wed, Sep 3, 2014 at 9:32 AM, Anthony Campbell a...@acampbell.org.uk wrote:
 On 02 Sep 2014, Stuart Henderson wrote:
 On 2014-09-02, Anthony Campbell a...@acampbell.org.uk wrote:
  As a workaround I can use get_iplayer to download BBC programmes but is

 You can also use it to stream them live. Or some ISPs have live
 multicast streams that VLC can play.

  it possible to get a browser to access Iplayer?

 nope.

 I've tried live streaming with get_iplayer but it doesn't work at least
 for the BBC, either TV or radio, It did at some time but I think the BBC
 have changed things recently.

Our port is the latest release.

But have a look at what has changed between v2.86 and git's master:

https://github.com/dinkypumpkin/get_iplayer/compare/v2.86...master

In particular, commits like Updated SWF player URL and fix schedule
URLs and channel names look suspicious...

Ciao,
David



Re: OpenBSD on a 2013 MacBook Air

2014-09-03 Thread David Coppa
On Wed, Sep 3, 2014 at 12:38 PM,  nuu6...@hush.com wrote:
 I was recently gifted a 2013 Haswell MacBook Air. While OS X is nice, I would 
 like to run OpenBSD as the only OS on the machine.

 Is anyone doing this on a Haswell MBA? When I Google this, I can't seem to 
 find info on running it as the sole OS.


wifi doesn't work (broadcom hell). Dunno about the remaining components.

ciao,
David



Re: mpd unable to start on recent snapshots

2014-09-03 Thread David Coppa
On Wed, Sep 3, 2014 at 7:29 PM, Nicholas Fleisher nfleis...@gmail.com wrote:
 On Wed Sep 03 10:12 AM, Mike Larkin wrote:
 On Wed, Sep 03, 2014 at 10:55:47AM -0500, Nicholas Fleisher wrote:
  With the two latest snapshots I've installed (Aug 29 and Sep 2, amd64)
  and the most recent package of mpd (built Aug 30 on my mirror), mpd no
  longer starts up, either at boot (via pkg_scripts in
  /etc/rc.conf.local) or manually (/etc/rc.d/mpd start yields
  mpd(failed)).  Attempting to connect with clients results in the
  following error:
 
  Couldn't connect to MPD (host = localhost, port = 6600): Connection refused
 

 I've had problems like this when localhost gets redefined (usually by 
 accident
 via someone updating DNS incorrectly) to something other than 127.0.0.1.

 Does mpc -h 127.0.0.1  work?

 Thanks! but no, alas.

 With some help from ajacoutot@, I've managed to learn that there is a
 problem with the mpd.db database file getting corrupted upon launch.
 Here is the output from /etc/rc.d/mpd -d start:

 doing _rc_parse_conf
 doing _rc_quirks
 mpd_flags empty, using default 
 doing _rc_read_runfile
 doing rc_check
 mpd
 doing rc_start
 /usr/local/sbin/mpd:/usr/lib/libstdc++.so.57.0: 
 /usr/local/lib/libestdc++.so.16.0 : WARNING: 
 symbol(_ZN11__gnu_debug17_S_debug_messagesE) size mismatch, relink your 
 program
 db: Database corrupted
 doing _rc_write_runfile
 (ok)

 Anyone else having a similar problem?

No, it works fine for me (mpd 0.18.13).

You can try to:

# mv /var/spool/mpd/mpd.db /var/spool/mpd/mpd.db.broken
# /etc/rc.d/mpd restart


ciao,
David



  1   2   3   4   5   >