warning: Creating default object from empty value in /home/nagar/abhishek.nagar.me/modules/taxonomy/taxonomy.pages.inc on line 33.

linux

12
Feb

top scheduling...

tasks tasks and tasks... you always need to monitor them but how to schedule this monitoring so that i can get a file generated say every hour or four hours. You normally use the following command to transfer the output of top to a file

$ top > filename

and this works fine for you have you ever tried to add this entry as a cron job believe me it wont work i struggled a lot with it so finally whats the solution to schedule it The answer is use cron job, but i just said it wont work :) yes this wont work directly you need to add certain flags hey dont work you need not search them, below is the line which you can add as your cron job

30
Jan

PXE : making your admins life easier

Need to setup a lab/office with 200+ computers, very tiring job but look if you have machines identical in configuration why are you installing each of them why not install one and replicate it to others this will save a lot of time, But how will i do this?????????? Its very very simple you can do a dd of the source to all destination but this would be even difficult and a bit geeky, hey dont worry we have a solution for it use PXE. 

Now what is this PXE??

Wikipedia "The Preboot eXecution Environment (PXE, also known as Pre-Execution Environment, or 'pixie') is an environment to boot computers using a network interface independently of available data storage devices (like hard disks) or installed operating systems."

9
Jan

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

 

8
Jan

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.
5
Jan

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
Syndicate content