xdotool - segmentation fault (core dumped)

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








up vote
0
down vote

favorite












I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?







share|improve this question






















  • What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
    – wjandrea
    May 11 at 18:47










  • my ubuntu version is ubuntu 16.04.What is the X?
    – shen xu
    May 12 at 13:52










  • en.wikipedia.org/wiki/X_Window_System
    – wjandrea
    May 12 at 18:24










  • How to install X_Window_System in ubuntu 16.04?
    – shen xu
    May 13 at 12:50










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:39















up vote
0
down vote

favorite












I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?







share|improve this question






















  • What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
    – wjandrea
    May 11 at 18:47










  • my ubuntu version is ubuntu 16.04.What is the X?
    – shen xu
    May 12 at 13:52










  • en.wikipedia.org/wiki/X_Window_System
    – wjandrea
    May 12 at 18:24










  • How to install X_Window_System in ubuntu 16.04?
    – shen xu
    May 13 at 12:50










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:39













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?







share|improve this question














I installed xdotool in Ubuntu. But it says segmentation fault (core dumped) when I inputted command xdotool getmouselocation. How to solve it?









share|improve this question













share|improve this question




share|improve this question








edited May 11 at 18:47









Olimjon

1,872423




1,872423










asked May 11 at 17:10









shen xu

12




12











  • What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
    – wjandrea
    May 11 at 18:47










  • my ubuntu version is ubuntu 16.04.What is the X?
    – shen xu
    May 12 at 13:52










  • en.wikipedia.org/wiki/X_Window_System
    – wjandrea
    May 12 at 18:24










  • How to install X_Window_System in ubuntu 16.04?
    – shen xu
    May 13 at 12:50










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:39

















  • What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
    – wjandrea
    May 11 at 18:47










  • my ubuntu version is ubuntu 16.04.What is the X?
    – shen xu
    May 12 at 13:52










  • en.wikipedia.org/wiki/X_Window_System
    – wjandrea
    May 12 at 18:24










  • How to install X_Window_System in ubuntu 16.04?
    – shen xu
    May 13 at 12:50










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:39
















What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
– wjandrea
May 11 at 18:47




What version of Ubuntu are you using? Are you actually running X, or another system like Wayland or Mir?
– wjandrea
May 11 at 18:47












my ubuntu version is ubuntu 16.04.What is the X?
– shen xu
May 12 at 13:52




my ubuntu version is ubuntu 16.04.What is the X?
– shen xu
May 12 at 13:52












en.wikipedia.org/wiki/X_Window_System
– wjandrea
May 12 at 18:24




en.wikipedia.org/wiki/X_Window_System
– wjandrea
May 12 at 18:24












How to install X_Window_System in ubuntu 16.04?
– shen xu
May 13 at 12:50




How to install X_Window_System in ubuntu 16.04?
– shen xu
May 13 at 12:50












I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
– shen xu
May 13 at 23:39





I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx .And input command "export DISPLAY=:0".Than xdotool can work now.
– shen xu
May 13 at 23:39











2 Answers
2






active

oldest

votes

















up vote
0
down vote













You might be using not real display. To correct this, do:



export DISPLAY=:0 
xdotool getmouselocation


If it did not work, this link might be useful.






share|improve this answer




















  • I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
    – shen xu
    May 12 at 13:57











  • try to use export DISPLAY=:1, then try again
    – Olimjon
    May 12 at 14:24










  • I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
    – shen xu
    May 13 at 12:15










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:41










  • But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
    – shen xu
    May 13 at 23:41

















up vote
0
down vote













I had to install X Window System using the commands as follows:



# apt-get install xserver-xorg 
# apt-get install x-window-system-core
# dpkg-reconfigure xserver-xorg
# apt-get install gnome-core
# apt-get install gdm xscreensaver
# apt-get install ttf-arphic*
# startx


And input command export DISPLAY=:0. xdotool works now.






share|improve this answer






















  • Please look at the new question link askubuntu.com/questions/1035940/…
    – shen xu
    May 15 at 12:51










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2faskubuntu.com%2fquestions%2f1034997%2fxdotool-segmentation-fault-core-dumped%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













You might be using not real display. To correct this, do:



export DISPLAY=:0 
xdotool getmouselocation


If it did not work, this link might be useful.






share|improve this answer




















  • I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
    – shen xu
    May 12 at 13:57











  • try to use export DISPLAY=:1, then try again
    – Olimjon
    May 12 at 14:24










  • I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
    – shen xu
    May 13 at 12:15










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:41










  • But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
    – shen xu
    May 13 at 23:41














up vote
0
down vote













You might be using not real display. To correct this, do:



export DISPLAY=:0 
xdotool getmouselocation


If it did not work, this link might be useful.






share|improve this answer




















  • I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
    – shen xu
    May 12 at 13:57











  • try to use export DISPLAY=:1, then try again
    – Olimjon
    May 12 at 14:24










  • I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
    – shen xu
    May 13 at 12:15










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:41










  • But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
    – shen xu
    May 13 at 23:41












up vote
0
down vote










up vote
0
down vote









You might be using not real display. To correct this, do:



export DISPLAY=:0 
xdotool getmouselocation


If it did not work, this link might be useful.






share|improve this answer












You might be using not real display. To correct this, do:



export DISPLAY=:0 
xdotool getmouselocation


If it did not work, this link might be useful.







share|improve this answer












share|improve this answer



share|improve this answer










answered May 11 at 17:42









Olimjon

1,872423




1,872423











  • I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
    – shen xu
    May 12 at 13:57











  • try to use export DISPLAY=:1, then try again
    – Olimjon
    May 12 at 14:24










  • I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
    – shen xu
    May 13 at 12:15










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:41










  • But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
    – shen xu
    May 13 at 23:41
















  • I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
    – shen xu
    May 12 at 13:57











  • try to use export DISPLAY=:1, then try again
    – Olimjon
    May 12 at 14:24










  • I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
    – shen xu
    May 13 at 12:15










  • I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
    – shen xu
    May 13 at 23:41










  • But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
    – shen xu
    May 13 at 23:41















I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
– shen xu
May 12 at 13:57





I had correct this: export DISPLAY=:0 xdotool getmouselocation. But it says "Error:Can't open display:(null) Failed creating new xdo instance" now.
– shen xu
May 12 at 13:57













try to use export DISPLAY=:1, then try again
– Olimjon
May 12 at 14:24




try to use export DISPLAY=:1, then try again
– Olimjon
May 12 at 14:24












I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
– shen xu
May 13 at 12:15




I had try to use "export DISPLAY=:1",But it says "segmentation fault (core dumped)" now.
– shen xu
May 13 at 12:15












I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
– shen xu
May 13 at 23:41




I had install X Window System use the command as follows: # apt-get install xserver-xorg # apt-get install x-window-system-core # dpkg-reconfigure xserver-xorg # apt-get install gnome-core # apt-get install gdm xscreensaver # apt-get install ttf-arphic* # startx And input command "export DISPLAY=:0".Than xdotool can work now.
– shen xu
May 13 at 23:41












But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
– shen xu
May 13 at 23:41




But it has another question.Please look at the link "youtube.com/watch?v=25OTHjiVHZg".The value is x:512 y:384 of the screen coordinates,But the coordinates value is x:512 y:384 still when i change the location of mouse pointer in screen.Why the coordinates value do not change?I want get the screen coordinates current value of mouse pointer.
– shen xu
May 13 at 23:41












up vote
0
down vote













I had to install X Window System using the commands as follows:



# apt-get install xserver-xorg 
# apt-get install x-window-system-core
# dpkg-reconfigure xserver-xorg
# apt-get install gnome-core
# apt-get install gdm xscreensaver
# apt-get install ttf-arphic*
# startx


And input command export DISPLAY=:0. xdotool works now.






share|improve this answer






















  • Please look at the new question link askubuntu.com/questions/1035940/…
    – shen xu
    May 15 at 12:51














up vote
0
down vote













I had to install X Window System using the commands as follows:



# apt-get install xserver-xorg 
# apt-get install x-window-system-core
# dpkg-reconfigure xserver-xorg
# apt-get install gnome-core
# apt-get install gdm xscreensaver
# apt-get install ttf-arphic*
# startx


And input command export DISPLAY=:0. xdotool works now.






share|improve this answer






















  • Please look at the new question link askubuntu.com/questions/1035940/…
    – shen xu
    May 15 at 12:51












up vote
0
down vote










up vote
0
down vote









I had to install X Window System using the commands as follows:



# apt-get install xserver-xorg 
# apt-get install x-window-system-core
# dpkg-reconfigure xserver-xorg
# apt-get install gnome-core
# apt-get install gdm xscreensaver
# apt-get install ttf-arphic*
# startx


And input command export DISPLAY=:0. xdotool works now.






share|improve this answer














I had to install X Window System using the commands as follows:



# apt-get install xserver-xorg 
# apt-get install x-window-system-core
# dpkg-reconfigure xserver-xorg
# apt-get install gnome-core
# apt-get install gdm xscreensaver
# apt-get install ttf-arphic*
# startx


And input command export DISPLAY=:0. xdotool works now.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 14 at 17:21









wjandrea

7,14242155




7,14242155










answered May 14 at 4:47









shen xu

12




12











  • Please look at the new question link askubuntu.com/questions/1035940/…
    – shen xu
    May 15 at 12:51
















  • Please look at the new question link askubuntu.com/questions/1035940/…
    – shen xu
    May 15 at 12:51















Please look at the new question link askubuntu.com/questions/1035940/…
– shen xu
May 15 at 12:51




Please look at the new question link askubuntu.com/questions/1035940/…
– shen xu
May 15 at 12:51












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034997%2fxdotool-segmentation-fault-core-dumped%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error

How do I move numbers in filenames, in a batch renaming operation?