Thursday, March 5, 2015

Linux Mint 17.1 Install on Lenovo X120e

When Installing Linux specifically Mint 17.1 64-Bit (Mate Edition) on the Lenovo X120e.  Should work with any UEFI Lenovo.  (Same install with Lenovo ThinkPad Edge E535)


  • UEFI set to Both (Legacy and UEFI)
  • Drive must be MBR (MSDOS in GParted)
  • Formatted Partitions:
    • /Boot - 512 MB
    • / - The rest
    • Any other partitions are optional



Should boot right up.  Hardware works fine out of the box.  FGLRX Driver is configurable in the Hardware menu.  

UEFI and GPT seems not to work correct as what most advice is.  Spent alot of time trying to get this to work.  Follow the above and it should work fine.

Thursday, October 31, 2013

Installing Java JRE / Java JDK in Debian Linux

This method installs Java and JDK onto your on a Debian Linux system.  The example is for version 7u21, but you can use it for newer versions (just make sure to change the code to reflect the version you are installing).  

Pre-Install Procedures:

# apt-get purge openjdk-\*

# mkdir -p /usr/local/java

This purges the open Java from your system.


Install Procedures:

Download Java and JDK from the Java website

Unpack the files into the /usr/local/java folder


Post-Install Procedures:

The following edits your profile:
# echo "JAVA_HOME=/usr/local/java/jdk1.7.0_21" >> /etc/profile
# echo "PATH=$PATH:$HOME/bin:$JAVA_HOME/bin" >> /etc/profile
# echo "JRE_HOME=/usr/local/java/jre1.7.0_21" >> /etc/profile
# echo "PATH=$PATH:$HOME/bin:$JRE_HOME/bin" >> /etc/profile
# echo "export JAVA_HOME" >> /etc/profile
# echo "export JRE_HOME" >> /etc/profile
# echo "export PATH" >> /etc/profile


This Informs sytem where Java is
# update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jre1.7.0_21/bin/java" 1

# update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_21/bin/javac" 1

# update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jre1.7.0_21/bin/javaws" 1


Updates Java as default Java
# update-alternatives --set java /usr/local/java/jre1.7.0_21/bin/java

# update-alternatives --set javac /usr/local/java/jdk1.7.0_21/bin/javac

# update-alternatives --set javaws /usr/local/java/jre1.7.0_21/bin/javaws


Optional Java Browser Plugins: 
Installs plugin in Google Chrome
# mkdir -p /opt/google/chrome/plugins

# ln -s /usr/local/java/jre1.7.0_21/lib/amd64/libnpjp2.so /opt/google/chrome/plugins

Installs in Firefox
# mkdir -p /usr/lib/mozilla/plugins

# ln -s /usr/local/java/jre1.7.0_21/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins


You should now have Java on your system.  
You can test by typing java -version at the command line.

If you are lazy, in a hurry or just want to do it the easy way:

https://dl.dropboxusercontent.com/u/62401040/Java/javapkg_1.7.0-21-b11_amd64.deb

This package does all the above.

Wednesday, February 27, 2013

Print to PDF

To install a PDF printer on your computer follow these steps:

Debian:

Login as ROOT

Code:

# apt-get install cups-pdf


Ubuntu:

Code:

$ sudo apt-get install cups-pdf


This will install a PDF printer to your computer that will print to the /home/user/PDF directory.

Friday, December 21, 2012

Caja Tips

System Bookmarks

To get bookmarks under the Places system menu to open in Caja (MATE File Browser) instead of a browser do this:

Navigate to /home/username/.local/share/applications/mimeapps.list

(the keyboard shortcut [ctrl h] will show hidden folders (.folder))

Add to both the Default Applications and Added Applications sections:

x-scheme-handler/ftp=caja-folder-handler.desktop

Now your bookmarks will open in Caja instead of your browser!!


Dropbox

To get the right-click menu in Caja working:

# apt-get install caja-dropbox 

MATE may need to be restarted (log out, log back in)


Terminal Menu

Open in Terminal right click menu:

# apt-get install caja-open-terminal

MATE may need to be restarted.

Wednesday, December 5, 2012

WINE

To install WINE, and get it to work, you must install the 32 bit libraries.  

Code:

# dpkg --add-architecture i386

# apt-get update

# apt-get install wine

These libraries are also required for TEAMVIEWER to be installed.


Tuesday, November 27, 2012

Programs to Install

Programs that I find useful for different tasks.

To install these programs download from the venders' website and run with GDebi Package Installer.


  • Opera - Fast web browser with many features; my favorite
  • Google Chrome - Fast web browser; good for using Google web apps
  • Virtualbox - Virtual machine; run Windows or trial other OS's in a Virtual Machine
  • TeamViewer - Remote assistance application
  • Dropbox - Cloud based storage; up to 2 GB free, www.dropbox.com

To install these programs run the command from root:

# apt-get install xxxx

  • Shutter - Screenshot software
  • Inkscape - Vector graphics editor
  • Pidgin - Instant messenger, better than Empathy; can connect to multiple services
  • Scribus - publishing software, .pdf etc.
  • Remmina - Remote desktop software

To install VLC Media player:

Add this line to your /etc/apt/sources.list file:

deb http://www.deb-multimedia.org wheezy main

Then run these commands:

# apt-get update

# apt-get install deb-multimedia-keyring

# apt-get install vlc

Saturday, November 24, 2012

Install MATE Desktop

To install MATE in Debain Wheezy:

Add one of the following to /etc/apt/sources.list

Code:

# main repository
deb http://repo.mate-desktop.org/debian wheezy main

# mirror
deb http://packages.mate-desktop.org/repo/debian wheezy main



Code:


# apt-get update

# apt-get install mate-archive-keyring

# apt-get update

# This install the base packages
# apt-get install mate-core

# This install more extras
# apt-get install mate-desktop-environment



Open in Terminal Menu in Caja, MATE 1.4.2:

Code:

# apt-get install caja-open-terminal

Restart MATE (log out and back in)