======Install or Update Linux Mint on Jerry's Workstation====== =====Booting to BIOS===== *On MSI motherboard the delete key boots to bios settings *On ASUS PRIME B450 motherboard the boot menu button is F8 while Del or F2 will trigger the BIOS. =====Getting Ready===== *Use the **/Storage/ForUpgrade** directory. *Run the **/Storage/BU_Scripts/Latest.sh** bash script to backup all pertinent directories. This script dumps the MySQL database, saves a list of repositories, list of applications, copies of both hosts and fstab, as well as tarring /home; /opt; /Work/www; /etc directories. *Run **Aptik --backup-all** to save the entire configuration. *Download latest version of Linux Mint ([[http://www.linuxmint.com/download.php|http://www.linuxmint.com/download.php]]). Move image (*.iso file) to a CD or memory stick using Brasero. =====Installing Mint:===== *Install new linux image to **/dev/sd****a****1** for Gertie007; format for ext4 and mount to "**/**". Make sure grub gets put on **/dev/sd****a****.** Verify that installing the new system to which ever disc won't destroy other partitions already in use.. *Verify mounts, including home partition. Update fstab as necessary, using **sudo blkid **and saved fstab in /Store/ForUpgrade. New fstab should be good for "**/**" and "**/swap**" and old mountings from saved fstab should be okay just to append. ** /****Work, /Storage, /MyStuff, /MyPictures** and **/MyHome **will then be auto-mounted on next restart. These disks should not be affected by the installation. *Update** /etc/hosts** with previous version of hosts. Old host file should be okay to use - verify with new hosts. *Use "//Update Manager"// to update current installation. *Use //menu--> Driver Manager //to update video driver. ===== Backup And Restore Linux Desktop System Settings With Dconf ===== See [[https://ostechnix.com/backup-and-restore-linux-desktop-system-settings-with-dconf/ | Backup And Restore Linux Desktop System Settings With Dconf]] for more information. $ dconf dump / > ostechnix-desktop $ dconf reset -f / $ dconf load / < ostechnix-desktop ===== Backup And Restore mySql ===== Backup Argets DB with /Store/scripts/ Restore from phpmyadmin import ===== Backup And Restore Linux Desktop System Settings With Dconf ===== See [[https://ostechnix.com/backup-and-restore-linux-desktop-system-settings-with-dconf/ | Backup And Restore Linux Desktop System Settings With Dconf]] for more information. $ dconf dump / > ostechnix-desktop $ dconf reset -f / $ dconf load / < ostechnix-desktop $ dconf dump / > ostechnix-desktop $ dconf reset -f / $ dconf load / < ostechnix-desktop =====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 apt install ubuntu-restricted-extras sudo add-apt-repository ppa:teejee2008/ppa sudo apt-get update && sudo apt-get upgrade sudo apt-get install meld sudo apt-get install dconf-cli sudo apt-get install shellcheck 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 diodon # lightweight GTK+ clipboard manager sudo apt-get install clipit # lightweight GTK+ clipboard manager sudo apt-get install deja-dup # Backup utility 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 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 sudo apt-get install autokey-gtk # Key Definitions # 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 sudo add-apt-repository ppa:recoll-backports/recoll-1.15-on; sudo apt update; sudo apt-get install recoll; ======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: *android-studio *bluegriffon *crontab *Cura *digikam-5.9.0-01-x86-64.appimage *etcher.appimage *ExifGUI *firefox *freecad *GMVault *google *java *Joplin *joplin *kde3 *LightTable *markdown *master-pdf-editor-5 *mint-flashplugin-11 *Moneydance *neofetch *OldMoneyDance *Printing *purge-old-kernels-2.sh *pycharm *pycharm1 *Qt *quake *sdr *star *tkdiff *xml2txt *xmledit *zim *zoom ======Install Complex Applications:====== ===== Visual Studio Code =============== **Just use Software Center; otherwise:** sudo apt install software-properties-common apt-transport-https wget wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" sudo apt install code -y =====Printer:===== Brother MFC-J895DW: Download [[https://support.brother.com/g/b/downloadlist.aspx? c=us&lang=en&prod=mfcj895dw_us_eu&os=128|Brother linux drivers.]] If CUPS insecure error (("/usr/lib/cups/filter/brother_lpdwrapper_mfcj895dw" has insecure permissions (0100775/uid=0/gid=1000)")) then **sudo chmod 755 /usr/lib/cups/filter/brother_lpdwrapper_mfcj895dw** HP Printers: 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 Lamp Stack===== See [[https://www.rosehosting.com/blog/how-to-install-lamp-stack-on-ubuntu-22-04/|How To Install LAMP Stack on Ubuntu 22.04 ]] =====MySQL:===== MySQL 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. https://www.fosslinux.com/38390/how-to-install-and-configure-mysql-on-ubuntu.htm 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 [[projects:dokuwiki:install_dokuwiki|Install Dokuwiki]] for more detail. Recover after forgetting password: OS: Linux, Debian Login as root apt install whois mkpasswd -m md5crypt supply new password the command will write hash on screen copy it pico /etc/dokuwiki/users.auth.php (location of file may be different in your case) replace the password string (second field : separated) with the new one save =====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: [[projects:digikam:install.txt|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: [[projects:piwigo:install|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|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. - 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. *coooder-1.1.2.oxt *LanguageTool-2.5.oxt *Writer2DokuWiki.oxt *WriterTools.oxt 2. Under Tools --> AutoCorrect Options, Add a new symbol and a replacement text, i.e., LIB = Sylvia works at Gravette Library. ====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. Change keybinding for Calc key through Systems menu --> Keyboard --> shortcuts. Under "Launchers" remove binding for "calculator". create a new custom shortcut "speedcrunch" andd then reassign calc/F4 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|ht]][[http://cinnamon-spices.linuxmint.com/applets/view/83|tp://cinnamon-spices.linuxmint.com/applets/view/]][[http://cinnamon-spices.linuxmint.com/applets/view/83|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.==== Select PPPoE with Username & PaSSWORD Dynamic IP On Demand argets@att.net/Hez7457 ====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: *Thunderbird *Pidgin *Byobu *Tomboy =====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