If you have having issues with Remove Desktop - Go to advance settings and set security specifically to RDP instead of negotiate and click "Save".
Changing your Mac Address
Generate a new Mac Address
perl -e 'for ($i=0;$i<5;$i++){@m[$i]=int(rand(256));} printf "02:%X:%X:%X:%X:%X\n",@m;'
Start Changing
sudo ifconfig en0 ether 02:8D:DE:BC:7E:72
How to Change Your Mac Address:
www.howtogeek.com/192173/how-and-why-to-change-your-mac-address-on-windows-linux-and-mac/
How are Mac Addresses assigned and Unique:
www.howtogeek.com/228286/how-is-the-uniqueness-of-mac-addresses-enforced/
Modify Headers with State IP Addresses
Please see attached: modifyheaders_czh-01nov2016-json
Remote Execution Commands
Here are some of the tools I have used in the pass to do various things. If I have to use something today then that would be SSH and Ansible for any mass operations
For all small jobs I generally go with SSH safe and secure.
Here are some of the examples of how you can put SSH to use. Make sure you setup credential keys for ease.
www.cyberciti.biz/faq/unix-linux-execute-command-using-ssh
www.cyberciti.biz/faq/linux-unix-osx-bsd-ssh-run-command-on-remote-machine-server
Following is the tool that allows you execute commands on multiple hosts. This is Python based.
www.tecmint.com/execute-commands-on-multiple-linux-servers-using-pssh
Ansible:
ansible-tips-and-tricks.readthedocs.io/en/latest/ansible/commands/#running-ad-hoc-commands
On Windows machine I used PowerShell. I find powershell too complicated and cryptic
www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers
Disable Universal Plug-n-Play on Router
Install Kodi Media Manager for Ubuntu
Refer: http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux
$ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:team-xbmc/ppa $ sudo apt-get update $ sudo apt-get install kodi
Installing Lync on Mac Book
Use these settings:
1. Go to Keychain
2. Click on System
3. Then go to HAL Enterprise root CA
4. And click Always Trust on “When using this Certificate”
Lync settings:
Either automatic as it is now,
or manual, depending on how they’re connected:
But make sure their internet proxy is set to the automatic config script:
http://wpad.flagship.hal.com/wpad.dat
Manual Settings:
Internal Server Name: hallyncpool
External Server Name: BLANK
Using nginx Rewrite Rules
Refer: https://www.nginx.com/blog/creating-nginx-rewrite-rules/
Enable SSH in Ubuntu 14.04 Trusty Tahr and 18.04
For 18.04 you will need to install through Synaptic
This simple tutorial is going to show you how to enable Secure Shell (SSH) service in Ubuntu 14.04 Trusty Tahr.
Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.
SSH is not enabled by default in Ubuntu, but you can easily enable this service via OpenSSH, a free version of the SSH connectivity tools developed by the OpenBSD Project.
To do so, run the command below in terminal:
sudo apt-get install openssh-server
Remove login with root password
$ sudo nano /etc/ssh/sshd_config
# Authentication:
LoginGraceTime 120
PermitRootLogin no
Or install the openssh-server package via Ubuntu Software Center if you’re on Desktop edition:
install ssh server Ubuntu 14.04
Once installed, you can change the port, disable root login and do other changes by editing the config file:
sudo gedit /etc/ssh/sshd_config
Finally restart the ssh server to take place:
sudo /etc/init.d/ssh restart
Setup SSL for nginx for Ubuntu 14.04
Install nginx
sudo apt-get update
sudo apt-get install nginx
Setup SSL Self-signed Cert, Good for 10 Years
sudo mkdir /etc/nginx/ssl
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt
Here's an example for local.hollandamerica.com, it creates files in folder the same place your run it.
openssl req -x509 -newkey rsa:2048 -nodes -keyout cert.key -out cert.crt -days 3650 -subj "/C=US/ST=State/L=Locality/O=Organization/CN=local.hollandamerica.com"
Sample Values
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:New York
Locality Name (eg, city) []:New York City
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Bouncy Castles, Inc.
Organizational Unit Name (eg, section) []:Ministry of Water Slides
Common Name (e.g. server FQDN or YOUR name) []:your_domain.com
Email Address []:admin@your_domain.com
Sample Server Code, Magic Sauce is the following 4 lines:
listen 443 ssl;
server_name localhost;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
root /usr/share/nginx/html;
index index.html index.htm;
server_name your_domain.com;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
try_files $uri $uri/ =404;
}
}


