TurnKey Linux Virtual Appliance Library

TurnKey-based XMail Server

Hi people,

I appreciate very much your work! It's better than our at http://virtualappliance.manthys.it... ;-)

So we decided to turn our project to Open virtual appliances based on TurnKey Core and try to collaborate with this community.

Our first work has been XMail Server (XMail Server 1.25 + PHPXMail 1.5 + Uebimiau 2.7.2). It has been build as a VMware Virtual Machine and you can download it from http://www.megaupload.com/?d=S1W7XCTE

I hope it can join to the TurnKey Virtual Appliance's family.

Thanks

Andrea

 

Alon Swartz's picture

Firstly, welcome! It's great to...

Firstly, welcome! It's great to have you guys part of the community.

If you haven't already, take a look at the community development page, and TKLPatch - a simple appliance customization mechanism. Sharing patches with the community will help accelerate development and simplify the process of adding it to the TurnKey library.

Once an appliance is added to the project, we assume the burden of maintaining it at the appliance level with regular updates. This frees you to focus on more interesting tasks (e.g., improving quality of integration, software sub-components).

Looking forward in collaborating with you guys!

Develop a correct patch

hi Guys,

i'm a colleague of Andrea, with him i attempt to develop the tklpatch for xmail,  but i have a problem.

i have create this structure like the guideline of your documentation of tklpatch:

conf

/overlay/some-files-to-be-copied-in-file-system

i have compressed the entire structure, at the first like a xmail.tar  and then xmail.tar.gz.

Then i have take a new "tkl core Ubuntu VM" and i have transfered the xmail.tar.gz on that machine.

After i have installed on that machine:  tklpatch program with "apt-get install" and then i have launched this command "tklpatch-apply / xmail.tar.gz" and i have this error:

"TKLPATCH_ISOLABEL: xmail

#extracting patch xmail.tar.gz to /tmp/tmp.MIaPFg4514

fatal: no such directory: /tmp/tmp.MIaPFg4514"

can you help me?

thks

Gabriele

Alon Swartz's picture

Bugfixed tklpatch to support applying patches to running system

Firstly, welcome Gabriele. You should create an account so you get email updates when threads that interest you are updated.

You don't need to tar and gzip your patches, just use the tklpatch-bundle command.
tklpatch-bundle path/to/patch-dir
Your question prompted me to test patching a running system and I found a couple of bugs, so I just released v0.93 (github and package archive). Note that applying patches to a running system is possible, but not the primary use case of tklpatch, so you need to make sure the running system is configured according to the tklpatch expected state.

For example, before applying the example drupal5 patch in an installed LAMP appliance, I had to:
mysql-admin --user=root --password=PASSWORD_SET_DURING_INSTALL password ""
/etc/init.d/mysql stop
/etc/init.d/apache2 stop
tklpatch-apply / drupal5.tar.gz
Putting the above aside, it looks like the error message you received is unrelated, so if you could prepend TKLPATCH_DEBUG=y to tklpatch-apply / patch.tar.gz it might help in figuring out what went wrong.

thanks Alon

Alon, thanks very much.

The problem that i have with the command "tklpatch-apply" is solved with your new release of the program.

how you did, yesterday, i have take a test with your drupal5 example, and i had a problem too. Now with new release i don't have.

But i have another problem, when i install xmail with "apt-get" command, i have an error and the tklpatch-apply exit of the script and it's not execute the next commands in the "conf" file.

So i know this error depending on an error about xmail automatic installation, but i have found a solution to correct the installation: indeed i  need to copy some file at the end of the xmail installation to resolve that.

So do you know if there is a method to force the execution of the conf script if also there is an error on apt-get execution?

 

thanks

Gabriele

Alon Swartz's picture

Its best to preseed

Glad the latest version is working for you.

If a package installation fails, apt-get will return a failed exit code and therefore the conf script will exit (due to #!/bin/bash -e). Just for sake of argument, what you are asking for is something like this:
apt-get install package || true
But, DON'T DO THAT. It's bad practice and will get you in trouble later on.
The correct way is to preseed the package before installing it, take a look at some notes I made about pre-seeding here.

Hope that helps.
Alon Swartz's picture

New TKLPatch section on development wiki

I have created a new section in the development wiki for TKLPatches, and have added this patch to the list. Feel free to update the patch page as you see fit.

Eureka

Finally  i have the patch.

I had several problems to solve but finally i have develop it.

See the attach in a new post:www.turnkeylinux.org/forum/general/20100226/tklpatch-xmailuebimiauphpxmail; i did test it and it work without error.

thanks for your support, i will not succed if you don't help me first! ^^

bye

Gabriele

 

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)