Custom firewall rule on ESXi Host

Create a backup of firewall config file

Modify the access permissions of the service.xml file to allow writes by running the chmod command:

To allow writes:

To toggle the sticky bit flag:

Update file service.xml

add rule (for example Squid proxy)

Reset permissions

Refresh the firewall rules for the changes to take effect by running the command:

 

To make persistent it we need to update service.xml file at boot time, so:

Create file /vmfs/volumes/datastore1/etc/squid.xml with follow content:

Edit file /etc/rc.local

So the created files are copied back to host at boot time. Add lines to the end of the file, for example:

Reset permissions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Route set using more network devices on CentOS

es:

eth0 > internet (10.151.200.0)

eth1 > intranet (192.168.1.0)

Remove GATEWAY from internal configuration /etc/sysconfig/network-scripts/ifcfg-eth1

Set GATEWAY only on eth0 configuration /etc/sysconfig/network-scripts/ifcfg-eth0

create file configuration /etc/sysconfig/network-scripts/route-eth1 to force route for specific subnet

192.168.1.0/24 192.168.1.1 dev eth1

From VirtualBox to VmWare VM

export vm from VirtualBox

convert vm into VmWare format

edit ovf file to change virtual system type:

from <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

to <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>

edit ovf file to update SATA controller with a SCSI controller:

from

to

remove file “VMNAME.mf”

import now vmdk into ESXi and after use SSH to access into shell. Now convert vmdk into ESXi format using:

after use vi editor to edit disk

to update ddb.adapterType from ide to lsilogic:

During boot you need to regenerate initramfs (in CentOS or Red Hat) using rescue kernel configuration and launch dracut command:

after install vmware tools but first you need to install dependencies

 

 

Get x509 certificate from website

you can use it as follow:

to generate google_certificate.crt

RabbitVCS

use git repo https://github.com/rabbitvcs/rabbitvcs

install common dependencies


for Nemo copy relative extension

RabbitVCS Nemo extension require some packages:


for Thunar copy relative extension

RabbitVCS Thunar extension require some packages:


for Nautilus copy relative extension

RabbitVCS Nautilus extension require some packages:


for Caja copy relative extension (still not working)

RabbitVCS Caja extension require some packages:

OBS Studio on Mageia 7 with nvenc

obtain ffmpeg nv codec headers:

edit Makefile to use /usr as PREFIX and lib64 as LIBDIR instead /usr/local and lib, after build and install with:

now install dependencies:

after get package from http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/7/SRPMS/core/release|updates and edit spec file to add –enable-nvenc after remove sdl in BuildRequires and rebuild

remove tained packages already installed with:

after install packages without static-devel, debugsource and debuginfo packages

 

 

 

in Mageia 6 instead you need only to:

 

Add a certificate authority (CA) certificate to jdk cacerts

We need to have ca certificate in der format, so if we have a my-ca.crt pem format ca certificate we need to convert it using:

openssl x509 -in my-ca.crt -inform pem -out my-ca.der -outform der

So to have list of already added certificates to jdk cacerts, we can use:

keytool -v -list -keystore /usr/lib/jvm/java/jre/lib/security/cacerts
default keystore password is: changeit

Keystore path could be different (es: /etc/pki/java/cacerts).

To import ca certificate use:

keytool -importcert -alias local-CA -keystore /usr/lib/jvm/java/jre/lib/security/cacerts -file my-ca.der

 

Xterm change look

use file ~/.Xresources as follow

to reload config restart X session or use