Installing libdvdcss on Ubuntu 13.10

With the demise of the Medibuntu repository and libdvdcss not being hosted in the main Ubuntu repos due to licensing issues a new repository is needed from 13.10 upwards. Thanks to the good folks at VideoLAN (makers of the awsome VLC Video Player) there is a ready and updated source available. wget | sudo apt-key add - echo "deb ./" | sudo tee /etc/apt/sources.list.d/libdvdcss.list sudo apt-get update sudo apt-get install libdvdcss2

Continue ReadingInstalling libdvdcss on Ubuntu 13.10

Ubuntu – paperless office on a budget

Since paper and myself have never gotten on well I have always been dreaming of a paperless office. A while ago I purchased a Fujitsu ScanSnap S1500 scanner for the office. I did this after doing some research on which Automatic Document Feed (ADF) multipage & duplex scanners were both affordable as well as supported on Linux.   by  Terry Freedman It took a while for me to get around to set all of this up, but the result now is that this scanner is connected to a headless Ubuntu VM and the press of the scanner button will: scan the document perform OCR to convert to text combine the text with PDF to create a searchable PDF OPTIONAL - send the resulting document into Alfresco Document Management Server via FTP Install dependencies NOTE: PPA is only required for support of Fujitsu ScanSnap S1500 sudo apt-add-repository ppa:rolfbensch/sane-git sudo apt-get update sudo apt-get install sane sane-utils imagemagick tesseract-ocr pdftk libtiff-tools libsane-extras exactimage wput Install scanbuttond Download the "Debian Experimental" package from sudo dpkg -i scanbuttond_0.2.3.cvs20090713-14_i386.deb This step is only for the Fujitsu ScanSnap support. For other scanners you can probably install from the Ubuntu Repository Scanner config vim 40-libsane.rules #add this line ATTRS{idVendor}=="04c5", ATTRS{idProduct}=="11a2", ENV{libsane_matched}="yes" Permissions sudo adduser saned scanner Useful command lines for troubleshooting Since I had a few trouble getting this scanner to work properly I found the following commands highly useful in locating the issue. man sane-usb sane-find-scanner scanimage -L dmesg tail /var/log/udev NOTE: If you are using a…

Continue ReadingUbuntu – paperless office on a budget

Quick Adobe Reader install on Ubuntu 13.04

Whilst EVINCE is a very capable PDF Viewer, if you have a need to fill in editable PDF forms it is required to install the Adobe PDF Reader. sudo add-apt-repository "deb precise partner" sudo apt-get update sudo apt-get install acroread PS: If anybody is aware of an Open Source alternative to the Adobe Reader for editable form please leave a comment !

Continue ReadingQuick Adobe Reader install on Ubuntu 13.04

Remove Ubuntu Webapps integration features

One of the most annoying features in Ubuntu from 12.10 onwards are the pesky notifications popping up asking if you want webapps support everytime you visit a supported webpage? Whilst you can disable this in Firefox's browser options: Firefox > Preferences > General: Uncheck "Prompt integration options for any website". However I prefer to remove the browser extensions entirely. sudo apt-get remove xul-ext-unity unity-chromium-extension NOTE: Take care - unfortunatly you can not remove the following as their removal will cause Unity to fail ! unity-webapps-common unity-webapps-service

Continue ReadingRemove Ubuntu Webapps integration features

Quick ‘manual’ Eclipse install on Ubuntu

Since I always had trouble with the Eclipse version that is avaialable via the Ubuntu repositories I often need to install Elcipse on new machinery. Hence I am documenting the process for myself and hopefully it might help others as well.   by  jah~  If you haven't got the Java dependencies Java dependencies install sudo apt-get install openjdk-7-jre openjdk-7-jdk icedtea-7-plugin Eclipse download Note: download link needs to be updated - current as of 2014-01-27 cd /tmp wget tar -xzf eclipse-standard-luna-M4-linux-gtk-x86_64.tar.gz sudo mv eclipse/ /opt rm -f eclipse-standard-luna-M4-linux-gtk-x86_64.tar.gz Create symlink ln -s /opt/eclipse/eclipse /usr/bin/eclipse Create application launcher NOTE: (Edit 2014-01-27) as of Ubuntu 13.10 you need to change the 'exec' line in the desktop launcher to include "env UBUNTU_MENUPROXY=0" as you otherwise will not see any of the menu items in the top nav-bar. sudo touch /usr/share/applications/eclipse.desktop sudo echo "[Desktop Entry]" >> /usr/share/applications/eclipse.desktop sudo echo "Version=4.2" >> /usr/share/applications/eclipse.desktop sudo echo "Name=Eclipse" >> /usr/share/applications/eclipse.desktop sudo echo "Comment=Integrated Development Environment" >> /usr/share/applications/eclipse.desktop sudo echo "Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse" >> /usr/share/applications/eclipse.desktop sudo echo "Type=Application" >> /usr/share/applications/eclipse.desktop sudo echo "Icon=/opt/eclipse/icon.xpm" >> /usr/share/applications/eclipse.desktop sudo echo "Terminal=false" >> /usr/share/applications/eclipse.desktop sudo echo "NoDisplay=false" >> /usr/share/applications/eclipse.desktop sudo echo "Categories=Development;IDE" >> /usr/share/applications/eclipse.desktop sudo update-desktop-database

Continue ReadingQuick ‘manual’ Eclipse install on Ubuntu

Simple conky system monitor configuration

Just a quick note on install and configuration of Conky. Installation sudo apt-get install conky conky-all hddtemp curl lm-sensors sudo chmod u+s /usr/sbin/hddtemp sudo sensors-detect vim ~/.conkyrc This is the content of my config file. use_xft yes xftfont Ubuntu Condensed:size=9 xftalpha 0.8 override_utf8_locale yes update_interval 5.0 total_run_times 0 own_window yes own_window_transparent no own_window_argb_visual yes own_window_argb_value 155 own_window_colour 081100 own_window_type normal own_window_class conky-lgaggl own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #background yes #out_to_console no double_buffer yes #max_user_text 32768 minimum_size 300 draw_shades no draw_outline no draw_borders no draw_graph_borders yes default_shade_color black default_outline_color white default_bar_size 150 5 default_gauge_size 20 20 imlib_cache_size 0 draw_shades no alignment middle_right gap_x 15 gap_y 15 border_inner_margin 10 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no default_color ffffff color1 ffffff color2 cccccc color3 000000 color4 FFAA00 TEXT ${font UbuntuBold:bold:size=11}${color4}Info ${color2}${hr 2}${font} ${color1}Date ${alignr}${color2}${time %a,}${color}${time %e %B %G} ${color1}Time ${alignr}${color}${time %T} ${font UbuntuBold:bold:size=11}${color4}System ${color2}${hr 2}${font} ${color1}Hostname ${alignr}${color}${nodename} ${color1}${sysname} ${alignr}${color}${kernel}-${machine} ${color1}CPU ${alignr}${color}${freq_g}GHz ${color1}Loadaverage ${alignr}${color}${loadavg 1} ${loadavg 2} ${loadavg 3} ${color1}Uptime ${alignr}${color}${uptime} ${color1}Cpu Temperature ${alignr}${color}${acpitemp}C ${font UbuntuBold:bold:size=11}${color4}Processors ${color2}${hr 2}${font} ${color1}Core 1 ${alignr}${color}${cpu cpu1}% ${cpubar cpu1} ${color1}Core 2 ${alignr}${color}${cpu cpu2}% ${cpubar cpu2} ${color1}Core 3 ${alignr}${color}${cpu cpu3}% ${cpubar cpu3} ${color1}Core 4 ${alignr}${color}${cpu cpu4}% ${cpubar cpu4} ${font UbuntuBold:bold:size=11}${color4}Memory ${color2}${hr 2}${font} ${color1}Memory ${color}${alignr}${memeasyfree} / ${memmax} ${color1}Currently ${color}${alignr}${memperc}% ${membar} ${font UbuntuBold:bold:size=11}${color4}Filesystem ${color2}${hr 2}${font} ${color1}/ ${color}${alignc}${fs_used /} / ${fs_size /} ${color}${alignr}${fs_free_perc /} % ${color}${fs_bar 5,300 /} ${font UbuntuBold:bold:size=11}${color4}Networking ${color2}${hr 2}${font} ${if_existing /proc/net/route wlan0}${color1}Ip ${color}${alignr}${addr wlan0} ${color1}AP ${color}${alignr}${wireless_essid wlan0} ${color1}Signal ${color}${alignr}${wireless_link_qual_perc wlan0}${wireless_link_bar 10,100 wlan0} ${color1}Download ${alignr}${color}${downspeed wlan0}${downspeedgraph wlan0 10,100} ${color1}Upload ${alignr}${color}${upspeed wlan0}${upspeedgraph wlan0 10,100} ${color1}Total Down/Up ${alignr}${color}${totaldown wlan0}${color1}/${color}${totalup wlan0} ${else}${if_existing /proc/net/route eth0}${color1}Ip ${color}${alignr}${addr eth0}…

Continue ReadingSimple conky system monitor configuration

Installing Ubuntu on Toshiba Z930 Ultrabook

Since I have been really happy with the performance and mobility on the Toshiba Ultrabooks (see previous blog entries) I have now chosen to stay with a tried brand and uprgrade to the Z930 i7 model. Unfortunately this now comes with added hurdles by our good friends at Microsoft in the form of UEFI and the pre-installed disaster that is Windows 8. Instead of totally wiping the system as I did with the Z830 model I decided to install next to Windows 8 as lots of people have reported problems with the UEFI bootloader and the BIOS if you start messing with the pre-installed partitions (specially the EFI partition). EDIT (2013-06-10): It turns out that Ubuntu works just fine without the factory partitions (which I found out accidentally & not necessarily planned ... see cautionary note at the end of this article). The important part is the "Fix GRUB bootloader" section below as the unit refuses to boot without that step. Hat tip and thank you to the boot-repair developers ! Install procedure Resize Windows partition I resized the Windows partition in the Windows Control Panel (after I spent considerable time actually finding the damn thing in that crazy Metro UI) and removed all the Windows Crapware that comes pre-installed with this thing (such as Norton Security, Microsoft Office and other annoying ad-ware). I decieded to use 200GB for the Ubuntu system leaving roughly 40GB for Windows. Boot off the Ubuntu 13.04 USB Keep F12 key pressed on power up…

Continue ReadingInstalling Ubuntu on Toshiba Z930 Ultrabook

OpenVPN – forward all client traffic through tunnel using UFW

By default OpenVPN only routes traffic to and from the OpenVPN Server. If you need all traffic from a client through the OpenVPN tunnel there are several options listed in the OpenVPN docs ( Since I don't have any control over the server in some cases I needed a client side solution. As I already have ufw running with Ubuntu I wanted to use the existing software. Here is how to configure ufw to enable routing all traffic from your client machines through the OpenVPNĀ Server. Forwarding policy Change default forward policy, edit /etc/sysctl.conf to permanently enable ipv4 packet forwarding. (Note: This will take effect at next boot). sudo vim /etc/sysctl.conf # Enable packet forwarding net.ipv4.ip_forward=1 UFW config And then configure ufw in /etc/default/ufw sudo vim /etc/default/ufw DEFAULT_FORWARD_POLICY="ACCEPT" UFW before rules Change /etc/ufw/before.rules to add the following code after the header and before the "*filter" line. Match the IP/subnet mask to the same one as in /etc/openvpn/server.conf. sudo vim /etc/ufw/before.rules # START OPENVPN RULES # NAT table rules *nat :POSTROUTING ACCEPT [0:0] # Allow traffic from OpenVPN client to eth0 -A POSTROUTING -s -o eth0 -j MASQUERADE COMMIT # END OPENVPN RULES Enable OpenVPN Open openvpn port 1194 sudo ufw allow 1194 Start UFW sudo service ufw start

Continue ReadingOpenVPN – forward all client traffic through tunnel using UFW

Connection Android 4.x MTP mass storage to Ubuntu 12.x

The ability to connect Android 4.+ devices to Ubuntu using the USB Mass Storage interface has always been a pain. With Ubuntu 13.04 a new MTP back-end (gvfs-mtp) is going to be introduced, but I have had some issues with the 13.04 Beta so I found this backport PPA to Ubuntu 12.04 and 12.10 sudo add-apt-repository ppa:langdalepl/gvfs-mtp sudo apt-get update sudo apt-get install gvfs sudo apt-get upgrade Kudos to Phillip Langdale for the work and maintaining the PPA !

Continue ReadingConnection Android 4.x MTP mass storage to Ubuntu 12.x

Mongodb / Python development install on Ubuntu

Add apt repository key sudo apt-key adv --keyserver --recv 7F0CEB10 Add apt repository sudo vim /etc/apt/sources.list.d/10gen.list #add the following line: deb dist 10gen Install mongodb & python utils sudo apt-get update sudo apt-get install mongodb-10gen python-pip python-dev build-essential pip install pymongo

Continue ReadingMongodb / Python development install on Ubuntu