Skip to main content

Posts

Showing posts from May 21, 2019

Online Encapsulation overhead calculator

Encapsulation overhead calculator Encapsulation overhead calculator Parent interface MTU: Calculation mode: PDU size (substract overhead from MTU) Frame size (add overhead to payload size) Overhead: Maximum PDU size: Protocols (click protocol buttons one or more time to add): Notes PDU (Protocol Data Unit) is a general term for frames, packets, segments etc. If you want to calculate tunnel MTU, specify protocols before the encapsulated one. That is, if you want MTU for GRE over IPv4, add IPv4 and GRE. PDU value will be your MTU, whatever you encapslate into GRE must not excee

Step By Step To Install Java On Linux with Apt-Get

Introduction Having Java installed is a prerequisite for many articles and programs. This tutorial will guide you through the process of installing and managing different versions of Java on Ubuntu 12.04. Installing default JRE/JDK This is the recommended and easiest option. This will install OpenJDK 6 on Ubuntu 12.04 and earlier and on 12.10+ it will install OpenJDK 7. Installing Java with apt-get is easy. First, update the package index: sudo apt-get update Then, check if Java is not already installed: java -version If it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command: sudo apt-get install default-jre This will install the Java Runtime Environment (JRE). If you instead need the Java Development Kit (JDK), which is usually needed to compile Java applications (for example Apache Ant , Apache Maven , Eclipse and IntelliJ IDEA execute the following command:

How to change the timezone on linux

 How to change the timezone run this command:     dpkg-reconfigure tzdata After that, the prompts will be gui or terminal gui mode...

NPM automatically get killed on Ubuntu [FIX]

NPM automatically get killed on Ubuntu [FIX]   sudo fallocate -l 1G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab sudo sysctl vm.swappiness=10 echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf sudo sysctl vm.vfs_cache_pressure=50 echo 'vm.vfs_cache_pressure=50' | sudo tee -a /etc/sysctl.conf     version - 14.04 and 16.04:    --------------------This will create a swap file of 1GB---------------

How to convert .rpm file into .deb file (linux)

how to install rpm packages on Ubuntu, Linux Mint, kali linix, Debian etc.... Install alien and all the dependencies it needs: # apt-get install alien dpkg-dev debhelper build-essential To convert a package from rpm to Debian format: # alien packagen.rpm Finally, install your package! # dpkg -i package.deb For more info, visit: http://namhuy.net/1207/how-to-install-rpm-packages-on-ubuntu-mint-or-debian.html $ alien -h    by rockstardevil