Como evitar el límite de subida de 2 Mb en WordPress

limpiar-html-wordpress

Cambiar en php.ini

Maximum allowed size for uploaded files.
upload_max_filesize = 2M
por
Maximum allowed size for uploaded files.
upload_max_filesize = 10M

Si lo anterior falla
max_execution_time = 7200; //Aumentar el tiempo de espera
upload_max_filesize = 20M; //aumentar tamaño permitido de archivos a subir
post_max_size = 20M; //aumentar tamaño de post

sino .htaccess
php_value upload_max_filesize 10M#set max post size
php_value post_max_size 10M

Impactos: 4

notas ESX-i

vmware

vim-cmd vmsvc/getallvms

Start /MIN /D “C:\Program Files\VMware\VMware Remote Console\” vmrc vmrc://root@<IP>/?moid=<ID>
—————————————————-

Apagar virtual machine

esxcli vm process list

esxcli vm process kill –type= [soft,hard,force] –world-id= WorldNumber

Empezaremos realizando una comprobación de disco, cualquier de las dos posibles opciones siguientes es valida:

vmkfstools -x check /vmfs/volumes/NOMBRE_DATASTORE/NOMBRE_CARPETA/NOMBRE_DISCO.vmdk

vmkfstools –fix check /vmfs/volumes/NOMBRE_DATASTORE/NOMBRE_CARPETA/NOMBRE_DISCO.vmdk

La construcción final que hemos hecho en nuestro laboratorio será la siguiente:

vmkfstools –fix check /vmfs/volumes/Datastore3/SRVDC/SRVDC.vmdk

Disk is error free

Si no se encuentran errores en nuestro disco nos desvolverá el mensaje que podemos ver en nuestro ejemplo.

Continuaremos con las opciones de reparación de un disco virtual como en el caso anterior cualquiera de las dos versiones es totalmente válida:

vmkfstools -x repair /vmfs/volumes/NOMBRE_DATASTORE/NOMBRE_CARPETA/NOMBRE_DISCO.vmdk

vmkfstools –fix repair /vmfs/volumes/NOMBRE_DATASTORE/NOMBRE_CARPETA/NOMBRE_DISCO.vmdk

La construcción final que hemos hecho en nuestro laboratorio será la siguiente:

vmkfstools –fix repair /vmfs/volumes/Datastore3/SRVDC/SRVDC.vmdk

Disk is error free

También tenemos la opción de poder comprobar toda la cadena de disco, así podremos determinar si alguno de los eslabones de la cadena están dañados o existe alguna relación no válida entre padres e hijos.

Para llevar a cabo esta acción usaremos el parámetro –chainConsistent en la construcción que mostramos a continuación

vmkfstools –chainConsistent /vmfs/volumes/NOMBRE_DATASTORE/NOMBRE_CARPETA/NOMBRE_DISCO.vmdk

La construcción final que hemos construido en nuestro laboratorio será la siguiente:

vmkfstools –chainConsistent /vmfs/volumes/Datastore3/SRVDC/SRVDC.vmdk

/vmfs/volumes/58faf513-14e12610-798d-002186282a26/ram

sched.swap.dir
cambiar hora sistema
esxcli system time set -d 24 -H 18 -m 10 -M 07 -y 2017

esxcli hardware clock set -d 24 -H 18 -m 10 -M 07 -y 2017

How to Increase Session Timeout on ESXi 6 & 6.5

To increase the session timeout, all you need to do is change one advanced configuration parameter in the ESXi Host Client Web Interface.

First, log in to the web interface. After doing so, navigate to Host > Manage > System > Advanced Settings. Scroll down or search for the UserVars.HostClient.SessionTimeout key.

Impactos: 3

Habilitar ssh root Ubuntu

Ubuntu

sudo nano /etc/ssh/sshd_config
change
PermitRootLogin prohibit-password
to
PermitRootLogin yes
or sudo sed -i ‘s/prohibit-password/yes/’ /etc/ssh/sshd_config
in order to PAM authentication add
AllowUsers root
or sudo echo “AllowUsers root” >> /etc/ssh/sshd_config
sudo service ssh restart

sudo passwd root

Impactos: 3

Habilitar VNC en implementaciones de VMware

vmware

This article outlines the steps needed to enable VNC on VMware, so that the VNC console can be used within the Platform9 UI.
Step 1 – Changes Needed on the ESXi Hosts Housing the Virtual Machines

SSH to the ESXi host (not vCenter). We need to open the VNC ports on the ESXi firewall. These steps need to be performed on all the ESX hosts that are part of the clusters authorized with Platform9 controller. An automated script for doing same is coming soon.

chmod 644 /etc/vmware/firewall/service.xml
chmod +t /etc/vmware/firewall/service.xml
vi /etc/vmware/firewall/service.xml

Create a new service block before the end of ConfigRoot tag.

<service id=”new unique id within this file”>
<id>VNC</id>
<rule id=”0000″>
<direction>inbound</direction>
<protocol>tcp</protocol>
<porttype>dst</porttype>
<port>
<begin>5900</begin>
<end>6199</end>
</port>
</rule>
</service>

Step 2 – Add Firewall Rules to the ESXi Firewall and Verify that Ports Have Been Opened

On the ESXi host, execute the following commands

esxcli network firewall refresh
esxcli network firewall ruleset set –ruleset-id VNC –enabled true

Verify that the firewall rules were applied and the ports are open by executing the following commands

esxcli network firewall ruleset list
# You should see a rule labelled VNC in the output
esxcli network firewall ruleset rule list
# You should see the details of VNC rule i.e. port range, protocol, direction, etc.

Step 3 – Enable VNC for Existing Virtual Machines (Optional)

To enable VNC console for existing VMs, power off the VM and use one of the following:

Using vSphere Web Client
Click on “edit settings”-> Select the “VM Options” tab->Expand the “Advanced” section-> click on “Edit configuration” and add the settings mentioned at the end of this step
Directly on ESXi Host
Edit the *.vmx file of the corresponding VM and the lines mentioned here.

RemoteDisplay.vnc.enabled = “TRUE”
RemoteDisplay.vnc.port = “<port>” # Port between 5900 and 6199

IMPORTANT NOTES –
1. The key point in the step 3 is to make sure that the port number that you are adding does not collide with any other VM. One way to verify that is to SSH into the ESXi host and run grep on all the *.vmx files and choose a port that is not present in the output

grep “vnc.port” */*/*/*/*.vmx

2. For VNC console to work, the appliance, the ESX host, and the browser where the VNC is being accessed need to have IP connectivity to each other.

https://docs.platform9.com/support/enable-vnc-on-vmware-deployments/

Impactos: 0

Instalar Android Studio en Centos 7

Install Android Studio on CentOS 7

If you have installed CentOS7 on your computer, you can install android studio by just running two scripts. The scripts are given below. If you are not interested to install using the scripts, you can run the commands one by one.

For the installation you have to download jdk-8u101-linux-x64.rpm(for 64 bit) and android-studio-ide-145.3330264-linux.zip. JDK can be downloaded from the link http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html.
Assumed that you installed 64 bit version of CentOS.

Android studio zip file can be downloaded from https://developer.android.com/studio/index.html.

Take your terminal and login as root. Move the downloaded files to your /opt folder. Then create step1.sh and step2.sh in your /opt folder. Run them as

#./step1.sh
#./step2.sh

step1.sh
#!/bin/bash
yum group install -y “Development Tools”
yum install -y glibc.i686
yum install -y libgcc_s.so.1
yum remove -y java
cd /opt
yum localinstall -y jdk-8u101-linux-x64.rpm

step2.sh
#!/bin/bash
cd /opt
unzip android-studio-ide-145.3330264-linux.zip
cd android-studio/bin
./studio.sh

Oracle JDK is required for Android, because of that we are removing Open JDK and installing Oracle JDK.

Impactos: 1

Instalar LINSET en Kali Linux

Instalar LINSET en Kali Linux

primero
cd Desktop
segundo
leafpad /etc/apt/sources.list
y añadimos
deb http://ftp.de.debian.org/debian testing main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
tercero
apt-get update
apt-get upgrade
apt-get install hostapd
apt-get install lighttpd
apt-get install Php5-cgi
cuarto
ejecutar Linset
cd linset
chmod +x linset
./linset

Impactos: 5