个人工具

“UbuntuHelp:BookSmart”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第6行: 第6行:
 
Website: http://www.blurb.com/
 
Website: http://www.blurb.com/
 
== Installation Instructions ==
 
== Installation Instructions ==
These instructions are heavily based on the hard work done by Blurb forum member [http://www.blurb.com/user/clecuret Cedric Lecuret]. His original instructions are [http://sites.google.com/site/leucblog/Home/booksmart--linux here].
+
These instructions are heavily based on the hard work done by Blurb forum member [[http://www.blurb.com/user/clecuret|Cedric Lecuret]]. His original instructions are [[http://sites.google.com/site/leucblog/Home/booksmart--linux|here]].
 
=== Download and mount install disc ===
 
=== Download and mount install disc ===
Firstly, download the latest version of BookSmart from [http://www.blurb.com/ here]. Make sure you get the Mac version, not the Windows version. Alternatively, download it from the command line. The following will get v2.5.1, which may not be the latest version so check first:
+
Firstly, download the latest version of BookSmart from [[http://www.blurb.com/|here]]. Make sure you get the Mac version, not the Windows version. Alternatively, download it from the command line. The following will get v2.5.1, which may not be the latest version so check first:
<code><nowiki>wget http://downloads.blurb.com/booksmart/BookSmart_2.5.1.dmg</nowiki></code> Updated 2009-10-2
+
<code><nowiki>wget http://downloads.blurb.com/booksmart/BookSmart_2.5.1.dmg</nowiki></code>
Now install some software to convert the DMG file into something that Linux can mount, such as dmg2img. Follow these [[UbuntuHelp:DMG2IMG|DMG2IMG]] instructions. Then, convert the file using:
+
Now install some software to convert the DMG file into something that Linux can mount, such as dmg2img. Follow these [[DMG2IMG]] instructions. Then, convert the file using:
<code><nowiki>dmg2img BookSmart_2.0.2.dmg</nowiki></code>
+
<code><nowiki>dmg2img BookSmart_2.5.1.dmg</nowiki></code>
Next mount the disc image:
+
Next mount the disc image (Karmic seems to have HFS module loaded by default. If not, "sudo modprobe hfsplus"):
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo mkdir /macbooksmart
 
sudo mkdir /macbooksmart
sudo modprobe hfsplus
+
sudo mount -t hfsplus -o loop BookSmart_2.5.1.img /macbooksmart
sudo mount -t hfsplus -o loop BookSmart_2.0.2.img /macbooksmart
+
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Install files ===
 
=== Install files ===
第25行: 第24行:
 
sudo cp -r /macbooksmart/BookSmart.app/Contents/Resources/Java/resources/ /usr/lib/booksmart/  
 
sudo cp -r /macbooksmart/BookSmart.app/Contents/Resources/Java/resources/ /usr/lib/booksmart/  
 
</nowiki></pre>
 
</nowiki></pre>
The 1.9.9 Mac version of BookSmart will only run under Java 1.5, so make sure that is installed:
+
The 2.5.1 Mac version of BookSmart seems to run okay under Java 1.6 - previous versions needed 1.5. Make sure 1.6 is installed:
<code><nowiki>sudo apt-get install sun-java5-jre</nowiki></code>
+
<code><nowiki>sudo apt-get install sun-java6-jre</nowiki></code>
 
=== Create startup script ===
 
=== Create startup script ===
 
Create a script that can start BookSmart:
 
Create a script that can start BookSmart:
第33行: 第32行:
 
cd /usr/lib/booksmart
 
cd /usr/lib/booksmart
 
classpath=""
 
classpath=""
 
 
# Build classpath with all jars in the lib directory
 
# Build classpath with all jars in the lib directory
 
for jar in lib/*.jar
 
for jar in lib/*.jar
第39行: 第37行:
 
classpath=$classpath:$jar
 
classpath=$classpath:$jar
 
done
 
done
 
+
java -Xincgc -ea -Xms256m -Xmx1024m -classpath $classpath com.blurb.booksmart.application.BookSmart
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java -Xincgc -ea -Xms256m -Xmx1024m -classpath $classpath com.blurb.booksmart.application.BookSmart
+
 
+
 
exit $?
 
exit $?
 
' > $HOME/booksmart.sh
 
' > $HOME/booksmart.sh
第48行: 第44行:
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Set up menu ===
 
=== Set up menu ===
Finally, create a menu item to run BookSmart. Right-click on the Applications menu and select Edit Menu. Add a new entry under the Graphics menu called BookSmart which runs the following command:
+
Finally, create a menu item to run BookSmart. Right-click on the Applications menu and select Edit Menus. Add a new entry under the Graphics menu called BookSmart which runs the following command:
 
<code><nowiki>/usr/lib/booksmart/booksmart.sh</nowiki></code>
 
<code><nowiki>/usr/lib/booksmart/booksmart.sh</nowiki></code>
 
=== Tidying up ===
 
=== Tidying up ===
第55行: 第51行:
 
sudo umount /macbooksmart
 
sudo umount /macbooksmart
 
sudo rmdir /macbooksmart
 
sudo rmdir /macbooksmart
rm BookSmart_2.0.2.*
+
rm BookSmart_2.5.1.*
 
</nowiki></pre>
 
</nowiki></pre>
 
== Getting Started With BookSmart ==
 
== Getting Started With BookSmart ==
第61行: 第57行:
 
== Known Issues ==
 
== Known Issues ==
 
The thumbnails for themes for the New Book wizard are missing/misnamed.
 
The thumbnails for themes for the New Book wizard are missing/misnamed.
 +
== NB ==
 +
Booksmart requires write access to its running directory (/usr/lib/booksmart in this case) for writing a log file... By default regular users don't have write access to /usr/lib/. Alternatively, on a single user workstation, ~/booksmart can be used instead of /usr/lib/booksmart/.
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 16:54的版本

Introduction

BookSmart is a bookmaking application developed by Blurb, Inc. It allows users to design and publish books. Although Blurb do not offer or support a Linux version of BookSmart, it is a Java application which will run on Linux with a bit of fiddling. Website: http://www.blurb.com/

Installation Instructions

These instructions are heavily based on the hard work done by Blurb forum member [Lecuret]. His original instructions are [[1]].

Download and mount install disc

Firstly, download the latest version of BookSmart from [[2]]. Make sure you get the Mac version, not the Windows version. Alternatively, download it from the command line. The following will get v2.5.1, which may not be the latest version so check first: wget http://downloads.blurb.com/booksmart/BookSmart_2.5.1.dmg Now install some software to convert the DMG file into something that Linux can mount, such as dmg2img. Follow these DMG2IMG instructions. Then, convert the file using: dmg2img BookSmart_2.5.1.dmg Next mount the disc image (Karmic seems to have HFS module loaded by default. If not, "sudo modprobe hfsplus"):

sudo mkdir /macbooksmart
sudo mount -t hfsplus -o loop BookSmart_2.5.1.img /macbooksmart

Install files

Install the BookSmart files:

sudo mkdir /usr/lib/booksmart/
sudo cp -r /macbooksmart/BookSmart.app/Contents/Resources/Java/lib/ /usr/lib/booksmart/
sudo cp -r /macbooksmart/BookSmart.app/Contents/Resources/Java/resources/ /usr/lib/booksmart/ 

The 2.5.1 Mac version of BookSmart seems to run okay under Java 1.6 - previous versions needed 1.5. Make sure 1.6 is installed: sudo apt-get install sun-java6-jre

Create startup script

Create a script that can start BookSmart:

sudo echo '#! /bin/sh
cd /usr/lib/booksmart
classpath=""
# Build classpath with all jars in the lib directory
for jar in lib/*.jar
do
classpath=$classpath:$jar
done
java -Xincgc -ea -Xms256m -Xmx1024m -classpath $classpath com.blurb.booksmart.application.BookSmart
exit $?
' > $HOME/booksmart.sh
sudo mv $HOME/booksmart.sh /usr/lib/booksmart/booksmart.sh
sudo chmod a+x /usr/lib/booksmart/booksmart.sh

Set up menu

Finally, create a menu item to run BookSmart. Right-click on the Applications menu and select Edit Menus. Add a new entry under the Graphics menu called BookSmart which runs the following command: /usr/lib/booksmart/booksmart.sh

Tidying up

You can now tidy up the files used during installation:

sudo umount /macbooksmart
sudo rmdir /macbooksmart
rm BookSmart_2.5.1.*

Getting Started With BookSmart

You can now run BookSmart by selecting Applications > Graphics > BookSmart from the menu.

Known Issues

The thumbnails for themes for the New Book wizard are missing/misnamed.

NB

Booksmart requires write access to its running directory (/usr/lib/booksmart in this case) for writing a log file... By default regular users don't have write access to /usr/lib/. Alternatively, on a single user workstation, ~/booksmart can be used instead of /usr/lib/booksmart/.