VOTAR NO HACE EL CAMBIO. PERO DE CIERTA MANERA AYUDA A EVITAR PEORES PROBLEMAS. EL VERDADERO CAMBIO COMIENZA DE RODILLAS ANTE JESÚS
How to Create a Password Protected Zip File in Linux Easiest way to create a compressed encrypted file in Linux.
zip -r my-archive.zip /path/to/dir/ &>> zip-log
zip -re my_zip_folder.zip agatha.txt cpluplus.cpp test_dir
Cómo instalar NetBeans en Ubuntu 20.04 LTS
1 mar 2021 — 1 min di lettura
sudo apt install default-jdk
java -version
openjdk version “11.0.7” 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)
sudo snap install netbeans –classic
netbeans 12.0 from Apache NetBeans✓ installed
How to uninstall NetBeans?
Asked 10 years, 4 months ago Modified 2 years, 6 months ago Viewed 306k times
If NetBeans is installed from a downloaded netbeans.sh file, you can uninstall from its directory like:
cd ~/netbeans-8.2/ # or your NetBeans version chmod a+x uninstall.sh ./uninstall.sh
Otherwise, to uninstall:
sudo apt-get remove netbeans
Uninstall with config:
sudo apt-get remove --purge netbeans
Install:
sudo apt-get install netbeans
If Universe repository in not allowed, enable it and update:
sudo add-apt-repository "deb $(lsb_release -sc) universe" sudo apt-get update sudo apt-get install netbeans
Download Azul Zulu Builds of OpenJDK
to type dir in terminal?
Install Flatpak
To install Flatpak on Ubuntu 18.10 (Cosmic Cuttlefish) or later, simply run:
sudo apt install flatpak
With older Ubuntu versions, the official Flatpak PPA is the recommended way to install Flatpak. To install it, run the following in a terminal:
sudo add-apt-repository ppa:flatpak/stable
sudo apt update
sudo apt install flatpak
Install the Software Flatpak plugin
The Flatpak plugin for the Software app makes it possible to install apps without needing the command line. To install, run:
sudo apt install gnome-software-plugin-flatpak
Note: the Software app is distributed as a Snap since Ubuntu 20.04 and does not support graphical installation of Flatpak apps. Installing the Flatpak plugin will also install a deb version of Software and result in two Software apps being installed at the same time.
Add the Flathub repository
Flathub is the best place to get Flatpak apps. To enable it, run:
flatpak remote-add --if-not-exists flathub
Restart
To complete setup, restart your system. Now all you have to do is install some apps!
flatpak remote-add --if-not-exists flathub
flatpak install flathub com.mattjakeman.ExtensionManager
flatpak run com.mattjakeman.ExtensionManager
Gustavo Reyes Jul 25, 2018·1 min read·
Habilitar Apache mod_rewrite en Ubuntu
Para habilitar las famosas URL amigables en Ubuntu, debemos seguir estos comandos:
# sudo a2enmod rewrite
# sudo service apache2 restart# sudo nano /etc/apache2/sites-available/000-default.conf
Agregar estás lineas, después de DocumentRoot /var/www/html:
<Directory /var/www/html>
AllowOverride All
</Directory>
Reiniciamos Apache:
# sudo service apache2 restart
How to Install Apache, MySQL, and PHP (LAMP) Stack on Ubuntu 20.04 LTS
Author: Francis Ndungu
1. Install Apache Webserver
SSH to your Ubuntu server as a non-root user, then update the package information index and upgrade your packages.
$ sudo apt update && sudo apt -y upgrade
Next, run the command below to install the Apache Web server.
$ sudo apt install -y apache2
2. Install a Database Server
You can either install MySQL or MariaDB server when deploying a LAMP stack. To install the MySQL server, run the command below.
$ sudo apt install -y mysql-server
To set up a MariaDB server, execute the command below.
$ sudo apt install -y mariadb-server mariadb-client
Irrespective of the database that you’ve chosen, run the command below to secure it.
$ sudo mysql_secure_installation
Enter the below choices and press ENTER in each prompt to proceed.
MySQL Server
Would you like to setup VALIDATE PASSWORD component? Press y|Y for Yes, any other key for No: n Please set the password for root here. New password: EXAMPLE_PASSWORD Re-enter new password: EXAMPLE_PASSWORD Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y Remove test database and access to it? (Press y|Y for Yes, any other key for No): y Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
MariaDB Server
Enter current password for root (enter for none): ENTER Set root password? [Y/n]: Y New password: EXAMPLE_PASSWORD Re-enter new password: EXAMPLE_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
Once you’ve secure the installation, login to the RDMS as root:
$ sudo mysql -u root -p
Enter your database server root password and press ENTER to proceed. Then, type the command below to create your first test_database database.
MySQL server.
mysql> CREATE database test_database;
MariaDB server.
MariaDB [(none)]> CREATE database test_database;
Output.
Query OK, 1 row affected (0.00 sec)
Next, list the databases in the server by running the SHOW DATABASES command.
MySQL server.
mysql> SHOW DATABASES;
MariaDB server.
MariaDB [(none)]> SHOW DATABASES;
Your test_database should be in the list below.
+--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | | test_database | +--------------------+ 5 rows in set (0.01 sec)
Create a test_user and assign full privileges to the database you’ve just created. You’ll require the details of this user when testing database connectivity with PHP. Replace EXAMPLE_PASSWORD with a strong value.
MySQL server.
mysql> CREATE USER 'test_user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'EXAMPLE_PASSWORD'; GRANT ALL PRIVILEGES ON test_database.* TO 'test_user'@'localhost'; FLUSH PRIVILEGES; EXIT;
MariaDB server.
MariaDB [(none)]> CREATE USER 'test_user'@'localhost' IDENTIFIED BY 'EXAMPLE_PASSWORD'; GRANT ALL PRIVILEGES ON test_database.* TO 'test_user'@'localhost'; FLUSH PRIVILEGES; EXIT;
Your database server is now ready and you can move ahead to installing a scripting language.
3. Install PHP
In this step, you’ll install the PHP package. Run the command below.
$ sudo apt install -y php
Since most web applications rely on some PHP extensions, install the most common ones using the command below.
$ sudo apt install -y php-{common,mysql,xml,xmlrpc,curl,gd,imagick,cli,dev,imap,mbstring,opcache,soap,zip,intl}
Restart the Apache webserver to load PHP.
$ sudo systemctl restart apache2
To test PHP, create an info.php file in the root directory of your web server.
$ sudo nano /var/www/html/info.php
Then, enter the information below into the file.
<?php phpinfo();
How to install SQLite 3 in Ubuntu 20.04 and Linux Mint 20
5 years agoby Kamran Sattar Awaisi
Alright! Now we are ready to install SQLite 3 on Ubuntu 20.04 and Linux 20. SQLite is available through Ubuntu 20.04 and Linux Mint 20 repositories. Install SQLite 3 using the following command: $ sudo apt install sqlite3
After installing SQLite 3, we can view the installed version of SQLite 3. Additionally, it also verifies the installation. Run the below-given command to do so: $ sqlite3 –version
The SQLite browser can be installed by executing the following command: $ sudo apt install sqlitebrowser
Instalar extensión SQLite3 para PHP en Ubuntu
Comienza averiguando la versión de PHP con:
php -v
Para instalar el paquete, ejecuta:
sudo apt-get install php[versión-aquí]-sqlite3 -y
En mi caso:
sudo apt-get install php7.2-sqlite3 -y
La opción -y es para aceptar la instalación.
Ahora reinicia el servidor de Apache con:
sudo service apache2 restart
Para comprobar que se ha cargado simplemente lista los módulos y filtra buscando la palabra “sqlite“:
php -m | grep sqlite
Surtidores
Wayne Gilbarco Hongyang Ensamblada y soportada en colombia
Más usado por terpel
Colorado recientemente
Serie h
Medellin y Antioquia
Hongyang
Surtidor cómo estás envía en binario el estado
Autorizar ventas, obtener datos del totalizador, obtener datos de la venta en curso
Puerto serial
Rc
palabras dentro de palabras. Dos tres
—
tx serial request 6X cuantos galones ha despachado?
5X Cuanto tiene el surtidor (totalizador) antes de despachar?
0X estado de la cara
rx serial response 63 | 5 first bytes = importe
6X colgado 9X despechando | X = cara
colgado = ninguna de sus mangueras esta despachando
despachando = alguna de sus mangueras esta despachando
7X descolgada sin autorizacion | ex: manguera CX en Autorizacion
8X descolgada con autorizacion
CARA(A, B) -> A = surtidor, B = CARA
GilbarcoControllerPrime -> consultarEstado
BYTE DE ESTADO: 7X | 191 line
[STATUS]: Manguera CX en Autorizacion (sin autorizacion) | case SURTIDORES_ESTADO_AUTORIZACION | w 195 line
inicias variable grado | GRADO ANTES DE CONSULTAR ES: -1
recibes el grado
resumes cara: x en grado a procesar -> x
revisas si tiene bloqueo
metodo de autorizacion
grupo jornada 220217 YYmmdd 0101JornadaCorte
persona id 0 N
consultando si existe una autorizacion = asignacion | 416 line
TX 5X Cuanto tiene el surtidor | getTotalizadores protocolo.consigueTotalizadores client.send(trama, wait)
Volver a preguntar estado de la cara
Cantidad maxima autorizada volumen y en monto -1 sin limite (siempre uno de los dos no ambos sino se bloquea) | 513 line
12 00 autorizaX (1 = comando de autorizacion)
estado
[TX-TX] SURTIDOR AUTORIZANDO ESPERANDO QUE AUTORICE (0) intentos esperando que el surtidor autorice | 557 line
RUMBO = Creditos
corte = too el grupo cerro sesion
tag = rfid
tecnologia del surtidor, core y pos
autorizar a traves de
sin tag, tag global, tag por cara
pm2 stop all | 0
preguntas: getTotalizadores porque no muestra todas las mangueras
devitechvivobook desarrollogrupo13@devitech.com.co adevitech abraham.quintero
dh_ibpy5f Caribe2021! tattnall.dreamhost.com
gpulido proyectos @devitech.com.co qwixhrctct
tareas: subir un cambio con luis se registran duplicados de venta
leer el codigo
comparar log con codigo
gilbarco devuelve todos los totalizadores de todas las mangueras
//DEBUG ESTADO: [STATUS]: EQUIPOID, BYTE DE ESTADO
Sharing is caring
Share
+1
Tweet
Share
Share