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



Restoring GRUB after a reinstall

You had just did a weekly install of some OS which did not detected Linux, Follow the steps mentioned below to get GRUB working again. Please note this would erase the current bootloader and install a new one for you if you are unsure of what you are doing do not try this

  1. Boot from a Linux Live CD ( ex ubuntu or knopix, i use Ubuntu)
  2. Open the terminal
  3. Follow the commands mentioned below
  • sudo grub

if sudo doesnot works switch to root user and use grub drectly, Find the ROOT device you will get the values for X & Y which will be used later.

  • grub> find /boot/grub/stage1

Set the root device from the information achieved from the above command

  • grub> root (hdX,Y)

Install GRUB

  • grub> setup (hd0)



Skype in Ubuntu

Skype is not available in the default configured repositories of Ubuntu so an alternate is downloading a deb package from skype and installing it but as i am an apt-get fan i would recommend adding the repositories listed below and then using

# sudo apt-get install skype

But you need to Add a Repository using the commands below before using apt-get if there is no command listed for your distro goto Medibuntu

  • Ubuntu 9.04 "Jaunty Jackalope"

wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list

  • Ubuntu 8.10 "Intrepid Ibex"

sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d medibuntu.list


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';

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



How to TTF Fonts in Ubuntu

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.

Configuring DHCP Server on Ubuntu

Ubuntu works the apt-get way and hence makes it easy to install packages on it for confuguring Ubuntu as a DHCP server install the server software using the following command

$ sudo apt-get install dhcp3-server

this would install the required packages

after the package is installed backup the default configuration files using the following

$ sudo cp /etc/default/dhcp3-server dhcp3-server.back

dhcp3-server is a file where you specify the interface DHCP should server (wlan0 in mycase)

edit the file using

$ sudo vim /etc/default/dhcp3-server





(wlan0 might be eth0 or eth1 in your case)

save and close the file

only one more file editing is required now create a backup for mail dhcpd.conf using

$ sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf.back

edit the file using

Syndicate content