Blog

How To Install Remote Desktop on Ubuntu or Centos 7

Ubuntu:sudo apt-get updatesudo apt-get install xrdp xfce4echo xfce4-session >~/.xsessionsudo service xrdp restartCentOS 7:su -vim /etc/yum.repos.d/xrdp.repo-----…

Experimental selinux Settings

enable or disable selinux: vim /etc/sysconfig/selinux   setsebool -P httpd_read_user_content 1   grep nginx /var/log/audit/audit.log |…

Install ScreenConnect on CentOS

If this server is not behind a firewall, then the below instructions would suffice:1. Install…

Install SSL on ScreenConnect

Generate cert & key from startssl.comSave the encrypted private keyDecrypt the private keyDownload files into…

Default Nginx Installation on Centos 7

NGINX as HTTP / HTTPS Proxysudo yum install epel-releasesudo yum install nginxsudo systemctl start nginxsudo…

Manual Compile of NGINX on CentOS 7

Summary:Normal NGINX that has been installed from repositories does not forward raw TCP packets. Since…

Installing Apache on Centos 7

The easy methodsudo yum clean allsudo yum -y updatesudo yum -y install httpd php-pearsudo firewall-cmd…

How to Use Google SMTP Relay with Sendmail

Check to see if TLS is enabled:# sendmail -d0.1 -bv rootMake a certs directory:# mkdir…

A Few Todos while Securing Apache Server

- Install mod_security - Set expose_php = Off in php.ini - Set SecResponseBodyAccess Off in…

How to Remove Apps in CentOS/Redhat

Check the repo directory: [root@localhost ~]# ls /etc/yum.repos.d CentOS-Base.repo CentOS-Sources.repo CentOS-CR.repo CentOS-Vault.repo CentOS-Debuginfo.repo docker-ce.repo CentOS-fasttrack.repo…

How to Install HAProxy using PKGSRC

How To use PKGSRC: https://www.netbsd.org/docs/pkgsrc/creating.htmlInstall dependencies:yum install epel-release -yyum groupinstall "Development Tools" -yyum install vim…

Network Time Service for Centos 7

yum install -y ntp ntpdatesystemctl start ntpdsystemctl enable ntpdntpdate -u -s 0.north-america.pool.ntp.org 1.north-america.pool.ntp.org 2.north-america.pool.ntp.org 3.north-america.pool.ntp.orgsystemctl…

Some Common Gitlab Commands

To ignore SSL Cert errors: git config --global http.sslVerify "false"   # checkout changed file…

How To Compile Package Source

Notice: currently, we know of a few releases of PKGSRC that are usable as it…

Baseline Server Image

OS: CentOS 7 Minimal Obtain ISO from https://www.centos.org/download/ Create Bootable USB On a CentOS 6.5, Ubuntu…

Setup LAMP using RedHat 7

// Add a new user and set it with root privileges: sudo su useradd {root-user}…

Nginx Apache SSL Example

-------------- NGINX -> ** /etc/nginx/sites-available/domainx.conf**server {listen 80;servername xxxxx.domainx.com;return 301 https://$host$requesturi;}server {listen 443 ssl;servername xxxxx.domainx.com;sslcertificate /etc/nginx/ssl/cert_domainx.crt;sslcertificatekey…

Error: 502 Gateway Error

Explanation: 502 Gateway Error generally means connection problems with an upstream proxy. In this instance,…

Apache HTTPd

# Install Apacheyum install httpd# Configure Apachevim /etc/httpd/conf/httpd.conf##### Change portNameVirtualHost 127.0.0.1:8080Listen 127.0.0.1:8080######### Set DocumentRootDocumentRoot "/var/www/kimconnect"######…

NGINX

# Create nginx.repovim /etc/yum.repos.d/nginx.repo#### content ####[nginx]name=nginx repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=0 enabled=1###############sudo yum update nginxsudo service nginx…