Skip to content

Instantly share code, notes, and snippets.

@cmcginty
Last active May 13, 2017 01:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmcginty/5a5ca6c0cbcc2e24c05d to your computer and use it in GitHub Desktop.
Save cmcginty/5a5ca6c0cbcc2e24c05d to your computer and use it in GitHub Desktop.
#linux-mint

A General Guide to Upgrading Mint Linux

Last Updated for Mint 18

Pre-Install

  1. Backup application list
    • Menu -> Backup Tool
    • Backup software selection
    • USER/Desktop, Select All, Apply
  2. Create a new LVM partition for root
    • lvdisplay
    • For space, remove non-active root LVMs [IMPORTANT :: POTENTIAL DATA LOSS]
      • sudo lvremove /dev/vg_crucialm4_128_p3/PREV_ROOT
    • sudo lvcreate -L10G -n root_mintNN_N vg_crucialm4_128_p3
  3. Reboot and install to new root LVM

Install

  1. After media boot, select Install Mint icon
  2. Select "Other Install Method" at the bottom of the dialog
  3. Use new LVM root as / mount point, EXT4, format
  4. Use LVM home as /home mount point, EXT4, NO FORMAT
  5. Set /dev/sda as boot loader install point (default)
  6. Ignore "missing swap space" warning

Post Install

  1. Boot into new OS

  2. Install NVIDIA driver packages, Menu -> Driver Manager

  3. Reboot

  4. Update libs, sudo apt-get update; sudo apt-get upgrade

  5. Mark default packages so they are not reported as "orphaned"

    sudo apt-get install deborphan
    sudo deborphan -a --no-show-section | sudo deborphan -A -
    
    • List results with: sudo deborphan -L
  6. Setup postfix mailer w/ smarthost to ISP (no auth)

    #!/bin/bash
    set -e
    
    SMARTHOST=smtp-server.hawaii.rr.com
    FROM_EMAIL=pmcginty@hawaii.rr.com
    TO_EMAIL=casey.mcginty@gmail.com
    export DEBIAN_FRONTEND=noninteractive
    apt-get install -f postfix
    cat > /etc/postfix/sender_canonical <<HERE
    pcm   $FROM_EMAIL
    root  $FROM_EMAIL
    HERE
    postmap hash:/etc/postfix/sender_canonical
    postconf -e "sender_canonical_maps=hash:/etc/postfix/sender_canonical"
    postconf -e relayhost=$SMARTHOST
    echo $TO_EMAIL > ~/.forward
    /etc/init.d/postfix restart
    echo "This is a test message from ${USER}@${HOSTNAME} at $(date)" \
    | sendmail root
    
  7. Add Oracle Java PPA (optional)

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    
  8. Restore old applications

    • Menu -> Backup Tool
    • Restore Software Selection
      • Remove nvidia-* drivers from selection (already installed)
      • Remove libcjs0c (broken dependency in Mint 17.1)
    • Click Apply
  9. Install 3rd party drivers/apps

    • VirutalBox Extension Pack
      • Determine installed version, dpkg -l virtualbox
      • Download the correct VBox Extensions file
      • Select the correct Extension Pack link, open w/ VirtualBox
      • Wait for download and finish importing the pack in VBox
  10. Recreate user accounts in /home

  • Menu -> Users and Groups; Add
  • Select user; change password
  1. Remove out-date-packages
  • Run sudo orphaner
  • Select any lib/apps that are not required
  • Select OK to apply
  • Add remaining packages to "keep" list: sudo deborphan -a --no-show-section | sudo deborphan -A -

Peripheral Devices

  • Brother HL22270DW Printer

    sudo dpkg -i hl2270dwlpr-2.1.0-1.i386.deb cupswrapperHL2270DW-2.0.4-2.i386.deb
    
    • Menu -> Printer, Add
    • Newtork, Device URI: printer
    • Driver: Bother / HL2270DW for CUPS
  • Epson V20 Scanner

    sudo gdebi iscan-data_1.24.0-2_all.deb
    sudo gdebi iscan_2.29.2-1~usb0.1.ltdl7_amd64.deb
    sudo gdebi esci-interpreter-gt-f720_0.1.1-2_amd64.deb
    
acpi-support:amd64
apt-clone:all
apt-transport-https:amd64
archdetect-deb:amd64
banshee:amd64
baobab:amd64
bluetooth:all
brltty:amd64
command-not-found:all
dctrl-tools:amd64
dmraid:amd64
dmz-cursor-theme:all
dnsutils:amd64
doc-base:all
duplicity:amd64
firefox-locale-en:amd64
folks-common:all
fonts-khmeros-core:all
fonts-lao:all
fonts-lklug-sinhala:all
fonts-nanum:all
fonts-sil-abyssinica:all
fonts-sil-padauk:all
fonts-thai-tlwg:all
fonts-tibetan-machine:all
friendly-recovery:all
ftp:amd64
gdebi:all
geoclue-ubuntu-geoip:amd64
gir1.2-accounts-1.0:amd64
gir1.2-dbusmenu-glib-0.4:amd64
gir1.2-dee-1.0:amd64
gir1.2-ebook-1.2:amd64
gir1.2-gdata-0.0:amd64
gir1.2-gmenu-3.0:amd64
gir1.2-gnomekeyring-1.0:amd64
gir1.2-gst-plugins-base-0.10:amd64
gir1.2-gst-plugins-base-1.0:amd64
gir1.2-gtksource-3.0:amd64
gir1.2-ibus-1.0:amd64
gir1.2-messagingmenu-1.0:amd64
gir1.2-signon-1.0:amd64
gir1.2-timezonemap-1.0:amd64
gir1.2-wnck-3.0:amd64
gnome-calculator:amd64
gnome-disk-utility:amd64
gnome-font-viewer:amd64
gnome-screenshot:amd64
gnome-session-bin:amd64
gnome-session-canberra:amd64
gnome-settings-daemon:amd64
gnome-system-log:amd64
gnome-system-monitor:amd64
gstreamer0.10-alsa:amd64
gstreamer0.10-gconf:amd64
gstreamer0.10-plugins-base-apps:amd64
gstreamer1.0-nice:amd64
gstreamer1.0-plugins-base-apps:amd64
gthumb:amd64
gucharmap:amd64
guile-2.0-libs:amd64
gvfs-fuse:amd64
hyphen-en-us:all
ia32-libs:amd64
icedtea-plugin:all
ideviceinstaller:amd64
ifuse:amd64
info:amd64
inputattach:amd64
intel-gpu-tools:amd64
iputils-tracepath:amd64
irqbalance:amd64
jfsutils:amd64
kerneloops-daemon:amd64
libimobiledevice-utils:amd64
libnux-4.0-common:amd64
libpam-freerdp:amd64
libproxy1-plugin-gsettings:amd64
libproxy1-plugin-networkmanager:amd64
libreoffice-base-drivers:amd64
libreoffice-calc:amd64
libreoffice-emailmerge:all
libreoffice-gnome:amd64
libreoffice-help-en-us:all
libreoffice-ogltrans:amd64
libreoffice-presentation-minimizer:all
linux-kernel-generic:all
lshw:amd64
ltrace:amd64
lupin-casper:all
lupin-support:amd64
lvm2:amd64
memtest86+:amd64
mint-backgrounds-maya:all
mint-backgrounds-nadia:all
mint-backgrounds-olivia:all
mint-backgrounds-petra:all
mint-backgrounds-qiana:all
mint-backgrounds-retro:all
mintlocale:all
mint-meta-cinnamon:all
mint-meta-codecs:amd64
mtr-tiny:amd64
mythes-en-us:all
nano:amd64
nux-tools:amd64
openjdk-7-jre-lib:all
openoffice.org-hyphenation:all
pcmciautils:amd64
plymouth-label:amd64
policykit-desktop-privileges:all
pppconfig:all
pppoeconf:all
printer-driver-c2esp:amd64
printer-driver-min12xxw:amd64
printer-driver-pnm2ppa:amd64
printer-driver-ptouch:amd64
printer-driver-pxljr:amd64
printer-driver-sag-gdi:all
printer-driver-splix:amd64
protobuf-compiler:amd64
pulseaudio-module-bluetooth:amd64
python3-aptdaemon.gtk3widgets:all
python3-brlapi:amd64
python3-dirspec:all
python3-gi-cairo:amd64
python3-louis:all
python3-lxml:amd64
python3-oneconf:all
python3-pyatspi:all
python3-pyicu:amd64
python3-speechd:all
python3-virtkey:amd64
python-configglue:all
python-debtagshw:all
python-feedparser:all
python-gnome2:amd64
python-imaging-compat:all
python-mako:all
python-oneconf:all
python-protobuf:all
python-pyatspi2:all
python-qt4:amd64
python-twisted-names:all
python-ubuntu-sso-client:all
qt-at-spi:amd64
rdate:amd64
rfkill:amd64
seahorse:amd64
signon-keyring-extension:amd64
signon-plugin-oauth2:amd64
signon-plugin-password:amd64
simple-scan:amd64
sni-qt:amd64
sox:amd64
speech-dispatcher:amd64
strace:amd64
syslinux:amd64
syslinux-legacy:amd64
system-config-printer-gnome:all
tcpdump:amd64
telnet:amd64
thin-client-config-agent:all
thunderbird-locale-en-us:all
time:amd64
tomboy:amd64
transmission-gtk:amd64
ttf-punjabi-fonts:all
ttf-ubuntu-font-family:all
ubuntu-extras-keyring:all
ubuntu-minimal:amd64
ubuntu-settings:all
ubuntu-system-service:all
unattended-upgrades:all
vino:amd64
xorg:amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment