• linux

    PuTTY Fatal Error: Network Error: Software Caused Connection Abort

    Configure PuTTY Select your connection, load itIn the left-hand menu pane, select ConnectionIn the field beside Seconds between keepalives, enter 5.Check Enable TCP Keepalives (SO_KEEPALIVE option)Now click Open and leave the SSH connection idle for a while to see if it stays up.If you are using a PuTTY session profile, don’t forget to Save your profile with these new settings.

    Comments Off on PuTTY Fatal Error: Network Error: Software Caused Connection Abort
  • azure,  cmd,  Information,  linux,  Networking and Security

    System Administrator

    Develop fast. Stay secure Snyk | Developer security | Develop fast. Stay secure. Open Web Application Security Project OWASP Top Ten Web Application Security Risks | OWASP SETSPN -a host/alias_name targetserverSETSPN -a host/ targetserver Can’t access SMB file server – Windows Server | Microsoft Docs Tcp viewer or netstat -ano | find “1234” | find “LISTEN” How can I check if an application is listening on a port and the application’s name ( Computer Networking A TOP-DOWN APPROACH 5ed (James F.Kurose, Keith W.Ross) WIRESHARK LABS “Tell me and I forget. Show me and I remember. Involve me and I understand.”Chinese proverb Jim Kurose Homepage ( Labs: HTTP, DNS, TCP, UDP,…

    Comments Off on System Administrator
  • linux

    Ubuntu 20.04.2 LTS and Bash

    Ah a new Ubuntu, what a breath of fresh air. What new here then? Not sure right now, the version that was installed from bootable usb is Ubuntu 20.04.2 LTS Focal Fossa. On Ubuntu: Print screen is shift+ prtsc … Some of the code used in this session is stored here, ssh was configured towards Github. Files Main directories /bin is a place for most commonly used terminal commands, like ls, mount, rm, etc. /boot contains files needed to start up the system, including the Linux kernel, a RAM disk image and bootloader configuration files. /dev contains all device files, which are not regular files but instead refer…

    Comments Off on Ubuntu 20.04.2 LTS and Bash
  • Ansible,  ARM,  azure,  linux

    2 TODO Azure, Arm and Bash SSH to Github Az CLI for Windows Tutorial Ansible Deploy ARM Template with Ansible Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible is a radically simple IT automation engine that automates cloud provisioning, configuration management, application deployment, intra-service orchestration, and many other IT needs. Designed for multi-tier deployments since day one, Ansible models your IT infrastructure by describing how all of your systems inter-relate, rather than just managing one system at a time. It uses no agents and no additional custom security infrastructure, so it’s easy to…

    Comments Off on 2 TODO Azure, Arm and Bash
  • Docker,  linux,  Python

    Docker-compose ubuntu

    Install it from here, the two first lines curl -fsSL -o sh docker –version Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose, see the list of features. Compose works in all environments: production, staging, development, testing, as well as CI workflows. You can learn more about each case in Common Use Cases. Now lets create a simpel python module and run it with docker and portainer.…

    Comments Off on Docker-compose ubuntu
  • linux,  Python

    Python as systemctl service This is an easy and not enough tested script, you may also enable it to start at boot. Read about systemctl: So create a file in /lib/systemd/system touch python_service.service sudo nano python_service.service run the script with (when it is done and has no erros): This is my test script: It prints service and writes to a file: sudo systemctl start python_service.service sudo systemctl status python_service.service sudo systemctl stop python_service.service Now lets clean the file and run it as a service: sudo systemctl start python_service.service Now lets stop it and check status, and check the file And the file is full, nice, but the dir is now /…

    Comments Off on Python as systemctl service
  • linux,  WMVARE,  Zabbix

    Testing Zabbix VirtualBox 6.0 If you’re looking for the latest VirtualBox 5.2 packages, see VirtualBox 5.2 builds. Please also use version 5.2 if you still need support for 32-bit hosts, as this has been discontinued in 6.0. Version 5.2 will remain supported until July 2020. Note: After upgrading VirtualBox it is recommended to upgrade the guest additions as well. VirtualBox 6.0.14 Oracle VM VirtualBox Extension Pack So go ahead and enable virtualization for 64 iso (OS support), it is just 1 step in the BIOS, from disable to enable….. So we downloaded some ios’s and we will use ubuntu-18.04.2-desktop-amd64 Now we are installing OS, it is quick, just next, next, use the recommended…

    Comments Off on Testing Zabbix VirtualBox 6.0
  • linux,  Python,  Sql

    MariaDb linux Python ORM MariaDB is an open source, multi-threaded relational database management system, backward compatible replacement for MySQL. It is maintained and developed by the MariaDB Foundation including some of the original developers of the MySQL. sudo apt update sudo apt install mariadb-server sudo mysql -V sudo systemctl status mariadb Run the mysql_secure_installation command to improve the security of the MariaDB installation: sudo mysql_secure_installation The script will prompt you to set up the root user password, remove the anonymous user, restrict root user access to the local machine and remove the test database. At the end the script will reload the privilege tables ensuring that all changes take effect immediately. All…

    Comments Off on MariaDb linux Python ORM
  • linux,  Python,  RMQ

    RabbitMQ Pika Ubuntu

    AMQP 0-9-1 Model ExplainedOverview This guide provides an overview of the AMQP 0-9-1 protocol, one of the protocols supported by RabbitMQ.High-level Overview of AMQP 0-9-1 and the AMQP ModelWhat is AMQP 0-9-1? AMQP 0-9-1 (Advanced Message Queuing Protocol) is a messaging protocol that enables conforming client applications to communicate with conforming messaging middleware brokers. Install ubtuntu Erlang esl-erlang_22.0.7-1~ubuntu~xenial_amd64.deb espen@espen-UN65U:~/project$ sudo dpkg -i esl-erlang_22.0.7-1~ubuntu~xenial_amd64.deb Verify erlang, type erl Rabbitmq Add the Apt repository to your Apt source list directory (/etc/apt/sources.list.d): espen@espen-UN65U:~/project$ echo “deb xenial main” | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list deb xenial main Next add our public key to your trusted key list using apt-key: espen@espen-UN65U:~/project$ wget -O-…

    Comments Off on RabbitMQ Pika Ubuntu
  • kivy,  linux,  mobile

    Mobile App Development With Kivy & Python 3 (part 2 android release + sign and zipalign, publish)

    So, folder for kivy project is zenseeker. Buildozer init (get spec and modify it) buildozer -v android debug Move the apk to the phone and debug it if needed with adb logcat (press install and check the logs) It works? Good, then get ready for keytool (save the password and alias) and signing with jarsigner. But read this first, Publish your app: mkdir ~/keystores/ keytool -genkey -v -keystore ~/keystores/.keystore -alias -keyalg RSA -keysize 2048 -validity 10000 So then we have a keystore, cool Next up Open a cmd, navigate to project where the buildozer.spec is buildozer -v android release (not not use the EXPORT keys from keystore) This will…

    Comments Off on Mobile App Development With Kivy & Python 3 (part 2 android release + sign and zipalign, publish)