特殊:Badtitle/NS100:QuasarAccountingInstallation
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/QuasarAccountingInstallation }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/af | • {{#if: php5|Afrikaans| [[::QuasarAccountingInstallation/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ar | • {{#if: php5|العربية| [[::QuasarAccountingInstallation/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/az | • {{#if: php5|azərbaycanca| [[::QuasarAccountingInstallation/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::QuasarAccountingInstallation/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/bg | • {{#if: php5|български| [[::QuasarAccountingInstallation/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/br | • {{#if: php5|brezhoneg| [[::QuasarAccountingInstallation/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ca | • {{#if: php5|català| [[::QuasarAccountingInstallation/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/cs | • {{#if: php5|čeština| [[::QuasarAccountingInstallation/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/de | • {{#if: php5|Deutsch| [[::QuasarAccountingInstallation/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/el | • {{#if: php5|Ελληνικά| [[::QuasarAccountingInstallation/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/es | • {{#if: php5|español| [[::QuasarAccountingInstallation/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/fa | • {{#if: php5|فارسی| [[::QuasarAccountingInstallation/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/fi | • {{#if: php5|suomi| [[::QuasarAccountingInstallation/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/fr | • {{#if: php5|français| [[::QuasarAccountingInstallation/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/gu | • {{#if: php5|ગુજરાતી| [[::QuasarAccountingInstallation/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/he | • {{#if: php5|עברית| [[::QuasarAccountingInstallation/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/hu | • {{#if: php5|magyar| [[::QuasarAccountingInstallation/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/id | • {{#if: php5|Bahasa Indonesia| [[::QuasarAccountingInstallation/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/it | • {{#if: php5|italiano| [[::QuasarAccountingInstallation/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ja | • {{#if: php5|日本語| [[::QuasarAccountingInstallation/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ko | • {{#if: php5|한국어| [[::QuasarAccountingInstallation/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ksh | • {{#if: php5|Ripoarisch| [[::QuasarAccountingInstallation/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/mr | • {{#if: php5|मराठी| [[::QuasarAccountingInstallation/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ms | • {{#if: php5|Bahasa Melayu| [[::QuasarAccountingInstallation/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/nl | • {{#if: php5|Nederlands| [[::QuasarAccountingInstallation/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/no | • {{#if: php5|norsk| [[::QuasarAccountingInstallation/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/oc | • {{#if: php5|occitan| [[::QuasarAccountingInstallation/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/pl | • {{#if: php5|polski| [[::QuasarAccountingInstallation/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/pt | • {{#if: php5|português| [[::QuasarAccountingInstallation/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ro | • {{#if: php5|română| [[::QuasarAccountingInstallation/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/ru | • {{#if: php5|русский| [[::QuasarAccountingInstallation/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/si | • {{#if: php5|සිංහල| [[::QuasarAccountingInstallation/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/sq | • {{#if: php5|shqip| [[::QuasarAccountingInstallation/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/sr | • {{#if: php5|српски / srpski| [[::QuasarAccountingInstallation/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/sv | • {{#if: php5|svenska| [[::QuasarAccountingInstallation/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/th | • {{#if: php5|ไทย| [[::QuasarAccountingInstallation/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/tr | • {{#if: php5|Türkçe| [[::QuasarAccountingInstallation/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/vi | • {{#if: php5|Tiếng Việt| [[::QuasarAccountingInstallation/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/yue | • {{#if: php5|粵語| [[::QuasarAccountingInstallation/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/zh | • {{#if: php5|中文| [[::QuasarAccountingInstallation/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/zh-hans | • {{#if: php5|中文(简体)| [[::QuasarAccountingInstallation/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}QuasarAccountingInstallation}}/zh-hant | • {{#if: php5|中文(繁體)| [[::QuasarAccountingInstallation/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:QuasarAccountingInstallation|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :QuasarAccountingInstallation/zh | | {{#ifexist: QuasarAccountingInstallation/zh | | {{#ifeq: {{#titleparts:QuasarAccountingInstallation|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:QuasarAccountingInstallation|1|-1|}} | zh | | }}
Introduction
Quasar is accounting software for Linux. It's powerful and easy to use – certainly more so than commercial small business Windows-based alternatives that I've encountered in the UK – and a full range of support packages are available from the authors. It needs a Linux server, but clients are available for both Windows and Linux. This how-to only covers installation on a single Ubuntu box that acts as both client and server. If you need multi-user access but can't work out how to do it yourself, it sounds like you need to get a support package.
Unfortunately, Quasar's not straightforward to install on Ubuntu, as no pre-built packages are available. In principle, it should be possible to install one of the packages built for other distributions, but building from source is likely to be more reliable. That's the approach that I've adopted here.
This documentation is for Feisty (7.04) and Edgy (6.10) but will work with minor tweaking on Dapper (6.06 LTS). Quasar can be installed on earlier releases but needs a different approach as not all depenedencies are available through the package manager.
Step 1: Install and build Quasar
Go to www.linuxcanada.com, and download the file quasar-1.4.7_GPL.tgz to your desktop (note that if you download a newer version you'll have to change all subsequent references to it). While you're there, also download the comprehensive product documentation provided by Linux Canada.
Now ensure that you have the Universe repositories installed, open up a terminal session, and enter the following:
For Edgy (version 6.10):
sudo apt-get install build-essential libqt3-mt-dev tcl8.4-dev tk8.4-dev libpq-dev qt3-apps-dev postgresql-8.1 libicu34-dev xinetd postgresql-server-dev-8.1 For Feisty (version 7.04):sudo apt-get install build-essential libqt3-mt-dev tcl8.4-dev tk8.4-dev libpq-dev qt3-apps-dev postgresql-8.2 libicu34-dev xinetd postgresql-server-dev-8.2 And then:cd ~/Desktop tar xvvf quasar-1.4.7_GPL.tgz cd quasar-1.4.7_GPL/ ./configure make Unfortunately, it's necessary to modify the install script before proceeding (if you prefer, replace nano with a different text editor such as Gedit or Kate):nano install Edit the first line to look like this:#!/bin/bash You can now complete installation with this command:sudo make install Quasar installs itself to /opt rather than the Ubuntu standard for user-installed software of /usr/local, so you can't start it without entering the full path to the executable file. That doesn't matter too much, though, as we're going to create our own Gnome menu entries and /opt survives intact when you upgrade to a new Ubuntu release.Quasar doesn't generate menu entries by default, so we need to create our own:
sudo nano /usr/share/applications/Quasar.desktop Paste this text into the file:[Desktop Entry] Name=Quasar Comment=Quasar accounts Exec=/opt/quasar/bin/quasar Icon=/opt/quasar/setup/quasar_client.xpm StartupNotify=true Terminal=false Type=Application Categories=Application;Office; Now create an entry for the administration program:sudo nano /usr/share/applications/Quasar-Admin.desktop and paste this text into it:[Desktop Entry] Name=Quasar Admin Comment=Quasar accounts administration and setup tool Exec=gksudo /opt/quasar/bin/quasar_setup Icon=/opt/quasar/setup/quasar_setup.xpm StartupNotify=true Terminal=false Type=Application Categories=Application;Office;Step 3: Set up the PostgreSQL database
Next, we need to create some database users for Quasar to use. Enter the following code, answering yes to all questions and entering new passwords where appropriate:sudo su postgres createuser -d -E -P quasar-dba createuser -E -P quasar exit Now we need to ensure that Quasar is allowed to access the database. For Edgy (version 6.10), replace 8.2 with 8.1:sudo nano /etc/postgresql/8.2/main/pg_hba.conf Make sure that your file contains this line; if not, add it:host all all 127.0.0.1/32 md5 Now restart the database server to make your changes effective. For Edgy (version 6.10), replace 8.2 with 8.1:sudo /etc/init.d/postgresql-8.2 restartStep 4: Connect Quasar to the PostgreSQL server
The final step is to lodge the database settings with Quasar. Open Quasar's administration tool (Applications --> Office --> Quasar Admin), go to the Drivers tab, and hit Configure. Enter these settings: Hostname: localhost Port: 5,433 (for Edgy, version 6.10, use 5,432) Library: /usr/lib/libpq.so DBA username: quasar-dba DBA password: whatever you entered earlier Username: quasar Username password: whatever you entered earlier Character set: UNICODEStep 6: Start using it!
Linux Canada's documentation is excellent, and I'm not going to attempt to explain how to use Quasar here. It might initially appear complex, but if you're an accountant or experienced bookkeeper you'll feel familiar pretty quickly. Enjoy.
CategoryDocumentation