Uncategories

Ubuntu – Create Symlink

Use this command: ls -n <location file> <destination> Sample: ls -n /etc/apache2/sites-availables/default.conf /etc/apache2/sites-enables/default.conf

Advertisements
Uncategories

Running OpenVPN in a Windows using Command Prompt

On Windows, you can start OpenVPN by right clicking on an OpenVPN configuration file (.ovpn file) and selecting "Start OpenVPN on this config file". Once running in this fashion, several keyboard commands are available: F1 -- Conditional restart (doesn't close/reopen TAP adapter) F2 -- Show connection statistics F3 -- Hard restart F4 -- Exit More: https://openvpn.net/index.php/open-source/documentation/howto.html

Uncategories

Finding external IP using external services

curl icanhazip.com or curl ipecho.net or $ dig +short myip.opendns.com @resolver1.opendns.com How do I store my IP address in a shell variable? The syntax is: myip="$(dig +short myip.opendns.com @resolver1.opendns.com)" echo "My WAN/Public IP address: ${myip}" Sample outputs: My WAN/Public IP address: 74.86.144.194 Refer: https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux/