Linked Questions

7
votes
2answers
3k views

Remotely control an xorg session [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I have a computer running debian, connected to my TV, running an xorg session. What I want to do ...
3
votes
1answer
13k views

Xlib: No protocol specified [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I have a script that when run independently works that needs X11 Display variables to be set. When ...
0
votes
1answer
7k views

How to start X program on local display? [duplicate]

I'm ssh-ing into a Raspberry Pi. I would like to start an X program remotely, on the Pi's display. I know you can export DISPLAY to have programs open up on your computer when you ssh-in. But I'm ...
6
votes
2answers
4k views

How to access X display from a cron job when using gdm3? [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I'm trying to run a cron job that needs access to my X session. I know my X session will always be ...
2
votes
2answers
2k views

What is the best way to find the current DISPLAY and XAUTHORITY in non interactive shell for the current user? [duplicate]

I have a project that needs to detect the DISPLAY in shell (bash) variable to be able to display some gui stuff on the local machine. Or a better solution (dbus ?) to open gui stuff in non ...
-1
votes
1answer
717 views

Start xfce4-terminal with cron at boot [duplicate]

I have Debian stretch with systemd running (installed by default). I want to start a 2 lines bash script at boot via cron. echo something > file.txt xfce4-terminal [...] --command="watch [....]...
1
vote
1answer
929 views

How to schedule run shell script that opens Firefox [duplicate]

I have the shell script which opens Firefox and launches macros in it (I use a Firefox add-on called Imacros to create macros). The content of my shell script named house.sh is like that: firefox ...
0
votes
1answer
607 views

Start aplication in local desktop from remote SSH [duplicate]

I have an issue for which the work around would be to start the application in X instead of headless. How do I make sure the app is executed on the desktop, even if I run the command from a remote ssh ...
0
votes
1answer
587 views

Why can't I run GUI apps with sudo from crontab when I can with sudo: “No protocol specified”? [duplicate]

a little background as it might be the cause to the problem. I'm running Armbian legacy Jessie on a Orange Pi Zero. It does not include an desktop so I've installed X, lightdm and xfce. I havn't ...
1
vote
1answer
379 views

Clear X clipboard using cron [duplicate]

Is there any way I can clear the X clipboard from a cron job? The usual commands for xclip don't seem to work. echo -n | xclip -selection clipboard doesn't work from cron.
0
votes
1answer
457 views

Crontab job does not work [duplicate]

I created a simple crontab job. It should execute every 15 minutes to alert me that I need to take a short break. However, it does not work. I don't know why. Please help me if you have experience ...
0
votes
1answer
423 views

Notify-send not working when run from apache [duplicate]

I have the following script (alert.sh) which has been setuid'd: DISPLAY=:0.0 notify-send --urgency=low -i python "The job has finished" and the following PHP file alert.php: <?php echo exec("/...
0
votes
1answer
228 views

Run app on X11 on server without forwarding [duplicate]

The problem I am using an application that is computationally intensive and requires X11 to run. I want to run it on a remote server (that is obviously running X11). I don't need to forward X11, I ...
1
vote
0answers
114 views

Calling xrandr via SSH [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I'd like to ssh to a host running an X server and use xrandr to query and update things related to ...
0
votes
1answer
87 views

Cronjob executes `/usr/bin/python` but not `usr/bin/xrdb` [duplicate]

I'm trying to create my first cron job. I'm new to bash scripting too, although I do know some python. I am puzzled by the following: Here is my cronjob file created with crontab -e: */1 * * * * /...

15 30 50 per page