Re: [Thunderbird] How to correctly set Mail-Followup-To header?

2020-06-26 Thread Alessandro De Laurenzis
I'm answering to my own question: that variable needs to be created... after 
that, the header is properly added.

Sorry for the noise


On June 25, 2020 5:55:49 PM GMT+02:00, Alessandro De Laurenzis 
 wrote:
>
>Greetings,
>
>Disclaimer: the topic isn't strictly OpenBSD related, but I'd love
>hearing comments from this community.
>
>I'm trying to get used (after a very long long time) to Thunderbird
>(mutt user for last 10 years or so...) and I'm struggling with mailing
>lists setting.
>
>In partucular, in mutt I declare the subscribed ones and the
>'Mail-Followup-To' header is automatically added:
>
>[...]
>> subscribe ^b...@openbsd.org$ ^misc@openbsd.org$ ^po...@openbsd.org$
>^t...@openbsd.org$
>> set followup_to = yes   # Prevent receiving
>duplicate copies of replies to messages sent to mailing lists
>> # Get a reply
>separately for any messages sent to known but not subscribed lists
>> set honor_followup_to = yes # Honor
>Mail-Followup-To header when group-replying to a message
>[...]
>
>For Thunderbird (68.9.0), I found this very well written wiki article
>[1], but 'mail.identity.default.subscribed_mailing_lists' preference
>seems not to be there anymore.
>
>Of course, I could always set the header by hand, adding it to
>'mail.compose.other.header', but I hope there is a smarter way...
>
>Any hints?
>
>All the best
>
>[1] 
>https://wiki.mozilla.org/Thunderbird:Help_Documentation:Mail-Followup-To_and_Mail-Reply-To
>
>-- 
>Alessandro De Laurenzis
>[mailto:jus...@atlantide.mooo.com]
>Web: http://www.atlantide.mooo.com
>LinkedIn: http://it.linkedin.com/in/delaurenzis

-- 
Inviato dal mio dispositivo Android con K-9 Mail. Perdonate la brevità.


[Thunderbird] How to correctly set Mail-Followup-To header?

2020-06-25 Thread Alessandro De Laurenzis



Greetings,

Disclaimer: the topic isn't strictly OpenBSD related, but I'd love
hearing comments from this community.

I'm trying to get used (after a very long long time) to Thunderbird
(mutt user for last 10 years or so...) and I'm struggling with mailing
lists setting.

In partucular, in mutt I declare the subscribed ones and the
'Mail-Followup-To' header is automatically added:

[...]

subscribe ^b...@openbsd.org$ ^misc@openbsd.org$ ^po...@openbsd.org$ 
^t...@openbsd.org$
set followup_to = yes   # Prevent receiving duplicate 
copies of replies to messages sent to mailing lists
# Get a reply separately for 
any messages sent to known but not subscribed lists
set honor_followup_to = yes # Honor Mail-Followup-To header 
when group-replying to a message

[...]

For Thunderbird (68.9.0), I found this very well written wiki article
[1], but 'mail.identity.default.subscribed_mailing_lists' preference
seems not to be there anymore.

Of course, I could always set the header by hand, adding it to
'mail.compose.other.header', but I hope there is a smarter way...

Any hints?

All the best

[1] 
https://wiki.mozilla.org/Thunderbird:Help_Documentation:Mail-Followup-To_and_Mail-Reply-To


--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



[tmux] 'send-keys' command behavior (Ctrl + Arrow keys) in post-6.7

2020-05-25 Thread Alessandro De Laurenzis

Greetings,

Hope misc@ is the right place for this kind of issues, since I do not 
have enough info to fill in a proper bugs@ report.


In both 6.7 and -current, when I issue (in tmux) 'cat -v' I see the 
following:


- Left, Right, Up, Down keys:
^[[C ^[[D ^[[A ^[[B

- C-Left, C-Right, C-Up, C-Down combinations:
^[[1;5D ^[[1;5C ^[[1;5A ^[[1;5B

In order to navigate seamlessly between vim and tmux splits using a 
consistent set of hotkeys I use a vim plugin (vim-tmux-navigator) and I 
have the following settings in ~/.tmux.conf:


bind-key -n 'C-Up'run-shell "(tmux display-message -p '#{pane_current_command}' | grep 
-iq vim) && tmux send-keys 'C-Up'   || tmux select-pane -U"
bind-key -n 'C-Down'  run-shell "(tmux display-message -p '#{pane_current_command}' | grep 
-iq vim) && tmux send-keys 'C-Down' || tmux select-pane -D"
bind-key -n 'C-Right' run-shell "(tmux display-message -p '#{pane_current_command}' | grep 
-iq vim) && tmux send-keys 'C-Right'|| tmux select-pane -R"
bind-key -n 'C-Left'  run-shell "(tmux display-message -p '#{pane_current_command}' | grep 
-iq vim) && tmux send-keys 'C-Left' || tmux select-pane -L"

Now, in 6.7 tmux, opening vim and issuing ^v in insert mode before the 
key combinations I see (as expected):


- Left, Right, Up, Down keys:
^[OD ^[OC ^[OA ^[OB

- C-Left, C-Right, C-Up, C-Down combinations:
^[[1;5D ^[[1;5C ^[[1;5A ^[[1;5B

but in -current I see the same codes for both singular arrow keys and 
Ctrl combinations:


OpenBSD theseus.atlantide.priv 6.7 GENERIC.MP#206 amd64

- Left, Right, Up, Down keys:
^[OD ^[OC ^[OA ^[OB

- C-Left, C-Right, C-Up, C-Down combinations:
^[OD ^[OC ^[OA ^[OB

(for both 6.7 and -current vim version is 8.2.534). Of course, this way 
my settings in vim are screwed.


I do not see many relevant commits in tmux since 6.7, except maybe:

https://marc.info/?l=openbsd-cvs=158964667912505=2
https://marc.info/?l=openbsd-cvs=158964675612518=2
https://marc.info/?l=openbsd-cvs=158964675612518=2

but I didn't try to bisect.

Any thoughts?

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: sndioctl and USB HID keyboard

2020-04-21 Thread Alessandro De Laurenzis

Hello Alexandre, Theo,

On 21/04/2020 - 00:12, Theo de Raadt wrote:

Alexandre Ratchov  wrote:


On Tue, Apr 21, 2020 at 03:15:58AM +0200, Erling Westenvik wrote:
> > >
> > > I'm a bit confused now... so why the previous usbhidaction configuration
> > > (which was aligned to the manpage suggestions and worked flawlessly for
> > > years) doesn't work anymore?
> >
> > Sorry, few weeks ago mixerctl was changed to use /dev/audioctlN
> > instead of /dev/mixerN (which was just removed), but the
> > usbhidaction(1) man page was not updated. Now it's fixed.
> >
> > The sample invocation line should read:
> >
> > usbhidaction -f /dev/uhid1 -c conf /dev/audioctl0
> >
> > Tested on my setup, let me know if it works for you.
>
> I'm puzzled. This is -current as of yesterday (April 20th).
>
> From /etc/rc.conf.local:
>usbhidaction_flags=-f /dev/uhid0 -c /etc/usbhidaction.conf /dev/audioctl0
>
> My /etc/usbhidaction.conf:
>Consumer:Play/Pause 1
>echo 'cycle pause' | socat - /tmp/mpvsocket
>Consumer:Volume_Decrement 1
>sndioctl output.level=-0.1
>#mixerctl outputs.master=-8
>Consumer:Volume_Increment 1
>sndioctl output.level=+0.1
>#mixerctl outputs.master=+8
>Consumer:Mute 1
>sndioctl output.mute=!
>#mixerctl outputs.master.mute=toggle
>
> But alas, nothing happens when I press the respective buttons on my
> keyboard.
> Running from command line works, but not as root/doas..
>
> Running with doas: $ doas sndioctl output.level=+0.1
>default: can't open control device
>
> Running as myself: $ sndioctl output.level=+0.1
>output.level=0.6
>

Hi,

mixerctl is still the appropriate tool here, sndioctl is not inteded
to be run as root.

usbhidaction runs as root, given /dev/uhidN permissions, it's clearly
not intended to run "high level" user commands.  For instance it makes
no sense to run "audiocious -u" when Pause/Play key is hit, it's the
similar for sndioctl. The mixerctl utility remains for such "low
level" use cases.


Since all audio control methods are now available inside sndioctl, I
have a hard time seeing why mixerctl has to remain.


Any program using sndiod is intended to be used one user at a time for
obvious privacy reasons, this is quickly explained in the last
section of sndio(7).


What are the chances that isn't the user on the USB bus?

Requiring people to use doas?  Honestly, I find that offensive.



This is to confirm than changing the device to /dev/audioctl0, 
usbhidaction performs the mixerctl commands correctly.


I cannot comment on implementation internals, but I tend to agree with
Theo's doubt: sndioctl seems the natural candidate to be the only tool
for audio control; mixerctl coexistence would be partially confusing
from an admin perspective. Just my opinion, of course.

All the best

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis

Hello Alexandre,

On 20/04/2020 - 19:50, Alexandre Ratchov wrote:

On Mon, Apr 20, 2020 at 07:35:03PM +0200, Alessandro De Laurenzis wrote:

Hello Alexandre,

Thanks for your prompt feedback.

On 20/04/2020 - 18:00, Alexandre Ratchov wrote:
[...]
>
> This is the right way of doing it except that the user-id running
> sndioctl is probably not authorized to use the server while you're
> using.
>
> You could try to prefix the command with "doas -u "
>
> -- Alexandre
>

Yes, that's the root cause and prefixing the sndioctl command with doas
makes the trick. Unfortunately, this solution isn't applicable to my
use-case, since there are several users that can log in this machine...

Are there any alternatives?


mixerctl still works for root.



I'm a bit confused now... so why the previous usbhidaction configuration 
(which was aligned to the manpage suggestions and worked flawlessly for 
years) doesn't work anymore?


-- Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis

Hello Benjamin,

On 20/04/2020 - 17:23, Benjamin Baier wrote:
[...]


Have made the same adjustments here. Works good.
Do you have an old usbhidaction running in background, that blocks /dev/uhid1


No, there is only one instance of usbhidaction running (I tried to 
reboot too, just to be sure).


I think the point is that the sndioctl command can only be run by the 
logged in user, as pointed out by Alexandre in another branch of this 
thread, so the usage with hotplugd could be tricky...


Thanks for your feedback

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis

Hello Alexandre,

Thanks for your prompt feedback.

On 20/04/2020 - 18:00, Alexandre Ratchov wrote:
[...]


This is the right way of doing it except that the user-id running
sndioctl is probably not authorized to use the server while you're
using.

You could try to prefix the command with "doas -u "

-- Alexandre



Yes, that's the root cause and prefixing the sndioctl command with doas 
makes the trick. Unfortunately, this solution isn't applicable to my 
use-case, since there are several users that can log in this machine...


Are there any alternatives?

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



sndioctl and USB HID keyboard

2020-04-20 Thread Alessandro De Laurenzis

Greetings,

Latest -current here:

OpenBSD theseus.atlantide.priv 6.7 GENERIC.MP#140 amd64

Of course, mixerctl doesn't work anymore for volume control.

I have a Logitech wireless keyboard whose multimedia keys were pretty 
functional in OpenBSD through usbhidaction(1):


[...]
Apr 20 16:54:48 theseus /bsd: uhidev0 at uhub0 port 2 configuration 1 interface 0 
"Logitech USB Receiver" rev 2.00/12.01 addr 2
Apr 20 16:54:48 theseus /bsd: uhidev0: iclass 3/1
Apr 20 16:54:48 theseus /bsd: ukbd0 at uhidev0: 8 variable keys, 6 key codes
Apr 20 16:54:48 theseus /bsd: wskbd1 at ukbd0 mux 1
Apr 20 16:54:48 theseus /bsd: wskbd1: connecting to wsdisplay0
Apr 20 16:54:48 theseus /bsd: uhidev1 at uhub0 port 2 configuration 1 interface 1 
"Logitech USB Receiver" rev 2.00/12.01 addr 2
Apr 20 16:54:48 theseus /bsd: uhidev1: iclass 3/1, 8 report ids
Apr 20 16:54:48 theseus /bsd: ums0 at uhidev1 reportid 2: 16 buttons, Z and W 
dir
Apr 20 16:54:48 theseus /bsd: wsmouse2 at ums0 mux 0
Apr 20 16:54:48 theseus /bsd: uhid0 at uhidev1 reportid 3: input=4, output=0, 
feature=0
Apr 20 16:54:48 theseus /bsd: uhid1 at uhidev1 reportid 4: input=1, output=0, 
feature=0
Apr 20 16:54:48 theseus /bsd: uhid2 at uhidev1 reportid 8: input=1, output=0, 
feature=0
Apr 20 16:54:48 theseus /bsd: uhidev2 at uhub0 port 2 configuration 1 interface 2 
"Logitech USB Receiver" rev 2.00/12.01 addr 2
Apr 20 16:54:48 theseus /bsd: uhidev2: iclass 3/0, 33 report ids
Apr 20 16:54:48 theseus /bsd: uhid3 at uhidev2 reportid 16: input=6, output=6, 
feature=0
Apr 20 16:54:48 theseus /bsd: uhid4 at uhidev2 reportid 17: input=19, 
output=19, feature=0
Apr 20 16:54:48 theseus /bsd: uhid5 at uhidev2 reportid 32: input=14, 
output=14, feature=0
Apr 20 16:54:48 theseus /bsd: uhid6 at uhidev2 reportid 33: input=31, 
output=31, feature=0
[...]

This is the command that I use through hotplugd (adapted from the 
manpage, which is BTW now outdated, and modified to cope with sndioctl):


[...]
usbhidaction -f /dev/uhid0 -c /etc/usbhidaction/vol-ctrl
[...]

and this is the content of /etc/usbhidaction/vol-ctrl

[...]
# The volume range is 0..1. Moving 0.1 volume steps each keypress
# moves quickly through the volume range but still has decent
# granularity.
Consumer:Bass 1
sndioctl output.mute=!
Consumer:0x00eb 1
sndioctl output.level=-0.1
Consumer:Volume_Decrement 1
sndioctl output.level=+0.1
[...]

but when I use the multimedia keys... nothing happens. I really don't 
know how to debug this; is it related to the interaction with sndio?


Any hints?

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Help debugging slow nfs (40kB/s); linux client

2020-04-18 Thread Alessandro De Laurenzis

Hello Nathan,

On 17/04/2020 - 19:31, Nathan Clement wrote:
[...]
I am mounting this from my laptop which runs on arch linux at the 
moment.

On the linux client machine, this is the relevant line from mount:

192.168.1.4:/home/nathan/shared on /home/nathan/mnt type nfs
(rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.4,mountvers=3,mountport=997,mountproto=udp,local_lock=none,addr=192.168.1.4)


[...]

I recently observed (unfortunately, I'm not able to say from when 
exactly, because I don't use my exports so often...) NSF connection 
slowing down to the point that it was impossible to make common 
operations like playing a video or transferring files with significant 
dimensions.


I reverted to the previous performances changing (on the client side) 
the protocol from TCP to UDP. Of course, YMMV.


In my case, both server and client(s) are running OpenBSD (6.6 the 
server, -current the clients).


The point is that I was not able to gather enough information to send an 
e-mail to bugs@...


--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



tmux and CPU usage

2020-04-18 Thread Alessandro De Laurenzis
ev 0x04: apic 2 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269, Intel/0x2806, using Realtek ALC269
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci1 at ppb0 bus 2
sdhc0 at pci1 dev 0 function 0 "Ricoh 5U822 SD/MMC" rev 0x07: apic 2 int 16
sdhc0: SDHC 3.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
ppb1 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 "Intel Centrino Ultimate-N 6300" rev 0x3e: msi, 
MIMO 3T3R, MoW, address 24:77:03:d8:9c:74
ppb2 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 4
ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
pcib0 at pci0 dev 31 function 0 "Intel QM77 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0:  naa.50026b77823f81ef
sd0: 228936MB, 512 bytes/sector, 468862128 sectors, thin
cd0 at scsibus1 targ 1 lun 0:  removable
ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-12800 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2, 0x1c0b1 0xb4 0x0 0xd047b1 0xa
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
uhidev0 at uhub0 port 1 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 1 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev1: iclass 3/1, 8 report ids
ums0 at uhidev1 reportid 2: 16 buttons, Z and W dir
wsmouse2 at ums0 mux 0
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0
uhidev2 at uhub0 port 1 configuration 1 interface 2 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev2: iclass 3/0, 33 report ids
uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0
uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0
uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0
uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0
umodem0 at uhub0 port 4 configuration 1 interface 1 "Lenovo H5321 gw" rev 
2.00/0.00 addr 3
umodem0: data interface 2, has CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
umodem1 at uhub0 port 4 configuration 1 interface 3 "Lenovo H5321 gw" rev 
2.00/0.00 addr 3
umodem1: data interface 4, has CM over data, has break
umodem1: status change notification available
ucom1 at umodem1
umodem2 at uhub0 port 4 configuration 1 interface 9 "Lenovo H5321 gw" rev 
2.00/0.00 addr 3
umodem2: data interface 10, has CM over data, has break
umodem2: status change notification available
ucom2 at umodem2
ugen0 at uhub0 port 4 configuration 1 "Lenovo H5321 gw" rev 2.00/0.00 addr 3
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 
2.00/0.00 addr 2
ugen1 at uhub3 port 1 "Lenovo Integrated Smart Card Reader" rev 2.00/1.00 addr 3
uhub4 at uhub3 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/9.01 addr 4
uhub5 at uhub4 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/9.01 addr 5
uhidev3 at uhub4 port 3 configuration 1 interface 0 "CHICONY HP Basic USB 
Keyboard" rev 1.10/3.00 addr 6
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
uhidev4 at uhub4 port 4 configuration 1 interface 0 "Logitech USB-PS/2 Optical 
Mouse" rev 2.00/27.20 addr 7
uhidev4: iclass 3/1
ums1 at uhidev4: 8 buttons, Z and W dir
wsmouse3 at ums1 mux 0
uvideo0 at uhub3 port 6 configuration 1 interface 0 "Chicony Electronics Co., Ltd. 
Integrated Camera" rev 2.00/5.64 addr 8
video0 at uvideo0
uhub6 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 
2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
r

Zoom meeting via chromium web app

2020-03-28 Thread Alessandro De Laurenzis

Greetings,

I'm trying to use the Zoom meeting platform in OpenBSD through the 
Chromium web app (-current, very recent snapshot, Chromium 
80.0.3987.149, amd64).


When I click on the app icon, a new browser window opens and the sign-in 
web page appears, but soon after the browser is killed:


Mar 28 09:52:43 theseus /bsd: chrome(36809): pledge sysctl 2: 6 2
Mar 28 09:52:43 theseus /bsd: chrome[36809]: pledge "", syscall 202

Starting chrome with --disable-unveil doesn't help (same error).

Anybody did succeed in using this (or a similar) platform?

Any hints would be very appreciated.

All the best

--
Alessandro De Laurenzis
[mailto:jus...@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Black screen when starting Xorg with Dell XPS 13 9350

2019-04-13 Thread Alessandro De Laurenzis
Hello Noth,

Could you please double check the two links you posted? It seems that the first 
page doesn't exist and the second one is not relevant...

Thanks

--
Alessandro

Il 14 aprile 2019 00:33:14 CEST, Noth  ha scritto:
>Thanks to jostein@ on #openbsd, I now have a working touchpad. All it 
>took was disabling dwiic* in the kernel, and then both the touchpad 
>(wsmouse0) and touchscreen (wsmouse1) work.
>
>I was also pointed by mlarkin to the intel_backlight 
>(https://github.com/jostein/intel_backlight_fbsd ) command which works 
>perfectly.
>
>So with just one tweak and an extra userland command, the Dell XPS 9350
>
>works 100% under OpenBSD:
>
>- suspend works
>
>- hibernation works
>
>- sound works
>
>- Xorg works, with brightness ajustments possible
>
>- wifi works once you switch out the wifi chip
>
>If you like 13" 3200x1800 screens in a 11.6" size laptop, I can only
>but 
>recommend this model.
>
>
>
>I also tried the same fixes on the XPS 9370, and got the same succesful
>
>result. However suspend & hibernation don't work for the time being.
>
>
>Cheers,
>
>Noth
>
>On 13th/04/2019 17:44, Noth wrote:
>> It worked around 6.1 but no longer does, Xorg stopped working with
>6.2 
>> and only just started working with the snapshot I tried yesterday. I 
>> hadn't updated in 1-2 months, so not sure when the fix went in for 
>> inteldrm.
>>
>> On 13/04/2019 17:06, joshua stein wrote:
 On 13/04/2019 16:49, Noth wrote:
> Hello again,
>
>    I updated to the latest snapshot and now Xorg works! But it has
>a
> caveat, the pointer device detected is the touchscreen not the 
> touchpad.
> It's assigned device wsmouse0 and ums1 doesn't seem to recognize
>the
> touchpad anymore so no wsmouse1. I've tested this on the XPS 13 
> 9350 and
> my new 9370. Same results on both (do make sure you have the
>latest
> firmware installed via fw_update).
>>> Did the touchpad ever work or is this a recent regression?
>>>
 dwiic0 at pci0 dev 21 function 0 "Intel 100 Series I2C" rev 0x21: 
 apic 2 int
 16
 iic0 at dwiic0
 dwiic1 at pci0 dev 21 function 1 "Intel 100 Series I2C" rev 0x21: 
 apic 2 int
 17
 iic1 at dwiic1
 ihidev0 at iic1 addr 0x2cdwiic1: timed out reading remaining 29
 , failed fetching initial HID descriptor
>>


Re: Is there a fix for stock vi's bug-for-bug compatible ESC-equals-return feature?

2019-02-19 Thread Alessandro DE LAURENZIS

Hello,

On 2019-02-18 09:04, ropers wrote:
[...]

vi(1) has a feature where pressing ESC while in command-line mode
(i.e. entering an ex command in command mode) will sometimes cancel
the current line of ex input, but other times will have the same
effect as if the user had pressed return.


I'm not an expert, but this behavior seems to be in line with POSIX [1] 
requirements:


[...]

Synopsis:


If input was part of a line-oriented command:

If interrupt was entered, text input mode shall be terminated and the 
editor shall return to command mode. The terminal shall be alerted.


If  was entered, text input mode shall be terminated and the 
command shall continue execution with the input provided.


Otherwise, terminate text input mode and return to command mode.
[...]

In nvi, it is consistent among all line-oriented commands (:, /, ? and 
!).


Just my 2 cents

[1] http://pubs.opengroup.org/onlinepubs/9699919799/

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
Web: http://www.atlantide.t28.net
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Clarification on ksh(1) nohup mechanism

2017-08-27 Thread Alessandro DE LAURENZIS

Folks,

On Sat 12/08/2017 18:36, Alessandro DE LAURENZIS wrote:

Dear misc@ readers,

I'm lost with the subject... From the man page I see that, differently 
from standard ksh, OpenBSD implementation by default do *not* send 
SIGHUP signals to child processes when a SIGHUP is received by the 
parent shell and that this mechanism can be changed through:


set +o nohup

So far, so good; now:

[snip]

$ sleep 30 &
[1] 46318
$ pgrep -fl sleep
46318 sleep 30

$ pgrep -fl sleep
46318 sleep 30
[snip]

As expected, the sleep process is still there. But:

[snip]

set +o nohup
$ sleep 30 &
[1] 83071
$ pgrep -fl sleep
83071 sleep 30

$ pgrep -fl sleep
83071 sleep 30
[snip]

Even after having cleared the shell option, the process is not killed.

Just in case, I also tried with:

set -o nohup

observing the same behavior.


I've discussed this topic off-list with anton@, and the conclusion of 
his analysis is that the "set +o nohup" correct behaviour requires a ksh 
login shell.


I confirm that, firing e.g. "ksh -l" from bash, child processes 
correctly receive a SIGHUP at ksh's closing; instead, firing just "ksh" 
shows the unexpected behaviour I described above.


Now, I doubt that signal handlers should be influenced by the
login/non-login assumption, or at least that's not documented... I hope 
one of the developers will have a look.


All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: mount_nfs(8) -b option

2017-08-27 Thread Alessandro DE LAURENZIS

Hi Florian,

On Sun 27/08/2017 08:56, Florian Ermisch wrote:
[...]

In case nobody pointed this out off-list:
You should add your fileserver's IP to to
your /etc/hosts so its name can be
resolved during boot when there's no
DNS available (or you're outside your
LAN).


Great! I was giving up on this matter... After having added the 
fileserver's IP address to /etc/hosts, all works as expected.


I owe you a beer! Thanks a lot.

All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: mount_nfs(8) -b option

2017-08-27 Thread Alessandro DE LAURENZIS

Hi Florian,

On Sun 27/08/2017 08:56, Florian Ermisch wrote:
[...]

In case nobody pointed this out off-list:
You should add your fileserver's IP to to
your /etc/hosts so its name can be
resolved during boot when there's no
DNS available (or you're outside your
LAN).


Great! I was giving up on this matter... After having added the·
fileserver's IP address to /etc/hosts, all works as expected.

I owe you a beer! Thanks a lot.

All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: mount_nfs(8) -b option

2017-08-27 Thread Alessandro DE LAURENZIS

Hi Florian,

On Sun 27/08/2017 08:56, Florian Ermisch wrote:

Hi Alessandro,

[...]

In case nobody pointed this out off-list:
You should add your fileserver's IP to to
your /etc/hosts so its name can be
resolved during boot when there's no
DNS available (or you're outside your
LAN).


Great! I was giving up on this matter... After having added the 
fileserver's IP address to /etc/hosts, all works as expected.


I owe you a beer! Thanks a lot.

All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



amd(8): outdated FILES manpage's section?

2017-08-21 Thread Alessandro DE LAURENZIS

Dear misc@ readers,

Since this old commit [0] the default location for the real amd(8)'s 
mount points has been changed from "/a" to "/tmp_mnt".


This is correctly referenced in the man page, when the "-a" option is 
described, but the FILES section still lists "/a"; should it be updated 
as well? Something like:


--- /usr/src/usr.sbin/amd/amd/amd.8.origTue Jul 16 13:13:33 2013
+++ /usr/src/usr.sbin/amd/amd/amd.8 Mon Aug 21 18:32:51 2017
@@ -188,8 +188,8 @@
.Va ${domain} .
.El
.Sh FILES
-.Bl -tag -width /axx
-.It Pa /a
+.Bl -tag -width /tmp_mntxx
+.It Pa /tmp_mnt
directory under which filesystems are dynamically mounted
.El
.Sh SEE ALSO

Actually, neither the reference "Amd - The 4.4 BSD Automounter" reflects 
this change, but I think that's normal, because the "original" document 
should be preserved.


[0]: 
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/amd/amd/amd.c?rev=1.15=text/x-cvsweb-markup

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: doas /usr/bin/vi best practice

2017-08-15 Thread Alessandro DE LAURENZIS

Hello Nam,

On Sun 13/08/2017 18:09, Nam Nguyen wrote:

If you are trying to avoid that message:

/home/just22/.exrc: not sourced: not owned by you


It could be that you are in that in your home directory and vi is trying
to read the local .exrc script on startup.

In vi(1):

exrc, ex [off]
Read the startup files in the local directory.


To turn off this feature, put "set noexrc" into your ~/.exrc



I was discussing this point privately with Martijn (in CC) and I ended 
up with exactly this conclusion.


I'm trying to sort out a bit the things and summarize what happens, in 
the hope one of the developers has the chance to have a look:


- enable the exrc option ("set exrc") in ${HOME}/.exrc
- from $HOME run: "doas vi "
- the message "/home/just22/.exrc: not sourced: not owned by you" 
 appears;
- despite the error message, the setting in $HOME/.exrc are present in 
 the vi's window, so it seems that it is sourced two times: in one case 
 all goes well, in the other there is a permission problem.


Something weird is happening, but I really don't know where...


The key is to understand what configuration files vi looks for when
starting up. This is mentioned toward the bottom of vi(1). It seems like
the precedence goes (from least to most): /etc/vi.exrc, ~/.exrc,
./.exrc.

(For clarity, I am not including ~/.nexrc and ./.nexrc.)

I used to have "set exrc" and would get the behavior you are describing,
specifically while in my home directory. Disabling that feature with
"set noexrc" removes ./.exrc from what vi scans for at startup.

This is the setup I currently have. I have /etc/vi.exrc as a system-wide
default vi configuration.

In $HOME/.exrc I have general vi macros, and in $HOME/.nexrc I have
programming language specific macros.

Normally, what I will do is update ~/.exrc if I want to add some new
features, and copy that to /etc/vi.exrc to have it available
system-wide.

Another observation I made was that because doas' default behavior is to
reset the environment except for HOME, among others, executing `doas vi`
gives me access to macros defined in both ~/.exrc ~/.nexrc even though I
am root. If I change to root with `su` and then open `vi`, I only get
access to /etc/vi.exrc and lose access to macros defined in ~/.nexrc.

I have been annoyed by this problem, too, because I had to keep pressing
enter to clear that error message, instead of the file instantaneously
opening. I could not be bothered to investigate further until you had
mentioned it.



--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



mount_nfs(8) -b option

2017-08-15 Thread Alessandro DE LAURENZIS

Dear misc@ readers,


From mount_nfs(8):


-b  If an initial attempt to contact the server fails, fork off a
child to keep trying the mount in the background.  Useful for
fstab(5), where the file system mount is not critical to
multiuser operation.

My understanding is that, in case the server is not reachable when the 
command is run (specifically, at boot, if there is a proper entry in 
fstab(5)), it will be forked and keep trying the mount operation, till 
when the server is back.


I had a look at the code and, if I am not mistaken, the process sleeps 
for 60s, then retries and so on.


Now: this is my fstab:

# Blk dev			Mount point			FS type		Mnt optsDump freq	Pass no.  
 #/dev/sd0a

 ff014e14e96d5c40.a /   ffs 
rw,softdep,noatime  2   1

 #/dev/sd0b
 ff014e14e96d5c40.b noneswap
sw

 #/dev/sd0d
 ff014e14e96d5c40.d /tmpffs 
rw,softdep,noatime,nodev,nosuid 1   2

 #/dev/sd0e
 ff014e14e96d5c40.e /varffs 
rw,softdep,noatime,nodev,nosuid 1   2

 #/dev/sd0f
 ff014e14e96d5c40.f /usrffs 
rw,softdep,noatime,nodev1   2

 #/dev/sd0g
 ff014e14e96d5c40.g /usr/local  ffs 
rw,softdep,noatime,nodev,wxallowed  1   2

 #/dev/sd0h
 ff014e14e96d5c40.h /builds ffs 
rw,softdep,noatime,nodev,nosuid,wxallowed   1   2

 #/dev/sd0i
 ff014e14e96d5c40.i /home   ffs 
rw,softdep,noatime,nodev,nosuid,wxallowed   1   2

 # Network file sharing
 egeo:/vol/datavol01/nfs/egeo/vol/datavol01 nfs 
net,rw,-i,-b0   0
 egeo:/vol/sys_backup   /nfs/egeo/vol/sys_backupnfs 
net,rw,-i,-b0   0
 egeo:/home/export  /nfs/egeo/home  nfs 
net,rw,-i,-b0   0

I observe two unexpected behaviors:

1) when I switch on the machine in an environment without any network 
available, I see the messages "Cannot resolve egeo..." and the boot 
process goes on; but when the server comes back (I simply make a wifi 
network available and run "doas sh /etc/netstart" on the client), 
nothing happens (I was instead expecting that the shares were mounted 
after a minute or so);


2) when I boot without any network available and removing the "-b" 
option from the client's fstab, again I see the messages "Cannot resolve 
egeo...", and again the process continues without lagging...


I probably misunderstood the "-b" meaning. Could anyone give me some 
hints? My goal is to make the NFS shares available as soon as the server 
is reachable (without using amd(8) and possibly making the entire 
process as much transparent for the user as possible).


All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Clarification on ksh(1) nohup mechanism

2017-08-15 Thread Alessandro DE LAURENZIS

Anyone?

On Sat 12/08/2017 18:36, Alessandro DE LAURENZIS wrote:

Dear misc@ readers,

I'm lost with the subject... From the man page I see that, differently 
from standard ksh, OpenBSD implementation by default do *not* send 
SIGHUP signals to child processes when a SIGHUP is received by the 
parent shell and that this mechanism can be changed through:


set +o nohup

So far, so good; now:

[snip]

$ sleep 30 &
[1] 46318
$ pgrep -fl sleep
46318 sleep 30

$ pgrep -fl sleep
46318 sleep 30
[snip]

As expected, the sleep process is still there. But:

[snip]

set +o nohup
$ sleep 30 &
[1] 83071
$ pgrep -fl sleep
83071 sleep 30

$ pgrep -fl sleep
83071 sleep 30
[snip]

Even after having cleared the shell option, the process is not killed.

Just in case, I also tried with:

set -o nohup

observing the same behavior.

Could you please give me some hints?

All the best

-- Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



doas /usr/bin/vi best practice

2017-08-13 Thread Alessandro DE LAURENZIS

Dear misc@ readers,

I was wondering what you normally do when running vi with doas if a 
.exrc file is present in the normal user $HOME.


"doas /usr/bin/vi" without any special rules will end up with:

/home/just22/.exrc: not sourced: not owned by you

'cause the $HOME variable is preserved by default. The only thing that 
came to my mind was to add to doas.conf(5):


permit setenv { -HOME } :wheel cmd /usr/bin/vi

but I really don't know if this is the best practice.

Any hints?

All the best

-- Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Clarification on ksh(1) nohup mechanism

2017-08-12 Thread Alessandro DE LAURENZIS

Dear misc@ readers,

I'm lost with the subject... From the man page I see that, differently 
from standard ksh, OpenBSD implementation by default do *not* send 
SIGHUP signals to child processes when a SIGHUP is received by the 
parent shell and that this mechanism can be changed through:


set +o nohup

So far, so good; now:

[snip]

$ sleep 30 &
[1] 46318
$ pgrep -fl sleep
46318 sleep 30

$ pgrep -fl sleep
46318 sleep 30
[snip]

As expected, the sleep process is still there. But:

[snip]

set +o nohup
$ sleep 30 &
[1] 83071
$ pgrep -fl sleep
83071 sleep 30

$ pgrep -fl sleep
83071 sleep 30
[snip]

Even after having cleared the shell option, the process is not killed.

Just in case, I also tried with:

set -o nohup

observing the same behavior.

Could you please give me some hints?

All the best

-- Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: expr / (( )) different behavior

2017-08-11 Thread Alessandro DE LAURENZIS

Hi Janne,

On Fri 11/08/2017 13:07, Janne Johansson wrote:

0 is parsed as octal in places, so 09 would be bogus if octal.

[...]

Thanks for the clarification; does that mean expr(1) can treat 10-base 
numbers only? No info in man page on this matter...


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



expr / (( )) different behavior

2017-08-11 Thread Alessandro DE LAURENZIS

Dear misc@ readers,

I was doing a little exercise with integer arithmetics and noticed the 
following:


[snip]
$ echo $(expr -09 % 3)
0
[snip]

[snip]
$ echo $((-09 % 3))
sh: -09 % 3: bad number `09'
[snip]

bash seems to behave same way; just wondering if this inconsistency is 
expected...


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: libGL error: failed to open drm device: Permission denied

2017-03-20 Thread Alessandro DE LAURENZIS
Hello Mihai,

On Tue, 21 Mar 2017 00:07:16 +0200
Mihai Popescu <mih...@gmail.com> wrote:

> What version of OpenBSD are you running?

-current, updated to 03/19 snapshot:

[just22@poseidon]-[0]-[✓]-[~]> dmesg | head -2
OpenBSD 6.1-beta (GENERIC.MP) #38: Sun Mar 19 11:09:01 MDT 2017
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

> Did you modified /etc/fbtab?

Never touched:

[just22@poseidon]-[0]-[✓]-[~]> cat /etc/fbtab
#  $OpenBSD: fbtab.head,v 1.2 1999/05/05 06:56:34 deraadt Exp $
# login(1) reads this file to determine which devices should be chown'd to
# the new user. Format is:
# login-tty permdevice:[device]:...
/dev/ttyC0  0600
/dev/console:/dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/ttyCcfg:/
dev/drm0
# samples
#/dev/ttyC0 0600/dev/fd0

> What is 'll' or that command used to show permissions?

Just an alias to 'ls -lh', anyhow:

[just22@poseidon]-[0]-[✓]-[~]> ls -l /dev/drm0
crw---  1 just22  wheel   87,   0 Mar 20 08:17 /dev/drm0

(this is the "normal" condition, of course)

> Is just22 a custom user, i.e. not created at install time?

It was created (a long time ago!) at install time.

> Looking at what I have, I think for a normal install it should show
> you this:
>
> [just22@poseidon]-[~]> ll /dev/drm0
> crw---  1 just22  just22   87,   0 Mar 20 08:17 /dev/drm0

I noticed that the ownership of the device is "just22,just22" when I log in
from ttyC0, reset to "root,wheel" when I logout from there, set to
"just22,wheel" when logging in through xenodm. Does this make sense?

Thanks for your feedback

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



libGL error: failed to open drm device: Permission denied

2017-03-20 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I'd like to make a follow-up of an old thread [0], in the hope that someone
clarify the situation.

I normally log in X through xdm (xenodm from some weeks now) and, once there,
the ownership of /dev/drm0 is changed to my user, as expected:

[just22@poseidon]-[~]> ll /dev/drm0
crw---  1 just22  wheel   87,   0 Mar 20 08:17 /dev/drm0

But, if I switch from X to ttyC0 (Ctrl-Alt-F1), log in there and then log out,
the ownership is reset:

[just22@poseidon]-[~]> ll /dev/drm0
crw---  1 root  wheel   87,   0 Mar 20 08:17 /dev/drm0

(this behavior seems consistent with the content of /etc/fbtab, meaning
that if I do the same sequence of operations from a different virtual
terminal, ttyC1 for example, /dev/drm0 ownership is left untouched).

Of cource, when I switch back in X, I'm no more able to get access to drm
device, losing hardware acceleration for applications using it and continuosly
receiving the following error message:

libGL error: failed to open drm device: Permission denied

The only way to restore the correct condition is to logout/login (or restart
xenodm service).

I temporarely worked around the problem inhibiting the login from ttyC0 (and
so reserving it as a kind of "virtual console" for kernel messages), but I'd
like to hear your thoughts on this: is it the expected/desired behavior
or should it be fixed?

All the best

[0]: http://marc.info/?l=openbsd-misc=145125527304834=2

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



"send_packet: No route to host" during DHCP request renewal

2017-01-09 Thread Alessandro DE LAURENZIS
ss   inet proto tcp  from
anyto (egress) port ftp passin  on egress
inet proto tcp  from anyto (egress) port 49152:49407

# transmission daemon
passin  on egress   inet proto { tcp, udp } from
anyto (egress) port { 9091 51413 }
[........snip]


Thanks,

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: xpdf crashes when going fullscreen

2016-08-25 Thread Alessandro DE LAURENZIS
Hello David,

On Wed, 24 Aug 2016 10:22:26 +0200
David Coppa <dco...@gmail.com> wrote:
[...]
> 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?

sorry for delay; yes, I confirm that this patch solves the issue.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



xpdf crashes when going fullscreen

2016-08-23 Thread Alessandro DE LAURENZIS
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

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-14 Thread Alessandro DE LAURENZIS
Mike,

On Fri, 12 Aug 2016 19:47:40 +0200
Alessandro DE LAURENZIS <jus...@atlantide.t28.net> wrote:

> Hi Mike,
> 
> On 2016-08-12 18:54, Mike Larkin wrote:
> > Shrug. Works fine here on i386 and amd64.
> > 
> > Do other processes crash as well? What if you leave fluxbox
> > running? Does
> > it eventually fail on its own without needing fluxbox-remote to
> > trigger it?  
> 
> As far as I can say, no other crash, neither fluxbox nor other
> processes (I'm currently running this session since several hours 
> without any
> issues).
> 
> Only the restart seems to trigger the misbehaviour.

Playing with gdb:

[snip]
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/fluxbox 
(no debugging symbols found)

Program received signal SIGTRAP, Trace/breakpoint trap.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x173fb63002b0 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) 
[....snip]

Does it suggest anything useful?

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: cvsweb: headers of revision files are shown in plain text

2016-08-13 Thread Alessandro DE LAURENZIS
Hello naddy,

On Fri, 12 Aug 2016 19:20:12 + (UTC)
Christian Weisgerber <na...@mips.inka.de> wrote:

> On 2016-08-12, Alessandro DE LAURENZIS <jus...@atlantide.t28.net>
> wrote:
> 
> > Out of idea.  
> 
> I have no idea either.  I run cvsweb on a local machine.  It just
> works.  /etc/rc.conf.local:

Actually, my trial on -current was too quick; maybe there was something in
the browser's cache... Anyhow, I confirm that cvsweb works flawlessly in 
-current.

Now: any chance to have this working on the 5.9 machine? I tried to upgrade
httpd(8) only (compiling from -current source), but i still see the 
misbehaviour;
maybe some other libs involved?

-- 
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: cvsweb: headers of revision files are shown in plain text

2016-08-12 Thread Alessandro DE LAURENZIS

Hello,


I'll try with -current as soon as I have a bit of spare time.


Just made a (very quick) trial on current: same behaviour...

Out of idea.

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-12 Thread Alessandro DE LAURENZIS

Hi Mike,

On 2016-08-12 18:54, Mike Larkin wrote:

Shrug. Works fine here on i386 and amd64.

Do other processes crash as well? What if you leave fluxbox running? 
Does

it eventually fail on its own without needing fluxbox-remote to trigger
it?


As far as I can say, no other crash, neither fluxbox nor other
processes (I'm currently running this session since several hours 
without any

issues).

Only the restart seems to trigger the misbehaviour.

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: cvsweb: headers of revision files are shown in plain text

2016-08-12 Thread Alessandro DE LAURENZIS

On 2016-08-11 11:31, Alessandro DE LAURENZIS wrote:

Dear misc@ readers,

I'm trying to set-up a cvsweb server (OpenBSD 5.9 i386) with stock
httpd(8); this is the relevant part of my httpd.conf:

# Name-based web server
server $web_domain {
listen on $ext_if port 80

location "/cgi-bin/*" {
fastcgi
# The /cgi-bin directory is outside of the document 
root

root "/"
}

location "/cvsweb/*" {
root { "/htdocs/cvsweb", strip 1 }
}

root "/htdocs/www.atlantide.t28.net"
}



Ok, I understand: all is relevant when one doesn't know what really 
is...


$OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $

#
# Macros
#
ext_if="egress"
web_domain="www.atlantide.t28.net"
secure_domain="secure.atlantide.t28.net"
webmail_domain="webmail.atlantide.t28.net"
cvsweb_domain="cvsweb.atlantide.t28.net"

#
# Global Options
#
prefork 3
types { include "/usr/share/misc/mime.types" }

#
# Servers
#

# A minimal default server
server "default" {
listen on $ext_if port 80
block return 301 "http://www.atlantide.t28.net;
}

# Name-based web server
server $web_domain {
listen on $ext_if port 80

location "/cgi-bin/*" {
fastcgi
# The /cgi-bin directory is outside of the document root
root "/"
}

location "/cvsweb/*" {
root { "/htdocs/cvsweb", strip 1 }
}

root "/htdocs/www.atlantide.t28.net"
}

# HTTPS server using SSL/TLS
server $secure_domain {
listen on $ext_if tls port 443
tls {
certificate "/etc/ssl/www.atlantide.t28.net.crt"
key "/etc/ssl/private/www.atlantide.t28.net.key"
}

# Define server-specific log files (paths are relative to /logs)
log { access "secure-access.log", error "secure-error.log" }

# Increase connection limits to extend the lifetime
connection { max requests 500, timeout 3600 }

root "/htdocs/secure.atlantide.t28.net"
directory auto index
authenticate with "/htdocs/secure.atlantide.t28.net/.htaccess"
}

# Webmail server (with HTTP redirect fallback)
server $webmail_domain {
listen on $ext_if port 80
block return 301 "https://$SERVER_NAME$REQUEST_URI;
}
server $webmail_domain {
listen on $ext_if tls port 443
tls {
certificate "/etc/ssl/webmail.atlantide.t28.net.crt"
key "/etc/ssl/private/webmail.atlantide.t28.net.key"
}

root "/roundcubemail"
directory index index.php

location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
}

# CVSweb server
#server $cvsweb_domain {
#   listen on $ext_if port 80
#
#   location "/" {
#   block return 301 "/cgi-bin/cvsweb"
#   }
#
#   location "/cgi-bin/*" {
#   fastcgi
#   root "/"
#       }
#}

# CVSweb server
server $cvsweb_domain {
listen on $ext_if port 80
block return 301 "http://www.atlantide.t28.net/cgi-bin/cvsweb;
}

I'll try with -current as soon as I have a bit of spare time.

Thanks for your help (and let me know if the reported config looks 
suspicious somewhere!)


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-12 Thread Alessandro De Laurenzis
Hi Mike,

(sorry, I'm having issues with my e-mail service...)

>I installed fluxbox and tried to repro this. It works fine here.
>
>Does this fail just after many ZZZs? because it looks from your dmesg that
>you did a bunch of them. Does it fail after the first one?
>
>-ml

the crash is triggered after the first ZZZ, too.

-- 
Alessandro De Laurenzis
[mailto:sandro.delauren...@gmail.com]



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

2016-08-11 Thread Alessandro DE LAURENZIS
tor
iwn-firmware-5.11p1 firmware binary images for iwn(4) driver
jre-1.8.0.72p0v0OpenJDK Runtime Environment v1.8.0.72
libreoffice-i18n-it-5.1.4.2v0 it language pack for LibreOffice
libtool-2.4.2p0 generic shared library support script
lightning-4.7.2.0v0 Mozilla Thunderbird calendar extension
livestreamer-1.12.2p1 pipe video streams into a video player
lsof-4.89   list information about open files
lynx-2.8.9pl9   text web browser
lyx-2.2.0p0 graphical frontend for LaTeX (nearly WYSIWYG)
mc-4.8.16p0 free Norton Commander clone with many useful 
features

meta-tracker-1.8.0p2 powerful desktop search tool and indexer
minitube-2.5.2  standalone YouTube.com video browser/player
mozilla-dicts-it-1.3p1 it dictionary for Mozilla
mpv-0.18.1  movie player based on MPlayer/mplayer2
mutt-1.6.2v0tty-based e-mail client
netwmpager-1.11p2   small EWMH compliant pager
newsbeuter-2.7p0open-source RSS/Atom feed reader for text terminals
ntfs_3g-2016.2.22   FUSE NTFS driver with read/write support
obconf-2.0.4p0  configuration utility for openbox
octave-4.0.2p0  high-level language for numerical computations
offlineimap-7.0.4   powerful IMAP/Maildir synchronization and reader 
support

pcmanfm-1.2.4   fast and lightweight file manager
pdftk-2.02p2pdf swiss army knife
pidgin-2.11.0-gtkspell multi-protocol instant messaging client
pkg_mgr-0.2.2   user-friendly package browser and manager
pkglocatedb-1.2 database of packages for use with locate(1)
pstoedit-3.70p0 translate PostScript/PDF graphics to other vector 
formats

pv-1.6.0monitor the progress of data through a pipeline
py-dateutil-2.5.3   Python API for advanced date calculations
py-wxPython-2.8.12.0p3 Python bindings for wxWidgets C++ class library
qemu-2.6.0  multi system emulator
quirks-2.241exceptions to pkg_add rules
root-tail-1.2p2 tails a given file anywhere on your X11 root window
sc-7.16p3   curses spreadsheet-calculator program
scrot-0.8p3 commandline screen capture util
shotwell-0.23.4 digital photo organizer
smplayer-16.6.0 complete front-end for MPlayer
ssvnc-viewer-1.0.29p0v0 enhanced TightVNC client
stalonetray-0.8.3   stand-alone tray for EWMH-compliant window managers
subversion-1.9.4p0  subversion revision control system
sudo-1.8.17.1   execute a command as another user
surf-0.7simple webbrowser based on webkit/gtk+
sysclean-1.9help removing obsolete files between OpenBSD 
upgrades

tabbed-0.6  simple generic tabbed frontend
tango-icon-theme-extras-0.1.0p6 Tango icon theme extras for GNOME and 
KDE
tex-by-topic-1.4p0  book on TeX typesetting system for experienced 
audience

texlive_texmf-full-2015 texlive texmf for extra macros
thunar-archive-0.3.1p2 Thunar archive plugin
thunar-media-tags-0.2.1 Thunar media tags plugin
tint2-0.12.2p0  freedesktop-compliant panel
tkdvd-4.0.9p2   GUI to dvd+rw-tools and cdrecord
toad-1.6hotplugd(8) automounter (Toad Opens All Devices)
transset-df-6p1 manage opacity property of windows, extended version
tray-app-0.3.1  small utilities for X11 system tray: eject, battery, 
mixer

tree-0.62   print ascii formatted tree of a directory structure
unison-2.48.4   multi-platform file synchronization tool
urlview-0.9p7   curses-based URL ripper
vim-7.4.1467p1-gtk2 vi clone, many additional features
wget-1.18   retrieve files from the web via HTTP, HTTPS and FTP
when-1.1.31 simple but effective personal calendar
wmctrl-1.07p5   interact with an EWMH/NetWM window manager
wol-0.7.1p2 Wake On Lan client
wyrd-1.4.6  curses calendar front-end to remind
x11vnc-0.9.13p4 VNC server for real X displays
xcircuit-3.7.57 circuit drawing and schematic capture
xclip-0.12p0command line interface to X selections
xdotool-3.20150503.1v0 fake keyboard and mouse input
xfce-4.12p4 Xfce desktop meta-package (base installation)
xfce4-battery-1.0.5p4 Xfce4 battery monitor panel plugin
xfce4-genmon-3.4.0p3 Xfce4 generic scriptable monitor panel plugin
xfce4-places-1.7.0p0 Xfce4 places panel plugin
xfce4-screenshooter-1.8.2p0 Xfce4 desktop screenshot panel plugin
xfce4-weather-0.8.7 Xfce4 temperature/weather conditions panel plugin
xfce4-whiskermenu-1.5.3 Xfce4 alternative applications menu panel plugin
xfce4-xkb-0.7.1p0   Xfce4 xkb layout switcher panel plugin
xfe-1.41MS-Explorer like file manager for X
xfig-3.2.5c CAD drawing program for X11
xfprint-4.6.1p27Xfce4 printing helper
xine-ui-0.99.9p0multimedia player
xscreensaver-5.35p0 screen saver and locker for the X Window System
xstatbar-0.5p8  simple system monitor bar
xv-3.10ap15 X11 image display and modification tool
youtube-dl-2016.08.01 CLI program to download videos from YouTube and 
other sites

zathura-pdf-poppler-0.2.5p2 poppler pdf plugin for zathura
zathura-ps-0.2.2p3  spectre postscript plugin for zathura
zenity-3.20.0   dialogs for GNOME


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-11 Thread Alessandro DE LAURENZIS

On 2016-08-11 15:23, Alessandro DE LAURENZIS wrote:

Hello David,

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


restarting it before suspend to disk works flawlessly.

Cheers


It's worth mentioning that suspending to RAM does *not* trigger the 
crash.


--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-11 Thread Alessandro DE LAURENZIS

Hello David,

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


restarting it before suspend to disk works flawlessly.

Cheers

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



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

2016-08-11 Thread Alessandro DE LAURENZIS

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?

All the best

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



cvsweb: headers of revision files are shown in plain text

2016-08-11 Thread Alessandro DE LAURENZIS
= 1; # default: enabled

# allow extra hlink formatting (such as PR xrefs) in directories
$allow_dir_extra = 1;

# allow extra hlink formatting in source code/formatted diff views
$allow_source_extra = 1;

# allow compression with gzip
# of output if the Browser accepts
# it (HTTP_ACCEPT_ENCODING=gzip)
# [make sure to have gzip in the path]
$allow_compress = 0;

# Make use of javascript functions.
# This way you can select one of your CVSroot
# without pressing 'Go' (.. if you do have more
# than one CVSROOT defined)
$use_java_script = 1;

# open Download-Links in another window
$open_extern_window = 1;

# The size of this extern window; this size option
# needs use_java_script to be defined
# just comment them if you don't want to have a fixed
# size
#$extern_window_width = 600;
#$extern_window_height = 440;

# Edit Options
# Enable form to edit your options (hideattic,sortbydate)
# this isn't necessary if you've $dirtable defined 'cause
# this allows editing of all your options more intuitive
$edit_option_form = (not $dirtable);

# If you have files which automatically refers to other files
# (such as HTML) then this allows you to browse the checked
# out files as if outside CVS.
$checkout_magic = 1;

# Show last changelog message for sub directories
# The current implementation makes many assumptions and may show the
# incorrect file at some times. The main assumption is that the last
# modified file has the newest filedate. But some CVS operations
# touches the file without even when a new version is't checked in,
# and TAG based browsing essientially puts this out of order, unless
# the last checkin was on the same tag as you are viewing.
# Enable this if you like the feature, but don't rely on correct results.
$show_subdir_lastmod = 0;

# Background color of logentry in markup
$markupLogColor = "#ff";

# Show CVS log when viewing file contents
$show_log_in_markup = 1;

# Preformat when viewing file contents.  This should be turned off
# when you have files in the repository that are in a multibyte
# encoding which uses HTML special characters ([<>&"]) as part of a
# multi-byte character. (such as iso-2022-jp, ShiftJIS, etc.)
# Otherwise those files will get screwed up in markup.
$preformat_in_markup = '';

# Tabstop used to expand tabs in colored diffs. If undefined then
# tabs are always expanded to 8 spaces.
$tabstop = 8;

# if you wish to display absolute times in your local timezone,
# then define mytz and fill in the strings for your standard and
# daylight time. Note that you must also make sure the system
# timezone is correctly set.
# @mytz=("EST", "EDT");

# cvsweb is friendly to caches by indicating a suitable
# last-modified timestamp. Doing this uses slightly more
# CPU so you might want to disable it if you have a slow
# server
$use_moddate = 1;

# Allows downloading a tarball of the current directory if set.
# Bear in mind that this allows downloading a tarball of your entire
# repository, which can take a lot of time and disk space to create!
# If you enable this, you may need to make sure that cvsweb can write to
# CVSROOT/val-tags, due to a bug in cvs.
$allow_tar = '';

# Options to pass to tar(1).
@tar_options = qw();

# e.g. @tar_options = qw(--ignore-failed-read);
#  GNU tar has some useful options against unexpected errors.

# Options to pass to gzip(1) when compressing a tarball to download.
@gzip_options = qw();

# e.g. @gzip_options = qw(-3);
#  Try lower compression level than 6 (default) if you want faster
#  compression, or higher, for better compression.

# Options to pass to zip(1) when compressing a zip archive to download.
@zip_options = qw();

# e.g. @zip_options = qw(-3);
#  Try lower compression level than 6 (default) if you want faster
#  compression, or higher, for better compression.

# Options to pass to cvs(1).
# For cvs versions prior to 1.11, the '-l' option doesn't work; If you want
# working checkouts with an older cvs version, you'll have to make sure that
# the cvsweb user can read and write to CVSROOT/history.
@cvs_options = qw(-lf);

push @cvs_options, '-R' if ($uname eq 'FreeBSD' || $uname eq 'OpenBSD');
push @cvs_options, '-u' if ($uname eq 'NetBSD');

#  Only FreeBSD's and OpenBSD's cvs(1) supports -R (read only access
#  mode) option, which considerably speeds up checkouts over NFS.
#  A similar effect is provided by -u on NetBSD.

# Options to pass to the 'cvs annotate' command, usually the normal
# @cvs_options are good enough here.
@annotate_options = @cvs_options;

#  To make annotate work against a read only repository, add -n, e.g.:
#  @annotate_options = (@cvs_options, '-n');

1;

#EOF

I would really appreciate suggestions...

Thanks in advance

--
Alessandro DE LAURENZIS
[mailto:jus...@atlantide.t28.net]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Low brightness in text console

2016-06-16 Thread Alessandro DE LAURENZIS

Marcus, Walter,

On 06/06/16 10:22, Marcus MERIGHI wrote:

To me this sounds like "Screen brightness is reset when changing from X
to console" thread on bugs@ [1].

[1] http://marc.info/?l=openbsd-bugs=146451346724515

Walter Alejandro Iglesias' workaround worked for me (thank you,
Walter!):

- run -current.
- use /etc/xorg.conf:

Section "Device"
Identifier  "Card0"
Driver  "intel"
Option  "AccelMethod"  "UXA"
EndSection


I confirm that this works as expected. I got the impression that the 
switch is snappier, too.


Sorry for the late feedback, I just had some spare time to try...

Thanks a lot for your help

--
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Low brightness in text console

2016-06-05 Thread Alessandro DE LAURENZIS

Hello Noah,

On 06/05/16 16:52, Noah wrote:

Have you tried "wsconsctl display.brightness=100" yet?

What's the output of "wsconsctl display" from the text console?


display.type=inteldrm
display.emulations=vt100
display.screentypes=std
display.focus=0
display.brightness=100.00%
display.screen_on=250
display.screen_off=0
display.vblank=off
display.kbdact=on
display.msact=on
display.outact=on

but setting "display.brightness" to a lower value makes the screen 
actually brighter; and putting 100 after restore the correct brightness.


Somewhat similar to [1], but in this case putting

display.brightness=50
display.brightness=100

in /etc/wsconsctl.conf doesn't help a lot, 'cause the misbehaviour 
happens again after the next Ctrl-Alt-FnX switch.


It's worth mentioning that switching back to X, the brightness stays low 
for a (very) short time, then it's restored.


Copying Mark, just in case he's interested in this too.

All the best

[1] http://marc.info/?l=openbsd-misc=146006055104594=2




On Sun, Jun 5, 2016 at 1:06 AM, Alessandro DE LAURENZIS
<just22@gmail.com <mailto:just22@gmail.com>> wrote:

Dear misc@ readers,

Starting from some snapshot probably in April, when I switch to text
console (Ctrl-Alt-FnX), the LCD brightness is reduced (it's restored
when I switch back to X).

Not a really new thing: I remember something similar happening some
years ago, but recently the switch worked flawlessly.

dmesg in [0].

Thanks in advance for any info.

Cheers

[0]
OpenBSD 6.0-beta (GENERIC.MP <http://GENERIC.MP>) #2157: Tue May 31
17:02:24 MDT 2016

dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
<http://GENERIC.MP>
real mem = 3177906176  (3030MB)
avail mem = 3077050368  (2934MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version "7LETD0WW (2.30 )" date 02/27/2012
bios0: LENOVO 7735WX2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT ASF! SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4)
EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3)
USB1(S3) USB2(S3) USB3(S3) USB4(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.14 MHz
cpu0:

FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 3MB 64b/line 8-way L2 cache
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, C-substates=0.2.2.2.2.1.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.00 MHz
cpu1:

FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 3MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1
mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(250@17 mwait.3@0x20), !C2(500@1
mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"PNP0303" at acpi0 not configured
"IBM0057" at acpi0 not configured
"ATM1200" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "42T5264" serial  4317 type LION oem
"Panasonic"
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
acpivout0 at acpivideo0: LCD0
acpivideo1 at acpi0: VID_
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2101, 2100, 160

Low brightness in text console

2016-06-05 Thread Alessandro DE LAURENZIS
ot hub" rev 1.00/1.00 addr 1
uhub2 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
uhub3 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
uhub4 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
uhub5 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
uhub6 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ugen0 at uhub0 port 1 "Broadcom Corp BCM2045B" rev 2.00/1.00 addr 2
uhidev0 at uhub1 port 1 configuration 1 interface 0 "Logitech USB 
Receiver" rev 2.00/12.01 addr 2

uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1 "Logitech USB 
Receiver" rev 2.00/12.01 addr 2

uhidev1: iclass 3/1, 8 report ids
ums0 at uhidev1 reportid 2: 16 buttons, Z and W dir
wsmouse2 at ums0 mux 0
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0
uhidev2 at uhub1 port 1 configuration 1 interface 2 "Logitech USB 
Receiver" rev 2.00/12.01 addr 2

uhidev2: iclass 3/0, 33 report ids
uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0
uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0
uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0
uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0
receive error 54 from nfs server argo:/vol/datavol01
receive error 54 from nfs server argo:/vol/sys_backup
receive error 54 from nfs server argo:/home/export/bt

--
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



No ping response from www.openbsd.org

2016-06-05 Thread Alessandro DE LAURENZIS

Trying to ping openbsd.org I obtain no response.

Could someone confirm that the feature has been disabled on purpose? Is 
there a specific (security?) reason for that?


Thanks

--
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Print-to-file crashes firefox and xombrero

2016-05-25 Thread Alessandro DE LAURENZIS
Hi Stefan, 

On Wed 25/05/2016 18:24, Stefan Wollny wrote:
> Hi there!
> 
> Running the latest available amd64-snapshot I noticed that when trying
> to print from a web-page to a local file (PDF) firefox (and xombrero)
> reliably crash.
> 
> This is the source:
> http://www.spiegel.de/netzwelt/web/norbert-hofer-donald-trump-und-ueberwachung-sascha-lobo-kolumne-a-1094061-druck.html
> 
[...]

Tried a few time (same ff version), not able to reproduce the issue...

This is the snapshot I'm using:

OpenBSD 6.0-beta (GENERIC.MP) #2084: Thu May 19 16:19:04 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

My few cents

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Is sysmerge(8) no more needed?

2016-05-20 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

At the end of my last upgrade, I didn't find he message relating to sysmerge(8)
as the first operation to be run after rebooting.

Isn't it required anymore? I didn't find nothing about that in this
list...

Thanks

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



xfce4-mixer: volume level is incoherent after modifications through media keys

2016-05-07 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

OpenBSD 5.9-current (GENERIC.MP) #2005: Thu May  5 18:04:12 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

┌──[just22@poseidon]-[0]-[✓]-[~]
└─› pkg_info -Q xfce4-mixer
xfce4-mixer-4.11.0p1 (installed)

I noticed that, when I modify the volume level using the multimedia
keys, value in the panel plugin isn't updated (this machine is a Lenovo
R61, in case that matters).


Is it just me or is this a known bug/limitation?

Thanks for any feedback.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Surf2 first feedback

2016-03-19 Thread Alessandro DE LAURENZIS
Hello Dmitrij,

Sorry for my direct approach, but I know you're involved into Surf2
webkit2 porting (even upstream), so I would like to give you a
preliminary feedback (during these days I finally had a bit of spare
time and applied all my patches to the new branch):

1) PLUMB is not working; I use a script to manage "mailto:; protocol
(AFAICT, xdg-open open_generic function is buggy or not intended for
this purpose):

[snip]
#define PLUMB(u) {\
.v = (char *[]){ "/bin/sh", "-c", \
 "protocol-handler \"$0\"", u, NULL \
} \
}
[snip]


[snip]
#!/bin/sh

# File: protocol-handler
# Purpose:  Handles some specific protocols different from "http://;,
#   "https://;, "file://", "about:"
# Author:   A. DE LAURENZIS

if [ $# -ne 1 ]; then
echo "Usage: protocol-handler "
exit 1
fi

PROT=$(echo "$1" | egrep -o "^[a-z0-9]+:/{0,2}")
URI=$(echo "$1" | sed "s|$PROT||")

case "$PROT" in
mailto*)
xterm -e mutt "$URI"
;;
*)
echo "Unknown protocol $PROT"
exit 2
;;
esac
exit 0
[snip]

but when I click on an e-mail address, the browser reports the following
message:

URL cannot be shown


2) I use the script in [1] for link hinting (of course, it is in
~/.surf/script.js and it's the only one); but pressing the Alt key, that
should highlight the link numbers, nothing happens.

Needless to say, both things are pretty functional in Surf (with
webkit1).

Just my 2 cents.

All the best


[1]: http://surf.suckless.org/files/easy_links

-- 
Alessandro DE LAURENZIS
[mailto:sandro.delauren...@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



tput(1) setaf capability and 256color terminals

2015-11-19 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

>From terminfo(5) man page:

[...]
The setaf/setab and setf/setb capabilities take a single numeric
argument each.
[...]

Well, I'm trying to set up a 256-color terminal:

[snip]
$ echo $TERM
xterm-256color
$ tput setaf 1
tput: not enough arguments (3) for capability `setaf'
[snip]

Ok, let's have a look at the terminfo database:

[snip]
$ infocmp xterm | grep setaf
setaf=\E[3%p1%dm,
$ infocmp xterm-256color | grep setaf
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
[snip]

Indeed, counting the "%d" occurrences, the setaf capability setting
requires just one argument for "xterm", and three for "xterm-256color".

Not being able to understand the meaning of the terminfo entries, I do
not know how to set those parameters...

At first glance, it seems that the first one is the color (as per
manpage description), and the other two don't have any effect, but I
hope that someone of you guys can remove some clues.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



New less(1) in base and RAW-CONTROL-CHARS option

2015-11-14 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

After the recent switch to less(1) from Illumos, I noticed that the
--RAW-CONTROL-CHARS option, although documented, isn't supported
anymore:

[snip]
┌──[just22@poseidon]-[0]-[✓]-[~]
└─› colorls -Gla | less --RAW-CONTROL-CHARS
There is no RAW-CONTROL-CHARS option ("less --help" for help)
[snip]

Instead, "-R" is still accepted; but the behavior is still confusing,
since it seems that ANSI color escape sequences are output in raw form
by default; i.e. both:

[snip]
┌──[just22@poseidon]-[0]-[✓]-[~]
└─› colorls -G | less
[snip]

and:

[snip]
┌──[just22@poseidon]-[0]-[✓]-[~]
└─› colorls -G | less -R
[snip]

give the exact same result. Should we remove the "-R" option completely
(from the man page too) or am I missing something obvious?

Thanks for your time

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Chromium-44.0 freezes a machine with 5.8-STABLE

2015-10-26 Thread Alessandro DE LAURENZIS
9 function 0 "Intel 82801H USB" rev 0x03: apic 1 int 20
uhci2 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int 21
uhci3 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int 18
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int 20
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
pci5 at ppb4 bus 2
pcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi, AHCI 1.1
ahci0: port 0: 3.0Gb/s
ahci0: port 2: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Hitachi HTS72323, FC4O> SCSI3 0/direct 
fixed naa.5000cca582d98f33
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
cd0 at scsibus1 targ 2 lun 0: <hp, CDDVDW TS-L633M, 0301> ATAPI 5/cdrom 
removable
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uhub6 at uhub1 port 2 "Genesys Logic USB2.0 Hub" rev 2.00/9.01 addr 2
uhub7 at uhub6 port 1 "Genesys Logic USB2.0 Hub" rev 2.00/9.01 addr 3
uhidev0 at uhub7 port 2 configuration 1 interface 0 "CHICONY HP Basic USB 
Keyboard" rev 1.10/3.00 addr 4
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub6 port 2 configuration 1 interface 0 "Logitech USB-PS/2 Optical 
Mouse" rev 2.00/27.20 addr 5
uhidev1: iclass 3/1
ums0 at uhidev1: 8 buttons, Z dir
wsmouse1 at ums0 mux 0
uaudio0 at uhub6 port 3 configuration 1 interface 1 "Logitech product 0x089d" 
rev 1.10/1.00 addr 6
uaudio0: audio rev 1.00, 3 mixer controls
audio1 at uaudio0
ugen0 at uhub6 port 3 configuration 1 "Logitech product 0x089d" rev 1.10/1.00 
addr 6
uvideo0 at uhub1 port 5 configuration 1 interface 0 "Chicony Electronics Co., 
Ltd. CNF8243" rev 2.00/85.39 addr 7
video0 at uvideo0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (5a985a987f3fa32e.a) swap on sd0b dump on sd0b
WARNING: / was not properly unmounted

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Strange network issue during startup

2015-10-26 Thread Alessandro DE LAURENZIS
Hi Mike,

On Fri 09/10/2015 19:20, Mike Belopuhov wrote:
> On 9 October 2015 at 19:15, Alessandro DE LAURENZIS
> <just22@gmail.com> wrote:
> > Hi Mike,
> >
> > On Fri 09/10/2015 19:07, Mike Belopuhov wrote:
> >> Hi,
> >>
> >> Please drop the diff I've sent you and try current.
> >> The fix should be in the if_trunk.c revision 1.121.
> >>
> >
> > Just tried 9 Oct snapshot: problem solved!
> >
> > Thank you very much for your prompt reaction.
> >
> > Just out of my curiosity: was this the same problem in [0]?
> >
> > Cheers
> >
> > [0] http://marc.info/?l=openbsd-misc=144422539521881=2
> >
> 
> Yeah, this is the diff that I've committed.

I'm facing this problem also on a machine powered by 5.8-STABLE...

Could you please confirm that this is expected (I was under the
impression that the issue arose after the release freeze, but I'm not
sure...)?

If so, is your patch applicable to the 5_8 source code? Where could I
find it?

Or is it just me?

Let me know.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: apache 2.4 - Missing mod_cgid.so?

2015-10-24 Thread Alessandro DE LAURENZIS
Hi Claudio,

On Fri 23/10/2015 22:47, Claudio Jeker wrote:
[...]
> You may try to build your own version with adding --enable-cgi in the
> Makefile configure flags. It seems that even configure tells that
> --enable-cgi is the default it seems it is not. Go figure...
> 
> Also mod_cgid.so should be built but seems to be missing. mod_cgid.so is
> the module that should be used with the worker or event MPM.
[...]

That did the trick!
We should update both current and 5.8-STABLE port, I think.

Thank you very much for your prompt feedback.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Strange network issue during startup

2015-10-09 Thread Alessandro DE LAURENZIS
Hi Mike,

On Fri 09/10/2015 19:07, Mike Belopuhov wrote:
> Hi,
> 
> Please drop the diff I've sent you and try current.
> The fix should be in the if_trunk.c revision 1.121.
> 

Just tried 9 Oct snapshot: problem solved!

Thank you very much for your prompt reaction.

Just out of my curiosity: was this the same problem in [0]?

Cheers

[0] http://marc.info/?l=openbsd-misc=144422539521881=2

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Strange network issue during startup

2015-10-09 Thread Alessandro DE LAURENZIS
Hi Mike,

[...]
> Is this from the /root/ifconfig.out?  Trunk interface should not
> have an IP address at this point.  How does your /etc/hostname.trunk0
> look like right now?

My bad, I pasted the wrong text; this is the output of "ifconfig -A"
*before* dhclient call:

[snip]
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
lladdr 00:21:86:94:34:8e
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (none)
status: no carrier
iwn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:21:86:94:34:8e
priority: 4
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid atlantide-wifi wpakey 
0xf96acbd7cd0c83a067230aa41acce73e4cf87cd1bd6d81ed4ec5570c10cef321 wpaprotos 
wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
priority: 0
groups: enc
status: active
trunk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:21:86:94:34:8e
priority: 0
trunk: trunkproto failover
trunkport iwn0 active
trunkport em0 master
groups: trunk
media: Ethernet autoselect
status: active
[snip]

Just for the sake of completeness:

[snip]
┌──[just22@poseidon]-[0]-[✓]-[~]
└─› cat /etc/hostname.trunk0 
trunkproto failover
trunkport  em0
trunkport  iwn0
!/sbin/ifconfig -A >/root/ifconfig.out 2>&1
dhcp
[snip....]

I'll try your patch asap.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Strange network issue during startup

2015-10-06 Thread Alessandro DE LAURENZIS
Hello Mike,

Thanks for your feedback,

On Mon 05/10/2015 16:43, Mike Belopuhov wrote:
> 
> Can you please add an "ifconfig -A" invocation to your hostname.trunk0:
> 
> trunkproto failover
> trunkport  em0
> trunkport  iwn0
> !/sbin/ifconfig -A >/root/ifconfig.out 2>&1
> dhcp
> 
> And send me the output.

[snip]
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0: flags=8b43<UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST> mtu 
1500
lladdr 00:21:86:94:34:8e
priority: 0
trunk: trunkdev trunk0
media: Ethernet autoselect (none)
status: no carrier
iwn0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:21:86:94:34:8e
priority: 4
trunk: trunkdev trunk0
groups: wlan
media: IEEE802.11 autoselect (DS1)
status: no network
ieee80211: nwid  wpakey  wpaprotos wpa1,wpa2 wpaakms 
psk wpaciphers tkip,ccmp wpagroupcipher tkip
enc0: flags=0<>
priority: 0
groups: enc
status: active
trunk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:21:86:94:34:8e
priority: 0
trunk: trunkproto failover
trunkport iwn0 active
trunkport em0 master
groups: trunk egress
media: Ethernet autoselect
status: active
inet 192.168.1.13 netmask 0xff00 broadcast 192.168.1.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33144
priority: 0
groups: pflog
[snip]

To me, it seems that trunk0 is correctly bound to the wifi and has an IP
address assigned...

> 
> Could you also try to capture the initial output from the dhclient
> or make a photo of the DHCP progress (and failure).
> 

Nothing "special":

[snip]
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPREQUEST on trunk0 to 255.255.255.255
DHCPDISCOVER on trunk0 - interval 1
DHCPDISCOVER on trunk0 - interval 2
DHCPDISCOVER on trunk0 - interval 3
DHCPDISCOVER on trunk0 - interval 8
DHCPDISCOVER on trunk0 - interval 11
DHCPDISCOVER on trunk0 - interval 11
DHCPDISCOVER on trunk0 - interval 14
DHCPDISCOVER on trunk0 - interval 9
No acceptable DHCPOFFERS received
Trying recorded lease 192.168.1.13
bound to 192.168.1.13 - renewal in 21600 seconds.
[snip]

> Here's also a diff for you to try:
> 
> diff --git sys/net/if_trunk.c sys/net/if_trunk.c
> index 07237ae..446e418 100644
> --- sys/net/if_trunk.c
> +++ sys/net/if_trunk.c
> @@ -1352,14 +1352,16 @@ int
>  trunk_fail_start(struct trunk_softc *tr, struct mbuf *m)
>  {
>   struct trunk_port *tp = (struct trunk_port *)tr->tr_psc;
>  
>   /* Use the master port if active or the next available port */
> - if (tp == NULL) {
> + if (tp == NULL &&
> + (tp = trunk_link_active(tr, tr->tr_primary)) == NULL) {
>   m_freem(m);
>   return (ENOENT);
>   }
> +     tr->tr_psc = (caddr_t)tp;
>  
>   return (if_enqueue(tp->tp_if, m));
>  }
>  
>  int
bear with me, I need a couple of days to try this; I'll keep you
updated.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Strange network issue during startup

2015-10-04 Thread Alessandro DE LAURENZIS
 rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
aps0 at isa0 port 0x1600/31
ugen0 at uhub2 port 1 "Broadcom Corp BCM2045B" rev 2.00/1.00 addr 2
uhidev0 at uhub4 port 2 configuration 1 interface 0 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub4 port 2 configuration 1 interface 1 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev1: iclass 3/1, 8 report ids
ums0 at uhidev1 reportid 2: 16 buttons, Z dir
wsmouse2 at ums0 mux 0
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 8: input=1, output=0, feature=0
uhidev2 at uhub4 port 2 configuration 1 interface 2 "Logitech USB Receiver" rev 
2.00/12.01 addr 2
uhidev2: iclass 3/0, 33 report ids
uhid3 at uhidev2 reportid 16: input=6, output=6, feature=0
uhid4 at uhidev2 reportid 17: input=19, output=19, feature=0
uhid5 at uhidev2 reportid 32: input=14, output=14, feature=0
uhid6 at uhidev2 reportid 33: input=31, output=31, feature=0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (ff014e14e96d5c40.a) swap on sd0b dump on sd0b
iwn0: RF switch: radio disabled
iwn0: Radio transmitter is off
ugen0 detached

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: gphoto2 (PTP mode camera) no more working in -current

2015-08-28 Thread Alessandro DE LAURENZIS
Hello,

On Thu 27/08/2015 07:49, Alessandro DE LAURENZIS wrote:
 Dear misc@ readers,
 
 I have an old Canon camera (model Digital IXUS 40); it was perfectly
 working in 5.7 through gphoto2 in PTP mode.
 
 It doesn't work anymore in -current (5.8 GENERIC.MP#1267 amd64).
 
 gphoto2 (well, I use gtkam actually) correctly detects it, but the
 connection cannot be established. This is an excerpt of the debug
 messages:

[...]

 All those libusb errors look suspicious, but I need directions for
 further debug...
 
 Please note that concerned port versions (gtkam 0.2.0, libgphoto2 2.5.8,
 libgphoto2_port 0.12.0) didn't change b/w 5.7 and snapshots, so the
 problem must be somewhere else.

I partially tracked it down; actually, I reported a wrong info: recently
in snapshots libgphoto2 has been updated from 2.5.7 to 2.5.8; my camera
still properly works downgrading to 2.5.7

Maybe something to do with the libusb-compat/libusb1 change?

Anyone can comment on this? Antoine?

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: gphoto2 (PTP mode camera) no more working in -current

2015-08-28 Thread Alessandro DE LAURENZIS
Hi Antoine,

On Fri 28/08/2015 09:57, Antoine Jacoutot wrote:
 Long shot but does it help using libusb-compat?
 (note that I did not bump the port, it's just for testing)
[...]

Applying the patch, it works flawlessly again! So we should revert to
libusb-compact for this port...

Many thanks for your prompt feedback.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Fw:[Re: gphoto2 (PTP mode camera) no more working in -current]

2015-08-27 Thread Alessandro DE LAURENZIS
- Forwarded message from Kent R. Spillner kspill...@acm.org -

From: Kent R. Spillner kspill...@acm.org
To: Alessandro DE LAURENZIS just22@gmail.com
Date: Thu, 27 Aug 2015 09:57:50 -0500 (CDT)
Subject: Re: gphoto2 (PTP mode camera) no more working in -current

Not to me, to the list.  :P

-Original Message-
From: Alessandro DE LAURENZIS just22@gmail.com
Sent: Thursday, August 27, 2015 08:53
To: Kent R. Spillner kspill...@acm.org
Subject: Re: gphoto2 (PTP mode camera) no more working in -current

Hello Kent,

On Thu 27/08/2015 06:22, Kent R. Spillner wrote:
 dmesg?

See [0].

All the best

[0]
[snip]
OpenBSD 5.8-current (GENERIC.MP) #1267: Mon Aug 24 15:30:23 MDT 2015
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2087387136 (1990MB)
avail mem = 2020290560 (1926MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (73 entries)
bios0: vendor LENOVO version 7LETD0WW (2.30 ) date 02/27/2012
bios0: LENOVO 7735WX2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT ASF! SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) IGBE(S4) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) 
USB3(S3) USB4(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.22 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 3MB 64b/line 8-way L2 cache
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, C-substates=0.2.2.2.2.1.3, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz, 798.00 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 3MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: !C3(100@162 mwait.3@0x50), !C2(500@1 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: !C3(100@162 mwait.3@0x50), !C2(500@1 mwait.1@0x10), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB4, EHC0, EHC1
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 42T5264 serial  4317 type LION oem Panasonic
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2101, 2100, 1600, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel GM965 Host rev 0x0c
vga1 at pci0 dev 2 function 0 Intel GM965 Video rev 0x0c
intagp0 at vga1
agp0 at intagp0: aperture at 0xe000, size 0x1000
inteldrm0 at vga1
drm0 at inteldrm0
inteldrm0: 1280x800
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
Intel GM965 Video rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 Intel ICH8 IGP M AMT rev 0x03: msi, address 
00:21:86:94:34:8e
uhci0 at pci0 dev 26 function 0 Intel 82801H USB rev 0x03: apic 1 int 20
uhci1 at pci0 dev 26 function 1 Intel 82801H USB rev 0x03: apic 1 int 21
ehci0 at pci0 dev 26 function 7 Intel 82801H USB rev 0x03: apic 1 int 22
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 Intel 82801H HD Audio rev 0x03: msi
azalia0: codecs: Analog Devices AD1984, Conexant/0x2bfa, using Analog Devices 
AD1984
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801H PCIE rev 0x03: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 Intel 82801H PCIE rev 0x03: msi
pci2 at ppb1 bus 3
iwn0 at pci2 dev 0 function 0 Intel Wireless WiFi Link 4965 rev 0x61: msi, 
MIMO 2T3R, MoW2, address 00:21:5c:75:a7:1d
ppb2 at pci0 dev 28 function 2 Intel 82801H PCIE rev 0x03: msi
pci3 at ppb2 bus 4
ppb3 at pci0 dev 28 function 3 Intel

Re: wtfs write error when running newfs

2015-08-26 Thread Alessandro DE LAURENZIS
Hello Thomas,

On Wed 26/08/2015 02:27, Thomas Bohl wrote:
[...]
 
 Does it work when you make the partition smaller than 160086527?
 

The behavior is the same whatever dimension I set for the partition.

On top of that, I noticed that MBR init through fdisk doesn't work too:

[snip]
root@poseidon:[~] fdisk -i sd1
Do you wish to write new MBR and partition table? [n] y
Writing MBR at offset 0.
fdisk: error writing MBR: No such file or directory
[snip]

At this point, I suspect a compatibility issue of the (very old)
IDE-to-USB case...

Thanks for your feedback

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



gphoto2 (PTP mode camera) no more working in -current

2015-08-26 Thread Alessandro DE LAURENZIS
 bytes to port failed: Error writing to the port (-35)
PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
Clearing halt on OUT EP and retrying once.
Clear USB halt...
'libusb_clear_halt(port-pl-dh, internal_ep)' failed: Other error (-99)
'libusb_bulk_transfer (port-pl-dh, port-settings.usb.outep, (unsigned 
char*)bytes, size, curwritten, port-timeout)' failed: Other error (-99)
Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)
Sending usb device reset request.
'handled = libusb_control_transfer (port-pl-dh, flags, request, value, index, 
(unsigned char*)bytes, size, port-timeout)' failed: Other error (-99)
PTP: Opening session
Sending PTP_OC 0x1002 / Open session request...
'libusb_bulk_transfer (port-pl-dh, port-settings.usb.outep, (unsigned 
char*)bytes, size, curwritten, port-timeout)' failed: Other error (-99)
Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
Clearing halt on OUT EP and retrying once.
Clear USB halt...
'libusb_clear_halt(port-pl-dh, internal_ep)' failed: Other error (-99)
'libusb_bulk_transfer (port-pl-dh, port-settings.usb.outep, (unsigned 
char*)bytes, size, curwritten, port-timeout)' failed: Other error (-99)
Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)
'ret' failed: 'PTP I/O Error' (0x02ff)
PTP I/O Error
Closing port...
canceling transfer 0:0x1d9a03209438 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 1:0x1d9a9e32f5b8 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 2:0x1d9a962dc738 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 3:0x1d9a9e32f538 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 4:0x1d9a95663fb8 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 5:0x1d9a956631b8 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 6:0x1d9a03209938 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 7:0x1d9a962dc6b8 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 8:0x1d9a03209a38 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
canceling transfer 9:0x1d9a956632b8 (status 0)
'libusb_cancel_transfer(port-pl-transfers[i])' failed: Operation not 
supported or unimplemented on this platform (-12)
Freeing camera...
Freeing port...
Closing port...
resetting filesystem
Clearing fscache LRU list...
fscache LRU list already empty
Internally deleting all folders from '/'...
Lookup folder '/'...
Found! / is 0x1d9a80f59880
Recurse delete folder 0x1d9a80f59880//
Invalid parameters: 'camera' is NULL/FALSE.
Invalid parameters: 'camera' is NULL/FALSE.
[snip]

All those libusb errors look suspicious, but I need directions for
further debug...

Please note that concerned port versions (gtkam 0.2.0, libgphoto2 2.5.8,
libgphoto2_port 0.12.0) didn't change b/w 5.7 and snapshots, so the
problem must be somewhere else.

I also tried disabling the XHCI support in the kernel, but the behavior
is the same.

Thanks in advance for any hints.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



wtfs write error when running newfs

2015-08-23 Thread Alessandro DE LAURENZIS
-Only
scsibus5 at umass0: 2 targets, initiator 0
sd1 at scsibus5 targ 1 lun 0: Maxtor 6, Y080P0, 0 0 SCSI0 0/direct fixed
sd1: 78167MB, 512 bytes/sector, 160086528 sectors

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Setting a git http server with httpd(8): directions needed

2015-08-14 Thread Alessandro DE LAURENZIS
Hello again,

On Fri 14/08/2015 11:51, Alessandro DE LAURENZIS wrote:
 Dear misc@ readers,
 
 I'm trying to set up a git server with HTTP as transfer protocol, using
 httpd(8) in base; considering that info on the net are very sparse
 when apache isn't the subject and that I'm completely a newbie of this
 matter, it isn't difficult to understand that I'm a bit lost...
[...]
 The first thing that comes to my mind is: I know that I should set the
 two environmental variables GIT_PROJECT_ROOT (to /git I suppose) and
 GIT_HTTP_EXPORT_ALL, but I don't know how to export them to the CGI
 script...

So, if I understand correctly, I need something equivalent to the
fastcgi_param setting in nginx:

location ~ /git(/.*) {
fastcgi_pass  localhost:9001;
include   fastcgi_params;
fastcgi_param SCRIPT_FILENAME 
/usr/lib/git-core/git-http-backend;
fastcgi_param GIT_HTTP_EXPORT_ALL ;
fastcgi_param GIT_PROJECT_ROOT/srv/git;
fastcgi_param PATH_INFO   $1;
}

but I'm afraid that httpd(8) doesn't support that... Anybody could
confirm and/or suggest a possible workaround?

I tried to make a sh wrapper around git-http-backend:

location /git/* {
authenticate with /git/.htaccess
fastcgi socket /run/slowcgi.sock
root /git/git-http-backend-wrapper
}

# cat /var/www/git/git-http-backend-wrapper
#!/bin/sh

GIT_PROJECT_ROOT=/git GIT_HTTP_EXPORT_ALL= /cgi-bin/git-http-backend


(of course I copied /bin/sh in /var/www/bin), but it doesn't seem to work...

Thanks in advance for any hints

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Setting a git http server with httpd(8): directions needed

2015-08-14 Thread Alessandro DE LAURENZIS
Hello Stefan,

On Fri 14/08/2015 12:19, Stefan Sperling wrote:
 This is not a static binary. So to use it in chroot you have to copy
 shared libraries it needs into chroot as well. Did you already do that?
 
 $ ldd /usr/local/libexec/git/git-http-backend
 /usr/local/libexec/git/git-http-backend:
   StartEnd  Type Open Ref GrpRef Name
   0c677840 0c67788e9000 exe  10   0  
 /usr/local/libexec/git/git-http-backend
   0c6a29525000 0c6a2993a000 rlib 01   0  
 /usr/lib/libz.so.5.0
   0c6a59762000 0c6a59c6 rlib 02   0  
 /usr/local/lib/libiconv.so.6.0
   0c69cd452000 0c69cd85c000 rlib 01   0  
 /usr/local/lib/libintl.so.6.0
   0c69aeac4000 0c69af095000 rlib 01   0  
 /usr/lib/libcrypto.so.34.0
   0c6a60818000 0c6a60c2a000 rlib 02   0  
 /usr/lib/libpthread.so.19.0
   0c69c28b9000 0c69c2d93000 rlib 01   0  
 /usr/lib/libc.so.80.1
   0c6a1ad0 0c6a1ad0 rtld 01   0  
 /usr/libexec/ld.so

Now they are copied; I think it should be ok:

- before:
# chroot -g daemon -u www /var/www /git/git-http-backend
Abort trap 

- now:
# chroot -g daemon -u www /var/www /git/git-http-backend
Status: 500 Internal Server Error
Expires: Fri, 01 Jan 1980 00:00:00 GMT
Pragma: no-cache
Cache-Control: no-cache, max-age=0, must-revalidate

fatal: No REQUEST_METHOD from server


But still unable to clone the repo:

┌──[just22@poseidon]-[0]-[✓]-[tmp]
└─› git clone https://atlantide.t28.net/git/dotfiles.git
Cloning into 'dotfiles'...
fatal: repository 'https://atlantide.t28.net/git/dotfiles.git/' not
found

My point related to the env vars to be passed to the CGI script is still
valid, I guess...

Many thanks for your help

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Setting a git http server with httpd(8): directions needed

2015-08-14 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I'm trying to set up a git server with HTTP as transfer protocol, using
httpd(8) in base; considering that info on the net are very sparse
when apache isn't the subject and that I'm completely a newbie of this
matter, it isn't difficult to understand that I'm a bit lost...

First things first, this is what I would like to achieve:

- the bare repositories should be located at /var/www/git, so they
  should be accessible in the chroot-ed environment;

- the access to the repos for cloning and pushing should be protected by
  a userID/passwd mechanism.

I ended up with the following httpd config:

# cat /etc/httpd.conf
# $OpenBSD: httpd.conf,v 1.14 2015/02/04 08:39:35 florian Exp $

#
# Macros
#
ext_addr=*

#
# Global Options
#
prefork 3

#
# Servers
#

# A minimal (secure) server
server atlantide.t28.net { 
listen on $ext_addr tls port 443 
tls {
certificate /etc/ssl/https.crt
key /etc/ssl/private/https.key
}
root /htdocs/atlantide.t28.net

location /restricted/* {
directory auto index
authenticate with 
/htdocs/atlantide.t28.net/restricted/.htaccess
}
location /git {
authenticate with /git/.htaccess
fastcgi socket /run/slowcgi.sock
root /git/git-http-backend
}
}


This is the content of the /var/www/git directory:

# ls -la /var/www/git
total 1776
drwxr-xr-x   3 www   daemon 512 Aug 14 11:34 .
drwxr-xr-x  10 root  daemon 512 Aug 14 10:14 ..
-rw---   1 www   daemon  68 Aug 14 10:21 .htaccess
drwxr-xr-x   7 www   daemon 512 Aug 14 10:17 dotfiles.git
-r-xr-xr-x   1 root  daemon  884442 Aug 14 10:23 git-http-backend

(where .htaccess contains the users' credentials and git-http-backend is
a copy of /usr/local/libexec/git/git-http-backend).

slowcgi is running, too:

# ls -la /var/www/run/slowcgi.sock
srw-rw  1 www  www  0 Aug 14 10:12 /var/www/run/slowcgi.sock

If I point my browser to https://atlantide.t28.net/git, I'm asked for my
credentials, so the authentication method is working properly.

But if I try to access the dotfiles.git repository from a remote git
client, I obtain:

┌──[just22@poseidon]-[0]-[✓]-[tmp]
└─› git clone https://atlantide.t28.net/git/dotfiles.git
Cloning into 'dotfiles'...
fatal: repository 'https://atlantide.t28.net/git/dotfiles.git/' not found

Now, for sure a lot of things are still missing in this configuration,
but again: I definitely need some help here.

The first thing that comes to my mind is: I know that I should set the
two environmental variables GIT_PROJECT_ROOT (to /git I suppose) and
GIT_HTTP_EXPORT_ALL, but I don't know how to export them to the CGI
script...

Any additional hints (and of course, any corrections) are welcome, of
course.

Thanks in advance

--
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Show us your /etc/profile

2015-08-02 Thread Alessandro DE LAURENZIS
Hello Vijay,

On Sat 01/08/2015 14:09, Vijay Sankar wrote:
[...]
 To quickly see how many files I have in a directory, I use
 
 alias nof='ls -l . | egrep -c '^-''
 
 I have always wondered if there is a better way of doing this.

In general, I would avoid using a pipe when a native command exists (and
particularly in this case, where grep string comparison is a slow
operation); this could probably be more appropriate:

alias nof='find ./ -type f -maxdepth 1 | wc -l'

See the difference in runtime in case of a huge file listing (not so
uncommon...):

just22@poseidon:[tmp] time find ./ -type f -maxdepth 1 | wc -l
  113069

  real0m1.732s
  user0m0.100s
  sys 0m1.560s


just22@poseidon:[tmp] time ls -l ./ | egrep -c ^-
113069

real0m2.238s
user0m0.630s
sys 0m1.550s


All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Show us your /etc/profile

2015-08-02 Thread Alessandro DE LAURENZIS
On Sun 02/08/2015 08:23, Alessandro DE LAURENZIS wrote:
[...]
 operation); this could probably be more appropriate:
 
 alias nof='find ./ -type f -maxdepth 1 | wc -l'

Ok, that's clearly inefficient because the search is performed in all
subtrees, instead of cwd only; maybe this:

find . ! -name . -prune -type f -print | wc -l

- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



amd(8) - am-utils code transition (or am-utils new port)?

2015-07-27 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

Some weeks ago I realized that OpenBSD amd(8) lacks NFSv3 support (see
[1], [2]), which could increasingly become a serious limitation when
dimension of shared files exceed the 2GB limit.

Considering that the patch in [2] isn't working for me (maybe the
OpenBSD NFS server requires a proper treatment of the mount protocol
version on the client side as suggested by Philip Guenther?), I started
working on a more complete patch, starting from FreeBSD's amd(8),
but without luck, since the codes diverge significantly (and, most
important, I'm definitely not an expert programmer...)

So I tried to use the am-utils ([3]) latest version (6.2) and I
noticed that, apart from a minor modification to the OpenBSD specific
configuration (which could be discussed with the author), it compiles
flawlessly and works as expected (in order to tackle the command name
conflicts, I'm temporary renaming amd/amq in base, and starting the
daemon through rc.local).

I'm just wondering if:

1) there is a specific reason why the am-utils code is not imported in
the base system, or it is only due to lack of devs' interest /
manpower;

2) building a port might be a solution (I could try to work on
that, just give me some hints on the cleanest way to avoid the
command name conflict).

Any feedback/hints are welcome, of course!

Thanks in advance for your time

[1] http://marc.info/?l=openbsd-miscm=143480317120952w=2
[2] http://marc.info/?l=openbsd-bugsm=142049488315510w=2
[3] http://www.am-utils.org/

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: amd (BSD automounter) stuck at nfsv2?

2015-06-22 Thread Alessandro DE LAURENZIS
Hi Predrag,
On Tue 23/06/2015 00:32, Predrag Punosevac wrote:
 On Sat 20/06/2015 14:25, Alessandro DE LAURENZIS wrote:
  Dear misc@ readers,
  
  I actually use amd for a long time, but I never realized this until I
  started to share large files...
  
 [...]
  but nothing changes. Of course, NFSv2 works properly only for files
  smaller than 2GB, so this is becoming a showstopper for this setup.
  [...]
 
  From [1] I understand that NFSv3 is still unsupported in OpenBSD's amd.
 
  Sorry for the noise.
 
  All the best
 
 [1] http://marc.info/?l=openbsd-bugsm=142049488315510w=2
 
 I am not a native English speaker myself but I think you are confusing
 amd64 architecture and amd daemon that automatically mounts filesystems.
 
 The way I read that bug report is that mount_nfs(8) defaults to NFSv3
 while the automount daemon amd(8) for some reason defaults to NFSv2.
 There is also a patch. There is nothing amd64 architecture specific in
 that message.

I really don't understand where you see a connection with the
AMD64 architecture in my original post... Well, maybe I see: I wrote amd
(automounter) instead of amd(8)...

I indeed reported that amd(8) is using NFSv2 (see also the subject!),
and [1] is confirming the lack of NFSv3 support.

Regarding the patch, I applied it, but it's not fully functional (mount
is ok, but there are some RPC issues, at least with my configuration); I
don't know if that's related to the variable size file handles problem
mentioned by pguenther@ or not; I was thinking to do a follow-up in the
bug thread.

Thanks for your feedback.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: amd (BSD automounter) stuck at nfsv2?

2015-06-21 Thread Alessandro DE LAURENZIS
On Sat 20/06/2015 14:25, Alessandro DE LAURENZIS wrote:
 Dear misc@ readers,
 
 I actually use amd for a long time, but I never realized this until I
 started to share large files...
 
[...]
 but nothing changes. Of course, NFSv2 works properly only for files
 smaller than 2GB, so this is becoming a showstopper for this setup.
[...]

From [1] I understand that NFSv3 is still unsupported in OpenBSD's amd.

Sorry for the noise.

All the best

[1] http://marc.info/?l=openbsd-bugsm=142049488315510w=2

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



amd (BSD automounter) stuck at nfsv2?

2015-06-20 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I actually use amd for a long time, but I never realized this until I
started to share large files...

First things first, my amd configuration is neither fancy nor complex:

just22@poseidon:[~] cat /etc/rc.conf.local
[...]
# BSM automounter
portmap_flags=# DARPA port to RPC program number mapper
amd_flags=-a /tmp/amd_mnt -l syslog -x all
[...]

just22@poseidon:[~] cat /etc/amd/master
/home/nfs   nfs.map

just22@poseidon:[~] cat /etc/amd/nfs.map 
/defaults
type:=nfs;rhost:=argo.atlantide.net;opts:=rw,soft,intr
bt  rfs:=/home/export/bt
just22  rfs:=/home/export/just22

The NFS server (argo) runs OpenBSD 5.7 and exports some directories
through NFSv3.

The problem on the client side seems that amd is using NFSv2 and UDP
instead of NFSv3 and TCP:

just22@poseidon:[~] mount | grep nfs
amd:3892 on /home/nfs type nfs (v2, udp, intr, timeo=100, retrans=101)
argo:/home/export/bt on /tmp/amd_mnt/argo/home/export/bt type nfs (v2,
udp, soft, intr, timeo=100)

I also tried something like:

just22@poseidon:[~] cat /etc/amd/nfs.map 
/defaults
type:=nfs;rhost:=argo.atlantide.net;opts:=rw,soft,intr,nfsv3
bt  rfs:=/home/export/bt
just22  rfs:=/home/export/just22

and also:

just22@poseidon:[~] cat /etc/amd/nfs.map 
/defaults
type:=nfs;rhost:=argo.atlantide.net;opts:=rw,soft,intr,vers=3,proto=tcp
bt  rfs:=/home/export/bt
just22  rfs:=/home/export/just22

but nothing changes. Of course, NFSv2 works properly only for files
smaller than 2GB, so this is becoming a showstopper for this setup.

Info on the net are very sparse: I found [1] and [2], but the proposed
solutions didn't work for me (in particular, I didn't succeed with
type:=host - if this is the right way, please give me some further
details on the correct setup to use); reading the amd's documentation
didn't help either (the manual repeatedly says that the automounter
should defaults to NFSv3, so I'm a bit lost...)

What's wrong with my configuration? Any hints?

Thanks in advance for your help.

All the best

[1] 
http://serverfault.com/questions/335061/openbsd-configuration-client-unable-to-mount-via-nfs-using-berkeley-automounter
[2] http://www.openbsdsupport.org/sharedhomes.html

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Ajaxterm with httpd?

2015-06-06 Thread Alessandro DE LAURENZIS
On Fri 05/06/2015 19:30, Alessandro DE LAURENZIS wrote:
 Hi Raf,
 
 On Fri 05/06/2015 03:33, Raf Czlonka wrote:
  Httpd is not required in order to run 'ajaxterm' - it runs on its own
  webserver.
  
  On -current:
  
  sudo pkg_add ajaxterm
  sudo rcctl start ajaxterm
  x-www-browser http://localhost:8022/
  
  It's not tremendously useful on localhost, mind you :^), so you'll need
  to use relayd(8) in order to both forward the HTTP traffic to port 8022
  on localhost as well as encapsulate it in TLS - a simple 'rdr-to' pf(4)
  rule will suffice for testing, and *only* testing, purposes (i.e. do
  *not* send your username or password over plain HTTP on an untrusted
  network.
 
 In fact, I'm already using plain HTTP by means of a rdr-to rule in pf:
 
 pass in on $ext_if proto tcp from any to any port 8022 rdr-to 127.0.0.1 port 
 8022
 
 and, of course, it is only for testing purpose. Now, in order to make
 the server accessible from the Internet, I need to encapsulate the
 traffic in TLS - as you correctly said - and I was thinking to something
 similar to the Apache's proxy plugin.
 
 As far as I understand from your reply, this can be obtained using
 relayd (and not httpd); ok, I'll dig into the documentation.
 

I ended up with the following relayd.conf:

#
# Macros
#
ext_addr=192.168.1.10
ajaxterm_ext_port=44322
int_addr=127.0.0.1
ajaxterm_int_port=8022

#
# Global Options
#
interval10
timeout 200
prefork 5

#
# Relay for ajaxterm TLS connection
#
relay ajaxterm_proxy {
listen on $ext_addr port $ajaxterm_ext_port tls
forward to $int_addr port $ajaxterm_int_port
}

Of course, private key and public certificate have been created with the
expected names:

openssl genrsa -out /etc/ssl/private/192.168.1.10:44322.key
openssl req -new -x509 -key /etc/ssl/private/192.168.1.10:44322.key -out 
/etc/ssl/192.168.1.10:44322.crt -days 3650

All seems to be pretty functional, but I hope someone would comment on
this, confirming that my understanding is correct (this is my first
attempt with networking in general and relayd stuff in particular...)

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Ajaxterm with httpd?

2015-06-05 Thread Alessandro DE LAURENZIS
Hi Raf,

On Fri 05/06/2015 03:33, Raf Czlonka wrote:
 Httpd is not required in order to run 'ajaxterm' - it runs on its own
 webserver.
 
 On -current:
 
 sudo pkg_add ajaxterm
 sudo rcctl start ajaxterm
 x-www-browser http://localhost:8022/
 
 It's not tremendously useful on localhost, mind you :^), so you'll need
 to use relayd(8) in order to both forward the HTTP traffic to port 8022
 on localhost as well as encapsulate it in TLS - a simple 'rdr-to' pf(4)
 rule will suffice for testing, and *only* testing, purposes (i.e. do
 *not* send your username or password over plain HTTP on an untrusted
 network.

In fact, I'm already using plain HTTP by means of a rdr-to rule in pf:

pass in on $ext_if proto tcp from any to any port 8022 rdr-to 127.0.0.1 port 
8022

and, of course, it is only for testing purpose. Now, in order to make
the server accessible from the Internet, I need to encapsulate the
traffic in TLS - as you correctly said - and I was thinking to something
similar to the Apache's proxy plugin.

As far as I understand from your reply, this can be obtained using
relayd (and not httpd); ok, I'll dig into the documentation.

Thanks a lot for your precious help.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Ajaxterm with httpd?

2015-06-04 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

is it possible to run Ajaxterm with httpd?

If so, could you please point me to some relevant documents or provide a
sample configuration excerpt?

Thanks in advance

--
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]



acpi0: failed to allocate hibernate memory

2015-04-17 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I'm facing intermittent failures during hibernation on my Thinkpad R61.
The relevant info in the dmesg [1] is:

acpi0: failed to allocate hibernate memory

This is a very recent snapshot, but I'm not able to confirm that the
problem is new, 'cause I rarely use the suspend-to-disk feature. On the
other hand, most of the times the hibernation (and resume) phase
completes correctly (and I didn't find out what is triggering the
fault).

When it occurs, only a reboot can recover the correct behavior.

Some additional info:

- vmstat -m output:

Memory statistics by bucket size
Size   In Use   Free   Requests  HighWater  Couldfree
  1619158  3895476144731280   1295
  32 4222   70421189555 640  11697
  64 3398   10826711838 320  24330
 128 7986   12621415473 160   5106
 256 2220   12361093678  80   4008
 512 2743241 504121  40   1193
1024 1772548 235523  20  63410
2048  149137  26169  10   8961
4096  622238 154197   5 143961
8192   25 10   9331   5   5072
   163845  0160   5  0
   32768   11  0 39   5  0
   655367  0 170701   5  0
  1310721  0109   5  0
  2621443  0 50   5  0

Memory usage type by bucket size
Size  Type(s)
  16  devbuf, pcb, routetbl, UFS mount, dirhash, ACPI, exec, VM swap,
  UVM amap, UVM aobj, USB, USB device, temp, DRM
  32  devbuf, pcb, routetbl, ifaddr, sem, dirhash, ACPI, in_multi, exec,
  UVM amap, UVM aobj, USB, USB device, temp, AGP Memory, DRM
  64  devbuf, routetbl, ifaddr, sysctl, vnodes, UFS mount, dirhash, ACPI,
  proc, VFS cluster, in_multi, ether_multi, VM swap, UVM amap, UVM aobj,
  USB, USB device, NDP, temp, DRM
 128  devbuf, pcb, routetbl, UFS mount, sem, dirhash, ACPI, NFS srvsock,
  in_multi, ttys, pfkey data, inodedep, UVM amap, UVM aobj, USB,
  USB device, USB HC, temp, AGP Memory, DRM
 256  devbuf, routetbl, ifaddr, sysctl, ioctlops, vnodes, UFS mount, shm,
  VM map, dirhash, ACPI, MSDOSFS node, exec, UVM amap, UVM aobj, USB,
  USB device, NDP, temp, DRM
 512  devbuf, ifaddr, sysctl, ioctlops, iov, UFS mount, dirhash, ACPI,
  file desc, MSDOSFS mount, ttys, newblk, UVM amap, UVM aobj, USB,
  USB device, USB HC, temp, DRM
1024  devbuf, pcb, ioctlops, mount, shm, dirhash, file desc, proc, ttys,
  exec, UVM amap, UVM aobj, crypto data, temp, DRM
2048  devbuf, pcb, ioctlops, UFS mount, shm, ACPI, file desc, VM swap,
  UVM amap, UVM aobj, temp, DRM
4096  devbuf, ifaddr, ioctlops, UFS mount, shm, file desc, proc, UVM amap,
  memdesc, temp, DRM
8192  devbuf, shm, ACPI, file, pagedep, UVM amap, USB, temp, DRM
   16384  devbuf, NFS daemon, MSDOSFS mount, indirdep, temp, DRM
   32768  devbuf, UFS quota, UFS mount, ISOFS mount, MSDOSFS fat, inodedep, DRM
   65536  devbuf, temp
  131072  devbuf, temp
  262144  devbuf, VM swap

Memory statistics by type   Type  Kern
  Type InUse MemUse HighUse  Limit Requests Limit Limit Size(s)
devbuf  4500  5282K   5384K 78644K212550 0  
16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144
   pcb   14527K 32K 78644K 36410 0  
16,32,128,1024,2048
  routetbl85 7K  7K 78644K 50300 0  16,32,64,128,256
ifaddr   13318K 18K 78644K  1850 0  
32,64,256,512,4096
sysctl 2 1K  1K 78644K   520 0  64,256,512
  ioctlops 0 0K  4K 78644K549710 0  
256,512,1024,2048,4096
   iov 0 0K  1K 78644K90 0  512
 mount 7 7K  8K 78644K90 0  1024
vnodes  112171K 73K 78644K 24240 0  64,256
 UFS quota 132K 32K 78644K10 0  32768
 UFS mount2966K 66K 78644K   290 0  
16,64,128,256,512,2048,4096,32768
   shm 730K 42K 78644K  2400 0  
256,1024,2048,4096,8192
VM map 2 1K  1K 78644K20 0  256
   sem 2 1K  1K 78644K20 0  32,128
   dirhash  1065   216K221K 78644K 12780 0  
16,32,64,128,256,512,1024
  ACPI  5577   673K681K 78644K   5265390 0  
16,32,64,128,256,512,2048,8192
  file 0 0K  8K 78644K   100 0  8192
 file desc2452K 76K 78644K 10010 0  

HP Deskjet F4280 scanner not working in -current

2015-03-11 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I'm not sure if the topic is more suited for misc@ or ports@; I opted
for the former, 'cause I don't know if the problem is related to the
hplip ports or some other parts of the OS; if it's the case, please move
the thread.

OBSD -current here, just a slightly outdated snapshot:

just22@poseidon:[~] uname -a
OpenBSD poseidon.atlantide.net 5.7 GENERIC.MP#875 amd64

I have an old HP multifunctional printer (Deskjet F4280); both printer
and scanner always worked (from 5.4 on).

Now I'm facing a lot of troubles; printer is not working with CUPS (but
that's another story: [0] - I worked around reverting on lpd and
using the PPD from hpijs).

And the scanner is not usable, too.

USB connection seems ok:

just22@poseidon:[~] usbdevs -dv
Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub2
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x), 
Intel(0x8086), rev 1.00
  uhub6
 port 1 addr 2: high speed, self powered, config 1, USB2.0 Hub(0x0608), Genesys 
Logic(0x05e3), rev 9.01
   uhub7
  port 1 addr 3: high speed, self powered, config 1, USB2.0 Hub(0x0608), 
Genesys Logic(0x05e3), rev 9.01
uhub8
   port 1 powered
   port 2 addr 4: low speed, power 100 mA, config 1, HP Basic USB 
Keyboard(0x0024), CHICONY(0x03f0), rev 3.00
 uhidev0
   port 3 addr 5: high speed, self powered, config 1, Deskjet F4200 
series(0x2504), HP(0x03f0), rev 1.00, iSerialNumber CN8C54F12J05BR
 ulpt0
 ugen0
   port 4 powered
  port 2 addr 6: low speed, power 98 mA, config 1, USB-PS/2 Optical 
Mouse(0xc050), Logitech(0x046d), rev 27.20
uhidev1
  port 3 addr 7: full speed, power 100 mA, config 1, product 0x089d(0x089d), 
Logitech(0x046d), rev 1.00
uaudio0
ugen1
  port 4 powered
[...]


All the relevant packages are installed:

just22@poseidon:[~] pkg_info -a | egrep hp|sane
hpaio-3.15.2HP sane(7) scanner backend
hpijs-3.15.2HP ghostscript driver (spooler independent)
hplip-common-3.15.2 HPLIP applications common files
sane-backends-1.0.24p2 API for accessing scanners, backends
xsane-0.999p0-gimp  scanner frontend for SANE


Device permissions are ok,too (and my user is in the _saned group):

just22@poseidon:[~] ll /dev/ugen0.*
crw-rw  1 root  _saned   63,   0 Mar  6 17:45 /dev/ugen0.00
crw-rw  1 root  _saned   63,   1 Mar  6 17:45 /dev/ugen0.01
crw-rw  1 root  _saned   63,   2 Mar  6 17:45 /dev/ugen0.02
crw-rw  1 root  _saned   63,   3 Mar  6 17:45 /dev/ugen0.03
crw-rw  1 root  _saned   63,   4 Mar  6 17:45 /dev/ugen0.04
crw-rw  1 root  _saned   63,   5 Mar  6 17:45 /dev/ugen0.05
crw-rw  1 root  _saned   63,   6 Mar  6 17:45 /dev/ugen0.06
crw-rw  1 root  _saned   63,   7 Mar  6 17:45 /dev/ugen0.07
crw-rw  1 root  _saned   63,   8 Mar  6 17:45 /dev/ugen0.08
crw-rw  1 root  _saned   63,   9 Mar  6 17:45 /dev/ugen0.09
crw-rw  1 root  _saned   63,  10 Mar  6 17:45 /dev/ugen0.10
crw-rw  1 root  _saned   63,  11 Mar  6 17:45 /dev/ugen0.11
crw-rw  1 root  _saned   63,  12 Mar  6 17:45 /dev/ugen0.12
crw-rw  1 root  _saned   63,  13 Mar  6 17:45 /dev/ugen0.13
crw-rw  1 root  _saned   63,  14 Mar  6 17:45 /dev/ugen0.14
crw-rw  1 root  _saned   63,  15 Mar  6 17:45 /dev/ugen0.15

just22@poseidon:[~] groups
just22 wheel operator wsrc _saned


I added the hpaio backend to sane's dll.conf:

just22@poseidon:[~] grep hp /etc/sane.d/dll.conf
hp
hpaio
hp3900
#hpsj5s
hp3500
hp4200
hp5400
hp5590
hpljm1005


scanimage correctly recognize the scanner:

just22@poseidon:[~] scanimage -L
device `hpaio:/usb/Deskjet_F4200_series?serial=CN8C54F12J05BR' is a 
Hewlett-Packard Deskjet_F4200_series all-in-one


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


I tried the downgrade to hplip 3.14.6, which is the version used in
5.6-STABLE, but the result is exactly the same... (this is because I
don't think the problem is directly related to the new port version).

Any hints? Suggestions for further debugging are welcome, of course.

Thanks in advance for your time


[0] http://marc.info/?l=openbsd-miscm=141761605715886w=2

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Cannot connect to CUPS web interface in -current

2015-03-10 Thread Alessandro DE LAURENZIS
Hello Stuart,

On Tue 10/03/2015 08:28, Stuart Henderson wrote:
 Is this while building the port, or just installing from packages?

Installing from packages. Isn't that expected?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Cannot connect to CUPS web interface in -current

2015-03-10 Thread Alessandro DE LAURENZIS
Hello Raf,

On Mon 09/03/2015 19:46, Raf Czlonka wrote:
 Using 'sudo' and your $UMASK != 022 by any chance?

That was exactly the cause! I realized just yesterday night that I
forgot to add the umask_override option to the sudoers defaults...

Really wise (and correct) guess, Raf!

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Cannot connect to CUPS web interface in -current

2015-03-08 Thread Alessandro DE LAURENZIS
Hi Antoine,

On Sun 08/03/2015 00:01, Antoine Jacoutot wrote:
 
 Permissions are fine here.
 Not sure why yours are not.
 

Thanks for your feedback. Actually, I re-installed the latest snapshot
in a qemu environment and added only cups (and its dependencies), just
to double check, and I can confirm that the permissions are correct.

I don't really know what went wrong... Anyhow, now it's ok.

Sorry for the noise.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Cannot connect to CUPS web interface in -current

2015-03-07 Thread Alessandro DE LAURENZIS
] Processing GET /
I [07/Mar/2015:18:24:37 +0100] [Client 1] Files/directories such as 
/usr/local/share/doc/cups/ must be world-readable.
D [07/Mar/2015:18:24:37 +0100] [Client 1] cupsdSendHeader: code=404, 
type=text/html, auth_type=0
D [07/Mar/2015:18:24:37 +0100] [Client 1] Closing because Keep-Alive is 
disabled.
D [07/Mar/2015:18:24:37 +0100] [Client 1] Closing connection.
D [07/Mar/2015:18:24:37 +0100] cupsdSetBusyState: newbusy=Not busy, 
busy=Active clients
D [07/Mar/2015:18:24:37 +0100] [Client 1] Waiting for socket close.
D [07/Mar/2015:18:24:37 +0100] [Client 1] HTTP_STATE_WAITING Closing for error 
32 (Broken pipe)
D [07/Mar/2015:18:24:37 +0100] [Client 1] Closing connection.

So it seems that the errors are not always reported (even if the
connection always fails); is it just red herring? I'm completely lost...

Any hints? Of course, I'm available for further debug, just let me know.

Thanks in advance for your time

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Cannot connect to CUPS web interface in -current

2015-03-07 Thread Alessandro DE LAURENZIS
Hi Fred,

On Sat 07/03/2015 21:32, Fred wrote:
 Both Firefox and Chrome let me do https://localhost:631/ but then both
 complain and I have to add exceptions, once added it works for me.
 
 In chrome the connection is then encrypted with TLS 1.2
 
 port:fred ~ uname -a; dmesg|head -4; pkg_info| grep cups
 OpenBSD port.crowsons.com 5.7 GENERIC.MP#860 amd64
 OpenBSD 5.7-beta (GENERIC.MP) #860: Sun Feb 22 03:14:54 MST 2015
 t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
 real mem = 8447131648 (8055MB)
 avail mem = 8218349568 (7837MB)
 cups-2.0.2  Common Unix Printing System
 cups-filters-1.0.65 OpenPrinting CUPS filters
 cups-libs-2.0.2 CUPS libraries and headers
 cups-pk-helper-0.2.5 fine-grained privileges PolicyKit helper for CUPS
 gtk+3-cups-3.14.8   gtk+3 CUPS print backend
 
 Maybe ktrace cups to seem that can give any clues.

After adding the exception, I continue to see the Not Found message.
So the encryption was not the root cause.

But it seems I've sorted it out: the files used for CUPS's web interface
are contained into the /usr/local/share/doc/cups directory, and *by
default*, that isn't world readable, at least for this very latest CUPS
release (2.0.2). In fact, the inconsistency is flagged in the error_log
file:

I [07/Mar/2015:18:25:38 +0100] [Client 4] Files/directories such as 
/usr/local/share/doc/cups/ must be world-readable.

After changing the permissions all works as expected. Maybe something to
fix in CUPS port? Antoine could give us his view...

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Cannot connect to CUPS web interface in -current

2015-03-07 Thread Alessandro DE LAURENZIS
On Sat 07/03/2015 23:20, Alessandro DE LAURENZIS wrote:
 After adding the exception, I continue to see the Not Found message.
 So the encryption was not the root cause.
 
 But it seems I've sorted it out: the files used for CUPS's web interface
 are contained into the /usr/local/share/doc/cups directory, and *by
 default*, that isn't world readable, at least for this very latest CUPS
 release (2.0.2). In fact, the inconsistency is flagged in the error_log
 file:
 
 I [07/Mar/2015:18:25:38 +0100] [Client 4] Files/directories such as 
 /usr/local/share/doc/cups/ must be world-readable.
 
 After changing the permissions all works as expected. Maybe something to
 fix in CUPS port? Antoine could give us his view...

Just found a thread reporting a similar issue:

[1] 
http://www.linuxquestions.org/questions/slackware-14/stoopid-cups-question-4175522158/page2.html

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



man -m not working with latest snapshot (Dec 20)

2014-12-20 Thread Alessandro DE LAURENZIS
Greetings,

just22@poseidon:[~] uname -a
OpenBSD poseidon.atlantide.net 5.6 GENERIC.MP#714 amd64

just22@poseidon:[~] type man
man is hashed (/usr/bin/man)

just22@poseidon:[~] man -m /home/just22/share/man/ man
man: -m/home/just22/share/man/: Bad argument

It seems a space is missing... Is it just me?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: xfce4-power-manager not updating battery status

2014-12-17 Thread Alessandro DE LAURENZIS
Hi Marko,

On Wed 17/12 11:47, Marko Cupać wrote:
 On Wed, 17 Dec 2014 10:53:48 +0100
 Stefan Sperling s...@stsp.name wrote:
 
  Do you have a system dbus running?
  If not, add dbus_daemon to pkg_scripts in /etc/rc.local.
  
  I've never seen this plugin not working for me.
 
 Yep, I am running system wide dbus daemon, here's my pkg_scripts line:
 pkg_scripts=dbus_daemon avahi_daemon avahi_dnsconfd slim
 
 Relevant lines in slim.conf:
 login_cmd exec /bin/sh -l ~/.xinitrc %session
 sessions  xfce4
 
 Contents of .xinitrc:
 export LC_CTYPE=en_US.UTF-8
 /usr/local/bin/startxfce4 --with-ck-launch
 
[...]

Maybe useless to say, but you should add the user session d-bus part
too; in .xinitrc, something like:

# Start a session bus instance of dbus-daemon
if [ -x /usr/local/bin/dbus-launch -a -z ${DBUS_SESSION_BUS_ADDRESS} ]; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi

(see /usr/local/share/doc/pkg-readmes/dbus-x.y.z, maybe not needed if
your login/session manager does that for you).

Hope this help

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: apmd.8 lacks of hibernation quirks info

2014-12-08 Thread Alessandro DE LAURENZIS
Hello Mike,

On Sun 07/12 10:58, Mike Larkin wrote:
 Which machines don't work, and how do they break? I would like to know.
 Please file a bug report (man sendbug).

Last time I tried hibernation on my ThinkPad R61 (running current) was
some months ago and, even being both sleep and resume functional, they
were too slow to be practical (some minutes for sleeping, more than 20
for resuming).

When I discovered a fully working hibernation/resume on a Compaq 610
laptop with a brand new 5.6, I thought to a good hardware support for
that particular machine.

After your message, I retried hibernation on the R61 (with the very last
snapshot, by the way), and it works flawlessly there too!

So I can report only excellent results! Thanks a lot for your work.

Any comments on the two points that I highlighted in my OP?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hello Antoine,

On Sat 06/12 12:28, Antoine Jacoutot wrote:
  Actually, I just hooked up my HP USB printer and was able to print just 
  fine...
 
 Oop sorry I meant to answer that in previous:
 
  just22@poseidon:[~] ll /etc/cups/printers.conf
  -rw---  1 root  _cups   897B Dec  3 08:58 /etc/cups/printers.conf
 
  (not readable by _cups?)
 
 That's fine. cupsd starts as root, read its config and then drops privileges 
 to _cups.
 

At this point, I'm completely out of ideas... Maybe a regression specific
to that particular PPD? Just wait and see what happens with future
updates...

Just to give you a more complete picture, I tried to remove/reinstall
cups and hplip, wiping out all the related directories, just in case of
some strange side effects related to previous configs, without any
luck.

Of course, if you have anything else to suggest in order to help the
debug, please let me know.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hello Antoine,

On Mon 08/12 16:11, Antoine Jacoutot wrote:
 Were is your ppd coming from? Did you generate it yourself?

Not at all, it comes from hpcups:

Description:HP Deskjet F4280 All-in-One
Location:   
Driver: HP Deskjet f4200 Series, hpcups 3.14.6 (color, 2-sided printing)
Connection: hp:/usb/Deskjet_F4200_series?serial=CN8C54F12J05BR
Defaults:   job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: USB printer not working with CUPS 2.0.1 (in -current)

2014-12-08 Thread Alessandro DE LAURENZIS
Hi Raf,

On Mon 08/12 10:39, Raf wrote:
 That may as well be true but I wanted to double-check whether your issue
 is at all related to the recent USB 3.0/xhci changes in -current?
 
 The reason I mention it is the fact that several people have reported
 issues with USB 1.x and/or USB 2.0 devices while using USB 3.0 ports.
 

Laptop's USB ports are 2.0; I do not know if there could be an impact of
the xhci driver anyway, but how could I check? Any chances to switch off
xhci and revert to uhci/ehci?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: Proposed patch to unmute Azalia sound card on Compaq 610

2014-12-08 Thread Alessandro DE LAURENZIS
Hi Jonathan,

On Tue 09/12 16:03, Jonathan Gray wrote:
 I'm curious why you decided to mask the subid here and not just test
 subid == 0x308a103c ?

In my understanding (I'm definitely not an expert), the last part of
subid represents the vendor signature (HP in this case); the first 4
digits should be instead specific to the particular chip implementation.

Here I just tried to make the patch more general (guessing that the GPIO
needs to be unmuted for all IDT 92HD75B1/2-type cards sold by HP), and
also to stay close to code style adopted for other (similar?) cases.

If my assumption is wrong, then yes, you're right: the whole subid
should be tested.

Anyhow, thanks for your feedback.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Proposed patch to unmute Azalia sound card on Compaq 610

2014-12-07 Thread Alessandro DE LAURENZIS
 rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xf3
pci5 at ppb4 bus 2
pcib0 at pci0 dev 31 function 0 Intel 82801HBM LPC rev 0x03
pciide0 at pci0 dev 31 function 1 Intel 82801HBM IDE rev 0x03: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 Intel 82801HBM AHCI rev 0x03: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: ATA, Hitachi HTS72323, FC4O SCSI3 0/direct 
fixed naa.5000cca582d98f33
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
cd0 at scsibus1 targ 2 lun 0: hp, CDDVDW TS-L633M, 0301 ATAPI 5/cdrom 
removable
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uvideo0 at uhub1 port 5 configuration 1 interface 0 Chicony Electronics Co., 
Ltd. CNF8243 rev 2.00/85.39 addr 2
video0 at uvideo0
uhidev0 at uhub3 port 2 configuration 1 interface 0 Primax Electronics USB 
Optical Mouse rev 2.00/2.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (5a985a987f3fa32e.a) swap on sd0b dump on sd0b

[3]
just22@icarus:[~] mixerctl -av
outputs.hp_source=mix2  [ dac-0:1 dac-2:3 mix2 ]
outputs.hp_boost=off  [ off on ]
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80
]
outputs.mic2_dir=input-vr80  [ none input input-vr0 input-vr50
input-vr80 ]
outputs.spkr_source=dac-2:3  [ dac-0:1 dac-2:3 mix2 ]
inputs.dac-0:1_mute=off  [ off on ]
inputs.dac-0:1=126,126 
inputs.dac-2:3_mute=off  [ off on ]
inputs.dac-2:3=126,126 
inputs.sel_source=mix2  [ dac-0:1 dac-2:3 mix2 ]
inputs.mix2_source=dac-0:1,dac-2:3,sel2,sel3  { dac-0:1 dac-2:3 sel2 sel3 }
inputs.mix2_dac-0:1=120,120 
inputs.mix2_dac-2:3=120,120 
inputs.mix2_sel2=120,120 
inputs.mix2_sel3=120,120 
inputs.sel2_source=mic2  [ mic mic2 ]
outputs.sel2=85,85 
inputs.sel3_source=mic  [ mic mic2 ]
outputs.sel3=85,85 
record.adc-0:1_source=sel2  [ sel2 mix2 ]
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=119,119 
record.adc-2:3_source=sel3  [ sel3 mix2 ]
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=119,119 
inputs.sel6_source=adc-0:1  [ adc-0:1 adc-2:3 ]
inputs.sel7_source=adc-0:1  [ adc-0:1 adc-2:3 ]
inputs.beep_mute=off  [ off on ]
inputs.beep=85 
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp  { hp }
outputs.master=126,126 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-0:1,dac-2:3  { dac-0:1 dac-2:3 sel2 sel3 beep }
record.volume=119,119 
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 }

[4]
just22@icarus:[~] audioctl 
name=HD-Audio
version=1.0
config=azalia0
encodings=slinear_le:16:2:1,slinear_le:20:4:1,slinear_le:24:4:1
properties=full_duplex,independent
full_duplex=0
fullduplex=0
blocksize=9600
hiwat=6
lowat=4
output_muted=0
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.bps=2
play.msb=1
play.encoding=slinear_le
play.gain=126
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=0
play.buffer_size=65536
play.block_size=9600
play.errors=0
record.channels=2
record.precision=16
record.bps=2
record.msb=1
record.encoding=slinear_le
record.gain=119
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.block_size=9600
record.errors=0

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



apmd.8 lacks of hibernation quirks info

2014-12-07 Thread Alessandro DE LAURENZIS
Greetings,

With OpenBSD 5.6 release, I finally have a pretty functional (and
usable) hibernation function (not on all my hardware, but at least for
a not-so-recent HP laptop it works!).

I was digging into my scripts in order to apply some quirks before
hibernating the machine, and noticed that the man page lacks some info.

In particular, the code already support a specific file to be executed
before entering the S4 state (/etc/apm/hibernate), even if uses the same
file (/etc/apm/resume) after resuming from both S3 and S4 (if my
understanding is wrong, please correct me).

So:

1) a proposed patch for the man page (as per the 5.6 code):

--- ./usr.sbin/apmd/apmd.8  Thu Jul 24 03:04:58 2014
+++ ./usr.sbin/apmd/apmd.8.patched  Sun Dec  7 17:47:58 2014
@@ -137,14 +137,15 @@
 in the requested state after running the configuration script and
 flushing the buffer cache.
 .Pp
-Actions can be configured for the following five transitions:
+Actions can be configured for the following six transitions:
 suspend,
+hibernate,
 standby,
 resume,
 powerup,
 and
 powerdown.
-The suspend and standby actions are run prior to
+The suspend, hibernate and standby actions are run prior to
 .Nm
 performing any other actions (such as disk syncs) and entering the new
 state.
@@ -159,6 +160,7 @@
 Default device used to control the APM kernel driver.
 .Pp
 .It /etc/apm/suspend
+.It /etc/apm/hibernate
 .It /etc/apm/standby
 .It /etc/apm/resume
 .It /etc/apm/powerup
@@ -169,6 +171,7 @@
 by examining the name by which it was called,
 which is one of
 suspend,
+hibernate,
 standby,
 resume,
 powerup,

2) a question: why two different files for entering suspend/hibernate
states, but only one for resuming? At the moment, I do not apply any
quirks on resume, but having the possibility to differentiate b/w S3 and
S4 wake-up could be useful in some corner cases.

Thanks in advance for your time.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



USB printer not working with CUPS 2.0.1 (in -current)

2014-12-03 Thread Alessandro DE LAURENZIS
/2014:08:57:54 +0100] [Client 77] CGI data ready to be sent.
D [03/Dec/2014:08:57:54 +0100] [Client 77] con-http=0xa3bfc0cb000
D [03/Dec/2014:08:57:54 +0100] [Client 77] cupsdWriteClient error=0, used=0, 
state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_LENGTH, 
data_remaining=2147483647, response=0x0(), pipe_pid=16731, file=21
D [03/Dec/2014:08:57:54 +0100] [Client 77] Waiting for CGI data.
D [03/Dec/2014:08:57:54 +0100] [Client 77] Script header: Location: 
http://localhost:631/printers/HP_Deskjet_F4280
D [03/Dec/2014:08:57:54 +0100] [Client 77] Script header: 
D [03/Dec/2014:08:57:54 +0100] [Client 77] Sending status 303 for CGI.
D [03/Dec/2014:08:57:54 +0100] [Client 77] cupsdSendHeader: code=303, 
type=(null), auth_type=0
D [03/Dec/2014:08:57:54 +0100] [Client 77] Flushing write buffer.
D [03/Dec/2014:08:57:54 +0100] [Client 77] New state is HTTP_STATE_WAITING
D [03/Dec/2014:08:57:54 +0100] [Client 77] Waiting for request.
D [03/Dec/2014:08:57:54 +0100] cupsdSetBusyState: newbusy=Active clients and 
dirty files, busy=Active clients and dirty files
D [03/Dec/2014:08:57:54 +0100] PID 16731 
(/usr/local/libexec/cups/cgi-bin/admin.cgi) was terminated normally with signal 
15.
D [03/Dec/2014:08:58:04 +0100] [Client 77] HTTP_STATE_WAITING Closing for error 
32 (Broken pipe)
D [03/Dec/2014:08:58:04 +0100] [Client 77] Closing connection.
D [03/Dec/2014:08:58:04 +0100] cupsdSetBusyState: newbusy=Active clients and 
dirty files, busy=Active clients and dirty files
I [03/Dec/2014:08:58:13 +0100] Saving printers.conf...
I [03/Dec/2014:08:58:13 +0100] Generating printcap /etc/cups/printcap...
D [03/Dec/2014:08:58:13 +0100] cupsdSetBusyState: newbusy=Active clients, 
busy=Active clients and dirty files
D [03/Dec/2014:08:58:13 +0100] Report: clients=6
D [03/Dec/2014:08:58:13 +0100] Report: jobs=0
D [03/Dec/2014:08:58:13 +0100] Report: jobs-active=0
D [03/Dec/2014:08:58:13 +0100] Report: printers=2
D [03/Dec/2014:08:58:13 +0100] Report: stringpool-string-count=29032
D [03/Dec/2014:08:58:13 +0100] Report: stringpool-alloc-bytes=11792
D [03/Dec/2014:08:58:13 +0100] Report: stringpool-total-bytes=535152


Both the messages:

D [03/Dec/2014:08:58:04 +0100] [Client 77] HTTP_STATE_WAITING Closing for error 
32 (Broken pipe)
D [03/Dec/2014:08:58:13 +0100] cupsdSetBusyState: newbusy=Active clients, 
busy=Active clients and dirty files

look suspicious, but I'm not able to debug further...

Maybe it worths noting some strange permissions:

just22@poseidon:[~] ll /etc/cups/printers.conf 
-rw---  1 root  _cups   897B Dec  3 08:58 /etc/cups/printers.conf

(not readable by _cups?)

Thanks in advance for any hints

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: surf (browser): URL bar doesn't appear

2014-11-23 Thread Alessandro DE LAURENZIS
Hi Dmitrij,

On Sat 22/11 21:00, Dmitrij D. Czarkoff wrote:
 Alessandro DE LAURENZIS said:
  It's just me? Any hints? Any point in the right direction for a proper
  debug more than welcome.
 
 http://marc.info/?l=openbsd-portsm=141321944629586w=2

I can confirm that the LD_PRELOAD WA is effective. Thanks!

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



surf (browser): URL bar doesn't appear

2014-11-22 Thread Alessandro DE LAURENZIS
Dear misc@ readers,

I'm facing troubles when using surf browser: ctrl-g doesn't spawn the
URL bar (other bindkeys seems to work properly). I'm not able to give
more info, 'cause no msg is printed on stdout.

Of course, dmenu is installed.

It's just me? Any hints? Any point in the right direction for a proper
debug more than welcome.

Thanks in advance for your time.

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



dhclient lease declarations broken in current snapshots

2014-11-20 Thread Alessandro DE LAURENZIS
Folks,

just updated to latest snapshot (Nov 20):

root@poseidon:[~] uname -a
OpenBSD poseidon.atlantide.net 5.6 GENERIC.MP#579 amd64

and noticed that lease declarations in /etc/dhclient.conf no longer
work:

root@poseidon:[~] cat /etc/dhclient.conf 
# $OpenBSD: dhclient.conf,v 1.2 2011/04/04 11:14:52 krw Exp $
#
# DHCP Client Configuration
#
# See dhclient.conf(5) for possible contents of this file.
# When empty default values are used:
#
# Example:
#
# send dhcp-lease-time 3600;
# send host-name myhost;
# supersede host-name myhost;
# supersede domain-name my.domain;
# request subnet-mask, broadcast-address, time-offset, routers,
#   domain-name, domain-name-servers, host-name, lpr-servers, ntp-servers;
# require subnet-mask, domain-name-servers, routers;
initial-interval 1;
send host-name poseidon;
request subnet-mask, broadcast-address, routers, domain-name,
domain-name-servers, host-name;

# Lease declarations (fallback)
lease {
interface trunk0;
fixed-address 192.168.1.103;
option subnet-mask 255.255.255.0;
option routers 127.0.0.1;
option domain-name-servers 127.0.0.1;
option dhcp-lease-time 259200;
renew  4 2020/12/31 23:59:59 UTC;
rebind 4 2020/12/31 23:59:59 UTC;
expire 4 2020/12/31 23:59:59 UTC;
}

root@poseidon:[~] dhclient iwn0
/etc/dhclient.conf line 24: wrong interface name.
interface trunk0
  ^
Segmentation fault

Commenting out the lease section, all works as expected.

Am I missing something?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: pkg_add -u and unneeded updates

2014-10-27 Thread Alessandro DE LAURENZIS
On Fri 24/10 11:29, Ingo Schwarze wrote:
Hi Ingo,

 Almost certainly not unneeded; Marc Espie@ has spent a lot of effort
 on getting that right.  At least, you don't show any evidence for
 that claim, or for any bug in this area.
 
My bad; I should have said maybe unneeded?...

[...]
 packages(7):
 
   The full version (package name and dependency names) is known as the
   `update signature', and can be queried with pkg_info -S, for packages,
   or make print-update-signature for ports.
 
[...]
 
 So, packages are automatically updated when new versions are available
 compiled again newer libraries or newer dependencies, even if the
 Makefile of the package itself (and hence its own version number)
 did not change.  That prevents .libs-* packages from needlessly
 accumulating on your system.

Got it; the concept of package signature was in fact obscure to me.

Thanks a lot for your precious clarifications.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: pkg_add -u and unneeded updates

2014-10-27 Thread Alessandro DE LAURENZIS
Hi Marc,

On Fri 24/10 14:58, Marc Espie wrote:
[...]
 
 Look, either you use it as as simple user, and then you trust the tool.
 Or you want to really understand what's going on and you have to dig deeper.
 What pkg_add shows you *by default* is the simple story.
 
 Try pkg_add -v for more details. You'll figure it out.

You're definitely right; I'll try to dig a bit deeper next time.

Sorry for the noise.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



pkg_add -u and unneeded updates

2014-10-24 Thread Alessandro DE LAURENZIS
Folks,

I noticed that, when I update my packages using pkg_add -u, some
unneeded re-installation are performed; in particular (examples below
are with the latest snapshot, Oct 23):

- when a dependency needs update, all the dependencies and the package
  itself are updated:
cups-1.7.5p2:openjpeg-1.5.1-1.5.1: ok
cups-1.7.5p2:poppler-0.26.5-0.26.5: ok
cups-1.7.5p2:poppler-utils-0.26.5-0.26.5: ok
cups-1.7.5p2:foomatic-db-engine-4.0.11p0-4.0.11p0: ok
cups-1.7.5p2:cups-filters-1.0.60-1.0.61: ok
cups-1.7.5p2-1.7.5p2: ok

- some packages are updated even if version is unchanged:
xloadimage-4.1.22v0-4.1.22v0: ok
xpdf-3.04-3.04: ok
xzgv-0.9p4-0.9p4: ok

According to pkg_add's man page

the update signature of the candidate
is compared to the signature of the already installed package: identical
signatures mean no update needed

so I think that signatures of those packages have changed w.r.t. the
previous snapshot, but what's the rationale here?

Thanks for any clarifications.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



  1   2   >