Linux For Cynics One user's experiences with Linux


Install Oracle Java 7 in Ubuntu 12.10

Installing Oracle Java 7 in Ubuntu can be difficult to do by hand. The Webupd8 team has provided a very easy installer in the webup8team ppa. All you have to do is add that ppa:

sudo add-apt-repository ppa:webupd8team/java

And install the oracle-java7-installer:

sudo apt-get update
sudo apt-get install oracle-java7-installer

You might encounter a few dialogue boxes that ask you to agree to license terms.

All done!

After that, you should be able to invoke Java on the command line with java, or by right-clicking on a .jar in Nautilus and selecting "Open with Oracle Java 7 Runtime".

For example, to run a jar, called jdiskreport-1.4.0.jar, just right click on it in Nautilus:
Or, in a terminal, type:

java -jar jdiskreport-1.4.0.jar

How to Install and Play League of Legends on Ubuntu

These instructions should work for other versions of Ubuntu, as well as Ubuntu-based distros such as Mint.

1. Install p7zip. It's needed for PlayOnLinux.

sudo apt-get install p7zip-full

2. Install the latest version of PlayOnLinux.

Caution: At the time of writing, the version of PlayOnLinux in the Ubuntu repos is out of date. If you have that version, don't worry. Follow these installation instructions and your PlayOnLinux will be upgraded.

In Ubuntu 12.10, installation or updating is this easy:

Setup key with:

sudo apt-key adv --keyserver --recv-keys E0F72778C4676186

To setup the repository and install playonlinx:

sudo wget -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

If you are using some other distro, just visit the PlayOnLinux download website and follow the instructions for your distro.

2. Run PlayOnLinux, click Install, and enable Testing (by clicking the Include: Testing checkbox next to the search field).


Screenshot from 2013-02-25 12:19:56

Start typing "League of Legends" in the search field. League Of Legends should appear in the list. Select it and click Install in the bottom right.

There might be a few message boxes that let you know that the program you are about to install is in testing, just say Ok to everything.

3. Select the "Download the program" option


4. PlayOnLinux will download the LoL installer and run it. It'll take a while to download. Go through the install wizard and make sure to install LoL in the default location, and at the end, DO NOT have the "Launch League of Legends" checkbox ticked.


5. Run LoL! A couple tips:

  • The default server was EU West for me. Make sure to change the server to yours, or you won't be able to log on.
  • I recommend playing a custom game alone before playing a real game with others players. This will give you a chance to fiddle with the Video options and get them right.

I tested this with a ThinkPad X230 with an Intel HD Graphics 4000, and League of Legends worked well (about 30 fps) in full-screened mode and most graphics options turned to the lower end. Very playable. I also tested it with a ThinkPad X200 but found the fps too low to play well. Gl hf!


How to Make Skype Tray Icon Visible in Ubuntu 12.10

If you're using Skype in Unity (the default Desktop Environment) in Ubuntu 12.10, you might notice that the Skype "tray" (or "notification" ) icon is missing. Here's how to make it appear again:

Open up your terminal emulator (hit WinKey and start typing "term", hit enter). Run this:

gsettings get com.canonical.Unity.Panel systray-whitelist

You should get something like this:

['JavaEmbeddedFrame', 'Wine', 'Update-notifier']

This means that Skype is not whitelisted, thus is not allowed by default to display its tray icon. We need to add Skype to the whitelisted programs.

See how we used "gsettings get" in the previous command to see the whitelisted programs? Now we are going to use "gsettings set" to modify that list.

Put this into your terminal and execute the command. Notice the double quotes around the list, and the single quotes around each item in it! Also, make sure to enter this all as ONE LINE:

gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Wine', 'Update-notifier', 'Skype']"

Exit Skype if it is running, and run it again. Now you should see the icon.


Ubuntu 12.10 Broke My External HDD Shares

The set up I have for my NAS computer might not be typical, so perhaps this doesn't apply to most people. But when I upgraded to Ubuntu 12.10, my external hard drive was no longer accessible from the network. I would get the ""Unable to mount location. Failed to mount Windows share" error dialogue. What was most puzzling was that when I connected through ssh and tried to access /media/My Book, it was there, but I would get

ls: cannot open directory My Book/: Permission denied

The problem is that the mount points for external media have changed. For your user, they are now:


So, in order to share them over the network, your /etc/samba/smb.conf must reflect that (replace <username> and <drivername> with your details):

[My Book]
path = /media/<username>/<drivename>
available = yes
browsable = yes
public = yes
writable = yes
force user = <username>

And restart the samba service:

 sudo service smbd restart

Still won't work? Try this: How to share an external harddrive