Powered By Blogger

Friday, January 8, 2010

GTK+- Error

Many new ubuntu user will face this problem. This happens when you try to run an application from the terminal. The error is usually this:

Gtk-WARNING **: cannot open display:

Follow the following steps to correct this problem. Do all this on the terminal.

1. sudo apt-get install sux
2. sux - (give super user password)
3. xauth list
4. exit
5. xauth list
  ( you will see something like this
    Kaushik/unix:0  MIT-MAGIC-COOKIE-1  d4271cb3efeb1b70b0e980bfd6126a50
    copy that)
6. xauth add Kaushik/unix:0  MIT-MAGIC-COOKIE-1  d4271cb3efeb1b70b0e980bfd6126a50 ( you paste what you had copied)



Now everything should work fine!!!!


   

No comments:

Post a Comment