KPhotoAlbum on Knoppix: Difference between revisions

From KDE UserBase Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Whenever I carry some of my photos on CDs to friends of mine, I wish I could use KPA to pick specific photos. Unfortunately most of my friends use Windows, so KPA won't work there.
{{Proposed deletion|reason=Is this still relevant or should it be archived? If relevant the page should be updated}}


While Linux live-CDs (like Knoppix) make it possible to boot Linux from CD/DVD, I know of no version containing KPA.
<languages />
<translate>
<!--T:1-->
__TOC__


This Wiki page describes a way to have KPA available using Knoppix and how to create it yourself, to adapt it to other live-CD/DVD systems.
<!--T:24-->
{{KDE3}}</translate><translate>
<!--T:22-->
Whenever I carry some of my photos on CDs to friends of mine, I wish I could use '''KPhotoAlbum''' to pick specific photos. Unfortunately most of my friends use Windows, so '''KPhotoAlbum''' won't be available to me.


==Basis of the image==
<!--T:2-->
Newer Knoppix versions have a feature to create a image file (e.g. on memory stick) and mount this &quot;on top&quot; of the CD/DVD image. (UnionFS) This makes it possible to add additional software to the packages coming with the CD/DVD. (Without the need to install anything on the computer Knoppix runs on)
While Linux Live-CDs (like Knoppix) make it possible to boot Linux from CD/DVD, I know of no version containing '''KPhotoAlbum'''.


I have created a image for Knoppix (5.2) containing KPA 3.0.2 and the missing dependencies. I used the Knoppix DVD which came with Herman CT magazine 7/2007. I hope it also works for other versions as well.
<!--T:3-->
This Wiki page describes a way to have '''KPhotoAlbum''' available using Knoppix and how to create it yourself, to adapt it to other live-CD/DVD systems.


== Usage of available image file ==
==Basis of the image== <!--T:4-->


<!--T:5-->
Newer Knoppix versions have a feature to create a image file (e.g. on memory stick) and mount this "on top" of the CD/DVD image. ('''UnionFS''') This makes it possible to add additional software to the packages coming with the CD/DVD. (Without the need to install anything on the computer Knoppix runs on)
<!--T:23-->
<!--
I have created a image for Knoppix (5.2) containing '''KPhotoAlbum 3.0.2''' and the missing dependencies. I used the Knoppix DVD which came with Herman CT magazine 7/2007. I hope it also works for other versions as well.
== Usage of available image file == <!--T:7-->
<!--T:8-->
* Get the (compressed) image from [http://www.majo.name/knoppix.img.bz2 my homepage]: (35 MByte)
* Get the (compressed) image from [http://www.majo.name/knoppix.img.bz2 my homepage]: (35 MByte)
* uncompress the image:  
* uncompress the image: {{Input|1=bunzip2 knoppix.img.bz2}}
'''bunzip2 knoppix.img.bz2'''
* copy the resulting image-file to the root-directory of one partition available to Knoppix later on. (I put it on my memory stick). Knoppix searches all root directories of all partitions it finds on boot for a file named '''knoppix.img''')
* copy the resulting image-file to the root-directory of one partition available to knoppix later on. (I put it on my memory stick). Knoppix searches all root directories of all partitions it finds on boot for a file named knoppix.img)
* Boot from the Knoppix CD/DVD
* Boot from the Knoppix CD/DVD
* On boot, Knoppix will ask whether to mount the image it found. The default is ''not'' to mount it, so you most agree to this. (The mounting is a potential security risk, because you now rely on the contents not being malicious; If you want to have a look &quot;inside&quot; the image file, have a look at &quot;do-it-yourself&quot; later on)
* On boot, Knoppix will ask whether to mount the image it found. The default is "not" to mount it, so you must agree to this. (The mounting is a potential security risk, because you now rely on the contents not being malicious; If you want to have a look "inside" the image file, have a look at "do-it-yourself" later on)
* After log in, you now can start KPA from the command line. Because it is installed as /usr/bin/kphotoalbum, it should be on the path.
* After log in, you now can start KPhotoAlbum from the command line. Because it is installed as /usr/bin/kphotoalbum, it should be on the path.
* Enjoy ! There should be all features present (EXIF-DB, kipi-plugins, translations, video) *except* the video preview; sorry I didn&#039;t find, what it takes to get this to work. All tips welcome.
* Enjoy ! There should be all features present (EXIF-DB, kipi-plugins, translations, video) *except* the video preview; sorry I didn't find, what it takes to get this to work. All tips welcome.-->


== Do-it-yourself ==
== Do-it-yourself == <!--T:9-->


=== How to look &quot;inside&quot; the image file ===
=== How to look "inside" the image file === <!--T:10-->


<!--T:11-->
(Assuming here, /tmpmnt is a directory)
(Assuming here, /tmpmnt is a directory)
'''sudo mount -o loop -t ext2 knoppix.img  /tmpmnt'''
{{Input|1=sudo mount -o loop -t ext2 knoppix.img  /tmpmnt}}
This will mount the image on /tmpmnt. You now can look inside the image. You will find dirs like /etc/network/if-up.d/ (and many more) beside the obvious KPA files. These results from activities of Knoppix, which changed these files, so they ended up in the image too. I tried to get rid of these, but this always destroyed the image. (Tips here also welcome)
This will mount the image on /tmpmnt. You now can look inside the image. You will find dirs like /etc/network/if-up.d/ (and many more) beside the obvious '''KPhotoAlbum''' files. These result from activities of Knoppix, which changed these files, so they ended up in the image too. I tried to get rid of these, but this always destroyed the image. (Tips here also welcome)


== Creating your own image file from scratch ==
== Creating your own image file from scratch == <!--T:12-->
 
<!--T:13-->
I installed mostly from source, because I already had those available. The alternative would be to download most things as installable package, e.g. .deb for Knoppix.
I installed mostly from source, because I already had those available. The alternative would be to download most things as installable package, e.g. .deb for Knoppix.


=== Get the needed files ===
=== Get the needed files === <!--T:14-->
 
<!--T:15-->
Get the files and save them on a partition later available on Knoppix. What you need may differ, depending on the version you are using and if you are using a CD or DVD version. I assume that you are familiar with the usual way to compile and install configure-based open source SW.
Get the files and save them on a partition later available on Knoppix. What you need may differ, depending on the version you are using and if you are using a CD or DVD version. I assume that you are familiar with the usual way to compile and install configure-based open source SW.
* [http://www.sqlite.org/sqlite-2.8.16.tar.gz sqlite-2.8.16 ]
* [http://www.sqlite.org/sqlite-2.8.16.tar.gz sqlite-2.8.16 ]
* [http://packages.debian.org/stable/libs/libqt3-mt-sqlite libqt3-mt-sqlite_3.3.7-4_i386.deb ]
* [http://packages.debian.org/stable/libs/libqt3-mt-sqlite libqt3-mt-sqlite_3.3.7-4_i386.deb ]
For the following see the KPA homepage
For the following see the KPhotoAlbum homepage
*exiv2
* exiv2
*libkexif
* libkexif
*libkexiv2
* libkexiv2
*libkipi
* libkipi
*kipi-plugins
* kipi-plugins
*kphotoalbum
* kphotoalbum


=== Create an image file ===
=== Create an image file === <!--T:16-->
 
<!--T:17-->
(The exact steps depend on your Knoppix version. My description here is based on Knoppix 5.2. The titles are back-translated from my German version)
(The exact steps depend on your Knoppix version. My description here is based on Knoppix 5.2. The titles are back-translated from my German version)
* Boot the Knoppix CD/DVD
* Boot the Knoppix CD/DVD
* On the KDE desktop click the penguin icon on the KDE bar (second left after the K-icon)
* On the KDE desktop click the penguin icon on the KDE bar (second left after the K-icon)
* Choose &quot;Configuration/Install permanent Knoppix-image&quot;
* Choose <menuchoice>Configuration ->Install permanent Knoppix-image</menuchoice>
* Confirm message
* Confirm message
* Choose the partition, the image will be created on
* Choose the partition, the image will be created on
* Answer the question for encryption with no.
* Answer the question for encryption with "No".
* Enter size for the image (you&#039;ll need approximately something between 60 and 70 Mbyte; so 70 MByte seems good) Note: The image now gets created, but not mounted, until the next reboot.
* Enter size for the image (you'll need approximately something between 60 and 70 Mbyte; so 70 MByte seems good) Note: The image now gets created, but not mounted, until the next reboot.
 
=== Installing KPhotoAlbum in the image file === <!--T:18-->


=== Installing KPA in the image file ===
<!--T:19-->
* Reboot the knoppix CD/DVD and confirm the mounting of the image file.
* Reboot the Knoppix CD/DVD and confirm the mounting of the image file.
* Compile and install sqlite
* Compile and install '''sqlite'''
* Install libqt3-mt-sqlite_3.3.7-4_i386.deb using  
* Install '''libqt3-mt-sqlite'''_3.3.7-4_i386.deb using  
'''dpkg -i libqt3-mt-sqlite_3.3.7-4_i386.deb'''
{{Input|1=dpkg -i libqt3-mt-sqlite_3.3.7-4_i386.deb}}
* Install the remaining packages in the order
* Install the remaining packages in the order
** exiv2
** exiv2
Line 67: Line 92:
** kphotoalbum
** kphotoalbum


Now KPA should be working and installed in the image. (You might need additional packages, depending on your version)  Next time just the image file is needed, as described above.
<!--T:20-->
Now '''KPhotoAlbum''' should be working and installed in the image. (You might need additional packages, depending on your version)  Next time just the image file is needed, as described above.


<!--T:21-->
[[Category:Graphics]]
[[Category:Graphics]]
[[Category:KDE3]] <!-- Do not include the KDE3 category in translations! -->
</translate>

Latest revision as of 07:50, 27 February 2024

Proposed for Deletion

This page has been proposed for deletion for the following reason:

Is this still relevant or should it be archived? If relevant the page should be updated

Please use the discussion section of this page to voice your opinion on this.



Whenever I carry some of my photos on CDs to friends of mine, I wish I could use KPhotoAlbum to pick specific photos. Unfortunately most of my friends use Windows, so KPhotoAlbum won't be available to me.

While Linux Live-CDs (like Knoppix) make it possible to boot Linux from CD/DVD, I know of no version containing KPhotoAlbum.

This Wiki page describes a way to have KPhotoAlbum available using Knoppix and how to create it yourself, to adapt it to other live-CD/DVD systems.

Basis of the image

Newer Knoppix versions have a feature to create a image file (e.g. on memory stick) and mount this "on top" of the CD/DVD image. (UnionFS) This makes it possible to add additional software to the packages coming with the CD/DVD. (Without the need to install anything on the computer Knoppix runs on)


Do-it-yourself

How to look "inside" the image file

(Assuming here, /tmpmnt is a directory)

sudo mount -o loop -t ext2 knoppix.img  /tmpmnt

This will mount the image on /tmpmnt. You now can look inside the image. You will find dirs like /etc/network/if-up.d/ (and many more) beside the obvious KPhotoAlbum files. These result from activities of Knoppix, which changed these files, so they ended up in the image too. I tried to get rid of these, but this always destroyed the image. (Tips here also welcome)

Creating your own image file from scratch

I installed mostly from source, because I already had those available. The alternative would be to download most things as installable package, e.g. .deb for Knoppix.

Get the needed files

Get the files and save them on a partition later available on Knoppix. What you need may differ, depending on the version you are using and if you are using a CD or DVD version. I assume that you are familiar with the usual way to compile and install configure-based open source SW.

For the following see the KPhotoAlbum homepage

  • exiv2
  • libkexif
  • libkexiv2
  • libkipi
  • kipi-plugins
  • kphotoalbum

Create an image file

(The exact steps depend on your Knoppix version. My description here is based on Knoppix 5.2. The titles are back-translated from my German version)

  • Boot the Knoppix CD/DVD
  • On the KDE desktop click the penguin icon on the KDE bar (second left after the K-icon)
  • Choose Configuration ->Install permanent Knoppix-image
  • Confirm message
  • Choose the partition, the image will be created on
  • Answer the question for encryption with "No".
  • Enter size for the image (you'll need approximately something between 60 and 70 Mbyte; so 70 MByte seems good) Note: The image now gets created, but not mounted, until the next reboot.

Installing KPhotoAlbum in the image file

  • Reboot the Knoppix CD/DVD and confirm the mounting of the image file.
  • Compile and install sqlite
  • Install libqt3-mt-sqlite_3.3.7-4_i386.deb using
dpkg -i libqt3-mt-sqlite_3.3.7-4_i386.deb
  • Install the remaining packages in the order
    • exiv2
    • libkexif
    • libkexiv2
    • libkipi
    • kipi-plugins
    • kphotoalbum

Now KPhotoAlbum should be working and installed in the image. (You might need additional packages, depending on your version) Next time just the image file is needed, as described above.