特殊:Badtitle/NS100:QuasarAccountingInstallation:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示2个用户的6个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/QuasarAccountingInstallation}} | {{From|https://help.ubuntu.com/community/QuasarAccountingInstallation}} | ||
{{Languages| | {{Languages|UbuntuHelp:QuasarAccountingInstallation}} | ||
== Introduction == | == 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. | 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. (Note: As of July 2008 Kubuntu 8.04 debs are on the Quasar website.) | |||
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. | 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 == | == Step 1: Install and build Quasar == | ||
Go to http://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. | |||
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: | Now ensure that you have the Universe repositories installed, open up a terminal session, and enter the following: | ||
For Edgy (version 6.10): | For Edgy (version 6.10): | ||
<pre><nowiki> | <pre><nowiki> | ||
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 | 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 | ||
</nowiki></pre> | </nowiki></pre> | ||
For Gutsy (version 7.10) or Feisty (version 7.04): | |||
For Feisty (version 7.04): | |||
<pre><nowiki> | <pre><nowiki> | ||
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 | 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 | ||
</nowiki></pre> | </nowiki></pre> | ||
And then: | And then: | ||
<pre><nowiki> | <pre><nowiki> | ||
第35行: | 第24行: | ||
make | make | ||
</nowiki></pre> | </nowiki></pre> | ||
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): | 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): | ||
<pre><nowiki> | <pre><nowiki> | ||
nano install | nano install | ||
</nowiki></pre> | </nowiki></pre> | ||
Edit the first line to look like this: | Edit the first line to look like this: | ||
<pre><nowiki> | <pre><nowiki> | ||
#!/bin/bash | #!/bin/bash | ||
</nowiki></pre> | </nowiki></pre> | ||
You can now complete installation with this command: | You can now complete installation with this command: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo make install | sudo make install | ||
</nowiki></pre> | </nowiki></pre> | ||
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 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. | ||
== Step 2: Create the menu entries == | == Step 2: Create the menu entries == | ||
Quasar doesn't generate menu entries by default, so we need to create our own: | Quasar doesn't generate menu entries by default, so we need to create our own: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo nano /usr/share/applications/Quasar.desktop | sudo nano /usr/share/applications/Quasar.desktop | ||
</nowiki></pre> | </nowiki></pre> | ||
Paste this text into the file: | Paste this text into the file: | ||
<pre><nowiki> | <pre><nowiki> | ||
[Desktop Entry] | [Desktop Entry] | ||
第77行: | 第54行: | ||
Categories=Application;Office; | Categories=Application;Office; | ||
</nowiki></pre> | </nowiki></pre> | ||
Now create an entry for the administration program: | Now create an entry for the administration program: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo nano /usr/share/applications/Quasar-Admin.desktop | sudo nano /usr/share/applications/Quasar-Admin.desktop | ||
</nowiki></pre> | </nowiki></pre> | ||
and paste this text into it: | and paste this text into it: | ||
<pre><nowiki> | <pre><nowiki> | ||
[Desktop Entry] | [Desktop Entry] | ||
第97行: | 第70行: | ||
Categories=Application;Office; | Categories=Application;Office; | ||
</nowiki></pre> | </nowiki></pre> | ||
== Step 3: Set up the PostgreSQL database == | == 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: | 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: | ||
<pre><nowiki> | <pre><nowiki> | ||
sudo su postgres | sudo su postgres | ||
createuser -d -E -P | createuser -d -E -P quasar_dba | ||
createuser -E -P quasar | createuser -E -P quasar | ||
exit | exit | ||
</nowiki></pre> | </nowiki></pre> | ||
Now we need to ensure that Quasar is allowed to access the database: | |||
Now we need to ensure that Quasar is allowed to access the database | For Edgy (version 6.10): | ||
<pre><nowiki> | |||
sudo nano /etc/postgresql/8.1/main/pg_hba.conf | |||
</nowiki></pre> | |||
For Gutsy (version 7.10) or Feisty (version 7.04): | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo nano /etc/postgresql/8.2/main/pg_hba.conf | sudo nano /etc/postgresql/8.2/main/pg_hba.conf | ||
</nowiki></pre> | </nowiki></pre> | ||
Make sure that your file contains this line; if not, add it: | Make sure that your file contains this line; if not, add it: | ||
<pre><nowiki> | <pre><nowiki> | ||
host all all 127.0.0.1/32 md5 | host all all 127.0.0.1/32 md5 | ||
</nowiki></pre> | </nowiki></pre> | ||
Now restart the database server to make your changes effective: | |||
Now restart the database server to make your changes effective | For Edgy (version 6.10): | ||
<pre><nowiki> | |||
sudo /etc/init.d/postgresql-8.1 restart | |||
</nowiki></pre> | |||
For Gutsy (version 7.10) or Feisty (version 7.04): | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo /etc/init.d/postgresql-8.2 restart | sudo /etc/init.d/postgresql-8.2 restart | ||
</nowiki></pre> | </nowiki></pre> | ||
== Step 4: Connect Quasar to the PostgreSQL server == | == Step 4: Connect Quasar to the PostgreSQL server == | ||
First you will need to determine the correct port that [[UbuntuHelp:PostgreSQL|PostgreSQL]] is listening on: | |||
For Edgy (version 6.10): | |||
<pre><nowiki> | |||
grep "^port" /etc/postgresql/8.1/main/postgresql.conf | |||
</nowiki></pre> | |||
For Gutsy (version 7.10) or Feisty (version 7.04): | |||
<pre><nowiki> | |||
grep "^port" /etc/postgresql/8.2/main/postgresql.conf | |||
</nowiki></pre> | |||
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: | 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 | Hostname: localhost | ||
Port: 5,433 (or possibly 5,432) | |||
Port: 5,433 ( | |||
Library: /usr/lib/libpq.so | Library: /usr/lib/libpq.so | ||
DBA username: quasar_dba | |||
DBA username: | |||
DBA password: whatever you entered earlier | DBA password: whatever you entered earlier | ||
Username: quasar | Username: quasar | ||
Username password: whatever you entered earlier | Username password: whatever you entered earlier | ||
Character set: UNICODE | Character set: UNICODE | ||
Now go to the Server tab and give yourself a sensible administrative password. When you start the client application, you'll first log in with the user name admin and this password. | |||
== Step 6: Start using it! == | == Step 6: Start using it! == | ||
Linux Canada's documentation and mailing lists[1] are 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. | |||
Linux Canada's documentation | [1] http://www.linuxcanada.com/mailman/listinfo | ||
---- | ---- | ||
[[category:CategoryOffice]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月20日 (一) 00:25的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/QuasarAccountingInstallation }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/af | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Afrikaans| [[::QuasarAccountingInstallation/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ar | • {{#if: UbuntuHelp:QuasarAccountingInstallation|العربية| [[::QuasarAccountingInstallation/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/az | • {{#if: UbuntuHelp:QuasarAccountingInstallation|azərbaycanca| [[::QuasarAccountingInstallation/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/bcc | • {{#if: UbuntuHelp:QuasarAccountingInstallation|جهلسری بلوچی| [[::QuasarAccountingInstallation/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/bg | • {{#if: UbuntuHelp:QuasarAccountingInstallation|български| [[::QuasarAccountingInstallation/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/br | • {{#if: UbuntuHelp:QuasarAccountingInstallation|brezhoneg| [[::QuasarAccountingInstallation/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ca | • {{#if: UbuntuHelp:QuasarAccountingInstallation|català| [[::QuasarAccountingInstallation/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/cs | • {{#if: UbuntuHelp:QuasarAccountingInstallation|čeština| [[::QuasarAccountingInstallation/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/de | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Deutsch| [[::QuasarAccountingInstallation/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/el | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Ελληνικά| [[::QuasarAccountingInstallation/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/es | • {{#if: UbuntuHelp:QuasarAccountingInstallation|español| [[::QuasarAccountingInstallation/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/fa | • {{#if: UbuntuHelp:QuasarAccountingInstallation|فارسی| [[::QuasarAccountingInstallation/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/fi | • {{#if: UbuntuHelp:QuasarAccountingInstallation|suomi| [[::QuasarAccountingInstallation/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/fr | • {{#if: UbuntuHelp:QuasarAccountingInstallation|français| [[::QuasarAccountingInstallation/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/gu | • {{#if: UbuntuHelp:QuasarAccountingInstallation|ગુજરાતી| [[::QuasarAccountingInstallation/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/he | • {{#if: UbuntuHelp:QuasarAccountingInstallation|עברית| [[::QuasarAccountingInstallation/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/hu | • {{#if: UbuntuHelp:QuasarAccountingInstallation|magyar| [[::QuasarAccountingInstallation/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/id | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Bahasa Indonesia| [[::QuasarAccountingInstallation/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/it | • {{#if: UbuntuHelp:QuasarAccountingInstallation|italiano| [[::QuasarAccountingInstallation/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ja | • {{#if: UbuntuHelp:QuasarAccountingInstallation|日本語| [[::QuasarAccountingInstallation/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ko | • {{#if: UbuntuHelp:QuasarAccountingInstallation|한국어| [[::QuasarAccountingInstallation/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ksh | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Ripoarisch| [[::QuasarAccountingInstallation/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/mr | • {{#if: UbuntuHelp:QuasarAccountingInstallation|मराठी| [[::QuasarAccountingInstallation/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ms | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Bahasa Melayu| [[::QuasarAccountingInstallation/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/nl | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Nederlands| [[::QuasarAccountingInstallation/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/no | • {{#if: UbuntuHelp:QuasarAccountingInstallation|norsk| [[::QuasarAccountingInstallation/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/oc | • {{#if: UbuntuHelp:QuasarAccountingInstallation|occitan| [[::QuasarAccountingInstallation/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/pl | • {{#if: UbuntuHelp:QuasarAccountingInstallation|polski| [[::QuasarAccountingInstallation/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/pt | • {{#if: UbuntuHelp:QuasarAccountingInstallation|português| [[::QuasarAccountingInstallation/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ro | • {{#if: UbuntuHelp:QuasarAccountingInstallation|română| [[::QuasarAccountingInstallation/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/ru | • {{#if: UbuntuHelp:QuasarAccountingInstallation|русский| [[::QuasarAccountingInstallation/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/si | • {{#if: UbuntuHelp:QuasarAccountingInstallation|සිංහල| [[::QuasarAccountingInstallation/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/sq | • {{#if: UbuntuHelp:QuasarAccountingInstallation|shqip| [[::QuasarAccountingInstallation/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/sr | • {{#if: UbuntuHelp:QuasarAccountingInstallation|српски / srpski| [[::QuasarAccountingInstallation/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/sv | • {{#if: UbuntuHelp:QuasarAccountingInstallation|svenska| [[::QuasarAccountingInstallation/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/th | • {{#if: UbuntuHelp:QuasarAccountingInstallation|ไทย| [[::QuasarAccountingInstallation/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/tr | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Türkçe| [[::QuasarAccountingInstallation/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/vi | • {{#if: UbuntuHelp:QuasarAccountingInstallation|Tiếng Việt| [[::QuasarAccountingInstallation/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/yue | • {{#if: UbuntuHelp:QuasarAccountingInstallation|粵語| [[::QuasarAccountingInstallation/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/zh | • {{#if: UbuntuHelp:QuasarAccountingInstallation|中文| [[::QuasarAccountingInstallation/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/zh-hans | • {{#if: UbuntuHelp:QuasarAccountingInstallation|中文(简体)| [[::QuasarAccountingInstallation/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:QuasarAccountingInstallation | UbuntuHelp:QuasarAccountingInstallation | {{#if: | :}}QuasarAccountingInstallation}}/zh-hant | • {{#if: UbuntuHelp:QuasarAccountingInstallation|中文(繁體)| [[::QuasarAccountingInstallation/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:QuasarAccountingInstallation|: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. (Note: As of July 2008 Kubuntu 8.04 debs are on the Quasar website.) 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 http://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 Gutsy (version 7.10) or 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):
sudo nano /etc/postgresql/8.1/main/pg_hba.conf
For Gutsy (version 7.10) or Feisty (version 7.04):
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):
sudo /etc/init.d/postgresql-8.1 restart
For Gutsy (version 7.10) or Feisty (version 7.04):
sudo /etc/init.d/postgresql-8.2 restart
Step 4: Connect Quasar to the PostgreSQL server
First you will need to determine the correct port that PostgreSQL is listening on: For Edgy (version 6.10):
grep "^port" /etc/postgresql/8.1/main/postgresql.conf
For Gutsy (version 7.10) or Feisty (version 7.04):
grep "^port" /etc/postgresql/8.2/main/postgresql.conf
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 (or possibly 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: UNICODE Now go to the Server tab and give yourself a sensible administrative password. When you start the client application, you'll first log in with the user name admin and this password.
Step 6: Start using it!
Linux Canada's documentation and mailing lists[1] are 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. [1] http://www.linuxcanada.com/mailman/listinfo