Difference between revisions of "UbuntuPorting"
(added known bugs and removed Architecture differences as they should be taken care of in the install files.) |
(Updated to current status of project) |
||
Line 2: | Line 2: | ||
=Current state= | =Current state= | ||
− | We just started porting Amahi to Ubuntu. The support is highly experimental. There are a few important things to be fixed before you can run it with minimal tweaking. Please don't try it on a production server yet. We are using Ubuntu | + | We just started porting Amahi to Ubuntu. The support is highly experimental. There are a few important things to be fixed before you can run it with minimal tweaking. Please don't try it on a production server yet. We are using Ubuntu 10.04 LTS (Lucid) Desktop 32 bit for development. We strongly recommend you to use the same for experiments. You can download this version from [http://www.ubuntu.com/getubuntu/download here]. |
=Requirements= | =Requirements= | ||
You may want to have two different installations of Ubuntu. | You may want to have two different installations of Ubuntu. | ||
− | * A development platform, running Ubuntu | + | * A development platform, running Ubuntu 10.04 LTS Desktop 32 bit and/or 64 bit with the recommended development packages installed. |
− | * An Amahi sandbox, running Ubuntu | + | * An Amahi sandbox, running Ubuntu 10.04 LTS Desktop 32 bit '''preferably''' under [http://www.virtualbox.org/ VirtualBox]. |
Please don't install the Amahi packages on the development platform as this might break your networking. | Please don't install the Amahi packages on the development platform as this might break your networking. | ||
Line 24: | Line 24: | ||
=Setting up the Amahi sandbox= | =Setting up the Amahi sandbox= | ||
# Install [http://www.virtualbox.org/ Sun VirtualBox]. # sudo aptitude install virtualbox-ose | # Install [http://www.virtualbox.org/ Sun VirtualBox]. # sudo aptitude install virtualbox-ose | ||
− | # Open VirtualBox and create a new guest platform for Ubuntu and install Ubuntu | + | # Open VirtualBox and create a new guest platform for Ubuntu and install Ubuntu 10.04 LTS Desktop 32 bit. |
− | # Install VirtualBox guest additions in your Amahi sandbox. | + | # Install VirtualBox guest additions in your Amahi sandbox. # sudo apt-get install virtualbox-ose-guest-utils (do this inside your virtual machine!) |
# Setup VirtualBox folder sharing between your development platform and Amahi sandbox. | # Setup VirtualBox folder sharing between your development platform and Amahi sandbox. | ||
Line 79: | Line 79: | ||
=Architecture differences= | =Architecture differences= | ||
+ | *No /etc/sysconfig folder. Instead, configuration is scattered all over the place. | ||
+ | *Requires copying the functions library required by several shellscripts (but works fine) | ||
=Post install gotchas (asp's notes)= | =Post install gotchas (asp's notes)= | ||
Line 85: | Line 87: | ||
*Debian control script for platform may be missing some dependencies. [http://bugs.amahi.org/issues/show/487 bug 487] | *Debian control script for platform may be missing some dependencies. [http://bugs.amahi.org/issues/show/487 bug 487] | ||
*Passenger does not install see Considerations [http://bugs.amahi.org/issues/show/483 bug 483] | *Passenger does not install see Considerations [http://bugs.amahi.org/issues/show/483 bug 483] | ||
− | *HDACTL init scripts do not work [http://bugs.amahi.org/issues/show/484 bug 484] | + | *<s>HDACTL init scripts do not work [http://bugs.amahi.org/issues/show/484 bug 484]</s> Some do work under Fedora formatting (interesting!). amahi-installer script needs work to run. |
=Considerations= | =Considerations= | ||
− | + | *<s>Apache mod_passenger</s> This has been implemented in the installer since it is now in the default repositories. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''This page is being edited actively and a lot of sections are missing currently''' | '''This page is being edited actively and a lot of sections are missing currently''' |
Revision as of 23:13, 24 May 2010
This page is being edited actively and a lot of sections are missing currently
Contents
Current state
We just started porting Amahi to Ubuntu. The support is highly experimental. There are a few important things to be fixed before you can run it with minimal tweaking. Please don't try it on a production server yet. We are using Ubuntu 10.04 LTS (Lucid) Desktop 32 bit for development. We strongly recommend you to use the same for experiments. You can download this version from here.
Requirements
You may want to have two different installations of Ubuntu.
- A development platform, running Ubuntu 10.04 LTS Desktop 32 bit and/or 64 bit with the recommended development packages installed.
- An Amahi sandbox, running Ubuntu 10.04 LTS Desktop 32 bit preferably under VirtualBox.
Please don't install the Amahi packages on the development platform as this might break your networking.
Setting up the development platform
- Install Ubuntu 9.04 Desktop 32 bit.
- Install essential build toolchain.
- sudo apt-get update
- sudo apt-get install build-essential
- sudo apt-get install devscripts
- sudo apt-get install debhelper
- sudo apt-get install fakeroot
- sudo apt-get install lintian
- Install git. # sudo aptitude install git-core
- Read Ubuntu packaging guide to get an idea of other additional packages that you may want to install to create Ubuntu packages. I will list the packages to make your part easier at a later point.
Setting up the Amahi sandbox
- Install Sun VirtualBox. # sudo aptitude install virtualbox-ose
- Open VirtualBox and create a new guest platform for Ubuntu and install Ubuntu 10.04 LTS Desktop 32 bit.
- Install VirtualBox guest additions in your Amahi sandbox. # sudo apt-get install virtualbox-ose-guest-utils (do this inside your virtual machine!)
- Setup VirtualBox folder sharing between your development platform and Amahi sandbox.
Amahi source code
On your development platform, download Amahi source code from our git repository. Follow these steps to build Ubuntu packages.
Update Changelog
1. If you are repackaging for a newhttp://bugs.amahi.org/issues/show/487 version Run dch -v with the version number currently in the makefile. Where you run the command depends on if you are changing hdactl or hda-platform.
# cd deb/ubuntu/karmic/hdactl OR # cd deb/ubuntu/karmic/hda-platform
# dch -v <version number>
Add the changes that you made to the system. If you are just updating for a new version state so.
If you are not changing the version number run dch -a. Where you run the command depends on if you are changing hdactl or hda-platform. # cd deb/ubuntu/karmic/hdactl OR # cd deb/ubuntu/karmic/hda-platform
# dch -a
NOTE: If you are just building a .deb for your own testing you can just run make deb or continue to step 2.
2. To build hdactl package, change to 'platform/hdactl' directory and
run 'make deb'.
# cd platform/hdactl # rm -rf hdactl-hup # rm -rf platform/hdactl/release # make deb
NOTE: The removing of hdactl-hup is only needed if it is present.
You will find the .deb file generated under platform/hdactl/release directory. NOTE: For ease of use use gdebi to install.
3. To build hda-platform package, change to 'platform/platform' directory and
run 'make deb'.
# cd platform/platform # make deb
You will find the .deb file generated under platform/platform/release directory.
Architecture differences
- No /etc/sysconfig folder. Instead, configuration is scattered all over the place.
- Requires copying the functions library required by several shellscripts (but works fine)
Post install gotchas (asp's notes)
Known Bugs
- Debian control script for platform may be missing some dependencies. bug 487
- Passenger does not install see Considerations bug 483
HDACTL init scripts do not work bug 484Some do work under Fedora formatting (interesting!). amahi-installer script needs work to run.
Considerations
Apache mod_passengerThis has been implemented in the installer since it is now in the default repositories.
This page is being edited actively and a lot of sections are missing currently