I need to run the following command
sudo xhost SI:localuser:root every time I start a machine of mine. So I'd like automate this process. I'm using Ubuntu 12.04 LTS for this.
I tried put this command on my file
/etc/rc.local but it isn't working, because when I run
xhost should appear:
/etc/rc.local is the following:
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. xhost SI:localuser:root exit 0
Am I missing something?
PS.: as suggest on the comments* The thing I'm tying to do is described on this question here. Can I do this on a better way?