Sunday, April 15, 2007

Fonts in Ubuntu

If you want to make your fonts look smoother, try to gvim /home/yourname/.fonts.conf and add these lines below:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="autohint" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>

Save the file, logout and login again.

===================================================
To use true type fonts:
mkdir /usr/share/fonts/truetype/myfonts
then cp *.ttf /usr/share/fonts/trutype/myfonts
logout and login to use the new installed true type fonts.

Ubuntu and PostgreSQL

To create a new user:

sudo su postgres -c createuser

To change the password:

sudo su postgres -c psql postgres
ALTER USER *username* WITH PASSWORD '*password*';

To get complete information, please visit:
http://hocuspok.us/journal/postgresql-on-ubuntu-linux-how-to

Saturday, April 14, 2007

Building wxWidgets in Ubuntu Desktop

Note: Installation of g++ and libgtk2 is needed to build wxWidgets in Ubuntu Desktop.

For Feisty Fawn, libgtk2-dev is needed too. If it is not already installed, the wxWidgets installer will complain about missing gtk+-2.0.pc.

Use Synaptic Package Manager to install these modules.