Execute Script file automatically on Chromebook Boot

1,927 views
Skip to first unread message

Gokul vellingiri

unread,
Oct 31, 2018, 4:15:42 AM10/31/18
to Chromium OS Discussion
I want to execute a simple script file in Chromebook once the devices booted into Normal Mode. This sounds possible in Linux Machine using /etc/rc.5/ (Assuming device machine is booted with run-level 5). Now i tried the same in Linux Beta variant Crostini of Chormebook(https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md). My script file follows:

/etc/rc.5/S99simpleEcho

#The following script is used to write string to a file on every startup:
echo "Simple Echo script is working" > /usr/lib/output_file.

When I try to execute the script using Terminal App(Which i enabled under Linux Beta) got the script working. 

When I expect the script to run automatically on boot, i am not seeing the file created. Is it possible to auto execute a user defined script file in Chromebook on every boot ?

Keith I Myers

unread,
Oct 31, 2018, 11:51:19 AM10/31/18
to vgok...@gmail.com, chromium-...@chromium.org
According to the official documentation -https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md#can-i-autorun-programs-when-i-log-in  - this is not possible for security. The exact text is as follows

Can I autorun programs when I log in?

Nope! All VMs (and their containers) need to be manually relaunched. This helps prevent persistent exploits.

For more details, see the Security section in this doc.

Can I autorun programs when I boot?

Nope! See the previous questions, and the Security section.



--
--
Chromium OS Discussion mailing list: chromium-...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium OS Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dis...@chromium.org.


--
 
--
Keith I Myers
 


Gokul vellingiri

unread,
Nov 1, 2018, 2:57:00 AM11/1/18
to Chromium OS Discussion, vgok...@gmail.com
Thank you Myser for your reply. At least can i make this work in Developer Mode of Chromebook ?
Reply all
Reply to author
Forward
0 new messages