tigervnc vncviewer could not open some system applications
The computer that I am trying to connect to using vncviewer is a Ubuntu 18.04 system with dash-to-panel gnome extension.
When I used the first .vnc/xstartup , I only got black screen once connected.
When I used the second .vnc/xstartup , I got a nautilus file manager once connected and I could open pdf using evince by double-clicking on the pdf file itself. BUT I cannot open gedit by double-clicking on the text file itself as well as open terminal using right click menu. Why ?
I got the following journalctl log when I issued ssh destination_computer_username@destination_computer_ip_addr "DISPLAY=:2 nohup gnome-terminal" on my source computer terminal
Dec 20 14:06:13 UbuntuHW15 dbus-daemon[4137]: [session uid=1000 pid=4137] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.352' (uid=1000 pid=13704
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Starting GNOME Terminal Server...
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Failed to parse arguments: Cannot open display:
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Main process exited, code=exited, status=10/n/a
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Failed with result 'exit-code'.
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Failed to start GNOME Terminal Server.
First .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
gnome-wm&
metacity&
Second .vnc/xstartup
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
x11 gnome vnc x11vnc vncviewer
|
show 3 more comments
The computer that I am trying to connect to using vncviewer is a Ubuntu 18.04 system with dash-to-panel gnome extension.
When I used the first .vnc/xstartup , I only got black screen once connected.
When I used the second .vnc/xstartup , I got a nautilus file manager once connected and I could open pdf using evince by double-clicking on the pdf file itself. BUT I cannot open gedit by double-clicking on the text file itself as well as open terminal using right click menu. Why ?
I got the following journalctl log when I issued ssh destination_computer_username@destination_computer_ip_addr "DISPLAY=:2 nohup gnome-terminal" on my source computer terminal
Dec 20 14:06:13 UbuntuHW15 dbus-daemon[4137]: [session uid=1000 pid=4137] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.352' (uid=1000 pid=13704
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Starting GNOME Terminal Server...
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Failed to parse arguments: Cannot open display:
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Main process exited, code=exited, status=10/n/a
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Failed with result 'exit-code'.
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Failed to start GNOME Terminal Server.
First .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
gnome-wm&
metacity&
Second .vnc/xstartup
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
x11 gnome vnc x11vnc vncviewer
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
1
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40
|
show 3 more comments
The computer that I am trying to connect to using vncviewer is a Ubuntu 18.04 system with dash-to-panel gnome extension.
When I used the first .vnc/xstartup , I only got black screen once connected.
When I used the second .vnc/xstartup , I got a nautilus file manager once connected and I could open pdf using evince by double-clicking on the pdf file itself. BUT I cannot open gedit by double-clicking on the text file itself as well as open terminal using right click menu. Why ?
I got the following journalctl log when I issued ssh destination_computer_username@destination_computer_ip_addr "DISPLAY=:2 nohup gnome-terminal" on my source computer terminal
Dec 20 14:06:13 UbuntuHW15 dbus-daemon[4137]: [session uid=1000 pid=4137] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.352' (uid=1000 pid=13704
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Starting GNOME Terminal Server...
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Failed to parse arguments: Cannot open display:
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Main process exited, code=exited, status=10/n/a
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Failed with result 'exit-code'.
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Failed to start GNOME Terminal Server.
First .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
gnome-wm&
metacity&
Second .vnc/xstartup
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
x11 gnome vnc x11vnc vncviewer
The computer that I am trying to connect to using vncviewer is a Ubuntu 18.04 system with dash-to-panel gnome extension.
When I used the first .vnc/xstartup , I only got black screen once connected.
When I used the second .vnc/xstartup , I got a nautilus file manager once connected and I could open pdf using evince by double-clicking on the pdf file itself. BUT I cannot open gedit by double-clicking on the text file itself as well as open terminal using right click menu. Why ?
I got the following journalctl log when I issued ssh destination_computer_username@destination_computer_ip_addr "DISPLAY=:2 nohup gnome-terminal" on my source computer terminal
Dec 20 14:06:13 UbuntuHW15 dbus-daemon[4137]: [session uid=1000 pid=4137] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.352' (uid=1000 pid=13704
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Starting GNOME Terminal Server...
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect: Connection refused
Dec 20 14:06:13 UbuntuHW15 gnome-terminal-server[13707]: Failed to parse arguments: Cannot open display:
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Main process exited, code=exited, status=10/n/a
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: gnome-terminal-server.service: Failed with result 'exit-code'.
Dec 20 14:06:13 UbuntuHW15 systemd[4111]: Failed to start GNOME Terminal Server.
First .vnc/xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
gnome-wm&
metacity&
Second .vnc/xstartup
# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
x11 gnome vnc x11vnc vncviewer
x11 gnome vnc x11vnc vncviewer
edited Dec 20 '18 at 6:13
asked Dec 20 '18 at 2:42
kevin998x
11
11
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
1
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40
|
show 3 more comments
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
1
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
1
1
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40
|
show 3 more comments
active
oldest
votes
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',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490054%2ftigervnc-vncviewer-could-not-open-some-system-applications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490054%2ftigervnc-vncviewer-could-not-open-some-system-applications%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
What do you want to happen?
– Michael Prokopec
Dec 20 '18 at 3:14
@MichaelProkopec I cannot edit text files using gedit !!!!!! Do you understand ? the gedit won't open even I double-click on the text file. Same applies to gnome-terminal. Strangely, I can open pdf using evince though
– kevin998x
Dec 20 '18 at 3:15
1
You might want to look into why gnome-panel, gnome-settings, metacity and nautilus are listed at the bottom of the one that is close to working. You might try adding gedit and gnome-terminal or just use the whole gnome-session. Keep calm and carry on...
– Michael Prokopec
Dec 20 '18 at 3:24
@MichaelProkopec adding gnome-session & prior to gnome-panel & does not solve the issue
– kevin998x
Dec 20 '18 at 3:30
Interesting... What is the computer you are connecting from running?
– Michael Prokopec
Dec 20 '18 at 3:40