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

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

Ubuntu ClipGrab

Refer: https://www.how2shout.com/linux/install-clipgrab-on-ubuntu-20-04-lts-download-youtube-videos/

Step 1: If we want to also convert the Youtube and other online videos on your Linux system then we need FFmpeg library installed on our system. For that use the command:

sudo apt install ffmpeg

Goto: https://clipgrab.org/

Step 2: Open Clipgrab official website, here is the link. Click on the “Show all download options” and then download “Binaries for 64-bit Linux“.

ClipGrab Youtube downloader for Linux

Step 3: When the download of the file gets completed, right-click on the Clipgrab Youtube downloader App image and select properties.

Make Clipgrab AppImage executable Ubuntu 20.04 min

Step 4: To run the Clipgrab, first, we need to make it executable. For that, mark the checkbox given in front of “Allow executing file as program“. option.

Allow permission to run Clipgrab min

Step 6: Now, double click on the ClipGrab file, this will open this Youtube downloader. After that select the Downloads tab and paste the URL of the online video you want to download on your Linux system and then click on the “Grab this Clip!”.

Youtube downloader for Linux min

Create Cligrab Desktop and Application launcher shortcut (optional)

By default, the file will be in your Downloads folder because we got it from the browser. But there are chances of deleting it accidentally, thus let’s move it to some secure place.

Older NOTES

Install ClipGrab by Building Locally
AppImage was NOT working on Ubuntu 20.04
Install GCC Compiler Tools
Bash
sudo apt install qtbase5-dev qtwebengine5-dev
sudo apt install build-essential

Refer: https://www.reddit.com/r/linuxquestions/comments/frhk98/ubuntu_18044_lts_cant_execute_appimage_file_no/

Get newest source code here:
https://clipgrab.org/download-clipgrab/

Bash
wget https://download.clipgrab.org/clipgrab-3.8.11.tar.gz
Need to also install ffmpeg to avoid the following error:
No installed version of avconv or ffmpeg could be found. Converting files and downloading 1080p videos from YouTube is not supported.
Bash
sudo apt-get install -y ffmpeg

Run the application in terminal

./clipgra

Deprecated Notes

Refer; https://www.linux.com/blog/how-download-and-convert-youtube-vimeo-dailymotion-or-other-clipgrab-ubuntulinux-mint

Refer: http://www.linuxandubuntu.com/home/how-to-download-and-convert-youtube-vimeo-dailymotion-or-other-by-clipgrab-in-ubuntulinux-mint#clipgrab

Ubuntu 14.04

$ sudo add-apt-repository ppa:clipgrab-team/ppa
$ sudo apt-get update
$ sudo apt-get install clipgrab

Remmina/Ubuntu 14.04

If you have having issues with Remove Desktop - Go to advance settings and set security specifically to RDP instead of negotiate and click "Save".

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

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

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

Refer: https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-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;
}
}