zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Rsync over SSH

January 19, 2014 by Igor Drobot Leave a Comment

Rsync over SSH

In some special cases is a VM accessible over NAT and on different port as usually 22.
In this case – SSH is running on port 222.
This make the rsync operation little bit complexer:

1
rsync -vraze 'ssh -p 222' root@remote:/source/ /destination/

rsync -vraze 'ssh -p 222' root@remote:/source/ /destination/

Filed Under: Linux Tagged With: NAT, rsync, ssh

Samba permissions ignored with Mac OS X

January 19, 2014 by Igor Drobot Leave a Comment

Samba Logo

Mac OS X has a kind of different client behavior with a SMB-Server (Samba 3.6.6-6) than a Windows client.

By saving new files, they will be stored with Mask “0600/-rw——-” and that doesn’t matter what samba configuration prescribes (force create mode = 777).

So the explanation for this problem was found in the SAMBA documentation:

SAMBA has the “unix extensions” option set to “on” by default. This allows Unix users who write to the Samba shares to set their own permissions bits.

Now set them in the SAMBA global section [1] to off:

1
unix extensions = no

unix extensions = no

[1] SAMBA configuration file: /etc/samba/smb.conf

Filed Under: Linux Tagged With: MAC OS X, Samba

Change Munin Hostname

December 26, 2013 by Igor Drobot Leave a Comment

Munin

If you need to change the hostname of an existing munin node with a lot of data, and you want to retain all this existing historical data, follow this procedure:
[Read more…]

Filed Under: Bash, Linux, Monitoring Tagged With: bash, mass rename, Munin

Remote Mirroring with nc and dd

November 13, 2013 by Igor Drobot Leave a Comment

Copy

Migration from Freenas all ZFS volumes to another machines lvm is pretty simple.

create on you new machine logical volume and start netcat which will write everything it receives to the new LVM of your choice:

# Source box

1
dd bs=16M if=/dev/disk/by-path/iscsi-mysql-lun-0 | nc 192.168.1.254 19000

dd bs=16M if=/dev/disk/by-path/iscsi-mysql-lun-0 | nc 192.168.1.254 19000

# Destination box (192.168.1.254)

1
nc -l -p 19000|dd bs=16M of=/dev/vg0/mysql-data

nc -l -p 19000|dd bs=16M of=/dev/vg0/mysql-data

Filed Under: Linux Tagged With: dd, FreeNAS, LVM, nc, netcat, ZFS

TXT_DB error number 2 failed to update database

November 13, 2013 by Igor Drobot 17 Comments

OpenVPN Logo

While signing a certificate for a new OpenVPN user, I received the following error message which stops the whole process (exit code 1)

Certificate is to be certified until Nov 6 08:53:05 2023 GMT (3650 days)
Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2

Problem:
Because you have generated your own self signed certificate with the same CN (Common Name) information that the CA certificate that you’ve generated before.

Enter another Common Name.

Filed Under: Linux, OpenVPN Tagged With: OpenVPN, Roadwarrior

  • « Previous Page
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • …
  • 74
  • Next Page »
Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok