When i do: sudo sh /etc/rc.local it works perfect but when i reboot my system, it wont start.
There is my rc.local file:
I've added >> /var/log/rc.local.log 2>&1 to end of my command for see what's wrong and i've got this error from the log after reboot:
# 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
# By default this script does nothing.
sudo setxkbmap tr
I also tried sleep X but it didn't work too!
Cannot open display "default display"
Any help will be greatly appreciated.