ubuntu-desktop installed in server but getting error: no display specified
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 09:23 PM.
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 12:39 AM.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
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.
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
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
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.