lunes, 27 de noviembre de 2023

Organiza tus Archivos con un Simple Script en Windows

Organiza tus Archivos en Segundos con Batch 


@echo off


echo Organizando archivos por tipo...


:: Crear directorios para organizar los archivos

mkdir Imagenes Documentos Musica Otros


:: Mover archivos a los directorios correspondientes por tipo

move *.jpg Imagenes > nul

move *.png Imagenes > nul

move *.gif Imagenes > nul

move *.bmp Imagenes > nul


move *.doc* Documentos > nul

move *.pdf Documentos > nul

move *.txt Documentos > nul

move *.xls* Documentos > nul


move *.mp3 Musica > nul

move *.wav Musica > nul

move *.flac Musica > nul


:: Mover cualquier otro archivo a la carpeta "Otros"

move *.* Otros > nul


echo Organización completa.

pause

domingo, 4 de junio de 2023

 

Cómo crear lluvia de matrix en Símbolo del sistema


@echo off

:a

color 2

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

ping localhost -n 1 > nul

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

ping localhost -n 1 > nul

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

ping localhost -n 1 > nul

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

ping localhost -n 1 > nul

echo 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1

goto a 

viernes, 12 de julio de 2019

How to install ISPConfig 3 on CentOS 7


First of all you must install the following

yum install net-tools
yum install telnet
yum update
yum upgrade

Disable Selinux (This must be done on each node)

sed -i 's/enforcing/disabled/g' /etc/selinux/config /etc/selinux/config

Disable firewall (firewalld) (This must be done on each node)
                                                      
systemctl disable firewalld

Once you are logged in to the server, you can type the following commands to update all of your currently installed packages to their latest available versions. After that, you’ll enable the required packages for the ISPConfig by installing the “Development Tools” bundle:

yum -y install yum-priorities
yum update
yum -y groupinstall 'Development Tools'

Install LAMP Stack

Once the system is up to date, we can continue installing the LAMP stack with Apache, MariaDB, PHP, NTP, and phpMyAdmin.

yum install ntp httpd mod_ssl mariadb-server php php-mysql php-mbstring phpmyadmin

After the LAMP stack has been successfully installed on your server, you can use the commands below to start and enable the MariaDB service on the server.

systemctl start mariadb.service
systemctl enable mariadb.service

The next command is optional, but recommended by us. You can run this command if you want to secure your MariaDB server by disallowing remote root access, removing the test database, and creating a root password.

mysql_secure_installation

When prompted, answer the questions below by following the guide.

Enter current password for root (enter for none): Press the [Enter] key - we do not have a password currently set.
Set root password? [Y/n]: Y
New password: Enter your password
Re-enter new password: Repeat your password
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Restart the MariaDB server so that the changes take effect.

Install Dovecot

You can execute the following command to install Dovecot on your server:

yum -y install dovecot dovecot-mysql dovecot-pigeonhole

When the installation is complete, create a dovecot-sql.conf file using the command below, after which you’ll make a symbolic link pointing back to the file you just created:

touch /etc/dovecot/dovecot-sql.conf
ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf

Now use the following commands to restart and enable the Dovecot service on the server.

systemctl restart dovecot.service
systemctl enable dovecot.service

Install Amavisd-new, ClamAV, and SpamAssassin

By using the next command you will install ClamAV, Amavisd, and SpamAssassin, along with all of these additionally required packages, all in one go.

yum -y install amavisd-new spamassassin clamav clamd clamav-update unzip bzip2 unrar perl-DBD-mysql

Install PHP and Apache2 Modules

In this step, we will install some required Apache and PHP modules, such as mod_php, mod_fcgid, php-mysql, and so on. To proceed with the installation of the modules, use the command below:

yum -y install wget yum-utils
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php70

Install PHP and additional extensions.

yum -y install php php-json php-mcrypt php-ldap php-xml php-bcmath php-mbstring

yum -y install php-ldap php-mysql php-odbc php-pear php php-devel php-gd php-imap php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel mod_fcgid php-cli httpd-devel php-fpm perl-libwww-perl ImageMagick libxml2 libxml2-devel python-devel

Install PureFTPd

The most popular method for transferring files from one server to another or from one place to other is through the FTP protocol. In order to use this protocol, you’ll need to install an FTP server first. We will install PureFTP server because it is simple to install and easy-to-use. To install it on your server you only need to execute the following command:

yum -y install pure-ftpd

Install BIND

BIND, or named, is one of the most commonly used Domain Name System software packages available on the Internet. In order for ISPConfig to be able to manage and configure the DNS settings, you need to install the following packages on the server:

yum -y install bind bind-utils

Install ISPConfig

After we finish all previous steps, it’s time to download and install ISPConfing 3 on the server. We will use the wget command to make a copy of the official web link on the ISPConfig website. To change the directory to /opt/ and download the ISPConfig packages, run the next two commands:

cd /opt/
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz

Once the package has been downloaded, we’ll need to unpack it in order to use it. Unpack it with the command:

tar -zxvf ISPConfig-3-stable.tar.gz

Then use the following command to change the directory where the install script is placed.

cd ispconfig3_install/install/

To start the installation, you need to run this command:

php -q install.php


The installation instructions are self-explanatory, with each prompt describing exactly what sort of input ISPConfig expects. Once the setup is complete, you can continue to the next step.

ISPConfig Login

Since the installation is completed, you should be able to access the ISPConfig control panel on your web browser. Open your preferred web browser and type your server’s IP address with the default configured port for ISPConfig, as shown below.





 Enter the login credentials so that you can log in.
Upon login on the ISPConfig panel, you will see the panel dashboard, as shown in the image below.


In this article, we showed you how to install LAMP, Dovecot, Amavisd-new, ClamAV, SpamAssassin, PureFTPd, BIND, and of course, ISPConfig. Now you can continue exploring this open source control panel and check the possibilities that it offers.

Ing Jose Montilva

viernes, 21 de junio de 2019

VMware Horizon App Publishing & Custom Icons


If you’re presenting applications in VMware Horizon  and instead of using a generic icon you want to use your own unique application icons.  For example, you’ve got  a web application that you want to launch using Internet Explorer via RDS (perhaps some legacy intranet application).  If you deploy the application in View using an Application pool, there’s no obvious way of pulling in a custom icon.  You end up with a generic icon – for example, for a web application using Internet Explorer, you get the icon for Internet Explorer as per below


The first thing to do is download Advanced Bat To EXE Converter, then proceed with the installation


We're going to change the Internet Explorer icon and redirect it to the Telegram URL: https://web.telegram.org/#/login

As follows:
We add the path where the Internet Explorer executable is, which is the following: "C:\Program Files\Internet Explorer\iexplore.exe"

Followed by the URL path where you will be redirected: https://web.telegram.org/#/login
 

As shown in the picture


Then we press Build EXE and select the icon that we want to place with .ICO format



Then we execute Build EXE and add the path where the .exe will be and the name with which it will be saved, preferably in the following path

We verify that the .EXE exists in the indicated route


The next step will be to add it in the VMware View administrator as follows:

Add aplication pool manually
Path: The path where the .EXE is located in the RDS



Then we will have our web application with a new icon



Ing Jose Montilva