LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-07-2013, 10:19 PM   #1
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Rep: Reputation: Disabled
ubuntu-desktop installed in server but getting error: no display specified


Hi
I got ubuntu-desktop installed on my remote server.
But still I am not able to open GUI.
Please have a look below for the error I get when trying to open
firefox and gparted.
Code:
ravbholua@ravi:~$ type firefox
firefox is hashed (/usr/bin/firefox)
ravbholua@ravi:~$ firefox

(process:7517): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

(firefox:7517): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
Error: no display specified
ravbholua@ravi:~$ sudo gparted

(process:7536): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

(gpartedbin:7536): Gtk-WARNING **: cannot open display: 
ravbholua@ravi:~$
The same error while opening calculator as below:
Code:
ravbholua@ravi:~$ type  xcalc
xcalc is hashed (/usr/bin/xcalc)
ravbholua@ravi:~$ xcalc
Error: Can't open display: 
ravbholua@ravi:~$
How to get my GUI working so that I can open firefox,etc on the remote
server (VPS)

Last edited by ravisingh1; 09-07-2013 at 10:23 PM.
 
Old 09-07-2013, 11:11 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Have you installed xorg?
 
Old 09-08-2013, 12:47 AM   #3
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
I just now checked and found that xorg isn't installed.
So, shall I proceed ahead and install xorg.
 
Old 09-08-2013, 01:20 AM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by ravisingh1 View Post
I just now checked and found that xorg isn't installed.
So, shall I proceed ahead and install xorg.
Yes, if you want your desktop to work you will need some sort of display server and until Wayland (or Mir) is released xorg is it.
 
Old 09-08-2013, 01:37 AM   #5
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Thanks k3lt01
But the foll. command isn't working. How to install then xorg?
Code:
ravbholua@ravi:~$ sudo apt-get  install xorg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
xorg is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
ravbholua@ravi:~$
The way I confirmed xorg is there or not is:
Code:
ravbholua@ravi:~$ type xorg
-bash: type: xorg: not found
ravbholua@ravi:~$ which $_
ravbholua@ravi:~$

Last edited by ravisingh1; 09-08-2013 at 01:39 AM.
 
Old 09-08-2013, 01:48 AM   #6
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
I installed xorg as mentioned in the below linkBut the problem remains!!
And I think xorg was already there.
 
Old 09-08-2013, 02:27 AM   #7
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Why are you using sudo? just so you know when opening anything graphical (gui) it is best to use gksudo or gksu but you shouldn't need it anyway if you are logged in. I can open iceweasel and banshee using a normal (not root) terminal with out using su or sudo.Try it without sudo and see what happens.

Last edited by k3lt01; 09-08-2013 at 02:28 AM.
 
Old 09-08-2013, 04:41 AM   #8
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
I told the VPS provider of mine to look into the matter and here is what the reply:
Quote:
You can not rung firefox or any other GUI application from the command line. You will need to install some GUI client as VNC on NX and log in the the VPS desktop and after that you will be able to use the server as a PC. I will suggest you check and use www.nomachine.com

Admin
I went through the site nomachine.com. I am in doubt as to which one to download among the options. Please see the screen shot regarding my system.
Do I need to select:
NX Free Edition for Linux - x86_64 > NX Free Edition for Linux DEB amd64
My local and remote box has ubuntu13.04
Attached Thumbnails
Click image for larger version

Name:	type.png
Views:	34
Size:	215.3 KB
ID:	13361  
 
Old 09-08-2013, 07:22 AM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
You don't need Xorg on the remote machine to get this working, you also don't need VNC or NX, SSH will be enough. You only have to enable X forwarding in your SSH configuration (don't forget to restart the SSH daemon after the change in the configuration) and then connect to the machine using
Code:
ssh -X
or
Code:
ssh -Y

Last edited by TobiSGD; 09-08-2013 at 07:23 AM.
 
1 members found this post helpful.
Old 09-08-2013, 11:39 AM   #10
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
You don't need Xorg on the remote machine to get this working, you also don't need VNC or NX, SSH will be enough. You only have to enable X forwarding in your SSH configuration ......
Thanks a lot TobiSBD.
It's working. You entered the thread at the very right time. I opened firefox as well as gparted. Though I had doubt how w'd I feel surfing in my remote server (via browser) with my slow speed here locally. But it was good.

It took much time to open firefox (many minutes) though but once it opened , it was all O.K. after that. Browsing experience was fine.

But while opening , I got the output as below. What's missing?
Code:
ravbholua@ravi:~$ sudo gparted
[sudo] password for ravbholua: 

(process:1287): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.

** (gpartedbin:1287): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-l6jTeueeGH: Connection refused
======================
libparted : 2.3
======================
Code:
ravbholua@ravi:~$ firefox

(process:1307): GLib-CRITICAL **: g_slice_set_config: assertion `sys_page_size == 0' failed

(firefox:1307): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
 
Old 09-08-2013, 11:45 AM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,535

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I get the GLib-CRITICAL error whenever I open Firefox and have done for some time. As I understand it it's a known bug that isn't been treated with any urgency because the only thing it causes is that error message.
 
Old 09-08-2013, 10:59 PM   #12
ravisingh1
Member
 
Registered: Apr 2013
Location: Mumbai
Distribution: Ubuntu13.10
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ravisingh1 View Post
I opened firefox as well as gparted. Though I had doubt how w'd I feel surfing in my remote server (via browser) with my slow speed here locally. But it was good.

It took much time to open firefox (many minutes) though but once it opened , it was all O.K. after that. Browsing experience was fine.
I am wrong to say this. sorry for that but it isn't my fault even because that way only things were presented to me.
The GUI (browser,vlc player) is so slow that one can't work at all. I don't think I should mention that here as it is slightly out of topic and w'd make this thread lengthy.
so, I am mentioning it in the below new thread:
(I am trying GUI client (www.nomachine.com). Lets see how it works.)

Last edited by ravisingh1; 09-08-2013 at 11:02 PM. Reason: wrong link earlier
 
Old 09-08-2013, 11:09 PM   #13
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Sorry I didn't see you mention the server was remote, even though it is plain as day.

If you are already using a desktop why are you trying to open a graphical application on the server? Is this a thin client setup or something similar?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i check installed version of ubuntu is desktop are server edition jayakumar01 Linux - Server 1 12-31-2011 05:17 AM
Is there any UNIX command to display a list of all package name installed in Ubuntu? livesimple Ubuntu 3 12-08-2011 01:48 PM
[SOLVED] "Installed" Ubuntu 10.10 server on Ubuntu 10.10 desktop. How to get desktop v. back? nax123 Ubuntu 4 08-21-2011 09:29 PM
[SOLVED] Installed "mythbuntu-desktop" on my Ubuntu Server, anything else before reboot? mitchell7man Linux - Software 2 05-16-2010 11:38 PM
realvnc server installed on fed9 attempting to connect to server from windows desktop nataloi Linux - General 1 04-21-2009 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration