Transfer files between computers with netcat

Transfer files between computers with netcat

You can use netcat (nc) to copy file from one computer/server to another. On destination computer Run netcat in listening

Saving iptables firewall rules

Saving iptables firewall rules

To save iptables firewall rules, run This will print the firewal rule. You can save it to a file. For

xinetd

xinetd

To run xinetd in forground in debug mode, run

Displaying /proc/PID/cmdline with space

On linux, the file /proc/PID/cmdline shows the command line for the process. If you check content of this file, you

apt-key

apt-key

apt-key keyserver receive failed: No dirmngr MySQL 8 apt Error The following signatures were invalid

apt-key keyserver receive failed: No dirmngr

apt-key keyserver receive failed: No dirmngr

When running apt-key command, i get following error. To fix this, run apt install dirmngr

Install MongoDB 4 on Debian 9

Install MongoDB 4 on Debian 9

You can see detailed instruction on how to install on MongoDB web site. First add key For Debian 8, run

Fix yum duplicate packages

Fix yum duplicate packages

On a CentOS server, when running It failed with following error https://gist.github.com/serverok/c0853120baff8848054cfb598e389c3a This is because previous “yum update” failed for

Making POST request from curl

Making POST request from curl

Here is an example POST request using curl Sending JSON string Post a variable

fsck

fsck

To check hard disk, run Auto Repair file system By default fsck will ask you what to do when it

centovacast

centovacast

Install Paid SSL on Centova Cast Install LetsEncrypt Free SSL on Centova Cast CentovaCast Enable SSL on icecast CentovaCast Enable

Server Monitoring

Server Monitoring

Monitor Server with Prometheus and Grafana https://my-netdata.io/ sensu Zabbix Monit https://vector.dev/ Auto Restart MySQL if Crashed PHP Script to monitor