How Do You Install node and npm on Any Distribution of Linux Server?

Updated on 5/1/20

Problem scenario
You have a Linux server with 1 GB of RAM.  You want to install node and npm because you want to try out the latest JavaScript technologies.  (You were persuaded to not use Gulp or Grunt to manage build scripts.  You want to use npm because of this link.)  You want to use the same copy of the bash script on CentOS/RedHat/Fedora,

How Do You Get an Apache Web Server to Publish a Specific .PHP File on a CentOS/RHEL/Fedora Server?

Problem scenario
You are using a RedHat derivative distribution of Linux.  You want to install Apache Web Server on it so it can publish PHP content.  How do you install and configure the necessary dependencies to do this?

Solution
1.  Install Apache web server:  sudo yum -y install httpd

2.  Install PHP:  sudo yum -y install php

3. 

How Do You Use PHP Variables in HTML?

Problem scenario
You have a .php file with PHP and HTML code.  You want an HTML text field to be display a pre-populated text value by default.  The user can then modify this value from the web UI (i.e., front-end).  You want this text value to be based on a PHP variable (calculated in earlier in the code).  How do you get your HTML code to display the value of a PHP variable?

How Do You Use Python to Process (and Thereby Clean) a Flat File That Is a List of Email Addresses with Extraneous Symbols?

Problem scenario
You have an input file (.txt) that is a list of email addresses.  The file is guaranteed to have one of the following: one or more spaces between each email address or there is certainly a new line between the each email address.  Beyond that there can be one or two commas after the email address.  There could also be one or two semicolons after the email address. 

How Do You Get the VNC Viewer Application to Show the Full Screen of the Linux Desktop That You Have Connected To?

Problem scenario
On Windows (e.g., 7 or 10) you have a VNC viewer application installed.  You are trying to use the VNC application to remotely connect to a Linux desktop.  You can connect to the Linux server (or computer or Raspberry Pi).  The problem is that the VNC viewer is not showing the full screen of the Linux desktop.  You know there is more to the screen horizontally and/or vertically. 

How Do You Install the Go Programming Language on an Ubuntu Linux Server?

Problem scenario
You want to use the Go programming language.  There are various directions online that involve downloading files and modifying configuration files.  You just want simple directions to install Go to an Ubuntu Linux server.  What do you do?

Solution
Run these two commands:
sudo apt-get -y update
sudo apt -y install golang-go

How Do You Troubleshoot the Error “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)”?

Problem scenario
You install mysql on a RedHat (RHEL) Linux server in AWS.  You run this command: mysql -u root -p

But you get this message:
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

How can you get around this problem and get to a SQL interface?

Solution
sudo systemctl start mariadb.service

How Do You Get a Docker Container to Run That Was Made for Graylog?

Problem scenario
You are trying to follow the directions for installing Graylog from Docker hub.  You run these commands:

docker pull graylog2/server

docker run –name contint-mongo -d mongo:2

docker run –name contint-elasticsearch -d elasticsearch:2 elasticsearch -Des.cluster.name=”graylog”

docker run –link contint-mongo:mongo –link contint-elasticsearch:elasticsearch -p 9000:9000 -e GRAYLOG_WEB_ENDPOINT_URI=”http://127.0.0.1:9000/api” -d graylog2/server

The first two containers (for MongoDB and ElasticSearch) work and run.  The third for Graylog will not start. 

List of Cryptocurrency Accessories

List of Cryptocurrency Accessories
Ethereum – Gold Plated “Cryptocurrencies You Hold”
Gold Ripple – “Cryptocurrencies You Hold”
KeepKey: the Simple Cryptocurrency Hardware Wallet
Ledger Nano S Bitcoin Wallet Bundle With VUVIV Micro-USB Adapter and USB-C Adapter for MacBook (3 Items)
Ledger Nano S Cryptocurrency Hardware Wallet
Ledger Nano S – Cryptocurrency Hardware Wallet With MintCell Magnetic USB Cable and Cable Tie
Trezor Bitcoin Wallet black *
Trezor bitcoin wallet white *

* The Trezor wallet has the highest rating on CryptoCompare.com.