Upgrade Single Package in Ubuntu

Refer: upgrade-single-package

As usual you need to fetch an updated index from the Internet:

sudo apt-get update

Now upgrade a package, where Package is whatever you want.

sudo apt-get --only-upgrade install Package
sudo apt-get install Package

Bonus, see list of packages available for upgrade

sudo apt-get update
sudo apt list --upgradable

Improve Ubuntu 20.04 Battery by installing TLP for Linux

Laptop fan started running continuously, removed the application.

Refer: https://fossbytes.com/things-to-do-after-installing-ubuntu/

TLP is a great command-line tool for improving the battery performance for your laptop after installing Ubuntu 20.04 LTS. This advanced power management tool comes with automated background tasks that can help you get the most out of your battery.

To install TLP in Ubuntu 20.04 Focal Fossa,

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

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

Installing NPM and NodeJS in Ubuntu

Possible Solution (Not Tested):
http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/

Updating NPM
Refer: http://stackoverflow.com/questions/23393707/how-to-update-npm

This will update npm using npm itself:

# This is for initial installation
$ sudo npm install npm -g

# This is for upgrade
$ sudo npm update npm -g

From article: If you are stuck, try sudo npm update npm -g. All credit goes to Tim Castelijns. I have tested it on ubuntu 14.04, npm 1.3.10

Note that if you are using nvm for managing multiple versions in your local dev environment for e.g. testing purposes, all your installed versions (listed by nvm ls) are in ~/.nvm, hence you just omit system wide installation (i.e. omit sudo):

$ npm install npm -g

Updated version of NodeJS - Chris Lea
Refer: https://nodesource.com/blog/chris-lea-joins-forces-with-nodesource

Lexmark Prevail Pro 705 Install with Ubuntu

This driver works with Ubuntu 14.04 64-bit
Works-Ubuntu-14-lexmark-inkjet-legacy-wJRE-1.0-1.amd64.deb.sh_Pro900.tar.gz

Extract it in your downloads folder, and it's a single *.sh
$ sudo su -

And execute the script and follow the prompts.
Refer: http://support.lexmark.com/index?docLocale=en_US&page=content&id=DR20854&locale=EN&userlocale=EN

Actual filename: lexmark-inkjet-legacy-wJRE-1.0-1.amd64.deb.sh_Pro900.tar.gz

If you get this error you will need to uninstall a previous version of the Lexmark drives

The installer has detected previously installed component. -- lexmark-inkjet-legacy Please remove the installed component and run the installer again.

sudo apt-get --purge remove lexmark-inkjet-legacy
sudo apt-get --purge remove lexmark-wsu-legacy

Older Notes or 32-bit version of Ubuntu - Kept for reference

Refer: lexmark.com

Printer driver (with JRE) for 32-bit Linux distributions with Debian-based packaging
File Name: lexmark-inkjet-legacy-wJRE-1.0-1.i386.deb.sh.tar.gz
Released 10/25/2011
Version: 1.0.1
File Size 4.9859946E7
Release Notes

This package installs a printer driver for 32-bit Linux distributions with Debian-based packaging. The following components will be installed on your system along with the printer driver:

Lexmark Printer Toolbox - allows users to perform maintenance operations on the device and check ink levels of the cartridges

Wireless Setup Utility - allows users to configure the wireless settings for wireless capable printers

This package is installed with Java Runtime Environment (JRE), used for running Java applications.

INSTALLATION INSTRUCTIONS

IMPORTANT: Follow these steps only if your printer is listed in the Linux Home Office and SMB Products compatibility page.

A. RUNNING THE GUI INSTALLER SCRIPT FROM THE TERMINAL

Open up your favorite terminal (xterm, konsole, gnome-terminal, etc)

Extract the zip file
Use the following command to install the driver
DEB-based distros:

# ./lexmark-inkjet-[xx]-driver-[x.x.x]..i386.deb.sh
Follow the instruction in the installation screen.

B. RUNNING THE GUI INSTALLER SCRIPT
Do not attach the printer via USB to the Linux machine.
Extract the zip file.
For DEB-based systems: lexmark-inkjet-[xx]-driver-[x.x.x].i386.deb.sh

Run the installer script file by double-clicking on the file icon and then click the ""Run in Terminal"" button or run the script file via command-line.

Follow the instructions in the installer screen.

Ubuntu 14.04 Tweaks

Using Ubuntu 14.04 in Virtual Box on the Macbook Pro starting working really well, and I was able to take advantage of many of the advance features.  It does cause the fan to kick on when it runs for a while.

These settings really bumped up the performance

  • The clipboard bi-directional worked and so did the drag-n-drop setting
  • Motherboard, Extended Features, Enable I/O Apic
  • Use extra processor cores
  • Processor, Extended Features, Enable PAE/NX
  • Acceleration, Enable VT-x/AMD-V and Enabled Nested Paging
  • Video Memory 64 Meg
  • Storage, Controller SATA, Use Host I/O Cache - Really help YouTube Playback

Installation of VirtualBox in Ubuntu 11.10

You will need to add your username to vboxusers group

open a terminal
sudo gedit /etc/group
vboxusers:x:125:mruckman
reboot Ubuntu to make sure it picks up the new changes

You will also want to install VBoxGuestAdditions_4.1.2
mount the ISO image inside the virtual appliance

You can download various versions of the software here:
http://download.virtualbox.org/virtualbox/4.1.2/

Turn off "Enable absolute pointing device" to have better response during shutdown and reboot.

When the virtual appliance is turned off, do the following:
Settings, System, uncheck the "Enable absolute pointing device"

Installing Ubuntu 9.04 on Dell 1545 Laptop

Basic Install Items
Reference Guide Ubuntu904

  • Ubuntu restricted extras from Add/Remove
  • DVD Playback
    • sudo apt-get install libdvdread4 totem-gstreamer
    • sudo /usr/share/doc/libdvdread4/install-css.sh
    • check with Synaptic Package Manager you should see the following packages installed after searching for libdvdread4, libdvdnav4, libdvdcss2
  • System, Preferences, Main Menu -- trim down menu, remove things you are not going to use
  • Nautilus Edit, Preferences, Preview -- turn off thumbnails
  • Install Sun Java 6
    • sudo apt-get install sun-java6-jre sun-java6-plugin
    • sudo apt-get install sun-java6-jdk
    • sudo update-alternatives --config java

Lessons Learned

  • Turn off visual effects, it causes VLC and MPlayer to crash by locking the computer.
  • After you install Eclipse you will need to run the sudo update-alternatives --config java again because Eclipse installs its own version of Java, and this will set the defaults.  Sun's version runs faster.

Flavors of the Month

  • Comix - Manga viewer
  • Gwenview - Simple image manipulation
  • Eclipse
  • ISO Master - Redo contents of ISO images

Other Items

  • Here's the grub menu.lst as of May 3, 2009: menu.lst

Uninstall GRUB fix MBR for Windows

Boot your computer using FreeDOS on CD-ROM, and run the following command from a command prompt.

fdisk /mbr

This restores your master boot record, and effectively eliminates GRUB.  You now have orphaned Linux partitions on your hard drive you will either need to use windows to delete and reformat as additional partitions or use a 3rd party utility to reclaim the space.