Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Friday, December 6, 2013

Installing Kubuntu 13.10 on MacBook Pro 13'' late-2013 from USB stick

I was given a MacBook Pro 13'' late-2013 at my work, and I decided to install Kubuntu 13.10 on it. After much fiddling I managed to do it and here is the procedure.

1. I followed this guide to create a bootable installation USB stick with Kubuntu 13.10 for the MacBook:

  • downloaded file kubuntu-13.10-desktop-amd64.iso to the Mac
  • opened the terminal and changed to Downloads directory
  • converted the iso image to dmg format:
    $ hdiutil convert kubuntu-13.10-desktop-amd64.iso -format UDRW -o kubuntu
  • inserted the USB stick into the Mac and unmounted it:
    $ diskutil unmountDisk /dev/disk1
  • Written the dmg image to the USB stick:
    sudo dd if=kubuntu.dmg of=/dev/rdisk1 bs=1m
2. Opened Disk Utility to shrink the main partition in order to make space for Kubuntu.

3. Restarted the Mac and hold Alt key to boot from USB -- the rightmost option.

4. Booted the Kubuntu installation disk and installed it as usual creating these partitions:
  • 8000 MB for swap (/dev/sda4)
  • the remaining space went for the root partition (/dev/sda5)
  • pointed grub to be installed on /dev/sda5
At the end of installation the installation master "crashed" with message: “Failed to install grub-efi to /target/ the system will not boot”.

5. Opened Konsole in Kubuntu, being connected to the Internet via USB-RJ45 connector installed and ran Boot-repair:
$ sudo add-apt-repository ppa:yannubuntu/boot-repair
$ sudo apt-get update
$ sudo apt-get install boot-repair
$ boot-repair
6. Started Recommended repair. It said it failed. Ignored this message.

7. Restarted the Mac and booted to MacOs. Installed rEFIt 0.14.

8. Restarted the Mac again holding Alt. Saw rEFIt option, selected it, saw Ubuntu among the options, selected it and successfully booted Kubuntu.

9. Because rEFIt sees 4 Ubuntu options to boot, in Konsole I did:
$ cd /boot/efi/EFI
$ sudo rm -rf kubuntu
Thus I deleted the unbootable EFI options created by Kubuntu installer. The other bootable "ubuntu" options were created by boot-repair.

10. The wireless card driver was not installed. Started Jockey and installed proprietary Broadcom driver. Now I had Wi-Fi working.

That's all!

Wednesday, September 7, 2011

Installing PyQt4 for Python3 on Ubuntu

Today i wanted to use PyQt4 with Python 3 on my Kubuntu machine.
Here i log my actions.

Install packages needed for compiling (i am not sure these are all needed):
sudo apt-get install build-essential python3-dev libqt4-dev

Download sources of the latest SIP - sip-4.12.4.tar.gz (Linux, UNIX, MacOS/X source).
Unpack them and enter the directory:
vic@wic:~/Desktop/sip-4.12.4$ python3 configure.py 
This is SIP 4.12.4 for Python 3.2 on linux2.
The SIP code generator will be installed in /usr/bin.
...
Creating sip module Makefile...
vic@wic:~/Desktop/sip-4.12.4$ make
make[1]: Entering directory `/home/vic/Desktop/sip-4.12.4/sipgen'
...
make[1]: Leaving directory `/home/vic/Desktop/sip-4.12.4/siplib'
vic@wic:~/Desktop/sip-4.12.4$ sudo make install
make[1]: Entering directory `/home/vic/Desktop/sip-4.12.4/sipgen'
...
cp -f /home/vic/Desktop/sip-4.12.4/sipdistutils.py /usr/lib/python3/dist-packages/sipdistutils.py
vic@wic:~/Desktop/sip-4.12.4$

Download the sources of the latest PyQt - PyQt-x11-gpl-4.8.5.tar.gz (Linux, UNIX source), and install it:
vic@wic:~/Desktop/PyQt-x11-gpl-4.8.5$ python3 configure.py 
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.8.5 (licensed under the GNU General Public License) for Python 3.2 on linux2.

Type '2' to view the GPL v2 license.
Type '3' to view the GPL v3 license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
Do you accept the terms of the license? yes
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
...
Checking to see if the dbus support module should be built...
The Python dbus module doesn't seem to be installed.
Qt v4.7.2 free edition is being used.
SIP 4.12.4 is being used.
The Qt header files are in /usr/include/qt4.
...
Creating pyqtconfig.py...
vic@wic:~/Desktop/PyQt-x11-gpl-4.8.5$ make
make[1]: Entering directory `/home/vic/Desktop/PyQt-x11-gpl-4.8.5/qpy'
...
make[1]: Leaving directory `/home/vic/Desktop/PyQt-x11-gpl-4.8.5/designer'
vic@wic:~/Desktop/PyQt-x11-gpl-4.8.5$ sudo make install
make[1]: Entering directory `/home/vic/Desktop/PyQt-x11-gpl-4.8.5/qpy'
...
cp -f PyQt4.api /usr/share/qt4/qsci/api/python/PyQt4.api
vic@wic:~/Desktop/PyQt-x11-gpl-4.8.5$

Notice, that i am launching python3 instead of python.

That's all, i think.