Dec 12, 2008

Install GTK+ on ubuntu

I tried to install GTK+ manually by compiling each dependencies it required.
Finally I failed.
A huge masses!

This simple command saved me at last.
sudo apt-get install libgtk2.0-dev
it will install GTK+ automatically .
By the following command, you can have the document for developers.
sudo apt-get install libgtk2.0-doc devhelp
Now you have both library and document.
Enjoy them !

Out Of Frequency Range - Encoutered When Installing Ubuntu

When I tried to install the Ubuntu 8.10 , I met this error .
It just shut my monitor down after the full loading of status bar and an "Out Of Frequency Range" came out.

If you meet the same error here.
Do the following:

1. press Ctrl + Alt + F1 , this will give you a tty1 . Alter F1 to F2 may give you tty2 , If you have several ttys.( default you may have six ttys, I wonder ..)
2. Get into the X11's config folder .
> cd /etc/X11/
then back-up the xorg.config
> sudo cp xorg.conf xorg.conf.bak (this is not necessary but I recommend)
3. modify the xorg.conf
find out the Monitor Section:
add following lines :
> HorizSync 40.0 - 50.0
> VertRefresh 50.0 - 60.0
> DisplaySize 351 229 ( the 351 means 1024 pixel and 229 means 768 pixel)
You can find yours value in your monitor manual
OR you can find the monitor type at the backside of your monitor then google it .
Actually If you set the right HorizSync and VertRefresh ,the DisplaySize is not necessary.
4. now change to the graphical display, press Ctrl+Alt+F8 or Ctrl+Alt+F7 .
I still don't now why sometimes C+A+F7 will bring me to the graphic and sometimes C+A+F8 does .
Anyway, It works now. I will find it out latter.
As you see the "Out Of Frequency Range" again , press Ctrl+Alt+Back Space to restart X-Window .
After restart, you should have a nice day .. haha ...