Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.

LibreOffice Templates Custom Distro

Login or Register to Reply

Thread Tools Search this Thread
# 1  
LibreOffice Templates Custom Distro

Hello, I have a custom Linux distro in which I'm trying to get templates for LibreOffice to ship by default. Is there a location they need to be placed or a file that needs to be edited? I've already tried using the template manager and add templates that way. I then copied /usr/templates/ and /usr/libreoffice/ as a final step before creating the ISO, hoping that'll preserve the information. However, after a fresh install, LibreOffice runs some kind of initial setup and my templates are nowhere to be found. I know about the Template folder in Home, but that doesn't help me much if I want to use a different username or password for the distro install.

Push The Outer Linux
@Twitter, @Github, & @Tumblr: TheOuterLinux
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

8 More Discussions You Might Find Interesting

1. Programming

C++ templates

I have the following template codes but some normal functions too and want to group them together. I usually put the implementation of templates in an .ipp file. What would be a good scheme for the normal functions. Put their implementations in a .cpp file, or leave them in the .ipp file? ... (3 Replies)
Discussion started by: kristinu
3 Replies

2. UNIX for Advanced & Expert Users

Help creating a custom linux distro

Hi all, for a while now I've been working on a linux distro and I'm a couple of tweaks away from it to be perfected so if any experts want to help me out please message me. Thanks in advance. (I know I've posted a similar thread on the same topic but it was closed due to an unhelpful title... (0 Replies)
Discussion started by: allk
0 Replies

3. Programming

Templates and header file

I have some C++ code and want to have the class declarations in a .h file and the implementation in the .cpp file. It seems however that for templates everything need to be put in the header (.h) file and will have problems if I try to separate the code to a .cpp file. Is this correct? Is... (1 Reply)
Discussion started by: kristinu
1 Replies

4. Solaris

A compilation problem when using templates

Hello life savers, I'm having trouble compiling a specific program. The program was originally written for gcc and was compiled successfully under it. When trying to compile under Solaris 11, I get this error: "Hashtable.h", line 170: Error: Could not find a match for hash needed in... (2 Replies)
Discussion started by: yp515
2 Replies

5. Shell Programming and Scripting

Reading from Templates

I am trying to write a script that would retrieve specific information from a template. I have been trying to no avail for the longest. This is what I wrote and it's not working. cat filename | while read F5 F6 do if ] then echo $F5 $F6 fi done Here is the template (filename) CN ... (7 Replies)
Discussion started by: Ernst
7 Replies

6. Post Here to Contact Site Administrators and Moderators


Hello, Anybody in here has any idea where I can get a template like this one for vBulletin. I have actually got my board but it just doesn't look good in the template that I have! Thanks anyway! him (2 Replies)
Discussion started by: him
2 Replies

7. Programming

site templates?

Are there any web site templates on CGI that allow like this forum software user registration and profiles. I dont need forum software i just need to register and keep profiles of my users on my site. Any suggestions? :confused: Thank you all. (1 Reply)
Discussion started by: solvman
1 Replies

8. Programming

c++ templates problems in g++

what we have: class TClass { public: TClass(); }; template<class T> class FClass<T>: public T { public: FClass(); }; TClass::TClass() { // some code } template<class T> FClass<T>::FClass : T() { // some code } int main (int argc,char* argv) { (3 Replies)
Discussion started by: Marhinado John
3 Replies
UNOCONV(1)																UNOCONV(1)

unoconv - convert any document from and to any LibreOffice supported format
unoconv [options] file [file2 ..] unoconv --listener [--server SRV] [--port PRT] [--connection CON]
unoconv is a command line utility that can convert any file format that LibreOffice can import, to any file format that LibreOffice is capable of exporting. unoconv uses the LibreOffice's UNO bindings for non-interactive conversion of documents and therefore needs an LibreOffice instance to communicate with. Therefore if it cannot find one, it will start its own instance for temporary usage. If desired, one can start a "listener" instance to use for subsequent connections or even for remote connections.
-c, --connection UNO connection string to be used by the client to connect to an LibreOffice instance, or used by the listener to make LibreOffice listen. Default connection string is "socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" -d, --doctype Specify the LibreOffice document type of the backend format. Possible document types are: document, graphics, presentation, spreadsheet. Default document type is 'document'. -e, --export Set specific export filter options (related to the used LibreOffice filter). eg. for the PDF output filter one can specify: -e PageRange=1-2 See the *EXPORT FILTERS* section. -f, --format Specify the output format for the document. You can get a list of possible output formats per document type by using the --show option. Default document type is 'pdf'. -i, --import Set specific import filters options (related to the used LibreOffice import filter based on the input filename). See the *IMPORT FILTERS* section. -l, --listener Start unoconv as listener for unoconv clients to connect to. -n, --no-launch By default if no listener is running, unoconv will launch its own (temporary) listener to make sure the conversion works. This option will abort the conversion if no listener is found, rather than starting our own listener. -o, --output If the argument is a directory, put the converted documents in this directory. If multiple input files are provided, use it as a basename (and add output extension). Otherwise use it as the output filename. --pipe Use a pipe as an alternative connection mechanism to talk to LibreOffice. -p, --port Port to listen on (as listener) or to connect to (as client). Default port is '2002'. -s, --server Server (address) to listen on (as listener) or to connect to (as client). Default server is 'localhost'. --show List the possible output formats to be used with -f. --stdout Print converted output file to stdout. -t, --template Specify the template to use for importing styles from. This can be very useful if you have a corporate identity you have to apply to every document you distribute. -T, --timeout When unoconv starts its own listener, try to connect to it for an amount of seconds before giving up. Increasing this may help when you receive random errors caused by the listener not being ready to accept conversion jobs. -v, --verbose Be more and more and more verbose.
You can provide one or more files as arguments to convert each of them to the specified output format.
Depending on the used input file, a different LibreOffice import filter is automatically used by unoconv. This import filter can be influenced by the -i option that, depending on the filter used, accepts different arguments. It is not always clear what import filter options you can provide, the import dialog in LibreOffice for the filter you ar using might give a good indication as to what you can expect as import filter options. The reference is LibreOffice's documentation, for spreadsheets it is described at: but we will look into some examples.
The default import filter for many imports (eg. Lotus, dBase or DIF) accepts as the only argument the input encoding-type, so if you require utf-8 you can do: -i utf-8 For a list of possible encoding types, you can use the above link to find the possible options.
The CSV import filter accepts various arguments, the order is: separator(s),text-delimiter,encoding,first-row,column-format For example you might want to use this for a real comma-separated document: -i 44,34,utf-8,2,1/5/2/1/3/1/4/1 which will use a comma (44) as the field separator, a double quote (34) as the text delimiter, UTF-8 for the input encoding, start from the second row and use the specified formats for each column (1 means standard, 5 means YY/MM/DD date) If you like to use more than one separator (say a space or a tab) and use the system's encoding, but with no text-delimiter, you can do: -i 9/32,,system,2
In contrast to import filters, export filters can have multiple named options, although it is not always clear what options are available. It all depends on the version of LibreOffice. The export dialog you get in LibreOffice might give you a clue about what is possible, each of those widgets represents an option.
The PDF export filter is likely the most advanced export filter in its kind with a myriad of options one can use. The export filter options are described in a separate document, or on LibreOffice's wiki at: For example one can specify: -e PageRange=1-2
You can use unoconv in standalone mode, this means that in absence of an LibreOffice listener, it will starts its own: unoconv -f pdf some-document.odt One can use unoconv as a listener (by default localhost:2002) to let other unoconv instances connect to it: unoconv --listener & unoconv -f pdf some-document.odt unoconv -f doc other-document.odt unoconv -f jpg some-image.png unoconv -f xsl some-spreadsheet.csv kill -15 %- This also works on a remote host: unoconv --listener --server --port 4567 and then connect another system to convert documents: unoconv --server --port 4567
UNO_PATH specifies what LibreOffice pyuno installation unoconv needs to use eg. /opt/libreoffice3.4/basis-link/program
Normally, the exit status is 0 if the conversion ran successful. If an error has occured, the return code is most likely an error returned by LibreOffice (or its interface, called UNO) however, the error never translates to something meaningful. In case you like to decipher the LibreOffice errCode, look at: Using the above lists, the error code 2074 means: Class: 1 (ERRCODE_CLASS_ABORT) Code: 26 (ERRCODE_IO_INVALIDPARAMETER or SVSTREAM_INVALID_PARAMETER) And the error code 3088 means: Class: 3 (ERRCODE_CLASS_NOTEXISTS) Code: 16 (ERRCODE_IO_CANTWRITE)
convert(1), file(1), odt2txt
unoconv uses the UNO bindings to connect to LibreOffice, in absence of a usable socket, it will start its own LibreOffice instance with the correct parameters. Note Please see the TODO file for known bugs and future plans.
unoconv is very useful together with the following tools: Asciidoc asciidoc-odf docbook2odf A list of possible import and export formats is available from: OpenOffice 2.1 OpenOffice 3.0
Written by Dag Wieers, <[1]>
Main web site:
Copyright (C) 2007 Dag Wieers. Free use of this software is granted under the terms of the GNU General Public License (GPL).
Dag Wieers <> Author.
1. 0.4 20 october 2010 UNOCONV(1)

Featured Tech Videos