linux

09
Jan
2009
abhishek

Installing PostgreSQL on Ubuntu Intrepid (8.10)



Installing majority of softwares on Ubutu is just a like away same is the case with PostgreSQL

Installing PostgreSQL (8.3)

$ sudo apt-get install postgresql


Setting the password for the postgres user

$ sudo -u postgres psql template1

ALTER USER postgres WITH PASSWORD 'password-u-need';
\q


this installs and configues the password for the postgreSQL

is this not easy with ubuntu

and yes if you need to use postgreSQL with PHP on your apache server the install the php5-pgsql module using the following

$ sudo apt-get install php5-pgsql

 

08
Jan
2009
abhishek

How to TTF Fonts in Ubuntu

[ad#460]
Simple steps to install TTF fonts on your Ubuntu Machine
  1. Move all your fonts to the ~/ Directory. The ~/ Directory is your home folder. So if you were logged in as abhishek, the directory would be /home/abhishek/ . This step is done only to ease the process you can use any directory for this matter.
  2. Open up the terminal. I'm assuming you've already extracted the font to the ~/ directory.
05
Jan
2009
abhishek

SWAP Usage

For the first time i saw my SWAP space being used in excess of 2% don't know why but it was i was running 4-5 applications since 7hrs suddenly i saw that my System Monitor showed a high SWAP usage would be analysing the Logs to check what went wrong. have taken the snapshot which is below

Swap Usage
01
Jan
2009
abhishek

Remount a disk in read write mode

A few days back i was stuck when i wrongly edited fstab the system just didn't booted up each time i boot it went to recovery mode so i tried to re-edit the fstab but as the file system was read-only i was unable to edit, but lately i realized  that i can remount my file system as read write which i did using the following command

mount -o remount, rw /

adding this in blog so that new bies like me can remember this

[ad#460]
Syndicate content