Table of Contents

Install or Update Linux Mint on Jerry's Workstation

Booting to BIOS

Getting Ready

Installing Mint:

Restoring Applications with Aptik

Aptik is a tool to simplify re-installation of packages after doing a clean installation of an Ubuntu-based distribution. It can be used while re-installing or upgrading to the next Ubuntu/Linux Mint release. Aptik's web and download pages are found at https://medium.com/@teejeetech/aptik-v18-5-5c0985eb16d3

See Backing up Apps with Aptik for more detail.

See Using Aptik for more information.

Install Preferred Applications (simple)

There are a number of additional files and applications that are used nearly every day. In /Store/ForUpgrade directory is the shell script that install the following apps.

sudo add-apt-repository ppa:teejee2008/ppa
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install aptik
sudo apt-get install dconf-cli
sudo apt-get install xsane
 sudo apt-get install nmap #needed for **allip** script
sudo apt-get install tasksel
sudo apt-get install alacarte
sudo apt-get install aisleriot # GNOME solitaire card game collection
sudo apt-get install clipit # lightweight GTK+ clipboard manager
sudo apt-get install aptik # Aptik system migration utility
sudo apt-get install clipit # lightweight GTK+ clipboard manager
sudo apt-get install deja-dup # Backup utility
sudo apt-get install duplicity # encrypted bandwidth-efficient backup
sudo apt-get install gedit # official text editor of the GNOME desktop environment
sudo apt-get install google-chrome-stable
sudo apt-get install gparted # GNOME partition editor
sudo apt-get install guake # Drop-down terminal for GNOME Desktop Environment
sudo apt-get install hplip-gui # HP Linux Printing and Imaging - GUI utilities (Qt-based)
sudo apt-get install speedcrunch # High precision calculator
sudo apt-get install terminator # multiple GNOME terminals in one window
sudo apt-get install recoll # multiple GNOME terminals in one window
sudo apt-get install brasero #Brasero is a free disc-burning program
sudo apt-get install ufw # Firewall
# Copy the bash shell script from /Store/ForUpgrade to home and the activate
cp /Store/ForUpgrade/.bashrc ~/.bashrc
source ~/.bashrc.sh
# Start the Uncomplicated FireWall (UFW) and read in the rules for Gertie
sudo bash /Store/ForUpgrades/UFW_Rules.sh

Migrate Existing Applications:

Extract pertinent application and configuration directories from the latest ~ tar. This includes most of the “dot” files (.*) and directories. Consider restoring the entire home directory unless there have been significant user interface changes.

Extract /opt from the latest tar system backup . This should restore the following directories:

Install Complex Applications:

Printer:

 Use menu--> HPLIP Toolbox  to install.  Current printer is  HP2FBF9A (192.168.1.70).  If printer
 is on and connected to ethernet you can find it's IP and Name by running **allip** on Gertie.

Install Lemp

[[http://www.2daygeek.com/install-lemp-server-nginx-mariadb-php-phpmyadmin-on-linuxmint/]] | Install Lemp

Nginx:

Use menu--> Synaptic to install nginx and php5-fpm

Extract and copy backed-up /etc/nginx to new /etc/nginx

Extract and copy backed-up /etc/php5/fpm to new /etc/php5/fpm

PHP5:

PHP7.0 and PHP7.0-fpm should be installed and working by now.  Verify by calling ///localhost/info.php //in the browser.

To use PHP5.6 Can be installed by enableing PPA:

sudo add-apt-repository ppa:ondrej/php

MariaDB:

MariaDB client and server can be install from Synaptic. Passwords are not asked for. The first thing that needs to be done is to create users and passwords.

Start mysql as root:

su  to become the root user and then mysql at the command prompt to enter the sql shell.

Add desired users as follows:

CREATE USER 'jerry'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'jerry'@'%' WITH GRANT option;
CREATE USER 'jerry'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'jerry'@'localhost' WITH GRANT option;
GRANT RELOAD,PROCESS ON *.* TO 'jerry'@'localhost';
GRANT RELOAD,PROCESS ON *.* TO 'jerry'@'*';

Moneydance

Moneydance application should be installed when it is extracted as /opt is restored. To determine location of current moneydance data file go to Help → Show Documents Folder. Presently the data files are located at /home/jerry/.moneydance/Documents. These too should be restored when thbe home directories are extracted. Moneydance registration details are in LastPass.

DokuWiki:

Should already be installed as it sits in /Work/www. However, it is now homed at www.argets.net/dokuwiki so it needs nothing more than document maintenance.

See Install Dokuwiki for more detail.

DigiKam:

No dependency problems installed using Synaptic.

Needs to be installed from command line. The following quick steps may be dated and should be verified before using:

sudo add-apt-repository ppa:philip5/extra

sudo apt-get update

sudo dpkg -i libsqlite3-0_3.8.6-1_xxx.deb sudo dpkg -i sqlite3_3.8.6-1_xxx.deb

sudo apt-get install digikam  ffmpegthumbs kipi-plugins mplay

For more information see: Digikam Installation

Piwigo:

Should already be installed as it sits in /Work/www. However, it is now homed at www.argets.net/piwigo so it needs nothing more than document maintenance.

See: Install-Customize Piwigo for more detail.

Nemo/Nautulus:

Look up and install package for nemo extensions, specifically nemo-image-tools

Others:

Master PDF Editor.

Use Master PDF editor to edit uncooperative PDF files, i.e., VISA applications.

http://code-industry.net/public/master-pdf-editor_2.2.05_amd64.deb

Lios Scan/OCR application.

  For the most robust linux scanning application try Lios at:  [[http://sourceforge.net/projects/lios/files/Lios_1.9.2_all.deb/download|http://sourceforge.net/projects/lios/files/Lios_1.9.2_all.deb/download]]

Terminator:

 Config file is at ~/.config/terminator/config.  The current config should be reinstalled when ~/.config is restored after upgrade.  If not, a copy of the file can be found in /Storage/ForUpgrade/terminator.config.  :

Adobe Reader

Adobe reader is no longer supported for linux.  There is a copy of the last *.deb file in the \\  /Storage/ForUpgrade/ folder.  Double click on the filename in Nemo to install.
  1. Ordered List Item====LibreOffice:====

1. Install the following extension to LibreOffice. Use the Tools → Extension Manger to find the file and then double click from the browser download manager.

2. Under Tools –> AutoCorrect Options, Add a new symbol and a replacement text, i.e., LIB = Sylvia works at Gravette Library.

Grive:

There is no official Google Drive Client available for Linux at the moment, but a command line program called Grive provides an open source Linux solution. What was missing was an easy setup, install and desktop integration on Ubuntu. I decided to create the missing parts and so Grive Tools came to be.

You have subscription to overGRive which overshines grive and grive-tools. It can be download by coning thefanclub site. The biggest advantage of overGrive is that it enables you to specify your directory, oltherwise it defaults to “Google Drive” and that space in the directory name cause link problems. Right now I am using ~/GoogleDrive Your usename and password are in LastPass. OverGrive can be download as overgrive_1.0_all.deb or it is stored in /Storage/ForUpgrade.

And the problem with all that is that there are dependency problems with the ppa described in https://www.thefanclub.co.za/how-to/ubuntu-google-drive-client-grive-and-grive-tools. From that I was able to achieve success by pasting the ppas into /etc/apt/sources.list. In this case, these were:

When we run “sudo apt-get update” to get the new packages we will encounter a “missing key error like this: “W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A”

Cut and paste the missing key ( 2EA8F35793D8809A ) into the following command”

sudo apt-key adv –keyserver keyserver.ubuntu.com -recv-keys 2EA8F35793D8809A

Run sudo apt-get update again to get the updates.

Install sudo apt-get grive 0.3.0

Make sure that you install Grive 0.3.0 before installing overGrive.

Make sure that you have no “Google Drive” directory in home. Then overGrive will ask for a directory and you can use the existing one (GoogleDrive).

XMLCopy Editor

Install the XMLCopy Editor ujsing synaptic to avoid dependency problems

http://xml-copy-editor.sourceforge.net/

Tweak Cinnamon and Configuration

Change Calculators:

Install SpeedCrunch calculator from Synaptic or CLI. This uses variable to store values if \\ desired (ie, x=3.1617).

Change keybinding for Calc key through Systems Settings, Hardware, Keyboard. Remove binding
for current calc key, create a new custom shortcut; and then reassign calc key to that shortcut.

Add root to File Manager (Nemo):

After installing gksu with sudo apt-get install gksu, type in terminal gksu-properties and set authentication mode to **sudo**. That will make "open as root" work in nemo when right clicking on a file.

Compose Key:

Add the compose key for the degree, euro, pound and other symbols. I use the left window key (lwin). Create a file which is called “composekey.sh” and put it into the home folder “~/composekey.sh”. This is the whole content of this file:

#!/bin/bash

setxkbmap -option compose:lwin

Once the file is created go to the menu: select Preferences -» Startup Applications. In the window, add a new startup program called “ComposeKey” which points to your ComposeKey file in the home directory.

How to set “compose key” on Mint 17 Cinnamon?

Main Menu > Keyboards > Keyboard layouts > Options > Position of Compose Key > Lwin

cinammon applets and extensions:

NumLock/CapLock Indicator should be copied with the other ~ files above.

If not, download http://cinnamon-spices.linuxmint.com/applets/view/83 Caps/Num Lock Applet to home/jerry/.local/share/cinnamon/applets/betterlock@entelechy and activate the NumLocks/CapLocks indicator from System Settings → Applets.

MISCELLANEOUS

Setup Internet connection on router.

<code>
Select PPPoE with Username & PaSSWORD
Dynamic IP
On Demand
argets@att.net/Hez7457

</code>

Visual password

Here's a quick tweak that'll bring back those familiar asterisks (*) when you type in your password at the linux command line.

sudo visudo

Change the line Defaults env_reset to Defaults env_reset,pwfeedback

Press Ctrl+X to finish editing, Y to save changes, and Enter to exit if you're on Ubuntu.

Shockwave:

If problems with shockwave crashing in chromium, try this: \\ sudo apt-get –reinstall install flashplugin-installer

Uninstall bulky, unneeded programs.

Use Synaptic to completely remove:

Redacted

VMWare Player:

a.  Find VMware-Player-5.0.1-894247.x86_64.bundle in the Upgrade Work directory.  Verify the latest version.
b.  sudo apt-get install build-essential linux-headers-`uname -r`
c.  gksudo bash ./ VMware-Player-5.0.1-894247.x86_64.bundle
d.  Copy backed up directories and files from the /Work to the new home.
      e.  Copy VMWare and .vmware from the saved home dir to the new home.
      f.  The previous WindowsXP install should be available.
      g.  More detailed instructions at
           [[http://www.howtoforge.com/how-to-install-vmware-player-on-ubuntu-11.04-linux-mint-11]]

Change home directory to seperate disk:

a.  modify the fstab again to point to the new partition and mount it as /home. gksu gedit /etc/fstab
b.  change  "/media/home" part to simply say "/home" so that it looks like this: # (identifier)  (location, eg sda5)   (ext4)  (some settings)

UUID=???????? /home ext3 nodev,nosuid 0 2

c.  Move the current /home to old_home and make a new home:  cd / && sudo mv /home /old_home && cd / && sudo mkdir -p /home