Re: Date of yesterday

2018-04-09 Thread Stephane HUC "CIOTBSD"
as: date -r $(( $(date +%s) - 86400)) +%F
;)

Le 04/09/18 à 10:26, Paul de Weerd a écrit :
> On Sun, Apr 08, 2018 at 11:12:43PM -0700, Philip Guenther wrote:
> | On Sun, Apr 8, 2018 at 10:54 PM, Robert Klein  wrote:
> | 
> | > this works for me:
> | >
> | > date -r $(( $(date +%s) - 1 * 24 * 60 * 60 )) +%Y_%m_%d
> | >
> | 
> | Did you test that after 11pm on the day when daylight-saving time ends and
> | the clock is turned back, resulting in a 25 hour long day?
> 
> For those special occassions there's:
> 
> date -j `date +%Y%m%d1200` +%s
> 
> Turning this into:
> 
> date -r $(($(date -j `date +%Y%m%d1200` +%s) - 86400)) +%Y_%m_%d
> 
> Less perl (and less typing) at the expense of a total of 3 invocations
> of date.  Although I loathe the natural language parsing options built
> into Linux date(1), this sort of thing is rather convenient.
> 
> | I would use this:
> |perl -MPOSIX=strftime,mktime -le '@d=localtime(); $d[3]--; mktime(@d);
> | print strftime("%Y_%m_%d",@d)'
> | 
> | Philip Guenther
> 
> Paul 'abolish DST now' de Weerd
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinBSD or CIOTBSD
b...@stephane-huc.net



Re: X: WaitForSomething(): poll: Invalid argument

2018-04-07 Thread Stephane HUC &quot;CIOTBSD"
FYI: On OpenBSD 6.2, i've not this problem, with same configuration!
???


Le 04/05/18 à 10:46, Stephane HUC "CIOTBSD" a écrit :
> Oh, i found my problem. I configured options wsconcfg with wsconsctl.
> 
> When i modify, either 'display.vblank=on', or 'mouse.tp.tapping=1', X
> not recognize those values, and the daemon fill logs! :(
> 
> Maybe I'm doing this wrong!?
> 
> 
> 
> And sorry, for the several posting. Few bad problems in same time. My
> apologize.
> 
> 
> Le 04/05/18 à 10:41, Martin Pieuchot a écrit :
>> On 04/04/18(Wed) 12:02, Stephane HUC "PengouinBSD" wrote:
>>> Hi all.
>>>
>>> How can identify what trouble X?
>>> I run OpenBSD 6.3 - amd64 on my laptop Dell Alienware 13.
>>>
>>> Something fill both logs:
>>> - /var/log/Xorg.0.log
>>> - /var/log/xenodm.log
>>>
>>> with this repeated message : "WaitForSomething(): poll: Invalid argument"
>>>
>>> I use a custom xorg.conf, as:
>> Can you see the problem if you remove your custom xorg.conf?
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinBSD or CIOTBSD
b...@stephane-huc.net



Re: X: WaitForSomething(): poll: Invalid argument

2018-04-05 Thread Stephane HUC &quot;CIOTBSD"
Oh, i found my problem. I configured options wsconcfg with wsconsctl.

When i modify, either 'display.vblank=on', or 'mouse.tp.tapping=1', X
not recognize those values, and the daemon fill logs! :(

Maybe I'm doing this wrong!?



And sorry, for the several posting. Few bad problems in same time. My
apologize.


Le 04/05/18 à 10:41, Martin Pieuchot a écrit :
> On 04/04/18(Wed) 12:02, Stephane HUC "PengouinBSD" wrote:
>> Hi all.
>>
>> How can identify what trouble X?
>> I run OpenBSD 6.3 - amd64 on my laptop Dell Alienware 13.
>>
>> Something fill both logs:
>> - /var/log/Xorg.0.log
>> - /var/log/xenodm.log
>>
>> with this repeated message : "WaitForSomething(): poll: Invalid argument"
>>
>> I use a custom xorg.conf, as:
> Can you see the problem if you remove your custom xorg.conf?

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinBSD or CIOTBSD
b...@stephane-huc.net



Re: samba client

2018-02-08 Thread Stephane HUC &quot;CIOTBSD"
install package gvfs if X, to use with xfce or gnome...

Le 08/02/2018 à 01:18, listo factor a écrit :
> I have a need to mount existing samba shares on a linux box,
> on the  openbsd 6.2 computer. There is no use for a samba server
> on it, and I would prefer not to install one. What is the
> appropriate/current samba client package and is there any
> documentation on how to set it up?
> TIA
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinBSD or CIOTBSD
b...@stephane-huc.net



Re: Running Debian in vmd - succes

2017-04-18 Thread Stephane HUC &quot;CIOTBSD"
Hi, Could you explain more the process?
or, an url to understand?



Le 04/18/17 à 17:09, Jan Lambertz a écrit :
> For those who did not already know, vmd can run Linux guests with its
> seabios Firmware. However this does not work out of the box for Linux
> guests with grub bootloader even with grub serial settings.
> 
> Replacing grub with syslinux/extlinux made my Debian 8.7.1 amd64 run. No
> problems so far. This should work for other distros too.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: xfce4 shutdown and reboot buttons

2017-01-23 Thread Stephane HUC &quot;CIOTBSD"
Yes,
Please, read the file /usr/local/share/docs/pkg-readmes/xfce-4.12p3 ;)


Le 01/23/17 à 14:19, G a écrit :
> Hello.
> I have xfce4 on my laptop.
> I use application menu plugin
> WHen i want to restart or shutdown my laptop the buttons are disable.I
> add my user to operator group but they are still disable.
> I would prefer to do this with doas. Any ideas?
> 
> Thanks in advance.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: HP Proliant MicroServer G8: not seeing disks [solved]

2016-12-03 Thread Stephane HUC &quot;CIOTBSD"
Hi Stuart.

What microserver would you recommend?!


Le 12/03/16 à 12:08, Stuart Henderson a écrit :
> On 2016-12-02, Peter N. M. Hansteen  wrote:
>> My only complaint is that due to the maze of twisty nonsense that is the
>> HPE web site I never got the BIOS upgrade
> 
> It's at
> http://h20564.www2.hpe.com/hpsc/swd/public/readIndex?sp4ts.oid=5390291=8=4168
> but HP restrict BIOS downloads for computers, afaik it needs to either be
> under warranty or you need a support contract.
> 
> As a result I don't buy HP machines any more, either new or second-hand.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: PCI Express wireless adapter supported under OpenBSD

2016-11-30 Thread Stephane HUC &quot;CIOTBSD"
It seems Ralink chips supports Host AP!

http://man.openbsd.org/OpenBSD-current/man4/ral.4


Le 11/30/16 à 14:01, Stephane HUC "CIOTBSD" a écrit :
> It seems few atheros support HostAP mode:
> 
> http://man.openbsd.org/OpenBSD-current/man4/athn.4
> 
> AR9380 is too recent!? (and not supported by OBSD, at this time)
> 
> Le 11/30/16 à 13:38, Stefan Sperling a écrit :
>> On Wed, Nov 30, 2016 at 12:07:55PM +, C. L. Martinez wrote:
>>> Ok, I have found a good candidate: TP-LINK TL-WDN4800. According to 
>>> TP-Link's webpage uses an Atheros AR9380 chip. But, under athn(4) OpenBSD's 
>>> man page, this chip doesn't appears for OpenBSD 6.0 ... but it appears 
>>> under OpenBSD's 4.9 changelog: https://www.openbsd.org/plus49.html. Then, 
>>> is it supported or not?
>>>
>>> Thanks.
>>
>> AR9380 is not supported.
>> There is some code for these chips in CVS but it is incomplete and disabled.
>>
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: PCI Express wireless adapter supported under OpenBSD

2016-11-30 Thread Stephane HUC &quot;CIOTBSD"
It seems few atheros support HostAP mode:

http://man.openbsd.org/OpenBSD-current/man4/athn.4

AR9380 is too recent!? (and not supported by OBSD, at this time)

Le 11/30/16 à 13:38, Stefan Sperling a écrit :
> On Wed, Nov 30, 2016 at 12:07:55PM +, C. L. Martinez wrote:
>> Ok, I have found a good candidate: TP-LINK TL-WDN4800. According to 
>> TP-Link's webpage uses an Atheros AR9380 chip. But, under athn(4) OpenBSD's 
>> man page, this chip doesn't appears for OpenBSD 6.0 ... but it appears under 
>> OpenBSD's 4.9 changelog: https://www.openbsd.org/plus49.html. Then, is it 
>> supported or not?
>>
>> Thanks.
> 
> AR9380 is not supported.
> There is some code for these chips in CVS but it is incomplete and disabled.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: PCI Express wireless adapter supported under OpenBSD

2016-11-30 Thread Stephane HUC &quot;CIOTBSD"
Ok, sorry.

After searching about HostAP, as:
https://w1.fi/hostapd/

It seems Prism Chips run:
http://man.openbsd.org/OpenBSD-current/man4/wi.4
Quote: Host AP
In this mode the driver acts as an access point (base station) for
other cards. Only cards based on the Intersil chipsets support this
mode. Furthermore, this mode is not supported on USB devices.

See the list ;)

Le 11/30/16 à 13:36, Stefan Sperling a écrit :
> On Wed, Nov 30, 2016 at 01:22:11PM +0100, Stephane HUC "CIOTBSD" wrote:
>> Better use:
>>
>> - TP-Link TL-WDN3200 - run(4)
>> - TP-Link TL-WN723N v3 - urtwn(4)
>> - TP-Link TL-WN725N v2 - urtwn(4) <= i've this, and run correctly! (usb
>> dongle)
>> - TP-Link TL-WN727N v3 - run(4)
>> - TP-Link TL-WN821N v1 - otus(4), or v4 - urtwn(4)
>>
>> See: http://man.openbsd.org/?query=wireless=1
> 
> But none of these drivers support hostap mode.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: PCI Express wireless adapter supported under OpenBSD

2016-11-30 Thread Stephane HUC &quot;CIOTBSD"
Better use:

- TP-Link TL-WDN3200 - run(4)
- TP-Link TL-WN723N v3 - urtwn(4)
- TP-Link TL-WN725N v2 - urtwn(4) <= i've this, and run correctly! (usb
dongle)
- TP-Link TL-WN727N v3 - run(4)
- TP-Link TL-WN821N v1 - otus(4), or v4 - urtwn(4)

See: http://man.openbsd.org/?query=wireless=1


Le 11/30/16 à 13:07, C. L. Martinez a écrit :
> On Wed 30.Nov'16 at 11:44:13 +0100, Stefan Sperling wrote:
>> On Wed, Nov 30, 2016 at 10:12:32AM +, C. L. Martinez wrote:
>>> I have discoverd that Asus AC88 AC3100 uses BCM4366 chip, but if I am not 
>>> wrong this chip is not supported under OpenBSD, is it right?
>>
>> Indeed, BCM4366 won't work.
>>
>> There are many Atheros AR9280 devices on sites such as ebay.
>> And some vendors like pcengines still sell cards with this chip.
>> You could also search for other chip names listed in the athn(4) man page.
> 
> Ok, I have found a good candidate: TP-LINK TL-WDN4800. According to TP-Link's 
> webpage uses an Atheros AR9380 chip. But, under athn(4) OpenBSD's man page, 
> this chip doesn't appears for OpenBSD 6.0 ... but it appears under OpenBSD's 
> 4.9 changelog: https://www.openbsd.org/plus49.html. Then, is it supported or 
> not?
> 
> Thanks.
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Rules Pf to pass xsane

2016-11-29 Thread Stephane HUC &quot;CIOTBSD"
Hi, all.

I attempt to create rules for pf to use xsane on the lan network, for my
laptop station, and my MFP Espon, connected on red by ethernet, too.

If pf is disabled, i've no problem to use xsane and communicate with my
MFP. But, i cant if i activate pf.

Xsane official port is 6566.
1865 seems to need to contact the Espon MFP.
(i'm using this port on Debian, with "official" software...).

My rules:

#   $OpenBSD: pf.conf,v 1.54 2014/08/23 05:49:42 deraadt Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf

xsane_ports = "{ 1865 6566 }"

set block-policy return
set loginterface egress
set optimization normal
set reassemble yes
set ruleset-optimization none
set skip on lo

match in all scrub (max-mss 1440 no-df random-id reassemble tcp)

antispoof for egress

# By default, do not permit remote connections to X11
block in on ! lo0 proto tcp to port 6000:6010

block   # block stateless traffic
pass log   # establish keep-state

pass proto udp from any to egress port mdns allow-opts
pass on egress proto { tcp udp } from egress to egress:network port
$xsane_ports modulate state



After enable pf and load thoses rules, i view this log:

Nov 29 22:25:57.868904 rule 12/(match) pass out on axe0:
192.168.xyz.222.8612 > 192.168.xyz.255.8612: udp 16
Nov 29 22:25:57.868929 rule 12/(match) pass in on axe0:
192.168.xyz.222.8612 > 192.168.xyz.255.8612: udp 16
Nov 29 22:25:57.868945 rule 12/(match) pass out on axe0:
192.168.xyz.222.8612 > 192.168.xyz.255.8610: udp 16
Nov 29 22:25:57.868958 rule 12/(match) pass in on axe0:
192.168.xyz.222.8612 > 192.168.xyz.255.8610: udp 16

And, after xsane inform the fail of detection: "Aucun périphérique
disponible".

An idea?!

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



signature.asc
Description: OpenPGP digital signature


Re: [6.0 Stable] Thunderbird + Enigmail fail (resolved)

2016-11-19 Thread Stephane HUC &quot;CIOTBSD"
OK, this night i've found why not run!

it fault pinentry-gtk2.

After install-it, it's run correctly.

PS : https://bugs.gnupg.org/gnupg/issue2680 <= this help me to
understand the reason. ;)


On 11/16/16 12:03, Stephane HUC "CIOTBSD" wrote:
> Hi all.
> 
> I've a pb to sign and cifer emails with Thunderbird+Enigmail.
> 
> TBird version: 45. 2.0
> Enigmail as addon: 1.9.6
> 
> My ~/.gnupg/gpg.conf pastebined:
> https://paste.debian-fr.xyz/?5cf0b21a0aca1c65#xICcOcZCf01WXBPRi9Ue1v4IQnNmC8ITNMcPJx20VIU=
> 
> My ~/.gnupg/dirmngr.conf:
> hkp-cacert /home/my_userid/Documents/K/others/sks-keyservers.netCA.pem
> 
> The Enigmail.log pastebined:
> https://paste.debian-fr.xyz/?843d63290a15daea#Gq9jaa4tQGlG/2T/SEwGMmyvl6kPb2pdofQ84TiBhE8=
> 
> I can not sign or cifer email.
> As see in enigmail.log: gpg: échec de la signature : Inappropriate
> ioctl for device
> 
> Where is the problem?!
> 
> 
> 
> Just for information, TB profile run correctly on Debian Jessie ;-)
> 
> 

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-16 Thread Stephane HUC &quot;CIOTBSD"
Hi...

David: thanks for this info.

It seems i found why the "bug"?

If the table of partition is "(ms)dos", the detection of USB HDD (or
pendrive) is correct, and mount!

If the table of partition is "GPT", the detection hang!

Alexey Vatchenko is warned about this problem, by personnal discussion
by emails. He will confirm ;)


On 11/16/16 13:55, David Coppa wrote:
> On Wed, 16 Nov 2016, Stephane HUC "CIOTBSD" wrote:
>
>> Question: How i can "write" fstype "NTFS" on the "defective" HDD?
>> It's really formated in NTFS - mode normal, on Win7!
>
> Try with "fdisk -e" under OpenBSD.
>
> Use "07" for the partition id and, for the other parameters (offset,
> size), just press enter to leave them unchanged.
>
> Example:
>
> <root@x220:~># fdisk -e sd2
> Enter 'help' for information
> fdisk: 1> p
> Disk: sd2   geometry: 498/255/63 [8011774 Sectors]
> Offset: 0   Signature: 0xAA55
> Starting Ending LBA Info:
>  #: id  C   H   S -  C   H   S [   start:size ]
> ---
> *0: 04  0  32  33 -498 181   1 [2048: 8009726 ] MSDOS  
>  1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
>  2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
>  3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
> fdisk: 1> edit 0
> Starting Ending LBA Info:
>  #: id  C   H   S -  C   H   S [   start:size ]
> ---
> *0: 04  0  32  33 -498 181   1 [2048: 8009726 ] MSDOS  
> Partition id ('0' to disable) [01 - FF]: [4] (? for help) 07
> Do you wish to edit in CHS mode? [n] 
> Partition offset [0 - 8011774]: [2048] 
> Partition size [1 - 8009726]: [8009726] 
> fdisk:*1> w
> Writing MBR at offset 0.
> fdisk: 1> q
> <root@x220:~># fdisk sd2
> Disk: sd2  geometry: 498/255/63 [8011774 Sectors]
> Offset: 0   Signature: 0xAA55
> Starting Ending LBA Info:
>  #: id  C   H   S -  C   H   S [   start:size ]
> ---
> *0: 07  0  32  33 -498 181   1 [2048: 8009726 ] NTFS  
>   
>  1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
>  2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
>  3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
>   
> <root@x220:~># ^D
>
>
> Ciao!
> David
>

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-16 Thread Stephane HUC &quot;CIOTBSD"
Just for info:

I have an USB Pendrive for µSDCard.
This run correctly:

# dmesg | tail -n 5
umass0 at uhub0 port 2 configuration 1 interface 0 "Generic Mass Storage
Device" rev 2.00/1.00 addr 6
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd1 at scsibus4 targ 1 lun 0: <Mass, Storage Device, 1.00> SCSI0
0/direct removable serial.14cd1212121220130416
sd1: 14992MB, 512 bytes/sector, 30703616 sectors

$ disklabel sd1

# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: Storage Device
duid: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 1911
total sectors: 30703616
boundstart: 0
boundend: 30703616
drivedata: 0

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

$ mount
/dev/sd0a on / type ffs (local, wxallowed, softdep)
/dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep)
/dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep)
/dev/sd0e on /var type ffs (local, nodev, nosuid, softdep)
fusefs on /vol/USBMeHM type fuse (local)

$ ls -lart /vol/USBMeHM/

total 1409597
-rwx--  1 my_userid   my_userid   21 Jan  1  1970 .cm0013*
drwx--  1 my_userid   my_userid 4096 Jan  1  1970 ./
-rwx--  1 my_userid   my_userid721705484 Nov 11 11:06
jwb_F_201611_01_r720P.mp4*
drwxr-xr-x  4 root  wheel512 Nov 16 12:49 ../

OK!

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

On 11/16/16 11:14, Stephane HUC "CIOTBSD" wrote:
> Hi, Alexey
> 
> Sorry, but it's not run!
> 
> $ doas /usr/local/libexec/hotplug-diskmount cleanup 3AS
> 
> $ doas /usr/local/libexec/hotplug-diskmount cleanup sd1
> 
> $ doas /usr/local/libexec/hotplug-diskmount attach -u my_userid -m 0700
> -F sd1
> 
> $ ls -al
> /vol/ 
>   
> 
> total 16
> drwxr-xr-x   4 root  wheel  512 Nov 16 11:03 ./
> drwxr-xr-x  14 root  wheel  512 Nov  6 18:19 ../
> drwx--   2 root  wheel  512 Nov 16 11:03 .db/
> drwx--   2 zou   wheel  512 Nov 16 11:03 3AS/
> 
> $ ls -al
> /vol/3AS/ 
>   
> 
> total 8
> drwx--  2 zou   wheel  512 Nov 16 11:03 ./
> drwxr-xr-x  4 root  wheel  512 Nov 16 11:03 ../
> 
> $ mount
> /dev/sd0a on / type ffs (local, wxallowed, softdep)
> /dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep)
> /dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep)
> /dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep)
> /dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep)
> /dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep)
> /dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep)
> /dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep)
> /dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep)
> /dev/sd0e on /var type ffs (local, nodev, nosuid, softdep)
> 
> hotplug-diskmount create the mounting point but not mount it,
> apparently, is'nt-it?!
> 
> Egual, i modified /etc/hotplug/attach, as:
> 
> #!/bin/sh
> #
> # /etc/hotplug/{attach,detach}
> 
> DEVCLASS=$1
> DEVNAME=$2
> LOGIN="my_userid"
> 
> case "${DEVCLASS}" in
> 2)
> /usr/local/libexec/hotplug-diskmount attach -u "$LOGIN" -g
> "$LOGIN" -m 0700 -r dirty "$DEVNAME"
> ;;
> esac
> 
> Restarting hotplugd, but i've same bad result. :(
> 
> 
> 
> And, yes. i change the term "my_userid" by my real userid ;-)
> 
> 
> On 11/16/16 10:52, Alexey Vatchenko wrote:
>> From my attach script:
>> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r
>> dirty -F "$DEVNAME"
>>
>> As a result:
>> /dev/sd2i on /vol/TransMemory type ntfs (local, nodev, nosuid, read-only)
>>
>> With FUSE,
>> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r
>> dirty "$DEVNAME"
>>
>> And the result:
>> fusefs on /vol/E

[6.0 Stable] Thunderbird + Enigmail fail

2016-11-16 Thread Stephane HUC &quot;CIOTBSD"
Hi all.

I've a pb to sign and cifer emails with Thunderbird+Enigmail.

TBird version: 45. 2.0
Enigmail as addon: 1.9.6

My ~/.gnupg/gpg.conf pastebined:
https://paste.debian-fr.xyz/?5cf0b21a0aca1c65#xICcOcZCf01WXBPRi9Ue1v4IQnNmC8ITNMcPJx20VIU=

My ~/.gnupg/dirmngr.conf:
hkp-cacert /home/my_userid/Documents/K/others/sks-keyservers.netCA.pem

The Enigmail.log pastebined:
https://paste.debian-fr.xyz/?843d63290a15daea#Gq9jaa4tQGlG/2T/SEwGMmyvl6kPb2pdofQ84TiBhE8=

I can not sign or cifer email.
As see in enigmail.log: gpg: échec de la signature : Inappropriate
ioctl for device

Where is the problem?!



Just for information, TB profile run correctly on Debian Jessie ;-)


-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-16 Thread Stephane HUC &quot;CIOTBSD"
Hi, Alexey

Sorry, but it's not run!

$ doas /usr/local/libexec/hotplug-diskmount cleanup 3AS

$ doas /usr/local/libexec/hotplug-diskmount cleanup sd1

$ doas /usr/local/libexec/hotplug-diskmount attach -u my_userid -m 0700
-F sd1

$ ls -al
/vol/   


total 16
drwxr-xr-x   4 root  wheel  512 Nov 16 11:03 ./
drwxr-xr-x  14 root  wheel  512 Nov  6 18:19 ../
drwx--   2 root  wheel  512 Nov 16 11:03 .db/
drwx--   2 zou   wheel  512 Nov 16 11:03 3AS/

$ ls -al
/vol/3AS/   


total 8
drwx--  2 zou   wheel  512 Nov 16 11:03 ./
drwxr-xr-x  4 root  wheel  512 Nov 16 11:03 ../

$ mount
/dev/sd0a on / type ffs (local, wxallowed, softdep)
/dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep)
/dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep)
/dev/sd0e on /var type ffs (local, nodev, nosuid, softdep)

hotplug-diskmount create the mounting point but not mount it,
apparently, is'nt-it?!

Egual, i modified /etc/hotplug/attach, as:

#!/bin/sh
#
# /etc/hotplug/{attach,detach}

DEVCLASS=$1
DEVNAME=$2
LOGIN="my_userid"

case "${DEVCLASS}" in
2)
/usr/local/libexec/hotplug-diskmount attach -u "$LOGIN" -g
"$LOGIN" -m 0700 -r dirty "$DEVNAME"
;;
esac

Restarting hotplugd, but i've same bad result. :(



And, yes. i change the term "my_userid" by my real userid ;-)


On 11/16/16 10:52, Alexey Vatchenko wrote:
> From my attach script:
> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r
> dirty -F "$DEVNAME"
>
> As a result:
> /dev/sd2i on /vol/TransMemory type ntfs (local, nodev, nosuid, read-only)
>
> With FUSE,
> /usr/local/libexec/hotplug-diskmount attach -u av -g av -m 750 -r
> dirty "$DEVNAME"
>
> And the result:
> fusefs on /vol/EDGE type fuse (local)
>
> On Tue, Nov 15, 2016 at 9:15 AM, Stephane HUC "CIOTBSD"
> <b...@stephane-huc.net <mailto:b...@stephane-huc.net>> wrote:
>
>
> $ /usr/local/libexec/hotplug-diskmount attach -u $USER -m 0700 -F 3AS
>
>
> Try the following way:
>
> $ doas   /usr/local/libexec/hotplug-diskmount attach -u zou -m 0700 -F sd1
>
> where zou - your login name (as i understand from your letter) and sd1
> - currently attached device.

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-14 Thread Stephane HUC &quot;CIOTBSD"
On 11/14/16 13:03, Alexey Vatchenko wrote:
> Unfortunately, from time to time FUSE hangs my system. So I have to
> use -F to disable FUSE.

$ /usr/local/libexec/hotplug-diskmount cleanup 3AS

$ /usr/local/libexec/hotplug-diskmount attach -u $USER -m 0700 -F 3AS

$ mount
/dev/sd0a on / type ffs (local, wxallowed, softdep)
/dev/sd0l on /home type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/sd0f on /usr type ffs (local, nodev, wxallowed, softdep)
/dev/sd0g on /usr/X11R6 type ffs (local, nodev, softdep)
/dev/sd0h on /usr/local type ffs (local, nodev, wxallowed, softdep)
/dev/sd0k on /usr/obj type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0i on /usr/ports type ffs (local, nodev, nosuid, wxallowed, softdep)
/dev/sd0j on /usr/src type ffs (local, nodev, nosuid, softdep)
/dev/sd0e on /var type ffs (local, nodev, nosuid, softdep)

Here, disk is not displaying!?

$ ls -la
/vol/   


total 16
drwxr-xr-x   4 root  wheel  512 Nov 15 08:07 .
drwxr-xr-x  14 root  wheel  512 Nov  6 18:19 ..
drwx--   2 root  wheel  512 Nov 15 08:07 .db
drwx--   2 zou   wheel  512 Nov 15 08:07 3AS

$ ls -la
/vol/3AS/   


total 8
drwx--  2 zou   wheel  512 Nov 15 08:07 .
drwxr-xr-x  4 root  wheel  512 Nov 15 08:07 ..

Nothing ?!

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-14 Thread Stephane HUC &quot;CIOTBSD"
Ok,

Last night, i formatted again my HDD under Windows 7, in NTFS - normal
mode.
This taked more than 3 hours.

After i connect at my laptop under OBSD. It's same result.

$ disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: 3AS
duid: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
boundstart: 0
boundend: 625142448
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  c:6251424480  unused  
  i:625139712 2048   MSDOS  

Always, fstype appears as MSDOS!



On 11/13/16 21:57, David Coppa wrote:
> On Sun, 13 Nov 2016, Stephane HUC "CIOTBSD" wrote:
>
>> $ disklabel sd1
>> # /dev/rsd1c:
>> type: SCSI
>> disk: SCSI disk
>> label: 3AS
>> duid: 
>> flags:
>> bytes/sector: 512
>> sectors/track: 63
>> tracks/cylinder: 255
>> sectors/cylinder: 16065
>> cylinders: 38913
>> total sectors: 625142448
>> boundstart: 0
>> boundend: 625142448
>> drivedata: 0
>>
>> 16 partitions:
>> #size   offset  fstype [fsize bsize  cpg]
>>   c:6251424480  unused
>>   i:625139712 2048   MSDOS
>   ^^^
>
> Now that I've read your mail carefully...
>
> Why is your disk of type "MSDOS"?
>
> It should be "NTFS".
>
> Here's the output of disklabel for a ntfs formatted pendrive I have
> here:
>
> ---8<---
>
> # /dev/rsd2c:
> type: SCSI
> disk: SCSI disk
> label: TS4GJFV30   
> duid: 
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 498
> total sectors: 8011774
> boundstart: 0
> boundend: 8011774
> drivedata: 0 
>
> 16 partitions:
> #size   offset  fstype [fsize bsize   cpg]
>   c:  80117740  unused
>   i:  8009726 2048NTFS
>
> ---8<---
>
> Ciao!
> David
>

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-13 Thread Stephane HUC &quot;CIOTBSD"
On 11/13/16 21:32, Mihai Popescu wrote:
> Why don't you run hotplug-diskmount directly in a terminal an see what
> is the message, if any?
> 

As:

# /usr/local/libexec/hotplug-diskmount cleanup 3AS
# /usr/local/libexec/hotplug-diskmount attach 3AS

# ls -al /vol/
total 16
drwxr-xr-x   4 root  wheel  512 Nov 13 21:47 .
drwxr-xr-x  14 root  wheel  512 Nov  6 18:19 ..
drwx--   2 root  wheel  512 Nov 13 21:47 .db
drwx--   2 my_userid   wheel  512 Nov 13 21:47 3AS

# ls -al /vol/3AS/
total 8
drwx--  2 my_userid   wheel  512 Nov 13 21:47 .
drwxr-xr-x  4 root  wheel  512 Nov 13 21:47 ..
#

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Re: Mount HDD USB on 6.0 Stable: Fail

2016-11-13 Thread Stephane HUC &quot;CIOTBSD"
Not anyway!

It's installed ;)

$ pkg_info -Q ntfs
ntfs_3g-2016.2.22 (installed)


On 11/13/16 18:44, David Coppa wrote:
> On Sun, Nov 13, 2016 at 5:16 PM, Stephane HUC "CIOTBSD"
> <b...@stephane-huc.net> wrote:
>> Hi, all
>>
>> I attempt to mount an external HDD, on my OBSD 6.0 stable.
>> For this, i use 'hotplug-diskmount' in version 1.0.2 downloaded on this url:
>>
>> https://bitbucket.org/alex_vatchenko/hotplug-diskmount/get/HOTPLUG_DISKMOUNT_1_0_2_RELEASE.tar.gz
>>
>> Because, this version seems to support NTFS.
>> (see, official info on the webpage project:
>> http://www.bsdua.org/hotplug-diskmount.html)
>>
>> I configured /etc/rc.conf.local as:
>> $ egrep "hotplug" /etc/rc.conf.local
>>
>> hotplugd_flags=
>>
>> After adding Fuse package, i make and install:
>> $ pkg_info -Q fuse
>> enblend-enfuse-4.0p4
>> exfat-fuse-1.2.4 (installed)
>> fuse-1.1.1p0 (installed)
>> fuse-utils-1.1.1p1 (installed)
>> fuse-zip-0.4.0 (installed)
>> libconfuse-2.7p3
>> py-defusedxml-0.4.1p0
>> sshfs-fuse-2.5 (installed)
> You're probably missing ntfs_3g:
>
> # pkg_add ntfs_3g
> quirks-2.270 signed on 2016-11-12T12:50:18Z
> ntfs_3g-2016.2.22: ok
>
> Install it, and retry.
>
> Ciao!
> David

-- 
~ " Fully Basic System Distinguish Life! " ~ " Libre as a BSD " +=<<<

Stephane HUC as PengouinPdt or CIOTBSD
b...@stephane-huc.net



Mount HDD USB on 6.0 Stable: Fail

2016-11-13 Thread Stephane HUC &quot;CIOTBSD"
Hi, all

I attempt to mount an external HDD, on my OBSD 6.0 stable.
For this, i use 'hotplug-diskmount' in version 1.0.2 downloaded on this url:

https://bitbucket.org/alex_vatchenko/hotplug-diskmount/get/HOTPLUG_DISKMOUNT_1_0_2_RELEASE.tar.gz

Because, this version seems to support NTFS.
(see, official info on the webpage project:
http://www.bsdua.org/hotplug-diskmount.html)

I configured /etc/rc.conf.local as:
$ egrep "hotplug" /etc/rc.conf.local

hotplugd_flags=

After adding Fuse package, i make and install:
$ pkg_info -Q fuse
enblend-enfuse-4.0p4
exfat-fuse-1.2.4 (installed)
fuse-1.1.1p0 (installed)
fuse-utils-1.1.1p1 (installed)
fuse-zip-0.4.0 (installed)
libconfuse-2.7p3
py-defusedxml-0.4.1p0
sshfs-fuse-2.5 (installed)

$ make
cc -O2 -pipe-c hotplug-diskmount.c
hotplug-diskmount.c: In function 'do_mount':
hotplug-diskmount.c:355: warning: passing argument 2 of 'execv' from
incompatible pointer type
hotplug-diskmount.c: In function 'do_fsck':
hotplug-diskmount.c:388: warning: passing argument 2 of 'execv' from
incompatible pointer type
hotplug-diskmount.c: In function 'do_ntfs3g':
hotplug-diskmount.c:434: warning: passing argument 2 of 'execv' from
incompatible pointer type
hotplug-diskmount.c: In function 'get_ntfs3g_label':
hotplug-diskmount.c:469: warning: passing argument 2 of 'execv' from
incompatible pointer type
cc   -o hotplug-diskmount hotplug-diskmount.o
  # make install
install -c -S -s  -o root -g bin  -m 555 hotplug-diskmount
/usr/local/libexec/hotplug-diskmount
install -c -o root -g bin -m 444  hotplug-diskmount.8
/usr/share/man/man8/hotplug-diskmount.8

I initialize hotplug-diskmount:
# /usr/local/libexec/hotplug-diskmount init

And, set enable and active this:
# rcctl enable hotplugd
# rcctl start hotplugd

The file /etc/hotplug/attach contains:
#!/bin/sh
#
# /etc/hotplug/{attach,detach}

DEVCLASS=$1
DEVNAME=$2
LOGIN="my_user"

case "${DEVCLASS}" in
2)
/usr/local/libexec/hotplug-diskmount attach -u "$LOGIN" -m 0700
"$DEVNAME"
;;
esac

Thoses rights are:
$ ls -al /etc/hotplug/attach

-rwxr-xr-x  1 root  wheel  212 Nov  6 12:52 /etc/hotplug/attach*

OK?!

When i attempt to mount NTFS USB HDD, it fails.

# dmesg
(...)
umass0 at uhub0 port 2 configuration 1 interface 0 "JMicron USB to
ATA/ATAPI bridge" rev 2.00/1.00 addr 6
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd1 at scsibus4 targ 1 lun 0:  SCSI2 0/direct fixed
serial.152d232951A8
sd1: 305245MB, 512 bytes/sector, 625142448 sectors

$ disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: 3AS
duid: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
boundstart: 0
boundend: 625142448
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  c:6251424480  unused
  i:625139712 2048   MSDOS

$ mount | egrep "sd1"
$

$ ls -al /vol/

total 16
drwxr-xr-x   4 root  wheel  512 Nov 13 16:05 ./
drwxr-xr-x  14 root  wheel  512 Nov  6 18:19 ../
drwx--   2 root  wheel  512 Nov 13 16:05 .db/
drwx--   2 my_userid   wheel  512 Nov 13 16:05 3AS/
$ ls -al /vol/3AS/

total 8
drwx--  2 zou   wheel  512 Nov 13 16:05 ./
drwxr-xr-x  4 root  wheel  512 Nov 13 16:05 ../

Nothing, it's displaying.

If, i wrote:
# mount /dev/sd1i usb/

mount_msdos: /dev/sd1i on /home/zou/usb: not an MSDOS filesystem

Normal, it's really NTFS!

When i use mount_ntfs:
# mount_ntfs /dev/sd1i usb/
$ ls -al usb/

total 150472
-rwxr-xr-x   1 my_userid  my_userid  2560 Jan  1  1601 $AttrDef*
-rwxr-xr-x   1 my_userid  my_userid 0 Mar 16  2015 $BadClus*
-rwxr-xr-x   1 my_userid  my_userid   9767808 Jan  1  1601 $Bitmap*
-rwxr-xr-x   1 my_userid  my_userid  8192 Mar 16  2015 $Boot*
drwxr-xr-x   1 my_userid  my_userid 0 Mar 16  2015 $Extend/
-rwxr-xr-x   1 my_userid  my_userid  67108864 Mar 16  2015 $LogFile*
-rwxr-xr-x   1 my_userid  my_userid  4096 Mar 16  2015 $MFTMirr*
drwxr-xr-x   1 my_userid  my_userid 0 Nov  9 09:49 $RECYCLE.BIN/
-rwxr-xr-x   1 my_userid  my_userid 0 Mar 16  2015 $Secure*
-rwxr-xr-x   1 my_userid  my_userid131072 Jan  1  1601 $UpCase*
-rwxr-xr-x   1 my_userid  my_userid 0 Mar 16  2015 $Volume*
drwxr-xr-x   1 my_userid  my_userid 0 Jan  1  1601 ./
drwxr-xr-x  37 my_userid  my_userid  1536 Nov 13 15:48 ../
-rwxr-xr-x   1 my_userid  my_userid21 Nov  2 05:50 .cm0013*
drwxr-xr-x   1 my_userid  my_userid 0 Oct 18 10:36 Data/
-rwxr-xr-x   1 my_userid  my_userid  7260 Nov  2 05:50
DataMigrationScript Sirius to Sirius.bat*
drwxr-xr-x   1 my_userid  my_userid 0 Oct 28 13:01 Documentation/
drwxr-xr-x   1 my_userid  my_userid 0 Oct 21 12:59 Drivers/
drwxr-xr-x   1 my_userid  my_userid 0 Nov  2 05:00 FBSD/
-rwxr-xr-x   1 my_userid  my_userid  1488 Nov  2 05:50 Licence
Evaluation.spi*