Ubuntu: $ mplay filename.mp3
Mac: $ afplay filename.mp3
Using rsync for copy with status
Refer: http://askubuntu.com/questions/17275/progress-and-speed-with-cp
$ rsync -ah --progress source destination
$ alias copy="rsync -ah --progress"
$ alias copydir="rsync -ahr --progress"
Load Balance in nginx
Example setting load balancing between 2 servers
$ sudo gedit /etc/nginx/sites-available/default
upstream talproxy {
server 10.7.19.75:12940 weight=2;
server 10.7.19.3:12940 weight=1;
}
server {
... REMOVED TO SAVE SPACE ...
### BEGIN PATCH ###
location /talproxy {
proxy_pass http://talproxy/;
}
Installing Kodi Ubuntu 14.04
Refer: http://ubuntuhandbook.org/index.php/2016/02/kodi-16-released-how-to-install-it-via-ppa/
$ sudo add-apt-repository ppa:team-xbmc/ppa
$ sudo apt-get update
$ sudo apt-get install kodi
This probably won't be needed
sudo apt-get install --install-suggests kodi
Helpful Hint
Kodi the \ is the shortcut key to toggle between fullscreen and window
--
Refer: http://askubuntu.com/questions/849396/uninstall-kodi-on-ubuntu-14
If you need to remove and purge an application and finally removing/purging also the application configurations files, do so by using the following commands:
$ sudo apt-get update
$ sudo apt-get remove kodi*
$ sudo apt-get purge kodi*
Then remove the settings folder to remove all settings and library data. This will not delete any videos or music, but just the settings and library data itself:
$ rm -r ~/.kodi/
or
$ rm -r ~/.xbmc/
for older versions before 14.0
XnView a Picasa Replacement
Seems fast and will create thumbs without needing to import. It's also cross-platform compatible for Windows, Mac and also Linux. Does not handle external drives very well though.
http://www.xnview.com/en/xnviewmp/#features
Install VPN in Ubuntu
Ubuntu 14.04
$ sudo apt-get install network-manager-openconnect openconnect
Ubuntu 15.10
$ sudo apt-get install network-manager-openconnect-gnome
Ubuntu 16.04
Refer: https://support.onevpn.com/knowledgebase/linux-ubuntu-anyconnect/
The magic sauce was from rebooting after
$ sudo apt-get update
$ sudo apt-get install lib32z1 lib32ncurses5
$ sudo apt-get install network-manager-openconnect
Reboot and install vpnsetup.sh (zipped file)
$ sudo sh ./vpnsetup.sh
---
Ubuntu 16.04
Install this rpm (it's zipped): networkmanager-openconnect_1.1.93-1_amd64.deb
Refer: http://tomtomtom.org/networkmanager-openconnect/
Only need to changes this, and also used this for the connection name, and then save, get to these settings upper right-corner up/down arrow icons
Gateway: gateway.hollandamerica.com
---
Install with Chrome, Firefox seems to have issues accepting the plug-in and SSL certificate
https://gateway.hollandamerica.com/
https://faq.oit.gatech.edu/content/how-do-i-install-cisco-anyconnect-client-linux
If you have to uninstall a previous version first:
$ sudo /opt/cisco/vpn/bin/vpn_uninstall.sh
$ chmod 755 vpnsetup.sh
$ sudo ./vpnsetup.sh
Dash / Start menu
Cisco Anyconnect VPN
If you get this error message while trying to connect " AnyConnect cannot confirm it is connected to your secure gateway. The local network may not be trustworthy. Please try another network."
Try this:
$ sudo cp /etc/ssl/certs/* /opt/.cisco/certificates/ca
Disable Autoplay in Firefox
Type about:config into the URL bar, and confirm you'll be careful by clicking the I'll be careful, I promise button. 2. Search for the string labeled media.autoplay and double-click it to flip its status to off. Opera and Chrome have an extension that prevents videos from playing automatically.
How do you move the Doc on a Mac?
Hold down the SHIFT key and grab the Dock's handle bar, which separates the app icons from the folder icons and Trash, then drag the Dock to the Left, Right, or Bottom of the screen to relocate it to that position.
Safari Debug Mode
$ defaults write com.apple.Safari IncludeInternalDebugMenu 1
Refer: https://www.igeeksblog.com/how-to-enable-debug-menu-in-safari-on-mac/
GPG Error Public Key is NOT Available
Example of error: GPG error: http://ppa.launchpad.net trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4DF9B28CA252A784
Fix with this:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY>
Refer: http://askubuntu.com/questions/520828/gpg-error-no-pubkey-warning-the-following-packages-cannot-be-authenticated
