0

I have managed to get the Plex Media Server running on my Chromebook via Crouton and Unity.

The only thing is that it won't load unless I run the command sudo su -c /usr/sbin/start_pms plex

Is there an easy way to run this automatically when I boot into Crouton? This would make my life alot easier.

Thanks guys,

muru
  • 207,228

1 Answers1

0

For the moment, I'd suggest using upstart. To create an upstart job, create a file called startplex.conf in /etc/init/, containing:

start on startup
task
exec /usr/sbin/start_pms plex

To do this in one command:

sudo tee /etc/init/startplex.conf <<EOF
start on startup
task
exec /usr/sbin/start_pms plex
EOF
muru
  • 207,228