Jitsi Ubuntu VoIP SIP Client

The latest instalment in my never-ending quest to find a decent SIP client (see Ubuntu SIP I & Ubuntu SIP II) I came across JITSI (http://jitsi.org/). Since the website looked very interesting and the project seems very well maintained (http://jitsi.org/index.php/Main/Screenshots) I decided to give it a go.

The installation is a breeze with a Ubuntu/Debian package available and the installation also adds the repository to keep the package up to date.

http://download.jitsi.org/jitsi/debian/

After a few test calls it seems to work very well. The UI is much more intuitive than comparable Ubuntu clients. Looks I found my new default client – nice job Jitsi Team.

 

Installing Samsung Multifunction Printer – Ubuntu 11.10

Getting Multifunction Printers to scan under Linux can be a bit of a pain. The Samsung SCX-3400 I had to install recently was no exception.

Here are the necessary steps I had to perform:

  1. Ignore all Samsung Provided CD’s and downloads. They do not work under Oneiric Ocelot (11.10)
  2. Add Samsung Unified Driver repository http://www.bchemnet.com/suldr/smfpv3.html
  3. Install Samsung drivers and libsane-extras
  4. Edit sane configuration files
vim /etc/apt/sources.list
#add the Samsung Unified Driver Repo
deb http://www.bchemnet.com/suldr/ debian extra
wget http://www.bchemnet.com/suldr/suldr.gpg
apt-key add suldr.gpg
apt-get update
apt-get install samsungmfp-data samsungmfp-driver samsungmfp-network samsungmfp-scanner samsungmfp-configurator-data samsungmfp-configurator-qt4 libsane-extras

The following sane config files need to be modified (add lines)

/etc/sane.d/xerox_mfp.conf

# Samsung SCX-3400
usb 0x04e8 0x344f

/lib/udev/rules.d/40-libsane.rules

# Samsung SCX-3400
ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344f", ENV{libsane_matched}="yes"

The entries above are for the SCX-3400 model. To find the USB ID’s for other models use

sane-find-scanner

Thanks to the following Ubuntu Forum participants for providing some the tips: http://forum.ubuntuusers.de/topic/installation-samsung-scx/

Finding a Notepad++ alternative / replacement on Ubuntu

One of the most important utilities on any computer is a decent text editing tool. Since there are as literally hundreds of text-editors out there you would think it is an easy task to find a similar one for each platform.

After years of trialing on various Windows platforms I have found Notepad++ to be the most useful of them all (closely followed by EMEditor which I used for years before Notepad++). Since I have now switched to Ubuntu completely it was necessary to find a permanent alternative on that platform since Notepad++ is only available on Windows.

The requirements list in order of priority:

  1. Fast & Native (reading NOT Java or similar runtime requirements)
  2. Excellent Search & Replace (which is where most fail ….)
  3. Lightweight
  4. Simple GUI (reading NOT an IDE)

Potential Candidates

Scite

Scite was my first try since it is based on the same engine as Notepad++. I have used it for a number of months but was never really happy with it. Issues with “Find in Files” functionality have been the final issue that make me move on. http://www.scintilla.org/SciTE.html

Scite Screenshot

Geany

I came across this one very recently and after a short trial period grown to really like it. Apart   from it’s silly name and very ugly icon it really has got the nicest overall balance of speed and functionality. And most importantly it also has very decent in-built search & replace functions. This includes ”Find in Files” functionality which actually works. http://www.geany.org/

Geany Screenshot

Vim (Cream)

Since vim is my command-line text editor of choice for years I was giving the GUI version a try next to Geany. However since I am not a total vim freak (never had enough time to learn all the power of this tool) I decided to stick to a dedicated GUI text editor for long editing tasks (HTML, CSS coding) and keep vim for when I am on the command-line or a headless server.

Gedit

Being the default editor in Ubuntu I have used it a bit, but always found it very sluggish and not very intuitive to use. Apart from the fact is installed by default I did not find many things I liked about it.

Note: sometimes the find and replace needs are outside of the capabilites of any text editor and you have to resort to a specialised tool. As a GUI I have always found Regexxer (http://regexxer.sourceforge.net/) very useful. Otherwise there is always the full power of grep and sed.

Turning the Toshiba Z830 into a Ubuntu Ultrabook

ultrabook

EDIT: Here are some tweaks if you install 12.04 (Precise Pangolin).

Since I will have to do a fair amount of traveling in the next year I was in need of upgrading my trusted workhorse of Toshiba Qosmio F60 to a more portable option that will be easier on the shoulders during long travels. After doing some research into which of the major manufacturers offer the best support for a Linux based Operating System it came down to a final two: the Intel i7 variants of Samsung Series 9 and the Toshiba Z830.

Thanks to these sites for some useful content:

In the end it came down to Toshiba having full-size VGA, HDMI and Ethernet connectors at the rear of the unit (no need for carrying adapters) and getting a very decent price rebate for the Toshiba.

The first and only task in the included Windows 7 OS was to create a recovery USB drive using the Toshiba included utility (on the desktop). You need a 12GB USB stick (found out the hard way after buying an 8GB version with the unit on advice of the sales guy).

After booting from a USB stick created from the Ubuntu 11.10 ISO (http://www.ubuntu.com/download/ubuntu/download) with Ubuntu Bootdisk Creator (or alternatively UnetBootin) I opted to wipe the whole SSD drive. If you are not sure that you want to stick with Ubuntu it might be safer to try running from USB or dual-boot.

Note: you need to use the USB3 connector on the right-hand side of the machine to boot (not the rear USB2 connectors). Press the F-12 Function key when turning the unit off and choose the USB Boot option.

It always gives me strange pleasure to wipe a pristine new machine from all the rubbish that manufacturers pre-install and start with a clean system that I can customise to my needs (without having redundant stuff cluttering the system and waste valuable resources).  So enjoy that part ;-)

toshy ultrabook

The Oneiric Ocelot (11.10) installation was extremely smooth. As predicted by the previous research all the hardware was detected automatically. Even Bluetooth and Toshiba Function keys (screen brightness and display switching) work without any tweaking.

I am currently looking into some SSD specific tweaks thanks to this article on ZDNET. I will post future updates on further experiences when it comes to battery-life and other day-2-day issues.

Update: I have made a tweak to improve disk I/O parameters to improve SSD performance

Disable the ‘elevator’ I/O scheduler in the kernel by editing the default Grub config (/etc/default/grub)

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=noop"

Looks like this unit is definitely a good option for people looking for Ubuntu Notebook / Ultrabook hardware. Well done Toshiba ! Now I just want a refund for the wasted Windows license….

Enjoy your OPEN Ultrabook !

Using Blackboard Collaborate (Elluminate) on Ubuntu

Like it or not (personally I am in the second category) Blackboard Collaborate or Elluminate (as it is still more commonly referred to) is something you have a hard time avoiding if you work in online education.

I discovered that I have audio issues on some Ubuntu Linux machines and found the following to fix the issues.

1) Install alsa-aoss

apt-get install alsa-oss

2) Save the Elluminate Java Webstard (.JNLP) file to a local folder – DO NOT OPEN IN BROWSER
3) Launch Elluminate using this command (in the folder you saved the JNLP)

aoss javaws meeting.jnlp

Thanks go to all people involved in this forum thread: http://ubuntuforums.org/showthread.php?t=1081899

EDIT:

1) This assumes you are already running Sun (Oracle) Java JRE not the default OpenJDK as apparently Blackboard Collaborate does not play nice with the default OpenJDK. I have described the install on 11.10 here.

2) Make sure you have updated the alternatives for javaws (install only sets the java alternatives).

update-alternatives --config javaws

 

 

Ubuntu – create manual application launcher (Unity)

With every new release of Ubuntu I am becoming more resigned to the fact that the effort to revert back to the Ubuntu Classic (Gnome 2) interface is getting harder and sooner or later I will have to bite the bullet and learn to live with the ugly and more cumbersome Unity interface (specially since Gnome 3 seems to be even worse). One of the first issues I found is that there seems to be no easy way to manually add programs to the “Launcher” (as well as to the applications list).

After some digging everything seems to be still via .desktop files in /usr/share/applications/

1) Create the desktop file

vim /usr/share/applications/eclipse.desktop

2) Copy the following into the file (Note: adjust application name and path)

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
StartupNotify=true
Icon=/path/to/application/icon.xpm
Name=Eclipse
Comment=Programming IDE
Exec=env UBUNTU_MENUPROXY=0 /path/to/application/eclipse
Categories=Application;Development;

3) Update the desktop database

update-desktop-database

UPDATE: According to this article: http://www.omgubuntu.co.uk/2011/11/ubuntu-desktop-designers-clarify-on-configurability/ the Ubuntu developers have confirmed some more reconfigurability in future releases.

Installing Java6 JDK on Ubuntu 11.10

UPDATE: To install on 12.04 (Precise Pangolin) you need a different PPA.

Since sun-java6-jdk has been removed from the default Ubuntu 11.10 (Oneiric Ocelot) repositories you need to add a PPA repository (unless you want to install by hand)

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

Back up Google Apps Mail using getmail4 + IMAP

Just a quick note on how to configure backups of Google Apps email to a local machine.

Install getmail

apt-get install getmail4

create config directory

Create a subdirectory in users home folder (and change permissions)

mkdir .getmail
touch .getmail

create config file

Create a file such as .getmail/username.gmail

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = username@domain.tld
password = password
mailboxes = ("[Gmail]/All Mail",)

[destination]
type = Maildir
path = /path/to/storage/directory/

[options]
# print messages about each action (verbose = 2)
# Other options:
# 0 prints only warnings and errors
# 1 prints messages about retrieving and deleting messages only
verbose = 1
message_log = ~/.getmail/gmail.log

create data directories for storage

Create 3 sub-directories in your designated data directory

mkdir cur new tmp

run getmail

getmail -r username.gmail

Whilst this is more a ‘note to self’ rather than actual documentation – maybe it’s of use to somebody.

Thanks go to Matt Cutts: http://www.mattcutts.com/blog/backup-gmail-in-linux-with-getmail/ for the start.