Penguinbookpro with Ubuntu 14.04
Ubuntu 14.04 LTS + MacOSX 1.5 + Win XP Pro, on a MacBookPro 5.5 laptop.
1.1. Triple boot 'Ubuntu 14.04 + MacOSX Leopard + Win XP Pro'
It took a while, but I finally managed to do it, which will allow using hardware with drivers for winXP only to work, such as the "Video to disc One Touch Recording" LG GSA-5169D.
Using rEFIt to boot the computer, WinXP to use the MBR, and Ubuntu to install biosgrub 1MB (different from the grub folder) on it's own root partition.
In general, see:
- https://help.ubuntu.com/community/MacBookPro5-5/Precise
- https://help.ubuntu.com/community/MacBookPro
- https://help.ubuntu.com/community/MacBook/TripleBoot
And also useful tips learned from:
- http://www.downtowndougbrown.com/2013/08/mac-triple-boot-setup-mac-os-x-10-6-windows-xp-ubuntu-13-04/
- http://dreamerslab.com/blog/en/triple-boot-your-macbook-pro/
1.1.1. Preliminary Notes
- Do not keep a 1Tb+ USB disk plugged to the computer while booting, since it might stop booting completely, with no error message.
- At Booting time:
- Press "Alt" key to force showing the alternative booting media
- Press "C" key to force booting from the CD rom
- Press the left mouse button (or equivalent in the touch-pad) to force ejecting a CD while booting
1.1.2. Steps
Upgraded from Penguinbookpro with Ubuntu 12.04, installing Ubuntu-mate 14.04amd64-mac on the previous GNU/Linux partitions (/ and /home) on disk.
1.2. Ubuntu happy-path setup
At "System > Preferences > Mouse > Touchpad", enable the two-finger scrolling, as well as horizontal scrolling.
1.2.1. Enable Ubuntu Partners
First enable "partners" repos, since we will use it later to install adobe acrobat reader and skype, at least.
1.2.2. Extra repositories
Useful extra repositories
Press enter each time when requested.
After keys are imported, you can quit from the root session with "exit":
Nowadays, you can update your sources list, and install launchpad-getkeys:
Launchpad-getkeys allows you to automatically import all the missing Launchpad GPG keys. Run the following command:
1.2.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)
- isight-firmware-tools, to have the drivers from the MacBookPro isight webcam, extracted to your linux partition, so that your webcam can work out of the box.
- You need first to fetch them from internet or from your MacOSX partition. See:
https://help.ubuntu.com/community/MactelSupportTeam/AppleiSight#firmwareskip - You can download them from here, for instance. Extract it somewhere, and have the path info handy for the installation of the isght-firmware-tools later. In my case, the AppleUSBVideoSupport file was located at:
- You need first to fetch them from internet or from your MacOSX partition. See:
1.2.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.
For Macs:
Other useful programs installed by hand in a later stage:
- rstudio
- nxclient
- nxnode
- nxserver
- chrome
- jitsi
- gdiskdump
- phpstorm
- acroread
- Google Chrome v34 (so that Java Plugin still works, because after v35 they stopped supported Java Plugin)
- canon scangear MG3200. See Canon PIXMA MG3200 Printer and Scanner
Also, "nvidia x server settings", through:
- "Software & Updates > Additional Drivers > NVIDIA Binary Driver 331.38 "
1.2.5. Synapse replacement while it's broken
See http://www.techdrivein.com/2010/12/kupfer-synapse-two-ubercool-gnome-do.html
1.2.6. Fix webcam
Taken from: http://askubuntu.com/a/118201
Download AppleUSBVideoSupport driver file (e.g. dl.getdropbox.com/u/332246/AppleUSBVideoSupport) and place at ~
Skip the prompt to immediately load the driver file.
Find MODULES and make it MODULES="isight_usb".
This outputs the product ID of your specific iSight USB device. Remember this number. Mine is 8507. The default Ubuntu driver seems to be hardcoded for 8300, which is a problem.
Add (and be sure to replace the "8507" with your product ID.):
Shutdown/poweroff (not reboot or restart).
Reboot.
I've been using this fix for a couple weeks, and my webcam now reliably works across reboots and suspends. The bug seems to be caused by simply incorrect acpi and udev configurations.
1.2.7. Enable Encrypted DVD-playback
Ensure you have installed 'libdvdread4':
Then run:
1.2.8. Other progs
Added tuxonice:
http://linuxg.net/how-to-install-tuxonice-on-ubuntu-13-04-12-10-12-04/
Other programs installed and commands run:
See also:
Cheese (webcam) works after the fix indicated in this page.
Suspending to RAM & Hibernating are disabled by default, but it is proven to work in this computer using TuxOnIce kernel, at least, after the Nvidia X Server settings binary driver has been installed. With the default Nouvau driver, I could never make suspend nor hibernate work.
Improve Battery life & performance with:
http://www.noobslab.com/2013/10/enable-laptop-mode-and-other-tweaks-to.html
Optionally:
1.2.9. 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
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:
Alternatively, if the previous doesn't work for some reason, you can edit this file:
Search for the sections related to "hibernate", and set ResultActive=no to ResultActive=yes
1.2.10. 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
Source:
- http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
- http://www.ubuntu-guia.com/2012/04/instalar-oracle-java-7-en-ubuntu-1204.html
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):
Source http://www.ubuntuupdates.org/ppa/flexiondotorg_java_?dist=precise
1.2.11. Change the Java used by default
If you need to change the Java used by default, between OpenJDK & Sun/Oracle JRE, you must run:
Then you can choose among the installed versions:
1.2.12. 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.
Solutions?
- Stick with Chrome 34
- You can download Chrome 34 for GNU/Linux here:
http://mirror.pcbeta.com/google/chrome/deb/pool/main/g/google-chrome-stable/
- You can download Chrome 34 for GNU/Linux here:
- Use Firefox instead.
More information:
http://code.google.com/p/chromium/issues/detail?id=375909
1.2.13. 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.
For more information, see:
http://www.maartenbaert.be/simplescreenrecorder/
See also Screencasts
1.2.14. Upgrade Apache to 2.4 and php to 5.5
For Tiki13+, you need php5.5, which requires Apache 2.4. Therefore you need to ensure that you have added two new repositories that didn't come along ith ubuntu 12.04 by default:
In addition, if you had previous websites at the document root /var/www, you need to change the default document root in your new installation to keep using the same base folder:
And restart apache:
1.3. Install flash player
1.3.1. 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: http://get.adobe.com/reader/otherversions/
For instance, this version: AdbeRdr9.5.5-1_i386linux_enu.deb
For 32-bit system:
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.
1.3.2. 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:
- "PDF Edit" (FLOSS, but apparently undocumented for Ubuntu 14.04)
http://sharadchhetri.com/2013/12/29/install-pdfedit-for-editing-pdf-file-in-ubuntu/ - "Master pdf editor"
http://www.webupd8.org/2014/02/modify-pdf-files-in-linux-with-master.html
(http://code-industry.net/free-pdf-editor.php)
1.4. Backups
There are several options to create backups, mainly differing in the OS in which each program runs. Some nice options are the ones that run on a Live CD. Some of the more interesting ones:
Live CD:
- REDO Live CD (GUI of partclone).
http://redobackup.org-
That's the one I'm using to do some backups of the whole computer (partitions, mbr, etc) along the tri-boot setup (to avoid starting from zero if something fails at the end, or later on).
-
- Clonezilla Live CD
http://clonezilla.org
(text UI for partimage and others). It's the one I used at work to clone the dual-boot laptop, storing only sectors with information, and not the whole disk. Unluckily, it doesn't work on my Macbookpro (it's dreadfully slow, and never finished booting up, after 30 minutes...) - Mondo Rescue Live CD.
http://www.mondorescue.org
We didn't use it (it's more than just a cloning disk, but a free disaster recovery software.
GNU/Linux:
- Backintime, using rsync.
http://backintime.le-web.org
Like the well known "Time Machine" from Mac OSX, but open sourced and for GNU/Linux. - Luckybackup
http://luckybackup.sf.net
GUI to master all rsync power.
MacOSX:
- Time Machine. Included in MacOSX
- CarboncopyCloner (freeware). http://www.bombich.com
1.5. Add Mate desktop
Add the Ubuntu MATE PPAs and install the desktop.
See: https://ubuntu-mate.org/blog/2014-08-ubuntu-mate-14-04-from-scratch/
1.6. Older tips
1.6.1. Increase battery life
1.6.1.1. Jupiter
Jupiter is a light weight power and hardware control applet for Linux. It is designed to improve battery life of a portable Linux computer by integrating with the operating system and changing parameters of the computer based on battery or powered connection
http://www.ubuntugeek.com/jupiter-light-weight-power-and-hardware-control-applet.html
1.6.1.2. TLP
TLP brings you the benefits of advanced power management for Linux without the need to understand every technical detail. TLP comes with a default configuration already optimized for battery life, so you may just install and forget it. Nevertheless TLP is highly customizable to fulfill your specific requirements.
http://www.webupd8.org/2013/04/improve-power-usage-battery-life-in.html
http://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
1.6.2. Use Lightum to use a daemon
(it doesn't seem to work with xfce out of the box)
https://github.com/poliva/lightum#lightum---macbook-automatic-light-sensor-daemon
1.6.3. Pair with the Apple Bluetooth Keyboard
See:
http://askubuntu.com/questions/671456/ubuntu-15-04-cant-pair-apple-bluetooth-keyboard
Unsuccessful for me, so far
And trying also this one:
http://www.ubuntuleon.com/2012/12/conecta-tu-teclado-apple-wireless.html
1.6.4. reset keyboard backlight manually
1.6.5. NVidia Powermizer tweaks
See:
http://www.recipesforlinux.com/2011/06/16/problemas-con-nvidia-powermizer-en-ubuntu/
and
http://www.recipesforlinux.com/2010/01/16/fix-problem-nvidia-geforce-965m-gt-crash-ubuntu-karmic/
Other potential things to test:
Nvidiabl:
1.6.6. Re-enable hibernate in xfce panels
See http://www.bio.brandeis.edu/~shaikh/linux/suspend.htm
Content to add:
1.6.7. Solve gpg issues with BAD SIG
From: http://askubuntu.com/questions/127326/how-to-fix-missing-gpg-keys
For Ubuntu 12.04 Precise: Permanent solution
to this error message occurring after adding a new repository and updating repository list. This is due to a server which address is no more valid. So just change the address to a good one.
Open the file ~/.gnupg/gpg.conf with a text editor.
then, in this file, find the following bold line (116th line) (which should be default as follow):
then add the following bold line, to finally give the following result:
(add # to the second line as follow to comment out the old address)
Save the file
In terminal:
1.7. R packages
Some
R packages usually useful or needed, for things like PluginR or other needs.
1.8. Cron
Edited crontab for root to have weekly backups of critical files and folders in the computer.
1.8.1. root user
Custom backups run with a clone of this backup script:
https://gitlab.com/xavidp/bashscripts/blob/master/backup_manual_pc_anon.sh
Run the backup script in Wednesdays at 12:00h.
1.8.2. standard user
And the cron for the standard user (xavi , in my case) is this one below, set through Backintime GUI to backup daily my email data in a usbdisk:
Run the backup script in day at 11:00h.
# Pending
Pending to test some new tricks described here:
http://www.webupd8.org/2014/04/10-things-to-do-after-installing-ubuntu.html
Alias names for this page:
PenguinBookPro