Failing to auto start virtual machine


up vote
0
down vote
favorite
I am trying to auto start my rpi so that it automatically logs into the virtual machine.
My script.sh has the following:
sleep 10
~/.profile
sleep 10
workon cv
and when I put the script.sh into crontab -e by entering the following:
@reboot /home/pi/script.sh
and rebooting, nothing happens... What am I doing wrong?
I have also tried /etc./rc.local, but that didnt work either.
bash scripts cron raspberrypi autostart
add a comment |Â
up vote
0
down vote
favorite
I am trying to auto start my rpi so that it automatically logs into the virtual machine.
My script.sh has the following:
sleep 10
~/.profile
sleep 10
workon cv
and when I put the script.sh into crontab -e by entering the following:
@reboot /home/pi/script.sh
and rebooting, nothing happens... What am I doing wrong?
I have also tried /etc./rc.local, but that didnt work either.
bash scripts cron raspberrypi autostart
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to auto start my rpi so that it automatically logs into the virtual machine.
My script.sh has the following:
sleep 10
~/.profile
sleep 10
workon cv
and when I put the script.sh into crontab -e by entering the following:
@reboot /home/pi/script.sh
and rebooting, nothing happens... What am I doing wrong?
I have also tried /etc./rc.local, but that didnt work either.
bash scripts cron raspberrypi autostart
I am trying to auto start my rpi so that it automatically logs into the virtual machine.
My script.sh has the following:
sleep 10
~/.profile
sleep 10
workon cv
and when I put the script.sh into crontab -e by entering the following:
@reboot /home/pi/script.sh
and rebooting, nothing happens... What am I doing wrong?
I have also tried /etc./rc.local, but that didnt work either.
bash scripts cron raspberrypi autostart
asked May 16 at 16:14
Badabim
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037033%2ffailing-to-auto-start-virtual-machine%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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