Date of yesterday

2018-04-08 Thread Max Power
Hi guys,
How can I do to get yesterday's date?
I need for create a backup directory.
On Linux:
yesterday=backup_$(date -d "yesterday" '+%Y_%m_%d')
mkdir -p /raid1/backup/$yesterday

Thanks for reply.



Mellanox ConnectX-2 10Gb

2018-03-06 Thread Max Power
Hi guys,
Is this nic 'Mellanox ConnectX-2 10Gigabit' supported?
If Yes, from which version?

Thanks for reply.



gtar: ambiguous package

2017-10-09 Thread Max Power
Hi guys, and wishes for the new release, Thank You Theo.

Installing gtar ask me:
Ambiguos: choose package for gtar
a  0:
 1: gtar-1.28p1
 2: gtar-1.28p1-static
Your choice:

Ok, but differece between 'normal' and 'static'...? 
Thanks.


tar: file is too long for ustar

2017-10-09 Thread Max Power
Hi guys.
OpenBSD never ceases to amaze me...!!

Solved the problem about maximum compression with bzip2 by tar, there's 
another...
while tar run [tar cvvf - directory | bzip2 -9 -v > directory.tbz2], at a 
certain point, return:
tar: file is too long for ustar 
The file that creates the problem is 30GB.

What happen? 
How Can I fix this problem...?
Thanks.

Solved: Tar and bzip2 maximum compression

2017-10-09 Thread Max Power
Thank You leo_...@volny.cz!

Tar and bzip2 maximum compression

2017-10-09 Thread Max Power
Hi guys,
How can I get the maximum compression from bzip2 by tar?

I try this but not work [although with linux it works]:
tar cvv file_to_compress | pbzip2 -9 -v > compressed.tbz2
return-->   tar: Failed open to write on /dev/rst0: Device not configured

Can anyone give me some tips?
Thanks.




Re: Minium System Requirements

2017-07-22 Thread Max Power
Thank guys,
but In addition to your advice...
possible that there is no official documentation?

This is the questions...!

Minium System Requirements

2017-07-22 Thread Max Power
Hi guys,
I'm looking for on http://www.openbsd.org but...
Where Can I find the official documentation about the 'minimum system 
requirements' about OpenBSD?

Thanks.

network address in vm by kvm - default gw

2016-11-26 Thread Max Power
Hi guys,
Forgive me, but I am not very expert of OpenBSD.
Guide, about Virtual Host, show examples for all
Operating System but not for OpenBSD. Stupid OVH!
This is the FreeBSD 8.0 way:

Contents of the file : /etc/rc.conf
ifconfig_em0="inet IP.FAIL.OVER netmask 255.255.255.255 broadcast
IP.FAIL.OVER"
static_routes="net1 net2"
route_net1="-net GATEWAY_VM/32 IP.FAIL.OVER"
route_net2="default GATEWAY_VM"

I can not understand how/where to set the last 2 line 'route_netX'
Please, can someone show me how to do in OpenBSD 6.0 adm64...?

Thanks very much for reply.



network address in vm by kvm

2016-11-26 Thread Max Power
Hi guys,
I need to configure my Virtual Host [OpenBSD 6.0 amd64]
in the way [bottom: Linux example]:

auto eth0
iface eth0 inet static
address 5.6.77.8
netmask 255.255.255.255
broadcast 5.6.77.8
post-up route add 123.4.5.254 dev eth0
post-up route add default gw 123.4.5.254
post-down route del default gw 123.4.5.254
post-down route del 123.4.5.254 dev eth0

Can someone tell me how to do?

Thanks for reply.



recovery deleted directory

2016-05-07 Thread Max Power
Hi guys!
Is there a way to recover a deleted directory on ffs
file system in OpenBSD 5.9/amd64...?

Thanks for reply.



Re: remove files progress bar : solved!

2016-04-03 Thread Max Power
Thank You very much Raul!

This is precisely the way I was looking for...


> Try this, then:
>
> #  yes | rm -ir /home/games; echo
>
> This will put everything on one long line which will be a bit ugly,
> but will show progress as it happens.
>
> Thanks,
>
> --
> Raul
>
>
> On Sun, Apr 3, 2016 at 12:21 PM, Max Power <open...@cpnetserver.net>
> wrote:
>> Thank You Raul for reply,
>> Your command line run so well... but it is not suitable for the purpose.
>> I want to see 'while you're erasing them' not 'after like a log'.
>>
>> Maybe It not possible.
>>
>> [it wanted only a rm -v as in Linux!]
>>
>>
>>
>>> #  yes | rm -ir /home/games 2>&1 | sed 's/remove //g; s/\?//g' |fmt
>>>
>>> (Here, # is meant to represent the prompt - it's not a part of the
>>> command.)
>>>
>>> Thanks,
>>>
>>> --
>>> Raul
>>>
>>>
>>> On Sun, Apr 3, 2016 at 3:59 AM, Max Power <open...@cpnetserver.net>
>>> wrote:
>>>> Hi Raul, Thanks for Your reply.
>>>>
>>>> I tried & failed ... !!
>>>>
>>>> Could you give me, please, a practical example...?
>>>> e.g.: remove /home/games
>>>>
>>>>
>>>>> On Sun, Apr 3, 2016 at 2:57 AM, Max Power <open...@cpnetserver.net>
>>>>> wrote:
>>>>>> Hi guys!
>>>>>> Is there a way to view the deleted file or a progress bar
>>>>>> while you're erasing them?
>>>>>>
>>>>>> Thanks for Your reply.
>>>>>
>>>>> Do you mean like this?
>>>>>
>>>>> yes | rm -i ./* 2>&1 | sed 's/remove //g; s/\?//g' |fmt
>>>>>
>>>>> If that kind of behavior is what you want, you could make that
>>>>> command
>>>>> line into a shell script, replacing the ./* with "$@". This would
>>>>> allow you to use it with xargs, for example (though, for xargs, you
>>>>> might also want to remove the |fmt and pipe the result of xargs to
>>>>> fmt...).
>>>>>
>>>>> If you want something different, I guess you would have to be a bit
>>>>> clearer on what you are asking for.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --
>>>>> Raul



remove files progress bar

2016-04-03 Thread Max Power
Hi guys!
Is there a way to view the deleted file or a progress bar
while you're erasing them?

Thanks for Your reply.



date not respect for 5.8 and 5.9

2016-03-31 Thread Max Power
Hi guys!
Why the release 5.8 and 5.9 did not comply with the canonical date
of the 1th November and of the 1th May?

Thanks in advance for your reply.



Re: groupdel 'command' don't remove group id

2016-03-16 Thread Max Power
Find! Thank You Paul.

in /etc/passwd [about user]

testx:*:1001:1000::/home/testx:/usr/bin/false

So I have no choice but to replace '1001' with '1000' ?

testx:*:1000:1000::/home/testx:/usr/bin/false Ok?




> On Wed, Mar 16, 2016 at 07:10:09AM +0100, Max Power wrote:
> | Hi Todd, guys.
> |
> | LogOut e reboot has been the first thing I have done,
> | but nothing... gid is always there!
> |
> | The group not exist but gid: yes!
> | # groups testx: group: can't find group 'testx'
> | # id testx: uid=1001(testx) gid=1001 groups=1001, 1000(laboratory)
>
> The gid id reports here is the group that's configured in your passwd
> file.  The line will look like this:
>
> testx:*:1001:1001:Test User:/home/testx:/bin/ksh
> -
>
> That's the GID right there.  A user always has a login group that's
> configed in /etc/passwd.  If you don't want this group to be used,
> don't put users in it (either in /etc/group as additional groups or in
> /etc/passwd as the login group).
>
> Cheers,
>
> Paul 'WEiRD' de Weerd
>
> | I just can not understand this!
> | can someone please help me?
> | Thanks.
> |
> | The same situation, with other deleted group, is on another server with
> | OpenBSD 5.7 amd64.
> |
> | > A user's active groups are set at login time.  Removing a group
> | > from the group file does not affect processes that are already
> | > running.  If you logout and login again after removing the group
> | > you should no longer be a member of the group.
> | >
> | >  - todd
> |
>
> --
>>[<++>-]<+++.>+++[<-->-]<.>+++[<+
> +++>-]<.>++[<>-]<+.--.[-]
>  http://www.weirdnet.nl/



Re: groupdel 'command' don't remove group id

2016-03-16 Thread Max Power
Hi Todd, guys.

LogOut e reboot has been the first thing I have done,
but nothing... gid is always there!

The group not exist but gid: yes!
# groups testx: group: can't find group 'testx'
# id testx: uid=1001(testx) gid=1001 groups=1001, 1000(laboratory)

I just can not understand this!
can someone please help me?
Thanks.

The same situation, with other deleted group, is on another server with
OpenBSD 5.7 amd64.

> A user's active groups are set at login time.  Removing a group
> from the group file does not affect processes that are already
> running.  If you logout and login again after removing the group
> you should no longer be a member of the group.
>
>  - todd



groupdel 'command' don't remove group id

2016-03-15 Thread Max Power
Hi peoples!

Operating System: OpenBSD 5.8 amd64.
I removed a group with 'groupdel' command,
When I run the 'groups' command the result is: 'group: can't find group
'testx'
...but when the I run 'id' command or look for the user that was
associated with it, the group exist: id testx =
uid=1001(testx) gid=1001 groups=1001, 1000(laboratory)
# groups testx [user in this case associated with other group]:
1001 laboratory

The same scenario, with OpenBSD 5.7 amd64
with 'groups' command, gid non appears:
# groups testx
laboratory
but for the rest is the same, although the group is removed
his gid exist.

Why this happens? Can I remove gid?

Thanks for Your replies.



# symbol - The English Way...

2015-06-17 Thread Max Power
http://time.com/2870942/hashtag-oed-oxford-english-dictionary/

Thank You boys for reply!!

Just for the knowledge.



# sign

2015-06-17 Thread Max Power
Hi guys!
In Enghlish_US way, you have no certainties.
# symbol, I've always named 'hash',
but from recent research I found which is also named:
number, pound, octothorpe, octothorp, octothorn...

which is the exact name for it? (In computer way naturally...)

Thanks for reply.



GROUP CHANGED

2015-06-14 Thread Max Power
Hi guys!

I copied my files from Debian [ext4] to my new server OpenBSD [5.7 amd64],
and I found that all files of 'ROOT' group were imported [in OpenBSD] in
the 'Wheel' group.
Why is this?

[Owner is the same, there is no change.]

Thank fro reply.



GROUP CHANGED

2015-06-14 Thread Max Power
Thank You Gilles for Your reply.

Only the group is changed.
But why the owner is remained the same [root]?
On OpenBSD, I can not get root:root ?

Thanks.

 On Sun, Jun 14, 2015 at 04:32:18PM +0200, Max Power wrote:
 Hi guys!

 I copied my files from Debian [ext4] to my new server OpenBSD [5.7
 amd64],
 and I found that all files of 'ROOT' group were imported [in OpenBSD] in
 the 'Wheel' group.
 Why is this?

 [Owner is the same, there is no change.]

 Thank fro reply.


 wheel is the new root.

 https://en.wikipedia.org/wiki/Wheel_(Unix_term)

 --
 Gilles Chehade

 https://www.poolp.org  @poolpOrg



SAMBA CIFS/SMBMOUNT

2015-06-07 Thread Max Power
Hi guys!
Question about OpenBSD 5.7 amd64.
How to mount shared device via samba fs?

I tried in this way:
# mount -t cifs //192.168.2.111/raid5/download /BACKUP -o
username=user,password=passwd
and this returns:
mount: no mount helper program found for cifs: No such file or directory

Thank You for reply.



SOLVED! System BOOT (and load) Read-Only File System: SOLVED!

2015-06-05 Thread Max Power
Thank you guys!
I solved in this way:
boot boot -s
# mount -uw /
# fsck


 Original Message 
Subject: System BOOT (and load) Read-Only File System
From:Max Power open...@cpnetserver.net
Date:Thu, June 4, 2015 10:52 pm
To:  misc@openbsd.org
--

Last night I turned off the server, all ok.
This morning I turned on the server (OpenBSD 5.7 amd64) and the system
loads read-only file system... I can not even settle with fsck (just
because the file system is read-only). A tip, thanks.



System BOOT (and load) Read-Only File System

2015-06-04 Thread Max Power
Last night I turned off the server, all ok.
This morning I turned on the server (OpenBSD 5.7 amd64) and the system
loads read-only file system... I can not even settle with fsck (just
because the file system is read-only). A tip, thanks.



INVALID ROOT NODE

2014-11-30 Thread Max Power
Hi guys,
I have a CRYPTO - RAID 1 softraid device /dev/sd4a [3TB OpenBSD 5.6/amd64]
on which I have about 1,400,000 files and I've never had problems reading
or writing. If, however, launch the tree command, eg. tree c *, returns me:
tree: invalid root node: name_of_file.

I tried to run a fsck and this is the result
# fsck /dev/sd4a
** /dev/rsd4a (NO WRITE)
** Last Mounted on /RAID1
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
1367897 files, 219769546 used, 143692 free (48040 frags, 17948169
blocks, 0.0% fragmentation)

tree: invalid root node: name_of_file  # The file listed is ok!
What does this message mean?
This is only a warnign o It's a problem of my raid or my hard drives?
Thanks Max Power.



ROUNDROBIN TRUNK

2014-03-15 Thread Max Power
Hi,
with Roundrobin Trunk, if a nic fails,
all traffic stop or the other nic continues to work
without problems...?

Thank, Max Power.



DAYS OF THE MONTH

2013-07-12 Thread Max Power
Hi,
o.s.: OpenBSD 5.3/amd64

If I create a directory with the command: mkdir $(date +'%d')

why this is the result: 1, 2, 3, 4, 5, 6, 7, 08, 09, 10, etc.
Why the '0' [zero] appears only ahead the digit 8 and 9..?

Thanks.



Re: days of the month

2013-07-12 Thread Max Power
 You must have done something wrong:
I have not done anything. The system is the default installation.

 You'd better put double quotes around your command substitutions rather
 than simple quotes around fixed, non-special strings: $(date '+%d')
Ok, but why the command: mkdir $(date +'%d') after the digit 7 works fine?

If I insert the date manually then it works fine - example: # date
20130707
but no by default. Why? thanks


 Max Power open...@cpnetserver.net writes:

 Hi,

 Hi. Please stop using all-caps mail subjects.

 o.s.: OpenBSD 5.3/amd64

 If I create a directory with the command: mkdir $(date +'%d')

 You'd better put double quotes around your command substitutions rather
 than simple quotes around fixed, non-special strings: $(date '+%d')

 why this is the result: 1, 2, 3, 4, 5, 6, 7, 08, 09, 10, etc.
 Why the '0' [zero] appears only ahead the digit 8 and 9..?

 You must have done something wrong:

 $ date -j +%d 2013701
 01
 $

 See strftime(3).

 --
 Jérémie Courrèges-Anglas
 PGP Key fingerprint: 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494



Re: days of the month

2013-07-12 Thread Max Power
Forgive my fault and my English!
What I want to know is why [technically] the scipt: mkdir $(date +'%d'),
whith the default system date, with no manual insertion, return this
sequence of digits: 1, 2, 3, 4, 5, 6, 7, 08, 09, 10, etc.
Why the '0' [zero] appears only after the digit 7?

I hope I explained myself.
Thanks for the explanation and for your patience, Max Power.



 On Jul 12 23:34:27, open...@cpnetserver.net wrote:
  You must have done something wrong:
 I have not done anything. The system is the default installation.

  You'd better put double quotes around your command substitutions
 rather
  than simple quotes around fixed, non-special strings: $(date '+%d')
 Ok, but why the command: mkdir $(date +'%d') after the digit 7 works
 fine?

 Come back on the first of August,
 with a script(1) in your hand.



HTTPD2 script problem

2013-06-23 Thread Max Power
Hi guys!

OpenBSD 5.3/amd64:

pkg_add apache-httpd [ok.]

next step
/etc/rc.d/httpd2 start
returns:
httpd2(failed)

Instead
/usr/local/sbin/apachectl2 start
It works and load Apache2.

Why?

Thanks, Max Power.