A brief example on how to use npx to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| #!/bin/bash | |
| ## Bash Script to clear cached memory on (Ubuntu/Debian) Linux | |
| ## By Philipp Klaus | |
| ## see <http://blog.philippklaus.de/2011/02/clear-cached-memory-on-ubuntu/> | |
| if [ "$(whoami)" != "root" ] | |
| then | |
| echo "You have to run this script as Superuser!" | |
| exit 1 | |
| fi |
A brief example on how to use npx to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/
| cat >/etc/apt/sources.list.d/kali.list <<EOF | |
| deb http://http.kali.org/kali kali main contrib non-free | |
| deb-src http://http.kali.org/kali kali main contrib non-free | |
| deb http://security.kali.org/kali-security kali/updates main contrib non-free | |
| deb-src http://security.kali.org/kali-security kali/updates main contrib non-free | |
| EOF | |
| sudo apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6 | |
| sudo apt-get update |
| #!/bin/bash | |
| # Nullarbor+dependencies installation script for a fresh Ubuntu 14.04 instance. | |
| ################################################################################ | |
| ## Conveniences | |
| ################################################################################ | |
| # Some essential aliases |
| #This Dockerfile uses a Multi-Stage Build: https://docs.docker.com/develop/develop-images/multistage-build/ | |
| FROM debian:stable-slim AS base | |
| LABEL maintainer="Micheal Waltz <dockerfiles@ecliptik.com>" | |
| # Environment | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| LANG=en_US.UTF-8 \ | |
| LC_ALL=C.UTF-8 \ | |
| LANGUAGE=en_US.UTF-8 |
| #!/bin/bash | |
| # This script will install dependencies then build and install erlang using kerl | |
| # Pull this file down, make it executable and run it with sudo | |
| # | |
| # wget https://gist.githubusercontent.com/bryanhunter/adbd9c8d9fb2f6366eee/raw/build-erlang.sh | |
| # chmod u+x build-erlang.sh | |
| # sudo ./build-erlang.sh | |
| # | |
| # Version: 17.1 |
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Ubuntu 20.04 dev Server | |
| # Run like - bash install_lamp.sh | |
| # Script should auto terminate on errors | |
| echo -e "\e[96m Adding PPA \e[39m" | |
| sudo add-apt-repository -y ppa:ondrej/apache2 |
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Ubuntu 20.04 dev Server | |
| # Run like - bash install_lamp.sh | |
| # Script should auto terminate on errors | |
| echo -e "\e[96m Adding PPA \e[39m" | |
| sudo add-apt-repository -y ppa:ondrej/apache2 |
One of the best option is to use the run package offered by Qt to install the libraries and its IDE (Qt Creator). Nevertheless However, when you want to compile it for a sever, where no GUI is required, you must be then interested in how to compile from source and discover some of the configuration options you have to disable some GUI modules among others and get lightest weight libraries.
First of all download the tar.xz file from Qt. You can also go to the archive and select the best that fulfill your requirement. Right now I am going on with the newest version up to the moment v5.9.3.
Create a directory and uncompress the downloaded file:
$ mkdir temp
$ cd temp