Coprinus with Ubuntu 14.04

"Coprinus" is the name of a laptop computer, with a somewhat blackish screencorner, and silverish cover. somewhat similar to the Coprinus generus of mushrooms.
Image Image

1.1. Hardware

HP Pavilion dv6. i7 (4 real processors, & 4 virtual). 8Gb RAM. 1Tb Hard Drive. 2GB double gaphics card (ATI & internal).
Keyboard: foreign, 104 keys.

Computer bought at "Outlet PC" . Keyboard stickers bought on ebay for 4€ approx.

1.2. OS: Dual Boot

  1. xUbuntu 14.04 GNU/Linux 64 bits.
  2. Windows 7 Home

(dual boot from grub)

Unless explicityly noted, furhter comments below follow for the Ubuntu GNU/Linux.

1.3. Ubuntu 14.04 LTS

1.3.1. Enable Ubuntu Partners

First enable "partners" repos, since we will use it later to install adobe acrobat reader and skype, at least.

Contents of the updated /etc/apt/sources.list
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb trusty partner
deb-src trusty partner

1.3.2. Extra repositories

Useful extra repositories

Command on a console
xavi@penguinbookpro:~$ sudo su
root@penguinbookpro:/home/xavi# add-apt-repository ppa:nilarimogard/webupd8
root@penguinbookpro:/home/xavi# add-apt-repository ppa:ubuntu-on-rails/ppa 
root@penguinbookpro:/home/xavi# add-apt-repository ppa:danielrichter2007/grub-customizer
root@penguinbookpro:/home/xavi# add-apt-repository ppa:webupd8team/java
root@penguinbookpro:/home/xavi# add-apt-repository ppa:bit-team/stable
root@penguinbookpro:/home/xavi# add-apt-repository ppa:synapse-core/testing
root@penguinbookpro:/home/xavi# add-apt-repository ppa:jtaylor/keepass
root@penguinbookpro:/home/xavi# add-apt-repository ppa:marutter/rrutter
root@penguinbookpro:/home/xavi# add-apt-repository ppa:shutter/ppa
root@penguinbookpro:/home/xavi# add-apt-repository ppa:tuxpoldo/btsync
root@penguinbookpro:/home/xavi# add-apt-repository ppa:libreoffice/ppa

Press enter each time when requested.

After keys are imported, you can quit from the root session with "exit":

root@penguinbookpro:/home/xavi# exit

Nowadays, you can update your sources list, and install launchpad-getkeys:

sudo apt-get update
sudo apt-get install launchpad-getkeys

Launchpad-getkeys allows you to automatically import all the missing Launchpad GPG keys. Run the following command:

Command on a console
sudo launchpad-getkeys
sudo apt-get update

To use Launchpad Getkeys when you're behind a proxy:
sudo launchpad-getkeys -p

1.3.3. Install with interaction

Install programs which require interaction, like a confirmation step, a new password or user interaction of some sort.

  • mysql-server, for the webserver in localhost, etc.
  • phpmyadmin, to manage mysqldatabases easily through a web browser
  • apachetop, for monitoring apache in real time
  • ttf-mscorefonts-installer, required by other packages (PlayOnLinux, maybe?)
  • acroread - Adobe Acrobat Reader (from 'Partners' repo), for the administration that require this closed source program to fill those complicated forms every now and then
    • missing (April 18th 2014)
    • Will be installed by hand in a later stage

Command on a console
sudo apt-get install -y mysql-server phpmyadmin apachetop ttf-mscorefonts-installer

1.3.4. Install the rest in one go

You can then install all the rest of the required and useful software for common tasks (including video editing, screencasting, etc). Note that the first package names until wcatalan are localization packages for our local language, and you can skip them or adapt for your language, etc.

Command on a console
sudo apt-get install -y firefox-locale-ca hyphen-ca icatalan ispell kde-l10n-ca language-pack-ca language-pack-ca-base language-pack-gnome-ca language-pack-gnome-ca-base language-pack-kde-ca libreoffice-help-ca libreoffice-l10n-ca mythes-ca thunderbird-locale-ca wcatalan chromium-browser wine winetricks playonlinux mc thunderbird pdfsam pdfchain krusader krename gwenview gimp-plugin-registry terminator mc bum cheese ess eclipse filezilla flashplugin-installer gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gwenrename inkscape kipi-plugins openjdk-6-jre openssh-server r-recommended skype sshfs terminator texmaker kile unrar vlc htop bibus libsyntax-highlight-engine-kate-perl p7zip p7zip-full p7zip-rar gnome-alsamixer gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-bad-multiverse ubuntu-restricted-addons ubuntu-restricted-extras shutter kdesvn subversion bzr-explorer gtk-recordmydesktop r-cran-rgl r-cran-misc3d libx11-dev libxt-dev libcurl4-gnutls-dev libxml2-dev r-cran-xml libgraphviz-dev libcairo2-dev r-cran-cairodevice freeglut3 freeglut3-dev r-cran-rglpk virtualbox apt-show-versions pdfmod corkscrew uswsusp hibernate pavucontrol grub2-splashimages grub-customizer nautilus-dropbox qshutdown skype meld geany geany-plugins gparted r-cran-rgl r-cran-misc3d libx11-dev libxt-dev libcurl4-gnutls-dev libxml2-dev r-cran-xml libgraphviz-dev libcairo2-dev r-cran-cairodevice freeglut3 freeglut3-dev r-cran-rglpk libgtk2.0-dev jitsi backintime-gnome luckybackup flvstreamer kdenlive transmageddon oggvideotools ogmrip ogmtools xsane mobile-atlas-creator kazam handbrake openshot openshot-doc guvcview backintime-common  hibernate powernap unity-tweak-tool gufw pepperflashplugin-nonfree cairo-dock cairo-dock-plug-ins diodon synapse bzr-explorer skype classicmenu-indicator synaptic gdebi xul-ext-lightning pidgin pidgin-indicator pidgin-plugin-pack pidgin-skype indicator-multiload indicator-netspeed gscan2pdf keepass2 keepass2-doc cups-pdf glabels shutter btsync-gui nautilus-actions nautilus-columns nautilus-open-terminal nautilus-scripts-manager totem-plugins-dvb-daemon linux-firmware-nonfree scribus scribus-doc icc-profiles-free scribus-template create-resources  vpx-tools webp virtualbox-dkms

Other useful programs installed by hand in a later stage:

1.3.5. Enable Encrypted DVD-playback

Ensure you have installed 'libdvdread4':

sudo apt-get install libdvdread4

Then run:

sudo /usr/share/doc/libdvdread4/

1.3.6. Other progs

Added tuxonice:

Other programs installed and commands run:

sudo add-apt-repository ppa:tuxonice/ppa
sudo apt-get update
sudo apt-get install tuxonice-userui linux-generic-tuxonice linux-headers-generic-tuxonice
sudo ln -s /usr/lib/tuxonice-userui/tuxoniceui /usr/local/sbin/tuxoniceui_text

See also:

Cheese (webcam) works after the fix indicated in this page.
Suspending to RAM & Hibernating are disabled by default.

Improve Battery life & performance with:


1.3.7. Re-enable hibernation from menus

First check if hibernation is compatible with your computer

You should save all of your work before hibernating the computer, just in case something goes wrong and your open applications and documents cannot be recovered when you switch on the computer again.

Run this in a console

sudo pm-hibernate

Enter your password when prompted.

After you computer turns off, switch it back on. Did your open applications re-open?

If hibernate doesn't work, check if your swap partition is at least as large as your available RAM.

If the hibernate test works, you can continue to use the sudo pm-hibernate command when you want to hibernate.

You can also enable the hibernate option in the menus. To do that, use your favorite text editor to create


Add the following to the file and save:

[Re-enable hibernate by default]

Alternatively, if the previous doesn't work for some reason, you can edit this file:

sudo gedit /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

Search for the sections related to "hibernate", and set ResultActive=no to ResultActive=yes

[Disable hibernate by default in upower]

[Disable hibernate by default in logind]

1.3.8. Add Java 6 or 7 (JRE) from Sun/Oracle

If for some reason you need Java (jre) 6 or 7 from Sun (currently Oracle), because the openjdk doesn't work for you (if you want to share your desktop with BigBlueButton, for instance, that doesn't seem to like the openjdk), you can add the proprietary java through external repositories.

For JRE 7 from Oracle, you can add the webupd8 repos

Command on a console
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


If you need the earlier sun JRE 6 (keep in mind that you need a version like or higher than 1.6.0_23, because there were some known security holes with earlier versions):

Command on a console
sudo add-apt-repository ppa:flexiondotorg/java 
sudo apt-get update
sudo apt-get install sun-java6


1.3.9. Change the Java used by default

If you need to change the Java used by default, between OpenJDK & Sun/Oracle JRE, you must run:

sudo update-alternatives --config java

Then you can choose among the installed versions:

xavi@penguinbookpro:~$ sudo /usr/sbin/update-alternatives --config java
[sudo] password for xavi: 
Hi ha 4 possibilitats per a l'alternativa java (que proveeix /usr/bin/java).

  Selecció    Camí                                           Prioritat  Estat
  0            /usr/lib/jvm/java-7-oracle/jre/bin/java          1062      mode automàtic
  1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      mode manual
  2            /usr/lib/jvm/java-6-sun/jre/bin/java             63        mode manual
* 3            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      mode manual
  4            /usr/lib/jvm/java-7-oracle/jre/bin/java          1062      mode manual

Premeu retorn per a mantenir l'opció per defecte[*], o introduïu un número de selecció: 0
update-alternatives: s'està emprant /usr/lib/jvm/java-7-oracle/jre/bin/java per a proveir /usr/bin/java (java) a «mode automàtic».

1.3.10. Avoid issues in Java on Chrome 35+

Version 35 of Chrome changed something related to its plugins, and therefore, Java Plugin in GNU/Linux stopped working there.

  1. Stick with Chrome 34
  2. Use Firefox instead.

More information:

1.3.11. Add Acrobat Reader 9.x

By default you can get Adobe Acrobat 8.x in the repositories, as far as I see. But you can download 9.x version in English from Adobe website:

For instance, this version: AdbeRdr9.5.5-1_i386linux_enu.deb

For 32-bit system:

sudo dpkg -i ~/Downloads/AdbeRdr9.5.5-1_i386linux_enu.deb; sudo apt-get -f install

For 64-bit system:

The easier way to install Adobe Reader DEB on 64 bit Ubuntu is using Gdebi, which will automatically install all dependencies.

sudo dpkg -i --force-architecture AdbeRdr9.5.5-1_i386linux_enu.deb; sudo apt-get -f install

1.3.12. Edit PDFs

To edit pdf's easily with a GUI-based program, you have two options. See the instructions in the url's associated with each case:

  1. "PDF Edit" (FLOSS, but apparently undocumented for Ubuntu 14.04)
  2. "Master pdf editor"

1.3.13. Add Cairo-dock

Cairo Dock can be used either with a desktop compositing manager (such as Metacity for Gnome, Compiz, or the KDE4 Window Manager) or without one. See the Ubuntu installation instructions for details. It is available from the repositories:

sudo apt-get install cairo-dock cairo-dock-plug-ins

1.3.14. Enable Virtualization options in the BIOS (for VirtualBox)


1.3.15. Fix virtualbox 'Kernel driver not installed' error (vboxdrv setup)

Taken from

1) If you have not yet installed DKMS run this command

sudo apt-get install virtualbox-dkms

If is already installed resintallation should fix the problem

sudo apt-get install --reinstall virtualbox-dkms

2) After the (re)installation process you should see something similar to this

vboxnetflt.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.5.0-61-generic/updates/dkms/

vboxpci.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.5.0-61-generic/updates/dkms/


DKMS: install completed. * Stopping VirtualBox kernel modules [ OK ] * Starting VirtualBox kernel modules [ OK ] Setting up virtualbox-qt (4.1.12-dfsg-2ubuntu0.10) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place

3) Close VirtualBox and wait for at least 10 seconds for the daemon to shutdown.

4) Open VirtualBox again and Start the machine, it should be fixed

1.3.16. Screencasts with simple-screen-recorder

Whether you’re wanting to make a video tutorial, capture an interface quirk for a bug report, or looking to show off your gaming prowess, there are a bunch of screen-recording tools available for Ubuntu.

While apps like GTK Record My Desktop and Kazam are popular they are not necessarily the best. Results can vary. Kazam in Ubuntu 14.04 is still quite buggy if you don't use the default settings for everything, even if it looks a promising application.

The Qt-based SimpleScreenRecorder isn’t as well known as those above, and while it doesn’t reinvent the wheel, or redefine usability, what it does do it does well. Very well, in fact.

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update && sudo apt-get install -y simplescreenrecorder

For more information, see:

See also Screencasts

1.3.17. Connect remotely using X2Go server

Coprinus usually gets local IP: from eth0 (and from wlan when used instead)

Since Freenx doesn't seem to be easily installable in Ubuntu 14.04 servers (at least up to the time of this writing Xavi ). Therefore, we can use an open-source equivalent alternative, called x2go (x2goserver and x2goclient), which is maintained for GNU/Linux based servers, and with supported clients for GNU/Linux, Mac and Windows.

Quick howto to turn your machine into an X2Go server:

sudo apt-get install python-software-properties
sudo apt-add-repository ppa:x2go/stable
sudo apt-get update
sudo apt-get install x2goserver x2goserver-xsession
sudo apt-get install x2gomatebindings  # if you use MATE/mubuntu
sudo apt-get install x2golxdebindings  # if you use LXDE/lubuntu

You also need to install some desktop environment which is supported by X2Go by default, and in our case, we will install one of the lightest desktops possible: LXDE (see for the full list)

sudo apt-get install -y lxde


  • Remember to install x2goclient in the client computer in order to connect to the server accordingly.
    sudo apt-get install x2goclient

1.3.18. Enable rewrite rules for Apache web server

Command on a console
sudo  a2enmod rewrite
sudo  service apache2 restart

Add this section between the VirtualHost tags the to this file /etc/apache2/sites-enabled/000-default.conf (or equivalent for your configuration; in this case, the doc. root where tiki is installed is /var/www/ ):

<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all

After the change, mine looks like this:

Contents of /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.

	ServerAdmin webmaster@localhost
#	DocumentRoot /var/www/html
	DocumentRoot /var/www

	<Directory /var/www/>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from all

	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

1.3.19. Icinga (Former Nagios): for Server Monitoring


sudo add-apt-repository ppa:formorer/icinga
sudo apt-get udate
sudo apt-get install icinga icinga-doc icinga-idoutils mysql-server libdbd-mysql mysql-client

See also: Icinga-web


  • You need the following Icinga packages already installed on your system, and working
    1. Icinga
    2. Icinga IDOUtils
    3. Icinga IDOUtils database (which will be the backend for Icinga-Web)
      Some help can be found in this howto to installing Icinga using packages: Icinga with IDOUtils.

Additional Packages

sudo apt-get install php5 php5-cli php-pear php5-xmlrpc php5-xsl php5-gd php5-ldap php5-mysql

Then you can install icinga-web:

sudo add-apt-repository ppa:formorer/icinga # if not installed beforehand already
sudo add-apt-repository ppa:formorer/icinga-web
sudo apt-get update
sudo apt-get install icinga-web Icinga on ISPConfig powered servers


    • 1. Preliminary Note
    • 2. Installing Icinga On The Icinga Host (server1)
    • 3. Configuring Icinga
    • 4. Adding A Remote Server (server2) To Icinga

1.3.20. Set up DVB-T (TDT)

We have an old usb DVB-T (TDT) device, which has this chipset: 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick

See: AF9015 DVB-T USB2.0 stick

1.3.21. Install Google Earth

See this:

Therefore, run these commands, for Ubuntu 14.04 LTS 64 bits:

sudo apt-get install libfontconfig1:i386 libx11-6:i386 libxrender1:i386 libxext6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libsm6:i386
cd /tmp && wget
sudo dpkg -i google-earth-stable_current_i386.deb
sudo apt-get install -f

1.3.22. Setup LXLE apps

Add the LXLE stable repo:

sudo add-apt-repository ppa:lxle/stable
sudo apt-get update
sudo apt-get upgrade

1.3.23. Vokoscreen Screencasting

To be tested in short.

sudo apt-add-repository ppa:vokoscreen-dev/vokoscreen
sudo apt-get update
sudo apt-get install vokoscreen


1.3.24. Master PDF Editor

Closed source, but bvery good with no FLOSS alternative or similar level, afaik.

And download the deb files from there for your own architechture. For coprinus, 64 bits:

sudo dpkg -i master-pdf-editor_2.2.15_amd64.deb
rm master-pdf-editor_2.2.15_amd64.deb

Program will be available under the classic menu below "Accessories", or called through the dash with master-pdf-editor

1.3.25. Variety Wallpaper Changer

Variety can be installed on Ubuntu and its variants and derivatives from its official PPA by running these commands in a terminal:

sudo add-apt-repository ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety


1.3.26. OBS-Studio (Open Broadcasting Software)

If you're on Ubuntu 14.04, you'll first need to install FFmpeg (15.04+: skip this step), and then you can install OBS:

sudo apt-add-repository ppa:kirillshkrogalev/ffmpeg-next
sudo apt-add-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install ffmpeg obs-studio


1.3.27. Further extra repositories and desktops

I added in a later stage lubuntu-desktop and mate-desktop, to see whether the computer could run even faster and display bluetooth applications that seemed to be missing in default ubuntu unity desktop, etc.

For lubuntu:

sudo apt-get install lubuntu-desktop

For Ubuntu-mate, how to install or uninstall, see:

In short, to get it installed:

sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-add-repository ppa:ubuntu-mate-dev/trusty-mate
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ubuntu-mate-core ubuntu-mate-desktop

And choose the new desktop at login time, etc.

Alias names for this page:

hp14 | Coprinus14 | CoprinusUbuntu1404 | Coprinus | 14.04

Image Llavor: nom \ˈllavor\ : el principi d'alguna cosa que continua desenvolupant-se o creixent

Llavors de coneixement

Canvia l'Idioma