Wednesday, March 19, 2014

Install Oracle Java 8 (JDK8 and JRE8) in Ubuntu / Linux Mint

The installer provides Oracle Java 8 (which includes Java JDK, JRE and the Java browser plugin). However, you can't only install Oracle JRE - the PPA only provides the full Oracle JDK8 package.


The PPA supports Ubuntu 14.04, 13.10, 12.10, 12.04 and 10.04 as well as the corresponding Linux Mint versions. Add the PPA and install Oracle Java 8 (the package provides both JDK8 and JRE8) using the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Once installed, running "java -version" in a terminal should output something like this:


linuxmaiden@lover ~ $ java -version

java version "1.8.0"
Java (TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot (TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

Or, "javac -version":

linuxmaiden@lover ~ $ javac -version
javac 1.8.0

Setting Up Java Variables


To automatically set up the Java 8 environment variables, or if you had a prior version of Java and it didn’t show it was updated to Java version “1.8.0” after the download you can install the following package:

sudo apt-get install oracle-java8-set-default
recheck Java version
linuxmaiden@lover ~ $ java -version

If you've already installed oracle-java6-set-default or oracle-java7-set-default, they will be automatically removed when installing oracle-java8-set-default (and the environment variables will be set for Oracle Java 8 instead).


WEB UPD8

Unixmaiden on Google +




Monday, March 17, 2014

Automatically Install All The Google Web Fonts In Ubuntu Using A Script

What the script does is download all the fonts from Google Font Directory. It installs them under /usr/share/fonts/truetype/google-fonts/ so if you want to remove them, simply delete that folder.

To download and install all the Google Web Fonts in Ubuntu, open a terminal and type the following commands:



cd && wget http://webupd8.googlecode.com/files/install-google-fonts
chmod +x install-google-fonts
./install-google-fonts
 
If you want to take a look at the script before running it, download it from 
HERE.


Once the script finishes downloading and installing the fonts, you can go ahead and try them out. If you want to use one of the Google Web Fonts for your desktop, right click your Desktop, select "Preferences" and set the new font on the "Fonts" tab.

The script creates a "googlefontdirectory" folder in the directory where you run it (your home folder if you've followed our exact instructions) - you can either delete this folder or keep it and the next time you run the script, it will only update the fonts instead of completely downloading them all over again.
I found this script on Web UPD8 and is easy peasy.  It takes a little time to download so be patient.

Unixmaiden on Google +
 

Tuesday, March 11, 2014

Debian and Ubuntu Desktop Version for Bittorrent Sync(R)

THESE PACKAGES ARE UNOFFICIAL AND NOT THE WORK OF BITTORRENT® INC. PLEASE DO NOT CONTACT THE BITTORRENT® INC. SUPPORT WITH QUESTIONS OR PROBLEMS RELATED TO THE USE OF THE PACKAGES. YOU WILL FIND COMPETENT HELP AND SUPPORT IN THIS THREAD


The deb-packages are available for the same architectures as released by BitTorrent Inc.:
  • i386 Intel/AMD 32 Bit
  • amd64 Intel/AMD 64 Bit
  • armel ARM EABI
  • armhf ARM hard float
  • powerpc PowerPC
Since the packages still have not been tested with KDE, LXDE, Cinnamon and Linux Mint, any related feedback is highly appreciated.


ADDING THE REPOSITORIES


Debian and Debian based distributions (Linspire, Xandros, Ubuntu, and Mepis to name a few) use a tool called APT (Advanced Packaging Tool) to manage all software on the system. The term "package" refers to an individual file with a .deb extension that contains either all or part of an application.


Your distribution comes with some default repositories that are already setup, but these contain only the software officially distributed by the creator of your distribution. In order to install the btsync packages, you have to add the specific repositories where btsync is hosted.


If you are using Ubuntu, you may also use the Launchpad PPA instead of the default repositories. Although it is easier to install, there are some disadvantages:
  • The PPA only supports Ubuntu versions that are supported (currently lucid, precise, quantal, raring and saucy)
  • The PPA only supports the i386 and amd64 architectures
  • Sometimes it takes some hours for the packages to be published
If you are OK with this, you can add the Launchpad PPA by issuing the following commands:
`which sudo` add-apt-repository ppa:tuxpoldo/btsync`which sudo` apt-get update


After this, you can directly proceed with the installation.


If you are not using Ubuntu or you are using an unsupported version or architecture or by any other reason you prefer the default repositories, continue here.


The btsync packages are all signed with a key in order to guarantee their authenticity. Before using the repository, you should add the key to the package manager. To do that, run the following command:
`which sudo` apt-key adv --keyserver keys.gnupg.net --recv-keys 6BF18B15


On success you should see an output like this:
gpg: requesting key 6BF18B15 from hkp server keys.gnupg.net
gpg
: key 6BF18B15: public key "Leo Moll <leo.moll@yeasoft.com>" imported
gpg
: no ultimately trusted keys found
gpg
: Total number processed: 1
gpg
:               imported: 1


Now you can easily add the package sources, by executing the following commands:
CODENAME=$(lsb_release -cs | sed -n '/lucid\|precise\|quantal\|raring\|saucy\|trusty\|squeeze\|wheezy\|jessie\|sid/p')
echo deb http
://debian.yeasoft.net/btsync ${CODENAME:-sid} main > ~/btsync.list
echo deb
-src http://debian.yeasoft.net/btsync ${CODENAME:-sid} main >> ~/btsync.list
unset CODENAME
`which sudo` mv ~/btsync.list /etc/apt/sources.list.d/btsync.list`which sudo` chown root:root /etc/apt/sources.list.d/btsync.list


Remember to update the local cache:
`which sudo` apt-get update


After that you can proceed with the installation.


INSTALLATION OF BTSYNC DESKTOP VERSION
The installation of btsync-user is really easy:
`which sudo` apt-get install btsync-user


After the successful installation, you have to initially start BitTorrent Sync. You have different possibilities to do this:
Log out and login again.
Since BitTorrent Sync is started on logon, it will start automatically.
Select BitTorrent Sync from the menu or Unity-Launcher
Start it from the console by issuing the command:
btsync start



Source and more information if these instructions aren’t helping: