How can I launch gnome-terminal remotely on my headless server? (fails to launch over X11 forwarding)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a headless VM (running Ubuntu server 17.04) that I use SSH to access. I'm comfortable with the basics of X11 forwarding, and I can forward xterm and friends just fine. XFCE terminal also forwards OK.



I'd like to be able to use Gnome terminal, but it doesn't seem to launch. Instead, it just hangs for awhile and eventually errors out with:



Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached


Interestingly, gnome-terminal works remotely over X11 if I have a local desktop session running on my VM (launched via startx).



I'm guessing there's some kind of Gnome service that needs to be running, but I can't figure out what it is or how to start it outside of the context of a full desktop session. I don't usually launch those because the VM is headless by default.



Anybody got some insight on what I could do to get Gnome-terminal working remotely without having to start a GUI desktop session locally on my VM?







share|improve this question


















  • 1




    What exactly are you trying to accomplish by having a remote graphical terminal running?
    – tink
    Nov 29 '17 at 21:35










  • I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
    – Nicholas Clark
    Nov 29 '17 at 22:04











  • This is really the same as unix.stackexchange.com/questions/344617 .
    – JdeBP
    Nov 29 '17 at 22:06










  • @JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
    – Nicholas Clark
    Nov 29 '17 at 22:09










  • See unix.stackexchange.com/a/407863/5132 .
    – JdeBP
    Nov 29 '17 at 23:01














up vote
1
down vote

favorite












I have a headless VM (running Ubuntu server 17.04) that I use SSH to access. I'm comfortable with the basics of X11 forwarding, and I can forward xterm and friends just fine. XFCE terminal also forwards OK.



I'd like to be able to use Gnome terminal, but it doesn't seem to launch. Instead, it just hangs for awhile and eventually errors out with:



Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached


Interestingly, gnome-terminal works remotely over X11 if I have a local desktop session running on my VM (launched via startx).



I'm guessing there's some kind of Gnome service that needs to be running, but I can't figure out what it is or how to start it outside of the context of a full desktop session. I don't usually launch those because the VM is headless by default.



Anybody got some insight on what I could do to get Gnome-terminal working remotely without having to start a GUI desktop session locally on my VM?







share|improve this question


















  • 1




    What exactly are you trying to accomplish by having a remote graphical terminal running?
    – tink
    Nov 29 '17 at 21:35










  • I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
    – Nicholas Clark
    Nov 29 '17 at 22:04











  • This is really the same as unix.stackexchange.com/questions/344617 .
    – JdeBP
    Nov 29 '17 at 22:06










  • @JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
    – Nicholas Clark
    Nov 29 '17 at 22:09










  • See unix.stackexchange.com/a/407863/5132 .
    – JdeBP
    Nov 29 '17 at 23:01












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a headless VM (running Ubuntu server 17.04) that I use SSH to access. I'm comfortable with the basics of X11 forwarding, and I can forward xterm and friends just fine. XFCE terminal also forwards OK.



I'd like to be able to use Gnome terminal, but it doesn't seem to launch. Instead, it just hangs for awhile and eventually errors out with:



Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached


Interestingly, gnome-terminal works remotely over X11 if I have a local desktop session running on my VM (launched via startx).



I'm guessing there's some kind of Gnome service that needs to be running, but I can't figure out what it is or how to start it outside of the context of a full desktop session. I don't usually launch those because the VM is headless by default.



Anybody got some insight on what I could do to get Gnome-terminal working remotely without having to start a GUI desktop session locally on my VM?







share|improve this question














I have a headless VM (running Ubuntu server 17.04) that I use SSH to access. I'm comfortable with the basics of X11 forwarding, and I can forward xterm and friends just fine. XFCE terminal also forwards OK.



I'd like to be able to use Gnome terminal, but it doesn't seem to launch. Instead, it just hangs for awhile and eventually errors out with:



Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached


Interestingly, gnome-terminal works remotely over X11 if I have a local desktop session running on my VM (launched via startx).



I'm guessing there's some kind of Gnome service that needs to be running, but I can't figure out what it is or how to start it outside of the context of a full desktop session. I don't usually launch those because the VM is headless by default.



Anybody got some insight on what I could do to get Gnome-terminal working remotely without having to start a GUI desktop session locally on my VM?









share|improve this question













share|improve this question




share|improve this question








edited Nov 29 '17 at 21:28

























asked Nov 29 '17 at 21:19









Nicholas Clark

22716




22716







  • 1




    What exactly are you trying to accomplish by having a remote graphical terminal running?
    – tink
    Nov 29 '17 at 21:35










  • I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
    – Nicholas Clark
    Nov 29 '17 at 22:04











  • This is really the same as unix.stackexchange.com/questions/344617 .
    – JdeBP
    Nov 29 '17 at 22:06










  • @JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
    – Nicholas Clark
    Nov 29 '17 at 22:09










  • See unix.stackexchange.com/a/407863/5132 .
    – JdeBP
    Nov 29 '17 at 23:01












  • 1




    What exactly are you trying to accomplish by having a remote graphical terminal running?
    – tink
    Nov 29 '17 at 21:35










  • I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
    – Nicholas Clark
    Nov 29 '17 at 22:04











  • This is really the same as unix.stackexchange.com/questions/344617 .
    – JdeBP
    Nov 29 '17 at 22:06










  • @JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
    – Nicholas Clark
    Nov 29 '17 at 22:09










  • See unix.stackexchange.com/a/407863/5132 .
    – JdeBP
    Nov 29 '17 at 23:01







1




1




What exactly are you trying to accomplish by having a remote graphical terminal running?
– tink
Nov 29 '17 at 21:35




What exactly are you trying to accomplish by having a remote graphical terminal running?
– tink
Nov 29 '17 at 21:35












I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
– Nicholas Clark
Nov 29 '17 at 22:04





I do a lot of development work on the VM, mostly in terminal windows. I like using a graphical terminal so that I get tabs, window management, etc. It's not uncommon for me to have 3 or 4 terminal windows open with 4 or 5 tabs each. Rather than try to manage all that by starting tons of SSH sessions (or running a GUI in my VM), I like to start the a graphical terminal and use it that way (then I can switch between native apps and my VM seamlessly).
– Nicholas Clark
Nov 29 '17 at 22:04













This is really the same as unix.stackexchange.com/questions/344617 .
– JdeBP
Nov 29 '17 at 22:06




This is really the same as unix.stackexchange.com/questions/344617 .
– JdeBP
Nov 29 '17 at 22:06












@JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
– Nicholas Clark
Nov 29 '17 at 22:09




@JdeBP woah dang, you nailed it!! That works perfectly. If you put that in an answer I'll accept it
– Nicholas Clark
Nov 29 '17 at 22:09












See unix.stackexchange.com/a/407863/5132 .
– JdeBP
Nov 29 '17 at 23:01




See unix.stackexchange.com/a/407863/5132 .
– JdeBP
Nov 29 '17 at 23:01










1 Answer
1






active

oldest

votes

















up vote
-1
down vote













Launching an app over X can be really slow.

I have had a lot of success with tunneling VNC over SSH with customer systems around the world.



On the remote machine, install a VNC server such as tigervnc and start up the daemon. (yum install -y tigervnc-server ; vncserver :3 -or whatever port you want to use). It will prompt you to set a password.



On the local machine, install the VNC client (yum install -y tigervnc)
You can add "exec /usr/bin/gnome-terminal" to your ~/.vnc/xstartup file.
then run:
ssh -L 5903:localhost:5903 -N -f -l user remote-server-IP-or-hostname
The port number here will be 59 and the port number you chose



In another terminal do:
vncviewer :3



You should get prompted for the password set on the server.






share|improve this answer




















  • I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
    – Nicholas Clark
    Nov 29 '17 at 22:07










  • Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
    – bootbeast
    Nov 29 '17 at 22:48










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407831%2fhow-can-i-launch-gnome-terminal-remotely-on-my-headless-server-fails-to-launch%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
-1
down vote













Launching an app over X can be really slow.

I have had a lot of success with tunneling VNC over SSH with customer systems around the world.



On the remote machine, install a VNC server such as tigervnc and start up the daemon. (yum install -y tigervnc-server ; vncserver :3 -or whatever port you want to use). It will prompt you to set a password.



On the local machine, install the VNC client (yum install -y tigervnc)
You can add "exec /usr/bin/gnome-terminal" to your ~/.vnc/xstartup file.
then run:
ssh -L 5903:localhost:5903 -N -f -l user remote-server-IP-or-hostname
The port number here will be 59 and the port number you chose



In another terminal do:
vncviewer :3



You should get prompted for the password set on the server.






share|improve this answer




















  • I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
    – Nicholas Clark
    Nov 29 '17 at 22:07










  • Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
    – bootbeast
    Nov 29 '17 at 22:48














up vote
-1
down vote













Launching an app over X can be really slow.

I have had a lot of success with tunneling VNC over SSH with customer systems around the world.



On the remote machine, install a VNC server such as tigervnc and start up the daemon. (yum install -y tigervnc-server ; vncserver :3 -or whatever port you want to use). It will prompt you to set a password.



On the local machine, install the VNC client (yum install -y tigervnc)
You can add "exec /usr/bin/gnome-terminal" to your ~/.vnc/xstartup file.
then run:
ssh -L 5903:localhost:5903 -N -f -l user remote-server-IP-or-hostname
The port number here will be 59 and the port number you chose



In another terminal do:
vncviewer :3



You should get prompted for the password set on the server.






share|improve this answer




















  • I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
    – Nicholas Clark
    Nov 29 '17 at 22:07










  • Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
    – bootbeast
    Nov 29 '17 at 22:48












up vote
-1
down vote










up vote
-1
down vote









Launching an app over X can be really slow.

I have had a lot of success with tunneling VNC over SSH with customer systems around the world.



On the remote machine, install a VNC server such as tigervnc and start up the daemon. (yum install -y tigervnc-server ; vncserver :3 -or whatever port you want to use). It will prompt you to set a password.



On the local machine, install the VNC client (yum install -y tigervnc)
You can add "exec /usr/bin/gnome-terminal" to your ~/.vnc/xstartup file.
then run:
ssh -L 5903:localhost:5903 -N -f -l user remote-server-IP-or-hostname
The port number here will be 59 and the port number you chose



In another terminal do:
vncviewer :3



You should get prompted for the password set on the server.






share|improve this answer












Launching an app over X can be really slow.

I have had a lot of success with tunneling VNC over SSH with customer systems around the world.



On the remote machine, install a VNC server such as tigervnc and start up the daemon. (yum install -y tigervnc-server ; vncserver :3 -or whatever port you want to use). It will prompt you to set a password.



On the local machine, install the VNC client (yum install -y tigervnc)
You can add "exec /usr/bin/gnome-terminal" to your ~/.vnc/xstartup file.
then run:
ssh -L 5903:localhost:5903 -N -f -l user remote-server-IP-or-hostname
The port number here will be 59 and the port number you chose



In another terminal do:
vncviewer :3



You should get prompted for the password set on the server.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 29 '17 at 21:56









bootbeast

993




993











  • I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
    – Nicholas Clark
    Nov 29 '17 at 22:07










  • Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
    – bootbeast
    Nov 29 '17 at 22:48
















  • I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
    – Nicholas Clark
    Nov 29 '17 at 22:07










  • Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
    – bootbeast
    Nov 29 '17 at 22:48















I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
– Nicholas Clark
Nov 29 '17 at 22:07




I'm actually using SSH forwarding to talk to a VM running locally on my employer-provided machine. Our IT department is zealous that nobody's machine can boot to a non-blessed OS. Xfce-terminal works OK for me, but I'd like some of the polish that gnome provides.
– Nicholas Clark
Nov 29 '17 at 22:07












Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
– bootbeast
Nov 29 '17 at 22:48




Exactly, I like it too. So you can tunnel VNC over SSH and run gnome-terminal remotely.
– bootbeast
Nov 29 '17 at 22:48

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407831%2fhow-can-i-launch-gnome-terminal-remotely-on-my-headless-server-fails-to-launch%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)